@maxim_mazurok/gapi.client.dataportability-v1 0.0.20250302 → 0.0.20250305
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 +66 -1
- package/package.json +1 -1
- package/readme.md +5 -0
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://dataportability.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250305
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -30,6 +30,13 @@ declare namespace gapi.client {
|
|
|
30
30
|
namespace dataportability {
|
|
31
31
|
interface CancelPortabilityArchiveRequest {}
|
|
32
32
|
interface CancelPortabilityArchiveResponse {}
|
|
33
|
+
interface CheckAccessTypeRequest {}
|
|
34
|
+
interface CheckAccessTypeResponse {
|
|
35
|
+
/** Jobs initiated with this token will be one-time if any requested resources have one-time access. */
|
|
36
|
+
oneTimeResources?: string[];
|
|
37
|
+
/** Jobs initiated with this token will be time-based if all requested resources have time-based access. */
|
|
38
|
+
timeBasedResources?: string[];
|
|
39
|
+
}
|
|
33
40
|
interface Empty {}
|
|
34
41
|
interface InitiatePortabilityArchiveRequest {
|
|
35
42
|
/** Optional. The timestamp that represents the end point for the data you are exporting. If the end_time is not specified in the InitiatePortabilityArchiveRequest, this field is set to the latest available data. */
|
|
@@ -63,6 +70,62 @@ declare namespace gapi.client {
|
|
|
63
70
|
/** The archive job ID that is initiated by the retry endpoint. This can be used to get the state of the new job. */
|
|
64
71
|
archiveJobId?: string;
|
|
65
72
|
}
|
|
73
|
+
interface AccessTypeResource {
|
|
74
|
+
/** Gets the access type of the token. */
|
|
75
|
+
check(request: {
|
|
76
|
+
/** V1 error format. */
|
|
77
|
+
'$.xgafv'?: string;
|
|
78
|
+
/** OAuth access token. */
|
|
79
|
+
access_token?: string;
|
|
80
|
+
/** Data format for response. */
|
|
81
|
+
alt?: string;
|
|
82
|
+
/** JSONP */
|
|
83
|
+
callback?: string;
|
|
84
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
85
|
+
fields?: string;
|
|
86
|
+
/** 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. */
|
|
87
|
+
key?: string;
|
|
88
|
+
/** OAuth 2.0 token for the current user. */
|
|
89
|
+
oauth_token?: string;
|
|
90
|
+
/** Returns response with indentations and line breaks. */
|
|
91
|
+
prettyPrint?: boolean;
|
|
92
|
+
/** 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. */
|
|
93
|
+
quotaUser?: string;
|
|
94
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
95
|
+
upload_protocol?: string;
|
|
96
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
97
|
+
uploadType?: string;
|
|
98
|
+
/** Request body */
|
|
99
|
+
resource: CheckAccessTypeRequest;
|
|
100
|
+
}): Request<CheckAccessTypeResponse>;
|
|
101
|
+
check(
|
|
102
|
+
request: {
|
|
103
|
+
/** V1 error format. */
|
|
104
|
+
'$.xgafv'?: string;
|
|
105
|
+
/** OAuth access token. */
|
|
106
|
+
access_token?: string;
|
|
107
|
+
/** Data format for response. */
|
|
108
|
+
alt?: string;
|
|
109
|
+
/** JSONP */
|
|
110
|
+
callback?: string;
|
|
111
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
112
|
+
fields?: string;
|
|
113
|
+
/** 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. */
|
|
114
|
+
key?: string;
|
|
115
|
+
/** OAuth 2.0 token for the current user. */
|
|
116
|
+
oauth_token?: string;
|
|
117
|
+
/** Returns response with indentations and line breaks. */
|
|
118
|
+
prettyPrint?: boolean;
|
|
119
|
+
/** 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. */
|
|
120
|
+
quotaUser?: string;
|
|
121
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
122
|
+
upload_protocol?: string;
|
|
123
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
124
|
+
uploadType?: string;
|
|
125
|
+
},
|
|
126
|
+
body: CheckAccessTypeRequest,
|
|
127
|
+
): Request<CheckAccessTypeResponse>;
|
|
128
|
+
}
|
|
66
129
|
interface ArchiveJobsResource {
|
|
67
130
|
/** Cancels a Portability Archive job. */
|
|
68
131
|
cancel(request: {
|
|
@@ -321,6 +384,8 @@ declare namespace gapi.client {
|
|
|
321
384
|
): Request<InitiatePortabilityArchiveResponse>;
|
|
322
385
|
}
|
|
323
386
|
|
|
387
|
+
const accessType: AccessTypeResource;
|
|
388
|
+
|
|
324
389
|
const archiveJobs: ArchiveJobsResource;
|
|
325
390
|
|
|
326
391
|
const authorization: AuthorizationResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -264,6 +264,11 @@ gapi.auth.authorize(
|
|
|
264
264
|
After that you can use Data Portability API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
265
265
|
|
|
266
266
|
```typescript
|
|
267
|
+
/*
|
|
268
|
+
Gets the access type of the token.
|
|
269
|
+
*/
|
|
270
|
+
await gapi.client.dataportability.accessType.check({});
|
|
271
|
+
|
|
267
272
|
/*
|
|
268
273
|
Cancels a Portability Archive job.
|
|
269
274
|
*/
|