@maxim_mazurok/gapi.client.keep-v1 0.1.20260311 → 0.2.20260601

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 +22 -22
  2. package/package.json +1 -1
  3. package/readme.md +12 -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://keep.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260311
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -104,7 +104,7 @@ declare namespace gapi.client {
104
104
  /** Output only. The resource name. */
105
105
  name?: string;
106
106
  /** The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. */
107
- role?: string;
107
+ role?: 'ROLE_UNSPECIFIED' | 'OWNER' | 'WRITER';
108
108
  /** Output only. The user to whom this role applies. */
109
109
  user?: User;
110
110
  }
@@ -126,11 +126,11 @@ declare namespace gapi.client {
126
126
  /** Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type. */
127
127
  download(request?: {
128
128
  /** V1 error format. */
129
- '$.xgafv'?: string;
129
+ '$.xgafv'?: '1' | '2';
130
130
  /** OAuth access token. */
131
131
  access_token?: string;
132
132
  /** Data format for response. */
133
- alt?: string;
133
+ alt?: 'json' | 'media' | 'proto';
134
134
  /** JSONP */
135
135
  callback?: string;
136
136
  /** Selector specifying which fields to include in a partial response. */
@@ -157,11 +157,11 @@ declare namespace gapi.client {
157
157
  /** Creates one or more permissions on the note. Only permissions with the `WRITER` role may be created. If adding any permission fails, then the entire request fails and no changes are made. */
158
158
  batchCreate(request: {
159
159
  /** V1 error format. */
160
- '$.xgafv'?: string;
160
+ '$.xgafv'?: '1' | '2';
161
161
  /** OAuth access token. */
162
162
  access_token?: string;
163
163
  /** Data format for response. */
164
- alt?: string;
164
+ alt?: 'json' | 'media' | 'proto';
165
165
  /** JSONP */
166
166
  callback?: string;
167
167
  /** Selector specifying which fields to include in a partial response. */
@@ -186,11 +186,11 @@ declare namespace gapi.client {
186
186
  batchCreate(
187
187
  request: {
188
188
  /** V1 error format. */
189
- '$.xgafv'?: string;
189
+ '$.xgafv'?: '1' | '2';
190
190
  /** OAuth access token. */
191
191
  access_token?: string;
192
192
  /** Data format for response. */
193
- alt?: string;
193
+ alt?: 'json' | 'media' | 'proto';
194
194
  /** JSONP */
195
195
  callback?: string;
196
196
  /** Selector specifying which fields to include in a partial response. */
@@ -215,11 +215,11 @@ declare namespace gapi.client {
215
215
  /** Deletes one or more permissions on the note. The specified entities will immediately lose access. A permission with the `OWNER` role can't be removed. If removing a permission fails, then the entire request fails and no changes are made. Returns a 400 bad request error if a specified permission does not exist on the note. */
216
216
  batchDelete(request: {
217
217
  /** V1 error format. */
218
- '$.xgafv'?: string;
218
+ '$.xgafv'?: '1' | '2';
219
219
  /** OAuth access token. */
220
220
  access_token?: string;
221
221
  /** Data format for response. */
222
- alt?: string;
222
+ alt?: 'json' | 'media' | 'proto';
223
223
  /** JSONP */
224
224
  callback?: string;
225
225
  /** Selector specifying which fields to include in a partial response. */
@@ -244,11 +244,11 @@ declare namespace gapi.client {
244
244
  batchDelete(
245
245
  request: {
246
246
  /** V1 error format. */
247
- '$.xgafv'?: string;
247
+ '$.xgafv'?: '1' | '2';
248
248
  /** OAuth access token. */
249
249
  access_token?: string;
250
250
  /** Data format for response. */
251
- alt?: string;
251
+ alt?: 'json' | 'media' | 'proto';
252
252
  /** JSONP */
253
253
  callback?: string;
254
254
  /** Selector specifying which fields to include in a partial response. */
@@ -275,11 +275,11 @@ declare namespace gapi.client {
275
275
  /** Creates a new note. */
276
276
  create(request: {
277
277
  /** V1 error format. */
278
- '$.xgafv'?: string;
278
+ '$.xgafv'?: '1' | '2';
279
279
  /** OAuth access token. */
280
280
  access_token?: string;
281
281
  /** Data format for response. */
282
- alt?: string;
282
+ alt?: 'json' | 'media' | 'proto';
283
283
  /** JSONP */
284
284
  callback?: string;
285
285
  /** Selector specifying which fields to include in a partial response. */
@@ -302,11 +302,11 @@ declare namespace gapi.client {
302
302
  create(
303
303
  request: {
304
304
  /** V1 error format. */
305
- '$.xgafv'?: string;
305
+ '$.xgafv'?: '1' | '2';
306
306
  /** OAuth access token. */
307
307
  access_token?: string;
308
308
  /** Data format for response. */
309
- alt?: string;
309
+ alt?: 'json' | 'media' | 'proto';
310
310
  /** JSONP */
311
311
  callback?: string;
312
312
  /** Selector specifying which fields to include in a partial response. */
@@ -329,11 +329,11 @@ declare namespace gapi.client {
329
329
  /** Deletes a note. Caller must have the `OWNER` role on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to the note. */
330
330
  delete(request?: {
331
331
  /** V1 error format. */
332
- '$.xgafv'?: string;
332
+ '$.xgafv'?: '1' | '2';
333
333
  /** OAuth access token. */
334
334
  access_token?: string;
335
335
  /** Data format for response. */
336
- alt?: string;
336
+ alt?: 'json' | 'media' | 'proto';
337
337
  /** JSONP */
338
338
  callback?: string;
339
339
  /** Selector specifying which fields to include in a partial response. */
@@ -356,11 +356,11 @@ declare namespace gapi.client {
356
356
  /** Gets a note. */
357
357
  get(request?: {
358
358
  /** V1 error format. */
359
- '$.xgafv'?: string;
359
+ '$.xgafv'?: '1' | '2';
360
360
  /** OAuth access token. */
361
361
  access_token?: string;
362
362
  /** Data format for response. */
363
- alt?: string;
363
+ alt?: 'json' | 'media' | 'proto';
364
364
  /** JSONP */
365
365
  callback?: string;
366
366
  /** Selector specifying which fields to include in a partial response. */
@@ -383,11 +383,11 @@ declare namespace gapi.client {
383
383
  /** Lists notes. Every list call returns a page of results with `page_size` as the upper bound of returned items. A `page_size` of zero allows the server to choose the upper bound. The ListNotesResponse contains at most `page_size` entries. If there are more things left to list, it provides a `next_page_token` value. (Page tokens are opaque values.) To get the next page of results, copy the result's `next_page_token` into the next request's `page_token`. Repeat until the `next_page_token` returned with a page of results is empty. ListNotes return consistent results in the face of concurrent changes, or signals that it cannot with an ABORTED error. */
384
384
  list(request?: {
385
385
  /** V1 error format. */
386
- '$.xgafv'?: string;
386
+ '$.xgafv'?: '1' | '2';
387
387
  /** OAuth access token. */
388
388
  access_token?: string;
389
389
  /** Data format for response. */
390
- alt?: string;
390
+ alt?: 'json' | 'media' | 'proto';
391
391
  /** JSONP */
392
392
  callback?: string;
393
393
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.keep-v1",
3
- "version": "0.1.20260311",
3
+ "version": "0.2.20260601",
4
4
  "description": "TypeScript typings for Google Keep API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Google Keep API:
11
11
  npm install @types/gapi.client.keep-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.keep-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: