@credal/actions 0.1.32 → 0.1.35
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/dist/actions/actionMapper.js +125 -1
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +21 -1
- package/dist/actions/autogen/templates.js +3956 -260
- package/dist/actions/autogen/types.d.ts +880 -26
- package/dist/actions/autogen/types.js +1622 -12
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/groups.js +34 -4
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/asana/commentAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/commentAsanaTask.js +44 -0
- package/dist/actions/providers/asana/createAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/createAsanaTask.js +93 -0
- package/dist/actions/providers/asana/updateAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/updateAsanaTask.js +50 -0
- package/dist/actions/providers/asana/utils.d.ts +6 -0
- package/dist/actions/providers/asana/utils.js +73 -0
- package/dist/actions/providers/confluence/updatePage.js +9 -13
- package/dist/actions/providers/github/createBranch.d.ts +6 -0
- package/dist/actions/providers/github/createBranch.js +68 -0
- package/dist/actions/providers/github/createOrUpdateFile.d.ts +6 -0
- package/dist/actions/providers/github/createOrUpdateFile.js +75 -0
- package/dist/actions/providers/github/createPullRequest.d.ts +6 -0
- package/dist/actions/providers/github/createPullRequest.js +48 -0
- package/dist/actions/providers/google-oauth/createPresentation.d.ts +6 -0
- package/dist/actions/providers/google-oauth/createPresentation.js +52 -0
- package/dist/actions/providers/google-oauth/createSpreadsheet.d.ts +6 -0
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +62 -0
- package/dist/actions/providers/google-oauth/updateDoc.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updateDoc.js +69 -0
- package/dist/actions/providers/google-oauth/updatePresentation.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updatePresentation.js +64 -0
- package/dist/actions/providers/google-oauth/updateSpreadsheet.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +51 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/commentJiraTicket.d.ts +2 -2
- package/dist/actions/providers/jira/commentJiraTicket.js +2 -2
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/jira/getJiraTicketDetails.d.ts +3 -0
- package/dist/actions/providers/jira/getJiraTicketDetails.js +40 -0
- package/dist/actions/providers/jira/getJiraTicketHistory.d.ts +3 -0
- package/dist/actions/providers/jira/getJiraTicketHistory.js +41 -0
- package/dist/actions/providers/jira/updateJiraTicketDetails.d.ts +3 -0
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +56 -0
- package/dist/actions/providers/jira/updateJiraTicketStatus.d.ts +3 -0
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +57 -0
- package/dist/actions/providers/microsoft/createDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/createDocument.js +47 -0
- package/dist/actions/providers/microsoft/getDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/getDocument.js +45 -0
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +18 -3
- package/dist/actions/providers/microsoft/messageTeamsChat.js +18 -3
- package/dist/actions/providers/microsoft/updateDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/updateDocument.js +45 -0
- package/dist/actions/providers/microsoft/updateSpreadsheet.d.ts +3 -0
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +56 -0
- package/dist/actions/providers/microsoft/utils.d.ts +7 -2
- package/dist/actions/providers/microsoft/utils.js +26 -14
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/main.js +11 -0
- package/package.json +3 -1
- package/dist/actions/providers/workday/requestTimeOff.d.ts +0 -23
- package/dist/actions/providers/workday/requestTimeOff.js +0 -88
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
3
|
+
exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackListConversationsOutputSchema = exports.slackListConversationsParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.AuthParamsSchema = void 0;
|
4
|
+
exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = void 0;
|
5
|
+
exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = void 0;
|
5
6
|
const zod_1 = require("zod");
|
6
7
|
exports.AuthParamsSchema = zod_1.z.object({
|
7
8
|
authToken: zod_1.z.string().optional(),
|
@@ -23,6 +24,50 @@ exports.AuthParamsSchema = zod_1.z.object({
|
|
23
24
|
refreshToken: zod_1.z.string().optional(),
|
24
25
|
redirectUri: zod_1.z.string().optional(),
|
25
26
|
});
|
27
|
+
exports.asanaCommentTaskParamsSchema = zod_1.z.object({
|
28
|
+
taskId: zod_1.z.string().describe("Task gid the comment should be added to"),
|
29
|
+
commentText: zod_1.z.string().describe("The comment text to be added"),
|
30
|
+
isPinned: zod_1.z.boolean().describe("Whether the comment should be pinned").optional(),
|
31
|
+
});
|
32
|
+
exports.asanaCommentTaskOutputSchema = zod_1.z.object({
|
33
|
+
error: zod_1.z.string().describe("Error if comment was unsuccessful").optional(),
|
34
|
+
success: zod_1.z.boolean().describe("Whether comment was successfully made"),
|
35
|
+
commentUrl: zod_1.z.string().describe("The url to the created comment").optional(),
|
36
|
+
});
|
37
|
+
exports.asanaCreateTaskParamsSchema = zod_1.z.object({
|
38
|
+
projectId: zod_1.z.string().describe("Project gid the task belongs to"),
|
39
|
+
name: zod_1.z.string().describe("The name of the new task"),
|
40
|
+
approvalStatus: zod_1.z.string().describe("Status of task (pending, approved, ...)").optional(),
|
41
|
+
description: zod_1.z.string().describe("The description for the new task").optional(),
|
42
|
+
dueAt: zod_1.z.string().describe("ISO 8601 date string in UTC for due date of task").optional(),
|
43
|
+
assignee: zod_1.z.string().describe("The assignee gid or email for the new task").optional(),
|
44
|
+
taskTemplate: zod_1.z.string().describe("The template to use, takes id or name").optional(),
|
45
|
+
customFields: zod_1.z
|
46
|
+
.object({})
|
47
|
+
.catchall(zod_1.z.any())
|
48
|
+
.describe("Custom fields to be set on the create task request")
|
49
|
+
.optional(),
|
50
|
+
});
|
51
|
+
exports.asanaCreateTaskOutputSchema = zod_1.z.object({
|
52
|
+
error: zod_1.z.string().describe("Error if task creation was unsuccessful").optional(),
|
53
|
+
success: zod_1.z.boolean().describe("Whether task creation was successful"),
|
54
|
+
taskUrl: zod_1.z.string().describe("The url to the created Asana task").optional(),
|
55
|
+
});
|
56
|
+
exports.asanaUpdateTaskParamsSchema = zod_1.z.object({
|
57
|
+
taskId: zod_1.z.string().describe("Task gid of the task to update"),
|
58
|
+
name: zod_1.z.string().describe("The name of the task").optional(),
|
59
|
+
approvalStatus: zod_1.z.string().describe("Status of task (pending, approved, ...)").optional(),
|
60
|
+
description: zod_1.z.string().describe("The updated description").optional(),
|
61
|
+
dueAt: zod_1.z.string().describe("ISO 8601 date string in UTC for due date of task").optional(),
|
62
|
+
assignee: zod_1.z.string().describe("The assignee gid or email for the task").optional(),
|
63
|
+
completed: zod_1.z.boolean().describe("Whether the task should be marked as completed").optional(),
|
64
|
+
customFields: zod_1.z.object({}).catchall(zod_1.z.any()).describe("Custom fields to be updated").optional(),
|
65
|
+
});
|
66
|
+
exports.asanaUpdateTaskOutputSchema = zod_1.z.object({
|
67
|
+
error: zod_1.z.string().describe("Error if task update was unsuccessful").optional(),
|
68
|
+
success: zod_1.z.boolean().describe("Whether task update was successful"),
|
69
|
+
taskUrl: zod_1.z.string().describe("The url to the updated Asana task").optional(),
|
70
|
+
});
|
26
71
|
exports.slackSendMessageParamsSchema = zod_1.z.object({
|
27
72
|
channelName: zod_1.z.string().describe("The name of the Slack channel to send the message to (e.g. general, alerts)"),
|
28
73
|
message: zod_1.z.string().describe("The message content to send to Slack. Can include markdown formatting."),
|
@@ -75,16 +120,6 @@ exports.confluenceFetchPageContentOutputSchema = zod_1.z.object({
|
|
75
120
|
title: zod_1.z.string().describe("The title of the page"),
|
76
121
|
content: zod_1.z.string().describe("The content of the page in storage format (HTML)"),
|
77
122
|
});
|
78
|
-
exports.jiraCommentJiraTicketParamsSchema = zod_1.z.object({
|
79
|
-
projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
|
80
|
-
issueId: zod_1.z.string().describe("The issue ID associated with the ticket to be commented on"),
|
81
|
-
comment: zod_1.z.string().describe("The text to be commented on the ticket"),
|
82
|
-
});
|
83
|
-
exports.jiraCommentJiraTicketOutputSchema = zod_1.z.object({
|
84
|
-
success: zod_1.z.boolean().describe("Whether the comment was sent successfully"),
|
85
|
-
error: zod_1.z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
86
|
-
commentUrl: zod_1.z.string().describe("The url to the created Jira comment").optional(),
|
87
|
-
});
|
88
123
|
exports.jiraAssignJiraTicketParamsSchema = zod_1.z.object({
|
89
124
|
projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
|
90
125
|
assignee: zod_1.z.string().describe("The assignee for the ticket, userID or email"),
|
@@ -98,6 +133,16 @@ exports.jiraAssignJiraTicketOutputSchema = zod_1.z.object({
|
|
98
133
|
.optional(),
|
99
134
|
ticketUrl: zod_1.z.string().describe("The url to the newly assigned/reassigned Jira ticket").optional(),
|
100
135
|
});
|
136
|
+
exports.jiraCommentJiraTicketParamsSchema = zod_1.z.object({
|
137
|
+
projectKey: zod_1.z.string().describe("The key for the project"),
|
138
|
+
issueId: zod_1.z.string().describe("The issue ID associated with the ticket to be commented on"),
|
139
|
+
comment: zod_1.z.string().describe("The text to be commented on the ticket"),
|
140
|
+
});
|
141
|
+
exports.jiraCommentJiraTicketOutputSchema = zod_1.z.object({
|
142
|
+
success: zod_1.z.boolean().describe("Whether the comment was sent successfully"),
|
143
|
+
error: zod_1.z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
144
|
+
commentUrl: zod_1.z.string().describe("The url to the created Jira comment").optional(),
|
145
|
+
});
|
101
146
|
exports.jiraCreateJiraTicketParamsSchema = zod_1.z.object({
|
102
147
|
projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
|
103
148
|
summary: zod_1.z.string().describe("The summary of the new ticket"),
|
@@ -114,6 +159,49 @@ exports.jiraCreateJiraTicketParamsSchema = zod_1.z.object({
|
|
114
159
|
exports.jiraCreateJiraTicketOutputSchema = zod_1.z.object({
|
115
160
|
ticketUrl: zod_1.z.string().describe("The url to the created Jira Ticket"),
|
116
161
|
});
|
162
|
+
exports.jiraGetJiraTicketDetailsParamsSchema = zod_1.z.object({
|
163
|
+
projectKey: zod_1.z.string().describe("The key for the project"),
|
164
|
+
issueId: zod_1.z.string().describe("The ID of the ticket"),
|
165
|
+
});
|
166
|
+
exports.jiraGetJiraTicketDetailsOutputSchema = zod_1.z.object({
|
167
|
+
success: zod_1.z.boolean().describe("Whether the status was updated successfully"),
|
168
|
+
error: zod_1.z.string().describe("The error that occurred if the retrieval was unsuccessful").optional(),
|
169
|
+
data: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The data of the Jira ticket").optional(),
|
170
|
+
});
|
171
|
+
exports.jiraGetJiraTicketHistoryParamsSchema = zod_1.z.object({
|
172
|
+
projectKey: zod_1.z.string().describe("The key for the project"),
|
173
|
+
issueId: zod_1.z.string().describe("The ID of the ticket"),
|
174
|
+
});
|
175
|
+
exports.jiraGetJiraTicketHistoryOutputSchema = zod_1.z.object({
|
176
|
+
success: zod_1.z.boolean().describe("Whether the status was updated successfully"),
|
177
|
+
error: zod_1.z.string().describe("The error that occurred if the retrieval was unsuccessful").optional(),
|
178
|
+
history: zod_1.z.array(zod_1.z.any()).describe("The history data of the Jira ticket").optional(),
|
179
|
+
});
|
180
|
+
exports.jiraUpdateJiraTicketDetailsParamsSchema = zod_1.z.object({
|
181
|
+
projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
|
182
|
+
issueId: zod_1.z.string().describe("The issue ID associated with the ticket to be updated"),
|
183
|
+
summary: zod_1.z.string().describe("The updated summary").optional(),
|
184
|
+
description: zod_1.z.string().describe("The updated description").optional(),
|
185
|
+
issueType: zod_1.z.string().describe("The updated issue type").optional(),
|
186
|
+
customFields: zod_1.z
|
187
|
+
.object({})
|
188
|
+
.catchall(zod_1.z.any())
|
189
|
+
.describe("Custom fields to be set on the update ticket request")
|
190
|
+
.optional(),
|
191
|
+
});
|
192
|
+
exports.jiraUpdateJiraTicketDetailsOutputSchema = zod_1.z.object({
|
193
|
+
ticketUrl: zod_1.z.string().describe("The url to the Jira ticket"),
|
194
|
+
});
|
195
|
+
exports.jiraUpdateJiraTicketStatusParamsSchema = zod_1.z.object({
|
196
|
+
projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
|
197
|
+
issueId: zod_1.z.string().describe("The issue ID associated with the ticket"),
|
198
|
+
status: zod_1.z.string().describe('The status the ticket should be changed to (eg "In Progress", "Closed")'),
|
199
|
+
});
|
200
|
+
exports.jiraUpdateJiraTicketStatusOutputSchema = zod_1.z.object({
|
201
|
+
success: zod_1.z.boolean().describe("Whether the status was updated successfully"),
|
202
|
+
error: zod_1.z.string().describe("The error that occurred if the status was not updated successfully").optional(),
|
203
|
+
ticketUrl: zod_1.z.string().describe("The url to the Jira ticket").optional(),
|
204
|
+
});
|
117
205
|
exports.googlemapsValidateAddressParamsSchema = zod_1.z.object({
|
118
206
|
regionCode: zod_1.z.string().describe("The country of the address being verified."),
|
119
207
|
locality: zod_1.z.string().describe("The locality of the address being verified. This is likely a city."),
|
@@ -392,6 +480,541 @@ exports.googleOauthCreateNewGoogleDocOutputSchema = zod_1.z.object({
|
|
392
480
|
documentId: zod_1.z.string().describe("The ID of the created Google Doc"),
|
393
481
|
documentUrl: zod_1.z.string().describe("The URL to access the created Google Doc").optional(),
|
394
482
|
});
|
483
|
+
exports.googleOauthUpdateDocParamsSchema = zod_1.z.object({
|
484
|
+
documentId: zod_1.z.string().describe("The ID of the Google Doc to update"),
|
485
|
+
requests: zod_1.z
|
486
|
+
.array(zod_1.z
|
487
|
+
.object({})
|
488
|
+
.catchall(zod_1.z.any())
|
489
|
+
.and(zod_1.z.any().superRefine((x, ctx) => {
|
490
|
+
const schemas = [
|
491
|
+
zod_1.z.object({
|
492
|
+
replaceAllText: zod_1.z
|
493
|
+
.object({
|
494
|
+
replaceText: zod_1.z.string().describe("The text that will replace the matched text"),
|
495
|
+
containsText: zod_1.z
|
496
|
+
.object({
|
497
|
+
text: zod_1.z.string().describe("The text to search for in the document"),
|
498
|
+
matchCase: zod_1.z.boolean().describe("Whether the search should be case sensitive").optional(),
|
499
|
+
})
|
500
|
+
.describe("The text to search for"),
|
501
|
+
})
|
502
|
+
.describe("Replaces all instances of text matching a criteria"),
|
503
|
+
}),
|
504
|
+
zod_1.z.object({
|
505
|
+
insertText: zod_1.z
|
506
|
+
.object({
|
507
|
+
text: zod_1.z.string().describe("The text to insert"),
|
508
|
+
location: zod_1.z
|
509
|
+
.object({
|
510
|
+
index: zod_1.z
|
511
|
+
.number()
|
512
|
+
.int()
|
513
|
+
.describe("The zero-based index in the document where to insert the text"),
|
514
|
+
})
|
515
|
+
.describe("The location where the text will be inserted"),
|
516
|
+
})
|
517
|
+
.describe("Inserts text at a specific location"),
|
518
|
+
}),
|
519
|
+
zod_1.z.object({
|
520
|
+
updateTextStyle: zod_1.z
|
521
|
+
.object({
|
522
|
+
textStyle: zod_1.z
|
523
|
+
.object({
|
524
|
+
backgroundColor: zod_1.z
|
525
|
+
.object({})
|
526
|
+
.catchall(zod_1.z.any())
|
527
|
+
.describe("The background color of the text")
|
528
|
+
.optional(),
|
529
|
+
baselineOffset: zod_1.z
|
530
|
+
.enum(["BASELINE_OFFSET_UNSPECIFIED", "NONE", "SUPERSCRIPT", "SUBSCRIPT"])
|
531
|
+
.describe("The text's vertical offset from its normal position")
|
532
|
+
.optional(),
|
533
|
+
bold: zod_1.z.boolean().describe("Whether the text is bold").optional(),
|
534
|
+
fontSize: zod_1.z
|
535
|
+
.object({
|
536
|
+
magnitude: zod_1.z.number().describe("The font size in points").optional(),
|
537
|
+
unit: zod_1.z.string().describe("The units for the font size").optional(),
|
538
|
+
})
|
539
|
+
.describe("The size of the text's font")
|
540
|
+
.optional(),
|
541
|
+
foregroundColor: zod_1.z
|
542
|
+
.object({})
|
543
|
+
.catchall(zod_1.z.any())
|
544
|
+
.describe("The foreground color of the text")
|
545
|
+
.optional(),
|
546
|
+
italic: zod_1.z.boolean().describe("Whether the text is italicized").optional(),
|
547
|
+
link: zod_1.z
|
548
|
+
.object({ url: zod_1.z.string().describe("The URL of the link").optional() })
|
549
|
+
.describe("The hyperlink destination of the text")
|
550
|
+
.optional(),
|
551
|
+
strikethrough: zod_1.z.boolean().describe("Whether the text is struck through").optional(),
|
552
|
+
underline: zod_1.z.boolean().describe("Whether the text is underlined").optional(),
|
553
|
+
weightedFontFamily: zod_1.z
|
554
|
+
.object({
|
555
|
+
fontFamily: zod_1.z.string().describe("The font family of the text").optional(),
|
556
|
+
weight: zod_1.z.number().int().describe("The weight of the font").optional(),
|
557
|
+
})
|
558
|
+
.describe("The font family and weight of the text")
|
559
|
+
.optional(),
|
560
|
+
})
|
561
|
+
.describe("The styles to set on the text"),
|
562
|
+
fields: zod_1.z.string().describe("The fields that should be updated"),
|
563
|
+
range: zod_1.z
|
564
|
+
.object({
|
565
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
566
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
567
|
+
})
|
568
|
+
.describe("The range of text to style")
|
569
|
+
.optional(),
|
570
|
+
})
|
571
|
+
.describe("Updates the styling of text"),
|
572
|
+
}),
|
573
|
+
zod_1.z.object({
|
574
|
+
deleteContentRange: zod_1.z
|
575
|
+
.object({
|
576
|
+
range: zod_1.z
|
577
|
+
.object({
|
578
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
579
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
580
|
+
})
|
581
|
+
.describe("The range of content to delete"),
|
582
|
+
})
|
583
|
+
.describe("Deletes content between two structural locations"),
|
584
|
+
}),
|
585
|
+
zod_1.z.object({
|
586
|
+
insertTableRow: zod_1.z
|
587
|
+
.object({
|
588
|
+
tableCellLocation: zod_1.z
|
589
|
+
.object({
|
590
|
+
tableStartLocation: zod_1.z
|
591
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
592
|
+
.describe("The location where the table starts"),
|
593
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
594
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
595
|
+
})
|
596
|
+
.describe("The location where the table row will be inserted"),
|
597
|
+
insertBelow: zod_1.z.boolean().describe("Whether to insert the row below the reference row"),
|
598
|
+
})
|
599
|
+
.describe("Inserts a new table row"),
|
600
|
+
}),
|
601
|
+
zod_1.z.object({
|
602
|
+
insertTableColumn: zod_1.z
|
603
|
+
.object({
|
604
|
+
tableCellLocation: zod_1.z
|
605
|
+
.object({
|
606
|
+
tableStartLocation: zod_1.z
|
607
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
608
|
+
.describe("The location where the table starts"),
|
609
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
610
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
611
|
+
})
|
612
|
+
.describe("The location where the table column will be inserted"),
|
613
|
+
insertRight: zod_1.z
|
614
|
+
.boolean()
|
615
|
+
.describe("Whether to insert the column to the right of the reference column"),
|
616
|
+
})
|
617
|
+
.describe("Inserts a new table column"),
|
618
|
+
}),
|
619
|
+
zod_1.z.object({
|
620
|
+
deleteTableRow: zod_1.z
|
621
|
+
.object({
|
622
|
+
tableCellLocation: zod_1.z
|
623
|
+
.object({
|
624
|
+
tableStartLocation: zod_1.z
|
625
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
626
|
+
.describe("The location where the table starts"),
|
627
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
628
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
629
|
+
})
|
630
|
+
.describe("The location of the row to delete"),
|
631
|
+
})
|
632
|
+
.describe("Deletes a table row"),
|
633
|
+
}),
|
634
|
+
zod_1.z.object({
|
635
|
+
deleteTableColumn: zod_1.z
|
636
|
+
.object({
|
637
|
+
tableCellLocation: zod_1.z
|
638
|
+
.object({
|
639
|
+
tableStartLocation: zod_1.z
|
640
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
641
|
+
.describe("The location where the table starts"),
|
642
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
643
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
644
|
+
})
|
645
|
+
.describe("The location of the column to delete"),
|
646
|
+
})
|
647
|
+
.describe("Deletes a table column"),
|
648
|
+
}),
|
649
|
+
zod_1.z.object({
|
650
|
+
updateParagraphStyle: zod_1.z
|
651
|
+
.object({
|
652
|
+
range: zod_1.z
|
653
|
+
.object({
|
654
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
655
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
656
|
+
})
|
657
|
+
.describe("The range of paragraphs to update"),
|
658
|
+
paragraphStyle: zod_1.z
|
659
|
+
.object({
|
660
|
+
alignment: zod_1.z
|
661
|
+
.enum(["ALIGNMENT_UNSPECIFIED", "START", "CENTER", "END", "JUSTIFIED"])
|
662
|
+
.describe("The text alignment")
|
663
|
+
.optional(),
|
664
|
+
direction: zod_1.z
|
665
|
+
.enum(["CONTENT_DIRECTION_UNSPECIFIED", "LEFT_TO_RIGHT", "RIGHT_TO_LEFT"])
|
666
|
+
.describe("The text direction")
|
667
|
+
.optional(),
|
668
|
+
indentStart: zod_1.z
|
669
|
+
.object({
|
670
|
+
magnitude: zod_1.z.number().describe("The magnitude of indentation").optional(),
|
671
|
+
unit: zod_1.z.string().describe("The units of indentation").optional(),
|
672
|
+
})
|
673
|
+
.describe("The amount of indentation for the paragraph")
|
674
|
+
.optional(),
|
675
|
+
indentEnd: zod_1.z
|
676
|
+
.object({})
|
677
|
+
.catchall(zod_1.z.any())
|
678
|
+
.describe("The amount of indentation from the end")
|
679
|
+
.optional(),
|
680
|
+
indentFirstLine: zod_1.z
|
681
|
+
.object({})
|
682
|
+
.catchall(zod_1.z.any())
|
683
|
+
.describe("The amount of indentation for the first line")
|
684
|
+
.optional(),
|
685
|
+
keepLinesTogether: zod_1.z
|
686
|
+
.boolean()
|
687
|
+
.describe("Whether to keep all lines on the same page")
|
688
|
+
.optional(),
|
689
|
+
keepWithNext: zod_1.z.boolean().describe("Whether to keep with the next paragraph").optional(),
|
690
|
+
lineSpacing: zod_1.z.number().describe("The amount of space between lines").optional(),
|
691
|
+
spaceAbove: zod_1.z
|
692
|
+
.object({})
|
693
|
+
.catchall(zod_1.z.any())
|
694
|
+
.describe("The amount of space above the paragraph")
|
695
|
+
.optional(),
|
696
|
+
spaceBelow: zod_1.z
|
697
|
+
.object({})
|
698
|
+
.catchall(zod_1.z.any())
|
699
|
+
.describe("The amount of space below the paragraph")
|
700
|
+
.optional(),
|
701
|
+
spacingMode: zod_1.z
|
702
|
+
.enum(["SPACING_MODE_UNSPECIFIED", "NEVER_COLLAPSE", "COLLAPSE_LISTS"])
|
703
|
+
.describe("The spacing mode")
|
704
|
+
.optional(),
|
705
|
+
tabStops: zod_1.z
|
706
|
+
.array(zod_1.z.object({
|
707
|
+
offset: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The offset of the tab stop").optional(),
|
708
|
+
alignment: zod_1.z.string().describe("The alignment of the tab stop").optional(),
|
709
|
+
}))
|
710
|
+
.describe("The tab stops for the paragraph")
|
711
|
+
.optional(),
|
712
|
+
})
|
713
|
+
.describe("The styles to set on the paragraphs"),
|
714
|
+
fields: zod_1.z.string().describe("The fields that should be updated"),
|
715
|
+
})
|
716
|
+
.describe("Updates the style of paragraphs"),
|
717
|
+
}),
|
718
|
+
zod_1.z.object({
|
719
|
+
createParagraphBullets: zod_1.z
|
720
|
+
.object({
|
721
|
+
range: zod_1.z
|
722
|
+
.object({
|
723
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
724
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
725
|
+
})
|
726
|
+
.describe("The range of paragraphs to bullet"),
|
727
|
+
bulletPreset: zod_1.z
|
728
|
+
.enum([
|
729
|
+
"BULLET_UNSPECIFIED",
|
730
|
+
"BULLET_DISC_CIRCLE_SQUARE",
|
731
|
+
"BULLET_DIAMONDX_ARROW3D_SQUARE",
|
732
|
+
"BULLET_CHECKBOX",
|
733
|
+
"BULLET_ARROW_DIAMOND_DISC",
|
734
|
+
"BULLET_STAR_CIRCLE_SQUARE",
|
735
|
+
"BULLET_ARROW3D_CIRCLE_SQUARE",
|
736
|
+
"BULLET_LEFTTRIANGLE_DIAMOND_DISC",
|
737
|
+
"BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE",
|
738
|
+
"BULLET_DIAMOND_CIRCLE_SQUARE",
|
739
|
+
"NUMBERED_DECIMAL_NESTED",
|
740
|
+
"NUMBERED_DECIMAL_PARENTHESIS_NESTED",
|
741
|
+
"NUMBERED_DECIMAL_PERIOD_NESTED",
|
742
|
+
"NUMBERED_UPPERALPHA_PARENTHESIS_NESTED",
|
743
|
+
"NUMBERED_UPPERROMAN_PARENTHESIS_NESTED",
|
744
|
+
"NUMBERED_LOWERALPHA_PARENTHESIS_NESTED",
|
745
|
+
"NUMBERED_LOWERROMAN_PARENTHESIS_NESTED",
|
746
|
+
])
|
747
|
+
.describe("The preset type of bullet to use"),
|
748
|
+
})
|
749
|
+
.describe("Creates bullets for paragraphs"),
|
750
|
+
}),
|
751
|
+
zod_1.z.object({
|
752
|
+
deleteParagraphBullets: zod_1.z
|
753
|
+
.object({
|
754
|
+
range: zod_1.z
|
755
|
+
.object({
|
756
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
757
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
758
|
+
})
|
759
|
+
.describe("The range of paragraphs to remove bullets from"),
|
760
|
+
})
|
761
|
+
.describe("Deletes bullets from paragraphs"),
|
762
|
+
}),
|
763
|
+
zod_1.z.object({
|
764
|
+
insertPageBreak: zod_1.z
|
765
|
+
.object({
|
766
|
+
location: zod_1.z
|
767
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
768
|
+
.describe("The location at which to insert the page break"),
|
769
|
+
})
|
770
|
+
.describe("Inserts a page break"),
|
771
|
+
}),
|
772
|
+
zod_1.z.object({
|
773
|
+
updateDocumentStyle: zod_1.z
|
774
|
+
.object({
|
775
|
+
documentStyle: zod_1.z
|
776
|
+
.object({
|
777
|
+
background: zod_1.z
|
778
|
+
.object({})
|
779
|
+
.catchall(zod_1.z.any())
|
780
|
+
.describe("The background of the document")
|
781
|
+
.optional(),
|
782
|
+
defaultHeaderId: zod_1.z.string().describe("The ID of the default header").optional(),
|
783
|
+
defaultFooterId: zod_1.z.string().describe("The ID of the default footer").optional(),
|
784
|
+
evenPageHeaderId: zod_1.z.string().describe("The ID of the header used on even pages").optional(),
|
785
|
+
evenPageFooterId: zod_1.z.string().describe("The ID of the footer used on even pages").optional(),
|
786
|
+
firstPageHeaderId: zod_1.z
|
787
|
+
.string()
|
788
|
+
.describe("The ID of the header used on the first page")
|
789
|
+
.optional(),
|
790
|
+
firstPageFooterId: zod_1.z
|
791
|
+
.string()
|
792
|
+
.describe("The ID of the footer used on the first page")
|
793
|
+
.optional(),
|
794
|
+
marginTop: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The top page margin").optional(),
|
795
|
+
marginBottom: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The bottom page margin").optional(),
|
796
|
+
marginRight: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The right page margin").optional(),
|
797
|
+
marginLeft: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The left page margin").optional(),
|
798
|
+
pageNumberStart: zod_1.z
|
799
|
+
.number()
|
800
|
+
.int()
|
801
|
+
.describe("The page number from which to start counting")
|
802
|
+
.optional(),
|
803
|
+
pageSize: zod_1.z
|
804
|
+
.object({
|
805
|
+
width: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The width of the page").optional(),
|
806
|
+
height: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The height of the page").optional(),
|
807
|
+
})
|
808
|
+
.describe("The size of the pages in the document")
|
809
|
+
.optional(),
|
810
|
+
useCustomHeaderFooterMargins: zod_1.z
|
811
|
+
.boolean()
|
812
|
+
.describe("Whether to use custom margins for headers and footers")
|
813
|
+
.optional(),
|
814
|
+
})
|
815
|
+
.describe("The styles to set on the document"),
|
816
|
+
fields: zod_1.z.string().describe("The fields that should be updated"),
|
817
|
+
})
|
818
|
+
.describe("Updates the style of the document"),
|
819
|
+
}),
|
820
|
+
zod_1.z.object({
|
821
|
+
createHeader: zod_1.z
|
822
|
+
.object({
|
823
|
+
type: zod_1.z
|
824
|
+
.enum(["HEADER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"])
|
825
|
+
.describe("The type of header to create"),
|
826
|
+
})
|
827
|
+
.describe("Creates a header"),
|
828
|
+
}),
|
829
|
+
zod_1.z.object({
|
830
|
+
createFooter: zod_1.z
|
831
|
+
.object({
|
832
|
+
type: zod_1.z
|
833
|
+
.enum(["FOOTER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"])
|
834
|
+
.describe("The type of footer to create"),
|
835
|
+
})
|
836
|
+
.describe("Creates a footer"),
|
837
|
+
}),
|
838
|
+
zod_1.z.object({
|
839
|
+
updateTableCellStyle: zod_1.z
|
840
|
+
.object({
|
841
|
+
tableCellStyle: zod_1.z
|
842
|
+
.object({
|
843
|
+
backgroundColor: zod_1.z
|
844
|
+
.object({})
|
845
|
+
.catchall(zod_1.z.any())
|
846
|
+
.describe("The background color of the cells")
|
847
|
+
.optional(),
|
848
|
+
borderBottom: zod_1.z
|
849
|
+
.object({})
|
850
|
+
.catchall(zod_1.z.any())
|
851
|
+
.describe("The bottom border of the cells")
|
852
|
+
.optional(),
|
853
|
+
borderLeft: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The left border of the cells").optional(),
|
854
|
+
borderRight: zod_1.z
|
855
|
+
.object({})
|
856
|
+
.catchall(zod_1.z.any())
|
857
|
+
.describe("The right border of the cells")
|
858
|
+
.optional(),
|
859
|
+
borderTop: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The top border of the cells").optional(),
|
860
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns that the cell spans").optional(),
|
861
|
+
contentAlignment: zod_1.z
|
862
|
+
.string()
|
863
|
+
.describe("The alignment of the content within the cells")
|
864
|
+
.optional(),
|
865
|
+
paddingBottom: zod_1.z
|
866
|
+
.object({})
|
867
|
+
.catchall(zod_1.z.any())
|
868
|
+
.describe("The bottom padding of the cells")
|
869
|
+
.optional(),
|
870
|
+
paddingLeft: zod_1.z
|
871
|
+
.object({})
|
872
|
+
.catchall(zod_1.z.any())
|
873
|
+
.describe("The left padding of the cells")
|
874
|
+
.optional(),
|
875
|
+
paddingRight: zod_1.z
|
876
|
+
.object({})
|
877
|
+
.catchall(zod_1.z.any())
|
878
|
+
.describe("The right padding of the cells")
|
879
|
+
.optional(),
|
880
|
+
paddingTop: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The top padding of the cells").optional(),
|
881
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows that the cell spans").optional(),
|
882
|
+
})
|
883
|
+
.describe("The style to apply to the cells"),
|
884
|
+
fields: zod_1.z.string().describe("The fields that should be updated"),
|
885
|
+
tableRange: zod_1.z
|
886
|
+
.object({
|
887
|
+
tableCellLocation: zod_1.z
|
888
|
+
.object({
|
889
|
+
tableStartLocation: zod_1.z
|
890
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
891
|
+
.describe("The location where the table starts"),
|
892
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
893
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
894
|
+
})
|
895
|
+
.describe("The location of the table cell"),
|
896
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows that the range should span"),
|
897
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns that the range should span"),
|
898
|
+
})
|
899
|
+
.describe("The table range to apply the style to"),
|
900
|
+
})
|
901
|
+
.describe("Updates the style of table cells"),
|
902
|
+
}),
|
903
|
+
zod_1.z.object({
|
904
|
+
mergeTableCells: zod_1.z
|
905
|
+
.object({
|
906
|
+
tableRange: zod_1.z
|
907
|
+
.object({
|
908
|
+
tableCellLocation: zod_1.z
|
909
|
+
.object({
|
910
|
+
tableStartLocation: zod_1.z
|
911
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
912
|
+
.describe("The location where the table starts"),
|
913
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
914
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
915
|
+
})
|
916
|
+
.describe("The location of the table cell"),
|
917
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows that the range should span"),
|
918
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns that the range should span"),
|
919
|
+
})
|
920
|
+
.describe("The table range to merge"),
|
921
|
+
})
|
922
|
+
.describe("Merges table cells together"),
|
923
|
+
}),
|
924
|
+
zod_1.z.object({
|
925
|
+
unmergeTableCells: zod_1.z
|
926
|
+
.object({
|
927
|
+
tableRange: zod_1.z
|
928
|
+
.object({
|
929
|
+
tableCellLocation: zod_1.z
|
930
|
+
.object({
|
931
|
+
tableStartLocation: zod_1.z
|
932
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
933
|
+
.describe("The location where the table starts"),
|
934
|
+
rowIndex: zod_1.z.number().int().describe("The zero-based row index").optional(),
|
935
|
+
columnIndex: zod_1.z.number().int().describe("The zero-based column index").optional(),
|
936
|
+
})
|
937
|
+
.describe("The location of the table cell"),
|
938
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows that the range should span"),
|
939
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns that the range should span"),
|
940
|
+
})
|
941
|
+
.describe("The table range to unmerge"),
|
942
|
+
})
|
943
|
+
.describe("Unmerges merged table cells"),
|
944
|
+
}),
|
945
|
+
zod_1.z.object({
|
946
|
+
createNamedRange: zod_1.z
|
947
|
+
.object({
|
948
|
+
name: zod_1.z.string().describe("The name of the range"),
|
949
|
+
range: zod_1.z
|
950
|
+
.object({
|
951
|
+
startIndex: zod_1.z.number().int().describe("The zero-based starting index of the range"),
|
952
|
+
endIndex: zod_1.z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
953
|
+
})
|
954
|
+
.describe("The range to name"),
|
955
|
+
})
|
956
|
+
.describe("Creates a named range"),
|
957
|
+
}),
|
958
|
+
zod_1.z.object({
|
959
|
+
deleteNamedRange: zod_1.z
|
960
|
+
.object({ name: zod_1.z.string().describe("The name of the range to delete") })
|
961
|
+
.describe("Deletes a named range"),
|
962
|
+
}),
|
963
|
+
zod_1.z.object({
|
964
|
+
replaceNamedRangeContent: zod_1.z
|
965
|
+
.object({
|
966
|
+
name: zod_1.z.string().describe("The name of the range to replace"),
|
967
|
+
text: zod_1.z.string().describe("The text to replace with"),
|
968
|
+
})
|
969
|
+
.describe("Replaces the content of a named range"),
|
970
|
+
}),
|
971
|
+
zod_1.z.object({
|
972
|
+
insertInlineImage: zod_1.z
|
973
|
+
.object({
|
974
|
+
location: zod_1.z
|
975
|
+
.object({ index: zod_1.z.number().int().describe("The zero-based index in the document") })
|
976
|
+
.describe("The location at which to insert the image"),
|
977
|
+
uri: zod_1.z.string().describe("The image URI"),
|
978
|
+
objectSize: zod_1.z
|
979
|
+
.object({
|
980
|
+
width: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The width of the image").optional(),
|
981
|
+
height: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The height of the image").optional(),
|
982
|
+
})
|
983
|
+
.describe("The size that the object should appear as in the document"),
|
984
|
+
})
|
985
|
+
.describe("Inserts an inline image at a specific location"),
|
986
|
+
}),
|
987
|
+
zod_1.z.object({
|
988
|
+
deleteHeader: zod_1.z
|
989
|
+
.object({ headerId: zod_1.z.string().describe("The ID of the header to delete") })
|
990
|
+
.describe("Deletes a header"),
|
991
|
+
}),
|
992
|
+
zod_1.z.object({
|
993
|
+
deleteFooter: zod_1.z
|
994
|
+
.object({ footerId: zod_1.z.string().describe("The ID of the footer to delete") })
|
995
|
+
.describe("Deletes a footer"),
|
996
|
+
}),
|
997
|
+
];
|
998
|
+
const errors = schemas.reduce((errors, schema) => (result => (result.error ? [...errors, result.error] : errors))(schema.safeParse(x)), []);
|
999
|
+
if (schemas.length - errors.length !== 1) {
|
1000
|
+
ctx.addIssue({
|
1001
|
+
path: ctx.path,
|
1002
|
+
code: "invalid_union",
|
1003
|
+
unionErrors: errors,
|
1004
|
+
message: "Invalid input: Should pass single schema",
|
1005
|
+
});
|
1006
|
+
}
|
1007
|
+
}))
|
1008
|
+
.describe("A single update request that must contain exactly one of the following operations"))
|
1009
|
+
.describe("Array of requests to apply to the document. See https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#Request")
|
1010
|
+
.optional(),
|
1011
|
+
});
|
1012
|
+
exports.googleOauthUpdateDocOutputSchema = zod_1.z.object({
|
1013
|
+
success: zod_1.z.boolean().describe("Whether the document was updated successfully"),
|
1014
|
+
documentId: zod_1.z.string().describe("The ID of the updated Google Doc").optional(),
|
1015
|
+
documentUrl: zod_1.z.string().describe("The URL to access the updated Google Doc").optional(),
|
1016
|
+
error: zod_1.z.string().describe("The error message if the update failed").optional(),
|
1017
|
+
});
|
395
1018
|
exports.googleOauthScheduleCalendarMeetingParamsSchema = zod_1.z.object({
|
396
1019
|
calendarId: zod_1.z.string().describe("The ID of the calendar to schedule the meeting on"),
|
397
1020
|
name: zod_1.z.string().describe("The name of the meeting"),
|
@@ -410,6 +1033,897 @@ exports.googleOauthScheduleCalendarMeetingOutputSchema = zod_1.z.object({
|
|
410
1033
|
eventUrl: zod_1.z.string().describe("The URL to access the scheduled event").optional(),
|
411
1034
|
error: zod_1.z.string().describe("The error that occurred if the meeting was not scheduled successfully").optional(),
|
412
1035
|
});
|
1036
|
+
exports.googleOauthCreateSpreadsheetParamsSchema = zod_1.z.object({
|
1037
|
+
title: zod_1.z.string().describe("The title of the new spreadsheet"),
|
1038
|
+
sheets: zod_1.z
|
1039
|
+
.array(zod_1.z.object({
|
1040
|
+
title: zod_1.z.string().describe("The title of the sheet").optional(),
|
1041
|
+
gridProperties: zod_1.z
|
1042
|
+
.object({
|
1043
|
+
rowCount: zod_1.z.number().int().describe("The number of rows in the sheet").optional(),
|
1044
|
+
columnCount: zod_1.z.number().int().describe("The number of columns in the sheet").optional(),
|
1045
|
+
frozenRowCount: zod_1.z.number().int().describe("The number of frozen rows").optional(),
|
1046
|
+
frozenColumnCount: zod_1.z.number().int().describe("The number of frozen columns").optional(),
|
1047
|
+
})
|
1048
|
+
.optional(),
|
1049
|
+
}))
|
1050
|
+
.describe("The initial sheets to create in the spreadsheet")
|
1051
|
+
.optional(),
|
1052
|
+
properties: zod_1.z
|
1053
|
+
.object({
|
1054
|
+
locale: zod_1.z.string().describe("The locale of the spreadsheet (e.g., en_US)").optional(),
|
1055
|
+
timeZone: zod_1.z.string().describe("The time zone of the spreadsheet (e.g., America/New_York)").optional(),
|
1056
|
+
autoRecalc: zod_1.z.enum(["ON_CHANGE", "MINUTE", "HOUR"]).describe("When to recalculate the spreadsheet").optional(),
|
1057
|
+
})
|
1058
|
+
.describe("Properties for the spreadsheet")
|
1059
|
+
.optional(),
|
1060
|
+
});
|
1061
|
+
exports.googleOauthCreateSpreadsheetOutputSchema = zod_1.z.object({
|
1062
|
+
success: zod_1.z.boolean().describe("Whether the spreadsheet was created successfully"),
|
1063
|
+
spreadsheetId: zod_1.z.string().describe("The ID of the created spreadsheet").optional(),
|
1064
|
+
spreadsheetUrl: zod_1.z.string().describe("The URL to access the created spreadsheet").optional(),
|
1065
|
+
sheets: zod_1.z
|
1066
|
+
.array(zod_1.z.object({
|
1067
|
+
sheetId: zod_1.z.number().int().describe("The ID of the sheet").optional(),
|
1068
|
+
title: zod_1.z.string().describe("The title of the sheet").optional(),
|
1069
|
+
index: zod_1.z.number().int().describe("The index of the sheet").optional(),
|
1070
|
+
}))
|
1071
|
+
.describe("Information about the created sheets")
|
1072
|
+
.optional(),
|
1073
|
+
error: zod_1.z.string().describe("The error that occurred if the spreadsheet was not created successfully").optional(),
|
1074
|
+
});
|
1075
|
+
exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
1076
|
+
spreadsheetId: zod_1.z.string().describe("The ID of the Google Spreadsheet to update"),
|
1077
|
+
requests: zod_1.z
|
1078
|
+
.array(zod_1.z
|
1079
|
+
.object({})
|
1080
|
+
.catchall(zod_1.z.any())
|
1081
|
+
.and(zod_1.z.any().superRefine((x, ctx) => {
|
1082
|
+
const schemas = [
|
1083
|
+
zod_1.z
|
1084
|
+
.object({
|
1085
|
+
addSheet: zod_1.z
|
1086
|
+
.object({
|
1087
|
+
properties: zod_1.z
|
1088
|
+
.object({
|
1089
|
+
title: zod_1.z.string().describe("The title of the new sheet").optional(),
|
1090
|
+
gridProperties: zod_1.z
|
1091
|
+
.object({
|
1092
|
+
rowCount: zod_1.z.number().int().describe("The number of rows in the sheet").optional(),
|
1093
|
+
columnCount: zod_1.z.number().int().describe("The number of columns in the sheet").optional(),
|
1094
|
+
})
|
1095
|
+
.optional(),
|
1096
|
+
})
|
1097
|
+
.optional(),
|
1098
|
+
})
|
1099
|
+
.optional(),
|
1100
|
+
})
|
1101
|
+
.describe("Add or update a sheet"),
|
1102
|
+
zod_1.z
|
1103
|
+
.object({
|
1104
|
+
deleteSheet: zod_1.z
|
1105
|
+
.object({ sheetId: zod_1.z.number().int().describe("The ID of the sheet to delete").optional() })
|
1106
|
+
.optional(),
|
1107
|
+
})
|
1108
|
+
.describe("Delete a sheet"),
|
1109
|
+
zod_1.z
|
1110
|
+
.object({
|
1111
|
+
updateCells: zod_1.z
|
1112
|
+
.object({
|
1113
|
+
range: zod_1.z
|
1114
|
+
.object({
|
1115
|
+
sheetId: zod_1.z.number().int().describe("The ID of the sheet").optional(),
|
1116
|
+
startRowIndex: zod_1.z.number().int().describe("The start row (0-based, inclusive)").optional(),
|
1117
|
+
endRowIndex: zod_1.z.number().int().describe("The end row (0-based, exclusive)").optional(),
|
1118
|
+
startColumnIndex: zod_1.z
|
1119
|
+
.number()
|
1120
|
+
.int()
|
1121
|
+
.describe("The start column (0-based, inclusive)")
|
1122
|
+
.optional(),
|
1123
|
+
endColumnIndex: zod_1.z.number().int().describe("The end column (0-based, exclusive)").optional(),
|
1124
|
+
})
|
1125
|
+
.optional(),
|
1126
|
+
rows: zod_1.z
|
1127
|
+
.array(zod_1.z.object({
|
1128
|
+
values: zod_1.z
|
1129
|
+
.array(zod_1.z.object({
|
1130
|
+
userEnteredValue: zod_1.z
|
1131
|
+
.object({
|
1132
|
+
stringValue: zod_1.z.string().optional(),
|
1133
|
+
numberValue: zod_1.z.number().optional(),
|
1134
|
+
boolValue: zod_1.z.boolean().optional(),
|
1135
|
+
formulaValue: zod_1.z.string().optional(),
|
1136
|
+
})
|
1137
|
+
.optional(),
|
1138
|
+
}))
|
1139
|
+
.optional(),
|
1140
|
+
}))
|
1141
|
+
.optional(),
|
1142
|
+
})
|
1143
|
+
.optional(),
|
1144
|
+
})
|
1145
|
+
.describe("Update cells in a range"),
|
1146
|
+
zod_1.z
|
1147
|
+
.object({
|
1148
|
+
updateSheetProperties: zod_1.z
|
1149
|
+
.object({
|
1150
|
+
properties: zod_1.z
|
1151
|
+
.object({
|
1152
|
+
sheetId: zod_1.z.number().int().describe("The ID of the sheet to update").optional(),
|
1153
|
+
title: zod_1.z.string().describe("The new title of the sheet").optional(),
|
1154
|
+
gridProperties: zod_1.z
|
1155
|
+
.object({
|
1156
|
+
rowCount: zod_1.z.number().int().describe("The new number of rows").optional(),
|
1157
|
+
columnCount: zod_1.z.number().int().describe("The new number of columns").optional(),
|
1158
|
+
frozenRowCount: zod_1.z.number().int().describe("The number of frozen rows").optional(),
|
1159
|
+
frozenColumnCount: zod_1.z.number().int().describe("The number of frozen columns").optional(),
|
1160
|
+
})
|
1161
|
+
.optional(),
|
1162
|
+
})
|
1163
|
+
.optional(),
|
1164
|
+
fields: zod_1.z
|
1165
|
+
.string()
|
1166
|
+
.describe("The fields to update (comma-separated list using JSON field paths)")
|
1167
|
+
.optional(),
|
1168
|
+
})
|
1169
|
+
.optional(),
|
1170
|
+
})
|
1171
|
+
.describe("Update sheet properties"),
|
1172
|
+
zod_1.z
|
1173
|
+
.object({
|
1174
|
+
updateSpreadsheetProperties: zod_1.z
|
1175
|
+
.object({
|
1176
|
+
properties: zod_1.z
|
1177
|
+
.object({
|
1178
|
+
title: zod_1.z.string().describe("The title of the spreadsheet").optional(),
|
1179
|
+
locale: zod_1.z.string().describe("The locale of the spreadsheet (e.g., en_US)").optional(),
|
1180
|
+
timeZone: zod_1.z
|
1181
|
+
.string()
|
1182
|
+
.describe("The time zone of the spreadsheet (e.g., America/New_York)")
|
1183
|
+
.optional(),
|
1184
|
+
autoRecalc: zod_1.z
|
1185
|
+
.enum(["ON_CHANGE", "MINUTE", "HOUR"])
|
1186
|
+
.describe("When to recalculate the spreadsheet")
|
1187
|
+
.optional(),
|
1188
|
+
defaultFormat: zod_1.z
|
1189
|
+
.object({
|
1190
|
+
backgroundColor: zod_1.z
|
1191
|
+
.object({
|
1192
|
+
red: zod_1.z.number().describe("The red component [0.0, 1.0]").optional(),
|
1193
|
+
green: zod_1.z.number().describe("The green component [0.0, 1.0]").optional(),
|
1194
|
+
blue: zod_1.z.number().describe("The blue component [0.0, 1.0]").optional(),
|
1195
|
+
alpha: zod_1.z.number().describe("The alpha component [0.0, 1.0]").optional(),
|
1196
|
+
})
|
1197
|
+
.optional(),
|
1198
|
+
numberFormat: zod_1.z
|
1199
|
+
.object({
|
1200
|
+
type: zod_1.z
|
1201
|
+
.enum([
|
1202
|
+
"TEXT",
|
1203
|
+
"NUMBER",
|
1204
|
+
"PERCENT",
|
1205
|
+
"CURRENCY",
|
1206
|
+
"DATE",
|
1207
|
+
"TIME",
|
1208
|
+
"DATE_TIME",
|
1209
|
+
"SCIENTIFIC",
|
1210
|
+
])
|
1211
|
+
.describe("The type of the number format")
|
1212
|
+
.optional(),
|
1213
|
+
pattern: zod_1.z.string().describe("Pattern string used for formatting").optional(),
|
1214
|
+
})
|
1215
|
+
.optional(),
|
1216
|
+
textFormat: zod_1.z
|
1217
|
+
.object({
|
1218
|
+
foregroundColor: zod_1.z
|
1219
|
+
.object({
|
1220
|
+
red: zod_1.z.number().describe("The red component [0.0, 1.0]").optional(),
|
1221
|
+
green: zod_1.z.number().describe("The green component [0.0, 1.0]").optional(),
|
1222
|
+
blue: zod_1.z.number().describe("The blue component [0.0, 1.0]").optional(),
|
1223
|
+
alpha: zod_1.z.number().describe("The alpha component [0.0, 1.0]").optional(),
|
1224
|
+
})
|
1225
|
+
.optional(),
|
1226
|
+
fontFamily: zod_1.z.string().describe("The font family").optional(),
|
1227
|
+
fontSize: zod_1.z.number().int().describe("The size of the font in points").optional(),
|
1228
|
+
bold: zod_1.z.boolean().describe("Whether the text is bold").optional(),
|
1229
|
+
italic: zod_1.z.boolean().describe("Whether the text is italic").optional(),
|
1230
|
+
strikethrough: zod_1.z
|
1231
|
+
.boolean()
|
1232
|
+
.describe("Whether the text has a strikethrough")
|
1233
|
+
.optional(),
|
1234
|
+
underline: zod_1.z.boolean().describe("Whether the text is underlined").optional(),
|
1235
|
+
})
|
1236
|
+
.optional(),
|
1237
|
+
})
|
1238
|
+
.optional(),
|
1239
|
+
})
|
1240
|
+
.optional(),
|
1241
|
+
fields: zod_1.z
|
1242
|
+
.string()
|
1243
|
+
.describe("The fields to update (comma-separated list using JSON field paths)")
|
1244
|
+
.optional(),
|
1245
|
+
})
|
1246
|
+
.optional(),
|
1247
|
+
})
|
1248
|
+
.describe("Update spreadsheet properties"),
|
1249
|
+
];
|
1250
|
+
const errors = schemas.reduce((errors, schema) => (result => (result.error ? [...errors, result.error] : errors))(schema.safeParse(x)), []);
|
1251
|
+
if (schemas.length - errors.length !== 1) {
|
1252
|
+
ctx.addIssue({
|
1253
|
+
path: ctx.path,
|
1254
|
+
code: "invalid_union",
|
1255
|
+
unionErrors: errors,
|
1256
|
+
message: "Invalid input: Should pass single schema",
|
1257
|
+
});
|
1258
|
+
}
|
1259
|
+
})))
|
1260
|
+
.describe("The requests to update the spreadsheet with"),
|
1261
|
+
});
|
1262
|
+
exports.googleOauthUpdateSpreadsheetOutputSchema = zod_1.z.object({
|
1263
|
+
success: zod_1.z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
1264
|
+
spreadsheetUrl: zod_1.z.string().describe("The URL of the updated spreadsheet").optional(),
|
1265
|
+
replies: zod_1.z
|
1266
|
+
.array(zod_1.z
|
1267
|
+
.object({})
|
1268
|
+
.catchall(zod_1.z.any())
|
1269
|
+
.and(zod_1.z
|
1270
|
+
.object({
|
1271
|
+
addSheet: zod_1.z
|
1272
|
+
.object({
|
1273
|
+
properties: zod_1.z
|
1274
|
+
.object({
|
1275
|
+
sheetId: zod_1.z.number().int().describe("The ID of the newly created sheet").optional(),
|
1276
|
+
title: zod_1.z.string().describe("The title of the new sheet").optional(),
|
1277
|
+
index: zod_1.z.number().int().describe("The index of the new sheet").optional(),
|
1278
|
+
})
|
1279
|
+
.optional(),
|
1280
|
+
})
|
1281
|
+
.optional(),
|
1282
|
+
})
|
1283
|
+
.describe("Reply to adding a sheet"))
|
1284
|
+
.describe("The reply to a request"))
|
1285
|
+
.describe("The replies to the requests")
|
1286
|
+
.optional(),
|
1287
|
+
error: zod_1.z.string().describe("The error that occurred if the spreadsheet was not updated successfully").optional(),
|
1288
|
+
});
|
1289
|
+
exports.googleOauthCreatePresentationParamsSchema = zod_1.z.object({
|
1290
|
+
title: zod_1.z.string().describe("The title of the presentation"),
|
1291
|
+
pageSize: zod_1.z
|
1292
|
+
.object({
|
1293
|
+
width: zod_1.z
|
1294
|
+
.object({
|
1295
|
+
unit: zod_1.z.enum(["EMU", "PT"]).describe("The unit of the width").optional(),
|
1296
|
+
magnitude: zod_1.z.number().describe("The width of the presentation").optional(),
|
1297
|
+
})
|
1298
|
+
.describe("The width object of the presentation")
|
1299
|
+
.optional(),
|
1300
|
+
height: zod_1.z
|
1301
|
+
.object({
|
1302
|
+
unit: zod_1.z.enum(["EMU", "PT"]).describe("The unit of the height").optional(),
|
1303
|
+
magnitude: zod_1.z.number().describe("The height of the presentation").optional(),
|
1304
|
+
})
|
1305
|
+
.describe("The height object of the presentation")
|
1306
|
+
.optional(),
|
1307
|
+
})
|
1308
|
+
.optional(),
|
1309
|
+
});
|
1310
|
+
exports.googleOauthCreatePresentationOutputSchema = zod_1.z.object({
|
1311
|
+
success: zod_1.z.boolean().describe("Whether the presentation was created successfully"),
|
1312
|
+
error: zod_1.z.string().describe("The error that occurred if the presentation was not created successfully").optional(),
|
1313
|
+
presentationId: zod_1.z.string().describe("The ID of the created presentation").optional(),
|
1314
|
+
presentationUrl: zod_1.z.string().describe("The URL of the created presentation").optional(),
|
1315
|
+
});
|
1316
|
+
exports.googleOauthUpdatePresentationParamsSchema = zod_1.z.object({
|
1317
|
+
presentationId: zod_1.z.string().describe("The ID of the presentation to update"),
|
1318
|
+
requests: zod_1.z
|
1319
|
+
.array(zod_1.z
|
1320
|
+
.object({})
|
1321
|
+
.catchall(zod_1.z.any())
|
1322
|
+
.and(zod_1.z.any().superRefine((x, ctx) => {
|
1323
|
+
const schemas = [
|
1324
|
+
zod_1.z.object({
|
1325
|
+
createSlide: zod_1.z
|
1326
|
+
.object({
|
1327
|
+
objectId: zod_1.z.string().describe("The object ID for the created slide").optional(),
|
1328
|
+
insertionIndex: zod_1.z
|
1329
|
+
.number()
|
1330
|
+
.int()
|
1331
|
+
.describe("The 0-based index where the new slide should be inserted")
|
1332
|
+
.optional(),
|
1333
|
+
slideLayoutReference: zod_1.z
|
1334
|
+
.object({ predefinedLayout: zod_1.z.string().describe("Predefined layout of the slide").optional() })
|
1335
|
+
.describe("Layout reference of the slide to be created")
|
1336
|
+
.optional(),
|
1337
|
+
})
|
1338
|
+
.describe("Creates a new slide in the presentation"),
|
1339
|
+
}),
|
1340
|
+
zod_1.z.object({
|
1341
|
+
createShape: zod_1.z
|
1342
|
+
.object({
|
1343
|
+
objectId: zod_1.z.string().describe("The object ID for the created shape"),
|
1344
|
+
shapeType: zod_1.z.string().describe("The type of shape to create"),
|
1345
|
+
elementProperties: zod_1.z
|
1346
|
+
.object({})
|
1347
|
+
.catchall(zod_1.z.any())
|
1348
|
+
.describe("The element's size and position")
|
1349
|
+
.optional(),
|
1350
|
+
})
|
1351
|
+
.describe("Creates a new shape in the presentation"),
|
1352
|
+
}),
|
1353
|
+
zod_1.z.object({
|
1354
|
+
createTable: zod_1.z
|
1355
|
+
.object({
|
1356
|
+
objectId: zod_1.z.string().describe("The object ID for the created table").optional(),
|
1357
|
+
rows: zod_1.z.number().int().describe("Number of rows in the table"),
|
1358
|
+
columns: zod_1.z.number().int().describe("Number of columns in the table"),
|
1359
|
+
elementProperties: zod_1.z
|
1360
|
+
.object({})
|
1361
|
+
.catchall(zod_1.z.any())
|
1362
|
+
.describe("The element's size and position")
|
1363
|
+
.optional(),
|
1364
|
+
})
|
1365
|
+
.describe("Creates a new table in the presentation"),
|
1366
|
+
}),
|
1367
|
+
zod_1.z.object({
|
1368
|
+
insertText: zod_1.z
|
1369
|
+
.object({
|
1370
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell"),
|
1371
|
+
text: zod_1.z.string().describe("The text to be inserted"),
|
1372
|
+
insertionIndex: zod_1.z.number().int().describe("The index where the text will be inserted").optional(),
|
1373
|
+
})
|
1374
|
+
.describe("Inserts text into a shape or table cell"),
|
1375
|
+
}),
|
1376
|
+
zod_1.z.object({
|
1377
|
+
insertTableRows: zod_1.z
|
1378
|
+
.object({
|
1379
|
+
tableObjectId: zod_1.z.string().describe("The table to insert rows into"),
|
1380
|
+
insertBelow: zod_1.z.boolean().describe("Whether to insert the rows below the reference cell"),
|
1381
|
+
number: zod_1.z.number().int().describe("The number of rows to insert").optional(),
|
1382
|
+
cellLocation: zod_1.z
|
1383
|
+
.object({})
|
1384
|
+
.catchall(zod_1.z.any())
|
1385
|
+
.describe("The location where rows will be inserted")
|
1386
|
+
.optional(),
|
1387
|
+
})
|
1388
|
+
.describe("Inserts rows into a table"),
|
1389
|
+
}),
|
1390
|
+
zod_1.z.object({
|
1391
|
+
insertTableColumns: zod_1.z
|
1392
|
+
.object({
|
1393
|
+
tableObjectId: zod_1.z.string().describe("The table to insert columns into"),
|
1394
|
+
insertRight: zod_1.z
|
1395
|
+
.boolean()
|
1396
|
+
.describe("Whether to insert the columns to the right of the reference cell"),
|
1397
|
+
number: zod_1.z.number().int().describe("The number of columns to insert").optional(),
|
1398
|
+
cellLocation: zod_1.z
|
1399
|
+
.object({})
|
1400
|
+
.catchall(zod_1.z.any())
|
1401
|
+
.describe("The location where columns will be inserted")
|
1402
|
+
.optional(),
|
1403
|
+
})
|
1404
|
+
.describe("Inserts columns into a table"),
|
1405
|
+
}),
|
1406
|
+
zod_1.z.object({
|
1407
|
+
deleteTableRow: zod_1.z
|
1408
|
+
.object({
|
1409
|
+
tableObjectId: zod_1.z.string().describe("The table to delete a row from"),
|
1410
|
+
cellLocation: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The location of the row to delete"),
|
1411
|
+
})
|
1412
|
+
.describe("Deletes a row from a table"),
|
1413
|
+
}),
|
1414
|
+
zod_1.z.object({
|
1415
|
+
deleteTableColumn: zod_1.z
|
1416
|
+
.object({
|
1417
|
+
tableObjectId: zod_1.z.string().describe("The table to delete a column from"),
|
1418
|
+
cellLocation: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The location of the column to delete"),
|
1419
|
+
})
|
1420
|
+
.describe("Deletes a column from a table"),
|
1421
|
+
}),
|
1422
|
+
zod_1.z.object({
|
1423
|
+
replaceAllText: zod_1.z
|
1424
|
+
.object({
|
1425
|
+
replaceText: zod_1.z.string().describe("The text that will replace the matched text"),
|
1426
|
+
containsText: zod_1.z
|
1427
|
+
.object({
|
1428
|
+
text: zod_1.z.string().describe("The text to search for in the presentation"),
|
1429
|
+
matchCase: zod_1.z.boolean().describe("Whether the search should be case sensitive").optional(),
|
1430
|
+
})
|
1431
|
+
.describe("The text to search for"),
|
1432
|
+
})
|
1433
|
+
.describe("Replaces all instances of text matching a criteria"),
|
1434
|
+
}),
|
1435
|
+
zod_1.z.object({
|
1436
|
+
deleteObject: zod_1.z
|
1437
|
+
.object({ objectId: zod_1.z.string().describe("The object ID of the element to delete") })
|
1438
|
+
.describe("Deletes an object from the presentation"),
|
1439
|
+
}),
|
1440
|
+
zod_1.z.object({
|
1441
|
+
updatePageElementTransform: zod_1.z
|
1442
|
+
.object({
|
1443
|
+
objectId: zod_1.z.string().describe("The object ID of the element to update"),
|
1444
|
+
transform: zod_1.z
|
1445
|
+
.object({
|
1446
|
+
scaleX: zod_1.z.number().describe("The horizontal scale factor").optional(),
|
1447
|
+
scaleY: zod_1.z.number().describe("The vertical scale factor").optional(),
|
1448
|
+
translateX: zod_1.z.number().describe("The horizontal translation").optional(),
|
1449
|
+
translateY: zod_1.z.number().describe("The vertical translation").optional(),
|
1450
|
+
unit: zod_1.z.string().describe("The unit for translate values").optional(),
|
1451
|
+
})
|
1452
|
+
.describe("The transform to apply"),
|
1453
|
+
})
|
1454
|
+
.describe("Updates the transform of a page element"),
|
1455
|
+
}),
|
1456
|
+
zod_1.z.object({
|
1457
|
+
updateSlidesPosition: zod_1.z
|
1458
|
+
.object({
|
1459
|
+
slideObjectIds: zod_1.z.array(zod_1.z.string()).describe("The IDs of the slides to reorder"),
|
1460
|
+
insertionIndex: zod_1.z
|
1461
|
+
.number()
|
1462
|
+
.int()
|
1463
|
+
.describe("The 0-based index where the slides should be moved to")
|
1464
|
+
.optional(),
|
1465
|
+
})
|
1466
|
+
.describe("Updates the position of slides in the presentation"),
|
1467
|
+
}),
|
1468
|
+
zod_1.z.object({
|
1469
|
+
deleteText: zod_1.z
|
1470
|
+
.object({
|
1471
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell"),
|
1472
|
+
textRange: zod_1.z
|
1473
|
+
.object({
|
1474
|
+
startIndex: zod_1.z.number().int().describe("The starting index of the range (0-based)").optional(),
|
1475
|
+
endIndex: zod_1.z.number().int().describe("The ending index of the range (0-based)").optional(),
|
1476
|
+
})
|
1477
|
+
.describe("The range of text to delete")
|
1478
|
+
.optional(),
|
1479
|
+
})
|
1480
|
+
.describe("Deletes text from a shape or table cell"),
|
1481
|
+
}),
|
1482
|
+
zod_1.z.object({
|
1483
|
+
createImage: zod_1.z
|
1484
|
+
.object({
|
1485
|
+
objectId: zod_1.z.string().describe("The object ID for the created image").optional(),
|
1486
|
+
url: zod_1.z.string().describe("The URL of the image to insert"),
|
1487
|
+
elementProperties: zod_1.z
|
1488
|
+
.object({})
|
1489
|
+
.catchall(zod_1.z.any())
|
1490
|
+
.describe("The element's size and position")
|
1491
|
+
.optional(),
|
1492
|
+
})
|
1493
|
+
.describe("Creates an image in the presentation"),
|
1494
|
+
}),
|
1495
|
+
zod_1.z.object({
|
1496
|
+
createVideo: zod_1.z
|
1497
|
+
.object({
|
1498
|
+
objectId: zod_1.z.string().describe("The object ID for the created video").optional(),
|
1499
|
+
url: zod_1.z.string().describe("The URL of the video to insert"),
|
1500
|
+
elementProperties: zod_1.z
|
1501
|
+
.object({})
|
1502
|
+
.catchall(zod_1.z.any())
|
1503
|
+
.describe("The element's size and position")
|
1504
|
+
.optional(),
|
1505
|
+
})
|
1506
|
+
.describe("Creates a video in the presentation"),
|
1507
|
+
}),
|
1508
|
+
zod_1.z.object({
|
1509
|
+
createSheetsChart: zod_1.z
|
1510
|
+
.object({
|
1511
|
+
objectId: zod_1.z.string().describe("The object ID for the created chart").optional(),
|
1512
|
+
spreadsheetId: zod_1.z.string().describe("The ID of the Google Sheets spreadsheet containing the chart"),
|
1513
|
+
chartId: zod_1.z.number().int().describe("The ID of the specific chart in the spreadsheet"),
|
1514
|
+
elementProperties: zod_1.z
|
1515
|
+
.object({})
|
1516
|
+
.catchall(zod_1.z.any())
|
1517
|
+
.describe("The element's size and position")
|
1518
|
+
.optional(),
|
1519
|
+
})
|
1520
|
+
.describe("Creates a linked chart from Google Sheets"),
|
1521
|
+
}),
|
1522
|
+
zod_1.z.object({
|
1523
|
+
createLine: zod_1.z
|
1524
|
+
.object({
|
1525
|
+
objectId: zod_1.z.string().describe("The object ID for the created line").optional(),
|
1526
|
+
lineCategory: zod_1.z.string().describe("The category of line to create"),
|
1527
|
+
elementProperties: zod_1.z
|
1528
|
+
.object({})
|
1529
|
+
.catchall(zod_1.z.any())
|
1530
|
+
.describe("The element's size and position")
|
1531
|
+
.optional(),
|
1532
|
+
})
|
1533
|
+
.describe("Creates a line in the presentation"),
|
1534
|
+
}),
|
1535
|
+
zod_1.z.object({
|
1536
|
+
refreshSheetsChart: zod_1.z
|
1537
|
+
.object({ objectId: zod_1.z.string().describe("The object ID of the chart to refresh") })
|
1538
|
+
.describe("Refreshes an existing linked sheets chart"),
|
1539
|
+
}),
|
1540
|
+
zod_1.z.object({
|
1541
|
+
updateShapeProperties: zod_1.z
|
1542
|
+
.object({
|
1543
|
+
objectId: zod_1.z.string().describe("The object ID of the shape"),
|
1544
|
+
shapeProperties: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The properties to update"),
|
1545
|
+
})
|
1546
|
+
.describe("Updates the properties of a shape"),
|
1547
|
+
}),
|
1548
|
+
zod_1.z.object({
|
1549
|
+
updateImageProperties: zod_1.z
|
1550
|
+
.object({
|
1551
|
+
objectId: zod_1.z.string().describe("The object ID of the image"),
|
1552
|
+
imageProperties: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The properties to update"),
|
1553
|
+
})
|
1554
|
+
.describe("Updates the properties of an image"),
|
1555
|
+
}),
|
1556
|
+
zod_1.z.object({
|
1557
|
+
updateVideoProperties: zod_1.z
|
1558
|
+
.object({
|
1559
|
+
objectId: zod_1.z.string().describe("The object ID of the video"),
|
1560
|
+
videoProperties: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The properties to update"),
|
1561
|
+
})
|
1562
|
+
.describe("Updates the properties of a video"),
|
1563
|
+
}),
|
1564
|
+
zod_1.z.object({
|
1565
|
+
updatePageProperties: zod_1.z
|
1566
|
+
.object({
|
1567
|
+
objectId: zod_1.z.string().describe("The object ID of the page"),
|
1568
|
+
pageProperties: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The properties to update"),
|
1569
|
+
})
|
1570
|
+
.describe("Updates the properties of a page"),
|
1571
|
+
}),
|
1572
|
+
zod_1.z.object({
|
1573
|
+
updateTableCellProperties: zod_1.z
|
1574
|
+
.object({
|
1575
|
+
objectId: zod_1.z.string().describe("The object ID of the table cell"),
|
1576
|
+
tableCellProperties: zod_1.z
|
1577
|
+
.object({})
|
1578
|
+
.catchall(zod_1.z.any())
|
1579
|
+
.describe("The properties to update for the table cell"),
|
1580
|
+
fields: zod_1.z
|
1581
|
+
.string()
|
1582
|
+
.describe("Comma-separated list of fields to update (e.g., 'contentAlignment,backgroundColor')")
|
1583
|
+
.optional(),
|
1584
|
+
tableRange: zod_1.z
|
1585
|
+
.object({})
|
1586
|
+
.catchall(zod_1.z.any())
|
1587
|
+
.describe("The range of cells to update the properties for")
|
1588
|
+
.optional(),
|
1589
|
+
})
|
1590
|
+
.describe("Updates the properties of table cells"),
|
1591
|
+
}),
|
1592
|
+
zod_1.z.object({
|
1593
|
+
updateLineProperties: zod_1.z
|
1594
|
+
.object({
|
1595
|
+
objectId: zod_1.z.string().describe("The object ID of the line"),
|
1596
|
+
lineProperties: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The properties to update for the line"),
|
1597
|
+
fields: zod_1.z
|
1598
|
+
.string()
|
1599
|
+
.describe("Comma-separated list of fields to update (e.g., 'lineFill,weight')")
|
1600
|
+
.optional(),
|
1601
|
+
})
|
1602
|
+
.describe("Updates the properties of a line"),
|
1603
|
+
}),
|
1604
|
+
zod_1.z.object({
|
1605
|
+
createParagraphBullets: zod_1.z
|
1606
|
+
.object({
|
1607
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1608
|
+
bulletPreset: zod_1.z
|
1609
|
+
.string()
|
1610
|
+
.describe("The preset type of bullet to use (e.g., BULLET_DISC_CIRCLE_SQUARE)"),
|
1611
|
+
textRange: zod_1.z
|
1612
|
+
.object({})
|
1613
|
+
.catchall(zod_1.z.any())
|
1614
|
+
.describe("The range of text to apply bullets to (defaults to all text if unspecified)")
|
1615
|
+
.optional(),
|
1616
|
+
})
|
1617
|
+
.describe("Creates bullets for paragraphs"),
|
1618
|
+
}),
|
1619
|
+
zod_1.z.object({
|
1620
|
+
replaceAllShapesWithImage: zod_1.z
|
1621
|
+
.object({
|
1622
|
+
imageUrl: zod_1.z.string().describe("The URL of the image to replace shapes with"),
|
1623
|
+
containsText: zod_1.z
|
1624
|
+
.object({
|
1625
|
+
text: zod_1.z.string().describe("The text the shape must contain to be replaced"),
|
1626
|
+
matchCase: zod_1.z.boolean().describe("Whether the text match is case-sensitive").optional(),
|
1627
|
+
})
|
1628
|
+
.describe("Criteria for shapes to replace (must contain specified text)"),
|
1629
|
+
replaceMethod: zod_1.z
|
1630
|
+
.enum(["CENTER_INSIDE", "CENTER_CROP"])
|
1631
|
+
.describe("The image replace method (Defaults to CENTER_INSIDE)")
|
1632
|
+
.optional(),
|
1633
|
+
pageObjectIds: zod_1.z
|
1634
|
+
.array(zod_1.z.string())
|
1635
|
+
.describe("Optional list of page object IDs to scope the replacement to")
|
1636
|
+
.optional(),
|
1637
|
+
})
|
1638
|
+
.describe("Replaces all shapes matching criteria with an image"),
|
1639
|
+
}),
|
1640
|
+
zod_1.z.object({
|
1641
|
+
duplicateObject: zod_1.z
|
1642
|
+
.object({
|
1643
|
+
objectId: zod_1.z.string().describe("The object ID of the object to duplicate"),
|
1644
|
+
objectIds: zod_1.z
|
1645
|
+
.record(zod_1.z.string())
|
1646
|
+
.describe("Optional map for assigning specific object IDs to the duplicated elements (key is original ID, value is new ID)")
|
1647
|
+
.optional(),
|
1648
|
+
})
|
1649
|
+
.describe("Duplicates a slide object (shape, image, table, etc.)"),
|
1650
|
+
}),
|
1651
|
+
zod_1.z.object({
|
1652
|
+
updateTextStyle: zod_1.z
|
1653
|
+
.object({
|
1654
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell containing the text"),
|
1655
|
+
style: zod_1.z
|
1656
|
+
.object({})
|
1657
|
+
.catchall(zod_1.z.any())
|
1658
|
+
.describe("The text style properties to apply (e.g., bold, fontSize)"),
|
1659
|
+
fields: zod_1.z
|
1660
|
+
.string()
|
1661
|
+
.describe("Comma-separated list of style fields to update using FieldMask syntax (e.g., 'bold,italic,fontSize')"),
|
1662
|
+
textRange: zod_1.z
|
1663
|
+
.object({
|
1664
|
+
type: zod_1.z
|
1665
|
+
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1666
|
+
.describe("The type of range")
|
1667
|
+
.optional(),
|
1668
|
+
startIndex: zod_1.z
|
1669
|
+
.number()
|
1670
|
+
.int()
|
1671
|
+
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1672
|
+
.optional(),
|
1673
|
+
endIndex: zod_1.z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
1674
|
+
})
|
1675
|
+
.describe("The range of text to style (defaults to all text if unspecified)")
|
1676
|
+
.optional(),
|
1677
|
+
})
|
1678
|
+
.describe("Updates the style of a range of text"),
|
1679
|
+
}),
|
1680
|
+
zod_1.z.object({
|
1681
|
+
replaceAllShapesWithSheetsChart: zod_1.z
|
1682
|
+
.object({
|
1683
|
+
spreadsheetId: zod_1.z.string().describe("The ID of the Google Sheets spreadsheet containing the chart"),
|
1684
|
+
chartId: zod_1.z.number().int().describe("The ID of the chart within the spreadsheet"),
|
1685
|
+
containsText: zod_1.z
|
1686
|
+
.object({
|
1687
|
+
text: zod_1.z.string().describe("The text the shape must contain to be replaced"),
|
1688
|
+
matchCase: zod_1.z.boolean().describe("Whether the text match is case-sensitive").optional(),
|
1689
|
+
})
|
1690
|
+
.describe("Criteria for shapes to replace (must contain specified text)"),
|
1691
|
+
linkingMode: zod_1.z
|
1692
|
+
.enum(["LINKED", "NOT_LINKED_IMAGE"])
|
1693
|
+
.describe("The linking mode of the chart (Defaults to LINKED)")
|
1694
|
+
.optional(),
|
1695
|
+
pageObjectIds: zod_1.z
|
1696
|
+
.array(zod_1.z.string())
|
1697
|
+
.describe("Optional list of page object IDs to scope the replacement to")
|
1698
|
+
.optional(),
|
1699
|
+
})
|
1700
|
+
.describe("Replaces all shapes matching criteria with a Google Sheets chart"),
|
1701
|
+
}),
|
1702
|
+
zod_1.z.object({
|
1703
|
+
deleteParagraphBullets: zod_1.z
|
1704
|
+
.object({
|
1705
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1706
|
+
textRange: zod_1.z
|
1707
|
+
.object({
|
1708
|
+
type: zod_1.z
|
1709
|
+
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1710
|
+
.describe("The type of range")
|
1711
|
+
.optional(),
|
1712
|
+
startIndex: zod_1.z
|
1713
|
+
.number()
|
1714
|
+
.int()
|
1715
|
+
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1716
|
+
.optional(),
|
1717
|
+
endIndex: zod_1.z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
1718
|
+
})
|
1719
|
+
.describe("The range of text to delete bullets from (defaults to all text if unspecified)")
|
1720
|
+
.optional(),
|
1721
|
+
})
|
1722
|
+
.describe("Deletes bullets from a range of paragraphs"),
|
1723
|
+
}),
|
1724
|
+
zod_1.z.object({
|
1725
|
+
updateParagraphStyle: zod_1.z
|
1726
|
+
.object({
|
1727
|
+
objectId: zod_1.z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1728
|
+
style: zod_1.z
|
1729
|
+
.object({})
|
1730
|
+
.catchall(zod_1.z.any())
|
1731
|
+
.describe("The paragraph style properties to apply (e.g., alignment, lineSpacing)"),
|
1732
|
+
fields: zod_1.z
|
1733
|
+
.string()
|
1734
|
+
.describe("Comma-separated list of style fields to update using FieldMask syntax (e.g., 'alignment,direction,lineSpacing')"),
|
1735
|
+
textRange: zod_1.z
|
1736
|
+
.object({
|
1737
|
+
type: zod_1.z
|
1738
|
+
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1739
|
+
.describe("The type of range")
|
1740
|
+
.optional(),
|
1741
|
+
startIndex: zod_1.z
|
1742
|
+
.number()
|
1743
|
+
.int()
|
1744
|
+
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1745
|
+
.optional(),
|
1746
|
+
endIndex: zod_1.z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
1747
|
+
})
|
1748
|
+
.describe("The range of text to apply the style to (defaults to all paragraphs if unspecified)")
|
1749
|
+
.optional(),
|
1750
|
+
})
|
1751
|
+
.describe("Updates the style of paragraphs"),
|
1752
|
+
}),
|
1753
|
+
zod_1.z.object({
|
1754
|
+
updateTableBorderProperties: zod_1.z
|
1755
|
+
.object({
|
1756
|
+
objectId: zod_1.z.string().describe("The object ID of the table"),
|
1757
|
+
tableBorderProperties: zod_1.z
|
1758
|
+
.object({})
|
1759
|
+
.catchall(zod_1.z.any())
|
1760
|
+
.describe("The border properties to update (e.g., dashStyle, weight, color)"),
|
1761
|
+
fields: zod_1.z
|
1762
|
+
.string()
|
1763
|
+
.describe("Comma-separated list of fields to update (e.g., 'dashStyle,weight')")
|
1764
|
+
.optional(),
|
1765
|
+
borderPosition: zod_1.z
|
1766
|
+
.enum(["ALL", "BOTTOM", "TOP", "LEFT", "RIGHT", "INNER_HORIZONTAL", "INNER_VERTICAL"])
|
1767
|
+
.describe("The position of the border segments to update (defaults to ALL if unspecified)")
|
1768
|
+
.optional(),
|
1769
|
+
tableRange: zod_1.z
|
1770
|
+
.object({
|
1771
|
+
location: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The starting cell location").optional(),
|
1772
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows in the range").optional(),
|
1773
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns in the range").optional(),
|
1774
|
+
})
|
1775
|
+
.describe("The range of cells whose border should be updated (defaults to the entire table if unspecified)")
|
1776
|
+
.optional(),
|
1777
|
+
})
|
1778
|
+
.describe("Updates the properties of a table border"),
|
1779
|
+
}),
|
1780
|
+
zod_1.z.object({
|
1781
|
+
updateTableColumnProperties: zod_1.z
|
1782
|
+
.object({
|
1783
|
+
objectId: zod_1.z.string().describe("The object ID of the table"),
|
1784
|
+
columnIndices: zod_1.z.array(zod_1.z.number().int()).describe("The 0-based indices of the columns to update"),
|
1785
|
+
tableColumnProperties: zod_1.z
|
1786
|
+
.object({})
|
1787
|
+
.catchall(zod_1.z.any())
|
1788
|
+
.describe("The properties to update (e.g., columnWidth)"),
|
1789
|
+
fields: zod_1.z
|
1790
|
+
.string()
|
1791
|
+
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'columnWidth')"),
|
1792
|
+
})
|
1793
|
+
.describe("Updates the properties of table columns"),
|
1794
|
+
}),
|
1795
|
+
zod_1.z.object({
|
1796
|
+
updateTableRowProperties: zod_1.z
|
1797
|
+
.object({
|
1798
|
+
objectId: zod_1.z.string().describe("The object ID of the table"),
|
1799
|
+
rowIndices: zod_1.z.array(zod_1.z.number().int()).describe("The 0-based indices of the rows to update"),
|
1800
|
+
tableRowProperties: zod_1.z
|
1801
|
+
.object({})
|
1802
|
+
.catchall(zod_1.z.any())
|
1803
|
+
.describe("The properties to update (e.g., minRowHeight)"),
|
1804
|
+
fields: zod_1.z
|
1805
|
+
.string()
|
1806
|
+
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'minRowHeight')"),
|
1807
|
+
})
|
1808
|
+
.describe("Updates the properties of table rows"),
|
1809
|
+
}),
|
1810
|
+
zod_1.z.object({
|
1811
|
+
mergeTableCells: zod_1.z
|
1812
|
+
.object({
|
1813
|
+
objectId: zod_1.z.string().describe("The object ID of the table"),
|
1814
|
+
tableRange: zod_1.z
|
1815
|
+
.object({
|
1816
|
+
location: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The starting cell location").optional(),
|
1817
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows in the range").optional(),
|
1818
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns in the range").optional(),
|
1819
|
+
})
|
1820
|
+
.describe("The range of cells to merge"),
|
1821
|
+
})
|
1822
|
+
.describe("Merges cells in a table"),
|
1823
|
+
}),
|
1824
|
+
zod_1.z.object({
|
1825
|
+
unmergeTableCells: zod_1.z
|
1826
|
+
.object({
|
1827
|
+
objectId: zod_1.z.string().describe("The object ID of the table"),
|
1828
|
+
tableRange: zod_1.z
|
1829
|
+
.object({
|
1830
|
+
location: zod_1.z.object({}).catchall(zod_1.z.any()).describe("The starting cell location").optional(),
|
1831
|
+
rowSpan: zod_1.z.number().int().describe("The number of rows in the range").optional(),
|
1832
|
+
columnSpan: zod_1.z.number().int().describe("The number of columns in the range").optional(),
|
1833
|
+
})
|
1834
|
+
.describe("The range of cells to unmerge"),
|
1835
|
+
})
|
1836
|
+
.describe("Unmerges cells in a table"),
|
1837
|
+
}),
|
1838
|
+
zod_1.z.object({
|
1839
|
+
groupObjects: zod_1.z
|
1840
|
+
.object({
|
1841
|
+
childrenObjectIds: zod_1.z.array(zod_1.z.string()).describe("The object IDs of the elements to group"),
|
1842
|
+
groupObjectId: zod_1.z.string().describe("The object ID to assign to the created group"),
|
1843
|
+
})
|
1844
|
+
.describe("Groups multiple page elements together"),
|
1845
|
+
}),
|
1846
|
+
zod_1.z.object({
|
1847
|
+
ungroupObjects: zod_1.z
|
1848
|
+
.object({ objectIds: zod_1.z.array(zod_1.z.string()).describe("The object IDs of the groups to ungroup") })
|
1849
|
+
.describe("Ungroups page elements"),
|
1850
|
+
}),
|
1851
|
+
zod_1.z.object({
|
1852
|
+
updatePageElementAltText: zod_1.z
|
1853
|
+
.object({
|
1854
|
+
objectId: zod_1.z.string().describe("The object ID of the page element"),
|
1855
|
+
title: zod_1.z.string().describe("The title for the alt text"),
|
1856
|
+
description: zod_1.z.string().describe("The description for the alt text"),
|
1857
|
+
})
|
1858
|
+
.describe("Updates the alt text for a page element"),
|
1859
|
+
}),
|
1860
|
+
zod_1.z.object({
|
1861
|
+
replaceImage: zod_1.z
|
1862
|
+
.object({
|
1863
|
+
imageObjectId: zod_1.z.string().describe("The object ID of the image to replace"),
|
1864
|
+
url: zod_1.z.string().describe("The URL of the new image"),
|
1865
|
+
replaceMethod: zod_1.z
|
1866
|
+
.enum(["CENTER_INSIDE", "CENTER_CROP"])
|
1867
|
+
.describe("The image replace method (Defaults to CENTER_INSIDE)")
|
1868
|
+
.optional(),
|
1869
|
+
})
|
1870
|
+
.describe("Replaces an existing image with a new one"),
|
1871
|
+
}),
|
1872
|
+
zod_1.z.object({
|
1873
|
+
updateSlideProperties: zod_1.z
|
1874
|
+
.object({
|
1875
|
+
objectId: zod_1.z.string().describe("The object ID of the slide"),
|
1876
|
+
slideProperties: zod_1.z
|
1877
|
+
.object({})
|
1878
|
+
.catchall(zod_1.z.any())
|
1879
|
+
.describe("The properties to update (e.g., master reference, layout reference)"),
|
1880
|
+
fields: zod_1.z
|
1881
|
+
.string()
|
1882
|
+
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'slideBackgroundFill')"),
|
1883
|
+
})
|
1884
|
+
.describe("Updates the properties of a slide"),
|
1885
|
+
}),
|
1886
|
+
zod_1.z.object({
|
1887
|
+
updatePageElementsZOrder: zod_1.z
|
1888
|
+
.object({
|
1889
|
+
pageObjectIds: zod_1.z.array(zod_1.z.string()).describe("The object IDs of the page elements to reorder"),
|
1890
|
+
operation: zod_1.z
|
1891
|
+
.enum(["BRING_TO_FRONT", "BRING_FORWARD", "SEND_BACKWARD", "SEND_TO_BACK"])
|
1892
|
+
.describe("The Z-order operation to apply"),
|
1893
|
+
})
|
1894
|
+
.describe("Updates the Z-order of page elements"),
|
1895
|
+
}),
|
1896
|
+
zod_1.z.object({
|
1897
|
+
updateLineCategory: zod_1.z
|
1898
|
+
.object({
|
1899
|
+
objectId: zod_1.z.string().describe("The object ID of the line"),
|
1900
|
+
lineCategory: zod_1.z.enum(["STRAIGHT", "BENT", "CURVED"]).describe("The new line category"),
|
1901
|
+
})
|
1902
|
+
.describe("Updates the category of a line"),
|
1903
|
+
}),
|
1904
|
+
zod_1.z.object({
|
1905
|
+
rerouteLine: zod_1.z
|
1906
|
+
.object({ objectId: zod_1.z.string().describe("The object ID of the line to reroute") })
|
1907
|
+
.describe("Reroutes a line connection"),
|
1908
|
+
}),
|
1909
|
+
];
|
1910
|
+
const errors = schemas.reduce((errors, schema) => (result => (result.error ? [...errors, result.error] : errors))(schema.safeParse(x)), []);
|
1911
|
+
if (schemas.length - errors.length !== 1) {
|
1912
|
+
ctx.addIssue({
|
1913
|
+
path: ctx.path,
|
1914
|
+
code: "invalid_union",
|
1915
|
+
unionErrors: errors,
|
1916
|
+
message: "Invalid input: Should pass single schema",
|
1917
|
+
});
|
1918
|
+
}
|
1919
|
+
})))
|
1920
|
+
.describe("The requests to update the presentation with"),
|
1921
|
+
});
|
1922
|
+
exports.googleOauthUpdatePresentationOutputSchema = zod_1.z.object({
|
1923
|
+
success: zod_1.z.boolean().describe("Whether the presentation was created successfully"),
|
1924
|
+
error: zod_1.z.string().describe("The error that occurred if the presentation was not created successfully").optional(),
|
1925
|
+
presentationUrl: zod_1.z.string().describe("The URL of the created presentation").optional(),
|
1926
|
+
});
|
413
1927
|
exports.finnhubSymbolLookupParamsSchema = zod_1.z.object({
|
414
1928
|
query: zod_1.z.string().describe("The symbol or colloquial name of the company to look up"),
|
415
1929
|
});
|
@@ -608,6 +2122,18 @@ exports.salesforceGenerateSalesReportOutputSchema = zod_1.z.object({
|
|
608
2122
|
.optional(),
|
609
2123
|
error: zod_1.z.string().describe("The error that occurred if the sales report was not successfully generated.").optional(),
|
610
2124
|
});
|
2125
|
+
exports.salesforceGetSalesforceRecordsByQueryParamsSchema = zod_1.z.object({
|
2126
|
+
query: zod_1.z.string().describe("The SOQL query to execute"),
|
2127
|
+
limit: zod_1.z.number().describe("The maximum number of records to retrieve").optional(),
|
2128
|
+
});
|
2129
|
+
exports.salesforceGetSalesforceRecordsByQueryOutputSchema = zod_1.z.object({
|
2130
|
+
success: zod_1.z.boolean().describe("Whether the records were successfully retrieved"),
|
2131
|
+
records: zod_1.z
|
2132
|
+
.array(zod_1.z.record(zod_1.z.string()).describe("A record from Salesforce"))
|
2133
|
+
.describe("The retrieved records")
|
2134
|
+
.optional(),
|
2135
|
+
error: zod_1.z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
2136
|
+
});
|
611
2137
|
exports.salesforceGetRecordParamsSchema = zod_1.z.object({
|
612
2138
|
objectType: zod_1.z.string().describe("The Salesforce object type to retrieve (e.g., Lead, Account, Contact)"),
|
613
2139
|
recordId: zod_1.z.string().describe("The ID of the record to retrieve"),
|
@@ -617,6 +2143,40 @@ exports.salesforceGetRecordOutputSchema = zod_1.z.object({
|
|
617
2143
|
record: zod_1.z.record(zod_1.z.string()).describe("The retrieved record data").optional(),
|
618
2144
|
error: zod_1.z.string().describe("The error that occurred if the record was not successfully retrieved").optional(),
|
619
2145
|
});
|
2146
|
+
exports.microsoftCreateDocumentParamsSchema = zod_1.z.object({
|
2147
|
+
siteId: zod_1.z.string().describe("The ID of the site where the document will be created").optional(),
|
2148
|
+
name: zod_1.z.string().describe("The name of the new document (include extension like .docx or .xlsx)"),
|
2149
|
+
content: zod_1.z.string().describe("The content to add to the new document"),
|
2150
|
+
folderId: zod_1.z.string().describe("The ID of the folder to create the document in (optional)").optional(),
|
2151
|
+
});
|
2152
|
+
exports.microsoftCreateDocumentOutputSchema = zod_1.z.object({
|
2153
|
+
documentId: zod_1.z.string().describe("The ID of the created document").optional(),
|
2154
|
+
documentUrl: zod_1.z.string().describe("The URL to access the created document").optional(),
|
2155
|
+
fileName: zod_1.z.string().describe("The name of the created document (could be sanitized version of the name)").optional(),
|
2156
|
+
success: zod_1.z.boolean().describe("Whether the document was created successfully"),
|
2157
|
+
error: zod_1.z.string().describe("The error that occurred if the document was not created successfully").optional(),
|
2158
|
+
});
|
2159
|
+
exports.microsoftUpdateDocumentParamsSchema = zod_1.z.object({
|
2160
|
+
siteId: zod_1.z.string().describe("The ID of the site where the document is located").optional(),
|
2161
|
+
documentId: zod_1.z.string().describe("The ID of the document"),
|
2162
|
+
content: zod_1.z.string().describe("The new content to update in the document"),
|
2163
|
+
});
|
2164
|
+
exports.microsoftUpdateDocumentOutputSchema = zod_1.z.object({
|
2165
|
+
success: zod_1.z.boolean().describe("Whether the document was updated successfully"),
|
2166
|
+
error: zod_1.z.string().describe("The error that occurred if the update was not successful").optional(),
|
2167
|
+
documentUrl: zod_1.z.string().describe("The URL to access the updated document").optional(),
|
2168
|
+
});
|
2169
|
+
exports.microsoftUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
2170
|
+
spreadsheetId: zod_1.z.string().describe("The ID of the spreadsheet to update"),
|
2171
|
+
range: zod_1.z.string().describe('The range of cells to update (e.g., "Sheet1!A1:B2")'),
|
2172
|
+
values: zod_1.z.array(zod_1.z.array(zod_1.z.string())).describe("The values to update in the specified range"),
|
2173
|
+
siteId: zod_1.z.string().describe("The ID of the site where the spreadsheet is located").optional(),
|
2174
|
+
});
|
2175
|
+
exports.microsoftUpdateSpreadsheetOutputSchema = zod_1.z.object({
|
2176
|
+
success: zod_1.z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
2177
|
+
error: zod_1.z.string().describe("The error that occurred if the update was not successful").optional(),
|
2178
|
+
updatedRange: zod_1.z.string().describe("The range that was updated in the spreadsheet").optional(),
|
2179
|
+
});
|
620
2180
|
exports.microsoftMessageTeamsChatParamsSchema = zod_1.z.object({
|
621
2181
|
chatId: zod_1.z.string().describe("The chat ID of the Microsoft Teams chat"),
|
622
2182
|
message: zod_1.z.string().describe("The text to be messaged to the chat"),
|
@@ -636,3 +2196,53 @@ exports.microsoftMessageTeamsChannelOutputSchema = zod_1.z.object({
|
|
636
2196
|
error: zod_1.z.string().describe("The error that occurred if the message was not sent successfully").optional(),
|
637
2197
|
messageId: zod_1.z.string().describe("The ID of the message that was sent").optional(),
|
638
2198
|
});
|
2199
|
+
exports.microsoftGetDocumentParamsSchema = zod_1.z.object({
|
2200
|
+
siteId: zod_1.z.string().describe("The ID of the site where the document is located (optional for OneDrive)").optional(),
|
2201
|
+
documentId: zod_1.z.string().describe("The ID of the document to retrieve"),
|
2202
|
+
});
|
2203
|
+
exports.microsoftGetDocumentOutputSchema = zod_1.z.object({
|
2204
|
+
success: zod_1.z.boolean().describe("Whether the document was successfully retrieved"),
|
2205
|
+
content: zod_1.z.string().describe("The content of the document").optional(),
|
2206
|
+
error: zod_1.z.string().describe("The error that occurred if the document was not successfully retrieved").optional(),
|
2207
|
+
});
|
2208
|
+
exports.githubCreateOrUpdateFileParamsSchema = zod_1.z.object({
|
2209
|
+
repositoryOwner: zod_1.z.string().describe("The owner of the repository"),
|
2210
|
+
repositoryName: zod_1.z.string().describe("The name of the repository"),
|
2211
|
+
filePath: zod_1.z.string().describe("The path of the file to create or update"),
|
2212
|
+
branch: zod_1.z.string().describe("The branch where the file will be created or updated"),
|
2213
|
+
fileContent: zod_1.z.string().describe("The content of the file"),
|
2214
|
+
commitMessage: zod_1.z.string().describe("The commit message for the operation"),
|
2215
|
+
noOverwrite: zod_1.z.boolean().describe("Whether to prevent overwriting existing files").optional(),
|
2216
|
+
});
|
2217
|
+
exports.githubCreateOrUpdateFileOutputSchema = zod_1.z.object({
|
2218
|
+
success: zod_1.z.boolean().describe("Whether the operation was successful"),
|
2219
|
+
error: zod_1.z.string().describe("The error that occurred if the operation was not successful").optional(),
|
2220
|
+
newCommitSha: zod_1.z.string().describe("The SHA of the new commit created").optional(),
|
2221
|
+
operation: zod_1.z.enum(["created", "updated"]).describe("Indicates whether the file was created or updated").optional(),
|
2222
|
+
});
|
2223
|
+
exports.githubCreateBranchParamsSchema = zod_1.z.object({
|
2224
|
+
repositoryOwner: zod_1.z.string().describe("The owner of the repository"),
|
2225
|
+
repositoryName: zod_1.z.string().describe("The name of the repository"),
|
2226
|
+
branchName: zod_1.z.string().describe("The name of the new branch to create"),
|
2227
|
+
baseRefOrHash: zod_1.z.string().describe("The ref or hash of the base commit to create the new branch from"),
|
2228
|
+
});
|
2229
|
+
exports.githubCreateBranchOutputSchema = zod_1.z.object({
|
2230
|
+
success: zod_1.z.boolean().describe("Whether the branch was created successfully"),
|
2231
|
+
error: zod_1.z.string().describe("The error that occurred if the branch was not created successfully").optional(),
|
2232
|
+
});
|
2233
|
+
exports.githubCreatePullRequestParamsSchema = zod_1.z.object({
|
2234
|
+
repositoryOwner: zod_1.z.string().describe("The owner of the repository"),
|
2235
|
+
repositoryName: zod_1.z.string().describe("The name of the repository"),
|
2236
|
+
head: zod_1.z
|
2237
|
+
.string()
|
2238
|
+
.describe("The branch containing the changes to be merged (prefix with owner: if different from the repository owner)"),
|
2239
|
+
base: zod_1.z.string().describe("The branch to merge the changes into"),
|
2240
|
+
title: zod_1.z.string().describe("The title of the pull request"),
|
2241
|
+
description: zod_1.z.string().describe("The description of the pull request").optional(),
|
2242
|
+
});
|
2243
|
+
exports.githubCreatePullRequestOutputSchema = zod_1.z.object({
|
2244
|
+
success: zod_1.z.boolean().describe("Whether the pull request was created successfully"),
|
2245
|
+
error: zod_1.z.string().describe("The error that occurred if the pull request was not created successfully").optional(),
|
2246
|
+
pullRequestUrl: zod_1.z.string().describe("The URL of the created pull request").optional(),
|
2247
|
+
pullRequestNumber: zod_1.z.number().describe("The number of the created pull request").optional(),
|
2248
|
+
});
|