@maxim_mazurok/gapi.client.drive-v3 0.0.20240926 → 0.0.20241006

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.d.ts +100 -1
  2. 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://www.googleapis.com/discovery/v1/apis/drive/v3/rest
12
- // Revision: 20240926
12
+ // Revision: 20241006
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -75,6 +75,28 @@ declare namespace gapi.client {
75
75
  /** The authenticated user. */
76
76
  user?: User;
77
77
  }
78
+ interface AccessProposal {
79
+ /** The creation time */
80
+ createTime?: string;
81
+ /** The file id that the proposal for access is on */
82
+ fileId?: string;
83
+ /** The id of the access proposal */
84
+ proposalId?: string;
85
+ /** The email address of the user that will receive permissions if accepted */
86
+ recipientEmailAddress?: string;
87
+ /** The email address of the requesting user */
88
+ requesterEmailAddress?: string;
89
+ /** The message that the requester added to the proposal */
90
+ requestMessage?: string;
91
+ /** A wrapper for the role and view of an access proposal. */
92
+ rolesAndViews?: AccessProposalRoleAndView[];
93
+ }
94
+ interface AccessProposalRoleAndView {
95
+ /** The role that was proposed by the requester New values may be added in the future, but the following are currently possible: * `writer` * `commenter` * `reader` */
96
+ role?: string;
97
+ /** Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value. */
98
+ view?: string;
99
+ }
78
100
  interface App {
79
101
  /** Whether the app is authorized to access data on the user's Drive. */
80
102
  authorized?: boolean;
@@ -728,6 +750,12 @@ declare namespace gapi.client {
728
750
  /** If true, the label will be removed from the file. */
729
751
  removeLabel?: boolean;
730
752
  }
753
+ interface ListAccessProposalsResponse {
754
+ /** The list of Access Proposals. This field is only populated in v3 and v3beta. */
755
+ accessProposals?: AccessProposal[];
756
+ /** 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. */
757
+ nextPageToken?: string;
758
+ }
731
759
  interface ListOperationsResponse {
732
760
  /** The standard List next-page token. */
733
761
  nextPageToken?: string;
@@ -1832,6 +1860,76 @@ declare namespace gapi.client {
1832
1860
  body: Drive
1833
1861
  ): Request<Drive>;
1834
1862
  }
1863
+ interface AccessproposalsResource {
1864
+ /** List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403. */
1865
+ list(request?: {
1866
+ /** V1 error format. */
1867
+ '$.xgafv'?: string;
1868
+ /** OAuth access token. */
1869
+ access_token?: string;
1870
+ /** Data format for response. */
1871
+ alt?: string;
1872
+ /** JSONP */
1873
+ callback?: string;
1874
+ /** Selector specifying which fields to include in a partial response. */
1875
+ fields?: string;
1876
+ /** Required. The id of the item the request is on. */
1877
+ fileId: string;
1878
+ /** 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. */
1879
+ key?: string;
1880
+ /** OAuth 2.0 token for the current user. */
1881
+ oauth_token?: string;
1882
+ /** Optional. The number of results per page */
1883
+ pageSize?: number;
1884
+ /** Optional. The continuation token on the list of access requests. */
1885
+ pageToken?: string;
1886
+ /** Returns response with indentations and line breaks. */
1887
+ prettyPrint?: boolean;
1888
+ /** 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. */
1889
+ quotaUser?: string;
1890
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1891
+ upload_protocol?: string;
1892
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1893
+ uploadType?: string;
1894
+ }): Request<ListAccessProposalsResponse>;
1895
+ /** Used to approve or deny an Access Proposal. */
1896
+ resolve(request?: {
1897
+ /** V1 error format. */
1898
+ '$.xgafv'?: string;
1899
+ /** OAuth access token. */
1900
+ access_token?: string;
1901
+ /** Required. The action to take on the AccessProposal. */
1902
+ action?: string;
1903
+ /** Data format for response. */
1904
+ alt?: string;
1905
+ /** JSONP */
1906
+ callback?: string;
1907
+ /** Selector specifying which fields to include in a partial response. */
1908
+ fields?: string;
1909
+ /** Required. The id of the item the request is on. */
1910
+ fileId: string;
1911
+ /** 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. */
1912
+ key?: string;
1913
+ /** OAuth 2.0 token for the current user. */
1914
+ oauth_token?: string;
1915
+ /** Returns response with indentations and line breaks. */
1916
+ prettyPrint?: boolean;
1917
+ /** Required. The id of the access proposal to resolve. */
1918
+ proposalId: string;
1919
+ /** 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. */
1920
+ quotaUser?: string;
1921
+ /** Optional. The roles the approver has allowed, if any. */
1922
+ role?: string | string[];
1923
+ /** Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted. */
1924
+ sendNotification?: boolean;
1925
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1926
+ upload_protocol?: string;
1927
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1928
+ uploadType?: string;
1929
+ /** Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is the only supported value. */
1930
+ view?: string;
1931
+ }): Request<void>;
1932
+ }
1835
1933
  interface FilesResource {
1836
1934
  /** Creates a copy of a file and applies any requested updates with patch semantics. */
1837
1935
  copy(request: {
@@ -2523,6 +2621,7 @@ declare namespace gapi.client {
2523
2621
  },
2524
2622
  body: Channel
2525
2623
  ): Request<Channel>;
2624
+ accessproposals: AccessproposalsResource;
2526
2625
  }
2527
2626
  interface OperationResource {
2528
2627
  /** 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`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v3",
3
- "version": "0.0.20240926",
3
+ "version": "0.0.20241006",
4
4
  "description": "TypeScript typings for Google Drive API v3",
5
5
  "repository": {
6
6
  "type": "git",