svix 1.21.0 → 1.23.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/Gemfile.lock +1 -2
- data/lib/svix/api/application_api.rb +8 -8
- data/lib/svix/api/authentication_api.rb +5 -5
- data/lib/svix/api/background_tasks_api.rb +2 -2
- data/lib/svix/api/broadcast_api.rb +1 -1
- data/lib/svix/api/endpoint_api.rb +216 -18
- data/lib/svix/api/environment_api.rb +3 -3
- data/lib/svix/api/environment_settings_api.rb +1 -1
- data/lib/svix/api/event_type_api.rb +13 -13
- data/lib/svix/api/events_api.rb +102 -0
- data/lib/svix/api/health_api.rb +1 -1
- data/lib/svix/api/inbound_api.rb +2 -2
- data/lib/svix/api/integration_api.rb +10 -7
- data/lib/svix/api/message_api.rb +10 -7
- data/lib/svix/api/message_attempt_api.rb +10 -10
- data/lib/svix/api/statistics_api.rb +4 -4
- data/lib/svix/api/transformation_template_api.rb +2 -2
- data/lib/svix/models/app_portal_access_in.rb +16 -5
- data/lib/svix/models/client_secret_jwt_params_in.rb +272 -0
- data/lib/svix/models/custom_color_palette.rb +9 -0
- data/lib/svix/models/endpoint_oauth_config_in.rb +284 -0
- data/lib/svix/models/environment_settings_out.rb +1 -0
- data/lib/svix/models/oauth2_auth_method_in.rb +38 -0
- data/lib/svix/models/oauth2_grant_type.rb +36 -0
- data/lib/svix/models/oauth_jws_signing_algorithm.rb +36 -0
- data/lib/svix/models/settings_in.rb +1 -0
- data/lib/svix/models/settings_out.rb +1 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +3 -0
- data/svix.gemspec +0 -1
- metadata +8 -16
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'event_type_in' when calling EventTypeApi.v1_event_type_create"
|
46
46
|
end
|
47
47
|
# resource path
|
48
|
-
local_var_path = '/api/v1/event-type
|
48
|
+
local_var_path = '/api/v1/event-type'
|
49
49
|
|
50
50
|
# query parameters
|
51
51
|
query_params = opts[:query_params] || {}
|
@@ -122,7 +122,7 @@ module Svix
|
|
122
122
|
end
|
123
123
|
|
124
124
|
# resource path
|
125
|
-
local_var_path = '/api/v1/event-type/{event_type_name}
|
125
|
+
local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
126
126
|
|
127
127
|
# query parameters
|
128
128
|
query_params = opts[:query_params] || {}
|
@@ -182,7 +182,7 @@ module Svix
|
|
182
182
|
@api_client.config.logger.debug 'Calling API: EventTypeApi.v1_event_type_export_openapi ...'
|
183
183
|
end
|
184
184
|
# resource path
|
185
|
-
local_var_path = '/api/v1/event-type/export/openapi
|
185
|
+
local_var_path = '/api/v1/event-type/export/openapi'
|
186
186
|
|
187
187
|
# query parameters
|
188
188
|
query_params = opts[:query_params] || {}
|
@@ -248,7 +248,7 @@ module Svix
|
|
248
248
|
fail ArgumentError, "Missing the required parameter 'event_type_schema_in' when calling EventTypeApi.v1_event_type_generate_example"
|
249
249
|
end
|
250
250
|
# resource path
|
251
|
-
local_var_path = '/api/v1/event-type/schema/generate-example
|
251
|
+
local_var_path = '/api/v1/event-type/schema/generate-example'
|
252
252
|
|
253
253
|
# query parameters
|
254
254
|
query_params = opts[:query_params] || {}
|
@@ -323,7 +323,7 @@ module Svix
|
|
323
323
|
end
|
324
324
|
|
325
325
|
# resource path
|
326
|
-
local_var_path = '/api/v1/event-type/{event_type_name}
|
326
|
+
local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
327
327
|
|
328
328
|
# query parameters
|
329
329
|
query_params = opts[:query_params] || {}
|
@@ -395,7 +395,7 @@ module Svix
|
|
395
395
|
end
|
396
396
|
|
397
397
|
# resource path
|
398
|
-
local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule
|
398
|
+
local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
399
399
|
|
400
400
|
# query parameters
|
401
401
|
query_params = opts[:query_params] || {}
|
@@ -435,7 +435,7 @@ module Svix
|
|
435
435
|
end
|
436
436
|
|
437
437
|
# Event Type Import From Openapi
|
438
|
-
# Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be
|
438
|
+
# Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchived. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
|
439
439
|
# @param event_type_import_open_api_in [EventTypeImportOpenApiIn] Import a list of event types from webhooks defined in an OpenAPI spec. The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw` (a `string`) which will be parsed as YAML or JSON by the server. Sending neither or both is invalid, resulting in a `400` **Bad Request**.
|
440
440
|
# @param [Hash] opts the optional parameters
|
441
441
|
# @option opts [String] :idempotency_key The request's idempotency key
|
@@ -446,7 +446,7 @@ module Svix
|
|
446
446
|
end
|
447
447
|
|
448
448
|
# Event Type Import From Openapi
|
449
|
-
# Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be
|
449
|
+
# Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchived. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
|
450
450
|
# @param event_type_import_open_api_in [EventTypeImportOpenApiIn] Import a list of event types from webhooks defined in an OpenAPI spec. The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw` (a `string`) which will be parsed as YAML or JSON by the server. Sending neither or both is invalid, resulting in a `400` **Bad Request**.
|
451
451
|
# @param [Hash] opts the optional parameters
|
452
452
|
# @option opts [String] :idempotency_key The request's idempotency key
|
@@ -460,7 +460,7 @@ module Svix
|
|
460
460
|
fail ArgumentError, "Missing the required parameter 'event_type_import_open_api_in' when calling EventTypeApi.v1_event_type_import_openapi"
|
461
461
|
end
|
462
462
|
# resource path
|
463
|
-
local_var_path = '/api/v1/event-type/import/openapi
|
463
|
+
local_var_path = '/api/v1/event-type/import/openapi'
|
464
464
|
|
465
465
|
# query parameters
|
466
466
|
query_params = opts[:query_params] || {}
|
@@ -547,7 +547,7 @@ module Svix
|
|
547
547
|
end
|
548
548
|
|
549
549
|
# resource path
|
550
|
-
local_var_path = '/api/v1/event-type
|
550
|
+
local_var_path = '/api/v1/event-type'
|
551
551
|
|
552
552
|
# query parameters
|
553
553
|
query_params = opts[:query_params] || {}
|
@@ -630,7 +630,7 @@ module Svix
|
|
630
630
|
fail ArgumentError, "Missing the required parameter 'event_type_patch' when calling EventTypeApi.v1_event_type_patch"
|
631
631
|
end
|
632
632
|
# resource path
|
633
|
-
local_var_path = '/api/v1/event-type/{event_type_name}
|
633
|
+
local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
634
634
|
|
635
635
|
# query parameters
|
636
636
|
query_params = opts[:query_params] || {}
|
@@ -710,7 +710,7 @@ module Svix
|
|
710
710
|
fail ArgumentError, "Missing the required parameter 'event_type_update' when calling EventTypeApi.v1_event_type_update"
|
711
711
|
end
|
712
712
|
# resource path
|
713
|
-
local_var_path = '/api/v1/event-type/{event_type_name}
|
713
|
+
local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
714
714
|
|
715
715
|
# query parameters
|
716
716
|
query_params = opts[:query_params] || {}
|
@@ -790,7 +790,7 @@ module Svix
|
|
790
790
|
fail ArgumentError, "Missing the required parameter 'retry_schedule_in_out' when calling EventTypeApi.v1_event_type_update_retry_schedule"
|
791
791
|
end
|
792
792
|
# resource path
|
793
|
-
local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule
|
793
|
+
local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
|
794
794
|
|
795
795
|
# query parameters
|
796
796
|
query_params = opts[:query_params] || {}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
=begin
|
2
|
+
#Svix API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Svix
|
16
|
+
class EventsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Events
|
23
|
+
# Reads the stream of operational webhook events for this environment
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit Limit the number of returned items
|
26
|
+
# @option opts [String] :iterator The iterator returned from a prior invocation
|
27
|
+
# @option opts [Array<String>] :event_types Filter response based on the event type
|
28
|
+
# @option opts [Array<String>] :channels Filter response based on the event type
|
29
|
+
# @option opts [Time] :after
|
30
|
+
# @return [MessageStreamOut]
|
31
|
+
def v1_events(opts = {})
|
32
|
+
data, _status_code, _headers = v1_events_with_http_info(opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Events
|
37
|
+
# Reads the stream of operational webhook events for this environment
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :limit Limit the number of returned items
|
40
|
+
# @option opts [String] :iterator The iterator returned from a prior invocation
|
41
|
+
# @option opts [Array<String>] :event_types Filter response based on the event type
|
42
|
+
# @option opts [Array<String>] :channels Filter response based on the event type
|
43
|
+
# @option opts [Time] :after
|
44
|
+
# @return [Array<(MessageStreamOut, Integer, Hash)>] MessageStreamOut data, response status code and response headers
|
45
|
+
def v1_events_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: EventsApi.v1_events ...'
|
48
|
+
end
|
49
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
50
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.v1_events, must be smaller than or equal to 250.'
|
51
|
+
end
|
52
|
+
|
53
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
54
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.v1_events, must be greater than or equal to 1.'
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/api/v1/events'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = opts[:query_params] || {}
|
62
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
63
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
64
|
+
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
65
|
+
query_params[:'channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
|
66
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
67
|
+
|
68
|
+
# header parameters
|
69
|
+
header_params = opts[:header_params] || {}
|
70
|
+
# HTTP header 'Accept' (if needed)
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = opts[:form_params] || {}
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = opts[:debug_body]
|
78
|
+
|
79
|
+
# return_type
|
80
|
+
return_type = opts[:debug_return_type] || 'MessageStreamOut'
|
81
|
+
|
82
|
+
# auth_names
|
83
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
84
|
+
|
85
|
+
new_options = opts.merge(
|
86
|
+
:operation => :"EventsApi.v1_events",
|
87
|
+
:header_params => header_params,
|
88
|
+
:query_params => query_params,
|
89
|
+
:form_params => form_params,
|
90
|
+
:body => post_body,
|
91
|
+
:auth_names => auth_names,
|
92
|
+
:return_type => return_type
|
93
|
+
)
|
94
|
+
|
95
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug "API called: EventsApi#v1_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
|
+
end
|
99
|
+
return data, status_code, headers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
data/lib/svix/api/health_api.rb
CHANGED
data/lib/svix/api/inbound_api.rb
CHANGED
@@ -81,7 +81,7 @@ module Svix
|
|
81
81
|
end
|
82
82
|
|
83
83
|
# resource path
|
84
|
-
local_var_path = '/api/v1/app/{app_id}/inbound/msg/{inbound_token}
|
84
|
+
local_var_path = '/api/v1/app/{app_id}/inbound/msg/{inbound_token}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'inbound_token' + '}', CGI.escape(inbound_token.to_s))
|
85
85
|
|
86
86
|
# query parameters
|
87
87
|
query_params = opts[:query_params] || {}
|
@@ -163,7 +163,7 @@ module Svix
|
|
163
163
|
end
|
164
164
|
|
165
165
|
# resource path
|
166
|
-
local_var_path = '/api/v1/app/{app_id}/inbound/rotate-url
|
166
|
+
local_var_path = '/api/v1/app/{app_id}/inbound/rotate-url'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
167
167
|
|
168
168
|
# query parameters
|
169
169
|
query_params = opts[:query_params] || {}
|
@@ -64,7 +64,7 @@ module Svix
|
|
64
64
|
fail ArgumentError, "Missing the required parameter 'integration_in' when calling IntegrationApi.v1_integration_create"
|
65
65
|
end
|
66
66
|
# resource path
|
67
|
-
local_var_path = '/api/v1/app/{app_id}/integration
|
67
|
+
local_var_path = '/api/v1/app/{app_id}/integration'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
68
68
|
|
69
69
|
# query parameters
|
70
70
|
query_params = opts[:query_params] || {}
|
@@ -149,7 +149,7 @@ module Svix
|
|
149
149
|
fail ArgumentError, "Missing the required parameter 'integ_id' when calling IntegrationApi.v1_integration_delete"
|
150
150
|
end
|
151
151
|
# resource path
|
152
|
-
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}
|
152
|
+
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'integ_id' + '}', CGI.escape(integ_id.to_s))
|
153
153
|
|
154
154
|
# query parameters
|
155
155
|
query_params = opts[:query_params] || {}
|
@@ -231,7 +231,7 @@ module Svix
|
|
231
231
|
fail ArgumentError, "Missing the required parameter 'integ_id' when calling IntegrationApi.v1_integration_get"
|
232
232
|
end
|
233
233
|
# resource path
|
234
|
-
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}
|
234
|
+
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'integ_id' + '}', CGI.escape(integ_id.to_s))
|
235
235
|
|
236
236
|
# query parameters
|
237
237
|
query_params = opts[:query_params] || {}
|
@@ -313,7 +313,7 @@ module Svix
|
|
313
313
|
fail ArgumentError, "Missing the required parameter 'integ_id' when calling IntegrationApi.v1_integration_get_key"
|
314
314
|
end
|
315
315
|
# resource path
|
316
|
-
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}/key
|
316
|
+
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}/key'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'integ_id' + '}', CGI.escape(integ_id.to_s))
|
317
317
|
|
318
318
|
# query parameters
|
319
319
|
query_params = opts[:query_params] || {}
|
@@ -358,6 +358,7 @@ module Svix
|
|
358
358
|
# @param [Hash] opts the optional parameters
|
359
359
|
# @option opts [Integer] :limit Limit the number of returned items
|
360
360
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
361
|
+
# @option opts [Ordering] :order The sorting order of the returned items
|
361
362
|
# @return [ListResponseIntegrationOut]
|
362
363
|
def v1_integration_list(app_id, opts = {})
|
363
364
|
data, _status_code, _headers = v1_integration_list_with_http_info(app_id, opts)
|
@@ -370,6 +371,7 @@ module Svix
|
|
370
371
|
# @param [Hash] opts the optional parameters
|
371
372
|
# @option opts [Integer] :limit Limit the number of returned items
|
372
373
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
374
|
+
# @option opts [Ordering] :order The sorting order of the returned items
|
373
375
|
# @return [Array<(ListResponseIntegrationOut, Integer, Hash)>] ListResponseIntegrationOut data, response status code and response headers
|
374
376
|
def v1_integration_list_with_http_info(app_id, opts = {})
|
375
377
|
if @api_client.config.debugging
|
@@ -401,12 +403,13 @@ module Svix
|
|
401
403
|
end
|
402
404
|
|
403
405
|
# resource path
|
404
|
-
local_var_path = '/api/v1/app/{app_id}/integration
|
406
|
+
local_var_path = '/api/v1/app/{app_id}/integration'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
405
407
|
|
406
408
|
# query parameters
|
407
409
|
query_params = opts[:query_params] || {}
|
408
410
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
409
411
|
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
412
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
410
413
|
|
411
414
|
# header parameters
|
412
415
|
header_params = opts[:header_params] || {}
|
@@ -487,7 +490,7 @@ module Svix
|
|
487
490
|
fail ArgumentError, "Missing the required parameter 'integ_id' when calling IntegrationApi.v1_integration_rotate_key"
|
488
491
|
end
|
489
492
|
# resource path
|
490
|
-
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}/key/rotate
|
493
|
+
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}/key/rotate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'integ_id' + '}', CGI.escape(integ_id.to_s))
|
491
494
|
|
492
495
|
# query parameters
|
493
496
|
query_params = opts[:query_params] || {}
|
@@ -576,7 +579,7 @@ module Svix
|
|
576
579
|
fail ArgumentError, "Missing the required parameter 'integration_update' when calling IntegrationApi.v1_integration_update"
|
577
580
|
end
|
578
581
|
# resource path
|
579
|
-
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}
|
582
|
+
local_var_path = '/api/v1/app/{app_id}/integration/{integ_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'integ_id' + '}', CGI.escape(integ_id.to_s))
|
580
583
|
|
581
584
|
# query parameters
|
582
585
|
query_params = opts[:query_params] || {}
|
data/lib/svix/api/message_api.rb
CHANGED
@@ -83,7 +83,7 @@ module Svix
|
|
83
83
|
fail ArgumentError, "Missing the required parameter 'message_in' when calling MessageApi.create_message_attempt_for_endpoint"
|
84
84
|
end
|
85
85
|
# resource path
|
86
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/test-attempt
|
86
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/test-attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
87
87
|
|
88
88
|
# query parameters
|
89
89
|
query_params = opts[:query_params] || {}
|
@@ -172,7 +172,7 @@ module Svix
|
|
172
172
|
fail ArgumentError, "Missing the required parameter 'message_in' when calling MessageApi.v1_message_create"
|
173
173
|
end
|
174
174
|
# resource path
|
175
|
-
local_var_path = '/api/v1/app/{app_id}/msg
|
175
|
+
local_var_path = '/api/v1/app/{app_id}/msg'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
176
176
|
|
177
177
|
# query parameters
|
178
178
|
query_params = opts[:query_params] || {}
|
@@ -271,7 +271,7 @@ module Svix
|
|
271
271
|
end
|
272
272
|
|
273
273
|
# resource path
|
274
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/content
|
274
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/content'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
275
275
|
|
276
276
|
# query parameters
|
277
277
|
query_params = opts[:query_params] || {}
|
@@ -368,7 +368,7 @@ module Svix
|
|
368
368
|
end
|
369
369
|
|
370
370
|
# resource path
|
371
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}
|
371
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
372
372
|
|
373
373
|
# query parameters
|
374
374
|
query_params = opts[:query_params] || {}
|
@@ -464,7 +464,7 @@ module Svix
|
|
464
464
|
end
|
465
465
|
|
466
466
|
# resource path
|
467
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/raw
|
467
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/raw'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
468
468
|
|
469
469
|
# query parameters
|
470
470
|
query_params = opts[:query_params] || {}
|
@@ -582,7 +582,7 @@ module Svix
|
|
582
582
|
end
|
583
583
|
|
584
584
|
# resource path
|
585
|
-
local_var_path = '/api/v1/app/{app_id}/msg
|
585
|
+
local_var_path = '/api/v1/app/{app_id}/msg'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
586
586
|
|
587
587
|
# query parameters
|
588
588
|
query_params = opts[:query_params] || {}
|
@@ -637,6 +637,7 @@ module Svix
|
|
637
637
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
638
638
|
# @option opts [Array<String>] :event_types Filter response based on the event type
|
639
639
|
# @option opts [Array<String>] :channels Filter response based on the event type
|
640
|
+
# @option opts [Time] :after
|
640
641
|
# @return [MessageStreamOut]
|
641
642
|
def v1_message_stream(app_id, opts = {})
|
642
643
|
data, _status_code, _headers = v1_message_stream_with_http_info(app_id, opts)
|
@@ -651,6 +652,7 @@ module Svix
|
|
651
652
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
652
653
|
# @option opts [Array<String>] :event_types Filter response based on the event type
|
653
654
|
# @option opts [Array<String>] :channels Filter response based on the event type
|
655
|
+
# @option opts [Time] :after
|
654
656
|
# @return [Array<(MessageStreamOut, Integer, Hash)>] MessageStreamOut data, response status code and response headers
|
655
657
|
def v1_message_stream_with_http_info(app_id, opts = {})
|
656
658
|
if @api_client.config.debugging
|
@@ -682,7 +684,7 @@ module Svix
|
|
682
684
|
end
|
683
685
|
|
684
686
|
# resource path
|
685
|
-
local_var_path = '/api/v1/app/{app_id}/events
|
687
|
+
local_var_path = '/api/v1/app/{app_id}/events'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
686
688
|
|
687
689
|
# query parameters
|
688
690
|
query_params = opts[:query_params] || {}
|
@@ -690,6 +692,7 @@ module Svix
|
|
690
692
|
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
691
693
|
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
692
694
|
query_params[:'channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
|
695
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
693
696
|
|
694
697
|
# header parameters
|
695
698
|
header_params = opts[:header_params] || {}
|
@@ -81,7 +81,7 @@ module Svix
|
|
81
81
|
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content"
|
82
82
|
end
|
83
83
|
# resource path
|
84
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content
|
84
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
85
85
|
|
86
86
|
# query parameters
|
87
87
|
query_params = opts[:query_params] || {}
|
@@ -182,7 +182,7 @@ module Svix
|
|
182
182
|
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get"
|
183
183
|
end
|
184
184
|
# resource path
|
185
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}
|
185
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
186
186
|
|
187
187
|
# query parameters
|
188
188
|
query_params = opts[:query_params] || {}
|
@@ -283,7 +283,7 @@ module Svix
|
|
283
283
|
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get_headers"
|
284
284
|
end
|
285
285
|
# resource path
|
286
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/headers
|
286
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
287
287
|
|
288
288
|
# query parameters
|
289
289
|
query_params = opts[:query_params] || {}
|
@@ -390,7 +390,7 @@ module Svix
|
|
390
390
|
end
|
391
391
|
|
392
392
|
# resource path
|
393
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint
|
393
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
394
394
|
|
395
395
|
# query parameters
|
396
396
|
query_params = opts[:query_params] || {}
|
@@ -531,7 +531,7 @@ module Svix
|
|
531
531
|
end
|
532
532
|
|
533
533
|
# resource path
|
534
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg
|
534
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
535
535
|
|
536
536
|
# query parameters
|
537
537
|
query_params = opts[:query_params] || {}
|
@@ -683,7 +683,7 @@ module Svix
|
|
683
683
|
end
|
684
684
|
|
685
685
|
# resource path
|
686
|
-
local_var_path = '/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}
|
686
|
+
local_var_path = '/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
687
687
|
|
688
688
|
# query parameters
|
689
689
|
query_params = opts[:query_params] || {}
|
@@ -850,7 +850,7 @@ module Svix
|
|
850
850
|
end
|
851
851
|
|
852
852
|
# resource path
|
853
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/attempt
|
853
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
854
854
|
|
855
855
|
# query parameters
|
856
856
|
query_params = opts[:query_params] || {}
|
@@ -1014,7 +1014,7 @@ module Svix
|
|
1014
1014
|
end
|
1015
1015
|
|
1016
1016
|
# resource path
|
1017
|
-
local_var_path = '/api/v1/app/{app_id}/attempt/msg/{msg_id}
|
1017
|
+
local_var_path = '/api/v1/app/{app_id}/attempt/msg/{msg_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
1018
1018
|
|
1019
1019
|
# query parameters
|
1020
1020
|
query_params = opts[:query_params] || {}
|
@@ -1179,7 +1179,7 @@ module Svix
|
|
1179
1179
|
end
|
1180
1180
|
|
1181
1181
|
# resource path
|
1182
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt
|
1182
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
1183
1183
|
|
1184
1184
|
# query parameters
|
1185
1185
|
query_params = opts[:query_params] || {}
|
@@ -1305,7 +1305,7 @@ module Svix
|
|
1305
1305
|
end
|
1306
1306
|
|
1307
1307
|
# resource path
|
1308
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend
|
1308
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1309
1309
|
|
1310
1310
|
# query parameters
|
1311
1311
|
query_params = opts[:query_params] || {}
|
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'app_usage_stats_in' when calling StatisticsApi.v1_statistics_aggregate_app_stats"
|
46
46
|
end
|
47
47
|
# resource path
|
48
|
-
local_var_path = '/api/v1/stats/usage/app
|
48
|
+
local_var_path = '/api/v1/stats/usage/app'
|
49
49
|
|
50
50
|
# query parameters
|
51
51
|
query_params = opts[:query_params] || {}
|
@@ -105,7 +105,7 @@ module Svix
|
|
105
105
|
@api_client.config.logger.debug 'Calling API: StatisticsApi.v1_statistics_aggregate_event_types ...'
|
106
106
|
end
|
107
107
|
# resource path
|
108
|
-
local_var_path = '/api/v1/stats/usage/event-types
|
108
|
+
local_var_path = '/api/v1/stats/usage/event-types'
|
109
109
|
|
110
110
|
# query parameters
|
111
111
|
query_params = opts[:query_params] || {}
|
@@ -185,7 +185,7 @@ module Svix
|
|
185
185
|
end
|
186
186
|
|
187
187
|
# resource path
|
188
|
-
local_var_path = '/api/v1/stats/app/{app_id}/attempt
|
188
|
+
local_var_path = '/api/v1/stats/app/{app_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
189
189
|
|
190
190
|
# query parameters
|
191
191
|
query_params = opts[:query_params] || {}
|
@@ -286,7 +286,7 @@ module Svix
|
|
286
286
|
end
|
287
287
|
|
288
288
|
# resource path
|
289
|
-
local_var_path = '/api/v1/stats/app/{app_id}/ep/{endpoint_id}/attempt
|
289
|
+
local_var_path = '/api/v1/stats/app/{app_id}/ep/{endpoint_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
290
290
|
|
291
291
|
# query parameters
|
292
292
|
query_params = opts[:query_params] || {}
|
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'template_in' when calling TransformationTemplateApi.v1_transformation_template_create"
|
46
46
|
end
|
47
47
|
# resource path
|
48
|
-
local_var_path = '/api/v1/transformation-template
|
48
|
+
local_var_path = '/api/v1/transformation-template'
|
49
49
|
|
50
50
|
# query parameters
|
51
51
|
query_params = opts[:query_params] || {}
|
@@ -313,7 +313,7 @@ module Svix
|
|
313
313
|
end
|
314
314
|
|
315
315
|
# resource path
|
316
|
-
local_var_path = '/api/v1/transformation-template
|
316
|
+
local_var_path = '/api/v1/transformation-template'
|
317
317
|
|
318
318
|
# query parameters
|
319
319
|
query_params = opts[:query_params] || {}
|
@@ -15,17 +15,21 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class AppPortalAccessIn
|
18
|
-
# How long the token will be valid for, in seconds.
|
18
|
+
# How long the token will be valid for, in seconds. Valid values are between 1 hour and 7 days. The default is 7 days.
|
19
19
|
attr_accessor :expiry
|
20
20
|
|
21
21
|
# The set of feature flags the created token will have access to.
|
22
22
|
attr_accessor :feature_flags
|
23
23
|
|
24
|
+
# Whether the app portal should be in read-only mode.
|
25
|
+
attr_accessor :read_only
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'expiry' => :'expiry',
|
28
|
-
:'feature_flags' => :'featureFlags'
|
31
|
+
:'feature_flags' => :'featureFlags',
|
32
|
+
:'read_only' => :'readOnly'
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -38,7 +42,8 @@ module Svix
|
|
38
42
|
def self.openapi_types
|
39
43
|
{
|
40
44
|
:'expiry' => :'Integer',
|
41
|
-
:'feature_flags' => :'Array<String>'
|
45
|
+
:'feature_flags' => :'Array<String>',
|
46
|
+
:'read_only' => :'Boolean'
|
42
47
|
}
|
43
48
|
end
|
44
49
|
|
@@ -46,6 +51,7 @@ module Svix
|
|
46
51
|
def self.openapi_nullable
|
47
52
|
Set.new([
|
48
53
|
:'expiry',
|
54
|
+
:'read_only'
|
49
55
|
])
|
50
56
|
end
|
51
57
|
|
@@ -75,6 +81,10 @@ module Svix
|
|
75
81
|
self.feature_flags = value
|
76
82
|
end
|
77
83
|
end
|
84
|
+
|
85
|
+
if attributes.key?(:'read_only')
|
86
|
+
self.read_only = attributes[:'read_only']
|
87
|
+
end
|
78
88
|
end
|
79
89
|
|
80
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,7 +136,8 @@ module Svix
|
|
126
136
|
return true if self.equal?(o)
|
127
137
|
self.class == o.class &&
|
128
138
|
expiry == o.expiry &&
|
129
|
-
feature_flags == o.feature_flags
|
139
|
+
feature_flags == o.feature_flags &&
|
140
|
+
read_only == o.read_only
|
130
141
|
end
|
131
142
|
|
132
143
|
# @see the `==` method
|
@@ -138,7 +149,7 @@ module Svix
|
|
138
149
|
# Calculates hash code according to all attributes.
|
139
150
|
# @return [Integer] Hash code
|
140
151
|
def hash
|
141
|
-
[expiry, feature_flags].hash
|
152
|
+
[expiry, feature_flags, read_only].hash
|
142
153
|
end
|
143
154
|
|
144
155
|
# Builds the object from hash
|