@maxim_mazurok/gapi.client.datastore-v1beta3 0.1.20260310 → 0.2.20260529

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 +139 -56
  2. package/package.json +1 -1
  3. package/readme.md +17 -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://datastore.googleapis.com/$discovery/rest?version=v1beta3
12
- // Revision: 20260310
12
+ // Revision: 20260529
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -52,7 +52,12 @@ declare namespace gapi.client {
52
52
  /** The aggregation results for this batch. */
53
53
  aggregationResults?: AggregationResult[];
54
54
  /** The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`. */
55
- moreResults?: string;
55
+ moreResults?:
56
+ | 'MORE_RESULTS_TYPE_UNSPECIFIED'
57
+ | 'NOT_FINISHED'
58
+ | 'MORE_RESULTS_AFTER_LIMIT'
59
+ | 'MORE_RESULTS_AFTER_CURSOR'
60
+ | 'NO_MORE_RESULTS';
56
61
  /** Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. */
57
62
  readTime?: string;
58
63
  }
@@ -82,7 +87,7 @@ declare namespace gapi.client {
82
87
  }
83
88
  interface CommitRequest {
84
89
  /** The type of commit to perform. Defaults to `TRANSACTIONAL`. */
85
- mode?: string;
90
+ mode?: 'MODE_UNSPECIFIED' | 'TRANSACTIONAL' | 'NON_TRANSACTIONAL';
86
91
  /** The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity. */
87
92
  mutations?: Mutation[];
88
93
  /** The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction. */
@@ -100,7 +105,7 @@ declare namespace gapi.client {
100
105
  /** The list of filters to combine. Requires: * At least one filter is present. */
101
106
  filters?: Filter[];
102
107
  /** The operator for combining multiple filters. */
103
- op?: string;
108
+ op?: 'OPERATOR_UNSPECIFIED' | 'AND' | 'OR';
104
109
  }
105
110
  interface Count {
106
111
  /** Optional. Optional constraint on the maximum number of entities to count. This provides a way to set an upper bound on the number of entities to scan, limiting latency, and cost. Unspecified is interpreted as no bound. If a zero value is provided, a count result of zero should always be expected. High-Level Example: ``` AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); ``` Requires: * Must be non-negative when present. */
@@ -152,7 +157,11 @@ declare namespace gapi.client {
152
157
  }
153
158
  interface FindNearest {
154
159
  /** Required. The Distance Measure to use, required. */
155
- distanceMeasure?: string;
160
+ distanceMeasure?:
161
+ | 'DISTANCE_MEASURE_UNSPECIFIED'
162
+ | 'EUCLIDEAN'
163
+ | 'COSINE'
164
+ | 'DOT_PRODUCT';
156
165
  /** Optional. Optional name of the field to output the result of the vector distance calculation. Must conform to entity property limitations. */
157
166
  distanceResultProperty?: string;
158
167
  /** Optional. Option to specify a threshold for which no less similar documents will be returned. The behavior of the specified `distance_measure` will affect the meaning of the distance threshold. Since DOT_PRODUCT distances increase when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold * For DOT_PRODUCT: WHERE distance >= distance_threshold */
@@ -170,11 +179,22 @@ declare namespace gapi.client {
170
179
  /** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
171
180
  labels?: {[P in string]: string};
172
181
  /** The type of the operation. Can be used as a filter in ListOperationsRequest. */
173
- operationType?: string;
182
+ operationType?:
183
+ | 'OPERATION_TYPE_UNSPECIFIED'
184
+ | 'EXPORT_ENTITIES'
185
+ | 'IMPORT_ENTITIES';
174
186
  /** The time that work began on the operation. */
175
187
  startTime?: string;
176
188
  /** The current state of the Operation. */
177
- state?: string;
189
+ state?:
190
+ | 'STATE_UNSPECIFIED'
191
+ | 'INITIALIZING'
192
+ | 'PROCESSING'
193
+ | 'CANCELLING'
194
+ | 'FINALIZING'
195
+ | 'SUCCESSFUL'
196
+ | 'FAILED'
197
+ | 'CANCELLED';
178
198
  }
179
199
  interface GoogleDatastoreAdminV1beta1EntityFilter {
180
200
  /** If empty, then this represents all kinds. */
@@ -222,17 +242,42 @@ declare namespace gapi.client {
222
242
  /** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
223
243
  labels?: {[P in string]: string};
224
244
  /** The type of the operation. Can be used as a filter in ListOperationsRequest. */
225
- operationType?: string;
245
+ operationType?:
246
+ | 'OPERATION_TYPE_UNSPECIFIED'
247
+ | 'EXPORT_ENTITIES'
248
+ | 'IMPORT_ENTITIES'
249
+ | 'CREATE_INDEX'
250
+ | 'DELETE_INDEX';
226
251
  /** The time that work began on the operation. */
227
252
  startTime?: string;
228
253
  /** The current state of the Operation. */
229
- state?: string;
254
+ state?:
255
+ | 'STATE_UNSPECIFIED'
256
+ | 'INITIALIZING'
257
+ | 'PROCESSING'
258
+ | 'CANCELLING'
259
+ | 'FINALIZING'
260
+ | 'SUCCESSFUL'
261
+ | 'FAILED'
262
+ | 'CANCELLED';
230
263
  }
231
264
  interface GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata {
232
265
  /** The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
233
- migrationState?: string;
266
+ migrationState?:
267
+ | 'MIGRATION_STATE_UNSPECIFIED'
268
+ | 'RUNNING'
269
+ | 'PAUSED'
270
+ | 'COMPLETE';
234
271
  /** The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
235
- migrationStep?: string;
272
+ migrationStep?:
273
+ | 'MIGRATION_STEP_UNSPECIFIED'
274
+ | 'PREPARE'
275
+ | 'START'
276
+ | 'APPLY_WRITES_SYNCHRONOUSLY'
277
+ | 'COPY_AND_VERIFY'
278
+ | 'REDIRECT_EVENTUALLY_CONSISTENT_READS'
279
+ | 'REDIRECT_STRONGLY_CONSISTENT_READS'
280
+ | 'REDIRECT_WRITES';
236
281
  }
237
282
  interface GoogleDatastoreAdminV1EntityFilter {
238
283
  /** If empty, then this represents all kinds. */
@@ -282,15 +327,27 @@ declare namespace gapi.client {
282
327
  /** Details for the `REDIRECT_WRITES` step. */
283
328
  redirectWritesStepDetails?: GoogleDatastoreAdminV1RedirectWritesStepDetails;
284
329
  /** The step that is starting. An event with step set to `START` indicates that the migration has been reverted back to the initial pre-migration state. */
285
- step?: string;
330
+ step?:
331
+ | 'MIGRATION_STEP_UNSPECIFIED'
332
+ | 'PREPARE'
333
+ | 'START'
334
+ | 'APPLY_WRITES_SYNCHRONOUSLY'
335
+ | 'COPY_AND_VERIFY'
336
+ | 'REDIRECT_EVENTUALLY_CONSISTENT_READS'
337
+ | 'REDIRECT_STRONGLY_CONSISTENT_READS'
338
+ | 'REDIRECT_WRITES';
286
339
  }
287
340
  interface GoogleDatastoreAdminV1MigrationStateEvent {
288
341
  /** The new state of the migration. */
289
- state?: string;
342
+ state?: 'MIGRATION_STATE_UNSPECIFIED' | 'RUNNING' | 'PAUSED' | 'COMPLETE';
290
343
  }
291
344
  interface GoogleDatastoreAdminV1PrepareStepDetails {
292
345
  /** The concurrency mode this database will use when it reaches the `REDIRECT_WRITES` step. */
293
- concurrencyMode?: string;
346
+ concurrencyMode?:
347
+ | 'CONCURRENCY_MODE_UNSPECIFIED'
348
+ | 'PESSIMISTIC'
349
+ | 'OPTIMISTIC'
350
+ | 'OPTIMISTIC_WITH_ENTITY_GROUPS';
294
351
  }
295
352
  interface GoogleDatastoreAdminV1Progress {
296
353
  /** The amount of work that has been completed. Note that this may be greater than work_estimated. */
@@ -300,7 +357,11 @@ declare namespace gapi.client {
300
357
  }
301
358
  interface GoogleDatastoreAdminV1RedirectWritesStepDetails {
302
359
  /** The concurrency mode for this database. */
303
- concurrencyMode?: string;
360
+ concurrencyMode?:
361
+ | 'CONCURRENCY_MODE_UNSPECIFIED'
362
+ | 'PESSIMISTIC'
363
+ | 'OPTIMISTIC'
364
+ | 'OPTIMISTIC_WITH_ENTITY_GROUPS';
304
365
  }
305
366
  interface GqlQuery {
306
367
  /** When false, the query string must not contain any literals and instead must bind all values. For example, `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while `SELECT * FROM Kind WHERE a = @value` is. */
@@ -356,7 +417,10 @@ declare namespace gapi.client {
356
417
  /** The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts. */
357
418
  baseVersion?: string;
358
419
  /** The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set, then `conflict_detection_strategy` must also be set. */
359
- conflictResolutionStrategy?: string;
420
+ conflictResolutionStrategy?:
421
+ | 'STRATEGY_UNSPECIFIED'
422
+ | 'SERVER_VALUE'
423
+ | 'FAIL';
360
424
  /** The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only. */
361
425
  delete?: Key;
362
426
  /** The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete. */
@@ -402,7 +466,7 @@ declare namespace gapi.client {
402
466
  }
403
467
  interface PlanSummary {
404
468
  /** The indexes selected for the query. For example: [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] */
405
- indexesUsed?: Array<{[P in string]: any}>;
469
+ indexesUsed?: {[P in string]: any}[];
406
470
  }
407
471
  interface Projection {
408
472
  /** The property to project. */
@@ -410,7 +474,17 @@ declare namespace gapi.client {
410
474
  }
411
475
  interface PropertyFilter {
412
476
  /** The operator to filter by. */
413
- op?: string;
477
+ op?:
478
+ | 'OPERATOR_UNSPECIFIED'
479
+ | 'LESS_THAN'
480
+ | 'LESS_THAN_OR_EQUAL'
481
+ | 'GREATER_THAN'
482
+ | 'GREATER_THAN_OR_EQUAL'
483
+ | 'EQUAL'
484
+ | 'IN'
485
+ | 'NOT_EQUAL'
486
+ | 'HAS_ANCESTOR'
487
+ | 'NOT_IN';
414
488
  /** The property to filter by. */
415
489
  property?: PropertyReference;
416
490
  /** The value to compare the property to. */
@@ -422,7 +496,7 @@ declare namespace gapi.client {
422
496
  }
423
497
  interface PropertyOrder {
424
498
  /** The direction to order by. Defaults to `ASCENDING`. */
425
- direction?: string;
499
+ direction?: 'DIRECTION_UNSPECIFIED' | 'ASCENDING' | 'DESCENDING';
426
500
  /** The property to order by. */
427
501
  property?: PropertyReference;
428
502
  }
@@ -444,7 +518,7 @@ declare namespace gapi.client {
444
518
  /** Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates. The corresponding transform result will be the null value. */
445
519
  removeAllFromArray?: ArrayValue;
446
520
  /** Sets the property to the given server value. */
447
- setToServerValue?: string;
521
+ setToServerValue?: 'SERVER_VALUE_UNSPECIFIED' | 'REQUEST_TIME';
448
522
  }
449
523
  interface Query {
450
524
  /** The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`. */
@@ -474,9 +548,18 @@ declare namespace gapi.client {
474
548
  /** The results for this batch. */
475
549
  entityResults?: EntityResult[];
476
550
  /** The result type for every entity in `entity_results`. */
477
- entityResultType?: string;
551
+ entityResultType?:
552
+ | 'RESULT_TYPE_UNSPECIFIED'
553
+ | 'FULL'
554
+ | 'PROJECTION'
555
+ | 'KEY_ONLY';
478
556
  /** The state of the query after the current batch. */
479
- moreResults?: string;
557
+ moreResults?:
558
+ | 'MORE_RESULTS_TYPE_UNSPECIFIED'
559
+ | 'NOT_FINISHED'
560
+ | 'MORE_RESULTS_AFTER_LIMIT'
561
+ | 'MORE_RESULTS_AFTER_CURSOR'
562
+ | 'NO_MORE_RESULTS';
480
563
  /** Read timestamp this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was given) to this batch's `end_cursor` (not the query's `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches. This value will not be set for eventually consistent queries in Cloud Datastore. */
481
564
  readTime?: string;
482
565
  /** A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0. */
@@ -492,7 +575,7 @@ declare namespace gapi.client {
492
575
  }
493
576
  interface ReadOptions {
494
577
  /** The non-transactional read consistency to use. */
495
- readConsistency?: string;
578
+ readConsistency?: 'READ_CONSISTENCY_UNSPECIFIED' | 'STRONG' | 'EVENTUAL';
496
579
  /** Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days. */
497
580
  readTime?: string;
498
581
  /** The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction. */
@@ -588,7 +671,7 @@ declare namespace gapi.client {
588
671
  /** The `meaning` field should only be populated for backwards compatibility. */
589
672
  meaning?: number;
590
673
  /** A null value. */
591
- nullValue?: string;
674
+ nullValue?: 'NULL_VALUE';
592
675
  /** A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. */
593
676
  stringValue?: string;
594
677
  /** A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down. */
@@ -598,11 +681,11 @@ declare namespace gapi.client {
598
681
  /** Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. */
599
682
  allocateIds(request: {
600
683
  /** V1 error format. */
601
- '$.xgafv'?: string;
684
+ '$.xgafv'?: '1' | '2';
602
685
  /** OAuth access token. */
603
686
  access_token?: string;
604
687
  /** Data format for response. */
605
- alt?: string;
688
+ alt?: 'json' | 'media' | 'proto';
606
689
  /** JSONP */
607
690
  callback?: string;
608
691
  /** Selector specifying which fields to include in a partial response. */
@@ -627,11 +710,11 @@ declare namespace gapi.client {
627
710
  allocateIds(
628
711
  request: {
629
712
  /** V1 error format. */
630
- '$.xgafv'?: string;
713
+ '$.xgafv'?: '1' | '2';
631
714
  /** OAuth access token. */
632
715
  access_token?: string;
633
716
  /** Data format for response. */
634
- alt?: string;
717
+ alt?: 'json' | 'media' | 'proto';
635
718
  /** JSONP */
636
719
  callback?: string;
637
720
  /** Selector specifying which fields to include in a partial response. */
@@ -656,11 +739,11 @@ declare namespace gapi.client {
656
739
  /** Begins a new transaction. */
657
740
  beginTransaction(request: {
658
741
  /** V1 error format. */
659
- '$.xgafv'?: string;
742
+ '$.xgafv'?: '1' | '2';
660
743
  /** OAuth access token. */
661
744
  access_token?: string;
662
745
  /** Data format for response. */
663
- alt?: string;
746
+ alt?: 'json' | 'media' | 'proto';
664
747
  /** JSONP */
665
748
  callback?: string;
666
749
  /** Selector specifying which fields to include in a partial response. */
@@ -685,11 +768,11 @@ declare namespace gapi.client {
685
768
  beginTransaction(
686
769
  request: {
687
770
  /** V1 error format. */
688
- '$.xgafv'?: string;
771
+ '$.xgafv'?: '1' | '2';
689
772
  /** OAuth access token. */
690
773
  access_token?: string;
691
774
  /** Data format for response. */
692
- alt?: string;
775
+ alt?: 'json' | 'media' | 'proto';
693
776
  /** JSONP */
694
777
  callback?: string;
695
778
  /** Selector specifying which fields to include in a partial response. */
@@ -714,11 +797,11 @@ declare namespace gapi.client {
714
797
  /** Commits a transaction, optionally creating, deleting or modifying some entities. */
715
798
  commit(request: {
716
799
  /** V1 error format. */
717
- '$.xgafv'?: string;
800
+ '$.xgafv'?: '1' | '2';
718
801
  /** OAuth access token. */
719
802
  access_token?: string;
720
803
  /** Data format for response. */
721
- alt?: string;
804
+ alt?: 'json' | 'media' | 'proto';
722
805
  /** JSONP */
723
806
  callback?: string;
724
807
  /** Selector specifying which fields to include in a partial response. */
@@ -743,11 +826,11 @@ declare namespace gapi.client {
743
826
  commit(
744
827
  request: {
745
828
  /** V1 error format. */
746
- '$.xgafv'?: string;
829
+ '$.xgafv'?: '1' | '2';
747
830
  /** OAuth access token. */
748
831
  access_token?: string;
749
832
  /** Data format for response. */
750
- alt?: string;
833
+ alt?: 'json' | 'media' | 'proto';
751
834
  /** JSONP */
752
835
  callback?: string;
753
836
  /** Selector specifying which fields to include in a partial response. */
@@ -772,11 +855,11 @@ declare namespace gapi.client {
772
855
  /** Looks up entities by key. */
773
856
  lookup(request: {
774
857
  /** V1 error format. */
775
- '$.xgafv'?: string;
858
+ '$.xgafv'?: '1' | '2';
776
859
  /** OAuth access token. */
777
860
  access_token?: string;
778
861
  /** Data format for response. */
779
- alt?: string;
862
+ alt?: 'json' | 'media' | 'proto';
780
863
  /** JSONP */
781
864
  callback?: string;
782
865
  /** Selector specifying which fields to include in a partial response. */
@@ -801,11 +884,11 @@ declare namespace gapi.client {
801
884
  lookup(
802
885
  request: {
803
886
  /** V1 error format. */
804
- '$.xgafv'?: string;
887
+ '$.xgafv'?: '1' | '2';
805
888
  /** OAuth access token. */
806
889
  access_token?: string;
807
890
  /** Data format for response. */
808
- alt?: string;
891
+ alt?: 'json' | 'media' | 'proto';
809
892
  /** JSONP */
810
893
  callback?: string;
811
894
  /** Selector specifying which fields to include in a partial response. */
@@ -830,11 +913,11 @@ declare namespace gapi.client {
830
913
  /** Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. */
831
914
  reserveIds(request: {
832
915
  /** V1 error format. */
833
- '$.xgafv'?: string;
916
+ '$.xgafv'?: '1' | '2';
834
917
  /** OAuth access token. */
835
918
  access_token?: string;
836
919
  /** Data format for response. */
837
- alt?: string;
920
+ alt?: 'json' | 'media' | 'proto';
838
921
  /** JSONP */
839
922
  callback?: string;
840
923
  /** Selector specifying which fields to include in a partial response. */
@@ -859,11 +942,11 @@ declare namespace gapi.client {
859
942
  reserveIds(
860
943
  request: {
861
944
  /** V1 error format. */
862
- '$.xgafv'?: string;
945
+ '$.xgafv'?: '1' | '2';
863
946
  /** OAuth access token. */
864
947
  access_token?: string;
865
948
  /** Data format for response. */
866
- alt?: string;
949
+ alt?: 'json' | 'media' | 'proto';
867
950
  /** JSONP */
868
951
  callback?: string;
869
952
  /** Selector specifying which fields to include in a partial response. */
@@ -888,11 +971,11 @@ declare namespace gapi.client {
888
971
  /** Rolls back a transaction. */
889
972
  rollback(request: {
890
973
  /** V1 error format. */
891
- '$.xgafv'?: string;
974
+ '$.xgafv'?: '1' | '2';
892
975
  /** OAuth access token. */
893
976
  access_token?: string;
894
977
  /** Data format for response. */
895
- alt?: string;
978
+ alt?: 'json' | 'media' | 'proto';
896
979
  /** JSONP */
897
980
  callback?: string;
898
981
  /** Selector specifying which fields to include in a partial response. */
@@ -917,11 +1000,11 @@ declare namespace gapi.client {
917
1000
  rollback(
918
1001
  request: {
919
1002
  /** V1 error format. */
920
- '$.xgafv'?: string;
1003
+ '$.xgafv'?: '1' | '2';
921
1004
  /** OAuth access token. */
922
1005
  access_token?: string;
923
1006
  /** Data format for response. */
924
- alt?: string;
1007
+ alt?: 'json' | 'media' | 'proto';
925
1008
  /** JSONP */
926
1009
  callback?: string;
927
1010
  /** Selector specifying which fields to include in a partial response. */
@@ -946,11 +1029,11 @@ declare namespace gapi.client {
946
1029
  /** Runs an aggregation query. */
947
1030
  runAggregationQuery(request: {
948
1031
  /** V1 error format. */
949
- '$.xgafv'?: string;
1032
+ '$.xgafv'?: '1' | '2';
950
1033
  /** OAuth access token. */
951
1034
  access_token?: string;
952
1035
  /** Data format for response. */
953
- alt?: string;
1036
+ alt?: 'json' | 'media' | 'proto';
954
1037
  /** JSONP */
955
1038
  callback?: string;
956
1039
  /** Selector specifying which fields to include in a partial response. */
@@ -975,11 +1058,11 @@ declare namespace gapi.client {
975
1058
  runAggregationQuery(
976
1059
  request: {
977
1060
  /** V1 error format. */
978
- '$.xgafv'?: string;
1061
+ '$.xgafv'?: '1' | '2';
979
1062
  /** OAuth access token. */
980
1063
  access_token?: string;
981
1064
  /** Data format for response. */
982
- alt?: string;
1065
+ alt?: 'json' | 'media' | 'proto';
983
1066
  /** JSONP */
984
1067
  callback?: string;
985
1068
  /** Selector specifying which fields to include in a partial response. */
@@ -1004,11 +1087,11 @@ declare namespace gapi.client {
1004
1087
  /** Queries for entities. */
1005
1088
  runQuery(request: {
1006
1089
  /** V1 error format. */
1007
- '$.xgafv'?: string;
1090
+ '$.xgafv'?: '1' | '2';
1008
1091
  /** OAuth access token. */
1009
1092
  access_token?: string;
1010
1093
  /** Data format for response. */
1011
- alt?: string;
1094
+ alt?: 'json' | 'media' | 'proto';
1012
1095
  /** JSONP */
1013
1096
  callback?: string;
1014
1097
  /** Selector specifying which fields to include in a partial response. */
@@ -1033,11 +1116,11 @@ declare namespace gapi.client {
1033
1116
  runQuery(
1034
1117
  request: {
1035
1118
  /** V1 error format. */
1036
- '$.xgafv'?: string;
1119
+ '$.xgafv'?: '1' | '2';
1037
1120
  /** OAuth access token. */
1038
1121
  access_token?: string;
1039
1122
  /** Data format for response. */
1040
- alt?: string;
1123
+ alt?: 'json' | 'media' | 'proto';
1041
1124
  /** JSONP */
1042
1125
  callback?: string;
1043
1126
  /** 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.datastore-v1beta3",
3
- "version": "0.1.20260310",
3
+ "version": "0.2.20260529",
4
4
  "description": "TypeScript typings for Cloud Datastore API v1beta3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Cloud Datastore API:
11
11
  npm install @types/gapi.client.datastore-v1beta3 --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": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.datastore-v1beta3"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: