svix 0.74.1 → 0.76.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69bd49da225c8b970a2e83f95637a3947d4a4f332c5bf4cbde3365235a05ba54
4
- data.tar.gz: cefccbdf5b83b987d7dacdfdda76524044769ee8a5e3d63be9190a68d60d8921
3
+ metadata.gz: e2b14bf638ffaf2be47b49bcccdbaece6e42d8e5cb1fa625f6e8a183bf857ef9
4
+ data.tar.gz: de96e50879470c912aceb1fbccfe951d582fca0e7860b429dec8e7a8fca81f0c
5
5
  SHA512:
6
- metadata.gz: f08db02221afd09130013cc5d34b4e8922a4720c15b0d29b95cf9a119ec4e92e024824f3fe039d2c8fb0aefacba30e9bd34b5cb018cc18f6f390ca69cec1a843
7
- data.tar.gz: 4804fd78dd5a84de884e52fe70f5ae10243c845fa4c22257aa86b6ae908abf53d327186c2c0e023f1af146b5a2b9ad81036a261f4823ec068a6f0ea7f6aa4bcb
6
+ metadata.gz: 8187d31050a8ccce817700faeac2c491d51e7dc89ba3cd984a8f9cbb1fdfedfd4b07ecbde1b68d029dac139d4cdedeb199e8bcd25f108326bdec455da884037d
7
+ data.tar.gz: 286cac3af9ec20b796b15948b880905842e72f5589146c0c1e2d1fa44d374a4f821f62e98799204475be4527e1a3fe767499b7ce18dc7f6c2aedcdb121d00105
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.74.1)
4
+ svix (0.76.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -109,6 +109,93 @@ module Svix
109
109
  # Get Consumer App Portal Access
110
110
  # Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
111
111
  # @param app_id [String]
112
+ # @param app_portal_access_in [AppPortalAccessIn]
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [String] :idempotency_key The request's idempotency key
115
+ # @return [AppPortalAccessOut]
116
+ def get_app_portal_access_api_v1_auth_app_portal_access_app_id_post(app_id, app_portal_access_in, opts = {})
117
+ data, _status_code, _headers = get_app_portal_access_api_v1_auth_app_portal_access_app_id_post_with_http_info(app_id, app_portal_access_in, opts)
118
+ data
119
+ end
120
+
121
+ # Get Consumer App Portal Access
122
+ # Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
123
+ # @param app_id [String]
124
+ # @param app_portal_access_in [AppPortalAccessIn]
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :idempotency_key The request's idempotency key
127
+ # @return [Array<(AppPortalAccessOut, Integer, Hash)>] AppPortalAccessOut data, response status code and response headers
128
+ def get_app_portal_access_api_v1_auth_app_portal_access_app_id_post_with_http_info(app_id, app_portal_access_in, opts = {})
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post ...'
131
+ end
132
+ # verify the required parameter 'app_id' is set
133
+ if @api_client.config.client_side_validation && app_id.nil?
134
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post"
135
+ end
136
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
137
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post, the character length must be smaller than or equal to 256.'
138
+ end
139
+
140
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post, the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
145
+ if @api_client.config.client_side_validation && app_id !~ pattern
146
+ fail ArgumentError, "invalid value for 'app_id' when calling AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post, must conform to the pattern #{pattern}."
147
+ end
148
+
149
+ # verify the required parameter 'app_portal_access_in' is set
150
+ if @api_client.config.client_side_validation && app_portal_access_in.nil?
151
+ fail ArgumentError, "Missing the required parameter 'app_portal_access_in' when calling AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post"
152
+ end
153
+ # resource path
154
+ local_var_path = '/api/v1/auth/app-portal-access/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
+ # HTTP header 'Content-Type'
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
165
+ header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
166
+
167
+ # form parameters
168
+ form_params = opts[:form_params] || {}
169
+
170
+ # http body (model)
171
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(app_portal_access_in)
172
+
173
+ # return_type
174
+ return_type = opts[:debug_return_type] || 'AppPortalAccessOut'
175
+
176
+ # auth_names
177
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
178
+
179
+ new_options = opts.merge(
180
+ :operation => :"AuthenticationApi.get_app_portal_access_api_v1_auth_app_portal_access_app_id_post",
181
+ :header_params => header_params,
182
+ :query_params => query_params,
183
+ :form_params => form_params,
184
+ :body => post_body,
185
+ :auth_names => auth_names,
186
+ :return_type => return_type
187
+ )
188
+
189
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
190
+ if @api_client.config.debugging
191
+ @api_client.config.logger.debug "API called: AuthenticationApi#get_app_portal_access_api_v1_auth_app_portal_access_app_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+
196
+ # Get Dashboard Access
197
+ # DEPRECATED: Please use `app-portal-access` instead. Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
198
+ # @param app_id [String]
112
199
  # @param [Hash] opts the optional parameters
113
200
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
114
201
  # @return [DashboardAccessOut]
@@ -117,8 +204,8 @@ module Svix
117
204
  data
118
205
  end
119
206
 
120
- # Get Consumer App Portal Access
121
- # Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
207
+ # Get Dashboard Access
208
+ # DEPRECATED: Please use &#x60;app-portal-access&#x60; instead. Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
122
209
  # @param app_id [String]
123
210
  # @param [Hash] opts the optional parameters
124
211
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -109,6 +109,104 @@ module Svix
109
109
  return data, status_code, headers
110
110
  end
111
111
 
112
+ # Delete message payload
113
+ # Delete the given message's payload. Useful in cases when a message was accidentally sent with sensitive content. The message can't be replayed or resent once its payload has been deleted or expired.
114
+ # @param msg_id [String]
115
+ # @param app_id [String]
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
118
+ # @return [nil]
119
+ def expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete(msg_id, app_id, opts = {})
120
+ expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete_with_http_info(msg_id, app_id, opts)
121
+ nil
122
+ end
123
+
124
+ # Delete message payload
125
+ # Delete the given message&#39;s payload. Useful in cases when a message was accidentally sent with sensitive content. The message can&#39;t be replayed or resent once its payload has been deleted or expired.
126
+ # @param msg_id [String]
127
+ # @param app_id [String]
128
+ # @param [Hash] opts the optional parameters
129
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
130
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
131
+ def expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete_with_http_info(msg_id, app_id, opts = {})
132
+ if @api_client.config.debugging
133
+ @api_client.config.logger.debug 'Calling API: MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete ...'
134
+ end
135
+ # verify the required parameter 'msg_id' is set
136
+ if @api_client.config.client_side_validation && msg_id.nil?
137
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete"
138
+ end
139
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
140
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, the character length must be smaller than or equal to 256.'
141
+ end
142
+
143
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
144
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, the character length must be great than or equal to 1.'
145
+ end
146
+
147
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
148
+ if @api_client.config.client_side_validation && msg_id !~ pattern
149
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, must conform to the pattern #{pattern}."
150
+ end
151
+
152
+ # verify the required parameter 'app_id' is set
153
+ if @api_client.config.client_side_validation && app_id.nil?
154
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete"
155
+ end
156
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
157
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, the character length must be smaller than or equal to 256.'
158
+ end
159
+
160
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
161
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, the character length must be great than or equal to 1.'
162
+ end
163
+
164
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
165
+ if @api_client.config.client_side_validation && app_id !~ pattern
166
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete, must conform to the pattern #{pattern}."
167
+ end
168
+
169
+ # resource path
170
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/content/'.sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
171
+
172
+ # query parameters
173
+ query_params = opts[:query_params] || {}
174
+
175
+ # header parameters
176
+ header_params = opts[:header_params] || {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
179
+ header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
180
+
181
+ # form parameters
182
+ form_params = opts[:form_params] || {}
183
+
184
+ # http body (model)
185
+ post_body = opts[:debug_body]
186
+
187
+ # return_type
188
+ return_type = opts[:debug_return_type]
189
+
190
+ # auth_names
191
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
192
+
193
+ new_options = opts.merge(
194
+ :operation => :"MessageApi.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete",
195
+ :header_params => header_params,
196
+ :query_params => query_params,
197
+ :form_params => form_params,
198
+ :body => post_body,
199
+ :auth_names => auth_names,
200
+ :return_type => return_type
201
+ )
202
+
203
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "API called: MessageApi#expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
+ end
207
+ return data, status_code, headers
208
+ end
209
+
112
210
  # Get Message
113
211
  # Get a message by its ID or eventID.
114
212
  # @param msg_id [String]
@@ -19,6 +19,110 @@ module Svix
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete attempt response body
23
+ # Deletes the given attempt's repsonse body. Useful when an endpoint accidentally returned sensitive content.
24
+ # @param attempt_id [String]
25
+ # @param msg_id [String]
26
+ # @param app_id [String]
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
29
+ # @return [nil]
30
+ def expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete(attempt_id, msg_id, app_id, opts = {})
31
+ expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete_with_http_info(attempt_id, msg_id, app_id, opts)
32
+ nil
33
+ end
34
+
35
+ # Delete attempt response body
36
+ # Deletes the given attempt&#39;s repsonse body. Useful when an endpoint accidentally returned sensitive content.
37
+ # @param attempt_id [String]
38
+ # @param msg_id [String]
39
+ # @param app_id [String]
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
42
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
+ def expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete_with_http_info(attempt_id, msg_id, app_id, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete ...'
46
+ end
47
+ # verify the required parameter 'attempt_id' is set
48
+ if @api_client.config.client_side_validation && attempt_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete"
50
+ end
51
+ # verify the required parameter 'msg_id' is set
52
+ if @api_client.config.client_side_validation && msg_id.nil?
53
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete"
54
+ end
55
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
56
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, the character length must be smaller than or equal to 256.'
57
+ end
58
+
59
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
60
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, the character length must be great than or equal to 1.'
61
+ end
62
+
63
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
64
+ if @api_client.config.client_side_validation && msg_id !~ pattern
65
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, must conform to the pattern #{pattern}."
66
+ end
67
+
68
+ # verify the required parameter 'app_id' is set
69
+ if @api_client.config.client_side_validation && app_id.nil?
70
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete"
71
+ end
72
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
73
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, the character length must be smaller than or equal to 256.'
74
+ end
75
+
76
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
77
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, the character length must be great than or equal to 1.'
78
+ end
79
+
80
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
81
+ if @api_client.config.client_side_validation && app_id !~ pattern
82
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete, must conform to the pattern #{pattern}."
83
+ end
84
+
85
+ # resource path
86
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content/'.sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
87
+
88
+ # query parameters
89
+ query_params = opts[:query_params] || {}
90
+
91
+ # header parameters
92
+ header_params = opts[:header_params] || {}
93
+ # HTTP header 'Accept' (if needed)
94
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
95
+ header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
96
+
97
+ # form parameters
98
+ form_params = opts[:form_params] || {}
99
+
100
+ # http body (model)
101
+ post_body = opts[:debug_body]
102
+
103
+ # return_type
104
+ return_type = opts[:debug_return_type]
105
+
106
+ # auth_names
107
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
108
+
109
+ new_options = opts.merge(
110
+ :operation => :"MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete",
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: MessageAttemptApi#expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+
22
126
  # Get Attempt
23
127
  # `msg_id`: Use a message id or a message `eventId`
24
128
  # @param attempt_id [String]
@@ -1,17 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- class AuthenticationAPI
5
- def initialize(api_client)
6
- @api = AuthenticationApi.new(api_client)
7
- end
4
+ class AuthenticationAPI
5
+ def initialize(api_client)
6
+ @api = AuthenticationApi.new(api_client)
7
+ end
8
+
9
+ def app_portal_access(app_id, app_portal_access_in, options = {})
10
+ return @api.get_app_portal_access_access_api_v1_auth_dashboard_access_app_id_post(app_id, app_portal_access_in, options)
11
+ end
8
12
 
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
- end
13
+ def dashboard_access(app_id, options = {})
14
+ return @api.get_dashboard_access_api_v1_auth_dashboard_access_app_id_post(app_id, options)
15
+ end
12
16
 
13
- def logout(options = {})
14
- return @api.logout_api_v1_auth_logout_post(options)
15
- end
17
+ def logout(options = {})
18
+ return @api.logout_api_v1_auth_logout_post(options)
16
19
  end
20
+ end
17
21
  end
@@ -55,5 +55,18 @@ module Svix
55
55
  return @api.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get(endpoint_id app_id)
56
56
  end
57
57
 
58
+ def replay(app_id, endpoint_id, replay_in, options = {})
59
+ @api.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post(app_id, endpoint_id, replay_in, options)
60
+ nil
61
+ end
62
+
63
+ def transformation_get(app_id, endpoint_id, options = {})
64
+ return @api.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get(endpoint_id, app_id, options)
65
+ end
66
+
67
+ def transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, options = {})
68
+ @api.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch(app_id, endpoint_id, endpoint_transformation_in, options)
69
+ nil
70
+ end
58
71
  end
59
72
  end
@@ -1,21 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- class MessageAPI
5
- def initialize(api_client)
6
- @api = MessageApi.new(api_client)
7
- end
4
+ class MessageAPI
5
+ def initialize(api_client)
6
+ @api = MessageApi.new(api_client)
7
+ end
8
8
 
9
- def list(app_id, options = {})
10
- return @api.list_messages_api_v1_app_app_id_msg_get(app_id, options)
11
- end
9
+ def list(app_id, options = {})
10
+ return @api.list_messages_api_v1_app_app_id_msg_get(app_id, options)
11
+ end
12
12
 
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
- end
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
+ end
16
+
17
+ def get(app_id, msg_id)
18
+ return @api.get_message_api_v1_app_app_id_msg_msg_id_get(msg_id, app_id)
19
+ end
16
20
 
17
- def get(app_id, msg_id)
18
- return @api.get_message_api_v1_app_app_id_msg_msg_id_get(msg_id, app_id)
19
- end
21
+ def expunge_content(app_id, msg_id)
22
+ return @api.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete(msg_id, app_id)
20
23
  end
24
+ end
21
25
  end
@@ -1,43 +1,47 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- class MessageAttemptAPI
5
- def initialize(api_client)
6
- @api = MessageAttemptApi.new(api_client)
7
- end
4
+ class MessageAttemptAPI
5
+ def initialize(api_client)
6
+ @api = MessageAttemptApi.new(api_client)
7
+ end
8
8
 
9
- # <b>DEPRECATED:</b> Please use <tt>list_by_msg</tt> or <tt>list_by_endpoint</tt> instead.
10
- def list(app_id, msg_id, options = {})
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
9
+ # <b>DEPRECATED:</b> Please use <tt>list_by_msg</tt> or <tt>list_by_endpoint</tt> instead.
10
+ def list(app_id, msg_id, options = {})
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
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
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)
21
+ end
18
22
 
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)
21
- end
23
+ def get(app_id, msg_id, attempt_id)
24
+ return @api.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get(attempt_id, msg_id, app_id)
25
+ end
22
26
 
23
- def get(app_id, msg_id, attempt_id)
24
- return @api.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get(attempt_id, msg_id, app_id)
25
- end
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)
29
+ end
26
30
 
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)
29
- end
31
+ def list_attempted_messages(app_id, endpoint_id, options = {})
32
+ return @api.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get(endpoint_id, app_id, options)
33
+ end
30
34
 
31
- def list_attempted_messages(app_id, endpoint_id, options = {})
32
- return @api.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get(endpoint_id, app_id, options)
33
- end
35
+ def list_attempted_destinations(app_id, msg_id, options = {})
36
+ return @api.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get(msg_id, app_id, options)
37
+ end
34
38
 
35
- def list_attempted_destinations(app_id, msg_id, options = {})
36
- return @api.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get(msg_id, app_id, options)
37
- end
39
+ def list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {})
40
+ return @api.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get(msg_id, app_id, endpoint_id, options)
41
+ end
38
42
 
39
- def list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {})
40
- return @api.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get(msg_id, app_id, endpoint_id, options)
41
- end
43
+ def expunge_content(app_id, msg_id, attempt_id)
44
+ return @api.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete(attempt_id, msg_id, app_id)
42
45
  end
46
+ end
43
47
  end