svix 1.24.0 → 1.26.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/svix/api/authentication_api.rb +87 -0
  4. data/lib/svix/api/endpoint_api.rb +277 -2
  5. data/lib/svix/api/events_api.rb +3 -3
  6. data/lib/svix/api/message_api.rb +317 -101
  7. data/lib/svix/api/transformation_template_api.rb +195 -24
  8. data/lib/svix/models/auth_token_out.rb +284 -0
  9. data/lib/svix/models/create_message_token_in.rb +250 -0
  10. data/lib/svix/models/create_stream_in.rb +225 -0
  11. data/lib/svix/models/endpoint_created_event_data.rb +1 -0
  12. data/lib/svix/models/endpoint_deleted_event_data.rb +1 -0
  13. data/lib/svix/models/endpoint_mtls_config_in.rb +15 -19
  14. data/lib/svix/models/endpoint_oauth_config_in.rb +13 -2
  15. data/lib/svix/models/endpoint_updated_event_data.rb +1 -0
  16. data/lib/svix/models/environment_settings_out.rb +15 -4
  17. data/lib/svix/models/event_in.rb +223 -0
  18. data/lib/svix/models/event_out.rb +237 -0
  19. data/lib/svix/models/event_stream_out.rb +253 -0
  20. data/lib/svix/models/event_type_from_open_api.rb +280 -0
  21. data/lib/svix/models/event_type_import_open_api_in.rb +13 -1
  22. data/lib/svix/models/event_type_import_open_api_out_data.rb +16 -4
  23. data/lib/svix/models/event_type_in.rb +38 -1
  24. data/lib/svix/models/event_type_out.rb +38 -1
  25. data/lib/svix/models/event_type_patch.rb +38 -1
  26. data/lib/svix/models/event_type_update.rb +38 -1
  27. data/lib/svix/models/hubspot_oauth_config_in.rb +223 -0
  28. data/lib/svix/models/{oauth_payload_out.rb → incoming_webhook_payload_out.rb} +3 -3
  29. data/lib/svix/models/kafka_security_protocol_type.rb +38 -0
  30. data/lib/svix/models/list_response_sink_out.rb +259 -0
  31. data/lib/svix/models/{message_stream_out.rb → message_events_out.rb} +3 -3
  32. data/lib/svix/models/message_subscriber_auth_token_out.rb +237 -0
  33. data/lib/svix/models/{oauth_payload_in.rb → o_auth_payload_in.rb} +3 -3
  34. data/lib/svix/models/o_auth_payload_out.rb +239 -0
  35. data/lib/svix/models/{oauth2_grant_type.rb → oauth2_grant_type_in.rb} +4 -3
  36. data/lib/svix/models/settings_in.rb +15 -4
  37. data/lib/svix/models/settings_out.rb +15 -4
  38. data/lib/svix/models/sink_in.rb +107 -0
  39. data/lib/svix/models/sink_in_one_of.rb +285 -0
  40. data/lib/svix/models/sink_in_one_of1.rb +313 -0
  41. data/lib/svix/models/sink_in_one_of2.rb +321 -0
  42. data/lib/svix/models/sink_in_one_of3.rb +271 -0
  43. data/lib/svix/models/sink_out.rb +107 -0
  44. data/lib/svix/version.rb +1 -1
  45. metadata +24 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ccf861a161a61299e676c576187fdf2ecf7a748eba371ced72182b66ab1e5e3
4
- data.tar.gz: 4164060536e9f5f349e9111aed010bb0d2ffec043a036e32239285fea3b3f5bc
3
+ metadata.gz: 137159e57b6b673d13577f4f6707cacb923cc9c31f00280487d5877073eec8b5
4
+ data.tar.gz: a4a8cfbf51502fee0f60119fa61305c83286130295c75db822fd55f76c4fd082
5
5
  SHA512:
6
- metadata.gz: ecc7d97006a0d3f9446377fc096c43fdca661a1c00a96685d8f62a5afbd67e9a18d2e544b0fcca0c1c669997042527942a01a911a3727813d60c8ee72a2c2350
7
- data.tar.gz: 603bcebef98e16a838afed4849d0673f8cffee4c7239a51a90032b6e3b0959223c7140be60679cd165bdc51b4201266f4e01d1781e17ddc9f6cea74e8829daa6
6
+ metadata.gz: d511f01e9d2d071d878f859d3ebfc363158930c1f30b470a729d381087a12a7e55c61c47bf07c7a1394a24c102a52a9ac9ec1d45d34fe721287fba280478070b
7
+ data.tar.gz: 23ef12bff4592bc625826d993852144052b9d9915aa9d3fa973a49527fe1a2d3583233ab169b11058a6363593647bf72e8d768482791b3bec417329d0f510182
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.24.0)
4
+ svix (1.26.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -10,7 +10,7 @@ GEM
10
10
  diff-lcs (1.4.4)
11
11
  ethon (0.16.0)
12
12
  ffi (>= 1.15.0)
13
- ffi (1.16.3)
13
+ ffi (1.17.0)
14
14
  rake (13.0.6)
15
15
  rspec (3.10.0)
16
16
  rspec-core (~> 3.10.0)
@@ -106,6 +106,93 @@ module Svix
106
106
  return data, status_code, headers
107
107
  end
108
108
 
109
+ # Create Cmg Token
110
+ # Create a new access token that only allows creating messages inside this application.
111
+ # @param app_id [String] The app's ID or UID
112
+ # @param create_message_token_in [CreateMessageTokenIn]
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [String] :idempotency_key The request's idempotency key
115
+ # @return [AuthTokenOut]
116
+ def v1_authentication_create_message_token(app_id, create_message_token_in, opts = {})
117
+ data, _status_code, _headers = v1_authentication_create_message_token_with_http_info(app_id, create_message_token_in, opts)
118
+ data
119
+ end
120
+
121
+ # Create Cmg Token
122
+ # Create a new access token that only allows creating messages inside this application.
123
+ # @param app_id [String] The app's ID or UID
124
+ # @param create_message_token_in [CreateMessageTokenIn]
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :idempotency_key The request's idempotency key
127
+ # @return [Array<(AuthTokenOut, Integer, Hash)>] AuthTokenOut data, response status code and response headers
128
+ def v1_authentication_create_message_token_with_http_info(app_id, create_message_token_in, opts = {})
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.v1_authentication_create_message_token ...'
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.v1_authentication_create_message_token"
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.v1_authentication_create_message_token, 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.v1_authentication_create_message_token, 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.v1_authentication_create_message_token, must conform to the pattern #{pattern}."
147
+ end
148
+
149
+ # verify the required parameter 'create_message_token_in' is set
150
+ if @api_client.config.client_side_validation && create_message_token_in.nil?
151
+ fail ArgumentError, "Missing the required parameter 'create_message_token_in' when calling AuthenticationApi.v1_authentication_create_message_token"
152
+ end
153
+ # resource path
154
+ local_var_path = '/api/v1/auth/app/{app_id}/create-message-token'.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(create_message_token_in)
172
+
173
+ # return_type
174
+ return_type = opts[:debug_return_type] || 'AuthTokenOut'
175
+
176
+ # auth_names
177
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
178
+
179
+ new_options = opts.merge(
180
+ :operation => :"AuthenticationApi.v1_authentication_create_message_token",
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#v1_authentication_create_message_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+
109
196
  # Dashboard Access
110
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.
111
198
  # @param app_id [String] The app&#39;s ID or UID
@@ -1395,7 +1395,7 @@ module Svix
1395
1395
  end
1396
1396
 
1397
1397
  # Send Event Type Example Message
1398
- # Send an example message for event
1398
+ # Send an example message for an event
1399
1399
  # @param app_id [String] The app&#39;s ID or UID
1400
1400
  # @param endpoint_id [String] The ep&#39;s ID or UID
1401
1401
  # @param event_example_in [EventExampleIn]
@@ -1408,7 +1408,7 @@ module Svix
1408
1408
  end
1409
1409
 
1410
1410
  # Send Event Type Example Message
1411
- # Send an example message for event
1411
+ # Send an example message for an event
1412
1412
  # @param app_id [String] The app&#39;s ID or UID
1413
1413
  # @param endpoint_id [String] The ep&#39;s ID or UID
1414
1414
  # @param event_example_in [EventExampleIn]
@@ -2215,5 +2215,280 @@ module Svix
2215
2215
  end
2216
2216
  return data, status_code, headers
2217
2217
  end
2218
+
2219
+ # Create Sink
2220
+ # Create a new sink for the application.
2221
+ # @param app_id [String] The app&#39;s ID or UID
2222
+ # @param sink_in [SinkIn]
2223
+ # @param [Hash] opts the optional parameters
2224
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
2225
+ # @return [SinkOut]
2226
+ def v1_sink_create(app_id, sink_in, opts = {})
2227
+ data, _status_code, _headers = v1_sink_create_with_http_info(app_id, sink_in, opts)
2228
+ data
2229
+ end
2230
+
2231
+ # Create Sink
2232
+ # Create a new sink for the application.
2233
+ # @param app_id [String] The app&#39;s ID or UID
2234
+ # @param sink_in [SinkIn]
2235
+ # @param [Hash] opts the optional parameters
2236
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
2237
+ # @return [Array<(SinkOut, Integer, Hash)>] SinkOut data, response status code and response headers
2238
+ def v1_sink_create_with_http_info(app_id, sink_in, opts = {})
2239
+ if @api_client.config.debugging
2240
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_create ...'
2241
+ end
2242
+ # verify the required parameter 'app_id' is set
2243
+ if @api_client.config.client_side_validation && app_id.nil?
2244
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_create"
2245
+ end
2246
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
2247
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_create, the character length must be smaller than or equal to 256.'
2248
+ end
2249
+
2250
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
2251
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_create, the character length must be great than or equal to 1.'
2252
+ end
2253
+
2254
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2255
+ if @api_client.config.client_side_validation && app_id !~ pattern
2256
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_create, must conform to the pattern #{pattern}."
2257
+ end
2258
+
2259
+ # verify the required parameter 'sink_in' is set
2260
+ if @api_client.config.client_side_validation && sink_in.nil?
2261
+ fail ArgumentError, "Missing the required parameter 'sink_in' when calling EndpointApi.v1_sink_create"
2262
+ end
2263
+ # resource path
2264
+ local_var_path = '/api/v1/app/{app_id}/sink'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
2265
+
2266
+ # query parameters
2267
+ query_params = opts[:query_params] || {}
2268
+
2269
+ # header parameters
2270
+ header_params = opts[:header_params] || {}
2271
+ # HTTP header 'Accept' (if needed)
2272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2273
+ # HTTP header 'Content-Type'
2274
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2275
+ header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
2276
+
2277
+ # form parameters
2278
+ form_params = opts[:form_params] || {}
2279
+
2280
+ # http body (model)
2281
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sink_in)
2282
+
2283
+ # return_type
2284
+ return_type = opts[:debug_return_type] || 'SinkOut'
2285
+
2286
+ # auth_names
2287
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
2288
+
2289
+ new_options = opts.merge(
2290
+ :operation => :"EndpointApi.v1_sink_create",
2291
+ :header_params => header_params,
2292
+ :query_params => query_params,
2293
+ :form_params => form_params,
2294
+ :body => post_body,
2295
+ :auth_names => auth_names,
2296
+ :return_type => return_type
2297
+ )
2298
+
2299
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2300
+ if @api_client.config.debugging
2301
+ @api_client.config.logger.debug "API called: EndpointApi#v1_sink_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2302
+ end
2303
+ return data, status_code, headers
2304
+ end
2305
+
2306
+ # Get Sink
2307
+ # Get a sink.
2308
+ # @param app_id [String] The app&#39;s ID or UID
2309
+ # @param sink_id [String] The ep&#39;s ID or UID
2310
+ # @param [Hash] opts the optional parameters
2311
+ # @return [SinkOut]
2312
+ def v1_sink_get(app_id, sink_id, opts = {})
2313
+ data, _status_code, _headers = v1_sink_get_with_http_info(app_id, sink_id, opts)
2314
+ data
2315
+ end
2316
+
2317
+ # Get Sink
2318
+ # Get a sink.
2319
+ # @param app_id [String] The app&#39;s ID or UID
2320
+ # @param sink_id [String] The ep&#39;s ID or UID
2321
+ # @param [Hash] opts the optional parameters
2322
+ # @return [Array<(SinkOut, Integer, Hash)>] SinkOut data, response status code and response headers
2323
+ def v1_sink_get_with_http_info(app_id, sink_id, opts = {})
2324
+ if @api_client.config.debugging
2325
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_get ...'
2326
+ end
2327
+ # verify the required parameter 'app_id' is set
2328
+ if @api_client.config.client_side_validation && app_id.nil?
2329
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_get"
2330
+ end
2331
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
2332
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_get, the character length must be smaller than or equal to 256.'
2333
+ end
2334
+
2335
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
2336
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_get, the character length must be great than or equal to 1.'
2337
+ end
2338
+
2339
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2340
+ if @api_client.config.client_side_validation && app_id !~ pattern
2341
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_get, must conform to the pattern #{pattern}."
2342
+ end
2343
+
2344
+ # verify the required parameter 'sink_id' is set
2345
+ if @api_client.config.client_side_validation && sink_id.nil?
2346
+ fail ArgumentError, "Missing the required parameter 'sink_id' when calling EndpointApi.v1_sink_get"
2347
+ end
2348
+ if @api_client.config.client_side_validation && sink_id.to_s.length > 256
2349
+ fail ArgumentError, 'invalid value for "sink_id" when calling EndpointApi.v1_sink_get, the character length must be smaller than or equal to 256.'
2350
+ end
2351
+
2352
+ if @api_client.config.client_side_validation && sink_id.to_s.length < 1
2353
+ fail ArgumentError, 'invalid value for "sink_id" when calling EndpointApi.v1_sink_get, the character length must be great than or equal to 1.'
2354
+ end
2355
+
2356
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2357
+ if @api_client.config.client_side_validation && sink_id !~ pattern
2358
+ fail ArgumentError, "invalid value for 'sink_id' when calling EndpointApi.v1_sink_get, must conform to the pattern #{pattern}."
2359
+ end
2360
+
2361
+ # resource path
2362
+ local_var_path = '/api/v1/app/{app_id}/sink/{sink_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'sink_id' + '}', CGI.escape(sink_id.to_s))
2363
+
2364
+ # query parameters
2365
+ query_params = opts[:query_params] || {}
2366
+
2367
+ # header parameters
2368
+ header_params = opts[:header_params] || {}
2369
+ # HTTP header 'Accept' (if needed)
2370
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2371
+
2372
+ # form parameters
2373
+ form_params = opts[:form_params] || {}
2374
+
2375
+ # http body (model)
2376
+ post_body = opts[:debug_body]
2377
+
2378
+ # return_type
2379
+ return_type = opts[:debug_return_type] || 'SinkOut'
2380
+
2381
+ # auth_names
2382
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
2383
+
2384
+ new_options = opts.merge(
2385
+ :operation => :"EndpointApi.v1_sink_get",
2386
+ :header_params => header_params,
2387
+ :query_params => query_params,
2388
+ :form_params => form_params,
2389
+ :body => post_body,
2390
+ :auth_names => auth_names,
2391
+ :return_type => return_type
2392
+ )
2393
+
2394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2395
+ if @api_client.config.debugging
2396
+ @api_client.config.logger.debug "API called: EndpointApi#v1_sink_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2397
+ end
2398
+ return data, status_code, headers
2399
+ end
2400
+
2401
+ # List Sinks
2402
+ # List the application's sinks.
2403
+ # @param app_id [String] The app&#39;s ID or UID
2404
+ # @param [Hash] opts the optional parameters
2405
+ # @option opts [Integer] :limit Limit the number of returned items
2406
+ # @option opts [String] :iterator The iterator returned from a prior invocation
2407
+ # @option opts [Ordering] :order The sorting order of the returned items
2408
+ # @return [ListResponseSinkOut]
2409
+ def v1_sink_list(app_id, opts = {})
2410
+ data, _status_code, _headers = v1_sink_list_with_http_info(app_id, opts)
2411
+ data
2412
+ end
2413
+
2414
+ # List Sinks
2415
+ # List the application&#39;s sinks.
2416
+ # @param app_id [String] The app&#39;s ID or UID
2417
+ # @param [Hash] opts the optional parameters
2418
+ # @option opts [Integer] :limit Limit the number of returned items
2419
+ # @option opts [String] :iterator The iterator returned from a prior invocation
2420
+ # @option opts [Ordering] :order The sorting order of the returned items
2421
+ # @return [Array<(ListResponseSinkOut, Integer, Hash)>] ListResponseSinkOut data, response status code and response headers
2422
+ def v1_sink_list_with_http_info(app_id, opts = {})
2423
+ if @api_client.config.debugging
2424
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_list ...'
2425
+ end
2426
+ # verify the required parameter 'app_id' is set
2427
+ if @api_client.config.client_side_validation && app_id.nil?
2428
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_list"
2429
+ end
2430
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
2431
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_list, the character length must be smaller than or equal to 256.'
2432
+ end
2433
+
2434
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
2435
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_list, the character length must be great than or equal to 1.'
2436
+ end
2437
+
2438
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2439
+ if @api_client.config.client_side_validation && app_id !~ pattern
2440
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_list, must conform to the pattern #{pattern}."
2441
+ end
2442
+
2443
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
2444
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_sink_list, must be smaller than or equal to 250.'
2445
+ end
2446
+
2447
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2448
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_sink_list, must be greater than or equal to 1.'
2449
+ end
2450
+
2451
+ # resource path
2452
+ local_var_path = '/api/v1/app/{app_id}/sink'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
2453
+
2454
+ # query parameters
2455
+ query_params = opts[:query_params] || {}
2456
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2457
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
2458
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
2459
+
2460
+ # header parameters
2461
+ header_params = opts[:header_params] || {}
2462
+ # HTTP header 'Accept' (if needed)
2463
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2464
+
2465
+ # form parameters
2466
+ form_params = opts[:form_params] || {}
2467
+
2468
+ # http body (model)
2469
+ post_body = opts[:debug_body]
2470
+
2471
+ # return_type
2472
+ return_type = opts[:debug_return_type] || 'ListResponseSinkOut'
2473
+
2474
+ # auth_names
2475
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
2476
+
2477
+ new_options = opts.merge(
2478
+ :operation => :"EndpointApi.v1_sink_list",
2479
+ :header_params => header_params,
2480
+ :query_params => query_params,
2481
+ :form_params => form_params,
2482
+ :body => post_body,
2483
+ :auth_names => auth_names,
2484
+ :return_type => return_type
2485
+ )
2486
+
2487
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2488
+ if @api_client.config.debugging
2489
+ @api_client.config.logger.debug "API called: EndpointApi#v1_sink_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2490
+ end
2491
+ return data, status_code, headers
2492
+ end
2218
2493
  end
2219
2494
  end
@@ -27,7 +27,7 @@ module Svix
27
27
  # @option opts [Array<String>] :event_types Filter response based on the event type
28
28
  # @option opts [Array<String>] :channels Filter response based on the event type
29
29
  # @option opts [Time] :after
30
- # @return [MessageStreamOut]
30
+ # @return [MessageEventsOut]
31
31
  def v1_events(opts = {})
32
32
  data, _status_code, _headers = v1_events_with_http_info(opts)
33
33
  data
@@ -41,7 +41,7 @@ module Svix
41
41
  # @option opts [Array<String>] :event_types Filter response based on the event type
42
42
  # @option opts [Array<String>] :channels Filter response based on the event type
43
43
  # @option opts [Time] :after
44
- # @return [Array<(MessageStreamOut, Integer, Hash)>] MessageStreamOut data, response status code and response headers
44
+ # @return [Array<(MessageEventsOut, Integer, Hash)>] MessageEventsOut data, response status code and response headers
45
45
  def v1_events_with_http_info(opts = {})
46
46
  if @api_client.config.debugging
47
47
  @api_client.config.logger.debug 'Calling API: EventsApi.v1_events ...'
@@ -77,7 +77,7 @@ module Svix
77
77
  post_body = opts[:debug_body]
78
78
 
79
79
  # return_type
80
- return_type = opts[:debug_return_type] || 'MessageStreamOut'
80
+ return_type = opts[:debug_return_type] || 'MessageEventsOut'
81
81
 
82
82
  # auth_names
83
83
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']