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