@maxim_mazurok/gapi.client.drive-v3 0.0.20250131 → 0.0.20250216
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 +19 -9
- package/package.json +1 -1
- package/readme.md +2 -2
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://www.googleapis.com/discovery/v1/apis/drive/v3/rest
|
12
|
-
// Revision:
|
12
|
+
// Revision: 20250216
|
13
13
|
|
14
14
|
/// <reference types="gapi.client" />
|
15
15
|
|
@@ -401,10 +401,14 @@ declare namespace gapi.client {
|
|
401
401
|
canDelete?: boolean;
|
402
402
|
/** Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. */
|
403
403
|
canDeleteChildren?: boolean;
|
404
|
+
/** Whether a user can disable inherited permissions. */
|
405
|
+
canDisableInheritedPermissions?: boolean;
|
404
406
|
/** Output only. Whether the current user can download this file. */
|
405
407
|
canDownload?: boolean;
|
406
408
|
/** Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`. */
|
407
409
|
canEdit?: boolean;
|
410
|
+
/** Whether a user can re-enable inherited permissions. */
|
411
|
+
canEnableInheritedPermissions?: boolean;
|
408
412
|
/** Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder. */
|
409
413
|
canListChildren?: boolean;
|
410
414
|
/** Output only. Whether the current user can modify the content of this file. */
|
@@ -556,6 +560,8 @@ declare namespace gapi.client {
|
|
556
560
|
/** Output only. The width of the image in pixels. */
|
557
561
|
width?: number;
|
558
562
|
};
|
563
|
+
/** Whether this file has inherited permissions disabled. Inherited permissions are enabled by default. */
|
564
|
+
inheritedPermissionsDisabled?: boolean;
|
559
565
|
/** Output only. Whether the file was created or opened by the requesting app. */
|
560
566
|
isAppAuthorized?: boolean;
|
561
567
|
/** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`. */
|
@@ -801,15 +807,17 @@ declare namespace gapi.client {
|
|
801
807
|
expirationTime?: string;
|
802
808
|
/** Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as `permissionId`. IDs should be treated as opaque values. */
|
803
809
|
id?: string;
|
810
|
+
/** When true, only organizers, owners, and users with permissions added directly on the item can access it. */
|
811
|
+
inheritedPermissionsDisabled?: boolean;
|
804
812
|
/** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#permission"`. */
|
805
813
|
kind?: string;
|
806
814
|
/** Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive. */
|
807
815
|
pendingOwner?: boolean;
|
808
|
-
/** Output only. Details of whether the permissions on this
|
816
|
+
/** Output only. Details of whether the permissions on this item are inherited or directly on this item. */
|
809
817
|
permissionDetails?: Array<{
|
810
818
|
/** Output only. Whether this permission is inherited. This field is always populated. This is an output-only field. */
|
811
819
|
inherited?: boolean;
|
812
|
-
/** Output only. The ID of the item from which this permission is inherited. This is
|
820
|
+
/** Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives. */
|
813
821
|
inheritedFrom?: string;
|
814
822
|
/** Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member` */
|
815
823
|
permissionType?: string;
|
@@ -833,7 +841,7 @@ declare namespace gapi.client {
|
|
833
841
|
}>;
|
834
842
|
/** The type of the grantee. Valid values are: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. When `type` is `domain`, you must provide a `domain`. There isn't extra information required for an `anyone` type. */
|
835
843
|
type?: string;
|
836
|
-
/** Indicates the view for this permission. Only populated for permissions that belong to a view.
|
844
|
+
/** Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission's role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders. */
|
837
845
|
view?: string;
|
838
846
|
}
|
839
847
|
interface PermissionList {
|
@@ -2686,7 +2694,7 @@ declare namespace gapi.client {
|
|
2686
2694
|
body: Channel,
|
2687
2695
|
): Request<Channel>;
|
2688
2696
|
}
|
2689
|
-
interface
|
2697
|
+
interface OperationsResource {
|
2690
2698
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
2691
2699
|
cancel(request?: {
|
2692
2700
|
/** V1 error format. */
|
@@ -2741,8 +2749,6 @@ declare namespace gapi.client {
|
|
2741
2749
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
2742
2750
|
uploadType?: string;
|
2743
2751
|
}): Request<void>;
|
2744
|
-
}
|
2745
|
-
interface OperationsResource {
|
2746
2752
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
2747
2753
|
get(request?: {
|
2748
2754
|
/** V1 error format. */
|
@@ -2905,6 +2911,8 @@ declare namespace gapi.client {
|
|
2905
2911
|
alt?: string;
|
2906
2912
|
/** JSONP */
|
2907
2913
|
callback?: string;
|
2914
|
+
/** Whether the request should enforce expansive access rules. */
|
2915
|
+
enforceExpansiveAccess?: boolean;
|
2908
2916
|
/** Selector specifying which fields to include in a partial response. */
|
2909
2917
|
fields?: string;
|
2910
2918
|
/** The ID of the file or shared drive. */
|
@@ -3014,6 +3022,8 @@ declare namespace gapi.client {
|
|
3014
3022
|
alt?: string;
|
3015
3023
|
/** JSONP */
|
3016
3024
|
callback?: string;
|
3025
|
+
/** Whether the request should enforce expansive access rules. */
|
3026
|
+
enforceExpansiveAccess?: boolean;
|
3017
3027
|
/** Selector specifying which fields to include in a partial response. */
|
3018
3028
|
fields?: string;
|
3019
3029
|
/** The ID of the file or shared drive. */
|
@@ -3055,6 +3065,8 @@ declare namespace gapi.client {
|
|
3055
3065
|
alt?: string;
|
3056
3066
|
/** JSONP */
|
3057
3067
|
callback?: string;
|
3068
|
+
/** Whether the request should enforce expansive access rules. */
|
3069
|
+
enforceExpansiveAccess?: boolean;
|
3058
3070
|
/** Selector specifying which fields to include in a partial response. */
|
3059
3071
|
fields?: string;
|
3060
3072
|
/** The ID of the file or shared drive. */
|
@@ -3699,8 +3711,6 @@ declare namespace gapi.client {
|
|
3699
3711
|
|
3700
3712
|
const files: FilesResource;
|
3701
3713
|
|
3702
|
-
const operation: OperationResource;
|
3703
|
-
|
3704
3714
|
const operations: OperationsResource;
|
3705
3715
|
|
3706
3716
|
const permissions: PermissionsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -275,12 +275,12 @@ await gapi.client.drive.files.watch({ fileId: "fileId", });
|
|
275
275
|
/*
|
276
276
|
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
277
277
|
*/
|
278
|
-
await gapi.client.drive.
|
278
|
+
await gapi.client.drive.operations.cancel({ name: "name", });
|
279
279
|
|
280
280
|
/*
|
281
281
|
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
282
282
|
*/
|
283
|
-
await gapi.client.drive.
|
283
|
+
await gapi.client.drive.operations.delete({ name: "name", });
|
284
284
|
|
285
285
|
/*
|
286
286
|
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|