@maxim_mazurok/gapi.client.drive-v3 0.1.20250909 → 0.1.20250910
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 +26 -26
- package/package.json +1 -1
- package/readme.md +3 -3
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: 20250910
|
13
13
|
|
14
14
|
/// <reference types="gapi.client" />
|
15
15
|
|
@@ -76,25 +76,25 @@ declare namespace gapi.client {
|
|
76
76
|
user?: User;
|
77
77
|
}
|
78
78
|
interface AccessProposal {
|
79
|
-
/** The creation time */
|
79
|
+
/** The creation time. */
|
80
80
|
createTime?: string;
|
81
|
-
/** The file
|
81
|
+
/** The file ID that the proposal for access is on. */
|
82
82
|
fileId?: string;
|
83
|
-
/** The
|
83
|
+
/** The ID of the access proposal. */
|
84
84
|
proposalId?: string;
|
85
|
-
/** The email address of the user that will receive permissions if accepted */
|
85
|
+
/** The email address of the user that will receive permissions, if accepted. */
|
86
86
|
recipientEmailAddress?: string;
|
87
|
-
/** The email address of the requesting user */
|
87
|
+
/** The email address of the requesting user. */
|
88
88
|
requesterEmailAddress?: string;
|
89
|
-
/** The message that the requester added to the proposal */
|
89
|
+
/** The message that the requester added to the proposal. */
|
90
90
|
requestMessage?: string;
|
91
|
-
/** A wrapper for the role and view of an access proposal. */
|
91
|
+
/** A wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). */
|
92
92
|
rolesAndViews?: AccessProposalRoleAndView[];
|
93
93
|
}
|
94
94
|
interface AccessProposalRoleAndView {
|
95
|
-
/** The role that was proposed by the requester
|
95
|
+
/** The role that was proposed by the requester. The supported values are: * `writer` * `commenter` * `reader` */
|
96
96
|
role?: string;
|
97
|
-
/** Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is
|
97
|
+
/** Indicates the view for this access proposal. Only populated for proposals that belong to a view. Only `published` is supported. */
|
98
98
|
view?: string;
|
99
99
|
}
|
100
100
|
interface App {
|
@@ -777,7 +777,7 @@ declare namespace gapi.client {
|
|
777
777
|
removeLabel?: boolean;
|
778
778
|
}
|
779
779
|
interface ListAccessProposalsResponse {
|
780
|
-
/** The list of
|
780
|
+
/** The list of access proposals. This field is only populated in Drive API v3. */
|
781
781
|
accessProposals?: AccessProposal[];
|
782
782
|
/** The continuation token for the next page of results. This will be absent if the end of the results list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. */
|
783
783
|
nextPageToken?: string;
|
@@ -895,13 +895,13 @@ declare namespace gapi.client {
|
|
895
895
|
replies?: Reply[];
|
896
896
|
}
|
897
897
|
interface ResolveAccessProposalRequest {
|
898
|
-
/** Required. The action to take on the
|
898
|
+
/** Required. The action to take on the access proposal. */
|
899
899
|
action?: string;
|
900
|
-
/** Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action. */
|
900
|
+
/** Optional. The roles that the approver has allowed, if any. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). Note: This field is required for the `ACCEPT` action. */
|
901
901
|
role?: string[];
|
902
|
-
/** Optional. Whether to send an email to the requester when the
|
902
|
+
/** Optional. Whether to send an email to the requester when the access proposal is denied or accepted. */
|
903
903
|
sendNotification?: boolean;
|
904
|
-
/** Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is
|
904
|
+
/** Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported. */
|
905
905
|
view?: string;
|
906
906
|
}
|
907
907
|
interface Revision {
|
@@ -1097,7 +1097,7 @@ declare namespace gapi.client {
|
|
1097
1097
|
}): Request<About>;
|
1098
1098
|
}
|
1099
1099
|
interface AccessproposalsResource {
|
1100
|
-
/** Retrieves an
|
1100
|
+
/** Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). */
|
1101
1101
|
get(request?: {
|
1102
1102
|
/** V1 error format. */
|
1103
1103
|
'$.xgafv'?: string;
|
@@ -1109,7 +1109,7 @@ declare namespace gapi.client {
|
|
1109
1109
|
callback?: string;
|
1110
1110
|
/** Selector specifying which fields to include in a partial response. */
|
1111
1111
|
fields?: string;
|
1112
|
-
/** Required. The
|
1112
|
+
/** Required. The ID of the item the request is on. */
|
1113
1113
|
fileId: string;
|
1114
1114
|
/** 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. */
|
1115
1115
|
key?: string;
|
@@ -1117,7 +1117,7 @@ declare namespace gapi.client {
|
|
1117
1117
|
oauth_token?: string;
|
1118
1118
|
/** Returns response with indentations and line breaks. */
|
1119
1119
|
prettyPrint?: boolean;
|
1120
|
-
/** Required. The
|
1120
|
+
/** Required. The ID of the access proposal to resolve. */
|
1121
1121
|
proposalId: string;
|
1122
1122
|
/** 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. */
|
1123
1123
|
quotaUser?: string;
|
@@ -1126,7 +1126,7 @@ declare namespace gapi.client {
|
|
1126
1126
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1127
1127
|
uploadType?: string;
|
1128
1128
|
}): Request<AccessProposal>;
|
1129
|
-
/** List the
|
1129
|
+
/** List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned. */
|
1130
1130
|
list(request?: {
|
1131
1131
|
/** V1 error format. */
|
1132
1132
|
'$.xgafv'?: string;
|
@@ -1138,13 +1138,13 @@ declare namespace gapi.client {
|
|
1138
1138
|
callback?: string;
|
1139
1139
|
/** Selector specifying which fields to include in a partial response. */
|
1140
1140
|
fields?: string;
|
1141
|
-
/** Required. The
|
1141
|
+
/** Required. The ID of the item the request is on. */
|
1142
1142
|
fileId: string;
|
1143
1143
|
/** 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. */
|
1144
1144
|
key?: string;
|
1145
1145
|
/** OAuth 2.0 token for the current user. */
|
1146
1146
|
oauth_token?: string;
|
1147
|
-
/** Optional. The number of results per page */
|
1147
|
+
/** Optional. The number of results per page. */
|
1148
1148
|
pageSize?: number;
|
1149
1149
|
/** Optional. The continuation token on the list of access requests. */
|
1150
1150
|
pageToken?: string;
|
@@ -1157,7 +1157,7 @@ declare namespace gapi.client {
|
|
1157
1157
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1158
1158
|
uploadType?: string;
|
1159
1159
|
}): Request<ListAccessProposalsResponse>;
|
1160
|
-
/**
|
1160
|
+
/** Approves or denies an access proposal. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). */
|
1161
1161
|
resolve(request: {
|
1162
1162
|
/** V1 error format. */
|
1163
1163
|
'$.xgafv'?: string;
|
@@ -1169,7 +1169,7 @@ declare namespace gapi.client {
|
|
1169
1169
|
callback?: string;
|
1170
1170
|
/** Selector specifying which fields to include in a partial response. */
|
1171
1171
|
fields?: string;
|
1172
|
-
/** Required. The
|
1172
|
+
/** Required. The ID of the item the request is on. */
|
1173
1173
|
fileId: string;
|
1174
1174
|
/** 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. */
|
1175
1175
|
key?: string;
|
@@ -1177,7 +1177,7 @@ declare namespace gapi.client {
|
|
1177
1177
|
oauth_token?: string;
|
1178
1178
|
/** Returns response with indentations and line breaks. */
|
1179
1179
|
prettyPrint?: boolean;
|
1180
|
-
/** Required. The
|
1180
|
+
/** Required. The ID of the access proposal to resolve. */
|
1181
1181
|
proposalId: string;
|
1182
1182
|
/** 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. */
|
1183
1183
|
quotaUser?: string;
|
@@ -1200,7 +1200,7 @@ declare namespace gapi.client {
|
|
1200
1200
|
callback?: string;
|
1201
1201
|
/** Selector specifying which fields to include in a partial response. */
|
1202
1202
|
fields?: string;
|
1203
|
-
/** Required. The
|
1203
|
+
/** Required. The ID of the item the request is on. */
|
1204
1204
|
fileId: string;
|
1205
1205
|
/** 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. */
|
1206
1206
|
key?: string;
|
@@ -1208,7 +1208,7 @@ declare namespace gapi.client {
|
|
1208
1208
|
oauth_token?: string;
|
1209
1209
|
/** Returns response with indentations and line breaks. */
|
1210
1210
|
prettyPrint?: boolean;
|
1211
|
-
/** Required. The
|
1211
|
+
/** Required. The ID of the access proposal to resolve. */
|
1212
1212
|
proposalId: string;
|
1213
1213
|
/** 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. */
|
1214
1214
|
quotaUser?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -103,17 +103,17 @@ Gets information about the user, the user's Drive, and system capabilities. For
|
|
103
103
|
await gapi.client.drive.about.get({ });
|
104
104
|
|
105
105
|
/*
|
106
|
-
Retrieves an
|
106
|
+
Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).
|
107
107
|
*/
|
108
108
|
await gapi.client.drive.accessproposals.get({ fileId: "fileId", proposalId: "proposalId", });
|
109
109
|
|
110
110
|
/*
|
111
|
-
List the
|
111
|
+
List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.
|
112
112
|
*/
|
113
113
|
await gapi.client.drive.accessproposals.list({ fileId: "fileId", });
|
114
114
|
|
115
115
|
/*
|
116
|
-
|
116
|
+
Approves or denies an access proposal. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).
|
117
117
|
*/
|
118
118
|
await gapi.client.drive.accessproposals.resolve({ fileId: "fileId", proposalId: "proposalId", });
|
119
119
|
|