@maxim_mazurok/gapi.client.keep-v1 0.0.20231107 → 0.0.20231128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +402 -592
- package/package.json +6 -6
- package/readme.md +23 -20
- package/tests.ts +0 -153
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/index.d.ts
CHANGED
|
@@ -9,603 +9,413 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://keep.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231128
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/** Load Google Keep API v1 */
|
|
18
|
+
function load(
|
|
19
|
+
urlOrObject: 'https://keep.googleapis.com/$discovery/rest?version=v1'
|
|
20
|
+
): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: 'keep', version: 'v1'): Promise<void>;
|
|
23
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
24
|
+
function load(name: 'keep', version: 'v1', callback: () => any): void;
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
/** OAuth 2.0 token for the current user. */
|
|
415
|
-
oauth_token?:
|
|
416
|
-
string;
|
|
417
|
-
/** Returns response with indentations and line breaks. */
|
|
418
|
-
prettyPrint?:
|
|
419
|
-
boolean;
|
|
420
|
-
/** 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. */
|
|
421
|
-
quotaUser?:
|
|
422
|
-
string;
|
|
423
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
424
|
-
upload_protocol?:
|
|
425
|
-
string;
|
|
426
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
427
|
-
uploadType?:
|
|
428
|
-
string;
|
|
429
|
-
/** Request body */
|
|
430
|
-
resource:
|
|
431
|
-
Note;
|
|
432
|
-
}): Request<Note>;
|
|
433
|
-
create(request: {
|
|
434
|
-
/** V1 error format. */
|
|
435
|
-
"$.xgafv"?:
|
|
436
|
-
string;
|
|
437
|
-
/** OAuth access token. */
|
|
438
|
-
access_token?:
|
|
439
|
-
string;
|
|
440
|
-
/** Data format for response. */
|
|
441
|
-
alt?:
|
|
442
|
-
string;
|
|
443
|
-
/** JSONP */
|
|
444
|
-
callback?:
|
|
445
|
-
string;
|
|
446
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
447
|
-
fields?:
|
|
448
|
-
string;
|
|
449
|
-
/** 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. */
|
|
450
|
-
key?:
|
|
451
|
-
string;
|
|
452
|
-
/** OAuth 2.0 token for the current user. */
|
|
453
|
-
oauth_token?:
|
|
454
|
-
string;
|
|
455
|
-
/** Returns response with indentations and line breaks. */
|
|
456
|
-
prettyPrint?:
|
|
457
|
-
boolean;
|
|
458
|
-
/** 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. */
|
|
459
|
-
quotaUser?:
|
|
460
|
-
string;
|
|
461
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
462
|
-
upload_protocol?:
|
|
463
|
-
string;
|
|
464
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
465
|
-
uploadType?:
|
|
466
|
-
string;
|
|
467
|
-
},
|
|
468
|
-
body: Note): Request<Note>;
|
|
469
|
-
/**
|
|
470
|
-
* Deletes a note. Caller must have the `OWNER` role on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to
|
|
471
|
-
* the note.
|
|
472
|
-
*/
|
|
473
|
-
delete(request?: {
|
|
474
|
-
/** V1 error format. */
|
|
475
|
-
"$.xgafv"?:
|
|
476
|
-
string;
|
|
477
|
-
/** OAuth access token. */
|
|
478
|
-
access_token?:
|
|
479
|
-
string;
|
|
480
|
-
/** Data format for response. */
|
|
481
|
-
alt?:
|
|
482
|
-
string;
|
|
483
|
-
/** JSONP */
|
|
484
|
-
callback?:
|
|
485
|
-
string;
|
|
486
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
487
|
-
fields?:
|
|
488
|
-
string;
|
|
489
|
-
/** 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. */
|
|
490
|
-
key?:
|
|
491
|
-
string;
|
|
492
|
-
/** Required. Name of the note to delete. */
|
|
493
|
-
name:
|
|
494
|
-
string;
|
|
495
|
-
/** OAuth 2.0 token for the current user. */
|
|
496
|
-
oauth_token?:
|
|
497
|
-
string;
|
|
498
|
-
/** Returns response with indentations and line breaks. */
|
|
499
|
-
prettyPrint?:
|
|
500
|
-
boolean;
|
|
501
|
-
/** 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. */
|
|
502
|
-
quotaUser?:
|
|
503
|
-
string;
|
|
504
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
505
|
-
upload_protocol?:
|
|
506
|
-
string;
|
|
507
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
508
|
-
uploadType?:
|
|
509
|
-
string;
|
|
510
|
-
}): Request<{}>;
|
|
511
|
-
/** Gets a note. */
|
|
512
|
-
get(request?: {
|
|
513
|
-
/** V1 error format. */
|
|
514
|
-
"$.xgafv"?:
|
|
515
|
-
string;
|
|
516
|
-
/** OAuth access token. */
|
|
517
|
-
access_token?:
|
|
518
|
-
string;
|
|
519
|
-
/** Data format for response. */
|
|
520
|
-
alt?:
|
|
521
|
-
string;
|
|
522
|
-
/** JSONP */
|
|
523
|
-
callback?:
|
|
524
|
-
string;
|
|
525
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
526
|
-
fields?:
|
|
527
|
-
string;
|
|
528
|
-
/** 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. */
|
|
529
|
-
key?:
|
|
530
|
-
string;
|
|
531
|
-
/** Required. Name of the resource. */
|
|
532
|
-
name:
|
|
533
|
-
string;
|
|
534
|
-
/** OAuth 2.0 token for the current user. */
|
|
535
|
-
oauth_token?:
|
|
536
|
-
string;
|
|
537
|
-
/** Returns response with indentations and line breaks. */
|
|
538
|
-
prettyPrint?:
|
|
539
|
-
boolean;
|
|
540
|
-
/** 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. */
|
|
541
|
-
quotaUser?:
|
|
542
|
-
string;
|
|
543
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
544
|
-
upload_protocol?:
|
|
545
|
-
string;
|
|
546
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
547
|
-
uploadType?:
|
|
548
|
-
string;
|
|
549
|
-
}): Request<Note>;
|
|
550
|
-
/**
|
|
551
|
-
* Lists notes. Every list call returns a page of results with `page_size` as the upper bound of returned items. A `page_size` of zero allows the server to choose the upper bound. The
|
|
552
|
-
* ListNotesResponse contains at most `page_size` entries. If there are more things left to list, it provides a `next_page_token` value. (Page tokens are opaque values.) To get the
|
|
553
|
-
* next page of results, copy the result's `next_page_token` into the next request's `page_token`. Repeat until the `next_page_token` returned with a page of results is empty.
|
|
554
|
-
* ListNotes return consistent results in the face of concurrent changes, or signals that it cannot with an ABORTED error.
|
|
555
|
-
*/
|
|
556
|
-
list(request?: {
|
|
557
|
-
/** V1 error format. */
|
|
558
|
-
"$.xgafv"?:
|
|
559
|
-
string;
|
|
560
|
-
/** OAuth access token. */
|
|
561
|
-
access_token?:
|
|
562
|
-
string;
|
|
563
|
-
/** Data format for response. */
|
|
564
|
-
alt?:
|
|
565
|
-
string;
|
|
566
|
-
/** JSONP */
|
|
567
|
-
callback?:
|
|
568
|
-
string;
|
|
569
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
570
|
-
fields?:
|
|
571
|
-
string;
|
|
572
|
-
/**
|
|
573
|
-
* Filter for list results. If no filter is supplied, the `trashed` filter is applied by default. Valid fields to filter by are: `create_time`, `update_time`, `trash_time`, and
|
|
574
|
-
* `trashed`. Filter syntax follows the [Google AIP filtering spec](https://aip.dev/160).
|
|
575
|
-
*/
|
|
576
|
-
filter?:
|
|
577
|
-
string;
|
|
578
|
-
/** 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. */
|
|
579
|
-
key?:
|
|
580
|
-
string;
|
|
581
|
-
/** OAuth 2.0 token for the current user. */
|
|
582
|
-
oauth_token?:
|
|
583
|
-
string;
|
|
584
|
-
/** The maximum number of results to return. */
|
|
585
|
-
pageSize?:
|
|
586
|
-
number;
|
|
587
|
-
/** The previous page's `next_page_token` field. */
|
|
588
|
-
pageToken?:
|
|
589
|
-
string;
|
|
590
|
-
/** Returns response with indentations and line breaks. */
|
|
591
|
-
prettyPrint?:
|
|
592
|
-
boolean;
|
|
593
|
-
/** 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. */
|
|
594
|
-
quotaUser?:
|
|
595
|
-
string;
|
|
596
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
597
|
-
upload_protocol?:
|
|
598
|
-
string;
|
|
599
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
600
|
-
uploadType?:
|
|
601
|
-
string;
|
|
602
|
-
}): Request<ListNotesResponse>;
|
|
603
|
-
permissions:
|
|
604
|
-
PermissionsResource;
|
|
605
|
-
}
|
|
26
|
+
namespace keep {
|
|
27
|
+
interface Attachment {
|
|
28
|
+
/** The MIME types (IANA media types) in which the attachment is available. */
|
|
29
|
+
mimeType?: string[];
|
|
30
|
+
/** The resource name; */
|
|
31
|
+
name?: string;
|
|
32
|
+
}
|
|
33
|
+
interface BatchCreatePermissionsRequest {
|
|
34
|
+
/** The request message specifying the resources to create. */
|
|
35
|
+
requests?: CreatePermissionRequest[];
|
|
36
|
+
}
|
|
37
|
+
interface BatchCreatePermissionsResponse {
|
|
38
|
+
/** Permissions created. */
|
|
39
|
+
permissions?: Permission[];
|
|
40
|
+
}
|
|
41
|
+
interface BatchDeletePermissionsRequest {
|
|
42
|
+
/** Required. The names of the permissions to delete. Format: `notes/{note}/permissions/{permission}` */
|
|
43
|
+
names?: string[];
|
|
44
|
+
}
|
|
45
|
+
interface CreatePermissionRequest {
|
|
46
|
+
/** Required. The parent note where this permission will be created. Format: `notes/{note}` */
|
|
47
|
+
parent?: string;
|
|
48
|
+
/** Required. The permission to create. One of Permission.email, User.email or Group.email must be supplied. */
|
|
49
|
+
permission?: Permission;
|
|
50
|
+
}
|
|
51
|
+
interface Empty {}
|
|
52
|
+
interface Family {}
|
|
53
|
+
interface Group {
|
|
54
|
+
/** The group email. */
|
|
55
|
+
email?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ListContent {
|
|
58
|
+
/** The items in the list. The number of items must be less than 1,000. */
|
|
59
|
+
listItems?: ListItem[];
|
|
60
|
+
}
|
|
61
|
+
interface ListItem {
|
|
62
|
+
/** Whether this item has been checked off or not. */
|
|
63
|
+
checked?: boolean;
|
|
64
|
+
/** If set, list of list items nested under this list item. Only one level of nesting is allowed. */
|
|
65
|
+
childListItems?: ListItem[];
|
|
66
|
+
/** The text of this item. Length must be less than 1,000 characters. */
|
|
67
|
+
text?: TextContent;
|
|
68
|
+
}
|
|
69
|
+
interface ListNotesResponse {
|
|
70
|
+
/** Next page's `page_token` field. */
|
|
71
|
+
nextPageToken?: string;
|
|
72
|
+
/** A page of notes. */
|
|
73
|
+
notes?: Note[];
|
|
74
|
+
}
|
|
75
|
+
interface Note {
|
|
76
|
+
/** Output only. The attachments attached to this note. */
|
|
77
|
+
attachments?: Attachment[];
|
|
78
|
+
/** The body of the note. */
|
|
79
|
+
body?: Section;
|
|
80
|
+
/** Output only. When this note was created. */
|
|
81
|
+
createTime?: string;
|
|
82
|
+
/** Output only. The resource name of this note. See general note on identifiers in KeepService. */
|
|
83
|
+
name?: string;
|
|
84
|
+
/** Output only. The list of permissions set on the note. Contains at least one entry for the note owner. */
|
|
85
|
+
permissions?: Permission[];
|
|
86
|
+
/** The title of the note. Length must be less than 1,000 characters. */
|
|
87
|
+
title?: string;
|
|
88
|
+
/** Output only. `true` if this note has been trashed. If trashed, the note is eventually deleted. */
|
|
89
|
+
trashed?: boolean;
|
|
90
|
+
/** Output only. When this note was trashed. If `trashed`, the note is eventually deleted. If the note is not trashed, this field is not set (and the trashed field is `false`). */
|
|
91
|
+
trashTime?: string;
|
|
92
|
+
/** Output only. When this note was last modified. */
|
|
93
|
+
updateTime?: string;
|
|
94
|
+
}
|
|
95
|
+
interface Permission {
|
|
96
|
+
/** Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note. */
|
|
97
|
+
deleted?: boolean;
|
|
98
|
+
/** The email associated with the member. If set on create, the `email` field in the `User` or `Group` message must either be empty or match this field. On read, may be unset if the member does not have an associated email. */
|
|
99
|
+
email?: string;
|
|
100
|
+
/** Output only. The Google Family to which this role applies. */
|
|
101
|
+
family?: any;
|
|
102
|
+
/** Output only. The group to which this role applies. */
|
|
103
|
+
group?: Group;
|
|
104
|
+
/** Output only. The resource name. */
|
|
105
|
+
name?: string;
|
|
106
|
+
/** The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. */
|
|
107
|
+
role?: string;
|
|
108
|
+
/** Output only. The user to whom this role applies. */
|
|
109
|
+
user?: User;
|
|
110
|
+
}
|
|
111
|
+
interface Section {
|
|
112
|
+
/** Used if this section's content is a list. */
|
|
113
|
+
list?: ListContent;
|
|
114
|
+
/** Used if this section's content is a block of text. The length of the text content must be less than 20,000 characters. */
|
|
115
|
+
text?: TextContent;
|
|
116
|
+
}
|
|
117
|
+
interface TextContent {
|
|
118
|
+
/** The text of the note. The limits on this vary with the specific field using this type. */
|
|
119
|
+
text?: string;
|
|
120
|
+
}
|
|
121
|
+
interface User {
|
|
122
|
+
/** The user's email. */
|
|
123
|
+
email?: string;
|
|
124
|
+
}
|
|
125
|
+
interface MediaResource {
|
|
126
|
+
/** Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type. */
|
|
127
|
+
download(request?: {
|
|
128
|
+
/** V1 error format. */
|
|
129
|
+
'$.xgafv'?: string;
|
|
130
|
+
/** OAuth access token. */
|
|
131
|
+
access_token?: string;
|
|
132
|
+
/** Data format for response. */
|
|
133
|
+
alt?: string;
|
|
134
|
+
/** JSONP */
|
|
135
|
+
callback?: string;
|
|
136
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
137
|
+
fields?: string;
|
|
138
|
+
/** 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. */
|
|
139
|
+
key?: string;
|
|
140
|
+
/** The IANA MIME type format requested. The requested MIME type must be one specified in the attachment.mime_type. Required when downloading attachment media and ignored otherwise. */
|
|
141
|
+
mimeType?: string;
|
|
142
|
+
/** Required. The name of the attachment. */
|
|
143
|
+
name: string;
|
|
144
|
+
/** OAuth 2.0 token for the current user. */
|
|
145
|
+
oauth_token?: string;
|
|
146
|
+
/** Returns response with indentations and line breaks. */
|
|
147
|
+
prettyPrint?: boolean;
|
|
148
|
+
/** 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. */
|
|
149
|
+
quotaUser?: string;
|
|
150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
151
|
+
upload_protocol?: string;
|
|
152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
153
|
+
uploadType?: string;
|
|
154
|
+
}): Request<Attachment>;
|
|
155
|
+
}
|
|
156
|
+
interface PermissionsResource {
|
|
157
|
+
/** Creates one or more permissions on the note. Only permissions with the `WRITER` role may be created. If adding any permission fails, then the entire request fails and no changes are made. */
|
|
158
|
+
batchCreate(request: {
|
|
159
|
+
/** V1 error format. */
|
|
160
|
+
'$.xgafv'?: string;
|
|
161
|
+
/** OAuth access token. */
|
|
162
|
+
access_token?: string;
|
|
163
|
+
/** Data format for response. */
|
|
164
|
+
alt?: string;
|
|
165
|
+
/** JSONP */
|
|
166
|
+
callback?: string;
|
|
167
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
168
|
+
fields?: string;
|
|
169
|
+
/** 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. */
|
|
170
|
+
key?: string;
|
|
171
|
+
/** OAuth 2.0 token for the current user. */
|
|
172
|
+
oauth_token?: string;
|
|
173
|
+
/** The parent resource shared by all Permissions being created. Format: `notes/{note}` If this is set, the parent field in the CreatePermission messages must either be empty or match this field. */
|
|
174
|
+
parent: string;
|
|
175
|
+
/** Returns response with indentations and line breaks. */
|
|
176
|
+
prettyPrint?: boolean;
|
|
177
|
+
/** 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. */
|
|
178
|
+
quotaUser?: string;
|
|
179
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
180
|
+
upload_protocol?: string;
|
|
181
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
182
|
+
uploadType?: string;
|
|
183
|
+
/** Request body */
|
|
184
|
+
resource: BatchCreatePermissionsRequest;
|
|
185
|
+
}): Request<BatchCreatePermissionsResponse>;
|
|
186
|
+
batchCreate(
|
|
187
|
+
request: {
|
|
188
|
+
/** V1 error format. */
|
|
189
|
+
'$.xgafv'?: string;
|
|
190
|
+
/** OAuth access token. */
|
|
191
|
+
access_token?: string;
|
|
192
|
+
/** Data format for response. */
|
|
193
|
+
alt?: string;
|
|
194
|
+
/** JSONP */
|
|
195
|
+
callback?: string;
|
|
196
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
197
|
+
fields?: string;
|
|
198
|
+
/** 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. */
|
|
199
|
+
key?: string;
|
|
200
|
+
/** OAuth 2.0 token for the current user. */
|
|
201
|
+
oauth_token?: string;
|
|
202
|
+
/** The parent resource shared by all Permissions being created. Format: `notes/{note}` If this is set, the parent field in the CreatePermission messages must either be empty or match this field. */
|
|
203
|
+
parent: string;
|
|
204
|
+
/** Returns response with indentations and line breaks. */
|
|
205
|
+
prettyPrint?: boolean;
|
|
206
|
+
/** 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. */
|
|
207
|
+
quotaUser?: string;
|
|
208
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
209
|
+
upload_protocol?: string;
|
|
210
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
211
|
+
uploadType?: string;
|
|
212
|
+
},
|
|
213
|
+
body: BatchCreatePermissionsRequest
|
|
214
|
+
): Request<BatchCreatePermissionsResponse>;
|
|
215
|
+
/** Deletes one or more permissions on the note. The specified entities will immediately lose access. A permission with the `OWNER` role can't be removed. If removing a permission fails, then the entire request fails and no changes are made. Returns a 400 bad request error if a specified permission does not exist on the note. */
|
|
216
|
+
batchDelete(request: {
|
|
217
|
+
/** V1 error format. */
|
|
218
|
+
'$.xgafv'?: string;
|
|
219
|
+
/** OAuth access token. */
|
|
220
|
+
access_token?: string;
|
|
221
|
+
/** Data format for response. */
|
|
222
|
+
alt?: string;
|
|
223
|
+
/** JSONP */
|
|
224
|
+
callback?: string;
|
|
225
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
226
|
+
fields?: string;
|
|
227
|
+
/** 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. */
|
|
228
|
+
key?: string;
|
|
229
|
+
/** OAuth 2.0 token for the current user. */
|
|
230
|
+
oauth_token?: string;
|
|
231
|
+
/** The parent resource shared by all permissions being deleted. Format: `notes/{note}` If this is set, the parent of all of the permissions specified in the DeletePermissionRequest messages must match this field. */
|
|
232
|
+
parent: string;
|
|
233
|
+
/** Returns response with indentations and line breaks. */
|
|
234
|
+
prettyPrint?: boolean;
|
|
235
|
+
/** 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. */
|
|
236
|
+
quotaUser?: string;
|
|
237
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
238
|
+
upload_protocol?: string;
|
|
239
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
240
|
+
uploadType?: string;
|
|
241
|
+
/** Request body */
|
|
242
|
+
resource: BatchDeletePermissionsRequest;
|
|
243
|
+
}): Request<{}>;
|
|
244
|
+
batchDelete(
|
|
245
|
+
request: {
|
|
246
|
+
/** V1 error format. */
|
|
247
|
+
'$.xgafv'?: string;
|
|
248
|
+
/** OAuth access token. */
|
|
249
|
+
access_token?: string;
|
|
250
|
+
/** Data format for response. */
|
|
251
|
+
alt?: string;
|
|
252
|
+
/** JSONP */
|
|
253
|
+
callback?: string;
|
|
254
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
255
|
+
fields?: string;
|
|
256
|
+
/** 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. */
|
|
257
|
+
key?: string;
|
|
258
|
+
/** OAuth 2.0 token for the current user. */
|
|
259
|
+
oauth_token?: string;
|
|
260
|
+
/** The parent resource shared by all permissions being deleted. Format: `notes/{note}` If this is set, the parent of all of the permissions specified in the DeletePermissionRequest messages must match this field. */
|
|
261
|
+
parent: string;
|
|
262
|
+
/** Returns response with indentations and line breaks. */
|
|
263
|
+
prettyPrint?: boolean;
|
|
264
|
+
/** 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. */
|
|
265
|
+
quotaUser?: string;
|
|
266
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
267
|
+
upload_protocol?: string;
|
|
268
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
269
|
+
uploadType?: string;
|
|
270
|
+
},
|
|
271
|
+
body: BatchDeletePermissionsRequest
|
|
272
|
+
): Request<{}>;
|
|
273
|
+
}
|
|
274
|
+
interface NotesResource {
|
|
275
|
+
/** Creates a new note. */
|
|
276
|
+
create(request: {
|
|
277
|
+
/** V1 error format. */
|
|
278
|
+
'$.xgafv'?: string;
|
|
279
|
+
/** OAuth access token. */
|
|
280
|
+
access_token?: string;
|
|
281
|
+
/** Data format for response. */
|
|
282
|
+
alt?: string;
|
|
283
|
+
/** JSONP */
|
|
284
|
+
callback?: string;
|
|
285
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
286
|
+
fields?: string;
|
|
287
|
+
/** 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. */
|
|
288
|
+
key?: string;
|
|
289
|
+
/** OAuth 2.0 token for the current user. */
|
|
290
|
+
oauth_token?: string;
|
|
291
|
+
/** Returns response with indentations and line breaks. */
|
|
292
|
+
prettyPrint?: boolean;
|
|
293
|
+
/** 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. */
|
|
294
|
+
quotaUser?: string;
|
|
295
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
296
|
+
upload_protocol?: string;
|
|
297
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
298
|
+
uploadType?: string;
|
|
299
|
+
/** Request body */
|
|
300
|
+
resource: Note;
|
|
301
|
+
}): Request<Note>;
|
|
302
|
+
create(
|
|
303
|
+
request: {
|
|
304
|
+
/** V1 error format. */
|
|
305
|
+
'$.xgafv'?: string;
|
|
306
|
+
/** OAuth access token. */
|
|
307
|
+
access_token?: string;
|
|
308
|
+
/** Data format for response. */
|
|
309
|
+
alt?: string;
|
|
310
|
+
/** JSONP */
|
|
311
|
+
callback?: string;
|
|
312
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
313
|
+
fields?: string;
|
|
314
|
+
/** 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. */
|
|
315
|
+
key?: string;
|
|
316
|
+
/** OAuth 2.0 token for the current user. */
|
|
317
|
+
oauth_token?: string;
|
|
318
|
+
/** Returns response with indentations and line breaks. */
|
|
319
|
+
prettyPrint?: boolean;
|
|
320
|
+
/** 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. */
|
|
321
|
+
quotaUser?: string;
|
|
322
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
323
|
+
upload_protocol?: string;
|
|
324
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
325
|
+
uploadType?: string;
|
|
326
|
+
},
|
|
327
|
+
body: Note
|
|
328
|
+
): Request<Note>;
|
|
329
|
+
/** Deletes a note. Caller must have the `OWNER` role on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to the note. */
|
|
330
|
+
delete(request?: {
|
|
331
|
+
/** V1 error format. */
|
|
332
|
+
'$.xgafv'?: string;
|
|
333
|
+
/** OAuth access token. */
|
|
334
|
+
access_token?: string;
|
|
335
|
+
/** Data format for response. */
|
|
336
|
+
alt?: string;
|
|
337
|
+
/** JSONP */
|
|
338
|
+
callback?: string;
|
|
339
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
340
|
+
fields?: string;
|
|
341
|
+
/** 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. */
|
|
342
|
+
key?: string;
|
|
343
|
+
/** Required. Name of the note to delete. */
|
|
344
|
+
name: string;
|
|
345
|
+
/** OAuth 2.0 token for the current user. */
|
|
346
|
+
oauth_token?: string;
|
|
347
|
+
/** Returns response with indentations and line breaks. */
|
|
348
|
+
prettyPrint?: boolean;
|
|
349
|
+
/** 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. */
|
|
350
|
+
quotaUser?: string;
|
|
351
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
352
|
+
upload_protocol?: string;
|
|
353
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
354
|
+
uploadType?: string;
|
|
355
|
+
}): Request<{}>;
|
|
356
|
+
/** Gets a note. */
|
|
357
|
+
get(request?: {
|
|
358
|
+
/** V1 error format. */
|
|
359
|
+
'$.xgafv'?: string;
|
|
360
|
+
/** OAuth access token. */
|
|
361
|
+
access_token?: string;
|
|
362
|
+
/** Data format for response. */
|
|
363
|
+
alt?: string;
|
|
364
|
+
/** JSONP */
|
|
365
|
+
callback?: string;
|
|
366
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
367
|
+
fields?: string;
|
|
368
|
+
/** 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. */
|
|
369
|
+
key?: string;
|
|
370
|
+
/** Required. Name of the resource. */
|
|
371
|
+
name: string;
|
|
372
|
+
/** OAuth 2.0 token for the current user. */
|
|
373
|
+
oauth_token?: string;
|
|
374
|
+
/** Returns response with indentations and line breaks. */
|
|
375
|
+
prettyPrint?: boolean;
|
|
376
|
+
/** 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. */
|
|
377
|
+
quotaUser?: string;
|
|
378
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
379
|
+
upload_protocol?: string;
|
|
380
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
381
|
+
uploadType?: string;
|
|
382
|
+
}): Request<Note>;
|
|
383
|
+
/** Lists notes. Every list call returns a page of results with `page_size` as the upper bound of returned items. A `page_size` of zero allows the server to choose the upper bound. The ListNotesResponse contains at most `page_size` entries. If there are more things left to list, it provides a `next_page_token` value. (Page tokens are opaque values.) To get the next page of results, copy the result's `next_page_token` into the next request's `page_token`. Repeat until the `next_page_token` returned with a page of results is empty. ListNotes return consistent results in the face of concurrent changes, or signals that it cannot with an ABORTED error. */
|
|
384
|
+
list(request?: {
|
|
385
|
+
/** V1 error format. */
|
|
386
|
+
'$.xgafv'?: string;
|
|
387
|
+
/** OAuth access token. */
|
|
388
|
+
access_token?: string;
|
|
389
|
+
/** Data format for response. */
|
|
390
|
+
alt?: string;
|
|
391
|
+
/** JSONP */
|
|
392
|
+
callback?: string;
|
|
393
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
394
|
+
fields?: string;
|
|
395
|
+
/** Filter for list results. If no filter is supplied, the `trashed` filter is applied by default. Valid fields to filter by are: `create_time`, `update_time`, `trash_time`, and `trashed`. Filter syntax follows the [Google AIP filtering spec](https://aip.dev/160). */
|
|
396
|
+
filter?: string;
|
|
397
|
+
/** 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. */
|
|
398
|
+
key?: string;
|
|
399
|
+
/** OAuth 2.0 token for the current user. */
|
|
400
|
+
oauth_token?: string;
|
|
401
|
+
/** The maximum number of results to return. */
|
|
402
|
+
pageSize?: number;
|
|
403
|
+
/** The previous page's `next_page_token` field. */
|
|
404
|
+
pageToken?: string;
|
|
405
|
+
/** Returns response with indentations and line breaks. */
|
|
406
|
+
prettyPrint?: boolean;
|
|
407
|
+
/** 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. */
|
|
408
|
+
quotaUser?: string;
|
|
409
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
410
|
+
upload_protocol?: string;
|
|
411
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
412
|
+
uploadType?: string;
|
|
413
|
+
}): Request<ListNotesResponse>;
|
|
414
|
+
permissions: PermissionsResource;
|
|
415
|
+
}
|
|
606
416
|
|
|
607
|
-
|
|
417
|
+
const media: MediaResource;
|
|
608
418
|
|
|
609
|
-
|
|
610
|
-
|
|
419
|
+
const notes: NotesResource;
|
|
420
|
+
}
|
|
611
421
|
}
|