svix 0.45.0 → 0.52.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/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 +26 -2
- data/lib/svix/api/message_attempt_api.rb +363 -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/application_api.rb +5 -3
- data/lib/svix/authentication_api.rb +4 -4
- data/lib/svix/endpoint_api.rb +6 -6
- data/lib/svix/event_type_api.rb +2 -2
- data/lib/svix/integration_api.rb +4 -4
- data/lib/svix/message_api.rb +2 -2
- data/lib/svix/message_attempt_api.rb +13 -3
- data/lib/svix/models/export_organization_out.rb +3 -3
- data/lib/svix/models/import_organization_in.rb +3 -3
- data/lib/svix/models/list_response_endpoint_message_out.rb +13 -4
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +13 -4
- data/lib/svix/models/list_response_message_attempt_out.rb +13 -4
- data/lib/svix/models/list_response_message_out.rb +13 -4
- data/lib/svix/models/message_attempt_endpoint_out.rb +29 -1
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +1 -1
- data/lib/svix/models/message_attempt_failed_data.rb +251 -0
- data/lib/svix/models/message_attempt_failing_event.rb +269 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +310 -0
- data/lib/svix/models/message_attempt_out.rb +15 -1
- data/lib/svix/models/status_code_class.rb +41 -0
- data/lib/svix/models/webhook_types.rb +15 -1
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +1 -0
- metadata +6 -2
@@ -13,34 +13,34 @@ OpenAPI Generator version: 5.2.0
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module Svix
|
16
|
-
class
|
16
|
+
class EnvironmentApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Export
|
22
|
+
# Export Environment Configuration
|
23
23
|
# Download a JSON file containing all org-settings and event types
|
24
24
|
# @param body [Object]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
26
|
+
# @return [ExportEnvironmentOut]
|
27
|
+
def export_environment_configuration_api_v1_org_export_post(body, opts = {})
|
28
|
+
data, _status_code, _headers = export_environment_configuration_api_v1_org_export_post_with_http_info(body, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Export
|
32
|
+
# Export Environment Configuration
|
33
33
|
# Download a JSON file containing all org-settings and event types
|
34
34
|
# @param body [Object]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def
|
36
|
+
# @return [Array<(ExportEnvironmentOut, Integer, Hash)>] ExportEnvironmentOut data, response status code and response headers
|
37
|
+
def export_environment_configuration_api_v1_org_export_post_with_http_info(body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentApi.export_environment_configuration_api_v1_org_export_post ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'body' is set
|
42
42
|
if @api_client.config.client_side_validation && body.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling EnvironmentApi.export_environment_configuration_api_v1_org_export_post"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/api/v1/org/export/'
|
@@ -62,13 +62,13 @@ module Svix
|
|
62
62
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:debug_return_type] || '
|
65
|
+
return_type = opts[:debug_return_type] || 'ExportEnvironmentOut'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
|
-
:operation => :"
|
71
|
+
:operation => :"EnvironmentApi.export_environment_configuration_api_v1_org_export_post",
|
72
72
|
:header_params => header_params,
|
73
73
|
:query_params => query_params,
|
74
74
|
:form_params => form_params,
|
@@ -79,33 +79,33 @@ module Svix
|
|
79
79
|
|
80
80
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
81
81
|
if @api_client.config.debugging
|
82
|
-
@api_client.config.logger.debug "API called:
|
82
|
+
@api_client.config.logger.debug "API called: EnvironmentApi#export_environment_configuration_api_v1_org_export_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
83
|
end
|
84
84
|
return data, status_code, headers
|
85
85
|
end
|
86
86
|
|
87
|
-
# Import
|
88
|
-
# Import a configuration into the active
|
89
|
-
# @param
|
87
|
+
# Import Environment Configuration
|
88
|
+
# Import a configuration into the active environment. It doesn't delete anything, only adds/updates what was passed to it.
|
89
|
+
# @param import_environment_in [ImportEnvironmentIn]
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [nil]
|
92
|
-
def
|
93
|
-
|
92
|
+
def import_environment_configuration_api_v1_org_import_post(import_environment_in, opts = {})
|
93
|
+
import_environment_configuration_api_v1_org_import_post_with_http_info(import_environment_in, opts)
|
94
94
|
nil
|
95
95
|
end
|
96
96
|
|
97
|
-
# Import
|
98
|
-
# Import a configuration into the active
|
99
|
-
# @param
|
97
|
+
# Import Environment Configuration
|
98
|
+
# Import a configuration into the active environment. It doesn't delete anything, only adds/updates what was passed to it.
|
99
|
+
# @param import_environment_in [ImportEnvironmentIn]
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
102
|
-
def
|
102
|
+
def import_environment_configuration_api_v1_org_import_post_with_http_info(import_environment_in, opts = {})
|
103
103
|
if @api_client.config.debugging
|
104
|
-
@api_client.config.logger.debug 'Calling API:
|
104
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentApi.import_environment_configuration_api_v1_org_import_post ...'
|
105
105
|
end
|
106
|
-
# verify the required parameter '
|
107
|
-
if @api_client.config.client_side_validation &&
|
108
|
-
fail ArgumentError, "Missing the required parameter '
|
106
|
+
# verify the required parameter 'import_environment_in' is set
|
107
|
+
if @api_client.config.client_side_validation && import_environment_in.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'import_environment_in' when calling EnvironmentApi.import_environment_configuration_api_v1_org_import_post"
|
109
109
|
end
|
110
110
|
# resource path
|
111
111
|
local_var_path = '/api/v1/org/import/'
|
@@ -124,7 +124,7 @@ module Svix
|
|
124
124
|
form_params = opts[:form_params] || {}
|
125
125
|
|
126
126
|
# http body (model)
|
127
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
127
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(import_environment_in)
|
128
128
|
|
129
129
|
# return_type
|
130
130
|
return_type = opts[:debug_return_type]
|
@@ -133,7 +133,7 @@ module Svix
|
|
133
133
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
134
134
|
|
135
135
|
new_options = opts.merge(
|
136
|
-
:operation => :"
|
136
|
+
:operation => :"EnvironmentApi.import_environment_configuration_api_v1_org_import_post",
|
137
137
|
:header_params => header_params,
|
138
138
|
:query_params => query_params,
|
139
139
|
:form_params => form_params,
|
@@ -144,7 +144,7 @@ module Svix
|
|
144
144
|
|
145
145
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
146
146
|
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug "API called:
|
147
|
+
@api_client.config.logger.debug "API called: EnvironmentApi#import_environment_configuration_api_v1_org_import_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
148
|
end
|
149
149
|
return data, status_code, headers
|
150
150
|
end
|
@@ -13,14 +13,14 @@ OpenAPI Generator version: 5.2.0
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module Svix
|
16
|
-
class
|
16
|
+
class EnvironmentSettingsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get Org Settings
|
23
|
-
# Get the
|
23
|
+
# Get the environment's settings
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [PortalSettingsOut]
|
26
26
|
def get_org_settings_api_v1_org_settings_get(opts = {})
|
@@ -29,12 +29,12 @@ module Svix
|
|
29
29
|
end
|
30
30
|
|
31
31
|
# Get Org Settings
|
32
|
-
# Get the
|
32
|
+
# Get the environment's settings
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(PortalSettingsOut, Integer, Hash)>] PortalSettingsOut data, response status code and response headers
|
35
35
|
def get_org_settings_api_v1_org_settings_get_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API:
|
37
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentSettingsApi.get_org_settings_api_v1_org_settings_get ...'
|
38
38
|
end
|
39
39
|
# resource path
|
40
40
|
local_var_path = '/api/v1/org/settings/'
|
@@ -60,7 +60,7 @@ module Svix
|
|
60
60
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
61
61
|
|
62
62
|
new_options = opts.merge(
|
63
|
-
:operation => :"
|
63
|
+
:operation => :"EnvironmentSettingsApi.get_org_settings_api_v1_org_settings_get",
|
64
64
|
:header_params => header_params,
|
65
65
|
:query_params => query_params,
|
66
66
|
:form_params => form_params,
|
@@ -71,7 +71,7 @@ module Svix
|
|
71
71
|
|
72
72
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
73
73
|
if @api_client.config.debugging
|
74
|
-
@api_client.config.logger.debug "API called:
|
74
|
+
@api_client.config.logger.debug "API called: EnvironmentSettingsApi#get_org_settings_api_v1_org_settings_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
75
|
end
|
76
76
|
return data, status_code, headers
|
77
77
|
end
|
@@ -25,6 +25,7 @@ module Svix
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [Time] :start_date
|
27
27
|
# @option opts [Time] :end_date
|
28
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
28
29
|
# @return [AttemptStatisticsResponse]
|
29
30
|
def get_app_attempt_stats_api_v1_stats_app_app_id_attempt_get(app_id, opts = {})
|
30
31
|
data, _status_code, _headers = get_app_attempt_stats_api_v1_stats_app_app_id_attempt_get_with_http_info(app_id, opts)
|
@@ -37,6 +38,7 @@ module Svix
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
39
|
# @option opts [Time] :start_date
|
39
40
|
# @option opts [Time] :end_date
|
41
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
40
42
|
# @return [Array<(AttemptStatisticsResponse, Integer, Hash)>] AttemptStatisticsResponse data, response status code and response headers
|
41
43
|
def get_app_attempt_stats_api_v1_stats_app_app_id_attempt_get_with_http_info(app_id, opts = {})
|
42
44
|
if @api_client.config.debugging
|
@@ -71,6 +73,7 @@ module Svix
|
|
71
73
|
header_params = opts[:header_params] || {}
|
72
74
|
# HTTP header 'Accept' (if needed)
|
73
75
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
76
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
74
77
|
|
75
78
|
# form parameters
|
76
79
|
form_params = opts[:form_params] || {}
|
@@ -108,6 +111,7 @@ module Svix
|
|
108
111
|
# @param [Hash] opts the optional parameters
|
109
112
|
# @option opts [Time] :start_date
|
110
113
|
# @option opts [Time] :end_date
|
114
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
111
115
|
# @return [AttemptStatisticsResponse]
|
112
116
|
def get_ep_stats_api_v1_stats_app_app_id_ep_endpoint_id_attempt_get(endpoint_id, app_id, opts = {})
|
113
117
|
data, _status_code, _headers = get_ep_stats_api_v1_stats_app_app_id_ep_endpoint_id_attempt_get_with_http_info(endpoint_id, app_id, opts)
|
@@ -121,6 +125,7 @@ module Svix
|
|
121
125
|
# @param [Hash] opts the optional parameters
|
122
126
|
# @option opts [Time] :start_date
|
123
127
|
# @option opts [Time] :end_date
|
128
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
124
129
|
# @return [Array<(AttemptStatisticsResponse, Integer, Hash)>] AttemptStatisticsResponse data, response status code and response headers
|
125
130
|
def get_ep_stats_api_v1_stats_app_app_id_ep_endpoint_id_attempt_get_with_http_info(endpoint_id, app_id, opts = {})
|
126
131
|
if @api_client.config.debugging
|
@@ -172,6 +177,7 @@ module Svix
|
|
172
177
|
header_params = opts[:header_params] || {}
|
173
178
|
# HTTP header 'Accept' (if needed)
|
174
179
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
180
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
175
181
|
|
176
182
|
# form parameters
|
177
183
|
form_params = opts[:form_params] || {}
|
data/lib/svix/application_api.rb
CHANGED
@@ -10,10 +10,12 @@ module Svix
|
|
10
10
|
return @api.list_applications_api_v1_app_get(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(application_in)
|
14
|
-
return @api.create_application_api_v1_app_post(application_in)
|
13
|
+
def create(application_in, options = {})
|
14
|
+
return @api.create_application_api_v1_app_post(application_in, options)
|
15
|
+
end
|
16
|
+
def get_or_create(application_in, options = {})
|
17
|
+
return @api.create_application_api_v1_app_post(application_in, {**options, get_if_exists: true})
|
15
18
|
end
|
16
|
-
|
17
19
|
def get(app_id)
|
18
20
|
return @api.get_application_api_v1_app_app_id_get(app_id)
|
19
21
|
end
|
@@ -6,12 +6,12 @@ module Svix
|
|
6
6
|
@api = AuthenticationApi.new(api_client)
|
7
7
|
end
|
8
8
|
|
9
|
-
def dashboard_access(app_id)
|
10
|
-
return @api.get_dashboard_access_api_v1_auth_dashboard_access_app_id_post(app_id)
|
9
|
+
def dashboard_access(app_id, options = {})
|
10
|
+
return @api.get_dashboard_access_api_v1_auth_dashboard_access_app_id_post(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def logout
|
14
|
-
return @api.logout_api_v1_auth_logout_post
|
13
|
+
def logout(options = {})
|
14
|
+
return @api.logout_api_v1_auth_logout_post(options)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/svix/endpoint_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_endpoints_api_v1_app_app_id_endpoint_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, endpoint_in)
|
14
|
-
return @api.create_endpoint_api_v1_app_app_id_endpoint_post(app_id, endpoint_in)
|
13
|
+
def create(app_id, endpoint_in, options = {})
|
14
|
+
return @api.create_endpoint_api_v1_app_app_id_endpoint_post(app_id, endpoint_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, endpoint_id)
|
@@ -30,12 +30,12 @@ module Svix
|
|
30
30
|
return @api.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get(endpoint_id, app_id)
|
31
31
|
end
|
32
32
|
|
33
|
-
def rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in)
|
34
|
-
return @api.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post(endpoint_id, app_id, endpoint_secret_rotate_in)
|
33
|
+
def rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options = {})
|
34
|
+
return @api.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post(endpoint_id, app_id, endpoint_secret_rotate_in, options)
|
35
35
|
end
|
36
36
|
|
37
|
-
def recover(app_id, endpoint_id, recover_in)
|
38
|
-
@api.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post(app_id, endpoint_id, recover_in)
|
37
|
+
def recover(app_id, endpoint_id, recover_in, options = {})
|
38
|
+
@api.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post(app_id, endpoint_id, recover_in, options)
|
39
39
|
nil
|
40
40
|
end
|
41
41
|
|
data/lib/svix/event_type_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_event_types_api_v1_event_type_get(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(event_type_in)
|
14
|
-
return @api.create_event_type_api_v1_event_type_post(event_type_in)
|
13
|
+
def create(event_type_in, options = {})
|
14
|
+
return @api.create_event_type_api_v1_event_type_post(event_type_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(event_type_name)
|
data/lib/svix/integration_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_integrations_api_v1_app_app_id_integration_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, integ_in)
|
14
|
-
return @api.create_integration_api_v1_app_app_id_integration_post(app_id, integ_in)
|
13
|
+
def create(app_id, integ_in, options = {})
|
14
|
+
return @api.create_integration_api_v1_app_app_id_integration_post(app_id, integ_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, integ_id)
|
@@ -30,8 +30,8 @@ module Svix
|
|
30
30
|
return @api.get_integration_key_api_v1_app_app_id_integration_integ_id_key_get(integ_id, app_id)
|
31
31
|
end
|
32
32
|
|
33
|
-
def rotate_key(app_id, integ_id)
|
34
|
-
return @api.rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id)
|
33
|
+
def rotate_key(app_id, integ_id, options = {})
|
34
|
+
return @api.rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id, options)
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
data/lib/svix/message_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_messages_api_v1_app_app_id_msg_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, message_in)
|
14
|
-
return @api.create_message_api_v1_app_app_id_msg_post(app_id, message_in)
|
13
|
+
def create(app_id, message_in, options = {})
|
14
|
+
return @api.create_message_api_v1_app_app_id_msg_post(app_id, message_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, msg_id)
|
@@ -6,16 +6,26 @@ module Svix
|
|
6
6
|
@api = MessageAttemptApi.new(api_client)
|
7
7
|
end
|
8
8
|
|
9
|
+
# <b>DEPRECATED:</b> Please use <tt>list_by_msg</tt> or <tt>list_by_endpoint</tt> instead.
|
9
10
|
def list(app_id, msg_id, options = {})
|
10
|
-
|
11
|
+
warn "[DEPRECATION] `list` is deprecated. Please use `list_by_msg` or `list_by_endpoint` instead."
|
12
|
+
return self.list_by_msg(app_id, msg_id, options)
|
13
|
+
end
|
14
|
+
|
15
|
+
def list_by_msg(app_id, msg_id, options = {})
|
16
|
+
return @api.list_attempts_by_msg_api_v1_app_app_id_attempt_msg_msg_id_get(app_id, msg_id, options)
|
17
|
+
end
|
18
|
+
|
19
|
+
def list_by_endpoint(app_id, endpoint_id, options = {})
|
20
|
+
return @api.list_attempts_by_endpoint_api_v1_app_app_id_attempt_endpoint_endpoint_id_get(app_id, endpoint_id, options)
|
11
21
|
end
|
12
22
|
|
13
23
|
def get(app_id, msg_id, attempt_id)
|
14
24
|
return @api.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get(attempt_id, msg_id, app_id)
|
15
25
|
end
|
16
26
|
|
17
|
-
def resend(app_id, msg_id, endpoint_id)
|
18
|
-
return @api.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post(endpoint_id, msg_id, app_id)
|
27
|
+
def resend(app_id, msg_id, endpoint_id, options = {})
|
28
|
+
return @api.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post(endpoint_id, msg_id, app_id, options)
|
19
29
|
end
|
20
30
|
|
21
31
|
def list_attempted_messages(app_id, endpoint_id, options = {})
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
-
class
|
17
|
+
class ExportEnvironmentOut
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :event_types
|
@@ -58,13 +58,13 @@ module Svix
|
|
58
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
59
|
def initialize(attributes = {})
|
60
60
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::ExportEnvironmentOut` initialize method"
|
62
62
|
end
|
63
63
|
|
64
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
66
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::ExportEnvironmentOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
68
|
end
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
-
class
|
17
|
+
class ImportEnvironmentIn
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :event_types
|
@@ -58,13 +58,13 @@ module Svix
|
|
58
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
59
|
def initialize(attributes = {})
|
60
60
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::ImportEnvironmentIn` initialize method"
|
62
62
|
end
|
63
63
|
|
64
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
66
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::ImportEnvironmentIn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
68
|
end
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
@@ -21,12 +21,15 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :iterator
|
23
23
|
|
24
|
+
attr_accessor :prev_iterator
|
25
|
+
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
27
29
|
:'data' => :'data',
|
28
30
|
:'done' => :'done',
|
29
|
-
:'iterator' => :'iterator'
|
31
|
+
:'iterator' => :'iterator',
|
32
|
+
:'prev_iterator' => :'prevIterator'
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
@@ -40,7 +43,8 @@ module Svix
|
|
40
43
|
{
|
41
44
|
:'data' => :'Array<EndpointMessageOut>',
|
42
45
|
:'done' => :'Boolean',
|
43
|
-
:'iterator' => :'String'
|
46
|
+
:'iterator' => :'String',
|
47
|
+
:'prev_iterator' => :'String'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -78,6 +82,10 @@ module Svix
|
|
78
82
|
if attributes.key?(:'iterator')
|
79
83
|
self.iterator = attributes[:'iterator']
|
80
84
|
end
|
85
|
+
|
86
|
+
if attributes.key?(:'prev_iterator')
|
87
|
+
self.prev_iterator = attributes[:'prev_iterator']
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,7 +118,8 @@ module Svix
|
|
110
118
|
self.class == o.class &&
|
111
119
|
data == o.data &&
|
112
120
|
done == o.done &&
|
113
|
-
iterator == o.iterator
|
121
|
+
iterator == o.iterator &&
|
122
|
+
prev_iterator == o.prev_iterator
|
114
123
|
end
|
115
124
|
|
116
125
|
# @see the `==` method
|
@@ -122,7 +131,7 @@ module Svix
|
|
122
131
|
# Calculates hash code according to all attributes.
|
123
132
|
# @return [Integer] Hash code
|
124
133
|
def hash
|
125
|
-
[data, done, iterator].hash
|
134
|
+
[data, done, iterator, prev_iterator].hash
|
126
135
|
end
|
127
136
|
|
128
137
|
# Builds the object from hash
|
@@ -21,12 +21,15 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :iterator
|
23
23
|
|
24
|
+
attr_accessor :prev_iterator
|
25
|
+
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
27
29
|
:'data' => :'data',
|
28
30
|
:'done' => :'done',
|
29
|
-
:'iterator' => :'iterator'
|
31
|
+
:'iterator' => :'iterator',
|
32
|
+
:'prev_iterator' => :'prevIterator'
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
@@ -40,7 +43,8 @@ module Svix
|
|
40
43
|
{
|
41
44
|
:'data' => :'Array<MessageAttemptEndpointOut>',
|
42
45
|
:'done' => :'Boolean',
|
43
|
-
:'iterator' => :'String'
|
46
|
+
:'iterator' => :'String',
|
47
|
+
:'prev_iterator' => :'String'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -78,6 +82,10 @@ module Svix
|
|
78
82
|
if attributes.key?(:'iterator')
|
79
83
|
self.iterator = attributes[:'iterator']
|
80
84
|
end
|
85
|
+
|
86
|
+
if attributes.key?(:'prev_iterator')
|
87
|
+
self.prev_iterator = attributes[:'prev_iterator']
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,7 +118,8 @@ module Svix
|
|
110
118
|
self.class == o.class &&
|
111
119
|
data == o.data &&
|
112
120
|
done == o.done &&
|
113
|
-
iterator == o.iterator
|
121
|
+
iterator == o.iterator &&
|
122
|
+
prev_iterator == o.prev_iterator
|
114
123
|
end
|
115
124
|
|
116
125
|
# @see the `==` method
|
@@ -122,7 +131,7 @@ module Svix
|
|
122
131
|
# Calculates hash code according to all attributes.
|
123
132
|
# @return [Integer] Hash code
|
124
133
|
def hash
|
125
|
-
[data, done, iterator].hash
|
134
|
+
[data, done, iterator, prev_iterator].hash
|
126
135
|
end
|
127
136
|
|
128
137
|
# Builds the object from hash
|
@@ -21,12 +21,15 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :iterator
|
23
23
|
|
24
|
+
attr_accessor :prev_iterator
|
25
|
+
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
27
29
|
:'data' => :'data',
|
28
30
|
:'done' => :'done',
|
29
|
-
:'iterator' => :'iterator'
|
31
|
+
:'iterator' => :'iterator',
|
32
|
+
:'prev_iterator' => :'prevIterator'
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
@@ -40,7 +43,8 @@ module Svix
|
|
40
43
|
{
|
41
44
|
:'data' => :'Array<MessageAttemptOut>',
|
42
45
|
:'done' => :'Boolean',
|
43
|
-
:'iterator' => :'String'
|
46
|
+
:'iterator' => :'String',
|
47
|
+
:'prev_iterator' => :'String'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -78,6 +82,10 @@ module Svix
|
|
78
82
|
if attributes.key?(:'iterator')
|
79
83
|
self.iterator = attributes[:'iterator']
|
80
84
|
end
|
85
|
+
|
86
|
+
if attributes.key?(:'prev_iterator')
|
87
|
+
self.prev_iterator = attributes[:'prev_iterator']
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,7 +118,8 @@ module Svix
|
|
110
118
|
self.class == o.class &&
|
111
119
|
data == o.data &&
|
112
120
|
done == o.done &&
|
113
|
-
iterator == o.iterator
|
121
|
+
iterator == o.iterator &&
|
122
|
+
prev_iterator == o.prev_iterator
|
114
123
|
end
|
115
124
|
|
116
125
|
# @see the `==` method
|
@@ -122,7 +131,7 @@ module Svix
|
|
122
131
|
# Calculates hash code according to all attributes.
|
123
132
|
# @return [Integer] Hash code
|
124
133
|
def hash
|
125
|
-
[data, done, iterator].hash
|
134
|
+
[data, done, iterator, prev_iterator].hash
|
126
135
|
end
|
127
136
|
|
128
137
|
# Builds the object from hash
|
@@ -21,12 +21,15 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :iterator
|
23
23
|
|
24
|
+
attr_accessor :prev_iterator
|
25
|
+
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
27
29
|
:'data' => :'data',
|
28
30
|
:'done' => :'done',
|
29
|
-
:'iterator' => :'iterator'
|
31
|
+
:'iterator' => :'iterator',
|
32
|
+
:'prev_iterator' => :'prevIterator'
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
@@ -40,7 +43,8 @@ module Svix
|
|
40
43
|
{
|
41
44
|
:'data' => :'Array<MessageOut>',
|
42
45
|
:'done' => :'Boolean',
|
43
|
-
:'iterator' => :'String'
|
46
|
+
:'iterator' => :'String',
|
47
|
+
:'prev_iterator' => :'String'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -78,6 +82,10 @@ module Svix
|
|
78
82
|
if attributes.key?(:'iterator')
|
79
83
|
self.iterator = attributes[:'iterator']
|
80
84
|
end
|
85
|
+
|
86
|
+
if attributes.key?(:'prev_iterator')
|
87
|
+
self.prev_iterator = attributes[:'prev_iterator']
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,7 +118,8 @@ module Svix
|
|
110
118
|
self.class == o.class &&
|
111
119
|
data == o.data &&
|
112
120
|
done == o.done &&
|
113
|
-
iterator == o.iterator
|
121
|
+
iterator == o.iterator &&
|
122
|
+
prev_iterator == o.prev_iterator
|
114
123
|
end
|
115
124
|
|
116
125
|
# @see the `==` method
|
@@ -122,7 +131,7 @@ module Svix
|
|
122
131
|
# Calculates hash code according to all attributes.
|
123
132
|
# @return [Integer] Hash code
|
124
133
|
def hash
|
125
|
-
[data, done, iterator].hash
|
134
|
+
[data, done, iterator, prev_iterator].hash
|
126
135
|
end
|
127
136
|
|
128
137
|
# Builds the object from hash
|