hatchet-sdk 0.11.2 → 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 +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +1 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +13 -0
- data/lib/hatchet/clients/rest/README.md +15 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/concurrency_api.rb +188 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/serverless_api.rb +77 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_token.rb +28 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_request.rb +11 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_id.rb +2 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_entitlements.rb +30 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_key.rb +326 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_key_list.rb +275 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_limit_strategy.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_scope.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_strategy.rb +676 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_strategy_list.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_strategy_usage.rb +307 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_serverless_endpoint_request.rb +1 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_check_stage.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event.rb +363 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event_details.rb +358 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event_kind.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event_list.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_kind.rb +2 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_stream_topic.rb +31 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +13 -0
- data/lib/hatchet/contracts/v1/streams_pb.rb +28 -0
- data/lib/hatchet/contracts/v1/streams_services_pb.rb +26 -0
- data/lib/hatchet/features/streams.rb +498 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet-sdk.rb +11 -0
- data/sig/hatchet/features/streams.rbs +39 -0
- data/sig/hatchet-sdk.rbs +1 -0
- metadata +19 -2
data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event_kind.rb
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module HatchetSdkRest
|
|
17
|
+
class V1ServerlessEndpointEventKind
|
|
18
|
+
HEALTHCHECK_FAILED = "HEALTHCHECK_FAILED".freeze
|
|
19
|
+
UNHEALTHY = "UNHEALTHY".freeze
|
|
20
|
+
HEALTHY = "HEALTHY".freeze
|
|
21
|
+
CATALOG_REGISTERED = "CATALOG_REGISTERED".freeze
|
|
22
|
+
CATALOG_REJECTED = "CATALOG_REJECTED".freeze
|
|
23
|
+
DELIVERY_FAILED = "DELIVERY_FAILED".freeze
|
|
24
|
+
|
|
25
|
+
def self.all_vars
|
|
26
|
+
@all_vars ||= [HEALTHCHECK_FAILED, UNHEALTHY, HEALTHY, CATALOG_REGISTERED, CATALOG_REJECTED, DELIVERY_FAILED].freeze
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Builds the enum from string
|
|
30
|
+
# @param [String] The enum value in the form of the string
|
|
31
|
+
# @return [String] The enum value
|
|
32
|
+
def self.build_from_hash(value)
|
|
33
|
+
new.build_from_hash(value)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Builds the enum from string
|
|
37
|
+
# @param [String] The enum value in the form of the string
|
|
38
|
+
# @return [String] The enum value
|
|
39
|
+
def build_from_hash(value)
|
|
40
|
+
return value if V1ServerlessEndpointEventKind.all_vars.include?(value)
|
|
41
|
+
raise "Invalid ENUM value #{value} for class #V1ServerlessEndpointEventKind"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event_list.rb
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module HatchetSdkRest
|
|
17
|
+
class V1ServerlessEndpointEventList
|
|
18
|
+
attr_accessor :rows
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'rows' => :'rows'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'rows' => :'Array<V1ServerlessEndpointEvent>'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `HatchetSdkRest::V1ServerlessEndpointEventList` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `HatchetSdkRest::V1ServerlessEndpointEventList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'rows')
|
|
67
|
+
if (value = attributes[:'rows']).is_a?(Array)
|
|
68
|
+
self.rows = value
|
|
69
|
+
end
|
|
70
|
+
else
|
|
71
|
+
self.rows = nil
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @rows.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "rows", rows cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
return false if @rows.nil?
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Custom attribute writer method with validation
|
|
96
|
+
# @param [Object] rows Value to be assigned
|
|
97
|
+
def rows=(rows)
|
|
98
|
+
if rows.nil?
|
|
99
|
+
fail ArgumentError, 'rows cannot be nil'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
@rows = rows
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
rows == o.rows
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[rows].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
|
130
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
new(transformed_hash)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Deserializes the data based on type
|
|
149
|
+
# @param string type Data type
|
|
150
|
+
# @param string value Value to be deserialized
|
|
151
|
+
# @return [Object] Deserialized data
|
|
152
|
+
def self._deserialize(type, value)
|
|
153
|
+
case type.to_sym
|
|
154
|
+
when :Time
|
|
155
|
+
Time.parse(value)
|
|
156
|
+
when :Date
|
|
157
|
+
Date.parse(value)
|
|
158
|
+
when :String
|
|
159
|
+
value.to_s
|
|
160
|
+
when :Integer
|
|
161
|
+
value.to_i
|
|
162
|
+
when :Float
|
|
163
|
+
value.to_f
|
|
164
|
+
when :Boolean
|
|
165
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
166
|
+
true
|
|
167
|
+
else
|
|
168
|
+
false
|
|
169
|
+
end
|
|
170
|
+
when :Object
|
|
171
|
+
# generic object (usually a Hash), return directly
|
|
172
|
+
value
|
|
173
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
174
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
175
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
176
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
177
|
+
k_type = Regexp.last_match[:k_type]
|
|
178
|
+
v_type = Regexp.last_match[:v_type]
|
|
179
|
+
{}.tap do |hash|
|
|
180
|
+
value.each do |k, v|
|
|
181
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
else # model
|
|
185
|
+
# models (e.g. Pet) or oneOf
|
|
186
|
+
klass = HatchetSdkRest.const_get(type)
|
|
187
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Returns the string representation of the object
|
|
192
|
+
# @return [String] String presentation of the object
|
|
193
|
+
def to_s
|
|
194
|
+
to_hash.to_s
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
|
199
|
+
def to_body
|
|
200
|
+
to_hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Returns the object in the form of hash
|
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
|
205
|
+
def to_hash
|
|
206
|
+
hash = {}
|
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
208
|
+
value = self.send(attr)
|
|
209
|
+
if value.nil?
|
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Outputs non-array value in the form of hash
|
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
+
# @param [Object] value Any valid value
|
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
|
223
|
+
def _to_hash(value)
|
|
224
|
+
if value.is_a?(Array)
|
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
|
226
|
+
elsif value.is_a?(Hash)
|
|
227
|
+
{}.tap do |hash|
|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
+
end
|
|
230
|
+
elsif value.respond_to? :to_hash
|
|
231
|
+
value.to_hash
|
|
232
|
+
else
|
|
233
|
+
value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
@@ -17,9 +17,10 @@ module HatchetSdkRest
|
|
|
17
17
|
class V1ServerlessEndpointKind
|
|
18
18
|
GENERIC_HTTP = "GENERIC_HTTP".freeze
|
|
19
19
|
CLOUDFLARE_WORKERS = "CLOUDFLARE_WORKERS".freeze
|
|
20
|
+
VERCEL = "VERCEL".freeze
|
|
20
21
|
|
|
21
22
|
def self.all_vars
|
|
22
|
-
@all_vars ||= [GENERIC_HTTP, CLOUDFLARE_WORKERS].freeze
|
|
23
|
+
@all_vars ||= [GENERIC_HTTP, CLOUDFLARE_WORKERS, VERCEL].freeze
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
# Builds the enum from string
|
|
@@ -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
|
|
@@ -161,6 +161,13 @@ HatchetSdkRest.autoload :V1CELDebugResponse, 'hatchet-sdk-rest/models/v1_cel_deb
|
|
|
161
161
|
HatchetSdkRest.autoload :V1CELDebugResponseStatus, 'hatchet-sdk-rest/models/v1_cel_debug_response_status'
|
|
162
162
|
HatchetSdkRest.autoload :V1CancelTaskRequest, 'hatchet-sdk-rest/models/v1_cancel_task_request'
|
|
163
163
|
HatchetSdkRest.autoload :V1CancelledTasks, 'hatchet-sdk-rest/models/v1_cancelled_tasks'
|
|
164
|
+
HatchetSdkRest.autoload :V1ConcurrencyKey, 'hatchet-sdk-rest/models/v1_concurrency_key'
|
|
165
|
+
HatchetSdkRest.autoload :V1ConcurrencyKeyList, 'hatchet-sdk-rest/models/v1_concurrency_key_list'
|
|
166
|
+
HatchetSdkRest.autoload :V1ConcurrencyLimitStrategy, 'hatchet-sdk-rest/models/v1_concurrency_limit_strategy'
|
|
167
|
+
HatchetSdkRest.autoload :V1ConcurrencyScope, 'hatchet-sdk-rest/models/v1_concurrency_scope'
|
|
168
|
+
HatchetSdkRest.autoload :V1ConcurrencyStrategy, 'hatchet-sdk-rest/models/v1_concurrency_strategy'
|
|
169
|
+
HatchetSdkRest.autoload :V1ConcurrencyStrategyList, 'hatchet-sdk-rest/models/v1_concurrency_strategy_list'
|
|
170
|
+
HatchetSdkRest.autoload :V1ConcurrencyStrategyUsage, 'hatchet-sdk-rest/models/v1_concurrency_strategy_usage'
|
|
164
171
|
HatchetSdkRest.autoload :V1CreateFilterRequest, 'hatchet-sdk-rest/models/v1_create_filter_request'
|
|
165
172
|
HatchetSdkRest.autoload :V1CreateServerlessEndpointRequest, 'hatchet-sdk-rest/models/v1_create_serverless_endpoint_request'
|
|
166
173
|
HatchetSdkRest.autoload :V1CreateWebhookRequest, 'hatchet-sdk-rest/models/v1_create_webhook_request'
|
|
@@ -191,6 +198,11 @@ HatchetSdkRest.autoload :V1RestoreTaskResponse, 'hatchet-sdk-rest/models/v1_rest
|
|
|
191
198
|
HatchetSdkRest.autoload :V1RunningDetailCount, 'hatchet-sdk-rest/models/v1_running_detail_count'
|
|
192
199
|
HatchetSdkRest.autoload :V1RunningFilter, 'hatchet-sdk-rest/models/v1_running_filter'
|
|
193
200
|
HatchetSdkRest.autoload :V1ServerlessEndpoint, 'hatchet-sdk-rest/models/v1_serverless_endpoint'
|
|
201
|
+
HatchetSdkRest.autoload :V1ServerlessEndpointCheckStage, 'hatchet-sdk-rest/models/v1_serverless_endpoint_check_stage'
|
|
202
|
+
HatchetSdkRest.autoload :V1ServerlessEndpointEvent, 'hatchet-sdk-rest/models/v1_serverless_endpoint_event'
|
|
203
|
+
HatchetSdkRest.autoload :V1ServerlessEndpointEventDetails, 'hatchet-sdk-rest/models/v1_serverless_endpoint_event_details'
|
|
204
|
+
HatchetSdkRest.autoload :V1ServerlessEndpointEventKind, 'hatchet-sdk-rest/models/v1_serverless_endpoint_event_kind'
|
|
205
|
+
HatchetSdkRest.autoload :V1ServerlessEndpointEventList, 'hatchet-sdk-rest/models/v1_serverless_endpoint_event_list'
|
|
194
206
|
HatchetSdkRest.autoload :V1ServerlessEndpointKind, 'hatchet-sdk-rest/models/v1_serverless_endpoint_kind'
|
|
195
207
|
HatchetSdkRest.autoload :V1ServerlessEndpointList, 'hatchet-sdk-rest/models/v1_serverless_endpoint_list'
|
|
196
208
|
HatchetSdkRest.autoload :V1ServerlessEndpointStatus, 'hatchet-sdk-rest/models/v1_serverless_endpoint_status'
|
|
@@ -277,6 +289,7 @@ HatchetSdkRest.autoload :WorkflowWorkersCount, 'hatchet-sdk-rest/models/workflow
|
|
|
277
289
|
# APIs
|
|
278
290
|
HatchetSdkRest.autoload :APITokenApi, 'hatchet-sdk-rest/api/api_token_api'
|
|
279
291
|
HatchetSdkRest.autoload :CELApi, 'hatchet-sdk-rest/api/cel_api'
|
|
292
|
+
HatchetSdkRest.autoload :ConcurrencyApi, 'hatchet-sdk-rest/api/concurrency_api'
|
|
280
293
|
HatchetSdkRest.autoload :DefaultApi, 'hatchet-sdk-rest/api/default_api'
|
|
281
294
|
HatchetSdkRest.autoload :DurableTasksApi, 'hatchet-sdk-rest/api/durable_tasks_api'
|
|
282
295
|
HatchetSdkRest.autoload :EventApi, 'hatchet-sdk-rest/api/event_api'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: v1/streams.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x10v1/streams.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x01\n\x1bPublishStreamMessageRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\x12\x13\n\x0bproducer_id\x18\x04 \x01(\t\x12\x14\n\x0cproducer_seq\x18\x05 \x01(\x03\x12\x13\n\x0bpayload_ref\x18\x06 \x01(\t\"\x1e\n\x1cPublishStreamMessageResponse\"\x9a\x01\n\x1cPublishStreamMessagesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x13\n\x0bproducer_id\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_producer_seq\x18\x04 \x01(\x03\x12\'\n\x07\x65ntries\x18\x05 \x03(\x0b\x32\x16.v1.StreamPublishEntry\":\n\x12StreamPublishEntry\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x13\n\x0bpayload_ref\x18\x02 \x01(\t\"\x1f\n\x1dPublishStreamMessagesResponse\"Z\n\x16SubscribeStreamRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x13\n\x06\x63ursor\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_cursor\"Q\n\rStreamMessage\x12 \n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x0f.v1.StreamEntry\x12\x0e\n\x06hangup\x18\x02 \x01(\x08\x12\x0e\n\x06\x63ursor\x18\x03 \x01(\t\"s\n\x0bStreamEntry\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x0e\n\x06\x63ursor\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bpayload_ref\x18\x04 \x01(\t\"A\n\x1dGetStreamTopicMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\"\xc6\x01\n\x13StreamTopicMetadata\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x11\n\ttenant_id\x18\x03 \x01(\t\x12\x1a\n\rlatest_cursor\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x15\n\rmessage_count\x18\x05 \x01(\x03\x12\x35\n\x11last_published_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x10\n\x0e_latest_cursor\"[\n\x17ResetStreamTopicRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x13\n\x06\x63ursor\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_cursor\"\x1a\n\x18ResetStreamTopicResponse2\x8a\x03\n\tV1Streams\x12N\n\x07Publish\x12\x1f.v1.PublishStreamMessageRequest\x1a .v1.PublishStreamMessageResponse\"\x00\x12U\n\x0cPublishBatch\x12 .v1.PublishStreamMessagesRequest\x1a!.v1.PublishStreamMessagesResponse\"\x00\x12>\n\tSubscribe\x12\x1a.v1.SubscribeStreamRequest\x1a\x11.v1.StreamMessage\"\x00\x30\x01\x12P\n\x10GetTopicMetadata\x12!.v1.GetStreamTopicMetadataRequest\x1a\x17.v1.StreamTopicMetadata\"\x00\x12\x44\n\x05Reset\x12\x1b.v1.ResetStreamTopicRequest\x1a\x1c.v1.ResetStreamTopicResponse\"\x00\x42\x42Z@github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module V1
|
|
16
|
+
PublishStreamMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PublishStreamMessageRequest").msgclass
|
|
17
|
+
PublishStreamMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PublishStreamMessageResponse").msgclass
|
|
18
|
+
PublishStreamMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PublishStreamMessagesRequest").msgclass
|
|
19
|
+
StreamPublishEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.StreamPublishEntry").msgclass
|
|
20
|
+
PublishStreamMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PublishStreamMessagesResponse").msgclass
|
|
21
|
+
SubscribeStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SubscribeStreamRequest").msgclass
|
|
22
|
+
StreamMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.StreamMessage").msgclass
|
|
23
|
+
StreamEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.StreamEntry").msgclass
|
|
24
|
+
GetStreamTopicMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GetStreamTopicMetadataRequest").msgclass
|
|
25
|
+
StreamTopicMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.StreamTopicMetadata").msgclass
|
|
26
|
+
ResetStreamTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResetStreamTopicRequest").msgclass
|
|
27
|
+
ResetStreamTopicResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResetStreamTopicResponse").msgclass
|
|
28
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: v1/streams.proto for package 'v1'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'v1/streams_pb'
|
|
6
|
+
|
|
7
|
+
module V1
|
|
8
|
+
module V1Streams
|
|
9
|
+
class Service
|
|
10
|
+
|
|
11
|
+
include ::GRPC::GenericService
|
|
12
|
+
|
|
13
|
+
self.marshal_class_method = :encode
|
|
14
|
+
self.unmarshal_class_method = :decode
|
|
15
|
+
self.service_name = 'v1.V1Streams'
|
|
16
|
+
|
|
17
|
+
rpc :Publish, ::V1::PublishStreamMessageRequest, ::V1::PublishStreamMessageResponse
|
|
18
|
+
rpc :PublishBatch, ::V1::PublishStreamMessagesRequest, ::V1::PublishStreamMessagesResponse
|
|
19
|
+
rpc :Subscribe, ::V1::SubscribeStreamRequest, stream(::V1::StreamMessage)
|
|
20
|
+
rpc :GetTopicMetadata, ::V1::GetStreamTopicMetadataRequest, ::V1::StreamTopicMetadata
|
|
21
|
+
rpc :Reset, ::V1::ResetStreamTopicRequest, ::V1::ResetStreamTopicResponse
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
Stub = Service.rpc_stub_class
|
|
25
|
+
end
|
|
26
|
+
end
|