@credal/actions 0.1.32 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actionMapper.js +125 -1
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +21 -1
- package/dist/actions/autogen/templates.js +3956 -260
- package/dist/actions/autogen/types.d.ts +880 -26
- package/dist/actions/autogen/types.js +1622 -12
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/groups.js +34 -4
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/asana/commentAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/commentAsanaTask.js +44 -0
- package/dist/actions/providers/asana/createAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/createAsanaTask.js +93 -0
- package/dist/actions/providers/asana/updateAsanaTask.d.ts +3 -0
- package/dist/actions/providers/asana/updateAsanaTask.js +50 -0
- package/dist/actions/providers/asana/utils.d.ts +6 -0
- package/dist/actions/providers/asana/utils.js +73 -0
- package/dist/actions/providers/confluence/updatePage.js +9 -13
- package/dist/actions/providers/github/createBranch.d.ts +6 -0
- package/dist/actions/providers/github/createBranch.js +68 -0
- package/dist/actions/providers/github/createOrUpdateFile.d.ts +6 -0
- package/dist/actions/providers/github/createOrUpdateFile.js +75 -0
- package/dist/actions/providers/github/createPullRequest.d.ts +6 -0
- package/dist/actions/providers/github/createPullRequest.js +48 -0
- package/dist/actions/providers/google-oauth/createPresentation.d.ts +6 -0
- package/dist/actions/providers/google-oauth/createPresentation.js +52 -0
- package/dist/actions/providers/google-oauth/createSpreadsheet.d.ts +6 -0
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +62 -0
- package/dist/actions/providers/google-oauth/updateDoc.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updateDoc.js +69 -0
- package/dist/actions/providers/google-oauth/updatePresentation.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updatePresentation.js +64 -0
- package/dist/actions/providers/google-oauth/updateSpreadsheet.d.ts +7 -0
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +51 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/commentJiraTicket.d.ts +2 -2
- package/dist/actions/providers/jira/commentJiraTicket.js +2 -2
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/jira/getJiraTicketDetails.d.ts +3 -0
- package/dist/actions/providers/jira/getJiraTicketDetails.js +40 -0
- package/dist/actions/providers/jira/getJiraTicketHistory.d.ts +3 -0
- package/dist/actions/providers/jira/getJiraTicketHistory.js +41 -0
- package/dist/actions/providers/jira/updateJiraTicketDetails.d.ts +3 -0
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +56 -0
- package/dist/actions/providers/jira/updateJiraTicketStatus.d.ts +3 -0
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +57 -0
- package/dist/actions/providers/microsoft/createDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/createDocument.js +47 -0
- package/dist/actions/providers/microsoft/getDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/getDocument.js +45 -0
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +18 -3
- package/dist/actions/providers/microsoft/messageTeamsChat.js +18 -3
- package/dist/actions/providers/microsoft/updateDocument.d.ts +3 -0
- package/dist/actions/providers/microsoft/updateDocument.js +45 -0
- package/dist/actions/providers/microsoft/updateSpreadsheet.d.ts +3 -0
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +56 -0
- package/dist/actions/providers/microsoft/utils.d.ts +7 -2
- package/dist/actions/providers/microsoft/utils.js +26 -14
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/main.js +11 -0
- package/package.json +3 -1
- package/dist/actions/providers/workday/requestTimeOff.d.ts +0 -23
- package/dist/actions/providers/workday/requestTimeOff.js +0 -88
@@ -1,6 +1,175 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaCommentTaskDefinition = void 0;
|
4
|
+
exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = void 0;
|
5
|
+
exports.asanaCommentTaskDefinition = {
|
6
|
+
description: "Comments on an Asana task with specified content",
|
7
|
+
scopes: [],
|
8
|
+
parameters: {
|
9
|
+
type: "object",
|
10
|
+
required: ["taskId", "commentText"],
|
11
|
+
properties: {
|
12
|
+
taskId: {
|
13
|
+
type: "string",
|
14
|
+
description: "Task gid the comment should be added to",
|
15
|
+
},
|
16
|
+
commentText: {
|
17
|
+
type: "string",
|
18
|
+
description: "The comment text to be added",
|
19
|
+
},
|
20
|
+
isPinned: {
|
21
|
+
type: "boolean",
|
22
|
+
description: "Whether the comment should be pinned",
|
23
|
+
},
|
24
|
+
},
|
25
|
+
},
|
26
|
+
output: {
|
27
|
+
type: "object",
|
28
|
+
required: ["success"],
|
29
|
+
properties: {
|
30
|
+
error: {
|
31
|
+
type: "string",
|
32
|
+
description: "Error if comment was unsuccessful",
|
33
|
+
},
|
34
|
+
success: {
|
35
|
+
type: "boolean",
|
36
|
+
description: "Whether comment was successfully made",
|
37
|
+
},
|
38
|
+
commentUrl: {
|
39
|
+
type: "string",
|
40
|
+
description: "The url to the created comment",
|
41
|
+
},
|
42
|
+
},
|
43
|
+
},
|
44
|
+
name: "commentTask",
|
45
|
+
provider: "asana",
|
46
|
+
};
|
47
|
+
exports.asanaCreateTaskDefinition = {
|
48
|
+
description: "Create an Asana task with specified content using optional template",
|
49
|
+
scopes: [],
|
50
|
+
parameters: {
|
51
|
+
type: "object",
|
52
|
+
required: ["name", "projectId"],
|
53
|
+
properties: {
|
54
|
+
projectId: {
|
55
|
+
type: "string",
|
56
|
+
description: "Project gid the task belongs to",
|
57
|
+
},
|
58
|
+
name: {
|
59
|
+
type: "string",
|
60
|
+
description: "The name of the new task",
|
61
|
+
},
|
62
|
+
approvalStatus: {
|
63
|
+
type: "string",
|
64
|
+
description: "Status of task (pending, approved, ...)",
|
65
|
+
},
|
66
|
+
description: {
|
67
|
+
type: "string",
|
68
|
+
description: "The description for the new task",
|
69
|
+
},
|
70
|
+
dueAt: {
|
71
|
+
type: "string",
|
72
|
+
description: "ISO 8601 date string in UTC for due date of task",
|
73
|
+
},
|
74
|
+
assignee: {
|
75
|
+
type: "string",
|
76
|
+
description: "The assignee gid or email for the new task",
|
77
|
+
},
|
78
|
+
taskTemplate: {
|
79
|
+
type: "string",
|
80
|
+
description: "The template to use, takes id or name",
|
81
|
+
},
|
82
|
+
customFields: {
|
83
|
+
type: "object",
|
84
|
+
description: "Custom fields to be set on the create task request",
|
85
|
+
additionalProperties: true,
|
86
|
+
},
|
87
|
+
},
|
88
|
+
},
|
89
|
+
output: {
|
90
|
+
type: "object",
|
91
|
+
required: ["success"],
|
92
|
+
properties: {
|
93
|
+
error: {
|
94
|
+
type: "string",
|
95
|
+
description: "Error if task creation was unsuccessful",
|
96
|
+
},
|
97
|
+
success: {
|
98
|
+
type: "boolean",
|
99
|
+
description: "Whether task creation was successful",
|
100
|
+
},
|
101
|
+
taskUrl: {
|
102
|
+
type: "string",
|
103
|
+
description: "The url to the created Asana task",
|
104
|
+
},
|
105
|
+
},
|
106
|
+
},
|
107
|
+
name: "createTask",
|
108
|
+
provider: "asana",
|
109
|
+
};
|
110
|
+
exports.asanaUpdateTaskDefinition = {
|
111
|
+
description: "Updates a Asana task with specified content",
|
112
|
+
scopes: [],
|
113
|
+
parameters: {
|
114
|
+
type: "object",
|
115
|
+
required: ["taskId"],
|
116
|
+
properties: {
|
117
|
+
taskId: {
|
118
|
+
type: "string",
|
119
|
+
description: "Task gid of the task to update",
|
120
|
+
},
|
121
|
+
name: {
|
122
|
+
type: "string",
|
123
|
+
description: "The name of the task",
|
124
|
+
},
|
125
|
+
approvalStatus: {
|
126
|
+
type: "string",
|
127
|
+
description: "Status of task (pending, approved, ...)",
|
128
|
+
},
|
129
|
+
description: {
|
130
|
+
type: "string",
|
131
|
+
description: "The updated description",
|
132
|
+
},
|
133
|
+
dueAt: {
|
134
|
+
type: "string",
|
135
|
+
description: "ISO 8601 date string in UTC for due date of task",
|
136
|
+
},
|
137
|
+
assignee: {
|
138
|
+
type: "string",
|
139
|
+
description: "The assignee gid or email for the task",
|
140
|
+
},
|
141
|
+
completed: {
|
142
|
+
type: "boolean",
|
143
|
+
description: "Whether the task should be marked as completed",
|
144
|
+
},
|
145
|
+
customFields: {
|
146
|
+
type: "object",
|
147
|
+
description: "Custom fields to be updated",
|
148
|
+
additionalProperties: true,
|
149
|
+
},
|
150
|
+
},
|
151
|
+
},
|
152
|
+
output: {
|
153
|
+
type: "object",
|
154
|
+
required: ["success"],
|
155
|
+
properties: {
|
156
|
+
error: {
|
157
|
+
type: "string",
|
158
|
+
description: "Error if task update was unsuccessful",
|
159
|
+
},
|
160
|
+
success: {
|
161
|
+
type: "boolean",
|
162
|
+
description: "Whether task update was successful",
|
163
|
+
},
|
164
|
+
taskUrl: {
|
165
|
+
type: "string",
|
166
|
+
description: "The url to the updated Asana task",
|
167
|
+
},
|
168
|
+
},
|
169
|
+
},
|
170
|
+
name: "updateTask",
|
171
|
+
provider: "asana",
|
172
|
+
};
|
4
173
|
exports.slackSendMessageDefinition = {
|
5
174
|
description: "Sends a message to a Slack channel",
|
6
175
|
scopes: ["chat:write"],
|
@@ -197,24 +366,24 @@ exports.confluenceFetchPageContentDefinition = {
|
|
197
366
|
name: "fetchPageContent",
|
198
367
|
provider: "confluence",
|
199
368
|
};
|
200
|
-
exports.
|
201
|
-
description: "
|
202
|
-
scopes: ["write:
|
369
|
+
exports.jiraAssignJiraTicketDefinition = {
|
370
|
+
description: "Assigns/Re-assignes a Jira ticket to a specified user",
|
371
|
+
scopes: ["write:jira-work", "read:jira-user"],
|
203
372
|
parameters: {
|
204
373
|
type: "object",
|
205
|
-
required: ["projectKey", "issueId", "
|
374
|
+
required: ["projectKey", "issueId", "assignee"],
|
206
375
|
properties: {
|
207
376
|
projectKey: {
|
208
377
|
type: "string",
|
209
378
|
description: "The key for the project you want to add it to",
|
210
379
|
},
|
211
|
-
|
380
|
+
assignee: {
|
212
381
|
type: "string",
|
213
|
-
description: "The
|
382
|
+
description: "The assignee for the ticket, userID or email",
|
214
383
|
},
|
215
|
-
|
384
|
+
issueId: {
|
216
385
|
type: "string",
|
217
|
-
description: "The
|
386
|
+
description: "The issue ID associated with the ticket to be assigned/re-assigned",
|
218
387
|
},
|
219
388
|
},
|
220
389
|
},
|
@@ -224,39 +393,39 @@ exports.jiraCommentJiraTicketDefinition = {
|
|
224
393
|
properties: {
|
225
394
|
success: {
|
226
395
|
type: "boolean",
|
227
|
-
description: "Whether the
|
396
|
+
description: "Whether the ticket was successfully assigned/reassigned",
|
228
397
|
},
|
229
398
|
error: {
|
230
399
|
type: "string",
|
231
|
-
description: "The error that occurred if the
|
400
|
+
description: "The error that occurred if the ticket was not successfully assigned/reassigned",
|
232
401
|
},
|
233
|
-
|
402
|
+
ticketUrl: {
|
234
403
|
type: "string",
|
235
|
-
description: "The url to the
|
404
|
+
description: "The url to the newly assigned/reassigned Jira ticket",
|
236
405
|
},
|
237
406
|
},
|
238
407
|
},
|
239
|
-
name: "
|
408
|
+
name: "assignJiraTicket",
|
240
409
|
provider: "jira",
|
241
410
|
};
|
242
|
-
exports.
|
243
|
-
description: "
|
244
|
-
scopes: ["write:
|
411
|
+
exports.jiraCommentJiraTicketDefinition = {
|
412
|
+
description: "Comments on a Jira ticket with specified content",
|
413
|
+
scopes: ["write:comment:jira"],
|
245
414
|
parameters: {
|
246
415
|
type: "object",
|
247
|
-
required: ["projectKey", "issueId", "
|
416
|
+
required: ["projectKey", "issueId", "comment"],
|
248
417
|
properties: {
|
249
418
|
projectKey: {
|
250
419
|
type: "string",
|
251
|
-
description: "The key for the project
|
420
|
+
description: "The key for the project",
|
252
421
|
},
|
253
|
-
|
422
|
+
issueId: {
|
254
423
|
type: "string",
|
255
|
-
description: "The
|
424
|
+
description: "The issue ID associated with the ticket to be commented on",
|
256
425
|
},
|
257
|
-
|
426
|
+
comment: {
|
258
427
|
type: "string",
|
259
|
-
description: "The
|
428
|
+
description: "The text to be commented on the ticket",
|
260
429
|
},
|
261
430
|
},
|
262
431
|
},
|
@@ -266,19 +435,19 @@ exports.jiraAssignJiraTicketDefinition = {
|
|
266
435
|
properties: {
|
267
436
|
success: {
|
268
437
|
type: "boolean",
|
269
|
-
description: "Whether the
|
438
|
+
description: "Whether the comment was sent successfully",
|
270
439
|
},
|
271
440
|
error: {
|
272
441
|
type: "string",
|
273
|
-
description: "The error that occurred if the
|
442
|
+
description: "The error that occurred if the comment was not sent successfully",
|
274
443
|
},
|
275
|
-
|
444
|
+
commentUrl: {
|
276
445
|
type: "string",
|
277
|
-
description: "The url to the
|
446
|
+
description: "The url to the created Jira comment",
|
278
447
|
},
|
279
448
|
},
|
280
449
|
},
|
281
|
-
name: "
|
450
|
+
name: "commentJiraTicket",
|
282
451
|
provider: "jira",
|
283
452
|
};
|
284
453
|
exports.jiraCreateJiraTicketDefinition = {
|
@@ -332,83 +501,248 @@ exports.jiraCreateJiraTicketDefinition = {
|
|
332
501
|
name: "createJiraTicket",
|
333
502
|
provider: "jira",
|
334
503
|
};
|
335
|
-
exports.
|
336
|
-
description: "
|
337
|
-
scopes: [],
|
504
|
+
exports.jiraGetJiraTicketDetailsDefinition = {
|
505
|
+
description: "Get details of a ticket in Jira",
|
506
|
+
scopes: ["read:jira-work"],
|
338
507
|
parameters: {
|
339
508
|
type: "object",
|
340
|
-
required: ["
|
509
|
+
required: ["projectKey", "issueId"],
|
341
510
|
properties: {
|
342
|
-
|
511
|
+
projectKey: {
|
343
512
|
type: "string",
|
344
|
-
description: "The
|
513
|
+
description: "The key for the project",
|
345
514
|
},
|
346
|
-
|
515
|
+
issueId: {
|
347
516
|
type: "string",
|
348
|
-
description: "The
|
517
|
+
description: "The ID of the ticket",
|
349
518
|
},
|
350
|
-
|
519
|
+
},
|
520
|
+
},
|
521
|
+
output: {
|
522
|
+
type: "object",
|
523
|
+
required: ["success"],
|
524
|
+
properties: {
|
525
|
+
success: {
|
526
|
+
type: "boolean",
|
527
|
+
description: "Whether the status was updated successfully",
|
528
|
+
},
|
529
|
+
error: {
|
351
530
|
type: "string",
|
352
|
-
description: "The
|
531
|
+
description: "The error that occurred if the retrieval was unsuccessful",
|
353
532
|
},
|
354
|
-
|
355
|
-
type: "
|
356
|
-
description: "
|
357
|
-
items: {
|
358
|
-
type: "string",
|
359
|
-
},
|
533
|
+
data: {
|
534
|
+
type: "object",
|
535
|
+
description: "The data of the Jira ticket",
|
360
536
|
},
|
361
|
-
|
537
|
+
},
|
538
|
+
},
|
539
|
+
name: "getJiraTicketDetails",
|
540
|
+
provider: "jira",
|
541
|
+
};
|
542
|
+
exports.jiraGetJiraTicketHistoryDefinition = {
|
543
|
+
description: "Get ticket history of a ticket in Jira",
|
544
|
+
scopes: ["read:jira-work"],
|
545
|
+
parameters: {
|
546
|
+
type: "object",
|
547
|
+
required: ["projectKey", "issueId"],
|
548
|
+
properties: {
|
549
|
+
projectKey: {
|
362
550
|
type: "string",
|
363
|
-
description: "The
|
364
|
-
enum: ["residential", "business", "poBox"],
|
551
|
+
description: "The key for the project",
|
365
552
|
},
|
366
|
-
|
367
|
-
type: "
|
368
|
-
description: "
|
553
|
+
issueId: {
|
554
|
+
type: "string",
|
555
|
+
description: "The ID of the ticket",
|
369
556
|
},
|
370
557
|
},
|
371
558
|
},
|
372
559
|
output: {
|
373
560
|
type: "object",
|
374
|
-
required: ["
|
561
|
+
required: ["success"],
|
375
562
|
properties: {
|
376
|
-
|
563
|
+
success: {
|
377
564
|
type: "boolean",
|
378
|
-
description: "Whether the
|
565
|
+
description: "Whether the status was updated successfully",
|
379
566
|
},
|
380
|
-
|
567
|
+
error: {
|
381
568
|
type: "string",
|
382
|
-
description: "The
|
569
|
+
description: "The error that occurred if the retrieval was unsuccessful",
|
383
570
|
},
|
384
|
-
|
571
|
+
history: {
|
385
572
|
type: "array",
|
386
|
-
description: "
|
387
|
-
items: {
|
388
|
-
type: "object",
|
389
|
-
properties: {
|
390
|
-
componentName: {
|
391
|
-
type: "string",
|
392
|
-
description: "The name of the address component.",
|
393
|
-
},
|
394
|
-
componentType: {
|
395
|
-
type: "array",
|
396
|
-
description: "The types associated with this component (e.g., street_number, route).",
|
397
|
-
items: {
|
398
|
-
type: "string",
|
399
|
-
},
|
400
|
-
},
|
401
|
-
},
|
402
|
-
},
|
573
|
+
description: "The history data of the Jira ticket",
|
403
574
|
},
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
575
|
+
},
|
576
|
+
},
|
577
|
+
name: "getJiraTicketHistory",
|
578
|
+
provider: "jira",
|
579
|
+
};
|
580
|
+
exports.jiraUpdateJiraTicketDetailsDefinition = {
|
581
|
+
description: "Update a Jira ticket with new content specified",
|
582
|
+
scopes: ["write:jira-work"],
|
583
|
+
parameters: {
|
584
|
+
type: "object",
|
585
|
+
required: ["projectKey", "issueId"],
|
586
|
+
properties: {
|
587
|
+
projectKey: {
|
588
|
+
type: "string",
|
589
|
+
description: "The key for the project you want to add it to",
|
410
590
|
},
|
411
|
-
|
591
|
+
issueId: {
|
592
|
+
type: "string",
|
593
|
+
description: "The issue ID associated with the ticket to be updated",
|
594
|
+
},
|
595
|
+
summary: {
|
596
|
+
type: "string",
|
597
|
+
description: "The updated summary",
|
598
|
+
},
|
599
|
+
description: {
|
600
|
+
type: "string",
|
601
|
+
description: "The updated description",
|
602
|
+
},
|
603
|
+
issueType: {
|
604
|
+
type: "string",
|
605
|
+
description: "The updated issue type",
|
606
|
+
},
|
607
|
+
customFields: {
|
608
|
+
type: "object",
|
609
|
+
description: "Custom fields to be set on the update ticket request",
|
610
|
+
additionalProperties: true,
|
611
|
+
},
|
612
|
+
},
|
613
|
+
},
|
614
|
+
output: {
|
615
|
+
type: "object",
|
616
|
+
required: ["ticketUrl"],
|
617
|
+
properties: {
|
618
|
+
ticketUrl: {
|
619
|
+
type: "string",
|
620
|
+
description: "The url to the Jira ticket",
|
621
|
+
},
|
622
|
+
},
|
623
|
+
},
|
624
|
+
name: "updateJiraTicketDetails",
|
625
|
+
provider: "jira",
|
626
|
+
};
|
627
|
+
exports.jiraUpdateJiraTicketStatusDefinition = {
|
628
|
+
description: "Updates the status of Jira ticket with specified status",
|
629
|
+
scopes: ["read:jira-work", "write:jira-work"],
|
630
|
+
parameters: {
|
631
|
+
type: "object",
|
632
|
+
required: ["projectKey", "issueId", "status"],
|
633
|
+
properties: {
|
634
|
+
projectKey: {
|
635
|
+
type: "string",
|
636
|
+
description: "The key for the project you want to add it to",
|
637
|
+
},
|
638
|
+
issueId: {
|
639
|
+
type: "string",
|
640
|
+
description: "The issue ID associated with the ticket",
|
641
|
+
},
|
642
|
+
status: {
|
643
|
+
type: "string",
|
644
|
+
description: 'The status the ticket should be changed to (eg "In Progress", "Closed")',
|
645
|
+
},
|
646
|
+
},
|
647
|
+
},
|
648
|
+
output: {
|
649
|
+
type: "object",
|
650
|
+
required: ["success"],
|
651
|
+
properties: {
|
652
|
+
success: {
|
653
|
+
type: "boolean",
|
654
|
+
description: "Whether the status was updated successfully",
|
655
|
+
},
|
656
|
+
error: {
|
657
|
+
type: "string",
|
658
|
+
description: "The error that occurred if the status was not updated successfully",
|
659
|
+
},
|
660
|
+
ticketUrl: {
|
661
|
+
type: "string",
|
662
|
+
description: "The url to the Jira ticket",
|
663
|
+
},
|
664
|
+
},
|
665
|
+
},
|
666
|
+
name: "updateJiraTicketStatus",
|
667
|
+
provider: "jira",
|
668
|
+
};
|
669
|
+
exports.googlemapsValidateAddressDefinition = {
|
670
|
+
description: "Validate a Google Maps address",
|
671
|
+
scopes: [],
|
672
|
+
parameters: {
|
673
|
+
type: "object",
|
674
|
+
required: ["regionCode", "locality", "addressLines", "postalCode"],
|
675
|
+
properties: {
|
676
|
+
regionCode: {
|
677
|
+
type: "string",
|
678
|
+
description: "The country of the address being verified.",
|
679
|
+
},
|
680
|
+
locality: {
|
681
|
+
type: "string",
|
682
|
+
description: "The locality of the address being verified. This is likely a city.",
|
683
|
+
},
|
684
|
+
postalCode: {
|
685
|
+
type: "string",
|
686
|
+
description: "The postal code of the address being verified.",
|
687
|
+
},
|
688
|
+
addressLines: {
|
689
|
+
type: "array",
|
690
|
+
description: "A list of lines of the address. These should be in order as they would appear on an envelope.",
|
691
|
+
items: {
|
692
|
+
type: "string",
|
693
|
+
},
|
694
|
+
},
|
695
|
+
addressType: {
|
696
|
+
type: "string",
|
697
|
+
description: "The type of address being validated.",
|
698
|
+
enum: ["residential", "business", "poBox"],
|
699
|
+
},
|
700
|
+
allowFuzzyMatches: {
|
701
|
+
type: "boolean",
|
702
|
+
description: "Whether to allow fuzzy matches in the address validation by inferring components.",
|
703
|
+
},
|
704
|
+
},
|
705
|
+
},
|
706
|
+
output: {
|
707
|
+
type: "object",
|
708
|
+
required: ["valid"],
|
709
|
+
properties: {
|
710
|
+
valid: {
|
711
|
+
type: "boolean",
|
712
|
+
description: "Whether the address is valid.",
|
713
|
+
},
|
714
|
+
formattedAddress: {
|
715
|
+
type: "string",
|
716
|
+
description: "The standardized formatted address.",
|
717
|
+
},
|
718
|
+
addressComponents: {
|
719
|
+
type: "array",
|
720
|
+
description: "Components of the address, such as street number and route.",
|
721
|
+
items: {
|
722
|
+
type: "object",
|
723
|
+
properties: {
|
724
|
+
componentName: {
|
725
|
+
type: "string",
|
726
|
+
description: "The name of the address component.",
|
727
|
+
},
|
728
|
+
componentType: {
|
729
|
+
type: "array",
|
730
|
+
description: "The types associated with this component (e.g., street_number, route).",
|
731
|
+
items: {
|
732
|
+
type: "string",
|
733
|
+
},
|
734
|
+
},
|
735
|
+
},
|
736
|
+
},
|
737
|
+
},
|
738
|
+
missingComponentTypes: {
|
739
|
+
type: "array",
|
740
|
+
description: "List of components missing in the input address.",
|
741
|
+
items: {
|
742
|
+
type: "string",
|
743
|
+
},
|
744
|
+
},
|
745
|
+
unresolvedTokens: {
|
412
746
|
type: "array",
|
413
747
|
description: "Unrecognized parts of the address.",
|
414
748
|
items: {
|
@@ -1291,117 +1625,3085 @@ exports.googleOauthCreateNewGoogleDocDefinition = {
|
|
1291
1625
|
name: "createNewGoogleDoc",
|
1292
1626
|
provider: "googleOauth",
|
1293
1627
|
};
|
1294
|
-
exports.
|
1295
|
-
description: "
|
1296
|
-
scopes: [],
|
1297
|
-
parameters: {
|
1298
|
-
type: "object",
|
1299
|
-
required: ["calendarId", "name", "start", "end"],
|
1300
|
-
properties: {
|
1301
|
-
calendarId: {
|
1302
|
-
type: "string",
|
1303
|
-
description: "The ID of the calendar to schedule the meeting on",
|
1304
|
-
},
|
1305
|
-
name: {
|
1306
|
-
type: "string",
|
1307
|
-
description: "The name of the meeting",
|
1308
|
-
},
|
1309
|
-
start: {
|
1310
|
-
type: "string",
|
1311
|
-
description: "The start time of the meeting",
|
1312
|
-
},
|
1313
|
-
end: {
|
1314
|
-
type: "string",
|
1315
|
-
description: "The end time of the meeting",
|
1316
|
-
},
|
1317
|
-
description: {
|
1318
|
-
type: "string",
|
1319
|
-
description: "The description of the meeting",
|
1320
|
-
},
|
1321
|
-
attendees: {
|
1322
|
-
type: "array",
|
1323
|
-
description: "The attendees of the meeting",
|
1324
|
-
items: {
|
1325
|
-
type: "string",
|
1326
|
-
description: "The email of the attendee",
|
1327
|
-
},
|
1328
|
-
},
|
1329
|
-
useGoogleMeet: {
|
1330
|
-
type: "boolean",
|
1331
|
-
description: "Whether to use Google Meet for the meeting",
|
1332
|
-
},
|
1333
|
-
},
|
1334
|
-
},
|
1335
|
-
output: {
|
1336
|
-
type: "object",
|
1337
|
-
required: ["success"],
|
1338
|
-
properties: {
|
1339
|
-
success: {
|
1340
|
-
type: "boolean",
|
1341
|
-
description: "Whether the meeting was scheduled successfully",
|
1342
|
-
},
|
1343
|
-
eventId: {
|
1344
|
-
type: "string",
|
1345
|
-
description: "The ID of the event that was scheduled",
|
1346
|
-
},
|
1347
|
-
eventUrl: {
|
1348
|
-
type: "string",
|
1349
|
-
description: "The URL to access the scheduled event",
|
1350
|
-
},
|
1351
|
-
error: {
|
1352
|
-
type: "string",
|
1353
|
-
description: "The error that occurred if the meeting was not scheduled successfully",
|
1354
|
-
},
|
1355
|
-
},
|
1356
|
-
},
|
1357
|
-
name: "scheduleCalendarMeeting",
|
1358
|
-
provider: "googleOauth",
|
1359
|
-
};
|
1360
|
-
exports.finnhubSymbolLookupDefinition = {
|
1361
|
-
description: "Look up a stock symbol by name",
|
1628
|
+
exports.googleOauthUpdateDocDefinition = {
|
1629
|
+
description: "Update an existing Google Docs document using OAuth authentication with batch requests",
|
1362
1630
|
scopes: [],
|
1363
1631
|
parameters: {
|
1364
1632
|
type: "object",
|
1365
|
-
required: ["
|
1633
|
+
required: ["documentId"],
|
1366
1634
|
properties: {
|
1367
|
-
|
1635
|
+
documentId: {
|
1368
1636
|
type: "string",
|
1369
|
-
description: "The
|
1637
|
+
description: "The ID of the Google Doc to update",
|
1370
1638
|
},
|
1371
|
-
|
1372
|
-
},
|
1373
|
-
output: {
|
1374
|
-
type: "object",
|
1375
|
-
required: ["result"],
|
1376
|
-
properties: {
|
1377
|
-
result: {
|
1639
|
+
requests: {
|
1378
1640
|
type: "array",
|
1379
|
-
description: "
|
1641
|
+
description: "Array of requests to apply to the document. See https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#Request",
|
1380
1642
|
items: {
|
1381
1643
|
type: "object",
|
1382
|
-
description: "
|
1383
|
-
|
1384
|
-
|
1385
|
-
type: "
|
1386
|
-
|
1644
|
+
description: "A single update request that must contain exactly one of the following operations",
|
1645
|
+
oneOf: [
|
1646
|
+
{
|
1647
|
+
type: "object",
|
1648
|
+
required: ["replaceAllText"],
|
1649
|
+
properties: {
|
1650
|
+
replaceAllText: {
|
1651
|
+
type: "object",
|
1652
|
+
description: "Replaces all instances of text matching a criteria",
|
1653
|
+
required: ["replaceText", "containsText"],
|
1654
|
+
properties: {
|
1655
|
+
replaceText: {
|
1656
|
+
type: "string",
|
1657
|
+
description: "The text that will replace the matched text",
|
1658
|
+
},
|
1659
|
+
containsText: {
|
1660
|
+
type: "object",
|
1661
|
+
description: "The text to search for",
|
1662
|
+
required: ["text"],
|
1663
|
+
properties: {
|
1664
|
+
text: {
|
1665
|
+
type: "string",
|
1666
|
+
description: "The text to search for in the document",
|
1667
|
+
},
|
1668
|
+
matchCase: {
|
1669
|
+
type: "boolean",
|
1670
|
+
description: "Whether the search should be case sensitive",
|
1671
|
+
},
|
1672
|
+
},
|
1673
|
+
},
|
1674
|
+
},
|
1675
|
+
},
|
1676
|
+
},
|
1387
1677
|
},
|
1388
|
-
|
1389
|
-
type: "
|
1390
|
-
|
1678
|
+
{
|
1679
|
+
type: "object",
|
1680
|
+
required: ["insertText"],
|
1681
|
+
properties: {
|
1682
|
+
insertText: {
|
1683
|
+
type: "object",
|
1684
|
+
description: "Inserts text at a specific location",
|
1685
|
+
required: ["text", "location"],
|
1686
|
+
properties: {
|
1687
|
+
text: {
|
1688
|
+
type: "string",
|
1689
|
+
description: "The text to insert",
|
1690
|
+
},
|
1691
|
+
location: {
|
1692
|
+
type: "object",
|
1693
|
+
description: "The location where the text will be inserted",
|
1694
|
+
required: ["index"],
|
1695
|
+
properties: {
|
1696
|
+
index: {
|
1697
|
+
type: "integer",
|
1698
|
+
description: "The zero-based index in the document where to insert the text",
|
1699
|
+
},
|
1700
|
+
},
|
1701
|
+
},
|
1702
|
+
},
|
1703
|
+
},
|
1704
|
+
},
|
1391
1705
|
},
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1706
|
+
{
|
1707
|
+
type: "object",
|
1708
|
+
required: ["updateTextStyle"],
|
1709
|
+
properties: {
|
1710
|
+
updateTextStyle: {
|
1711
|
+
type: "object",
|
1712
|
+
description: "Updates the styling of text",
|
1713
|
+
required: ["textStyle", "fields"],
|
1714
|
+
properties: {
|
1715
|
+
textStyle: {
|
1716
|
+
type: "object",
|
1717
|
+
description: "The styles to set on the text",
|
1718
|
+
properties: {
|
1719
|
+
backgroundColor: {
|
1720
|
+
type: "object",
|
1721
|
+
description: "The background color of the text",
|
1722
|
+
},
|
1723
|
+
baselineOffset: {
|
1724
|
+
type: "string",
|
1725
|
+
description: "The text's vertical offset from its normal position",
|
1726
|
+
enum: ["BASELINE_OFFSET_UNSPECIFIED", "NONE", "SUPERSCRIPT", "SUBSCRIPT"],
|
1727
|
+
},
|
1728
|
+
bold: {
|
1729
|
+
type: "boolean",
|
1730
|
+
description: "Whether the text is bold",
|
1731
|
+
},
|
1732
|
+
fontSize: {
|
1733
|
+
type: "object",
|
1734
|
+
description: "The size of the text's font",
|
1735
|
+
properties: {
|
1736
|
+
magnitude: {
|
1737
|
+
type: "number",
|
1738
|
+
description: "The font size in points",
|
1739
|
+
},
|
1740
|
+
unit: {
|
1741
|
+
type: "string",
|
1742
|
+
description: "The units for the font size",
|
1743
|
+
},
|
1744
|
+
},
|
1745
|
+
},
|
1746
|
+
foregroundColor: {
|
1747
|
+
type: "object",
|
1748
|
+
description: "The foreground color of the text",
|
1749
|
+
},
|
1750
|
+
italic: {
|
1751
|
+
type: "boolean",
|
1752
|
+
description: "Whether the text is italicized",
|
1753
|
+
},
|
1754
|
+
link: {
|
1755
|
+
type: "object",
|
1756
|
+
description: "The hyperlink destination of the text",
|
1757
|
+
properties: {
|
1758
|
+
url: {
|
1759
|
+
type: "string",
|
1760
|
+
description: "The URL of the link",
|
1761
|
+
},
|
1762
|
+
},
|
1763
|
+
},
|
1764
|
+
strikethrough: {
|
1765
|
+
type: "boolean",
|
1766
|
+
description: "Whether the text is struck through",
|
1767
|
+
},
|
1768
|
+
underline: {
|
1769
|
+
type: "boolean",
|
1770
|
+
description: "Whether the text is underlined",
|
1771
|
+
},
|
1772
|
+
weightedFontFamily: {
|
1773
|
+
type: "object",
|
1774
|
+
description: "The font family and weight of the text",
|
1775
|
+
properties: {
|
1776
|
+
fontFamily: {
|
1777
|
+
type: "string",
|
1778
|
+
description: "The font family of the text",
|
1779
|
+
},
|
1780
|
+
weight: {
|
1781
|
+
type: "integer",
|
1782
|
+
description: "The weight of the font",
|
1783
|
+
},
|
1784
|
+
},
|
1785
|
+
},
|
1786
|
+
},
|
1787
|
+
},
|
1788
|
+
fields: {
|
1789
|
+
type: "string",
|
1790
|
+
description: "The fields that should be updated",
|
1791
|
+
},
|
1792
|
+
range: {
|
1793
|
+
type: "object",
|
1794
|
+
description: "The range of text to style",
|
1795
|
+
required: ["startIndex", "endIndex"],
|
1796
|
+
properties: {
|
1797
|
+
startIndex: {
|
1798
|
+
type: "integer",
|
1799
|
+
description: "The zero-based starting index of the range",
|
1800
|
+
},
|
1801
|
+
endIndex: {
|
1802
|
+
type: "integer",
|
1803
|
+
description: "The zero-based ending index of the range (exclusive)",
|
1804
|
+
},
|
1805
|
+
},
|
1806
|
+
},
|
1807
|
+
},
|
1808
|
+
},
|
1809
|
+
},
|
1810
|
+
},
|
1811
|
+
{
|
1812
|
+
type: "object",
|
1813
|
+
required: ["deleteContentRange"],
|
1814
|
+
properties: {
|
1815
|
+
deleteContentRange: {
|
1816
|
+
type: "object",
|
1817
|
+
description: "Deletes content between two structural locations",
|
1818
|
+
required: ["range"],
|
1819
|
+
properties: {
|
1820
|
+
range: {
|
1821
|
+
type: "object",
|
1822
|
+
description: "The range of content to delete",
|
1823
|
+
required: ["startIndex", "endIndex"],
|
1824
|
+
properties: {
|
1825
|
+
startIndex: {
|
1826
|
+
type: "integer",
|
1827
|
+
description: "The zero-based starting index of the range",
|
1828
|
+
},
|
1829
|
+
endIndex: {
|
1830
|
+
type: "integer",
|
1831
|
+
description: "The zero-based ending index of the range (exclusive)",
|
1832
|
+
},
|
1833
|
+
},
|
1834
|
+
},
|
1835
|
+
},
|
1836
|
+
},
|
1837
|
+
},
|
1838
|
+
},
|
1839
|
+
{
|
1840
|
+
type: "object",
|
1841
|
+
required: ["insertTableRow"],
|
1842
|
+
properties: {
|
1843
|
+
insertTableRow: {
|
1844
|
+
type: "object",
|
1845
|
+
description: "Inserts a new table row",
|
1846
|
+
required: ["tableCellLocation", "insertBelow"],
|
1847
|
+
properties: {
|
1848
|
+
tableCellLocation: {
|
1849
|
+
type: "object",
|
1850
|
+
description: "The location where the table row will be inserted",
|
1851
|
+
required: ["tableStartLocation"],
|
1852
|
+
properties: {
|
1853
|
+
tableStartLocation: {
|
1854
|
+
type: "object",
|
1855
|
+
description: "The location where the table starts",
|
1856
|
+
required: ["index"],
|
1857
|
+
properties: {
|
1858
|
+
index: {
|
1859
|
+
type: "integer",
|
1860
|
+
description: "The zero-based index in the document",
|
1861
|
+
},
|
1862
|
+
},
|
1863
|
+
},
|
1864
|
+
rowIndex: {
|
1865
|
+
type: "integer",
|
1866
|
+
description: "The zero-based row index",
|
1867
|
+
},
|
1868
|
+
columnIndex: {
|
1869
|
+
type: "integer",
|
1870
|
+
description: "The zero-based column index",
|
1871
|
+
},
|
1872
|
+
},
|
1873
|
+
},
|
1874
|
+
insertBelow: {
|
1875
|
+
type: "boolean",
|
1876
|
+
description: "Whether to insert the row below the reference row",
|
1877
|
+
},
|
1878
|
+
},
|
1879
|
+
},
|
1880
|
+
},
|
1881
|
+
},
|
1882
|
+
{
|
1883
|
+
type: "object",
|
1884
|
+
required: ["insertTableColumn"],
|
1885
|
+
properties: {
|
1886
|
+
insertTableColumn: {
|
1887
|
+
type: "object",
|
1888
|
+
description: "Inserts a new table column",
|
1889
|
+
required: ["tableCellLocation", "insertRight"],
|
1890
|
+
properties: {
|
1891
|
+
tableCellLocation: {
|
1892
|
+
type: "object",
|
1893
|
+
description: "The location where the table column will be inserted",
|
1894
|
+
required: ["tableStartLocation"],
|
1895
|
+
properties: {
|
1896
|
+
tableStartLocation: {
|
1897
|
+
type: "object",
|
1898
|
+
description: "The location where the table starts",
|
1899
|
+
required: ["index"],
|
1900
|
+
properties: {
|
1901
|
+
index: {
|
1902
|
+
type: "integer",
|
1903
|
+
description: "The zero-based index in the document",
|
1904
|
+
},
|
1905
|
+
},
|
1906
|
+
},
|
1907
|
+
rowIndex: {
|
1908
|
+
type: "integer",
|
1909
|
+
description: "The zero-based row index",
|
1910
|
+
},
|
1911
|
+
columnIndex: {
|
1912
|
+
type: "integer",
|
1913
|
+
description: "The zero-based column index",
|
1914
|
+
},
|
1915
|
+
},
|
1916
|
+
},
|
1917
|
+
insertRight: {
|
1918
|
+
type: "boolean",
|
1919
|
+
description: "Whether to insert the column to the right of the reference column",
|
1920
|
+
},
|
1921
|
+
},
|
1922
|
+
},
|
1923
|
+
},
|
1924
|
+
},
|
1925
|
+
{
|
1926
|
+
type: "object",
|
1927
|
+
required: ["deleteTableRow"],
|
1928
|
+
properties: {
|
1929
|
+
deleteTableRow: {
|
1930
|
+
type: "object",
|
1931
|
+
description: "Deletes a table row",
|
1932
|
+
required: ["tableCellLocation"],
|
1933
|
+
properties: {
|
1934
|
+
tableCellLocation: {
|
1935
|
+
type: "object",
|
1936
|
+
description: "The location of the row to delete",
|
1937
|
+
required: ["tableStartLocation"],
|
1938
|
+
properties: {
|
1939
|
+
tableStartLocation: {
|
1940
|
+
type: "object",
|
1941
|
+
description: "The location where the table starts",
|
1942
|
+
required: ["index"],
|
1943
|
+
properties: {
|
1944
|
+
index: {
|
1945
|
+
type: "integer",
|
1946
|
+
description: "The zero-based index in the document",
|
1947
|
+
},
|
1948
|
+
},
|
1949
|
+
},
|
1950
|
+
rowIndex: {
|
1951
|
+
type: "integer",
|
1952
|
+
description: "The zero-based row index",
|
1953
|
+
},
|
1954
|
+
columnIndex: {
|
1955
|
+
type: "integer",
|
1956
|
+
description: "The zero-based column index",
|
1957
|
+
},
|
1958
|
+
},
|
1959
|
+
},
|
1960
|
+
},
|
1961
|
+
},
|
1962
|
+
},
|
1963
|
+
},
|
1964
|
+
{
|
1965
|
+
type: "object",
|
1966
|
+
required: ["deleteTableColumn"],
|
1967
|
+
properties: {
|
1968
|
+
deleteTableColumn: {
|
1969
|
+
type: "object",
|
1970
|
+
description: "Deletes a table column",
|
1971
|
+
required: ["tableCellLocation"],
|
1972
|
+
properties: {
|
1973
|
+
tableCellLocation: {
|
1974
|
+
type: "object",
|
1975
|
+
description: "The location of the column to delete",
|
1976
|
+
required: ["tableStartLocation"],
|
1977
|
+
properties: {
|
1978
|
+
tableStartLocation: {
|
1979
|
+
type: "object",
|
1980
|
+
description: "The location where the table starts",
|
1981
|
+
required: ["index"],
|
1982
|
+
properties: {
|
1983
|
+
index: {
|
1984
|
+
type: "integer",
|
1985
|
+
description: "The zero-based index in the document",
|
1986
|
+
},
|
1987
|
+
},
|
1988
|
+
},
|
1989
|
+
rowIndex: {
|
1990
|
+
type: "integer",
|
1991
|
+
description: "The zero-based row index",
|
1992
|
+
},
|
1993
|
+
columnIndex: {
|
1994
|
+
type: "integer",
|
1995
|
+
description: "The zero-based column index",
|
1996
|
+
},
|
1997
|
+
},
|
1998
|
+
},
|
1999
|
+
},
|
2000
|
+
},
|
2001
|
+
},
|
2002
|
+
},
|
2003
|
+
{
|
2004
|
+
type: "object",
|
2005
|
+
required: ["updateParagraphStyle"],
|
2006
|
+
properties: {
|
2007
|
+
updateParagraphStyle: {
|
2008
|
+
type: "object",
|
2009
|
+
description: "Updates the style of paragraphs",
|
2010
|
+
required: ["range", "paragraphStyle", "fields"],
|
2011
|
+
properties: {
|
2012
|
+
range: {
|
2013
|
+
type: "object",
|
2014
|
+
description: "The range of paragraphs to update",
|
2015
|
+
required: ["startIndex", "endIndex"],
|
2016
|
+
properties: {
|
2017
|
+
startIndex: {
|
2018
|
+
type: "integer",
|
2019
|
+
description: "The zero-based starting index of the range",
|
2020
|
+
},
|
2021
|
+
endIndex: {
|
2022
|
+
type: "integer",
|
2023
|
+
description: "The zero-based ending index of the range (exclusive)",
|
2024
|
+
},
|
2025
|
+
},
|
2026
|
+
},
|
2027
|
+
paragraphStyle: {
|
2028
|
+
type: "object",
|
2029
|
+
description: "The styles to set on the paragraphs",
|
2030
|
+
properties: {
|
2031
|
+
alignment: {
|
2032
|
+
type: "string",
|
2033
|
+
description: "The text alignment",
|
2034
|
+
enum: ["ALIGNMENT_UNSPECIFIED", "START", "CENTER", "END", "JUSTIFIED"],
|
2035
|
+
},
|
2036
|
+
direction: {
|
2037
|
+
type: "string",
|
2038
|
+
description: "The text direction",
|
2039
|
+
enum: ["CONTENT_DIRECTION_UNSPECIFIED", "LEFT_TO_RIGHT", "RIGHT_TO_LEFT"],
|
2040
|
+
},
|
2041
|
+
indentStart: {
|
2042
|
+
type: "object",
|
2043
|
+
description: "The amount of indentation for the paragraph",
|
2044
|
+
properties: {
|
2045
|
+
magnitude: {
|
2046
|
+
type: "number",
|
2047
|
+
description: "The magnitude of indentation",
|
2048
|
+
},
|
2049
|
+
unit: {
|
2050
|
+
type: "string",
|
2051
|
+
description: "The units of indentation",
|
2052
|
+
},
|
2053
|
+
},
|
2054
|
+
},
|
2055
|
+
indentEnd: {
|
2056
|
+
type: "object",
|
2057
|
+
description: "The amount of indentation from the end",
|
2058
|
+
},
|
2059
|
+
indentFirstLine: {
|
2060
|
+
type: "object",
|
2061
|
+
description: "The amount of indentation for the first line",
|
2062
|
+
},
|
2063
|
+
keepLinesTogether: {
|
2064
|
+
type: "boolean",
|
2065
|
+
description: "Whether to keep all lines on the same page",
|
2066
|
+
},
|
2067
|
+
keepWithNext: {
|
2068
|
+
type: "boolean",
|
2069
|
+
description: "Whether to keep with the next paragraph",
|
2070
|
+
},
|
2071
|
+
lineSpacing: {
|
2072
|
+
type: "number",
|
2073
|
+
description: "The amount of space between lines",
|
2074
|
+
},
|
2075
|
+
spaceAbove: {
|
2076
|
+
type: "object",
|
2077
|
+
description: "The amount of space above the paragraph",
|
2078
|
+
},
|
2079
|
+
spaceBelow: {
|
2080
|
+
type: "object",
|
2081
|
+
description: "The amount of space below the paragraph",
|
2082
|
+
},
|
2083
|
+
spacingMode: {
|
2084
|
+
type: "string",
|
2085
|
+
description: "The spacing mode",
|
2086
|
+
enum: ["SPACING_MODE_UNSPECIFIED", "NEVER_COLLAPSE", "COLLAPSE_LISTS"],
|
2087
|
+
},
|
2088
|
+
tabStops: {
|
2089
|
+
type: "array",
|
2090
|
+
description: "The tab stops for the paragraph",
|
2091
|
+
items: {
|
2092
|
+
type: "object",
|
2093
|
+
properties: {
|
2094
|
+
offset: {
|
2095
|
+
type: "object",
|
2096
|
+
description: "The offset of the tab stop",
|
2097
|
+
},
|
2098
|
+
alignment: {
|
2099
|
+
type: "string",
|
2100
|
+
description: "The alignment of the tab stop",
|
2101
|
+
},
|
2102
|
+
},
|
2103
|
+
},
|
2104
|
+
},
|
2105
|
+
},
|
2106
|
+
},
|
2107
|
+
fields: {
|
2108
|
+
type: "string",
|
2109
|
+
description: "The fields that should be updated",
|
2110
|
+
},
|
2111
|
+
},
|
2112
|
+
},
|
2113
|
+
},
|
2114
|
+
},
|
2115
|
+
{
|
2116
|
+
type: "object",
|
2117
|
+
required: ["createParagraphBullets"],
|
2118
|
+
properties: {
|
2119
|
+
createParagraphBullets: {
|
2120
|
+
type: "object",
|
2121
|
+
description: "Creates bullets for paragraphs",
|
2122
|
+
required: ["range", "bulletPreset"],
|
2123
|
+
properties: {
|
2124
|
+
range: {
|
2125
|
+
type: "object",
|
2126
|
+
description: "The range of paragraphs to bullet",
|
2127
|
+
required: ["startIndex", "endIndex"],
|
2128
|
+
properties: {
|
2129
|
+
startIndex: {
|
2130
|
+
type: "integer",
|
2131
|
+
description: "The zero-based starting index of the range",
|
2132
|
+
},
|
2133
|
+
endIndex: {
|
2134
|
+
type: "integer",
|
2135
|
+
description: "The zero-based ending index of the range (exclusive)",
|
2136
|
+
},
|
2137
|
+
},
|
2138
|
+
},
|
2139
|
+
bulletPreset: {
|
2140
|
+
type: "string",
|
2141
|
+
description: "The preset type of bullet to use",
|
2142
|
+
enum: [
|
2143
|
+
"BULLET_UNSPECIFIED",
|
2144
|
+
"BULLET_DISC_CIRCLE_SQUARE",
|
2145
|
+
"BULLET_DIAMONDX_ARROW3D_SQUARE",
|
2146
|
+
"BULLET_CHECKBOX",
|
2147
|
+
"BULLET_ARROW_DIAMOND_DISC",
|
2148
|
+
"BULLET_STAR_CIRCLE_SQUARE",
|
2149
|
+
"BULLET_ARROW3D_CIRCLE_SQUARE",
|
2150
|
+
"BULLET_LEFTTRIANGLE_DIAMOND_DISC",
|
2151
|
+
"BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE",
|
2152
|
+
"BULLET_DIAMOND_CIRCLE_SQUARE",
|
2153
|
+
"NUMBERED_DECIMAL_NESTED",
|
2154
|
+
"NUMBERED_DECIMAL_PARENTHESIS_NESTED",
|
2155
|
+
"NUMBERED_DECIMAL_PERIOD_NESTED",
|
2156
|
+
"NUMBERED_UPPERALPHA_PARENTHESIS_NESTED",
|
2157
|
+
"NUMBERED_UPPERROMAN_PARENTHESIS_NESTED",
|
2158
|
+
"NUMBERED_LOWERALPHA_PARENTHESIS_NESTED",
|
2159
|
+
"NUMBERED_LOWERROMAN_PARENTHESIS_NESTED",
|
2160
|
+
],
|
2161
|
+
},
|
2162
|
+
},
|
2163
|
+
},
|
2164
|
+
},
|
2165
|
+
},
|
2166
|
+
{
|
2167
|
+
type: "object",
|
2168
|
+
required: ["deleteParagraphBullets"],
|
2169
|
+
properties: {
|
2170
|
+
deleteParagraphBullets: {
|
2171
|
+
type: "object",
|
2172
|
+
description: "Deletes bullets from paragraphs",
|
2173
|
+
required: ["range"],
|
2174
|
+
properties: {
|
2175
|
+
range: {
|
2176
|
+
type: "object",
|
2177
|
+
description: "The range of paragraphs to remove bullets from",
|
2178
|
+
required: ["startIndex", "endIndex"],
|
2179
|
+
properties: {
|
2180
|
+
startIndex: {
|
2181
|
+
type: "integer",
|
2182
|
+
description: "The zero-based starting index of the range",
|
2183
|
+
},
|
2184
|
+
endIndex: {
|
2185
|
+
type: "integer",
|
2186
|
+
description: "The zero-based ending index of the range (exclusive)",
|
2187
|
+
},
|
2188
|
+
},
|
2189
|
+
},
|
2190
|
+
},
|
2191
|
+
},
|
2192
|
+
},
|
2193
|
+
},
|
2194
|
+
{
|
2195
|
+
type: "object",
|
2196
|
+
required: ["insertPageBreak"],
|
2197
|
+
properties: {
|
2198
|
+
insertPageBreak: {
|
2199
|
+
type: "object",
|
2200
|
+
description: "Inserts a page break",
|
2201
|
+
required: ["location"],
|
2202
|
+
properties: {
|
2203
|
+
location: {
|
2204
|
+
type: "object",
|
2205
|
+
description: "The location at which to insert the page break",
|
2206
|
+
required: ["index"],
|
2207
|
+
properties: {
|
2208
|
+
index: {
|
2209
|
+
type: "integer",
|
2210
|
+
description: "The zero-based index in the document",
|
2211
|
+
},
|
2212
|
+
},
|
2213
|
+
},
|
2214
|
+
},
|
2215
|
+
},
|
2216
|
+
},
|
2217
|
+
},
|
2218
|
+
{
|
2219
|
+
type: "object",
|
2220
|
+
required: ["updateDocumentStyle"],
|
2221
|
+
properties: {
|
2222
|
+
updateDocumentStyle: {
|
2223
|
+
type: "object",
|
2224
|
+
description: "Updates the style of the document",
|
2225
|
+
required: ["documentStyle", "fields"],
|
2226
|
+
properties: {
|
2227
|
+
documentStyle: {
|
2228
|
+
type: "object",
|
2229
|
+
description: "The styles to set on the document",
|
2230
|
+
properties: {
|
2231
|
+
background: {
|
2232
|
+
type: "object",
|
2233
|
+
description: "The background of the document",
|
2234
|
+
},
|
2235
|
+
defaultHeaderId: {
|
2236
|
+
type: "string",
|
2237
|
+
description: "The ID of the default header",
|
2238
|
+
},
|
2239
|
+
defaultFooterId: {
|
2240
|
+
type: "string",
|
2241
|
+
description: "The ID of the default footer",
|
2242
|
+
},
|
2243
|
+
evenPageHeaderId: {
|
2244
|
+
type: "string",
|
2245
|
+
description: "The ID of the header used on even pages",
|
2246
|
+
},
|
2247
|
+
evenPageFooterId: {
|
2248
|
+
type: "string",
|
2249
|
+
description: "The ID of the footer used on even pages",
|
2250
|
+
},
|
2251
|
+
firstPageHeaderId: {
|
2252
|
+
type: "string",
|
2253
|
+
description: "The ID of the header used on the first page",
|
2254
|
+
},
|
2255
|
+
firstPageFooterId: {
|
2256
|
+
type: "string",
|
2257
|
+
description: "The ID of the footer used on the first page",
|
2258
|
+
},
|
2259
|
+
marginTop: {
|
2260
|
+
type: "object",
|
2261
|
+
description: "The top page margin",
|
2262
|
+
},
|
2263
|
+
marginBottom: {
|
2264
|
+
type: "object",
|
2265
|
+
description: "The bottom page margin",
|
2266
|
+
},
|
2267
|
+
marginRight: {
|
2268
|
+
type: "object",
|
2269
|
+
description: "The right page margin",
|
2270
|
+
},
|
2271
|
+
marginLeft: {
|
2272
|
+
type: "object",
|
2273
|
+
description: "The left page margin",
|
2274
|
+
},
|
2275
|
+
pageNumberStart: {
|
2276
|
+
type: "integer",
|
2277
|
+
description: "The page number from which to start counting",
|
2278
|
+
},
|
2279
|
+
pageSize: {
|
2280
|
+
type: "object",
|
2281
|
+
description: "The size of the pages in the document",
|
2282
|
+
properties: {
|
2283
|
+
width: {
|
2284
|
+
type: "object",
|
2285
|
+
description: "The width of the page",
|
2286
|
+
},
|
2287
|
+
height: {
|
2288
|
+
type: "object",
|
2289
|
+
description: "The height of the page",
|
2290
|
+
},
|
2291
|
+
},
|
2292
|
+
},
|
2293
|
+
useCustomHeaderFooterMargins: {
|
2294
|
+
type: "boolean",
|
2295
|
+
description: "Whether to use custom margins for headers and footers",
|
2296
|
+
},
|
2297
|
+
},
|
2298
|
+
},
|
2299
|
+
fields: {
|
2300
|
+
type: "string",
|
2301
|
+
description: "The fields that should be updated",
|
2302
|
+
},
|
2303
|
+
},
|
2304
|
+
},
|
2305
|
+
},
|
2306
|
+
},
|
2307
|
+
{
|
2308
|
+
type: "object",
|
2309
|
+
required: ["createHeader"],
|
2310
|
+
properties: {
|
2311
|
+
createHeader: {
|
2312
|
+
type: "object",
|
2313
|
+
description: "Creates a header",
|
2314
|
+
required: ["type"],
|
2315
|
+
properties: {
|
2316
|
+
type: {
|
2317
|
+
type: "string",
|
2318
|
+
description: "The type of header to create",
|
2319
|
+
enum: ["HEADER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"],
|
2320
|
+
},
|
2321
|
+
},
|
2322
|
+
},
|
2323
|
+
},
|
2324
|
+
},
|
2325
|
+
{
|
2326
|
+
type: "object",
|
2327
|
+
required: ["createFooter"],
|
2328
|
+
properties: {
|
2329
|
+
createFooter: {
|
2330
|
+
type: "object",
|
2331
|
+
description: "Creates a footer",
|
2332
|
+
required: ["type"],
|
2333
|
+
properties: {
|
2334
|
+
type: {
|
2335
|
+
type: "string",
|
2336
|
+
description: "The type of footer to create",
|
2337
|
+
enum: ["FOOTER_TYPE_UNSPECIFIED", "DEFAULT", "FIRST_PAGE", "EVEN_PAGE"],
|
2338
|
+
},
|
2339
|
+
},
|
2340
|
+
},
|
2341
|
+
},
|
2342
|
+
},
|
2343
|
+
{
|
2344
|
+
type: "object",
|
2345
|
+
required: ["updateTableCellStyle"],
|
2346
|
+
properties: {
|
2347
|
+
updateTableCellStyle: {
|
2348
|
+
type: "object",
|
2349
|
+
description: "Updates the style of table cells",
|
2350
|
+
required: ["tableCellStyle", "fields", "tableRange"],
|
2351
|
+
properties: {
|
2352
|
+
tableCellStyle: {
|
2353
|
+
type: "object",
|
2354
|
+
description: "The style to apply to the cells",
|
2355
|
+
properties: {
|
2356
|
+
backgroundColor: {
|
2357
|
+
type: "object",
|
2358
|
+
description: "The background color of the cells",
|
2359
|
+
},
|
2360
|
+
borderBottom: {
|
2361
|
+
type: "object",
|
2362
|
+
description: "The bottom border of the cells",
|
2363
|
+
},
|
2364
|
+
borderLeft: {
|
2365
|
+
type: "object",
|
2366
|
+
description: "The left border of the cells",
|
2367
|
+
},
|
2368
|
+
borderRight: {
|
2369
|
+
type: "object",
|
2370
|
+
description: "The right border of the cells",
|
2371
|
+
},
|
2372
|
+
borderTop: {
|
2373
|
+
type: "object",
|
2374
|
+
description: "The top border of the cells",
|
2375
|
+
},
|
2376
|
+
columnSpan: {
|
2377
|
+
type: "integer",
|
2378
|
+
description: "The number of columns that the cell spans",
|
2379
|
+
},
|
2380
|
+
contentAlignment: {
|
2381
|
+
type: "string",
|
2382
|
+
description: "The alignment of the content within the cells",
|
2383
|
+
},
|
2384
|
+
paddingBottom: {
|
2385
|
+
type: "object",
|
2386
|
+
description: "The bottom padding of the cells",
|
2387
|
+
},
|
2388
|
+
paddingLeft: {
|
2389
|
+
type: "object",
|
2390
|
+
description: "The left padding of the cells",
|
2391
|
+
},
|
2392
|
+
paddingRight: {
|
2393
|
+
type: "object",
|
2394
|
+
description: "The right padding of the cells",
|
2395
|
+
},
|
2396
|
+
paddingTop: {
|
2397
|
+
type: "object",
|
2398
|
+
description: "The top padding of the cells",
|
2399
|
+
},
|
2400
|
+
rowSpan: {
|
2401
|
+
type: "integer",
|
2402
|
+
description: "The number of rows that the cell spans",
|
2403
|
+
},
|
2404
|
+
},
|
2405
|
+
},
|
2406
|
+
fields: {
|
2407
|
+
type: "string",
|
2408
|
+
description: "The fields that should be updated",
|
2409
|
+
},
|
2410
|
+
tableRange: {
|
2411
|
+
type: "object",
|
2412
|
+
description: "The table range to apply the style to",
|
2413
|
+
required: ["tableCellLocation", "rowSpan", "columnSpan"],
|
2414
|
+
properties: {
|
2415
|
+
tableCellLocation: {
|
2416
|
+
type: "object",
|
2417
|
+
description: "The location of the table cell",
|
2418
|
+
required: ["tableStartLocation"],
|
2419
|
+
properties: {
|
2420
|
+
tableStartLocation: {
|
2421
|
+
type: "object",
|
2422
|
+
description: "The location where the table starts",
|
2423
|
+
required: ["index"],
|
2424
|
+
properties: {
|
2425
|
+
index: {
|
2426
|
+
type: "integer",
|
2427
|
+
description: "The zero-based index in the document",
|
2428
|
+
},
|
2429
|
+
},
|
2430
|
+
},
|
2431
|
+
rowIndex: {
|
2432
|
+
type: "integer",
|
2433
|
+
description: "The zero-based row index",
|
2434
|
+
},
|
2435
|
+
columnIndex: {
|
2436
|
+
type: "integer",
|
2437
|
+
description: "The zero-based column index",
|
2438
|
+
},
|
2439
|
+
},
|
2440
|
+
},
|
2441
|
+
rowSpan: {
|
2442
|
+
type: "integer",
|
2443
|
+
description: "The number of rows that the range should span",
|
2444
|
+
},
|
2445
|
+
columnSpan: {
|
2446
|
+
type: "integer",
|
2447
|
+
description: "The number of columns that the range should span",
|
2448
|
+
},
|
2449
|
+
},
|
2450
|
+
},
|
2451
|
+
},
|
2452
|
+
},
|
2453
|
+
},
|
2454
|
+
},
|
2455
|
+
{
|
2456
|
+
type: "object",
|
2457
|
+
required: ["mergeTableCells"],
|
2458
|
+
properties: {
|
2459
|
+
mergeTableCells: {
|
2460
|
+
type: "object",
|
2461
|
+
description: "Merges table cells together",
|
2462
|
+
required: ["tableRange"],
|
2463
|
+
properties: {
|
2464
|
+
tableRange: {
|
2465
|
+
type: "object",
|
2466
|
+
description: "The table range to merge",
|
2467
|
+
required: ["tableCellLocation", "rowSpan", "columnSpan"],
|
2468
|
+
properties: {
|
2469
|
+
tableCellLocation: {
|
2470
|
+
type: "object",
|
2471
|
+
description: "The location of the table cell",
|
2472
|
+
required: ["tableStartLocation"],
|
2473
|
+
properties: {
|
2474
|
+
tableStartLocation: {
|
2475
|
+
type: "object",
|
2476
|
+
description: "The location where the table starts",
|
2477
|
+
required: ["index"],
|
2478
|
+
properties: {
|
2479
|
+
index: {
|
2480
|
+
type: "integer",
|
2481
|
+
description: "The zero-based index in the document",
|
2482
|
+
},
|
2483
|
+
},
|
2484
|
+
},
|
2485
|
+
rowIndex: {
|
2486
|
+
type: "integer",
|
2487
|
+
description: "The zero-based row index",
|
2488
|
+
},
|
2489
|
+
columnIndex: {
|
2490
|
+
type: "integer",
|
2491
|
+
description: "The zero-based column index",
|
2492
|
+
},
|
2493
|
+
},
|
2494
|
+
},
|
2495
|
+
rowSpan: {
|
2496
|
+
type: "integer",
|
2497
|
+
description: "The number of rows that the range should span",
|
2498
|
+
},
|
2499
|
+
columnSpan: {
|
2500
|
+
type: "integer",
|
2501
|
+
description: "The number of columns that the range should span",
|
2502
|
+
},
|
2503
|
+
},
|
2504
|
+
},
|
2505
|
+
},
|
2506
|
+
},
|
2507
|
+
},
|
2508
|
+
},
|
2509
|
+
{
|
2510
|
+
type: "object",
|
2511
|
+
required: ["unmergeTableCells"],
|
2512
|
+
properties: {
|
2513
|
+
unmergeTableCells: {
|
2514
|
+
type: "object",
|
2515
|
+
description: "Unmerges merged table cells",
|
2516
|
+
required: ["tableRange"],
|
2517
|
+
properties: {
|
2518
|
+
tableRange: {
|
2519
|
+
type: "object",
|
2520
|
+
description: "The table range to unmerge",
|
2521
|
+
required: ["tableCellLocation", "rowSpan", "columnSpan"],
|
2522
|
+
properties: {
|
2523
|
+
tableCellLocation: {
|
2524
|
+
type: "object",
|
2525
|
+
description: "The location of the table cell",
|
2526
|
+
required: ["tableStartLocation"],
|
2527
|
+
properties: {
|
2528
|
+
tableStartLocation: {
|
2529
|
+
type: "object",
|
2530
|
+
description: "The location where the table starts",
|
2531
|
+
required: ["index"],
|
2532
|
+
properties: {
|
2533
|
+
index: {
|
2534
|
+
type: "integer",
|
2535
|
+
description: "The zero-based index in the document",
|
2536
|
+
},
|
2537
|
+
},
|
2538
|
+
},
|
2539
|
+
rowIndex: {
|
2540
|
+
type: "integer",
|
2541
|
+
description: "The zero-based row index",
|
2542
|
+
},
|
2543
|
+
columnIndex: {
|
2544
|
+
type: "integer",
|
2545
|
+
description: "The zero-based column index",
|
2546
|
+
},
|
2547
|
+
},
|
2548
|
+
},
|
2549
|
+
rowSpan: {
|
2550
|
+
type: "integer",
|
2551
|
+
description: "The number of rows that the range should span",
|
2552
|
+
},
|
2553
|
+
columnSpan: {
|
2554
|
+
type: "integer",
|
2555
|
+
description: "The number of columns that the range should span",
|
2556
|
+
},
|
2557
|
+
},
|
2558
|
+
},
|
2559
|
+
},
|
2560
|
+
},
|
2561
|
+
},
|
2562
|
+
},
|
2563
|
+
{
|
2564
|
+
type: "object",
|
2565
|
+
required: ["createNamedRange"],
|
2566
|
+
properties: {
|
2567
|
+
createNamedRange: {
|
2568
|
+
type: "object",
|
2569
|
+
description: "Creates a named range",
|
2570
|
+
required: ["name", "range"],
|
2571
|
+
properties: {
|
2572
|
+
name: {
|
2573
|
+
type: "string",
|
2574
|
+
description: "The name of the range",
|
2575
|
+
},
|
2576
|
+
range: {
|
2577
|
+
type: "object",
|
2578
|
+
description: "The range to name",
|
2579
|
+
required: ["startIndex", "endIndex"],
|
2580
|
+
properties: {
|
2581
|
+
startIndex: {
|
2582
|
+
type: "integer",
|
2583
|
+
description: "The zero-based starting index of the range",
|
2584
|
+
},
|
2585
|
+
endIndex: {
|
2586
|
+
type: "integer",
|
2587
|
+
description: "The zero-based ending index of the range (exclusive)",
|
2588
|
+
},
|
2589
|
+
},
|
2590
|
+
},
|
2591
|
+
},
|
2592
|
+
},
|
2593
|
+
},
|
2594
|
+
},
|
2595
|
+
{
|
2596
|
+
type: "object",
|
2597
|
+
required: ["deleteNamedRange"],
|
2598
|
+
properties: {
|
2599
|
+
deleteNamedRange: {
|
2600
|
+
type: "object",
|
2601
|
+
description: "Deletes a named range",
|
2602
|
+
required: ["name"],
|
2603
|
+
properties: {
|
2604
|
+
name: {
|
2605
|
+
type: "string",
|
2606
|
+
description: "The name of the range to delete",
|
2607
|
+
},
|
2608
|
+
},
|
2609
|
+
},
|
2610
|
+
},
|
2611
|
+
},
|
2612
|
+
{
|
2613
|
+
type: "object",
|
2614
|
+
required: ["replaceNamedRangeContent"],
|
2615
|
+
properties: {
|
2616
|
+
replaceNamedRangeContent: {
|
2617
|
+
type: "object",
|
2618
|
+
description: "Replaces the content of a named range",
|
2619
|
+
required: ["name", "text"],
|
2620
|
+
properties: {
|
2621
|
+
name: {
|
2622
|
+
type: "string",
|
2623
|
+
description: "The name of the range to replace",
|
2624
|
+
},
|
2625
|
+
text: {
|
2626
|
+
type: "string",
|
2627
|
+
description: "The text to replace with",
|
2628
|
+
},
|
2629
|
+
},
|
2630
|
+
},
|
2631
|
+
},
|
2632
|
+
},
|
2633
|
+
{
|
2634
|
+
type: "object",
|
2635
|
+
required: ["insertInlineImage"],
|
2636
|
+
properties: {
|
2637
|
+
insertInlineImage: {
|
2638
|
+
type: "object",
|
2639
|
+
description: "Inserts an inline image at a specific location",
|
2640
|
+
required: ["location", "uri", "objectSize"],
|
2641
|
+
properties: {
|
2642
|
+
location: {
|
2643
|
+
type: "object",
|
2644
|
+
description: "The location at which to insert the image",
|
2645
|
+
required: ["index"],
|
2646
|
+
properties: {
|
2647
|
+
index: {
|
2648
|
+
type: "integer",
|
2649
|
+
description: "The zero-based index in the document",
|
2650
|
+
},
|
2651
|
+
},
|
2652
|
+
},
|
2653
|
+
uri: {
|
2654
|
+
type: "string",
|
2655
|
+
description: "The image URI",
|
2656
|
+
},
|
2657
|
+
objectSize: {
|
2658
|
+
type: "object",
|
2659
|
+
description: "The size that the object should appear as in the document",
|
2660
|
+
properties: {
|
2661
|
+
width: {
|
2662
|
+
type: "object",
|
2663
|
+
description: "The width of the image",
|
2664
|
+
},
|
2665
|
+
height: {
|
2666
|
+
type: "object",
|
2667
|
+
description: "The height of the image",
|
2668
|
+
},
|
2669
|
+
},
|
2670
|
+
},
|
2671
|
+
},
|
2672
|
+
},
|
2673
|
+
},
|
2674
|
+
},
|
2675
|
+
{
|
2676
|
+
type: "object",
|
2677
|
+
required: ["deleteHeader"],
|
2678
|
+
properties: {
|
2679
|
+
deleteHeader: {
|
2680
|
+
type: "object",
|
2681
|
+
description: "Deletes a header",
|
2682
|
+
required: ["headerId"],
|
2683
|
+
properties: {
|
2684
|
+
headerId: {
|
2685
|
+
type: "string",
|
2686
|
+
description: "The ID of the header to delete",
|
2687
|
+
},
|
2688
|
+
},
|
2689
|
+
},
|
2690
|
+
},
|
2691
|
+
},
|
2692
|
+
{
|
2693
|
+
type: "object",
|
2694
|
+
required: ["deleteFooter"],
|
2695
|
+
properties: {
|
2696
|
+
deleteFooter: {
|
2697
|
+
type: "object",
|
2698
|
+
description: "Deletes a footer",
|
2699
|
+
required: ["footerId"],
|
2700
|
+
properties: {
|
2701
|
+
footerId: {
|
2702
|
+
type: "string",
|
2703
|
+
description: "The ID of the footer to delete",
|
2704
|
+
},
|
2705
|
+
},
|
2706
|
+
},
|
2707
|
+
},
|
2708
|
+
},
|
2709
|
+
],
|
2710
|
+
},
|
2711
|
+
},
|
2712
|
+
},
|
2713
|
+
},
|
2714
|
+
output: {
|
2715
|
+
type: "object",
|
2716
|
+
required: ["success"],
|
2717
|
+
properties: {
|
2718
|
+
success: {
|
2719
|
+
type: "boolean",
|
2720
|
+
description: "Whether the document was updated successfully",
|
2721
|
+
},
|
2722
|
+
documentId: {
|
2723
|
+
type: "string",
|
2724
|
+
description: "The ID of the updated Google Doc",
|
2725
|
+
},
|
2726
|
+
documentUrl: {
|
2727
|
+
type: "string",
|
2728
|
+
description: "The URL to access the updated Google Doc",
|
2729
|
+
},
|
2730
|
+
error: {
|
2731
|
+
type: "string",
|
2732
|
+
description: "The error message if the update failed",
|
2733
|
+
},
|
2734
|
+
},
|
2735
|
+
},
|
2736
|
+
name: "updateDoc",
|
2737
|
+
provider: "googleOauth",
|
2738
|
+
};
|
2739
|
+
exports.googleOauthScheduleCalendarMeetingDefinition = {
|
2740
|
+
description: "Schedule a meeting on google calendar using OAuth authentication",
|
2741
|
+
scopes: [],
|
2742
|
+
parameters: {
|
2743
|
+
type: "object",
|
2744
|
+
required: ["calendarId", "name", "start", "end"],
|
2745
|
+
properties: {
|
2746
|
+
calendarId: {
|
2747
|
+
type: "string",
|
2748
|
+
description: "The ID of the calendar to schedule the meeting on",
|
2749
|
+
},
|
2750
|
+
name: {
|
2751
|
+
type: "string",
|
2752
|
+
description: "The name of the meeting",
|
2753
|
+
},
|
2754
|
+
start: {
|
2755
|
+
type: "string",
|
2756
|
+
description: "The start time of the meeting",
|
2757
|
+
},
|
2758
|
+
end: {
|
2759
|
+
type: "string",
|
2760
|
+
description: "The end time of the meeting",
|
2761
|
+
},
|
2762
|
+
description: {
|
2763
|
+
type: "string",
|
2764
|
+
description: "The description of the meeting",
|
2765
|
+
},
|
2766
|
+
attendees: {
|
2767
|
+
type: "array",
|
2768
|
+
description: "The attendees of the meeting",
|
2769
|
+
items: {
|
2770
|
+
type: "string",
|
2771
|
+
description: "The email of the attendee",
|
2772
|
+
},
|
2773
|
+
},
|
2774
|
+
useGoogleMeet: {
|
2775
|
+
type: "boolean",
|
2776
|
+
description: "Whether to use Google Meet for the meeting",
|
2777
|
+
},
|
2778
|
+
},
|
2779
|
+
},
|
2780
|
+
output: {
|
2781
|
+
type: "object",
|
2782
|
+
required: ["success"],
|
2783
|
+
properties: {
|
2784
|
+
success: {
|
2785
|
+
type: "boolean",
|
2786
|
+
description: "Whether the meeting was scheduled successfully",
|
2787
|
+
},
|
2788
|
+
eventId: {
|
2789
|
+
type: "string",
|
2790
|
+
description: "The ID of the event that was scheduled",
|
2791
|
+
},
|
2792
|
+
eventUrl: {
|
2793
|
+
type: "string",
|
2794
|
+
description: "The URL to access the scheduled event",
|
2795
|
+
},
|
2796
|
+
error: {
|
2797
|
+
type: "string",
|
2798
|
+
description: "The error that occurred if the meeting was not scheduled successfully",
|
2799
|
+
},
|
2800
|
+
},
|
2801
|
+
},
|
2802
|
+
name: "scheduleCalendarMeeting",
|
2803
|
+
provider: "googleOauth",
|
2804
|
+
};
|
2805
|
+
exports.googleOauthCreateSpreadsheetDefinition = {
|
2806
|
+
description: "Create a new Google Spreadsheet using OAuth authentication",
|
2807
|
+
scopes: [],
|
2808
|
+
parameters: {
|
2809
|
+
type: "object",
|
2810
|
+
required: ["title"],
|
2811
|
+
properties: {
|
2812
|
+
title: {
|
2813
|
+
type: "string",
|
2814
|
+
description: "The title of the new spreadsheet",
|
2815
|
+
},
|
2816
|
+
sheets: {
|
2817
|
+
type: "array",
|
2818
|
+
description: "The initial sheets to create in the spreadsheet",
|
2819
|
+
items: {
|
2820
|
+
type: "object",
|
2821
|
+
properties: {
|
2822
|
+
title: {
|
2823
|
+
type: "string",
|
2824
|
+
description: "The title of the sheet",
|
2825
|
+
},
|
2826
|
+
gridProperties: {
|
2827
|
+
type: "object",
|
2828
|
+
properties: {
|
2829
|
+
rowCount: {
|
2830
|
+
type: "integer",
|
2831
|
+
description: "The number of rows in the sheet",
|
2832
|
+
},
|
2833
|
+
columnCount: {
|
2834
|
+
type: "integer",
|
2835
|
+
description: "The number of columns in the sheet",
|
2836
|
+
},
|
2837
|
+
frozenRowCount: {
|
2838
|
+
type: "integer",
|
2839
|
+
description: "The number of frozen rows",
|
2840
|
+
},
|
2841
|
+
frozenColumnCount: {
|
2842
|
+
type: "integer",
|
2843
|
+
description: "The number of frozen columns",
|
2844
|
+
},
|
2845
|
+
},
|
2846
|
+
},
|
2847
|
+
},
|
2848
|
+
},
|
2849
|
+
},
|
2850
|
+
properties: {
|
2851
|
+
type: "object",
|
2852
|
+
description: "Properties for the spreadsheet",
|
2853
|
+
properties: {
|
2854
|
+
locale: {
|
2855
|
+
type: "string",
|
2856
|
+
description: "The locale of the spreadsheet (e.g., en_US)",
|
2857
|
+
},
|
2858
|
+
timeZone: {
|
2859
|
+
type: "string",
|
2860
|
+
description: "The time zone of the spreadsheet (e.g., America/New_York)",
|
2861
|
+
},
|
2862
|
+
autoRecalc: {
|
2863
|
+
type: "string",
|
2864
|
+
enum: ["ON_CHANGE", "MINUTE", "HOUR"],
|
2865
|
+
description: "When to recalculate the spreadsheet",
|
2866
|
+
},
|
2867
|
+
},
|
2868
|
+
},
|
2869
|
+
},
|
2870
|
+
},
|
2871
|
+
output: {
|
2872
|
+
type: "object",
|
2873
|
+
required: ["success"],
|
2874
|
+
properties: {
|
2875
|
+
success: {
|
2876
|
+
type: "boolean",
|
2877
|
+
description: "Whether the spreadsheet was created successfully",
|
2878
|
+
},
|
2879
|
+
spreadsheetId: {
|
2880
|
+
type: "string",
|
2881
|
+
description: "The ID of the created spreadsheet",
|
2882
|
+
},
|
2883
|
+
spreadsheetUrl: {
|
2884
|
+
type: "string",
|
2885
|
+
description: "The URL to access the created spreadsheet",
|
2886
|
+
},
|
2887
|
+
sheets: {
|
2888
|
+
type: "array",
|
2889
|
+
description: "Information about the created sheets",
|
2890
|
+
items: {
|
2891
|
+
type: "object",
|
2892
|
+
properties: {
|
2893
|
+
sheetId: {
|
2894
|
+
type: "integer",
|
2895
|
+
description: "The ID of the sheet",
|
2896
|
+
},
|
2897
|
+
title: {
|
2898
|
+
type: "string",
|
2899
|
+
description: "The title of the sheet",
|
2900
|
+
},
|
2901
|
+
index: {
|
2902
|
+
type: "integer",
|
2903
|
+
description: "The index of the sheet",
|
2904
|
+
},
|
2905
|
+
},
|
2906
|
+
},
|
2907
|
+
},
|
2908
|
+
error: {
|
2909
|
+
type: "string",
|
2910
|
+
description: "The error that occurred if the spreadsheet was not created successfully",
|
2911
|
+
},
|
2912
|
+
},
|
2913
|
+
},
|
2914
|
+
name: "createSpreadsheet",
|
2915
|
+
provider: "googleOauth",
|
2916
|
+
};
|
2917
|
+
exports.googleOauthUpdateSpreadsheetDefinition = {
|
2918
|
+
description: "Update a Google Spreadsheet with new content specified",
|
2919
|
+
scopes: [],
|
2920
|
+
parameters: {
|
2921
|
+
type: "object",
|
2922
|
+
required: ["spreadsheetId", "requests"],
|
2923
|
+
properties: {
|
2924
|
+
spreadsheetId: {
|
2925
|
+
type: "string",
|
2926
|
+
description: "The ID of the Google Spreadsheet to update",
|
2927
|
+
},
|
2928
|
+
requests: {
|
2929
|
+
type: "array",
|
2930
|
+
description: "The requests to update the spreadsheet with",
|
2931
|
+
items: {
|
2932
|
+
type: "object",
|
2933
|
+
oneOf: [
|
2934
|
+
{
|
2935
|
+
type: "object",
|
2936
|
+
description: "Add or update a sheet",
|
2937
|
+
properties: {
|
2938
|
+
addSheet: {
|
2939
|
+
type: "object",
|
2940
|
+
properties: {
|
2941
|
+
properties: {
|
2942
|
+
type: "object",
|
2943
|
+
properties: {
|
2944
|
+
title: {
|
2945
|
+
type: "string",
|
2946
|
+
description: "The title of the new sheet",
|
2947
|
+
},
|
2948
|
+
gridProperties: {
|
2949
|
+
type: "object",
|
2950
|
+
properties: {
|
2951
|
+
rowCount: {
|
2952
|
+
type: "integer",
|
2953
|
+
description: "The number of rows in the sheet",
|
2954
|
+
},
|
2955
|
+
columnCount: {
|
2956
|
+
type: "integer",
|
2957
|
+
description: "The number of columns in the sheet",
|
2958
|
+
},
|
2959
|
+
},
|
2960
|
+
},
|
2961
|
+
},
|
2962
|
+
},
|
2963
|
+
},
|
2964
|
+
},
|
2965
|
+
},
|
2966
|
+
},
|
2967
|
+
{
|
2968
|
+
type: "object",
|
2969
|
+
description: "Delete a sheet",
|
2970
|
+
properties: {
|
2971
|
+
deleteSheet: {
|
2972
|
+
type: "object",
|
2973
|
+
properties: {
|
2974
|
+
sheetId: {
|
2975
|
+
type: "integer",
|
2976
|
+
description: "The ID of the sheet to delete",
|
2977
|
+
},
|
2978
|
+
},
|
2979
|
+
},
|
2980
|
+
},
|
2981
|
+
},
|
2982
|
+
{
|
2983
|
+
type: "object",
|
2984
|
+
description: "Update cells in a range",
|
2985
|
+
properties: {
|
2986
|
+
updateCells: {
|
2987
|
+
type: "object",
|
2988
|
+
properties: {
|
2989
|
+
range: {
|
2990
|
+
type: "object",
|
2991
|
+
properties: {
|
2992
|
+
sheetId: {
|
2993
|
+
type: "integer",
|
2994
|
+
description: "The ID of the sheet",
|
2995
|
+
},
|
2996
|
+
startRowIndex: {
|
2997
|
+
type: "integer",
|
2998
|
+
description: "The start row (0-based, inclusive)",
|
2999
|
+
},
|
3000
|
+
endRowIndex: {
|
3001
|
+
type: "integer",
|
3002
|
+
description: "The end row (0-based, exclusive)",
|
3003
|
+
},
|
3004
|
+
startColumnIndex: {
|
3005
|
+
type: "integer",
|
3006
|
+
description: "The start column (0-based, inclusive)",
|
3007
|
+
},
|
3008
|
+
endColumnIndex: {
|
3009
|
+
type: "integer",
|
3010
|
+
description: "The end column (0-based, exclusive)",
|
3011
|
+
},
|
3012
|
+
},
|
3013
|
+
},
|
3014
|
+
rows: {
|
3015
|
+
type: "array",
|
3016
|
+
items: {
|
3017
|
+
type: "object",
|
3018
|
+
properties: {
|
3019
|
+
values: {
|
3020
|
+
type: "array",
|
3021
|
+
items: {
|
3022
|
+
type: "object",
|
3023
|
+
properties: {
|
3024
|
+
userEnteredValue: {
|
3025
|
+
type: "object",
|
3026
|
+
properties: {
|
3027
|
+
stringValue: {
|
3028
|
+
type: "string",
|
3029
|
+
},
|
3030
|
+
numberValue: {
|
3031
|
+
type: "number",
|
3032
|
+
},
|
3033
|
+
boolValue: {
|
3034
|
+
type: "boolean",
|
3035
|
+
},
|
3036
|
+
formulaValue: {
|
3037
|
+
type: "string",
|
3038
|
+
},
|
3039
|
+
},
|
3040
|
+
},
|
3041
|
+
},
|
3042
|
+
},
|
3043
|
+
},
|
3044
|
+
},
|
3045
|
+
},
|
3046
|
+
},
|
3047
|
+
},
|
3048
|
+
},
|
3049
|
+
},
|
3050
|
+
},
|
3051
|
+
{
|
3052
|
+
type: "object",
|
3053
|
+
description: "Update sheet properties",
|
3054
|
+
properties: {
|
3055
|
+
updateSheetProperties: {
|
3056
|
+
type: "object",
|
3057
|
+
properties: {
|
3058
|
+
properties: {
|
3059
|
+
type: "object",
|
3060
|
+
properties: {
|
3061
|
+
sheetId: {
|
3062
|
+
type: "integer",
|
3063
|
+
description: "The ID of the sheet to update",
|
3064
|
+
},
|
3065
|
+
title: {
|
3066
|
+
type: "string",
|
3067
|
+
description: "The new title of the sheet",
|
3068
|
+
},
|
3069
|
+
gridProperties: {
|
3070
|
+
type: "object",
|
3071
|
+
properties: {
|
3072
|
+
rowCount: {
|
3073
|
+
type: "integer",
|
3074
|
+
description: "The new number of rows",
|
3075
|
+
},
|
3076
|
+
columnCount: {
|
3077
|
+
type: "integer",
|
3078
|
+
description: "The new number of columns",
|
3079
|
+
},
|
3080
|
+
frozenRowCount: {
|
3081
|
+
type: "integer",
|
3082
|
+
description: "The number of frozen rows",
|
3083
|
+
},
|
3084
|
+
frozenColumnCount: {
|
3085
|
+
type: "integer",
|
3086
|
+
description: "The number of frozen columns",
|
3087
|
+
},
|
3088
|
+
},
|
3089
|
+
},
|
3090
|
+
},
|
3091
|
+
},
|
3092
|
+
fields: {
|
3093
|
+
type: "string",
|
3094
|
+
description: "The fields to update (comma-separated list using JSON field paths)",
|
3095
|
+
},
|
3096
|
+
},
|
3097
|
+
},
|
3098
|
+
},
|
3099
|
+
},
|
3100
|
+
{
|
3101
|
+
type: "object",
|
3102
|
+
description: "Update spreadsheet properties",
|
3103
|
+
properties: {
|
3104
|
+
updateSpreadsheetProperties: {
|
3105
|
+
type: "object",
|
3106
|
+
properties: {
|
3107
|
+
properties: {
|
3108
|
+
type: "object",
|
3109
|
+
properties: {
|
3110
|
+
title: {
|
3111
|
+
type: "string",
|
3112
|
+
description: "The title of the spreadsheet",
|
3113
|
+
},
|
3114
|
+
locale: {
|
3115
|
+
type: "string",
|
3116
|
+
description: "The locale of the spreadsheet (e.g., en_US)",
|
3117
|
+
},
|
3118
|
+
timeZone: {
|
3119
|
+
type: "string",
|
3120
|
+
description: "The time zone of the spreadsheet (e.g., America/New_York)",
|
3121
|
+
},
|
3122
|
+
autoRecalc: {
|
3123
|
+
type: "string",
|
3124
|
+
enum: ["ON_CHANGE", "MINUTE", "HOUR"],
|
3125
|
+
description: "When to recalculate the spreadsheet",
|
3126
|
+
},
|
3127
|
+
defaultFormat: {
|
3128
|
+
type: "object",
|
3129
|
+
properties: {
|
3130
|
+
backgroundColor: {
|
3131
|
+
type: "object",
|
3132
|
+
properties: {
|
3133
|
+
red: {
|
3134
|
+
type: "number",
|
3135
|
+
description: "The red component [0.0, 1.0]",
|
3136
|
+
},
|
3137
|
+
green: {
|
3138
|
+
type: "number",
|
3139
|
+
description: "The green component [0.0, 1.0]",
|
3140
|
+
},
|
3141
|
+
blue: {
|
3142
|
+
type: "number",
|
3143
|
+
description: "The blue component [0.0, 1.0]",
|
3144
|
+
},
|
3145
|
+
alpha: {
|
3146
|
+
type: "number",
|
3147
|
+
description: "The alpha component [0.0, 1.0]",
|
3148
|
+
},
|
3149
|
+
},
|
3150
|
+
},
|
3151
|
+
numberFormat: {
|
3152
|
+
type: "object",
|
3153
|
+
properties: {
|
3154
|
+
type: {
|
3155
|
+
type: "string",
|
3156
|
+
enum: [
|
3157
|
+
"TEXT",
|
3158
|
+
"NUMBER",
|
3159
|
+
"PERCENT",
|
3160
|
+
"CURRENCY",
|
3161
|
+
"DATE",
|
3162
|
+
"TIME",
|
3163
|
+
"DATE_TIME",
|
3164
|
+
"SCIENTIFIC",
|
3165
|
+
],
|
3166
|
+
description: "The type of the number format",
|
3167
|
+
},
|
3168
|
+
pattern: {
|
3169
|
+
type: "string",
|
3170
|
+
description: "Pattern string used for formatting",
|
3171
|
+
},
|
3172
|
+
},
|
3173
|
+
},
|
3174
|
+
textFormat: {
|
3175
|
+
type: "object",
|
3176
|
+
properties: {
|
3177
|
+
foregroundColor: {
|
3178
|
+
type: "object",
|
3179
|
+
properties: {
|
3180
|
+
red: {
|
3181
|
+
type: "number",
|
3182
|
+
description: "The red component [0.0, 1.0]",
|
3183
|
+
},
|
3184
|
+
green: {
|
3185
|
+
type: "number",
|
3186
|
+
description: "The green component [0.0, 1.0]",
|
3187
|
+
},
|
3188
|
+
blue: {
|
3189
|
+
type: "number",
|
3190
|
+
description: "The blue component [0.0, 1.0]",
|
3191
|
+
},
|
3192
|
+
alpha: {
|
3193
|
+
type: "number",
|
3194
|
+
description: "The alpha component [0.0, 1.0]",
|
3195
|
+
},
|
3196
|
+
},
|
3197
|
+
},
|
3198
|
+
fontFamily: {
|
3199
|
+
type: "string",
|
3200
|
+
description: "The font family",
|
3201
|
+
},
|
3202
|
+
fontSize: {
|
3203
|
+
type: "integer",
|
3204
|
+
description: "The size of the font in points",
|
3205
|
+
},
|
3206
|
+
bold: {
|
3207
|
+
type: "boolean",
|
3208
|
+
description: "Whether the text is bold",
|
3209
|
+
},
|
3210
|
+
italic: {
|
3211
|
+
type: "boolean",
|
3212
|
+
description: "Whether the text is italic",
|
3213
|
+
},
|
3214
|
+
strikethrough: {
|
3215
|
+
type: "boolean",
|
3216
|
+
description: "Whether the text has a strikethrough",
|
3217
|
+
},
|
3218
|
+
underline: {
|
3219
|
+
type: "boolean",
|
3220
|
+
description: "Whether the text is underlined",
|
3221
|
+
},
|
3222
|
+
},
|
3223
|
+
},
|
3224
|
+
},
|
3225
|
+
},
|
3226
|
+
},
|
3227
|
+
},
|
3228
|
+
fields: {
|
3229
|
+
type: "string",
|
3230
|
+
description: "The fields to update (comma-separated list using JSON field paths)",
|
3231
|
+
},
|
3232
|
+
},
|
3233
|
+
},
|
3234
|
+
},
|
3235
|
+
},
|
3236
|
+
],
|
3237
|
+
},
|
3238
|
+
},
|
3239
|
+
},
|
3240
|
+
},
|
3241
|
+
output: {
|
3242
|
+
type: "object",
|
3243
|
+
required: ["success"],
|
3244
|
+
properties: {
|
3245
|
+
success: {
|
3246
|
+
type: "boolean",
|
3247
|
+
description: "Whether the spreadsheet was updated successfully",
|
3248
|
+
},
|
3249
|
+
spreadsheetUrl: {
|
3250
|
+
type: "string",
|
3251
|
+
description: "The URL of the updated spreadsheet",
|
3252
|
+
},
|
3253
|
+
replies: {
|
3254
|
+
type: "array",
|
3255
|
+
description: "The replies to the requests",
|
3256
|
+
items: {
|
3257
|
+
type: "object",
|
3258
|
+
description: "The reply to a request",
|
3259
|
+
oneOf: [
|
3260
|
+
{
|
3261
|
+
type: "object",
|
3262
|
+
description: "Reply to adding a sheet",
|
3263
|
+
properties: {
|
3264
|
+
addSheet: {
|
3265
|
+
type: "object",
|
3266
|
+
properties: {
|
3267
|
+
properties: {
|
3268
|
+
type: "object",
|
3269
|
+
properties: {
|
3270
|
+
sheetId: {
|
3271
|
+
type: "integer",
|
3272
|
+
description: "The ID of the newly created sheet",
|
3273
|
+
},
|
3274
|
+
title: {
|
3275
|
+
type: "string",
|
3276
|
+
description: "The title of the new sheet",
|
3277
|
+
},
|
3278
|
+
index: {
|
3279
|
+
type: "integer",
|
3280
|
+
description: "The index of the new sheet",
|
3281
|
+
},
|
3282
|
+
},
|
3283
|
+
},
|
3284
|
+
},
|
3285
|
+
},
|
3286
|
+
},
|
3287
|
+
},
|
3288
|
+
],
|
3289
|
+
},
|
3290
|
+
},
|
3291
|
+
error: {
|
3292
|
+
type: "string",
|
3293
|
+
description: "The error that occurred if the spreadsheet was not updated successfully",
|
3294
|
+
},
|
3295
|
+
},
|
3296
|
+
},
|
3297
|
+
name: "updateSpreadsheet",
|
3298
|
+
provider: "googleOauth",
|
3299
|
+
};
|
3300
|
+
exports.googleOauthCreatePresentationDefinition = {
|
3301
|
+
description: "Create a Google Presentation",
|
3302
|
+
scopes: [],
|
3303
|
+
parameters: {
|
3304
|
+
type: "object",
|
3305
|
+
required: ["title"],
|
3306
|
+
properties: {
|
3307
|
+
title: {
|
3308
|
+
type: "string",
|
3309
|
+
description: "The title of the presentation",
|
3310
|
+
},
|
3311
|
+
pageSize: {
|
3312
|
+
type: "object",
|
3313
|
+
properties: {
|
3314
|
+
width: {
|
3315
|
+
type: "object",
|
3316
|
+
description: "The width object of the presentation",
|
3317
|
+
properties: {
|
3318
|
+
unit: {
|
3319
|
+
type: "string",
|
3320
|
+
enum: ["EMU", "PT"],
|
3321
|
+
description: "The unit of the width",
|
3322
|
+
},
|
3323
|
+
magnitude: {
|
3324
|
+
type: "number",
|
3325
|
+
description: "The width of the presentation",
|
3326
|
+
},
|
3327
|
+
},
|
3328
|
+
},
|
3329
|
+
height: {
|
3330
|
+
type: "object",
|
3331
|
+
description: "The height object of the presentation",
|
3332
|
+
properties: {
|
3333
|
+
unit: {
|
3334
|
+
type: "string",
|
3335
|
+
enum: ["EMU", "PT"],
|
3336
|
+
description: "The unit of the height",
|
3337
|
+
},
|
3338
|
+
magnitude: {
|
3339
|
+
type: "number",
|
3340
|
+
description: "The height of the presentation",
|
3341
|
+
},
|
3342
|
+
},
|
3343
|
+
},
|
3344
|
+
},
|
3345
|
+
},
|
3346
|
+
},
|
3347
|
+
},
|
3348
|
+
output: {
|
3349
|
+
type: "object",
|
3350
|
+
required: ["success"],
|
3351
|
+
properties: {
|
3352
|
+
success: {
|
3353
|
+
type: "boolean",
|
3354
|
+
description: "Whether the presentation was created successfully",
|
3355
|
+
},
|
3356
|
+
error: {
|
3357
|
+
type: "string",
|
3358
|
+
description: "The error that occurred if the presentation was not created successfully",
|
3359
|
+
},
|
3360
|
+
presentationId: {
|
3361
|
+
type: "string",
|
3362
|
+
description: "The ID of the created presentation",
|
3363
|
+
},
|
3364
|
+
presentationUrl: {
|
3365
|
+
type: "string",
|
3366
|
+
description: "The URL of the created presentation",
|
3367
|
+
},
|
3368
|
+
},
|
3369
|
+
},
|
3370
|
+
name: "createPresentation",
|
3371
|
+
provider: "googleOauth",
|
3372
|
+
};
|
3373
|
+
exports.googleOauthUpdatePresentationDefinition = {
|
3374
|
+
description: "Update a Google Presentation",
|
3375
|
+
scopes: [],
|
3376
|
+
parameters: {
|
3377
|
+
type: "object",
|
3378
|
+
required: ["presentationId", "requests"],
|
3379
|
+
properties: {
|
3380
|
+
presentationId: {
|
3381
|
+
type: "string",
|
3382
|
+
description: "The ID of the presentation to update",
|
3383
|
+
},
|
3384
|
+
requests: {
|
3385
|
+
type: "array",
|
3386
|
+
description: "The requests to update the presentation with",
|
3387
|
+
items: {
|
3388
|
+
type: "object",
|
3389
|
+
oneOf: [
|
3390
|
+
{
|
3391
|
+
type: "object",
|
3392
|
+
required: ["createSlide"],
|
3393
|
+
properties: {
|
3394
|
+
createSlide: {
|
3395
|
+
type: "object",
|
3396
|
+
description: "Creates a new slide in the presentation",
|
3397
|
+
properties: {
|
3398
|
+
objectId: {
|
3399
|
+
type: "string",
|
3400
|
+
description: "The object ID for the created slide",
|
3401
|
+
},
|
3402
|
+
insertionIndex: {
|
3403
|
+
type: "integer",
|
3404
|
+
description: "The 0-based index where the new slide should be inserted",
|
3405
|
+
},
|
3406
|
+
slideLayoutReference: {
|
3407
|
+
type: "object",
|
3408
|
+
description: "Layout reference of the slide to be created",
|
3409
|
+
properties: {
|
3410
|
+
predefinedLayout: {
|
3411
|
+
type: "string",
|
3412
|
+
description: "Predefined layout of the slide",
|
3413
|
+
},
|
3414
|
+
},
|
3415
|
+
},
|
3416
|
+
},
|
3417
|
+
},
|
3418
|
+
},
|
3419
|
+
},
|
3420
|
+
{
|
3421
|
+
type: "object",
|
3422
|
+
required: ["createShape"],
|
3423
|
+
properties: {
|
3424
|
+
createShape: {
|
3425
|
+
type: "object",
|
3426
|
+
description: "Creates a new shape in the presentation",
|
3427
|
+
required: ["objectId", "shapeType"],
|
3428
|
+
properties: {
|
3429
|
+
objectId: {
|
3430
|
+
type: "string",
|
3431
|
+
description: "The object ID for the created shape",
|
3432
|
+
},
|
3433
|
+
shapeType: {
|
3434
|
+
type: "string",
|
3435
|
+
description: "The type of shape to create",
|
3436
|
+
},
|
3437
|
+
elementProperties: {
|
3438
|
+
type: "object",
|
3439
|
+
description: "The element's size and position",
|
3440
|
+
},
|
3441
|
+
},
|
3442
|
+
},
|
3443
|
+
},
|
3444
|
+
},
|
3445
|
+
{
|
3446
|
+
type: "object",
|
3447
|
+
required: ["createTable"],
|
3448
|
+
properties: {
|
3449
|
+
createTable: {
|
3450
|
+
type: "object",
|
3451
|
+
description: "Creates a new table in the presentation",
|
3452
|
+
required: ["rows", "columns"],
|
3453
|
+
properties: {
|
3454
|
+
objectId: {
|
3455
|
+
type: "string",
|
3456
|
+
description: "The object ID for the created table",
|
3457
|
+
},
|
3458
|
+
rows: {
|
3459
|
+
type: "integer",
|
3460
|
+
description: "Number of rows in the table",
|
3461
|
+
},
|
3462
|
+
columns: {
|
3463
|
+
type: "integer",
|
3464
|
+
description: "Number of columns in the table",
|
3465
|
+
},
|
3466
|
+
elementProperties: {
|
3467
|
+
type: "object",
|
3468
|
+
description: "The element's size and position",
|
3469
|
+
},
|
3470
|
+
},
|
3471
|
+
},
|
3472
|
+
},
|
3473
|
+
},
|
3474
|
+
{
|
3475
|
+
type: "object",
|
3476
|
+
required: ["insertText"],
|
3477
|
+
properties: {
|
3478
|
+
insertText: {
|
3479
|
+
type: "object",
|
3480
|
+
description: "Inserts text into a shape or table cell",
|
3481
|
+
required: ["objectId", "text"],
|
3482
|
+
properties: {
|
3483
|
+
objectId: {
|
3484
|
+
type: "string",
|
3485
|
+
description: "The object ID of the shape or table cell",
|
3486
|
+
},
|
3487
|
+
text: {
|
3488
|
+
type: "string",
|
3489
|
+
description: "The text to be inserted",
|
3490
|
+
},
|
3491
|
+
insertionIndex: {
|
3492
|
+
type: "integer",
|
3493
|
+
description: "The index where the text will be inserted",
|
3494
|
+
},
|
3495
|
+
},
|
3496
|
+
},
|
3497
|
+
},
|
3498
|
+
},
|
3499
|
+
{
|
3500
|
+
type: "object",
|
3501
|
+
required: ["insertTableRows"],
|
3502
|
+
properties: {
|
3503
|
+
insertTableRows: {
|
3504
|
+
type: "object",
|
3505
|
+
description: "Inserts rows into a table",
|
3506
|
+
required: ["tableObjectId", "insertBelow"],
|
3507
|
+
properties: {
|
3508
|
+
tableObjectId: {
|
3509
|
+
type: "string",
|
3510
|
+
description: "The table to insert rows into",
|
3511
|
+
},
|
3512
|
+
insertBelow: {
|
3513
|
+
type: "boolean",
|
3514
|
+
description: "Whether to insert the rows below the reference cell",
|
3515
|
+
},
|
3516
|
+
number: {
|
3517
|
+
type: "integer",
|
3518
|
+
description: "The number of rows to insert",
|
3519
|
+
},
|
3520
|
+
cellLocation: {
|
3521
|
+
type: "object",
|
3522
|
+
description: "The location where rows will be inserted",
|
3523
|
+
},
|
3524
|
+
},
|
3525
|
+
},
|
3526
|
+
},
|
3527
|
+
},
|
3528
|
+
{
|
3529
|
+
type: "object",
|
3530
|
+
required: ["insertTableColumns"],
|
3531
|
+
properties: {
|
3532
|
+
insertTableColumns: {
|
3533
|
+
type: "object",
|
3534
|
+
description: "Inserts columns into a table",
|
3535
|
+
required: ["tableObjectId", "insertRight"],
|
3536
|
+
properties: {
|
3537
|
+
tableObjectId: {
|
3538
|
+
type: "string",
|
3539
|
+
description: "The table to insert columns into",
|
3540
|
+
},
|
3541
|
+
insertRight: {
|
3542
|
+
type: "boolean",
|
3543
|
+
description: "Whether to insert the columns to the right of the reference cell",
|
3544
|
+
},
|
3545
|
+
number: {
|
3546
|
+
type: "integer",
|
3547
|
+
description: "The number of columns to insert",
|
3548
|
+
},
|
3549
|
+
cellLocation: {
|
3550
|
+
type: "object",
|
3551
|
+
description: "The location where columns will be inserted",
|
3552
|
+
},
|
3553
|
+
},
|
3554
|
+
},
|
3555
|
+
},
|
3556
|
+
},
|
3557
|
+
{
|
3558
|
+
type: "object",
|
3559
|
+
required: ["deleteTableRow"],
|
3560
|
+
properties: {
|
3561
|
+
deleteTableRow: {
|
3562
|
+
type: "object",
|
3563
|
+
description: "Deletes a row from a table",
|
3564
|
+
required: ["tableObjectId", "cellLocation"],
|
3565
|
+
properties: {
|
3566
|
+
tableObjectId: {
|
3567
|
+
type: "string",
|
3568
|
+
description: "The table to delete a row from",
|
3569
|
+
},
|
3570
|
+
cellLocation: {
|
3571
|
+
type: "object",
|
3572
|
+
description: "The location of the row to delete",
|
3573
|
+
},
|
3574
|
+
},
|
3575
|
+
},
|
3576
|
+
},
|
3577
|
+
},
|
3578
|
+
{
|
3579
|
+
type: "object",
|
3580
|
+
required: ["deleteTableColumn"],
|
3581
|
+
properties: {
|
3582
|
+
deleteTableColumn: {
|
3583
|
+
type: "object",
|
3584
|
+
description: "Deletes a column from a table",
|
3585
|
+
required: ["tableObjectId", "cellLocation"],
|
3586
|
+
properties: {
|
3587
|
+
tableObjectId: {
|
3588
|
+
type: "string",
|
3589
|
+
description: "The table to delete a column from",
|
3590
|
+
},
|
3591
|
+
cellLocation: {
|
3592
|
+
type: "object",
|
3593
|
+
description: "The location of the column to delete",
|
3594
|
+
},
|
3595
|
+
},
|
3596
|
+
},
|
3597
|
+
},
|
3598
|
+
},
|
3599
|
+
{
|
3600
|
+
type: "object",
|
3601
|
+
required: ["replaceAllText"],
|
3602
|
+
properties: {
|
3603
|
+
replaceAllText: {
|
3604
|
+
type: "object",
|
3605
|
+
description: "Replaces all instances of text matching a criteria",
|
3606
|
+
required: ["replaceText", "containsText"],
|
3607
|
+
properties: {
|
3608
|
+
replaceText: {
|
3609
|
+
type: "string",
|
3610
|
+
description: "The text that will replace the matched text",
|
3611
|
+
},
|
3612
|
+
containsText: {
|
3613
|
+
type: "object",
|
3614
|
+
description: "The text to search for",
|
3615
|
+
required: ["text"],
|
3616
|
+
properties: {
|
3617
|
+
text: {
|
3618
|
+
type: "string",
|
3619
|
+
description: "The text to search for in the presentation",
|
3620
|
+
},
|
3621
|
+
matchCase: {
|
3622
|
+
type: "boolean",
|
3623
|
+
description: "Whether the search should be case sensitive",
|
3624
|
+
},
|
3625
|
+
},
|
3626
|
+
},
|
3627
|
+
},
|
3628
|
+
},
|
3629
|
+
},
|
3630
|
+
},
|
3631
|
+
{
|
3632
|
+
type: "object",
|
3633
|
+
required: ["deleteObject"],
|
3634
|
+
properties: {
|
3635
|
+
deleteObject: {
|
3636
|
+
type: "object",
|
3637
|
+
description: "Deletes an object from the presentation",
|
3638
|
+
required: ["objectId"],
|
3639
|
+
properties: {
|
3640
|
+
objectId: {
|
3641
|
+
type: "string",
|
3642
|
+
description: "The object ID of the element to delete",
|
3643
|
+
},
|
3644
|
+
},
|
3645
|
+
},
|
3646
|
+
},
|
3647
|
+
},
|
3648
|
+
{
|
3649
|
+
type: "object",
|
3650
|
+
required: ["updatePageElementTransform"],
|
3651
|
+
properties: {
|
3652
|
+
updatePageElementTransform: {
|
3653
|
+
type: "object",
|
3654
|
+
description: "Updates the transform of a page element",
|
3655
|
+
required: ["objectId", "transform"],
|
3656
|
+
properties: {
|
3657
|
+
objectId: {
|
3658
|
+
type: "string",
|
3659
|
+
description: "The object ID of the element to update",
|
3660
|
+
},
|
3661
|
+
transform: {
|
3662
|
+
type: "object",
|
3663
|
+
description: "The transform to apply",
|
3664
|
+
properties: {
|
3665
|
+
scaleX: {
|
3666
|
+
type: "number",
|
3667
|
+
description: "The horizontal scale factor",
|
3668
|
+
},
|
3669
|
+
scaleY: {
|
3670
|
+
type: "number",
|
3671
|
+
description: "The vertical scale factor",
|
3672
|
+
},
|
3673
|
+
translateX: {
|
3674
|
+
type: "number",
|
3675
|
+
description: "The horizontal translation",
|
3676
|
+
},
|
3677
|
+
translateY: {
|
3678
|
+
type: "number",
|
3679
|
+
description: "The vertical translation",
|
3680
|
+
},
|
3681
|
+
unit: {
|
3682
|
+
type: "string",
|
3683
|
+
description: "The unit for translate values",
|
3684
|
+
},
|
3685
|
+
},
|
3686
|
+
},
|
3687
|
+
},
|
3688
|
+
},
|
3689
|
+
},
|
3690
|
+
},
|
3691
|
+
{
|
3692
|
+
type: "object",
|
3693
|
+
required: ["updateSlidesPosition"],
|
3694
|
+
properties: {
|
3695
|
+
updateSlidesPosition: {
|
3696
|
+
type: "object",
|
3697
|
+
description: "Updates the position of slides in the presentation",
|
3698
|
+
required: ["slideObjectIds"],
|
3699
|
+
properties: {
|
3700
|
+
slideObjectIds: {
|
3701
|
+
type: "array",
|
3702
|
+
description: "The IDs of the slides to reorder",
|
3703
|
+
items: {
|
3704
|
+
type: "string",
|
3705
|
+
},
|
3706
|
+
},
|
3707
|
+
insertionIndex: {
|
3708
|
+
type: "integer",
|
3709
|
+
description: "The 0-based index where the slides should be moved to",
|
3710
|
+
},
|
3711
|
+
},
|
3712
|
+
},
|
3713
|
+
},
|
3714
|
+
},
|
3715
|
+
{
|
3716
|
+
type: "object",
|
3717
|
+
required: ["deleteText"],
|
3718
|
+
properties: {
|
3719
|
+
deleteText: {
|
3720
|
+
type: "object",
|
3721
|
+
description: "Deletes text from a shape or table cell",
|
3722
|
+
required: ["objectId"],
|
3723
|
+
properties: {
|
3724
|
+
objectId: {
|
3725
|
+
type: "string",
|
3726
|
+
description: "The object ID of the shape or table cell",
|
3727
|
+
},
|
3728
|
+
textRange: {
|
3729
|
+
type: "object",
|
3730
|
+
description: "The range of text to delete",
|
3731
|
+
properties: {
|
3732
|
+
startIndex: {
|
3733
|
+
type: "integer",
|
3734
|
+
description: "The starting index of the range (0-based)",
|
3735
|
+
},
|
3736
|
+
endIndex: {
|
3737
|
+
type: "integer",
|
3738
|
+
description: "The ending index of the range (0-based)",
|
3739
|
+
},
|
3740
|
+
},
|
3741
|
+
},
|
3742
|
+
},
|
3743
|
+
},
|
3744
|
+
},
|
3745
|
+
},
|
3746
|
+
{
|
3747
|
+
type: "object",
|
3748
|
+
required: ["createImage"],
|
3749
|
+
properties: {
|
3750
|
+
createImage: {
|
3751
|
+
type: "object",
|
3752
|
+
description: "Creates an image in the presentation",
|
3753
|
+
required: ["url"],
|
3754
|
+
properties: {
|
3755
|
+
objectId: {
|
3756
|
+
type: "string",
|
3757
|
+
description: "The object ID for the created image",
|
3758
|
+
},
|
3759
|
+
url: {
|
3760
|
+
type: "string",
|
3761
|
+
description: "The URL of the image to insert",
|
3762
|
+
},
|
3763
|
+
elementProperties: {
|
3764
|
+
type: "object",
|
3765
|
+
description: "The element's size and position",
|
3766
|
+
},
|
3767
|
+
},
|
3768
|
+
},
|
3769
|
+
},
|
3770
|
+
},
|
3771
|
+
{
|
3772
|
+
type: "object",
|
3773
|
+
required: ["createVideo"],
|
3774
|
+
properties: {
|
3775
|
+
createVideo: {
|
3776
|
+
type: "object",
|
3777
|
+
description: "Creates a video in the presentation",
|
3778
|
+
required: ["url"],
|
3779
|
+
properties: {
|
3780
|
+
objectId: {
|
3781
|
+
type: "string",
|
3782
|
+
description: "The object ID for the created video",
|
3783
|
+
},
|
3784
|
+
url: {
|
3785
|
+
type: "string",
|
3786
|
+
description: "The URL of the video to insert",
|
3787
|
+
},
|
3788
|
+
elementProperties: {
|
3789
|
+
type: "object",
|
3790
|
+
description: "The element's size and position",
|
3791
|
+
},
|
3792
|
+
},
|
3793
|
+
},
|
3794
|
+
},
|
3795
|
+
},
|
3796
|
+
{
|
3797
|
+
type: "object",
|
3798
|
+
required: ["createSheetsChart"],
|
3799
|
+
properties: {
|
3800
|
+
createSheetsChart: {
|
3801
|
+
type: "object",
|
3802
|
+
description: "Creates a linked chart from Google Sheets",
|
3803
|
+
required: ["spreadsheetId", "chartId"],
|
3804
|
+
properties: {
|
3805
|
+
objectId: {
|
3806
|
+
type: "string",
|
3807
|
+
description: "The object ID for the created chart",
|
3808
|
+
},
|
3809
|
+
spreadsheetId: {
|
3810
|
+
type: "string",
|
3811
|
+
description: "The ID of the Google Sheets spreadsheet containing the chart",
|
3812
|
+
},
|
3813
|
+
chartId: {
|
3814
|
+
type: "integer",
|
3815
|
+
description: "The ID of the specific chart in the spreadsheet",
|
3816
|
+
},
|
3817
|
+
elementProperties: {
|
3818
|
+
type: "object",
|
3819
|
+
description: "The element's size and position",
|
3820
|
+
},
|
3821
|
+
},
|
3822
|
+
},
|
3823
|
+
},
|
3824
|
+
},
|
3825
|
+
{
|
3826
|
+
type: "object",
|
3827
|
+
required: ["createLine"],
|
3828
|
+
properties: {
|
3829
|
+
createLine: {
|
3830
|
+
type: "object",
|
3831
|
+
description: "Creates a line in the presentation",
|
3832
|
+
required: ["lineCategory"],
|
3833
|
+
properties: {
|
3834
|
+
objectId: {
|
3835
|
+
type: "string",
|
3836
|
+
description: "The object ID for the created line",
|
3837
|
+
},
|
3838
|
+
lineCategory: {
|
3839
|
+
type: "string",
|
3840
|
+
description: "The category of line to create",
|
3841
|
+
},
|
3842
|
+
elementProperties: {
|
3843
|
+
type: "object",
|
3844
|
+
description: "The element's size and position",
|
3845
|
+
},
|
3846
|
+
},
|
3847
|
+
},
|
3848
|
+
},
|
3849
|
+
},
|
3850
|
+
{
|
3851
|
+
type: "object",
|
3852
|
+
required: ["refreshSheetsChart"],
|
3853
|
+
properties: {
|
3854
|
+
refreshSheetsChart: {
|
3855
|
+
type: "object",
|
3856
|
+
description: "Refreshes an existing linked sheets chart",
|
3857
|
+
required: ["objectId"],
|
3858
|
+
properties: {
|
3859
|
+
objectId: {
|
3860
|
+
type: "string",
|
3861
|
+
description: "The object ID of the chart to refresh",
|
3862
|
+
},
|
3863
|
+
},
|
3864
|
+
},
|
3865
|
+
},
|
3866
|
+
},
|
3867
|
+
{
|
3868
|
+
type: "object",
|
3869
|
+
required: ["updateShapeProperties"],
|
3870
|
+
properties: {
|
3871
|
+
updateShapeProperties: {
|
3872
|
+
type: "object",
|
3873
|
+
description: "Updates the properties of a shape",
|
3874
|
+
required: ["objectId", "shapeProperties"],
|
3875
|
+
properties: {
|
3876
|
+
objectId: {
|
3877
|
+
type: "string",
|
3878
|
+
description: "The object ID of the shape",
|
3879
|
+
},
|
3880
|
+
shapeProperties: {
|
3881
|
+
type: "object",
|
3882
|
+
description: "The properties to update",
|
3883
|
+
},
|
3884
|
+
},
|
3885
|
+
},
|
3886
|
+
},
|
3887
|
+
},
|
3888
|
+
{
|
3889
|
+
type: "object",
|
3890
|
+
required: ["updateImageProperties"],
|
3891
|
+
properties: {
|
3892
|
+
updateImageProperties: {
|
3893
|
+
type: "object",
|
3894
|
+
description: "Updates the properties of an image",
|
3895
|
+
required: ["objectId", "imageProperties"],
|
3896
|
+
properties: {
|
3897
|
+
objectId: {
|
3898
|
+
type: "string",
|
3899
|
+
description: "The object ID of the image",
|
3900
|
+
},
|
3901
|
+
imageProperties: {
|
3902
|
+
type: "object",
|
3903
|
+
description: "The properties to update",
|
3904
|
+
},
|
3905
|
+
},
|
3906
|
+
},
|
3907
|
+
},
|
3908
|
+
},
|
3909
|
+
{
|
3910
|
+
type: "object",
|
3911
|
+
required: ["updateVideoProperties"],
|
3912
|
+
properties: {
|
3913
|
+
updateVideoProperties: {
|
3914
|
+
type: "object",
|
3915
|
+
description: "Updates the properties of a video",
|
3916
|
+
required: ["objectId", "videoProperties"],
|
3917
|
+
properties: {
|
3918
|
+
objectId: {
|
3919
|
+
type: "string",
|
3920
|
+
description: "The object ID of the video",
|
3921
|
+
},
|
3922
|
+
videoProperties: {
|
3923
|
+
type: "object",
|
3924
|
+
description: "The properties to update",
|
3925
|
+
},
|
3926
|
+
},
|
3927
|
+
},
|
3928
|
+
},
|
3929
|
+
},
|
3930
|
+
{
|
3931
|
+
type: "object",
|
3932
|
+
required: ["updatePageProperties"],
|
3933
|
+
properties: {
|
3934
|
+
updatePageProperties: {
|
3935
|
+
type: "object",
|
3936
|
+
description: "Updates the properties of a page",
|
3937
|
+
required: ["objectId", "pageProperties"],
|
3938
|
+
properties: {
|
3939
|
+
objectId: {
|
3940
|
+
type: "string",
|
3941
|
+
description: "The object ID of the page",
|
3942
|
+
},
|
3943
|
+
pageProperties: {
|
3944
|
+
type: "object",
|
3945
|
+
description: "The properties to update",
|
3946
|
+
},
|
3947
|
+
},
|
3948
|
+
},
|
3949
|
+
},
|
3950
|
+
},
|
3951
|
+
{
|
3952
|
+
type: "object",
|
3953
|
+
required: ["updateTableCellProperties"],
|
3954
|
+
properties: {
|
3955
|
+
updateTableCellProperties: {
|
3956
|
+
type: "object",
|
3957
|
+
description: "Updates the properties of table cells",
|
3958
|
+
required: ["objectId", "tableCellProperties"],
|
3959
|
+
properties: {
|
3960
|
+
objectId: {
|
3961
|
+
type: "string",
|
3962
|
+
description: "The object ID of the table cell",
|
3963
|
+
},
|
3964
|
+
tableCellProperties: {
|
3965
|
+
type: "object",
|
3966
|
+
description: "The properties to update for the table cell",
|
3967
|
+
},
|
3968
|
+
fields: {
|
3969
|
+
type: "string",
|
3970
|
+
description: "Comma-separated list of fields to update (e.g., 'contentAlignment,backgroundColor')",
|
3971
|
+
},
|
3972
|
+
tableRange: {
|
3973
|
+
type: "object",
|
3974
|
+
description: "The range of cells to update the properties for",
|
3975
|
+
},
|
3976
|
+
},
|
3977
|
+
},
|
3978
|
+
},
|
3979
|
+
},
|
3980
|
+
{
|
3981
|
+
type: "object",
|
3982
|
+
required: ["updateLineProperties"],
|
3983
|
+
properties: {
|
3984
|
+
updateLineProperties: {
|
3985
|
+
type: "object",
|
3986
|
+
description: "Updates the properties of a line",
|
3987
|
+
required: ["objectId", "lineProperties"],
|
3988
|
+
properties: {
|
3989
|
+
objectId: {
|
3990
|
+
type: "string",
|
3991
|
+
description: "The object ID of the line",
|
3992
|
+
},
|
3993
|
+
lineProperties: {
|
3994
|
+
type: "object",
|
3995
|
+
description: "The properties to update for the line",
|
3996
|
+
},
|
3997
|
+
fields: {
|
3998
|
+
type: "string",
|
3999
|
+
description: "Comma-separated list of fields to update (e.g., 'lineFill,weight')",
|
4000
|
+
},
|
4001
|
+
},
|
4002
|
+
},
|
4003
|
+
},
|
4004
|
+
},
|
4005
|
+
{
|
4006
|
+
type: "object",
|
4007
|
+
required: ["createParagraphBullets"],
|
4008
|
+
properties: {
|
4009
|
+
createParagraphBullets: {
|
4010
|
+
type: "object",
|
4011
|
+
description: "Creates bullets for paragraphs",
|
4012
|
+
required: ["objectId", "bulletPreset"],
|
4013
|
+
properties: {
|
4014
|
+
objectId: {
|
4015
|
+
type: "string",
|
4016
|
+
description: "The object ID of the shape or table cell containing the paragraph",
|
4017
|
+
},
|
4018
|
+
bulletPreset: {
|
4019
|
+
type: "string",
|
4020
|
+
description: "The preset type of bullet to use (e.g., BULLET_DISC_CIRCLE_SQUARE)",
|
4021
|
+
},
|
4022
|
+
textRange: {
|
4023
|
+
type: "object",
|
4024
|
+
description: "The range of text to apply bullets to (defaults to all text if unspecified)",
|
4025
|
+
},
|
4026
|
+
},
|
4027
|
+
},
|
4028
|
+
},
|
4029
|
+
},
|
4030
|
+
{
|
4031
|
+
type: "object",
|
4032
|
+
required: ["replaceAllShapesWithImage"],
|
4033
|
+
properties: {
|
4034
|
+
replaceAllShapesWithImage: {
|
4035
|
+
type: "object",
|
4036
|
+
description: "Replaces all shapes matching criteria with an image",
|
4037
|
+
required: ["imageUrl", "containsText"],
|
4038
|
+
properties: {
|
4039
|
+
imageUrl: {
|
4040
|
+
type: "string",
|
4041
|
+
description: "The URL of the image to replace shapes with",
|
4042
|
+
},
|
4043
|
+
containsText: {
|
4044
|
+
type: "object",
|
4045
|
+
description: "Criteria for shapes to replace (must contain specified text)",
|
4046
|
+
required: ["text"],
|
4047
|
+
properties: {
|
4048
|
+
text: {
|
4049
|
+
type: "string",
|
4050
|
+
description: "The text the shape must contain to be replaced",
|
4051
|
+
},
|
4052
|
+
matchCase: {
|
4053
|
+
type: "boolean",
|
4054
|
+
description: "Whether the text match is case-sensitive",
|
4055
|
+
},
|
4056
|
+
},
|
4057
|
+
},
|
4058
|
+
replaceMethod: {
|
4059
|
+
type: "string",
|
4060
|
+
enum: ["CENTER_INSIDE", "CENTER_CROP"],
|
4061
|
+
description: "The image replace method (Defaults to CENTER_INSIDE)",
|
4062
|
+
},
|
4063
|
+
pageObjectIds: {
|
4064
|
+
type: "array",
|
4065
|
+
items: {
|
4066
|
+
type: "string",
|
4067
|
+
},
|
4068
|
+
description: "Optional list of page object IDs to scope the replacement to",
|
4069
|
+
},
|
4070
|
+
},
|
4071
|
+
},
|
4072
|
+
},
|
4073
|
+
},
|
4074
|
+
{
|
4075
|
+
type: "object",
|
4076
|
+
required: ["duplicateObject"],
|
4077
|
+
properties: {
|
4078
|
+
duplicateObject: {
|
4079
|
+
type: "object",
|
4080
|
+
description: "Duplicates a slide object (shape, image, table, etc.)",
|
4081
|
+
required: ["objectId"],
|
4082
|
+
properties: {
|
4083
|
+
objectId: {
|
4084
|
+
type: "string",
|
4085
|
+
description: "The object ID of the object to duplicate",
|
4086
|
+
},
|
4087
|
+
objectIds: {
|
4088
|
+
type: "object",
|
4089
|
+
description: "Optional map for assigning specific object IDs to the duplicated elements (key is original ID, value is new ID)",
|
4090
|
+
additionalProperties: {
|
4091
|
+
type: "string",
|
4092
|
+
},
|
4093
|
+
},
|
4094
|
+
},
|
4095
|
+
},
|
4096
|
+
},
|
4097
|
+
},
|
4098
|
+
{
|
4099
|
+
type: "object",
|
4100
|
+
required: ["updateTextStyle"],
|
4101
|
+
properties: {
|
4102
|
+
updateTextStyle: {
|
4103
|
+
type: "object",
|
4104
|
+
description: "Updates the style of a range of text",
|
4105
|
+
required: ["objectId", "style", "fields"],
|
4106
|
+
properties: {
|
4107
|
+
objectId: {
|
4108
|
+
type: "string",
|
4109
|
+
description: "The object ID of the shape or table cell containing the text",
|
4110
|
+
},
|
4111
|
+
style: {
|
4112
|
+
type: "object",
|
4113
|
+
description: "The text style properties to apply (e.g., bold, fontSize)",
|
4114
|
+
},
|
4115
|
+
fields: {
|
4116
|
+
type: "string",
|
4117
|
+
description: "Comma-separated list of style fields to update using FieldMask syntax (e.g., 'bold,italic,fontSize')",
|
4118
|
+
},
|
4119
|
+
textRange: {
|
4120
|
+
type: "object",
|
4121
|
+
description: "The range of text to style (defaults to all text if unspecified)",
|
4122
|
+
properties: {
|
4123
|
+
type: {
|
4124
|
+
type: "string",
|
4125
|
+
enum: ["ALL", "FROM_START_INDEX", "FIXED_RANGE"],
|
4126
|
+
description: "The type of range",
|
4127
|
+
},
|
4128
|
+
startIndex: {
|
4129
|
+
type: "integer",
|
4130
|
+
description: "The start index for FROM_START_INDEX or FIXED_RANGE",
|
4131
|
+
},
|
4132
|
+
endIndex: {
|
4133
|
+
type: "integer",
|
4134
|
+
description: "The end index for FIXED_RANGE",
|
4135
|
+
},
|
4136
|
+
},
|
4137
|
+
},
|
4138
|
+
},
|
4139
|
+
},
|
4140
|
+
},
|
4141
|
+
},
|
4142
|
+
{
|
4143
|
+
type: "object",
|
4144
|
+
required: ["replaceAllShapesWithSheetsChart"],
|
4145
|
+
properties: {
|
4146
|
+
replaceAllShapesWithSheetsChart: {
|
4147
|
+
type: "object",
|
4148
|
+
description: "Replaces all shapes matching criteria with a Google Sheets chart",
|
4149
|
+
required: ["spreadsheetId", "chartId", "containsText"],
|
4150
|
+
properties: {
|
4151
|
+
spreadsheetId: {
|
4152
|
+
type: "string",
|
4153
|
+
description: "The ID of the Google Sheets spreadsheet containing the chart",
|
4154
|
+
},
|
4155
|
+
chartId: {
|
4156
|
+
type: "integer",
|
4157
|
+
description: "The ID of the chart within the spreadsheet",
|
4158
|
+
},
|
4159
|
+
containsText: {
|
4160
|
+
type: "object",
|
4161
|
+
description: "Criteria for shapes to replace (must contain specified text)",
|
4162
|
+
required: ["text"],
|
4163
|
+
properties: {
|
4164
|
+
text: {
|
4165
|
+
type: "string",
|
4166
|
+
description: "The text the shape must contain to be replaced",
|
4167
|
+
},
|
4168
|
+
matchCase: {
|
4169
|
+
type: "boolean",
|
4170
|
+
description: "Whether the text match is case-sensitive",
|
4171
|
+
},
|
4172
|
+
},
|
4173
|
+
},
|
4174
|
+
linkingMode: {
|
4175
|
+
type: "string",
|
4176
|
+
enum: ["LINKED", "NOT_LINKED_IMAGE"],
|
4177
|
+
description: "The linking mode of the chart (Defaults to LINKED)",
|
4178
|
+
},
|
4179
|
+
pageObjectIds: {
|
4180
|
+
type: "array",
|
4181
|
+
items: {
|
4182
|
+
type: "string",
|
4183
|
+
},
|
4184
|
+
description: "Optional list of page object IDs to scope the replacement to",
|
4185
|
+
},
|
4186
|
+
},
|
4187
|
+
},
|
4188
|
+
},
|
4189
|
+
},
|
4190
|
+
{
|
4191
|
+
type: "object",
|
4192
|
+
required: ["deleteParagraphBullets"],
|
4193
|
+
properties: {
|
4194
|
+
deleteParagraphBullets: {
|
4195
|
+
type: "object",
|
4196
|
+
description: "Deletes bullets from a range of paragraphs",
|
4197
|
+
required: ["objectId"],
|
4198
|
+
properties: {
|
4199
|
+
objectId: {
|
4200
|
+
type: "string",
|
4201
|
+
description: "The object ID of the shape or table cell containing the paragraph",
|
4202
|
+
},
|
4203
|
+
textRange: {
|
4204
|
+
type: "object",
|
4205
|
+
description: "The range of text to delete bullets from (defaults to all text if unspecified)",
|
4206
|
+
properties: {
|
4207
|
+
type: {
|
4208
|
+
type: "string",
|
4209
|
+
enum: ["ALL", "FROM_START_INDEX", "FIXED_RANGE"],
|
4210
|
+
description: "The type of range",
|
4211
|
+
},
|
4212
|
+
startIndex: {
|
4213
|
+
type: "integer",
|
4214
|
+
description: "The start index for FROM_START_INDEX or FIXED_RANGE",
|
4215
|
+
},
|
4216
|
+
endIndex: {
|
4217
|
+
type: "integer",
|
4218
|
+
description: "The end index for FIXED_RANGE",
|
4219
|
+
},
|
4220
|
+
},
|
4221
|
+
},
|
4222
|
+
},
|
4223
|
+
},
|
4224
|
+
},
|
4225
|
+
},
|
4226
|
+
{
|
4227
|
+
type: "object",
|
4228
|
+
required: ["updateParagraphStyle"],
|
4229
|
+
properties: {
|
4230
|
+
updateParagraphStyle: {
|
4231
|
+
type: "object",
|
4232
|
+
description: "Updates the style of paragraphs",
|
4233
|
+
required: ["objectId", "style", "fields"],
|
4234
|
+
properties: {
|
4235
|
+
objectId: {
|
4236
|
+
type: "string",
|
4237
|
+
description: "The object ID of the shape or table cell containing the paragraph",
|
4238
|
+
},
|
4239
|
+
style: {
|
4240
|
+
type: "object",
|
4241
|
+
description: "The paragraph style properties to apply (e.g., alignment, lineSpacing)",
|
4242
|
+
},
|
4243
|
+
fields: {
|
4244
|
+
type: "string",
|
4245
|
+
description: "Comma-separated list of style fields to update using FieldMask syntax (e.g., 'alignment,direction,lineSpacing')",
|
4246
|
+
},
|
4247
|
+
textRange: {
|
4248
|
+
type: "object",
|
4249
|
+
description: "The range of text to apply the style to (defaults to all paragraphs if unspecified)",
|
4250
|
+
properties: {
|
4251
|
+
type: {
|
4252
|
+
type: "string",
|
4253
|
+
enum: ["ALL", "FROM_START_INDEX", "FIXED_RANGE"],
|
4254
|
+
description: "The type of range",
|
4255
|
+
},
|
4256
|
+
startIndex: {
|
4257
|
+
type: "integer",
|
4258
|
+
description: "The start index for FROM_START_INDEX or FIXED_RANGE",
|
4259
|
+
},
|
4260
|
+
endIndex: {
|
4261
|
+
type: "integer",
|
4262
|
+
description: "The end index for FIXED_RANGE",
|
4263
|
+
},
|
4264
|
+
},
|
4265
|
+
},
|
4266
|
+
},
|
4267
|
+
},
|
4268
|
+
},
|
4269
|
+
},
|
4270
|
+
{
|
4271
|
+
type: "object",
|
4272
|
+
required: ["updateTableBorderProperties"],
|
4273
|
+
properties: {
|
4274
|
+
updateTableBorderProperties: {
|
4275
|
+
type: "object",
|
4276
|
+
description: "Updates the properties of a table border",
|
4277
|
+
required: ["objectId", "tableBorderProperties"],
|
4278
|
+
properties: {
|
4279
|
+
objectId: {
|
4280
|
+
type: "string",
|
4281
|
+
description: "The object ID of the table",
|
4282
|
+
},
|
4283
|
+
tableBorderProperties: {
|
4284
|
+
type: "object",
|
4285
|
+
description: "The border properties to update (e.g., dashStyle, weight, color)",
|
4286
|
+
},
|
4287
|
+
fields: {
|
4288
|
+
type: "string",
|
4289
|
+
description: "Comma-separated list of fields to update (e.g., 'dashStyle,weight')",
|
4290
|
+
},
|
4291
|
+
borderPosition: {
|
4292
|
+
type: "string",
|
4293
|
+
enum: ["ALL", "BOTTOM", "TOP", "LEFT", "RIGHT", "INNER_HORIZONTAL", "INNER_VERTICAL"],
|
4294
|
+
description: "The position of the border segments to update (defaults to ALL if unspecified)",
|
4295
|
+
},
|
4296
|
+
tableRange: {
|
4297
|
+
type: "object",
|
4298
|
+
description: "The range of cells whose border should be updated (defaults to the entire table if unspecified)",
|
4299
|
+
properties: {
|
4300
|
+
location: {
|
4301
|
+
type: "object",
|
4302
|
+
description: "The starting cell location",
|
4303
|
+
},
|
4304
|
+
rowSpan: {
|
4305
|
+
type: "integer",
|
4306
|
+
description: "The number of rows in the range",
|
4307
|
+
},
|
4308
|
+
columnSpan: {
|
4309
|
+
type: "integer",
|
4310
|
+
description: "The number of columns in the range",
|
4311
|
+
},
|
4312
|
+
},
|
4313
|
+
},
|
4314
|
+
},
|
4315
|
+
},
|
4316
|
+
},
|
4317
|
+
},
|
4318
|
+
{
|
4319
|
+
type: "object",
|
4320
|
+
required: ["updateTableColumnProperties"],
|
4321
|
+
properties: {
|
4322
|
+
updateTableColumnProperties: {
|
4323
|
+
type: "object",
|
4324
|
+
description: "Updates the properties of table columns",
|
4325
|
+
required: ["objectId", "columnIndices", "tableColumnProperties", "fields"],
|
4326
|
+
properties: {
|
4327
|
+
objectId: {
|
4328
|
+
type: "string",
|
4329
|
+
description: "The object ID of the table",
|
4330
|
+
},
|
4331
|
+
columnIndices: {
|
4332
|
+
type: "array",
|
4333
|
+
items: {
|
4334
|
+
type: "integer",
|
4335
|
+
},
|
4336
|
+
description: "The 0-based indices of the columns to update",
|
4337
|
+
},
|
4338
|
+
tableColumnProperties: {
|
4339
|
+
type: "object",
|
4340
|
+
description: "The properties to update (e.g., columnWidth)",
|
4341
|
+
},
|
4342
|
+
fields: {
|
4343
|
+
type: "string",
|
4344
|
+
description: "Comma-separated list of fields to update using FieldMask syntax (e.g., 'columnWidth')",
|
4345
|
+
},
|
4346
|
+
},
|
4347
|
+
},
|
4348
|
+
},
|
4349
|
+
},
|
4350
|
+
{
|
4351
|
+
type: "object",
|
4352
|
+
required: ["updateTableRowProperties"],
|
4353
|
+
properties: {
|
4354
|
+
updateTableRowProperties: {
|
4355
|
+
type: "object",
|
4356
|
+
description: "Updates the properties of table rows",
|
4357
|
+
required: ["objectId", "rowIndices", "tableRowProperties", "fields"],
|
4358
|
+
properties: {
|
4359
|
+
objectId: {
|
4360
|
+
type: "string",
|
4361
|
+
description: "The object ID of the table",
|
4362
|
+
},
|
4363
|
+
rowIndices: {
|
4364
|
+
type: "array",
|
4365
|
+
items: {
|
4366
|
+
type: "integer",
|
4367
|
+
},
|
4368
|
+
description: "The 0-based indices of the rows to update",
|
4369
|
+
},
|
4370
|
+
tableRowProperties: {
|
4371
|
+
type: "object",
|
4372
|
+
description: "The properties to update (e.g., minRowHeight)",
|
4373
|
+
},
|
4374
|
+
fields: {
|
4375
|
+
type: "string",
|
4376
|
+
description: "Comma-separated list of fields to update using FieldMask syntax (e.g., 'minRowHeight')",
|
4377
|
+
},
|
4378
|
+
},
|
4379
|
+
},
|
4380
|
+
},
|
4381
|
+
},
|
4382
|
+
{
|
4383
|
+
type: "object",
|
4384
|
+
required: ["mergeTableCells"],
|
4385
|
+
properties: {
|
4386
|
+
mergeTableCells: {
|
4387
|
+
type: "object",
|
4388
|
+
description: "Merges cells in a table",
|
4389
|
+
required: ["objectId", "tableRange"],
|
4390
|
+
properties: {
|
4391
|
+
objectId: {
|
4392
|
+
type: "string",
|
4393
|
+
description: "The object ID of the table",
|
4394
|
+
},
|
4395
|
+
tableRange: {
|
4396
|
+
type: "object",
|
4397
|
+
description: "The range of cells to merge",
|
4398
|
+
properties: {
|
4399
|
+
location: {
|
4400
|
+
type: "object",
|
4401
|
+
description: "The starting cell location",
|
4402
|
+
},
|
4403
|
+
rowSpan: {
|
4404
|
+
type: "integer",
|
4405
|
+
description: "The number of rows in the range",
|
4406
|
+
},
|
4407
|
+
columnSpan: {
|
4408
|
+
type: "integer",
|
4409
|
+
description: "The number of columns in the range",
|
4410
|
+
},
|
4411
|
+
},
|
4412
|
+
},
|
4413
|
+
},
|
4414
|
+
},
|
4415
|
+
},
|
4416
|
+
},
|
4417
|
+
{
|
4418
|
+
type: "object",
|
4419
|
+
required: ["unmergeTableCells"],
|
4420
|
+
properties: {
|
4421
|
+
unmergeTableCells: {
|
4422
|
+
type: "object",
|
4423
|
+
description: "Unmerges cells in a table",
|
4424
|
+
required: ["objectId", "tableRange"],
|
4425
|
+
properties: {
|
4426
|
+
objectId: {
|
4427
|
+
type: "string",
|
4428
|
+
description: "The object ID of the table",
|
4429
|
+
},
|
4430
|
+
tableRange: {
|
4431
|
+
type: "object",
|
4432
|
+
description: "The range of cells to unmerge",
|
4433
|
+
properties: {
|
4434
|
+
location: {
|
4435
|
+
type: "object",
|
4436
|
+
description: "The starting cell location",
|
4437
|
+
},
|
4438
|
+
rowSpan: {
|
4439
|
+
type: "integer",
|
4440
|
+
description: "The number of rows in the range",
|
4441
|
+
},
|
4442
|
+
columnSpan: {
|
4443
|
+
type: "integer",
|
4444
|
+
description: "The number of columns in the range",
|
4445
|
+
},
|
4446
|
+
},
|
4447
|
+
},
|
4448
|
+
},
|
4449
|
+
},
|
4450
|
+
},
|
4451
|
+
},
|
4452
|
+
{
|
4453
|
+
type: "object",
|
4454
|
+
required: ["groupObjects"],
|
4455
|
+
properties: {
|
4456
|
+
groupObjects: {
|
4457
|
+
type: "object",
|
4458
|
+
description: "Groups multiple page elements together",
|
4459
|
+
required: ["childrenObjectIds", "groupObjectId"],
|
4460
|
+
properties: {
|
4461
|
+
childrenObjectIds: {
|
4462
|
+
type: "array",
|
4463
|
+
items: {
|
4464
|
+
type: "string",
|
4465
|
+
},
|
4466
|
+
description: "The object IDs of the elements to group",
|
4467
|
+
},
|
4468
|
+
groupObjectId: {
|
4469
|
+
type: "string",
|
4470
|
+
description: "The object ID to assign to the created group",
|
4471
|
+
},
|
4472
|
+
},
|
4473
|
+
},
|
4474
|
+
},
|
4475
|
+
},
|
4476
|
+
{
|
4477
|
+
type: "object",
|
4478
|
+
required: ["ungroupObjects"],
|
4479
|
+
properties: {
|
4480
|
+
ungroupObjects: {
|
4481
|
+
type: "object",
|
4482
|
+
description: "Ungroups page elements",
|
4483
|
+
required: ["objectIds"],
|
4484
|
+
properties: {
|
4485
|
+
objectIds: {
|
4486
|
+
type: "array",
|
4487
|
+
items: {
|
4488
|
+
type: "string",
|
4489
|
+
},
|
4490
|
+
description: "The object IDs of the groups to ungroup",
|
4491
|
+
},
|
4492
|
+
},
|
4493
|
+
},
|
4494
|
+
},
|
4495
|
+
},
|
4496
|
+
{
|
4497
|
+
type: "object",
|
4498
|
+
required: ["updatePageElementAltText"],
|
4499
|
+
properties: {
|
4500
|
+
updatePageElementAltText: {
|
4501
|
+
type: "object",
|
4502
|
+
description: "Updates the alt text for a page element",
|
4503
|
+
required: ["objectId", "title", "description"],
|
4504
|
+
properties: {
|
4505
|
+
objectId: {
|
4506
|
+
type: "string",
|
4507
|
+
description: "The object ID of the page element",
|
4508
|
+
},
|
4509
|
+
title: {
|
4510
|
+
type: "string",
|
4511
|
+
description: "The title for the alt text",
|
4512
|
+
},
|
4513
|
+
description: {
|
4514
|
+
type: "string",
|
4515
|
+
description: "The description for the alt text",
|
4516
|
+
},
|
4517
|
+
},
|
4518
|
+
},
|
4519
|
+
},
|
4520
|
+
},
|
4521
|
+
{
|
4522
|
+
type: "object",
|
4523
|
+
required: ["replaceImage"],
|
4524
|
+
properties: {
|
4525
|
+
replaceImage: {
|
4526
|
+
type: "object",
|
4527
|
+
description: "Replaces an existing image with a new one",
|
4528
|
+
required: ["imageObjectId", "url"],
|
4529
|
+
properties: {
|
4530
|
+
imageObjectId: {
|
4531
|
+
type: "string",
|
4532
|
+
description: "The object ID of the image to replace",
|
4533
|
+
},
|
4534
|
+
url: {
|
4535
|
+
type: "string",
|
4536
|
+
description: "The URL of the new image",
|
4537
|
+
},
|
4538
|
+
replaceMethod: {
|
4539
|
+
type: "string",
|
4540
|
+
enum: ["CENTER_INSIDE", "CENTER_CROP"],
|
4541
|
+
description: "The image replace method (Defaults to CENTER_INSIDE)",
|
4542
|
+
},
|
4543
|
+
},
|
4544
|
+
},
|
4545
|
+
},
|
4546
|
+
},
|
4547
|
+
{
|
4548
|
+
type: "object",
|
4549
|
+
required: ["updateSlideProperties"],
|
4550
|
+
properties: {
|
4551
|
+
updateSlideProperties: {
|
4552
|
+
type: "object",
|
4553
|
+
description: "Updates the properties of a slide",
|
4554
|
+
required: ["objectId", "slideProperties", "fields"],
|
4555
|
+
properties: {
|
4556
|
+
objectId: {
|
4557
|
+
type: "string",
|
4558
|
+
description: "The object ID of the slide",
|
4559
|
+
},
|
4560
|
+
slideProperties: {
|
4561
|
+
type: "object",
|
4562
|
+
description: "The properties to update (e.g., master reference, layout reference)",
|
4563
|
+
},
|
4564
|
+
fields: {
|
4565
|
+
type: "string",
|
4566
|
+
description: "Comma-separated list of fields to update using FieldMask syntax (e.g., 'slideBackgroundFill')",
|
4567
|
+
},
|
4568
|
+
},
|
4569
|
+
},
|
4570
|
+
},
|
4571
|
+
},
|
4572
|
+
{
|
4573
|
+
type: "object",
|
4574
|
+
required: ["updatePageElementsZOrder"],
|
4575
|
+
properties: {
|
4576
|
+
updatePageElementsZOrder: {
|
4577
|
+
type: "object",
|
4578
|
+
description: "Updates the Z-order of page elements",
|
4579
|
+
required: ["pageObjectIds", "operation"],
|
4580
|
+
properties: {
|
4581
|
+
pageObjectIds: {
|
4582
|
+
type: "array",
|
4583
|
+
items: {
|
4584
|
+
type: "string",
|
4585
|
+
},
|
4586
|
+
description: "The object IDs of the page elements to reorder",
|
4587
|
+
},
|
4588
|
+
operation: {
|
4589
|
+
type: "string",
|
4590
|
+
enum: ["BRING_TO_FRONT", "BRING_FORWARD", "SEND_BACKWARD", "SEND_TO_BACK"],
|
4591
|
+
description: "The Z-order operation to apply",
|
4592
|
+
},
|
4593
|
+
},
|
4594
|
+
},
|
4595
|
+
},
|
4596
|
+
},
|
4597
|
+
{
|
4598
|
+
type: "object",
|
4599
|
+
required: ["updateLineCategory"],
|
4600
|
+
properties: {
|
4601
|
+
updateLineCategory: {
|
4602
|
+
type: "object",
|
4603
|
+
description: "Updates the category of a line",
|
4604
|
+
required: ["objectId", "lineCategory"],
|
4605
|
+
properties: {
|
4606
|
+
objectId: {
|
4607
|
+
type: "string",
|
4608
|
+
description: "The object ID of the line",
|
4609
|
+
},
|
4610
|
+
lineCategory: {
|
4611
|
+
type: "string",
|
4612
|
+
enum: ["STRAIGHT", "BENT", "CURVED"],
|
4613
|
+
description: "The new line category",
|
4614
|
+
},
|
4615
|
+
},
|
4616
|
+
},
|
4617
|
+
},
|
4618
|
+
},
|
4619
|
+
{
|
4620
|
+
type: "object",
|
4621
|
+
required: ["rerouteLine"],
|
4622
|
+
properties: {
|
4623
|
+
rerouteLine: {
|
4624
|
+
type: "object",
|
4625
|
+
description: "Reroutes a line connection",
|
4626
|
+
required: ["objectId"],
|
4627
|
+
properties: {
|
4628
|
+
objectId: {
|
4629
|
+
type: "string",
|
4630
|
+
description: "The object ID of the line to reroute",
|
4631
|
+
},
|
4632
|
+
},
|
4633
|
+
},
|
4634
|
+
},
|
4635
|
+
},
|
4636
|
+
],
|
4637
|
+
},
|
4638
|
+
},
|
4639
|
+
},
|
4640
|
+
},
|
4641
|
+
output: {
|
4642
|
+
type: "object",
|
4643
|
+
required: ["success"],
|
4644
|
+
properties: {
|
4645
|
+
success: {
|
4646
|
+
type: "boolean",
|
4647
|
+
description: "Whether the presentation was created successfully",
|
4648
|
+
},
|
4649
|
+
error: {
|
4650
|
+
type: "string",
|
4651
|
+
description: "The error that occurred if the presentation was not created successfully",
|
4652
|
+
},
|
4653
|
+
presentationUrl: {
|
4654
|
+
type: "string",
|
4655
|
+
description: "The URL of the created presentation",
|
4656
|
+
},
|
4657
|
+
},
|
4658
|
+
},
|
4659
|
+
name: "updatePresentation",
|
4660
|
+
provider: "googleOauth",
|
4661
|
+
};
|
4662
|
+
exports.finnhubSymbolLookupDefinition = {
|
4663
|
+
description: "Look up a stock symbol by name",
|
4664
|
+
scopes: [],
|
4665
|
+
parameters: {
|
4666
|
+
type: "object",
|
4667
|
+
required: ["query"],
|
4668
|
+
properties: {
|
4669
|
+
query: {
|
4670
|
+
type: "string",
|
4671
|
+
description: "The symbol or colloquial name of the company to look up",
|
4672
|
+
},
|
4673
|
+
},
|
4674
|
+
},
|
4675
|
+
output: {
|
4676
|
+
type: "object",
|
4677
|
+
required: ["result"],
|
4678
|
+
properties: {
|
4679
|
+
result: {
|
4680
|
+
type: "array",
|
4681
|
+
description: "The results of the symbol lookup",
|
4682
|
+
items: {
|
4683
|
+
type: "object",
|
4684
|
+
description: "The metadata of the stock",
|
4685
|
+
properties: {
|
4686
|
+
symbol: {
|
4687
|
+
type: "string",
|
4688
|
+
description: "The symbol of the stock",
|
4689
|
+
},
|
4690
|
+
description: {
|
4691
|
+
type: "string",
|
4692
|
+
description: "The description of the stock",
|
4693
|
+
},
|
4694
|
+
},
|
4695
|
+
},
|
4696
|
+
},
|
4697
|
+
},
|
4698
|
+
},
|
4699
|
+
name: "symbolLookup",
|
4700
|
+
provider: "finnhub",
|
4701
|
+
};
|
4702
|
+
exports.finnhubGetBasicFinancialsDefinition = {
|
4703
|
+
description: "Get company basic financials such as margin, P/E ratio, 52-week high/low etc.",
|
4704
|
+
scopes: [],
|
4705
|
+
parameters: {
|
4706
|
+
type: "object",
|
1405
4707
|
required: ["symbol"],
|
1406
4708
|
properties: {
|
1407
4709
|
symbol: {
|
@@ -1883,46 +5185,230 @@ exports.salesforceUpdateRecordDefinition = {
|
|
1883
5185
|
properties: {
|
1884
5186
|
success: {
|
1885
5187
|
type: "boolean",
|
1886
|
-
description: "Whether the record was successfully updated",
|
5188
|
+
description: "Whether the record was successfully updated",
|
5189
|
+
},
|
5190
|
+
error: {
|
5191
|
+
type: "string",
|
5192
|
+
description: "The error that occurred if the record was not successfully updated",
|
5193
|
+
},
|
5194
|
+
},
|
5195
|
+
},
|
5196
|
+
name: "updateRecord",
|
5197
|
+
provider: "salesforce",
|
5198
|
+
};
|
5199
|
+
exports.salesforceCreateCaseDefinition = {
|
5200
|
+
description: "Create a case or support ticket in Salesforce",
|
5201
|
+
scopes: [],
|
5202
|
+
parameters: {
|
5203
|
+
type: "object",
|
5204
|
+
required: ["subject", "description", "priority", "origin"],
|
5205
|
+
properties: {
|
5206
|
+
subject: {
|
5207
|
+
type: "string",
|
5208
|
+
description: "The subject of the case",
|
5209
|
+
},
|
5210
|
+
description: {
|
5211
|
+
type: "string",
|
5212
|
+
description: "The detailed description of the case",
|
5213
|
+
},
|
5214
|
+
priority: {
|
5215
|
+
type: "string",
|
5216
|
+
description: "The priority of the case (e.g., High, Medium, Low)",
|
5217
|
+
},
|
5218
|
+
origin: {
|
5219
|
+
type: "string",
|
5220
|
+
description: "The origin of the case (e.g., Phone, Email, Web)",
|
5221
|
+
},
|
5222
|
+
customFields: {
|
5223
|
+
type: "object",
|
5224
|
+
description: "Additional custom fields to set on the case",
|
5225
|
+
additionalProperties: {
|
5226
|
+
type: "string",
|
5227
|
+
},
|
5228
|
+
},
|
5229
|
+
},
|
5230
|
+
},
|
5231
|
+
output: {
|
5232
|
+
type: "object",
|
5233
|
+
required: ["success"],
|
5234
|
+
properties: {
|
5235
|
+
success: {
|
5236
|
+
type: "boolean",
|
5237
|
+
description: "Whether the case was successfully created",
|
5238
|
+
},
|
5239
|
+
caseId: {
|
5240
|
+
type: "string",
|
5241
|
+
description: "The ID of the created case",
|
5242
|
+
},
|
5243
|
+
error: {
|
5244
|
+
type: "string",
|
5245
|
+
description: "The error that occurred if the case was not successfully created",
|
5246
|
+
},
|
5247
|
+
},
|
5248
|
+
},
|
5249
|
+
name: "createCase",
|
5250
|
+
provider: "salesforce",
|
5251
|
+
};
|
5252
|
+
exports.salesforceGenerateSalesReportDefinition = {
|
5253
|
+
description: "Generate a sales report from Salesforce",
|
5254
|
+
scopes: [],
|
5255
|
+
parameters: {
|
5256
|
+
type: "object",
|
5257
|
+
required: ["startDate", "endDate"],
|
5258
|
+
properties: {
|
5259
|
+
startDate: {
|
5260
|
+
type: "string",
|
5261
|
+
description: "The start date for the sales report in ISO 8601 format (e.g., 2025-01-01).",
|
5262
|
+
},
|
5263
|
+
endDate: {
|
5264
|
+
type: "string",
|
5265
|
+
description: "The end date for the sales report in ISO 8601 format (e.g., 2025-01-31).",
|
5266
|
+
},
|
5267
|
+
filters: {
|
5268
|
+
type: "object",
|
5269
|
+
description: "Additional filters for the sales report (e.g., by region, product).",
|
5270
|
+
additionalProperties: {
|
5271
|
+
type: "string",
|
5272
|
+
},
|
5273
|
+
},
|
5274
|
+
},
|
5275
|
+
},
|
5276
|
+
output: {
|
5277
|
+
type: "object",
|
5278
|
+
required: ["success"],
|
5279
|
+
properties: {
|
5280
|
+
success: {
|
5281
|
+
type: "boolean",
|
5282
|
+
description: "Whether the sales report was successfully generated.",
|
5283
|
+
},
|
5284
|
+
reportData: {
|
5285
|
+
type: "array",
|
5286
|
+
description: "The data of the sales report.",
|
5287
|
+
items: {
|
5288
|
+
type: "object",
|
5289
|
+
description: "A row in the sales report.",
|
5290
|
+
additionalProperties: {
|
5291
|
+
type: "string",
|
5292
|
+
},
|
5293
|
+
},
|
5294
|
+
},
|
5295
|
+
error: {
|
5296
|
+
type: "string",
|
5297
|
+
description: "The error that occurred if the sales report was not successfully generated.",
|
5298
|
+
},
|
5299
|
+
},
|
5300
|
+
},
|
5301
|
+
name: "generateSalesReport",
|
5302
|
+
provider: "salesforce",
|
5303
|
+
};
|
5304
|
+
exports.salesforceGetSalesforceRecordsByQueryDefinition = {
|
5305
|
+
description: "Retrieve Salesforce records by SOQL query",
|
5306
|
+
scopes: [],
|
5307
|
+
parameters: {
|
5308
|
+
type: "object",
|
5309
|
+
required: ["query"],
|
5310
|
+
properties: {
|
5311
|
+
query: {
|
5312
|
+
type: "string",
|
5313
|
+
description: "The SOQL query to execute",
|
5314
|
+
},
|
5315
|
+
limit: {
|
5316
|
+
type: "number",
|
5317
|
+
description: "The maximum number of records to retrieve",
|
5318
|
+
},
|
5319
|
+
},
|
5320
|
+
},
|
5321
|
+
output: {
|
5322
|
+
type: "object",
|
5323
|
+
required: ["success"],
|
5324
|
+
properties: {
|
5325
|
+
success: {
|
5326
|
+
type: "boolean",
|
5327
|
+
description: "Whether the records were successfully retrieved",
|
5328
|
+
},
|
5329
|
+
records: {
|
5330
|
+
type: "array",
|
5331
|
+
description: "The retrieved records",
|
5332
|
+
items: {
|
5333
|
+
type: "object",
|
5334
|
+
description: "A record from Salesforce",
|
5335
|
+
additionalProperties: {
|
5336
|
+
type: "string",
|
5337
|
+
},
|
5338
|
+
},
|
5339
|
+
},
|
5340
|
+
error: {
|
5341
|
+
type: "string",
|
5342
|
+
description: "The error that occurred if the records were not successfully retrieved",
|
5343
|
+
},
|
5344
|
+
},
|
5345
|
+
},
|
5346
|
+
name: "getSalesforceRecordsByQuery",
|
5347
|
+
provider: "salesforce",
|
5348
|
+
};
|
5349
|
+
exports.salesforceGetRecordDefinition = {
|
5350
|
+
description: "Retrieve a record from Salesforce",
|
5351
|
+
scopes: [],
|
5352
|
+
parameters: {
|
5353
|
+
type: "object",
|
5354
|
+
required: ["objectType", "recordId"],
|
5355
|
+
properties: {
|
5356
|
+
objectType: {
|
5357
|
+
type: "string",
|
5358
|
+
description: "The Salesforce object type to retrieve (e.g., Lead, Account, Contact)",
|
5359
|
+
},
|
5360
|
+
recordId: {
|
5361
|
+
type: "string",
|
5362
|
+
description: "The ID of the record to retrieve",
|
5363
|
+
},
|
5364
|
+
},
|
5365
|
+
},
|
5366
|
+
output: {
|
5367
|
+
type: "object",
|
5368
|
+
required: ["success"],
|
5369
|
+
properties: {
|
5370
|
+
success: {
|
5371
|
+
type: "boolean",
|
5372
|
+
description: "Whether the record was successfully retrieved",
|
5373
|
+
},
|
5374
|
+
record: {
|
5375
|
+
type: "object",
|
5376
|
+
description: "The retrieved record data",
|
5377
|
+
additionalProperties: {
|
5378
|
+
type: "string",
|
5379
|
+
},
|
1887
5380
|
},
|
1888
5381
|
error: {
|
1889
5382
|
type: "string",
|
1890
|
-
description: "The error that occurred if the record was not successfully
|
5383
|
+
description: "The error that occurred if the record was not successfully retrieved",
|
1891
5384
|
},
|
1892
5385
|
},
|
1893
5386
|
},
|
1894
|
-
name: "
|
5387
|
+
name: "getRecord",
|
1895
5388
|
provider: "salesforce",
|
1896
5389
|
};
|
1897
|
-
exports.
|
1898
|
-
description: "
|
1899
|
-
scopes: [],
|
5390
|
+
exports.microsoftCreateDocumentDefinition = {
|
5391
|
+
description: "Creates a new Office365 document",
|
5392
|
+
scopes: ["Files.ReadWrite", "Sites.Manage.All", "Sites.ReadWrite.All"],
|
1900
5393
|
parameters: {
|
1901
5394
|
type: "object",
|
1902
|
-
required: ["
|
5395
|
+
required: ["name", "content"],
|
1903
5396
|
properties: {
|
1904
|
-
|
5397
|
+
siteId: {
|
1905
5398
|
type: "string",
|
1906
|
-
description: "The
|
5399
|
+
description: "The ID of the site where the document will be created",
|
1907
5400
|
},
|
1908
|
-
|
5401
|
+
name: {
|
1909
5402
|
type: "string",
|
1910
|
-
description: "The
|
5403
|
+
description: "The name of the new document (include extension like .docx or .xlsx)",
|
1911
5404
|
},
|
1912
|
-
|
5405
|
+
content: {
|
1913
5406
|
type: "string",
|
1914
|
-
description: "The
|
5407
|
+
description: "The content to add to the new document",
|
1915
5408
|
},
|
1916
|
-
|
5409
|
+
folderId: {
|
1917
5410
|
type: "string",
|
1918
|
-
description: "The
|
1919
|
-
},
|
1920
|
-
customFields: {
|
1921
|
-
type: "object",
|
1922
|
-
description: "Additional custom fields to set on the case",
|
1923
|
-
additionalProperties: {
|
1924
|
-
type: "string",
|
1925
|
-
},
|
5411
|
+
description: "The ID of the folder to create the document in (optional)",
|
1926
5412
|
},
|
1927
5413
|
},
|
1928
5414
|
},
|
@@ -1930,44 +5416,49 @@ exports.salesforceCreateCaseDefinition = {
|
|
1930
5416
|
type: "object",
|
1931
5417
|
required: ["success"],
|
1932
5418
|
properties: {
|
1933
|
-
|
1934
|
-
type: "
|
1935
|
-
description: "
|
5419
|
+
documentId: {
|
5420
|
+
type: "string",
|
5421
|
+
description: "The ID of the created document",
|
1936
5422
|
},
|
1937
|
-
|
5423
|
+
documentUrl: {
|
1938
5424
|
type: "string",
|
1939
|
-
description: "The
|
5425
|
+
description: "The URL to access the created document",
|
5426
|
+
},
|
5427
|
+
fileName: {
|
5428
|
+
type: "string",
|
5429
|
+
description: "The name of the created document (could be sanitized version of the name)",
|
5430
|
+
},
|
5431
|
+
success: {
|
5432
|
+
type: "boolean",
|
5433
|
+
description: "Whether the document was created successfully",
|
1940
5434
|
},
|
1941
5435
|
error: {
|
1942
5436
|
type: "string",
|
1943
|
-
description: "The error that occurred if the
|
5437
|
+
description: "The error that occurred if the document was not created successfully",
|
1944
5438
|
},
|
1945
5439
|
},
|
1946
5440
|
},
|
1947
|
-
name: "
|
1948
|
-
provider: "
|
5441
|
+
name: "createDocument",
|
5442
|
+
provider: "microsoft",
|
1949
5443
|
};
|
1950
|
-
exports.
|
1951
|
-
description: "
|
1952
|
-
scopes: [],
|
5444
|
+
exports.microsoftUpdateDocumentDefinition = {
|
5445
|
+
description: "Updates a Office365 document",
|
5446
|
+
scopes: ["Files.ReadWrite", "Sites.ReadWrite.All"],
|
1953
5447
|
parameters: {
|
1954
5448
|
type: "object",
|
1955
|
-
required: ["
|
5449
|
+
required: ["documentId", "content"],
|
1956
5450
|
properties: {
|
1957
|
-
|
5451
|
+
siteId: {
|
1958
5452
|
type: "string",
|
1959
|
-
description: "The
|
5453
|
+
description: "The ID of the site where the document is located",
|
1960
5454
|
},
|
1961
|
-
|
5455
|
+
documentId: {
|
1962
5456
|
type: "string",
|
1963
|
-
description: "The
|
5457
|
+
description: "The ID of the document",
|
1964
5458
|
},
|
1965
|
-
|
1966
|
-
type: "
|
1967
|
-
description: "
|
1968
|
-
additionalProperties: {
|
1969
|
-
type: "string",
|
1970
|
-
},
|
5459
|
+
content: {
|
5460
|
+
type: "string",
|
5461
|
+
description: "The new content to update in the document",
|
1971
5462
|
},
|
1972
5463
|
},
|
1973
5464
|
},
|
@@ -1977,42 +5468,49 @@ exports.salesforceGenerateSalesReportDefinition = {
|
|
1977
5468
|
properties: {
|
1978
5469
|
success: {
|
1979
5470
|
type: "boolean",
|
1980
|
-
description: "Whether the
|
1981
|
-
},
|
1982
|
-
reportData: {
|
1983
|
-
type: "array",
|
1984
|
-
description: "The data of the sales report.",
|
1985
|
-
items: {
|
1986
|
-
type: "object",
|
1987
|
-
description: "A row in the sales report.",
|
1988
|
-
additionalProperties: {
|
1989
|
-
type: "string",
|
1990
|
-
},
|
1991
|
-
},
|
5471
|
+
description: "Whether the document was updated successfully",
|
1992
5472
|
},
|
1993
5473
|
error: {
|
1994
5474
|
type: "string",
|
1995
|
-
description: "The error that occurred if the
|
5475
|
+
description: "The error that occurred if the update was not successful",
|
5476
|
+
},
|
5477
|
+
documentUrl: {
|
5478
|
+
type: "string",
|
5479
|
+
description: "The URL to access the updated document",
|
1996
5480
|
},
|
1997
5481
|
},
|
1998
5482
|
},
|
1999
|
-
name: "
|
2000
|
-
provider: "
|
5483
|
+
name: "updateDocument",
|
5484
|
+
provider: "microsoft",
|
2001
5485
|
};
|
2002
|
-
exports.
|
2003
|
-
description: "
|
2004
|
-
scopes: [],
|
5486
|
+
exports.microsoftUpdateSpreadsheetDefinition = {
|
5487
|
+
description: "Updates a Microsoft Excel spreadsheet",
|
5488
|
+
scopes: ["Files.ReadWrite", "Sites.ReadWrite.All"],
|
2005
5489
|
parameters: {
|
2006
5490
|
type: "object",
|
2007
|
-
required: ["
|
5491
|
+
required: ["spreadsheetId", "range", "values"],
|
2008
5492
|
properties: {
|
2009
|
-
|
5493
|
+
spreadsheetId: {
|
2010
5494
|
type: "string",
|
2011
|
-
description: "The
|
5495
|
+
description: "The ID of the spreadsheet to update",
|
2012
5496
|
},
|
2013
|
-
|
5497
|
+
range: {
|
2014
5498
|
type: "string",
|
2015
|
-
description:
|
5499
|
+
description: 'The range of cells to update (e.g., "Sheet1!A1:B2")',
|
5500
|
+
},
|
5501
|
+
values: {
|
5502
|
+
type: "array",
|
5503
|
+
description: "The values to update in the specified range",
|
5504
|
+
items: {
|
5505
|
+
type: "array",
|
5506
|
+
items: {
|
5507
|
+
type: "string",
|
5508
|
+
},
|
5509
|
+
},
|
5510
|
+
},
|
5511
|
+
siteId: {
|
5512
|
+
type: "string",
|
5513
|
+
description: "The ID of the site where the spreadsheet is located",
|
2016
5514
|
},
|
2017
5515
|
},
|
2018
5516
|
},
|
@@ -2022,27 +5520,24 @@ exports.salesforceGetRecordDefinition = {
|
|
2022
5520
|
properties: {
|
2023
5521
|
success: {
|
2024
5522
|
type: "boolean",
|
2025
|
-
description: "Whether the
|
2026
|
-
},
|
2027
|
-
record: {
|
2028
|
-
type: "object",
|
2029
|
-
description: "The retrieved record data",
|
2030
|
-
additionalProperties: {
|
2031
|
-
type: "string",
|
2032
|
-
},
|
5523
|
+
description: "Whether the spreadsheet was updated successfully",
|
2033
5524
|
},
|
2034
5525
|
error: {
|
2035
5526
|
type: "string",
|
2036
|
-
description: "The error that occurred if the
|
5527
|
+
description: "The error that occurred if the update was not successful",
|
5528
|
+
},
|
5529
|
+
updatedRange: {
|
5530
|
+
type: "string",
|
5531
|
+
description: "The range that was updated in the spreadsheet",
|
2037
5532
|
},
|
2038
5533
|
},
|
2039
5534
|
},
|
2040
|
-
name: "
|
2041
|
-
provider: "
|
5535
|
+
name: "updateSpreadsheet",
|
5536
|
+
provider: "microsoft",
|
2042
5537
|
};
|
2043
5538
|
exports.microsoftMessageTeamsChatDefinition = {
|
2044
5539
|
description: "Sends a message to a Microsoft Teams chat",
|
2045
|
-
scopes: ["
|
5540
|
+
scopes: ["ChatMessage.Send"],
|
2046
5541
|
parameters: {
|
2047
5542
|
type: "object",
|
2048
5543
|
required: ["chatId", "message"],
|
@@ -2080,7 +5575,7 @@ exports.microsoftMessageTeamsChatDefinition = {
|
|
2080
5575
|
};
|
2081
5576
|
exports.microsoftMessageTeamsChannelDefinition = {
|
2082
5577
|
description: "Sends a message to a Microsoft Teams channel",
|
2083
|
-
scopes: ["
|
5578
|
+
scopes: ["ChannelMessage.Send"],
|
2084
5579
|
parameters: {
|
2085
5580
|
type: "object",
|
2086
5581
|
required: ["teamId", "channelId", "message"],
|
@@ -2120,3 +5615,204 @@ exports.microsoftMessageTeamsChannelDefinition = {
|
|
2120
5615
|
name: "messageTeamsChannel",
|
2121
5616
|
provider: "microsoft",
|
2122
5617
|
};
|
5618
|
+
exports.microsoftGetDocumentDefinition = {
|
5619
|
+
description: "Retrieves the content of a Microsoft Office document",
|
5620
|
+
scopes: ["Files.ReadWrite", "Sites.ReadWrite.All"],
|
5621
|
+
parameters: {
|
5622
|
+
type: "object",
|
5623
|
+
required: ["documentId"],
|
5624
|
+
properties: {
|
5625
|
+
siteId: {
|
5626
|
+
type: "string",
|
5627
|
+
description: "The ID of the site where the document is located (optional for OneDrive)",
|
5628
|
+
},
|
5629
|
+
documentId: {
|
5630
|
+
type: "string",
|
5631
|
+
description: "The ID of the document to retrieve",
|
5632
|
+
},
|
5633
|
+
},
|
5634
|
+
},
|
5635
|
+
output: {
|
5636
|
+
type: "object",
|
5637
|
+
required: ["success"],
|
5638
|
+
properties: {
|
5639
|
+
success: {
|
5640
|
+
type: "boolean",
|
5641
|
+
description: "Whether the document was successfully retrieved",
|
5642
|
+
},
|
5643
|
+
content: {
|
5644
|
+
type: "string",
|
5645
|
+
description: "The content of the document",
|
5646
|
+
},
|
5647
|
+
error: {
|
5648
|
+
type: "string",
|
5649
|
+
description: "The error that occurred if the document was not successfully retrieved",
|
5650
|
+
},
|
5651
|
+
},
|
5652
|
+
},
|
5653
|
+
name: "getDocument",
|
5654
|
+
provider: "microsoft",
|
5655
|
+
};
|
5656
|
+
exports.githubCreateOrUpdateFileDefinition = {
|
5657
|
+
description: "Create or update a file in a GitHub repository",
|
5658
|
+
scopes: [],
|
5659
|
+
parameters: {
|
5660
|
+
type: "object",
|
5661
|
+
required: ["repositoryOwner", "repositoryName", "filePath", "branch", "fileContent", "commitMessage"],
|
5662
|
+
properties: {
|
5663
|
+
repositoryOwner: {
|
5664
|
+
type: "string",
|
5665
|
+
description: "The owner of the repository",
|
5666
|
+
},
|
5667
|
+
repositoryName: {
|
5668
|
+
type: "string",
|
5669
|
+
description: "The name of the repository",
|
5670
|
+
},
|
5671
|
+
filePath: {
|
5672
|
+
type: "string",
|
5673
|
+
description: "The path of the file to create or update",
|
5674
|
+
},
|
5675
|
+
branch: {
|
5676
|
+
type: "string",
|
5677
|
+
description: "The branch where the file will be created or updated",
|
5678
|
+
},
|
5679
|
+
fileContent: {
|
5680
|
+
type: "string",
|
5681
|
+
description: "The content of the file",
|
5682
|
+
},
|
5683
|
+
commitMessage: {
|
5684
|
+
type: "string",
|
5685
|
+
description: "The commit message for the operation",
|
5686
|
+
},
|
5687
|
+
noOverwrite: {
|
5688
|
+
type: "boolean",
|
5689
|
+
description: "Whether to prevent overwriting existing files",
|
5690
|
+
},
|
5691
|
+
},
|
5692
|
+
},
|
5693
|
+
output: {
|
5694
|
+
type: "object",
|
5695
|
+
required: ["success"],
|
5696
|
+
properties: {
|
5697
|
+
success: {
|
5698
|
+
type: "boolean",
|
5699
|
+
description: "Whether the operation was successful",
|
5700
|
+
},
|
5701
|
+
error: {
|
5702
|
+
type: "string",
|
5703
|
+
description: "The error that occurred if the operation was not successful",
|
5704
|
+
},
|
5705
|
+
newCommitSha: {
|
5706
|
+
type: "string",
|
5707
|
+
description: "The SHA of the new commit created",
|
5708
|
+
},
|
5709
|
+
operation: {
|
5710
|
+
type: "string",
|
5711
|
+
description: "Indicates whether the file was created or updated",
|
5712
|
+
enum: ["created", "updated"],
|
5713
|
+
},
|
5714
|
+
},
|
5715
|
+
},
|
5716
|
+
name: "createOrUpdateFile",
|
5717
|
+
provider: "github",
|
5718
|
+
};
|
5719
|
+
exports.githubCreateBranchDefinition = {
|
5720
|
+
description: "Create a new branch in a GitHub repository",
|
5721
|
+
scopes: [],
|
5722
|
+
parameters: {
|
5723
|
+
type: "object",
|
5724
|
+
required: ["repositoryOwner", "repositoryName", "branchName", "baseRefOrHash"],
|
5725
|
+
properties: {
|
5726
|
+
repositoryOwner: {
|
5727
|
+
type: "string",
|
5728
|
+
description: "The owner of the repository",
|
5729
|
+
},
|
5730
|
+
repositoryName: {
|
5731
|
+
type: "string",
|
5732
|
+
description: "The name of the repository",
|
5733
|
+
},
|
5734
|
+
branchName: {
|
5735
|
+
type: "string",
|
5736
|
+
description: "The name of the new branch to create",
|
5737
|
+
},
|
5738
|
+
baseRefOrHash: {
|
5739
|
+
type: "string",
|
5740
|
+
description: "The ref or hash of the base commit to create the new branch from",
|
5741
|
+
},
|
5742
|
+
},
|
5743
|
+
},
|
5744
|
+
output: {
|
5745
|
+
type: "object",
|
5746
|
+
required: ["success"],
|
5747
|
+
properties: {
|
5748
|
+
success: {
|
5749
|
+
type: "boolean",
|
5750
|
+
description: "Whether the branch was created successfully",
|
5751
|
+
},
|
5752
|
+
error: {
|
5753
|
+
type: "string",
|
5754
|
+
description: "The error that occurred if the branch was not created successfully",
|
5755
|
+
},
|
5756
|
+
},
|
5757
|
+
},
|
5758
|
+
name: "createBranch",
|
5759
|
+
provider: "github",
|
5760
|
+
};
|
5761
|
+
exports.githubCreatePullRequestDefinition = {
|
5762
|
+
description: "Create a pull request in a GitHub repository",
|
5763
|
+
scopes: [],
|
5764
|
+
parameters: {
|
5765
|
+
type: "object",
|
5766
|
+
required: ["repositoryOwner", "repositoryName", "head", "base", "title"],
|
5767
|
+
properties: {
|
5768
|
+
repositoryOwner: {
|
5769
|
+
type: "string",
|
5770
|
+
description: "The owner of the repository",
|
5771
|
+
},
|
5772
|
+
repositoryName: {
|
5773
|
+
type: "string",
|
5774
|
+
description: "The name of the repository",
|
5775
|
+
},
|
5776
|
+
head: {
|
5777
|
+
type: "string",
|
5778
|
+
description: "The branch containing the changes to be merged (prefix with owner: if different from the repository owner)",
|
5779
|
+
},
|
5780
|
+
base: {
|
5781
|
+
type: "string",
|
5782
|
+
description: "The branch to merge the changes into",
|
5783
|
+
},
|
5784
|
+
title: {
|
5785
|
+
type: "string",
|
5786
|
+
description: "The title of the pull request",
|
5787
|
+
},
|
5788
|
+
description: {
|
5789
|
+
type: "string",
|
5790
|
+
description: "The description of the pull request",
|
5791
|
+
},
|
5792
|
+
},
|
5793
|
+
},
|
5794
|
+
output: {
|
5795
|
+
type: "object",
|
5796
|
+
required: ["success"],
|
5797
|
+
properties: {
|
5798
|
+
success: {
|
5799
|
+
type: "boolean",
|
5800
|
+
description: "Whether the pull request was created successfully",
|
5801
|
+
},
|
5802
|
+
error: {
|
5803
|
+
type: "string",
|
5804
|
+
description: "The error that occurred if the pull request was not created successfully",
|
5805
|
+
},
|
5806
|
+
pullRequestUrl: {
|
5807
|
+
type: "string",
|
5808
|
+
description: "The URL of the created pull request",
|
5809
|
+
},
|
5810
|
+
pullRequestNumber: {
|
5811
|
+
type: "number",
|
5812
|
+
description: "The number of the created pull request",
|
5813
|
+
},
|
5814
|
+
},
|
5815
|
+
},
|
5816
|
+
name: "createPullRequest",
|
5817
|
+
provider: "github",
|
5818
|
+
};
|