@google-cloud/firestore-api 0.1.0

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 (58) hide show
  1. package/README.md +111 -0
  2. package/build/protos/google/firestore/admin/v1/backup.proto +112 -0
  3. package/build/protos/google/firestore/admin/v1/database.proto +403 -0
  4. package/build/protos/google/firestore/admin/v1/field.proto +154 -0
  5. package/build/protos/google/firestore/admin/v1/firestore_admin.proto +1229 -0
  6. package/build/protos/google/firestore/admin/v1/index.proto +378 -0
  7. package/build/protos/google/firestore/admin/v1/location.proto +30 -0
  8. package/build/protos/google/firestore/admin/v1/operation.proto +330 -0
  9. package/build/protos/google/firestore/admin/v1/realtime_updates.proto +40 -0
  10. package/build/protos/google/firestore/admin/v1/schedule.proto +95 -0
  11. package/build/protos/google/firestore/admin/v1/snapshot.proto +53 -0
  12. package/build/protos/google/firestore/admin/v1/user_creds.proto +86 -0
  13. package/build/protos/google/firestore/v1/aggregation_result.proto +43 -0
  14. package/build/protos/google/firestore/v1/bloom_filter.proto +73 -0
  15. package/build/protos/google/firestore/v1/common.proto +111 -0
  16. package/build/protos/google/firestore/v1/document.proto +247 -0
  17. package/build/protos/google/firestore/v1/explain_stats.proto +41 -0
  18. package/build/protos/google/firestore/v1/firestore.proto +1237 -0
  19. package/build/protos/google/firestore/v1/pipeline.proto +43 -0
  20. package/build/protos/google/firestore/v1/query.proto +600 -0
  21. package/build/protos/google/firestore/v1/query_profile.proto +92 -0
  22. package/build/protos/google/firestore/v1/write.proto +286 -0
  23. package/build/protos/google/firestore/v1beta1/common.proto +82 -0
  24. package/build/protos/google/firestore/v1beta1/document.proto +149 -0
  25. package/build/protos/google/firestore/v1beta1/firestore.proto +900 -0
  26. package/build/protos/google/firestore/v1beta1/query.proto +300 -0
  27. package/build/protos/google/firestore/v1beta1/undeliverable_first_gen_event.proto +75 -0
  28. package/build/protos/google/firestore/v1beta1/write.proto +258 -0
  29. package/build/protos/protos.d.ts +35648 -0
  30. package/build/protos/protos.js +1 -0
  31. package/build/protos/protos.json +1 -0
  32. package/build/src/index.d.ts +13 -0
  33. package/build/src/index.js +30 -0
  34. package/build/src/index.js.map +1 -0
  35. package/build/src/v1/firestore_admin_client.d.ts +1925 -0
  36. package/build/src/v1/firestore_admin_client.js +2734 -0
  37. package/build/src/v1/firestore_admin_client.js.map +1 -0
  38. package/build/src/v1/firestore_admin_client_config.json +172 -0
  39. package/build/src/v1/firestore_admin_proto_list.json +13 -0
  40. package/build/src/v1/firestore_client.d.ts +1204 -0
  41. package/build/src/v1/firestore_client.js +1605 -0
  42. package/build/src/v1/firestore_client.js.map +1 -0
  43. package/build/src/v1/firestore_client_config.json +135 -0
  44. package/build/src/v1/firestore_proto_list.json +12 -0
  45. package/build/src/v1/gapic_metadata.json +351 -0
  46. package/build/src/v1/index.d.ts +2 -0
  47. package/build/src/v1/index.js +25 -0
  48. package/build/src/v1/index.js.map +1 -0
  49. package/build/src/v1beta1/firestore_client.d.ts +930 -0
  50. package/build/src/v1beta1/firestore_client.js +1310 -0
  51. package/build/src/v1beta1/firestore_client.js.map +1 -0
  52. package/build/src/v1beta1/firestore_client_config.json +99 -0
  53. package/build/src/v1beta1/firestore_proto_list.json +8 -0
  54. package/build/src/v1beta1/gapic_metadata.json +165 -0
  55. package/build/src/v1beta1/index.d.ts +1 -0
  56. package/build/src/v1beta1/index.js +23 -0
  57. package/build/src/v1beta1/index.js.map +1 -0
  58. package/package.json +65 -0
@@ -0,0 +1,154 @@
1
+ // Copyright 2026 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.firestore.admin.v1;
18
+
19
+ import "google/api/field_behavior.proto";
20
+ import "google/api/resource.proto";
21
+ import "google/firestore/admin/v1/index.proto";
22
+ import "google/protobuf/duration.proto";
23
+
24
+ option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
25
+ option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
26
+ option java_multiple_files = true;
27
+ option java_outer_classname = "FieldProto";
28
+ option java_package = "com.google.firestore.admin.v1";
29
+ option objc_class_prefix = "GCFS";
30
+ option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
31
+ option ruby_package = "Google::Cloud::Firestore::Admin::V1";
32
+
33
+ // Represents a single field in the database.
34
+ //
35
+ // Fields are grouped by their "Collection Group", which represent all
36
+ // collections in the database with the same ID.
37
+ message Field {
38
+ option (google.api.resource) = {
39
+ type: "firestore.googleapis.com/Field"
40
+ pattern: "projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}"
41
+ };
42
+
43
+ // The index configuration for this field.
44
+ message IndexConfig {
45
+ // The indexes supported for this field.
46
+ repeated Index indexes = 1;
47
+
48
+ // Output only. When true, the `Field`'s index configuration is set from the
49
+ // configuration specified by the `ancestor_field`.
50
+ // When false, the `Field`'s index configuration is defined explicitly.
51
+ bool uses_ancestor_config = 2;
52
+
53
+ // Output only. Specifies the resource name of the `Field` from which this
54
+ // field's index configuration is set (when `uses_ancestor_config` is true),
55
+ // or from which it *would* be set if this field had no index configuration
56
+ // (when `uses_ancestor_config` is false).
57
+ string ancestor_field = 3;
58
+
59
+ // Output only
60
+ // When true, the `Field`'s index configuration is in the process of being
61
+ // reverted. Once complete, the index config will transition to the same
62
+ // state as the field specified by `ancestor_field`, at which point
63
+ // `uses_ancestor_config` will be `true` and `reverting` will be `false`.
64
+ bool reverting = 4;
65
+ }
66
+
67
+ // The TTL (time-to-live) configuration for documents that have this `Field`
68
+ // set.
69
+ //
70
+ // A timestamp stored in a TTL-enabled field will be used to determine the
71
+ // expiration time of the document. The expiration time is the sum
72
+ // of the timestamp value and the `expiration_offset`.
73
+ //
74
+ // For Enterprise edition databases, the timestamp value may alternatively be
75
+ // stored in an array value in the TTL-enabled field.
76
+ //
77
+ // An expiration time in the past indicates that the document is eligible for
78
+ // immediate expiration. Using any other data type or leaving the field absent
79
+ // will disable expiration for the individual document.
80
+ message TtlConfig {
81
+ // The state of applying the TTL configuration to all documents.
82
+ enum State {
83
+ // The state is unspecified or unknown.
84
+ STATE_UNSPECIFIED = 0;
85
+
86
+ // The TTL is being applied. There is an active long-running operation to
87
+ // track the change. Newly written documents will have TTLs applied as
88
+ // requested. Requested TTLs on existing documents are still being
89
+ // processed. When TTLs on all existing documents have been processed, the
90
+ // state will move to 'ACTIVE'.
91
+ CREATING = 1;
92
+
93
+ // The TTL is active for all documents.
94
+ ACTIVE = 2;
95
+
96
+ // The TTL configuration could not be enabled for all existing documents.
97
+ // Newly written documents will continue to have their TTL applied.
98
+ // The LRO returned when last attempting to enable TTL for this `Field`
99
+ // has failed, and may have more details.
100
+ NEEDS_REPAIR = 3;
101
+ }
102
+
103
+ // Output only. The state of the TTL configuration.
104
+ State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
105
+
106
+ // Optional. The offset, relative to the timestamp value from the
107
+ // TTL-enabled field, used to determine the document's expiration time.
108
+ //
109
+ // `expiration_offset.seconds` must be between 0 and 2,147,483,647
110
+ // inclusive. Values more precise than seconds are rejected.
111
+ //
112
+ // If unset, defaults to 0, in which case the expiration time is the same
113
+ // as the timestamp value from the TTL-enabled field.
114
+ google.protobuf.Duration expiration_offset = 3
115
+ [(google.api.field_behavior) = OPTIONAL];
116
+ }
117
+
118
+ // Required. A field name of the form:
119
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
120
+ //
121
+ // A field path can be a simple field name, e.g. `address` or a path to fields
122
+ // within `map_value` , e.g. `address.city`,
123
+ // or a special field path. The only valid special field is `*`, which
124
+ // represents any field.
125
+ //
126
+ // Field paths can be quoted using `` ` `` (backtick). The only character that
127
+ // must be escaped within a quoted field path is the backtick character
128
+ // itself, escaped using a backslash. Special characters in field paths that
129
+ // must be quoted include: `*`, `.`,
130
+ // `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
131
+ //
132
+ // Examples:
133
+ // `` `address.city` `` represents a field named `address.city`, not the map
134
+ // key `city` in the field `address`. `` `*` `` represents a field named `*`,
135
+ // not any field.
136
+ //
137
+ // A special `Field` contains the default indexing settings for all fields.
138
+ // This field's resource name is:
139
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
140
+ // Indexes defined on this `Field` will be applied to all fields which do not
141
+ // have their own `Field` index configuration.
142
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
143
+
144
+ // The index configuration for this field. If unset, field indexing will
145
+ // revert to the configuration defined by the `ancestor_field`. To
146
+ // explicitly remove all indexes for this field, specify an index config
147
+ // with an empty list of indexes.
148
+ IndexConfig index_config = 2;
149
+
150
+ // The TTL configuration for this `Field`.
151
+ // Setting or unsetting this will enable or disable the TTL for
152
+ // documents that have this `Field`.
153
+ TtlConfig ttl_config = 3;
154
+ }