@maxim_mazurok/gapi.client.slides-v1 0.0.20260310 → 0.1.20260311

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.
Files changed (2) hide show
  1. package/index.d.ts +588 -65
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
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: 20260310
12
+ // Revision: 20260311
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -38,11 +38,15 @@ declare namespace gapi.client {
38
38
  /** The Y coordinate translation element. */
39
39
  translateY?: number;
40
40
  /** The units for translate elements. */
41
- unit?: string;
41
+ unit?: 'UNIT_UNSPECIFIED' | 'EMU' | 'PT';
42
42
  }
43
43
  interface Autofit {
44
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;
45
+ autofitType?:
46
+ | 'AUTOFIT_TYPE_UNSPECIFIED'
47
+ | 'NONE'
48
+ | 'TEXT_AUTOFIT'
49
+ | 'SHAPE_AUTOFIT';
46
50
  /** 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's rendered in the editor. This property is read-only. */
47
51
  fontScale?: number;
48
52
  /** 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's rendered in the editor. This property is read-only. */
@@ -54,7 +58,7 @@ declare namespace gapi.client {
54
58
  /** The styling applied to this auto text. */
55
59
  style?: TextStyle;
56
60
  /** The type of this auto text. */
57
- type?: string;
61
+ type?: 'TYPE_UNSPECIFIED' | 'SLIDE_NUMBER';
58
62
  }
59
63
  interface BatchUpdatePresentationRequest {
60
64
  /** A list of updates to apply to the presentation. */
@@ -106,11 +110,11 @@ declare namespace gapi.client {
106
110
  }
107
111
  interface CreateLineRequest {
108
112
  /** 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;
113
+ category?: 'LINE_CATEGORY_UNSPECIFIED' | 'STRAIGHT' | 'BENT' | 'CURVED';
110
114
  /** The element properties for the line. */
111
115
  elementProperties?: PageElementProperties;
112
116
  /** 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;
117
+ lineCategory?: 'STRAIGHT' | 'BENT' | 'CURVED';
114
118
  /** 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
119
  objectId?: string;
116
120
  }
@@ -120,7 +124,22 @@ declare namespace gapi.client {
120
124
  }
121
125
  interface CreateParagraphBulletsRequest {
122
126
  /** The kinds of bullet glyphs to be used. Defaults to the `BULLET_DISC_CIRCLE_SQUARE` preset. */
123
- bulletPreset?: string;
127
+ bulletPreset?:
128
+ | 'BULLET_DISC_CIRCLE_SQUARE'
129
+ | 'BULLET_DIAMONDX_ARROW3D_SQUARE'
130
+ | 'BULLET_CHECKBOX'
131
+ | 'BULLET_ARROW_DIAMOND_DISC'
132
+ | 'BULLET_STAR_CIRCLE_SQUARE'
133
+ | 'BULLET_ARROW3D_CIRCLE_SQUARE'
134
+ | 'BULLET_LEFTTRIANGLE_DIAMOND_DISC'
135
+ | 'BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE'
136
+ | 'BULLET_DIAMOND_CIRCLE_SQUARE'
137
+ | 'NUMBERED_DIGIT_ALPHA_ROMAN'
138
+ | 'NUMBERED_DIGIT_ALPHA_ROMAN_PARENS'
139
+ | 'NUMBERED_DIGIT_NESTED'
140
+ | 'NUMBERED_UPPERALPHA_ALPHA_ROMAN'
141
+ | 'NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT'
142
+ | 'NUMBERED_ZERODIGIT_ALPHA_ROMAN';
124
143
  /** 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
144
  cellLocation?: TableCellLocation;
126
145
  /** The object ID of the shape or table containing the text to add bullets to. */
@@ -134,7 +153,150 @@ declare namespace gapi.client {
134
153
  /** 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
154
  objectId?: string;
136
155
  /** The shape type. */
137
- shapeType?: string;
156
+ shapeType?:
157
+ | 'TYPE_UNSPECIFIED'
158
+ | 'TEXT_BOX'
159
+ | 'RECTANGLE'
160
+ | 'ROUND_RECTANGLE'
161
+ | 'ELLIPSE'
162
+ | 'ARC'
163
+ | 'BENT_ARROW'
164
+ | 'BENT_UP_ARROW'
165
+ | 'BEVEL'
166
+ | 'BLOCK_ARC'
167
+ | 'BRACE_PAIR'
168
+ | 'BRACKET_PAIR'
169
+ | 'CAN'
170
+ | 'CHEVRON'
171
+ | 'CHORD'
172
+ | 'CLOUD'
173
+ | 'CORNER'
174
+ | 'CUBE'
175
+ | 'CURVED_DOWN_ARROW'
176
+ | 'CURVED_LEFT_ARROW'
177
+ | 'CURVED_RIGHT_ARROW'
178
+ | 'CURVED_UP_ARROW'
179
+ | 'DECAGON'
180
+ | 'DIAGONAL_STRIPE'
181
+ | 'DIAMOND'
182
+ | 'DODECAGON'
183
+ | 'DONUT'
184
+ | 'DOUBLE_WAVE'
185
+ | 'DOWN_ARROW'
186
+ | 'DOWN_ARROW_CALLOUT'
187
+ | 'FOLDED_CORNER'
188
+ | 'FRAME'
189
+ | 'HALF_FRAME'
190
+ | 'HEART'
191
+ | 'HEPTAGON'
192
+ | 'HEXAGON'
193
+ | 'HOME_PLATE'
194
+ | 'HORIZONTAL_SCROLL'
195
+ | 'IRREGULAR_SEAL_1'
196
+ | 'IRREGULAR_SEAL_2'
197
+ | 'LEFT_ARROW'
198
+ | 'LEFT_ARROW_CALLOUT'
199
+ | 'LEFT_BRACE'
200
+ | 'LEFT_BRACKET'
201
+ | 'LEFT_RIGHT_ARROW'
202
+ | 'LEFT_RIGHT_ARROW_CALLOUT'
203
+ | 'LEFT_RIGHT_UP_ARROW'
204
+ | 'LEFT_UP_ARROW'
205
+ | 'LIGHTNING_BOLT'
206
+ | 'MATH_DIVIDE'
207
+ | 'MATH_EQUAL'
208
+ | 'MATH_MINUS'
209
+ | 'MATH_MULTIPLY'
210
+ | 'MATH_NOT_EQUAL'
211
+ | 'MATH_PLUS'
212
+ | 'MOON'
213
+ | 'NO_SMOKING'
214
+ | 'NOTCHED_RIGHT_ARROW'
215
+ | 'OCTAGON'
216
+ | 'PARALLELOGRAM'
217
+ | 'PENTAGON'
218
+ | 'PIE'
219
+ | 'PLAQUE'
220
+ | 'PLUS'
221
+ | 'QUAD_ARROW'
222
+ | 'QUAD_ARROW_CALLOUT'
223
+ | 'RIBBON'
224
+ | 'RIBBON_2'
225
+ | 'RIGHT_ARROW'
226
+ | 'RIGHT_ARROW_CALLOUT'
227
+ | 'RIGHT_BRACE'
228
+ | 'RIGHT_BRACKET'
229
+ | 'ROUND_1_RECTANGLE'
230
+ | 'ROUND_2_DIAGONAL_RECTANGLE'
231
+ | 'ROUND_2_SAME_RECTANGLE'
232
+ | 'RIGHT_TRIANGLE'
233
+ | 'SMILEY_FACE'
234
+ | 'SNIP_1_RECTANGLE'
235
+ | 'SNIP_2_DIAGONAL_RECTANGLE'
236
+ | 'SNIP_2_SAME_RECTANGLE'
237
+ | 'SNIP_ROUND_RECTANGLE'
238
+ | 'STAR_10'
239
+ | 'STAR_12'
240
+ | 'STAR_16'
241
+ | 'STAR_24'
242
+ | 'STAR_32'
243
+ | 'STAR_4'
244
+ | 'STAR_5'
245
+ | 'STAR_6'
246
+ | 'STAR_7'
247
+ | 'STAR_8'
248
+ | 'STRIPED_RIGHT_ARROW'
249
+ | 'SUN'
250
+ | 'TRAPEZOID'
251
+ | 'TRIANGLE'
252
+ | 'UP_ARROW'
253
+ | 'UP_ARROW_CALLOUT'
254
+ | 'UP_DOWN_ARROW'
255
+ | 'UTURN_ARROW'
256
+ | 'VERTICAL_SCROLL'
257
+ | 'WAVE'
258
+ | 'WEDGE_ELLIPSE_CALLOUT'
259
+ | 'WEDGE_RECTANGLE_CALLOUT'
260
+ | 'WEDGE_ROUND_RECTANGLE_CALLOUT'
261
+ | 'FLOW_CHART_ALTERNATE_PROCESS'
262
+ | 'FLOW_CHART_COLLATE'
263
+ | 'FLOW_CHART_CONNECTOR'
264
+ | 'FLOW_CHART_DECISION'
265
+ | 'FLOW_CHART_DELAY'
266
+ | 'FLOW_CHART_DISPLAY'
267
+ | 'FLOW_CHART_DOCUMENT'
268
+ | 'FLOW_CHART_EXTRACT'
269
+ | 'FLOW_CHART_INPUT_OUTPUT'
270
+ | 'FLOW_CHART_INTERNAL_STORAGE'
271
+ | 'FLOW_CHART_MAGNETIC_DISK'
272
+ | 'FLOW_CHART_MAGNETIC_DRUM'
273
+ | 'FLOW_CHART_MAGNETIC_TAPE'
274
+ | 'FLOW_CHART_MANUAL_INPUT'
275
+ | 'FLOW_CHART_MANUAL_OPERATION'
276
+ | 'FLOW_CHART_MERGE'
277
+ | 'FLOW_CHART_MULTIDOCUMENT'
278
+ | 'FLOW_CHART_OFFLINE_STORAGE'
279
+ | 'FLOW_CHART_OFFPAGE_CONNECTOR'
280
+ | 'FLOW_CHART_ONLINE_STORAGE'
281
+ | 'FLOW_CHART_OR'
282
+ | 'FLOW_CHART_PREDEFINED_PROCESS'
283
+ | 'FLOW_CHART_PREPARATION'
284
+ | 'FLOW_CHART_PROCESS'
285
+ | 'FLOW_CHART_PUNCHED_CARD'
286
+ | 'FLOW_CHART_PUNCHED_TAPE'
287
+ | 'FLOW_CHART_SORT'
288
+ | 'FLOW_CHART_SUMMING_JUNCTION'
289
+ | 'FLOW_CHART_TERMINATOR'
290
+ | 'ARROW_EAST'
291
+ | 'ARROW_NORTH_EAST'
292
+ | 'ARROW_NORTH'
293
+ | 'SPEECH'
294
+ | 'STARBURST'
295
+ | 'TEARDROP'
296
+ | 'ELLIPSE_RIBBON'
297
+ | 'ELLIPSE_RIBBON_2'
298
+ | 'CLOUD_CALLOUT'
299
+ | 'CUSTOM';
138
300
  }
139
301
  interface CreateShapeResponse {
140
302
  /** The object ID of the created shape. */
@@ -146,7 +308,7 @@ declare namespace gapi.client {
146
308
  /** 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
309
  elementProperties?: PageElementProperties;
148
310
  /** 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;
311
+ linkingMode?: 'NOT_LINKED_IMAGE' | 'LINKED';
150
312
  /** 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
313
  objectId?: string;
152
314
  /** 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). */
@@ -192,7 +354,7 @@ declare namespace gapi.client {
192
354
  /** 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
355
  objectId?: string;
194
356
  /** The video source. */
195
- source?: string;
357
+ source?: 'SOURCE_UNSPECIFIED' | 'YOUTUBE' | 'DRIVE';
196
358
  }
197
359
  interface CreateVideoResponse {
198
360
  /** The object ID of the created video. */
@@ -246,7 +408,7 @@ declare namespace gapi.client {
246
408
  /** The magnitude. */
247
409
  magnitude?: number;
248
410
  /** The units for magnitude. */
249
- unit?: string;
411
+ unit?: 'UNIT_UNSPECIFIED' | 'EMU' | 'PT';
250
412
  }
251
413
  interface DuplicateObjectRequest {
252
414
  /** The ID of the object to duplicate. */
@@ -350,15 +512,42 @@ declare namespace gapi.client {
350
512
  /** Layout ID: the object ID of one of the layouts in the presentation. */
351
513
  layoutId?: string;
352
514
  /** Predefined layout. */
353
- predefinedLayout?: string;
515
+ predefinedLayout?:
516
+ | 'PREDEFINED_LAYOUT_UNSPECIFIED'
517
+ | 'BLANK'
518
+ | 'CAPTION_ONLY'
519
+ | 'TITLE'
520
+ | 'TITLE_AND_BODY'
521
+ | 'TITLE_AND_TWO_COLUMNS'
522
+ | 'TITLE_ONLY'
523
+ | 'SECTION_HEADER'
524
+ | 'SECTION_TITLE_AND_DESCRIPTION'
525
+ | 'ONE_COLUMN_TEXT'
526
+ | 'MAIN_POINT'
527
+ | 'BIG_NUMBER';
354
528
  }
355
529
  interface Line {
356
530
  /** The category of the line. It matches the `category` specified in CreateLineRequest, and can be updated with UpdateLineCategoryRequest. */
357
- lineCategory?: string;
531
+ lineCategory?:
532
+ | 'LINE_CATEGORY_UNSPECIFIED'
533
+ | 'STRAIGHT'
534
+ | 'BENT'
535
+ | 'CURVED';
358
536
  /** The properties of the line. */
359
537
  lineProperties?: LineProperties;
360
538
  /** The type of the line. */
361
- lineType?: string;
539
+ lineType?:
540
+ | 'TYPE_UNSPECIFIED'
541
+ | 'STRAIGHT_CONNECTOR_1'
542
+ | 'BENT_CONNECTOR_2'
543
+ | 'BENT_CONNECTOR_3'
544
+ | 'BENT_CONNECTOR_4'
545
+ | 'BENT_CONNECTOR_5'
546
+ | 'CURVED_CONNECTOR_2'
547
+ | 'CURVED_CONNECTOR_3'
548
+ | 'CURVED_CONNECTOR_4'
549
+ | 'CURVED_CONNECTOR_5'
550
+ | 'STRAIGHT_LINE';
362
551
  }
363
552
  interface LineConnection {
364
553
  /** 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. */
@@ -372,9 +561,27 @@ declare namespace gapi.client {
372
561
  }
373
562
  interface LineProperties {
374
563
  /** The dash style of the line. */
375
- dashStyle?: string;
564
+ dashStyle?:
565
+ | 'DASH_STYLE_UNSPECIFIED'
566
+ | 'SOLID'
567
+ | 'DOT'
568
+ | 'DASH'
569
+ | 'DASH_DOT'
570
+ | 'LONG_DASH'
571
+ | 'LONG_DASH_DOT';
376
572
  /** The style of the arrow at the end of the line. */
377
- endArrow?: string;
573
+ endArrow?:
574
+ | 'ARROW_STYLE_UNSPECIFIED'
575
+ | 'NONE'
576
+ | 'STEALTH_ARROW'
577
+ | 'FILL_ARROW'
578
+ | 'FILL_CIRCLE'
579
+ | 'FILL_SQUARE'
580
+ | 'FILL_DIAMOND'
581
+ | 'OPEN_ARROW'
582
+ | 'OPEN_CIRCLE'
583
+ | 'OPEN_SQUARE'
584
+ | 'OPEN_DIAMOND';
378
585
  /** 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
586
  endConnection?: LineConnection;
380
587
  /** The fill of the line. The default line fill matches the defaults for new lines created in the Slides editor. */
@@ -382,7 +589,18 @@ declare namespace gapi.client {
382
589
  /** The hyperlink destination of the line. If unset, there is no link. */
383
590
  link?: Link;
384
591
  /** The style of the arrow at the beginning of the line. */
385
- startArrow?: string;
592
+ startArrow?:
593
+ | 'ARROW_STYLE_UNSPECIFIED'
594
+ | 'NONE'
595
+ | 'STEALTH_ARROW'
596
+ | 'FILL_ARROW'
597
+ | 'FILL_CIRCLE'
598
+ | 'FILL_SQUARE'
599
+ | 'FILL_DIAMOND'
600
+ | 'OPEN_ARROW'
601
+ | 'OPEN_CIRCLE'
602
+ | 'OPEN_SQUARE'
603
+ | 'OPEN_DIAMOND';
386
604
  /** 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
605
  startConnection?: LineConnection;
388
606
  /** The thickness of the line. */
@@ -392,7 +610,12 @@ declare namespace gapi.client {
392
610
  /** 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
611
  pageObjectId?: string;
394
612
  /** If set, indicates this is a link to a slide in this presentation, addressed by its position. */
395
- relativeLink?: string;
613
+ relativeLink?:
614
+ | 'RELATIVE_SLIDE_LINK_UNSPECIFIED'
615
+ | 'NEXT_SLIDE'
616
+ | 'PREVIOUS_SLIDE'
617
+ | 'FIRST_SLIDE'
618
+ | 'LAST_SLIDE';
396
619
  /** 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
620
  slideIndex?: number;
398
621
  /** If set, indicates this is a link to the external web page at this URL. */
@@ -426,7 +649,24 @@ declare namespace gapi.client {
426
649
  /** An opaque RGB color. */
427
650
  rgbColor?: RgbColor;
428
651
  /** An opaque theme color. */
429
- themeColor?: string;
652
+ themeColor?:
653
+ | 'THEME_COLOR_TYPE_UNSPECIFIED'
654
+ | 'DARK1'
655
+ | 'LIGHT1'
656
+ | 'DARK2'
657
+ | 'LIGHT2'
658
+ | 'ACCENT1'
659
+ | 'ACCENT2'
660
+ | 'ACCENT3'
661
+ | 'ACCENT4'
662
+ | 'ACCENT5'
663
+ | 'ACCENT6'
664
+ | 'HYPERLINK'
665
+ | 'FOLLOWED_HYPERLINK'
666
+ | 'TEXT1'
667
+ | 'BACKGROUND1'
668
+ | 'TEXT2'
669
+ | 'BACKGROUND2';
430
670
  }
431
671
  interface OptionalColor {
432
672
  /** If set, this will be used as an opaque color. If unset, this represents a transparent color. */
@@ -434,11 +674,18 @@ declare namespace gapi.client {
434
674
  }
435
675
  interface Outline {
436
676
  /** The dash style of the outline. */
437
- dashStyle?: string;
677
+ dashStyle?:
678
+ | 'DASH_STYLE_UNSPECIFIED'
679
+ | 'SOLID'
680
+ | 'DOT'
681
+ | 'DASH'
682
+ | 'DASH_DOT'
683
+ | 'LONG_DASH'
684
+ | 'LONG_DASH_DOT';
438
685
  /** The fill of the outline. */
439
686
  outlineFill?: OutlineFill;
440
687
  /** 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;
688
+ propertyState?: 'RENDERED' | 'NOT_RENDERED' | 'INHERIT';
442
689
  /** The thickness of the outline. */
443
690
  weight?: Dimension;
444
691
  }
@@ -460,7 +707,7 @@ declare namespace gapi.client {
460
707
  /** The properties of the page. */
461
708
  pageProperties?: PageProperties;
462
709
  /** The type of the page. */
463
- pageType?: string;
710
+ pageType?: 'SLIDE' | 'MASTER' | 'LAYOUT' | 'NOTES' | 'NOTES_MASTER';
464
711
  /** 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
712
  revisionId?: string;
466
713
  /** Slide specific properties. Only set if page_type = SLIDE. */
@@ -468,7 +715,7 @@ declare namespace gapi.client {
468
715
  }
469
716
  interface PageBackgroundFill {
470
717
  /** 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;
718
+ propertyState?: 'RENDERED' | 'NOT_RENDERED' | 'INHERIT';
472
719
  /** Solid color fill. */
473
720
  solidFill?: SolidFill;
474
721
  /** Stretched picture fill. */
@@ -526,9 +773,17 @@ declare namespace gapi.client {
526
773
  }
527
774
  interface ParagraphStyle {
528
775
  /** The text alignment for this paragraph. */
529
- alignment?: string;
776
+ alignment?:
777
+ | 'ALIGNMENT_UNSPECIFIED'
778
+ | 'START'
779
+ | 'CENTER'
780
+ | 'END'
781
+ | 'JUSTIFIED';
530
782
  /** The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since text direction is not inherited. */
531
- direction?: string;
783
+ direction?:
784
+ | 'TEXT_DIRECTION_UNSPECIFIED'
785
+ | 'LEFT_TO_RIGHT'
786
+ | 'RIGHT_TO_LEFT';
532
787
  /** 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. */
533
788
  indentEnd?: Dimension;
534
789
  /** The amount of indentation for the start of the first line of the paragraph. If unset, the value is inherited from the parent. */
@@ -542,7 +797,10 @@ declare namespace gapi.client {
542
797
  /** The amount of extra space below the paragraph. If unset, the value is inherited from the parent. */
543
798
  spaceBelow?: Dimension;
544
799
  /** The spacing mode for the paragraph. */
545
- spacingMode?: string;
800
+ spacingMode?:
801
+ | 'SPACING_MODE_UNSPECIFIED'
802
+ | 'NEVER_COLLAPSE'
803
+ | 'COLLAPSE_LISTS';
546
804
  }
547
805
  interface Placeholder {
548
806
  /** The index of the placeholder. If the same placeholder types are present in the same page, they would have different index values. */
@@ -550,7 +808,24 @@ declare namespace gapi.client {
550
808
  /** 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. */
551
809
  parentObjectId?: string;
552
810
  /** The type of the placeholder. */
553
- type?: string;
811
+ type?:
812
+ | 'NONE'
813
+ | 'BODY'
814
+ | 'CHART'
815
+ | 'CLIP_ART'
816
+ | 'CENTERED_TITLE'
817
+ | 'DIAGRAM'
818
+ | 'DATE_AND_TIME'
819
+ | 'FOOTER'
820
+ | 'HEADER'
821
+ | 'MEDIA'
822
+ | 'OBJECT'
823
+ | 'PICTURE'
824
+ | 'SLIDE_NUMBER'
825
+ | 'SUBTITLE'
826
+ | 'TABLE'
827
+ | 'TITLE'
828
+ | 'SLIDE_IMAGE';
554
829
  }
555
830
  interface Presentation {
556
831
  /** 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. */
@@ -578,11 +853,40 @@ declare namespace gapi.client {
578
853
  /** The optional zero-based index of the beginning of the collection. Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges. */
579
854
  startIndex?: number;
580
855
  /** The type of range. */
581
- type?: string;
856
+ type?:
857
+ | 'RANGE_TYPE_UNSPECIFIED'
858
+ | 'FIXED_RANGE'
859
+ | 'FROM_START_INDEX'
860
+ | 'ALL';
582
861
  }
583
862
  interface Recolor {
584
863
  /** 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. */
585
- name?: string;
864
+ name?:
865
+ | 'NONE'
866
+ | 'LIGHT1'
867
+ | 'LIGHT2'
868
+ | 'LIGHT3'
869
+ | 'LIGHT4'
870
+ | 'LIGHT5'
871
+ | 'LIGHT6'
872
+ | 'LIGHT7'
873
+ | 'LIGHT8'
874
+ | 'LIGHT9'
875
+ | 'LIGHT10'
876
+ | 'DARK1'
877
+ | 'DARK2'
878
+ | 'DARK3'
879
+ | 'DARK4'
880
+ | 'DARK5'
881
+ | 'DARK6'
882
+ | 'DARK7'
883
+ | 'DARK8'
884
+ | 'DARK9'
885
+ | 'DARK10'
886
+ | 'GRAYSCALE'
887
+ | 'NEGATIVE'
888
+ | 'SEPIA'
889
+ | 'CUSTOM';
586
890
  /** 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. */
587
891
  recolorStops?: ColorStop[];
588
892
  }
@@ -594,13 +898,16 @@ declare namespace gapi.client {
594
898
  /** If set, this request will replace all of the shapes that contain the given text. */
595
899
  containsText?: SubstringMatchCriteria;
596
900
  /** 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. */
597
- imageReplaceMethod?: string;
901
+ imageReplaceMethod?:
902
+ | 'IMAGE_REPLACE_METHOD_UNSPECIFIED'
903
+ | 'CENTER_INSIDE'
904
+ | 'CENTER_CROP';
598
905
  /** 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. */
599
906
  imageUrl?: string;
600
907
  /** 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. */
601
908
  pageObjectIds?: string[];
602
909
  /** 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. */
603
- replaceMethod?: string;
910
+ replaceMethod?: 'CENTER_INSIDE' | 'CENTER_CROP';
604
911
  }
605
912
  interface ReplaceAllShapesWithImageResponse {
606
913
  /** The number of shapes replaced with images. */
@@ -612,7 +919,7 @@ declare namespace gapi.client {
612
919
  /** 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. */
613
920
  containsText?: SubstringMatchCriteria;
614
921
  /** 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. */
615
- linkingMode?: string;
922
+ linkingMode?: 'NOT_LINKED_IMAGE' | 'LINKED';
616
923
  /** 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. */
617
924
  pageObjectIds?: string[];
618
925
  /** The ID of the Google Sheets spreadsheet that contains the chart. */
@@ -638,7 +945,10 @@ declare namespace gapi.client {
638
945
  /** The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request. */
639
946
  imageObjectId?: string;
640
947
  /** The replacement method. */
641
- imageReplaceMethod?: string;
948
+ imageReplaceMethod?:
949
+ | 'IMAGE_REPLACE_METHOD_UNSPECIFIED'
950
+ | 'CENTER_INSIDE'
951
+ | 'CENTER_CROP';
642
952
  /** 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. */
643
953
  url?: string;
644
954
  }
@@ -772,7 +1082,17 @@ declare namespace gapi.client {
772
1082
  }
773
1083
  interface Shadow {
774
1084
  /** The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow. This property is read-only. */
775
- alignment?: string;
1085
+ alignment?:
1086
+ | 'RECTANGLE_POSITION_UNSPECIFIED'
1087
+ | 'TOP_LEFT'
1088
+ | 'TOP_CENTER'
1089
+ | 'TOP_RIGHT'
1090
+ | 'LEFT_CENTER'
1091
+ | 'CENTER'
1092
+ | 'RIGHT_CENTER'
1093
+ | 'BOTTOM_LEFT'
1094
+ | 'BOTTOM_CENTER'
1095
+ | 'BOTTOM_RIGHT';
776
1096
  /** The alpha of the shadow's color, from 0.0 to 1.0. */
777
1097
  alpha?: number;
778
1098
  /** The radius of the shadow blur. The larger the radius, the more diffuse the shadow becomes. */
@@ -780,13 +1100,13 @@ declare namespace gapi.client {
780
1100
  /** The shadow color value. */
781
1101
  color?: OpaqueColor;
782
1102
  /** 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. */
783
- propertyState?: string;
1103
+ propertyState?: 'RENDERED' | 'NOT_RENDERED' | 'INHERIT';
784
1104
  /** Whether the shadow should rotate with the shape. This property is read-only. */
785
1105
  rotateWithShape?: boolean;
786
1106
  /** Transform that encodes the translate, scale, and skew of the shadow, relative to the alignment position. */
787
1107
  transform?: AffineTransform;
788
1108
  /** The type of the shadow. This property is read-only. */
789
- type?: string;
1109
+ type?: 'SHADOW_TYPE_UNSPECIFIED' | 'OUTER';
790
1110
  }
791
1111
  interface Shape {
792
1112
  /** 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. */
@@ -794,13 +1114,156 @@ declare namespace gapi.client {
794
1114
  /** The properties of the shape. */
795
1115
  shapeProperties?: ShapeProperties;
796
1116
  /** The type of the shape. */
797
- shapeType?: string;
1117
+ shapeType?:
1118
+ | 'TYPE_UNSPECIFIED'
1119
+ | 'TEXT_BOX'
1120
+ | 'RECTANGLE'
1121
+ | 'ROUND_RECTANGLE'
1122
+ | 'ELLIPSE'
1123
+ | 'ARC'
1124
+ | 'BENT_ARROW'
1125
+ | 'BENT_UP_ARROW'
1126
+ | 'BEVEL'
1127
+ | 'BLOCK_ARC'
1128
+ | 'BRACE_PAIR'
1129
+ | 'BRACKET_PAIR'
1130
+ | 'CAN'
1131
+ | 'CHEVRON'
1132
+ | 'CHORD'
1133
+ | 'CLOUD'
1134
+ | 'CORNER'
1135
+ | 'CUBE'
1136
+ | 'CURVED_DOWN_ARROW'
1137
+ | 'CURVED_LEFT_ARROW'
1138
+ | 'CURVED_RIGHT_ARROW'
1139
+ | 'CURVED_UP_ARROW'
1140
+ | 'DECAGON'
1141
+ | 'DIAGONAL_STRIPE'
1142
+ | 'DIAMOND'
1143
+ | 'DODECAGON'
1144
+ | 'DONUT'
1145
+ | 'DOUBLE_WAVE'
1146
+ | 'DOWN_ARROW'
1147
+ | 'DOWN_ARROW_CALLOUT'
1148
+ | 'FOLDED_CORNER'
1149
+ | 'FRAME'
1150
+ | 'HALF_FRAME'
1151
+ | 'HEART'
1152
+ | 'HEPTAGON'
1153
+ | 'HEXAGON'
1154
+ | 'HOME_PLATE'
1155
+ | 'HORIZONTAL_SCROLL'
1156
+ | 'IRREGULAR_SEAL_1'
1157
+ | 'IRREGULAR_SEAL_2'
1158
+ | 'LEFT_ARROW'
1159
+ | 'LEFT_ARROW_CALLOUT'
1160
+ | 'LEFT_BRACE'
1161
+ | 'LEFT_BRACKET'
1162
+ | 'LEFT_RIGHT_ARROW'
1163
+ | 'LEFT_RIGHT_ARROW_CALLOUT'
1164
+ | 'LEFT_RIGHT_UP_ARROW'
1165
+ | 'LEFT_UP_ARROW'
1166
+ | 'LIGHTNING_BOLT'
1167
+ | 'MATH_DIVIDE'
1168
+ | 'MATH_EQUAL'
1169
+ | 'MATH_MINUS'
1170
+ | 'MATH_MULTIPLY'
1171
+ | 'MATH_NOT_EQUAL'
1172
+ | 'MATH_PLUS'
1173
+ | 'MOON'
1174
+ | 'NO_SMOKING'
1175
+ | 'NOTCHED_RIGHT_ARROW'
1176
+ | 'OCTAGON'
1177
+ | 'PARALLELOGRAM'
1178
+ | 'PENTAGON'
1179
+ | 'PIE'
1180
+ | 'PLAQUE'
1181
+ | 'PLUS'
1182
+ | 'QUAD_ARROW'
1183
+ | 'QUAD_ARROW_CALLOUT'
1184
+ | 'RIBBON'
1185
+ | 'RIBBON_2'
1186
+ | 'RIGHT_ARROW'
1187
+ | 'RIGHT_ARROW_CALLOUT'
1188
+ | 'RIGHT_BRACE'
1189
+ | 'RIGHT_BRACKET'
1190
+ | 'ROUND_1_RECTANGLE'
1191
+ | 'ROUND_2_DIAGONAL_RECTANGLE'
1192
+ | 'ROUND_2_SAME_RECTANGLE'
1193
+ | 'RIGHT_TRIANGLE'
1194
+ | 'SMILEY_FACE'
1195
+ | 'SNIP_1_RECTANGLE'
1196
+ | 'SNIP_2_DIAGONAL_RECTANGLE'
1197
+ | 'SNIP_2_SAME_RECTANGLE'
1198
+ | 'SNIP_ROUND_RECTANGLE'
1199
+ | 'STAR_10'
1200
+ | 'STAR_12'
1201
+ | 'STAR_16'
1202
+ | 'STAR_24'
1203
+ | 'STAR_32'
1204
+ | 'STAR_4'
1205
+ | 'STAR_5'
1206
+ | 'STAR_6'
1207
+ | 'STAR_7'
1208
+ | 'STAR_8'
1209
+ | 'STRIPED_RIGHT_ARROW'
1210
+ | 'SUN'
1211
+ | 'TRAPEZOID'
1212
+ | 'TRIANGLE'
1213
+ | 'UP_ARROW'
1214
+ | 'UP_ARROW_CALLOUT'
1215
+ | 'UP_DOWN_ARROW'
1216
+ | 'UTURN_ARROW'
1217
+ | 'VERTICAL_SCROLL'
1218
+ | 'WAVE'
1219
+ | 'WEDGE_ELLIPSE_CALLOUT'
1220
+ | 'WEDGE_RECTANGLE_CALLOUT'
1221
+ | 'WEDGE_ROUND_RECTANGLE_CALLOUT'
1222
+ | 'FLOW_CHART_ALTERNATE_PROCESS'
1223
+ | 'FLOW_CHART_COLLATE'
1224
+ | 'FLOW_CHART_CONNECTOR'
1225
+ | 'FLOW_CHART_DECISION'
1226
+ | 'FLOW_CHART_DELAY'
1227
+ | 'FLOW_CHART_DISPLAY'
1228
+ | 'FLOW_CHART_DOCUMENT'
1229
+ | 'FLOW_CHART_EXTRACT'
1230
+ | 'FLOW_CHART_INPUT_OUTPUT'
1231
+ | 'FLOW_CHART_INTERNAL_STORAGE'
1232
+ | 'FLOW_CHART_MAGNETIC_DISK'
1233
+ | 'FLOW_CHART_MAGNETIC_DRUM'
1234
+ | 'FLOW_CHART_MAGNETIC_TAPE'
1235
+ | 'FLOW_CHART_MANUAL_INPUT'
1236
+ | 'FLOW_CHART_MANUAL_OPERATION'
1237
+ | 'FLOW_CHART_MERGE'
1238
+ | 'FLOW_CHART_MULTIDOCUMENT'
1239
+ | 'FLOW_CHART_OFFLINE_STORAGE'
1240
+ | 'FLOW_CHART_OFFPAGE_CONNECTOR'
1241
+ | 'FLOW_CHART_ONLINE_STORAGE'
1242
+ | 'FLOW_CHART_OR'
1243
+ | 'FLOW_CHART_PREDEFINED_PROCESS'
1244
+ | 'FLOW_CHART_PREPARATION'
1245
+ | 'FLOW_CHART_PROCESS'
1246
+ | 'FLOW_CHART_PUNCHED_CARD'
1247
+ | 'FLOW_CHART_PUNCHED_TAPE'
1248
+ | 'FLOW_CHART_SORT'
1249
+ | 'FLOW_CHART_SUMMING_JUNCTION'
1250
+ | 'FLOW_CHART_TERMINATOR'
1251
+ | 'ARROW_EAST'
1252
+ | 'ARROW_NORTH_EAST'
1253
+ | 'ARROW_NORTH'
1254
+ | 'SPEECH'
1255
+ | 'STARBURST'
1256
+ | 'TEARDROP'
1257
+ | 'ELLIPSE_RIBBON'
1258
+ | 'ELLIPSE_RIBBON_2'
1259
+ | 'CLOUD_CALLOUT'
1260
+ | 'CUSTOM';
798
1261
  /** The text content of the shape. */
799
1262
  text?: TextContent;
800
1263
  }
801
1264
  interface ShapeBackgroundFill {
802
1265
  /** 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. */
803
- propertyState?: string;
1266
+ propertyState?: 'RENDERED' | 'NOT_RENDERED' | 'INHERIT';
804
1267
  /** Solid color fill. */
805
1268
  solidFill?: SolidFill;
806
1269
  }
@@ -808,7 +1271,12 @@ declare namespace gapi.client {
808
1271
  /** The autofit properties of the shape. This property is only set for shapes that allow text. */
809
1272
  autofit?: Autofit;
810
1273
  /** 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. */
811
- contentAlignment?: string;
1274
+ contentAlignment?:
1275
+ | 'CONTENT_ALIGNMENT_UNSPECIFIED'
1276
+ | 'CONTENT_ALIGNMENT_UNSUPPORTED'
1277
+ | 'TOP'
1278
+ | 'MIDDLE'
1279
+ | 'BOTTOM';
812
1280
  /** The hyperlink destination of the shape. If unset, there is no link. Links are not inherited from parent placeholders. */
813
1281
  link?: Link;
814
1282
  /** 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. */
@@ -904,7 +1372,14 @@ declare namespace gapi.client {
904
1372
  }
905
1373
  interface TableBorderProperties {
906
1374
  /** The dash style of the border. */
907
- dashStyle?: string;
1375
+ dashStyle?:
1376
+ | 'DASH_STYLE_UNSPECIFIED'
1377
+ | 'SOLID'
1378
+ | 'DOT'
1379
+ | 'DASH'
1380
+ | 'DASH_DOT'
1381
+ | 'LONG_DASH'
1382
+ | 'LONG_DASH_DOT';
908
1383
  /** The fill of the table border. */
909
1384
  tableBorderFill?: TableBorderFill;
910
1385
  /** The thickness of the border. */
@@ -928,7 +1403,7 @@ declare namespace gapi.client {
928
1403
  }
929
1404
  interface TableCellBackgroundFill {
930
1405
  /** 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. */
931
- propertyState?: string;
1406
+ propertyState?: 'RENDERED' | 'NOT_RENDERED' | 'INHERIT';
932
1407
  /** Solid color fill. */
933
1408
  solidFill?: SolidFill;
934
1409
  }
@@ -940,7 +1415,12 @@ declare namespace gapi.client {
940
1415
  }
941
1416
  interface TableCellProperties {
942
1417
  /** The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Slides editor. */
943
- contentAlignment?: string;
1418
+ contentAlignment?:
1419
+ | 'CONTENT_ALIGNMENT_UNSPECIFIED'
1420
+ | 'CONTENT_ALIGNMENT_UNSUPPORTED'
1421
+ | 'TOP'
1422
+ | 'MIDDLE'
1423
+ | 'BOTTOM';
944
1424
  /** The background fill of the table cell. The default fill matches the fill for newly created table cells in the Slides editor. */
945
1425
  tableCellBackgroundFill?: TableCellBackgroundFill;
946
1426
  }
@@ -996,7 +1476,11 @@ declare namespace gapi.client {
996
1476
  /** 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. */
997
1477
  backgroundColor?: OptionalColor;
998
1478
  /** 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. */
999
- baselineOffset?: string;
1479
+ baselineOffset?:
1480
+ | 'BASELINE_OFFSET_UNSPECIFIED'
1481
+ | 'NONE'
1482
+ | 'SUPERSCRIPT'
1483
+ | 'SUBSCRIPT';
1000
1484
  /** Whether or not the text is rendered as bold. */
1001
1485
  bold?: boolean;
1002
1486
  /** 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. */
@@ -1022,7 +1506,24 @@ declare namespace gapi.client {
1022
1506
  /** The concrete color corresponding to the theme color type above. */
1023
1507
  color?: RgbColor;
1024
1508
  /** The type of the theme color. */
1025
- type?: string;
1509
+ type?:
1510
+ | 'THEME_COLOR_TYPE_UNSPECIFIED'
1511
+ | 'DARK1'
1512
+ | 'LIGHT1'
1513
+ | 'DARK2'
1514
+ | 'LIGHT2'
1515
+ | 'ACCENT1'
1516
+ | 'ACCENT2'
1517
+ | 'ACCENT3'
1518
+ | 'ACCENT4'
1519
+ | 'ACCENT5'
1520
+ | 'ACCENT6'
1521
+ | 'HYPERLINK'
1522
+ | 'FOLLOWED_HYPERLINK'
1523
+ | 'TEXT1'
1524
+ | 'BACKGROUND1'
1525
+ | 'TEXT2'
1526
+ | 'BACKGROUND2';
1026
1527
  }
1027
1528
  interface Thumbnail {
1028
1529
  /** 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`. */
@@ -1052,7 +1553,11 @@ declare namespace gapi.client {
1052
1553
  }
1053
1554
  interface UpdateLineCategoryRequest {
1054
1555
  /** 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. */
1055
- lineCategory?: string;
1556
+ lineCategory?:
1557
+ | 'LINE_CATEGORY_UNSPECIFIED'
1558
+ | 'STRAIGHT'
1559
+ | 'BENT'
1560
+ | 'CURVED';
1056
1561
  /** 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. */
1057
1562
  objectId?: string;
1058
1563
  }
@@ -1074,13 +1579,18 @@ declare namespace gapi.client {
1074
1579
  }
1075
1580
  interface UpdatePageElementsZOrderRequest {
1076
1581
  /** 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. */
1077
- operation?: string;
1582
+ operation?:
1583
+ | 'Z_ORDER_OPERATION_UNSPECIFIED'
1584
+ | 'BRING_TO_FRONT'
1585
+ | 'BRING_FORWARD'
1586
+ | 'SEND_BACKWARD'
1587
+ | 'SEND_TO_BACK';
1078
1588
  /** The object IDs of the page elements to update. All the page elements must be on the same page and must not be grouped. */
1079
1589
  pageElementObjectIds?: string[];
1080
1590
  }
1081
1591
  interface UpdatePageElementTransformRequest {
1082
1592
  /** The apply mode of the transform update. */
1083
- applyMode?: string;
1593
+ applyMode?: 'APPLY_MODE_UNSPECIFIED' | 'RELATIVE' | 'ABSOLUTE';
1084
1594
  /** The object ID of the page element to update. */
1085
1595
  objectId?: string;
1086
1596
  /** The input transform matrix used to update the page element. */
@@ -1130,7 +1640,16 @@ declare namespace gapi.client {
1130
1640
  }
1131
1641
  interface UpdateTableBorderPropertiesRequest {
1132
1642
  /** 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. */
1133
- borderPosition?: string;
1643
+ borderPosition?:
1644
+ | 'ALL'
1645
+ | 'BOTTOM'
1646
+ | 'INNER'
1647
+ | 'INNER_HORIZONTAL'
1648
+ | 'INNER_VERTICAL'
1649
+ | 'LEFT'
1650
+ | 'OUTER'
1651
+ | 'RIGHT'
1652
+ | 'TOP';
1134
1653
  /** 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. */
1135
1654
  fields?: string;
1136
1655
  /** The object ID of the table. */
@@ -1194,7 +1713,7 @@ declare namespace gapi.client {
1194
1713
  /** The video source's unique identifier for this video. */
1195
1714
  id?: string;
1196
1715
  /** The video source. */
1197
- source?: string;
1716
+ source?: 'SOURCE_UNSPECIFIED' | 'YOUTUBE' | 'DRIVE';
1198
1717
  /** An URL to a video. The URL is valid as long as the source video exists and sharing settings do not change. */
1199
1718
  url?: string;
1200
1719
  /** The properties of the video. */
@@ -1230,11 +1749,11 @@ declare namespace gapi.client {
1230
1749
  /** Gets the latest version of the specified page in the presentation. */
1231
1750
  get(request?: {
1232
1751
  /** V1 error format. */
1233
- '$.xgafv'?: string;
1752
+ '$.xgafv'?: '1' | '2';
1234
1753
  /** OAuth access token. */
1235
1754
  access_token?: string;
1236
1755
  /** Data format for response. */
1237
- alt?: string;
1756
+ alt?: 'json' | 'media' | 'proto';
1238
1757
  /** JSONP */
1239
1758
  callback?: string;
1240
1759
  /** Selector specifying which fields to include in a partial response. */
@@ -1259,11 +1778,11 @@ declare namespace gapi.client {
1259
1778
  /** 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](https://developers.google.com/workspace/slides/limits) for quota purposes. */
1260
1779
  getThumbnail(request?: {
1261
1780
  /** V1 error format. */
1262
- '$.xgafv'?: string;
1781
+ '$.xgafv'?: '1' | '2';
1263
1782
  /** OAuth access token. */
1264
1783
  access_token?: string;
1265
1784
  /** Data format for response. */
1266
- alt?: string;
1785
+ alt?: 'json' | 'media' | 'proto';
1267
1786
  /** JSONP */
1268
1787
  callback?: string;
1269
1788
  /** Selector specifying which fields to include in a partial response. */
@@ -1281,9 +1800,13 @@ declare namespace gapi.client {
1281
1800
  /** 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. */
1282
1801
  quotaUser?: string;
1283
1802
  /** The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG. */
1284
- 'thumbnailProperties.mimeType'?: string;
1803
+ 'thumbnailProperties.mimeType'?: 'PNG';
1285
1804
  /** The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image. */
1286
- 'thumbnailProperties.thumbnailSize'?: string;
1805
+ 'thumbnailProperties.thumbnailSize'?:
1806
+ | 'THUMBNAIL_SIZE_UNSPECIFIED'
1807
+ | 'LARGE'
1808
+ | 'MEDIUM'
1809
+ | 'SMALL';
1287
1810
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1288
1811
  upload_protocol?: string;
1289
1812
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -1294,11 +1817,11 @@ declare namespace gapi.client {
1294
1817
  /** 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. */
1295
1818
  batchUpdate(request: {
1296
1819
  /** V1 error format. */
1297
- '$.xgafv'?: string;
1820
+ '$.xgafv'?: '1' | '2';
1298
1821
  /** OAuth access token. */
1299
1822
  access_token?: string;
1300
1823
  /** Data format for response. */
1301
- alt?: string;
1824
+ alt?: 'json' | 'media' | 'proto';
1302
1825
  /** JSONP */
1303
1826
  callback?: string;
1304
1827
  /** Selector specifying which fields to include in a partial response. */
@@ -1323,11 +1846,11 @@ declare namespace gapi.client {
1323
1846
  batchUpdate(
1324
1847
  request: {
1325
1848
  /** V1 error format. */
1326
- '$.xgafv'?: string;
1849
+ '$.xgafv'?: '1' | '2';
1327
1850
  /** OAuth access token. */
1328
1851
  access_token?: string;
1329
1852
  /** Data format for response. */
1330
- alt?: string;
1853
+ alt?: 'json' | 'media' | 'proto';
1331
1854
  /** JSONP */
1332
1855
  callback?: string;
1333
1856
  /** Selector specifying which fields to include in a partial response. */
@@ -1352,11 +1875,11 @@ declare namespace gapi.client {
1352
1875
  /** 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. */
1353
1876
  create(request: {
1354
1877
  /** V1 error format. */
1355
- '$.xgafv'?: string;
1878
+ '$.xgafv'?: '1' | '2';
1356
1879
  /** OAuth access token. */
1357
1880
  access_token?: string;
1358
1881
  /** Data format for response. */
1359
- alt?: string;
1882
+ alt?: 'json' | 'media' | 'proto';
1360
1883
  /** JSONP */
1361
1884
  callback?: string;
1362
1885
  /** Selector specifying which fields to include in a partial response. */
@@ -1379,11 +1902,11 @@ declare namespace gapi.client {
1379
1902
  create(
1380
1903
  request: {
1381
1904
  /** V1 error format. */
1382
- '$.xgafv'?: string;
1905
+ '$.xgafv'?: '1' | '2';
1383
1906
  /** OAuth access token. */
1384
1907
  access_token?: string;
1385
1908
  /** Data format for response. */
1386
- alt?: string;
1909
+ alt?: 'json' | 'media' | 'proto';
1387
1910
  /** JSONP */
1388
1911
  callback?: string;
1389
1912
  /** Selector specifying which fields to include in a partial response. */
@@ -1406,11 +1929,11 @@ declare namespace gapi.client {
1406
1929
  /** Gets the latest version of the specified presentation. */
1407
1930
  get(request?: {
1408
1931
  /** V1 error format. */
1409
- '$.xgafv'?: string;
1932
+ '$.xgafv'?: '1' | '2';
1410
1933
  /** OAuth access token. */
1411
1934
  access_token?: string;
1412
1935
  /** Data format for response. */
1413
- alt?: string;
1936
+ alt?: 'json' | 'media' | 'proto';
1414
1937
  /** JSONP */
1415
1938
  callback?: string;
1416
1939
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.slides-v1",
3
- "version": "0.0.20260310",
3
+ "version": "0.1.20260311",
4
4
  "description": "TypeScript typings for Google Slides API v1",
5
5
  "repository": {
6
6
  "type": "git",