@maxim_mazurok/gapi.client.driveactivity-v2 0.1.20260310 → 0.2.20260315
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 +75 -19
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://driveactivity.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260315
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -83,7 +83,7 @@ declare namespace gapi.client {
|
|
|
83
83
|
interface Anyone {}
|
|
84
84
|
interface ApplicationReference {
|
|
85
85
|
/** The reference type corresponding to this event. */
|
|
86
|
-
type?:
|
|
86
|
+
type?: 'UNSPECIFIED_REFERENCE_TYPE' | 'LINK' | 'DISCUSS';
|
|
87
87
|
}
|
|
88
88
|
interface AppliedLabelChange {
|
|
89
89
|
/** Changes that were made to the Label on the Target. */
|
|
@@ -97,13 +97,26 @@ declare namespace gapi.client {
|
|
|
97
97
|
/** The human-readable title of the label that changed. */
|
|
98
98
|
title?: string;
|
|
99
99
|
/** The types of changes made to the Label on the Target. */
|
|
100
|
-
types?:
|
|
100
|
+
types?:
|
|
101
|
+
| 'TYPE_UNSPECIFIED'
|
|
102
|
+
| 'LABEL_ADDED'
|
|
103
|
+
| 'LABEL_REMOVED'
|
|
104
|
+
| 'LABEL_FIELD_VALUE_CHANGED'
|
|
105
|
+
| 'LABEL_APPLIED_BY_ITEM_CREATE'[];
|
|
101
106
|
}
|
|
102
107
|
interface Assignment {
|
|
103
108
|
/** The user to whom the comment was assigned. */
|
|
104
109
|
assignedUser?: User;
|
|
105
110
|
/** The sub-type of this event. */
|
|
106
|
-
subtype?:
|
|
111
|
+
subtype?:
|
|
112
|
+
| 'SUBTYPE_UNSPECIFIED'
|
|
113
|
+
| 'ADDED'
|
|
114
|
+
| 'DELETED'
|
|
115
|
+
| 'REPLY_ADDED'
|
|
116
|
+
| 'REPLY_DELETED'
|
|
117
|
+
| 'RESOLVED'
|
|
118
|
+
| 'REOPENED'
|
|
119
|
+
| 'REASSIGNED';
|
|
107
120
|
}
|
|
108
121
|
interface Comment {
|
|
109
122
|
/** A change on an assignment. */
|
|
@@ -135,7 +148,7 @@ declare namespace gapi.client {
|
|
|
135
148
|
}
|
|
136
149
|
interface DataLeakPreventionChange {
|
|
137
150
|
/** The type of Data Leak Prevention (DLP) change. */
|
|
138
|
-
type?:
|
|
151
|
+
type?: 'TYPE_UNSPECIFIED' | 'FLAGGED' | 'CLEARED';
|
|
139
152
|
}
|
|
140
153
|
interface Date {
|
|
141
154
|
/** Date value. */
|
|
@@ -143,7 +156,7 @@ declare namespace gapi.client {
|
|
|
143
156
|
}
|
|
144
157
|
interface Delete {
|
|
145
158
|
/** The type of delete action taken. */
|
|
146
|
-
type?:
|
|
159
|
+
type?: 'TYPE_UNSPECIFIED' | 'TRASH' | 'PERMANENT_DELETE';
|
|
147
160
|
}
|
|
148
161
|
interface DeletedUser {}
|
|
149
162
|
interface Domain {
|
|
@@ -177,7 +190,11 @@ declare namespace gapi.client {
|
|
|
177
190
|
interface DriveFile {}
|
|
178
191
|
interface DriveFolder {
|
|
179
192
|
/** The type of Drive folder. */
|
|
180
|
-
type?:
|
|
193
|
+
type?:
|
|
194
|
+
| 'TYPE_UNSPECIFIED'
|
|
195
|
+
| 'MY_DRIVE_ROOT'
|
|
196
|
+
| 'SHARED_DRIVE_ROOT'
|
|
197
|
+
| 'STANDARD_FOLDER';
|
|
181
198
|
}
|
|
182
199
|
interface DriveItem {
|
|
183
200
|
/** The Drive item is a file. */
|
|
@@ -259,7 +276,11 @@ declare namespace gapi.client {
|
|
|
259
276
|
}
|
|
260
277
|
interface Folder {
|
|
261
278
|
/** This field is deprecated; please see `DriveFolder.type` instead. */
|
|
262
|
-
type?:
|
|
279
|
+
type?:
|
|
280
|
+
| 'TYPE_UNSPECIFIED'
|
|
281
|
+
| 'MY_DRIVE_ROOT'
|
|
282
|
+
| 'TEAM_DRIVE_ROOT'
|
|
283
|
+
| 'STANDARD_FOLDER';
|
|
263
284
|
}
|
|
264
285
|
interface Group {
|
|
265
286
|
/** The email address of the group. */
|
|
@@ -310,7 +331,15 @@ declare namespace gapi.client {
|
|
|
310
331
|
/** The group to whom this permission applies. */
|
|
311
332
|
group?: Group;
|
|
312
333
|
/** Indicates the [Google Drive permissions role](https://developers.google.com/workspace/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items. */
|
|
313
|
-
role?:
|
|
334
|
+
role?:
|
|
335
|
+
| 'ROLE_UNSPECIFIED'
|
|
336
|
+
| 'OWNER'
|
|
337
|
+
| 'ORGANIZER'
|
|
338
|
+
| 'FILE_ORGANIZER'
|
|
339
|
+
| 'EDITOR'
|
|
340
|
+
| 'COMMENTER'
|
|
341
|
+
| 'VIEWER'
|
|
342
|
+
| 'PUBLISHED_VIEWER';
|
|
314
343
|
/** The user to whom this permission applies. */
|
|
315
344
|
user?: User;
|
|
316
345
|
}
|
|
@@ -322,7 +351,14 @@ declare namespace gapi.client {
|
|
|
322
351
|
}
|
|
323
352
|
interface Post {
|
|
324
353
|
/** The sub-type of this event. */
|
|
325
|
-
subtype?:
|
|
354
|
+
subtype?:
|
|
355
|
+
| 'SUBTYPE_UNSPECIFIED'
|
|
356
|
+
| 'ADDED'
|
|
357
|
+
| 'DELETED'
|
|
358
|
+
| 'REPLY_ADDED'
|
|
359
|
+
| 'REPLY_DELETED'
|
|
360
|
+
| 'RESOLVED'
|
|
361
|
+
| 'REOPENED';
|
|
326
362
|
}
|
|
327
363
|
interface QueryDriveActivityRequest {
|
|
328
364
|
/** Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`. */
|
|
@@ -352,13 +388,24 @@ declare namespace gapi.client {
|
|
|
352
388
|
}
|
|
353
389
|
interface Restore {
|
|
354
390
|
/** The type of restore action taken. */
|
|
355
|
-
type?:
|
|
391
|
+
type?: 'TYPE_UNSPECIFIED' | 'UNTRASH';
|
|
356
392
|
}
|
|
357
393
|
interface RestrictionChange {
|
|
358
394
|
/** The feature which had a change in restriction policy. */
|
|
359
|
-
feature?:
|
|
395
|
+
feature?:
|
|
396
|
+
| 'FEATURE_UNSPECIFIED'
|
|
397
|
+
| 'SHARING_OUTSIDE_DOMAIN'
|
|
398
|
+
| 'DIRECT_SHARING'
|
|
399
|
+
| 'ITEM_DUPLICATION'
|
|
400
|
+
| 'DRIVE_FILE_STREAM'
|
|
401
|
+
| 'FILE_ORGANIZER_CAN_SHARE_FOLDERS'
|
|
402
|
+
| 'READERS_CAN_DOWNLOAD'
|
|
403
|
+
| 'WRITERS_CAN_DOWNLOAD';
|
|
360
404
|
/** The restriction in place after the change. */
|
|
361
|
-
newRestriction?:
|
|
405
|
+
newRestriction?:
|
|
406
|
+
| 'RESTRICTION_UNSPECIFIED'
|
|
407
|
+
| 'UNRESTRICTED'
|
|
408
|
+
| 'FULLY_RESTRICTED';
|
|
362
409
|
}
|
|
363
410
|
interface Selection {
|
|
364
411
|
/** Selection value as human-readable display string. */
|
|
@@ -380,11 +427,20 @@ declare namespace gapi.client {
|
|
|
380
427
|
}
|
|
381
428
|
interface Suggestion {
|
|
382
429
|
/** The sub-type of this event. */
|
|
383
|
-
subtype?:
|
|
430
|
+
subtype?:
|
|
431
|
+
| 'SUBTYPE_UNSPECIFIED'
|
|
432
|
+
| 'ADDED'
|
|
433
|
+
| 'DELETED'
|
|
434
|
+
| 'REPLY_ADDED'
|
|
435
|
+
| 'REPLY_DELETED'
|
|
436
|
+
| 'ACCEPTED'
|
|
437
|
+
| 'REJECTED'
|
|
438
|
+
| 'ACCEPT_DELETED'
|
|
439
|
+
| 'REJECT_DELETED';
|
|
384
440
|
}
|
|
385
441
|
interface SystemEvent {
|
|
386
442
|
/** The type of the system event that may triggered activity. */
|
|
387
|
-
type?:
|
|
443
|
+
type?: 'TYPE_UNSPECIFIED' | 'USER_DELETION' | 'TRASH_AUTO_PURGE';
|
|
388
444
|
}
|
|
389
445
|
interface Target {
|
|
390
446
|
/** The target is a shared drive. */
|
|
@@ -450,11 +506,11 @@ declare namespace gapi.client {
|
|
|
450
506
|
/** Query past activity in Google Drive. */
|
|
451
507
|
query(request: {
|
|
452
508
|
/** V1 error format. */
|
|
453
|
-
'$.xgafv'?:
|
|
509
|
+
'$.xgafv'?: '1' | '2';
|
|
454
510
|
/** OAuth access token. */
|
|
455
511
|
access_token?: string;
|
|
456
512
|
/** Data format for response. */
|
|
457
|
-
alt?:
|
|
513
|
+
alt?: 'json' | 'media' | 'proto';
|
|
458
514
|
/** JSONP */
|
|
459
515
|
callback?: string;
|
|
460
516
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -477,11 +533,11 @@ declare namespace gapi.client {
|
|
|
477
533
|
query(
|
|
478
534
|
request: {
|
|
479
535
|
/** V1 error format. */
|
|
480
|
-
'$.xgafv'?:
|
|
536
|
+
'$.xgafv'?: '1' | '2';
|
|
481
537
|
/** OAuth access token. */
|
|
482
538
|
access_token?: string;
|
|
483
539
|
/** Data format for response. */
|
|
484
|
-
alt?:
|
|
540
|
+
alt?: 'json' | 'media' | 'proto';
|
|
485
541
|
/** JSONP */
|
|
486
542
|
callback?: string;
|
|
487
543
|
/** Selector specifying which fields to include in a partial response. */
|