@maxim_mazurok/gapi.client.slides-v1 0.0.20231109 → 0.0.20231128

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/index.d.ts CHANGED
@@ -9,2371 +9,1416 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://slides.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231109
12
+ // Revision: 20231128
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Google Slides API v1 */
18
- function load(urlOrObject: "https://slides.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "slides", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "slides", version: "v1", callback: () => any): void;
17
+ /** Load Google Slides API v1 */
18
+ function load(
19
+ urlOrObject: 'https://slides.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'slides', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'slides', version: 'v1', callback: () => any): void;
23
25
 
24
- namespace slides {
25
- interface AffineTransform {
26
- /** The X coordinate scaling element. */
27
- scaleX?:
28
- number;
29
- /** The Y coordinate scaling element. */
30
- scaleY?:
31
- number;
32
- /** The X coordinate shearing element. */
33
- shearX?:
34
- number;
35
- /** The Y coordinate shearing element. */
36
- shearY?:
37
- number;
38
- /** The X coordinate translation element. */
39
- translateX?:
40
- number;
41
- /** The Y coordinate translation element. */
42
- translateY?:
43
- number;
44
- /** The units for translate elements. */
45
- unit?:
46
- string;
47
- }
48
- interface Autofit {
49
- /**
50
- * The autofit type of the shape. If the autofit type is AUTOFIT_TYPE_UNSPECIFIED, the autofit type is inherited from a parent placeholder if it exists. The field is automatically set
51
- * to NONE if a request is made that might affect text fitting within its bounding text box. In this case the font_scale is applied to the font_size and the line_spacing_reduction is
52
- * applied to the line_spacing. Both properties are also reset to default values.
53
- */
54
- autofitType?:
55
- string;
56
- /**
57
- * The font scale applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 1. For TEXT_AUTOFIT, this value multiplied by the
58
- * font_size gives the font size that is rendered in the editor. This property is read-only.
59
- */
60
- fontScale?:
61
- number;
62
- /**
63
- * The line spacing reduction applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 0. For TEXT_AUTOFIT, this value subtracted
64
- * from the line_spacing gives the line spacing that is rendered in the editor. This property is read-only.
65
- */
66
- lineSpacingReduction?:
67
- number;
68
- }
69
- interface AutoText {
70
- /** The rendered content of this auto text, if available. */
71
- content?:
72
- string;
73
- /** The styling applied to this auto text. */
74
- style?:
75
- TextStyle;
76
- /** The type of this auto text. */
77
- type?:
78
- string;
79
- }
80
- interface BatchUpdatePresentationRequest {
81
- /** A list of updates to apply to the presentation. */
82
- requests?:
83
- Request[];
84
- /** Provides control over how write requests are executed. */
85
- writeControl?:
86
- WriteControl;
87
- }
88
- interface BatchUpdatePresentationResponse {
89
- /** The presentation the updates were applied to. */
90
- presentationId?:
91
- string;
92
- /** The reply of the updates. This maps 1:1 with the updates, although replies to some requests may be empty. */
93
- replies?:
94
- Response[];
95
- /** The updated write control after applying the request. */
96
- writeControl?:
97
- WriteControl;
98
- }
99
- interface Bullet {
100
- /** The paragraph specific text style applied to this bullet. */
101
- bulletStyle?:
102
- TextStyle;
103
- /** The rendered bullet glyph for this paragraph. */
104
- glyph?:
105
- string;
106
- /** The ID of the list this paragraph belongs to. */
107
- listId?:
108
- string;
109
- /** The nesting level of this paragraph in the list. */
110
- nestingLevel?:
111
- number;
112
- }
113
- interface ColorScheme {
114
- /** The ThemeColorType and corresponding concrete color pairs. */
115
- colors?:
116
- ThemeColorPair[];
117
- }
118
- interface ColorStop {
119
- /** The alpha value of this color in the gradient band. Defaults to 1.0, fully opaque. */
120
- alpha?:
121
- number;
122
- /** The color of the gradient stop. */
123
- color?:
124
- OpaqueColor;
125
- /** The relative position of the color stop in the gradient band measured in percentage. The value should be in the interval [0.0, 1.0]. */
126
- position?:
127
- number;
128
- }
129
- interface CreateImageRequest {
130
- /**
131
- * The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in
132
- * order to maintain the aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the
133
- * default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top-left corner of the
134
- * page.
135
- */
136
- elementProperties?:
137
- PageElementProperties;
138
- /**
139
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
140
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be
141
- * less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
142
- */
143
- objectId?:
144
- string;
145
- /**
146
- * The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50 MB in size, can't exceed 25
147
- * megapixels, and must be in one of PNG, JPEG, or GIF formats. The provided URL must be publicly accessible and up to 2 KB in length. The URL is saved with the image, and exposed
148
- * through the Image.source_url field.
149
- */
150
- url?:
151
- string;
152
- }
153
- interface CreateImageResponse {
154
- /** The object ID of the created image. */
155
- objectId?:
156
- string;
157
- }
158
- interface CreateLineRequest {
159
- /**
160
- * The category of the line to be created. The exact line type created is determined based on the category and how it's routed to connect to other page elements. If you specify both a
161
- * `category` and a `line_category`, the `category` takes precedence. If you do not specify a value for `category`, but specify a value for `line_category`, then the specified
162
- * `line_category` value is used. If you do not specify either, then STRAIGHT is used.
163
- */
164
- category?:
165
- string;
166
- /** The element properties for the line. */
167
- elementProperties?:
168
- PageElementProperties;
169
- /**
170
- * The category of the line to be created. *Deprecated*: use `category` instead. The exact line type created is determined based on the category and how it's routed to connect to other
171
- * page elements. If you specify both a `category` and a `line_category`, the `category` takes precedence.
172
- */
173
- lineCategory?:
174
- string;
175
- /**
176
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
177
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be
178
- * less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
179
- */
180
- objectId?:
181
- string;
182
- }
183
- interface CreateLineResponse {
184
- /** The object ID of the created line. */
185
- objectId?:
186
- string;
187
- }
188
- interface CreateParagraphBulletsRequest {
189
- /** The kinds of bullet glyphs to be used. Defaults to the `BULLET_DISC_CIRCLE_SQUARE` preset. */
190
- bulletPreset?:
191
- string;
192
- /** The optional table cell location if the text to be modified is in a table cell. If present, the object_id must refer to a table. */
193
- cellLocation?:
194
- TableCellLocation;
195
- /** The object ID of the shape or table containing the text to add bullets to. */
196
- objectId?:
197
- string;
198
- /** The range of text to apply the bullet presets to, based on TextElement indexes. */
199
- textRange?:
200
- Range;
201
- }
202
- interface CreateShapeRequest {
203
- /** The element properties for the shape. */
204
- elementProperties?:
205
- PageElementProperties;
206
- /**
207
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
208
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be
209
- * less than 5 or greater than 50. If empty, a unique identifier will be generated.
210
- */
211
- objectId?:
212
- string;
213
- /** The shape type. */
214
- shapeType?:
215
- string;
216
- }
217
- interface CreateShapeResponse {
218
- /** The object ID of the created shape. */
219
- objectId?:
220
- string;
221
- }
222
- interface CreateSheetsChartRequest {
223
- /** The ID of the specific chart in the Google Sheets spreadsheet. */
224
- chartId?:
225
- number;
226
- /**
227
- * The element properties for the chart. When the aspect ratio of the provided size does not match the chart aspect ratio, the chart is scaled and centered with respect to the size in
228
- * order to maintain aspect ratio. The provided transform is applied after this operation.
229
- */
230
- elementProperties?:
231
- PageElementProperties;
232
- /** The mode with which the chart is linked to the source spreadsheet. When not specified, the chart will be an image that is not linked. */
233
- linkingMode?:
234
- string;
235
- /**
236
- * A user-supplied object ID. If specified, the ID must be unique among all pages and page elements in the presentation. The ID should start with a word character [a-zA-Z0-9_] and then
237
- * followed by any number of the following characters [a-zA-Z0-9_-:]. The length of the ID should not be less than 5 or greater than 50. If empty, a unique identifier will be
238
- * generated.
239
- */
240
- objectId?:
241
- string;
242
- /**
243
- * The ID of the Google Sheets spreadsheet that contains the chart. You might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access
244
- * link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
245
- */
246
- spreadsheetId?:
247
- string;
248
- }
249
- interface CreateSheetsChartResponse {
250
- /** The object ID of the created chart. */
251
- objectId?:
252
- string;
253
- }
254
- interface CreateSlideRequest {
255
- /** The optional zero-based index indicating where to insert the slides. If you don't specify an index, the slide is created at the end. */
256
- insertionIndex?:
257
- number;
258
- /**
259
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
260
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The ID length must be between 5 and
261
- * 50 characters, inclusive. If you don't specify an ID, a unique one is generated.
262
- */
263
- objectId?:
264
- string;
265
- /**
266
- * An optional list of object ID mappings from the placeholder(s) on the layout to the placeholders that are created on the slide from the specified layout. Can only be used when
267
- * `slide_layout_reference` is specified.
268
- */
269
- placeholderIdMappings?:
270
- LayoutPlaceholderIdMapping[];
271
- /**
272
- * Layout reference of the slide to be inserted, based on the *current master*, which is one of the following: - The master of the previous slide index. - The master of the first
273
- * slide, if the insertion_index is zero. - The first master in the presentation, if there are no slides. If the LayoutReference is not found in the current master, a 400 bad request
274
- * error is returned. If you don't specify a layout reference, the slide uses the predefined `BLANK` layout.
275
- */
276
- slideLayoutReference?:
277
- LayoutReference;
278
- }
279
- interface CreateSlideResponse {
280
- /** The object ID of the created slide. */
281
- objectId?:
282
- string;
283
- }
284
- interface CreateTableRequest {
285
- /** Number of columns in the table. */
286
- columns?:
287
- number;
288
- /**
289
- * The element properties for the table. The table will be created at the provided size, subject to a minimum size. If no size is provided, the table will be automatically sized. Table
290
- * transforms must have a scale of 1 and no shear components. If no transform is provided, the table will be centered on the page.
291
- */
292
- elementProperties?:
293
- PageElementProperties;
294
- /**
295
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
296
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be
297
- * less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
298
- */
299
- objectId?:
300
- string;
301
- /** Number of rows in the table. */
302
- rows?:
303
- number;
304
- }
305
- interface CreateTableResponse {
306
- /** The object ID of the created table. */
307
- objectId?:
308
- string;
309
- }
310
- interface CreateVideoRequest {
311
- /**
312
- * The element properties for the video. The PageElementProperties.size property is optional. If you don't specify a size, a default size is chosen by the server. The
313
- * PageElementProperties.transform property is optional. The transform must not have shear components. If you don't specify a transform, the video will be placed at the top left corner
314
- * of the page.
315
- */
316
- elementProperties?:
317
- PageElementProperties;
318
- /**
319
- * The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video
320
- * https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q. To access a Google Drive video file, you might need to add a resource
321
- * key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
322
- */
323
- id?:
324
- string;
325
- /**
326
- * A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an
327
- * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be
328
- * less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
329
- */
330
- objectId?:
331
- string;
332
- /** The video source. */
333
- source?:
334
- string;
335
- }
336
- interface CreateVideoResponse {
337
- /** The object ID of the created video. */
338
- objectId?:
339
- string;
340
- }
341
- interface CropProperties {
342
- /** The rotation angle of the crop window around its center, in radians. Rotation angle is applied after the offset. */
343
- angle?:
344
- number;
345
- /** The offset specifies the bottom edge of the crop rectangle that is located above the original bounding rectangle bottom edge, relative to the object's original height. */
346
- bottomOffset?:
347
- number;
348
- /** The offset specifies the left edge of the crop rectangle that is located to the right of the original bounding rectangle left edge, relative to the object's original width. */
349
- leftOffset?:
350
- number;
351
- /** The offset specifies the right edge of the crop rectangle that is located to the left of the original bounding rectangle right edge, relative to the object's original width. */
352
- rightOffset?:
353
- number;
354
- /** The offset specifies the top edge of the crop rectangle that is located below the original bounding rectangle top edge, relative to the object's original height. */
355
- topOffset?:
356
- number;
357
- }
358
- interface DeleteObjectRequest {
359
- /**
360
- * The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted
361
- * on a layout, any empty inheriting placeholders are also deleted.
362
- */
363
- objectId?:
364
- string;
365
- }
366
- interface DeleteParagraphBulletsRequest {
367
- /** The optional table cell location if the text to be modified is in a table cell. If present, the object_id must refer to a table. */
368
- cellLocation?:
369
- TableCellLocation;
370
- /** The object ID of the shape or table containing the text to delete bullets from. */
371
- objectId?:
372
- string;
373
- /** The range of text to delete bullets from, based on TextElement indexes. */
374
- textRange?:
375
- Range;
376
- }
377
- interface DeleteTableColumnRequest {
378
- /**
379
- * The reference table cell location from which a column will be deleted. The column this cell spans will be deleted. If this is a merged cell, multiple columns will be deleted. If no
380
- * columns remain in the table after this deletion, the whole table is deleted.
381
- */
382
- cellLocation?:
383
- TableCellLocation;
384
- /** The table to delete columns from. */
385
- tableObjectId?:
386
- string;
387
- }
388
- interface DeleteTableRowRequest {
389
- /**
390
- * The reference table cell location from which a row will be deleted. The row this cell spans will be deleted. If this is a merged cell, multiple rows will be deleted. If no rows
391
- * remain in the table after this deletion, the whole table is deleted.
392
- */
393
- cellLocation?:
394
- TableCellLocation;
395
- /** The table to delete rows from. */
396
- tableObjectId?:
397
- string;
398
- }
399
- interface DeleteTextRequest {
400
- /** The optional table cell location if the text is to be deleted from a table cell. If present, the object_id must refer to a table. */
401
- cellLocation?:
402
- TableCellLocation;
403
- /** The object ID of the shape or table from which the text will be deleted. */
404
- objectId?:
405
- string;
406
- /**
407
- * The range of text to delete, based on TextElement indexes. There is always an implicit newline character at the end of a shape's or table cell's text that cannot be deleted.
408
- * `Range.Type.ALL` will use the correct bounds, but care must be taken when specifying explicit bounds for range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the text
409
- * is "ABC", followed by an implicit newline, then the maximum value is 2 for `text_range.start_index` and 3 for `text_range.end_index`. Deleting text that crosses a paragraph boundary
410
- * may result in changes to paragraph styles and lists as the two paragraphs are merged. Ranges that include only one code unit of a surrogate pair are expanded to include both code
411
- * units.
412
- */
413
- textRange?:
414
- Range;
415
- }
416
- interface Dimension {
417
- /** The magnitude. */
418
- magnitude?:
419
- number;
420
- /** The units for magnitude. */
421
- unit?:
422
- string;
423
- }
424
- interface DuplicateObjectRequest {
425
- /** The ID of the object to duplicate. */
426
- objectId?:
427
- string;
428
- /**
429
- * The object being duplicated may contain other objects, for example when duplicating a slide or a group page element. This map defines how the IDs of duplicated objects are
430
- * generated: the keys are the IDs of the original objects and its values are the IDs that will be assigned to the corresponding duplicate object. The ID of the source object's
431
- * duplicate may be specified in this map as well, using the same value of the `object_id` field as a key and the newly desired ID as the value. All keys must correspond to existing
432
- * IDs in the presentation. All values must be unique in the presentation and must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining
433
- * characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5 or greater than 50. If any IDs of source
434
- * objects are omitted from the map, a new random ID will be assigned. If the map is empty or unset, all duplicate objects will receive a new random ID.
435
- */
436
- objectIds?:
437
- { [P in string]: string };
438
- }
439
- interface DuplicateObjectResponse {
440
- /** The ID of the new duplicate object. */
441
- objectId?:
442
- string;
443
- }
444
- interface Group {
445
- /** The collection of elements in the group. The minimum size of a group is 2. */
446
- children?:
447
- PageElement[];
448
- }
449
- interface GroupObjectsRequest {
450
- /**
451
- * The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some
452
- * page elements, such as videos, tables and placeholders cannot be grouped.
453
- */
454
- childrenObjectIds?:
455
- string[];
456
- /**
457
- * A user-supplied object ID for the group to be created. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an
458
- * alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The
459
- * length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
460
- */
461
- groupObjectId?:
462
- string;
463
- }
464
- interface GroupObjectsResponse {
465
- /** The object ID of the created group. */
466
- objectId?:
467
- string;
468
- }
469
- interface Image {
470
- /**
471
- * An URL to an image with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original
472
- * requester. Access to the image may be lost if the presentation's sharing settings change.
473
- */
474
- contentUrl?:
475
- string;
476
- /** The properties of the image. */
477
- imageProperties?:
478
- ImageProperties;
479
- /**
480
- * Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the image is a placeholder image and any inherited properties can be
481
- * resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
482
- */
483
- placeholder?:
484
- Placeholder;
485
- /** The source URL is the URL used to insert the image. The source URL can be empty. */
486
- sourceUrl?:
487
- string;
488
- }
489
- interface ImageProperties {
490
- /** The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. This property is read-only. */
491
- brightness?:
492
- number;
493
- /** The contrast effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. This property is read-only. */
494
- contrast?:
495
- number;
496
- /** The crop properties of the image. If not set, the image is not cropped. This property is read-only. */
497
- cropProperties?:
498
- CropProperties;
499
- /** The hyperlink destination of the image. If unset, there is no link. */
500
- link?:
501
- Link;
502
- /** The outline of the image. If not set, the image has no outline. */
503
- outline?:
504
- Outline;
505
- /** The recolor effect of the image. If not set, the image is not recolored. This property is read-only. */
506
- recolor?:
507
- Recolor;
508
- /** The shadow of the image. If not set, the image has no shadow. This property is read-only. */
509
- shadow?:
510
- Shadow;
511
- /** The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means completely transparent. This property is read-only. */
512
- transparency?:
513
- number;
514
- }
515
- interface InsertTableColumnsRequest {
516
- /**
517
- * The reference table cell location from which columns will be inserted. A new column will be inserted to the left (or right) of the column where the reference cell is. If the
518
- * reference cell is a merged cell, a new column will be inserted to the left (or right) of the merged cell.
519
- */
520
- cellLocation?:
521
- TableCellLocation;
522
- /** Whether to insert new columns to the right of the reference cell location. - `True`: insert to the right. - `False`: insert to the left. */
523
- insertRight?:
524
- boolean;
525
- /** The number of columns to be inserted. Maximum 20 per request. */
526
- number?:
527
- number;
528
- /** The table to insert columns into. */
529
- tableObjectId?:
530
- string;
531
- }
532
- interface InsertTableRowsRequest {
533
- /**
534
- * The reference table cell location from which rows will be inserted. A new row will be inserted above (or below) the row where the reference cell is. If the reference cell is a
535
- * merged cell, a new row will be inserted above (or below) the merged cell.
536
- */
537
- cellLocation?:
538
- TableCellLocation;
539
- /** Whether to insert new rows below the reference cell location. - `True`: insert below the cell. - `False`: insert above the cell. */
540
- insertBelow?:
541
- boolean;
542
- /** The number of rows to be inserted. Maximum 20 per request. */
543
- number?:
544
- number;
545
- /** The table to insert rows into. */
546
- tableObjectId?:
547
- string;
548
- }
549
- interface InsertTextRequest {
550
- /** The optional table cell location if the text is to be inserted into a table cell. If present, the object_id must refer to a table. */
551
- cellLocation?:
552
- TableCellLocation;
553
- /**
554
- * The index where the text will be inserted, in Unicode code units, based on TextElement indexes. The index is zero-based and is computed from the start of the string. The index may
555
- * be adjusted to prevent insertions inside Unicode grapheme clusters. In these cases, the text will be inserted immediately after the grapheme cluster.
556
- */
557
- insertionIndex?:
558
- number;
559
- /** The object ID of the shape or table where the text will be inserted. */
560
- objectId?:
561
- string;
562
- /**
563
- * The text to be inserted. Inserting a newline character will implicitly create a new ParagraphMarker at that index. The paragraph style of the new paragraph will be copied from the
564
- * paragraph at the current insertion index, including lists and bullets. Text styles for inserted text will be determined automatically, generally preserving the styling of
565
- * neighboring text. In most cases, the text will be added to the TextRun that exists at the insertion index. Some control characters (U+0000-U+0008, U+000C-U+001F) and characters from
566
- * the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) will be stripped out of the inserted text.
567
- */
568
- text?:
569
- string;
570
- }
571
- interface LayoutPlaceholderIdMapping {
572
- /**
573
- * The placeholder on a layout that will be applied to a slide. Only type and index are needed. For example, a predefined `TITLE_AND_BODY` layout may usually have a TITLE placeholder
574
- * with index 0 and a BODY placeholder with index 0.
575
- */
576
- layoutPlaceholder?:
577
- Placeholder;
578
- /** The object ID of the placeholder on a layout that will be applied to a slide. */
579
- layoutPlaceholderObjectId?:
580
- string;
581
- /**
582
- * A user-supplied object ID for the placeholder identified above that to be created onto a slide. If you specify an ID, it must be unique among all pages and page elements in the
583
- * presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon
584
- * (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
585
- */
586
- objectId?:
587
- string;
588
- }
589
- interface LayoutProperties {
590
- /** The human-readable name of the layout. */
591
- displayName?:
592
- string;
593
- /** The object ID of the master that this layout is based on. */
594
- masterObjectId?:
595
- string;
596
- /** The name of the layout. */
597
- name?:
598
- string;
599
- }
600
- interface LayoutReference {
601
- /** Layout ID: the object ID of one of the layouts in the presentation. */
602
- layoutId?:
603
- string;
604
- /** Predefined layout. */
605
- predefinedLayout?:
606
- string;
607
- }
608
- interface Line {
609
- /** The category of the line. It matches the `category` specified in CreateLineRequest, and can be updated with UpdateLineCategoryRequest. */
610
- lineCategory?:
611
- string;
612
- /** The properties of the line. */
613
- lineProperties?:
614
- LineProperties;
615
- /** The type of the line. */
616
- lineType?:
617
- string;
618
- }
619
- interface LineConnection {
620
- /**
621
- * The object ID of the connected page element. Some page elements, such as groups, tables, and lines do not have connection sites and therefore cannot be connected to a connector
622
- * line.
623
- */
624
- connectedObjectId?:
625
- string;
626
- /**
627
- * The index of the connection site on the connected page element. In most cases, it corresponds to the predefined connection site index from the ECMA-376 standard. More information on
628
- * those connection sites can be found in the description of the "cnx" attribute in section 20.1.9.9 and Annex H. "Predefined DrawingML Shape and Text Geometries" of "Office Open XML
629
- * File Formats-Fundamentals and Markup Language Reference", part 1 of [ECMA-376 5th edition] (http://www.ecma-international.org/publications/standards/Ecma-376.htm). The position of
630
- * each connection site can also be viewed from Slides editor.
631
- */
632
- connectionSiteIndex?:
633
- number;
634
- }
635
- interface LineFill {
636
- /** Solid color fill. */
637
- solidFill?:
638
- SolidFill;
639
- }
640
- interface LineProperties {
641
- /** The dash style of the line. */
642
- dashStyle?:
643
- string;
644
- /** The style of the arrow at the end of the line. */
645
- endArrow?:
646
- string;
647
- /** The connection at the end of the line. If unset, there is no connection. Only lines with a Type indicating it is a "connector" can have an `end_connection`. */
648
- endConnection?:
649
- LineConnection;
650
- /** The fill of the line. The default line fill matches the defaults for new lines created in the Slides editor. */
651
- lineFill?:
652
- LineFill;
653
- /** The hyperlink destination of the line. If unset, there is no link. */
654
- link?:
655
- Link;
656
- /** The style of the arrow at the beginning of the line. */
657
- startArrow?:
658
- string;
659
- /** The connection at the beginning of the line. If unset, there is no connection. Only lines with a Type indicating it is a "connector" can have a `start_connection`. */
660
- startConnection?:
661
- LineConnection;
662
- /** The thickness of the line. */
663
- weight?:
664
- Dimension;
665
- }
666
- interface Link {
667
- /** If set, indicates this is a link to the specific page in this presentation with this ID. A page with this ID may not exist. */
668
- pageObjectId?:
669
- string;
670
- /** If set, indicates this is a link to a slide in this presentation, addressed by its position. */
671
- relativeLink?:
672
- string;
673
- /** If set, indicates this is a link to the slide at this zero-based index in the presentation. There may not be a slide at this index. */
674
- slideIndex?:
675
- number;
676
- /** If set, indicates this is a link to the external web page at this URL. */
677
- url?:
678
- string;
679
- }
680
- interface List {
681
- /** The ID of the list. */
682
- listId?:
683
- string;
684
- /**
685
- * A map of nesting levels to the properties of bullets at the associated level. A list has at most nine levels of nesting, so the possible values for the keys of this map are 0
686
- * through 8, inclusive.
687
- */
688
- nestingLevel?:
689
- { [P in string]: NestingLevel };
690
- }
691
- interface MasterProperties {
692
- /** The human-readable name of the master. */
693
- displayName?:
694
- string;
695
- }
696
- interface MergeTableCellsRequest {
697
- /** The object ID of the table. */
698
- objectId?:
699
- string;
700
- /**
701
- * The table range specifying which cells of the table to merge. Any text in the cells being merged will be concatenated and stored in the upper-left ("head") cell of the range. If the
702
- * range is non-rectangular (which can occur in some cases where the range covers cells that are already merged), a 400 bad request error is returned.
703
- */
704
- tableRange?:
705
- TableRange;
706
- }
707
- interface NestingLevel {
708
- /** The style of a bullet at this level of nesting. */
709
- bulletStyle?:
710
- TextStyle;
711
- }
712
- interface NotesProperties {
713
- /**
714
- * The object ID of the shape on this notes page that contains the speaker notes for the corresponding slide. The actual shape may not always exist on the notes page. Inserting text
715
- * using this object ID will automatically create the shape. In this case, the actual shape may have different object ID. The `GetPresentation` or `GetPage` action will always return
716
- * the latest object ID.
717
- */
718
- speakerNotesObjectId?:
719
- string;
720
- }
721
- interface OpaqueColor {
722
- /** An opaque RGB color. */
723
- rgbColor?:
724
- RgbColor;
725
- /** An opaque theme color. */
726
- themeColor?:
727
- string;
728
- }
729
- interface OptionalColor {
730
- /** If set, this will be used as an opaque color. If unset, this represents a transparent color. */
731
- opaqueColor?:
732
- OpaqueColor;
733
- }
734
- interface Outline {
735
- /** The dash style of the outline. */
736
- dashStyle?:
737
- string;
738
- /** The fill of the outline. */
739
- outlineFill?:
740
- OutlineFill;
741
- /**
742
- * The outline property state. Updating the outline on a page element will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no
743
- * outline on a page element, set this field to `NOT_RENDERED`. In this case, any other outline fields set in the same request will be ignored.
744
- */
745
- propertyState?:
746
- string;
747
- /** The thickness of the outline. */
748
- weight?:
749
- Dimension;
750
- }
751
- interface OutlineFill {
752
- /** Solid color fill. */
753
- solidFill?:
754
- SolidFill;
755
- }
756
- interface Page {
757
- /** Layout specific properties. Only set if page_type = LAYOUT. */
758
- layoutProperties?:
759
- LayoutProperties;
760
- /** Master specific properties. Only set if page_type = MASTER. */
761
- masterProperties?:
762
- MasterProperties;
763
- /** Notes specific properties. Only set if page_type = NOTES. */
764
- notesProperties?:
765
- NotesProperties;
766
- /** The object ID for this page. Object IDs used by Page and PageElement share the same namespace. */
767
- objectId?:
768
- string;
769
- /** The page elements rendered on the page. */
770
- pageElements?:
771
- PageElement[];
772
- /** The properties of the page. */
773
- pageProperties?:
774
- PageProperties;
775
- /** The type of the page. */
776
- pageType?:
777
- string;
778
- /**
779
- * Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if
780
- * the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned
781
- * revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the
782
- * presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to
783
- * internal factors such as ID format changes.
784
- */
785
- revisionId?:
786
- string;
787
- /** Slide specific properties. Only set if page_type = SLIDE. */
788
- slideProperties?:
789
- SlideProperties;
790
- }
791
- interface PageBackgroundFill {
792
- /**
793
- * The background fill property state. Updating the fill on a page will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no
794
- * fill on a page, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored.
795
- */
796
- propertyState?:
797
- string;
798
- /** Solid color fill. */
799
- solidFill?:
800
- SolidFill;
801
- /** Stretched picture fill. */
802
- stretchedPictureFill?:
803
- StretchedPictureFill;
804
- }
805
- interface PageElement {
806
- /** The description of the page element. Combined with title to display alt text. The field is not supported for Group elements. */
807
- description?:
808
- string;
809
- /** A collection of page elements joined as a single unit. */
810
- elementGroup?:
811
- Group;
812
- /** An image page element. */
813
- image?:
814
- Image;
815
- /** A line page element. */
816
- line?:
817
- Line;
818
- /** The object ID for this page element. Object IDs used by google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share the same namespace. */
819
- objectId?:
820
- string;
821
- /** A generic shape. */
822
- shape?:
823
- Shape;
824
- /** A linked chart embedded from Google Sheets. Unlinked charts are represented as images. */
825
- sheetsChart?:
826
- SheetsChart;
827
- /** The size of the page element. */
828
- size?:
829
- Size;
830
- /** A table page element. */
831
- table?:
832
- Table;
833
- /** The title of the page element. Combined with description to display alt text. The field is not supported for Group elements. */
834
- title?:
835
- string;
836
- /**
837
- * The transform of the page element. The visual appearance of the page element is determined by its absolute transform. To compute the absolute transform, preconcatenate a page
838
- * element's transform with the transforms of all of its parent groups. If the page element is not in a group, its absolute transform is the same as the value in this field. The
839
- * initial transform for the newly created Group is always the identity transform.
840
- */
841
- transform?:
842
- AffineTransform;
843
- /** A video page element. */
844
- video?:
845
- Video;
846
- /** A word art page element. */
847
- wordArt?:
848
- WordArt;
849
- }
850
- interface PageElementProperties {
851
- /** The object ID of the page where the element is located. */
852
- pageObjectId?:
853
- string;
854
- /** The size of the element. */
855
- size?:
856
- Size;
857
- /** The transform for the element. */
858
- transform?:
859
- AffineTransform;
860
- }
861
- interface PageProperties {
862
- /**
863
- * The color scheme of the page. If unset, the color scheme is inherited from a parent page. If the page has no parent, the color scheme uses a default Slides color scheme, matching
864
- * the defaults in the Slides editor. Only the concrete colors of the first 12 ThemeColorTypes are editable. In addition, only the color scheme on `Master` pages can be updated. To
865
- * update the field, a color scheme containing mappings from all the first 12 ThemeColorTypes to their concrete colors must be provided. Colors for the remaining ThemeColorTypes will
866
- * be ignored.
867
- */
868
- colorScheme?:
869
- ColorScheme;
870
- /**
871
- * The background fill of the page. If unset, the background fill is inherited from a parent page if it exists. If the page has no parent, then the background fill defaults to the
872
- * corresponding fill in the Slides editor.
873
- */
874
- pageBackgroundFill?:
875
- PageBackgroundFill;
876
- }
877
- interface ParagraphMarker {
878
- /** The bullet for this paragraph. If not present, the paragraph does not belong to a list. */
879
- bullet?:
880
- Bullet;
881
- /** The paragraph's style */
882
- style?:
883
- ParagraphStyle;
884
- }
885
- interface ParagraphStyle {
886
- /** The text alignment for this paragraph. */
887
- alignment?:
888
- string;
889
- /** The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since text direction is not inherited. */
890
- direction?:
891
- string;
892
- /** The amount indentation for the paragraph on the side that corresponds to the end of the text, based on the current text direction. If unset, the value is inherited from the parent. */
893
- indentEnd?:
894
- Dimension;
895
- /** The amount of indentation for the start of the first line of the paragraph. If unset, the value is inherited from the parent. */
896
- indentFirstLine?:
897
- Dimension;
898
- /**
899
- * The amount indentation for the paragraph on the side that corresponds to the start of the text, based on the current text direction. If unset, the value is inherited from the
900
- * parent.
901
- */
902
- indentStart?:
903
- Dimension;
904
- /** The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent. */
905
- lineSpacing?:
906
- number;
907
- /** The amount of extra space above the paragraph. If unset, the value is inherited from the parent. */
908
- spaceAbove?:
909
- Dimension;
910
- /** The amount of extra space below the paragraph. If unset, the value is inherited from the parent. */
911
- spaceBelow?:
912
- Dimension;
913
- /** The spacing mode for the paragraph. */
914
- spacingMode?:
915
- string;
916
- }
917
- interface Placeholder {
918
- /** The index of the placeholder. If the same placeholder types are present in the same page, they would have different index values. */
919
- index?:
920
- number;
921
- /** The object ID of this shape's parent placeholder. If unset, the parent placeholder shape does not exist, so the shape does not inherit properties from any other shape. */
922
- parentObjectId?:
923
- string;
924
- /** The type of the placeholder. */
925
- type?:
926
- string;
927
- }
928
- interface Presentation {
929
- /** The layouts in the presentation. A layout is a template that determines how content is arranged and styled on the slides that inherit from that layout. */
930
- layouts?:
931
- Page[];
932
- /** The locale of the presentation, as an IETF BCP 47 language tag. */
933
- locale?:
934
- string;
935
- /**
936
- * The slide masters in the presentation. A slide master contains all common page elements and the common properties for a set of layouts. They serve three purposes: - Placeholder
937
- * shapes on a master contain the default text styles and shape properties of all placeholder shapes on pages that use that master. - The master page properties define the common page
938
- * properties inherited by its layouts. - Any other shapes on the master slide appear on all slides using that master, regardless of their layout.
939
- */
940
- masters?:
941
- Page[];
942
- /**
943
- * The notes master in the presentation. It serves three purposes: - Placeholder shapes on a notes master contain the default text styles and shape properties of all placeholder shapes
944
- * on notes pages. Specifically, a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and a `BODY` placeholder shape contains the speaker notes. - The notes master page
945
- * properties define the common page properties inherited by all notes pages. - Any other shapes on the notes master appear on all notes pages. The notes master is read-only.
946
- */
947
- notesMaster?:
948
- Page;
949
- /** The size of pages in the presentation. */
950
- pageSize?:
951
- Size;
952
- /** The ID of the presentation. */
953
- presentationId?:
954
- string;
955
- /**
956
- * Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if
957
- * the user has edit access to the presentation. The revision ID is not a sequential number but a nebulous string. The format of the revision ID may change over time, so it should be
958
- * treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged
959
- * between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a
960
- * changed ID can also be due to internal factors such as ID format changes.
961
- */
962
- revisionId?:
963
- string;
964
- /** The slides in the presentation. A slide inherits properties from a slide layout. */
965
- slides?:
966
- Page[];
967
- /** The title of the presentation. */
968
- title?:
969
- string;
970
- }
971
- interface Range {
972
- /** The optional zero-based index of the end of the collection. Required for `FIXED_RANGE` ranges. */
973
- endIndex?:
974
- number;
975
- /** The optional zero-based index of the beginning of the collection. Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges. */
976
- startIndex?:
977
- number;
978
- /** The type of range. */
979
- type?:
980
- string;
981
- }
982
- interface Recolor {
983
- /**
984
- * The name of the recolor effect. The name is determined from the `recolor_stops` by matching the gradient against the colors in the page's current color scheme. This property is
985
- * read-only.
986
- */
987
- name?:
988
- string;
989
- /**
990
- * The recolor effect is represented by a gradient, which is a list of color stops. The colors in the gradient will replace the corresponding colors at the same position in the color
991
- * palette and apply to the image. This property is read-only.
992
- */
993
- recolorStops?:
994
- ColorStop[];
995
- }
996
- interface RefreshSheetsChartRequest {
997
- /** The object ID of the chart to refresh. */
998
- objectId?:
999
- string;
1000
- }
1001
- interface ReplaceAllShapesWithImageRequest {
1002
- /** If set, this request will replace all of the shapes that contain the given text. */
1003
- containsText?:
1004
- SubstringMatchCriteria;
1005
- /**
1006
- * The image replace method. If you specify both a `replace_method` and an `image_replace_method`, the `image_replace_method` takes precedence. If you do not specify a value for
1007
- * `image_replace_method`, but specify a value for `replace_method`, then the specified `replace_method` value is used. If you do not specify either, then CENTER_INSIDE is used.
1008
- */
1009
- imageReplaceMethod?:
1010
- string;
1011
- /**
1012
- * The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25
1013
- * megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. The URL itself is saved with the image, and exposed via the
1014
- * Image.source_url field.
1015
- */
1016
- imageUrl?:
1017
- string;
1018
- /**
1019
- * If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a
1020
- * page with that object ID doesn't exist in the presentation.
1021
- */
1022
- pageObjectIds?:
1023
- string[];
1024
- /**
1025
- * The replace method. *Deprecated*: use `image_replace_method` instead. If you specify both a `replace_method` and an `image_replace_method`, the `image_replace_method` takes
1026
- * precedence.
1027
- */
1028
- replaceMethod?:
1029
- string;
1030
- }
1031
- interface ReplaceAllShapesWithImageResponse {
1032
- /** The number of shapes replaced with images. */
1033
- occurrencesChanged?:
1034
- number;
1035
- }
1036
- interface ReplaceAllShapesWithSheetsChartRequest {
1037
- /** The ID of the specific chart in the Google Sheets spreadsheet. */
1038
- chartId?:
1039
- number;
1040
- /** The criteria that the shapes must match in order to be replaced. The request will replace all of the shapes that contain the given text. */
1041
- containsText?:
1042
- SubstringMatchCriteria;
1043
- /** The mode with which the chart is linked to the source spreadsheet. When not specified, the chart will be an image that is not linked. */
1044
- linkingMode?:
1045
- string;
1046
- /**
1047
- * If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a
1048
- * page with that object ID doesn't exist in the presentation.
1049
- */
1050
- pageObjectIds?:
1051
- string[];
1052
- /** The ID of the Google Sheets spreadsheet that contains the chart. */
1053
- spreadsheetId?:
1054
- string;
1055
- }
1056
- interface ReplaceAllShapesWithSheetsChartResponse {
1057
- /** The number of shapes replaced with charts. */
1058
- occurrencesChanged?:
1059
- number;
1060
- }
1061
- interface ReplaceAllTextRequest {
1062
- /** Finds text in a shape matching this substring. */
1063
- containsText?:
1064
- SubstringMatchCriteria;
1065
- /**
1066
- * If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes master, or if a page with that
1067
- * object ID doesn't exist in the presentation.
1068
- */
1069
- pageObjectIds?:
1070
- string[];
1071
- /** The text that will replace the matched text. */
1072
- replaceText?:
1073
- string;
1074
- }
1075
- interface ReplaceAllTextResponse {
1076
- /** The number of occurrences changed by replacing all text. */
1077
- occurrencesChanged?:
1078
- number;
1079
- }
1080
- interface ReplaceImageRequest {
1081
- /** The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request. */
1082
- imageObjectId?:
1083
- string;
1084
- /** The replacement method. */
1085
- imageReplaceMethod?:
1086
- string;
1087
- /**
1088
- * The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB, cannot exceed 25 megapixels, and
1089
- * must be in PNG, JPEG, or GIF format. The provided URL can't surpass 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field.
1090
- */
1091
- url?:
1092
- string;
1093
- }
1094
- interface Request {
1095
- /** Creates an image. */
1096
- createImage?:
1097
- CreateImageRequest;
1098
- /** Creates a line. */
1099
- createLine?:
1100
- CreateLineRequest;
1101
- /** Creates bullets for paragraphs. */
1102
- createParagraphBullets?:
1103
- CreateParagraphBulletsRequest;
1104
- /** Creates a new shape. */
1105
- createShape?:
1106
- CreateShapeRequest;
1107
- /** Creates an embedded Google Sheets chart. */
1108
- createSheetsChart?:
1109
- CreateSheetsChartRequest;
1110
- /** Creates a new slide. */
1111
- createSlide?:
1112
- CreateSlideRequest;
1113
- /** Creates a new table. */
1114
- createTable?:
1115
- CreateTableRequest;
1116
- /** Creates a video. */
1117
- createVideo?:
1118
- CreateVideoRequest;
1119
- /** Deletes a page or page element from the presentation. */
1120
- deleteObject?:
1121
- DeleteObjectRequest;
1122
- /** Deletes bullets from paragraphs. */
1123
- deleteParagraphBullets?:
1124
- DeleteParagraphBulletsRequest;
1125
- /** Deletes a column from a table. */
1126
- deleteTableColumn?:
1127
- DeleteTableColumnRequest;
1128
- /** Deletes a row from a table. */
1129
- deleteTableRow?:
1130
- DeleteTableRowRequest;
1131
- /** Deletes text from a shape or a table cell. */
1132
- deleteText?:
1133
- DeleteTextRequest;
1134
- /** Duplicates a slide or page element. */
1135
- duplicateObject?:
1136
- DuplicateObjectRequest;
1137
- /** Groups objects, such as page elements. */
1138
- groupObjects?:
1139
- GroupObjectsRequest;
1140
- /** Inserts columns into a table. */
1141
- insertTableColumns?:
1142
- InsertTableColumnsRequest;
1143
- /** Inserts rows into a table. */
1144
- insertTableRows?:
1145
- InsertTableRowsRequest;
1146
- /** Inserts text into a shape or table cell. */
1147
- insertText?:
1148
- InsertTextRequest;
1149
- /** Merges cells in a Table. */
1150
- mergeTableCells?:
1151
- MergeTableCellsRequest;
1152
- /** Refreshes a Google Sheets chart. */
1153
- refreshSheetsChart?:
1154
- RefreshSheetsChartRequest;
1155
- /** Replaces all shapes matching some criteria with an image. */
1156
- replaceAllShapesWithImage?:
1157
- ReplaceAllShapesWithImageRequest;
1158
- /** Replaces all shapes matching some criteria with a Google Sheets chart. */
1159
- replaceAllShapesWithSheetsChart?:
1160
- ReplaceAllShapesWithSheetsChartRequest;
1161
- /** Replaces all instances of specified text. */
1162
- replaceAllText?:
1163
- ReplaceAllTextRequest;
1164
- /** Replaces an existing image with a new image. */
1165
- replaceImage?:
1166
- ReplaceImageRequest;
1167
- /** Reroutes a line such that it's connected at the two closest connection sites on the connected page elements. */
1168
- rerouteLine?:
1169
- RerouteLineRequest;
1170
- /** Ungroups objects, such as groups. */
1171
- ungroupObjects?:
1172
- UngroupObjectsRequest;
1173
- /** Unmerges cells in a Table. */
1174
- unmergeTableCells?:
1175
- UnmergeTableCellsRequest;
1176
- /** Updates the properties of an Image. */
1177
- updateImageProperties?:
1178
- UpdateImagePropertiesRequest;
1179
- /** Updates the category of a line. */
1180
- updateLineCategory?:
1181
- UpdateLineCategoryRequest;
1182
- /** Updates the properties of a Line. */
1183
- updateLineProperties?:
1184
- UpdateLinePropertiesRequest;
1185
- /** Updates the alt text title and/or description of a page element. */
1186
- updatePageElementAltText?:
1187
- UpdatePageElementAltTextRequest;
1188
- /** Updates the Z-order of page elements. */
1189
- updatePageElementsZOrder?:
1190
- UpdatePageElementsZOrderRequest;
1191
- /** Updates the transform of a page element. */
1192
- updatePageElementTransform?:
1193
- UpdatePageElementTransformRequest;
1194
- /** Updates the properties of a Page. */
1195
- updatePageProperties?:
1196
- UpdatePagePropertiesRequest;
1197
- /** Updates the styling of paragraphs within a Shape or Table. */
1198
- updateParagraphStyle?:
1199
- UpdateParagraphStyleRequest;
1200
- /** Updates the properties of a Shape. */
1201
- updateShapeProperties?:
1202
- UpdateShapePropertiesRequest;
1203
- /** Updates the properties of a Slide */
1204
- updateSlideProperties?:
1205
- UpdateSlidePropertiesRequest;
1206
- /** Updates the position of a set of slides in the presentation. */
1207
- updateSlidesPosition?:
1208
- UpdateSlidesPositionRequest;
1209
- /** Updates the properties of the table borders in a Table. */
1210
- updateTableBorderProperties?:
1211
- UpdateTableBorderPropertiesRequest;
1212
- /** Updates the properties of a TableCell. */
1213
- updateTableCellProperties?:
1214
- UpdateTableCellPropertiesRequest;
1215
- /** Updates the properties of a Table column. */
1216
- updateTableColumnProperties?:
1217
- UpdateTableColumnPropertiesRequest;
1218
- /** Updates the properties of a Table row. */
1219
- updateTableRowProperties?:
1220
- UpdateTableRowPropertiesRequest;
1221
- /** Updates the styling of text within a Shape or Table. */
1222
- updateTextStyle?:
1223
- UpdateTextStyleRequest;
1224
- /** Updates the properties of a Video. */
1225
- updateVideoProperties?:
1226
- UpdateVideoPropertiesRequest;
1227
- }
1228
- interface RerouteLineRequest {
1229
- /**
1230
- * The object ID of the line to reroute. Only a line with a category indicating it is a "connector" can be rerouted. The start and end connections of the line must be on different page
1231
- * elements.
1232
- */
1233
- objectId?:
1234
- string;
1235
- }
1236
- interface Response {
1237
- /** The result of creating an image. */
1238
- createImage?:
1239
- CreateImageResponse;
1240
- /** The result of creating a line. */
1241
- createLine?:
1242
- CreateLineResponse;
1243
- /** The result of creating a shape. */
1244
- createShape?:
1245
- CreateShapeResponse;
1246
- /** The result of creating a Google Sheets chart. */
1247
- createSheetsChart?:
1248
- CreateSheetsChartResponse;
1249
- /** The result of creating a slide. */
1250
- createSlide?:
1251
- CreateSlideResponse;
1252
- /** The result of creating a table. */
1253
- createTable?:
1254
- CreateTableResponse;
1255
- /** The result of creating a video. */
1256
- createVideo?:
1257
- CreateVideoResponse;
1258
- /** The result of duplicating an object. */
1259
- duplicateObject?:
1260
- DuplicateObjectResponse;
1261
- /** The result of grouping objects. */
1262
- groupObjects?:
1263
- GroupObjectsResponse;
1264
- /** The result of replacing all shapes matching some criteria with an image. */
1265
- replaceAllShapesWithImage?:
1266
- ReplaceAllShapesWithImageResponse;
1267
- /** The result of replacing all shapes matching some criteria with a Google Sheets chart. */
1268
- replaceAllShapesWithSheetsChart?:
1269
- ReplaceAllShapesWithSheetsChartResponse;
1270
- /** The result of replacing text. */
1271
- replaceAllText?:
1272
- ReplaceAllTextResponse;
1273
- }
1274
- interface RgbColor {
1275
- /** The blue component of the color, from 0.0 to 1.0. */
1276
- blue?:
1277
- number;
1278
- /** The green component of the color, from 0.0 to 1.0. */
1279
- green?:
1280
- number;
1281
- /** The red component of the color, from 0.0 to 1.0. */
1282
- red?:
1283
- number;
1284
- }
1285
- interface Shadow {
1286
- /** The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow. This property is read-only. */
1287
- alignment?:
1288
- string;
1289
- /** The alpha of the shadow's color, from 0.0 to 1.0. */
1290
- alpha?:
1291
- number;
1292
- /** The radius of the shadow blur. The larger the radius, the more diffuse the shadow becomes. */
1293
- blurRadius?:
1294
- Dimension;
1295
- /** The shadow color value. */
1296
- color?:
1297
- OpaqueColor;
1298
- /**
1299
- * The shadow property state. Updating the shadow on a page element will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no
1300
- * shadow on a page element, set this field to `NOT_RENDERED`. In this case, any other shadow fields set in the same request will be ignored.
1301
- */
1302
- propertyState?:
1303
- string;
1304
- /** Whether the shadow should rotate with the shape. This property is read-only. */
1305
- rotateWithShape?:
1306
- boolean;
1307
- /** Transform that encodes the translate, scale, and skew of the shadow, relative to the alignment position. */
1308
- transform?:
1309
- AffineTransform;
1310
- /** The type of the shadow. This property is read-only. */
1311
- type?:
1312
- string;
1313
- }
1314
- interface Shape {
1315
- /**
1316
- * Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the shape is a placeholder shape and any inherited properties can be
1317
- * resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
1318
- */
1319
- placeholder?:
1320
- Placeholder;
1321
- /** The properties of the shape. */
1322
- shapeProperties?:
1323
- ShapeProperties;
1324
- /** The type of the shape. */
1325
- shapeType?:
1326
- string;
1327
- /** The text content of the shape. */
1328
- text?:
1329
- TextContent;
1330
- }
1331
- interface ShapeBackgroundFill {
1332
- /**
1333
- * The background fill property state. Updating the fill on a shape will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no
1334
- * fill on a shape, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored.
1335
- */
1336
- propertyState?:
1337
- string;
1338
- /** Solid color fill. */
1339
- solidFill?:
1340
- SolidFill;
1341
- }
1342
- interface ShapeProperties {
1343
- /** The autofit properties of the shape. This property is only set for shapes that allow text. */
1344
- autofit?:
1345
- Autofit;
1346
- /**
1347
- * The alignment of the content in the shape. If unspecified, the alignment is inherited from a parent placeholder if it exists. If the shape has no parent, the default alignment
1348
- * matches the alignment for new shapes created in the Slides editor.
1349
- */
1350
- contentAlignment?:
1351
- string;
1352
- /** The hyperlink destination of the shape. If unset, there is no link. Links are not inherited from parent placeholders. */
1353
- link?:
1354
- Link;
1355
- /**
1356
- * The outline of the shape. If unset, the outline is inherited from a parent placeholder if it exists. If the shape has no parent, then the default outline depends on the shape type,
1357
- * matching the defaults for new shapes created in the Slides editor.
1358
- */
1359
- outline?:
1360
- Outline;
1361
- /**
1362
- * The shadow properties of the shape. If unset, the shadow is inherited from a parent placeholder if it exists. If the shape has no parent, then the default shadow matches the
1363
- * defaults for new shapes created in the Slides editor. This property is read-only.
1364
- */
1365
- shadow?:
1366
- Shadow;
1367
- /**
1368
- * The background fill of the shape. If unset, the background fill is inherited from a parent placeholder if it exists. If the shape has no parent, then the default background fill
1369
- * depends on the shape type, matching the defaults for new shapes created in the Slides editor.
1370
- */
1371
- shapeBackgroundFill?:
1372
- ShapeBackgroundFill;
1373
- }
1374
- interface SheetsChart {
1375
- /** The ID of the specific chart in the Google Sheets spreadsheet that is embedded. */
1376
- chartId?:
1377
- number;
1378
- /**
1379
- * The URL of an image of the embedded chart, with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the
1380
- * image as the original requester. Access to the image may be lost if the presentation's sharing settings change.
1381
- */
1382
- contentUrl?:
1383
- string;
1384
- /** The properties of the Sheets chart. */
1385
- sheetsChartProperties?:
1386
- SheetsChartProperties;
1387
- /** The ID of the Google Sheets spreadsheet that contains the source chart. */
1388
- spreadsheetId?:
1389
- string;
1390
- }
1391
- interface SheetsChartProperties {
1392
- /** The properties of the embedded chart image. */
1393
- chartImageProperties?:
1394
- ImageProperties;
1395
- }
1396
- interface Size {
1397
- /** The height of the object. */
1398
- height?:
1399
- Dimension;
1400
- /** The width of the object. */
1401
- width?:
1402
- Dimension;
1403
- }
1404
- interface SlideProperties {
1405
- /** Whether the slide is skipped in the presentation mode. Defaults to false. */
1406
- isSkipped?:
1407
- boolean;
1408
- /** The object ID of the layout that this slide is based on. This property is read-only. */
1409
- layoutObjectId?:
1410
- string;
1411
- /** The object ID of the master that this slide is based on. This property is read-only. */
1412
- masterObjectId?:
1413
- string;
1414
- /**
1415
- * The notes page that this slide is associated with. It defines the visual appearance of a notes page when printing or exporting slides with speaker notes. A notes page inherits
1416
- * properties from the notes master. The placeholder shape with type BODY on the notes page contains the speaker notes for this slide. The ID of this shape is identified by the
1417
- * speakerNotesObjectId field. The notes page is read-only except for the text content and styles of the speaker notes shape. This property is read-only.
1418
- */
1419
- notesPage?:
1420
- Page;
1421
- }
1422
- interface SolidFill {
1423
- /**
1424
- * The fraction of this `color` that should be applied to the pixel. That is, the final pixel color is defined by the equation: pixel color = alpha * (color) + (1.0 - alpha) *
1425
- * (background color) This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color.
1426
- */
1427
- alpha?:
1428
- number;
1429
- /** The color value of the solid fill. */
1430
- color?:
1431
- OpaqueColor;
1432
- }
1433
- interface StretchedPictureFill {
1434
- /**
1435
- * Reading the content_url: An URL to a picture with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses
1436
- * the picture as the original requester. Access to the picture may be lost if the presentation's sharing settings change. Writing the content_url: The picture is fetched once at
1437
- * insertion time and a copy is stored for display inside the presentation. Pictures must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
1438
- * GIF format. The provided URL can be at most 2 kB in length.
1439
- */
1440
- contentUrl?:
1441
- string;
1442
- /** The original size of the picture fill. This field is read-only. */
1443
- size?:
1444
- Size;
1445
- }
1446
- interface SubstringMatchCriteria {
1447
- /** Indicates whether the search should respect case: - `True`: the search is case sensitive. - `False`: the search is case insensitive. */
1448
- matchCase?:
1449
- boolean;
1450
- /** The text to search for in the shape or table. */
1451
- text?:
1452
- string;
1453
- }
1454
- interface Table {
1455
- /** Number of columns in the table. */
1456
- columns?:
1457
- number;
1458
- /**
1459
- * Properties of horizontal cell borders. A table's horizontal cell borders are represented as a grid. The grid has one more row than the number of rows in the table and the same
1460
- * number of columns as the table. For example, if the table is 3 x 3, its horizontal borders will be represented as a grid with 4 rows and 3 columns.
1461
- */
1462
- horizontalBorderRows?:
1463
- TableBorderRow[];
1464
- /** Number of rows in the table. */
1465
- rows?:
1466
- number;
1467
- /** Properties of each column. */
1468
- tableColumns?:
1469
- TableColumnProperties[];
1470
- /** Properties and contents of each row. Cells that span multiple rows are contained in only one of these rows and have a row_span greater than 1. */
1471
- tableRows?:
1472
- TableRow[];
1473
- /**
1474
- * Properties of vertical cell borders. A table's vertical cell borders are represented as a grid. The grid has the same number of rows as the table and one more column than the number
1475
- * of columns in the table. For example, if the table is 3 x 3, its vertical borders will be represented as a grid with 3 rows and 4 columns.
1476
- */
1477
- verticalBorderRows?:
1478
- TableBorderRow[];
1479
- }
1480
- interface TableBorderCell {
1481
- /** The location of the border within the border table. */
1482
- location?:
1483
- TableCellLocation;
1484
- /** The border properties. */
1485
- tableBorderProperties?:
1486
- TableBorderProperties;
1487
- }
1488
- interface TableBorderFill {
1489
- /** Solid fill. */
1490
- solidFill?:
1491
- SolidFill;
1492
- }
1493
- interface TableBorderProperties {
1494
- /** The dash style of the border. */
1495
- dashStyle?:
1496
- string;
1497
- /** The fill of the table border. */
1498
- tableBorderFill?:
1499
- TableBorderFill;
1500
- /** The thickness of the border. */
1501
- weight?:
1502
- Dimension;
1503
- }
1504
- interface TableBorderRow {
1505
- /** Properties of each border cell. When a border's adjacent table cells are merged, it is not included in the response. */
1506
- tableBorderCells?:
1507
- TableBorderCell[];
1508
- }
1509
- interface TableCell {
1510
- /** Column span of the cell. */
1511
- columnSpan?:
1512
- number;
1513
- /** The location of the cell within the table. */
1514
- location?:
1515
- TableCellLocation;
1516
- /** Row span of the cell. */
1517
- rowSpan?:
1518
- number;
1519
- /** The properties of the table cell. */
1520
- tableCellProperties?:
1521
- TableCellProperties;
1522
- /** The text content of the cell. */
1523
- text?:
1524
- TextContent;
1525
- }
1526
- interface TableCellBackgroundFill {
1527
- /**
1528
- * The background fill property state. Updating the fill on a table cell will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have
1529
- * no fill on a table cell, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored.
1530
- */
1531
- propertyState?:
1532
- string;
1533
- /** Solid color fill. */
1534
- solidFill?:
1535
- SolidFill;
1536
- }
1537
- interface TableCellLocation {
1538
- /** The 0-based column index. */
1539
- columnIndex?:
1540
- number;
1541
- /** The 0-based row index. */
1542
- rowIndex?:
1543
- number;
1544
- }
1545
- interface TableCellProperties {
1546
- /** The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Slides editor. */
1547
- contentAlignment?:
1548
- string;
1549
- /** The background fill of the table cell. The default fill matches the fill for newly created table cells in the Slides editor. */
1550
- tableCellBackgroundFill?:
1551
- TableCellBackgroundFill;
1552
- }
1553
- interface TableColumnProperties {
1554
- /** Width of a column. */
1555
- columnWidth?:
1556
- Dimension;
1557
- }
1558
- interface TableRange {
1559
- /** The column span of the table range. */
1560
- columnSpan?:
1561
- number;
1562
- /** The starting location of the table range. */
1563
- location?:
1564
- TableCellLocation;
1565
- /** The row span of the table range. */
1566
- rowSpan?:
1567
- number;
1568
- }
1569
- interface TableRow {
1570
- /** Height of a row. */
1571
- rowHeight?:
1572
- Dimension;
1573
- /**
1574
- * Properties and contents of each cell. Cells that span multiple columns are represented only once with a column_span greater than 1. As a result, the length of this collection does
1575
- * not always match the number of columns of the entire table.
1576
- */
1577
- tableCells?:
1578
- TableCell[];
1579
- /** Properties of the row. */
1580
- tableRowProperties?:
1581
- TableRowProperties;
1582
- }
1583
- interface TableRowProperties {
1584
- /** Minimum height of the row. The row will be rendered in the Slides editor at a height equal to or greater than this value in order to show all the text in the row's cell(s). */
1585
- minRowHeight?:
1586
- Dimension;
1587
- }
1588
- interface TextContent {
1589
- /** The bulleted lists contained in this text, keyed by list ID. */
1590
- lists?:
1591
- { [P in string]: List };
1592
- /** The text contents broken down into its component parts, including styling information. This property is read-only. */
1593
- textElements?:
1594
- TextElement[];
1595
- }
1596
- interface TextElement {
1597
- /** A TextElement representing a spot in the text that is dynamically replaced with content that can change over time. */
1598
- autoText?:
1599
- AutoText;
1600
- /** The zero-based end index of this text element, exclusive, in Unicode code units. */
1601
- endIndex?:
1602
- number;
1603
- /**
1604
- * A marker representing the beginning of a new paragraph. The `start_index` and `end_index` of this TextElement represent the range of the paragraph. Other TextElements with an index
1605
- * range contained inside this paragraph's range are considered to be part of this paragraph. The range of indices of two separate paragraphs will never overlap.
1606
- */
1607
- paragraphMarker?:
1608
- ParagraphMarker;
1609
- /** The zero-based start index of this text element, in Unicode code units. */
1610
- startIndex?:
1611
- number;
1612
- /**
1613
- * A TextElement representing a run of text where all of the characters in the run have the same TextStyle. The `start_index` and `end_index` of TextRuns will always be fully contained
1614
- * in the index range of a single `paragraph_marker` TextElement. In other words, a TextRun will never span multiple paragraphs.
1615
- */
1616
- textRun?:
1617
- TextRun;
1618
- }
1619
- interface TextRun {
1620
- /** The text of this run. */
1621
- content?:
1622
- string;
1623
- /** The styling applied to this run. */
1624
- style?:
1625
- TextStyle;
1626
- }
1627
- interface TextStyle {
1628
- /** The background color of the text. If set, the color is either opaque or transparent, depending on if the `opaque_color` field in it is set. */
1629
- backgroundColor?:
1630
- OptionalColor;
1631
- /**
1632
- * The text's vertical offset from its normal position. Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered in a smaller font size, computed based on the
1633
- * `font_size` field. The `font_size` itself is not affected by changes in this field.
1634
- */
1635
- baselineOffset?:
1636
- string;
1637
- /** Whether or not the text is rendered as bold. */
1638
- bold?:
1639
- boolean;
1640
- /**
1641
- * The font family of the text. The font family can be any font from the Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). If the font name is unrecognized, the
1642
- * text is rendered in `Arial`. Some fonts can affect the weight of the text. If an update request specifies values for both `font_family` and `bold`, the explicitly-set `bold` value
1643
- * is used.
1644
- */
1645
- fontFamily?:
1646
- string;
1647
- /** The size of the text's font. When read, the `font_size` will specified in points. */
1648
- fontSize?:
1649
- Dimension;
1650
- /** The color of the text itself. If set, the color is either opaque or transparent, depending on if the `opaque_color` field in it is set. */
1651
- foregroundColor?:
1652
- OptionalColor;
1653
- /** Whether or not the text is italicized. */
1654
- italic?:
1655
- boolean;
1656
- /**
1657
- * The hyperlink destination of the text. If unset, there is no link. Links are not inherited from parent text. Changing the link in an update request causes some other changes to the
1658
- * text style of the range: * When setting a link, the text foreground color will be set to ThemeColorType.HYPERLINK and the text will be underlined. If these fields are modified in
1659
- * the same request, those values will be used instead of the link defaults. * Setting a link on a text range that overlaps with an existing link will also update the existing link to
1660
- * point to the new URL. * Links are not settable on newline characters. As a result, setting a link on a text range that crosses a paragraph boundary, such as `"ABC\n123"`, will
1661
- * separate the newline character(s) into their own text runs. The link will be applied separately to the runs before and after the newline. * Removing a link will update the text
1662
- * style of the range to match the style of the preceding text (or the default text styles if the preceding text is another link) unless different styles are being set in the same
1663
- * request.
1664
- */
1665
- link?:
1666
- Link;
1667
- /** Whether or not the text is in small capital letters. */
1668
- smallCaps?:
1669
- boolean;
1670
- /** Whether or not the text is struck through. */
1671
- strikethrough?:
1672
- boolean;
1673
- /** Whether or not the text is underlined. */
1674
- underline?:
1675
- boolean;
1676
- /**
1677
- * The font family and rendered weight of the text. This field is an extension of `font_family` meant to support explicit font weights without breaking backwards compatibility. As
1678
- * such, when reading the style of a range of text, the value of `weighted_font_family#font_family` will always be equal to that of `font_family`. However, when writing, if both fields
1679
- * are included in the field mask (either explicitly or through the wildcard `"*"`), their values are reconciled as follows: * If `font_family` is set and `weighted_font_family` is
1680
- * not, the value of `font_family` is applied with weight `400` ("normal"). * If both fields are set, the value of `font_family` must match that of `weighted_font_family#font_family`.
1681
- * If so, the font family and weight of `weighted_font_family` is applied. Otherwise, a 400 bad request error is returned. * If `weighted_font_family` is set and `font_family` is not,
1682
- * the font family and weight of `weighted_font_family` is applied. * If neither field is set, the font family and weight of the text inherit from the parent. Note that these
1683
- * properties cannot inherit separately from each other. If an update request specifies values for both `weighted_font_family` and `bold`, the `weighted_font_family` is applied first,
1684
- * then `bold`. If `weighted_font_family#weight` is not set, it defaults to `400`. If `weighted_font_family` is set, then `weighted_font_family#font_family` must also be set with a
1685
- * non-empty value. Otherwise, a 400 bad request error is returned.
1686
- */
1687
- weightedFontFamily?:
1688
- WeightedFontFamily;
1689
- }
1690
- interface ThemeColorPair {
1691
- /** The concrete color corresponding to the theme color type above. */
1692
- color?:
1693
- RgbColor;
1694
- /** The type of the theme color. */
1695
- type?:
1696
- string;
1697
- }
1698
- interface Thumbnail {
1699
- /**
1700
- * The content URL of the thumbnail image. The URL to the image has a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL
1701
- * effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. The mime type of the thumbnail image is the
1702
- * same as specified in the `GetPageThumbnailRequest`.
1703
- */
1704
- contentUrl?:
1705
- string;
1706
- /** The positive height in pixels of the thumbnail image. */
1707
- height?:
1708
- number;
1709
- /** The positive width in pixels of the thumbnail image. */
1710
- width?:
1711
- number;
1712
- }
1713
- interface UngroupObjectsRequest {
1714
- /**
1715
- * The object IDs of the objects to ungroup. Only groups that are not inside other groups can be ungrouped. All the groups should be on the same page. The group itself is deleted. The
1716
- * visual sizes and positions of all the children are preserved.
1717
- */
1718
- objectIds?:
1719
- string[];
1720
- }
1721
- interface UnmergeTableCellsRequest {
1722
- /** The object ID of the table. */
1723
- objectId?:
1724
- string;
1725
- /**
1726
- * The table range specifying which cells of the table to unmerge. All merged cells in this range will be unmerged, and cells that are already unmerged will not be affected. If the
1727
- * range has no merged cells, the request will do nothing. If there is text in any of the merged cells, the text will remain in the upper-left ("head") cell of the resulting block of
1728
- * unmerged cells.
1729
- */
1730
- tableRange?:
1731
- TableRange;
1732
- }
1733
- interface UpdateImagePropertiesRequest {
1734
- /**
1735
- * The fields that should be updated. At least one field must be specified. The root `imageProperties` is implied and should not be specified. A single `"*"` can be used as short-hand
1736
- * for listing every field. For example to update the image outline color, set `fields` to `"outline.outlineFill.solidFill.color"`. To reset a property to its default value, include
1737
- * its field name in the field mask but leave the field itself unset.
1738
- */
1739
- fields?:
1740
- string;
1741
- /** The image properties to update. */
1742
- imageProperties?:
1743
- ImageProperties;
1744
- /** The object ID of the image the updates are applied to. */
1745
- objectId?:
1746
- string;
1747
- }
1748
- interface UpdateLineCategoryRequest {
1749
- /** The line category to update to. The exact line type is determined based on the category to update to and how it's routed to connect to other page elements. */
1750
- lineCategory?:
1751
- string;
1752
- /** The object ID of the line the update is applied to. Only a line with a category indicating it is a "connector" can be updated. The line may be rerouted after updating its category. */
1753
- objectId?:
1754
- string;
1755
- }
1756
- interface UpdateLinePropertiesRequest {
1757
- /**
1758
- * The fields that should be updated. At least one field must be specified. The root `lineProperties` is implied and should not be specified. A single `"*"` can be used as short-hand
1759
- * for listing every field. For example to update the line solid fill color, set `fields` to `"lineFill.solidFill.color"`. To reset a property to its default value, include its field
1760
- * name in the field mask but leave the field itself unset.
1761
- */
1762
- fields?:
1763
- string;
1764
- /** The line properties to update. */
1765
- lineProperties?:
1766
- LineProperties;
1767
- /** The object ID of the line the update is applied to. */
1768
- objectId?:
1769
- string;
1770
- }
1771
- interface UpdatePageElementAltTextRequest {
1772
- /**
1773
- * The updated alt text description of the page element. If unset the existing value will be maintained. The description is exposed to screen readers and other accessibility
1774
- * interfaces. Only use human readable values related to the content of the page element.
1775
- */
1776
- description?:
1777
- string;
1778
- /** The object ID of the page element the updates are applied to. */
1779
- objectId?:
1780
- string;
1781
- /**
1782
- * The updated alt text title of the page element. If unset the existing value will be maintained. The title is exposed to screen readers and other accessibility interfaces. Only use
1783
- * human readable values related to the content of the page element.
1784
- */
1785
- title?:
1786
- string;
1787
- }
1788
- interface UpdatePageElementsZOrderRequest {
1789
- /**
1790
- * The Z-order operation to apply on the page elements. When applying the operation on multiple page elements, the relative Z-orders within these page elements before the operation is
1791
- * maintained.
1792
- */
1793
- operation?:
1794
- string;
1795
- /** The object IDs of the page elements to update. All the page elements must be on the same page and must not be grouped. */
1796
- pageElementObjectIds?:
1797
- string[];
1798
- }
1799
- interface UpdatePageElementTransformRequest {
1800
- /** The apply mode of the transform update. */
1801
- applyMode?:
1802
- string;
1803
- /** The object ID of the page element to update. */
1804
- objectId?:
1805
- string;
1806
- /** The input transform matrix used to update the page element. */
1807
- transform?:
1808
- AffineTransform;
1809
- }
1810
- interface UpdatePagePropertiesRequest {
1811
- /**
1812
- * The fields that should be updated. At least one field must be specified. The root `pageProperties` is implied and should not be specified. A single `"*"` can be used as short-hand
1813
- * for listing every field. For example to update the page background solid fill color, set `fields` to `"pageBackgroundFill.solidFill.color"`. To reset a property to its default
1814
- * value, include its field name in the field mask but leave the field itself unset.
1815
- */
1816
- fields?:
1817
- string;
1818
- /** The object ID of the page the update is applied to. */
1819
- objectId?:
1820
- string;
1821
- /** The page properties to update. */
1822
- pageProperties?:
1823
- PageProperties;
1824
- }
1825
- interface UpdateParagraphStyleRequest {
1826
- /** The location of the cell in the table containing the paragraph(s) to style. If `object_id` refers to a table, `cell_location` must have a value. Otherwise, it must not. */
1827
- cellLocation?:
1828
- TableCellLocation;
1829
- /**
1830
- * The fields that should be updated. At least one field must be specified. The root `style` is implied and should not be specified. A single `"*"` can be used as short-hand for
1831
- * listing every field. For example, to update the paragraph alignment, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field
1832
- * mask but leave the field itself unset.
1833
- */
1834
- fields?:
1835
- string;
1836
- /** The object ID of the shape or table with the text to be styled. */
1837
- objectId?:
1838
- string;
1839
- /** The paragraph's style. */
1840
- style?:
1841
- ParagraphStyle;
1842
- /** The range of text containing the paragraph(s) to style. */
1843
- textRange?:
1844
- Range;
1845
- }
1846
- interface UpdateShapePropertiesRequest {
1847
- /**
1848
- * The fields that should be updated. At least one field must be specified. The root `shapeProperties` is implied and should not be specified. A single `"*"` can be used as short-hand
1849
- * for listing every field. For example to update the shape background solid fill color, set `fields` to `"shapeBackgroundFill.solidFill.color"`. To reset a property to its default
1850
- * value, include its field name in the field mask but leave the field itself unset.
1851
- */
1852
- fields?:
1853
- string;
1854
- /** The object ID of the shape the updates are applied to. */
1855
- objectId?:
1856
- string;
1857
- /** The shape properties to update. */
1858
- shapeProperties?:
1859
- ShapeProperties;
1860
- }
1861
- interface UpdateSlidePropertiesRequest {
1862
- /**
1863
- * The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `"*"` can be used as short-hand
1864
- * for listing every field. For example to update whether a slide is skipped, set `fields` to `"isSkipped"`. To reset a property to its default value, include its field name in the
1865
- * field mask but leave the field itself unset.
1866
- */
1867
- fields?:
1868
- string;
1869
- /** The object ID of the slide the update is applied to. */
1870
- objectId?:
1871
- string;
1872
- /** The slide properties to update. */
1873
- slideProperties?:
1874
- SlideProperties;
1875
- }
1876
- interface UpdateSlidesPositionRequest {
1877
- /**
1878
- * The index where the slides should be inserted, based on the slide arrangement before the move takes place. Must be between zero and the number of slides in the presentation,
1879
- * inclusive.
1880
- */
1881
- insertionIndex?:
1882
- number;
1883
- /** The IDs of the slides in the presentation that should be moved. The slides in this list must be in existing presentation order, without duplicates. */
1884
- slideObjectIds?:
1885
- string[];
1886
- }
1887
- interface UpdateTableBorderPropertiesRequest {
1888
- /** The border position in the table range the updates should apply to. If a border position is not specified, the updates will apply to all borders in the table range. */
1889
- borderPosition?:
1890
- string;
1891
- /**
1892
- * The fields that should be updated. At least one field must be specified. The root `tableBorderProperties` is implied and should not be specified. A single `"*"` can be used as
1893
- * short-hand for listing every field. For example to update the table border solid fill color, set `fields` to `"tableBorderFill.solidFill.color"`. To reset a property to its default
1894
- * value, include its field name in the field mask but leave the field itself unset.
1895
- */
1896
- fields?:
1897
- string;
1898
- /** The object ID of the table. */
1899
- objectId?:
1900
- string;
1901
- /** The table border properties to update. */
1902
- tableBorderProperties?:
1903
- TableBorderProperties;
1904
- /** The table range representing the subset of the table to which the updates are applied. If a table range is not specified, the updates will apply to the entire table. */
1905
- tableRange?:
1906
- TableRange;
1907
- }
1908
- interface UpdateTableCellPropertiesRequest {
1909
- /**
1910
- * The fields that should be updated. At least one field must be specified. The root `tableCellProperties` is implied and should not be specified. A single `"*"` can be used as
1911
- * short-hand for listing every field. For example to update the table cell background solid fill color, set `fields` to `"tableCellBackgroundFill.solidFill.color"`. To reset a
1912
- * property to its default value, include its field name in the field mask but leave the field itself unset.
1913
- */
1914
- fields?:
1915
- string;
1916
- /** The object ID of the table. */
1917
- objectId?:
1918
- string;
1919
- /** The table cell properties to update. */
1920
- tableCellProperties?:
1921
- TableCellProperties;
1922
- /** The table range representing the subset of the table to which the updates are applied. If a table range is not specified, the updates will apply to the entire table. */
1923
- tableRange?:
1924
- TableRange;
1925
- }
1926
- interface UpdateTableColumnPropertiesRequest {
1927
- /** The list of zero-based indices specifying which columns to update. If no indices are provided, all columns in the table will be updated. */
1928
- columnIndices?:
1929
- number[];
1930
- /**
1931
- * The fields that should be updated. At least one field must be specified. The root `tableColumnProperties` is implied and should not be specified. A single `"*"` can be used as
1932
- * short-hand for listing every field. For example to update the column width, set `fields` to `"column_width"`. If '"column_width"' is included in the field mask but the property is
1933
- * left unset, the column width will default to 406,400 EMU (32 points).
1934
- */
1935
- fields?:
1936
- string;
1937
- /** The object ID of the table. */
1938
- objectId?:
1939
- string;
1940
- /**
1941
- * The table column properties to update. If the value of `table_column_properties#column_width` in the request is less than 406,400 EMU (32 points), a 400 bad request error is
1942
- * returned.
1943
- */
1944
- tableColumnProperties?:
1945
- TableColumnProperties;
1946
- }
1947
- interface UpdateTableRowPropertiesRequest {
1948
- /**
1949
- * The fields that should be updated. At least one field must be specified. The root `tableRowProperties` is implied and should not be specified. A single `"*"` can be used as
1950
- * short-hand for listing every field. For example to update the minimum row height, set `fields` to `"min_row_height"`. If '"min_row_height"' is included in the field mask but the
1951
- * property is left unset, the minimum row height will default to 0.
1952
- */
1953
- fields?:
1954
- string;
1955
- /** The object ID of the table. */
1956
- objectId?:
1957
- string;
1958
- /** The list of zero-based indices specifying which rows to update. If no indices are provided, all rows in the table will be updated. */
1959
- rowIndices?:
1960
- number[];
1961
- /** The table row properties to update. */
1962
- tableRowProperties?:
1963
- TableRowProperties;
1964
- }
1965
- interface UpdateTextStyleRequest {
1966
- /** The location of the cell in the table containing the text to style. If `object_id` refers to a table, `cell_location` must have a value. Otherwise, it must not. */
1967
- cellLocation?:
1968
- TableCellLocation;
1969
- /**
1970
- * The fields that should be updated. At least one field must be specified. The root `style` is implied and should not be specified. A single `"*"` can be used as short-hand for
1971
- * listing every field. For example, to update the text style to bold, set `fields` to `"bold"`. To reset a property to its default value, include its field name in the field mask but
1972
- * leave the field itself unset.
1973
- */
1974
- fields?:
1975
- string;
1976
- /** The object ID of the shape or table with the text to be styled. */
1977
- objectId?:
1978
- string;
1979
- /**
1980
- * The style(s) to set on the text. If the value for a particular style matches that of the parent, that style will be set to inherit. Certain text style changes may cause other
1981
- * changes meant to mirror the behavior of the Slides editor. See the documentation of TextStyle for more information.
1982
- */
1983
- style?:
1984
- TextStyle;
1985
- /**
1986
- * The range of text to style. The range may be extended to include adjacent newlines. If the range fully contains a paragraph belonging to a list, the paragraph's bullet is also
1987
- * updated with the matching text style.
1988
- */
1989
- textRange?:
1990
- Range;
1991
- }
1992
- interface UpdateVideoPropertiesRequest {
1993
- /**
1994
- * The fields that should be updated. At least one field must be specified. The root `videoProperties` is implied and should not be specified. A single `"*"` can be used as short-hand
1995
- * for listing every field. For example to update the video outline color, set `fields` to `"outline.outlineFill.solidFill.color"`. To reset a property to its default value, include
1996
- * its field name in the field mask but leave the field itself unset.
1997
- */
1998
- fields?:
1999
- string;
2000
- /** The object ID of the video the updates are applied to. */
2001
- objectId?:
2002
- string;
2003
- /** The video properties to update. */
2004
- videoProperties?:
2005
- VideoProperties;
2006
- }
2007
- interface Video {
2008
- /** The video source's unique identifier for this video. */
2009
- id?:
2010
- string;
2011
- /** The video source. */
2012
- source?:
2013
- string;
2014
- /** An URL to a video. The URL is valid as long as the source video exists and sharing settings do not change. */
2015
- url?:
2016
- string;
2017
- /** The properties of the video. */
2018
- videoProperties?:
2019
- VideoProperties;
2020
- }
2021
- interface VideoProperties {
2022
- /** Whether to enable video autoplay when the page is displayed in present mode. Defaults to false. */
2023
- autoPlay?:
2024
- boolean;
2025
- /**
2026
- * The time at which to end playback, measured in seconds from the beginning of the video. If set, the end time should be after the start time. If not set or if you set this to a value
2027
- * that exceeds the video's length, the video will be played until its end.
2028
- */
2029
- end?:
2030
- number;
2031
- /** Whether to mute the audio during video playback. Defaults to false. */
2032
- mute?:
2033
- boolean;
2034
- /** The outline of the video. The default outline matches the defaults for new videos created in the Slides editor. */
2035
- outline?:
2036
- Outline;
2037
- /**
2038
- * The time at which to start playback, measured in seconds from the beginning of the video. If set, the start time should be before the end time. If you set this to a value that
2039
- * exceeds the video's length in seconds, the video will be played from the last second. If not set, the video will be played from the beginning.
2040
- */
2041
- start?:
2042
- number;
2043
- }
2044
- interface WeightedFontFamily {
2045
- /**
2046
- * The font family of the text. The font family can be any font from the Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). If the font name is unrecognized, the
2047
- * text is rendered in `Arial`.
2048
- */
2049
- fontFamily?:
2050
- string;
2051
- /**
2052
- * The rendered weight of the text. This field can have any value that is a multiple of `100` between `100` and `900`, inclusive. This range corresponds to the numerical values
2053
- * described in the CSS 2.1 Specification, [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness), with non-numerical values disallowed. Weights greater than or equal to
2054
- * `700` are considered bold, and weights less than `700`are not bold. The default value is `400` ("normal").
2055
- */
2056
- weight?:
2057
- number;
2058
- }
2059
- interface WordArt {
2060
- /** The text rendered as word art. */
2061
- renderedText?:
2062
- string;
2063
- }
2064
- interface WriteControl {
2065
- /**
2066
- * The revision ID of the presentation required for the write request. If specified and the required revision ID doesn't match the presentation's current revision ID, the request is
2067
- * not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.
2068
- */
2069
- requiredRevisionId?:
2070
- string;
2071
- }
2072
- interface PagesResource {
2073
- /** Gets the latest version of the specified page in the presentation. */
2074
- get(request?: {
2075
- /** V1 error format. */
2076
- "$.xgafv"?:
2077
- string;
2078
- /** OAuth access token. */
2079
- access_token?:
2080
- string;
2081
- /** Data format for response. */
2082
- alt?:
2083
- string;
2084
- /** JSONP */
2085
- callback?:
2086
- string;
2087
- /** Selector specifying which fields to include in a partial response. */
2088
- fields?:
2089
- string;
2090
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2091
- key?:
2092
- string;
2093
- /** OAuth 2.0 token for the current user. */
2094
- oauth_token?:
2095
- string;
2096
- /** The object ID of the page to retrieve. */
2097
- pageObjectId:
2098
- string;
2099
- /** The ID of the presentation to retrieve. */
2100
- presentationId:
2101
- string;
2102
- /** Returns response with indentations and line breaks. */
2103
- prettyPrint?:
2104
- boolean;
2105
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2106
- quotaUser?:
2107
- string;
2108
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2109
- upload_protocol?:
2110
- string;
2111
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2112
- uploadType?:
2113
- string;
2114
- }): client.Request<Page>;
2115
- /**
2116
- * Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image. This request counts as an [expensive read
2117
- * request](/slides/limits) for quota purposes.
2118
- */
2119
- getThumbnail(request?: {
2120
- /** V1 error format. */
2121
- "$.xgafv"?:
2122
- string;
2123
- /** OAuth access token. */
2124
- access_token?:
2125
- string;
2126
- /** Data format for response. */
2127
- alt?:
2128
- string;
2129
- /** JSONP */
2130
- callback?:
2131
- string;
2132
- /** Selector specifying which fields to include in a partial response. */
2133
- fields?:
2134
- string;
2135
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2136
- key?:
2137
- string;
2138
- /** OAuth 2.0 token for the current user. */
2139
- oauth_token?:
2140
- string;
2141
- /** The object ID of the page whose thumbnail to retrieve. */
2142
- pageObjectId:
2143
- string;
2144
- /** The ID of the presentation to retrieve. */
2145
- presentationId:
2146
- string;
2147
- /** Returns response with indentations and line breaks. */
2148
- prettyPrint?:
2149
- boolean;
2150
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2151
- quotaUser?:
2152
- string;
2153
- /** The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG. */
2154
- "thumbnailProperties.mimeType"?:
2155
- string;
2156
- /** The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image. */
2157
- "thumbnailProperties.thumbnailSize"?:
2158
- string;
2159
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2160
- upload_protocol?:
2161
- string;
2162
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2163
- uploadType?:
2164
- string;
2165
- }): client.Request<Thumbnail>;
2166
- }
2167
- interface PresentationsResource {
2168
- /**
2169
- * Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be
2170
- * applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The
2171
- * order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two
2172
- * empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly
2173
- * reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the
2174
- * updates in your request are guaranteed to be applied together atomically.
2175
- */
2176
- batchUpdate(request: {
2177
- /** V1 error format. */
2178
- "$.xgafv"?:
2179
- string;
2180
- /** OAuth access token. */
2181
- access_token?:
2182
- string;
2183
- /** Data format for response. */
2184
- alt?:
2185
- string;
2186
- /** JSONP */
2187
- callback?:
2188
- string;
2189
- /** Selector specifying which fields to include in a partial response. */
2190
- fields?:
2191
- string;
2192
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2193
- key?:
2194
- string;
2195
- /** OAuth 2.0 token for the current user. */
2196
- oauth_token?:
2197
- string;
2198
- /** The presentation to apply the updates to. */
2199
- presentationId:
2200
- string;
2201
- /** Returns response with indentations and line breaks. */
2202
- prettyPrint?:
2203
- boolean;
2204
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2205
- quotaUser?:
2206
- string;
2207
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2208
- upload_protocol?:
2209
- string;
2210
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2211
- uploadType?:
2212
- string;
2213
- /** Request body */
2214
- resource:
2215
- BatchUpdatePresentationRequest;
2216
- }): client.Request<BatchUpdatePresentationResponse>;
2217
- batchUpdate(request: {
2218
- /** V1 error format. */
2219
- "$.xgafv"?:
2220
- string;
2221
- /** OAuth access token. */
2222
- access_token?:
2223
- string;
2224
- /** Data format for response. */
2225
- alt?:
2226
- string;
2227
- /** JSONP */
2228
- callback?:
2229
- string;
2230
- /** Selector specifying which fields to include in a partial response. */
2231
- fields?:
2232
- string;
2233
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2234
- key?:
2235
- string;
2236
- /** OAuth 2.0 token for the current user. */
2237
- oauth_token?:
2238
- string;
2239
- /** The presentation to apply the updates to. */
2240
- presentationId:
2241
- string;
2242
- /** Returns response with indentations and line breaks. */
2243
- prettyPrint?:
2244
- boolean;
2245
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2246
- quotaUser?:
2247
- string;
2248
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2249
- upload_protocol?:
2250
- string;
2251
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2252
- uploadType?:
2253
- string;
2254
- },
2255
- body: BatchUpdatePresentationRequest): client.Request<BatchUpdatePresentationResponse>;
2256
- /**
2257
- * Creates a blank presentation using the title given in the request. If a `presentationId` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated.
2258
- * Other fields in the request, including any provided content, are ignored. Returns the created presentation.
2259
- */
2260
- create(request: {
2261
- /** V1 error format. */
2262
- "$.xgafv"?:
2263
- string;
2264
- /** OAuth access token. */
2265
- access_token?:
2266
- string;
2267
- /** Data format for response. */
2268
- alt?:
2269
- string;
2270
- /** JSONP */
2271
- callback?:
2272
- string;
2273
- /** Selector specifying which fields to include in a partial response. */
2274
- fields?:
2275
- string;
2276
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2277
- key?:
2278
- string;
2279
- /** OAuth 2.0 token for the current user. */
2280
- oauth_token?:
2281
- string;
2282
- /** Returns response with indentations and line breaks. */
2283
- prettyPrint?:
2284
- boolean;
2285
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2286
- quotaUser?:
2287
- string;
2288
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2289
- upload_protocol?:
2290
- string;
2291
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2292
- uploadType?:
2293
- string;
2294
- /** Request body */
2295
- resource:
2296
- Presentation;
2297
- }): client.Request<Presentation>;
2298
- create(request: {
2299
- /** V1 error format. */
2300
- "$.xgafv"?:
2301
- string;
2302
- /** OAuth access token. */
2303
- access_token?:
2304
- string;
2305
- /** Data format for response. */
2306
- alt?:
2307
- string;
2308
- /** JSONP */
2309
- callback?:
2310
- string;
2311
- /** Selector specifying which fields to include in a partial response. */
2312
- fields?:
2313
- string;
2314
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2315
- key?:
2316
- string;
2317
- /** OAuth 2.0 token for the current user. */
2318
- oauth_token?:
2319
- string;
2320
- /** Returns response with indentations and line breaks. */
2321
- prettyPrint?:
2322
- boolean;
2323
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2324
- quotaUser?:
2325
- string;
2326
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2327
- upload_protocol?:
2328
- string;
2329
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2330
- uploadType?:
2331
- string;
2332
- },
2333
- body: Presentation): client.Request<Presentation>;
2334
- /** Gets the latest version of the specified presentation. */
2335
- get(request?: {
2336
- /** V1 error format. */
2337
- "$.xgafv"?:
2338
- string;
2339
- /** OAuth access token. */
2340
- access_token?:
2341
- string;
2342
- /** Data format for response. */
2343
- alt?:
2344
- string;
2345
- /** JSONP */
2346
- callback?:
2347
- string;
2348
- /** Selector specifying which fields to include in a partial response. */
2349
- fields?:
2350
- string;
2351
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2352
- key?:
2353
- string;
2354
- /** OAuth 2.0 token for the current user. */
2355
- oauth_token?:
2356
- string;
2357
- /** The ID of the presentation to retrieve. */
2358
- presentationId:
2359
- string;
2360
- /** Returns response with indentations and line breaks. */
2361
- prettyPrint?:
2362
- boolean;
2363
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2364
- quotaUser?:
2365
- string;
2366
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2367
- upload_protocol?:
2368
- string;
2369
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2370
- uploadType?:
2371
- string;
2372
- }): client.Request<Presentation>;
2373
- pages:
2374
- PagesResource;
2375
- }
2376
-
2377
- const presentations: PresentationsResource;
26
+ namespace slides {
27
+ interface AffineTransform {
28
+ /** The X coordinate scaling element. */
29
+ scaleX?: number;
30
+ /** The Y coordinate scaling element. */
31
+ scaleY?: number;
32
+ /** The X coordinate shearing element. */
33
+ shearX?: number;
34
+ /** The Y coordinate shearing element. */
35
+ shearY?: number;
36
+ /** The X coordinate translation element. */
37
+ translateX?: number;
38
+ /** The Y coordinate translation element. */
39
+ translateY?: number;
40
+ /** The units for translate elements. */
41
+ unit?: string;
42
+ }
43
+ interface Autofit {
44
+ /** The autofit type of the shape. If the autofit type is AUTOFIT_TYPE_UNSPECIFIED, the autofit type is inherited from a parent placeholder if it exists. The field is automatically set to NONE if a request is made that might affect text fitting within its bounding text box. In this case the font_scale is applied to the font_size and the line_spacing_reduction is applied to the line_spacing. Both properties are also reset to default values. */
45
+ autofitType?: string;
46
+ /** The font scale applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 1. For TEXT_AUTOFIT, this value multiplied by the font_size gives the font size that is rendered in the editor. This property is read-only. */
47
+ fontScale?: number;
48
+ /** The line spacing reduction applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 0. For TEXT_AUTOFIT, this value subtracted from the line_spacing gives the line spacing that is rendered in the editor. This property is read-only. */
49
+ lineSpacingReduction?: number;
50
+ }
51
+ interface AutoText {
52
+ /** The rendered content of this auto text, if available. */
53
+ content?: string;
54
+ /** The styling applied to this auto text. */
55
+ style?: TextStyle;
56
+ /** The type of this auto text. */
57
+ type?: string;
58
+ }
59
+ interface BatchUpdatePresentationRequest {
60
+ /** A list of updates to apply to the presentation. */
61
+ requests?: Request[];
62
+ /** Provides control over how write requests are executed. */
63
+ writeControl?: WriteControl;
64
+ }
65
+ interface BatchUpdatePresentationResponse {
66
+ /** The presentation the updates were applied to. */
67
+ presentationId?: string;
68
+ /** The reply of the updates. This maps 1:1 with the updates, although replies to some requests may be empty. */
69
+ replies?: Response[];
70
+ /** The updated write control after applying the request. */
71
+ writeControl?: WriteControl;
72
+ }
73
+ interface Bullet {
74
+ /** The paragraph specific text style applied to this bullet. */
75
+ bulletStyle?: TextStyle;
76
+ /** The rendered bullet glyph for this paragraph. */
77
+ glyph?: string;
78
+ /** The ID of the list this paragraph belongs to. */
79
+ listId?: string;
80
+ /** The nesting level of this paragraph in the list. */
81
+ nestingLevel?: number;
82
+ }
83
+ interface ColorScheme {
84
+ /** The ThemeColorType and corresponding concrete color pairs. */
85
+ colors?: ThemeColorPair[];
86
+ }
87
+ interface ColorStop {
88
+ /** The alpha value of this color in the gradient band. Defaults to 1.0, fully opaque. */
89
+ alpha?: number;
90
+ /** The color of the gradient stop. */
91
+ color?: OpaqueColor;
92
+ /** The relative position of the color stop in the gradient band measured in percentage. The value should be in the interval [0.0, 1.0]. */
93
+ position?: number;
94
+ }
95
+ interface CreateImageRequest {
96
+ /** The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in order to maintain the aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top-left corner of the page. */
97
+ elementProperties?: PageElementProperties;
98
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
99
+ objectId?: string;
100
+ /** The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50 MB in size, can't exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF formats. The provided URL must be publicly accessible and up to 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field. */
101
+ url?: string;
102
+ }
103
+ interface CreateImageResponse {
104
+ /** The object ID of the created image. */
105
+ objectId?: string;
106
+ }
107
+ interface CreateLineRequest {
108
+ /** The category of the line to be created. The exact line type created is determined based on the category and how it's routed to connect to other page elements. If you specify both a `category` and a `line_category`, the `category` takes precedence. If you do not specify a value for `category`, but specify a value for `line_category`, then the specified `line_category` value is used. If you do not specify either, then STRAIGHT is used. */
109
+ category?: string;
110
+ /** The element properties for the line. */
111
+ elementProperties?: PageElementProperties;
112
+ /** The category of the line to be created. *Deprecated*: use `category` instead. The exact line type created is determined based on the category and how it's routed to connect to other page elements. If you specify both a `category` and a `line_category`, the `category` takes precedence. */
113
+ lineCategory?: string;
114
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
115
+ objectId?: string;
116
+ }
117
+ interface CreateLineResponse {
118
+ /** The object ID of the created line. */
119
+ objectId?: string;
120
+ }
121
+ interface CreateParagraphBulletsRequest {
122
+ /** The kinds of bullet glyphs to be used. Defaults to the `BULLET_DISC_CIRCLE_SQUARE` preset. */
123
+ bulletPreset?: string;
124
+ /** The optional table cell location if the text to be modified is in a table cell. If present, the object_id must refer to a table. */
125
+ cellLocation?: TableCellLocation;
126
+ /** The object ID of the shape or table containing the text to add bullets to. */
127
+ objectId?: string;
128
+ /** The range of text to apply the bullet presets to, based on TextElement indexes. */
129
+ textRange?: Range;
130
+ }
131
+ interface CreateShapeRequest {
132
+ /** The element properties for the shape. */
133
+ elementProperties?: PageElementProperties;
134
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If empty, a unique identifier will be generated. */
135
+ objectId?: string;
136
+ /** The shape type. */
137
+ shapeType?: string;
138
+ }
139
+ interface CreateShapeResponse {
140
+ /** The object ID of the created shape. */
141
+ objectId?: string;
142
+ }
143
+ interface CreateSheetsChartRequest {
144
+ /** The ID of the specific chart in the Google Sheets spreadsheet. */
145
+ chartId?: number;
146
+ /** The element properties for the chart. When the aspect ratio of the provided size does not match the chart aspect ratio, the chart is scaled and centered with respect to the size in order to maintain aspect ratio. The provided transform is applied after this operation. */
147
+ elementProperties?: PageElementProperties;
148
+ /** The mode with which the chart is linked to the source spreadsheet. When not specified, the chart will be an image that is not linked. */
149
+ linkingMode?: string;
150
+ /** A user-supplied object ID. If specified, the ID must be unique among all pages and page elements in the presentation. The ID should start with a word character [a-zA-Z0-9_] and then followed by any number of the following characters [a-zA-Z0-9_-:]. The length of the ID should not be less than 5 or greater than 50. If empty, a unique identifier will be generated. */
151
+ objectId?: string;
152
+ /** The ID of the Google Sheets spreadsheet that contains the chart. You might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys). */
153
+ spreadsheetId?: string;
154
+ }
155
+ interface CreateSheetsChartResponse {
156
+ /** The object ID of the created chart. */
157
+ objectId?: string;
158
+ }
159
+ interface CreateSlideRequest {
160
+ /** The optional zero-based index indicating where to insert the slides. If you don't specify an index, the slide is created at the end. */
161
+ insertionIndex?: number;
162
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The ID length must be between 5 and 50 characters, inclusive. If you don't specify an ID, a unique one is generated. */
163
+ objectId?: string;
164
+ /** An optional list of object ID mappings from the placeholder(s) on the layout to the placeholders that are created on the slide from the specified layout. Can only be used when `slide_layout_reference` is specified. */
165
+ placeholderIdMappings?: LayoutPlaceholderIdMapping[];
166
+ /** Layout reference of the slide to be inserted, based on the *current master*, which is one of the following: - The master of the previous slide index. - The master of the first slide, if the insertion_index is zero. - The first master in the presentation, if there are no slides. If the LayoutReference is not found in the current master, a 400 bad request error is returned. If you don't specify a layout reference, the slide uses the predefined `BLANK` layout. */
167
+ slideLayoutReference?: LayoutReference;
168
+ }
169
+ interface CreateSlideResponse {
170
+ /** The object ID of the created slide. */
171
+ objectId?: string;
172
+ }
173
+ interface CreateTableRequest {
174
+ /** Number of columns in the table. */
175
+ columns?: number;
176
+ /** The element properties for the table. The table will be created at the provided size, subject to a minimum size. If no size is provided, the table will be automatically sized. Table transforms must have a scale of 1 and no shear components. If no transform is provided, the table will be centered on the page. */
177
+ elementProperties?: PageElementProperties;
178
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
179
+ objectId?: string;
180
+ /** Number of rows in the table. */
181
+ rows?: number;
182
+ }
183
+ interface CreateTableResponse {
184
+ /** The object ID of the created table. */
185
+ objectId?: string;
186
+ }
187
+ interface CreateVideoRequest {
188
+ /** The element properties for the video. The PageElementProperties.size property is optional. If you don't specify a size, a default size is chosen by the server. The PageElementProperties.transform property is optional. The transform must not have shear components. If you don't specify a transform, the video will be placed at the top left corner of the page. */
189
+ elementProperties?: PageElementProperties;
190
+ /** The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q. To access a Google Drive video file, you might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys). */
191
+ id?: string;
192
+ /** A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
193
+ objectId?: string;
194
+ /** The video source. */
195
+ source?: string;
196
+ }
197
+ interface CreateVideoResponse {
198
+ /** The object ID of the created video. */
199
+ objectId?: string;
200
+ }
201
+ interface CropProperties {
202
+ /** The rotation angle of the crop window around its center, in radians. Rotation angle is applied after the offset. */
203
+ angle?: number;
204
+ /** The offset specifies the bottom edge of the crop rectangle that is located above the original bounding rectangle bottom edge, relative to the object's original height. */
205
+ bottomOffset?: number;
206
+ /** The offset specifies the left edge of the crop rectangle that is located to the right of the original bounding rectangle left edge, relative to the object's original width. */
207
+ leftOffset?: number;
208
+ /** The offset specifies the right edge of the crop rectangle that is located to the left of the original bounding rectangle right edge, relative to the object's original width. */
209
+ rightOffset?: number;
210
+ /** The offset specifies the top edge of the crop rectangle that is located below the original bounding rectangle top edge, relative to the object's original height. */
211
+ topOffset?: number;
212
+ }
213
+ interface DeleteObjectRequest {
214
+ /** The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted on a layout, any empty inheriting placeholders are also deleted. */
215
+ objectId?: string;
216
+ }
217
+ interface DeleteParagraphBulletsRequest {
218
+ /** The optional table cell location if the text to be modified is in a table cell. If present, the object_id must refer to a table. */
219
+ cellLocation?: TableCellLocation;
220
+ /** The object ID of the shape or table containing the text to delete bullets from. */
221
+ objectId?: string;
222
+ /** The range of text to delete bullets from, based on TextElement indexes. */
223
+ textRange?: Range;
224
+ }
225
+ interface DeleteTableColumnRequest {
226
+ /** The reference table cell location from which a column will be deleted. The column this cell spans will be deleted. If this is a merged cell, multiple columns will be deleted. If no columns remain in the table after this deletion, the whole table is deleted. */
227
+ cellLocation?: TableCellLocation;
228
+ /** The table to delete columns from. */
229
+ tableObjectId?: string;
230
+ }
231
+ interface DeleteTableRowRequest {
232
+ /** The reference table cell location from which a row will be deleted. The row this cell spans will be deleted. If this is a merged cell, multiple rows will be deleted. If no rows remain in the table after this deletion, the whole table is deleted. */
233
+ cellLocation?: TableCellLocation;
234
+ /** The table to delete rows from. */
235
+ tableObjectId?: string;
236
+ }
237
+ interface DeleteTextRequest {
238
+ /** The optional table cell location if the text is to be deleted from a table cell. If present, the object_id must refer to a table. */
239
+ cellLocation?: TableCellLocation;
240
+ /** The object ID of the shape or table from which the text will be deleted. */
241
+ objectId?: string;
242
+ /** The range of text to delete, based on TextElement indexes. There is always an implicit newline character at the end of a shape's or table cell's text that cannot be deleted. `Range.Type.ALL` will use the correct bounds, but care must be taken when specifying explicit bounds for range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the text is "ABC", followed by an implicit newline, then the maximum value is 2 for `text_range.start_index` and 3 for `text_range.end_index`. Deleting text that crosses a paragraph boundary may result in changes to paragraph styles and lists as the two paragraphs are merged. Ranges that include only one code unit of a surrogate pair are expanded to include both code units. */
243
+ textRange?: Range;
244
+ }
245
+ interface Dimension {
246
+ /** The magnitude. */
247
+ magnitude?: number;
248
+ /** The units for magnitude. */
249
+ unit?: string;
250
+ }
251
+ interface DuplicateObjectRequest {
252
+ /** The ID of the object to duplicate. */
253
+ objectId?: string;
254
+ /** The object being duplicated may contain other objects, for example when duplicating a slide or a group page element. This map defines how the IDs of duplicated objects are generated: the keys are the IDs of the original objects and its values are the IDs that will be assigned to the corresponding duplicate object. The ID of the source object's duplicate may be specified in this map as well, using the same value of the `object_id` field as a key and the newly desired ID as the value. All keys must correspond to existing IDs in the presentation. All values must be unique in the presentation and must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5 or greater than 50. If any IDs of source objects are omitted from the map, a new random ID will be assigned. If the map is empty or unset, all duplicate objects will receive a new random ID. */
255
+ objectIds?: {[P in string]: string};
256
+ }
257
+ interface DuplicateObjectResponse {
258
+ /** The ID of the new duplicate object. */
259
+ objectId?: string;
260
+ }
261
+ interface Group {
262
+ /** The collection of elements in the group. The minimum size of a group is 2. */
263
+ children?: PageElement[];
264
+ }
265
+ interface GroupObjectsRequest {
266
+ /** The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and placeholders cannot be grouped. */
267
+ childrenObjectIds?: string[];
268
+ /** A user-supplied object ID for the group to be created. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
269
+ groupObjectId?: string;
270
+ }
271
+ interface GroupObjectsResponse {
272
+ /** The object ID of the created group. */
273
+ objectId?: string;
274
+ }
275
+ interface Image {
276
+ /** An URL to an image with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. */
277
+ contentUrl?: string;
278
+ /** The properties of the image. */
279
+ imageProperties?: ImageProperties;
280
+ /** Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the image is a placeholder image and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field. */
281
+ placeholder?: Placeholder;
282
+ /** The source URL is the URL used to insert the image. The source URL can be empty. */
283
+ sourceUrl?: string;
284
+ }
285
+ interface ImageProperties {
286
+ /** The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. This property is read-only. */
287
+ brightness?: number;
288
+ /** The contrast effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. This property is read-only. */
289
+ contrast?: number;
290
+ /** The crop properties of the image. If not set, the image is not cropped. This property is read-only. */
291
+ cropProperties?: CropProperties;
292
+ /** The hyperlink destination of the image. If unset, there is no link. */
293
+ link?: Link;
294
+ /** The outline of the image. If not set, the image has no outline. */
295
+ outline?: Outline;
296
+ /** The recolor effect of the image. If not set, the image is not recolored. This property is read-only. */
297
+ recolor?: Recolor;
298
+ /** The shadow of the image. If not set, the image has no shadow. This property is read-only. */
299
+ shadow?: Shadow;
300
+ /** The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means completely transparent. This property is read-only. */
301
+ transparency?: number;
302
+ }
303
+ interface InsertTableColumnsRequest {
304
+ /** The reference table cell location from which columns will be inserted. A new column will be inserted to the left (or right) of the column where the reference cell is. If the reference cell is a merged cell, a new column will be inserted to the left (or right) of the merged cell. */
305
+ cellLocation?: TableCellLocation;
306
+ /** Whether to insert new columns to the right of the reference cell location. - `True`: insert to the right. - `False`: insert to the left. */
307
+ insertRight?: boolean;
308
+ /** The number of columns to be inserted. Maximum 20 per request. */
309
+ number?: number;
310
+ /** The table to insert columns into. */
311
+ tableObjectId?: string;
312
+ }
313
+ interface InsertTableRowsRequest {
314
+ /** The reference table cell location from which rows will be inserted. A new row will be inserted above (or below) the row where the reference cell is. If the reference cell is a merged cell, a new row will be inserted above (or below) the merged cell. */
315
+ cellLocation?: TableCellLocation;
316
+ /** Whether to insert new rows below the reference cell location. - `True`: insert below the cell. - `False`: insert above the cell. */
317
+ insertBelow?: boolean;
318
+ /** The number of rows to be inserted. Maximum 20 per request. */
319
+ number?: number;
320
+ /** The table to insert rows into. */
321
+ tableObjectId?: string;
322
+ }
323
+ interface InsertTextRequest {
324
+ /** The optional table cell location if the text is to be inserted into a table cell. If present, the object_id must refer to a table. */
325
+ cellLocation?: TableCellLocation;
326
+ /** The index where the text will be inserted, in Unicode code units, based on TextElement indexes. The index is zero-based and is computed from the start of the string. The index may be adjusted to prevent insertions inside Unicode grapheme clusters. In these cases, the text will be inserted immediately after the grapheme cluster. */
327
+ insertionIndex?: number;
328
+ /** The object ID of the shape or table where the text will be inserted. */
329
+ objectId?: string;
330
+ /** The text to be inserted. Inserting a newline character will implicitly create a new ParagraphMarker at that index. The paragraph style of the new paragraph will be copied from the paragraph at the current insertion index, including lists and bullets. Text styles for inserted text will be determined automatically, generally preserving the styling of neighboring text. In most cases, the text will be added to the TextRun that exists at the insertion index. Some control characters (U+0000-U+0008, U+000C-U+001F) and characters from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) will be stripped out of the inserted text. */
331
+ text?: string;
332
+ }
333
+ interface LayoutPlaceholderIdMapping {
334
+ /** The placeholder on a layout that will be applied to a slide. Only type and index are needed. For example, a predefined `TITLE_AND_BODY` layout may usually have a TITLE placeholder with index 0 and a BODY placeholder with index 0. */
335
+ layoutPlaceholder?: Placeholder;
336
+ /** The object ID of the placeholder on a layout that will be applied to a slide. */
337
+ layoutPlaceholderObjectId?: string;
338
+ /** A user-supplied object ID for the placeholder identified above that to be created onto a slide. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. */
339
+ objectId?: string;
340
+ }
341
+ interface LayoutProperties {
342
+ /** The human-readable name of the layout. */
343
+ displayName?: string;
344
+ /** The object ID of the master that this layout is based on. */
345
+ masterObjectId?: string;
346
+ /** The name of the layout. */
347
+ name?: string;
348
+ }
349
+ interface LayoutReference {
350
+ /** Layout ID: the object ID of one of the layouts in the presentation. */
351
+ layoutId?: string;
352
+ /** Predefined layout. */
353
+ predefinedLayout?: string;
354
+ }
355
+ interface Line {
356
+ /** The category of the line. It matches the `category` specified in CreateLineRequest, and can be updated with UpdateLineCategoryRequest. */
357
+ lineCategory?: string;
358
+ /** The properties of the line. */
359
+ lineProperties?: LineProperties;
360
+ /** The type of the line. */
361
+ lineType?: string;
362
+ }
363
+ interface LineConnection {
364
+ /** The object ID of the connected page element. Some page elements, such as groups, tables, and lines do not have connection sites and therefore cannot be connected to a connector line. */
365
+ connectedObjectId?: string;
366
+ /** The index of the connection site on the connected page element. In most cases, it corresponds to the predefined connection site index from the ECMA-376 standard. More information on those connection sites can be found in the description of the "cnx" attribute in section 20.1.9.9 and Annex H. "Predefined DrawingML Shape and Text Geometries" of "Office Open XML File Formats-Fundamentals and Markup Language Reference", part 1 of [ECMA-376 5th edition] (http://www.ecma-international.org/publications/standards/Ecma-376.htm). The position of each connection site can also be viewed from Slides editor. */
367
+ connectionSiteIndex?: number;
368
+ }
369
+ interface LineFill {
370
+ /** Solid color fill. */
371
+ solidFill?: SolidFill;
372
+ }
373
+ interface LineProperties {
374
+ /** The dash style of the line. */
375
+ dashStyle?: string;
376
+ /** The style of the arrow at the end of the line. */
377
+ endArrow?: string;
378
+ /** The connection at the end of the line. If unset, there is no connection. Only lines with a Type indicating it is a "connector" can have an `end_connection`. */
379
+ endConnection?: LineConnection;
380
+ /** The fill of the line. The default line fill matches the defaults for new lines created in the Slides editor. */
381
+ lineFill?: LineFill;
382
+ /** The hyperlink destination of the line. If unset, there is no link. */
383
+ link?: Link;
384
+ /** The style of the arrow at the beginning of the line. */
385
+ startArrow?: string;
386
+ /** The connection at the beginning of the line. If unset, there is no connection. Only lines with a Type indicating it is a "connector" can have a `start_connection`. */
387
+ startConnection?: LineConnection;
388
+ /** The thickness of the line. */
389
+ weight?: Dimension;
390
+ }
391
+ interface Link {
392
+ /** If set, indicates this is a link to the specific page in this presentation with this ID. A page with this ID may not exist. */
393
+ pageObjectId?: string;
394
+ /** If set, indicates this is a link to a slide in this presentation, addressed by its position. */
395
+ relativeLink?: string;
396
+ /** If set, indicates this is a link to the slide at this zero-based index in the presentation. There may not be a slide at this index. */
397
+ slideIndex?: number;
398
+ /** If set, indicates this is a link to the external web page at this URL. */
399
+ url?: string;
400
+ }
401
+ interface List {
402
+ /** The ID of the list. */
403
+ listId?: string;
404
+ /** A map of nesting levels to the properties of bullets at the associated level. A list has at most nine levels of nesting, so the possible values for the keys of this map are 0 through 8, inclusive. */
405
+ nestingLevel?: {[P in string]: NestingLevel};
406
+ }
407
+ interface MasterProperties {
408
+ /** The human-readable name of the master. */
409
+ displayName?: string;
410
+ }
411
+ interface MergeTableCellsRequest {
412
+ /** The object ID of the table. */
413
+ objectId?: string;
414
+ /** The table range specifying which cells of the table to merge. Any text in the cells being merged will be concatenated and stored in the upper-left ("head") cell of the range. If the range is non-rectangular (which can occur in some cases where the range covers cells that are already merged), a 400 bad request error is returned. */
415
+ tableRange?: TableRange;
416
+ }
417
+ interface NestingLevel {
418
+ /** The style of a bullet at this level of nesting. */
419
+ bulletStyle?: TextStyle;
420
+ }
421
+ interface NotesProperties {
422
+ /** The object ID of the shape on this notes page that contains the speaker notes for the corresponding slide. The actual shape may not always exist on the notes page. Inserting text using this object ID will automatically create the shape. In this case, the actual shape may have different object ID. The `GetPresentation` or `GetPage` action will always return the latest object ID. */
423
+ speakerNotesObjectId?: string;
424
+ }
425
+ interface OpaqueColor {
426
+ /** An opaque RGB color. */
427
+ rgbColor?: RgbColor;
428
+ /** An opaque theme color. */
429
+ themeColor?: string;
430
+ }
431
+ interface OptionalColor {
432
+ /** If set, this will be used as an opaque color. If unset, this represents a transparent color. */
433
+ opaqueColor?: OpaqueColor;
434
+ }
435
+ interface Outline {
436
+ /** The dash style of the outline. */
437
+ dashStyle?: string;
438
+ /** The fill of the outline. */
439
+ outlineFill?: OutlineFill;
440
+ /** The outline property state. Updating the outline on a page element will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no outline on a page element, set this field to `NOT_RENDERED`. In this case, any other outline fields set in the same request will be ignored. */
441
+ propertyState?: string;
442
+ /** The thickness of the outline. */
443
+ weight?: Dimension;
444
+ }
445
+ interface OutlineFill {
446
+ /** Solid color fill. */
447
+ solidFill?: SolidFill;
448
+ }
449
+ interface Page {
450
+ /** Layout specific properties. Only set if page_type = LAYOUT. */
451
+ layoutProperties?: LayoutProperties;
452
+ /** Master specific properties. Only set if page_type = MASTER. */
453
+ masterProperties?: MasterProperties;
454
+ /** Notes specific properties. Only set if page_type = NOTES. */
455
+ notesProperties?: NotesProperties;
456
+ /** The object ID for this page. Object IDs used by Page and PageElement share the same namespace. */
457
+ objectId?: string;
458
+ /** The page elements rendered on the page. */
459
+ pageElements?: PageElement[];
460
+ /** The properties of the page. */
461
+ pageProperties?: PageProperties;
462
+ /** The type of the page. */
463
+ pageType?: string;
464
+ /** Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes. */
465
+ revisionId?: string;
466
+ /** Slide specific properties. Only set if page_type = SLIDE. */
467
+ slideProperties?: SlideProperties;
468
+ }
469
+ interface PageBackgroundFill {
470
+ /** The background fill property state. Updating the fill on a page will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no fill on a page, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored. */
471
+ propertyState?: string;
472
+ /** Solid color fill. */
473
+ solidFill?: SolidFill;
474
+ /** Stretched picture fill. */
475
+ stretchedPictureFill?: StretchedPictureFill;
476
+ }
477
+ interface PageElement {
478
+ /** The description of the page element. Combined with title to display alt text. The field is not supported for Group elements. */
479
+ description?: string;
480
+ /** A collection of page elements joined as a single unit. */
481
+ elementGroup?: Group;
482
+ /** An image page element. */
483
+ image?: Image;
484
+ /** A line page element. */
485
+ line?: Line;
486
+ /** The object ID for this page element. Object IDs used by google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share the same namespace. */
487
+ objectId?: string;
488
+ /** A generic shape. */
489
+ shape?: Shape;
490
+ /** A linked chart embedded from Google Sheets. Unlinked charts are represented as images. */
491
+ sheetsChart?: SheetsChart;
492
+ /** The size of the page element. */
493
+ size?: Size;
494
+ /** A table page element. */
495
+ table?: Table;
496
+ /** The title of the page element. Combined with description to display alt text. The field is not supported for Group elements. */
497
+ title?: string;
498
+ /** The transform of the page element. The visual appearance of the page element is determined by its absolute transform. To compute the absolute transform, preconcatenate a page element's transform with the transforms of all of its parent groups. If the page element is not in a group, its absolute transform is the same as the value in this field. The initial transform for the newly created Group is always the identity transform. */
499
+ transform?: AffineTransform;
500
+ /** A video page element. */
501
+ video?: Video;
502
+ /** A word art page element. */
503
+ wordArt?: WordArt;
504
+ }
505
+ interface PageElementProperties {
506
+ /** The object ID of the page where the element is located. */
507
+ pageObjectId?: string;
508
+ /** The size of the element. */
509
+ size?: Size;
510
+ /** The transform for the element. */
511
+ transform?: AffineTransform;
512
+ }
513
+ interface PageProperties {
514
+ /** The color scheme of the page. If unset, the color scheme is inherited from a parent page. If the page has no parent, the color scheme uses a default Slides color scheme, matching the defaults in the Slides editor. Only the concrete colors of the first 12 ThemeColorTypes are editable. In addition, only the color scheme on `Master` pages can be updated. To update the field, a color scheme containing mappings from all the first 12 ThemeColorTypes to their concrete colors must be provided. Colors for the remaining ThemeColorTypes will be ignored. */
515
+ colorScheme?: ColorScheme;
516
+ /** The background fill of the page. If unset, the background fill is inherited from a parent page if it exists. If the page has no parent, then the background fill defaults to the corresponding fill in the Slides editor. */
517
+ pageBackgroundFill?: PageBackgroundFill;
518
+ }
519
+ interface ParagraphMarker {
520
+ /** The bullet for this paragraph. If not present, the paragraph does not belong to a list. */
521
+ bullet?: Bullet;
522
+ /** The paragraph's style */
523
+ style?: ParagraphStyle;
524
+ }
525
+ interface ParagraphStyle {
526
+ /** The text alignment for this paragraph. */
527
+ alignment?: string;
528
+ /** The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since text direction is not inherited. */
529
+ direction?: string;
530
+ /** The amount indentation for the paragraph on the side that corresponds to the end of the text, based on the current text direction. If unset, the value is inherited from the parent. */
531
+ indentEnd?: Dimension;
532
+ /** The amount of indentation for the start of the first line of the paragraph. If unset, the value is inherited from the parent. */
533
+ indentFirstLine?: Dimension;
534
+ /** The amount indentation for the paragraph on the side that corresponds to the start of the text, based on the current text direction. If unset, the value is inherited from the parent. */
535
+ indentStart?: Dimension;
536
+ /** The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent. */
537
+ lineSpacing?: number;
538
+ /** The amount of extra space above the paragraph. If unset, the value is inherited from the parent. */
539
+ spaceAbove?: Dimension;
540
+ /** The amount of extra space below the paragraph. If unset, the value is inherited from the parent. */
541
+ spaceBelow?: Dimension;
542
+ /** The spacing mode for the paragraph. */
543
+ spacingMode?: string;
544
+ }
545
+ interface Placeholder {
546
+ /** The index of the placeholder. If the same placeholder types are present in the same page, they would have different index values. */
547
+ index?: number;
548
+ /** The object ID of this shape's parent placeholder. If unset, the parent placeholder shape does not exist, so the shape does not inherit properties from any other shape. */
549
+ parentObjectId?: string;
550
+ /** The type of the placeholder. */
551
+ type?: string;
552
+ }
553
+ interface Presentation {
554
+ /** The layouts in the presentation. A layout is a template that determines how content is arranged and styled on the slides that inherit from that layout. */
555
+ layouts?: Page[];
556
+ /** The locale of the presentation, as an IETF BCP 47 language tag. */
557
+ locale?: string;
558
+ /** The slide masters in the presentation. A slide master contains all common page elements and the common properties for a set of layouts. They serve three purposes: - Placeholder shapes on a master contain the default text styles and shape properties of all placeholder shapes on pages that use that master. - The master page properties define the common page properties inherited by its layouts. - Any other shapes on the master slide appear on all slides using that master, regardless of their layout. */
559
+ masters?: Page[];
560
+ /** The notes master in the presentation. It serves three purposes: - Placeholder shapes on a notes master contain the default text styles and shape properties of all placeholder shapes on notes pages. Specifically, a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and a `BODY` placeholder shape contains the speaker notes. - The notes master page properties define the common page properties inherited by all notes pages. - Any other shapes on the notes master appear on all notes pages. The notes master is read-only. */
561
+ notesMaster?: Page;
562
+ /** The size of pages in the presentation. */
563
+ pageSize?: Size;
564
+ /** The ID of the presentation. */
565
+ presentationId?: string;
566
+ /** Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but a nebulous string. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes. */
567
+ revisionId?: string;
568
+ /** The slides in the presentation. A slide inherits properties from a slide layout. */
569
+ slides?: Page[];
570
+ /** The title of the presentation. */
571
+ title?: string;
572
+ }
573
+ interface Range {
574
+ /** The optional zero-based index of the end of the collection. Required for `FIXED_RANGE` ranges. */
575
+ endIndex?: number;
576
+ /** The optional zero-based index of the beginning of the collection. Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges. */
577
+ startIndex?: number;
578
+ /** The type of range. */
579
+ type?: string;
580
+ }
581
+ interface Recolor {
582
+ /** The name of the recolor effect. The name is determined from the `recolor_stops` by matching the gradient against the colors in the page's current color scheme. This property is read-only. */
583
+ name?: string;
584
+ /** The recolor effect is represented by a gradient, which is a list of color stops. The colors in the gradient will replace the corresponding colors at the same position in the color palette and apply to the image. This property is read-only. */
585
+ recolorStops?: ColorStop[];
586
+ }
587
+ interface RefreshSheetsChartRequest {
588
+ /** The object ID of the chart to refresh. */
589
+ objectId?: string;
2378
590
  }
591
+ interface ReplaceAllShapesWithImageRequest {
592
+ /** If set, this request will replace all of the shapes that contain the given text. */
593
+ containsText?: SubstringMatchCriteria;
594
+ /** The image replace method. If you specify both a `replace_method` and an `image_replace_method`, the `image_replace_method` takes precedence. If you do not specify a value for `image_replace_method`, but specify a value for `replace_method`, then the specified `replace_method` value is used. If you do not specify either, then CENTER_INSIDE is used. */
595
+ imageReplaceMethod?: string;
596
+ /** The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. The URL itself is saved with the image, and exposed via the Image.source_url field. */
597
+ imageUrl?: string;
598
+ /** If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a page with that object ID doesn't exist in the presentation. */
599
+ pageObjectIds?: string[];
600
+ /** The replace method. *Deprecated*: use `image_replace_method` instead. If you specify both a `replace_method` and an `image_replace_method`, the `image_replace_method` takes precedence. */
601
+ replaceMethod?: string;
602
+ }
603
+ interface ReplaceAllShapesWithImageResponse {
604
+ /** The number of shapes replaced with images. */
605
+ occurrencesChanged?: number;
606
+ }
607
+ interface ReplaceAllShapesWithSheetsChartRequest {
608
+ /** The ID of the specific chart in the Google Sheets spreadsheet. */
609
+ chartId?: number;
610
+ /** The criteria that the shapes must match in order to be replaced. The request will replace all of the shapes that contain the given text. */
611
+ containsText?: SubstringMatchCriteria;
612
+ /** The mode with which the chart is linked to the source spreadsheet. When not specified, the chart will be an image that is not linked. */
613
+ linkingMode?: string;
614
+ /** If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a page with that object ID doesn't exist in the presentation. */
615
+ pageObjectIds?: string[];
616
+ /** The ID of the Google Sheets spreadsheet that contains the chart. */
617
+ spreadsheetId?: string;
618
+ }
619
+ interface ReplaceAllShapesWithSheetsChartResponse {
620
+ /** The number of shapes replaced with charts. */
621
+ occurrencesChanged?: number;
622
+ }
623
+ interface ReplaceAllTextRequest {
624
+ /** Finds text in a shape matching this substring. */
625
+ containsText?: SubstringMatchCriteria;
626
+ /** If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes master, or if a page with that object ID doesn't exist in the presentation. */
627
+ pageObjectIds?: string[];
628
+ /** The text that will replace the matched text. */
629
+ replaceText?: string;
630
+ }
631
+ interface ReplaceAllTextResponse {
632
+ /** The number of occurrences changed by replacing all text. */
633
+ occurrencesChanged?: number;
634
+ }
635
+ interface ReplaceImageRequest {
636
+ /** The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request. */
637
+ imageObjectId?: string;
638
+ /** The replacement method. */
639
+ imageReplaceMethod?: string;
640
+ /** The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URL can't surpass 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field. */
641
+ url?: string;
642
+ }
643
+ interface Request {
644
+ /** Creates an image. */
645
+ createImage?: CreateImageRequest;
646
+ /** Creates a line. */
647
+ createLine?: CreateLineRequest;
648
+ /** Creates bullets for paragraphs. */
649
+ createParagraphBullets?: CreateParagraphBulletsRequest;
650
+ /** Creates a new shape. */
651
+ createShape?: CreateShapeRequest;
652
+ /** Creates an embedded Google Sheets chart. */
653
+ createSheetsChart?: CreateSheetsChartRequest;
654
+ /** Creates a new slide. */
655
+ createSlide?: CreateSlideRequest;
656
+ /** Creates a new table. */
657
+ createTable?: CreateTableRequest;
658
+ /** Creates a video. */
659
+ createVideo?: CreateVideoRequest;
660
+ /** Deletes a page or page element from the presentation. */
661
+ deleteObject?: DeleteObjectRequest;
662
+ /** Deletes bullets from paragraphs. */
663
+ deleteParagraphBullets?: DeleteParagraphBulletsRequest;
664
+ /** Deletes a column from a table. */
665
+ deleteTableColumn?: DeleteTableColumnRequest;
666
+ /** Deletes a row from a table. */
667
+ deleteTableRow?: DeleteTableRowRequest;
668
+ /** Deletes text from a shape or a table cell. */
669
+ deleteText?: DeleteTextRequest;
670
+ /** Duplicates a slide or page element. */
671
+ duplicateObject?: DuplicateObjectRequest;
672
+ /** Groups objects, such as page elements. */
673
+ groupObjects?: GroupObjectsRequest;
674
+ /** Inserts columns into a table. */
675
+ insertTableColumns?: InsertTableColumnsRequest;
676
+ /** Inserts rows into a table. */
677
+ insertTableRows?: InsertTableRowsRequest;
678
+ /** Inserts text into a shape or table cell. */
679
+ insertText?: InsertTextRequest;
680
+ /** Merges cells in a Table. */
681
+ mergeTableCells?: MergeTableCellsRequest;
682
+ /** Refreshes a Google Sheets chart. */
683
+ refreshSheetsChart?: RefreshSheetsChartRequest;
684
+ /** Replaces all shapes matching some criteria with an image. */
685
+ replaceAllShapesWithImage?: ReplaceAllShapesWithImageRequest;
686
+ /** Replaces all shapes matching some criteria with a Google Sheets chart. */
687
+ replaceAllShapesWithSheetsChart?: ReplaceAllShapesWithSheetsChartRequest;
688
+ /** Replaces all instances of specified text. */
689
+ replaceAllText?: ReplaceAllTextRequest;
690
+ /** Replaces an existing image with a new image. */
691
+ replaceImage?: ReplaceImageRequest;
692
+ /** Reroutes a line such that it's connected at the two closest connection sites on the connected page elements. */
693
+ rerouteLine?: RerouteLineRequest;
694
+ /** Ungroups objects, such as groups. */
695
+ ungroupObjects?: UngroupObjectsRequest;
696
+ /** Unmerges cells in a Table. */
697
+ unmergeTableCells?: UnmergeTableCellsRequest;
698
+ /** Updates the properties of an Image. */
699
+ updateImageProperties?: UpdateImagePropertiesRequest;
700
+ /** Updates the category of a line. */
701
+ updateLineCategory?: UpdateLineCategoryRequest;
702
+ /** Updates the properties of a Line. */
703
+ updateLineProperties?: UpdateLinePropertiesRequest;
704
+ /** Updates the alt text title and/or description of a page element. */
705
+ updatePageElementAltText?: UpdatePageElementAltTextRequest;
706
+ /** Updates the Z-order of page elements. */
707
+ updatePageElementsZOrder?: UpdatePageElementsZOrderRequest;
708
+ /** Updates the transform of a page element. */
709
+ updatePageElementTransform?: UpdatePageElementTransformRequest;
710
+ /** Updates the properties of a Page. */
711
+ updatePageProperties?: UpdatePagePropertiesRequest;
712
+ /** Updates the styling of paragraphs within a Shape or Table. */
713
+ updateParagraphStyle?: UpdateParagraphStyleRequest;
714
+ /** Updates the properties of a Shape. */
715
+ updateShapeProperties?: UpdateShapePropertiesRequest;
716
+ /** Updates the properties of a Slide */
717
+ updateSlideProperties?: UpdateSlidePropertiesRequest;
718
+ /** Updates the position of a set of slides in the presentation. */
719
+ updateSlidesPosition?: UpdateSlidesPositionRequest;
720
+ /** Updates the properties of the table borders in a Table. */
721
+ updateTableBorderProperties?: UpdateTableBorderPropertiesRequest;
722
+ /** Updates the properties of a TableCell. */
723
+ updateTableCellProperties?: UpdateTableCellPropertiesRequest;
724
+ /** Updates the properties of a Table column. */
725
+ updateTableColumnProperties?: UpdateTableColumnPropertiesRequest;
726
+ /** Updates the properties of a Table row. */
727
+ updateTableRowProperties?: UpdateTableRowPropertiesRequest;
728
+ /** Updates the styling of text within a Shape or Table. */
729
+ updateTextStyle?: UpdateTextStyleRequest;
730
+ /** Updates the properties of a Video. */
731
+ updateVideoProperties?: UpdateVideoPropertiesRequest;
732
+ }
733
+ interface RerouteLineRequest {
734
+ /** The object ID of the line to reroute. Only a line with a category indicating it is a "connector" can be rerouted. The start and end connections of the line must be on different page elements. */
735
+ objectId?: string;
736
+ }
737
+ interface Response {
738
+ /** The result of creating an image. */
739
+ createImage?: CreateImageResponse;
740
+ /** The result of creating a line. */
741
+ createLine?: CreateLineResponse;
742
+ /** The result of creating a shape. */
743
+ createShape?: CreateShapeResponse;
744
+ /** The result of creating a Google Sheets chart. */
745
+ createSheetsChart?: CreateSheetsChartResponse;
746
+ /** The result of creating a slide. */
747
+ createSlide?: CreateSlideResponse;
748
+ /** The result of creating a table. */
749
+ createTable?: CreateTableResponse;
750
+ /** The result of creating a video. */
751
+ createVideo?: CreateVideoResponse;
752
+ /** The result of duplicating an object. */
753
+ duplicateObject?: DuplicateObjectResponse;
754
+ /** The result of grouping objects. */
755
+ groupObjects?: GroupObjectsResponse;
756
+ /** The result of replacing all shapes matching some criteria with an image. */
757
+ replaceAllShapesWithImage?: ReplaceAllShapesWithImageResponse;
758
+ /** The result of replacing all shapes matching some criteria with a Google Sheets chart. */
759
+ replaceAllShapesWithSheetsChart?: ReplaceAllShapesWithSheetsChartResponse;
760
+ /** The result of replacing text. */
761
+ replaceAllText?: ReplaceAllTextResponse;
762
+ }
763
+ interface RgbColor {
764
+ /** The blue component of the color, from 0.0 to 1.0. */
765
+ blue?: number;
766
+ /** The green component of the color, from 0.0 to 1.0. */
767
+ green?: number;
768
+ /** The red component of the color, from 0.0 to 1.0. */
769
+ red?: number;
770
+ }
771
+ interface Shadow {
772
+ /** The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow. This property is read-only. */
773
+ alignment?: string;
774
+ /** The alpha of the shadow's color, from 0.0 to 1.0. */
775
+ alpha?: number;
776
+ /** The radius of the shadow blur. The larger the radius, the more diffuse the shadow becomes. */
777
+ blurRadius?: Dimension;
778
+ /** The shadow color value. */
779
+ color?: OpaqueColor;
780
+ /** The shadow property state. Updating the shadow on a page element will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no shadow on a page element, set this field to `NOT_RENDERED`. In this case, any other shadow fields set in the same request will be ignored. */
781
+ propertyState?: string;
782
+ /** Whether the shadow should rotate with the shape. This property is read-only. */
783
+ rotateWithShape?: boolean;
784
+ /** Transform that encodes the translate, scale, and skew of the shadow, relative to the alignment position. */
785
+ transform?: AffineTransform;
786
+ /** The type of the shadow. This property is read-only. */
787
+ type?: string;
788
+ }
789
+ interface Shape {
790
+ /** Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the shape is a placeholder shape and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field. */
791
+ placeholder?: Placeholder;
792
+ /** The properties of the shape. */
793
+ shapeProperties?: ShapeProperties;
794
+ /** The type of the shape. */
795
+ shapeType?: string;
796
+ /** The text content of the shape. */
797
+ text?: TextContent;
798
+ }
799
+ interface ShapeBackgroundFill {
800
+ /** The background fill property state. Updating the fill on a shape will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no fill on a shape, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored. */
801
+ propertyState?: string;
802
+ /** Solid color fill. */
803
+ solidFill?: SolidFill;
804
+ }
805
+ interface ShapeProperties {
806
+ /** The autofit properties of the shape. This property is only set for shapes that allow text. */
807
+ autofit?: Autofit;
808
+ /** The alignment of the content in the shape. If unspecified, the alignment is inherited from a parent placeholder if it exists. If the shape has no parent, the default alignment matches the alignment for new shapes created in the Slides editor. */
809
+ contentAlignment?: string;
810
+ /** The hyperlink destination of the shape. If unset, there is no link. Links are not inherited from parent placeholders. */
811
+ link?: Link;
812
+ /** The outline of the shape. If unset, the outline is inherited from a parent placeholder if it exists. If the shape has no parent, then the default outline depends on the shape type, matching the defaults for new shapes created in the Slides editor. */
813
+ outline?: Outline;
814
+ /** The shadow properties of the shape. If unset, the shadow is inherited from a parent placeholder if it exists. If the shape has no parent, then the default shadow matches the defaults for new shapes created in the Slides editor. This property is read-only. */
815
+ shadow?: Shadow;
816
+ /** The background fill of the shape. If unset, the background fill is inherited from a parent placeholder if it exists. If the shape has no parent, then the default background fill depends on the shape type, matching the defaults for new shapes created in the Slides editor. */
817
+ shapeBackgroundFill?: ShapeBackgroundFill;
818
+ }
819
+ interface SheetsChart {
820
+ /** The ID of the specific chart in the Google Sheets spreadsheet that is embedded. */
821
+ chartId?: number;
822
+ /** The URL of an image of the embedded chart, with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. */
823
+ contentUrl?: string;
824
+ /** The properties of the Sheets chart. */
825
+ sheetsChartProperties?: SheetsChartProperties;
826
+ /** The ID of the Google Sheets spreadsheet that contains the source chart. */
827
+ spreadsheetId?: string;
828
+ }
829
+ interface SheetsChartProperties {
830
+ /** The properties of the embedded chart image. */
831
+ chartImageProperties?: ImageProperties;
832
+ }
833
+ interface Size {
834
+ /** The height of the object. */
835
+ height?: Dimension;
836
+ /** The width of the object. */
837
+ width?: Dimension;
838
+ }
839
+ interface SlideProperties {
840
+ /** Whether the slide is skipped in the presentation mode. Defaults to false. */
841
+ isSkipped?: boolean;
842
+ /** The object ID of the layout that this slide is based on. This property is read-only. */
843
+ layoutObjectId?: string;
844
+ /** The object ID of the master that this slide is based on. This property is read-only. */
845
+ masterObjectId?: string;
846
+ /** The notes page that this slide is associated with. It defines the visual appearance of a notes page when printing or exporting slides with speaker notes. A notes page inherits properties from the notes master. The placeholder shape with type BODY on the notes page contains the speaker notes for this slide. The ID of this shape is identified by the speakerNotesObjectId field. The notes page is read-only except for the text content and styles of the speaker notes shape. This property is read-only. */
847
+ notesPage?: Page;
848
+ }
849
+ interface SolidFill {
850
+ /** The fraction of this `color` that should be applied to the pixel. That is, the final pixel color is defined by the equation: pixel color = alpha * (color) + (1.0 - alpha) * (background color) This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. */
851
+ alpha?: number;
852
+ /** The color value of the solid fill. */
853
+ color?: OpaqueColor;
854
+ }
855
+ interface StretchedPictureFill {
856
+ /** Reading the content_url: An URL to a picture with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the picture as the original requester. Access to the picture may be lost if the presentation's sharing settings change. Writing the content_url: The picture is fetched once at insertion time and a copy is stored for display inside the presentation. Pictures must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. */
857
+ contentUrl?: string;
858
+ /** The original size of the picture fill. This field is read-only. */
859
+ size?: Size;
860
+ }
861
+ interface SubstringMatchCriteria {
862
+ /** Indicates whether the search should respect case: - `True`: the search is case sensitive. - `False`: the search is case insensitive. */
863
+ matchCase?: boolean;
864
+ /** The text to search for in the shape or table. */
865
+ text?: string;
866
+ }
867
+ interface Table {
868
+ /** Number of columns in the table. */
869
+ columns?: number;
870
+ /** Properties of horizontal cell borders. A table's horizontal cell borders are represented as a grid. The grid has one more row than the number of rows in the table and the same number of columns as the table. For example, if the table is 3 x 3, its horizontal borders will be represented as a grid with 4 rows and 3 columns. */
871
+ horizontalBorderRows?: TableBorderRow[];
872
+ /** Number of rows in the table. */
873
+ rows?: number;
874
+ /** Properties of each column. */
875
+ tableColumns?: TableColumnProperties[];
876
+ /** Properties and contents of each row. Cells that span multiple rows are contained in only one of these rows and have a row_span greater than 1. */
877
+ tableRows?: TableRow[];
878
+ /** Properties of vertical cell borders. A table's vertical cell borders are represented as a grid. The grid has the same number of rows as the table and one more column than the number of columns in the table. For example, if the table is 3 x 3, its vertical borders will be represented as a grid with 3 rows and 4 columns. */
879
+ verticalBorderRows?: TableBorderRow[];
880
+ }
881
+ interface TableBorderCell {
882
+ /** The location of the border within the border table. */
883
+ location?: TableCellLocation;
884
+ /** The border properties. */
885
+ tableBorderProperties?: TableBorderProperties;
886
+ }
887
+ interface TableBorderFill {
888
+ /** Solid fill. */
889
+ solidFill?: SolidFill;
890
+ }
891
+ interface TableBorderProperties {
892
+ /** The dash style of the border. */
893
+ dashStyle?: string;
894
+ /** The fill of the table border. */
895
+ tableBorderFill?: TableBorderFill;
896
+ /** The thickness of the border. */
897
+ weight?: Dimension;
898
+ }
899
+ interface TableBorderRow {
900
+ /** Properties of each border cell. When a border's adjacent table cells are merged, it is not included in the response. */
901
+ tableBorderCells?: TableBorderCell[];
902
+ }
903
+ interface TableCell {
904
+ /** Column span of the cell. */
905
+ columnSpan?: number;
906
+ /** The location of the cell within the table. */
907
+ location?: TableCellLocation;
908
+ /** Row span of the cell. */
909
+ rowSpan?: number;
910
+ /** The properties of the table cell. */
911
+ tableCellProperties?: TableCellProperties;
912
+ /** The text content of the cell. */
913
+ text?: TextContent;
914
+ }
915
+ interface TableCellBackgroundFill {
916
+ /** The background fill property state. Updating the fill on a table cell will implicitly update this field to `RENDERED`, unless another value is specified in the same request. To have no fill on a table cell, set this field to `NOT_RENDERED`. In this case, any other fill fields set in the same request will be ignored. */
917
+ propertyState?: string;
918
+ /** Solid color fill. */
919
+ solidFill?: SolidFill;
920
+ }
921
+ interface TableCellLocation {
922
+ /** The 0-based column index. */
923
+ columnIndex?: number;
924
+ /** The 0-based row index. */
925
+ rowIndex?: number;
926
+ }
927
+ interface TableCellProperties {
928
+ /** The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Slides editor. */
929
+ contentAlignment?: string;
930
+ /** The background fill of the table cell. The default fill matches the fill for newly created table cells in the Slides editor. */
931
+ tableCellBackgroundFill?: TableCellBackgroundFill;
932
+ }
933
+ interface TableColumnProperties {
934
+ /** Width of a column. */
935
+ columnWidth?: Dimension;
936
+ }
937
+ interface TableRange {
938
+ /** The column span of the table range. */
939
+ columnSpan?: number;
940
+ /** The starting location of the table range. */
941
+ location?: TableCellLocation;
942
+ /** The row span of the table range. */
943
+ rowSpan?: number;
944
+ }
945
+ interface TableRow {
946
+ /** Height of a row. */
947
+ rowHeight?: Dimension;
948
+ /** Properties and contents of each cell. Cells that span multiple columns are represented only once with a column_span greater than 1. As a result, the length of this collection does not always match the number of columns of the entire table. */
949
+ tableCells?: TableCell[];
950
+ /** Properties of the row. */
951
+ tableRowProperties?: TableRowProperties;
952
+ }
953
+ interface TableRowProperties {
954
+ /** Minimum height of the row. The row will be rendered in the Slides editor at a height equal to or greater than this value in order to show all the text in the row's cell(s). */
955
+ minRowHeight?: Dimension;
956
+ }
957
+ interface TextContent {
958
+ /** The bulleted lists contained in this text, keyed by list ID. */
959
+ lists?: {[P in string]: List};
960
+ /** The text contents broken down into its component parts, including styling information. This property is read-only. */
961
+ textElements?: TextElement[];
962
+ }
963
+ interface TextElement {
964
+ /** A TextElement representing a spot in the text that is dynamically replaced with content that can change over time. */
965
+ autoText?: AutoText;
966
+ /** The zero-based end index of this text element, exclusive, in Unicode code units. */
967
+ endIndex?: number;
968
+ /** A marker representing the beginning of a new paragraph. The `start_index` and `end_index` of this TextElement represent the range of the paragraph. Other TextElements with an index range contained inside this paragraph's range are considered to be part of this paragraph. The range of indices of two separate paragraphs will never overlap. */
969
+ paragraphMarker?: ParagraphMarker;
970
+ /** The zero-based start index of this text element, in Unicode code units. */
971
+ startIndex?: number;
972
+ /** A TextElement representing a run of text where all of the characters in the run have the same TextStyle. The `start_index` and `end_index` of TextRuns will always be fully contained in the index range of a single `paragraph_marker` TextElement. In other words, a TextRun will never span multiple paragraphs. */
973
+ textRun?: TextRun;
974
+ }
975
+ interface TextRun {
976
+ /** The text of this run. */
977
+ content?: string;
978
+ /** The styling applied to this run. */
979
+ style?: TextStyle;
980
+ }
981
+ interface TextStyle {
982
+ /** The background color of the text. If set, the color is either opaque or transparent, depending on if the `opaque_color` field in it is set. */
983
+ backgroundColor?: OptionalColor;
984
+ /** The text's vertical offset from its normal position. Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered in a smaller font size, computed based on the `font_size` field. The `font_size` itself is not affected by changes in this field. */
985
+ baselineOffset?: string;
986
+ /** Whether or not the text is rendered as bold. */
987
+ bold?: boolean;
988
+ /** The font family of the text. The font family can be any font from the Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). If the font name is unrecognized, the text is rendered in `Arial`. Some fonts can affect the weight of the text. If an update request specifies values for both `font_family` and `bold`, the explicitly-set `bold` value is used. */
989
+ fontFamily?: string;
990
+ /** The size of the text's font. When read, the `font_size` will specified in points. */
991
+ fontSize?: Dimension;
992
+ /** The color of the text itself. If set, the color is either opaque or transparent, depending on if the `opaque_color` field in it is set. */
993
+ foregroundColor?: OptionalColor;
994
+ /** Whether or not the text is italicized. */
995
+ italic?: boolean;
996
+ /** The hyperlink destination of the text. If unset, there is no link. Links are not inherited from parent text. Changing the link in an update request causes some other changes to the text style of the range: * When setting a link, the text foreground color will be set to ThemeColorType.HYPERLINK and the text will be underlined. If these fields are modified in the same request, those values will be used instead of the link defaults. * Setting a link on a text range that overlaps with an existing link will also update the existing link to point to the new URL. * Links are not settable on newline characters. As a result, setting a link on a text range that crosses a paragraph boundary, such as `"ABC\n123"`, will separate the newline character(s) into their own text runs. The link will be applied separately to the runs before and after the newline. * Removing a link will update the text style of the range to match the style of the preceding text (or the default text styles if the preceding text is another link) unless different styles are being set in the same request. */
997
+ link?: Link;
998
+ /** Whether or not the text is in small capital letters. */
999
+ smallCaps?: boolean;
1000
+ /** Whether or not the text is struck through. */
1001
+ strikethrough?: boolean;
1002
+ /** Whether or not the text is underlined. */
1003
+ underline?: boolean;
1004
+ /** The font family and rendered weight of the text. This field is an extension of `font_family` meant to support explicit font weights without breaking backwards compatibility. As such, when reading the style of a range of text, the value of `weighted_font_family#font_family` will always be equal to that of `font_family`. However, when writing, if both fields are included in the field mask (either explicitly or through the wildcard `"*"`), their values are reconciled as follows: * If `font_family` is set and `weighted_font_family` is not, the value of `font_family` is applied with weight `400` ("normal"). * If both fields are set, the value of `font_family` must match that of `weighted_font_family#font_family`. If so, the font family and weight of `weighted_font_family` is applied. Otherwise, a 400 bad request error is returned. * If `weighted_font_family` is set and `font_family` is not, the font family and weight of `weighted_font_family` is applied. * If neither field is set, the font family and weight of the text inherit from the parent. Note that these properties cannot inherit separately from each other. If an update request specifies values for both `weighted_font_family` and `bold`, the `weighted_font_family` is applied first, then `bold`. If `weighted_font_family#weight` is not set, it defaults to `400`. If `weighted_font_family` is set, then `weighted_font_family#font_family` must also be set with a non-empty value. Otherwise, a 400 bad request error is returned. */
1005
+ weightedFontFamily?: WeightedFontFamily;
1006
+ }
1007
+ interface ThemeColorPair {
1008
+ /** The concrete color corresponding to the theme color type above. */
1009
+ color?: RgbColor;
1010
+ /** The type of the theme color. */
1011
+ type?: string;
1012
+ }
1013
+ interface Thumbnail {
1014
+ /** The content URL of the thumbnail image. The URL to the image has a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. The mime type of the thumbnail image is the same as specified in the `GetPageThumbnailRequest`. */
1015
+ contentUrl?: string;
1016
+ /** The positive height in pixels of the thumbnail image. */
1017
+ height?: number;
1018
+ /** The positive width in pixels of the thumbnail image. */
1019
+ width?: number;
1020
+ }
1021
+ interface UngroupObjectsRequest {
1022
+ /** The object IDs of the objects to ungroup. Only groups that are not inside other groups can be ungrouped. All the groups should be on the same page. The group itself is deleted. The visual sizes and positions of all the children are preserved. */
1023
+ objectIds?: string[];
1024
+ }
1025
+ interface UnmergeTableCellsRequest {
1026
+ /** The object ID of the table. */
1027
+ objectId?: string;
1028
+ /** The table range specifying which cells of the table to unmerge. All merged cells in this range will be unmerged, and cells that are already unmerged will not be affected. If the range has no merged cells, the request will do nothing. If there is text in any of the merged cells, the text will remain in the upper-left ("head") cell of the resulting block of unmerged cells. */
1029
+ tableRange?: TableRange;
1030
+ }
1031
+ interface UpdateImagePropertiesRequest {
1032
+ /** The fields that should be updated. At least one field must be specified. The root `imageProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the image outline color, set `fields` to `"outline.outlineFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1033
+ fields?: string;
1034
+ /** The image properties to update. */
1035
+ imageProperties?: ImageProperties;
1036
+ /** The object ID of the image the updates are applied to. */
1037
+ objectId?: string;
1038
+ }
1039
+ interface UpdateLineCategoryRequest {
1040
+ /** The line category to update to. The exact line type is determined based on the category to update to and how it's routed to connect to other page elements. */
1041
+ lineCategory?: string;
1042
+ /** The object ID of the line the update is applied to. Only a line with a category indicating it is a "connector" can be updated. The line may be rerouted after updating its category. */
1043
+ objectId?: string;
1044
+ }
1045
+ interface UpdateLinePropertiesRequest {
1046
+ /** The fields that should be updated. At least one field must be specified. The root `lineProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the line solid fill color, set `fields` to `"lineFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1047
+ fields?: string;
1048
+ /** The line properties to update. */
1049
+ lineProperties?: LineProperties;
1050
+ /** The object ID of the line the update is applied to. */
1051
+ objectId?: string;
1052
+ }
1053
+ interface UpdatePageElementAltTextRequest {
1054
+ /** The updated alt text description of the page element. If unset the existing value will be maintained. The description is exposed to screen readers and other accessibility interfaces. Only use human readable values related to the content of the page element. */
1055
+ description?: string;
1056
+ /** The object ID of the page element the updates are applied to. */
1057
+ objectId?: string;
1058
+ /** The updated alt text title of the page element. If unset the existing value will be maintained. The title is exposed to screen readers and other accessibility interfaces. Only use human readable values related to the content of the page element. */
1059
+ title?: string;
1060
+ }
1061
+ interface UpdatePageElementsZOrderRequest {
1062
+ /** The Z-order operation to apply on the page elements. When applying the operation on multiple page elements, the relative Z-orders within these page elements before the operation is maintained. */
1063
+ operation?: string;
1064
+ /** The object IDs of the page elements to update. All the page elements must be on the same page and must not be grouped. */
1065
+ pageElementObjectIds?: string[];
1066
+ }
1067
+ interface UpdatePageElementTransformRequest {
1068
+ /** The apply mode of the transform update. */
1069
+ applyMode?: string;
1070
+ /** The object ID of the page element to update. */
1071
+ objectId?: string;
1072
+ /** The input transform matrix used to update the page element. */
1073
+ transform?: AffineTransform;
1074
+ }
1075
+ interface UpdatePagePropertiesRequest {
1076
+ /** The fields that should be updated. At least one field must be specified. The root `pageProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the page background solid fill color, set `fields` to `"pageBackgroundFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1077
+ fields?: string;
1078
+ /** The object ID of the page the update is applied to. */
1079
+ objectId?: string;
1080
+ /** The page properties to update. */
1081
+ pageProperties?: PageProperties;
1082
+ }
1083
+ interface UpdateParagraphStyleRequest {
1084
+ /** The location of the cell in the table containing the paragraph(s) to style. If `object_id` refers to a table, `cell_location` must have a value. Otherwise, it must not. */
1085
+ cellLocation?: TableCellLocation;
1086
+ /** The fields that should be updated. At least one field must be specified. The root `style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the paragraph alignment, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1087
+ fields?: string;
1088
+ /** The object ID of the shape or table with the text to be styled. */
1089
+ objectId?: string;
1090
+ /** The paragraph's style. */
1091
+ style?: ParagraphStyle;
1092
+ /** The range of text containing the paragraph(s) to style. */
1093
+ textRange?: Range;
1094
+ }
1095
+ interface UpdateShapePropertiesRequest {
1096
+ /** The fields that should be updated. At least one field must be specified. The root `shapeProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the shape background solid fill color, set `fields` to `"shapeBackgroundFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1097
+ fields?: string;
1098
+ /** The object ID of the shape the updates are applied to. */
1099
+ objectId?: string;
1100
+ /** The shape properties to update. */
1101
+ shapeProperties?: ShapeProperties;
1102
+ }
1103
+ interface UpdateSlidePropertiesRequest {
1104
+ /** The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update whether a slide is skipped, set `fields` to `"isSkipped"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1105
+ fields?: string;
1106
+ /** The object ID of the slide the update is applied to. */
1107
+ objectId?: string;
1108
+ /** The slide properties to update. */
1109
+ slideProperties?: SlideProperties;
1110
+ }
1111
+ interface UpdateSlidesPositionRequest {
1112
+ /** The index where the slides should be inserted, based on the slide arrangement before the move takes place. Must be between zero and the number of slides in the presentation, inclusive. */
1113
+ insertionIndex?: number;
1114
+ /** The IDs of the slides in the presentation that should be moved. The slides in this list must be in existing presentation order, without duplicates. */
1115
+ slideObjectIds?: string[];
1116
+ }
1117
+ interface UpdateTableBorderPropertiesRequest {
1118
+ /** The border position in the table range the updates should apply to. If a border position is not specified, the updates will apply to all borders in the table range. */
1119
+ borderPosition?: string;
1120
+ /** The fields that should be updated. At least one field must be specified. The root `tableBorderProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the table border solid fill color, set `fields` to `"tableBorderFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1121
+ fields?: string;
1122
+ /** The object ID of the table. */
1123
+ objectId?: string;
1124
+ /** The table border properties to update. */
1125
+ tableBorderProperties?: TableBorderProperties;
1126
+ /** The table range representing the subset of the table to which the updates are applied. If a table range is not specified, the updates will apply to the entire table. */
1127
+ tableRange?: TableRange;
1128
+ }
1129
+ interface UpdateTableCellPropertiesRequest {
1130
+ /** The fields that should be updated. At least one field must be specified. The root `tableCellProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the table cell background solid fill color, set `fields` to `"tableCellBackgroundFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1131
+ fields?: string;
1132
+ /** The object ID of the table. */
1133
+ objectId?: string;
1134
+ /** The table cell properties to update. */
1135
+ tableCellProperties?: TableCellProperties;
1136
+ /** The table range representing the subset of the table to which the updates are applied. If a table range is not specified, the updates will apply to the entire table. */
1137
+ tableRange?: TableRange;
1138
+ }
1139
+ interface UpdateTableColumnPropertiesRequest {
1140
+ /** The list of zero-based indices specifying which columns to update. If no indices are provided, all columns in the table will be updated. */
1141
+ columnIndices?: number[];
1142
+ /** The fields that should be updated. At least one field must be specified. The root `tableColumnProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the column width, set `fields` to `"column_width"`. If '"column_width"' is included in the field mask but the property is left unset, the column width will default to 406,400 EMU (32 points). */
1143
+ fields?: string;
1144
+ /** The object ID of the table. */
1145
+ objectId?: string;
1146
+ /** The table column properties to update. If the value of `table_column_properties#column_width` in the request is less than 406,400 EMU (32 points), a 400 bad request error is returned. */
1147
+ tableColumnProperties?: TableColumnProperties;
1148
+ }
1149
+ interface UpdateTableRowPropertiesRequest {
1150
+ /** The fields that should be updated. At least one field must be specified. The root `tableRowProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the minimum row height, set `fields` to `"min_row_height"`. If '"min_row_height"' is included in the field mask but the property is left unset, the minimum row height will default to 0. */
1151
+ fields?: string;
1152
+ /** The object ID of the table. */
1153
+ objectId?: string;
1154
+ /** The list of zero-based indices specifying which rows to update. If no indices are provided, all rows in the table will be updated. */
1155
+ rowIndices?: number[];
1156
+ /** The table row properties to update. */
1157
+ tableRowProperties?: TableRowProperties;
1158
+ }
1159
+ interface UpdateTextStyleRequest {
1160
+ /** The location of the cell in the table containing the text to style. If `object_id` refers to a table, `cell_location` must have a value. Otherwise, it must not. */
1161
+ cellLocation?: TableCellLocation;
1162
+ /** The fields that should be updated. At least one field must be specified. The root `style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the text style to bold, set `fields` to `"bold"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1163
+ fields?: string;
1164
+ /** The object ID of the shape or table with the text to be styled. */
1165
+ objectId?: string;
1166
+ /** The style(s) to set on the text. If the value for a particular style matches that of the parent, that style will be set to inherit. Certain text style changes may cause other changes meant to mirror the behavior of the Slides editor. See the documentation of TextStyle for more information. */
1167
+ style?: TextStyle;
1168
+ /** The range of text to style. The range may be extended to include adjacent newlines. If the range fully contains a paragraph belonging to a list, the paragraph's bullet is also updated with the matching text style. */
1169
+ textRange?: Range;
1170
+ }
1171
+ interface UpdateVideoPropertiesRequest {
1172
+ /** The fields that should be updated. At least one field must be specified. The root `videoProperties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the video outline color, set `fields` to `"outline.outlineFill.solidFill.color"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1173
+ fields?: string;
1174
+ /** The object ID of the video the updates are applied to. */
1175
+ objectId?: string;
1176
+ /** The video properties to update. */
1177
+ videoProperties?: VideoProperties;
1178
+ }
1179
+ interface Video {
1180
+ /** The video source's unique identifier for this video. */
1181
+ id?: string;
1182
+ /** The video source. */
1183
+ source?: string;
1184
+ /** An URL to a video. The URL is valid as long as the source video exists and sharing settings do not change. */
1185
+ url?: string;
1186
+ /** The properties of the video. */
1187
+ videoProperties?: VideoProperties;
1188
+ }
1189
+ interface VideoProperties {
1190
+ /** Whether to enable video autoplay when the page is displayed in present mode. Defaults to false. */
1191
+ autoPlay?: boolean;
1192
+ /** The time at which to end playback, measured in seconds from the beginning of the video. If set, the end time should be after the start time. If not set or if you set this to a value that exceeds the video's length, the video will be played until its end. */
1193
+ end?: number;
1194
+ /** Whether to mute the audio during video playback. Defaults to false. */
1195
+ mute?: boolean;
1196
+ /** The outline of the video. The default outline matches the defaults for new videos created in the Slides editor. */
1197
+ outline?: Outline;
1198
+ /** The time at which to start playback, measured in seconds from the beginning of the video. If set, the start time should be before the end time. If you set this to a value that exceeds the video's length in seconds, the video will be played from the last second. If not set, the video will be played from the beginning. */
1199
+ start?: number;
1200
+ }
1201
+ interface WeightedFontFamily {
1202
+ /** The font family of the text. The font family can be any font from the Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). If the font name is unrecognized, the text is rendered in `Arial`. */
1203
+ fontFamily?: string;
1204
+ /** The rendered weight of the text. This field can have any value that is a multiple of `100` between `100` and `900`, inclusive. This range corresponds to the numerical values described in the CSS 2.1 Specification, [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness), with non-numerical values disallowed. Weights greater than or equal to `700` are considered bold, and weights less than `700`are not bold. The default value is `400` ("normal"). */
1205
+ weight?: number;
1206
+ }
1207
+ interface WordArt {
1208
+ /** The text rendered as word art. */
1209
+ renderedText?: string;
1210
+ }
1211
+ interface WriteControl {
1212
+ /** The revision ID of the presentation required for the write request. If specified and the required revision ID doesn't match the presentation's current revision ID, the request is not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied. */
1213
+ requiredRevisionId?: string;
1214
+ }
1215
+ interface PagesResource {
1216
+ /** Gets the latest version of the specified page in the presentation. */
1217
+ get(request?: {
1218
+ /** V1 error format. */
1219
+ '$.xgafv'?: string;
1220
+ /** OAuth access token. */
1221
+ access_token?: string;
1222
+ /** Data format for response. */
1223
+ alt?: string;
1224
+ /** JSONP */
1225
+ callback?: string;
1226
+ /** Selector specifying which fields to include in a partial response. */
1227
+ fields?: string;
1228
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1229
+ key?: string;
1230
+ /** OAuth 2.0 token for the current user. */
1231
+ oauth_token?: string;
1232
+ /** The object ID of the page to retrieve. */
1233
+ pageObjectId: string;
1234
+ /** The ID of the presentation to retrieve. */
1235
+ presentationId: string;
1236
+ /** Returns response with indentations and line breaks. */
1237
+ prettyPrint?: boolean;
1238
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1239
+ quotaUser?: string;
1240
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1241
+ upload_protocol?: string;
1242
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1243
+ uploadType?: string;
1244
+ }): client.Request<Page>;
1245
+ /** Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image. This request counts as an [expensive read request](/slides/limits) for quota purposes. */
1246
+ getThumbnail(request?: {
1247
+ /** V1 error format. */
1248
+ '$.xgafv'?: string;
1249
+ /** OAuth access token. */
1250
+ access_token?: string;
1251
+ /** Data format for response. */
1252
+ alt?: string;
1253
+ /** JSONP */
1254
+ callback?: string;
1255
+ /** Selector specifying which fields to include in a partial response. */
1256
+ fields?: string;
1257
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1258
+ key?: string;
1259
+ /** OAuth 2.0 token for the current user. */
1260
+ oauth_token?: string;
1261
+ /** The object ID of the page whose thumbnail to retrieve. */
1262
+ pageObjectId: string;
1263
+ /** The ID of the presentation to retrieve. */
1264
+ presentationId: string;
1265
+ /** Returns response with indentations and line breaks. */
1266
+ prettyPrint?: boolean;
1267
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1268
+ quotaUser?: string;
1269
+ /** The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG. */
1270
+ 'thumbnailProperties.mimeType'?: string;
1271
+ /** The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image. */
1272
+ 'thumbnailProperties.thumbnailSize'?: string;
1273
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1274
+ upload_protocol?: string;
1275
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1276
+ uploadType?: string;
1277
+ }): client.Request<Thumbnail>;
1278
+ }
1279
+ interface PresentationsResource {
1280
+ /** Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically. */
1281
+ batchUpdate(request: {
1282
+ /** V1 error format. */
1283
+ '$.xgafv'?: string;
1284
+ /** OAuth access token. */
1285
+ access_token?: string;
1286
+ /** Data format for response. */
1287
+ alt?: string;
1288
+ /** JSONP */
1289
+ callback?: string;
1290
+ /** Selector specifying which fields to include in a partial response. */
1291
+ fields?: string;
1292
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1293
+ key?: string;
1294
+ /** OAuth 2.0 token for the current user. */
1295
+ oauth_token?: string;
1296
+ /** The presentation to apply the updates to. */
1297
+ presentationId: string;
1298
+ /** Returns response with indentations and line breaks. */
1299
+ prettyPrint?: boolean;
1300
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1301
+ quotaUser?: string;
1302
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1303
+ upload_protocol?: string;
1304
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1305
+ uploadType?: string;
1306
+ /** Request body */
1307
+ resource: BatchUpdatePresentationRequest;
1308
+ }): client.Request<BatchUpdatePresentationResponse>;
1309
+ batchUpdate(
1310
+ request: {
1311
+ /** V1 error format. */
1312
+ '$.xgafv'?: string;
1313
+ /** OAuth access token. */
1314
+ access_token?: string;
1315
+ /** Data format for response. */
1316
+ alt?: string;
1317
+ /** JSONP */
1318
+ callback?: string;
1319
+ /** Selector specifying which fields to include in a partial response. */
1320
+ fields?: string;
1321
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1322
+ key?: string;
1323
+ /** OAuth 2.0 token for the current user. */
1324
+ oauth_token?: string;
1325
+ /** The presentation to apply the updates to. */
1326
+ presentationId: string;
1327
+ /** Returns response with indentations and line breaks. */
1328
+ prettyPrint?: boolean;
1329
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1330
+ quotaUser?: string;
1331
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1332
+ upload_protocol?: string;
1333
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1334
+ uploadType?: string;
1335
+ },
1336
+ body: BatchUpdatePresentationRequest
1337
+ ): client.Request<BatchUpdatePresentationResponse>;
1338
+ /** Creates a blank presentation using the title given in the request. If a `presentationId` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation. */
1339
+ create(request: {
1340
+ /** V1 error format. */
1341
+ '$.xgafv'?: string;
1342
+ /** OAuth access token. */
1343
+ access_token?: string;
1344
+ /** Data format for response. */
1345
+ alt?: string;
1346
+ /** JSONP */
1347
+ callback?: string;
1348
+ /** Selector specifying which fields to include in a partial response. */
1349
+ fields?: string;
1350
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1351
+ key?: string;
1352
+ /** OAuth 2.0 token for the current user. */
1353
+ oauth_token?: string;
1354
+ /** Returns response with indentations and line breaks. */
1355
+ prettyPrint?: boolean;
1356
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1357
+ quotaUser?: string;
1358
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1359
+ upload_protocol?: string;
1360
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1361
+ uploadType?: string;
1362
+ /** Request body */
1363
+ resource: Presentation;
1364
+ }): client.Request<Presentation>;
1365
+ create(
1366
+ request: {
1367
+ /** V1 error format. */
1368
+ '$.xgafv'?: string;
1369
+ /** OAuth access token. */
1370
+ access_token?: string;
1371
+ /** Data format for response. */
1372
+ alt?: string;
1373
+ /** JSONP */
1374
+ callback?: string;
1375
+ /** Selector specifying which fields to include in a partial response. */
1376
+ fields?: string;
1377
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1378
+ key?: string;
1379
+ /** OAuth 2.0 token for the current user. */
1380
+ oauth_token?: string;
1381
+ /** Returns response with indentations and line breaks. */
1382
+ prettyPrint?: boolean;
1383
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1384
+ quotaUser?: string;
1385
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1386
+ upload_protocol?: string;
1387
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1388
+ uploadType?: string;
1389
+ },
1390
+ body: Presentation
1391
+ ): client.Request<Presentation>;
1392
+ /** Gets the latest version of the specified presentation. */
1393
+ get(request?: {
1394
+ /** V1 error format. */
1395
+ '$.xgafv'?: string;
1396
+ /** OAuth access token. */
1397
+ access_token?: string;
1398
+ /** Data format for response. */
1399
+ alt?: string;
1400
+ /** JSONP */
1401
+ callback?: string;
1402
+ /** Selector specifying which fields to include in a partial response. */
1403
+ fields?: string;
1404
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1405
+ key?: string;
1406
+ /** OAuth 2.0 token for the current user. */
1407
+ oauth_token?: string;
1408
+ /** The ID of the presentation to retrieve. */
1409
+ presentationId: string;
1410
+ /** Returns response with indentations and line breaks. */
1411
+ prettyPrint?: boolean;
1412
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1413
+ quotaUser?: string;
1414
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1415
+ upload_protocol?: string;
1416
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1417
+ uploadType?: string;
1418
+ }): client.Request<Presentation>;
1419
+ pages: PagesResource;
1420
+ }
1421
+
1422
+ const presentations: PresentationsResource;
1423
+ }
2379
1424
  }