knockapi 1.34.0 → 1.36.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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +92 -0
  3. data/README.md +1 -1
  4. data/lib/knockapi/client.rb +17 -0
  5. data/lib/knockapi/internal/transport/base_client.rb +5 -0
  6. data/lib/knockapi/internal/util.rb +22 -7
  7. data/lib/knockapi/models/condition.rb +1 -0
  8. data/lib/knockapi/models/message.rb +33 -1
  9. data/lib/knockapi/models/message_event.rb +12 -11
  10. data/lib/knockapi/models/object_unset_preferences_params.rb +32 -0
  11. data/lib/knockapi/models/providers/ms_team_check_auth_response.rb +9 -1
  12. data/lib/knockapi/models/recipients/slack_channel_data.rb +21 -6
  13. data/lib/knockapi/models/tenant.rb +35 -1
  14. data/lib/knockapi/models/tenant_request.rb +35 -1
  15. data/lib/knockapi/models/user_unset_preferences_params.rb +26 -0
  16. data/lib/knockapi/models/users/bulk_set_preferences_params.rb +221 -4
  17. data/lib/knockapi/models/users/guide_get_channel_response.rb +9 -1
  18. data/lib/knockapi/models/workflow_cancel_params.rb +6 -6
  19. data/lib/knockapi/models/workflow_recipient_run.rb +193 -0
  20. data/lib/knockapi/models/workflow_recipient_run_detail.rb +19 -0
  21. data/lib/knockapi/models/workflow_recipient_run_event.rb +99 -0
  22. data/lib/knockapi/models/workflow_recipient_run_get_params.rb +20 -0
  23. data/lib/knockapi/models/workflow_recipient_run_list_params.rb +112 -0
  24. data/lib/knockapi/models/workflow_trigger_params.rb +42 -7
  25. data/lib/knockapi/models.rb +14 -0
  26. data/lib/knockapi/resources/objects.rb +24 -0
  27. data/lib/knockapi/resources/users/bulk.rb +4 -1
  28. data/lib/knockapi/resources/users.rb +22 -0
  29. data/lib/knockapi/resources/workflow_recipient_runs.rb +81 -0
  30. data/lib/knockapi/resources/workflows.rb +5 -3
  31. data/lib/knockapi/version.rb +1 -1
  32. data/lib/knockapi.rb +8 -0
  33. data/rbi/knockapi/client.rbi +5 -0
  34. data/rbi/knockapi/internal/util.rbi +8 -0
  35. data/rbi/knockapi/models/condition.rbi +2 -0
  36. data/rbi/knockapi/models/message.rbi +59 -0
  37. data/rbi/knockapi/models/message_event.rbi +28 -26
  38. data/rbi/knockapi/models/object_unset_preferences_params.rbi +51 -0
  39. data/rbi/knockapi/models/providers/ms_team_check_auth_response.rbi +18 -4
  40. data/rbi/knockapi/models/recipients/slack_channel_data.rbi +57 -7
  41. data/rbi/knockapi/models/tenant.rbi +36 -0
  42. data/rbi/knockapi/models/tenant_request.rbi +36 -0
  43. data/rbi/knockapi/models/user_unset_preferences_params.rbi +46 -0
  44. data/rbi/knockapi/models/users/bulk_set_preferences_params.rbi +527 -6
  45. data/rbi/knockapi/models/users/guide_get_channel_response.rbi +11 -0
  46. data/rbi/knockapi/models/workflow_cancel_params.rbi +10 -10
  47. data/rbi/knockapi/models/workflow_recipient_run.rbi +318 -0
  48. data/rbi/knockapi/models/workflow_recipient_run_detail.rbi +39 -0
  49. data/rbi/knockapi/models/workflow_recipient_run_event.rbi +137 -0
  50. data/rbi/knockapi/models/workflow_recipient_run_get_params.rbi +38 -0
  51. data/rbi/knockapi/models/workflow_recipient_run_list_params.rbi +229 -0
  52. data/rbi/knockapi/models/workflow_trigger_params.rbi +76 -10
  53. data/rbi/knockapi/models.rbi +16 -0
  54. data/rbi/knockapi/resources/objects.rbi +20 -0
  55. data/rbi/knockapi/resources/users/bulk.rbi +4 -2
  56. data/rbi/knockapi/resources/users.rbi +17 -0
  57. data/rbi/knockapi/resources/workflow_recipient_runs.rbi +79 -0
  58. data/rbi/knockapi/resources/workflows.rbi +14 -10
  59. data/sig/knockapi/client.rbs +2 -0
  60. data/sig/knockapi/internal/util.rbs +4 -0
  61. data/sig/knockapi/models/condition.rbs +2 -0
  62. data/sig/knockapi/models/message.rbs +19 -0
  63. data/sig/knockapi/models/message_event.rbs +24 -22
  64. data/sig/knockapi/models/object_unset_preferences_params.rbs +32 -0
  65. data/sig/knockapi/models/providers/ms_team_check_auth_response.rbs +15 -4
  66. data/sig/knockapi/models/recipients/slack_channel_data.rbs +21 -4
  67. data/sig/knockapi/models/tenant.rbs +20 -0
  68. data/sig/knockapi/models/tenant_request.rbs +20 -0
  69. data/sig/knockapi/models/user_unset_preferences_params.rbs +28 -0
  70. data/sig/knockapi/models/users/bulk_set_preferences_params.rbs +149 -4
  71. data/sig/knockapi/models/users/guide_get_channel_response.rbs +7 -0
  72. data/sig/knockapi/models/workflow_recipient_run.rbs +146 -0
  73. data/sig/knockapi/models/workflow_recipient_run_detail.rbs +20 -0
  74. data/sig/knockapi/models/workflow_recipient_run_event.rbs +73 -0
  75. data/sig/knockapi/models/workflow_recipient_run_get_params.rbs +20 -0
  76. data/sig/knockapi/models/workflow_recipient_run_list_params.rbs +109 -0
  77. data/sig/knockapi/models/workflow_trigger_params.rbs +17 -0
  78. data/sig/knockapi/models.rbs +14 -0
  79. data/sig/knockapi/resources/objects.rbs +7 -0
  80. data/sig/knockapi/resources/users/bulk.rbs +1 -1
  81. data/sig/knockapi/resources/users.rbs +6 -0
  82. data/sig/knockapi/resources/workflow_recipient_runs.rbs +26 -0
  83. data/sig/knockapi/resources/workflows.rbs +1 -0
  84. metadata +26 -2
@@ -0,0 +1,318 @@
1
+ # typed: strong
2
+
3
+ module Knockapi
4
+ module Models
5
+ class WorkflowRecipientRun < Knockapi::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Knockapi::WorkflowRecipientRun, Knockapi::Internal::AnyHash)
9
+ end
10
+
11
+ # The unique identifier for the workflow recipient run (per-recipient).
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The typename of the schema.
16
+ sig { returns(String) }
17
+ attr_accessor :_typename
18
+
19
+ # Timestamp when the resource was created.
20
+ sig { returns(Time) }
21
+ attr_accessor :inserted_at
22
+
23
+ # A reference to a recipient, either a user identifier (string) or an object
24
+ # reference (ID, collection).
25
+ sig { returns(Knockapi::RecipientReference::Variants) }
26
+ attr_accessor :recipient
27
+
28
+ # The current status of the workflow recipient run. One of `queued`, `processing`,
29
+ # `paused`, `completed`, or `cancelled`.
30
+ sig { returns(Knockapi::WorkflowRecipientRun::Status::TaggedSymbol) }
31
+ attr_accessor :status
32
+
33
+ # Describes how the workflow was triggered.
34
+ sig { returns(Knockapi::WorkflowRecipientRun::TriggerSource) }
35
+ attr_reader :trigger_source
36
+
37
+ sig do
38
+ params(
39
+ trigger_source: Knockapi::WorkflowRecipientRun::TriggerSource::OrHash
40
+ ).void
41
+ end
42
+ attr_writer :trigger_source
43
+
44
+ # The timestamp when the resource was last updated.
45
+ sig { returns(Time) }
46
+ attr_accessor :updated_at
47
+
48
+ # The key of the workflow that was executed.
49
+ sig { returns(String) }
50
+ attr_accessor :workflow
51
+
52
+ # The identifier for the top-level workflow run shared across all recipients in a
53
+ # single trigger.
54
+ sig { returns(String) }
55
+ attr_accessor :workflow_run_id
56
+
57
+ # A reference to a recipient, either a user identifier (string) or an object
58
+ # reference (ID, collection).
59
+ sig { returns(T.nilable(Knockapi::RecipientReference::Variants)) }
60
+ attr_accessor :actor
61
+
62
+ # The number of errors encountered during the workflow recipient run.
63
+ sig { returns(T.nilable(Integer)) }
64
+ attr_reader :error_count
65
+
66
+ sig { params(error_count: Integer).void }
67
+ attr_writer :error_count
68
+
69
+ # The tenant associated with the workflow recipient run.
70
+ sig { returns(T.nilable(String)) }
71
+ attr_accessor :tenant
72
+
73
+ # A workflow recipient run represents an individual execution of a workflow for a
74
+ # specific recipient.
75
+ sig do
76
+ params(
77
+ id: String,
78
+ _typename: String,
79
+ inserted_at: Time,
80
+ recipient:
81
+ T.any(
82
+ String,
83
+ Knockapi::RecipientReference::ObjectReference::OrHash
84
+ ),
85
+ status: Knockapi::WorkflowRecipientRun::Status::OrSymbol,
86
+ trigger_source: Knockapi::WorkflowRecipientRun::TriggerSource::OrHash,
87
+ updated_at: Time,
88
+ workflow: String,
89
+ workflow_run_id: String,
90
+ actor:
91
+ T.nilable(
92
+ T.any(
93
+ String,
94
+ Knockapi::RecipientReference::ObjectReference::OrHash
95
+ )
96
+ ),
97
+ error_count: Integer,
98
+ tenant: T.nilable(String)
99
+ ).returns(T.attached_class)
100
+ end
101
+ def self.new(
102
+ # The unique identifier for the workflow recipient run (per-recipient).
103
+ id:,
104
+ # The typename of the schema.
105
+ _typename:,
106
+ # Timestamp when the resource was created.
107
+ inserted_at:,
108
+ # A reference to a recipient, either a user identifier (string) or an object
109
+ # reference (ID, collection).
110
+ recipient:,
111
+ # The current status of the workflow recipient run. One of `queued`, `processing`,
112
+ # `paused`, `completed`, or `cancelled`.
113
+ status:,
114
+ # Describes how the workflow was triggered.
115
+ trigger_source:,
116
+ # The timestamp when the resource was last updated.
117
+ updated_at:,
118
+ # The key of the workflow that was executed.
119
+ workflow:,
120
+ # The identifier for the top-level workflow run shared across all recipients in a
121
+ # single trigger.
122
+ workflow_run_id:,
123
+ # A reference to a recipient, either a user identifier (string) or an object
124
+ # reference (ID, collection).
125
+ actor: nil,
126
+ # The number of errors encountered during the workflow recipient run.
127
+ error_count: nil,
128
+ # The tenant associated with the workflow recipient run.
129
+ tenant: nil
130
+ )
131
+ end
132
+
133
+ sig do
134
+ override.returns(
135
+ {
136
+ id: String,
137
+ _typename: String,
138
+ inserted_at: Time,
139
+ recipient: Knockapi::RecipientReference::Variants,
140
+ status: Knockapi::WorkflowRecipientRun::Status::TaggedSymbol,
141
+ trigger_source: Knockapi::WorkflowRecipientRun::TriggerSource,
142
+ updated_at: Time,
143
+ workflow: String,
144
+ workflow_run_id: String,
145
+ actor: T.nilable(Knockapi::RecipientReference::Variants),
146
+ error_count: Integer,
147
+ tenant: T.nilable(String)
148
+ }
149
+ )
150
+ end
151
+ def to_hash
152
+ end
153
+
154
+ # The current status of the workflow recipient run. One of `queued`, `processing`,
155
+ # `paused`, `completed`, or `cancelled`.
156
+ module Status
157
+ extend Knockapi::Internal::Type::Enum
158
+
159
+ TaggedSymbol =
160
+ T.type_alias { T.all(Symbol, Knockapi::WorkflowRecipientRun::Status) }
161
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
162
+
163
+ QUEUED =
164
+ T.let(:queued, Knockapi::WorkflowRecipientRun::Status::TaggedSymbol)
165
+ PROCESSING =
166
+ T.let(
167
+ :processing,
168
+ Knockapi::WorkflowRecipientRun::Status::TaggedSymbol
169
+ )
170
+ PAUSED =
171
+ T.let(:paused, Knockapi::WorkflowRecipientRun::Status::TaggedSymbol)
172
+ COMPLETED =
173
+ T.let(
174
+ :completed,
175
+ Knockapi::WorkflowRecipientRun::Status::TaggedSymbol
176
+ )
177
+ CANCELLED =
178
+ T.let(
179
+ :cancelled,
180
+ Knockapi::WorkflowRecipientRun::Status::TaggedSymbol
181
+ )
182
+
183
+ sig do
184
+ override.returns(
185
+ T::Array[Knockapi::WorkflowRecipientRun::Status::TaggedSymbol]
186
+ )
187
+ end
188
+ def self.values
189
+ end
190
+ end
191
+
192
+ class TriggerSource < Knockapi::Internal::Type::BaseModel
193
+ OrHash =
194
+ T.type_alias do
195
+ T.any(
196
+ Knockapi::WorkflowRecipientRun::TriggerSource,
197
+ Knockapi::Internal::AnyHash
198
+ )
199
+ end
200
+
201
+ # The type of trigger source. One of `api`, `audience`, `schedule`, `broadcast`,
202
+ # `workflow_step`, `integration`, or `rehearsal`.
203
+ sig do
204
+ returns(
205
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
206
+ )
207
+ end
208
+ attr_accessor :type
209
+
210
+ # The key of the audience that triggered the workflow.
211
+ sig { returns(T.nilable(String)) }
212
+ attr_accessor :audience_key
213
+
214
+ # The cancellation key provided when the workflow was triggered via the API.
215
+ sig { returns(T.nilable(String)) }
216
+ attr_accessor :cancellation_key
217
+
218
+ # The ID of the schedule that triggered the workflow.
219
+ sig { returns(T.nilable(String)) }
220
+ attr_accessor :schedule_id
221
+
222
+ # Describes how the workflow was triggered.
223
+ sig do
224
+ params(
225
+ type: Knockapi::WorkflowRecipientRun::TriggerSource::Type::OrSymbol,
226
+ audience_key: T.nilable(String),
227
+ cancellation_key: T.nilable(String),
228
+ schedule_id: T.nilable(String)
229
+ ).returns(T.attached_class)
230
+ end
231
+ def self.new(
232
+ # The type of trigger source. One of `api`, `audience`, `schedule`, `broadcast`,
233
+ # `workflow_step`, `integration`, or `rehearsal`.
234
+ type:,
235
+ # The key of the audience that triggered the workflow.
236
+ audience_key: nil,
237
+ # The cancellation key provided when the workflow was triggered via the API.
238
+ cancellation_key: nil,
239
+ # The ID of the schedule that triggered the workflow.
240
+ schedule_id: nil
241
+ )
242
+ end
243
+
244
+ sig do
245
+ override.returns(
246
+ {
247
+ type:
248
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol,
249
+ audience_key: T.nilable(String),
250
+ cancellation_key: T.nilable(String),
251
+ schedule_id: T.nilable(String)
252
+ }
253
+ )
254
+ end
255
+ def to_hash
256
+ end
257
+
258
+ # The type of trigger source. One of `api`, `audience`, `schedule`, `broadcast`,
259
+ # `workflow_step`, `integration`, or `rehearsal`.
260
+ module Type
261
+ extend Knockapi::Internal::Type::Enum
262
+
263
+ TaggedSymbol =
264
+ T.type_alias do
265
+ T.all(Symbol, Knockapi::WorkflowRecipientRun::TriggerSource::Type)
266
+ end
267
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
268
+
269
+ API =
270
+ T.let(
271
+ :api,
272
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
273
+ )
274
+ AUDIENCE =
275
+ T.let(
276
+ :audience,
277
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
278
+ )
279
+ SCHEDULE =
280
+ T.let(
281
+ :schedule,
282
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
283
+ )
284
+ BROADCAST =
285
+ T.let(
286
+ :broadcast,
287
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
288
+ )
289
+ WORKFLOW_STEP =
290
+ T.let(
291
+ :workflow_step,
292
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
293
+ )
294
+ INTEGRATION =
295
+ T.let(
296
+ :integration,
297
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
298
+ )
299
+ REHEARSAL =
300
+ T.let(
301
+ :rehearsal,
302
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
303
+ )
304
+
305
+ sig do
306
+ override.returns(
307
+ T::Array[
308
+ Knockapi::WorkflowRecipientRun::TriggerSource::Type::TaggedSymbol
309
+ ]
310
+ )
311
+ end
312
+ def self.values
313
+ end
314
+ end
315
+ end
316
+ end
317
+ end
318
+ end
@@ -0,0 +1,39 @@
1
+ # typed: strong
2
+
3
+ module Knockapi
4
+ module Models
5
+ class WorkflowRecipientRunDetail < Knockapi::Models::WorkflowRecipientRun
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Knockapi::WorkflowRecipientRunDetail,
10
+ Knockapi::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # A list of events that occurred during the workflow recipient run.
15
+ sig { returns(T::Array[Knockapi::WorkflowRecipientRunEvent]) }
16
+ attr_accessor :events
17
+
18
+ # A single workflow recipient run with its events.
19
+ sig do
20
+ params(
21
+ events: T::Array[Knockapi::WorkflowRecipientRunEvent::OrHash]
22
+ ).returns(T.attached_class)
23
+ end
24
+ def self.new(
25
+ # A list of events that occurred during the workflow recipient run.
26
+ events:
27
+ )
28
+ end
29
+
30
+ sig do
31
+ override.returns(
32
+ { events: T::Array[Knockapi::WorkflowRecipientRunEvent] }
33
+ )
34
+ end
35
+ def to_hash
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,137 @@
1
+ # typed: strong
2
+
3
+ module Knockapi
4
+ module Models
5
+ class WorkflowRecipientRunEvent < Knockapi::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Knockapi::WorkflowRecipientRunEvent,
10
+ Knockapi::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The unique identifier for the event.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The typename of the schema.
19
+ sig { returns(String) }
20
+ attr_accessor :_typename
21
+
22
+ # The type of event that occurred.
23
+ sig { returns(String) }
24
+ attr_accessor :event
25
+
26
+ # Timestamp when the resource was created.
27
+ sig { returns(Time) }
28
+ attr_accessor :inserted_at
29
+
30
+ # Whether the event represents a successful or error state.
31
+ sig { returns(Knockapi::WorkflowRecipientRunEvent::Status::TaggedSymbol) }
32
+ attr_accessor :status
33
+
34
+ # The attempt number of the workflow recipient run event. Increments for each
35
+ # retry.
36
+ sig { returns(T.nilable(Integer)) }
37
+ attr_reader :attempt
38
+
39
+ sig { params(attempt: Integer).void }
40
+ attr_writer :attempt
41
+
42
+ # Event-specific data associated with the event.
43
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
44
+ attr_accessor :data
45
+
46
+ # The reference of the workflow step associated with this event.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :step_ref
49
+
50
+ # The type of workflow step associated with this event.
51
+ sig { returns(T.nilable(String)) }
52
+ attr_accessor :step_type
53
+
54
+ # An event that occurred during a workflow recipient run.
55
+ sig do
56
+ params(
57
+ id: String,
58
+ _typename: String,
59
+ event: String,
60
+ inserted_at: Time,
61
+ status: Knockapi::WorkflowRecipientRunEvent::Status::OrSymbol,
62
+ attempt: Integer,
63
+ data: T.nilable(T::Hash[Symbol, T.anything]),
64
+ step_ref: T.nilable(String),
65
+ step_type: T.nilable(String)
66
+ ).returns(T.attached_class)
67
+ end
68
+ def self.new(
69
+ # The unique identifier for the event.
70
+ id:,
71
+ # The typename of the schema.
72
+ _typename:,
73
+ # The type of event that occurred.
74
+ event:,
75
+ # Timestamp when the resource was created.
76
+ inserted_at:,
77
+ # Whether the event represents a successful or error state.
78
+ status:,
79
+ # The attempt number of the workflow recipient run event. Increments for each
80
+ # retry.
81
+ attempt: nil,
82
+ # Event-specific data associated with the event.
83
+ data: nil,
84
+ # The reference of the workflow step associated with this event.
85
+ step_ref: nil,
86
+ # The type of workflow step associated with this event.
87
+ step_type: nil
88
+ )
89
+ end
90
+
91
+ sig do
92
+ override.returns(
93
+ {
94
+ id: String,
95
+ _typename: String,
96
+ event: String,
97
+ inserted_at: Time,
98
+ status: Knockapi::WorkflowRecipientRunEvent::Status::TaggedSymbol,
99
+ attempt: Integer,
100
+ data: T.nilable(T::Hash[Symbol, T.anything]),
101
+ step_ref: T.nilable(String),
102
+ step_type: T.nilable(String)
103
+ }
104
+ )
105
+ end
106
+ def to_hash
107
+ end
108
+
109
+ # Whether the event represents a successful or error state.
110
+ module Status
111
+ extend Knockapi::Internal::Type::Enum
112
+
113
+ TaggedSymbol =
114
+ T.type_alias do
115
+ T.all(Symbol, Knockapi::WorkflowRecipientRunEvent::Status)
116
+ end
117
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
118
+
119
+ OK =
120
+ T.let(:ok, Knockapi::WorkflowRecipientRunEvent::Status::TaggedSymbol)
121
+ ERROR =
122
+ T.let(
123
+ :error,
124
+ Knockapi::WorkflowRecipientRunEvent::Status::TaggedSymbol
125
+ )
126
+
127
+ sig do
128
+ override.returns(
129
+ T::Array[Knockapi::WorkflowRecipientRunEvent::Status::TaggedSymbol]
130
+ )
131
+ end
132
+ def self.values
133
+ end
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,38 @@
1
+ # typed: strong
2
+
3
+ module Knockapi
4
+ module Models
5
+ class WorkflowRecipientRunGetParams < Knockapi::Internal::Type::BaseModel
6
+ extend Knockapi::Internal::Type::RequestParameters::Converter
7
+ include Knockapi::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Knockapi::WorkflowRecipientRunGetParams,
13
+ Knockapi::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(String) }
18
+ attr_accessor :id
19
+
20
+ sig do
21
+ params(
22
+ id: String,
23
+ request_options: Knockapi::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
25
+ end
26
+ def self.new(id:, request_options: {})
27
+ end
28
+
29
+ sig do
30
+ override.returns(
31
+ { id: String, request_options: Knockapi::RequestOptions }
32
+ )
33
+ end
34
+ def to_hash
35
+ end
36
+ end
37
+ end
38
+ end