@maxim_mazurok/gapi.client.books-v1 0.0.20220810

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 ADDED
@@ -0,0 +1,2965 @@
1
+ /* Type definitions for non-npm package Books API v1 0.0 */
2
+ // Project: https://code.google.com/apis/books/docs/v1/getting_started.html
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://books.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220810
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Books API v1 */
19
+ function load(urlOrObject: "https://books.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "books", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "books", version: "v1", callback: () => any): void;
24
+
25
+ namespace books {
26
+ interface Annotation {
27
+ /** Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. */
28
+ afterSelectedText?: string;
29
+ /** Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. */
30
+ beforeSelectedText?: string;
31
+ /** Selection ranges sent from the client. */
32
+ clientVersionRanges?: {
33
+ /** Range in CFI format for this annotation sent by client. */
34
+ cfiRange?: BooksAnnotationsRange;
35
+ /** Content version the client sent in. */
36
+ contentVersion?: string;
37
+ /** Range in GB image format for this annotation sent by client. */
38
+ gbImageRange?: BooksAnnotationsRange;
39
+ /** Range in GB text format for this annotation sent by client. */
40
+ gbTextRange?: BooksAnnotationsRange;
41
+ /** Range in image CFI format for this annotation sent by client. */
42
+ imageCfiRange?: BooksAnnotationsRange;
43
+ };
44
+ /** Timestamp for the created time of this annotation. */
45
+ created?: string;
46
+ /** Selection ranges for the most recent content version. */
47
+ currentVersionRanges?: {
48
+ /** Range in CFI format for this annotation for version above. */
49
+ cfiRange?: BooksAnnotationsRange;
50
+ /** Content version applicable to ranges below. */
51
+ contentVersion?: string;
52
+ /** Range in GB image format for this annotation for version above. */
53
+ gbImageRange?: BooksAnnotationsRange;
54
+ /** Range in GB text format for this annotation for version above. */
55
+ gbTextRange?: BooksAnnotationsRange;
56
+ /** Range in image CFI format for this annotation for version above. */
57
+ imageCfiRange?: BooksAnnotationsRange;
58
+ };
59
+ /** User-created data for this annotation. */
60
+ data?: string;
61
+ /** Indicates that this annotation is deleted. */
62
+ deleted?: boolean;
63
+ /** The highlight style for this annotation. */
64
+ highlightStyle?: string;
65
+ /** Id of this annotation, in the form of a GUID. */
66
+ id?: string;
67
+ /** Resource type. */
68
+ kind?: string;
69
+ /** The layer this annotation is for. */
70
+ layerId?: string;
71
+ layerSummary?: {
72
+ /** Maximum allowed characters on this layer, especially for the "copy" layer. */
73
+ allowedCharacterCount?: number;
74
+ /** Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer. */
75
+ limitType?: string;
76
+ /** Remaining allowed characters on this layer, especially for the "copy" layer. */
77
+ remainingCharacterCount?: number;
78
+ };
79
+ /** Pages that this annotation spans. */
80
+ pageIds?: string[];
81
+ /** Excerpt from the volume. */
82
+ selectedText?: string;
83
+ /** URL to this resource. */
84
+ selfLink?: string;
85
+ /** Timestamp for the last time this annotation was modified. */
86
+ updated?: string;
87
+ /** The volume that this annotation belongs to. */
88
+ volumeId?: string;
89
+ }
90
+ interface Annotations {
91
+ /** A list of annotations. */
92
+ items?: Annotation[];
93
+ /** Resource type. */
94
+ kind?: string;
95
+ /** Token to pass in for pagination for the next page. This will not be present if this request does not have more results. */
96
+ nextPageToken?: string;
97
+ /** Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated. */
98
+ totalItems?: number;
99
+ }
100
+ interface Annotationsdata {
101
+ /** A list of Annotation Data. */
102
+ items?: GeoAnnotationdata[];
103
+ /** Resource type */
104
+ kind?: string;
105
+ /** Token to pass in for pagination for the next page. This will not be present if this request does not have more results. */
106
+ nextPageToken?: string;
107
+ /** The total number of volume annotations found. */
108
+ totalItems?: number;
109
+ }
110
+ interface AnnotationsSummary {
111
+ kind?: string;
112
+ layers?: Array<{
113
+ allowedCharacterCount?: number;
114
+ layerId?: string;
115
+ limitType?: string;
116
+ remainingCharacterCount?: number;
117
+ updated?: string;
118
+ }>;
119
+ }
120
+ interface BooksAnnotationsRange {
121
+ /** The offset from the ending position. */
122
+ endOffset?: string;
123
+ /** The ending position for the range. */
124
+ endPosition?: string;
125
+ /** The offset from the starting position. */
126
+ startOffset?: string;
127
+ /** The starting position for the range. */
128
+ startPosition?: string;
129
+ }
130
+ interface BooksCloudloadingResource {
131
+ author?: string;
132
+ processingState?: string;
133
+ title?: string;
134
+ volumeId?: string;
135
+ }
136
+ interface Bookshelf {
137
+ /** Whether this bookshelf is PUBLIC or PRIVATE. */
138
+ access?: string;
139
+ /** Created time for this bookshelf (formatted UTC timestamp with millisecond resolution). */
140
+ created?: string;
141
+ /** Description of this bookshelf. */
142
+ description?: string;
143
+ /** Id of this bookshelf, only unique by user. */
144
+ id?: number;
145
+ /** Resource type for bookshelf metadata. */
146
+ kind?: string;
147
+ /** URL to this resource. */
148
+ selfLink?: string;
149
+ /** Title of this bookshelf. */
150
+ title?: string;
151
+ /** Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution). */
152
+ updated?: string;
153
+ /** Number of volumes in this bookshelf. */
154
+ volumeCount?: number;
155
+ /** Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution). */
156
+ volumesLastUpdated?: string;
157
+ }
158
+ interface Bookshelves {
159
+ /** A list of bookshelves. */
160
+ items?: Bookshelf[];
161
+ /** Resource type. */
162
+ kind?: string;
163
+ }
164
+ interface BooksVolumesRecommendedRateResponse {
165
+ consistency_token?: string;
166
+ }
167
+ interface Category {
168
+ /** A list of onboarding categories. */
169
+ items?: Array<{
170
+ badgeUrl?: string;
171
+ categoryId?: string;
172
+ name?: string;
173
+ }>;
174
+ /** Resource type. */
175
+ kind?: string;
176
+ }
177
+ interface ConcurrentAccessRestriction {
178
+ /** Whether access is granted for this (user, device, volume). */
179
+ deviceAllowed?: boolean;
180
+ /** Resource type. */
181
+ kind?: string;
182
+ /** The maximum number of concurrent access licenses for this volume. */
183
+ maxConcurrentDevices?: number;
184
+ /** Error/warning message. */
185
+ message?: string;
186
+ /** Client nonce for verification. Download access and client-validation only. */
187
+ nonce?: string;
188
+ /** Error/warning reason code. */
189
+ reasonCode?: string;
190
+ /** Whether this volume has any concurrent access restrictions. */
191
+ restricted?: boolean;
192
+ /** Response signature. */
193
+ signature?: string;
194
+ /** Client app identifier for verification. Download access and client-validation only. */
195
+ source?: string;
196
+ /** Time in seconds for license auto-expiration. */
197
+ timeWindowSeconds?: number;
198
+ /** Identifies the volume for which this entry applies. */
199
+ volumeId?: string;
200
+ }
201
+ interface DictionaryAnnotationdata {
202
+ /** The type of annotation this data is for. */
203
+ annotationType?: string;
204
+ /** JSON encoded data for this dictionary annotation data. Emitted with name 'data' in JSON output. Either this or geo_data will be populated. */
205
+ data?: Dictlayerdata;
206
+ /** Base64 encoded data for this annotation data. */
207
+ encodedData?: string;
208
+ /** Unique id for this annotation data. */
209
+ id?: string;
210
+ /** Resource Type */
211
+ kind?: string;
212
+ /** The Layer id for this data. * */
213
+ layerId?: string;
214
+ /** URL for this resource. * */
215
+ selfLink?: string;
216
+ /** Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format). */
217
+ updated?: string;
218
+ /** The volume id for this data. * */
219
+ volumeId?: string;
220
+ }
221
+ interface Dictlayerdata {
222
+ common?: {
223
+ /** The display title and localized canonical name to use when searching for this entity on Google search. */
224
+ title?: string;
225
+ };
226
+ dict?: {
227
+ /** The source, url and attribution for this dictionary data. */
228
+ source?: {
229
+ attribution?: string;
230
+ url?: string;
231
+ };
232
+ words?: Array<{
233
+ derivatives?: Array<{
234
+ source?: {
235
+ attribution?: string;
236
+ url?: string;
237
+ };
238
+ text?: string;
239
+ }>;
240
+ examples?: Array<{
241
+ source?: {
242
+ attribution?: string;
243
+ url?: string;
244
+ };
245
+ text?: string;
246
+ }>;
247
+ senses?: Array<{
248
+ conjugations?: Array<{
249
+ type?: string;
250
+ value?: string;
251
+ }>;
252
+ definitions?: Array<{
253
+ definition?: string;
254
+ examples?: Array<{
255
+ source?: {
256
+ attribution?: string;
257
+ url?: string;
258
+ };
259
+ text?: string;
260
+ }>;
261
+ }>;
262
+ partOfSpeech?: string;
263
+ pronunciation?: string;
264
+ pronunciationUrl?: string;
265
+ source?: {
266
+ attribution?: string;
267
+ url?: string;
268
+ };
269
+ syllabification?: string;
270
+ synonyms?: Array<{
271
+ source?: {
272
+ attribution?: string;
273
+ url?: string;
274
+ };
275
+ text?: string;
276
+ }>;
277
+ }>;
278
+ /** The words with different meanings but not related words, e.g. "go" (game) and "go" (verb). */
279
+ source?: {
280
+ attribution?: string;
281
+ url?: string;
282
+ };
283
+ }>;
284
+ };
285
+ kind?: string;
286
+ }
287
+ interface Discoveryclusters {
288
+ clusters?: Array<{
289
+ banner_with_content_container?: {
290
+ fillColorArgb?: string;
291
+ imageUrl?: string;
292
+ maskColorArgb?: string;
293
+ moreButtonText?: string;
294
+ moreButtonUrl?: string;
295
+ textColorArgb?: string;
296
+ };
297
+ subTitle?: string;
298
+ title?: string;
299
+ totalVolumes?: number;
300
+ uid?: string;
301
+ volumes?: Volume[];
302
+ }>;
303
+ /** Resorce type. */
304
+ kind?: string;
305
+ totalClusters?: number;
306
+ }
307
+ interface DownloadAccesses {
308
+ /** A list of download access responses. */
309
+ downloadAccessList?: DownloadAccessRestriction[];
310
+ /** Resource type. */
311
+ kind?: string;
312
+ }
313
+ interface DownloadAccessRestriction {
314
+ /** If restricted, whether access is granted for this (user, device, volume). */
315
+ deviceAllowed?: boolean;
316
+ /** If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). */
317
+ downloadsAcquired?: number;
318
+ /** If deviceAllowed, whether access was just acquired with this request. */
319
+ justAcquired?: boolean;
320
+ /** Resource type. */
321
+ kind?: string;
322
+ /** If restricted, the maximum number of content download licenses for this volume. */
323
+ maxDownloadDevices?: number;
324
+ /** Error/warning message. */
325
+ message?: string;
326
+ /** Client nonce for verification. Download access and client-validation only. */
327
+ nonce?: string;
328
+ /** Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS */
329
+ reasonCode?: string;
330
+ /** Whether this volume has any download access restrictions. */
331
+ restricted?: boolean;
332
+ /** Response signature. */
333
+ signature?: string;
334
+ /** Client app identifier for verification. Download access and client-validation only. */
335
+ source?: string;
336
+ /** Identifies the volume for which this entry applies. */
337
+ volumeId?: string;
338
+ }
339
+ // tslint:disable-next-line:no-empty-interface
340
+ interface Empty {
341
+ }
342
+ interface FamilyInfo {
343
+ /** Resource type. */
344
+ kind?: string;
345
+ /** Family membership info of the user that made the request. */
346
+ membership?: {
347
+ /** Restrictions on user buying and acquiring content. */
348
+ acquirePermission?: string;
349
+ /** The age group of the user. */
350
+ ageGroup?: string;
351
+ /** The maximum allowed maturity rating for the user. */
352
+ allowedMaturityRating?: string;
353
+ isInFamily?: boolean;
354
+ /** The role of the user in the family. */
355
+ role?: string;
356
+ };
357
+ }
358
+ interface GeoAnnotationdata {
359
+ /** The type of annotation this data is for. */
360
+ annotationType?: string;
361
+ /** JSON encoded data for this geo annotation data. Emitted with name 'data' in JSON output. Either this or dict_data will be populated. */
362
+ data?: Geolayerdata;
363
+ /** Base64 encoded data for this annotation data. */
364
+ encodedData?: string;
365
+ /** Unique id for this annotation data. */
366
+ id?: string;
367
+ /** Resource Type */
368
+ kind?: string;
369
+ /** The Layer id for this data. * */
370
+ layerId?: string;
371
+ /** URL for this resource. * */
372
+ selfLink?: string;
373
+ /** Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format). */
374
+ updated?: string;
375
+ /** The volume id for this data. * */
376
+ volumeId?: string;
377
+ }
378
+ interface Geolayerdata {
379
+ common?: {
380
+ /** The language of the information url and description. */
381
+ lang?: string;
382
+ /** The URL for the preview image information. */
383
+ previewImageUrl?: string;
384
+ /** The description for this location. */
385
+ snippet?: string;
386
+ /** The URL for information for this location. Ex: wikipedia link. */
387
+ snippetUrl?: string;
388
+ /** The display title and localized canonical name to use when searching for this entity on Google search. */
389
+ title?: string;
390
+ };
391
+ geo?: {
392
+ /** The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates. */
393
+ boundary?: string[];
394
+ /** The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER */
395
+ cachePolicy?: string;
396
+ /** The country code of the location. */
397
+ countryCode?: string;
398
+ /** The latitude of the location. */
399
+ latitude?: number;
400
+ /** The longitude of the location. */
401
+ longitude?: number;
402
+ /** The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN */
403
+ mapType?: string;
404
+ /** The viewport for showing this location. This is a latitude, longitude rectangle. */
405
+ viewport?: {
406
+ hi?: {
407
+ latitude?: number;
408
+ longitude?: number;
409
+ };
410
+ lo?: {
411
+ latitude?: number;
412
+ longitude?: number;
413
+ };
414
+ };
415
+ /**
416
+ * The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom level, in which the entire world can be seen on one map) to 21+ (down to individual buildings). See:
417
+ * https: //developers.google.com/maps/documentation/staticmaps/#Zoomlevels
418
+ */
419
+ zoom?: number;
420
+ };
421
+ kind?: string;
422
+ }
423
+ interface Layersummaries {
424
+ /** A list of layer summary items. */
425
+ items?: Layersummary[];
426
+ /** Resource type. */
427
+ kind?: string;
428
+ /** The total number of layer summaries found. */
429
+ totalItems?: number;
430
+ }
431
+ interface Layersummary {
432
+ /** The number of annotations for this layer. */
433
+ annotationCount?: number;
434
+ /** Link to get data for this annotation. */
435
+ annotationsDataLink?: string;
436
+ /** The link to get the annotations for this layer. */
437
+ annotationsLink?: string;
438
+ /** The list of annotation types contained for this layer. */
439
+ annotationTypes?: string[];
440
+ /** The content version this resource is for. */
441
+ contentVersion?: string;
442
+ /** The number of data items for this layer. */
443
+ dataCount?: number;
444
+ /** Unique id of this layer summary. */
445
+ id?: string;
446
+ /** Resource Type */
447
+ kind?: string;
448
+ /** The layer id for this summary. */
449
+ layerId?: string;
450
+ /** URL to this resource. */
451
+ selfLink?: string;
452
+ /** Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format). */
453
+ updated?: string;
454
+ /**
455
+ * The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data
456
+ * is versioned separately.
457
+ */
458
+ volumeAnnotationsVersion?: string;
459
+ /** The volume id this resource is for. */
460
+ volumeId?: string;
461
+ }
462
+ interface Metadata {
463
+ /** A list of offline dictionary metadata. */
464
+ items?: Array<{
465
+ download_url?: string;
466
+ encrypted_key?: string;
467
+ language?: string;
468
+ size?: string;
469
+ version?: string;
470
+ }>;
471
+ /** Resource type. */
472
+ kind?: string;
473
+ }
474
+ interface Notification {
475
+ body?: string;
476
+ /** The list of crm experiment ids. */
477
+ crmExperimentIds?: string[];
478
+ doc_id?: string;
479
+ doc_type?: string;
480
+ dont_show_notification?: boolean;
481
+ iconUrl?: string;
482
+ is_document_mature?: boolean;
483
+ /** Resource type. */
484
+ kind?: string;
485
+ notification_type?: string;
486
+ notificationGroup?: string;
487
+ pcampaign_id?: string;
488
+ reason?: string;
489
+ show_notification_settings_action?: boolean;
490
+ targetUrl?: string;
491
+ timeToExpireMs?: string;
492
+ title?: string;
493
+ }
494
+ interface Offers {
495
+ /** A list of offers. */
496
+ items?: Array<{
497
+ artUrl?: string;
498
+ gservicesKey?: string;
499
+ id?: string;
500
+ items?: Array<{
501
+ author?: string;
502
+ canonicalVolumeLink?: string;
503
+ coverUrl?: string;
504
+ description?: string;
505
+ title?: string;
506
+ volumeId?: string;
507
+ }>;
508
+ }>;
509
+ /** Resource type. */
510
+ kind?: string;
511
+ }
512
+ interface ReadingPosition {
513
+ /** Position in an EPUB as a CFI. */
514
+ epubCfiPosition?: string;
515
+ /** Position in a volume for image-based content. */
516
+ gbImagePosition?: string;
517
+ /** Position in a volume for text-based content. */
518
+ gbTextPosition?: string;
519
+ /** Resource type for a reading position. */
520
+ kind?: string;
521
+ /** Position in a PDF file. */
522
+ pdfPosition?: string;
523
+ /** Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). */
524
+ updated?: string;
525
+ /** Volume id associated with this reading position. */
526
+ volumeId?: string;
527
+ }
528
+ interface RequestAccessData {
529
+ /** A concurrent access response. */
530
+ concurrentAccess?: ConcurrentAccessRestriction;
531
+ /** A download access response. */
532
+ downloadAccess?: DownloadAccessRestriction;
533
+ /** Resource type. */
534
+ kind?: string;
535
+ }
536
+ interface Review {
537
+ /** Author of this review. */
538
+ author?: {
539
+ /** Name of this person. */
540
+ displayName?: string;
541
+ };
542
+ /** Review text. */
543
+ content?: string;
544
+ /** Date of this review. */
545
+ date?: string;
546
+ /** URL for the full review text, for reviews gathered from the web. */
547
+ fullTextUrl?: string;
548
+ /** Resource type for a review. */
549
+ kind?: string;
550
+ /** Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED. */
551
+ rating?: string;
552
+ /** Information regarding the source of this review, when the review is not from a Google Books user. */
553
+ source?: {
554
+ /** Name of the source. */
555
+ description?: string;
556
+ /** Extra text about the source of the review. */
557
+ extraDescription?: string;
558
+ /** URL of the source of the review. */
559
+ url?: string;
560
+ };
561
+ /** Title for this review. */
562
+ title?: string;
563
+ /** Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER. */
564
+ type?: string;
565
+ /** Volume that this review is for. */
566
+ volumeId?: string;
567
+ }
568
+ interface Series {
569
+ /** Resource type. */
570
+ kind?: string;
571
+ series?: Array<{
572
+ bannerImageUrl?: string;
573
+ eligibleForSubscription?: boolean;
574
+ imageUrl?: string;
575
+ isComplete?: boolean;
576
+ seriesFormatType?: string;
577
+ seriesId?: string;
578
+ seriesSubscriptionReleaseInfo?: {
579
+ cancelTime?: string;
580
+ currentReleaseInfo?: {
581
+ amountInMicros?: number;
582
+ currencyCode?: string;
583
+ releaseNumber?: string;
584
+ releaseTime?: string;
585
+ };
586
+ nextReleaseInfo?: {
587
+ amountInMicros?: number;
588
+ currencyCode?: string;
589
+ releaseNumber?: string;
590
+ releaseTime?: string;
591
+ };
592
+ seriesSubscriptionType?: string;
593
+ };
594
+ seriesType?: string;
595
+ subscriptionId?: string;
596
+ title?: string;
597
+ }>;
598
+ }
599
+ interface Seriesmembership {
600
+ /** Resorce type. */
601
+ kind?: string;
602
+ member?: Volume[];
603
+ nextPageToken?: string;
604
+ }
605
+ interface Usersettings {
606
+ /** Resource type. */
607
+ kind?: string;
608
+ /** User settings in sub-objects, each for different purposes. */
609
+ notesExport?: {
610
+ folderName?: string;
611
+ isEnabled?: boolean;
612
+ };
613
+ notification?: {
614
+ matchMyInterests?: {
615
+ opted_state?: string;
616
+ };
617
+ moreFromAuthors?: {
618
+ opted_state?: string;
619
+ };
620
+ moreFromSeries?: {
621
+ opted_state?: string;
622
+ };
623
+ priceDrop?: {
624
+ opted_state?: string;
625
+ };
626
+ rewardExpirations?: {
627
+ opted_state?: string;
628
+ };
629
+ };
630
+ }
631
+ interface Volume {
632
+ /**
633
+ * Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in
634
+ * another, e.g.).
635
+ */
636
+ accessInfo?: {
637
+ /**
638
+ * Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE
639
+ * projection.)
640
+ */
641
+ accessViewStatus?: string;
642
+ /** The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.) */
643
+ country?: string;
644
+ /** Information about a volume's download license access restrictions. */
645
+ downloadAccess?: DownloadAccessRestriction;
646
+ /** URL to the Google Drive viewer if this volume is uploaded by the user by selecting the file from Google Drive. */
647
+ driveImportedContentLink?: string;
648
+ /** Whether this volume can be embedded in a viewport using the Embedded Viewer API. */
649
+ embeddable?: boolean;
650
+ /** Information about epub content. (In LITE projection.) */
651
+ epub?: {
652
+ /** URL to retrieve ACS token for epub download. (In LITE projection.) */
653
+ acsTokenLink?: string;
654
+ /** URL to download epub. (In LITE projection.) */
655
+ downloadLink?: string;
656
+ /** Is a flowing text epub available either as public domain or for purchase. (In LITE projection.) */
657
+ isAvailable?: boolean;
658
+ };
659
+ /**
660
+ * Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports
661
+ * it.
662
+ */
663
+ explicitOfflineLicenseManagement?: boolean;
664
+ /** Information about pdf content. (In LITE projection.) */
665
+ pdf?: {
666
+ /** URL to retrieve ACS token for pdf download. (In LITE projection.) */
667
+ acsTokenLink?: string;
668
+ /** URL to download pdf. (In LITE projection.) */
669
+ downloadLink?: string;
670
+ /** Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.) */
671
+ isAvailable?: boolean;
672
+ };
673
+ /** Whether or not this book is public domain in the country listed above. */
674
+ publicDomain?: boolean;
675
+ /** Whether quote sharing is allowed for this volume. */
676
+ quoteSharingAllowed?: boolean;
677
+ /** Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. */
678
+ textToSpeechPermission?: string;
679
+ /**
680
+ * The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the
681
+ * publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a
682
+ * value of ALL_PAGES.
683
+ */
684
+ viewability?: string;
685
+ /** For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page. */
686
+ viewOrderUrl?: string;
687
+ /** URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes. */
688
+ webReaderLink?: string;
689
+ };
690
+ /** Opaque identifier for a specific version of a volume resource. (In LITE projection) */
691
+ etag?: string;
692
+ /** Unique identifier for a volume. (In LITE projection.) */
693
+ id?: string;
694
+ /** Resource type for a volume. (In LITE projection.) */
695
+ kind?: string;
696
+ /** What layers exist in this volume and high level information about them. */
697
+ layerInfo?: {
698
+ /** A layer should appear here if and only if the layer exists for this book. */
699
+ layers?: Array<{
700
+ /** The layer id of this layer (e.g. "geo"). */
701
+ layerId?: string;
702
+ /**
703
+ * The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual
704
+ * annotation data is versioned separately.
705
+ */
706
+ volumeAnnotationsVersion?: string;
707
+ }>;
708
+ };
709
+ /** Recommendation related information for this volume. */
710
+ recommendedInfo?: {
711
+ /** A text explaining why this volume is recommended. */
712
+ explanation?: string;
713
+ };
714
+ /**
715
+ * Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be
716
+ * for sale in certain countries).
717
+ */
718
+ saleInfo?: {
719
+ /** URL to purchase this volume on the Google Books site. (In LITE projection) */
720
+ buyLink?: string;
721
+ /** The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.) */
722
+ country?: string;
723
+ /** Whether or not this volume is an eBook (can be added to the My eBooks shelf). */
724
+ isEbook?: boolean;
725
+ /** Suggested retail price. (In LITE projection.) */
726
+ listPrice?: {
727
+ /** Amount in the currency listed below. (In LITE projection.) */
728
+ amount?: number;
729
+ /** An ISO 4217, three-letter currency code. (In LITE projection.) */
730
+ currencyCode?: string;
731
+ };
732
+ /** Offers available for this volume (sales and rentals). */
733
+ offers?: Array<{
734
+ /** The finsky offer type (e.g., PURCHASE=0 RENTAL=3) */
735
+ finskyOfferType?: number;
736
+ /** Indicates whether the offer is giftable. */
737
+ giftable?: boolean;
738
+ /** Offer list (=undiscounted) price in Micros. */
739
+ listPrice?: {
740
+ amountInMicros?: number;
741
+ currencyCode?: string;
742
+ };
743
+ /** The rental duration (for rental offers only). */
744
+ rentalDuration?: {
745
+ count?: number;
746
+ unit?: string;
747
+ };
748
+ /** Offer retail (=discounted) price in Micros */
749
+ retailPrice?: {
750
+ amountInMicros?: number;
751
+ currencyCode?: string;
752
+ };
753
+ }>;
754
+ /** The date on which this book is available for sale. */
755
+ onSaleDate?: string;
756
+ /** The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.) */
757
+ retailPrice?: {
758
+ /** Amount in the currency listed below. (In LITE projection.) */
759
+ amount?: number;
760
+ /** An ISO 4217, three-letter currency code. (In LITE projection.) */
761
+ currencyCode?: string;
762
+ };
763
+ /**
764
+ * Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY,
765
+ * FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
766
+ */
767
+ saleability?: string;
768
+ };
769
+ /** Search result information related to this volume. */
770
+ searchInfo?: {
771
+ /** A text snippet containing the search query. */
772
+ textSnippet?: string;
773
+ };
774
+ /** URL to this resource. (In LITE projection.) */
775
+ selfLink?: string;
776
+ /** User specific information related to this volume. (e.g. page this user last read or whether they purchased this book) */
777
+ userInfo?: {
778
+ /** Timestamp when this volume was acquired by the user. (RFC 3339 UTC date-time format) Acquiring includes purchase, user upload, receiving family sharing, etc. */
779
+ acquiredTime?: string;
780
+ /** How this volume was acquired. */
781
+ acquisitionType?: number;
782
+ /** Copy/Paste accounting information. */
783
+ copy?: {
784
+ allowedCharacterCount?: number;
785
+ limitType?: string;
786
+ remainingCharacterCount?: number;
787
+ updated?: string;
788
+ };
789
+ /** Whether this volume is purchased, sample, pd download etc. */
790
+ entitlementType?: number;
791
+ /** Information on the ability to share with the family. */
792
+ familySharing?: {
793
+ /** The role of the user in the family. */
794
+ familyRole?: string;
795
+ /**
796
+ * Whether or not this volume can be shared with the family by the user. This includes sharing eligibility of both the volume and the user. If the value is true, the user can
797
+ * initiate a family sharing action.
798
+ */
799
+ isSharingAllowed?: boolean;
800
+ /** Whether or not sharing this volume is temporarily disabled due to issues with the Family Wallet. */
801
+ isSharingDisabledByFop?: boolean;
802
+ };
803
+ /** Whether or not the user shared this volume with the family. */
804
+ isFamilySharedFromUser?: boolean;
805
+ /** Whether or not the user received this volume through family sharing. */
806
+ isFamilySharedToUser?: boolean;
807
+ /** Deprecated: Replaced by familySharing. */
808
+ isFamilySharingAllowed?: boolean;
809
+ /** Deprecated: Replaced by familySharing. */
810
+ isFamilySharingDisabledByFop?: boolean;
811
+ /** Whether or not this volume is currently in "my books." */
812
+ isInMyBooks?: boolean;
813
+ /** Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.) */
814
+ isPreordered?: boolean;
815
+ /** Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.) */
816
+ isPurchased?: boolean;
817
+ /** Whether or not this volume was user uploaded. */
818
+ isUploaded?: boolean;
819
+ /** The user's current reading position in the volume, if one is available. (In LITE projection.) */
820
+ readingPosition?: ReadingPosition;
821
+ /** Period during this book is/was a valid rental. */
822
+ rentalPeriod?: {
823
+ endUtcSec?: string;
824
+ startUtcSec?: string;
825
+ };
826
+ /** Whether this book is an active or an expired rental. */
827
+ rentalState?: string;
828
+ /** This user's review of this volume, if one exists. */
829
+ review?: Review;
830
+ /** Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format). */
831
+ updated?: string;
832
+ userUploadedVolumeInfo?: {
833
+ processingState?: string;
834
+ };
835
+ };
836
+ /** General volume information. */
837
+ volumeInfo?: {
838
+ /** Whether anonymous logging should be allowed. */
839
+ allowAnonLogging?: boolean;
840
+ /** The names of the authors and/or editors for this volume. (In LITE projection) */
841
+ authors?: string[];
842
+ /** The mean review rating for this volume. (min = 1.0, max = 5.0) */
843
+ averageRating?: number;
844
+ /** Canonical URL for a volume. (In LITE projection.) */
845
+ canonicalVolumeLink?: string;
846
+ /** A list of subject categories, such as "Fiction", "Suspense", etc. */
847
+ categories?: string[];
848
+ /** Whether the volume has comics content. */
849
+ comicsContent?: boolean;
850
+ /** An identifier for the version of the volume content (text & images). (In LITE projection) */
851
+ contentVersion?: string;
852
+ /** A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.) */
853
+ description?: string;
854
+ /** Physical dimensions of this volume. */
855
+ dimensions?: {
856
+ /** Height or length of this volume (in cm). */
857
+ height?: string;
858
+ /** Thickness of this volume (in cm). */
859
+ thickness?: string;
860
+ /** Width of this volume (in cm). */
861
+ width?: string;
862
+ };
863
+ /** A list of image links for all the sizes that are available. (In LITE projection.) */
864
+ imageLinks?: {
865
+ /** Image link for extra large size (width of ~1280 pixels). (In LITE projection) */
866
+ extraLarge?: string;
867
+ /** Image link for large size (width of ~800 pixels). (In LITE projection) */
868
+ large?: string;
869
+ /** Image link for medium size (width of ~575 pixels). (In LITE projection) */
870
+ medium?: string;
871
+ /** Image link for small size (width of ~300 pixels). (In LITE projection) */
872
+ small?: string;
873
+ /** Image link for small thumbnail size (width of ~80 pixels). (In LITE projection) */
874
+ smallThumbnail?: string;
875
+ /** Image link for thumbnail size (width of ~128 pixels). (In LITE projection) */
876
+ thumbnail?: string;
877
+ };
878
+ /** Industry standard identifiers for this volume. */
879
+ industryIdentifiers?: Array<{
880
+ /** Industry specific volume identifier. */
881
+ identifier?: string;
882
+ /** Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. */
883
+ type?: string;
884
+ }>;
885
+ /** URL to view information about this volume on the Google Books site. (In LITE projection) */
886
+ infoLink?: string;
887
+ /** Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc. */
888
+ language?: string;
889
+ /** The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight. */
890
+ mainCategory?: string;
891
+ maturityRating?: string;
892
+ /** Total number of pages as per publisher metadata. */
893
+ pageCount?: number;
894
+ /** A top-level summary of the panelization info in this volume. */
895
+ panelizationSummary?: {
896
+ containsEpubBubbles?: boolean;
897
+ containsImageBubbles?: boolean;
898
+ epubBubbleVersion?: string;
899
+ imageBubbleVersion?: string;
900
+ };
901
+ /** URL to preview this volume on the Google Books site. */
902
+ previewLink?: string;
903
+ /** Total number of printed pages in generated pdf representation. */
904
+ printedPageCount?: number;
905
+ /** Type of publication of this volume. Possible values are BOOK or MAGAZINE. */
906
+ printType?: string;
907
+ /** Date of publication. (In LITE projection.) */
908
+ publishedDate?: string;
909
+ /** Publisher of this volume. (In LITE projection.) */
910
+ publisher?: string;
911
+ /** The number of review ratings for this volume. */
912
+ ratingsCount?: number;
913
+ /** The reading modes available for this volume. */
914
+ readingModes?: {
915
+ image?: boolean;
916
+ text?: boolean;
917
+ };
918
+ /** Total number of sample pages as per publisher metadata. */
919
+ samplePageCount?: number;
920
+ seriesInfo?: Volumeseriesinfo;
921
+ /** Volume subtitle. (In LITE projection.) */
922
+ subtitle?: string;
923
+ /** Volume title. (In LITE projection.) */
924
+ title?: string;
925
+ };
926
+ }
927
+ interface Volume2 {
928
+ /** A list of volumes. */
929
+ items?: Volume[];
930
+ /** Resource type. */
931
+ kind?: string;
932
+ nextPageToken?: string;
933
+ }
934
+ interface Volumeannotation {
935
+ /** The annotation data id for this volume annotation. */
936
+ annotationDataId?: string;
937
+ /** Link to get data for this annotation. */
938
+ annotationDataLink?: string;
939
+ /** The type of annotation this is. */
940
+ annotationType?: string;
941
+ /** The content ranges to identify the selected text. */
942
+ contentRanges?: {
943
+ /** Range in CFI format for this annotation for version above. */
944
+ cfiRange?: BooksAnnotationsRange;
945
+ /** Content version applicable to ranges below. */
946
+ contentVersion?: string;
947
+ /** Range in GB image format for this annotation for version above. */
948
+ gbImageRange?: BooksAnnotationsRange;
949
+ /** Range in GB text format for this annotation for version above. */
950
+ gbTextRange?: BooksAnnotationsRange;
951
+ };
952
+ /** Data for this annotation. */
953
+ data?: string;
954
+ /** Indicates that this annotation is deleted. */
955
+ deleted?: boolean;
956
+ /** Unique id of this volume annotation. */
957
+ id?: string;
958
+ /** Resource Type */
959
+ kind?: string;
960
+ /** The Layer this annotation is for. */
961
+ layerId?: string;
962
+ /** Pages the annotation spans. */
963
+ pageIds?: string[];
964
+ /** Excerpt from the volume. */
965
+ selectedText?: string;
966
+ /** URL to this resource. */
967
+ selfLink?: string;
968
+ /** Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format). */
969
+ updated?: string;
970
+ /** The Volume this annotation is for. */
971
+ volumeId?: string;
972
+ }
973
+ interface Volumeannotations {
974
+ /** A list of volume annotations. */
975
+ items?: Volumeannotation[];
976
+ /** Resource type */
977
+ kind?: string;
978
+ /** Token to pass in for pagination for the next page. This will not be present if this request does not have more results. */
979
+ nextPageToken?: string;
980
+ /** The total number of volume annotations found. */
981
+ totalItems?: number;
982
+ /**
983
+ * The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn't apply to the annotation data, just the
984
+ * information in this response (e.g. the location of annotations in the book).
985
+ */
986
+ version?: string;
987
+ }
988
+ interface Volumes {
989
+ /** A list of volumes. */
990
+ items?: Volume[];
991
+ /** Resource type. */
992
+ kind?: string;
993
+ /** Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated. */
994
+ totalItems?: number;
995
+ }
996
+ interface Volumeseriesinfo {
997
+ /** The display number string. This should be used only for display purposes and the actual sequence should be inferred from the below orderNumber. */
998
+ bookDisplayNumber?: string;
999
+ /** Resource type. */
1000
+ kind?: string;
1001
+ /** Short book title in the context of the series. */
1002
+ shortSeriesBookTitle?: string;
1003
+ volumeSeries?: Array<{
1004
+ /** List of issues. Applicable only for Collection Edition and Omnibus. */
1005
+ issue?: Array<{
1006
+ issueDisplayNumber?: string;
1007
+ issueOrderNumber?: number;
1008
+ }>;
1009
+ /** The book order number in the series. */
1010
+ orderNumber?: number;
1011
+ /** The book type in the context of series. Examples - Single Issue, Collection Edition, etc. */
1012
+ seriesBookType?: string;
1013
+ /** The series id. */
1014
+ seriesId?: string;
1015
+ }>;
1016
+ }
1017
+ interface VolumesResource {
1018
+ /** Retrieves volumes in a specific bookshelf for the specified user. */
1019
+ list(request?: {
1020
+ /** V1 error format. */
1021
+ "$.xgafv"?: string;
1022
+ /** OAuth access token. */
1023
+ access_token?: string;
1024
+ /** Data format for response. */
1025
+ alt?: string;
1026
+ /** JSONP */
1027
+ callback?: string;
1028
+ /** Selector specifying which fields to include in a partial response. */
1029
+ fields?: string;
1030
+ /** 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. */
1031
+ key?: string;
1032
+ /** Maximum number of results to return */
1033
+ maxResults?: number;
1034
+ /** OAuth 2.0 token for the current user. */
1035
+ oauth_token?: string;
1036
+ /** Returns response with indentations and line breaks. */
1037
+ prettyPrint?: boolean;
1038
+ /** 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. */
1039
+ quotaUser?: string;
1040
+ /** ID of bookshelf to retrieve volumes. */
1041
+ shelf: string;
1042
+ /** Set to true to show pre-ordered books. Defaults to false. */
1043
+ showPreorders?: boolean;
1044
+ /** String to identify the originator of this request. */
1045
+ source?: string;
1046
+ /** Index of the first element to return (starts at 0) */
1047
+ startIndex?: number;
1048
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1049
+ upload_protocol?: string;
1050
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1051
+ uploadType?: string;
1052
+ /** ID of user for whom to retrieve bookshelf volumes. */
1053
+ userId: string;
1054
+ }): Request<Volumes>;
1055
+ }
1056
+ interface BookshelvesResource {
1057
+ /** Retrieves metadata for a specific bookshelf for the specified user. */
1058
+ get(request?: {
1059
+ /** V1 error format. */
1060
+ "$.xgafv"?: string;
1061
+ /** OAuth access token. */
1062
+ access_token?: string;
1063
+ /** Data format for response. */
1064
+ alt?: string;
1065
+ /** JSONP */
1066
+ callback?: string;
1067
+ /** Selector specifying which fields to include in a partial response. */
1068
+ fields?: string;
1069
+ /** 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. */
1070
+ key?: string;
1071
+ /** OAuth 2.0 token for the current user. */
1072
+ oauth_token?: string;
1073
+ /** Returns response with indentations and line breaks. */
1074
+ prettyPrint?: boolean;
1075
+ /** 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. */
1076
+ quotaUser?: string;
1077
+ /** ID of bookshelf to retrieve. */
1078
+ shelf: string;
1079
+ /** String to identify the originator of this request. */
1080
+ source?: string;
1081
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1082
+ upload_protocol?: string;
1083
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1084
+ uploadType?: string;
1085
+ /** ID of user for whom to retrieve bookshelves. */
1086
+ userId: string;
1087
+ }): Request<Bookshelf>;
1088
+ /** Retrieves a list of public bookshelves for the specified user. */
1089
+ list(request?: {
1090
+ /** V1 error format. */
1091
+ "$.xgafv"?: string;
1092
+ /** OAuth access token. */
1093
+ access_token?: string;
1094
+ /** Data format for response. */
1095
+ alt?: string;
1096
+ /** JSONP */
1097
+ callback?: string;
1098
+ /** Selector specifying which fields to include in a partial response. */
1099
+ fields?: string;
1100
+ /** 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. */
1101
+ key?: string;
1102
+ /** OAuth 2.0 token for the current user. */
1103
+ oauth_token?: string;
1104
+ /** Returns response with indentations and line breaks. */
1105
+ prettyPrint?: boolean;
1106
+ /** 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. */
1107
+ quotaUser?: string;
1108
+ /** String to identify the originator of this request. */
1109
+ source?: string;
1110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1111
+ upload_protocol?: string;
1112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1113
+ uploadType?: string;
1114
+ /** ID of user for whom to retrieve bookshelves. */
1115
+ userId: string;
1116
+ }): Request<Bookshelves>;
1117
+ volumes: VolumesResource;
1118
+ }
1119
+ interface CloudloadingResource {
1120
+ /** Add a user-upload volume and triggers processing. */
1121
+ addBook(request?: {
1122
+ /** V1 error format. */
1123
+ "$.xgafv"?: string;
1124
+ /** OAuth access token. */
1125
+ access_token?: string;
1126
+ /** Data format for response. */
1127
+ alt?: string;
1128
+ /** JSONP */
1129
+ callback?: string;
1130
+ /** A drive document id. The upload_client_token must not be set. */
1131
+ drive_document_id?: string;
1132
+ /** Selector specifying which fields to include in a partial response. */
1133
+ fields?: string;
1134
+ /** 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. */
1135
+ key?: string;
1136
+ /** The document MIME type. It can be set only if the drive_document_id is set. */
1137
+ mime_type?: string;
1138
+ /** The document name. It can be set only if the drive_document_id is set. */
1139
+ name?: string;
1140
+ /** OAuth 2.0 token for the current user. */
1141
+ oauth_token?: string;
1142
+ /** Returns response with indentations and line breaks. */
1143
+ prettyPrint?: boolean;
1144
+ /** 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. */
1145
+ quotaUser?: string;
1146
+ /** Scotty upload token. */
1147
+ upload_client_token?: string;
1148
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1149
+ upload_protocol?: string;
1150
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1151
+ uploadType?: string;
1152
+ }): Request<BooksCloudloadingResource>;
1153
+ /** Remove the book and its contents */
1154
+ deleteBook(request?: {
1155
+ /** V1 error format. */
1156
+ "$.xgafv"?: string;
1157
+ /** OAuth access token. */
1158
+ access_token?: string;
1159
+ /** Data format for response. */
1160
+ alt?: string;
1161
+ /** JSONP */
1162
+ callback?: string;
1163
+ /** Selector specifying which fields to include in a partial response. */
1164
+ fields?: string;
1165
+ /** 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. */
1166
+ key?: string;
1167
+ /** OAuth 2.0 token for the current user. */
1168
+ oauth_token?: string;
1169
+ /** Returns response with indentations and line breaks. */
1170
+ prettyPrint?: boolean;
1171
+ /** 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. */
1172
+ quotaUser?: string;
1173
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1174
+ upload_protocol?: string;
1175
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1176
+ uploadType?: string;
1177
+ /** The id of the book to be removed. */
1178
+ volumeId: string;
1179
+ }): Request<{}>;
1180
+ /** Updates a user-upload volume. */
1181
+ updateBook(request: {
1182
+ /** V1 error format. */
1183
+ "$.xgafv"?: string;
1184
+ /** OAuth access token. */
1185
+ access_token?: string;
1186
+ /** Data format for response. */
1187
+ alt?: string;
1188
+ /** JSONP */
1189
+ callback?: string;
1190
+ /** Selector specifying which fields to include in a partial response. */
1191
+ fields?: string;
1192
+ /** 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. */
1193
+ key?: string;
1194
+ /** OAuth 2.0 token for the current user. */
1195
+ oauth_token?: string;
1196
+ /** Returns response with indentations and line breaks. */
1197
+ prettyPrint?: boolean;
1198
+ /** 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. */
1199
+ quotaUser?: string;
1200
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1201
+ upload_protocol?: string;
1202
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1203
+ uploadType?: string;
1204
+ /** Request body */
1205
+ resource: BooksCloudloadingResource;
1206
+ }): Request<BooksCloudloadingResource>;
1207
+ updateBook(request: {
1208
+ /** V1 error format. */
1209
+ "$.xgafv"?: string;
1210
+ /** OAuth access token. */
1211
+ access_token?: string;
1212
+ /** Data format for response. */
1213
+ alt?: string;
1214
+ /** JSONP */
1215
+ callback?: string;
1216
+ /** Selector specifying which fields to include in a partial response. */
1217
+ fields?: string;
1218
+ /** 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. */
1219
+ key?: string;
1220
+ /** OAuth 2.0 token for the current user. */
1221
+ oauth_token?: string;
1222
+ /** Returns response with indentations and line breaks. */
1223
+ prettyPrint?: boolean;
1224
+ /** 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. */
1225
+ quotaUser?: string;
1226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1227
+ upload_protocol?: string;
1228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1229
+ uploadType?: string;
1230
+ },
1231
+ body: BooksCloudloadingResource): Request<BooksCloudloadingResource>;
1232
+ }
1233
+ interface DictionaryResource {
1234
+ /** Returns a list of offline dictionary metadata available */
1235
+ listOfflineMetadata(request?: {
1236
+ /** V1 error format. */
1237
+ "$.xgafv"?: string;
1238
+ /** OAuth access token. */
1239
+ access_token?: string;
1240
+ /** Data format for response. */
1241
+ alt?: string;
1242
+ /** JSONP */
1243
+ callback?: string;
1244
+ /** The device/version ID from which to request the data. */
1245
+ cpksver: string;
1246
+ /** Selector specifying which fields to include in a partial response. */
1247
+ fields?: string;
1248
+ /** 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. */
1249
+ key?: string;
1250
+ /** OAuth 2.0 token for the current user. */
1251
+ oauth_token?: string;
1252
+ /** Returns response with indentations and line breaks. */
1253
+ prettyPrint?: boolean;
1254
+ /** 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. */
1255
+ quotaUser?: string;
1256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1257
+ upload_protocol?: string;
1258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1259
+ uploadType?: string;
1260
+ }): Request<Metadata>;
1261
+ }
1262
+ interface FamilysharingResource {
1263
+ /** Gets information regarding the family that the user is part of. */
1264
+ getFamilyInfo(request?: {
1265
+ /** V1 error format. */
1266
+ "$.xgafv"?: string;
1267
+ /** OAuth access token. */
1268
+ access_token?: string;
1269
+ /** Data format for response. */
1270
+ alt?: string;
1271
+ /** JSONP */
1272
+ callback?: string;
1273
+ /** Selector specifying which fields to include in a partial response. */
1274
+ fields?: string;
1275
+ /** 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. */
1276
+ key?: string;
1277
+ /** OAuth 2.0 token for the current user. */
1278
+ oauth_token?: string;
1279
+ /** Returns response with indentations and line breaks. */
1280
+ prettyPrint?: boolean;
1281
+ /** 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
+ quotaUser?: string;
1283
+ /** String to identify the originator of this request. */
1284
+ source?: string;
1285
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1286
+ upload_protocol?: string;
1287
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1288
+ uploadType?: string;
1289
+ }): Request<FamilyInfo>;
1290
+ /** Initiates sharing of the content with the user's family. Empty response indicates success. */
1291
+ share(request?: {
1292
+ /** V1 error format. */
1293
+ "$.xgafv"?: string;
1294
+ /** OAuth access token. */
1295
+ access_token?: string;
1296
+ /** Data format for response. */
1297
+ alt?: string;
1298
+ /** JSONP */
1299
+ callback?: string;
1300
+ /** The docid to share. */
1301
+ docId?: string;
1302
+ /** Selector specifying which fields to include in a partial response. */
1303
+ fields?: string;
1304
+ /** 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. */
1305
+ key?: string;
1306
+ /** OAuth 2.0 token for the current user. */
1307
+ oauth_token?: string;
1308
+ /** Returns response with indentations and line breaks. */
1309
+ prettyPrint?: boolean;
1310
+ /** 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. */
1311
+ quotaUser?: string;
1312
+ /** String to identify the originator of this request. */
1313
+ source?: string;
1314
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1315
+ upload_protocol?: string;
1316
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1317
+ uploadType?: string;
1318
+ /** The volume to share. */
1319
+ volumeId?: string;
1320
+ }): Request<{}>;
1321
+ /** Initiates revoking content that has already been shared with the user's family. Empty response indicates success. */
1322
+ unshare(request?: {
1323
+ /** V1 error format. */
1324
+ "$.xgafv"?: string;
1325
+ /** OAuth access token. */
1326
+ access_token?: string;
1327
+ /** Data format for response. */
1328
+ alt?: string;
1329
+ /** JSONP */
1330
+ callback?: string;
1331
+ /** The docid to unshare. */
1332
+ docId?: string;
1333
+ /** Selector specifying which fields to include in a partial response. */
1334
+ fields?: string;
1335
+ /** 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. */
1336
+ key?: string;
1337
+ /** OAuth 2.0 token for the current user. */
1338
+ oauth_token?: string;
1339
+ /** Returns response with indentations and line breaks. */
1340
+ prettyPrint?: boolean;
1341
+ /** 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. */
1342
+ quotaUser?: string;
1343
+ /** String to identify the originator of this request. */
1344
+ source?: string;
1345
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1346
+ upload_protocol?: string;
1347
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1348
+ uploadType?: string;
1349
+ /** The volume to unshare. */
1350
+ volumeId?: string;
1351
+ }): Request<{}>;
1352
+ }
1353
+ interface AnnotationDataResource {
1354
+ /** Gets the annotation data. */
1355
+ get(request?: {
1356
+ /** V1 error format. */
1357
+ "$.xgafv"?: string;
1358
+ /** OAuth access token. */
1359
+ access_token?: string;
1360
+ /** For the dictionary layer. Whether or not to allow web definitions. */
1361
+ allowWebDefinitions?: boolean;
1362
+ /** Data format for response. */
1363
+ alt?: string;
1364
+ /** The ID of the annotation data to retrieve. */
1365
+ annotationDataId: string;
1366
+ /** JSONP */
1367
+ callback?: string;
1368
+ /** The content version for the volume you are trying to retrieve. */
1369
+ contentVersion: string;
1370
+ /** Selector specifying which fields to include in a partial response. */
1371
+ fields?: string;
1372
+ /** The requested pixel height for any images. If height is provided width must also be provided. */
1373
+ h?: number;
1374
+ /** 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. */
1375
+ key?: string;
1376
+ /** The ID for the layer to get the annotations. */
1377
+ layerId: string;
1378
+ /** The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. */
1379
+ locale?: string;
1380
+ /** OAuth 2.0 token for the current user. */
1381
+ oauth_token?: string;
1382
+ /** Returns response with indentations and line breaks. */
1383
+ prettyPrint?: boolean;
1384
+ /** 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. */
1385
+ quotaUser?: string;
1386
+ /** The requested scale for the image. */
1387
+ scale?: number;
1388
+ /** String to identify the originator of this request. */
1389
+ source?: string;
1390
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1391
+ upload_protocol?: string;
1392
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1393
+ uploadType?: string;
1394
+ /** The volume to retrieve annotations for. */
1395
+ volumeId: string;
1396
+ /** The requested pixel width for any images. If width is provided height must also be provided. */
1397
+ w?: number;
1398
+ }): Request<DictionaryAnnotationdata>;
1399
+ /** Gets the annotation data for a volume and layer. */
1400
+ list(request?: {
1401
+ /** V1 error format. */
1402
+ "$.xgafv"?: string;
1403
+ /** OAuth access token. */
1404
+ access_token?: string;
1405
+ /** Data format for response. */
1406
+ alt?: string;
1407
+ /** The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. */
1408
+ annotationDataId?: string | string[];
1409
+ /** JSONP */
1410
+ callback?: string;
1411
+ /** The content version for the requested volume. */
1412
+ contentVersion: string;
1413
+ /** Selector specifying which fields to include in a partial response. */
1414
+ fields?: string;
1415
+ /** The requested pixel height for any images. If height is provided width must also be provided. */
1416
+ h?: number;
1417
+ /** 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. */
1418
+ key?: string;
1419
+ /** The ID for the layer to get the annotation data. */
1420
+ layerId: string;
1421
+ /** The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. */
1422
+ locale?: string;
1423
+ /** Maximum number of results to return */
1424
+ maxResults?: number;
1425
+ /** OAuth 2.0 token for the current user. */
1426
+ oauth_token?: string;
1427
+ /** The value of the nextToken from the previous page. */
1428
+ pageToken?: string;
1429
+ /** Returns response with indentations and line breaks. */
1430
+ prettyPrint?: boolean;
1431
+ /** 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. */
1432
+ quotaUser?: string;
1433
+ /** The requested scale for the image. */
1434
+ scale?: number;
1435
+ /** String to identify the originator of this request. */
1436
+ source?: string;
1437
+ /** RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). */
1438
+ updatedMax?: string;
1439
+ /** RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). */
1440
+ updatedMin?: string;
1441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1442
+ upload_protocol?: string;
1443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1444
+ uploadType?: string;
1445
+ /** The volume to retrieve annotation data for. */
1446
+ volumeId: string;
1447
+ /** The requested pixel width for any images. If width is provided height must also be provided. */
1448
+ w?: number;
1449
+ }): Request<Annotationsdata>;
1450
+ }
1451
+ interface VolumeAnnotationsResource {
1452
+ /** Gets the volume annotation. */
1453
+ get(request?: {
1454
+ /** V1 error format. */
1455
+ "$.xgafv"?: string;
1456
+ /** OAuth access token. */
1457
+ access_token?: string;
1458
+ /** Data format for response. */
1459
+ alt?: string;
1460
+ /** The ID of the volume annotation to retrieve. */
1461
+ annotationId: string;
1462
+ /** JSONP */
1463
+ callback?: string;
1464
+ /** Selector specifying which fields to include in a partial response. */
1465
+ fields?: string;
1466
+ /** 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. */
1467
+ key?: string;
1468
+ /** The ID for the layer to get the annotations. */
1469
+ layerId: string;
1470
+ /** The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. */
1471
+ locale?: string;
1472
+ /** OAuth 2.0 token for the current user. */
1473
+ oauth_token?: string;
1474
+ /** Returns response with indentations and line breaks. */
1475
+ prettyPrint?: boolean;
1476
+ /** 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. */
1477
+ quotaUser?: string;
1478
+ /** String to identify the originator of this request. */
1479
+ source?: string;
1480
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1481
+ upload_protocol?: string;
1482
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1483
+ uploadType?: string;
1484
+ /** The volume to retrieve annotations for. */
1485
+ volumeId: string;
1486
+ }): Request<Volumeannotation>;
1487
+ /** Gets the volume annotations for a volume and layer. */
1488
+ list(request?: {
1489
+ /** V1 error format. */
1490
+ "$.xgafv"?: string;
1491
+ /** OAuth access token. */
1492
+ access_token?: string;
1493
+ /** Data format for response. */
1494
+ alt?: string;
1495
+ /** JSONP */
1496
+ callback?: string;
1497
+ /** The content version for the requested volume. */
1498
+ contentVersion: string;
1499
+ /** The end offset to end retrieving data from. */
1500
+ endOffset?: string;
1501
+ /** The end position to end retrieving data from. */
1502
+ endPosition?: string;
1503
+ /** Selector specifying which fields to include in a partial response. */
1504
+ fields?: string;
1505
+ /** 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. */
1506
+ key?: string;
1507
+ /** The ID for the layer to get the annotations. */
1508
+ layerId: string;
1509
+ /** The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. */
1510
+ locale?: string;
1511
+ /** Maximum number of results to return */
1512
+ maxResults?: number;
1513
+ /** OAuth 2.0 token for the current user. */
1514
+ oauth_token?: string;
1515
+ /** The value of the nextToken from the previous page. */
1516
+ pageToken?: string;
1517
+ /** Returns response with indentations and line breaks. */
1518
+ prettyPrint?: boolean;
1519
+ /** 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. */
1520
+ quotaUser?: string;
1521
+ /** Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false. */
1522
+ showDeleted?: boolean;
1523
+ /** String to identify the originator of this request. */
1524
+ source?: string;
1525
+ /** The start offset to start retrieving data from. */
1526
+ startOffset?: string;
1527
+ /** The start position to start retrieving data from. */
1528
+ startPosition?: string;
1529
+ /** RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). */
1530
+ updatedMax?: string;
1531
+ /** RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). */
1532
+ updatedMin?: string;
1533
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1534
+ upload_protocol?: string;
1535
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1536
+ uploadType?: string;
1537
+ /** The version of the volume annotations that you are requesting. */
1538
+ volumeAnnotationsVersion?: string;
1539
+ /** The volume to retrieve annotations for. */
1540
+ volumeId: string;
1541
+ }): Request<Volumeannotations>;
1542
+ }
1543
+ interface LayersResource {
1544
+ /** Gets the layer summary for a volume. */
1545
+ get(request?: {
1546
+ /** V1 error format. */
1547
+ "$.xgafv"?: string;
1548
+ /** OAuth access token. */
1549
+ access_token?: string;
1550
+ /** Data format for response. */
1551
+ alt?: string;
1552
+ /** JSONP */
1553
+ callback?: string;
1554
+ /** The content version for the requested volume. */
1555
+ contentVersion?: string;
1556
+ /** Selector specifying which fields to include in a partial response. */
1557
+ fields?: string;
1558
+ /** 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. */
1559
+ key?: string;
1560
+ /** OAuth 2.0 token for the current user. */
1561
+ oauth_token?: string;
1562
+ /** Returns response with indentations and line breaks. */
1563
+ prettyPrint?: boolean;
1564
+ /** 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. */
1565
+ quotaUser?: string;
1566
+ /** String to identify the originator of this request. */
1567
+ source?: string;
1568
+ /** The ID for the layer to get the summary for. */
1569
+ summaryId: string;
1570
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1571
+ upload_protocol?: string;
1572
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1573
+ uploadType?: string;
1574
+ /** The volume to retrieve layers for. */
1575
+ volumeId: string;
1576
+ }): Request<Layersummary>;
1577
+ /** List the layer summaries for a volume. */
1578
+ list(request?: {
1579
+ /** V1 error format. */
1580
+ "$.xgafv"?: string;
1581
+ /** OAuth access token. */
1582
+ access_token?: string;
1583
+ /** Data format for response. */
1584
+ alt?: string;
1585
+ /** JSONP */
1586
+ callback?: string;
1587
+ /** The content version for the requested volume. */
1588
+ contentVersion?: string;
1589
+ /** Selector specifying which fields to include in a partial response. */
1590
+ fields?: string;
1591
+ /** 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. */
1592
+ key?: string;
1593
+ /** Maximum number of results to return */
1594
+ maxResults?: number;
1595
+ /** OAuth 2.0 token for the current user. */
1596
+ oauth_token?: string;
1597
+ /** The value of the nextToken from the previous page. */
1598
+ pageToken?: string;
1599
+ /** Returns response with indentations and line breaks. */
1600
+ prettyPrint?: boolean;
1601
+ /** 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. */
1602
+ quotaUser?: string;
1603
+ /** String to identify the originator of this request. */
1604
+ source?: string;
1605
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1606
+ upload_protocol?: string;
1607
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1608
+ uploadType?: string;
1609
+ /** The volume to retrieve layers for. */
1610
+ volumeId: string;
1611
+ }): Request<Layersummaries>;
1612
+ annotationData: AnnotationDataResource;
1613
+ volumeAnnotations: VolumeAnnotationsResource;
1614
+ }
1615
+ interface MyconfigResource {
1616
+ /** Gets the current settings for the user. */
1617
+ getUserSettings(request?: {
1618
+ /** V1 error format. */
1619
+ "$.xgafv"?: string;
1620
+ /** OAuth access token. */
1621
+ access_token?: string;
1622
+ /** Data format for response. */
1623
+ alt?: string;
1624
+ /** JSONP */
1625
+ callback?: string;
1626
+ /** Unused. Added only to workaround TEX mandatory request template requirement */
1627
+ country?: string;
1628
+ /** Selector specifying which fields to include in a partial response. */
1629
+ fields?: string;
1630
+ /** 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. */
1631
+ key?: string;
1632
+ /** OAuth 2.0 token for the current user. */
1633
+ oauth_token?: string;
1634
+ /** Returns response with indentations and line breaks. */
1635
+ prettyPrint?: boolean;
1636
+ /** 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. */
1637
+ quotaUser?: string;
1638
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1639
+ upload_protocol?: string;
1640
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1641
+ uploadType?: string;
1642
+ }): Request<Usersettings>;
1643
+ /** Release downloaded content access restriction. */
1644
+ releaseDownloadAccess(request?: {
1645
+ /** V1 error format. */
1646
+ "$.xgafv"?: string;
1647
+ /** OAuth access token. */
1648
+ access_token?: string;
1649
+ /** Data format for response. */
1650
+ alt?: string;
1651
+ /** JSONP */
1652
+ callback?: string;
1653
+ /** The device/version ID from which to release the restriction. */
1654
+ cpksver: string;
1655
+ /** Selector specifying which fields to include in a partial response. */
1656
+ fields?: string;
1657
+ /** 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. */
1658
+ key?: string;
1659
+ /** ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. */
1660
+ locale?: string;
1661
+ /** OAuth 2.0 token for the current user. */
1662
+ oauth_token?: string;
1663
+ /** Returns response with indentations and line breaks. */
1664
+ prettyPrint?: boolean;
1665
+ /** 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. */
1666
+ quotaUser?: string;
1667
+ /** String to identify the originator of this request. */
1668
+ source?: string;
1669
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1670
+ upload_protocol?: string;
1671
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1672
+ uploadType?: string;
1673
+ /** The volume(s) to release restrictions for. */
1674
+ volumeIds: string | string[];
1675
+ }): Request<DownloadAccesses>;
1676
+ /** Request concurrent and download access restrictions. */
1677
+ requestAccess(request?: {
1678
+ /** V1 error format. */
1679
+ "$.xgafv"?: string;
1680
+ /** OAuth access token. */
1681
+ access_token?: string;
1682
+ /** Data format for response. */
1683
+ alt?: string;
1684
+ /** JSONP */
1685
+ callback?: string;
1686
+ /** The device/version ID from which to request the restrictions. */
1687
+ cpksver: string;
1688
+ /** Selector specifying which fields to include in a partial response. */
1689
+ fields?: string;
1690
+ /** 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. */
1691
+ key?: string;
1692
+ /** The type of access license to request. If not specified, the default is BOTH. */
1693
+ licenseTypes?: string;
1694
+ /** ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. */
1695
+ locale?: string;
1696
+ /** The client nonce value. */
1697
+ nonce: string;
1698
+ /** OAuth 2.0 token for the current user. */
1699
+ oauth_token?: string;
1700
+ /** Returns response with indentations and line breaks. */
1701
+ prettyPrint?: boolean;
1702
+ /** 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. */
1703
+ quotaUser?: string;
1704
+ /** String to identify the originator of this request. */
1705
+ source: string;
1706
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1707
+ upload_protocol?: string;
1708
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1709
+ uploadType?: string;
1710
+ /** The volume to request concurrent/download restrictions for. */
1711
+ volumeId: string;
1712
+ }): Request<RequestAccessData>;
1713
+ /** Request downloaded content access for specified volumes on the My eBooks shelf. */
1714
+ syncVolumeLicenses(request?: {
1715
+ /** V1 error format. */
1716
+ "$.xgafv"?: string;
1717
+ /** OAuth access token. */
1718
+ access_token?: string;
1719
+ /** Data format for response. */
1720
+ alt?: string;
1721
+ /** JSONP */
1722
+ callback?: string;
1723
+ /** The device/version ID from which to release the restriction. */
1724
+ cpksver: string;
1725
+ /** List of features supported by the client, i.e., 'RENTALS' */
1726
+ features?: string | string[];
1727
+ /** Selector specifying which fields to include in a partial response. */
1728
+ fields?: string;
1729
+ /** Set to true to include non-comics series. Defaults to false. */
1730
+ includeNonComicsSeries?: boolean;
1731
+ /** 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. */
1732
+ key?: string;
1733
+ /** ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. */
1734
+ locale?: string;
1735
+ /** The client nonce value. */
1736
+ nonce: string;
1737
+ /** OAuth 2.0 token for the current user. */
1738
+ oauth_token?: string;
1739
+ /** Returns response with indentations and line breaks. */
1740
+ prettyPrint?: boolean;
1741
+ /** 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. */
1742
+ quotaUser?: string;
1743
+ /** Set to true to show pre-ordered books. Defaults to false. */
1744
+ showPreorders?: boolean;
1745
+ /** String to identify the originator of this request. */
1746
+ source: string;
1747
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1748
+ upload_protocol?: string;
1749
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1750
+ uploadType?: string;
1751
+ /** The volume(s) to request download restrictions for. */
1752
+ volumeIds?: string | string[];
1753
+ }): Request<Volumes>;
1754
+ /** Sets the settings for the user. If a sub-object is specified, it will overwrite the existing sub-object stored in the server. Unspecified sub-objects will retain the existing value. */
1755
+ updateUserSettings(request: {
1756
+ /** V1 error format. */
1757
+ "$.xgafv"?: string;
1758
+ /** OAuth access token. */
1759
+ access_token?: string;
1760
+ /** Data format for response. */
1761
+ alt?: string;
1762
+ /** JSONP */
1763
+ callback?: string;
1764
+ /** Selector specifying which fields to include in a partial response. */
1765
+ fields?: string;
1766
+ /** 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. */
1767
+ key?: string;
1768
+ /** OAuth 2.0 token for the current user. */
1769
+ oauth_token?: string;
1770
+ /** Returns response with indentations and line breaks. */
1771
+ prettyPrint?: boolean;
1772
+ /** 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. */
1773
+ quotaUser?: string;
1774
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1775
+ upload_protocol?: string;
1776
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1777
+ uploadType?: string;
1778
+ /** Request body */
1779
+ resource: Usersettings;
1780
+ }): Request<Usersettings>;
1781
+ updateUserSettings(request: {
1782
+ /** V1 error format. */
1783
+ "$.xgafv"?: string;
1784
+ /** OAuth access token. */
1785
+ access_token?: string;
1786
+ /** Data format for response. */
1787
+ alt?: string;
1788
+ /** JSONP */
1789
+ callback?: string;
1790
+ /** Selector specifying which fields to include in a partial response. */
1791
+ fields?: string;
1792
+ /** 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. */
1793
+ key?: string;
1794
+ /** OAuth 2.0 token for the current user. */
1795
+ oauth_token?: string;
1796
+ /** Returns response with indentations and line breaks. */
1797
+ prettyPrint?: boolean;
1798
+ /** 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. */
1799
+ quotaUser?: string;
1800
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1801
+ upload_protocol?: string;
1802
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1803
+ uploadType?: string;
1804
+ },
1805
+ body: Usersettings): Request<Usersettings>;
1806
+ }
1807
+ interface AnnotationsResource {
1808
+ /** Deletes an annotation. */
1809
+ delete(request?: {
1810
+ /** V1 error format. */
1811
+ "$.xgafv"?: string;
1812
+ /** OAuth access token. */
1813
+ access_token?: string;
1814
+ /** Data format for response. */
1815
+ alt?: string;
1816
+ /** The ID for the annotation to delete. */
1817
+ annotationId: string;
1818
+ /** JSONP */
1819
+ callback?: string;
1820
+ /** Selector specifying which fields to include in a partial response. */
1821
+ fields?: string;
1822
+ /** 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. */
1823
+ key?: string;
1824
+ /** OAuth 2.0 token for the current user. */
1825
+ oauth_token?: string;
1826
+ /** Returns response with indentations and line breaks. */
1827
+ prettyPrint?: boolean;
1828
+ /** 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. */
1829
+ quotaUser?: string;
1830
+ /** String to identify the originator of this request. */
1831
+ source?: string;
1832
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1833
+ upload_protocol?: string;
1834
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1835
+ uploadType?: string;
1836
+ }): Request<{}>;
1837
+ /** Inserts a new annotation. */
1838
+ insert(request: {
1839
+ /** V1 error format. */
1840
+ "$.xgafv"?: string;
1841
+ /** OAuth access token. */
1842
+ access_token?: string;
1843
+ /** Data format for response. */
1844
+ alt?: string;
1845
+ /** The ID for the annotation to insert. */
1846
+ annotationId?: string;
1847
+ /** JSONP */
1848
+ callback?: string;
1849
+ /** ISO-3166-1 code to override the IP-based location. */
1850
+ country?: string;
1851
+ /** Selector specifying which fields to include in a partial response. */
1852
+ fields?: string;
1853
+ /** 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. */
1854
+ key?: string;
1855
+ /** OAuth 2.0 token for the current user. */
1856
+ oauth_token?: string;
1857
+ /** Returns response with indentations and line breaks. */
1858
+ prettyPrint?: boolean;
1859
+ /** 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. */
1860
+ quotaUser?: string;
1861
+ /** Requests that only the summary of the specified layer be provided in the response. */
1862
+ showOnlySummaryInResponse?: boolean;
1863
+ /** String to identify the originator of this request. */
1864
+ source?: string;
1865
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1866
+ upload_protocol?: string;
1867
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1868
+ uploadType?: string;
1869
+ /** Request body */
1870
+ resource: Annotation;
1871
+ }): Request<Annotation>;
1872
+ insert(request: {
1873
+ /** V1 error format. */
1874
+ "$.xgafv"?: string;
1875
+ /** OAuth access token. */
1876
+ access_token?: string;
1877
+ /** Data format for response. */
1878
+ alt?: string;
1879
+ /** The ID for the annotation to insert. */
1880
+ annotationId?: string;
1881
+ /** JSONP */
1882
+ callback?: string;
1883
+ /** ISO-3166-1 code to override the IP-based location. */
1884
+ country?: string;
1885
+ /** Selector specifying which fields to include in a partial response. */
1886
+ fields?: string;
1887
+ /** 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. */
1888
+ key?: string;
1889
+ /** OAuth 2.0 token for the current user. */
1890
+ oauth_token?: string;
1891
+ /** Returns response with indentations and line breaks. */
1892
+ prettyPrint?: boolean;
1893
+ /** 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. */
1894
+ quotaUser?: string;
1895
+ /** Requests that only the summary of the specified layer be provided in the response. */
1896
+ showOnlySummaryInResponse?: boolean;
1897
+ /** String to identify the originator of this request. */
1898
+ source?: string;
1899
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1900
+ upload_protocol?: string;
1901
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1902
+ uploadType?: string;
1903
+ },
1904
+ body: Annotation): Request<Annotation>;
1905
+ /** Retrieves a list of annotations, possibly filtered. */
1906
+ list(request?: {
1907
+ /** V1 error format. */
1908
+ "$.xgafv"?: string;
1909
+ /** OAuth access token. */
1910
+ access_token?: string;
1911
+ /** Data format for response. */
1912
+ alt?: string;
1913
+ /** JSONP */
1914
+ callback?: string;
1915
+ /** The content version for the requested volume. */
1916
+ contentVersion?: string;
1917
+ /** Selector specifying which fields to include in a partial response. */
1918
+ fields?: string;
1919
+ /** 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. */
1920
+ key?: string;
1921
+ /** The layer ID to limit annotation by. */
1922
+ layerId?: string;
1923
+ /** The layer ID(s) to limit annotation by. */
1924
+ layerIds?: string | string[];
1925
+ /** Maximum number of results to return */
1926
+ maxResults?: number;
1927
+ /** OAuth 2.0 token for the current user. */
1928
+ oauth_token?: string;
1929
+ /** The value of the nextToken from the previous page. */
1930
+ pageToken?: string;
1931
+ /** Returns response with indentations and line breaks. */
1932
+ prettyPrint?: boolean;
1933
+ /** 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. */
1934
+ quotaUser?: string;
1935
+ /** Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false. */
1936
+ showDeleted?: boolean;
1937
+ /** String to identify the originator of this request. */
1938
+ source?: string;
1939
+ /** RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). */
1940
+ updatedMax?: string;
1941
+ /** RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). */
1942
+ updatedMin?: string;
1943
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1944
+ upload_protocol?: string;
1945
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1946
+ uploadType?: string;
1947
+ /** The volume to restrict annotations to. */
1948
+ volumeId?: string;
1949
+ }): Request<Annotations>;
1950
+ /** Gets the summary of specified layers. */
1951
+ summary(request?: {
1952
+ /** V1 error format. */
1953
+ "$.xgafv"?: string;
1954
+ /** OAuth access token. */
1955
+ access_token?: string;
1956
+ /** Data format for response. */
1957
+ alt?: string;
1958
+ /** JSONP */
1959
+ callback?: string;
1960
+ /** Selector specifying which fields to include in a partial response. */
1961
+ fields?: string;
1962
+ /** 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. */
1963
+ key?: string;
1964
+ /** Array of layer IDs to get the summary for. */
1965
+ layerIds: string | string[];
1966
+ /** OAuth 2.0 token for the current user. */
1967
+ oauth_token?: string;
1968
+ /** Returns response with indentations and line breaks. */
1969
+ prettyPrint?: boolean;
1970
+ /** 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. */
1971
+ quotaUser?: string;
1972
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1973
+ upload_protocol?: string;
1974
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1975
+ uploadType?: string;
1976
+ /** Volume id to get the summary for. */
1977
+ volumeId: string;
1978
+ }): Request<AnnotationsSummary>;
1979
+ /** Updates an existing annotation. */
1980
+ update(request: {
1981
+ /** V1 error format. */
1982
+ "$.xgafv"?: string;
1983
+ /** OAuth access token. */
1984
+ access_token?: string;
1985
+ /** Data format for response. */
1986
+ alt?: string;
1987
+ /** The ID for the annotation to update. */
1988
+ annotationId: string;
1989
+ /** JSONP */
1990
+ callback?: string;
1991
+ /** Selector specifying which fields to include in a partial response. */
1992
+ fields?: string;
1993
+ /** 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. */
1994
+ key?: string;
1995
+ /** OAuth 2.0 token for the current user. */
1996
+ oauth_token?: string;
1997
+ /** Returns response with indentations and line breaks. */
1998
+ prettyPrint?: boolean;
1999
+ /** 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. */
2000
+ quotaUser?: string;
2001
+ /** String to identify the originator of this request. */
2002
+ source?: string;
2003
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2004
+ upload_protocol?: string;
2005
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2006
+ uploadType?: string;
2007
+ /** Request body */
2008
+ resource: Annotation;
2009
+ }): Request<Annotation>;
2010
+ update(request: {
2011
+ /** V1 error format. */
2012
+ "$.xgafv"?: string;
2013
+ /** OAuth access token. */
2014
+ access_token?: string;
2015
+ /** Data format for response. */
2016
+ alt?: string;
2017
+ /** The ID for the annotation to update. */
2018
+ annotationId: string;
2019
+ /** JSONP */
2020
+ callback?: string;
2021
+ /** Selector specifying which fields to include in a partial response. */
2022
+ fields?: string;
2023
+ /** 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. */
2024
+ key?: string;
2025
+ /** OAuth 2.0 token for the current user. */
2026
+ oauth_token?: string;
2027
+ /** Returns response with indentations and line breaks. */
2028
+ prettyPrint?: boolean;
2029
+ /** 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. */
2030
+ quotaUser?: string;
2031
+ /** String to identify the originator of this request. */
2032
+ source?: string;
2033
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2034
+ upload_protocol?: string;
2035
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2036
+ uploadType?: string;
2037
+ },
2038
+ body: Annotation): Request<Annotation>;
2039
+ }
2040
+ interface VolumesResource {
2041
+ /** Gets volume information for volumes on a bookshelf. */
2042
+ list(request?: {
2043
+ /** V1 error format. */
2044
+ "$.xgafv"?: string;
2045
+ /** OAuth access token. */
2046
+ access_token?: string;
2047
+ /** Data format for response. */
2048
+ alt?: string;
2049
+ /** JSONP */
2050
+ callback?: string;
2051
+ /** ISO-3166-1 code to override the IP-based location. */
2052
+ country?: string;
2053
+ /** Selector specifying which fields to include in a partial response. */
2054
+ fields?: string;
2055
+ /** 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. */
2056
+ key?: string;
2057
+ /** Maximum number of results to return */
2058
+ maxResults?: number;
2059
+ /** OAuth 2.0 token for the current user. */
2060
+ oauth_token?: string;
2061
+ /** Returns response with indentations and line breaks. */
2062
+ prettyPrint?: boolean;
2063
+ /** Restrict information returned to a set of selected fields. */
2064
+ projection?: string;
2065
+ /** Full-text search query string in this bookshelf. */
2066
+ q?: string;
2067
+ /** 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. */
2068
+ quotaUser?: string;
2069
+ /** The bookshelf ID or name retrieve volumes for. */
2070
+ shelf: string;
2071
+ /** Set to true to show pre-ordered books. Defaults to false. */
2072
+ showPreorders?: boolean;
2073
+ /** String to identify the originator of this request. */
2074
+ source?: string;
2075
+ /** Index of the first element to return (starts at 0) */
2076
+ startIndex?: number;
2077
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2078
+ upload_protocol?: string;
2079
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2080
+ uploadType?: string;
2081
+ }): Request<Volumes>;
2082
+ }
2083
+ interface BookshelvesResource {
2084
+ /** Adds a volume to a bookshelf. */
2085
+ addVolume(request?: {
2086
+ /** V1 error format. */
2087
+ "$.xgafv"?: string;
2088
+ /** OAuth access token. */
2089
+ access_token?: string;
2090
+ /** Data format for response. */
2091
+ alt?: string;
2092
+ /** JSONP */
2093
+ callback?: string;
2094
+ /** Selector specifying which fields to include in a partial response. */
2095
+ fields?: string;
2096
+ /** 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. */
2097
+ key?: string;
2098
+ /** OAuth 2.0 token for the current user. */
2099
+ oauth_token?: string;
2100
+ /** Returns response with indentations and line breaks. */
2101
+ prettyPrint?: boolean;
2102
+ /** 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. */
2103
+ quotaUser?: string;
2104
+ /** The reason for which the book is added to the library. */
2105
+ reason?: string;
2106
+ /** ID of bookshelf to which to add a volume. */
2107
+ shelf: string;
2108
+ /** String to identify the originator of this request. */
2109
+ source?: string;
2110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2111
+ upload_protocol?: string;
2112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2113
+ uploadType?: string;
2114
+ /** ID of volume to add. */
2115
+ volumeId: string;
2116
+ }): Request<{}>;
2117
+ /** Clears all volumes from a bookshelf. */
2118
+ clearVolumes(request?: {
2119
+ /** V1 error format. */
2120
+ "$.xgafv"?: string;
2121
+ /** OAuth access token. */
2122
+ access_token?: string;
2123
+ /** Data format for response. */
2124
+ alt?: string;
2125
+ /** JSONP */
2126
+ callback?: string;
2127
+ /** Selector specifying which fields to include in a partial response. */
2128
+ fields?: string;
2129
+ /** 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. */
2130
+ key?: string;
2131
+ /** OAuth 2.0 token for the current user. */
2132
+ oauth_token?: string;
2133
+ /** Returns response with indentations and line breaks. */
2134
+ prettyPrint?: boolean;
2135
+ /** 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. */
2136
+ quotaUser?: string;
2137
+ /** ID of bookshelf from which to remove a volume. */
2138
+ shelf: string;
2139
+ /** String to identify the originator of this request. */
2140
+ source?: string;
2141
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2142
+ upload_protocol?: string;
2143
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2144
+ uploadType?: string;
2145
+ }): Request<{}>;
2146
+ /** Retrieves metadata for a specific bookshelf belonging to the authenticated user. */
2147
+ get(request?: {
2148
+ /** V1 error format. */
2149
+ "$.xgafv"?: string;
2150
+ /** OAuth access token. */
2151
+ access_token?: string;
2152
+ /** Data format for response. */
2153
+ alt?: string;
2154
+ /** JSONP */
2155
+ callback?: string;
2156
+ /** Selector specifying which fields to include in a partial response. */
2157
+ fields?: string;
2158
+ /** 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. */
2159
+ key?: string;
2160
+ /** OAuth 2.0 token for the current user. */
2161
+ oauth_token?: string;
2162
+ /** Returns response with indentations and line breaks. */
2163
+ prettyPrint?: boolean;
2164
+ /** 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. */
2165
+ quotaUser?: string;
2166
+ /** ID of bookshelf to retrieve. */
2167
+ shelf: string;
2168
+ /** String to identify the originator of this request. */
2169
+ source?: string;
2170
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2171
+ upload_protocol?: string;
2172
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2173
+ uploadType?: string;
2174
+ }): Request<Bookshelf>;
2175
+ /** Retrieves a list of bookshelves belonging to the authenticated user. */
2176
+ list(request?: {
2177
+ /** V1 error format. */
2178
+ "$.xgafv"?: string;
2179
+ /** OAuth access token. */
2180
+ access_token?: string;
2181
+ /** Data format for response. */
2182
+ alt?: string;
2183
+ /** JSONP */
2184
+ callback?: string;
2185
+ /** Selector specifying which fields to include in a partial response. */
2186
+ fields?: string;
2187
+ /** 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. */
2188
+ key?: string;
2189
+ /** OAuth 2.0 token for the current user. */
2190
+ oauth_token?: string;
2191
+ /** Returns response with indentations and line breaks. */
2192
+ prettyPrint?: boolean;
2193
+ /** 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. */
2194
+ quotaUser?: string;
2195
+ /** String to identify the originator of this request. */
2196
+ source?: string;
2197
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2198
+ upload_protocol?: string;
2199
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2200
+ uploadType?: string;
2201
+ }): Request<Bookshelves>;
2202
+ /** Moves a volume within a bookshelf. */
2203
+ moveVolume(request?: {
2204
+ /** V1 error format. */
2205
+ "$.xgafv"?: string;
2206
+ /** OAuth access token. */
2207
+ access_token?: string;
2208
+ /** Data format for response. */
2209
+ alt?: string;
2210
+ /** JSONP */
2211
+ callback?: string;
2212
+ /** Selector specifying which fields to include in a partial response. */
2213
+ fields?: string;
2214
+ /** 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. */
2215
+ key?: string;
2216
+ /** OAuth 2.0 token for the current user. */
2217
+ oauth_token?: string;
2218
+ /** Returns response with indentations and line breaks. */
2219
+ prettyPrint?: boolean;
2220
+ /** 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. */
2221
+ quotaUser?: string;
2222
+ /** ID of bookshelf with the volume. */
2223
+ shelf: string;
2224
+ /** String to identify the originator of this request. */
2225
+ source?: string;
2226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2227
+ upload_protocol?: string;
2228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2229
+ uploadType?: string;
2230
+ /** ID of volume to move. */
2231
+ volumeId: string;
2232
+ /** Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.) */
2233
+ volumePosition: number;
2234
+ }): Request<{}>;
2235
+ /** Removes a volume from a bookshelf. */
2236
+ removeVolume(request?: {
2237
+ /** V1 error format. */
2238
+ "$.xgafv"?: string;
2239
+ /** OAuth access token. */
2240
+ access_token?: string;
2241
+ /** Data format for response. */
2242
+ alt?: string;
2243
+ /** JSONP */
2244
+ callback?: string;
2245
+ /** Selector specifying which fields to include in a partial response. */
2246
+ fields?: string;
2247
+ /** 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. */
2248
+ key?: string;
2249
+ /** OAuth 2.0 token for the current user. */
2250
+ oauth_token?: string;
2251
+ /** Returns response with indentations and line breaks. */
2252
+ prettyPrint?: boolean;
2253
+ /** 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. */
2254
+ quotaUser?: string;
2255
+ /** The reason for which the book is removed from the library. */
2256
+ reason?: string;
2257
+ /** ID of bookshelf from which to remove a volume. */
2258
+ shelf: string;
2259
+ /** String to identify the originator of this request. */
2260
+ source?: string;
2261
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2262
+ upload_protocol?: string;
2263
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2264
+ uploadType?: string;
2265
+ /** ID of volume to remove. */
2266
+ volumeId: string;
2267
+ }): Request<{}>;
2268
+ volumes: VolumesResource;
2269
+ }
2270
+ interface ReadingpositionsResource {
2271
+ /** Retrieves my reading position information for a volume. */
2272
+ get(request?: {
2273
+ /** V1 error format. */
2274
+ "$.xgafv"?: string;
2275
+ /** OAuth access token. */
2276
+ access_token?: string;
2277
+ /** Data format for response. */
2278
+ alt?: string;
2279
+ /** JSONP */
2280
+ callback?: string;
2281
+ /** Volume content version for which this reading position is requested. */
2282
+ contentVersion?: string;
2283
+ /** Selector specifying which fields to include in a partial response. */
2284
+ fields?: string;
2285
+ /** 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. */
2286
+ key?: string;
2287
+ /** OAuth 2.0 token for the current user. */
2288
+ oauth_token?: string;
2289
+ /** Returns response with indentations and line breaks. */
2290
+ prettyPrint?: boolean;
2291
+ /** 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. */
2292
+ quotaUser?: string;
2293
+ /** String to identify the originator of this request. */
2294
+ source?: string;
2295
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2296
+ upload_protocol?: string;
2297
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2298
+ uploadType?: string;
2299
+ /** ID of volume for which to retrieve a reading position. */
2300
+ volumeId: string;
2301
+ }): Request<ReadingPosition>;
2302
+ /** Sets my reading position information for a volume. */
2303
+ setPosition(request?: {
2304
+ /** V1 error format. */
2305
+ "$.xgafv"?: string;
2306
+ /** OAuth access token. */
2307
+ access_token?: string;
2308
+ /** Action that caused this reading position to be set. */
2309
+ action?: string;
2310
+ /** Data format for response. */
2311
+ alt?: string;
2312
+ /** JSONP */
2313
+ callback?: string;
2314
+ /** Volume content version for which this reading position applies. */
2315
+ contentVersion?: string;
2316
+ /** Random persistent device cookie optional on set position. */
2317
+ deviceCookie?: string;
2318
+ /** Selector specifying which fields to include in a partial response. */
2319
+ fields?: string;
2320
+ /** 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. */
2321
+ key?: string;
2322
+ /** OAuth 2.0 token for the current user. */
2323
+ oauth_token?: string;
2324
+ /** Position string for the new volume reading position. */
2325
+ position: string;
2326
+ /** Returns response with indentations and line breaks. */
2327
+ prettyPrint?: boolean;
2328
+ /** 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. */
2329
+ quotaUser?: string;
2330
+ /** String to identify the originator of this request. */
2331
+ source?: string;
2332
+ /** RFC 3339 UTC format timestamp associated with this reading position. */
2333
+ timestamp: string;
2334
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2335
+ upload_protocol?: string;
2336
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2337
+ uploadType?: string;
2338
+ /** ID of volume for which to update the reading position. */
2339
+ volumeId: string;
2340
+ }): Request<{}>;
2341
+ }
2342
+ interface MylibraryResource {
2343
+ annotations: AnnotationsResource;
2344
+ bookshelves: BookshelvesResource;
2345
+ readingpositions: ReadingpositionsResource;
2346
+ }
2347
+ interface NotificationResource {
2348
+ /** Returns notification details for a given notification id. */
2349
+ get(request?: {
2350
+ /** V1 error format. */
2351
+ "$.xgafv"?: string;
2352
+ /** OAuth access token. */
2353
+ access_token?: string;
2354
+ /** Data format for response. */
2355
+ alt?: string;
2356
+ /** JSONP */
2357
+ callback?: string;
2358
+ /** Selector specifying which fields to include in a partial response. */
2359
+ fields?: string;
2360
+ /** 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. */
2361
+ key?: string;
2362
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating notification title and body. */
2363
+ locale?: string;
2364
+ /** String to identify the notification. */
2365
+ notification_id: string;
2366
+ /** OAuth 2.0 token for the current user. */
2367
+ oauth_token?: string;
2368
+ /** Returns response with indentations and line breaks. */
2369
+ prettyPrint?: boolean;
2370
+ /** 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. */
2371
+ quotaUser?: string;
2372
+ /** String to identify the originator of this request. */
2373
+ source?: string;
2374
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2375
+ upload_protocol?: string;
2376
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2377
+ uploadType?: string;
2378
+ }): Request<Notification>;
2379
+ }
2380
+ interface OnboardingResource {
2381
+ /** List categories for onboarding experience. */
2382
+ listCategories(request?: {
2383
+ /** V1 error format. */
2384
+ "$.xgafv"?: string;
2385
+ /** OAuth access token. */
2386
+ access_token?: string;
2387
+ /** Data format for response. */
2388
+ alt?: string;
2389
+ /** JSONP */
2390
+ callback?: string;
2391
+ /** Selector specifying which fields to include in a partial response. */
2392
+ fields?: string;
2393
+ /** 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. */
2394
+ key?: string;
2395
+ /** ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset. */
2396
+ locale?: string;
2397
+ /** OAuth 2.0 token for the current user. */
2398
+ oauth_token?: string;
2399
+ /** Returns response with indentations and line breaks. */
2400
+ prettyPrint?: boolean;
2401
+ /** 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. */
2402
+ quotaUser?: string;
2403
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2404
+ upload_protocol?: string;
2405
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2406
+ uploadType?: string;
2407
+ }): Request<Category>;
2408
+ /** List available volumes under categories for onboarding experience. */
2409
+ listCategoryVolumes(request?: {
2410
+ /** V1 error format. */
2411
+ "$.xgafv"?: string;
2412
+ /** OAuth access token. */
2413
+ access_token?: string;
2414
+ /** Data format for response. */
2415
+ alt?: string;
2416
+ /** JSONP */
2417
+ callback?: string;
2418
+ /** List of category ids requested. */
2419
+ categoryId?: string | string[];
2420
+ /** Selector specifying which fields to include in a partial response. */
2421
+ fields?: string;
2422
+ /** 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. */
2423
+ key?: string;
2424
+ /** ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset. */
2425
+ locale?: string;
2426
+ /** The maximum allowed maturity rating of returned volumes. Books with a higher maturity rating are filtered out. */
2427
+ maxAllowedMaturityRating?: string;
2428
+ /** OAuth 2.0 token for the current user. */
2429
+ oauth_token?: string;
2430
+ /** Number of maximum results per page to be included in the response. */
2431
+ pageSize?: number;
2432
+ /** The value of the nextToken from the previous page. */
2433
+ pageToken?: string;
2434
+ /** Returns response with indentations and line breaks. */
2435
+ prettyPrint?: boolean;
2436
+ /** 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. */
2437
+ quotaUser?: string;
2438
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2439
+ upload_protocol?: string;
2440
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2441
+ uploadType?: string;
2442
+ }): Request<Volume2>;
2443
+ }
2444
+ interface PersonalizedstreamResource {
2445
+ /** Returns a stream of personalized book clusters */
2446
+ get(request?: {
2447
+ /** V1 error format. */
2448
+ "$.xgafv"?: string;
2449
+ /** OAuth access token. */
2450
+ access_token?: string;
2451
+ /** Data format for response. */
2452
+ alt?: string;
2453
+ /** JSONP */
2454
+ callback?: string;
2455
+ /** Selector specifying which fields to include in a partial response. */
2456
+ fields?: string;
2457
+ /** 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. */
2458
+ key?: string;
2459
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations. */
2460
+ locale?: string;
2461
+ /** The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out. */
2462
+ maxAllowedMaturityRating?: string;
2463
+ /** OAuth 2.0 token for the current user. */
2464
+ oauth_token?: string;
2465
+ /** Returns response with indentations and line breaks. */
2466
+ prettyPrint?: boolean;
2467
+ /** 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. */
2468
+ quotaUser?: string;
2469
+ /** String to identify the originator of this request. */
2470
+ source?: string;
2471
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2472
+ upload_protocol?: string;
2473
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2474
+ uploadType?: string;
2475
+ }): Request<Discoveryclusters>;
2476
+ }
2477
+ interface PromoofferResource {
2478
+ /** Accepts the promo offer. */
2479
+ accept(request?: {
2480
+ /** V1 error format. */
2481
+ "$.xgafv"?: string;
2482
+ /** OAuth access token. */
2483
+ access_token?: string;
2484
+ /** Data format for response. */
2485
+ alt?: string;
2486
+ /** device android_id */
2487
+ androidId?: string;
2488
+ /** JSONP */
2489
+ callback?: string;
2490
+ /** device device */
2491
+ device?: string;
2492
+ /** Selector specifying which fields to include in a partial response. */
2493
+ fields?: string;
2494
+ /** 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. */
2495
+ key?: string;
2496
+ /** device manufacturer */
2497
+ manufacturer?: string;
2498
+ /** device model */
2499
+ model?: string;
2500
+ /** OAuth 2.0 token for the current user. */
2501
+ oauth_token?: string;
2502
+ offerId?: string;
2503
+ /** Returns response with indentations and line breaks. */
2504
+ prettyPrint?: boolean;
2505
+ /** device product */
2506
+ product?: string;
2507
+ /** 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. */
2508
+ quotaUser?: string;
2509
+ /** device serial */
2510
+ serial?: string;
2511
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2512
+ upload_protocol?: string;
2513
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2514
+ uploadType?: string;
2515
+ /** Volume id to exercise the offer */
2516
+ volumeId?: string;
2517
+ }): Request<{}>;
2518
+ /** Marks the promo offer as dismissed. */
2519
+ dismiss(request?: {
2520
+ /** V1 error format. */
2521
+ "$.xgafv"?: string;
2522
+ /** OAuth access token. */
2523
+ access_token?: string;
2524
+ /** Data format for response. */
2525
+ alt?: string;
2526
+ /** device android_id */
2527
+ androidId?: string;
2528
+ /** JSONP */
2529
+ callback?: string;
2530
+ /** device device */
2531
+ device?: string;
2532
+ /** Selector specifying which fields to include in a partial response. */
2533
+ fields?: string;
2534
+ /** 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. */
2535
+ key?: string;
2536
+ /** device manufacturer */
2537
+ manufacturer?: string;
2538
+ /** device model */
2539
+ model?: string;
2540
+ /** OAuth 2.0 token for the current user. */
2541
+ oauth_token?: string;
2542
+ /** Offer to dimiss */
2543
+ offerId?: string;
2544
+ /** Returns response with indentations and line breaks. */
2545
+ prettyPrint?: boolean;
2546
+ /** device product */
2547
+ product?: string;
2548
+ /** 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. */
2549
+ quotaUser?: string;
2550
+ /** device serial */
2551
+ serial?: string;
2552
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2553
+ upload_protocol?: string;
2554
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2555
+ uploadType?: string;
2556
+ }): Request<{}>;
2557
+ /** Returns a list of promo offers available to the user */
2558
+ get(request?: {
2559
+ /** V1 error format. */
2560
+ "$.xgafv"?: string;
2561
+ /** OAuth access token. */
2562
+ access_token?: string;
2563
+ /** Data format for response. */
2564
+ alt?: string;
2565
+ /** device android_id */
2566
+ androidId?: string;
2567
+ /** JSONP */
2568
+ callback?: string;
2569
+ /** device device */
2570
+ device?: string;
2571
+ /** Selector specifying which fields to include in a partial response. */
2572
+ fields?: string;
2573
+ /** 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. */
2574
+ key?: string;
2575
+ /** device manufacturer */
2576
+ manufacturer?: string;
2577
+ /** device model */
2578
+ model?: string;
2579
+ /** OAuth 2.0 token for the current user. */
2580
+ oauth_token?: string;
2581
+ /** Returns response with indentations and line breaks. */
2582
+ prettyPrint?: boolean;
2583
+ /** device product */
2584
+ product?: string;
2585
+ /** 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. */
2586
+ quotaUser?: string;
2587
+ /** device serial */
2588
+ serial?: string;
2589
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2590
+ upload_protocol?: string;
2591
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2592
+ uploadType?: string;
2593
+ }): Request<Offers>;
2594
+ }
2595
+ interface MembershipResource {
2596
+ /** Returns Series membership data given the series id. */
2597
+ get(request?: {
2598
+ /** V1 error format. */
2599
+ "$.xgafv"?: string;
2600
+ /** OAuth access token. */
2601
+ access_token?: string;
2602
+ /** Data format for response. */
2603
+ alt?: string;
2604
+ /** JSONP */
2605
+ callback?: string;
2606
+ /** Selector specifying which fields to include in a partial response. */
2607
+ fields?: string;
2608
+ /** 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. */
2609
+ key?: string;
2610
+ /** OAuth 2.0 token for the current user. */
2611
+ oauth_token?: string;
2612
+ /** Number of maximum results per page to be included in the response. */
2613
+ page_size?: number;
2614
+ /** The value of the nextToken from the previous page. */
2615
+ page_token?: string;
2616
+ /** Returns response with indentations and line breaks. */
2617
+ prettyPrint?: boolean;
2618
+ /** 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. */
2619
+ quotaUser?: string;
2620
+ /** String that identifies the series */
2621
+ series_id: string;
2622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2623
+ upload_protocol?: string;
2624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2625
+ uploadType?: string;
2626
+ }): Request<Seriesmembership>;
2627
+ }
2628
+ interface SeriesResource {
2629
+ /** Returns Series metadata for the given series ids. */
2630
+ get(request?: {
2631
+ /** V1 error format. */
2632
+ "$.xgafv"?: string;
2633
+ /** OAuth access token. */
2634
+ access_token?: string;
2635
+ /** Data format for response. */
2636
+ alt?: string;
2637
+ /** JSONP */
2638
+ callback?: string;
2639
+ /** Selector specifying which fields to include in a partial response. */
2640
+ fields?: string;
2641
+ /** 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. */
2642
+ key?: string;
2643
+ /** OAuth 2.0 token for the current user. */
2644
+ oauth_token?: string;
2645
+ /** Returns response with indentations and line breaks. */
2646
+ prettyPrint?: boolean;
2647
+ /** 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. */
2648
+ quotaUser?: string;
2649
+ /** String that identifies the series */
2650
+ series_id: string | string[];
2651
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2652
+ upload_protocol?: string;
2653
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2654
+ uploadType?: string;
2655
+ }): Request<Series>;
2656
+ membership: MembershipResource;
2657
+ }
2658
+ interface AssociatedResource {
2659
+ /** Return a list of associated books. */
2660
+ list(request?: {
2661
+ /** V1 error format. */
2662
+ "$.xgafv"?: string;
2663
+ /** OAuth access token. */
2664
+ access_token?: string;
2665
+ /** Data format for response. */
2666
+ alt?: string;
2667
+ /** Association type. */
2668
+ association?: string;
2669
+ /** JSONP */
2670
+ callback?: string;
2671
+ /** Selector specifying which fields to include in a partial response. */
2672
+ fields?: string;
2673
+ /** 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. */
2674
+ key?: string;
2675
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations. */
2676
+ locale?: string;
2677
+ /** The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out. */
2678
+ maxAllowedMaturityRating?: string;
2679
+ /** OAuth 2.0 token for the current user. */
2680
+ oauth_token?: string;
2681
+ /** Returns response with indentations and line breaks. */
2682
+ prettyPrint?: boolean;
2683
+ /** 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. */
2684
+ quotaUser?: string;
2685
+ /** String to identify the originator of this request. */
2686
+ source?: string;
2687
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2688
+ upload_protocol?: string;
2689
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2690
+ uploadType?: string;
2691
+ /** ID of the source volume. */
2692
+ volumeId: string;
2693
+ }): Request<Volumes>;
2694
+ }
2695
+ interface MybooksResource {
2696
+ /** Return a list of books in My Library. */
2697
+ list(request?: {
2698
+ /** V1 error format. */
2699
+ "$.xgafv"?: string;
2700
+ /** OAuth access token. */
2701
+ access_token?: string;
2702
+ /** How the book was acquired */
2703
+ acquireMethod?: string | string[];
2704
+ /** Data format for response. */
2705
+ alt?: string;
2706
+ /** JSONP */
2707
+ callback?: string;
2708
+ /** ISO-3166-1 code to override the IP-based location. */
2709
+ country?: string;
2710
+ /** Selector specifying which fields to include in a partial response. */
2711
+ fields?: string;
2712
+ /** 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. */
2713
+ key?: string;
2714
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations. */
2715
+ locale?: string;
2716
+ /** Maximum number of results to return. */
2717
+ maxResults?: number;
2718
+ /** OAuth 2.0 token for the current user. */
2719
+ oauth_token?: string;
2720
+ /** Returns response with indentations and line breaks. */
2721
+ prettyPrint?: boolean;
2722
+ /** The processing state of the user uploaded volumes to be returned. Applicable only if the UPLOADED is specified in the acquireMethod. */
2723
+ processingState?: string | string[];
2724
+ /** 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. */
2725
+ quotaUser?: string;
2726
+ /** String to identify the originator of this request. */
2727
+ source?: string;
2728
+ /** Index of the first result to return (starts at 0) */
2729
+ startIndex?: number;
2730
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2731
+ upload_protocol?: string;
2732
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2733
+ uploadType?: string;
2734
+ }): Request<Volumes>;
2735
+ }
2736
+ interface RecommendedResource {
2737
+ /** Return a list of recommended books for the current user. */
2738
+ list(request?: {
2739
+ /** V1 error format. */
2740
+ "$.xgafv"?: string;
2741
+ /** OAuth access token. */
2742
+ access_token?: string;
2743
+ /** Data format for response. */
2744
+ alt?: string;
2745
+ /** JSONP */
2746
+ callback?: string;
2747
+ /** Selector specifying which fields to include in a partial response. */
2748
+ fields?: string;
2749
+ /** 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. */
2750
+ key?: string;
2751
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations. */
2752
+ locale?: string;
2753
+ /** The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out. */
2754
+ maxAllowedMaturityRating?: string;
2755
+ /** OAuth 2.0 token for the current user. */
2756
+ oauth_token?: string;
2757
+ /** Returns response with indentations and line breaks. */
2758
+ prettyPrint?: boolean;
2759
+ /** 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. */
2760
+ quotaUser?: string;
2761
+ /** String to identify the originator of this request. */
2762
+ source?: string;
2763
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2764
+ upload_protocol?: string;
2765
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2766
+ uploadType?: string;
2767
+ }): Request<Volumes>;
2768
+ /** Rate a recommended book for the current user. */
2769
+ rate(request?: {
2770
+ /** V1 error format. */
2771
+ "$.xgafv"?: string;
2772
+ /** OAuth access token. */
2773
+ access_token?: string;
2774
+ /** Data format for response. */
2775
+ alt?: string;
2776
+ /** JSONP */
2777
+ callback?: string;
2778
+ /** Selector specifying which fields to include in a partial response. */
2779
+ fields?: string;
2780
+ /** 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. */
2781
+ key?: string;
2782
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations. */
2783
+ locale?: string;
2784
+ /** OAuth 2.0 token for the current user. */
2785
+ oauth_token?: string;
2786
+ /** Returns response with indentations and line breaks. */
2787
+ prettyPrint?: boolean;
2788
+ /** 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. */
2789
+ quotaUser?: string;
2790
+ /** Rating to be given to the volume. */
2791
+ rating: string;
2792
+ /** String to identify the originator of this request. */
2793
+ source?: string;
2794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2795
+ upload_protocol?: string;
2796
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2797
+ uploadType?: string;
2798
+ /** ID of the source volume. */
2799
+ volumeId: string;
2800
+ }): Request<BooksVolumesRecommendedRateResponse>;
2801
+ }
2802
+ interface UseruploadedResource {
2803
+ /** Return a list of books uploaded by the current user. */
2804
+ list(request?: {
2805
+ /** V1 error format. */
2806
+ "$.xgafv"?: string;
2807
+ /** OAuth access token. */
2808
+ access_token?: string;
2809
+ /** Data format for response. */
2810
+ alt?: string;
2811
+ /** JSONP */
2812
+ callback?: string;
2813
+ /** Selector specifying which fields to include in a partial response. */
2814
+ fields?: string;
2815
+ /** 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. */
2816
+ key?: string;
2817
+ /** ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations. */
2818
+ locale?: string;
2819
+ /** Maximum number of results to return. */
2820
+ maxResults?: number;
2821
+ /** OAuth 2.0 token for the current user. */
2822
+ oauth_token?: string;
2823
+ /** Returns response with indentations and line breaks. */
2824
+ prettyPrint?: boolean;
2825
+ /** The processing state of the user uploaded volumes to be returned. */
2826
+ processingState?: string | string[];
2827
+ /** 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. */
2828
+ quotaUser?: string;
2829
+ /** String to identify the originator of this request. */
2830
+ source?: string;
2831
+ /** Index of the first result to return (starts at 0) */
2832
+ startIndex?: number;
2833
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2834
+ upload_protocol?: string;
2835
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2836
+ uploadType?: string;
2837
+ /** The ids of the volumes to be returned. If not specified all that match the processingState are returned. */
2838
+ volumeId?: string | string[];
2839
+ }): Request<Volumes>;
2840
+ }
2841
+ interface VolumesResource {
2842
+ /** Gets volume information for a single volume. */
2843
+ get(request?: {
2844
+ /** V1 error format. */
2845
+ "$.xgafv"?: string;
2846
+ /** OAuth access token. */
2847
+ access_token?: string;
2848
+ /** Data format for response. */
2849
+ alt?: string;
2850
+ /** JSONP */
2851
+ callback?: string;
2852
+ /** ISO-3166-1 code to override the IP-based location. */
2853
+ country?: string;
2854
+ /** Selector specifying which fields to include in a partial response. */
2855
+ fields?: string;
2856
+ /** Set to true to include non-comics series. Defaults to false. */
2857
+ includeNonComicsSeries?: boolean;
2858
+ /** 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. */
2859
+ key?: string;
2860
+ /** OAuth 2.0 token for the current user. */
2861
+ oauth_token?: string;
2862
+ /** Brand results for partner ID. */
2863
+ partner?: string;
2864
+ /** Returns response with indentations and line breaks. */
2865
+ prettyPrint?: boolean;
2866
+ /** Restrict information returned to a set of selected fields. */
2867
+ projection?: string;
2868
+ /** 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. */
2869
+ quotaUser?: string;
2870
+ /** string to identify the originator of this request. */
2871
+ source?: string;
2872
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2873
+ upload_protocol?: string;
2874
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2875
+ uploadType?: string;
2876
+ user_library_consistent_read?: boolean;
2877
+ /** ID of volume to retrieve. */
2878
+ volumeId: string;
2879
+ }): Request<Volume>;
2880
+ /** Performs a book search. */
2881
+ list(request?: {
2882
+ /** V1 error format. */
2883
+ "$.xgafv"?: string;
2884
+ /** OAuth access token. */
2885
+ access_token?: string;
2886
+ /** Data format for response. */
2887
+ alt?: string;
2888
+ /** JSONP */
2889
+ callback?: string;
2890
+ /** Restrict to volumes by download availability. */
2891
+ download?: string;
2892
+ /** Selector specifying which fields to include in a partial response. */
2893
+ fields?: string;
2894
+ /** Filter search results. */
2895
+ filter?: string;
2896
+ /** 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. */
2897
+ key?: string;
2898
+ /** Restrict results to books with this language code. */
2899
+ langRestrict?: string;
2900
+ /** Restrict search to this user's library. */
2901
+ libraryRestrict?: string;
2902
+ /** The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out. */
2903
+ maxAllowedMaturityRating?: string;
2904
+ /** Maximum number of results to return. */
2905
+ maxResults?: number;
2906
+ /** OAuth 2.0 token for the current user. */
2907
+ oauth_token?: string;
2908
+ /** Sort search results. */
2909
+ orderBy?: string;
2910
+ /** Restrict and brand results for partner ID. */
2911
+ partner?: string;
2912
+ /** Returns response with indentations and line breaks. */
2913
+ prettyPrint?: boolean;
2914
+ /** Restrict to books or magazines. */
2915
+ printType?: string;
2916
+ /** Restrict information returned to a set of selected fields. */
2917
+ projection?: string;
2918
+ /** Full-text search query string. */
2919
+ q: string;
2920
+ /** 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. */
2921
+ quotaUser?: string;
2922
+ /** Set to true to show books available for preorder. Defaults to false. */
2923
+ showPreorders?: boolean;
2924
+ /** String to identify the originator of this request. */
2925
+ source?: string;
2926
+ /** Index of the first result to return (starts at 0) */
2927
+ startIndex?: number;
2928
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2929
+ upload_protocol?: string;
2930
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2931
+ uploadType?: string;
2932
+ }): Request<Volumes>;
2933
+ associated: AssociatedResource;
2934
+ mybooks: MybooksResource;
2935
+ recommended: RecommendedResource;
2936
+ useruploaded: UseruploadedResource;
2937
+ }
2938
+
2939
+ const bookshelves: BookshelvesResource;
2940
+
2941
+ const cloudloading: CloudloadingResource;
2942
+
2943
+ const dictionary: DictionaryResource;
2944
+
2945
+ const familysharing: FamilysharingResource;
2946
+
2947
+ const layers: LayersResource;
2948
+
2949
+ const myconfig: MyconfigResource;
2950
+
2951
+ const mylibrary: MylibraryResource;
2952
+
2953
+ const notification: NotificationResource;
2954
+
2955
+ const onboarding: OnboardingResource;
2956
+
2957
+ const personalizedstream: PersonalizedstreamResource;
2958
+
2959
+ const promooffer: PromoofferResource;
2960
+
2961
+ const series: SeriesResource;
2962
+
2963
+ const volumes: VolumesResource;
2964
+ }
2965
+ }