@credal/actions 0.2.0 → 0.2.3
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 +374 -380
- package/dist/actions/autogen/templates.js +94 -98
- package/dist/actions/autogen/types.d.ts +2 -33
- package/dist/actions/autogen/types.js +1621 -1659
- package/dist/actions/groups.js +88 -91
- package/dist/actions/invoke.js +5 -8
- package/dist/actions/parse.js +38 -43
- package/dist/actions/providers/asana/commentAsanaTask.js +5 -7
- package/dist/actions/providers/asana/createAsanaTask.js +9 -11
- package/dist/actions/providers/asana/getTasksDetails.js +9 -11
- package/dist/actions/providers/asana/listAsanaTasksByProject.js +46 -51
- package/dist/actions/providers/asana/searchAsanaTasks.js +6 -8
- package/dist/actions/providers/asana/updateAsanaTask.js +8 -10
- package/dist/actions/providers/asana/utils.js +7 -12
- package/dist/actions/providers/ashby/addCandidateToProject.js +5 -7
- package/dist/actions/providers/ashby/createCandidate.js +5 -7
- package/dist/actions/providers/ashby/createNote.js +5 -7
- package/dist/actions/providers/ashby/getCandidateInfo.js +5 -7
- package/dist/actions/providers/ashby/listCandidateNotes.js +5 -7
- package/dist/actions/providers/ashby/listCandidates.js +5 -7
- package/dist/actions/providers/ashby/searchCandidates.js +5 -7
- package/dist/actions/providers/ashby/updateCandidate.js +5 -7
- package/dist/actions/providers/bing/getTopNSearchResultUrls.js +5 -7
- package/dist/actions/providers/confluence/fetchPageContent.js +8 -10
- package/dist/actions/providers/confluence/helpers.js +1 -4
- package/dist/actions/providers/confluence/overwritePage.js +9 -11
- package/dist/actions/providers/finnhub/getBasicFinancials.js +6 -8
- package/dist/actions/providers/finnhub/symbolLookup.js +6 -8
- package/dist/actions/providers/firecrawl/deepResearch.js +5 -10
- package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.js +5 -10
- package/dist/actions/providers/firecrawl/scrapeUrl.js +5 -10
- package/dist/actions/providers/generic/fillTemplate.js +1 -3
- package/dist/actions/providers/github/createBranch.js +4 -39
- package/dist/actions/providers/github/createOrUpdateFile.js +6 -41
- package/dist/actions/providers/github/createPullRequest.js +4 -39
- package/dist/actions/providers/github/listPullRequests.js +7 -12
- package/dist/actions/providers/gong/getGongTranscripts.js +49 -84
- package/dist/actions/providers/google-oauth/addGroupMember.js +5 -7
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.js +6 -8
- package/dist/actions/providers/google-oauth/createPresentation.js +5 -7
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +5 -10
- package/dist/actions/providers/google-oauth/deleteCalendarEvent.js +5 -7
- package/dist/actions/providers/google-oauth/deleteGroupMember.js +5 -7
- package/dist/actions/providers/google-oauth/getGroup.js +5 -7
- package/dist/actions/providers/google-oauth/hasGroupMember.js +5 -7
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +5 -7
- package/dist/actions/providers/google-oauth/listCalendars.js +5 -7
- package/dist/actions/providers/google-oauth/listGroupMembers.js +5 -7
- package/dist/actions/providers/google-oauth/listGroups.js +5 -7
- package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +7 -9
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +5 -7
- package/dist/actions/providers/google-oauth/updateCalendarEvent.js +5 -7
- package/dist/actions/providers/google-oauth/updateDoc.js +5 -10
- package/dist/actions/providers/google-oauth/updatePresentation.js +5 -7
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +5 -7
- package/dist/actions/providers/google-oauth/utils/decodeMessage.js +2 -6
- package/dist/actions/providers/googlemail/listGmailThreads.js +8 -10
- package/dist/actions/providers/googlemail/searchGmailMessages.js +8 -10
- package/dist/actions/providers/googlemaps/nearbysearchRestaurants.js +5 -7
- package/dist/actions/providers/googlemaps/validateAddress.js +3 -5
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +8 -26
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +7 -26
- package/dist/actions/providers/jira/assignJiraTicket.js +5 -10
- package/dist/actions/providers/jira/commentJiraTicket.js +3 -5
- package/dist/actions/providers/jira/createJiraTicket.js +6 -8
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +4 -6
- package/dist/actions/providers/jira/getJiraTicketDetails.js +3 -5
- package/dist/actions/providers/jira/getJiraTicketHistory.js +3 -5
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +3 -5
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +4 -6
- package/dist/actions/providers/jira/utils.js +3 -6
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +4 -6
- package/dist/actions/providers/linkedin/createSharePostLinkedinUrl.js +1 -3
- package/dist/actions/providers/looker/enableUserByEmail.js +5 -7
- package/dist/actions/providers/math/add.js +1 -3
- package/dist/actions/providers/microsoft/createDocument.js +5 -7
- package/dist/actions/providers/microsoft/getDocument.js +3 -5
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +4 -6
- package/dist/actions/providers/microsoft/messageTeamsChat.js +4 -6
- package/dist/actions/providers/microsoft/updateDocument.js +4 -6
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +4 -6
- package/dist/actions/providers/microsoft/utils.js +6 -10
- package/dist/actions/providers/mongodb/insertMongoDoc.js +3 -5
- package/dist/actions/providers/notion/searchByTitle.js +5 -10
- package/dist/actions/providers/nws/getForecastForLocation.js +7 -9
- package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.js +3 -5
- package/dist/actions/providers/resend/sendEmail.js +6 -8
- package/dist/actions/providers/salesforce/createCase.js +3 -5
- package/dist/actions/providers/salesforce/createRecord.js +4 -6
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +3 -5
- package/dist/actions/providers/salesforce/generateSalesReport.js +3 -5
- package/dist/actions/providers/salesforce/getRecord.js +3 -5
- package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +4 -6
- package/dist/actions/providers/salesforce/updateRecord.js +3 -5
- package/dist/actions/providers/slack/getChannelMessages.js +7 -9
- package/dist/actions/providers/slack/helpers.js +1 -4
- package/dist/actions/providers/slack/sendMessage.js +10 -12
- package/dist/actions/providers/snowflake/auth/getSnowflakeConnection.js +4 -41
- package/dist/actions/providers/snowflake/getRowByFieldValue.js +3 -5
- package/dist/actions/providers/snowflake/runSnowflakeQuery.js +8 -13
- package/dist/actions/providers/x/createXSharePostUrl.js +1 -3
- package/dist/actions/providers/zendesk/addCommentToTicket.js +5 -7
- package/dist/actions/providers/zendesk/assignTicket.js +5 -7
- package/dist/actions/providers/zendesk/createZendeskTicket.js +5 -7
- package/dist/actions/providers/zendesk/getTicketDetails.js +5 -7
- package/dist/actions/providers/zendesk/listTickets.js +5 -7
- package/dist/actions/providers/zendesk/updateTicketStatus.js +5 -7
- package/dist/actions/util/axiosClient.js +4 -11
- package/dist/actions/util/formatDataForCodeInterpreter.js +1 -4
- package/dist/actions/util/missingAuthConstants.js +2 -5
- package/dist/app.js +5 -42
- package/dist/index.js +4 -24
- package/dist/server.d.ts +2 -0
- package/dist/server.js +8 -0
- package/dist/utils/datetime.js +4 -8
- package/dist/utils/string.js +1 -4
- package/package.json +2 -1
- package/dist/actions/providers/confluence/updatePage.d.ts +0 -3
- package/dist/actions/providers/confluence/updatePage.js +0 -47
- package/dist/actions/providers/credal/callCopilot.d.ts +0 -3
- package/dist/actions/providers/credal/callCopilot.js +0 -36
- package/dist/actions/providers/math/index.d.ts +0 -1
- package/dist/actions/providers/math/index.js +0 -37
- package/dist/actions/providers/slack/index.d.ts +0 -1
- package/dist/actions/providers/slack/index.js +0 -37
- package/dist/actions/providers/slack/listConversations.d.ts +0 -3
- package/dist/actions/providers/slack/listConversations.js +0 -41
@@ -1,134 +1,96 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
emailFrom: zod_1.z.string().optional(),
|
47
|
-
emailReplyTo: zod_1.z.string().optional(),
|
48
|
-
emailBcc: zod_1.z.string().optional(),
|
49
|
-
cloudId: zod_1.z.string().optional(),
|
50
|
-
subdomain: zod_1.z.string().optional(),
|
51
|
-
password: zod_1.z.string().optional(),
|
52
|
-
awsAccessKeyId: zod_1.z.string().optional(),
|
53
|
-
awsSecretAccessKey: zod_1.z.string().optional(),
|
54
|
-
clientId: zod_1.z.string().optional(),
|
55
|
-
clientSecret: zod_1.z.string().optional(),
|
56
|
-
tenantId: zod_1.z.string().optional(),
|
57
|
-
refreshToken: zod_1.z.string().optional(),
|
58
|
-
redirectUri: zod_1.z.string().optional(),
|
59
|
-
});
|
60
|
-
exports.genericFillTemplateParamsSchema = zod_1.z.object({
|
61
|
-
template: zod_1.z.string().describe("The template string to be processed and returned"),
|
62
|
-
});
|
63
|
-
exports.genericFillTemplateOutputSchema = zod_1.z.object({
|
64
|
-
result: zod_1.z.string().describe("The template string returned filled in"),
|
65
|
-
});
|
66
|
-
exports.asanaCommentTaskParamsSchema = zod_1.z.object({
|
67
|
-
taskId: zod_1.z.string().describe("Task gid the comment should be added to"),
|
68
|
-
commentText: zod_1.z.string().describe("The comment text to be added"),
|
69
|
-
isPinned: zod_1.z.boolean().describe("Whether the comment should be pinned").optional(),
|
70
|
-
});
|
71
|
-
exports.asanaCommentTaskOutputSchema = zod_1.z.object({
|
72
|
-
error: zod_1.z.string().describe("Error if comment was unsuccessful").optional(),
|
73
|
-
success: zod_1.z.boolean().describe("Whether comment was successfully made"),
|
74
|
-
commentUrl: zod_1.z.string().describe("The url to the created comment").optional(),
|
75
|
-
});
|
76
|
-
exports.asanaListAsanaTasksByProjectParamsSchema = zod_1.z.object({
|
77
|
-
projectId: zod_1.z.string().describe("Project gid the tasks belong to"),
|
78
|
-
});
|
79
|
-
exports.asanaListAsanaTasksByProjectOutputSchema = zod_1.z.object({
|
80
|
-
error: zod_1.z.string().describe("Error if task retrieval was unsuccessful").optional(),
|
81
|
-
success: zod_1.z.boolean().describe("Whether task retrieval was successful"),
|
82
|
-
tasks: zod_1.z
|
83
|
-
.array(zod_1.z
|
1
|
+
import { z } from "zod";
|
2
|
+
export const AuthParamsSchema = z.object({
|
3
|
+
authToken: z.string().optional(),
|
4
|
+
baseUrl: z.string().optional(),
|
5
|
+
apiKey: z.string().optional(),
|
6
|
+
username: z.string().optional(),
|
7
|
+
userAgent: z.string().optional(),
|
8
|
+
emailFrom: z.string().optional(),
|
9
|
+
emailReplyTo: z.string().optional(),
|
10
|
+
emailBcc: z.string().optional(),
|
11
|
+
cloudId: z.string().optional(),
|
12
|
+
subdomain: z.string().optional(),
|
13
|
+
password: z.string().optional(),
|
14
|
+
awsAccessKeyId: z.string().optional(),
|
15
|
+
awsSecretAccessKey: z.string().optional(),
|
16
|
+
clientId: z.string().optional(),
|
17
|
+
clientSecret: z.string().optional(),
|
18
|
+
tenantId: z.string().optional(),
|
19
|
+
refreshToken: z.string().optional(),
|
20
|
+
redirectUri: z.string().optional(),
|
21
|
+
});
|
22
|
+
export const genericFillTemplateParamsSchema = z.object({
|
23
|
+
template: z.string().describe("The template string to be processed and returned"),
|
24
|
+
});
|
25
|
+
export const genericFillTemplateOutputSchema = z.object({
|
26
|
+
result: z.string().describe("The template string returned filled in"),
|
27
|
+
});
|
28
|
+
export const asanaCommentTaskParamsSchema = z.object({
|
29
|
+
taskId: z.string().describe("Task gid the comment should be added to"),
|
30
|
+
commentText: z.string().describe("The comment text to be added"),
|
31
|
+
isPinned: z.boolean().describe("Whether the comment should be pinned").optional(),
|
32
|
+
});
|
33
|
+
export const asanaCommentTaskOutputSchema = z.object({
|
34
|
+
error: z.string().describe("Error if comment was unsuccessful").optional(),
|
35
|
+
success: z.boolean().describe("Whether comment was successfully made"),
|
36
|
+
commentUrl: z.string().describe("The url to the created comment").optional(),
|
37
|
+
});
|
38
|
+
export const asanaListAsanaTasksByProjectParamsSchema = z.object({
|
39
|
+
projectId: z.string().describe("Project gid the tasks belong to"),
|
40
|
+
});
|
41
|
+
export const asanaListAsanaTasksByProjectOutputSchema = z.object({
|
42
|
+
error: z.string().describe("Error if task retrieval was unsuccessful").optional(),
|
43
|
+
success: z.boolean().describe("Whether task retrieval was successful"),
|
44
|
+
tasks: z
|
45
|
+
.array(z
|
84
46
|
.object({
|
85
|
-
task:
|
86
|
-
name:
|
87
|
-
resource_type:
|
88
|
-
completed:
|
89
|
-
modified_at:
|
90
|
-
notes:
|
91
|
-
custom_fields:
|
92
|
-
.array(
|
93
|
-
gid:
|
94
|
-
name:
|
95
|
-
display_value:
|
47
|
+
task: z.object({
|
48
|
+
name: z.string().optional(),
|
49
|
+
resource_type: z.string().optional(),
|
50
|
+
completed: z.boolean().optional(),
|
51
|
+
modified_at: z.string().optional(),
|
52
|
+
notes: z.string().optional(),
|
53
|
+
custom_fields: z
|
54
|
+
.array(z.object({
|
55
|
+
gid: z.string().optional(),
|
56
|
+
name: z.string().optional(),
|
57
|
+
display_value: z.string().nullable().optional(),
|
96
58
|
}))
|
97
59
|
.nullable()
|
98
60
|
.optional(),
|
99
|
-
num_subtasks:
|
61
|
+
num_subtasks: z.number().optional(),
|
100
62
|
}),
|
101
|
-
subtasks:
|
102
|
-
.array(
|
103
|
-
name:
|
104
|
-
resource_type:
|
105
|
-
completed:
|
106
|
-
modified_at:
|
107
|
-
notes:
|
108
|
-
assignee:
|
109
|
-
custom_fields:
|
110
|
-
.array(
|
111
|
-
gid:
|
112
|
-
name:
|
113
|
-
display_value:
|
63
|
+
subtasks: z
|
64
|
+
.array(z.object({
|
65
|
+
name: z.string().optional(),
|
66
|
+
resource_type: z.string().optional(),
|
67
|
+
completed: z.boolean().optional(),
|
68
|
+
modified_at: z.string().optional(),
|
69
|
+
notes: z.string().optional(),
|
70
|
+
assignee: z.string().optional(),
|
71
|
+
custom_fields: z
|
72
|
+
.array(z.object({
|
73
|
+
gid: z.string().optional(),
|
74
|
+
name: z.string().optional(),
|
75
|
+
display_value: z.string().nullable().optional(),
|
114
76
|
}))
|
115
77
|
.nullable()
|
116
78
|
.optional(),
|
117
|
-
num_subtasks:
|
79
|
+
num_subtasks: z.number().optional(),
|
118
80
|
}))
|
119
81
|
.nullable()
|
120
82
|
.optional(),
|
121
|
-
taskStories:
|
122
|
-
.array(
|
123
|
-
gid:
|
124
|
-
created_at:
|
125
|
-
text:
|
126
|
-
resource_type:
|
127
|
-
created_by:
|
83
|
+
taskStories: z
|
84
|
+
.array(z.object({
|
85
|
+
gid: z.string().optional(),
|
86
|
+
created_at: z.string().optional(),
|
87
|
+
text: z.string().optional(),
|
88
|
+
resource_type: z.string().optional(),
|
89
|
+
created_by: z
|
128
90
|
.object({
|
129
|
-
gid:
|
130
|
-
name:
|
131
|
-
resource_type:
|
91
|
+
gid: z.string().optional(),
|
92
|
+
name: z.string().optional(),
|
93
|
+
resource_type: z.string().optional(),
|
132
94
|
})
|
133
95
|
.optional(),
|
134
96
|
}))
|
@@ -139,535 +101,535 @@ exports.asanaListAsanaTasksByProjectOutputSchema = zod_1.z.object({
|
|
139
101
|
.describe("The list of tasks in the project")
|
140
102
|
.optional(),
|
141
103
|
});
|
142
|
-
|
143
|
-
projectId:
|
144
|
-
name:
|
145
|
-
approvalStatus:
|
146
|
-
description:
|
147
|
-
dueAt:
|
148
|
-
assignee:
|
149
|
-
taskTemplate:
|
150
|
-
customFields:
|
104
|
+
export const asanaCreateTaskParamsSchema = z.object({
|
105
|
+
projectId: z.string().describe("Project gid the task belongs to"),
|
106
|
+
name: z.string().describe("The name of the new task"),
|
107
|
+
approvalStatus: z.string().describe("Status of task (pending, approved, ...)").optional(),
|
108
|
+
description: z.string().describe("The description for the new task").optional(),
|
109
|
+
dueAt: z.string().describe("ISO 8601 date string in UTC for due date of task").optional(),
|
110
|
+
assignee: z.string().describe("The assignee gid or email for the new task").optional(),
|
111
|
+
taskTemplate: z.string().describe("The template to use, takes id or name").optional(),
|
112
|
+
customFields: z
|
151
113
|
.object({})
|
152
|
-
.catchall(
|
114
|
+
.catchall(z.any())
|
153
115
|
.describe("Custom fields to be set on the create task request")
|
154
116
|
.optional(),
|
155
117
|
});
|
156
|
-
|
157
|
-
error:
|
158
|
-
success:
|
159
|
-
taskUrl:
|
160
|
-
});
|
161
|
-
|
162
|
-
taskId:
|
163
|
-
name:
|
164
|
-
approvalStatus:
|
165
|
-
description:
|
166
|
-
dueAt:
|
167
|
-
assignee:
|
168
|
-
completed:
|
169
|
-
customFields:
|
170
|
-
});
|
171
|
-
|
172
|
-
error:
|
173
|
-
success:
|
174
|
-
taskUrl:
|
175
|
-
});
|
176
|
-
|
177
|
-
|
178
|
-
error:
|
179
|
-
success:
|
180
|
-
results:
|
181
|
-
.array(
|
182
|
-
.object({ id:
|
118
|
+
export const asanaCreateTaskOutputSchema = z.object({
|
119
|
+
error: z.string().describe("Error if task creation was unsuccessful").optional(),
|
120
|
+
success: z.boolean().describe("Whether task creation was successful"),
|
121
|
+
taskUrl: z.string().describe("The url to the created Asana task").optional(),
|
122
|
+
});
|
123
|
+
export const asanaUpdateTaskParamsSchema = z.object({
|
124
|
+
taskId: z.string().describe("Task gid of the task to update"),
|
125
|
+
name: z.string().describe("The name of the task").optional(),
|
126
|
+
approvalStatus: z.string().describe("Status of task (pending, approved, ...)").optional(),
|
127
|
+
description: z.string().describe("The updated description").optional(),
|
128
|
+
dueAt: z.string().describe("ISO 8601 date string in UTC for due date of task").optional(),
|
129
|
+
assignee: z.string().describe("The assignee gid or email for the task").optional(),
|
130
|
+
completed: z.boolean().describe("Whether the task should be marked as completed").optional(),
|
131
|
+
customFields: z.object({}).catchall(z.any()).describe("Custom fields to be updated").optional(),
|
132
|
+
});
|
133
|
+
export const asanaUpdateTaskOutputSchema = z.object({
|
134
|
+
error: z.string().describe("Error if task update was unsuccessful").optional(),
|
135
|
+
success: z.boolean().describe("Whether task update was successful"),
|
136
|
+
taskUrl: z.string().describe("The url to the updated Asana task").optional(),
|
137
|
+
});
|
138
|
+
export const asanaSearchTasksParamsSchema = z.object({ query: z.string().describe("Search query") });
|
139
|
+
export const asanaSearchTasksOutputSchema = z.object({
|
140
|
+
error: z.string().describe("Error if search was unsuccessful").optional(),
|
141
|
+
success: z.boolean().describe("Whether search was successful"),
|
142
|
+
results: z
|
143
|
+
.array(z
|
144
|
+
.object({ id: z.string(), name: z.string(), resourceType: z.string().optional(), workspaceId: z.string() })
|
183
145
|
.describe("List of tasks that match search query"))
|
184
146
|
.describe("The list of tasks that match search query")
|
185
147
|
.optional(),
|
186
148
|
});
|
187
|
-
|
188
|
-
taskIds:
|
149
|
+
export const asanaGetTasksDetailsParamsSchema = z.object({
|
150
|
+
taskIds: z.array(z.string()).describe("The list of task ids to get details for"),
|
189
151
|
});
|
190
|
-
|
191
|
-
errors:
|
192
|
-
success:
|
193
|
-
results:
|
194
|
-
.array(
|
152
|
+
export const asanaGetTasksDetailsOutputSchema = z.object({
|
153
|
+
errors: z.array(z.string()).describe("Errors if search was unsuccessful").optional(),
|
154
|
+
success: z.boolean().describe("Whether search was successful"),
|
155
|
+
results: z
|
156
|
+
.array(z
|
195
157
|
.object({
|
196
|
-
id:
|
197
|
-
name:
|
198
|
-
approval_status:
|
199
|
-
completed:
|
200
|
-
created_at:
|
201
|
-
due_at:
|
202
|
-
assignee_name:
|
203
|
-
notes:
|
204
|
-
comments:
|
158
|
+
id: z.string(),
|
159
|
+
name: z.string(),
|
160
|
+
approval_status: z.string(),
|
161
|
+
completed: z.boolean(),
|
162
|
+
created_at: z.string(),
|
163
|
+
due_at: z.string().nullable().optional(),
|
164
|
+
assignee_name: z.string(),
|
165
|
+
notes: z.string(),
|
166
|
+
comments: z.array(z.object({ text: z.string(), created_at: z.string(), creator_name: z.string() })),
|
205
167
|
})
|
206
168
|
.describe("List of tasks that match search query"))
|
207
169
|
.describe("The list of tasks that match search query")
|
208
170
|
.optional(),
|
209
171
|
});
|
210
|
-
|
211
|
-
channelName:
|
212
|
-
message:
|
172
|
+
export const slackSendMessageParamsSchema = z.object({
|
173
|
+
channelName: z.string().describe("The name of the Slack channel to send the message to (e.g. general, alerts)"),
|
174
|
+
message: z.string().describe("The message content to send to Slack. Can include markdown formatting."),
|
213
175
|
});
|
214
|
-
|
215
|
-
success:
|
216
|
-
error:
|
176
|
+
export const slackSendMessageOutputSchema = z.object({
|
177
|
+
success: z.boolean().describe("Whether the email was sent successfully"),
|
178
|
+
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
217
179
|
});
|
218
|
-
|
219
|
-
channelName:
|
220
|
-
oldest:
|
180
|
+
export const slackGetChannelMessagesParamsSchema = z.object({
|
181
|
+
channelName: z.string().describe("Name of the channel to summarize"),
|
182
|
+
oldest: z.string().describe("Only messages after this Unix timestamp will be included in results"),
|
221
183
|
});
|
222
|
-
|
223
|
-
messages:
|
224
|
-
.array(
|
184
|
+
export const slackGetChannelMessagesOutputSchema = z.object({
|
185
|
+
messages: z
|
186
|
+
.array(z
|
225
187
|
.object({
|
226
|
-
user:
|
227
|
-
text:
|
228
|
-
ts:
|
188
|
+
user: z.string().describe("The user who sent the message"),
|
189
|
+
text: z.string().describe("The text of the message"),
|
190
|
+
ts: z.string().describe("The timestamp of the message"),
|
229
191
|
})
|
230
192
|
.describe("A message in the channel"))
|
231
193
|
.describe("The messages in the channel"),
|
232
194
|
});
|
233
|
-
|
234
|
-
a:
|
235
|
-
b:
|
236
|
-
});
|
237
|
-
|
238
|
-
|
239
|
-
pageId:
|
240
|
-
title:
|
241
|
-
content:
|
242
|
-
});
|
243
|
-
|
244
|
-
|
245
|
-
pageId:
|
246
|
-
});
|
247
|
-
|
248
|
-
pageId:
|
249
|
-
title:
|
250
|
-
content:
|
251
|
-
});
|
252
|
-
|
253
|
-
projectKey:
|
254
|
-
assignee:
|
255
|
-
issueId:
|
256
|
-
});
|
257
|
-
|
258
|
-
success:
|
259
|
-
error:
|
195
|
+
export const mathAddParamsSchema = z.object({
|
196
|
+
a: z.number().describe("The first number to add"),
|
197
|
+
b: z.number().describe("The second number to add"),
|
198
|
+
});
|
199
|
+
export const mathAddOutputSchema = z.object({ result: z.number().describe("The sum of the two numbers") });
|
200
|
+
export const confluenceOverwritePageParamsSchema = z.object({
|
201
|
+
pageId: z.string().describe("The page id for the page to add content to"),
|
202
|
+
title: z.string().describe("The title of the page that should be updated"),
|
203
|
+
content: z.string().describe("The new content for the page"),
|
204
|
+
});
|
205
|
+
export const confluenceOverwritePageOutputSchema = z.void();
|
206
|
+
export const confluenceFetchPageContentParamsSchema = z.object({
|
207
|
+
pageId: z.string().describe("The ID of the page to fetch content from"),
|
208
|
+
});
|
209
|
+
export const confluenceFetchPageContentOutputSchema = z.object({
|
210
|
+
pageId: z.string().describe("The ID of the page"),
|
211
|
+
title: z.string().describe("The title of the page"),
|
212
|
+
content: z.string().describe("The content of the page in storage format (HTML)"),
|
213
|
+
});
|
214
|
+
export const jiraAssignJiraTicketParamsSchema = z.object({
|
215
|
+
projectKey: z.string().describe("The key for the project you want to add it to"),
|
216
|
+
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
217
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be assigned/re-assigned"),
|
218
|
+
});
|
219
|
+
export const jiraAssignJiraTicketOutputSchema = z.object({
|
220
|
+
success: z.boolean().describe("Whether the ticket was successfully assigned/reassigned"),
|
221
|
+
error: z
|
260
222
|
.string()
|
261
223
|
.describe("The error that occurred if the ticket was not successfully assigned/reassigned")
|
262
224
|
.optional(),
|
263
|
-
ticketUrl:
|
264
|
-
});
|
265
|
-
|
266
|
-
projectKey:
|
267
|
-
issueId:
|
268
|
-
comment:
|
269
|
-
});
|
270
|
-
|
271
|
-
success:
|
272
|
-
error:
|
273
|
-
commentUrl:
|
274
|
-
});
|
275
|
-
|
276
|
-
projectKey:
|
277
|
-
summary:
|
278
|
-
description:
|
279
|
-
issueType:
|
280
|
-
reporter:
|
281
|
-
assignee:
|
282
|
-
customFields:
|
225
|
+
ticketUrl: z.string().describe("The url to the newly assigned/reassigned Jira ticket").optional(),
|
226
|
+
});
|
227
|
+
export const jiraCommentJiraTicketParamsSchema = z.object({
|
228
|
+
projectKey: z.string().describe("The key for the project"),
|
229
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on"),
|
230
|
+
comment: z.string().describe("The text to be commented on the ticket"),
|
231
|
+
});
|
232
|
+
export const jiraCommentJiraTicketOutputSchema = z.object({
|
233
|
+
success: z.boolean().describe("Whether the comment was sent successfully"),
|
234
|
+
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
235
|
+
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
236
|
+
});
|
237
|
+
export const jiraCreateJiraTicketParamsSchema = z.object({
|
238
|
+
projectKey: z.string().describe("The key for the project you want to add it to"),
|
239
|
+
summary: z.string().describe("The summary of the new ticket"),
|
240
|
+
description: z.string().describe("The description for the new ticket"),
|
241
|
+
issueType: z.string().describe("The issue type of the new ticket"),
|
242
|
+
reporter: z.string().describe("The reporter for the new ticket creation").optional(),
|
243
|
+
assignee: z.string().describe("The assignee for the new ticket creation").optional(),
|
244
|
+
customFields: z
|
283
245
|
.object({})
|
284
|
-
.catchall(
|
246
|
+
.catchall(z.any())
|
285
247
|
.describe("Custom fields to be set on the create ticket request")
|
286
248
|
.optional(),
|
287
249
|
});
|
288
|
-
|
289
|
-
ticketUrl:
|
290
|
-
});
|
291
|
-
|
292
|
-
projectKey:
|
293
|
-
issueId:
|
294
|
-
});
|
295
|
-
|
296
|
-
success:
|
297
|
-
error:
|
298
|
-
data:
|
299
|
-
});
|
300
|
-
|
301
|
-
projectKey:
|
302
|
-
issueId:
|
303
|
-
});
|
304
|
-
|
305
|
-
success:
|
306
|
-
error:
|
307
|
-
history:
|
308
|
-
});
|
309
|
-
|
310
|
-
projectKey:
|
311
|
-
issueId:
|
312
|
-
summary:
|
313
|
-
description:
|
314
|
-
issueType:
|
315
|
-
customFields:
|
250
|
+
export const jiraCreateJiraTicketOutputSchema = z.object({
|
251
|
+
ticketUrl: z.string().describe("The url to the created Jira Ticket"),
|
252
|
+
});
|
253
|
+
export const jiraGetJiraTicketDetailsParamsSchema = z.object({
|
254
|
+
projectKey: z.string().describe("The key for the project"),
|
255
|
+
issueId: z.string().describe("The ID of the ticket"),
|
256
|
+
});
|
257
|
+
export const jiraGetJiraTicketDetailsOutputSchema = z.object({
|
258
|
+
success: z.boolean().describe("Whether the status was updated successfully"),
|
259
|
+
error: z.string().describe("The error that occurred if the retrieval was unsuccessful").optional(),
|
260
|
+
data: z.object({}).catchall(z.any()).describe("The data of the Jira ticket").optional(),
|
261
|
+
});
|
262
|
+
export const jiraGetJiraTicketHistoryParamsSchema = z.object({
|
263
|
+
projectKey: z.string().describe("The key for the project"),
|
264
|
+
issueId: z.string().describe("The ID of the ticket"),
|
265
|
+
});
|
266
|
+
export const jiraGetJiraTicketHistoryOutputSchema = z.object({
|
267
|
+
success: z.boolean().describe("Whether the status was updated successfully"),
|
268
|
+
error: z.string().describe("The error that occurred if the retrieval was unsuccessful").optional(),
|
269
|
+
history: z.array(z.any()).describe("The history data of the Jira ticket").optional(),
|
270
|
+
});
|
271
|
+
export const jiraUpdateJiraTicketDetailsParamsSchema = z.object({
|
272
|
+
projectKey: z.string().describe("The key for the project you want to add it to"),
|
273
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be updated"),
|
274
|
+
summary: z.string().describe("The updated summary").optional(),
|
275
|
+
description: z.string().describe("The updated description").optional(),
|
276
|
+
issueType: z.string().describe("The updated issue type").optional(),
|
277
|
+
customFields: z
|
316
278
|
.object({})
|
317
|
-
.catchall(
|
279
|
+
.catchall(z.any())
|
318
280
|
.describe("Custom fields to be set on the update ticket request")
|
319
281
|
.optional(),
|
320
282
|
});
|
321
|
-
|
322
|
-
ticketUrl:
|
323
|
-
});
|
324
|
-
|
325
|
-
projectKey:
|
326
|
-
issueId:
|
327
|
-
status:
|
328
|
-
});
|
329
|
-
|
330
|
-
success:
|
331
|
-
error:
|
332
|
-
ticketUrl:
|
333
|
-
});
|
334
|
-
|
335
|
-
query:
|
336
|
-
limit:
|
337
|
-
});
|
338
|
-
|
339
|
-
success:
|
340
|
-
records:
|
341
|
-
error:
|
342
|
-
});
|
343
|
-
|
344
|
-
userEmail:
|
345
|
-
subdomain:
|
346
|
-
});
|
347
|
-
|
348
|
-
success:
|
349
|
-
recoveryKey:
|
350
|
-
error:
|
351
|
-
});
|
352
|
-
|
353
|
-
regionCode:
|
354
|
-
locality:
|
355
|
-
postalCode:
|
356
|
-
addressLines:
|
357
|
-
.array(
|
283
|
+
export const jiraUpdateJiraTicketDetailsOutputSchema = z.object({
|
284
|
+
ticketUrl: z.string().describe("The url to the Jira ticket"),
|
285
|
+
});
|
286
|
+
export const jiraUpdateJiraTicketStatusParamsSchema = z.object({
|
287
|
+
projectKey: z.string().describe("The key for the project you want to add it to"),
|
288
|
+
issueId: z.string().describe("The issue ID associated with the ticket"),
|
289
|
+
status: z.string().describe('The status the ticket should be changed to (eg "In Progress", "Closed")'),
|
290
|
+
});
|
291
|
+
export const jiraUpdateJiraTicketStatusOutputSchema = z.object({
|
292
|
+
success: z.boolean().describe("Whether the status was updated successfully"),
|
293
|
+
error: z.string().describe("The error that occurred if the status was not updated successfully").optional(),
|
294
|
+
ticketUrl: z.string().describe("The url to the Jira ticket").optional(),
|
295
|
+
});
|
296
|
+
export const jiraGetJiraIssuesByQueryParamsSchema = z.object({
|
297
|
+
query: z.string().describe("The JQL query to execute"),
|
298
|
+
limit: z.number().describe("The maximum number of records to retrieve").optional(),
|
299
|
+
});
|
300
|
+
export const jiraGetJiraIssuesByQueryOutputSchema = z.object({
|
301
|
+
success: z.boolean().describe("Whether the records were successfully retrieved"),
|
302
|
+
records: z.array(z.record(z.string()).describe("An issue from Jira")).describe("The retrieved records").optional(),
|
303
|
+
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
304
|
+
});
|
305
|
+
export const kandjiGetFVRecoveryKeyForDeviceParamsSchema = z.object({
|
306
|
+
userEmail: z.string().describe("The email of the user requesting the recovery key"),
|
307
|
+
subdomain: z.string().describe("The subdomain of the Kandji account"),
|
308
|
+
});
|
309
|
+
export const kandjiGetFVRecoveryKeyForDeviceOutputSchema = z.object({
|
310
|
+
success: z.boolean().describe("Whether the recovery key was retrieved successfully"),
|
311
|
+
recoveryKey: z.string().describe("The FileVault recovery key for the device").optional(),
|
312
|
+
error: z.string().describe("The error that occurred if the recovery key was not retrieved successfully").optional(),
|
313
|
+
});
|
314
|
+
export const googlemapsValidateAddressParamsSchema = z.object({
|
315
|
+
regionCode: z.string().describe("The country of the address being verified."),
|
316
|
+
locality: z.string().describe("The locality of the address being verified. This is likely a city."),
|
317
|
+
postalCode: z.string().describe("The postal code of the address being verified."),
|
318
|
+
addressLines: z
|
319
|
+
.array(z.string())
|
358
320
|
.describe("A list of lines of the address. These should be in order as they would appear on an envelope."),
|
359
|
-
addressType:
|
360
|
-
allowFuzzyMatches:
|
321
|
+
addressType: z.enum(["residential", "business", "poBox"]).describe("The type of address being validated.").optional(),
|
322
|
+
allowFuzzyMatches: z
|
361
323
|
.boolean()
|
362
324
|
.describe("Whether to allow fuzzy matches in the address validation by inferring components.")
|
363
325
|
.optional(),
|
364
326
|
});
|
365
|
-
|
366
|
-
valid:
|
367
|
-
formattedAddress:
|
368
|
-
addressComponents:
|
369
|
-
.array(
|
370
|
-
componentName:
|
371
|
-
componentType:
|
372
|
-
.array(
|
327
|
+
export const googlemapsValidateAddressOutputSchema = z.object({
|
328
|
+
valid: z.boolean().describe("Whether the address is valid."),
|
329
|
+
formattedAddress: z.string().describe("The standardized formatted address.").optional(),
|
330
|
+
addressComponents: z
|
331
|
+
.array(z.object({
|
332
|
+
componentName: z.string().describe("The name of the address component.").optional(),
|
333
|
+
componentType: z
|
334
|
+
.array(z.string())
|
373
335
|
.describe("The types associated with this component (e.g., street_number, route).")
|
374
336
|
.optional(),
|
375
337
|
}))
|
376
338
|
.describe("Components of the address, such as street number and route.")
|
377
339
|
.optional(),
|
378
|
-
missingComponentTypes:
|
379
|
-
unresolvedTokens:
|
380
|
-
geocode:
|
340
|
+
missingComponentTypes: z.array(z.string()).describe("List of components missing in the input address.").optional(),
|
341
|
+
unresolvedTokens: z.array(z.string()).describe("Unrecognized parts of the address.").optional(),
|
342
|
+
geocode: z
|
381
343
|
.object({
|
382
|
-
location:
|
344
|
+
location: z
|
383
345
|
.object({
|
384
|
-
latitude:
|
385
|
-
longitude:
|
346
|
+
latitude: z.number().describe("The latitude of the address.").optional(),
|
347
|
+
longitude: z.number().describe("The longitude of the address.").optional(),
|
386
348
|
})
|
387
349
|
.optional(),
|
388
|
-
plusCode:
|
350
|
+
plusCode: z
|
389
351
|
.object({
|
390
|
-
globalCode:
|
391
|
-
compoundCode:
|
352
|
+
globalCode: z.string().describe("The global Plus Code.").optional(),
|
353
|
+
compoundCode: z.string().describe("The compound Plus Code.").optional(),
|
392
354
|
})
|
393
355
|
.describe("The Plus Code for the address.")
|
394
356
|
.optional(),
|
395
|
-
bounds:
|
357
|
+
bounds: z
|
396
358
|
.object({
|
397
|
-
northeast:
|
398
|
-
southwest:
|
359
|
+
northeast: z.object({ latitude: z.number().optional(), longitude: z.number().optional() }).optional(),
|
360
|
+
southwest: z.object({ latitude: z.number().optional(), longitude: z.number().optional() }).optional(),
|
399
361
|
})
|
400
362
|
.describe("The viewport bounds for the address.")
|
401
363
|
.optional(),
|
402
364
|
})
|
403
365
|
.describe("Geocode data for the address.")
|
404
366
|
.optional(),
|
405
|
-
uspsData:
|
367
|
+
uspsData: z
|
406
368
|
.object({
|
407
|
-
standardizedAddress:
|
408
|
-
deliveryPointValidation:
|
409
|
-
uspsAddressPrecision:
|
369
|
+
standardizedAddress: z.object({}).catchall(z.any()).describe("The standardized USPS address.").optional(),
|
370
|
+
deliveryPointValidation: z.string().describe("The USPS delivery point validation status.").optional(),
|
371
|
+
uspsAddressPrecision: z.string().describe("The level of precision for the USPS address.").optional(),
|
410
372
|
})
|
411
373
|
.describe("USPS-specific validation details.")
|
412
374
|
.optional(),
|
413
375
|
});
|
414
|
-
|
415
|
-
latitude:
|
416
|
-
longitude:
|
417
|
-
});
|
418
|
-
|
419
|
-
results:
|
420
|
-
.array(
|
421
|
-
name:
|
422
|
-
address:
|
423
|
-
rating:
|
424
|
-
priceLevel:
|
425
|
-
openingHours:
|
426
|
-
primaryType:
|
427
|
-
editorialSummary:
|
428
|
-
websiteUri:
|
376
|
+
export const googlemapsNearbysearchRestaurantsParamsSchema = z.object({
|
377
|
+
latitude: z.number().describe("The latitude of the location to search nearby"),
|
378
|
+
longitude: z.number().describe("The longitude of the location to search nearby"),
|
379
|
+
});
|
380
|
+
export const googlemapsNearbysearchRestaurantsOutputSchema = z.object({
|
381
|
+
results: z
|
382
|
+
.array(z.object({
|
383
|
+
name: z.string().describe("The name of the place").optional(),
|
384
|
+
address: z.string().describe("The address of the place").optional(),
|
385
|
+
rating: z.number().describe("The rating of the place").optional(),
|
386
|
+
priceLevel: z.string().describe("The price level of the place").optional(),
|
387
|
+
openingHours: z.string().describe("The opening hours of the place").optional(),
|
388
|
+
primaryType: z.string().describe("The primary type of the place").optional(),
|
389
|
+
editorialSummary: z.string().describe("The editorial summary of the place").optional(),
|
390
|
+
websiteUri: z.string().describe("The website URI of the place").optional(),
|
429
391
|
}))
|
430
392
|
.describe("The results of the nearby search"),
|
431
393
|
});
|
432
|
-
|
433
|
-
query:
|
434
|
-
count:
|
435
|
-
site:
|
394
|
+
export const bingGetTopNSearchResultUrlsParamsSchema = z.object({
|
395
|
+
query: z.string().describe("The query to search for"),
|
396
|
+
count: z.number().describe("The number of results to return. Default is 5.").optional(),
|
397
|
+
site: z
|
436
398
|
.string()
|
437
399
|
.describe("The site to restrict the search to (by inserting site:<site.com> in the query). Examples include openai.com, github.com")
|
438
400
|
.optional(),
|
439
401
|
});
|
440
|
-
|
441
|
-
results:
|
442
|
-
.array(
|
443
|
-
name:
|
444
|
-
url:
|
402
|
+
export const bingGetTopNSearchResultUrlsOutputSchema = z.object({
|
403
|
+
results: z
|
404
|
+
.array(z.object({
|
405
|
+
name: z.string().describe("The name or title of the search result").optional(),
|
406
|
+
url: z.string().describe("The URL of the search result").optional(),
|
445
407
|
}))
|
446
408
|
.describe("The top five search result objects"),
|
447
409
|
});
|
448
|
-
|
449
|
-
subject:
|
450
|
-
body:
|
451
|
-
subdomain:
|
410
|
+
export const zendeskCreateZendeskTicketParamsSchema = z.object({
|
411
|
+
subject: z.string().describe("The subject of the ticket"),
|
412
|
+
body: z.string().describe("The body of the ticket").optional(),
|
413
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
452
414
|
});
|
453
|
-
|
454
|
-
ticketId:
|
455
|
-
ticketUrl:
|
415
|
+
export const zendeskCreateZendeskTicketOutputSchema = z.object({
|
416
|
+
ticketId: z.string().describe("The ID of the ticket created"),
|
417
|
+
ticketUrl: z.string().describe("The URL of the ticket created").optional(),
|
456
418
|
});
|
457
|
-
|
458
|
-
subdomain:
|
459
|
-
status:
|
419
|
+
export const zendeskListZendeskTicketsParamsSchema = z.object({
|
420
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
421
|
+
status: z.string().describe("Filter tickets by status (new, open, pending, hold, solved, closed)").optional(),
|
460
422
|
});
|
461
|
-
|
462
|
-
tickets:
|
463
|
-
count:
|
423
|
+
export const zendeskListZendeskTicketsOutputSchema = z.object({
|
424
|
+
tickets: z.array(z.object({}).catchall(z.any())).describe("List of tickets"),
|
425
|
+
count: z.number().describe("Number of tickets found"),
|
464
426
|
});
|
465
|
-
|
466
|
-
ticketId:
|
467
|
-
subdomain:
|
427
|
+
export const zendeskGetTicketDetailsParamsSchema = z.object({
|
428
|
+
ticketId: z.string().describe("The ID of the ticket"),
|
429
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
468
430
|
});
|
469
|
-
|
470
|
-
ticket:
|
431
|
+
export const zendeskGetTicketDetailsOutputSchema = z.object({
|
432
|
+
ticket: z.object({}).catchall(z.any()).describe("The details of the ticket"),
|
471
433
|
});
|
472
|
-
|
473
|
-
ticketId:
|
474
|
-
subdomain:
|
475
|
-
status:
|
434
|
+
export const zendeskUpdateTicketStatusParamsSchema = z.object({
|
435
|
+
ticketId: z.string().describe("The ID of the ticket to update"),
|
436
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
437
|
+
status: z
|
476
438
|
.string()
|
477
439
|
.describe('The state of the ticket. If your account has activated custom ticket statuses, this is the ticket\'s status category. Allowed values are "new", "open", "pending", "hold", "solved", or "closed".'),
|
478
440
|
});
|
479
|
-
|
480
|
-
|
481
|
-
ticketId:
|
482
|
-
subdomain:
|
483
|
-
comment:
|
441
|
+
export const zendeskUpdateTicketStatusOutputSchema = z.void();
|
442
|
+
export const zendeskAddCommentToTicketParamsSchema = z.object({
|
443
|
+
ticketId: z.string().describe("The ID of the ticket to update"),
|
444
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
445
|
+
comment: z
|
484
446
|
.object({
|
485
|
-
body:
|
486
|
-
public:
|
447
|
+
body: z.string().describe("The body of the comment"),
|
448
|
+
public: z.boolean().describe("Whether the comment should be public").optional(),
|
487
449
|
})
|
488
450
|
.describe("The comment to add to the ticket"),
|
489
451
|
});
|
490
|
-
|
491
|
-
|
492
|
-
ticketId:
|
493
|
-
subdomain:
|
494
|
-
assigneeEmail:
|
495
|
-
});
|
496
|
-
|
497
|
-
|
498
|
-
text:
|
499
|
-
url:
|
500
|
-
});
|
501
|
-
|
502
|
-
linkedinUrl:
|
503
|
-
});
|
504
|
-
|
505
|
-
text:
|
506
|
-
url:
|
507
|
-
hashtag:
|
508
|
-
via:
|
509
|
-
inReplyTo:
|
510
|
-
});
|
511
|
-
|
512
|
-
xUrl:
|
513
|
-
});
|
514
|
-
|
515
|
-
databaseName:
|
516
|
-
collectionName:
|
517
|
-
document:
|
518
|
-
});
|
519
|
-
|
520
|
-
objectId:
|
521
|
-
});
|
522
|
-
|
523
|
-
databaseName:
|
524
|
-
tableName:
|
525
|
-
fieldName:
|
526
|
-
fieldValue:
|
527
|
-
accountName:
|
528
|
-
warehouse:
|
529
|
-
});
|
530
|
-
|
531
|
-
row:
|
452
|
+
export const zendeskAddCommentToTicketOutputSchema = z.void();
|
453
|
+
export const zendeskAssignTicketParamsSchema = z.object({
|
454
|
+
ticketId: z.string().describe("The ID of the ticket to update"),
|
455
|
+
subdomain: z.string().describe("The subdomain of the Zendesk account"),
|
456
|
+
assigneeEmail: z.string().describe("The email address of the agent to assign the ticket to"),
|
457
|
+
});
|
458
|
+
export const zendeskAssignTicketOutputSchema = z.void();
|
459
|
+
export const linkedinCreateShareLinkedinPostUrlParamsSchema = z.object({
|
460
|
+
text: z.string().describe("The text for the linkedin post").optional(),
|
461
|
+
url: z.string().describe("The url for the linkedin post").optional(),
|
462
|
+
});
|
463
|
+
export const linkedinCreateShareLinkedinPostUrlOutputSchema = z.object({
|
464
|
+
linkedinUrl: z.string().describe("The share post linkedin URL"),
|
465
|
+
});
|
466
|
+
export const xCreateShareXPostUrlParamsSchema = z.object({
|
467
|
+
text: z.string().describe("The text for the X(formerly twitter) post"),
|
468
|
+
url: z.string().describe("The url for the X(formerly twitter) post").optional(),
|
469
|
+
hashtag: z.array(z.string()).describe("List of hashtags to include in the X post").optional(),
|
470
|
+
via: z.string().describe("The twitter username to associate with the tweet").optional(),
|
471
|
+
inReplyTo: z.string().describe("The tweet ID to reply to").optional(),
|
472
|
+
});
|
473
|
+
export const xCreateShareXPostUrlOutputSchema = z.object({
|
474
|
+
xUrl: z.string().describe("The share post X(formerly twitter) URL"),
|
475
|
+
});
|
476
|
+
export const mongoInsertMongoDocParamsSchema = z.object({
|
477
|
+
databaseName: z.string().describe("Database to connect to"),
|
478
|
+
collectionName: z.string().describe("Collection to insert the document into"),
|
479
|
+
document: z.object({}).catchall(z.any()).describe("The document to insert"),
|
480
|
+
});
|
481
|
+
export const mongoInsertMongoDocOutputSchema = z.object({
|
482
|
+
objectId: z.string().describe("The new ID of the document inserted"),
|
483
|
+
});
|
484
|
+
export const snowflakeGetRowByFieldValueParamsSchema = z.object({
|
485
|
+
databaseName: z.string().describe("The name of the database to query").optional(),
|
486
|
+
tableName: z.string().describe("The name of the table to query"),
|
487
|
+
fieldName: z.string().describe("The name of the field to query"),
|
488
|
+
fieldValue: z.string().describe("The value of the field to query"),
|
489
|
+
accountName: z.string().describe("The name of the Snowflake account").optional(),
|
490
|
+
warehouse: z.string().describe("The warehouse to use").optional(),
|
491
|
+
});
|
492
|
+
export const snowflakeGetRowByFieldValueOutputSchema = z.object({
|
493
|
+
row: z
|
532
494
|
.object({
|
533
|
-
id:
|
534
|
-
rowContents:
|
495
|
+
id: z.string().describe("The ID of the row").optional(),
|
496
|
+
rowContents: z.object({}).catchall(z.any()).describe("The contents of the row").optional(),
|
535
497
|
})
|
536
498
|
.describe("The row from the Snowflake table"),
|
537
499
|
});
|
538
|
-
|
539
|
-
databaseName:
|
540
|
-
warehouse:
|
541
|
-
query:
|
542
|
-
accountName:
|
543
|
-
outputFormat:
|
544
|
-
limit:
|
545
|
-
codeInterpreterLimit:
|
500
|
+
export const snowflakeRunSnowflakeQueryParamsSchema = z.object({
|
501
|
+
databaseName: z.string().describe("The name of the database to query"),
|
502
|
+
warehouse: z.string().describe("The warehouse to use for executing the query"),
|
503
|
+
query: z.string().describe("The SQL query to execute"),
|
504
|
+
accountName: z.string().describe("The name of the Snowflake account"),
|
505
|
+
outputFormat: z.enum(["json", "csv"]).describe("The format of the output").optional(),
|
506
|
+
limit: z.number().describe("A limit on the number of rows to return").optional(),
|
507
|
+
codeInterpreterLimit: z
|
546
508
|
.number()
|
547
509
|
.describe("A minimum number of rows required to pass to code interpreter for analysis and image generation (if enabled)")
|
548
510
|
.optional(),
|
549
|
-
codeInterpreterImageGenLimit:
|
511
|
+
codeInterpreterImageGenLimit: z
|
550
512
|
.number()
|
551
513
|
.describe("A minimum number of rows required to pass to code interpreter for image generation only (if enabled)")
|
552
514
|
.optional(),
|
553
515
|
});
|
554
|
-
|
555
|
-
format:
|
556
|
-
content:
|
557
|
-
rowCount:
|
558
|
-
error:
|
559
|
-
});
|
560
|
-
|
561
|
-
location:
|
562
|
-
});
|
563
|
-
|
564
|
-
results:
|
565
|
-
.array(
|
566
|
-
latitude:
|
567
|
-
longitude:
|
568
|
-
display_name:
|
516
|
+
export const snowflakeRunSnowflakeQueryOutputSchema = z.object({
|
517
|
+
format: z.enum(["json", "csv"]).describe("The format of the output"),
|
518
|
+
content: z.string().describe("The content of the query result (json)"),
|
519
|
+
rowCount: z.number().describe("The number of rows returned by the query"),
|
520
|
+
error: z.string().describe("The error that occurred if the query results failed or were limited").optional(),
|
521
|
+
});
|
522
|
+
export const openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = z.object({
|
523
|
+
location: z.string().describe("The location to get the latitude and longitude of"),
|
524
|
+
});
|
525
|
+
export const openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = z.object({
|
526
|
+
results: z
|
527
|
+
.array(z.object({
|
528
|
+
latitude: z.number().describe("The latitude of the location"),
|
529
|
+
longitude: z.number().describe("The longitude of the location"),
|
530
|
+
display_name: z.string().describe("The display name of the location"),
|
569
531
|
}))
|
570
532
|
.describe("The results of the query")
|
571
533
|
.optional(),
|
572
534
|
});
|
573
|
-
|
574
|
-
latitude:
|
575
|
-
longitude:
|
576
|
-
isoDate:
|
535
|
+
export const nwsGetForecastForLocationParamsSchema = z.object({
|
536
|
+
latitude: z.number().describe("The latitude of the location"),
|
537
|
+
longitude: z.number().describe("The longitude of the location"),
|
538
|
+
isoDate: z.string().describe("The date to get the forecast for, in ISO datetime format"),
|
577
539
|
});
|
578
|
-
|
579
|
-
result:
|
540
|
+
export const nwsGetForecastForLocationOutputSchema = z.object({
|
541
|
+
result: z
|
580
542
|
.object({
|
581
|
-
temperature:
|
582
|
-
temperatureUnit:
|
583
|
-
forecast:
|
543
|
+
temperature: z.number().describe("The temperature at the location"),
|
544
|
+
temperatureUnit: z.string().describe("The unit of temperature"),
|
545
|
+
forecast: z.string().describe("The forecast for the location"),
|
584
546
|
})
|
585
547
|
.optional(),
|
586
548
|
});
|
587
|
-
|
588
|
-
query:
|
589
|
-
maxDepth:
|
590
|
-
timeLimit:
|
591
|
-
maxUrls:
|
592
|
-
});
|
593
|
-
|
594
|
-
finalAnalysis:
|
595
|
-
sources:
|
596
|
-
.array(
|
597
|
-
url:
|
598
|
-
title:
|
599
|
-
description:
|
549
|
+
export const firecrawlDeepResearchParamsSchema = z.object({
|
550
|
+
query: z.string().describe("The query to search for"),
|
551
|
+
maxDepth: z.number().describe("The maximum depth of the search").optional(),
|
552
|
+
timeLimit: z.number().describe("The time limit for the search in seconds").optional(),
|
553
|
+
maxUrls: z.number().describe("The maximum number of URLs to scrape").optional(),
|
554
|
+
});
|
555
|
+
export const firecrawlDeepResearchOutputSchema = z.object({
|
556
|
+
finalAnalysis: z.string().describe("The content of the research"),
|
557
|
+
sources: z
|
558
|
+
.array(z.object({
|
559
|
+
url: z.string().describe("The URL of the source"),
|
560
|
+
title: z.string().describe("The title of the source"),
|
561
|
+
description: z.string().describe("The description of the source").optional(),
|
600
562
|
}))
|
601
563
|
.describe("The sources of the research"),
|
602
564
|
});
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
tweetUrl:
|
607
|
-
});
|
608
|
-
|
609
|
-
text:
|
610
|
-
});
|
611
|
-
|
612
|
-
to:
|
613
|
-
subject:
|
614
|
-
content:
|
615
|
-
});
|
616
|
-
|
617
|
-
success:
|
618
|
-
error:
|
619
|
-
});
|
620
|
-
|
621
|
-
keywords:
|
622
|
-
});
|
623
|
-
|
624
|
-
success:
|
625
|
-
files:
|
626
|
-
.array(
|
627
|
-
id:
|
628
|
-
name:
|
629
|
-
mimeType:
|
630
|
-
webViewLink:
|
565
|
+
export const firecrawlScrapeUrlParamsSchema = z.object({ url: z.string().describe("The URL to scrape") });
|
566
|
+
export const firecrawlScrapeUrlOutputSchema = z.object({ content: z.string().describe("The content of the URL") });
|
567
|
+
export const firecrawlScrapeTweetDataWithNitterParamsSchema = z.object({
|
568
|
+
tweetUrl: z.string().describe("The url for the X(formerly twitter) post"),
|
569
|
+
});
|
570
|
+
export const firecrawlScrapeTweetDataWithNitterOutputSchema = z.object({
|
571
|
+
text: z.string().describe("The text in the tweet URL"),
|
572
|
+
});
|
573
|
+
export const resendSendEmailParamsSchema = z.object({
|
574
|
+
to: z.string().describe("The email address to send the email to"),
|
575
|
+
subject: z.string().describe("The subject of the email"),
|
576
|
+
content: z.string().describe("The content of the email"),
|
577
|
+
});
|
578
|
+
export const resendSendEmailOutputSchema = z.object({
|
579
|
+
success: z.boolean().describe("Whether the email was sent successfully"),
|
580
|
+
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
581
|
+
});
|
582
|
+
export const googleOauthSearchFilesByKeywordsParamsSchema = z.object({
|
583
|
+
keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
|
584
|
+
});
|
585
|
+
export const googleOauthSearchFilesByKeywordsOutputSchema = z.object({
|
586
|
+
success: z.boolean().describe("Whether the search was successful"),
|
587
|
+
files: z
|
588
|
+
.array(z.object({
|
589
|
+
id: z.string().describe("The file ID"),
|
590
|
+
name: z.string().describe("The file name"),
|
591
|
+
mimeType: z.string().describe("The MIME type of the file"),
|
592
|
+
webViewLink: z.string().describe("The web link to view the file"),
|
631
593
|
}))
|
632
594
|
.describe("List of files matching the search"),
|
633
|
-
error:
|
595
|
+
error: z.string().describe("Error message if search failed").optional(),
|
634
596
|
});
|
635
|
-
|
636
|
-
title:
|
637
|
-
content:
|
597
|
+
export const googleOauthCreateNewGoogleDocParamsSchema = z.object({
|
598
|
+
title: z.string().describe("The title of the new Google Doc"),
|
599
|
+
content: z.string().describe("The content to add to the new Google Doc").optional(),
|
638
600
|
});
|
639
|
-
|
640
|
-
documentId:
|
641
|
-
documentUrl:
|
601
|
+
export const googleOauthCreateNewGoogleDocOutputSchema = z.object({
|
602
|
+
documentId: z.string().describe("The ID of the created Google Doc"),
|
603
|
+
documentUrl: z.string().describe("The URL to access the created Google Doc").optional(),
|
642
604
|
});
|
643
|
-
|
644
|
-
documentId:
|
645
|
-
requests:
|
646
|
-
.array(
|
605
|
+
export const googleOauthUpdateDocParamsSchema = z.object({
|
606
|
+
documentId: z.string().describe("The ID of the Google Doc to update"),
|
607
|
+
requests: z
|
608
|
+
.array(z
|
647
609
|
.object({})
|
648
|
-
.catchall(
|
649
|
-
.and(
|
610
|
+
.catchall(z.any())
|
611
|
+
.and(z.any().superRefine((x, ctx) => {
|
650
612
|
const schemas = [
|
651
|
-
|
652
|
-
replaceAllText:
|
613
|
+
z.object({
|
614
|
+
replaceAllText: z
|
653
615
|
.object({
|
654
|
-
replaceText:
|
655
|
-
containsText:
|
616
|
+
replaceText: z.string().describe("The text that will replace the matched text"),
|
617
|
+
containsText: z
|
656
618
|
.object({
|
657
|
-
text:
|
658
|
-
matchCase:
|
619
|
+
text: z.string().describe("The text to search for in the document"),
|
620
|
+
matchCase: z.boolean().describe("Whether the search should be case sensitive").optional(),
|
659
621
|
})
|
660
622
|
.describe("The text to search for"),
|
661
623
|
})
|
662
624
|
.describe("Replaces all instances of text matching a criteria"),
|
663
625
|
}),
|
664
|
-
|
665
|
-
insertText:
|
626
|
+
z.object({
|
627
|
+
insertText: z
|
666
628
|
.object({
|
667
|
-
text:
|
668
|
-
location:
|
629
|
+
text: z.string().describe("The text to insert"),
|
630
|
+
location: z
|
669
631
|
.object({
|
670
|
-
index:
|
632
|
+
index: z
|
671
633
|
.number()
|
672
634
|
.int()
|
673
635
|
.describe("The zero-based index in the document where to insert the text"),
|
@@ -676,215 +638,215 @@ exports.googleOauthUpdateDocParamsSchema = zod_1.z.object({
|
|
676
638
|
})
|
677
639
|
.describe("Inserts text at a specific location"),
|
678
640
|
}),
|
679
|
-
|
680
|
-
updateTextStyle:
|
641
|
+
z.object({
|
642
|
+
updateTextStyle: z
|
681
643
|
.object({
|
682
|
-
textStyle:
|
644
|
+
textStyle: z
|
683
645
|
.object({
|
684
|
-
backgroundColor:
|
646
|
+
backgroundColor: z
|
685
647
|
.object({})
|
686
|
-
.catchall(
|
648
|
+
.catchall(z.any())
|
687
649
|
.describe("The background color of the text")
|
688
650
|
.optional(),
|
689
|
-
baselineOffset:
|
651
|
+
baselineOffset: z
|
690
652
|
.enum(["BASELINE_OFFSET_UNSPECIFIED", "NONE", "SUPERSCRIPT", "SUBSCRIPT"])
|
691
653
|
.describe("The text's vertical offset from its normal position")
|
692
654
|
.optional(),
|
693
|
-
bold:
|
694
|
-
fontSize:
|
655
|
+
bold: z.boolean().describe("Whether the text is bold").optional(),
|
656
|
+
fontSize: z
|
695
657
|
.object({
|
696
|
-
magnitude:
|
697
|
-
unit:
|
658
|
+
magnitude: z.number().describe("The font size in points").optional(),
|
659
|
+
unit: z.string().describe("The units for the font size").optional(),
|
698
660
|
})
|
699
661
|
.describe("The size of the text's font")
|
700
662
|
.optional(),
|
701
|
-
foregroundColor:
|
663
|
+
foregroundColor: z
|
702
664
|
.object({})
|
703
|
-
.catchall(
|
665
|
+
.catchall(z.any())
|
704
666
|
.describe("The foreground color of the text")
|
705
667
|
.optional(),
|
706
|
-
italic:
|
707
|
-
link:
|
708
|
-
.object({ url:
|
668
|
+
italic: z.boolean().describe("Whether the text is italicized").optional(),
|
669
|
+
link: z
|
670
|
+
.object({ url: z.string().describe("The URL of the link").optional() })
|
709
671
|
.describe("The hyperlink destination of the text")
|
710
672
|
.optional(),
|
711
|
-
strikethrough:
|
712
|
-
underline:
|
713
|
-
weightedFontFamily:
|
673
|
+
strikethrough: z.boolean().describe("Whether the text is struck through").optional(),
|
674
|
+
underline: z.boolean().describe("Whether the text is underlined").optional(),
|
675
|
+
weightedFontFamily: z
|
714
676
|
.object({
|
715
|
-
fontFamily:
|
716
|
-
weight:
|
677
|
+
fontFamily: z.string().describe("The font family of the text").optional(),
|
678
|
+
weight: z.number().int().describe("The weight of the font").optional(),
|
717
679
|
})
|
718
680
|
.describe("The font family and weight of the text")
|
719
681
|
.optional(),
|
720
682
|
})
|
721
683
|
.describe("The styles to set on the text"),
|
722
|
-
fields:
|
723
|
-
range:
|
684
|
+
fields: z.string().describe("The fields that should be updated"),
|
685
|
+
range: z
|
724
686
|
.object({
|
725
|
-
startIndex:
|
726
|
-
endIndex:
|
687
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
688
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
727
689
|
})
|
728
690
|
.describe("The range of text to style")
|
729
691
|
.optional(),
|
730
692
|
})
|
731
693
|
.describe("Updates the styling of text"),
|
732
694
|
}),
|
733
|
-
|
734
|
-
deleteContentRange:
|
695
|
+
z.object({
|
696
|
+
deleteContentRange: z
|
735
697
|
.object({
|
736
|
-
range:
|
698
|
+
range: z
|
737
699
|
.object({
|
738
|
-
startIndex:
|
739
|
-
endIndex:
|
700
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
701
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
740
702
|
})
|
741
703
|
.describe("The range of content to delete"),
|
742
704
|
})
|
743
705
|
.describe("Deletes content between two structural locations"),
|
744
706
|
}),
|
745
|
-
|
746
|
-
insertTableRow:
|
707
|
+
z.object({
|
708
|
+
insertTableRow: z
|
747
709
|
.object({
|
748
|
-
tableCellLocation:
|
710
|
+
tableCellLocation: z
|
749
711
|
.object({
|
750
|
-
tableStartLocation:
|
751
|
-
.object({ index:
|
712
|
+
tableStartLocation: z
|
713
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
752
714
|
.describe("The location where the table starts"),
|
753
|
-
rowIndex:
|
754
|
-
columnIndex:
|
715
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
716
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
755
717
|
})
|
756
718
|
.describe("The location where the table row will be inserted"),
|
757
|
-
insertBelow:
|
719
|
+
insertBelow: z.boolean().describe("Whether to insert the row below the reference row"),
|
758
720
|
})
|
759
721
|
.describe("Inserts a new table row"),
|
760
722
|
}),
|
761
|
-
|
762
|
-
insertTableColumn:
|
723
|
+
z.object({
|
724
|
+
insertTableColumn: z
|
763
725
|
.object({
|
764
|
-
tableCellLocation:
|
726
|
+
tableCellLocation: z
|
765
727
|
.object({
|
766
|
-
tableStartLocation:
|
767
|
-
.object({ index:
|
728
|
+
tableStartLocation: z
|
729
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
768
730
|
.describe("The location where the table starts"),
|
769
|
-
rowIndex:
|
770
|
-
columnIndex:
|
731
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
732
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
771
733
|
})
|
772
734
|
.describe("The location where the table column will be inserted"),
|
773
|
-
insertRight:
|
735
|
+
insertRight: z
|
774
736
|
.boolean()
|
775
737
|
.describe("Whether to insert the column to the right of the reference column"),
|
776
738
|
})
|
777
739
|
.describe("Inserts a new table column"),
|
778
740
|
}),
|
779
|
-
|
780
|
-
deleteTableRow:
|
741
|
+
z.object({
|
742
|
+
deleteTableRow: z
|
781
743
|
.object({
|
782
|
-
tableCellLocation:
|
744
|
+
tableCellLocation: z
|
783
745
|
.object({
|
784
|
-
tableStartLocation:
|
785
|
-
.object({ index:
|
746
|
+
tableStartLocation: z
|
747
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
786
748
|
.describe("The location where the table starts"),
|
787
|
-
rowIndex:
|
788
|
-
columnIndex:
|
749
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
750
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
789
751
|
})
|
790
752
|
.describe("The location of the row to delete"),
|
791
753
|
})
|
792
754
|
.describe("Deletes a table row"),
|
793
755
|
}),
|
794
|
-
|
795
|
-
deleteTableColumn:
|
756
|
+
z.object({
|
757
|
+
deleteTableColumn: z
|
796
758
|
.object({
|
797
|
-
tableCellLocation:
|
759
|
+
tableCellLocation: z
|
798
760
|
.object({
|
799
|
-
tableStartLocation:
|
800
|
-
.object({ index:
|
761
|
+
tableStartLocation: z
|
762
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
801
763
|
.describe("The location where the table starts"),
|
802
|
-
rowIndex:
|
803
|
-
columnIndex:
|
764
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
765
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
804
766
|
})
|
805
767
|
.describe("The location of the column to delete"),
|
806
768
|
})
|
807
769
|
.describe("Deletes a table column"),
|
808
770
|
}),
|
809
|
-
|
810
|
-
updateParagraphStyle:
|
771
|
+
z.object({
|
772
|
+
updateParagraphStyle: z
|
811
773
|
.object({
|
812
|
-
range:
|
774
|
+
range: z
|
813
775
|
.object({
|
814
|
-
startIndex:
|
815
|
-
endIndex:
|
776
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
777
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
816
778
|
})
|
817
779
|
.describe("The range of paragraphs to update"),
|
818
|
-
paragraphStyle:
|
780
|
+
paragraphStyle: z
|
819
781
|
.object({
|
820
|
-
alignment:
|
782
|
+
alignment: z
|
821
783
|
.enum(["ALIGNMENT_UNSPECIFIED", "START", "CENTER", "END", "JUSTIFIED"])
|
822
784
|
.describe("The text alignment")
|
823
785
|
.optional(),
|
824
|
-
direction:
|
786
|
+
direction: z
|
825
787
|
.enum(["CONTENT_DIRECTION_UNSPECIFIED", "LEFT_TO_RIGHT", "RIGHT_TO_LEFT"])
|
826
788
|
.describe("The text direction")
|
827
789
|
.optional(),
|
828
|
-
indentStart:
|
790
|
+
indentStart: z
|
829
791
|
.object({
|
830
|
-
magnitude:
|
831
|
-
unit:
|
792
|
+
magnitude: z.number().describe("The magnitude of indentation").optional(),
|
793
|
+
unit: z.string().describe("The units of indentation").optional(),
|
832
794
|
})
|
833
795
|
.describe("The amount of indentation for the paragraph")
|
834
796
|
.optional(),
|
835
|
-
indentEnd:
|
797
|
+
indentEnd: z
|
836
798
|
.object({})
|
837
|
-
.catchall(
|
799
|
+
.catchall(z.any())
|
838
800
|
.describe("The amount of indentation from the end")
|
839
801
|
.optional(),
|
840
|
-
indentFirstLine:
|
802
|
+
indentFirstLine: z
|
841
803
|
.object({})
|
842
|
-
.catchall(
|
804
|
+
.catchall(z.any())
|
843
805
|
.describe("The amount of indentation for the first line")
|
844
806
|
.optional(),
|
845
|
-
keepLinesTogether:
|
807
|
+
keepLinesTogether: z
|
846
808
|
.boolean()
|
847
809
|
.describe("Whether to keep all lines on the same page")
|
848
810
|
.optional(),
|
849
|
-
keepWithNext:
|
850
|
-
lineSpacing:
|
851
|
-
spaceAbove:
|
811
|
+
keepWithNext: z.boolean().describe("Whether to keep with the next paragraph").optional(),
|
812
|
+
lineSpacing: z.number().describe("The amount of space between lines").optional(),
|
813
|
+
spaceAbove: z
|
852
814
|
.object({})
|
853
|
-
.catchall(
|
815
|
+
.catchall(z.any())
|
854
816
|
.describe("The amount of space above the paragraph")
|
855
817
|
.optional(),
|
856
|
-
spaceBelow:
|
818
|
+
spaceBelow: z
|
857
819
|
.object({})
|
858
|
-
.catchall(
|
820
|
+
.catchall(z.any())
|
859
821
|
.describe("The amount of space below the paragraph")
|
860
822
|
.optional(),
|
861
|
-
spacingMode:
|
823
|
+
spacingMode: z
|
862
824
|
.enum(["SPACING_MODE_UNSPECIFIED", "NEVER_COLLAPSE", "COLLAPSE_LISTS"])
|
863
825
|
.describe("The spacing mode")
|
864
826
|
.optional(),
|
865
|
-
tabStops:
|
866
|
-
.array(
|
867
|
-
offset:
|
868
|
-
alignment:
|
827
|
+
tabStops: z
|
828
|
+
.array(z.object({
|
829
|
+
offset: z.object({}).catchall(z.any()).describe("The offset of the tab stop").optional(),
|
830
|
+
alignment: z.string().describe("The alignment of the tab stop").optional(),
|
869
831
|
}))
|
870
832
|
.describe("The tab stops for the paragraph")
|
871
833
|
.optional(),
|
872
834
|
})
|
873
835
|
.describe("The styles to set on the paragraphs"),
|
874
|
-
fields:
|
836
|
+
fields: z.string().describe("The fields that should be updated"),
|
875
837
|
})
|
876
838
|
.describe("Updates the style of paragraphs"),
|
877
839
|
}),
|
878
|
-
|
879
|
-
createParagraphBullets:
|
840
|
+
z.object({
|
841
|
+
createParagraphBullets: z
|
880
842
|
.object({
|
881
|
-
range:
|
843
|
+
range: z
|
882
844
|
.object({
|
883
|
-
startIndex:
|
884
|
-
endIndex:
|
845
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
846
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
885
847
|
})
|
886
848
|
.describe("The range of paragraphs to bullet"),
|
887
|
-
bulletPreset:
|
849
|
+
bulletPreset: z
|
888
850
|
.enum([
|
889
851
|
"BULLET_UNSPECIFIED",
|
890
852
|
"BULLET_DISC_CIRCLE_SQUARE",
|
@@ -908,250 +870,250 @@ exports.googleOauthUpdateDocParamsSchema = zod_1.z.object({
|
|
908
870
|
})
|
909
871
|
.describe("Creates bullets for paragraphs"),
|
910
872
|
}),
|
911
|
-
|
912
|
-
deleteParagraphBullets:
|
873
|
+
z.object({
|
874
|
+
deleteParagraphBullets: z
|
913
875
|
.object({
|
914
|
-
range:
|
876
|
+
range: z
|
915
877
|
.object({
|
916
|
-
startIndex:
|
917
|
-
endIndex:
|
878
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
879
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
918
880
|
})
|
919
881
|
.describe("The range of paragraphs to remove bullets from"),
|
920
882
|
})
|
921
883
|
.describe("Deletes bullets from paragraphs"),
|
922
884
|
}),
|
923
|
-
|
924
|
-
insertPageBreak:
|
885
|
+
z.object({
|
886
|
+
insertPageBreak: z
|
925
887
|
.object({
|
926
|
-
location:
|
927
|
-
.object({ index:
|
888
|
+
location: z
|
889
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
928
890
|
.describe("The location at which to insert the page break"),
|
929
891
|
})
|
930
892
|
.describe("Inserts a page break"),
|
931
893
|
}),
|
932
|
-
|
933
|
-
updateDocumentStyle:
|
894
|
+
z.object({
|
895
|
+
updateDocumentStyle: z
|
934
896
|
.object({
|
935
|
-
documentStyle:
|
897
|
+
documentStyle: z
|
936
898
|
.object({
|
937
|
-
background:
|
899
|
+
background: z
|
938
900
|
.object({})
|
939
|
-
.catchall(
|
901
|
+
.catchall(z.any())
|
940
902
|
.describe("The background of the document")
|
941
903
|
.optional(),
|
942
|
-
defaultHeaderId:
|
943
|
-
defaultFooterId:
|
944
|
-
evenPageHeaderId:
|
945
|
-
evenPageFooterId:
|
946
|
-
firstPageHeaderId:
|
904
|
+
defaultHeaderId: z.string().describe("The ID of the default header").optional(),
|
905
|
+
defaultFooterId: z.string().describe("The ID of the default footer").optional(),
|
906
|
+
evenPageHeaderId: z.string().describe("The ID of the header used on even pages").optional(),
|
907
|
+
evenPageFooterId: z.string().describe("The ID of the footer used on even pages").optional(),
|
908
|
+
firstPageHeaderId: z
|
947
909
|
.string()
|
948
910
|
.describe("The ID of the header used on the first page")
|
949
911
|
.optional(),
|
950
|
-
firstPageFooterId:
|
912
|
+
firstPageFooterId: z
|
951
913
|
.string()
|
952
914
|
.describe("The ID of the footer used on the first page")
|
953
915
|
.optional(),
|
954
|
-
marginTop:
|
955
|
-
marginBottom:
|
956
|
-
marginRight:
|
957
|
-
marginLeft:
|
958
|
-
pageNumberStart:
|
916
|
+
marginTop: z.object({}).catchall(z.any()).describe("The top page margin").optional(),
|
917
|
+
marginBottom: z.object({}).catchall(z.any()).describe("The bottom page margin").optional(),
|
918
|
+
marginRight: z.object({}).catchall(z.any()).describe("The right page margin").optional(),
|
919
|
+
marginLeft: z.object({}).catchall(z.any()).describe("The left page margin").optional(),
|
920
|
+
pageNumberStart: z
|
959
921
|
.number()
|
960
922
|
.int()
|
961
923
|
.describe("The page number from which to start counting")
|
962
924
|
.optional(),
|
963
|
-
pageSize:
|
925
|
+
pageSize: z
|
964
926
|
.object({
|
965
|
-
width:
|
966
|
-
height:
|
927
|
+
width: z.object({}).catchall(z.any()).describe("The width of the page").optional(),
|
928
|
+
height: z.object({}).catchall(z.any()).describe("The height of the page").optional(),
|
967
929
|
})
|
968
930
|
.describe("The size of the pages in the document")
|
969
931
|
.optional(),
|
970
|
-
useCustomHeaderFooterMargins:
|
932
|
+
useCustomHeaderFooterMargins: z
|
971
933
|
.boolean()
|
972
934
|
.describe("Whether to use custom margins for headers and footers")
|
973
935
|
.optional(),
|
974
936
|
})
|
975
937
|
.describe("The styles to set on the document"),
|
976
|
-
fields:
|
938
|
+
fields: z.string().describe("The fields that should be updated"),
|
977
939
|
})
|
978
940
|
.describe("Updates the style of the document"),
|
979
941
|
}),
|
980
|
-
|
981
|
-
createHeader:
|
942
|
+
z.object({
|
943
|
+
createHeader: z
|
982
944
|
.object({
|
983
|
-
type:
|
945
|
+
type: z
|
984
946
|
.enum(["HEADER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"])
|
985
947
|
.describe("The type of header to create"),
|
986
948
|
})
|
987
949
|
.describe("Creates a header"),
|
988
950
|
}),
|
989
|
-
|
990
|
-
createFooter:
|
951
|
+
z.object({
|
952
|
+
createFooter: z
|
991
953
|
.object({
|
992
|
-
type:
|
954
|
+
type: z
|
993
955
|
.enum(["FOOTER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"])
|
994
956
|
.describe("The type of footer to create"),
|
995
957
|
})
|
996
958
|
.describe("Creates a footer"),
|
997
959
|
}),
|
998
|
-
|
999
|
-
updateTableCellStyle:
|
960
|
+
z.object({
|
961
|
+
updateTableCellStyle: z
|
1000
962
|
.object({
|
1001
|
-
tableCellStyle:
|
963
|
+
tableCellStyle: z
|
1002
964
|
.object({
|
1003
|
-
backgroundColor:
|
965
|
+
backgroundColor: z
|
1004
966
|
.object({})
|
1005
|
-
.catchall(
|
967
|
+
.catchall(z.any())
|
1006
968
|
.describe("The background color of the cells")
|
1007
969
|
.optional(),
|
1008
|
-
borderBottom:
|
970
|
+
borderBottom: z
|
1009
971
|
.object({})
|
1010
|
-
.catchall(
|
972
|
+
.catchall(z.any())
|
1011
973
|
.describe("The bottom border of the cells")
|
1012
974
|
.optional(),
|
1013
|
-
borderLeft:
|
1014
|
-
borderRight:
|
975
|
+
borderLeft: z.object({}).catchall(z.any()).describe("The left border of the cells").optional(),
|
976
|
+
borderRight: z
|
1015
977
|
.object({})
|
1016
|
-
.catchall(
|
978
|
+
.catchall(z.any())
|
1017
979
|
.describe("The right border of the cells")
|
1018
980
|
.optional(),
|
1019
|
-
borderTop:
|
1020
|
-
columnSpan:
|
1021
|
-
contentAlignment:
|
981
|
+
borderTop: z.object({}).catchall(z.any()).describe("The top border of the cells").optional(),
|
982
|
+
columnSpan: z.number().int().describe("The number of columns that the cell spans").optional(),
|
983
|
+
contentAlignment: z
|
1022
984
|
.string()
|
1023
985
|
.describe("The alignment of the content within the cells")
|
1024
986
|
.optional(),
|
1025
|
-
paddingBottom:
|
987
|
+
paddingBottom: z
|
1026
988
|
.object({})
|
1027
|
-
.catchall(
|
989
|
+
.catchall(z.any())
|
1028
990
|
.describe("The bottom padding of the cells")
|
1029
991
|
.optional(),
|
1030
|
-
paddingLeft:
|
992
|
+
paddingLeft: z
|
1031
993
|
.object({})
|
1032
|
-
.catchall(
|
994
|
+
.catchall(z.any())
|
1033
995
|
.describe("The left padding of the cells")
|
1034
996
|
.optional(),
|
1035
|
-
paddingRight:
|
997
|
+
paddingRight: z
|
1036
998
|
.object({})
|
1037
|
-
.catchall(
|
999
|
+
.catchall(z.any())
|
1038
1000
|
.describe("The right padding of the cells")
|
1039
1001
|
.optional(),
|
1040
|
-
paddingTop:
|
1041
|
-
rowSpan:
|
1002
|
+
paddingTop: z.object({}).catchall(z.any()).describe("The top padding of the cells").optional(),
|
1003
|
+
rowSpan: z.number().int().describe("The number of rows that the cell spans").optional(),
|
1042
1004
|
})
|
1043
1005
|
.describe("The style to apply to the cells"),
|
1044
|
-
fields:
|
1045
|
-
tableRange:
|
1006
|
+
fields: z.string().describe("The fields that should be updated"),
|
1007
|
+
tableRange: z
|
1046
1008
|
.object({
|
1047
|
-
tableCellLocation:
|
1009
|
+
tableCellLocation: z
|
1048
1010
|
.object({
|
1049
|
-
tableStartLocation:
|
1050
|
-
.object({ index:
|
1011
|
+
tableStartLocation: z
|
1012
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
1051
1013
|
.describe("The location where the table starts"),
|
1052
|
-
rowIndex:
|
1053
|
-
columnIndex:
|
1014
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
1015
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
1054
1016
|
})
|
1055
1017
|
.describe("The location of the table cell"),
|
1056
|
-
rowSpan:
|
1057
|
-
columnSpan:
|
1018
|
+
rowSpan: z.number().int().describe("The number of rows that the range should span"),
|
1019
|
+
columnSpan: z.number().int().describe("The number of columns that the range should span"),
|
1058
1020
|
})
|
1059
1021
|
.describe("The table range to apply the style to"),
|
1060
1022
|
})
|
1061
1023
|
.describe("Updates the style of table cells"),
|
1062
1024
|
}),
|
1063
|
-
|
1064
|
-
mergeTableCells:
|
1025
|
+
z.object({
|
1026
|
+
mergeTableCells: z
|
1065
1027
|
.object({
|
1066
|
-
tableRange:
|
1028
|
+
tableRange: z
|
1067
1029
|
.object({
|
1068
|
-
tableCellLocation:
|
1030
|
+
tableCellLocation: z
|
1069
1031
|
.object({
|
1070
|
-
tableStartLocation:
|
1071
|
-
.object({ index:
|
1032
|
+
tableStartLocation: z
|
1033
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
1072
1034
|
.describe("The location where the table starts"),
|
1073
|
-
rowIndex:
|
1074
|
-
columnIndex:
|
1035
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
1036
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
1075
1037
|
})
|
1076
1038
|
.describe("The location of the table cell"),
|
1077
|
-
rowSpan:
|
1078
|
-
columnSpan:
|
1039
|
+
rowSpan: z.number().int().describe("The number of rows that the range should span"),
|
1040
|
+
columnSpan: z.number().int().describe("The number of columns that the range should span"),
|
1079
1041
|
})
|
1080
1042
|
.describe("The table range to merge"),
|
1081
1043
|
})
|
1082
1044
|
.describe("Merges table cells together"),
|
1083
1045
|
}),
|
1084
|
-
|
1085
|
-
unmergeTableCells:
|
1046
|
+
z.object({
|
1047
|
+
unmergeTableCells: z
|
1086
1048
|
.object({
|
1087
|
-
tableRange:
|
1049
|
+
tableRange: z
|
1088
1050
|
.object({
|
1089
|
-
tableCellLocation:
|
1051
|
+
tableCellLocation: z
|
1090
1052
|
.object({
|
1091
|
-
tableStartLocation:
|
1092
|
-
.object({ index:
|
1053
|
+
tableStartLocation: z
|
1054
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
1093
1055
|
.describe("The location where the table starts"),
|
1094
|
-
rowIndex:
|
1095
|
-
columnIndex:
|
1056
|
+
rowIndex: z.number().int().describe("The zero-based row index").optional(),
|
1057
|
+
columnIndex: z.number().int().describe("The zero-based column index").optional(),
|
1096
1058
|
})
|
1097
1059
|
.describe("The location of the table cell"),
|
1098
|
-
rowSpan:
|
1099
|
-
columnSpan:
|
1060
|
+
rowSpan: z.number().int().describe("The number of rows that the range should span"),
|
1061
|
+
columnSpan: z.number().int().describe("The number of columns that the range should span"),
|
1100
1062
|
})
|
1101
1063
|
.describe("The table range to unmerge"),
|
1102
1064
|
})
|
1103
1065
|
.describe("Unmerges merged table cells"),
|
1104
1066
|
}),
|
1105
|
-
|
1106
|
-
createNamedRange:
|
1067
|
+
z.object({
|
1068
|
+
createNamedRange: z
|
1107
1069
|
.object({
|
1108
|
-
name:
|
1109
|
-
range:
|
1070
|
+
name: z.string().describe("The name of the range"),
|
1071
|
+
range: z
|
1110
1072
|
.object({
|
1111
|
-
startIndex:
|
1112
|
-
endIndex:
|
1073
|
+
startIndex: z.number().int().describe("The zero-based starting index of the range"),
|
1074
|
+
endIndex: z.number().int().describe("The zero-based ending index of the range (exclusive)"),
|
1113
1075
|
})
|
1114
1076
|
.describe("The range to name"),
|
1115
1077
|
})
|
1116
1078
|
.describe("Creates a named range"),
|
1117
1079
|
}),
|
1118
|
-
|
1119
|
-
deleteNamedRange:
|
1120
|
-
.object({ name:
|
1080
|
+
z.object({
|
1081
|
+
deleteNamedRange: z
|
1082
|
+
.object({ name: z.string().describe("The name of the range to delete") })
|
1121
1083
|
.describe("Deletes a named range"),
|
1122
1084
|
}),
|
1123
|
-
|
1124
|
-
replaceNamedRangeContent:
|
1085
|
+
z.object({
|
1086
|
+
replaceNamedRangeContent: z
|
1125
1087
|
.object({
|
1126
|
-
name:
|
1127
|
-
text:
|
1088
|
+
name: z.string().describe("The name of the range to replace"),
|
1089
|
+
text: z.string().describe("The text to replace with"),
|
1128
1090
|
})
|
1129
1091
|
.describe("Replaces the content of a named range"),
|
1130
1092
|
}),
|
1131
|
-
|
1132
|
-
insertInlineImage:
|
1093
|
+
z.object({
|
1094
|
+
insertInlineImage: z
|
1133
1095
|
.object({
|
1134
|
-
location:
|
1135
|
-
.object({ index:
|
1096
|
+
location: z
|
1097
|
+
.object({ index: z.number().int().describe("The zero-based index in the document") })
|
1136
1098
|
.describe("The location at which to insert the image"),
|
1137
|
-
uri:
|
1138
|
-
objectSize:
|
1099
|
+
uri: z.string().describe("The image URI"),
|
1100
|
+
objectSize: z
|
1139
1101
|
.object({
|
1140
|
-
width:
|
1141
|
-
height:
|
1102
|
+
width: z.object({}).catchall(z.any()).describe("The width of the image").optional(),
|
1103
|
+
height: z.object({}).catchall(z.any()).describe("The height of the image").optional(),
|
1142
1104
|
})
|
1143
1105
|
.describe("The size that the object should appear as in the document"),
|
1144
1106
|
})
|
1145
1107
|
.describe("Inserts an inline image at a specific location"),
|
1146
1108
|
}),
|
1147
|
-
|
1148
|
-
deleteHeader:
|
1149
|
-
.object({ headerId:
|
1109
|
+
z.object({
|
1110
|
+
deleteHeader: z
|
1111
|
+
.object({ headerId: z.string().describe("The ID of the header to delete") })
|
1150
1112
|
.describe("Deletes a header"),
|
1151
1113
|
}),
|
1152
|
-
|
1153
|
-
deleteFooter:
|
1154
|
-
.object({ footerId:
|
1114
|
+
z.object({
|
1115
|
+
deleteFooter: z
|
1116
|
+
.object({ footerId: z.string().describe("The ID of the footer to delete") })
|
1155
1117
|
.describe("Deletes a footer"),
|
1156
1118
|
}),
|
1157
1119
|
];
|
@@ -1169,103 +1131,103 @@ exports.googleOauthUpdateDocParamsSchema = zod_1.z.object({
|
|
1169
1131
|
.describe("Array of requests to apply to the document. See https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#Request")
|
1170
1132
|
.optional(),
|
1171
1133
|
});
|
1172
|
-
|
1173
|
-
success:
|
1174
|
-
documentId:
|
1175
|
-
documentUrl:
|
1176
|
-
error:
|
1177
|
-
});
|
1178
|
-
|
1179
|
-
calendarId:
|
1180
|
-
name:
|
1181
|
-
start:
|
1182
|
-
end:
|
1183
|
-
description:
|
1184
|
-
attendees:
|
1185
|
-
.array(
|
1134
|
+
export const googleOauthUpdateDocOutputSchema = z.object({
|
1135
|
+
success: z.boolean().describe("Whether the document was updated successfully"),
|
1136
|
+
documentId: z.string().describe("The ID of the updated Google Doc").optional(),
|
1137
|
+
documentUrl: z.string().describe("The URL to access the updated Google Doc").optional(),
|
1138
|
+
error: z.string().describe("The error message if the update failed").optional(),
|
1139
|
+
});
|
1140
|
+
export const googleOauthScheduleCalendarMeetingParamsSchema = z.object({
|
1141
|
+
calendarId: z.string().describe("The ID of the calendar to schedule the meeting on"),
|
1142
|
+
name: z.string().describe("The name of the meeting"),
|
1143
|
+
start: z.string().describe("The start time of the meeting"),
|
1144
|
+
end: z.string().describe("The end time of the meeting"),
|
1145
|
+
description: z.string().describe("The description of the meeting").optional(),
|
1146
|
+
attendees: z
|
1147
|
+
.array(z.string().describe("The email of the attendee"))
|
1186
1148
|
.describe("The attendees of the meeting")
|
1187
1149
|
.optional(),
|
1188
|
-
useGoogleMeet:
|
1150
|
+
useGoogleMeet: z.boolean().describe("Whether to use Google Meet for the meeting").optional(),
|
1189
1151
|
});
|
1190
|
-
|
1191
|
-
success:
|
1192
|
-
eventId:
|
1193
|
-
eventUrl:
|
1194
|
-
error:
|
1152
|
+
export const googleOauthScheduleCalendarMeetingOutputSchema = z.object({
|
1153
|
+
success: z.boolean().describe("Whether the meeting was scheduled successfully"),
|
1154
|
+
eventId: z.string().describe("The ID of the event that was scheduled").optional(),
|
1155
|
+
eventUrl: z.string().describe("The URL to access the scheduled event").optional(),
|
1156
|
+
error: z.string().describe("The error that occurred if the meeting was not scheduled successfully").optional(),
|
1195
1157
|
});
|
1196
|
-
|
1197
|
-
maxResults:
|
1158
|
+
export const googleOauthListCalendarsParamsSchema = z.object({
|
1159
|
+
maxResults: z.number().int().describe("Maximum number of calendars to return, defaults to 250").optional(),
|
1198
1160
|
});
|
1199
|
-
|
1200
|
-
success:
|
1201
|
-
calendars:
|
1202
|
-
.array(
|
1161
|
+
export const googleOauthListCalendarsOutputSchema = z.object({
|
1162
|
+
success: z.boolean().describe("Whether the calendars were listed successfully"),
|
1163
|
+
calendars: z
|
1164
|
+
.array(z.object({ id: z.string().describe("The calendar ID"), summary: z.string().describe("The calendar name") }))
|
1203
1165
|
.describe("List of calendars"),
|
1204
|
-
error:
|
1166
|
+
error: z.string().describe("Error message if listing failed").optional(),
|
1205
1167
|
});
|
1206
|
-
|
1207
|
-
calendarId:
|
1208
|
-
query:
|
1209
|
-
maxResults:
|
1168
|
+
export const googleOauthListCalendarEventsParamsSchema = z.object({
|
1169
|
+
calendarId: z.string().describe("The ID of the calendar to list events from"),
|
1170
|
+
query: z.string().describe("Optional free-text search query to filter events").optional(),
|
1171
|
+
maxResults: z.number().int().describe("Maximum number of events to return, defaults to 250").optional(),
|
1210
1172
|
});
|
1211
|
-
|
1212
|
-
success:
|
1213
|
-
events:
|
1214
|
-
.array(
|
1173
|
+
export const googleOauthListCalendarEventsOutputSchema = z.object({
|
1174
|
+
success: z.boolean().describe("Whether the events were listed successfully"),
|
1175
|
+
events: z
|
1176
|
+
.array(z
|
1215
1177
|
.object({
|
1216
|
-
id:
|
1217
|
-
status:
|
1218
|
-
url:
|
1219
|
-
title:
|
1220
|
-
description:
|
1221
|
-
location:
|
1222
|
-
start:
|
1223
|
-
end:
|
1224
|
-
attendees:
|
1225
|
-
.array(
|
1226
|
-
email:
|
1227
|
-
displayName:
|
1228
|
-
responseStatus:
|
1178
|
+
id: z.string().describe("Event unique identifier").optional(),
|
1179
|
+
status: z.string().describe("Status of the event (e.g., confirmed, cancelled)").optional(),
|
1180
|
+
url: z.string().describe("Link to the event in the Google Calendar web UI").optional(),
|
1181
|
+
title: z.string().describe("Title of the event").optional(),
|
1182
|
+
description: z.string().describe("Description of the event").optional(),
|
1183
|
+
location: z.string().describe("Geographic location of the event as free-form text").optional(),
|
1184
|
+
start: z.string().describe("Start date/time (for timed events, RFC3339 timestamp)").optional(),
|
1185
|
+
end: z.string().describe("End date/time (for timed events, RFC3339 timestamp)").optional(),
|
1186
|
+
attendees: z
|
1187
|
+
.array(z.object({
|
1188
|
+
email: z.string().describe("The attendee's email address").optional(),
|
1189
|
+
displayName: z.string().describe("The attendee's name").optional(),
|
1190
|
+
responseStatus: z
|
1229
1191
|
.string()
|
1230
1192
|
.describe("The attendee's response status (accepted, declined, etc.)")
|
1231
1193
|
.optional(),
|
1232
1194
|
}))
|
1233
1195
|
.describe("List of attendees")
|
1234
1196
|
.optional(),
|
1235
|
-
organizer:
|
1197
|
+
organizer: z
|
1236
1198
|
.object({
|
1237
|
-
email:
|
1238
|
-
displayName:
|
1199
|
+
email: z.string().describe("The organizer's email address").optional(),
|
1200
|
+
displayName: z.string().describe("The organizer's name").optional(),
|
1239
1201
|
})
|
1240
1202
|
.describe("The organizer of the event")
|
1241
1203
|
.optional(),
|
1242
|
-
hangoutLink:
|
1243
|
-
created:
|
1244
|
-
updated:
|
1204
|
+
hangoutLink: z.string().describe("Google Meet link for the event, if available").optional(),
|
1205
|
+
created: z.string().describe("Creation time of the event (RFC3339 timestamp)").optional(),
|
1206
|
+
updated: z.string().describe("Last modification time of the event (RFC3339 timestamp)").optional(),
|
1245
1207
|
})
|
1246
1208
|
.describe("A calendar event"))
|
1247
1209
|
.describe("List of events"),
|
1248
|
-
error:
|
1210
|
+
error: z.string().describe("Error message if listing failed").optional(),
|
1249
1211
|
});
|
1250
|
-
|
1251
|
-
calendarId:
|
1252
|
-
eventId:
|
1253
|
-
updates:
|
1212
|
+
export const googleOauthUpdateCalendarEventParamsSchema = z.object({
|
1213
|
+
calendarId: z.string().describe("The ID of the calendar containing the event"),
|
1214
|
+
eventId: z.string().describe("The ID of the event to update"),
|
1215
|
+
updates: z
|
1254
1216
|
.object({
|
1255
|
-
title:
|
1256
|
-
description:
|
1257
|
-
start:
|
1258
|
-
end:
|
1259
|
-
location:
|
1260
|
-
attendees:
|
1261
|
-
.array(
|
1217
|
+
title: z.string().describe("The new title of the event").optional(),
|
1218
|
+
description: z.string().describe("The new description of the event").optional(),
|
1219
|
+
start: z.string().describe("The new start date/time (RFC3339 timestamp)").optional(),
|
1220
|
+
end: z.string().describe("The new end date/time (RFC3339 timestamp)").optional(),
|
1221
|
+
location: z.string().describe("The new location of the event").optional(),
|
1222
|
+
attendees: z
|
1223
|
+
.array(z.string().describe("The email of the attendee"))
|
1262
1224
|
.describe("The new list of attendees")
|
1263
1225
|
.optional(),
|
1264
|
-
status:
|
1265
|
-
organizer:
|
1226
|
+
status: z.string().describe("The new status of the event (e.g., confirmed, cancelled)").optional(),
|
1227
|
+
organizer: z
|
1266
1228
|
.object({
|
1267
|
-
email:
|
1268
|
-
displayName:
|
1229
|
+
email: z.string().describe("The organizer's email address").optional(),
|
1230
|
+
displayName: z.string().describe("The organizer's name").optional(),
|
1269
1231
|
})
|
1270
1232
|
.describe("The new organizer of the event")
|
1271
1233
|
.optional(),
|
@@ -1273,78 +1235,78 @@ exports.googleOauthUpdateCalendarEventParamsSchema = zod_1.z.object({
|
|
1273
1235
|
.describe("The fields to update on the event")
|
1274
1236
|
.optional(),
|
1275
1237
|
});
|
1276
|
-
|
1277
|
-
success:
|
1278
|
-
eventId:
|
1279
|
-
eventUrl:
|
1280
|
-
error:
|
1281
|
-
});
|
1282
|
-
|
1283
|
-
calendarId:
|
1284
|
-
eventId:
|
1285
|
-
});
|
1286
|
-
|
1287
|
-
success:
|
1288
|
-
error:
|
1289
|
-
});
|
1290
|
-
|
1291
|
-
title:
|
1292
|
-
sheets:
|
1293
|
-
.array(
|
1294
|
-
title:
|
1295
|
-
gridProperties:
|
1238
|
+
export const googleOauthUpdateCalendarEventOutputSchema = z.object({
|
1239
|
+
success: z.boolean().describe("Whether the event was updated successfully"),
|
1240
|
+
eventId: z.string().describe("The ID of the updated event").optional(),
|
1241
|
+
eventUrl: z.string().describe("The URL to access the updated event").optional(),
|
1242
|
+
error: z.string().describe("The error that occurred if the event was not updated successfully").optional(),
|
1243
|
+
});
|
1244
|
+
export const googleOauthDeleteCalendarEventParamsSchema = z.object({
|
1245
|
+
calendarId: z.string().describe("The ID of the calendar containing the event"),
|
1246
|
+
eventId: z.string().describe("The ID of the event to delete"),
|
1247
|
+
});
|
1248
|
+
export const googleOauthDeleteCalendarEventOutputSchema = z.object({
|
1249
|
+
success: z.boolean().describe("Whether the event was deleted successfully"),
|
1250
|
+
error: z.string().describe("The error that occurred if the event was not deleted successfully").optional(),
|
1251
|
+
});
|
1252
|
+
export const googleOauthCreateSpreadsheetParamsSchema = z.object({
|
1253
|
+
title: z.string().describe("The title of the new spreadsheet"),
|
1254
|
+
sheets: z
|
1255
|
+
.array(z.object({
|
1256
|
+
title: z.string().describe("The title of the sheet").optional(),
|
1257
|
+
gridProperties: z
|
1296
1258
|
.object({
|
1297
|
-
rowCount:
|
1298
|
-
columnCount:
|
1299
|
-
frozenRowCount:
|
1300
|
-
frozenColumnCount:
|
1259
|
+
rowCount: z.number().int().describe("The number of rows in the sheet").optional(),
|
1260
|
+
columnCount: z.number().int().describe("The number of columns in the sheet").optional(),
|
1261
|
+
frozenRowCount: z.number().int().describe("The number of frozen rows").optional(),
|
1262
|
+
frozenColumnCount: z.number().int().describe("The number of frozen columns").optional(),
|
1301
1263
|
})
|
1302
1264
|
.optional(),
|
1303
1265
|
}))
|
1304
1266
|
.describe("The initial sheets to create in the spreadsheet")
|
1305
1267
|
.optional(),
|
1306
|
-
properties:
|
1268
|
+
properties: z
|
1307
1269
|
.object({
|
1308
|
-
locale:
|
1309
|
-
timeZone:
|
1310
|
-
autoRecalc:
|
1270
|
+
locale: z.string().describe("The locale of the spreadsheet (e.g., en_US)").optional(),
|
1271
|
+
timeZone: z.string().describe("The time zone of the spreadsheet (e.g., America/New_York)").optional(),
|
1272
|
+
autoRecalc: z.enum(["ON_CHANGE", "MINUTE", "HOUR"]).describe("When to recalculate the spreadsheet").optional(),
|
1311
1273
|
})
|
1312
1274
|
.describe("Properties for the spreadsheet")
|
1313
1275
|
.optional(),
|
1314
1276
|
});
|
1315
|
-
|
1316
|
-
success:
|
1317
|
-
spreadsheetId:
|
1318
|
-
spreadsheetUrl:
|
1319
|
-
sheets:
|
1320
|
-
.array(
|
1321
|
-
sheetId:
|
1322
|
-
title:
|
1323
|
-
index:
|
1277
|
+
export const googleOauthCreateSpreadsheetOutputSchema = z.object({
|
1278
|
+
success: z.boolean().describe("Whether the spreadsheet was created successfully"),
|
1279
|
+
spreadsheetId: z.string().describe("The ID of the created spreadsheet").optional(),
|
1280
|
+
spreadsheetUrl: z.string().describe("The URL to access the created spreadsheet").optional(),
|
1281
|
+
sheets: z
|
1282
|
+
.array(z.object({
|
1283
|
+
sheetId: z.number().int().describe("The ID of the sheet").optional(),
|
1284
|
+
title: z.string().describe("The title of the sheet").optional(),
|
1285
|
+
index: z.number().int().describe("The index of the sheet").optional(),
|
1324
1286
|
}))
|
1325
1287
|
.describe("Information about the created sheets")
|
1326
1288
|
.optional(),
|
1327
|
-
error:
|
1289
|
+
error: z.string().describe("The error that occurred if the spreadsheet was not created successfully").optional(),
|
1328
1290
|
});
|
1329
|
-
|
1330
|
-
spreadsheetId:
|
1331
|
-
requests:
|
1332
|
-
.array(
|
1291
|
+
export const googleOauthUpdateSpreadsheetParamsSchema = z.object({
|
1292
|
+
spreadsheetId: z.string().describe("The ID of the Google Spreadsheet to update"),
|
1293
|
+
requests: z
|
1294
|
+
.array(z
|
1333
1295
|
.object({})
|
1334
|
-
.catchall(
|
1335
|
-
.and(
|
1296
|
+
.catchall(z.any())
|
1297
|
+
.and(z.any().superRefine((x, ctx) => {
|
1336
1298
|
const schemas = [
|
1337
|
-
|
1299
|
+
z
|
1338
1300
|
.object({
|
1339
|
-
addSheet:
|
1301
|
+
addSheet: z
|
1340
1302
|
.object({
|
1341
|
-
properties:
|
1303
|
+
properties: z
|
1342
1304
|
.object({
|
1343
|
-
title:
|
1344
|
-
gridProperties:
|
1305
|
+
title: z.string().describe("The title of the new sheet").optional(),
|
1306
|
+
gridProperties: z
|
1345
1307
|
.object({
|
1346
|
-
rowCount:
|
1347
|
-
columnCount:
|
1308
|
+
rowCount: z.number().int().describe("The number of rows in the sheet").optional(),
|
1309
|
+
columnCount: z.number().int().describe("The number of columns in the sheet").optional(),
|
1348
1310
|
})
|
1349
1311
|
.optional(),
|
1350
1312
|
})
|
@@ -1353,40 +1315,40 @@ exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
|
1353
1315
|
.optional(),
|
1354
1316
|
})
|
1355
1317
|
.describe("Add or update a sheet"),
|
1356
|
-
|
1318
|
+
z
|
1357
1319
|
.object({
|
1358
|
-
deleteSheet:
|
1359
|
-
.object({ sheetId:
|
1320
|
+
deleteSheet: z
|
1321
|
+
.object({ sheetId: z.number().int().describe("The ID of the sheet to delete").optional() })
|
1360
1322
|
.optional(),
|
1361
1323
|
})
|
1362
1324
|
.describe("Delete a sheet"),
|
1363
|
-
|
1325
|
+
z
|
1364
1326
|
.object({
|
1365
|
-
updateCells:
|
1327
|
+
updateCells: z
|
1366
1328
|
.object({
|
1367
|
-
range:
|
1329
|
+
range: z
|
1368
1330
|
.object({
|
1369
|
-
sheetId:
|
1370
|
-
startRowIndex:
|
1371
|
-
endRowIndex:
|
1372
|
-
startColumnIndex:
|
1331
|
+
sheetId: z.number().int().describe("The ID of the sheet").optional(),
|
1332
|
+
startRowIndex: z.number().int().describe("The start row (0-based, inclusive)").optional(),
|
1333
|
+
endRowIndex: z.number().int().describe("The end row (0-based, exclusive)").optional(),
|
1334
|
+
startColumnIndex: z
|
1373
1335
|
.number()
|
1374
1336
|
.int()
|
1375
1337
|
.describe("The start column (0-based, inclusive)")
|
1376
1338
|
.optional(),
|
1377
|
-
endColumnIndex:
|
1339
|
+
endColumnIndex: z.number().int().describe("The end column (0-based, exclusive)").optional(),
|
1378
1340
|
})
|
1379
1341
|
.optional(),
|
1380
|
-
rows:
|
1381
|
-
.array(
|
1382
|
-
values:
|
1383
|
-
.array(
|
1384
|
-
userEnteredValue:
|
1342
|
+
rows: z
|
1343
|
+
.array(z.object({
|
1344
|
+
values: z
|
1345
|
+
.array(z.object({
|
1346
|
+
userEnteredValue: z
|
1385
1347
|
.object({
|
1386
|
-
stringValue:
|
1387
|
-
numberValue:
|
1388
|
-
boolValue:
|
1389
|
-
formulaValue:
|
1348
|
+
stringValue: z.string().optional(),
|
1349
|
+
numberValue: z.number().optional(),
|
1350
|
+
boolValue: z.boolean().optional(),
|
1351
|
+
formulaValue: z.string().optional(),
|
1390
1352
|
})
|
1391
1353
|
.optional(),
|
1392
1354
|
}))
|
@@ -1397,25 +1359,25 @@ exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
|
1397
1359
|
.optional(),
|
1398
1360
|
})
|
1399
1361
|
.describe("Update cells in a range"),
|
1400
|
-
|
1362
|
+
z
|
1401
1363
|
.object({
|
1402
|
-
updateSheetProperties:
|
1364
|
+
updateSheetProperties: z
|
1403
1365
|
.object({
|
1404
|
-
properties:
|
1366
|
+
properties: z
|
1405
1367
|
.object({
|
1406
|
-
sheetId:
|
1407
|
-
title:
|
1408
|
-
gridProperties:
|
1368
|
+
sheetId: z.number().int().describe("The ID of the sheet to update").optional(),
|
1369
|
+
title: z.string().describe("The new title of the sheet").optional(),
|
1370
|
+
gridProperties: z
|
1409
1371
|
.object({
|
1410
|
-
rowCount:
|
1411
|
-
columnCount:
|
1412
|
-
frozenRowCount:
|
1413
|
-
frozenColumnCount:
|
1372
|
+
rowCount: z.number().int().describe("The new number of rows").optional(),
|
1373
|
+
columnCount: z.number().int().describe("The new number of columns").optional(),
|
1374
|
+
frozenRowCount: z.number().int().describe("The number of frozen rows").optional(),
|
1375
|
+
frozenColumnCount: z.number().int().describe("The number of frozen columns").optional(),
|
1414
1376
|
})
|
1415
1377
|
.optional(),
|
1416
1378
|
})
|
1417
1379
|
.optional(),
|
1418
|
-
fields:
|
1380
|
+
fields: z
|
1419
1381
|
.string()
|
1420
1382
|
.describe("The fields to update (comma-separated list using JSON field paths)")
|
1421
1383
|
.optional(),
|
@@ -1423,35 +1385,35 @@ exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
|
1423
1385
|
.optional(),
|
1424
1386
|
})
|
1425
1387
|
.describe("Update sheet properties"),
|
1426
|
-
|
1388
|
+
z
|
1427
1389
|
.object({
|
1428
|
-
updateSpreadsheetProperties:
|
1390
|
+
updateSpreadsheetProperties: z
|
1429
1391
|
.object({
|
1430
|
-
properties:
|
1392
|
+
properties: z
|
1431
1393
|
.object({
|
1432
|
-
title:
|
1433
|
-
locale:
|
1434
|
-
timeZone:
|
1394
|
+
title: z.string().describe("The title of the spreadsheet").optional(),
|
1395
|
+
locale: z.string().describe("The locale of the spreadsheet (e.g., en_US)").optional(),
|
1396
|
+
timeZone: z
|
1435
1397
|
.string()
|
1436
1398
|
.describe("The time zone of the spreadsheet (e.g., America/New_York)")
|
1437
1399
|
.optional(),
|
1438
|
-
autoRecalc:
|
1400
|
+
autoRecalc: z
|
1439
1401
|
.enum(["ON_CHANGE", "MINUTE", "HOUR"])
|
1440
1402
|
.describe("When to recalculate the spreadsheet")
|
1441
1403
|
.optional(),
|
1442
|
-
defaultFormat:
|
1404
|
+
defaultFormat: z
|
1443
1405
|
.object({
|
1444
|
-
backgroundColor:
|
1406
|
+
backgroundColor: z
|
1445
1407
|
.object({
|
1446
|
-
red:
|
1447
|
-
green:
|
1448
|
-
blue:
|
1449
|
-
alpha:
|
1408
|
+
red: z.number().describe("The red component [0.0, 1.0]").optional(),
|
1409
|
+
green: z.number().describe("The green component [0.0, 1.0]").optional(),
|
1410
|
+
blue: z.number().describe("The blue component [0.0, 1.0]").optional(),
|
1411
|
+
alpha: z.number().describe("The alpha component [0.0, 1.0]").optional(),
|
1450
1412
|
})
|
1451
1413
|
.optional(),
|
1452
|
-
numberFormat:
|
1414
|
+
numberFormat: z
|
1453
1415
|
.object({
|
1454
|
-
type:
|
1416
|
+
type: z
|
1455
1417
|
.enum([
|
1456
1418
|
"TEXT",
|
1457
1419
|
"NUMBER",
|
@@ -1464,35 +1426,35 @@ exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
|
1464
1426
|
])
|
1465
1427
|
.describe("The type of the number format")
|
1466
1428
|
.optional(),
|
1467
|
-
pattern:
|
1429
|
+
pattern: z.string().describe("Pattern string used for formatting").optional(),
|
1468
1430
|
})
|
1469
1431
|
.optional(),
|
1470
|
-
textFormat:
|
1432
|
+
textFormat: z
|
1471
1433
|
.object({
|
1472
|
-
foregroundColor:
|
1434
|
+
foregroundColor: z
|
1473
1435
|
.object({
|
1474
|
-
red:
|
1475
|
-
green:
|
1476
|
-
blue:
|
1477
|
-
alpha:
|
1436
|
+
red: z.number().describe("The red component [0.0, 1.0]").optional(),
|
1437
|
+
green: z.number().describe("The green component [0.0, 1.0]").optional(),
|
1438
|
+
blue: z.number().describe("The blue component [0.0, 1.0]").optional(),
|
1439
|
+
alpha: z.number().describe("The alpha component [0.0, 1.0]").optional(),
|
1478
1440
|
})
|
1479
1441
|
.optional(),
|
1480
|
-
fontFamily:
|
1481
|
-
fontSize:
|
1482
|
-
bold:
|
1483
|
-
italic:
|
1484
|
-
strikethrough:
|
1442
|
+
fontFamily: z.string().describe("The font family").optional(),
|
1443
|
+
fontSize: z.number().int().describe("The size of the font in points").optional(),
|
1444
|
+
bold: z.boolean().describe("Whether the text is bold").optional(),
|
1445
|
+
italic: z.boolean().describe("Whether the text is italic").optional(),
|
1446
|
+
strikethrough: z
|
1485
1447
|
.boolean()
|
1486
1448
|
.describe("Whether the text has a strikethrough")
|
1487
1449
|
.optional(),
|
1488
|
-
underline:
|
1450
|
+
underline: z.boolean().describe("Whether the text is underlined").optional(),
|
1489
1451
|
})
|
1490
1452
|
.optional(),
|
1491
1453
|
})
|
1492
1454
|
.optional(),
|
1493
1455
|
})
|
1494
1456
|
.optional(),
|
1495
|
-
fields:
|
1457
|
+
fields: z
|
1496
1458
|
.string()
|
1497
1459
|
.describe("The fields to update (comma-separated list using JSON field paths)")
|
1498
1460
|
.optional(),
|
@@ -1513,22 +1475,22 @@ exports.googleOauthUpdateSpreadsheetParamsSchema = zod_1.z.object({
|
|
1513
1475
|
})))
|
1514
1476
|
.describe("The requests to update the spreadsheet with"),
|
1515
1477
|
});
|
1516
|
-
|
1517
|
-
success:
|
1518
|
-
spreadsheetUrl:
|
1519
|
-
replies:
|
1520
|
-
.array(
|
1478
|
+
export const googleOauthUpdateSpreadsheetOutputSchema = z.object({
|
1479
|
+
success: z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
1480
|
+
spreadsheetUrl: z.string().describe("The URL of the updated spreadsheet").optional(),
|
1481
|
+
replies: z
|
1482
|
+
.array(z
|
1521
1483
|
.object({})
|
1522
|
-
.catchall(
|
1523
|
-
.and(
|
1484
|
+
.catchall(z.any())
|
1485
|
+
.and(z
|
1524
1486
|
.object({
|
1525
|
-
addSheet:
|
1487
|
+
addSheet: z
|
1526
1488
|
.object({
|
1527
|
-
properties:
|
1489
|
+
properties: z
|
1528
1490
|
.object({
|
1529
|
-
sheetId:
|
1530
|
-
title:
|
1531
|
-
index:
|
1491
|
+
sheetId: z.number().int().describe("The ID of the newly created sheet").optional(),
|
1492
|
+
title: z.string().describe("The title of the new sheet").optional(),
|
1493
|
+
index: z.number().int().describe("The index of the new sheet").optional(),
|
1532
1494
|
})
|
1533
1495
|
.optional(),
|
1534
1496
|
})
|
@@ -1538,180 +1500,180 @@ exports.googleOauthUpdateSpreadsheetOutputSchema = zod_1.z.object({
|
|
1538
1500
|
.describe("The reply to a request"))
|
1539
1501
|
.describe("The replies to the requests")
|
1540
1502
|
.optional(),
|
1541
|
-
error:
|
1503
|
+
error: z.string().describe("The error that occurred if the spreadsheet was not updated successfully").optional(),
|
1542
1504
|
});
|
1543
|
-
|
1544
|
-
title:
|
1545
|
-
pageSize:
|
1505
|
+
export const googleOauthCreatePresentationParamsSchema = z.object({
|
1506
|
+
title: z.string().describe("The title of the presentation"),
|
1507
|
+
pageSize: z
|
1546
1508
|
.object({
|
1547
|
-
width:
|
1509
|
+
width: z
|
1548
1510
|
.object({
|
1549
|
-
unit:
|
1550
|
-
magnitude:
|
1511
|
+
unit: z.enum(["EMU", "PT"]).describe("The unit of the width").optional(),
|
1512
|
+
magnitude: z.number().describe("The width of the presentation").optional(),
|
1551
1513
|
})
|
1552
1514
|
.describe("The width object of the presentation")
|
1553
1515
|
.optional(),
|
1554
|
-
height:
|
1516
|
+
height: z
|
1555
1517
|
.object({
|
1556
|
-
unit:
|
1557
|
-
magnitude:
|
1518
|
+
unit: z.enum(["EMU", "PT"]).describe("The unit of the height").optional(),
|
1519
|
+
magnitude: z.number().describe("The height of the presentation").optional(),
|
1558
1520
|
})
|
1559
1521
|
.describe("The height object of the presentation")
|
1560
1522
|
.optional(),
|
1561
1523
|
})
|
1562
1524
|
.optional(),
|
1563
1525
|
});
|
1564
|
-
|
1565
|
-
success:
|
1566
|
-
error:
|
1567
|
-
presentationId:
|
1568
|
-
presentationUrl:
|
1526
|
+
export const googleOauthCreatePresentationOutputSchema = z.object({
|
1527
|
+
success: z.boolean().describe("Whether the presentation was created successfully"),
|
1528
|
+
error: z.string().describe("The error that occurred if the presentation was not created successfully").optional(),
|
1529
|
+
presentationId: z.string().describe("The ID of the created presentation").optional(),
|
1530
|
+
presentationUrl: z.string().describe("The URL of the created presentation").optional(),
|
1569
1531
|
});
|
1570
|
-
|
1571
|
-
presentationId:
|
1572
|
-
requests:
|
1573
|
-
.array(
|
1532
|
+
export const googleOauthUpdatePresentationParamsSchema = z.object({
|
1533
|
+
presentationId: z.string().describe("The ID of the presentation to update"),
|
1534
|
+
requests: z
|
1535
|
+
.array(z
|
1574
1536
|
.object({})
|
1575
|
-
.catchall(
|
1576
|
-
.and(
|
1537
|
+
.catchall(z.any())
|
1538
|
+
.and(z.any().superRefine((x, ctx) => {
|
1577
1539
|
const schemas = [
|
1578
|
-
|
1579
|
-
createSlide:
|
1540
|
+
z.object({
|
1541
|
+
createSlide: z
|
1580
1542
|
.object({
|
1581
|
-
objectId:
|
1582
|
-
insertionIndex:
|
1543
|
+
objectId: z.string().describe("The object ID for the created slide").optional(),
|
1544
|
+
insertionIndex: z
|
1583
1545
|
.number()
|
1584
1546
|
.int()
|
1585
1547
|
.describe("The 0-based index where the new slide should be inserted")
|
1586
1548
|
.optional(),
|
1587
|
-
slideLayoutReference:
|
1588
|
-
.object({ predefinedLayout:
|
1549
|
+
slideLayoutReference: z
|
1550
|
+
.object({ predefinedLayout: z.string().describe("Predefined layout of the slide").optional() })
|
1589
1551
|
.describe("Layout reference of the slide to be created")
|
1590
1552
|
.optional(),
|
1591
1553
|
})
|
1592
1554
|
.describe("Creates a new slide in the presentation"),
|
1593
1555
|
}),
|
1594
|
-
|
1595
|
-
createShape:
|
1556
|
+
z.object({
|
1557
|
+
createShape: z
|
1596
1558
|
.object({
|
1597
|
-
objectId:
|
1598
|
-
shapeType:
|
1599
|
-
elementProperties:
|
1559
|
+
objectId: z.string().describe("The object ID for the created shape"),
|
1560
|
+
shapeType: z.string().describe("The type of shape to create"),
|
1561
|
+
elementProperties: z
|
1600
1562
|
.object({})
|
1601
|
-
.catchall(
|
1563
|
+
.catchall(z.any())
|
1602
1564
|
.describe("The element's size and position")
|
1603
1565
|
.optional(),
|
1604
1566
|
})
|
1605
1567
|
.describe("Creates a new shape in the presentation"),
|
1606
1568
|
}),
|
1607
|
-
|
1608
|
-
createTable:
|
1569
|
+
z.object({
|
1570
|
+
createTable: z
|
1609
1571
|
.object({
|
1610
|
-
objectId:
|
1611
|
-
rows:
|
1612
|
-
columns:
|
1613
|
-
elementProperties:
|
1572
|
+
objectId: z.string().describe("The object ID for the created table").optional(),
|
1573
|
+
rows: z.number().int().describe("Number of rows in the table"),
|
1574
|
+
columns: z.number().int().describe("Number of columns in the table"),
|
1575
|
+
elementProperties: z
|
1614
1576
|
.object({})
|
1615
|
-
.catchall(
|
1577
|
+
.catchall(z.any())
|
1616
1578
|
.describe("The element's size and position")
|
1617
1579
|
.optional(),
|
1618
1580
|
})
|
1619
1581
|
.describe("Creates a new table in the presentation"),
|
1620
1582
|
}),
|
1621
|
-
|
1622
|
-
insertText:
|
1583
|
+
z.object({
|
1584
|
+
insertText: z
|
1623
1585
|
.object({
|
1624
|
-
objectId:
|
1625
|
-
text:
|
1626
|
-
insertionIndex:
|
1586
|
+
objectId: z.string().describe("The object ID of the shape or table cell"),
|
1587
|
+
text: z.string().describe("The text to be inserted"),
|
1588
|
+
insertionIndex: z.number().int().describe("The index where the text will be inserted").optional(),
|
1627
1589
|
})
|
1628
1590
|
.describe("Inserts text into a shape or table cell"),
|
1629
1591
|
}),
|
1630
|
-
|
1631
|
-
insertTableRows:
|
1592
|
+
z.object({
|
1593
|
+
insertTableRows: z
|
1632
1594
|
.object({
|
1633
|
-
tableObjectId:
|
1634
|
-
insertBelow:
|
1635
|
-
number:
|
1636
|
-
cellLocation:
|
1595
|
+
tableObjectId: z.string().describe("The table to insert rows into"),
|
1596
|
+
insertBelow: z.boolean().describe("Whether to insert the rows below the reference cell"),
|
1597
|
+
number: z.number().int().describe("The number of rows to insert").optional(),
|
1598
|
+
cellLocation: z
|
1637
1599
|
.object({})
|
1638
|
-
.catchall(
|
1600
|
+
.catchall(z.any())
|
1639
1601
|
.describe("The location where rows will be inserted")
|
1640
1602
|
.optional(),
|
1641
1603
|
})
|
1642
1604
|
.describe("Inserts rows into a table"),
|
1643
1605
|
}),
|
1644
|
-
|
1645
|
-
insertTableColumns:
|
1606
|
+
z.object({
|
1607
|
+
insertTableColumns: z
|
1646
1608
|
.object({
|
1647
|
-
tableObjectId:
|
1648
|
-
insertRight:
|
1609
|
+
tableObjectId: z.string().describe("The table to insert columns into"),
|
1610
|
+
insertRight: z
|
1649
1611
|
.boolean()
|
1650
1612
|
.describe("Whether to insert the columns to the right of the reference cell"),
|
1651
|
-
number:
|
1652
|
-
cellLocation:
|
1613
|
+
number: z.number().int().describe("The number of columns to insert").optional(),
|
1614
|
+
cellLocation: z
|
1653
1615
|
.object({})
|
1654
|
-
.catchall(
|
1616
|
+
.catchall(z.any())
|
1655
1617
|
.describe("The location where columns will be inserted")
|
1656
1618
|
.optional(),
|
1657
1619
|
})
|
1658
1620
|
.describe("Inserts columns into a table"),
|
1659
1621
|
}),
|
1660
|
-
|
1661
|
-
deleteTableRow:
|
1622
|
+
z.object({
|
1623
|
+
deleteTableRow: z
|
1662
1624
|
.object({
|
1663
|
-
tableObjectId:
|
1664
|
-
cellLocation:
|
1625
|
+
tableObjectId: z.string().describe("The table to delete a row from"),
|
1626
|
+
cellLocation: z.object({}).catchall(z.any()).describe("The location of the row to delete"),
|
1665
1627
|
})
|
1666
1628
|
.describe("Deletes a row from a table"),
|
1667
1629
|
}),
|
1668
|
-
|
1669
|
-
deleteTableColumn:
|
1630
|
+
z.object({
|
1631
|
+
deleteTableColumn: z
|
1670
1632
|
.object({
|
1671
|
-
tableObjectId:
|
1672
|
-
cellLocation:
|
1633
|
+
tableObjectId: z.string().describe("The table to delete a column from"),
|
1634
|
+
cellLocation: z.object({}).catchall(z.any()).describe("The location of the column to delete"),
|
1673
1635
|
})
|
1674
1636
|
.describe("Deletes a column from a table"),
|
1675
1637
|
}),
|
1676
|
-
|
1677
|
-
replaceAllText:
|
1638
|
+
z.object({
|
1639
|
+
replaceAllText: z
|
1678
1640
|
.object({
|
1679
|
-
replaceText:
|
1680
|
-
containsText:
|
1641
|
+
replaceText: z.string().describe("The text that will replace the matched text"),
|
1642
|
+
containsText: z
|
1681
1643
|
.object({
|
1682
|
-
text:
|
1683
|
-
matchCase:
|
1644
|
+
text: z.string().describe("The text to search for in the presentation"),
|
1645
|
+
matchCase: z.boolean().describe("Whether the search should be case sensitive").optional(),
|
1684
1646
|
})
|
1685
1647
|
.describe("The text to search for"),
|
1686
1648
|
})
|
1687
1649
|
.describe("Replaces all instances of text matching a criteria"),
|
1688
1650
|
}),
|
1689
|
-
|
1690
|
-
deleteObject:
|
1691
|
-
.object({ objectId:
|
1651
|
+
z.object({
|
1652
|
+
deleteObject: z
|
1653
|
+
.object({ objectId: z.string().describe("The object ID of the element to delete") })
|
1692
1654
|
.describe("Deletes an object from the presentation"),
|
1693
1655
|
}),
|
1694
|
-
|
1695
|
-
updatePageElementTransform:
|
1656
|
+
z.object({
|
1657
|
+
updatePageElementTransform: z
|
1696
1658
|
.object({
|
1697
|
-
objectId:
|
1698
|
-
transform:
|
1659
|
+
objectId: z.string().describe("The object ID of the element to update"),
|
1660
|
+
transform: z
|
1699
1661
|
.object({
|
1700
|
-
scaleX:
|
1701
|
-
scaleY:
|
1702
|
-
translateX:
|
1703
|
-
translateY:
|
1704
|
-
unit:
|
1662
|
+
scaleX: z.number().describe("The horizontal scale factor").optional(),
|
1663
|
+
scaleY: z.number().describe("The vertical scale factor").optional(),
|
1664
|
+
translateX: z.number().describe("The horizontal translation").optional(),
|
1665
|
+
translateY: z.number().describe("The vertical translation").optional(),
|
1666
|
+
unit: z.string().describe("The unit for translate values").optional(),
|
1705
1667
|
})
|
1706
1668
|
.describe("The transform to apply"),
|
1707
1669
|
})
|
1708
1670
|
.describe("Updates the transform of a page element"),
|
1709
1671
|
}),
|
1710
|
-
|
1711
|
-
updateSlidesPosition:
|
1672
|
+
z.object({
|
1673
|
+
updateSlidesPosition: z
|
1712
1674
|
.object({
|
1713
|
-
slideObjectIds:
|
1714
|
-
insertionIndex:
|
1675
|
+
slideObjectIds: z.array(z.string()).describe("The IDs of the slides to reorder"),
|
1676
|
+
insertionIndex: z
|
1715
1677
|
.number()
|
1716
1678
|
.int()
|
1717
1679
|
.describe("The 0-based index where the slides should be moved to")
|
@@ -1719,445 +1681,445 @@ exports.googleOauthUpdatePresentationParamsSchema = zod_1.z.object({
|
|
1719
1681
|
})
|
1720
1682
|
.describe("Updates the position of slides in the presentation"),
|
1721
1683
|
}),
|
1722
|
-
|
1723
|
-
deleteText:
|
1684
|
+
z.object({
|
1685
|
+
deleteText: z
|
1724
1686
|
.object({
|
1725
|
-
objectId:
|
1726
|
-
textRange:
|
1687
|
+
objectId: z.string().describe("The object ID of the shape or table cell"),
|
1688
|
+
textRange: z
|
1727
1689
|
.object({
|
1728
|
-
startIndex:
|
1729
|
-
endIndex:
|
1690
|
+
startIndex: z.number().int().describe("The starting index of the range (0-based)").optional(),
|
1691
|
+
endIndex: z.number().int().describe("The ending index of the range (0-based)").optional(),
|
1730
1692
|
})
|
1731
1693
|
.describe("The range of text to delete")
|
1732
1694
|
.optional(),
|
1733
1695
|
})
|
1734
1696
|
.describe("Deletes text from a shape or table cell"),
|
1735
1697
|
}),
|
1736
|
-
|
1737
|
-
createImage:
|
1698
|
+
z.object({
|
1699
|
+
createImage: z
|
1738
1700
|
.object({
|
1739
|
-
objectId:
|
1740
|
-
url:
|
1741
|
-
elementProperties:
|
1701
|
+
objectId: z.string().describe("The object ID for the created image").optional(),
|
1702
|
+
url: z.string().describe("The URL of the image to insert"),
|
1703
|
+
elementProperties: z
|
1742
1704
|
.object({})
|
1743
|
-
.catchall(
|
1705
|
+
.catchall(z.any())
|
1744
1706
|
.describe("The element's size and position")
|
1745
1707
|
.optional(),
|
1746
1708
|
})
|
1747
1709
|
.describe("Creates an image in the presentation"),
|
1748
1710
|
}),
|
1749
|
-
|
1750
|
-
createVideo:
|
1711
|
+
z.object({
|
1712
|
+
createVideo: z
|
1751
1713
|
.object({
|
1752
|
-
objectId:
|
1753
|
-
url:
|
1754
|
-
elementProperties:
|
1714
|
+
objectId: z.string().describe("The object ID for the created video").optional(),
|
1715
|
+
url: z.string().describe("The URL of the video to insert"),
|
1716
|
+
elementProperties: z
|
1755
1717
|
.object({})
|
1756
|
-
.catchall(
|
1718
|
+
.catchall(z.any())
|
1757
1719
|
.describe("The element's size and position")
|
1758
1720
|
.optional(),
|
1759
1721
|
})
|
1760
1722
|
.describe("Creates a video in the presentation"),
|
1761
1723
|
}),
|
1762
|
-
|
1763
|
-
createSheetsChart:
|
1724
|
+
z.object({
|
1725
|
+
createSheetsChart: z
|
1764
1726
|
.object({
|
1765
|
-
objectId:
|
1766
|
-
spreadsheetId:
|
1767
|
-
chartId:
|
1768
|
-
elementProperties:
|
1727
|
+
objectId: z.string().describe("The object ID for the created chart").optional(),
|
1728
|
+
spreadsheetId: z.string().describe("The ID of the Google Sheets spreadsheet containing the chart"),
|
1729
|
+
chartId: z.number().int().describe("The ID of the specific chart in the spreadsheet"),
|
1730
|
+
elementProperties: z
|
1769
1731
|
.object({})
|
1770
|
-
.catchall(
|
1732
|
+
.catchall(z.any())
|
1771
1733
|
.describe("The element's size and position")
|
1772
1734
|
.optional(),
|
1773
1735
|
})
|
1774
1736
|
.describe("Creates a linked chart from Google Sheets"),
|
1775
1737
|
}),
|
1776
|
-
|
1777
|
-
createLine:
|
1738
|
+
z.object({
|
1739
|
+
createLine: z
|
1778
1740
|
.object({
|
1779
|
-
objectId:
|
1780
|
-
lineCategory:
|
1781
|
-
elementProperties:
|
1741
|
+
objectId: z.string().describe("The object ID for the created line").optional(),
|
1742
|
+
lineCategory: z.string().describe("The category of line to create"),
|
1743
|
+
elementProperties: z
|
1782
1744
|
.object({})
|
1783
|
-
.catchall(
|
1745
|
+
.catchall(z.any())
|
1784
1746
|
.describe("The element's size and position")
|
1785
1747
|
.optional(),
|
1786
1748
|
})
|
1787
1749
|
.describe("Creates a line in the presentation"),
|
1788
1750
|
}),
|
1789
|
-
|
1790
|
-
refreshSheetsChart:
|
1791
|
-
.object({ objectId:
|
1751
|
+
z.object({
|
1752
|
+
refreshSheetsChart: z
|
1753
|
+
.object({ objectId: z.string().describe("The object ID of the chart to refresh") })
|
1792
1754
|
.describe("Refreshes an existing linked sheets chart"),
|
1793
1755
|
}),
|
1794
|
-
|
1795
|
-
updateShapeProperties:
|
1756
|
+
z.object({
|
1757
|
+
updateShapeProperties: z
|
1796
1758
|
.object({
|
1797
|
-
objectId:
|
1798
|
-
shapeProperties:
|
1759
|
+
objectId: z.string().describe("The object ID of the shape"),
|
1760
|
+
shapeProperties: z.object({}).catchall(z.any()).describe("The properties to update"),
|
1799
1761
|
})
|
1800
1762
|
.describe("Updates the properties of a shape"),
|
1801
1763
|
}),
|
1802
|
-
|
1803
|
-
updateImageProperties:
|
1764
|
+
z.object({
|
1765
|
+
updateImageProperties: z
|
1804
1766
|
.object({
|
1805
|
-
objectId:
|
1806
|
-
imageProperties:
|
1767
|
+
objectId: z.string().describe("The object ID of the image"),
|
1768
|
+
imageProperties: z.object({}).catchall(z.any()).describe("The properties to update"),
|
1807
1769
|
})
|
1808
1770
|
.describe("Updates the properties of an image"),
|
1809
1771
|
}),
|
1810
|
-
|
1811
|
-
updateVideoProperties:
|
1772
|
+
z.object({
|
1773
|
+
updateVideoProperties: z
|
1812
1774
|
.object({
|
1813
|
-
objectId:
|
1814
|
-
videoProperties:
|
1775
|
+
objectId: z.string().describe("The object ID of the video"),
|
1776
|
+
videoProperties: z.object({}).catchall(z.any()).describe("The properties to update"),
|
1815
1777
|
})
|
1816
1778
|
.describe("Updates the properties of a video"),
|
1817
1779
|
}),
|
1818
|
-
|
1819
|
-
updatePageProperties:
|
1780
|
+
z.object({
|
1781
|
+
updatePageProperties: z
|
1820
1782
|
.object({
|
1821
|
-
objectId:
|
1822
|
-
pageProperties:
|
1783
|
+
objectId: z.string().describe("The object ID of the page"),
|
1784
|
+
pageProperties: z.object({}).catchall(z.any()).describe("The properties to update"),
|
1823
1785
|
})
|
1824
1786
|
.describe("Updates the properties of a page"),
|
1825
1787
|
}),
|
1826
|
-
|
1827
|
-
updateTableCellProperties:
|
1788
|
+
z.object({
|
1789
|
+
updateTableCellProperties: z
|
1828
1790
|
.object({
|
1829
|
-
objectId:
|
1830
|
-
tableCellProperties:
|
1791
|
+
objectId: z.string().describe("The object ID of the table cell"),
|
1792
|
+
tableCellProperties: z
|
1831
1793
|
.object({})
|
1832
|
-
.catchall(
|
1794
|
+
.catchall(z.any())
|
1833
1795
|
.describe("The properties to update for the table cell"),
|
1834
|
-
fields:
|
1796
|
+
fields: z
|
1835
1797
|
.string()
|
1836
1798
|
.describe("Comma-separated list of fields to update (e.g., 'contentAlignment,backgroundColor')")
|
1837
1799
|
.optional(),
|
1838
|
-
tableRange:
|
1800
|
+
tableRange: z
|
1839
1801
|
.object({})
|
1840
|
-
.catchall(
|
1802
|
+
.catchall(z.any())
|
1841
1803
|
.describe("The range of cells to update the properties for")
|
1842
1804
|
.optional(),
|
1843
1805
|
})
|
1844
1806
|
.describe("Updates the properties of table cells"),
|
1845
1807
|
}),
|
1846
|
-
|
1847
|
-
updateLineProperties:
|
1808
|
+
z.object({
|
1809
|
+
updateLineProperties: z
|
1848
1810
|
.object({
|
1849
|
-
objectId:
|
1850
|
-
lineProperties:
|
1851
|
-
fields:
|
1811
|
+
objectId: z.string().describe("The object ID of the line"),
|
1812
|
+
lineProperties: z.object({}).catchall(z.any()).describe("The properties to update for the line"),
|
1813
|
+
fields: z
|
1852
1814
|
.string()
|
1853
1815
|
.describe("Comma-separated list of fields to update (e.g., 'lineFill,weight')")
|
1854
1816
|
.optional(),
|
1855
1817
|
})
|
1856
1818
|
.describe("Updates the properties of a line"),
|
1857
1819
|
}),
|
1858
|
-
|
1859
|
-
createParagraphBullets:
|
1820
|
+
z.object({
|
1821
|
+
createParagraphBullets: z
|
1860
1822
|
.object({
|
1861
|
-
objectId:
|
1862
|
-
bulletPreset:
|
1823
|
+
objectId: z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1824
|
+
bulletPreset: z
|
1863
1825
|
.string()
|
1864
1826
|
.describe("The preset type of bullet to use (e.g., BULLET_DISC_CIRCLE_SQUARE)"),
|
1865
|
-
textRange:
|
1827
|
+
textRange: z
|
1866
1828
|
.object({})
|
1867
|
-
.catchall(
|
1829
|
+
.catchall(z.any())
|
1868
1830
|
.describe("The range of text to apply bullets to (defaults to all text if unspecified)")
|
1869
1831
|
.optional(),
|
1870
1832
|
})
|
1871
1833
|
.describe("Creates bullets for paragraphs"),
|
1872
1834
|
}),
|
1873
|
-
|
1874
|
-
replaceAllShapesWithImage:
|
1835
|
+
z.object({
|
1836
|
+
replaceAllShapesWithImage: z
|
1875
1837
|
.object({
|
1876
|
-
imageUrl:
|
1877
|
-
containsText:
|
1838
|
+
imageUrl: z.string().describe("The URL of the image to replace shapes with"),
|
1839
|
+
containsText: z
|
1878
1840
|
.object({
|
1879
|
-
text:
|
1880
|
-
matchCase:
|
1841
|
+
text: z.string().describe("The text the shape must contain to be replaced"),
|
1842
|
+
matchCase: z.boolean().describe("Whether the text match is case-sensitive").optional(),
|
1881
1843
|
})
|
1882
1844
|
.describe("The text to search for in shapes to be replaced"),
|
1883
|
-
replaceMethod:
|
1845
|
+
replaceMethod: z
|
1884
1846
|
.enum(["CENTER_INSIDE", "CENTER_CROP"])
|
1885
1847
|
.describe("The image replace method (Defaults to CENTER_INSIDE)")
|
1886
1848
|
.optional(),
|
1887
|
-
pageObjectIds:
|
1888
|
-
.array(
|
1849
|
+
pageObjectIds: z
|
1850
|
+
.array(z.string())
|
1889
1851
|
.describe("Optional list of page object IDs to scope the replacement to")
|
1890
1852
|
.optional(),
|
1891
1853
|
})
|
1892
1854
|
.describe("Replaces all shapes matching criteria with an image"),
|
1893
1855
|
}),
|
1894
|
-
|
1895
|
-
duplicateObject:
|
1856
|
+
z.object({
|
1857
|
+
duplicateObject: z
|
1896
1858
|
.object({
|
1897
|
-
objectId:
|
1898
|
-
objectIds:
|
1899
|
-
.record(
|
1859
|
+
objectId: z.string().describe("The object ID of the object to duplicate"),
|
1860
|
+
objectIds: z
|
1861
|
+
.record(z.string())
|
1900
1862
|
.describe("Optional map for assigning specific object IDs to the duplicated elements (key is original ID, value is new ID)")
|
1901
1863
|
.optional(),
|
1902
1864
|
})
|
1903
1865
|
.describe("Duplicates a slide object (shape, image, table, etc.)"),
|
1904
1866
|
}),
|
1905
|
-
|
1906
|
-
updateTextStyle:
|
1867
|
+
z.object({
|
1868
|
+
updateTextStyle: z
|
1907
1869
|
.object({
|
1908
|
-
objectId:
|
1909
|
-
style:
|
1870
|
+
objectId: z.string().describe("The object ID of the shape or table cell containing the text"),
|
1871
|
+
style: z
|
1910
1872
|
.object({})
|
1911
|
-
.catchall(
|
1873
|
+
.catchall(z.any())
|
1912
1874
|
.describe("The text style properties to apply (e.g., bold, fontSize)"),
|
1913
|
-
fields:
|
1875
|
+
fields: z
|
1914
1876
|
.string()
|
1915
1877
|
.describe("Comma-separated list of style fields to update using FieldMask syntax (e.g., 'bold,italic,fontSize')"),
|
1916
|
-
textRange:
|
1878
|
+
textRange: z
|
1917
1879
|
.object({
|
1918
|
-
type:
|
1880
|
+
type: z
|
1919
1881
|
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1920
1882
|
.describe("The type of range")
|
1921
1883
|
.optional(),
|
1922
|
-
startIndex:
|
1884
|
+
startIndex: z
|
1923
1885
|
.number()
|
1924
1886
|
.int()
|
1925
1887
|
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1926
1888
|
.optional(),
|
1927
|
-
endIndex:
|
1889
|
+
endIndex: z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
1928
1890
|
})
|
1929
1891
|
.describe("The range of text to style (defaults to all text if unspecified)")
|
1930
1892
|
.optional(),
|
1931
1893
|
})
|
1932
1894
|
.describe("Updates the style of a range of text"),
|
1933
1895
|
}),
|
1934
|
-
|
1935
|
-
replaceAllShapesWithSheetsChart:
|
1896
|
+
z.object({
|
1897
|
+
replaceAllShapesWithSheetsChart: z
|
1936
1898
|
.object({
|
1937
|
-
spreadsheetId:
|
1938
|
-
chartId:
|
1939
|
-
containsText:
|
1899
|
+
spreadsheetId: z.string().describe("The ID of the Google Sheets spreadsheet containing the chart"),
|
1900
|
+
chartId: z.number().int().describe("The ID of the chart within the spreadsheet"),
|
1901
|
+
containsText: z
|
1940
1902
|
.object({
|
1941
|
-
text:
|
1942
|
-
matchCase:
|
1903
|
+
text: z.string().describe("The text the shape must contain to be replaced"),
|
1904
|
+
matchCase: z.boolean().describe("Whether the text match is case-sensitive").optional(),
|
1943
1905
|
})
|
1944
1906
|
.describe("Criteria for shapes to replace (must contain specified text)"),
|
1945
|
-
linkingMode:
|
1907
|
+
linkingMode: z
|
1946
1908
|
.enum(["LINKED", "NOT_LINKED_IMAGE"])
|
1947
1909
|
.describe("The linking mode of the chart (Defaults to LINKED)")
|
1948
1910
|
.optional(),
|
1949
|
-
pageObjectIds:
|
1950
|
-
.array(
|
1911
|
+
pageObjectIds: z
|
1912
|
+
.array(z.string())
|
1951
1913
|
.describe("Optional list of page object IDs to scope the replacement to")
|
1952
1914
|
.optional(),
|
1953
1915
|
})
|
1954
1916
|
.describe("Replaces all shapes matching criteria with a Google Sheets chart"),
|
1955
1917
|
}),
|
1956
|
-
|
1957
|
-
deleteParagraphBullets:
|
1918
|
+
z.object({
|
1919
|
+
deleteParagraphBullets: z
|
1958
1920
|
.object({
|
1959
|
-
objectId:
|
1960
|
-
textRange:
|
1921
|
+
objectId: z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1922
|
+
textRange: z
|
1961
1923
|
.object({
|
1962
|
-
type:
|
1924
|
+
type: z
|
1963
1925
|
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1964
1926
|
.describe("The type of range")
|
1965
1927
|
.optional(),
|
1966
|
-
startIndex:
|
1928
|
+
startIndex: z
|
1967
1929
|
.number()
|
1968
1930
|
.int()
|
1969
1931
|
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1970
1932
|
.optional(),
|
1971
|
-
endIndex:
|
1933
|
+
endIndex: z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
1972
1934
|
})
|
1973
1935
|
.describe("The range of text to delete bullets from (defaults to all text if unspecified)")
|
1974
1936
|
.optional(),
|
1975
1937
|
})
|
1976
1938
|
.describe("Deletes bullets from a range of paragraphs"),
|
1977
1939
|
}),
|
1978
|
-
|
1979
|
-
updateParagraphStyle:
|
1940
|
+
z.object({
|
1941
|
+
updateParagraphStyle: z
|
1980
1942
|
.object({
|
1981
|
-
objectId:
|
1982
|
-
style:
|
1943
|
+
objectId: z.string().describe("The object ID of the shape or table cell containing the paragraph"),
|
1944
|
+
style: z
|
1983
1945
|
.object({})
|
1984
|
-
.catchall(
|
1946
|
+
.catchall(z.any())
|
1985
1947
|
.describe("The paragraph style properties to apply (e.g., alignment, lineSpacing)"),
|
1986
|
-
fields:
|
1948
|
+
fields: z
|
1987
1949
|
.string()
|
1988
1950
|
.describe("Comma-separated list of style fields to update using FieldMask syntax (e.g., 'alignment,direction,lineSpacing')"),
|
1989
|
-
textRange:
|
1951
|
+
textRange: z
|
1990
1952
|
.object({
|
1991
|
-
type:
|
1953
|
+
type: z
|
1992
1954
|
.enum(["ALL", "FROM_START_INDEX", "FIXED_RANGE"])
|
1993
1955
|
.describe("The type of range")
|
1994
1956
|
.optional(),
|
1995
|
-
startIndex:
|
1957
|
+
startIndex: z
|
1996
1958
|
.number()
|
1997
1959
|
.int()
|
1998
1960
|
.describe("The start index for FROM_START_INDEX or FIXED_RANGE")
|
1999
1961
|
.optional(),
|
2000
|
-
endIndex:
|
1962
|
+
endIndex: z.number().int().describe("The end index for FIXED_RANGE").optional(),
|
2001
1963
|
})
|
2002
1964
|
.describe("The range of text to apply the style to (defaults to all paragraphs if unspecified)")
|
2003
1965
|
.optional(),
|
2004
1966
|
})
|
2005
1967
|
.describe("Updates the style of paragraphs"),
|
2006
1968
|
}),
|
2007
|
-
|
2008
|
-
updateTableBorderProperties:
|
1969
|
+
z.object({
|
1970
|
+
updateTableBorderProperties: z
|
2009
1971
|
.object({
|
2010
|
-
objectId:
|
2011
|
-
tableBorderProperties:
|
1972
|
+
objectId: z.string().describe("The object ID of the table"),
|
1973
|
+
tableBorderProperties: z
|
2012
1974
|
.object({})
|
2013
|
-
.catchall(
|
1975
|
+
.catchall(z.any())
|
2014
1976
|
.describe("The border properties to update (e.g., dashStyle, weight, color)"),
|
2015
|
-
fields:
|
1977
|
+
fields: z
|
2016
1978
|
.string()
|
2017
1979
|
.describe("Comma-separated list of fields to update (e.g., 'dashStyle,weight')")
|
2018
1980
|
.optional(),
|
2019
|
-
borderPosition:
|
1981
|
+
borderPosition: z
|
2020
1982
|
.enum(["ALL", "BOTTOM", "TOP", "LEFT", "RIGHT", "INNER_HORIZONTAL", "INNER_VERTICAL"])
|
2021
1983
|
.describe("The position of the border segments to update (defaults to ALL if unspecified)")
|
2022
1984
|
.optional(),
|
2023
|
-
tableRange:
|
1985
|
+
tableRange: z
|
2024
1986
|
.object({
|
2025
|
-
location:
|
2026
|
-
rowSpan:
|
2027
|
-
columnSpan:
|
1987
|
+
location: z.object({}).catchall(z.any()).describe("The starting cell location").optional(),
|
1988
|
+
rowSpan: z.number().int().describe("The number of rows in the range").optional(),
|
1989
|
+
columnSpan: z.number().int().describe("The number of columns in the range").optional(),
|
2028
1990
|
})
|
2029
1991
|
.describe("The range of cells whose border should be updated (defaults to the entire table if unspecified)")
|
2030
1992
|
.optional(),
|
2031
1993
|
})
|
2032
1994
|
.describe("Updates the properties of a table border"),
|
2033
1995
|
}),
|
2034
|
-
|
2035
|
-
updateTableColumnProperties:
|
1996
|
+
z.object({
|
1997
|
+
updateTableColumnProperties: z
|
2036
1998
|
.object({
|
2037
|
-
objectId:
|
2038
|
-
columnIndices:
|
2039
|
-
tableColumnProperties:
|
1999
|
+
objectId: z.string().describe("The object ID of the table"),
|
2000
|
+
columnIndices: z.array(z.number().int()).describe("The 0-based indices of the columns to update"),
|
2001
|
+
tableColumnProperties: z
|
2040
2002
|
.object({})
|
2041
|
-
.catchall(
|
2003
|
+
.catchall(z.any())
|
2042
2004
|
.describe("The properties to update (e.g., columnWidth)"),
|
2043
|
-
fields:
|
2005
|
+
fields: z
|
2044
2006
|
.string()
|
2045
2007
|
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'columnWidth')"),
|
2046
2008
|
})
|
2047
2009
|
.describe("Updates the properties of table columns"),
|
2048
2010
|
}),
|
2049
|
-
|
2050
|
-
updateTableRowProperties:
|
2011
|
+
z.object({
|
2012
|
+
updateTableRowProperties: z
|
2051
2013
|
.object({
|
2052
|
-
objectId:
|
2053
|
-
rowIndices:
|
2054
|
-
tableRowProperties:
|
2014
|
+
objectId: z.string().describe("The object ID of the table"),
|
2015
|
+
rowIndices: z.array(z.number().int()).describe("The 0-based indices of the rows to update"),
|
2016
|
+
tableRowProperties: z
|
2055
2017
|
.object({})
|
2056
|
-
.catchall(
|
2018
|
+
.catchall(z.any())
|
2057
2019
|
.describe("The properties to update (e.g., minRowHeight)"),
|
2058
|
-
fields:
|
2020
|
+
fields: z
|
2059
2021
|
.string()
|
2060
2022
|
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'minRowHeight')"),
|
2061
2023
|
})
|
2062
2024
|
.describe("Updates the properties of table rows"),
|
2063
2025
|
}),
|
2064
|
-
|
2065
|
-
mergeTableCells:
|
2026
|
+
z.object({
|
2027
|
+
mergeTableCells: z
|
2066
2028
|
.object({
|
2067
|
-
objectId:
|
2068
|
-
tableRange:
|
2029
|
+
objectId: z.string().describe("The object ID of the table"),
|
2030
|
+
tableRange: z
|
2069
2031
|
.object({
|
2070
|
-
location:
|
2071
|
-
rowSpan:
|
2072
|
-
columnSpan:
|
2032
|
+
location: z.object({}).catchall(z.any()).describe("The starting cell location").optional(),
|
2033
|
+
rowSpan: z.number().int().describe("The number of rows in the range").optional(),
|
2034
|
+
columnSpan: z.number().int().describe("The number of columns in the range").optional(),
|
2073
2035
|
})
|
2074
2036
|
.describe("The range of cells to merge"),
|
2075
2037
|
})
|
2076
2038
|
.describe("Merges cells in a table"),
|
2077
2039
|
}),
|
2078
|
-
|
2079
|
-
unmergeTableCells:
|
2040
|
+
z.object({
|
2041
|
+
unmergeTableCells: z
|
2080
2042
|
.object({
|
2081
|
-
objectId:
|
2082
|
-
tableRange:
|
2043
|
+
objectId: z.string().describe("The object ID of the table"),
|
2044
|
+
tableRange: z
|
2083
2045
|
.object({
|
2084
|
-
location:
|
2085
|
-
rowSpan:
|
2086
|
-
columnSpan:
|
2046
|
+
location: z.object({}).catchall(z.any()).describe("The starting cell location").optional(),
|
2047
|
+
rowSpan: z.number().int().describe("The number of rows in the range").optional(),
|
2048
|
+
columnSpan: z.number().int().describe("The number of columns in the range").optional(),
|
2087
2049
|
})
|
2088
2050
|
.describe("The range of cells to unmerge"),
|
2089
2051
|
})
|
2090
2052
|
.describe("Unmerges cells in a table"),
|
2091
2053
|
}),
|
2092
|
-
|
2093
|
-
groupObjects:
|
2054
|
+
z.object({
|
2055
|
+
groupObjects: z
|
2094
2056
|
.object({
|
2095
|
-
childrenObjectIds:
|
2096
|
-
groupObjectId:
|
2057
|
+
childrenObjectIds: z.array(z.string()).describe("The object IDs of the elements to group"),
|
2058
|
+
groupObjectId: z.string().describe("The object ID to assign to the created group"),
|
2097
2059
|
})
|
2098
2060
|
.describe("Groups multiple page elements together"),
|
2099
2061
|
}),
|
2100
|
-
|
2101
|
-
ungroupObjects:
|
2102
|
-
.object({ objectIds:
|
2062
|
+
z.object({
|
2063
|
+
ungroupObjects: z
|
2064
|
+
.object({ objectIds: z.array(z.string()).describe("The object IDs of the groups to ungroup") })
|
2103
2065
|
.describe("Ungroups page elements"),
|
2104
2066
|
}),
|
2105
|
-
|
2106
|
-
updatePageElementAltText:
|
2067
|
+
z.object({
|
2068
|
+
updatePageElementAltText: z
|
2107
2069
|
.object({
|
2108
|
-
objectId:
|
2109
|
-
title:
|
2110
|
-
description:
|
2070
|
+
objectId: z.string().describe("The object ID of the page element"),
|
2071
|
+
title: z.string().describe("The title for the alt text"),
|
2072
|
+
description: z.string().describe("The description for the alt text"),
|
2111
2073
|
})
|
2112
2074
|
.describe("Updates the alt text for a page element"),
|
2113
2075
|
}),
|
2114
|
-
|
2115
|
-
replaceImage:
|
2076
|
+
z.object({
|
2077
|
+
replaceImage: z
|
2116
2078
|
.object({
|
2117
|
-
imageObjectId:
|
2118
|
-
url:
|
2119
|
-
replaceMethod:
|
2079
|
+
imageObjectId: z.string().describe("The object ID of the image to replace"),
|
2080
|
+
url: z.string().describe("The URL of the new image"),
|
2081
|
+
replaceMethod: z
|
2120
2082
|
.enum(["CENTER_INSIDE", "CENTER_CROP"])
|
2121
2083
|
.describe("The image replace method (Defaults to CENTER_INSIDE)")
|
2122
2084
|
.optional(),
|
2123
2085
|
})
|
2124
2086
|
.describe("Replaces an existing image with a new one"),
|
2125
2087
|
}),
|
2126
|
-
|
2127
|
-
updateSlideProperties:
|
2088
|
+
z.object({
|
2089
|
+
updateSlideProperties: z
|
2128
2090
|
.object({
|
2129
|
-
objectId:
|
2130
|
-
slideProperties:
|
2091
|
+
objectId: z.string().describe("The object ID of the slide"),
|
2092
|
+
slideProperties: z
|
2131
2093
|
.object({})
|
2132
|
-
.catchall(
|
2094
|
+
.catchall(z.any())
|
2133
2095
|
.describe("The properties to update (e.g., master reference, layout reference)"),
|
2134
|
-
fields:
|
2096
|
+
fields: z
|
2135
2097
|
.string()
|
2136
2098
|
.describe("Comma-separated list of fields to update using FieldMask syntax (e.g., 'slideBackgroundFill')"),
|
2137
2099
|
})
|
2138
2100
|
.describe("Updates the properties of a slide"),
|
2139
2101
|
}),
|
2140
|
-
|
2141
|
-
updatePageElementsZOrder:
|
2102
|
+
z.object({
|
2103
|
+
updatePageElementsZOrder: z
|
2142
2104
|
.object({
|
2143
|
-
pageObjectIds:
|
2144
|
-
operation:
|
2105
|
+
pageObjectIds: z.array(z.string()).describe("The object IDs of the page elements to reorder"),
|
2106
|
+
operation: z
|
2145
2107
|
.enum(["BRING_TO_FRONT", "BRING_FORWARD", "SEND_BACKWARD", "SEND_TO_BACK"])
|
2146
2108
|
.describe("The Z-order operation to apply"),
|
2147
2109
|
})
|
2148
2110
|
.describe("Updates the Z-order of page elements"),
|
2149
2111
|
}),
|
2150
|
-
|
2151
|
-
updateLineCategory:
|
2112
|
+
z.object({
|
2113
|
+
updateLineCategory: z
|
2152
2114
|
.object({
|
2153
|
-
objectId:
|
2154
|
-
lineCategory:
|
2115
|
+
objectId: z.string().describe("The object ID of the line"),
|
2116
|
+
lineCategory: z.enum(["STRAIGHT", "BENT", "CURVED"]).describe("The new line category"),
|
2155
2117
|
})
|
2156
2118
|
.describe("Updates the category of a line"),
|
2157
2119
|
}),
|
2158
|
-
|
2159
|
-
rerouteLine:
|
2160
|
-
.object({ objectId:
|
2120
|
+
z.object({
|
2121
|
+
rerouteLine: z
|
2122
|
+
.object({ objectId: z.string().describe("The object ID of the line to reroute") })
|
2161
2123
|
.describe("Reroutes a line connection"),
|
2162
2124
|
}),
|
2163
2125
|
];
|
@@ -2173,169 +2135,169 @@ exports.googleOauthUpdatePresentationParamsSchema = zod_1.z.object({
|
|
2173
2135
|
})))
|
2174
2136
|
.describe("The requests to update the presentation with"),
|
2175
2137
|
});
|
2176
|
-
|
2177
|
-
success:
|
2178
|
-
error:
|
2179
|
-
presentationUrl:
|
2180
|
-
});
|
2181
|
-
|
2182
|
-
keywords:
|
2183
|
-
});
|
2184
|
-
|
2185
|
-
success:
|
2186
|
-
files:
|
2187
|
-
.array(
|
2188
|
-
id:
|
2189
|
-
name:
|
2190
|
-
mimeType:
|
2191
|
-
url:
|
2138
|
+
export const googleOauthUpdatePresentationOutputSchema = z.object({
|
2139
|
+
success: z.boolean().describe("Whether the presentation was created successfully"),
|
2140
|
+
error: z.string().describe("The error that occurred if the presentation was not created successfully").optional(),
|
2141
|
+
presentationUrl: z.string().describe("The URL of the created presentation").optional(),
|
2142
|
+
});
|
2143
|
+
export const googleOauthSearchDriveByKeywordsParamsSchema = z.object({
|
2144
|
+
keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
|
2145
|
+
});
|
2146
|
+
export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
2147
|
+
success: z.boolean().describe("Whether the search was successful"),
|
2148
|
+
files: z
|
2149
|
+
.array(z.object({
|
2150
|
+
id: z.string().describe("The file ID"),
|
2151
|
+
name: z.string().describe("The file name"),
|
2152
|
+
mimeType: z.string().describe("The MIME type of the file"),
|
2153
|
+
url: z.string().describe("The web link to view the file"),
|
2192
2154
|
}))
|
2193
2155
|
.describe("List of files matching the search")
|
2194
2156
|
.optional(),
|
2195
|
-
error:
|
2196
|
-
});
|
2197
|
-
|
2198
|
-
maxResults:
|
2199
|
-
});
|
2200
|
-
|
2201
|
-
success:
|
2202
|
-
groups:
|
2203
|
-
.array(
|
2204
|
-
id:
|
2205
|
-
email:
|
2206
|
-
name:
|
2207
|
-
description:
|
2157
|
+
error: z.string().describe("Error message if search failed").optional(),
|
2158
|
+
});
|
2159
|
+
export const googleOauthListGroupsParamsSchema = z.object({
|
2160
|
+
maxResults: z.number().int().describe("The maximum number of groups to return (max allowed is 200)").optional(),
|
2161
|
+
});
|
2162
|
+
export const googleOauthListGroupsOutputSchema = z.object({
|
2163
|
+
success: z.boolean().describe("Whether the groups were listed successfully"),
|
2164
|
+
groups: z
|
2165
|
+
.array(z.object({
|
2166
|
+
id: z.string().describe("The unique ID of the group"),
|
2167
|
+
email: z.string().describe("The email address of the group"),
|
2168
|
+
name: z.string().describe("The name of the group"),
|
2169
|
+
description: z.string().describe("The description of the group").optional(),
|
2208
2170
|
}))
|
2209
2171
|
.describe("The list of Google Groups"),
|
2210
|
-
error:
|
2211
|
-
});
|
2212
|
-
|
2213
|
-
groupKey:
|
2214
|
-
});
|
2215
|
-
|
2216
|
-
success:
|
2217
|
-
group:
|
2218
|
-
id:
|
2219
|
-
email:
|
2220
|
-
name:
|
2221
|
-
description:
|
2172
|
+
error: z.string().describe("The error that occurred if the groups could not be listed").optional(),
|
2173
|
+
});
|
2174
|
+
export const googleOauthGetGroupParamsSchema = z.object({
|
2175
|
+
groupKey: z.string().describe("The group's email address or unique group ID"),
|
2176
|
+
});
|
2177
|
+
export const googleOauthGetGroupOutputSchema = z.object({
|
2178
|
+
success: z.boolean().describe("Whether the group was retrieved successfully"),
|
2179
|
+
group: z.object({
|
2180
|
+
id: z.string().describe("The unique ID of the group"),
|
2181
|
+
email: z.string().describe("The email address of the group"),
|
2182
|
+
name: z.string().describe("The name of the group"),
|
2183
|
+
description: z.string().describe("The description of the group").optional(),
|
2222
2184
|
}),
|
2223
|
-
error:
|
2224
|
-
});
|
2225
|
-
|
2226
|
-
groupKey:
|
2227
|
-
maxResults:
|
2228
|
-
});
|
2229
|
-
|
2230
|
-
success:
|
2231
|
-
members:
|
2232
|
-
.array(
|
2233
|
-
id:
|
2234
|
-
email:
|
2235
|
-
role:
|
2236
|
-
type:
|
2185
|
+
error: z.string().describe("The error that occurred if the group could not be retrieved").optional(),
|
2186
|
+
});
|
2187
|
+
export const googleOauthListGroupMembersParamsSchema = z.object({
|
2188
|
+
groupKey: z.string().describe("The group's email address or unique group ID"),
|
2189
|
+
maxResults: z.number().int().describe("The maximum number of members to return (max allowed is 200)").optional(),
|
2190
|
+
});
|
2191
|
+
export const googleOauthListGroupMembersOutputSchema = z.object({
|
2192
|
+
success: z.boolean().describe("Whether the members were listed successfully"),
|
2193
|
+
members: z
|
2194
|
+
.array(z.object({
|
2195
|
+
id: z.string().describe("The unique ID of the member"),
|
2196
|
+
email: z.string().describe("The email address of the member"),
|
2197
|
+
role: z.string().describe("The role of the member in the group (OWNER, MANAGER, MEMBER)"),
|
2198
|
+
type: z.string().describe("The type of the member (USER, GROUP)"),
|
2237
2199
|
}))
|
2238
2200
|
.describe("The list of group members"),
|
2239
|
-
error:
|
2240
|
-
});
|
2241
|
-
|
2242
|
-
groupKey:
|
2243
|
-
memberKey:
|
2244
|
-
});
|
2245
|
-
|
2246
|
-
success:
|
2247
|
-
isMember:
|
2248
|
-
error:
|
2249
|
-
});
|
2250
|
-
|
2251
|
-
groupKey:
|
2252
|
-
email:
|
2253
|
-
});
|
2254
|
-
|
2255
|
-
success:
|
2256
|
-
memberID:
|
2257
|
-
error:
|
2258
|
-
});
|
2259
|
-
|
2260
|
-
groupKey:
|
2261
|
-
memberKey:
|
2262
|
-
});
|
2263
|
-
|
2264
|
-
success:
|
2265
|
-
error:
|
2266
|
-
});
|
2267
|
-
|
2268
|
-
query:
|
2269
|
-
maxResults:
|
2270
|
-
});
|
2271
|
-
|
2272
|
-
success:
|
2273
|
-
messages:
|
2274
|
-
.array(
|
2275
|
-
id:
|
2276
|
-
threadId:
|
2277
|
-
snippet:
|
2278
|
-
labelIds:
|
2279
|
-
internalDate:
|
2280
|
-
emailBody:
|
2201
|
+
error: z.string().describe("The error that occurred if the members could not be listed").optional(),
|
2202
|
+
});
|
2203
|
+
export const googleOauthHasGroupMemberParamsSchema = z.object({
|
2204
|
+
groupKey: z.string().describe("The group's email address or unique group ID"),
|
2205
|
+
memberKey: z.string().describe("The member's email address or unique member ID"),
|
2206
|
+
});
|
2207
|
+
export const googleOauthHasGroupMemberOutputSchema = z.object({
|
2208
|
+
success: z.boolean().describe("Whether the check was performed successfully"),
|
2209
|
+
isMember: z.boolean().describe("Whether the user is a member of the group"),
|
2210
|
+
error: z.string().describe("The error that occurred if the check could not be performed").optional(),
|
2211
|
+
});
|
2212
|
+
export const googleOauthAddGroupMemberParamsSchema = z.object({
|
2213
|
+
groupKey: z.string().describe("The group's email address or unique group ID"),
|
2214
|
+
email: z.string().describe("The email address of the user to add"),
|
2215
|
+
});
|
2216
|
+
export const googleOauthAddGroupMemberOutputSchema = z.object({
|
2217
|
+
success: z.boolean().describe("Whether the member was added successfully"),
|
2218
|
+
memberID: z.string().describe("The unique ID of the member"),
|
2219
|
+
error: z.string().describe("The error that occurred if the member could not be added").optional(),
|
2220
|
+
});
|
2221
|
+
export const googleOauthDeleteGroupMemberParamsSchema = z.object({
|
2222
|
+
groupKey: z.string().describe("The group's email address or unique group ID"),
|
2223
|
+
memberKey: z.string().describe("The member's email address or unique member ID"),
|
2224
|
+
});
|
2225
|
+
export const googleOauthDeleteGroupMemberOutputSchema = z.object({
|
2226
|
+
success: z.boolean().describe("Whether the member was removed successfully"),
|
2227
|
+
error: z.string().describe("The error that occurred if the member could not be removed").optional(),
|
2228
|
+
});
|
2229
|
+
export const googlemailSearchGmailMessagesParamsSchema = z.object({
|
2230
|
+
query: z.string().describe('Gmail search query (e.g. "from:alice subject:urgent")'),
|
2231
|
+
maxResults: z.number().int().describe("Maximum number of messages to return (optional)").optional(),
|
2232
|
+
});
|
2233
|
+
export const googlemailSearchGmailMessagesOutputSchema = z.object({
|
2234
|
+
success: z.boolean(),
|
2235
|
+
messages: z
|
2236
|
+
.array(z.object({
|
2237
|
+
id: z.string().describe("The message ID"),
|
2238
|
+
threadId: z.string().describe("The thread ID"),
|
2239
|
+
snippet: z.string().describe("A short part of the message text").optional(),
|
2240
|
+
labelIds: z.array(z.string()).describe("Labels on the message").optional(),
|
2241
|
+
internalDate: z.string().describe("Internal timestamp of the message").optional(),
|
2242
|
+
emailBody: z.string().describe("The body of the message").optional(),
|
2281
2243
|
}))
|
2282
2244
|
.describe("List of matching Gmail messages"),
|
2283
|
-
error:
|
2284
|
-
});
|
2285
|
-
|
2286
|
-
query:
|
2287
|
-
maxResults:
|
2288
|
-
});
|
2289
|
-
|
2290
|
-
success:
|
2291
|
-
threads:
|
2292
|
-
.array(
|
2293
|
-
id:
|
2294
|
-
historyId:
|
2295
|
-
messages:
|
2296
|
-
.array(
|
2297
|
-
id:
|
2298
|
-
threadId:
|
2299
|
-
snippet:
|
2300
|
-
labelIds:
|
2301
|
-
internalDate:
|
2302
|
-
emailBody:
|
2245
|
+
error: z.string().describe("Error message if search failed").optional(),
|
2246
|
+
});
|
2247
|
+
export const googlemailListGmailThreadsParamsSchema = z.object({
|
2248
|
+
query: z.string().describe('Gmail search query (e.g. "from:alice subject:project")'),
|
2249
|
+
maxResults: z.number().int().describe("Maximum number of threads to return").optional(),
|
2250
|
+
});
|
2251
|
+
export const googlemailListGmailThreadsOutputSchema = z.object({
|
2252
|
+
success: z.boolean(),
|
2253
|
+
threads: z
|
2254
|
+
.array(z.object({
|
2255
|
+
id: z.string().describe("The thread ID"),
|
2256
|
+
historyId: z.string().describe("The thread history ID"),
|
2257
|
+
messages: z
|
2258
|
+
.array(z.object({
|
2259
|
+
id: z.string(),
|
2260
|
+
threadId: z.string(),
|
2261
|
+
snippet: z.string(),
|
2262
|
+
labelIds: z.array(z.string()),
|
2263
|
+
internalDate: z.string(),
|
2264
|
+
emailBody: z.string(),
|
2303
2265
|
}))
|
2304
2266
|
.describe("The messages in the thread"),
|
2305
2267
|
}))
|
2306
2268
|
.describe("List of matching Gmail threads"),
|
2307
|
-
error:
|
2269
|
+
error: z.string().describe("Error message if search failed").optional(),
|
2308
2270
|
});
|
2309
|
-
|
2310
|
-
userRole:
|
2311
|
-
trackers:
|
2312
|
-
.array(
|
2271
|
+
export const gongGetGongTranscriptsParamsSchema = z.object({
|
2272
|
+
userRole: z.string().describe("The role of users whose transcripts are being fetched"),
|
2273
|
+
trackers: z
|
2274
|
+
.array(z.string().describe("The names of the trackers to fetch transcripts for"))
|
2313
2275
|
.describe("The trackers to fetch transcripts for")
|
2314
2276
|
.optional(),
|
2315
|
-
company:
|
2316
|
-
startDate:
|
2317
|
-
endDate:
|
2318
|
-
});
|
2319
|
-
|
2320
|
-
success:
|
2321
|
-
callTranscripts:
|
2322
|
-
.array(
|
2277
|
+
company: z.string().describe("The company to get calls with").optional(),
|
2278
|
+
startDate: z.string().describe("The start date of the transcripts to fetch in ISO 8601 format").optional(),
|
2279
|
+
endDate: z.string().describe("The end date of the transcripts to fetch in ISO 8601 format").optional(),
|
2280
|
+
});
|
2281
|
+
export const gongGetGongTranscriptsOutputSchema = z.object({
|
2282
|
+
success: z.boolean().describe("Whether the transcripts were fetched successfully"),
|
2283
|
+
callTranscripts: z
|
2284
|
+
.array(z
|
2323
2285
|
.object({
|
2324
|
-
callId:
|
2325
|
-
callName:
|
2326
|
-
startTime:
|
2327
|
-
transcript:
|
2328
|
-
.array(
|
2286
|
+
callId: z.string().describe("The ID of the call").optional(),
|
2287
|
+
callName: z.string().describe("The name of the call").optional(),
|
2288
|
+
startTime: z.string().describe("The start time of the call in ISO 8601 format").optional(),
|
2289
|
+
transcript: z
|
2290
|
+
.array(z
|
2329
2291
|
.object({
|
2330
|
-
speakerName:
|
2331
|
-
speakerEmail:
|
2332
|
-
topic:
|
2333
|
-
sentences:
|
2334
|
-
.array(
|
2292
|
+
speakerName: z.string().describe("The name of the speaker").optional(),
|
2293
|
+
speakerEmail: z.string().describe("The email of the speaker").optional(),
|
2294
|
+
topic: z.string().nullable().describe("The topic of the transcript").optional(),
|
2295
|
+
sentences: z
|
2296
|
+
.array(z
|
2335
2297
|
.object({
|
2336
|
-
start:
|
2337
|
-
end:
|
2338
|
-
text:
|
2298
|
+
start: z.number().describe("The start time of the sentence in seconds").optional(),
|
2299
|
+
end: z.number().describe("The end time of the sentence in seconds").optional(),
|
2300
|
+
text: z.string().describe("The text of the sentence").optional(),
|
2339
2301
|
})
|
2340
2302
|
.describe("A sentence"))
|
2341
2303
|
.describe("The sentences in the transcript")
|
@@ -2348,36 +2310,36 @@ exports.gongGetGongTranscriptsOutputSchema = zod_1.z.object({
|
|
2348
2310
|
.describe("A transcript"))
|
2349
2311
|
.describe("The transcripts fetched")
|
2350
2312
|
.optional(),
|
2351
|
-
error:
|
2313
|
+
error: z.string().describe("The error that occurred if the transcripts weren't fetched successfully").optional(),
|
2352
2314
|
});
|
2353
|
-
|
2354
|
-
query:
|
2315
|
+
export const finnhubSymbolLookupParamsSchema = z.object({
|
2316
|
+
query: z.string().describe("The symbol or colloquial name of the company to look up"),
|
2355
2317
|
});
|
2356
|
-
|
2357
|
-
result:
|
2358
|
-
.array(
|
2318
|
+
export const finnhubSymbolLookupOutputSchema = z.object({
|
2319
|
+
result: z
|
2320
|
+
.array(z
|
2359
2321
|
.object({
|
2360
|
-
symbol:
|
2361
|
-
description:
|
2322
|
+
symbol: z.string().describe("The symbol of the stock").optional(),
|
2323
|
+
description: z.string().describe("The description of the stock").optional(),
|
2362
2324
|
})
|
2363
2325
|
.describe("The metadata of the stock"))
|
2364
2326
|
.describe("The results of the symbol lookup"),
|
2365
2327
|
});
|
2366
|
-
|
2367
|
-
symbol:
|
2328
|
+
export const finnhubGetBasicFinancialsParamsSchema = z.object({
|
2329
|
+
symbol: z.string().describe("The symbol/TICKER of the stock"),
|
2368
2330
|
});
|
2369
|
-
|
2370
|
-
result:
|
2331
|
+
export const finnhubGetBasicFinancialsOutputSchema = z.object({
|
2332
|
+
result: z
|
2371
2333
|
.object({
|
2372
|
-
annual:
|
2373
|
-
.array(
|
2334
|
+
annual: z
|
2335
|
+
.array(z
|
2374
2336
|
.object({
|
2375
|
-
metric:
|
2376
|
-
series:
|
2377
|
-
.array(
|
2337
|
+
metric: z.string().describe("The name of the financial metric").optional(),
|
2338
|
+
series: z
|
2339
|
+
.array(z
|
2378
2340
|
.object({
|
2379
|
-
period:
|
2380
|
-
v:
|
2341
|
+
period: z.string().describe("The period of the financial metric in YYYY-MM-DD format").optional(),
|
2342
|
+
v: z.number().describe("The value of the financial metric").optional(),
|
2381
2343
|
})
|
2382
2344
|
.describe("The value of the financial metric"))
|
2383
2345
|
.describe("The series of values for the financial metric")
|
@@ -2386,15 +2348,15 @@ exports.finnhubGetBasicFinancialsOutputSchema = zod_1.z.object({
|
|
2386
2348
|
.describe("The annual financials of the stock"))
|
2387
2349
|
.describe("The annual financials of the stock")
|
2388
2350
|
.optional(),
|
2389
|
-
quarterly:
|
2390
|
-
.array(
|
2351
|
+
quarterly: z
|
2352
|
+
.array(z
|
2391
2353
|
.object({
|
2392
|
-
metric:
|
2393
|
-
series:
|
2394
|
-
.array(
|
2354
|
+
metric: z.string().describe("The name of the financial metric").optional(),
|
2355
|
+
series: z
|
2356
|
+
.array(z
|
2395
2357
|
.object({
|
2396
|
-
period:
|
2397
|
-
v:
|
2358
|
+
period: z.string().describe("The period of the financial metric in YYYY-MM-DD format").optional(),
|
2359
|
+
v: z.number().describe("The value of the financial metric").optional(),
|
2398
2360
|
})
|
2399
2361
|
.describe("The value of the financial metric"))
|
2400
2362
|
.describe("The series of values for the financial metric")
|
@@ -2406,340 +2368,340 @@ exports.finnhubGetBasicFinancialsOutputSchema = zod_1.z.object({
|
|
2406
2368
|
})
|
2407
2369
|
.describe("The basic financials of the stock"),
|
2408
2370
|
});
|
2409
|
-
|
2410
|
-
userEmail:
|
2371
|
+
export const lookerEnableUserByEmailParamsSchema = z.object({
|
2372
|
+
userEmail: z.string().describe("The email address of the user to search for"),
|
2411
2373
|
});
|
2412
|
-
|
2413
|
-
success:
|
2414
|
-
message:
|
2415
|
-
userId:
|
2416
|
-
userDetails:
|
2374
|
+
export const lookerEnableUserByEmailOutputSchema = z.object({
|
2375
|
+
success: z.boolean().describe("Whether the operation was successful"),
|
2376
|
+
message: z.string().describe("Status message about the operation"),
|
2377
|
+
userId: z.string().describe("The ID of the user that was found").optional(),
|
2378
|
+
userDetails: z
|
2417
2379
|
.object({
|
2418
|
-
id:
|
2419
|
-
firstName:
|
2420
|
-
lastName:
|
2421
|
-
email:
|
2422
|
-
isDisabled:
|
2380
|
+
id: z.string().describe("The ID of the user"),
|
2381
|
+
firstName: z.string().describe("The first name of the user"),
|
2382
|
+
lastName: z.string().describe("The last name of the user"),
|
2383
|
+
email: z.string().describe("The email of the user"),
|
2384
|
+
isDisabled: z.boolean().describe("Whether the user is disabled"),
|
2423
2385
|
})
|
2424
2386
|
.describe("Details about the user")
|
2425
2387
|
.optional(),
|
2426
2388
|
});
|
2427
|
-
|
2428
|
-
candidateId:
|
2429
|
-
note:
|
2430
|
-
});
|
2431
|
-
|
2432
|
-
|
2433
|
-
candidateId:
|
2434
|
-
});
|
2435
|
-
|
2436
|
-
candidate:
|
2437
|
-
});
|
2438
|
-
|
2439
|
-
candidateId:
|
2440
|
-
projectId:
|
2441
|
-
});
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
candidates:
|
2446
|
-
});
|
2447
|
-
|
2448
|
-
email:
|
2449
|
-
name:
|
2450
|
-
});
|
2451
|
-
|
2452
|
-
candidates:
|
2453
|
-
});
|
2454
|
-
|
2455
|
-
candidateId:
|
2456
|
-
});
|
2457
|
-
|
2458
|
-
|
2459
|
-
name:
|
2460
|
-
email:
|
2461
|
-
phoneNumber:
|
2462
|
-
linkedInUrl:
|
2463
|
-
githubUrl:
|
2464
|
-
website:
|
2465
|
-
alternateEmailAddresses:
|
2466
|
-
.array(
|
2389
|
+
export const ashbyCreateNoteParamsSchema = z.object({
|
2390
|
+
candidateId: z.string().describe("The ID of the candidate to create a note for"),
|
2391
|
+
note: z.string().describe("The note content"),
|
2392
|
+
});
|
2393
|
+
export const ashbyCreateNoteOutputSchema = z.void();
|
2394
|
+
export const ashbyGetCandidateInfoParamsSchema = z.object({
|
2395
|
+
candidateId: z.string().describe("The ID of the candidate whose information is to be retrieved"),
|
2396
|
+
});
|
2397
|
+
export const ashbyGetCandidateInfoOutputSchema = z.object({
|
2398
|
+
candidate: z.object({}).catchall(z.any()).describe("The candidate's information"),
|
2399
|
+
});
|
2400
|
+
export const ashbyAddCandidateToProjectParamsSchema = z.object({
|
2401
|
+
candidateId: z.string().describe("The ID of the candidate to add to the project"),
|
2402
|
+
projectId: z.string().describe("The ID of the project to add the candidate to"),
|
2403
|
+
});
|
2404
|
+
export const ashbyAddCandidateToProjectOutputSchema = z.void();
|
2405
|
+
export const ashbyListCandidatesParamsSchema = z.object({});
|
2406
|
+
export const ashbyListCandidatesOutputSchema = z.object({
|
2407
|
+
candidates: z.array(z.any()).describe("A list of candidates"),
|
2408
|
+
});
|
2409
|
+
export const ashbySearchCandidatesParamsSchema = z.object({
|
2410
|
+
email: z.string().describe("The email address of the candidate to search for").optional(),
|
2411
|
+
name: z.string().describe("The name of the candidate to search for").optional(),
|
2412
|
+
});
|
2413
|
+
export const ashbySearchCandidatesOutputSchema = z.object({
|
2414
|
+
candidates: z.array(z.any()).describe("A list of candidates"),
|
2415
|
+
});
|
2416
|
+
export const ashbyListCandidateNotesParamsSchema = z.object({
|
2417
|
+
candidateId: z.string().describe("The ID of the candidate"),
|
2418
|
+
});
|
2419
|
+
export const ashbyListCandidateNotesOutputSchema = z.object({ notes: z.array(z.any()).describe("A list of notes") });
|
2420
|
+
export const ashbyCreateCandidateParamsSchema = z.object({
|
2421
|
+
name: z.string().describe("The first and last name of the candidate to be created."),
|
2422
|
+
email: z.string().describe("Primary, personal email of the candidate to be created.").optional(),
|
2423
|
+
phoneNumber: z.string().describe("Primary, personal phone number of the candidate to be created.").optional(),
|
2424
|
+
linkedInUrl: z.string().describe("Url to the candidate's LinkedIn profile. Must be a valid Url.").optional(),
|
2425
|
+
githubUrl: z.string().describe("Url to the candidate's Github profile. Must be a valid Url.").optional(),
|
2426
|
+
website: z.string().describe("Url of the candidate's website. Must be a valid Url.").optional(),
|
2427
|
+
alternateEmailAddresses: z
|
2428
|
+
.array(z.string())
|
2467
2429
|
.describe("Array of alternate email address to add to the candidate's profile.")
|
2468
2430
|
.optional(),
|
2469
|
-
sourceId:
|
2470
|
-
creditedToUserId:
|
2471
|
-
location:
|
2431
|
+
sourceId: z.string().describe("The source to set on the candidate being created.").optional(),
|
2432
|
+
creditedToUserId: z.string().describe("The id of the user the candidate will be credited to.").optional(),
|
2433
|
+
location: z
|
2472
2434
|
.object({
|
2473
|
-
city:
|
2474
|
-
region:
|
2475
|
-
country:
|
2435
|
+
city: z.string().describe("The city of the candidate.").optional(),
|
2436
|
+
region: z.string().describe("The region of the candidate.").optional(),
|
2437
|
+
country: z.string().describe("The country of the candidate.").optional(),
|
2476
2438
|
})
|
2477
2439
|
.describe("The location of the candidate.")
|
2478
2440
|
.optional(),
|
2479
2441
|
});
|
2480
|
-
|
2481
|
-
|
2482
|
-
candidateId:
|
2483
|
-
name:
|
2484
|
-
email:
|
2485
|
-
phoneNumber:
|
2486
|
-
linkedInUrl:
|
2487
|
-
githubUrl:
|
2488
|
-
websiteUrl:
|
2489
|
-
alternateEmail:
|
2490
|
-
socialLinks:
|
2491
|
-
.array(
|
2492
|
-
type:
|
2493
|
-
url:
|
2442
|
+
export const ashbyCreateCandidateOutputSchema = z.void();
|
2443
|
+
export const ashbyUpdateCandidateParamsSchema = z.object({
|
2444
|
+
candidateId: z.string().describe("The ID of the candidate to update"),
|
2445
|
+
name: z.string().describe("The first and last name of the candidate to update.").optional(),
|
2446
|
+
email: z.string().describe("Primary, personal email of the candidate to update.").optional(),
|
2447
|
+
phoneNumber: z.string().describe("Primary, personal phone number of the candidate to update.").optional(),
|
2448
|
+
linkedInUrl: z.string().describe("Url to the candidate's LinkedIn profile. Must be a valid Url.").optional(),
|
2449
|
+
githubUrl: z.string().describe("Url to the candidate's Github profile. Must be a valid Url.").optional(),
|
2450
|
+
websiteUrl: z.string().describe("Url of the candidate's website. Must be a valid Url.").optional(),
|
2451
|
+
alternateEmail: z.string().describe("An alternate email address to add to the candidate's profile.").optional(),
|
2452
|
+
socialLinks: z
|
2453
|
+
.array(z.object({
|
2454
|
+
type: z.string().describe("The type of social link").optional(),
|
2455
|
+
url: z.string().describe("The URL of the social link").optional(),
|
2494
2456
|
}))
|
2495
2457
|
.describe("An array of social links to set on the candidate. This value replaces existing socialLinks that have been set on the candidate.")
|
2496
2458
|
.optional(),
|
2497
|
-
sourceId:
|
2498
|
-
creditedToUserId:
|
2499
|
-
location:
|
2459
|
+
sourceId: z.string().describe("The id of source for this candidate.").optional(),
|
2460
|
+
creditedToUserId: z.string().describe("The id of the user the candidate will be credited to.").optional(),
|
2461
|
+
location: z
|
2500
2462
|
.object({
|
2501
|
-
city:
|
2502
|
-
region:
|
2503
|
-
country:
|
2463
|
+
city: z.string().describe("The city of the candidate").optional(),
|
2464
|
+
region: z.string().describe("The region of the candidate").optional(),
|
2465
|
+
country: z.string().describe("The country of the candidate").optional(),
|
2504
2466
|
})
|
2505
2467
|
.describe("The location of the candidate.")
|
2506
2468
|
.optional(),
|
2507
|
-
createdAt:
|
2508
|
-
sendNotifications:
|
2469
|
+
createdAt: z.string().describe("An ISO date string to set the candidate's createdAt timestamp.").optional(),
|
2470
|
+
sendNotifications: z
|
2509
2471
|
.boolean()
|
2510
2472
|
.describe("Whether or not users who are subscribed to the candidate should be notified that candidate was updated. Default is true.")
|
2511
2473
|
.optional(),
|
2512
2474
|
});
|
2513
|
-
|
2514
|
-
|
2515
|
-
objectType:
|
2516
|
-
recordId:
|
2517
|
-
fieldsToUpdate:
|
2518
|
-
.record(
|
2475
|
+
export const ashbyUpdateCandidateOutputSchema = z.void();
|
2476
|
+
export const salesforceUpdateRecordParamsSchema = z.object({
|
2477
|
+
objectType: z.string().describe("The Salesforce object type to update (e.g., Lead, Account, Contact)"),
|
2478
|
+
recordId: z.string().describe("The ID of the record to update"),
|
2479
|
+
fieldsToUpdate: z
|
2480
|
+
.record(z.string())
|
2519
2481
|
.describe("A key,value pair where the keys are the fields to update on the record and the values are the new values of those fields."),
|
2520
2482
|
});
|
2521
|
-
|
2522
|
-
success:
|
2523
|
-
error:
|
2524
|
-
});
|
2525
|
-
|
2526
|
-
objectType:
|
2527
|
-
fieldsToCreate:
|
2528
|
-
});
|
2529
|
-
|
2530
|
-
success:
|
2531
|
-
recordId:
|
2532
|
-
error:
|
2533
|
-
});
|
2534
|
-
|
2535
|
-
subject:
|
2536
|
-
description:
|
2537
|
-
priority:
|
2538
|
-
origin:
|
2539
|
-
customFields:
|
2540
|
-
});
|
2541
|
-
|
2542
|
-
success:
|
2543
|
-
caseId:
|
2544
|
-
error:
|
2545
|
-
});
|
2546
|
-
|
2547
|
-
startDate:
|
2548
|
-
endDate:
|
2549
|
-
filters:
|
2550
|
-
.record(
|
2483
|
+
export const salesforceUpdateRecordOutputSchema = z.object({
|
2484
|
+
success: z.boolean().describe("Whether the record was successfully updated"),
|
2485
|
+
error: z.string().describe("The error that occurred if the record was not successfully updated").optional(),
|
2486
|
+
});
|
2487
|
+
export const salesforceCreateRecordParamsSchema = z.object({
|
2488
|
+
objectType: z.string().describe("The Salesforce object type to create (e.g., Lead, Account, Contact)"),
|
2489
|
+
fieldsToCreate: z.record(z.string()).describe("The fields to create on the record").optional(),
|
2490
|
+
});
|
2491
|
+
export const salesforceCreateRecordOutputSchema = z.object({
|
2492
|
+
success: z.boolean().describe("Whether the record was successfully created"),
|
2493
|
+
recordId: z.string().describe("The ID of the created object").optional(),
|
2494
|
+
error: z.string().describe("The error that occurred if the record was not successfully created").optional(),
|
2495
|
+
});
|
2496
|
+
export const salesforceCreateCaseParamsSchema = z.object({
|
2497
|
+
subject: z.string().describe("The subject of the case"),
|
2498
|
+
description: z.string().describe("The detailed description of the case"),
|
2499
|
+
priority: z.string().describe("The priority of the case (e.g., High, Medium, Low)"),
|
2500
|
+
origin: z.string().describe("The origin of the case (e.g., Phone, Email, Web)"),
|
2501
|
+
customFields: z.record(z.string()).describe("Additional custom fields to set on the case").optional(),
|
2502
|
+
});
|
2503
|
+
export const salesforceCreateCaseOutputSchema = z.object({
|
2504
|
+
success: z.boolean().describe("Whether the case was successfully created"),
|
2505
|
+
caseId: z.string().describe("The ID of the created case").optional(),
|
2506
|
+
error: z.string().describe("The error that occurred if the case was not successfully created").optional(),
|
2507
|
+
});
|
2508
|
+
export const salesforceGenerateSalesReportParamsSchema = z.object({
|
2509
|
+
startDate: z.string().describe("The start date for the sales report in ISO 8601 format (e.g., 2025-01-01)."),
|
2510
|
+
endDate: z.string().describe("The end date for the sales report in ISO 8601 format (e.g., 2025-01-31)."),
|
2511
|
+
filters: z
|
2512
|
+
.record(z.string())
|
2551
2513
|
.describe("Additional filters for the sales report (e.g., by region, product).")
|
2552
2514
|
.optional(),
|
2553
2515
|
});
|
2554
|
-
|
2555
|
-
success:
|
2556
|
-
reportData:
|
2557
|
-
.array(
|
2516
|
+
export const salesforceGenerateSalesReportOutputSchema = z.object({
|
2517
|
+
success: z.boolean().describe("Whether the sales report was successfully generated."),
|
2518
|
+
reportData: z
|
2519
|
+
.array(z.record(z.string()).describe("A row in the sales report."))
|
2558
2520
|
.describe("The data of the sales report.")
|
2559
2521
|
.optional(),
|
2560
|
-
error:
|
2522
|
+
error: z.string().describe("The error that occurred if the sales report was not successfully generated.").optional(),
|
2561
2523
|
});
|
2562
|
-
|
2563
|
-
query:
|
2564
|
-
limit:
|
2524
|
+
export const salesforceGetSalesforceRecordsByQueryParamsSchema = z.object({
|
2525
|
+
query: z.string().describe("The SOQL query to execute"),
|
2526
|
+
limit: z.number().describe("The maximum number of records to retrieve").optional(),
|
2565
2527
|
});
|
2566
|
-
|
2567
|
-
success:
|
2568
|
-
records:
|
2569
|
-
.array(
|
2528
|
+
export const salesforceGetSalesforceRecordsByQueryOutputSchema = z.object({
|
2529
|
+
success: z.boolean().describe("Whether the records were successfully retrieved"),
|
2530
|
+
records: z
|
2531
|
+
.array(z.record(z.string()).describe("A record from Salesforce"))
|
2570
2532
|
.describe("The retrieved records")
|
2571
2533
|
.optional(),
|
2572
|
-
error:
|
2573
|
-
});
|
2574
|
-
|
2575
|
-
objectType:
|
2576
|
-
recordId:
|
2577
|
-
});
|
2578
|
-
|
2579
|
-
success:
|
2580
|
-
record:
|
2581
|
-
error:
|
2582
|
-
});
|
2583
|
-
|
2584
|
-
objectType:
|
2585
|
-
});
|
2586
|
-
|
2587
|
-
success:
|
2588
|
-
schema:
|
2589
|
-
error:
|
2590
|
-
});
|
2591
|
-
|
2592
|
-
siteId:
|
2593
|
-
name:
|
2594
|
-
content:
|
2595
|
-
folderId:
|
2596
|
-
});
|
2597
|
-
|
2598
|
-
documentId:
|
2599
|
-
documentUrl:
|
2600
|
-
fileName:
|
2601
|
-
success:
|
2602
|
-
error:
|
2603
|
-
});
|
2604
|
-
|
2605
|
-
siteId:
|
2606
|
-
documentId:
|
2607
|
-
content:
|
2608
|
-
});
|
2609
|
-
|
2610
|
-
success:
|
2611
|
-
error:
|
2612
|
-
documentUrl:
|
2613
|
-
});
|
2614
|
-
|
2615
|
-
spreadsheetId:
|
2616
|
-
range:
|
2617
|
-
values:
|
2618
|
-
siteId:
|
2619
|
-
});
|
2620
|
-
|
2621
|
-
success:
|
2622
|
-
error:
|
2623
|
-
updatedRange:
|
2624
|
-
});
|
2625
|
-
|
2626
|
-
chatId:
|
2627
|
-
message:
|
2628
|
-
});
|
2629
|
-
|
2630
|
-
success:
|
2631
|
-
error:
|
2632
|
-
messageId:
|
2633
|
-
});
|
2634
|
-
|
2635
|
-
teamId:
|
2636
|
-
channelId:
|
2637
|
-
message:
|
2638
|
-
});
|
2639
|
-
|
2640
|
-
success:
|
2641
|
-
error:
|
2642
|
-
messageId:
|
2643
|
-
});
|
2644
|
-
|
2645
|
-
siteId:
|
2646
|
-
documentId:
|
2647
|
-
});
|
2648
|
-
|
2649
|
-
success:
|
2650
|
-
content:
|
2651
|
-
error:
|
2652
|
-
});
|
2653
|
-
|
2654
|
-
repositoryOwner:
|
2655
|
-
repositoryName:
|
2656
|
-
filePath:
|
2657
|
-
branch:
|
2658
|
-
fileContent:
|
2659
|
-
commitMessage:
|
2660
|
-
noOverwrite:
|
2661
|
-
});
|
2662
|
-
|
2663
|
-
success:
|
2664
|
-
error:
|
2665
|
-
newCommitSha:
|
2666
|
-
operation:
|
2667
|
-
});
|
2668
|
-
|
2669
|
-
repositoryOwner:
|
2670
|
-
repositoryName:
|
2671
|
-
branchName:
|
2672
|
-
baseRefOrHash:
|
2673
|
-
});
|
2674
|
-
|
2675
|
-
success:
|
2676
|
-
error:
|
2677
|
-
});
|
2678
|
-
|
2679
|
-
repositoryOwner:
|
2680
|
-
repositoryName:
|
2681
|
-
head:
|
2534
|
+
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
2535
|
+
});
|
2536
|
+
export const salesforceGetRecordParamsSchema = z.object({
|
2537
|
+
objectType: z.string().describe("The Salesforce object type to retrieve (e.g., Lead, Account, Contact)"),
|
2538
|
+
recordId: z.string().describe("The ID of the record to retrieve"),
|
2539
|
+
});
|
2540
|
+
export const salesforceGetRecordOutputSchema = z.object({
|
2541
|
+
success: z.boolean().describe("Whether the record was successfully retrieved"),
|
2542
|
+
record: z.record(z.string()).describe("The retrieved record data").optional(),
|
2543
|
+
error: z.string().describe("The error that occurred if the record was not successfully retrieved").optional(),
|
2544
|
+
});
|
2545
|
+
export const salesforceFetchSalesforceSchemaByObjectParamsSchema = z.object({
|
2546
|
+
objectType: z.string().describe("The Salesforce object type to fetch the schema for (e.g., Lead, Account, Contact)"),
|
2547
|
+
});
|
2548
|
+
export const salesforceFetchSalesforceSchemaByObjectOutputSchema = z.object({
|
2549
|
+
success: z.boolean().describe("Whether the schema was successfully retrieved"),
|
2550
|
+
schema: z.record(z.string()).describe("The retrieved schema data").optional(),
|
2551
|
+
error: z.string().describe("The error that occurred if the schema was not successfully retrieved").optional(),
|
2552
|
+
});
|
2553
|
+
export const microsoftCreateDocumentParamsSchema = z.object({
|
2554
|
+
siteId: z.string().describe("The ID of the site where the document will be created").optional(),
|
2555
|
+
name: z.string().describe("The name of the new document (include extension like .docx or .xlsx)"),
|
2556
|
+
content: z.string().describe("The content to add to the new document"),
|
2557
|
+
folderId: z.string().describe("The ID of the folder to create the document in (optional)").optional(),
|
2558
|
+
});
|
2559
|
+
export const microsoftCreateDocumentOutputSchema = z.object({
|
2560
|
+
documentId: z.string().describe("The ID of the created document").optional(),
|
2561
|
+
documentUrl: z.string().describe("The URL to access the created document").optional(),
|
2562
|
+
fileName: z.string().describe("The name of the created document (could be sanitized version of the name)").optional(),
|
2563
|
+
success: z.boolean().describe("Whether the document was created successfully"),
|
2564
|
+
error: z.string().describe("The error that occurred if the document was not created successfully").optional(),
|
2565
|
+
});
|
2566
|
+
export const microsoftUpdateDocumentParamsSchema = z.object({
|
2567
|
+
siteId: z.string().describe("The ID of the site where the document is located").optional(),
|
2568
|
+
documentId: z.string().describe("The ID of the document"),
|
2569
|
+
content: z.string().describe("The new content to update in the document"),
|
2570
|
+
});
|
2571
|
+
export const microsoftUpdateDocumentOutputSchema = z.object({
|
2572
|
+
success: z.boolean().describe("Whether the document was updated successfully"),
|
2573
|
+
error: z.string().describe("The error that occurred if the update was not successful").optional(),
|
2574
|
+
documentUrl: z.string().describe("The URL to access the updated document").optional(),
|
2575
|
+
});
|
2576
|
+
export const microsoftUpdateSpreadsheetParamsSchema = z.object({
|
2577
|
+
spreadsheetId: z.string().describe("The ID of the spreadsheet to update"),
|
2578
|
+
range: z.string().describe('The range of cells to update (e.g., "Sheet1!A1:B2")'),
|
2579
|
+
values: z.array(z.array(z.string())).describe("The values to update in the specified range"),
|
2580
|
+
siteId: z.string().describe("The ID of the site where the spreadsheet is located").optional(),
|
2581
|
+
});
|
2582
|
+
export const microsoftUpdateSpreadsheetOutputSchema = z.object({
|
2583
|
+
success: z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
2584
|
+
error: z.string().describe("The error that occurred if the update was not successful").optional(),
|
2585
|
+
updatedRange: z.string().describe("The range that was updated in the spreadsheet").optional(),
|
2586
|
+
});
|
2587
|
+
export const microsoftMessageTeamsChatParamsSchema = z.object({
|
2588
|
+
chatId: z.string().describe("The chat ID of the Microsoft Teams chat"),
|
2589
|
+
message: z.string().describe("The text to be messaged to the chat"),
|
2590
|
+
});
|
2591
|
+
export const microsoftMessageTeamsChatOutputSchema = z.object({
|
2592
|
+
success: z.boolean().describe("Whether the message was sent successfully"),
|
2593
|
+
error: z.string().describe("The error that occurred if the message was not sent successfully").optional(),
|
2594
|
+
messageId: z.string().describe("The ID of the message that was sent").optional(),
|
2595
|
+
});
|
2596
|
+
export const microsoftMessageTeamsChannelParamsSchema = z.object({
|
2597
|
+
teamId: z.string().describe("The team ID of the Microsoft Teams channel"),
|
2598
|
+
channelId: z.string().describe("The channel ID of the Microsoft Teams channel"),
|
2599
|
+
message: z.string().describe("The text to be messaged to the channel"),
|
2600
|
+
});
|
2601
|
+
export const microsoftMessageTeamsChannelOutputSchema = z.object({
|
2602
|
+
success: z.boolean().describe("Whether the message was sent successfully"),
|
2603
|
+
error: z.string().describe("The error that occurred if the message was not sent successfully").optional(),
|
2604
|
+
messageId: z.string().describe("The ID of the message that was sent").optional(),
|
2605
|
+
});
|
2606
|
+
export const microsoftGetDocumentParamsSchema = z.object({
|
2607
|
+
siteId: z.string().describe("The ID of the site where the document is located (optional for OneDrive)").optional(),
|
2608
|
+
documentId: z.string().describe("The ID of the document to retrieve"),
|
2609
|
+
});
|
2610
|
+
export const microsoftGetDocumentOutputSchema = z.object({
|
2611
|
+
success: z.boolean().describe("Whether the document was successfully retrieved"),
|
2612
|
+
content: z.string().describe("The content of the document").optional(),
|
2613
|
+
error: z.string().describe("The error that occurred if the document was not successfully retrieved").optional(),
|
2614
|
+
});
|
2615
|
+
export const githubCreateOrUpdateFileParamsSchema = z.object({
|
2616
|
+
repositoryOwner: z.string().describe("The owner of the repository"),
|
2617
|
+
repositoryName: z.string().describe("The name of the repository"),
|
2618
|
+
filePath: z.string().describe("The path of the file to create or update"),
|
2619
|
+
branch: z.string().describe("The branch where the file will be created or updated"),
|
2620
|
+
fileContent: z.string().describe("The content of the file"),
|
2621
|
+
commitMessage: z.string().describe("The commit message for the operation"),
|
2622
|
+
noOverwrite: z.boolean().describe("Whether to prevent overwriting existing files").optional(),
|
2623
|
+
});
|
2624
|
+
export const githubCreateOrUpdateFileOutputSchema = z.object({
|
2625
|
+
success: z.boolean().describe("Whether the operation was successful"),
|
2626
|
+
error: z.string().describe("The error that occurred if the operation was not successful").optional(),
|
2627
|
+
newCommitSha: z.string().describe("The SHA of the new commit created").optional(),
|
2628
|
+
operation: z.enum(["created", "updated"]).describe("Indicates whether the file was created or updated").optional(),
|
2629
|
+
});
|
2630
|
+
export const githubCreateBranchParamsSchema = z.object({
|
2631
|
+
repositoryOwner: z.string().describe("The owner of the repository"),
|
2632
|
+
repositoryName: z.string().describe("The name of the repository"),
|
2633
|
+
branchName: z.string().describe("The name of the new branch to create"),
|
2634
|
+
baseRefOrHash: z.string().describe("The ref or hash of the base commit to create the new branch from"),
|
2635
|
+
});
|
2636
|
+
export const githubCreateBranchOutputSchema = z.object({
|
2637
|
+
success: z.boolean().describe("Whether the branch was created successfully"),
|
2638
|
+
error: z.string().describe("The error that occurred if the branch was not created successfully").optional(),
|
2639
|
+
});
|
2640
|
+
export const githubCreatePullRequestParamsSchema = z.object({
|
2641
|
+
repositoryOwner: z.string().describe("The owner of the repository"),
|
2642
|
+
repositoryName: z.string().describe("The name of the repository"),
|
2643
|
+
head: z
|
2682
2644
|
.string()
|
2683
2645
|
.describe("The branch containing the changes to be merged (prefix with owner: if different from the repository owner)"),
|
2684
|
-
base:
|
2685
|
-
title:
|
2686
|
-
description:
|
2687
|
-
});
|
2688
|
-
|
2689
|
-
success:
|
2690
|
-
error:
|
2691
|
-
pullRequestUrl:
|
2692
|
-
pullRequestNumber:
|
2693
|
-
});
|
2694
|
-
|
2695
|
-
repositoryOwner:
|
2696
|
-
repositoryName:
|
2697
|
-
state:
|
2698
|
-
});
|
2699
|
-
|
2700
|
-
pullRequests:
|
2701
|
-
.array(
|
2702
|
-
number:
|
2703
|
-
title:
|
2704
|
-
state:
|
2705
|
-
url:
|
2706
|
-
createdAt:
|
2707
|
-
updatedAt:
|
2708
|
-
user:
|
2709
|
-
.object({ login:
|
2646
|
+
base: z.string().describe("The branch to merge the changes into"),
|
2647
|
+
title: z.string().describe("The title of the pull request"),
|
2648
|
+
description: z.string().describe("The description of the pull request").optional(),
|
2649
|
+
});
|
2650
|
+
export const githubCreatePullRequestOutputSchema = z.object({
|
2651
|
+
success: z.boolean().describe("Whether the pull request was created successfully"),
|
2652
|
+
error: z.string().describe("The error that occurred if the pull request was not created successfully").optional(),
|
2653
|
+
pullRequestUrl: z.string().describe("The URL of the created pull request").optional(),
|
2654
|
+
pullRequestNumber: z.number().describe("The number of the created pull request").optional(),
|
2655
|
+
});
|
2656
|
+
export const githubListPullRequestsParamsSchema = z.object({
|
2657
|
+
repositoryOwner: z.string().describe("The owner of the repository"),
|
2658
|
+
repositoryName: z.string().describe("The name of the repository"),
|
2659
|
+
state: z.string().describe("The state of the pull requests to list (e.g., open, closed)").optional(),
|
2660
|
+
});
|
2661
|
+
export const githubListPullRequestsOutputSchema = z.object({
|
2662
|
+
pullRequests: z
|
2663
|
+
.array(z.object({
|
2664
|
+
number: z.number().describe("The number of the pull request").optional(),
|
2665
|
+
title: z.string().describe("The title of the pull request").optional(),
|
2666
|
+
state: z.string().describe("The state of the pull request (e.g., open, closed)").optional(),
|
2667
|
+
url: z.string().describe("The URL of the pull request").optional(),
|
2668
|
+
createdAt: z.string().describe("The date and time when the pull request was created").optional(),
|
2669
|
+
updatedAt: z.string().describe("The date and time when the pull request was last updated").optional(),
|
2670
|
+
user: z
|
2671
|
+
.object({ login: z.string().describe("The username of the user who created the pull request").optional() })
|
2710
2672
|
.optional(),
|
2711
|
-
description:
|
2673
|
+
description: z.string().describe("The description of the pull request").optional(),
|
2712
2674
|
}))
|
2713
2675
|
.describe("A list of pull requests in the repository"),
|
2714
2676
|
});
|
2715
|
-
|
2716
|
-
query:
|
2677
|
+
export const notionSearchByTitleParamsSchema = z.object({
|
2678
|
+
query: z.string().describe("The query to search for in Notion titles"),
|
2717
2679
|
});
|
2718
|
-
|
2719
|
-
success:
|
2720
|
-
results:
|
2721
|
-
.array(
|
2722
|
-
id:
|
2723
|
-
title:
|
2724
|
-
url:
|
2680
|
+
export const notionSearchByTitleOutputSchema = z.object({
|
2681
|
+
success: z.boolean().describe("Whether the search was successful"),
|
2682
|
+
results: z
|
2683
|
+
.array(z.object({
|
2684
|
+
id: z.string().describe("The Notion page ID"),
|
2685
|
+
title: z.string().nullable().describe("The page title").optional(),
|
2686
|
+
url: z.string().describe("The URL to the Notion page"),
|
2725
2687
|
}))
|
2726
2688
|
.describe("List of matching Notion pages")
|
2727
2689
|
.optional(),
|
2728
|
-
error:
|
2690
|
+
error: z.string().describe("Error message if search failed").optional(),
|
2729
2691
|
});
|
2730
|
-
|
2731
|
-
computerId:
|
2692
|
+
export const jamfGetJamfFileVaultRecoveryKeyParamsSchema = z.object({
|
2693
|
+
computerId: z.string().describe("The computerId of the device to get the FileVault2 recovery key for"),
|
2732
2694
|
});
|
2733
|
-
|
2734
|
-
success:
|
2735
|
-
data:
|
2736
|
-
error:
|
2695
|
+
export const jamfGetJamfFileVaultRecoveryKeyOutputSchema = z.object({
|
2696
|
+
success: z.boolean().describe("Whether the request was successful"),
|
2697
|
+
data: z.string().describe("The FileVault2 recovery key data").optional(),
|
2698
|
+
error: z.string().describe("Error message if the request failed").optional(),
|
2737
2699
|
});
|
2738
|
-
|
2739
|
-
section:
|
2700
|
+
export const jamfGetJamfComputerInventoryParamsSchema = z.object({
|
2701
|
+
section: z.string().describe("Optional section parameter to filter inventory data").optional(),
|
2740
2702
|
});
|
2741
|
-
|
2742
|
-
success:
|
2743
|
-
data:
|
2744
|
-
error:
|
2703
|
+
export const jamfGetJamfComputerInventoryOutputSchema = z.object({
|
2704
|
+
success: z.boolean().describe("Whether the request was successful"),
|
2705
|
+
data: z.array(z.any()).describe("The computer inventory data").optional(),
|
2706
|
+
error: z.string().describe("Error message if the request failed").optional(),
|
2745
2707
|
});
|