hatchet-sdk 0.12.0 → 0.12.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b79792bcf8e6ee0ff6ffdf9018abdb3e232129af4e51fbc2677eef8776557b31
|
|
4
|
+
data.tar.gz: ff8bdc0f1e08d871fb4f1447ca578fd87f31e5aca1327db5e117772fa6683d28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90a62ce007dccc543c338238e031a932d6018b9a74d43e1b6ab8937735f14ab17001bf31251ce88fa996005990f1557f29f7aa391541ba0225ecb5319e700596
|
|
7
|
+
data.tar.gz: 426acb26968a1b44a6777cb757633622c1a7b3dba38e5e7c7faa67aca2a77efef7ba049c8713f24243385864a88ab12f282fe46d74caa31fc2caf8953b61285a
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to Hatchet's Ruby SDK will be documented in this changelog.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.12.1] - 2026-11-02
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `TenantEntitlements#sandbox_operator`, the tenant's sandbox entitlement.
|
|
13
|
+
|
|
8
14
|
## [0.12.0] - 2026-10-26
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -27,6 +27,8 @@ module HatchetSdkRest
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :serverless_operator
|
|
29
29
|
|
|
30
|
+
attr_accessor :sandbox_operator
|
|
31
|
+
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
33
|
def self.attribute_map
|
|
32
34
|
{
|
|
@@ -35,7 +37,8 @@ module HatchetSdkRest
|
|
|
35
37
|
:'strict_additional_metadata_filters' => :'strictAdditionalMetadataFilters',
|
|
36
38
|
:'dag_operator' => :'dagOperator',
|
|
37
39
|
:'durable_streams' => :'durableStreams',
|
|
38
|
-
:'serverless_operator' => :'serverlessOperator'
|
|
40
|
+
:'serverless_operator' => :'serverlessOperator',
|
|
41
|
+
:'sandbox_operator' => :'sandboxOperator'
|
|
39
42
|
}
|
|
40
43
|
end
|
|
41
44
|
|
|
@@ -57,7 +60,8 @@ module HatchetSdkRest
|
|
|
57
60
|
:'strict_additional_metadata_filters' => :'Boolean',
|
|
58
61
|
:'dag_operator' => :'Boolean',
|
|
59
62
|
:'durable_streams' => :'Boolean',
|
|
60
|
-
:'serverless_operator' => :'Boolean'
|
|
63
|
+
:'serverless_operator' => :'Boolean',
|
|
64
|
+
:'sandbox_operator' => :'Boolean'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
63
67
|
|
|
@@ -118,6 +122,12 @@ module HatchetSdkRest
|
|
|
118
122
|
else
|
|
119
123
|
self.serverless_operator = nil
|
|
120
124
|
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'sandbox_operator')
|
|
127
|
+
self.sandbox_operator = attributes[:'sandbox_operator']
|
|
128
|
+
else
|
|
129
|
+
self.sandbox_operator = nil
|
|
130
|
+
end
|
|
121
131
|
end
|
|
122
132
|
|
|
123
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -149,6 +159,10 @@ module HatchetSdkRest
|
|
|
149
159
|
invalid_properties.push('invalid value for "serverless_operator", serverless_operator cannot be nil.')
|
|
150
160
|
end
|
|
151
161
|
|
|
162
|
+
if @sandbox_operator.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "sandbox_operator", sandbox_operator cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
152
166
|
invalid_properties
|
|
153
167
|
end
|
|
154
168
|
|
|
@@ -162,6 +176,7 @@ module HatchetSdkRest
|
|
|
162
176
|
return false if @dag_operator.nil?
|
|
163
177
|
return false if @durable_streams.nil?
|
|
164
178
|
return false if @serverless_operator.nil?
|
|
179
|
+
return false if @sandbox_operator.nil?
|
|
165
180
|
true
|
|
166
181
|
end
|
|
167
182
|
|
|
@@ -225,6 +240,16 @@ module HatchetSdkRest
|
|
|
225
240
|
@serverless_operator = serverless_operator
|
|
226
241
|
end
|
|
227
242
|
|
|
243
|
+
# Custom attribute writer method with validation
|
|
244
|
+
# @param [Object] sandbox_operator Value to be assigned
|
|
245
|
+
def sandbox_operator=(sandbox_operator)
|
|
246
|
+
if sandbox_operator.nil?
|
|
247
|
+
fail ArgumentError, 'sandbox_operator cannot be nil'
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
@sandbox_operator = sandbox_operator
|
|
251
|
+
end
|
|
252
|
+
|
|
228
253
|
# Checks equality by comparing each attribute.
|
|
229
254
|
# @param [Object] Object to be compared
|
|
230
255
|
def ==(o)
|
|
@@ -235,7 +260,8 @@ module HatchetSdkRest
|
|
|
235
260
|
strict_additional_metadata_filters == o.strict_additional_metadata_filters &&
|
|
236
261
|
dag_operator == o.dag_operator &&
|
|
237
262
|
durable_streams == o.durable_streams &&
|
|
238
|
-
serverless_operator == o.serverless_operator
|
|
263
|
+
serverless_operator == o.serverless_operator &&
|
|
264
|
+
sandbox_operator == o.sandbox_operator
|
|
239
265
|
end
|
|
240
266
|
|
|
241
267
|
# @see the `==` method
|
|
@@ -247,7 +273,7 @@ module HatchetSdkRest
|
|
|
247
273
|
# Calculates hash code according to all attributes.
|
|
248
274
|
# @return [Integer] Hash code
|
|
249
275
|
def hash
|
|
250
|
-
[audit_logs, prometheus_metrics, strict_additional_metadata_filters, dag_operator, durable_streams, serverless_operator].hash
|
|
276
|
+
[audit_logs, prometheus_metrics, strict_additional_metadata_filters, dag_operator, durable_streams, serverless_operator, sandbox_operator].hash
|
|
251
277
|
end
|
|
252
278
|
|
|
253
279
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module HatchetSdkRest
|
|
|
27
27
|
# The number of messages within the tenant's retention
|
|
28
28
|
attr_accessor :message_count
|
|
29
29
|
|
|
30
|
+
# Subscribers without a cursor start after this offset, 0 to start from the oldest retained message
|
|
31
|
+
attr_accessor :starting_offset
|
|
32
|
+
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
@@ -34,7 +37,8 @@ module HatchetSdkRest
|
|
|
34
37
|
:'topic' => :'topic',
|
|
35
38
|
:'created_at' => :'createdAt',
|
|
36
39
|
:'last_published_at' => :'lastPublishedAt',
|
|
37
|
-
:'message_count' => :'messageCount'
|
|
40
|
+
:'message_count' => :'messageCount',
|
|
41
|
+
:'starting_offset' => :'startingOffset'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
40
44
|
|
|
@@ -55,7 +59,8 @@ module HatchetSdkRest
|
|
|
55
59
|
:'topic' => :'String',
|
|
56
60
|
:'created_at' => :'Time',
|
|
57
61
|
:'last_published_at' => :'Time',
|
|
58
|
-
:'message_count' => :'Integer'
|
|
62
|
+
:'message_count' => :'Integer',
|
|
63
|
+
:'starting_offset' => :'Integer'
|
|
59
64
|
}
|
|
60
65
|
end
|
|
61
66
|
|
|
@@ -110,6 +115,12 @@ module HatchetSdkRest
|
|
|
110
115
|
else
|
|
111
116
|
self.message_count = nil
|
|
112
117
|
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'starting_offset')
|
|
120
|
+
self.starting_offset = attributes[:'starting_offset']
|
|
121
|
+
else
|
|
122
|
+
self.starting_offset = nil
|
|
123
|
+
end
|
|
113
124
|
end
|
|
114
125
|
|
|
115
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -137,6 +148,10 @@ module HatchetSdkRest
|
|
|
137
148
|
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
|
138
149
|
end
|
|
139
150
|
|
|
151
|
+
if @starting_offset.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "starting_offset", starting_offset cannot be nil.')
|
|
153
|
+
end
|
|
154
|
+
|
|
140
155
|
invalid_properties
|
|
141
156
|
end
|
|
142
157
|
|
|
@@ -149,6 +164,7 @@ module HatchetSdkRest
|
|
|
149
164
|
return false if @created_at.nil?
|
|
150
165
|
return false if @last_published_at.nil?
|
|
151
166
|
return false if @message_count.nil?
|
|
167
|
+
return false if @starting_offset.nil?
|
|
152
168
|
true
|
|
153
169
|
end
|
|
154
170
|
|
|
@@ -202,6 +218,16 @@ module HatchetSdkRest
|
|
|
202
218
|
@message_count = message_count
|
|
203
219
|
end
|
|
204
220
|
|
|
221
|
+
# Custom attribute writer method with validation
|
|
222
|
+
# @param [Object] starting_offset Value to be assigned
|
|
223
|
+
def starting_offset=(starting_offset)
|
|
224
|
+
if starting_offset.nil?
|
|
225
|
+
fail ArgumentError, 'starting_offset cannot be nil'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
@starting_offset = starting_offset
|
|
229
|
+
end
|
|
230
|
+
|
|
205
231
|
# Checks equality by comparing each attribute.
|
|
206
232
|
# @param [Object] Object to be compared
|
|
207
233
|
def ==(o)
|
|
@@ -211,7 +237,8 @@ module HatchetSdkRest
|
|
|
211
237
|
topic == o.topic &&
|
|
212
238
|
created_at == o.created_at &&
|
|
213
239
|
last_published_at == o.last_published_at &&
|
|
214
|
-
message_count == o.message_count
|
|
240
|
+
message_count == o.message_count &&
|
|
241
|
+
starting_offset == o.starting_offset
|
|
215
242
|
end
|
|
216
243
|
|
|
217
244
|
# @see the `==` method
|
|
@@ -223,7 +250,7 @@ module HatchetSdkRest
|
|
|
223
250
|
# Calculates hash code according to all attributes.
|
|
224
251
|
# @return [Integer] Hash code
|
|
225
252
|
def hash
|
|
226
|
-
[namespace, topic, created_at, last_published_at, message_count].hash
|
|
253
|
+
[namespace, topic, created_at, last_published_at, message_count, starting_offset].hash
|
|
227
254
|
end
|
|
228
255
|
|
|
229
256
|
# Builds the object from hash
|
data/lib/hatchet/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hatchet-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gabriel ruttner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|