statelydb 0.25.0 → 0.28.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.
- checksums.yaml +4 -4
- data/README.md +1 -6
- data/lib/api/auth/get_auth_token_pb.rb +1 -1
- data/lib/api/auth/service_pb.rb +1 -1
- data/lib/api/db/continue_list_pb.rb +1 -1
- data/lib/api/db/continue_scan_pb.rb +1 -1
- data/lib/api/db/delete_pb.rb +1 -1
- data/lib/api/db/get_pb.rb +1 -1
- data/lib/api/db/item_pb.rb +1 -1
- data/lib/api/db/item_property_pb.rb +1 -1
- data/lib/api/db/list_filters_pb.rb +17 -0
- data/lib/api/db/list_pb.rb +5 -2
- data/lib/api/db/list_token_pb.rb +1 -1
- data/lib/api/db/put_pb.rb +1 -1
- data/lib/api/db/scan_pb.rb +4 -3
- data/lib/api/db/service_pb.rb +2 -3
- data/lib/api/db/service_services_pb.rb +0 -6
- data/lib/api/db/sync_list_pb.rb +1 -1
- data/lib/api/db/transaction_pb.rb +3 -2
- data/lib/api/errors/error_details_pb.rb +1 -1
- data/lib/common/auth/auth_token_provider.rb +25 -7
- data/lib/common/auth/interceptor.rb +3 -2
- data/lib/common/auth/token_provider.rb +7 -0
- data/lib/statelydb.rb +6 -4
- data/lib/uuid.rb +1 -1
- data/lib/version.rb +5 -0
- data/rbi/db/delete_pb.rbi +3 -3
- data/rbi/db/get_pb.rbi +15 -21
- data/rbi/db/list_filters_pb.rbi +69 -0
- data/rbi/db/list_pb.rbi +275 -20
- data/rbi/db/put_pb.rbi +15 -21
- data/rbi/db/scan_pb.rbi +12 -81
- data/rbi/db/service_services_pb.rbi +0 -13
- data/rbi/db/transaction_pb.rbi +34 -11
- data/rbi/statelydb.rbi +19 -9
- data/sig/statelydb.rbs +21 -12
- metadata +10 -6
- data/lib/api/db/scan_root_paths_pb.rb +0 -19
data/rbi/db/list_pb.rbi
CHANGED
@@ -15,7 +15,9 @@ class Stately::Db::BeginListRequest
|
|
15
15
|
sort_property: T.nilable(T.any(Symbol, String, Integer)),
|
16
16
|
sort_direction: T.nilable(T.any(Symbol, String, Integer)),
|
17
17
|
schema_version_id: T.nilable(Integer),
|
18
|
-
schema_id: T.nilable(Integer)
|
18
|
+
schema_id: T.nilable(Integer),
|
19
|
+
filter_conditions: T.nilable(T::Array[T.nilable(Stately::Db::FilterCondition)]),
|
20
|
+
key_conditions: T.nilable(T::Array[T.nilable(Stately::Db::KeyCondition)])
|
19
21
|
).void
|
20
22
|
end
|
21
23
|
def initialize(
|
@@ -26,7 +28,9 @@ class Stately::Db::BeginListRequest
|
|
26
28
|
sort_property: :SORTABLE_PROPERTY_KEY_PATH,
|
27
29
|
sort_direction: :SORT_ASCENDING,
|
28
30
|
schema_version_id: 0,
|
29
|
-
schema_id: 0
|
31
|
+
schema_id: 0,
|
32
|
+
filter_conditions: [],
|
33
|
+
key_conditions: []
|
30
34
|
)
|
31
35
|
end
|
32
36
|
|
@@ -150,32 +154,26 @@ class Stately::Db::BeginListRequest
|
|
150
154
|
def clear_sort_direction
|
151
155
|
end
|
152
156
|
|
153
|
-
# schema_version_id
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
# set this manually as your generated SDK should know its schema version
|
158
|
-
# and wire this in for you.
|
157
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
158
|
+
# items. If there is no version with this ID, the operation will error with
|
159
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
160
|
+
# your generated SDK should know its schema version and wire this in for you.
|
159
161
|
sig { returns(Integer) }
|
160
162
|
def schema_version_id
|
161
163
|
end
|
162
164
|
|
163
|
-
# schema_version_id
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
167
|
-
# set this manually as your generated SDK should know its schema version
|
168
|
-
# and wire this in for you.
|
165
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
166
|
+
# items. If there is no version with this ID, the operation will error with
|
167
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
168
|
+
# your generated SDK should know its schema version and wire this in for you.
|
169
169
|
sig { params(value: Integer).void }
|
170
170
|
def schema_version_id=(value)
|
171
171
|
end
|
172
172
|
|
173
|
-
# schema_version_id
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
# set this manually as your generated SDK should know its schema version
|
178
|
-
# and wire this in for you.
|
173
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
174
|
+
# items. If there is no version with this ID, the operation will error with
|
175
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
176
|
+
# your generated SDK should know its schema version and wire this in for you.
|
179
177
|
sig { void }
|
180
178
|
def clear_schema_version_id
|
181
179
|
end
|
@@ -204,6 +202,123 @@ class Stately::Db::BeginListRequest
|
|
204
202
|
def clear_schema_id
|
205
203
|
end
|
206
204
|
|
205
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
206
|
+
# If no conditions are provided, all items in the store will be returned.
|
207
|
+
# Filter conditions are combined with OR.
|
208
|
+
sig { returns(T::Array[T.nilable(Stately::Db::FilterCondition)]) }
|
209
|
+
def filter_conditions
|
210
|
+
end
|
211
|
+
|
212
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
213
|
+
# If no conditions are provided, all items in the store will be returned.
|
214
|
+
# Filter conditions are combined with OR.
|
215
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
216
|
+
def filter_conditions=(value)
|
217
|
+
end
|
218
|
+
|
219
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
220
|
+
# If no conditions are provided, all items in the store will be returned.
|
221
|
+
# Filter conditions are combined with OR.
|
222
|
+
sig { void }
|
223
|
+
def clear_filter_conditions
|
224
|
+
end
|
225
|
+
|
226
|
+
# key_conditions are a set of conditions to apply to the list operation.
|
227
|
+
# Wherever possible, Stately will apply these key conditions at the DB layer
|
228
|
+
# to optimize the list operation cost.
|
229
|
+
#
|
230
|
+
# A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
|
231
|
+
# operator and one with a LESS_THAN (or equal to) operator. Together these amount to
|
232
|
+
# a "between" condition on the key path.
|
233
|
+
#
|
234
|
+
# If these conditions are provided they must share the same prefix as the
|
235
|
+
# key_path_prefix. For example, the following is valid:
|
236
|
+
#
|
237
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
238
|
+
# key_conditions:
|
239
|
+
# - key_path: "/group-:groupID/namespace-44"
|
240
|
+
# operator: GREATER_THAN_OR_EQUAL
|
241
|
+
# - key_path: "/group-:groupID/namespace-100"
|
242
|
+
# operator: LESS_THAN_OR_EQUAL
|
243
|
+
#
|
244
|
+
# A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
|
245
|
+
# with the key conditions.
|
246
|
+
#
|
247
|
+
# The following is NOT valid because the key_path_prefix does not
|
248
|
+
# share the same prefix as the key conditions:
|
249
|
+
#
|
250
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
251
|
+
# key_conditions:
|
252
|
+
# - key_path: "/group-:groupID/beatles-1984"
|
253
|
+
# operator: GREATER_THAN_OR_EQUAL
|
254
|
+
sig { returns(T::Array[T.nilable(Stately::Db::KeyCondition)]) }
|
255
|
+
def key_conditions
|
256
|
+
end
|
257
|
+
|
258
|
+
# key_conditions are a set of conditions to apply to the list operation.
|
259
|
+
# Wherever possible, Stately will apply these key conditions at the DB layer
|
260
|
+
# to optimize the list operation cost.
|
261
|
+
#
|
262
|
+
# A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
|
263
|
+
# operator and one with a LESS_THAN (or equal to) operator. Together these amount to
|
264
|
+
# a "between" condition on the key path.
|
265
|
+
#
|
266
|
+
# If these conditions are provided they must share the same prefix as the
|
267
|
+
# key_path_prefix. For example, the following is valid:
|
268
|
+
#
|
269
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
270
|
+
# key_conditions:
|
271
|
+
# - key_path: "/group-:groupID/namespace-44"
|
272
|
+
# operator: GREATER_THAN_OR_EQUAL
|
273
|
+
# - key_path: "/group-:groupID/namespace-100"
|
274
|
+
# operator: LESS_THAN_OR_EQUAL
|
275
|
+
#
|
276
|
+
# A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
|
277
|
+
# with the key conditions.
|
278
|
+
#
|
279
|
+
# The following is NOT valid because the key_path_prefix does not
|
280
|
+
# share the same prefix as the key conditions:
|
281
|
+
#
|
282
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
283
|
+
# key_conditions:
|
284
|
+
# - key_path: "/group-:groupID/beatles-1984"
|
285
|
+
# operator: GREATER_THAN_OR_EQUAL
|
286
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
287
|
+
def key_conditions=(value)
|
288
|
+
end
|
289
|
+
|
290
|
+
# key_conditions are a set of conditions to apply to the list operation.
|
291
|
+
# Wherever possible, Stately will apply these key conditions at the DB layer
|
292
|
+
# to optimize the list operation cost.
|
293
|
+
#
|
294
|
+
# A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
|
295
|
+
# operator and one with a LESS_THAN (or equal to) operator. Together these amount to
|
296
|
+
# a "between" condition on the key path.
|
297
|
+
#
|
298
|
+
# If these conditions are provided they must share the same prefix as the
|
299
|
+
# key_path_prefix. For example, the following is valid:
|
300
|
+
#
|
301
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
302
|
+
# key_conditions:
|
303
|
+
# - key_path: "/group-:groupID/namespace-44"
|
304
|
+
# operator: GREATER_THAN_OR_EQUAL
|
305
|
+
# - key_path: "/group-:groupID/namespace-100"
|
306
|
+
# operator: LESS_THAN_OR_EQUAL
|
307
|
+
#
|
308
|
+
# A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
|
309
|
+
# with the key conditions.
|
310
|
+
#
|
311
|
+
# The following is NOT valid because the key_path_prefix does not
|
312
|
+
# share the same prefix as the key conditions:
|
313
|
+
#
|
314
|
+
# key_path_prefix: "/group-:groupID/namespace"
|
315
|
+
# key_conditions:
|
316
|
+
# - key_path: "/group-:groupID/beatles-1984"
|
317
|
+
# operator: GREATER_THAN_OR_EQUAL
|
318
|
+
sig { void }
|
319
|
+
def clear_key_conditions
|
320
|
+
end
|
321
|
+
|
207
322
|
sig { params(field: String).returns(T.untyped) }
|
208
323
|
def [](field)
|
209
324
|
end
|
@@ -454,6 +569,126 @@ class Stately::Db::ListFinished
|
|
454
569
|
end
|
455
570
|
end
|
456
571
|
|
572
|
+
# A KeyCondition is an additional constraint to be applied to the list
|
573
|
+
# operation. It is used to filter the results based on a specific key path
|
574
|
+
# and an operator.
|
575
|
+
# Wherever possible, stately will apply these key conditions at the DB layer
|
576
|
+
# to optimize the list operation latency and cost.
|
577
|
+
# Key conditions may be combined with a key_path_prefix to further
|
578
|
+
# optimize the list operation. HOWEVER Key conditions must share the
|
579
|
+
# same prefix as the key_path_prefix.
|
580
|
+
class Stately::Db::KeyCondition
|
581
|
+
include ::Google::Protobuf::MessageExts
|
582
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
583
|
+
|
584
|
+
sig do
|
585
|
+
params(
|
586
|
+
key_path: T.nilable(String),
|
587
|
+
operator: T.nilable(T.any(Symbol, String, Integer))
|
588
|
+
).void
|
589
|
+
end
|
590
|
+
def initialize(
|
591
|
+
key_path: "",
|
592
|
+
operator: :OPERATOR_UNSPECIFIED
|
593
|
+
)
|
594
|
+
end
|
595
|
+
|
596
|
+
# key_path is a valid key prefix (or full key) used to filter or optimize the list
|
597
|
+
# operation based on the operator specified below.
|
598
|
+
sig { returns(String) }
|
599
|
+
def key_path
|
600
|
+
end
|
601
|
+
|
602
|
+
# key_path is a valid key prefix (or full key) used to filter or optimize the list
|
603
|
+
# operation based on the operator specified below.
|
604
|
+
sig { params(value: String).void }
|
605
|
+
def key_path=(value)
|
606
|
+
end
|
607
|
+
|
608
|
+
# key_path is a valid key prefix (or full key) used to filter or optimize the list
|
609
|
+
# operation based on the operator specified below.
|
610
|
+
sig { void }
|
611
|
+
def clear_key_path
|
612
|
+
end
|
613
|
+
|
614
|
+
# Operator indicates how to apply key_path condition to the list operation.
|
615
|
+
# Valid options are:
|
616
|
+
# - GREATER_THAN: key_path must be greater than the specified value
|
617
|
+
# - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
|
618
|
+
# - LESS_THAN: key_path must be less than the specified value
|
619
|
+
# - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
|
620
|
+
#
|
621
|
+
# Note: Operators are strictly evaluated they do not change meaning based on sort direction.
|
622
|
+
# For example, regardless of sort direction, a GREATER_THAN operator
|
623
|
+
# will still mean that a key_path must be greater than the specified value in order
|
624
|
+
# to be included in the result set.
|
625
|
+
sig { returns(T.any(Symbol, Integer)) }
|
626
|
+
def operator
|
627
|
+
end
|
628
|
+
|
629
|
+
# Operator indicates how to apply key_path condition to the list operation.
|
630
|
+
# Valid options are:
|
631
|
+
# - GREATER_THAN: key_path must be greater than the specified value
|
632
|
+
# - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
|
633
|
+
# - LESS_THAN: key_path must be less than the specified value
|
634
|
+
# - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
|
635
|
+
#
|
636
|
+
# Note: Operators are strictly evaluated they do not change meaning based on sort direction.
|
637
|
+
# For example, regardless of sort direction, a GREATER_THAN operator
|
638
|
+
# will still mean that a key_path must be greater than the specified value in order
|
639
|
+
# to be included in the result set.
|
640
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
641
|
+
def operator=(value)
|
642
|
+
end
|
643
|
+
|
644
|
+
# Operator indicates how to apply key_path condition to the list operation.
|
645
|
+
# Valid options are:
|
646
|
+
# - GREATER_THAN: key_path must be greater than the specified value
|
647
|
+
# - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
|
648
|
+
# - LESS_THAN: key_path must be less than the specified value
|
649
|
+
# - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
|
650
|
+
#
|
651
|
+
# Note: Operators are strictly evaluated they do not change meaning based on sort direction.
|
652
|
+
# For example, regardless of sort direction, a GREATER_THAN operator
|
653
|
+
# will still mean that a key_path must be greater than the specified value in order
|
654
|
+
# to be included in the result set.
|
655
|
+
sig { void }
|
656
|
+
def clear_operator
|
657
|
+
end
|
658
|
+
|
659
|
+
sig { params(field: String).returns(T.untyped) }
|
660
|
+
def [](field)
|
661
|
+
end
|
662
|
+
|
663
|
+
sig { params(field: String, value: T.untyped).void }
|
664
|
+
def []=(field, value)
|
665
|
+
end
|
666
|
+
|
667
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
668
|
+
def to_h
|
669
|
+
end
|
670
|
+
|
671
|
+
sig { params(str: String).returns(Stately::Db::KeyCondition) }
|
672
|
+
def self.decode(str)
|
673
|
+
end
|
674
|
+
|
675
|
+
sig { params(msg: Stately::Db::KeyCondition).returns(String) }
|
676
|
+
def self.encode(msg)
|
677
|
+
end
|
678
|
+
|
679
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::KeyCondition) }
|
680
|
+
def self.decode_json(str, **kw)
|
681
|
+
end
|
682
|
+
|
683
|
+
sig { params(msg: Stately::Db::KeyCondition, kw: T.untyped).returns(String) }
|
684
|
+
def self.encode_json(msg, **kw)
|
685
|
+
end
|
686
|
+
|
687
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
688
|
+
def self.descriptor
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
457
692
|
module Stately::Db::SortDirection
|
458
693
|
self::SORT_ASCENDING = T.let(0, Integer)
|
459
694
|
self::SORT_DESCENDING = T.let(1, Integer)
|
@@ -470,3 +705,23 @@ module Stately::Db::SortDirection
|
|
470
705
|
def self.descriptor
|
471
706
|
end
|
472
707
|
end
|
708
|
+
|
709
|
+
module Stately::Db::Operator
|
710
|
+
self::OPERATOR_UNSPECIFIED = T.let(0, Integer)
|
711
|
+
self::OPERATOR_GREATER_THAN = T.let(4, Integer)
|
712
|
+
self::OPERATOR_GREATER_THAN_OR_EQUAL = T.let(5, Integer)
|
713
|
+
self::OPERATOR_LESS_THAN = T.let(6, Integer)
|
714
|
+
self::OPERATOR_LESS_THAN_OR_EQUAL = T.let(7, Integer)
|
715
|
+
|
716
|
+
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
717
|
+
def self.lookup(value)
|
718
|
+
end
|
719
|
+
|
720
|
+
sig { params(value: Symbol).returns(T.nilable(Integer)) }
|
721
|
+
def self.resolve(value)
|
722
|
+
end
|
723
|
+
|
724
|
+
sig { returns(::Google::Protobuf::EnumDescriptor) }
|
725
|
+
def self.descriptor
|
726
|
+
end
|
727
|
+
end
|
data/rbi/db/put_pb.rbi
CHANGED
@@ -40,47 +40,41 @@ class Stately::Db::PutRequest
|
|
40
40
|
def clear_store_id
|
41
41
|
end
|
42
42
|
|
43
|
-
#
|
43
|
+
# items to put into the store.
|
44
44
|
sig { returns(T::Array[T.nilable(Stately::Db::PutItem)]) }
|
45
45
|
def puts
|
46
46
|
end
|
47
47
|
|
48
|
-
#
|
48
|
+
# items to put into the store.
|
49
49
|
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
50
50
|
def puts=(value)
|
51
51
|
end
|
52
52
|
|
53
|
-
#
|
53
|
+
# items to put into the store.
|
54
54
|
sig { void }
|
55
55
|
def clear_puts
|
56
56
|
end
|
57
57
|
|
58
|
-
# schema_version_id
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
# as your generated SDK should know its schema version and wire this in for
|
63
|
-
# you.
|
58
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
59
|
+
# items. If there is no version with this ID, the operation will error with
|
60
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
61
|
+
# your generated SDK should know its schema version and wire this in for you.
|
64
62
|
sig { returns(Integer) }
|
65
63
|
def schema_version_id
|
66
64
|
end
|
67
65
|
|
68
|
-
# schema_version_id
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
# as your generated SDK should know its schema version and wire this in for
|
73
|
-
# you.
|
66
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
67
|
+
# items. If there is no version with this ID, the operation will error with
|
68
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
69
|
+
# your generated SDK should know its schema version and wire this in for you.
|
74
70
|
sig { params(value: Integer).void }
|
75
71
|
def schema_version_id=(value)
|
76
72
|
end
|
77
73
|
|
78
|
-
# schema_version_id
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
# as your generated SDK should know its schema version and wire this in for
|
83
|
-
# you.
|
74
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
75
|
+
# items. If there is no version with this ID, the operation will error with
|
76
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
77
|
+
# your generated SDK should know its schema version and wire this in for you.
|
84
78
|
sig { void }
|
85
79
|
def clear_schema_version_id
|
86
80
|
end
|
data/rbi/db/scan_pb.rbi
CHANGED
@@ -2,72 +2,6 @@
|
|
2
2
|
# source: db/scan.proto
|
3
3
|
# typed: strict
|
4
4
|
|
5
|
-
class Stately::Db::FilterCondition
|
6
|
-
include ::Google::Protobuf::MessageExts
|
7
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
8
|
-
|
9
|
-
sig do
|
10
|
-
params(
|
11
|
-
item_type: T.nilable(String)
|
12
|
-
).void
|
13
|
-
end
|
14
|
-
def initialize(
|
15
|
-
item_type: ""
|
16
|
-
)
|
17
|
-
end
|
18
|
-
|
19
|
-
# item_type is the type of item to filter by.
|
20
|
-
sig { returns(String) }
|
21
|
-
def item_type
|
22
|
-
end
|
23
|
-
|
24
|
-
# item_type is the type of item to filter by.
|
25
|
-
sig { params(value: String).void }
|
26
|
-
def item_type=(value)
|
27
|
-
end
|
28
|
-
|
29
|
-
# item_type is the type of item to filter by.
|
30
|
-
sig { void }
|
31
|
-
def clear_item_type
|
32
|
-
end
|
33
|
-
|
34
|
-
sig { returns(T.nilable(Symbol)) }
|
35
|
-
def value
|
36
|
-
end
|
37
|
-
|
38
|
-
sig { params(field: String).returns(T.untyped) }
|
39
|
-
def [](field)
|
40
|
-
end
|
41
|
-
|
42
|
-
sig { params(field: String, value: T.untyped).void }
|
43
|
-
def []=(field, value)
|
44
|
-
end
|
45
|
-
|
46
|
-
sig { returns(T::Hash[Symbol, T.untyped]) }
|
47
|
-
def to_h
|
48
|
-
end
|
49
|
-
|
50
|
-
sig { params(str: String).returns(Stately::Db::FilterCondition) }
|
51
|
-
def self.decode(str)
|
52
|
-
end
|
53
|
-
|
54
|
-
sig { params(msg: Stately::Db::FilterCondition).returns(String) }
|
55
|
-
def self.encode(msg)
|
56
|
-
end
|
57
|
-
|
58
|
-
sig { params(str: String, kw: T.untyped).returns(Stately::Db::FilterCondition) }
|
59
|
-
def self.decode_json(str, **kw)
|
60
|
-
end
|
61
|
-
|
62
|
-
sig { params(msg: Stately::Db::FilterCondition, kw: T.untyped).returns(String) }
|
63
|
-
def self.encode_json(msg, **kw)
|
64
|
-
end
|
65
|
-
|
66
|
-
sig { returns(::Google::Protobuf::Descriptor) }
|
67
|
-
def self.descriptor
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
5
|
class Stately::Db::BeginScanRequest
|
72
6
|
include ::Google::Protobuf::MessageExts
|
73
7
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -188,29 +122,26 @@ class Stately::Db::BeginScanRequest
|
|
188
122
|
def clear_segmentation_params
|
189
123
|
end
|
190
124
|
|
191
|
-
# schema_version_id
|
192
|
-
# If
|
193
|
-
#
|
194
|
-
#
|
195
|
-
# and wire this in for you.
|
125
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
126
|
+
# items. If there is no version with this ID, the operation will error with
|
127
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
128
|
+
# your generated SDK should know its schema version and wire this in for you.
|
196
129
|
sig { returns(Integer) }
|
197
130
|
def schema_version_id
|
198
131
|
end
|
199
132
|
|
200
|
-
# schema_version_id
|
201
|
-
# If
|
202
|
-
#
|
203
|
-
#
|
204
|
-
# and wire this in for you.
|
133
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
134
|
+
# items. If there is no version with this ID, the operation will error with
|
135
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
136
|
+
# your generated SDK should know its schema version and wire this in for you.
|
205
137
|
sig { params(value: Integer).void }
|
206
138
|
def schema_version_id=(value)
|
207
139
|
end
|
208
140
|
|
209
|
-
# schema_version_id
|
210
|
-
# If
|
211
|
-
#
|
212
|
-
#
|
213
|
-
# and wire this in for you.
|
141
|
+
# schema_version_id is the version of the store's schema to use to interpret
|
142
|
+
# items. If there is no version with this ID, the operation will error with
|
143
|
+
# SchemaVersionNotFound error. You should not have to set this manually as
|
144
|
+
# your generated SDK should know its schema version and wire this in for you.
|
214
145
|
sig { void }
|
215
146
|
def clear_schema_version_id
|
216
147
|
end
|
@@ -167,18 +167,5 @@ module Stately::Db::DatabaseService
|
|
167
167
|
end
|
168
168
|
def transaction(request)
|
169
169
|
end
|
170
|
-
|
171
|
-
# ScanRootPaths lists root paths (Groups) in the Store. This is a very
|
172
|
-
# expensive operation, as it must consult multiple partitions and it reads
|
173
|
-
# and ignores a lot of data. It is provided for use in the web console's data
|
174
|
-
# browser and is not exposed to customers. This operation will fail if the
|
175
|
-
# caller does not have permission to read Items.
|
176
|
-
sig do
|
177
|
-
params(
|
178
|
-
request: Stately::Db::ScanRootPathsRequest
|
179
|
-
).returns(Stately::Db::ScanRootPathsResponse)
|
180
|
-
end
|
181
|
-
def scan_root_paths(request)
|
182
|
-
end
|
183
170
|
end
|
184
171
|
end
|
data/rbi/db/transaction_pb.rbi
CHANGED
@@ -559,17 +559,17 @@ class Stately::Db::TransactionGet
|
|
559
559
|
)
|
560
560
|
end
|
561
561
|
|
562
|
-
#
|
562
|
+
# key paths to of each item to get.
|
563
563
|
sig { returns(T::Array[T.nilable(Stately::Db::GetItem)]) }
|
564
564
|
def gets
|
565
565
|
end
|
566
566
|
|
567
|
-
#
|
567
|
+
# key paths to of each item to get.
|
568
568
|
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
569
569
|
def gets=(value)
|
570
570
|
end
|
571
571
|
|
572
|
-
#
|
572
|
+
# key paths to of each item to get.
|
573
573
|
sig { void }
|
574
574
|
def clear_gets
|
575
575
|
end
|
@@ -618,14 +618,16 @@ class Stately::Db::TransactionBeginList
|
|
618
618
|
key_path_prefix: T.nilable(String),
|
619
619
|
limit: T.nilable(Integer),
|
620
620
|
sort_property: T.nilable(T.any(Symbol, String, Integer)),
|
621
|
-
sort_direction: T.nilable(T.any(Symbol, String, Integer))
|
621
|
+
sort_direction: T.nilable(T.any(Symbol, String, Integer)),
|
622
|
+
filter_conditions: T.nilable(T::Array[T.nilable(Stately::Db::FilterCondition)])
|
622
623
|
).void
|
623
624
|
end
|
624
625
|
def initialize(
|
625
626
|
key_path_prefix: "",
|
626
627
|
limit: 0,
|
627
628
|
sort_property: :SORTABLE_PROPERTY_KEY_PATH,
|
628
|
-
sort_direction: :SORT_ASCENDING
|
629
|
+
sort_direction: :SORT_ASCENDING,
|
630
|
+
filter_conditions: []
|
629
631
|
)
|
630
632
|
end
|
631
633
|
|
@@ -707,6 +709,27 @@ class Stately::Db::TransactionBeginList
|
|
707
709
|
def clear_sort_direction
|
708
710
|
end
|
709
711
|
|
712
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
713
|
+
# If no conditions are provided, all items in the store will be returned.
|
714
|
+
# Filter conditions are combined with OR.
|
715
|
+
sig { returns(T::Array[T.nilable(Stately::Db::FilterCondition)]) }
|
716
|
+
def filter_conditions
|
717
|
+
end
|
718
|
+
|
719
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
720
|
+
# If no conditions are provided, all items in the store will be returned.
|
721
|
+
# Filter conditions are combined with OR.
|
722
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
723
|
+
def filter_conditions=(value)
|
724
|
+
end
|
725
|
+
|
726
|
+
# filter_conditions are a set of conditions to filter the list result by.
|
727
|
+
# If no conditions are provided, all items in the store will be returned.
|
728
|
+
# Filter conditions are combined with OR.
|
729
|
+
sig { void }
|
730
|
+
def clear_filter_conditions
|
731
|
+
end
|
732
|
+
|
710
733
|
sig { params(field: String).returns(T.untyped) }
|
711
734
|
def [](field)
|
712
735
|
end
|
@@ -845,17 +868,17 @@ class Stately::Db::TransactionPut
|
|
845
868
|
)
|
846
869
|
end
|
847
870
|
|
848
|
-
#
|
871
|
+
# items to put into the store.
|
849
872
|
sig { returns(T::Array[T.nilable(Stately::Db::PutItem)]) }
|
850
873
|
def puts
|
851
874
|
end
|
852
875
|
|
853
|
-
#
|
876
|
+
# items to put into the store.
|
854
877
|
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
855
878
|
def puts=(value)
|
856
879
|
end
|
857
880
|
|
858
|
-
#
|
881
|
+
# items to put into the store.
|
859
882
|
sig { void }
|
860
883
|
def clear_puts
|
861
884
|
end
|
@@ -910,17 +933,17 @@ class Stately::Db::TransactionDelete
|
|
910
933
|
)
|
911
934
|
end
|
912
935
|
|
913
|
-
#
|
936
|
+
# key paths of items to delete.
|
914
937
|
sig { returns(T::Array[T.nilable(Stately::Db::DeleteItem)]) }
|
915
938
|
def deletes
|
916
939
|
end
|
917
940
|
|
918
|
-
#
|
941
|
+
# key paths of items to delete.
|
919
942
|
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
920
943
|
def deletes=(value)
|
921
944
|
end
|
922
945
|
|
923
|
-
#
|
946
|
+
# key paths of items to delete.
|
924
947
|
sig { void }
|
925
948
|
def clear_deletes
|
926
949
|
end
|