svix 0.45.0 → 0.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +62 -8
- data/lib/svix/api/application_api.rb +15 -0
- data/lib/svix/api/authentication_api.rb +6 -0
- data/lib/svix/api/endpoint_api.rb +39 -0
- data/lib/svix/api/environment_api.rb +6 -0
- data/lib/svix/api/environment_settings_api.rb +3 -0
- data/lib/svix/api/event_type_api.rb +18 -0
- data/lib/svix/api/health_api.rb +5 -0
- data/lib/svix/api/integration_api.rb +21 -0
- data/lib/svix/api/message_api.rb +21 -0
- data/lib/svix/api/message_attempt_api.rb +342 -4
- data/lib/svix/api/organization_api.rb +29 -29
- data/lib/svix/api/organization_settings_api.rb +6 -6
- data/lib/svix/api/statistics_api.rb +6 -0
- data/lib/svix/message_attempt_api.rb +11 -1
- data/lib/svix/models/export_organization_out.rb +3 -3
- data/lib/svix/models/import_organization_in.rb +3 -3
- data/lib/svix/models/message_attempt_endpoint_out.rb +15 -1
- data/lib/svix/version.rb +1 -1
- metadata +2 -2
@@ -23,6 +23,7 @@ module Svix
|
|
23
23
|
# Create new or unarchive existing event type. Unarchiving an event type will allow endpoints to filter on it and messages to be sent with it. Endpoints filtering on the event type before archival will continue to filter on it. This operation does not preserve the description and schemas.
|
24
24
|
# @param event_type_in [EventTypeIn]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
26
27
|
# @return [EventTypeOut]
|
27
28
|
def create_event_type_api_v1_event_type_post(event_type_in, opts = {})
|
28
29
|
data, _status_code, _headers = create_event_type_api_v1_event_type_post_with_http_info(event_type_in, opts)
|
@@ -33,6 +34,7 @@ module Svix
|
|
33
34
|
# Create new or unarchive existing event type. Unarchiving an event type will allow endpoints to filter on it and messages to be sent with it. Endpoints filtering on the event type before archival will continue to filter on it. This operation does not preserve the description and schemas.
|
34
35
|
# @param event_type_in [EventTypeIn]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
36
38
|
# @return [Array<(EventTypeOut, Integer, Hash)>] EventTypeOut data, response status code and response headers
|
37
39
|
def create_event_type_api_v1_event_type_post_with_http_info(event_type_in, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -54,6 +56,7 @@ module Svix
|
|
54
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
57
|
# HTTP header 'Content-Type'
|
56
58
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
59
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
57
60
|
|
58
61
|
# form parameters
|
59
62
|
form_params = opts[:form_params] || {}
|
@@ -88,6 +91,7 @@ module Svix
|
|
88
91
|
# Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post).
|
89
92
|
# @param event_type_name [String]
|
90
93
|
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
91
95
|
# @return [nil]
|
92
96
|
def delete_event_type_api_v1_event_type_event_type_name_delete(event_type_name, opts = {})
|
93
97
|
delete_event_type_api_v1_event_type_event_type_name_delete_with_http_info(event_type_name, opts)
|
@@ -98,6 +102,7 @@ module Svix
|
|
98
102
|
# Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post).
|
99
103
|
# @param event_type_name [String]
|
100
104
|
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
101
106
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
102
107
|
def delete_event_type_api_v1_event_type_event_type_name_delete_with_http_info(event_type_name, opts = {})
|
103
108
|
if @api_client.config.debugging
|
@@ -126,6 +131,7 @@ module Svix
|
|
126
131
|
header_params = opts[:header_params] || {}
|
127
132
|
# HTTP header 'Accept' (if needed)
|
128
133
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
129
135
|
|
130
136
|
# form parameters
|
131
137
|
form_params = opts[:form_params] || {}
|
@@ -160,6 +166,7 @@ module Svix
|
|
160
166
|
# Generates a fake example from the given JSONSchema
|
161
167
|
# @param event_type_schema_in [EventTypeSchemaIn]
|
162
168
|
# @param [Hash] opts the optional parameters
|
169
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
163
170
|
# @return [EventTypeExampleOut]
|
164
171
|
def generate_schema_example_api_v1_event_type_schema_generate_example_post(event_type_schema_in, opts = {})
|
165
172
|
data, _status_code, _headers = generate_schema_example_api_v1_event_type_schema_generate_example_post_with_http_info(event_type_schema_in, opts)
|
@@ -170,6 +177,7 @@ module Svix
|
|
170
177
|
# Generates a fake example from the given JSONSchema
|
171
178
|
# @param event_type_schema_in [EventTypeSchemaIn]
|
172
179
|
# @param [Hash] opts the optional parameters
|
180
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
173
181
|
# @return [Array<(EventTypeExampleOut, Integer, Hash)>] EventTypeExampleOut data, response status code and response headers
|
174
182
|
def generate_schema_example_api_v1_event_type_schema_generate_example_post_with_http_info(event_type_schema_in, opts = {})
|
175
183
|
if @api_client.config.debugging
|
@@ -191,6 +199,7 @@ module Svix
|
|
191
199
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
192
200
|
# HTTP header 'Content-Type'
|
193
201
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
202
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
194
203
|
|
195
204
|
# form parameters
|
196
205
|
form_params = opts[:form_params] || {}
|
@@ -225,6 +234,7 @@ module Svix
|
|
225
234
|
# Get an event type.
|
226
235
|
# @param event_type_name [String]
|
227
236
|
# @param [Hash] opts the optional parameters
|
237
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
228
238
|
# @return [EventTypeOut]
|
229
239
|
def get_event_type_api_v1_event_type_event_type_name_get(event_type_name, opts = {})
|
230
240
|
data, _status_code, _headers = get_event_type_api_v1_event_type_event_type_name_get_with_http_info(event_type_name, opts)
|
@@ -235,6 +245,7 @@ module Svix
|
|
235
245
|
# Get an event type.
|
236
246
|
# @param event_type_name [String]
|
237
247
|
# @param [Hash] opts the optional parameters
|
248
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
238
249
|
# @return [Array<(EventTypeOut, Integer, Hash)>] EventTypeOut data, response status code and response headers
|
239
250
|
def get_event_type_api_v1_event_type_event_type_name_get_with_http_info(event_type_name, opts = {})
|
240
251
|
if @api_client.config.debugging
|
@@ -263,6 +274,7 @@ module Svix
|
|
263
274
|
header_params = opts[:header_params] || {}
|
264
275
|
# HTTP header 'Accept' (if needed)
|
265
276
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
266
278
|
|
267
279
|
# form parameters
|
268
280
|
form_params = opts[:form_params] || {}
|
@@ -300,6 +312,7 @@ module Svix
|
|
300
312
|
# @option opts [Integer] :limit (default to 50)
|
301
313
|
# @option opts [Boolean] :with_content (default to false)
|
302
314
|
# @option opts [Boolean] :include_archived (default to false)
|
315
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
303
316
|
# @return [ListResponseEventTypeOut]
|
304
317
|
def list_event_types_api_v1_event_type_get(opts = {})
|
305
318
|
data, _status_code, _headers = list_event_types_api_v1_event_type_get_with_http_info(opts)
|
@@ -313,6 +326,7 @@ module Svix
|
|
313
326
|
# @option opts [Integer] :limit
|
314
327
|
# @option opts [Boolean] :with_content
|
315
328
|
# @option opts [Boolean] :include_archived
|
329
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
316
330
|
# @return [Array<(ListResponseEventTypeOut, Integer, Hash)>] ListResponseEventTypeOut data, response status code and response headers
|
317
331
|
def list_event_types_api_v1_event_type_get_with_http_info(opts = {})
|
318
332
|
if @api_client.config.debugging
|
@@ -345,6 +359,7 @@ module Svix
|
|
345
359
|
header_params = opts[:header_params] || {}
|
346
360
|
# HTTP header 'Accept' (if needed)
|
347
361
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
362
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
348
363
|
|
349
364
|
# form parameters
|
350
365
|
form_params = opts[:form_params] || {}
|
@@ -380,6 +395,7 @@ module Svix
|
|
380
395
|
# @param event_type_name [String]
|
381
396
|
# @param event_type_update [EventTypeUpdate]
|
382
397
|
# @param [Hash] opts the optional parameters
|
398
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
383
399
|
# @return [EventTypeOut]
|
384
400
|
def update_event_type_api_v1_event_type_event_type_name_put(event_type_name, event_type_update, opts = {})
|
385
401
|
data, _status_code, _headers = update_event_type_api_v1_event_type_event_type_name_put_with_http_info(event_type_name, event_type_update, opts)
|
@@ -391,6 +407,7 @@ module Svix
|
|
391
407
|
# @param event_type_name [String]
|
392
408
|
# @param event_type_update [EventTypeUpdate]
|
393
409
|
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
394
411
|
# @return [Array<(EventTypeOut, Integer, Hash)>] EventTypeOut data, response status code and response headers
|
395
412
|
def update_event_type_api_v1_event_type_event_type_name_put_with_http_info(event_type_name, event_type_update, opts = {})
|
396
413
|
if @api_client.config.debugging
|
@@ -425,6 +442,7 @@ module Svix
|
|
425
442
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
426
443
|
# HTTP header 'Content-Type'
|
427
444
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
445
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
428
446
|
|
429
447
|
# form parameters
|
430
448
|
form_params = opts[:form_params] || {}
|
data/lib/svix/api/health_api.rb
CHANGED
@@ -22,6 +22,7 @@ module Svix
|
|
22
22
|
# Health
|
23
23
|
# Verify the API server is up and running.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
25
26
|
# @return [nil]
|
26
27
|
def health_api_v1_health_get(opts = {})
|
27
28
|
health_api_v1_health_get_with_http_info(opts)
|
@@ -31,6 +32,7 @@ module Svix
|
|
31
32
|
# Health
|
32
33
|
# Verify the API server is up and running.
|
33
34
|
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
34
36
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
37
|
def health_api_v1_health_get_with_http_info(opts = {})
|
36
38
|
if @api_client.config.debugging
|
@@ -44,6 +46,9 @@ module Svix
|
|
44
46
|
|
45
47
|
# header parameters
|
46
48
|
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
47
52
|
|
48
53
|
# form parameters
|
49
54
|
form_params = opts[:form_params] || {}
|
@@ -24,6 +24,7 @@ module Svix
|
|
24
24
|
# @param app_id [String]
|
25
25
|
# @param integration_in [IntegrationIn]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
27
28
|
# @return [IntegrationOut]
|
28
29
|
def create_integration_api_v1_app_app_id_integration_post(app_id, integration_in, opts = {})
|
29
30
|
data, _status_code, _headers = create_integration_api_v1_app_app_id_integration_post_with_http_info(app_id, integration_in, opts)
|
@@ -35,6 +36,7 @@ module Svix
|
|
35
36
|
# @param app_id [String]
|
36
37
|
# @param integration_in [IntegrationIn]
|
37
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
38
40
|
# @return [Array<(IntegrationOut, Integer, Hash)>] IntegrationOut data, response status code and response headers
|
39
41
|
def create_integration_api_v1_app_app_id_integration_post_with_http_info(app_id, integration_in, opts = {})
|
40
42
|
if @api_client.config.debugging
|
@@ -73,6 +75,7 @@ module Svix
|
|
73
75
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
76
|
# HTTP header 'Content-Type'
|
75
77
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
78
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
76
79
|
|
77
80
|
# form parameters
|
78
81
|
form_params = opts[:form_params] || {}
|
@@ -108,6 +111,7 @@ module Svix
|
|
108
111
|
# @param integ_id [String]
|
109
112
|
# @param app_id [String]
|
110
113
|
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
111
115
|
# @return [nil]
|
112
116
|
def delete_integration_api_v1_app_app_id_integration_integ_id_delete(integ_id, app_id, opts = {})
|
113
117
|
delete_integration_api_v1_app_app_id_integration_integ_id_delete_with_http_info(integ_id, app_id, opts)
|
@@ -119,6 +123,7 @@ module Svix
|
|
119
123
|
# @param integ_id [String]
|
120
124
|
# @param app_id [String]
|
121
125
|
# @param [Hash] opts the optional parameters
|
126
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
122
127
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
123
128
|
def delete_integration_api_v1_app_app_id_integration_integ_id_delete_with_http_info(integ_id, app_id, opts = {})
|
124
129
|
if @api_client.config.debugging
|
@@ -155,6 +160,7 @@ module Svix
|
|
155
160
|
header_params = opts[:header_params] || {}
|
156
161
|
# HTTP header 'Accept' (if needed)
|
157
162
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
158
164
|
|
159
165
|
# form parameters
|
160
166
|
form_params = opts[:form_params] || {}
|
@@ -190,6 +196,7 @@ module Svix
|
|
190
196
|
# @param integ_id [String]
|
191
197
|
# @param app_id [String]
|
192
198
|
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
193
200
|
# @return [IntegrationOut]
|
194
201
|
def get_integration_api_v1_app_app_id_integration_integ_id_get(integ_id, app_id, opts = {})
|
195
202
|
data, _status_code, _headers = get_integration_api_v1_app_app_id_integration_integ_id_get_with_http_info(integ_id, app_id, opts)
|
@@ -201,6 +208,7 @@ module Svix
|
|
201
208
|
# @param integ_id [String]
|
202
209
|
# @param app_id [String]
|
203
210
|
# @param [Hash] opts the optional parameters
|
211
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
204
212
|
# @return [Array<(IntegrationOut, Integer, Hash)>] IntegrationOut data, response status code and response headers
|
205
213
|
def get_integration_api_v1_app_app_id_integration_integ_id_get_with_http_info(integ_id, app_id, opts = {})
|
206
214
|
if @api_client.config.debugging
|
@@ -237,6 +245,7 @@ module Svix
|
|
237
245
|
header_params = opts[:header_params] || {}
|
238
246
|
# HTTP header 'Accept' (if needed)
|
239
247
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
248
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
240
249
|
|
241
250
|
# form parameters
|
242
251
|
form_params = opts[:form_params] || {}
|
@@ -272,6 +281,7 @@ module Svix
|
|
272
281
|
# @param integ_id [String]
|
273
282
|
# @param app_id [String]
|
274
283
|
# @param [Hash] opts the optional parameters
|
284
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
275
285
|
# @return [IntegrationKeyOut]
|
276
286
|
def get_integration_key_api_v1_app_app_id_integration_integ_id_key_get(integ_id, app_id, opts = {})
|
277
287
|
data, _status_code, _headers = get_integration_key_api_v1_app_app_id_integration_integ_id_key_get_with_http_info(integ_id, app_id, opts)
|
@@ -283,6 +293,7 @@ module Svix
|
|
283
293
|
# @param integ_id [String]
|
284
294
|
# @param app_id [String]
|
285
295
|
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
286
297
|
# @return [Array<(IntegrationKeyOut, Integer, Hash)>] IntegrationKeyOut data, response status code and response headers
|
287
298
|
def get_integration_key_api_v1_app_app_id_integration_integ_id_key_get_with_http_info(integ_id, app_id, opts = {})
|
288
299
|
if @api_client.config.debugging
|
@@ -319,6 +330,7 @@ module Svix
|
|
319
330
|
header_params = opts[:header_params] || {}
|
320
331
|
# HTTP header 'Accept' (if needed)
|
321
332
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
333
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
322
334
|
|
323
335
|
# form parameters
|
324
336
|
form_params = opts[:form_params] || {}
|
@@ -355,6 +367,7 @@ module Svix
|
|
355
367
|
# @param [Hash] opts the optional parameters
|
356
368
|
# @option opts [String] :iterator
|
357
369
|
# @option opts [Integer] :limit (default to 50)
|
370
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
358
371
|
# @return [ListResponseIntegrationOut]
|
359
372
|
def list_integrations_api_v1_app_app_id_integration_get(app_id, opts = {})
|
360
373
|
data, _status_code, _headers = list_integrations_api_v1_app_app_id_integration_get_with_http_info(app_id, opts)
|
@@ -367,6 +380,7 @@ module Svix
|
|
367
380
|
# @param [Hash] opts the optional parameters
|
368
381
|
# @option opts [String] :iterator
|
369
382
|
# @option opts [Integer] :limit
|
383
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
370
384
|
# @return [Array<(ListResponseIntegrationOut, Integer, Hash)>] ListResponseIntegrationOut data, response status code and response headers
|
371
385
|
def list_integrations_api_v1_app_app_id_integration_get_with_http_info(app_id, opts = {})
|
372
386
|
if @api_client.config.debugging
|
@@ -401,6 +415,7 @@ module Svix
|
|
401
415
|
header_params = opts[:header_params] || {}
|
402
416
|
# HTTP header 'Accept' (if needed)
|
403
417
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
418
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
404
419
|
|
405
420
|
# form parameters
|
406
421
|
form_params = opts[:form_params] || {}
|
@@ -436,6 +451,7 @@ module Svix
|
|
436
451
|
# @param integ_id [String]
|
437
452
|
# @param app_id [String]
|
438
453
|
# @param [Hash] opts the optional parameters
|
454
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
439
455
|
# @return [IntegrationKeyOut]
|
440
456
|
def rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id, opts = {})
|
441
457
|
data, _status_code, _headers = rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post_with_http_info(integ_id, app_id, opts)
|
@@ -447,6 +463,7 @@ module Svix
|
|
447
463
|
# @param integ_id [String]
|
448
464
|
# @param app_id [String]
|
449
465
|
# @param [Hash] opts the optional parameters
|
466
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
450
467
|
# @return [Array<(IntegrationKeyOut, Integer, Hash)>] IntegrationKeyOut data, response status code and response headers
|
451
468
|
def rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post_with_http_info(integ_id, app_id, opts = {})
|
452
469
|
if @api_client.config.debugging
|
@@ -483,6 +500,7 @@ module Svix
|
|
483
500
|
header_params = opts[:header_params] || {}
|
484
501
|
# HTTP header 'Accept' (if needed)
|
485
502
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
503
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
486
504
|
|
487
505
|
# form parameters
|
488
506
|
form_params = opts[:form_params] || {}
|
@@ -519,6 +537,7 @@ module Svix
|
|
519
537
|
# @param app_id [String]
|
520
538
|
# @param integration_update [IntegrationUpdate]
|
521
539
|
# @param [Hash] opts the optional parameters
|
540
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
522
541
|
# @return [IntegrationOut]
|
523
542
|
def update_integration_api_v1_app_app_id_integration_integ_id_put(integ_id, app_id, integration_update, opts = {})
|
524
543
|
data, _status_code, _headers = update_integration_api_v1_app_app_id_integration_integ_id_put_with_http_info(integ_id, app_id, integration_update, opts)
|
@@ -531,6 +550,7 @@ module Svix
|
|
531
550
|
# @param app_id [String]
|
532
551
|
# @param integration_update [IntegrationUpdate]
|
533
552
|
# @param [Hash] opts the optional parameters
|
553
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
534
554
|
# @return [Array<(IntegrationOut, Integer, Hash)>] IntegrationOut data, response status code and response headers
|
535
555
|
def update_integration_api_v1_app_app_id_integration_integ_id_put_with_http_info(integ_id, app_id, integration_update, opts = {})
|
536
556
|
if @api_client.config.debugging
|
@@ -573,6 +593,7 @@ module Svix
|
|
573
593
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
574
594
|
# HTTP header 'Content-Type'
|
575
595
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
596
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
576
597
|
|
577
598
|
# form parameters
|
578
599
|
form_params = opts[:form_params] || {}
|
data/lib/svix/api/message_api.rb
CHANGED
@@ -25,6 +25,7 @@ module Svix
|
|
25
25
|
# @param message_in [MessageIn]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [Boolean] :with_content (default to true)
|
28
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
28
29
|
# @return [MessageOut]
|
29
30
|
def create_message_api_v1_app_app_id_msg_post(app_id, message_in, opts = {})
|
30
31
|
data, _status_code, _headers = create_message_api_v1_app_app_id_msg_post_with_http_info(app_id, message_in, opts)
|
@@ -37,6 +38,7 @@ module Svix
|
|
37
38
|
# @param message_in [MessageIn]
|
38
39
|
# @param [Hash] opts the optional parameters
|
39
40
|
# @option opts [Boolean] :with_content
|
41
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
40
42
|
# @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
|
41
43
|
def create_message_api_v1_app_app_id_msg_post_with_http_info(app_id, message_in, opts = {})
|
42
44
|
if @api_client.config.debugging
|
@@ -76,6 +78,7 @@ module Svix
|
|
76
78
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
77
79
|
# HTTP header 'Content-Type'
|
78
80
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
81
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
79
82
|
|
80
83
|
# form parameters
|
81
84
|
form_params = opts[:form_params] || {}
|
@@ -111,6 +114,7 @@ module Svix
|
|
111
114
|
# @param msg_id [String]
|
112
115
|
# @param app_id [String]
|
113
116
|
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
114
118
|
# @return [MessageOut]
|
115
119
|
def get_message_api_v1_app_app_id_msg_msg_id_get(msg_id, app_id, opts = {})
|
116
120
|
data, _status_code, _headers = get_message_api_v1_app_app_id_msg_msg_id_get_with_http_info(msg_id, app_id, opts)
|
@@ -122,6 +126,7 @@ module Svix
|
|
122
126
|
# @param msg_id [String]
|
123
127
|
# @param app_id [String]
|
124
128
|
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
125
130
|
# @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
|
126
131
|
def get_message_api_v1_app_app_id_msg_msg_id_get_with_http_info(msg_id, app_id, opts = {})
|
127
132
|
if @api_client.config.debugging
|
@@ -171,6 +176,7 @@ module Svix
|
|
171
176
|
header_params = opts[:header_params] || {}
|
172
177
|
# HTTP header 'Accept' (if needed)
|
173
178
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
174
180
|
|
175
181
|
# form parameters
|
176
182
|
form_params = opts[:form_params] || {}
|
@@ -208,7 +214,9 @@ module Svix
|
|
208
214
|
# @option opts [String] :iterator
|
209
215
|
# @option opts [Integer] :limit (default to 50)
|
210
216
|
# @option opts [Array<String>] :event_types
|
217
|
+
# @option opts [String] :channel
|
211
218
|
# @option opts [Time] :before
|
219
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
212
220
|
# @return [ListResponseMessageOut]
|
213
221
|
def list_messages_api_v1_app_app_id_msg_get(app_id, opts = {})
|
214
222
|
data, _status_code, _headers = list_messages_api_v1_app_app_id_msg_get_with_http_info(app_id, opts)
|
@@ -222,7 +230,9 @@ module Svix
|
|
222
230
|
# @option opts [String] :iterator
|
223
231
|
# @option opts [Integer] :limit
|
224
232
|
# @option opts [Array<String>] :event_types
|
233
|
+
# @option opts [String] :channel
|
225
234
|
# @option opts [Time] :before
|
235
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
226
236
|
# @return [Array<(ListResponseMessageOut, Integer, Hash)>] ListResponseMessageOut data, response status code and response headers
|
227
237
|
def list_messages_api_v1_app_app_id_msg_get_with_http_info(app_id, opts = {})
|
228
238
|
if @api_client.config.debugging
|
@@ -249,6 +259,15 @@ module Svix
|
|
249
259
|
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageApi.list_messages_api_v1_app_app_id_msg_get, must be smaller than or equal to 250.'
|
250
260
|
end
|
251
261
|
|
262
|
+
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
263
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageApi.list_messages_api_v1_app_app_id_msg_get, the character length must be smaller than or equal to 128.'
|
264
|
+
end
|
265
|
+
|
266
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
267
|
+
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
268
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageApi.list_messages_api_v1_app_app_id_msg_get, must conform to the pattern #{pattern}."
|
269
|
+
end
|
270
|
+
|
252
271
|
# resource path
|
253
272
|
local_var_path = '/api/v1/app/{app_id}/msg/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
254
273
|
|
@@ -257,12 +276,14 @@ module Svix
|
|
257
276
|
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
258
277
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
259
278
|
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
279
|
+
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
260
280
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
261
281
|
|
262
282
|
# header parameters
|
263
283
|
header_params = opts[:header_params] || {}
|
264
284
|
# HTTP header 'Accept' (if needed)
|
265
285
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
286
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
266
287
|
|
267
288
|
# form parameters
|
268
289
|
form_params = opts[:form_params] || {}
|