svix 0.83.1 → 0.84.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 -1
- data/lib/svix/api/application_api.rb +247 -181
- data/lib/svix/api/authentication_api.rb +82 -150
- data/lib/svix/api/background_tasks_api.rb +161 -0
- data/lib/svix/api/endpoint_api.rb +561 -485
- data/lib/svix/api/environment_api.rb +16 -16
- data/lib/svix/api/environment_settings_api.rb +7 -10
- data/lib/svix/api/event_type_api.rb +152 -81
- data/lib/svix/api/health_api.rb +6 -9
- data/lib/svix/api/integration_api.rb +123 -134
- data/lib/svix/api/message_api.rb +96 -102
- data/lib/svix/api/message_attempt_api.rb +382 -406
- data/lib/svix/api/statistics_api.rb +107 -45
- data/lib/svix/api_client.rb +0 -1
- data/lib/svix/application_api.rb +22 -22
- data/lib/svix/authentication_api.rb +3 -3
- data/lib/svix/configuration.rb +0 -7
- data/lib/svix/endpoint_api.rb +16 -16
- data/lib/svix/event_type_api.rb +19 -19
- data/lib/svix/integration_api.rb +26 -26
- data/lib/svix/message_api.rb +4 -4
- data/lib/svix/message_attempt_api.rb +8 -8
- data/lib/svix/models/app_portal_access_in.rb +1 -0
- data/lib/svix/models/application_in.rb +34 -1
- data/lib/svix/models/application_out.rb +20 -2
- data/lib/svix/models/application_patch.rb +299 -0
- data/lib/svix/models/application_stats.rb +0 -1
- data/lib/svix/models/{webhook_types.rb → background_task_out.rb} +40 -69
- data/lib/svix/models/background_task_out_common.rb +251 -0
- data/lib/svix/models/background_task_status.rb +38 -0
- data/lib/svix/models/background_task_type.rb +38 -0
- data/lib/svix/models/calculate_app_stats_in.rb +255 -0
- data/lib/svix/models/endpoint_created_event.rb +5 -0
- data/lib/svix/models/endpoint_created_event_data.rb +0 -2
- data/lib/svix/models/endpoint_deleted_event.rb +5 -0
- data/lib/svix/models/endpoint_deleted_event_data.rb +0 -2
- data/lib/svix/models/endpoint_disabled_event.rb +5 -0
- data/lib/svix/models/endpoint_disabled_event_data.rb +1 -2
- data/lib/svix/models/endpoint_in.rb +19 -10
- data/lib/svix/models/endpoint_message_out.rb +1 -0
- data/lib/svix/models/endpoint_out.rb +33 -15
- data/lib/svix/models/endpoint_patch.rb +405 -0
- data/lib/svix/models/endpoint_secret_rotate_in.rb +2 -0
- data/lib/svix/models/endpoint_transformation_in.rb +0 -2
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +6 -0
- data/lib/svix/models/endpoint_update.rb +19 -10
- data/lib/svix/models/endpoint_updated_event.rb +5 -0
- data/lib/svix/models/endpoint_updated_event_data.rb +0 -2
- data/lib/svix/models/event_type_example_out.rb +4 -2
- data/lib/svix/models/event_type_patch.rb +275 -0
- data/lib/svix/models/event_type_schema_in.rb +0 -1
- data/lib/svix/models/http_validation_error.rb +5 -0
- data/lib/svix/models/list_response_application_stats.rb +15 -5
- data/lib/svix/models/list_response_background_task_out.rb +259 -0
- data/lib/svix/models/list_response_integration_out.rb +15 -5
- data/lib/svix/models/list_response_message_endpoint_out.rb +15 -5
- data/lib/svix/models/message_attempt_exhausted_event.rb +5 -0
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_failing_event.rb +5 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_headers_out.rb +27 -1
- data/lib/svix/models/message_endpoint_out.rb +45 -29
- data/lib/svix/models/message_in.rb +0 -1
- data/lib/svix/models/{one_time_token_out.rb → recover_out.rb} +41 -13
- data/lib/svix/models/{one_time_token_in.rb → replay_out.rb} +41 -13
- data/lib/svix/models/transformation_http_method.rb +1 -1
- data/lib/svix/models/validation_error.rb +4 -0
- data/lib/svix/version.rb +1 -1
- metadata +14 -5
@@ -25,8 +25,8 @@ module Svix
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :idempotency_key The request's idempotency key
|
27
27
|
# @return [EnvironmentOut]
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def v1_environment_export(body, opts = {})
|
29
|
+
data, _status_code, _headers = v1_environment_export_with_http_info(body, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
@@ -36,13 +36,13 @@ module Svix
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [String] :idempotency_key The request's idempotency key
|
38
38
|
# @return [Array<(EnvironmentOut, Integer, Hash)>] EnvironmentOut data, response status code and response headers
|
39
|
-
def
|
39
|
+
def v1_environment_export_with_http_info(body, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: EnvironmentApi.
|
41
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentApi.v1_environment_export ...'
|
42
42
|
end
|
43
43
|
# verify the required parameter 'body' is set
|
44
44
|
if @api_client.config.client_side_validation && body.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling EnvironmentApi.
|
45
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling EnvironmentApi.v1_environment_export"
|
46
46
|
end
|
47
47
|
# resource path
|
48
48
|
local_var_path = '/api/v1/environment/export/'
|
@@ -68,10 +68,10 @@ module Svix
|
|
68
68
|
return_type = opts[:debug_return_type] || 'EnvironmentOut'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:debug_auth_names] || [
|
71
|
+
auth_names = opts[:debug_auth_names] || []
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
|
-
:operation => :"EnvironmentApi.
|
74
|
+
:operation => :"EnvironmentApi.v1_environment_export",
|
75
75
|
:header_params => header_params,
|
76
76
|
:query_params => query_params,
|
77
77
|
:form_params => form_params,
|
@@ -82,7 +82,7 @@ module Svix
|
|
82
82
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
84
|
if @api_client.config.debugging
|
85
|
-
@api_client.config.logger.debug "API called: EnvironmentApi#
|
85
|
+
@api_client.config.logger.debug "API called: EnvironmentApi#v1_environment_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
86
|
end
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
@@ -93,8 +93,8 @@ module Svix
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [String] :idempotency_key The request's idempotency key
|
95
95
|
# @return [nil]
|
96
|
-
def
|
97
|
-
|
96
|
+
def v1_environment_import(environment_in, opts = {})
|
97
|
+
v1_environment_import_with_http_info(environment_in, opts)
|
98
98
|
nil
|
99
99
|
end
|
100
100
|
|
@@ -104,13 +104,13 @@ module Svix
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
105
105
|
# @option opts [String] :idempotency_key The request's idempotency key
|
106
106
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
107
|
-
def
|
107
|
+
def v1_environment_import_with_http_info(environment_in, opts = {})
|
108
108
|
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug 'Calling API: EnvironmentApi.
|
109
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentApi.v1_environment_import ...'
|
110
110
|
end
|
111
111
|
# verify the required parameter 'environment_in' is set
|
112
112
|
if @api_client.config.client_side_validation && environment_in.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'environment_in' when calling EnvironmentApi.
|
113
|
+
fail ArgumentError, "Missing the required parameter 'environment_in' when calling EnvironmentApi.v1_environment_import"
|
114
114
|
end
|
115
115
|
# resource path
|
116
116
|
local_var_path = '/api/v1/environment/import/'
|
@@ -136,10 +136,10 @@ module Svix
|
|
136
136
|
return_type = opts[:debug_return_type]
|
137
137
|
|
138
138
|
# auth_names
|
139
|
-
auth_names = opts[:debug_auth_names] || [
|
139
|
+
auth_names = opts[:debug_auth_names] || []
|
140
140
|
|
141
141
|
new_options = opts.merge(
|
142
|
-
:operation => :"EnvironmentApi.
|
142
|
+
:operation => :"EnvironmentApi.v1_environment_import",
|
143
143
|
:header_params => header_params,
|
144
144
|
:query_params => query_params,
|
145
145
|
:form_params => form_params,
|
@@ -150,7 +150,7 @@ module Svix
|
|
150
150
|
|
151
151
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
152
152
|
if @api_client.config.debugging
|
153
|
-
@api_client.config.logger.debug "API called: EnvironmentApi#
|
153
|
+
@api_client.config.logger.debug "API called: EnvironmentApi#v1_environment_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
154
|
end
|
155
155
|
return data, status_code, headers
|
156
156
|
end
|
@@ -22,21 +22,19 @@ module Svix
|
|
22
22
|
# Get Org Settings
|
23
23
|
# Get the environment's settings
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
26
25
|
# @return [EnvironmentSettingsOut]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
26
|
+
def v1_environment_get_settings(opts = {})
|
27
|
+
data, _status_code, _headers = v1_environment_get_settings_with_http_info(opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
31
|
# Get Org Settings
|
33
32
|
# Get the environment's settings
|
34
33
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
36
34
|
# @return [Array<(EnvironmentSettingsOut, Integer, Hash)>] EnvironmentSettingsOut data, response status code and response headers
|
37
|
-
def
|
35
|
+
def v1_environment_get_settings_with_http_info(opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: EnvironmentSettingsApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentSettingsApi.v1_environment_get_settings ...'
|
40
38
|
end
|
41
39
|
# resource path
|
42
40
|
local_var_path = '/api/v1/environment/settings/'
|
@@ -48,7 +46,6 @@ module Svix
|
|
48
46
|
header_params = opts[:header_params] || {}
|
49
47
|
# HTTP header 'Accept' (if needed)
|
50
48
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
52
49
|
|
53
50
|
# form parameters
|
54
51
|
form_params = opts[:form_params] || {}
|
@@ -60,10 +57,10 @@ module Svix
|
|
60
57
|
return_type = opts[:debug_return_type] || 'EnvironmentSettingsOut'
|
61
58
|
|
62
59
|
# auth_names
|
63
|
-
auth_names = opts[:debug_auth_names] || [
|
60
|
+
auth_names = opts[:debug_auth_names] || []
|
64
61
|
|
65
62
|
new_options = opts.merge(
|
66
|
-
:operation => :"EnvironmentSettingsApi.
|
63
|
+
:operation => :"EnvironmentSettingsApi.v1_environment_get_settings",
|
67
64
|
:header_params => header_params,
|
68
65
|
:query_params => query_params,
|
69
66
|
:form_params => form_params,
|
@@ -74,7 +71,7 @@ module Svix
|
|
74
71
|
|
75
72
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
76
73
|
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called: EnvironmentSettingsApi#
|
74
|
+
@api_client.config.logger.debug "API called: EnvironmentSettingsApi#v1_environment_get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
75
|
end
|
79
76
|
return data, status_code, headers
|
80
77
|
end
|