-
Notifications
You must be signed in to change notification settings - Fork 30k
/
index.d.ts
2145 lines (2140 loc) · 97.2 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Type definitions for non-npm package Google Google Slides API v1 1.0
// Project: https://developers.google.com/slides/
// Definitions by: Bolisov Alexey <https://github.com/Bolisov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// IMPORTANT
// This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
// In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
// Generated from: https://slides.googleapis.com/$discovery/rest?version=v1
/// <reference types="gapi.client" />
declare namespace gapi.client {
/** Load Google Slides API v1 */
function load(name: "slides", version: "v1"): PromiseLike<void>;
function load(name: "slides", version: "v1", callback: () => any): void;
const presentations: slides.PresentationsResource;
namespace slides {
interface AffineTransform {
/** The X coordinate scaling element. */
scaleX?: number;
/** The Y coordinate scaling element. */
scaleY?: number;
/** The X coordinate shearing element. */
shearX?: number;
/** The Y coordinate shearing element. */
shearY?: number;
/** The X coordinate translation element. */
translateX?: number;
/** The Y coordinate translation element. */
translateY?: number;
/** The units for translate elements. */
unit?: string;
}
interface AutoText {
/** The rendered content of this auto text, if available. */
content?: string;
/** The styling applied to this auto text. */
style?: TextStyle;
/** The type of this auto text. */
type?: string;
}
interface BatchUpdatePresentationRequest {
/** A list of updates to apply to the presentation. */
requests?: Request[];
/** Provides control over how write requests are executed. */
writeControl?: WriteControl;
}
interface BatchUpdatePresentationResponse {
/** The presentation the updates were applied to. */
presentationId?: string;
/**
* The reply of the updates. This maps 1:1 with the updates, although
* replies to some requests may be empty.
*/
replies?: Response[];
}
interface Bullet {
/** The paragraph specific text style applied to this bullet. */
bulletStyle?: TextStyle;
/** The rendered bullet glyph for this paragraph. */
glyph?: string;
/** The ID of the list this paragraph belongs to. */
listId?: string;
/** The nesting level of this paragraph in the list. */
nestingLevel?: number;
}
interface ColorScheme {
/** The ThemeColorType and corresponding concrete color pairs. */
colors?: ThemeColorPair[];
}
interface ColorStop {
/**
* The alpha value of this color in the gradient band. Defaults to 1.0,
* fully opaque.
*/
alpha?: number;
/** The color of the gradient stop. */
color?: OpaqueColor;
/**
* 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].
*/
position?: number;
}
interface CreateImageRequest {
/**
* 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 aspect ratio. The provided transform is applied after this
* operation.
*/
elementProperties?: PageElementProperties;
/**
* 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.
*/
objectId?: string;
/**
* 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 either in PNG, JPEG, or GIF
* format.
*
* The provided URL can be at maximum 2K bytes large.
*/
url?: string;
}
interface CreateImageResponse {
/** The object ID of the created image. */
objectId?: string;
}
interface CreateLineRequest {
/** The element properties for the line. */
elementProperties?: PageElementProperties;
/** The category of line to be created. */
lineCategory?: string;
/**
* 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.
*/
objectId?: string;
}
interface CreateLineResponse {
/** The object ID of the created line. */
objectId?: string;
}
interface CreateParagraphBulletsRequest {
/**
* The kinds of bullet glyphs to be used. Defaults to the
* `BULLET_DISC_CIRCLE_SQUARE` preset.
*/
bulletPreset?: string;
/**
* 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.
*/
cellLocation?: TableCellLocation;
/** The object ID of the shape or table containing the text to add bullets to. */
objectId?: string;
/** The range of text to apply the bullet presets to, based on TextElement indexes. */
textRange?: Range;
}
interface CreateShapeRequest {
/** The element properties for the shape. */
elementProperties?: PageElementProperties;
/**
* 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.
*/
objectId?: string;
/** The shape type. */
shapeType?: string;
}
interface CreateShapeResponse {
/** The object ID of the created shape. */
objectId?: string;
}
interface CreateSheetsChartRequest {
/** The ID of the specific chart in the Google Sheets spreadsheet. */
chartId?: number;
/**
* 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.
*/
elementProperties?: PageElementProperties;
/**
* 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.
*/
linkingMode?: string;
/**
* 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.
*/
objectId?: string;
/** The ID of the Google Sheets spreadsheet that contains the chart. */
spreadsheetId?: string;
}
interface CreateSheetsChartResponse {
/** The object ID of the created chart. */
objectId?: string;
}
interface CreateSlideRequest {
/**
* The optional zero-based index indicating where to insert the slides.
*
* If you don't specify an index, the new slide is created at the end.
*/
insertionIndex?: number;
/**
* 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.
*/
objectId?: string;
/**
* An optional list of object ID mappings from the placeholder(s) on the layout to the placeholder(s)
* that will be created on the new slide from that specified layout. Can only
* be used when `slide_layout_reference` is specified.
*/
placeholderIdMappings?: LayoutPlaceholderIdMapping[];
/**
* 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, then the new slide will use the
* predefined layout `BLANK`.
*/
slideLayoutReference?: LayoutReference;
}
interface CreateSlideResponse {
/** The object ID of the created slide. */
objectId?: string;
}
interface CreateTableRequest {
/** Number of columns in the table. */
columns?: number;
/**
* 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.
*/
elementProperties?: PageElementProperties;
/**
* 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.
*/
objectId?: string;
/** Number of rows in the table. */
rows?: number;
}
interface CreateTableResponse {
/** The object ID of the created table. */
objectId?: string;
}
interface CreateVideoRequest {
/** The element properties for the video. */
elementProperties?: PageElementProperties;
/**
* 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.
*/
id?: string;
/**
* 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.
*/
objectId?: string;
/** The video source. */
source?: string;
}
interface CreateVideoResponse {
/** The object ID of the created video. */
objectId?: string;
}
interface CropProperties {
/**
* The rotation angle of the crop window around its center, in radians.
* Rotation angle is applied after the offset.
*/
angle?: number;
/**
* 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.
*/
bottomOffset?: number;
/**
* 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.
*/
leftOffset?: number;
/**
* 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.
*/
rightOffset?: number;
/**
* 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.
*/
topOffset?: number;
}
interface DeleteObjectRequest {
/**
* 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 shapes are
* also deleted.
*/
objectId?: string;
}
interface DeleteParagraphBulletsRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/**
* The object ID of the shape or table containing the text to delete bullets
* from.
*/
objectId?: string;
/** The range of text to delete bullets from, based on TextElement indexes. */
textRange?: Range;
}
interface DeleteTableColumnRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/** The table to delete columns from. */
tableObjectId?: string;
}
interface DeleteTableRowRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/** The table to delete rows from. */
tableObjectId?: string;
}
interface DeleteTextRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/** The object ID of the shape or table from which the text will be deleted. */
objectId?: string;
/**
* 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.
*/
textRange?: Range;
}
interface Dimension {
/** The magnitude. */
magnitude?: number;
/** The units for magnitude. */
unit?: string;
}
interface DuplicateObjectRequest {
/** The ID of the object to duplicate. */
objectId?: string;
/**
* 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.
*/
objectIds?: Record<string, string>;
}
interface DuplicateObjectResponse {
/** The ID of the new duplicate object. */
objectId?: string;
}
interface Group {
/** The collection of elements in the group. The minimum size of a group is 2. */
children?: PageElement[];
}
interface Image {
/**
* 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.
*/
contentUrl?: string;
/** The properties of the image. */
imageProperties?: ImageProperties;
}
interface ImageProperties {
/**
* 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.
*/
brightness?: number;
/**
* 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.
*/
contrast?: number;
/**
* The crop properties of the image. If not set, the image is not cropped.
* This property is read-only.
*/
cropProperties?: CropProperties;
/** The hyperlink destination of the image. If unset, there is no link. */
link?: Link;
/** The outline of the image. If not set, the the image has no outline. */
outline?: Outline;
/**
* The recolor effect of the image. If not set, the image is not recolored.
* This property is read-only.
*/
recolor?: Recolor;
/**
* The shadow of the image. If not set, the image has no shadow. This property
* is read-only.
*/
shadow?: Shadow;
/**
* 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.
*/
transparency?: number;
}
interface InsertTableColumnsRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/**
* Whether to insert new columns to the right of the reference cell location.
*
* - `True`: insert to the right.
* - `False`: insert to the left.
*/
insertRight?: boolean;
/** The number of columns to be inserted. Maximum 20 per request. */
number?: number;
/** The table to insert columns into. */
tableObjectId?: string;
}
interface InsertTableRowsRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/**
* Whether to insert new rows below the reference cell location.
*
* - `True`: insert below the cell.
* - `False`: insert above the cell.
*/
insertBelow?: boolean;
/** The number of rows to be inserted. Maximum 20 per request. */
number?: number;
/** The table to insert rows into. */
tableObjectId?: string;
}
interface InsertTextRequest {
/**
* 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.
*/
cellLocation?: TableCellLocation;
/**
* 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.
*/
insertionIndex?: number;
/** The object ID of the shape or table where the text will be inserted. */
objectId?: string;
/**
* 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.
*/
text?: string;
}
interface LayoutPlaceholderIdMapping {
/**
* 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.
*/
layoutPlaceholder?: Placeholder;
/**
* The object ID of the placeholder on a layout that will be applied
* to a slide.
*/
layoutPlaceholderObjectId?: string;
/**
* 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.
*/
objectId?: string;
}
interface LayoutProperties {
/** The human-readable name of the layout. */
displayName?: string;
/** The object ID of the master that this layout is based on. */
masterObjectId?: string;
/** The name of the layout. */
name?: string;
}
interface LayoutReference {
/** Layout ID: the object ID of one of the layouts in the presentation. */
layoutId?: string;
/** Predefined layout. */
predefinedLayout?: string;
}
interface Line {
/** The properties of the line. */
lineProperties?: LineProperties;
/** The type of the line. */
lineType?: string;
}
interface LineFill {
/** Solid color fill. */
solidFill?: SolidFill;
}
interface LineProperties {
/** The dash style of the line. */
dashStyle?: string;
/** The style of the arrow at the end of the line. */
endArrow?: string;
/**
* The fill of the line. The default line fill matches the defaults for new
* lines created in the Slides editor.
*/
lineFill?: LineFill;
/** The hyperlink destination of the line. If unset, there is no link. */
link?: Link;
/** The style of the arrow at the beginning of the line. */
startArrow?: string;
/** The thickness of the line. */
weight?: Dimension;
}
interface Link {
/**
* 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.
*/
pageObjectId?: string;
/**
* If set, indicates this is a link to a slide in this presentation,
* addressed by its position.
*/
relativeLink?: string;
/**
* 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.
*/
slideIndex?: number;
/** If set, indicates this is a link to the external web page at this URL. */
url?: string;
}
interface List {
/** The ID of the list. */
listId?: string;
/**
* 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.
*/
nestingLevel?: Record<string, NestingLevel>;
}
interface MasterProperties {
/** The human-readable name of the master. */
displayName?: string;
}
interface NestingLevel {
/** The style of a bullet at this level of nesting. */
bulletStyle?: TextStyle;
}
interface NotesProperties {
/**
* 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.
*/
speakerNotesObjectId?: string;
}
interface OpaqueColor {
/** An opaque RGB color. */
rgbColor?: RgbColor;
/** An opaque theme color. */
themeColor?: string;
}
interface OptionalColor {
/**
* If set, this will be used as an opaque color. If unset, this represents
* a transparent color.
*/
opaqueColor?: OpaqueColor;
}
interface Outline {
/** The dash style of the outline. */
dashStyle?: string;
/** The fill of the outline. */
outlineFill?: OutlineFill;
/**
* The outline property state.
*
* Updating the 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.
*/
propertyState?: string;
/** The thickness of the outline. */
weight?: Dimension;
}
interface OutlineFill {
/** Solid color fill. */
solidFill?: SolidFill;
}
interface Page {
/** Layout specific properties. Only set if page_type = LAYOUT. */
layoutProperties?: LayoutProperties;
/** Master specific properties. Only set if page_type = MASTER. */
masterProperties?: MasterProperties;
/** Notes specific properties. Only set if page_type = NOTES. */
notesProperties?: NotesProperties;
/**
* The object ID for this page. Object IDs used by
* Page and
* PageElement share the same namespace.
*/
objectId?: string;
/** The page elements rendered on the page. */
pageElements?: PageElement[];
/** The properties of the page. */
pageProperties?: PageProperties;
/** The type of the page. */
pageType?: string;
/**
* The revision ID of the presentation containing this page. Can be used in
* update requests to assert that the presentation revision hasn't changed
* since the last read operation. Only populated if the user has edit access
* to the presentation.
*
* 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.
*/
revisionId?: string;
/** Slide specific properties. Only set if page_type = SLIDE. */
slideProperties?: SlideProperties;
}
interface PageBackgroundFill {
/**
* 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.
*/
propertyState?: string;
/** Solid color fill. */
solidFill?: SolidFill;
/** Stretched picture fill. */
stretchedPictureFill?: StretchedPictureFill;
}
interface PageElement {
/**
* The description of the page element. Combined with title to display alt
* text.
*/
description?: string;
/** A collection of page elements joined as a single unit. */
elementGroup?: Group;
/** An image page element. */
image?: Image;
/** A line page element. */
line?: Line;
/**
* 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.
*/
objectId?: string;
/** A generic shape. */
shape?: Shape;
/**
* A linked chart embedded from Google Sheets. Unlinked charts are
* represented as images.
*/
sheetsChart?: SheetsChart;
/** The size of the page element. */
size?: Size;
/** A table page element. */
table?: Table;
/**
* The title of the page element. Combined with description to display alt
* text.
*/
title?: string;
/**
* 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.
*/
transform?: AffineTransform;
/** A video page element. */
video?: Video;
/** A word art page element. */
wordArt?: WordArt;
}
interface PageElementProperties {
/** The object ID of the page where the element is located. */
pageObjectId?: string;
/** The size of the element. */
size?: Size;
/** The transform for the element. */
transform?: AffineTransform;
}
interface PageProperties {
/**
* 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. This field is read-only.
*/
colorScheme?: ColorScheme;
/**
* 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.
*/
pageBackgroundFill?: PageBackgroundFill;
}
interface ParagraphMarker {
/**
* The bullet for this paragraph. If not present, the paragraph does not
* belong to a list.
*/
bullet?: Bullet;
/** The paragraph's style */
style?: ParagraphStyle;
}
interface ParagraphStyle {
/** The text alignment for this paragraph. */
alignment?: string;
/**
* The text direction of this paragraph. If unset, the value defaults to
* LEFT_TO_RIGHT since
* text direction is not inherited.
*/
direction?: string;
/**
* 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.
*/
indentEnd?: Dimension;
/**
* The amount of indentation for the start of the first line of the paragraph.
* If unset, the value is inherited from the parent.
*/
indentFirstLine?: Dimension;
/**
* 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.
*/
indentStart?: Dimension;
/**
* 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.
*/
lineSpacing?: number;
/**
* The amount of extra space above the paragraph. If unset, the value is
* inherited from the parent.
*/
spaceAbove?: Dimension;
/**
* The amount of extra space above the paragraph. If unset, the value is
* inherited from the parent.
*/
spaceBelow?: Dimension;
/** The spacing mode for the paragraph. */
spacingMode?: string;
}
interface Placeholder {
/**
* The index of the placeholder. If the same placeholder types are present in
* the same page, they would have different index values.
*/
index?: number;
/**
* 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.
*/
parentObjectId?: string;
/** The type of the placeholder. */
type?: string;
}
interface Presentation {
/**
* 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.
*/
layouts?: Page[];
/** The locale of the presentation, as an IETF BCP 47 language tag. */
locale?: string;
/**
* 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 will appear on all slides using that
* master, regardless of their layout.
*/
masters?: Page[];
/**
* 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 will appear on all notes pages.
*
* The notes master is read-only.
*/
notesMaster?: Page;
/** The size of pages in the presentation. */
pageSize?: Size;
/** The ID of the presentation. */
presentationId?: string;
/**
* The revision ID of the presentation. Can be used in update requests
* to assert that the presentation revision hasn't changed since the last
* read operation. Only populated if the user has edit access to the
* presentation.
*
* 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