handinger 0.5.0 → 0.7.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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/handinger/models/worker.rb +23 -83
- data/lib/handinger/models/workers/update_webhook.rb +22 -0
- data/lib/handinger/models/workers/webhook.rb +32 -0
- data/lib/handinger/models/workers/webhook_delete_params.rb +22 -0
- data/lib/handinger/models/workers/webhook_execution.rb +102 -0
- data/lib/handinger/models/workers/webhook_execution_list.rb +42 -0
- data/lib/handinger/models/workers/webhook_list_executions_params.rb +31 -0
- data/lib/handinger/models/workers/webhook_regenerate_token_params.rb +22 -0
- data/lib/handinger/models/workers/webhook_retrieve_params.rb +22 -0
- data/lib/handinger/models/workers/webhook_update_params.rb +22 -0
- data/lib/handinger/resources/workers/webhooks.rb +138 -0
- data/lib/handinger/resources/workers.rb +5 -0
- data/lib/handinger/version.rb +1 -1
- data/lib/handinger.rb +10 -0
- data/rbi/handinger/models/worker.rbi +31 -158
- data/rbi/handinger/models/workers/update_webhook.rbi +34 -0
- data/rbi/handinger/models/workers/webhook.rbi +45 -0
- data/rbi/handinger/models/workers/webhook_delete_params.rbi +40 -0
- data/rbi/handinger/models/workers/webhook_execution.rbi +146 -0
- data/rbi/handinger/models/workers/webhook_execution_list.rbi +64 -0
- data/rbi/handinger/models/workers/webhook_list_executions_params.rbi +57 -0
- data/rbi/handinger/models/workers/webhook_regenerate_token_params.rbi +40 -0
- data/rbi/handinger/models/workers/webhook_retrieve_params.rbi +40 -0
- data/rbi/handinger/models/workers/webhook_update_params.rbi +40 -0
- data/rbi/handinger/resources/workers/webhooks.rbi +101 -0
- data/rbi/handinger/resources/workers.rbi +4 -0
- data/sig/handinger/models/worker.rbs +26 -107
- data/sig/handinger/models/workers/update_webhook.rbs +15 -0
- data/sig/handinger/models/workers/webhook.rbs +17 -0
- data/sig/handinger/models/workers/webhook_delete_params.rbs +25 -0
- data/sig/handinger/models/workers/webhook_execution.rbs +78 -0
- data/sig/handinger/models/workers/webhook_execution_list.rbs +37 -0
- data/sig/handinger/models/workers/webhook_list_executions_params.rbs +32 -0
- data/sig/handinger/models/workers/webhook_regenerate_token_params.rbs +25 -0
- data/sig/handinger/models/workers/webhook_retrieve_params.rbs +25 -0
- data/sig/handinger/models/workers/webhook_update_params.rbs +27 -0
- data/sig/handinger/resources/workers/webhooks.rbs +36 -0
- data/sig/handinger/resources/workers.rbs +2 -0
- metadata +31 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9a4079727251cf6facfe9b5ade402158b369721afabd58044758ec3097d08e9
|
|
4
|
+
data.tar.gz: 8ee02c942394761ba33414318f021a38f2c30f25a943d0c1ebf071165ab533d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3764c4d0dd72181c6b175478914d8c4f8a7791d4e412994f3d46d939c09aea17441ca0ba13a783beb122182466eac545eaee7d0a5ca19aa3ae76c14f89735178
|
|
7
|
+
data.tar.gz: 48b83da43ba817718a9e78cce13c4eab1fc8453bdaf55689e4d5f114e547c383cc713ed960ab14d003cdc7fc900444e197d6ab4e6b7e7083ea0ff5fe969a2830
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0 (2026-05-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.6.0...v0.7.0](https://github.com/Ramensoft/handinger-ruby/compare/v0.6.0...v0.7.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add Webhook API docs ([a35a412](https://github.com/Ramensoft/handinger-ruby/commit/a35a412297f5103e8856e2da5d72891a3dde3a91))
|
|
10
|
+
|
|
11
|
+
## 0.6.0 (2026-05-11)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/Ramensoft/handinger-ruby/compare/v0.5.0...v0.6.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([7c72012](https://github.com/Ramensoft/handinger-ruby/commit/7c72012ce98e7d806881133cff1c1625a1bfcdac))
|
|
18
|
+
|
|
3
19
|
## 0.5.0 (2026-05-11)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.4.0...v0.5.0](https://github.com/Ramensoft/handinger-ruby/compare/v0.4.0...v0.5.0)
|
data/README.md
CHANGED
|
@@ -41,8 +41,8 @@ module Handinger
|
|
|
41
41
|
|
|
42
42
|
# @!attribute object
|
|
43
43
|
#
|
|
44
|
-
# @return [Symbol,
|
|
45
|
-
required :object,
|
|
44
|
+
# @return [Symbol, :worker]
|
|
45
|
+
required :object, const: :worker
|
|
46
46
|
|
|
47
47
|
# @!attribute output
|
|
48
48
|
#
|
|
@@ -87,7 +87,7 @@ module Handinger
|
|
|
87
87
|
# @return [Handinger::Models::Worker::Usage, nil]
|
|
88
88
|
optional :usage, -> { Handinger::Worker::Usage }
|
|
89
89
|
|
|
90
|
-
# @!method initialize(id:, created_at:, error:, files:, incomplete_details:, messages:, metadata:,
|
|
90
|
+
# @!method initialize(id:, created_at:, error:, files:, incomplete_details:, messages:, metadata:, output:, output_text:, running:, sources:, status:, structured_output:, url:, usage: nil, object: :worker)
|
|
91
91
|
# @param id [String]
|
|
92
92
|
#
|
|
93
93
|
# @param created_at [Integer, nil]
|
|
@@ -102,8 +102,6 @@ module Handinger
|
|
|
102
102
|
#
|
|
103
103
|
# @param metadata [Hash{Symbol=>Object}]
|
|
104
104
|
#
|
|
105
|
-
# @param object [Symbol, Handinger::Models::Worker::Object]
|
|
106
|
-
#
|
|
107
105
|
# @param output [Array<Handinger::Models::Worker::Output>]
|
|
108
106
|
#
|
|
109
107
|
# @param output_text [String]
|
|
@@ -119,6 +117,8 @@ module Handinger
|
|
|
119
117
|
# @param url [String] Web URL of the worker in the Handinger dashboard.
|
|
120
118
|
#
|
|
121
119
|
# @param usage [Handinger::Models::Worker::Usage]
|
|
120
|
+
#
|
|
121
|
+
# @param object [Symbol, :worker]
|
|
122
122
|
|
|
123
123
|
class File < Handinger::Internal::Type::BaseModel
|
|
124
124
|
# @!attribute filename
|
|
@@ -142,16 +142,6 @@ module Handinger
|
|
|
142
142
|
# @param url [String]
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
# @see Handinger::Models::Worker#object
|
|
146
|
-
module Object
|
|
147
|
-
extend Handinger::Internal::Type::Enum
|
|
148
|
-
|
|
149
|
-
WORKER = :worker
|
|
150
|
-
|
|
151
|
-
# @!method self.values
|
|
152
|
-
# @return [Array<Symbol>]
|
|
153
|
-
end
|
|
154
|
-
|
|
155
145
|
class Output < Handinger::Internal::Type::BaseModel
|
|
156
146
|
# @!attribute id
|
|
157
147
|
#
|
|
@@ -165,25 +155,25 @@ module Handinger
|
|
|
165
155
|
|
|
166
156
|
# @!attribute role
|
|
167
157
|
#
|
|
168
|
-
# @return [Symbol,
|
|
169
|
-
required :role,
|
|
158
|
+
# @return [Symbol, :assistant]
|
|
159
|
+
required :role, const: :assistant
|
|
170
160
|
|
|
171
161
|
# @!attribute status
|
|
172
162
|
#
|
|
173
|
-
# @return [Symbol,
|
|
174
|
-
required :status,
|
|
163
|
+
# @return [Symbol, :completed]
|
|
164
|
+
required :status, const: :completed
|
|
175
165
|
|
|
176
166
|
# @!attribute type
|
|
177
167
|
#
|
|
178
|
-
# @return [Symbol,
|
|
179
|
-
required :type,
|
|
168
|
+
# @return [Symbol, :message]
|
|
169
|
+
required :type, const: :message
|
|
180
170
|
|
|
181
|
-
# @!method initialize(id:, content:, role
|
|
171
|
+
# @!method initialize(id:, content:, role: :assistant, status: :completed, type: :message)
|
|
182
172
|
# @param id [String]
|
|
183
173
|
# @param content [Array<Handinger::Models::Worker::Output::Content>]
|
|
184
|
-
# @param role [Symbol,
|
|
185
|
-
# @param status [Symbol,
|
|
186
|
-
# @param type [Symbol,
|
|
174
|
+
# @param role [Symbol, :assistant]
|
|
175
|
+
# @param status [Symbol, :completed]
|
|
176
|
+
# @param type [Symbol, :message]
|
|
187
177
|
|
|
188
178
|
class Content < Handinger::Internal::Type::BaseModel
|
|
189
179
|
# @!attribute text
|
|
@@ -193,52 +183,12 @@ module Handinger
|
|
|
193
183
|
|
|
194
184
|
# @!attribute type
|
|
195
185
|
#
|
|
196
|
-
# @return [Symbol,
|
|
197
|
-
required :type,
|
|
186
|
+
# @return [Symbol, :output_text]
|
|
187
|
+
required :type, const: :output_text
|
|
198
188
|
|
|
199
|
-
# @!method initialize(text:, type:)
|
|
189
|
+
# @!method initialize(text:, type: :output_text)
|
|
200
190
|
# @param text [String]
|
|
201
|
-
# @param type [Symbol,
|
|
202
|
-
|
|
203
|
-
# @see Handinger::Models::Worker::Output::Content#type
|
|
204
|
-
module Type
|
|
205
|
-
extend Handinger::Internal::Type::Enum
|
|
206
|
-
|
|
207
|
-
OUTPUT_TEXT = :output_text
|
|
208
|
-
|
|
209
|
-
# @!method self.values
|
|
210
|
-
# @return [Array<Symbol>]
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# @see Handinger::Models::Worker::Output#role
|
|
215
|
-
module Role
|
|
216
|
-
extend Handinger::Internal::Type::Enum
|
|
217
|
-
|
|
218
|
-
ASSISTANT = :assistant
|
|
219
|
-
|
|
220
|
-
# @!method self.values
|
|
221
|
-
# @return [Array<Symbol>]
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# @see Handinger::Models::Worker::Output#status
|
|
225
|
-
module Status
|
|
226
|
-
extend Handinger::Internal::Type::Enum
|
|
227
|
-
|
|
228
|
-
COMPLETED = :completed
|
|
229
|
-
|
|
230
|
-
# @!method self.values
|
|
231
|
-
# @return [Array<Symbol>]
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
# @see Handinger::Models::Worker::Output#type
|
|
235
|
-
module Type
|
|
236
|
-
extend Handinger::Internal::Type::Enum
|
|
237
|
-
|
|
238
|
-
MESSAGE = :message
|
|
239
|
-
|
|
240
|
-
# @!method self.values
|
|
241
|
-
# @return [Array<Symbol>]
|
|
191
|
+
# @param type [Symbol, :output_text]
|
|
242
192
|
end
|
|
243
193
|
end
|
|
244
194
|
|
|
@@ -255,29 +205,19 @@ module Handinger
|
|
|
255
205
|
|
|
256
206
|
# @!attribute type
|
|
257
207
|
#
|
|
258
|
-
# @return [Symbol,
|
|
259
|
-
required :type,
|
|
208
|
+
# @return [Symbol, :url]
|
|
209
|
+
required :type, const: :url
|
|
260
210
|
|
|
261
211
|
# @!attribute url
|
|
262
212
|
#
|
|
263
213
|
# @return [String]
|
|
264
214
|
required :url, String
|
|
265
215
|
|
|
266
|
-
# @!method initialize(id:, title:,
|
|
216
|
+
# @!method initialize(id:, title:, url:, type: :url)
|
|
267
217
|
# @param id [String]
|
|
268
218
|
# @param title [String, nil]
|
|
269
|
-
# @param type [Symbol, Handinger::Models::Worker::Source::Type]
|
|
270
219
|
# @param url [String]
|
|
271
|
-
|
|
272
|
-
# @see Handinger::Models::Worker::Source#type
|
|
273
|
-
module Type
|
|
274
|
-
extend Handinger::Internal::Type::Enum
|
|
275
|
-
|
|
276
|
-
URL = :url
|
|
277
|
-
|
|
278
|
-
# @!method self.values
|
|
279
|
-
# @return [Array<Symbol>]
|
|
280
|
-
end
|
|
220
|
+
# @param type [Symbol, :url]
|
|
281
221
|
end
|
|
282
222
|
|
|
283
223
|
# @see Handinger::Models::Worker#status
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
class UpdateWebhook < Handinger::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute url
|
|
8
|
+
# HTTPS endpoint Handinger should POST to when a task finishes. Pass `null` to
|
|
9
|
+
# remove the webhook and clear its token.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
required :url, String, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!method initialize(url:)
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {Handinger::Models::Workers::UpdateWebhook} for more details.
|
|
17
|
+
#
|
|
18
|
+
# @param url [String, nil] HTTPS endpoint Handinger should POST to when a task finishes. Pass `null` to rem
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#retrieve
|
|
7
|
+
class Webhook < Handinger::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute token
|
|
9
|
+
# Shared secret sent in the `X-Handinger-Token` header on each delivery. `null`
|
|
10
|
+
# when no webhook is configured.
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
required :token, String, nil?: true
|
|
14
|
+
|
|
15
|
+
# @!attribute url
|
|
16
|
+
# HTTPS endpoint that receives webhook deliveries when a task completes. `null`
|
|
17
|
+
# when no webhook is configured.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
required :url, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(token:, url:)
|
|
23
|
+
# Some parameter documentations has been truncated, see
|
|
24
|
+
# {Handinger::Models::Workers::Webhook} for more details.
|
|
25
|
+
#
|
|
26
|
+
# @param token [String, nil] Shared secret sent in the `X-Handinger-Token` header on each delivery. `null` wh
|
|
27
|
+
#
|
|
28
|
+
# @param url [String, nil] HTTPS endpoint that receives webhook deliveries when a task completes. `null` wh
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#delete
|
|
7
|
+
class WebhookDeleteParams < Handinger::Internal::Type::BaseModel
|
|
8
|
+
extend Handinger::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Handinger::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute worker_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :worker_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(worker_id:, request_options: {})
|
|
17
|
+
# @param worker_id [String]
|
|
18
|
+
# @param request_options [Handinger::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
class WebhookExecution < Handinger::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
#
|
|
14
|
+
# @return [Time]
|
|
15
|
+
required :created_at, Time, api_name: :createdAt
|
|
16
|
+
|
|
17
|
+
# @!attribute duration_ms
|
|
18
|
+
# Wall-clock time spent on the delivery attempt.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :duration_ms, Integer, api_name: :durationMs
|
|
22
|
+
|
|
23
|
+
# @!attribute error_message
|
|
24
|
+
# Failure reason when `requestStatus` is `error`.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
required :error_message, String, api_name: :errorMessage, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute request_status
|
|
30
|
+
# `success` when the endpoint returned a 2xx response, `error` otherwise.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Handinger::Models::Workers::WebhookExecution::RequestStatus]
|
|
33
|
+
required :request_status,
|
|
34
|
+
enum: -> { Handinger::Workers::WebhookExecution::RequestStatus },
|
|
35
|
+
api_name: :requestStatus
|
|
36
|
+
|
|
37
|
+
# @!attribute response_status
|
|
38
|
+
# HTTP status returned by the endpoint, when reachable.
|
|
39
|
+
#
|
|
40
|
+
# @return [Integer, nil]
|
|
41
|
+
required :response_status, Integer, api_name: :responseStatus, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute task_id
|
|
44
|
+
# Task that triggered the delivery, when available.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
required :task_id, String, api_name: :taskId, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute task_title
|
|
50
|
+
# Title of the originating task, when available.
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
required :task_title, String, api_name: :taskTitle, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!attribute url
|
|
56
|
+
# Endpoint Handinger attempted to deliver to.
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :url, String
|
|
60
|
+
|
|
61
|
+
# @!attribute worker_id
|
|
62
|
+
#
|
|
63
|
+
# @return [String]
|
|
64
|
+
required :worker_id, String, api_name: :workerId
|
|
65
|
+
|
|
66
|
+
# @!method initialize(id:, created_at:, duration_ms:, error_message:, request_status:, response_status:, task_id:, task_title:, url:, worker_id:)
|
|
67
|
+
# @param id [String]
|
|
68
|
+
#
|
|
69
|
+
# @param created_at [Time]
|
|
70
|
+
#
|
|
71
|
+
# @param duration_ms [Integer] Wall-clock time spent on the delivery attempt.
|
|
72
|
+
#
|
|
73
|
+
# @param error_message [String, nil] Failure reason when `requestStatus` is `error`.
|
|
74
|
+
#
|
|
75
|
+
# @param request_status [Symbol, Handinger::Models::Workers::WebhookExecution::RequestStatus] `success` when the endpoint returned a 2xx response, `error` otherwise.
|
|
76
|
+
#
|
|
77
|
+
# @param response_status [Integer, nil] HTTP status returned by the endpoint, when reachable.
|
|
78
|
+
#
|
|
79
|
+
# @param task_id [String, nil] Task that triggered the delivery, when available.
|
|
80
|
+
#
|
|
81
|
+
# @param task_title [String, nil] Title of the originating task, when available.
|
|
82
|
+
#
|
|
83
|
+
# @param url [String] Endpoint Handinger attempted to deliver to.
|
|
84
|
+
#
|
|
85
|
+
# @param worker_id [String]
|
|
86
|
+
|
|
87
|
+
# `success` when the endpoint returned a 2xx response, `error` otherwise.
|
|
88
|
+
#
|
|
89
|
+
# @see Handinger::Models::Workers::WebhookExecution#request_status
|
|
90
|
+
module RequestStatus
|
|
91
|
+
extend Handinger::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
SUCCESS = :success
|
|
94
|
+
ERROR = :error
|
|
95
|
+
|
|
96
|
+
# @!method self.values
|
|
97
|
+
# @return [Array<Symbol>]
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#list_executions
|
|
7
|
+
class WebhookExecutionList < Handinger::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute logs
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Handinger::Models::Workers::WebhookExecution>]
|
|
11
|
+
required :logs, -> { Handinger::Internal::Type::ArrayOf[Handinger::Workers::WebhookExecution] }
|
|
12
|
+
|
|
13
|
+
# @!attribute page
|
|
14
|
+
# Current page number.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :page, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute page_count
|
|
20
|
+
# Total number of pages available.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
required :page_count, Integer, api_name: :pageCount
|
|
24
|
+
|
|
25
|
+
# @!attribute total_count
|
|
26
|
+
# Total number of executions recorded.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
required :total_count, Integer, api_name: :totalCount
|
|
30
|
+
|
|
31
|
+
# @!method initialize(logs:, page:, page_count:, total_count:)
|
|
32
|
+
# @param logs [Array<Handinger::Models::Workers::WebhookExecution>]
|
|
33
|
+
#
|
|
34
|
+
# @param page [Integer] Current page number.
|
|
35
|
+
#
|
|
36
|
+
# @param page_count [Integer] Total number of pages available.
|
|
37
|
+
#
|
|
38
|
+
# @param total_count [Integer] Total number of executions recorded.
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#list_executions
|
|
7
|
+
class WebhookListExecutionsParams < Handinger::Internal::Type::BaseModel
|
|
8
|
+
extend Handinger::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Handinger::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute worker_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :worker_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute page
|
|
17
|
+
# Page number (1-indexed). Defaults to 1.
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :page, Integer
|
|
21
|
+
|
|
22
|
+
# @!method initialize(worker_id:, page: nil, request_options: {})
|
|
23
|
+
# @param worker_id [String]
|
|
24
|
+
#
|
|
25
|
+
# @param page [Integer] Page number (1-indexed). Defaults to 1.
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [Handinger::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#regenerate_token
|
|
7
|
+
class WebhookRegenerateTokenParams < Handinger::Internal::Type::BaseModel
|
|
8
|
+
extend Handinger::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Handinger::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute worker_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :worker_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(worker_id:, request_options: {})
|
|
17
|
+
# @param worker_id [String]
|
|
18
|
+
# @param request_options [Handinger::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#retrieve
|
|
7
|
+
class WebhookRetrieveParams < Handinger::Internal::Type::BaseModel
|
|
8
|
+
extend Handinger::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Handinger::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute worker_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :worker_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(worker_id:, request_options: {})
|
|
17
|
+
# @param worker_id [String]
|
|
18
|
+
# @param request_options [Handinger::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Handinger
|
|
4
|
+
module Models
|
|
5
|
+
module Workers
|
|
6
|
+
# @see Handinger::Resources::Workers::Webhooks#update
|
|
7
|
+
class WebhookUpdateParams < Handinger::Models::Workers::UpdateWebhook
|
|
8
|
+
extend Handinger::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Handinger::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute worker_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :worker_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(worker_id:, request_options: {})
|
|
17
|
+
# @param worker_id [String]
|
|
18
|
+
# @param request_options [Handinger::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|