@maxim_mazurok/gapi.client.drive-v3 0.1.20251122 → 0.1.20251218

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.
Files changed (3) hide show
  1. package/index.d.ts +115 -13
  2. package/package.json +1 -1
  3. package/readme.md +15 -5
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: 20251122
12
+ // Revision: 20251218
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -165,6 +165,36 @@ declare namespace gapi.client {
165
165
  /** A link back to this list. */
166
166
  selfLink?: string;
167
167
  }
168
+ interface Approval {
169
+ /** The Approval ID. */
170
+ approvalId?: string;
171
+ /** Output only. The time time the approval was completed. */
172
+ completeTime?: string;
173
+ /** Output only. The time the approval was created. */
174
+ createTime?: string;
175
+ /** The time that the approval is due. */
176
+ dueTime?: string;
177
+ /** The user that requested the Approval. */
178
+ initiator?: User;
179
+ /** This is always drive#approval. */
180
+ kind?: string;
181
+ /** Output only. The most recent time the approval was modified. */
182
+ modifyTime?: string;
183
+ /** The responses made on the Approval by reviewers. */
184
+ reviewerResponses?: ReviewerResponse[];
185
+ /** Output only. The status of the approval at the time this resource was requested. */
186
+ status?: string;
187
+ /** Target file id of the approval. */
188
+ targetFileId?: string;
189
+ }
190
+ interface ApprovalList {
191
+ /** The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
192
+ items?: Approval[];
193
+ /** This is always drive#approvalList */
194
+ kind?: string;
195
+ /** The page token for the next page of Approvals. This will be absent if the end of the Approvals 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. */
196
+ nextPageToken?: string;
197
+ }
168
198
  interface Change {
169
199
  /** The type of the change. Possible values are `file` and `drive`. */
170
200
  changeType?: string;
@@ -871,13 +901,13 @@ declare namespace gapi.client {
871
901
  permissions?: Permission[];
872
902
  }
873
903
  interface Reply {
874
- /** The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen` */
904
+ /** The action the reply performed to the parent comment. The supported values are: * `resolve` * `reopen` */
875
905
  action?: string;
876
906
  /** Output only. The email address of the user assigned to this comment. If no user is assigned, the field is unset. */
877
907
  assigneeEmailAddress?: string;
878
- /** Output only. The author of the reply. The author's email address and permission ID will not be populated. */
908
+ /** Output only. The author of the reply. The author's email address and permission ID won't be populated. */
879
909
  author?: User;
880
- /** The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified. */
910
+ /** The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This field is required by the `create` method if no `action` value is specified. */
881
911
  content?: string;
882
912
  /** The time at which the reply was created (RFC 3339 date-time). */
883
913
  createdTime?: string;
@@ -899,7 +929,7 @@ declare namespace gapi.client {
899
929
  kind?: string;
900
930
  /** The page token for the next page of replies. This will be absent if the end of the replies 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. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ. */
901
931
  nextPageToken?: string;
902
- /** The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
932
+ /** The list of replies. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched. */
903
933
  replies?: Reply[];
904
934
  }
905
935
  interface ResolveAccessProposalRequest {
@@ -912,6 +942,14 @@ declare namespace gapi.client {
912
942
  /** Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported. */
913
943
  view?: string;
914
944
  }
945
+ interface ReviewerResponse {
946
+ /** This is always drive#reviewerResponse. */
947
+ kind?: string;
948
+ /** A Reviewer’s Response for the Approval. */
949
+ response?: string;
950
+ /** The user that is responsible for this response. */
951
+ reviewer?: User;
952
+ }
915
953
  interface Revision {
916
954
  /** Output only. Links for exporting Docs Editors files to specific formats. */
917
955
  exportLinks?: {[P in string]: string};
@@ -1228,6 +1266,68 @@ declare namespace gapi.client {
1228
1266
  body: ResolveAccessProposalRequest,
1229
1267
  ): Request<void>;
1230
1268
  }
1269
+ interface ApprovalsResource {
1270
+ /** Gets an Approval by ID. */
1271
+ get(request?: {
1272
+ /** V1 error format. */
1273
+ '$.xgafv'?: string;
1274
+ /** OAuth access token. */
1275
+ access_token?: string;
1276
+ /** Data format for response. */
1277
+ alt?: string;
1278
+ /** Required. The ID of the Approval. */
1279
+ approvalId: string;
1280
+ /** JSONP */
1281
+ callback?: string;
1282
+ /** Selector specifying which fields to include in a partial response. */
1283
+ fields?: string;
1284
+ /** Required. The ID of the file the Approval is on. */
1285
+ fileId: string;
1286
+ /** 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. */
1287
+ key?: string;
1288
+ /** OAuth 2.0 token for the current user. */
1289
+ oauth_token?: string;
1290
+ /** Returns response with indentations and line breaks. */
1291
+ prettyPrint?: boolean;
1292
+ /** 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. */
1293
+ quotaUser?: string;
1294
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1295
+ upload_protocol?: string;
1296
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1297
+ uploadType?: string;
1298
+ }): Request<Approval>;
1299
+ /** Lists the Approvals on a file. */
1300
+ list(request?: {
1301
+ /** V1 error format. */
1302
+ '$.xgafv'?: string;
1303
+ /** OAuth access token. */
1304
+ access_token?: string;
1305
+ /** Data format for response. */
1306
+ alt?: string;
1307
+ /** JSONP */
1308
+ callback?: string;
1309
+ /** Selector specifying which fields to include in a partial response. */
1310
+ fields?: string;
1311
+ /** Required. The ID of the file the Approval is on. */
1312
+ fileId: string;
1313
+ /** 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. */
1314
+ key?: string;
1315
+ /** OAuth 2.0 token for the current user. */
1316
+ oauth_token?: string;
1317
+ /** The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned. */
1318
+ pageSize?: number;
1319
+ /** The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response. */
1320
+ pageToken?: string;
1321
+ /** Returns response with indentations and line breaks. */
1322
+ prettyPrint?: boolean;
1323
+ /** 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. */
1324
+ quotaUser?: string;
1325
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1326
+ upload_protocol?: string;
1327
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1328
+ uploadType?: string;
1329
+ }): Request<ApprovalList>;
1330
+ }
1231
1331
  interface AppsResource {
1232
1332
  /** Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). */
1233
1333
  get(request?: {
@@ -3043,7 +3143,7 @@ declare namespace gapi.client {
3043
3143
  ): Request<Permission>;
3044
3144
  }
3045
3145
  interface RepliesResource {
3046
- /** Creates a reply to a comment. */
3146
+ /** Creates a reply to a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). */
3047
3147
  create(request: {
3048
3148
  /** V1 error format. */
3049
3149
  '$.xgafv'?: string;
@@ -3105,7 +3205,7 @@ declare namespace gapi.client {
3105
3205
  },
3106
3206
  body: Reply,
3107
3207
  ): Request<Reply>;
3108
- /** Deletes a reply. */
3208
+ /** Deletes a reply. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). */
3109
3209
  delete(request?: {
3110
3210
  /** V1 error format. */
3111
3211
  '$.xgafv'?: string;
@@ -3136,7 +3236,7 @@ declare namespace gapi.client {
3136
3236
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3137
3237
  uploadType?: string;
3138
3238
  }): Request<void>;
3139
- /** Gets a reply by ID. */
3239
+ /** Gets a reply by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). */
3140
3240
  get(request?: {
3141
3241
  /** V1 error format. */
3142
3242
  '$.xgafv'?: string;
@@ -3152,7 +3252,7 @@ declare namespace gapi.client {
3152
3252
  fields?: string;
3153
3253
  /** The ID of the file. */
3154
3254
  fileId: string;
3155
- /** Whether to return deleted replies. Deleted replies will not include their original content. */
3255
+ /** Whether to return deleted replies. Deleted replies don't include their original content. */
3156
3256
  includeDeleted?: boolean;
3157
3257
  /** 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. */
3158
3258
  key?: string;
@@ -3169,7 +3269,7 @@ declare namespace gapi.client {
3169
3269
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3170
3270
  uploadType?: string;
3171
3271
  }): Request<Reply>;
3172
- /** Lists a comment's replies. */
3272
+ /** Lists a comment's replies. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). */
3173
3273
  list(request?: {
3174
3274
  /** V1 error format. */
3175
3275
  '$.xgafv'?: string;
@@ -3185,7 +3285,7 @@ declare namespace gapi.client {
3185
3285
  fields?: string;
3186
3286
  /** The ID of the file. */
3187
3287
  fileId: string;
3188
- /** Whether to include deleted replies. Deleted replies will not include their original content. */
3288
+ /** Whether to include deleted replies. Deleted replies don't include their original content. */
3189
3289
  includeDeleted?: boolean;
3190
3290
  /** 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. */
3191
3291
  key?: string;
@@ -3193,7 +3293,7 @@ declare namespace gapi.client {
3193
3293
  oauth_token?: string;
3194
3294
  /** The maximum number of replies to return per page. */
3195
3295
  pageSize?: number;
3196
- /** The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. */
3296
+ /** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response. */
3197
3297
  pageToken?: string;
3198
3298
  /** Returns response with indentations and line breaks. */
3199
3299
  prettyPrint?: boolean;
@@ -3204,7 +3304,7 @@ declare namespace gapi.client {
3204
3304
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3205
3305
  uploadType?: string;
3206
3306
  }): Request<ReplyList>;
3207
- /** Updates a reply with patch semantics. */
3307
+ /** Updates a reply with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). */
3208
3308
  update(request: {
3209
3309
  /** V1 error format. */
3210
3310
  '$.xgafv'?: string;
@@ -3642,6 +3742,8 @@ declare namespace gapi.client {
3642
3742
 
3643
3743
  const accessproposals: AccessproposalsResource;
3644
3744
 
3745
+ const approvals: ApprovalsResource;
3746
+
3645
3747
  const apps: AppsResource;
3646
3748
 
3647
3749
  const changes: ChangesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v3",
3
- "version": "0.1.20251122",
3
+ "version": "0.1.20251218",
4
4
  "description": "TypeScript typings for Google Drive API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -117,6 +117,16 @@ Approves or denies an access proposal. For more information, see [Manage pending
117
117
  */
118
118
  await gapi.client.drive.accessproposals.resolve({ fileId: "fileId", proposalId: "proposalId", });
119
119
 
120
+ /*
121
+ Gets an Approval by ID.
122
+ */
123
+ await gapi.client.drive.approvals.get({ approvalId: "approvalId", fileId: "fileId", });
124
+
125
+ /*
126
+ Lists the Approvals on a file.
127
+ */
128
+ await gapi.client.drive.approvals.list({ fileId: "fileId", });
129
+
120
130
  /*
121
131
  Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).
122
132
  */
@@ -303,27 +313,27 @@ Updates a permission with patch semantics. For more information, see [Share file
303
313
  await gapi.client.drive.permissions.update({ fileId: "fileId", permissionId: "permissionId", });
304
314
 
305
315
  /*
306
- Creates a reply to a comment.
316
+ Creates a reply to a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).
307
317
  */
308
318
  await gapi.client.drive.replies.create({ commentId: "commentId", fileId: "fileId", });
309
319
 
310
320
  /*
311
- Deletes a reply.
321
+ Deletes a reply. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).
312
322
  */
313
323
  await gapi.client.drive.replies.delete({ commentId: "commentId", fileId: "fileId", replyId: "replyId", });
314
324
 
315
325
  /*
316
- Gets a reply by ID.
326
+ Gets a reply by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).
317
327
  */
318
328
  await gapi.client.drive.replies.get({ commentId: "commentId", fileId: "fileId", replyId: "replyId", });
319
329
 
320
330
  /*
321
- Lists a comment's replies.
331
+ Lists a comment's replies. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).
322
332
  */
323
333
  await gapi.client.drive.replies.list({ commentId: "commentId", fileId: "fileId", });
324
334
 
325
335
  /*
326
- Updates a reply with patch semantics.
336
+ Updates a reply with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).
327
337
  */
328
338
  await gapi.client.drive.replies.update({ commentId: "commentId", fileId: "fileId", replyId: "replyId", });
329
339