svix 1.38.0 → 1.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +8 -1
  4. data/lib/svix/api/application_api.rb +23 -14
  5. data/lib/svix/api/authentication_api.rb +23 -11
  6. data/lib/svix/api/background_tasks_api.rb +3 -3
  7. data/lib/svix/api/broadcast_api.rb +6 -3
  8. data/lib/svix/api/endpoint_api.rb +86 -44
  9. data/lib/svix/api/environment_api.rb +8 -5
  10. data/lib/svix/api/environment_settings_api.rb +2 -2
  11. data/lib/svix/api/event_type_api.rb +39 -21
  12. data/lib/svix/api/events_api.rb +2 -2
  13. data/lib/svix/api/health_api.rb +2 -2
  14. data/lib/svix/api/inbound_api.rb +7 -4
  15. data/lib/svix/api/integration_api.rb +16 -10
  16. data/lib/svix/api/message_api.rb +21 -15
  17. data/lib/svix/api/message_attempt_api.rb +25 -25
  18. data/lib/svix/api/statistics_api.rb +9 -6
  19. data/lib/svix/api/stream_api.rb +176 -10
  20. data/lib/svix/api/stream_event_types_api.rb +486 -0
  21. data/lib/svix/api/transformation_template_api.rb +49 -22
  22. data/lib/svix/api/webhook_endpoint_api.rb +572 -0
  23. data/lib/svix/api_client.rb +45 -28
  24. data/lib/svix/api_error.rb +2 -1
  25. data/lib/svix/configuration.rb +42 -12
  26. data/lib/svix/models/aggregate_event_types_out.rb +43 -19
  27. data/lib/svix/models/app_portal_access_in.rb +19 -19
  28. data/lib/svix/models/app_portal_access_out.rb +19 -19
  29. data/lib/svix/models/app_usage_stats_in.rb +19 -19
  30. data/lib/svix/models/app_usage_stats_out.rb +43 -19
  31. data/lib/svix/models/application_in.rb +17 -19
  32. data/lib/svix/models/application_out.rb +25 -19
  33. data/lib/svix/models/application_patch.rb +15 -19
  34. data/lib/svix/models/application_stats.rb +19 -19
  35. data/lib/svix/models/application_token_expire_in.rb +15 -19
  36. data/lib/svix/models/attempt_statistics_data.rb +15 -19
  37. data/lib/svix/models/attempt_statistics_response.rb +45 -19
  38. data/lib/svix/models/auth_token_out.rb +21 -19
  39. data/lib/svix/models/azure_blob_storage_config.rb +21 -19
  40. data/lib/svix/models/background_task_out.rb +45 -19
  41. data/lib/svix/models/background_task_status.rb +7 -4
  42. data/lib/svix/models/background_task_type.rb +7 -4
  43. data/lib/svix/models/big_query_config.rb +271 -0
  44. data/lib/svix/models/border_radius_config.rb +37 -19
  45. data/lib/svix/models/border_radius_enum.rb +7 -4
  46. data/lib/svix/models/client_secret_jwt_params_in.rb +41 -19
  47. data/lib/svix/models/completion_choice.rb +21 -19
  48. data/lib/svix/models/completion_message.rb +19 -19
  49. data/lib/svix/models/create_message_token_in.rb +17 -19
  50. data/lib/svix/models/create_stream_in.rb +30 -23
  51. data/lib/svix/models/custom_color_palette.rb +15 -19
  52. data/lib/svix/models/custom_strings_override.rb +15 -19
  53. data/lib/svix/models/custom_theme_override.rb +15 -19
  54. data/lib/svix/models/dashboard_access_out.rb +19 -19
  55. data/lib/svix/models/duration.rb +19 -19
  56. data/lib/svix/models/endpoint_created_event.rb +17 -19
  57. data/lib/svix/models/endpoint_created_event_data.rb +19 -19
  58. data/lib/svix/models/endpoint_deleted_event.rb +17 -19
  59. data/lib/svix/models/endpoint_deleted_event_data.rb +19 -19
  60. data/lib/svix/models/endpoint_disabled_event.rb +17 -19
  61. data/lib/svix/models/endpoint_disabled_event_data.rb +21 -19
  62. data/lib/svix/models/endpoint_headers_in.rb +17 -19
  63. data/lib/svix/models/endpoint_headers_out.rb +19 -19
  64. data/lib/svix/models/endpoint_headers_patch_in.rb +17 -19
  65. data/lib/svix/models/endpoint_in.rb +17 -19
  66. data/lib/svix/models/endpoint_message_out.rb +47 -19
  67. data/lib/svix/models/endpoint_mtls_config_in.rb +17 -19
  68. data/lib/svix/models/endpoint_oauth_config_in.rb +45 -19
  69. data/lib/svix/models/endpoint_out.rb +29 -19
  70. data/lib/svix/models/endpoint_patch.rb +20 -20
  71. data/lib/svix/models/endpoint_secret_out.rb +17 -19
  72. data/lib/svix/models/endpoint_secret_rotate_in.rb +15 -21
  73. data/lib/svix/models/endpoint_stats.rb +23 -19
  74. data/lib/svix/models/endpoint_transformation_in.rb +15 -19
  75. data/lib/svix/models/endpoint_transformation_out.rb +15 -19
  76. data/lib/svix/models/endpoint_transformation_simulate_in.rb +21 -19
  77. data/lib/svix/models/endpoint_transformation_simulate_out.rb +41 -19
  78. data/lib/svix/models/endpoint_update.rb +17 -19
  79. data/lib/svix/models/endpoint_updated_event.rb +17 -19
  80. data/lib/svix/models/endpoint_updated_event_data.rb +19 -19
  81. data/lib/svix/models/environment_in.rb +19 -19
  82. data/lib/svix/models/environment_out.rb +21 -19
  83. data/lib/svix/models/environment_settings_out.rb +15 -19
  84. data/lib/svix/models/event_example_in.rb +52 -23
  85. data/lib/svix/models/event_in.rb +55 -20
  86. data/lib/svix/models/event_out.rb +57 -20
  87. data/lib/svix/models/event_stream_out.rb +21 -19
  88. data/lib/svix/models/event_type_example_out.rb +17 -19
  89. data/lib/svix/models/event_type_from_open_api.rb +95 -20
  90. data/lib/svix/models/event_type_import_open_api_in.rb +15 -19
  91. data/lib/svix/models/event_type_import_open_api_out.rb +17 -19
  92. data/lib/svix/models/event_type_import_open_api_out_data.rb +17 -19
  93. data/lib/svix/models/event_type_in.rb +19 -19
  94. data/lib/svix/models/event_type_out.rb +25 -19
  95. data/lib/svix/models/event_type_patch.rb +15 -19
  96. data/lib/svix/models/event_type_schema_in.rb +17 -19
  97. data/lib/svix/models/event_type_update.rb +17 -19
  98. data/lib/svix/models/export_event_type_out.rb +43 -19
  99. data/lib/svix/models/font_size_config.rb +15 -19
  100. data/lib/svix/models/generate_in.rb +17 -19
  101. data/lib/svix/models/generate_out.rb +25 -19
  102. data/lib/svix/models/google_cloud_storage_config.rb +19 -19
  103. data/lib/svix/models/http_error_out.rb +19 -19
  104. data/lib/svix/models/http_validation_error.rb +17 -19
  105. data/lib/svix/models/hubspot_oauth_config_in.rb +17 -19
  106. data/lib/svix/models/inbound_path_params.rb +19 -19
  107. data/lib/svix/models/incoming_webhook_payload_out.rb +15 -19
  108. data/lib/svix/models/integration_in.rb +17 -19
  109. data/lib/svix/models/integration_key_out.rb +17 -19
  110. data/lib/svix/models/integration_out.rb +23 -19
  111. data/lib/svix/models/integration_update.rb +17 -19
  112. data/lib/svix/models/kafka_security_protocol_type.rb +7 -4
  113. data/lib/svix/models/list_response_application_out.rb +19 -19
  114. data/lib/svix/models/list_response_application_stats.rb +19 -19
  115. data/lib/svix/models/list_response_background_task_out.rb +19 -19
  116. data/lib/svix/models/list_response_endpoint_message_out.rb +19 -19
  117. data/lib/svix/models/list_response_endpoint_out.rb +19 -19
  118. data/lib/svix/models/list_response_event_type_out.rb +19 -19
  119. data/lib/svix/models/list_response_integration_out.rb +19 -19
  120. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +19 -19
  121. data/lib/svix/models/list_response_message_attempt_out.rb +19 -19
  122. data/lib/svix/models/list_response_message_endpoint_out.rb +19 -19
  123. data/lib/svix/models/list_response_message_out.rb +19 -19
  124. data/lib/svix/models/list_response_operational_webhook_endpoint_out.rb +259 -0
  125. data/lib/svix/models/list_response_sink_out.rb +19 -19
  126. data/lib/svix/models/list_response_stream_event_type_out.rb +259 -0
  127. data/lib/svix/models/list_response_stream_out.rb +19 -19
  128. data/lib/svix/models/list_response_stream_sink_out.rb +19 -19
  129. data/lib/svix/models/list_response_template_out.rb +19 -19
  130. data/lib/svix/models/message_attempt_endpoint_out.rb +57 -19
  131. data/lib/svix/models/message_attempt_exhausted_event.rb +17 -19
  132. data/lib/svix/models/message_attempt_exhausted_event_data.rb +23 -19
  133. data/lib/svix/models/message_attempt_failed_data.rb +21 -19
  134. data/lib/svix/models/message_attempt_failing_event.rb +17 -19
  135. data/lib/svix/models/message_attempt_failing_event_data.rb +23 -19
  136. data/lib/svix/models/message_attempt_headers_out.rb +19 -19
  137. data/lib/svix/models/message_attempt_out.rb +57 -19
  138. data/lib/svix/models/message_attempt_recovered_event.rb +17 -19
  139. data/lib/svix/models/message_attempt_recovered_event_data.rb +23 -19
  140. data/lib/svix/models/message_attempt_trigger_type.rb +7 -4
  141. data/lib/svix/models/message_broadcast_in.rb +19 -19
  142. data/lib/svix/models/message_broadcast_out.rb +43 -19
  143. data/lib/svix/models/message_endpoint_out.rb +51 -19
  144. data/lib/svix/models/message_events_out.rb +21 -19
  145. data/lib/svix/models/message_in.rb +19 -19
  146. data/lib/svix/models/message_out.rb +23 -19
  147. data/lib/svix/models/message_raw_payload_out.rb +17 -19
  148. data/lib/svix/models/message_status.rb +7 -4
  149. data/lib/svix/models/message_subscriber_auth_token_out.rb +19 -19
  150. data/lib/svix/models/o_auth_payload_in.rb +19 -19
  151. data/lib/svix/models/o_auth_payload_out.rb +15 -19
  152. data/lib/svix/models/oauth2_auth_method_in.rb +7 -4
  153. data/lib/svix/models/oauth2_grant_type_in.rb +7 -4
  154. data/lib/svix/models/oauth_jws_signing_algorithm.rb +7 -4
  155. data/lib/svix/models/one_time_token_in.rb +17 -19
  156. data/lib/svix/models/one_time_token_out.rb +17 -19
  157. data/lib/svix/models/operational_webhook_endpoint_in.rb +408 -0
  158. data/lib/svix/models/operational_webhook_endpoint_out.rb +442 -0
  159. data/lib/svix/models/operational_webhook_endpoint_secret_in.rb +233 -0
  160. data/lib/svix/models/operational_webhook_endpoint_secret_out.rb +243 -0
  161. data/lib/svix/models/operational_webhook_endpoint_update.rb +380 -0
  162. data/lib/svix/models/ordering.rb +7 -4
  163. data/lib/svix/models/recover_in.rb +17 -19
  164. data/lib/svix/models/recover_out.rb +43 -19
  165. data/lib/svix/models/redshift_config.rb +25 -19
  166. data/lib/svix/models/replay_in.rb +17 -19
  167. data/lib/svix/models/replay_out.rb +43 -19
  168. data/lib/svix/models/retry_schedule_in_out.rb +15 -19
  169. data/lib/svix/models/rotated_url_out.rb +17 -19
  170. data/lib/svix/models/s3_config.rb +23 -19
  171. data/lib/svix/models/settings_in.rb +15 -19
  172. data/lib/svix/models/settings_out.rb +15 -19
  173. data/lib/svix/models/sink_http_config.rb +17 -19
  174. data/lib/svix/models/sink_in.rb +4 -4
  175. data/lib/svix/models/sink_in_one_of.rb +21 -19
  176. data/lib/svix/models/sink_in_one_of1.rb +25 -19
  177. data/lib/svix/models/sink_in_one_of2.rb +23 -19
  178. data/lib/svix/models/sink_in_one_of3.rb +19 -19
  179. data/lib/svix/models/sink_otel_v1_config.rb +17 -19
  180. data/lib/svix/models/sink_out.rb +4 -4
  181. data/lib/svix/models/sink_payload_format.rb +7 -4
  182. data/lib/svix/models/sink_status.rb +7 -4
  183. data/lib/svix/models/sink_status_in.rb +7 -4
  184. data/lib/svix/models/sink_transform_in.rb +15 -19
  185. data/lib/svix/models/sink_transformation_out.rb +15 -19
  186. data/lib/svix/models/snowflake_config.rb +21 -19
  187. data/lib/svix/models/statistics_period.rb +7 -4
  188. data/lib/svix/models/status_code_class.rb +7 -4
  189. data/lib/svix/models/stream_event_type_in.rb +262 -0
  190. data/lib/svix/models/stream_event_type_out.rb +294 -0
  191. data/lib/svix/models/stream_event_type_patch.rb +254 -0
  192. data/lib/svix/models/stream_in.rb +24 -22
  193. data/lib/svix/models/stream_out.rb +28 -22
  194. data/lib/svix/models/stream_patch.rb +22 -22
  195. data/lib/svix/models/stream_sink_in.rb +6 -5
  196. data/lib/svix/models/stream_sink_in_one_of.rb +19 -19
  197. data/lib/svix/models/stream_sink_in_one_of1.rb +19 -19
  198. data/lib/svix/models/stream_sink_in_one_of2.rb +19 -19
  199. data/lib/svix/models/stream_sink_in_one_of3.rb +19 -19
  200. data/lib/svix/models/stream_sink_in_one_of4.rb +19 -19
  201. data/lib/svix/models/stream_sink_in_one_of5.rb +19 -19
  202. data/lib/svix/models/stream_sink_in_one_of6.rb +19 -19
  203. data/lib/svix/models/stream_sink_in_one_of7.rb +271 -0
  204. data/lib/svix/models/stream_sink_out.rb +6 -5
  205. data/lib/svix/models/stream_sink_patch.rb +6 -5
  206. data/lib/svix/models/template_in.rb +43 -21
  207. data/lib/svix/models/template_out.rb +57 -19
  208. data/lib/svix/models/template_patch.rb +43 -21
  209. data/lib/svix/models/template_update.rb +41 -19
  210. data/lib/svix/models/transformation_http_method.rb +7 -4
  211. data/lib/svix/models/transformation_simulate_in.rb +21 -19
  212. data/lib/svix/models/transformation_simulate_out.rb +41 -19
  213. data/lib/svix/models/transformation_template_kind.rb +7 -4
  214. data/lib/svix/models/validation_error.rb +21 -19
  215. data/lib/svix/operational_webhook_endpoint_api.rb +37 -0
  216. data/lib/svix/version.rb +1 -1
  217. data/svix.gemspec +12 -2
  218. metadata +45 -22
  219. data/lib/svix/api/sink_api.rb +0 -176
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -72,9 +72,12 @@ module Svix
72
72
  # header parameters
73
73
  header_params = opts[:header_params] || {}
74
74
  # HTTP header 'Accept' (if needed)
75
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
75
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
76
76
  # HTTP header 'Content-Type'
77
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
77
+ content_type = @api_client.select_header_content_type(['application/json'])
78
+ if !content_type.nil?
79
+ header_params['Content-Type'] = content_type
80
+ end
78
81
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
79
82
 
80
83
  # form parameters
@@ -157,7 +160,7 @@ module Svix
157
160
  # header parameters
158
161
  header_params = opts[:header_params] || {}
159
162
  # HTTP header 'Accept' (if needed)
160
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
161
164
 
162
165
  # form parameters
163
166
  form_params = opts[:form_params] || {}
@@ -239,7 +242,7 @@ module Svix
239
242
  # header parameters
240
243
  header_params = opts[:header_params] || {}
241
244
  # HTTP header 'Accept' (if needed)
242
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
243
246
 
244
247
  # form parameters
245
248
  form_params = opts[:form_params] || {}
@@ -321,7 +324,7 @@ module Svix
321
324
  # header parameters
322
325
  header_params = opts[:header_params] || {}
323
326
  # HTTP header 'Accept' (if needed)
324
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
325
328
 
326
329
  # form parameters
327
330
  form_params = opts[:form_params] || {}
@@ -414,7 +417,7 @@ module Svix
414
417
  # header parameters
415
418
  header_params = opts[:header_params] || {}
416
419
  # HTTP header 'Accept' (if needed)
417
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
420
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
418
421
 
419
422
  # form parameters
420
423
  form_params = opts[:form_params] || {}
@@ -498,7 +501,7 @@ module Svix
498
501
  # header parameters
499
502
  header_params = opts[:header_params] || {}
500
503
  # HTTP header 'Accept' (if needed)
501
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
504
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
502
505
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
503
506
 
504
507
  # form parameters
@@ -587,9 +590,12 @@ module Svix
587
590
  # header parameters
588
591
  header_params = opts[:header_params] || {}
589
592
  # HTTP header 'Accept' (if needed)
590
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
593
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
591
594
  # HTTP header 'Content-Type'
592
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
595
+ content_type = @api_client.select_header_content_type(['application/json'])
596
+ if !content_type.nil?
597
+ header_params['Content-Type'] = content_type
598
+ end
593
599
 
594
600
  # form parameters
595
601
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -91,9 +91,12 @@ module Svix
91
91
  # header parameters
92
92
  header_params = opts[:header_params] || {}
93
93
  # HTTP header 'Accept' (if needed)
94
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
94
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
95
95
  # HTTP header 'Content-Type'
96
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
96
+ content_type = @api_client.select_header_content_type(['application/json'])
97
+ if !content_type.nil?
98
+ header_params['Content-Type'] = content_type
99
+ end
97
100
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
98
101
 
99
102
  # form parameters
@@ -143,7 +146,7 @@ module Svix
143
146
  # @param app_id [String] The app's ID or UID
144
147
  # @param message_in [MessageIn]
145
148
  # @param [Hash] opts the optional parameters
146
- # @option opts [Boolean] :with_content When `true` message payloads are included in the response
149
+ # @option opts [Boolean] :with_content When `true` message payloads are included in the response (default to true)
147
150
  # @option opts [String] :idempotency_key The request's idempotency key
148
151
  # @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
149
152
  def v1_message_create_with_http_info(app_id, message_in, opts = {})
@@ -181,9 +184,12 @@ module Svix
181
184
  # header parameters
182
185
  header_params = opts[:header_params] || {}
183
186
  # HTTP header 'Accept' (if needed)
184
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
187
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
185
188
  # HTTP header 'Content-Type'
186
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
189
+ content_type = @api_client.select_header_content_type(['application/json'])
190
+ if !content_type.nil?
191
+ header_params['Content-Type'] = content_type
192
+ end
187
193
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
188
194
 
189
195
  # form parameters
@@ -283,7 +289,7 @@ module Svix
283
289
  # header parameters
284
290
  header_params = opts[:header_params] || {}
285
291
  # HTTP header 'Accept' (if needed)
286
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
292
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
287
293
 
288
294
  # form parameters
289
295
  form_params = opts[:form_params] || {}
@@ -401,7 +407,7 @@ module Svix
401
407
  # header parameters
402
408
  header_params = opts[:header_params] || {}
403
409
  # HTTP header 'Accept' (if needed)
404
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
410
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
405
411
 
406
412
  # form parameters
407
413
  form_params = opts[:form_params] || {}
@@ -498,7 +504,7 @@ module Svix
498
504
  # header parameters
499
505
  header_params = opts[:header_params] || {}
500
506
  # HTTP header 'Accept' (if needed)
501
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
507
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
502
508
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
503
509
 
504
510
  # form parameters
@@ -594,7 +600,7 @@ module Svix
594
600
  # header parameters
595
601
  header_params = opts[:header_params] || {}
596
602
  # HTTP header 'Accept' (if needed)
597
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
603
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
598
604
 
599
605
  # form parameters
600
606
  form_params = opts[:form_params] || {}
@@ -642,7 +648,7 @@ module Svix
642
648
  # @param app_id [String] The app&#39;s ID or UID
643
649
  # @param msg_id [String] The msg&#39;s ID or UID
644
650
  # @param [Hash] opts the optional parameters
645
- # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
651
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
646
652
  # @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
647
653
  def v1_message_get_with_http_info(app_id, msg_id, opts = {})
648
654
  if @api_client.config.debugging
@@ -692,7 +698,7 @@ module Svix
692
698
  # header parameters
693
699
  header_params = opts[:header_params] || {}
694
700
  # HTTP header 'Accept' (if needed)
695
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
701
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
696
702
 
697
703
  # form parameters
698
704
  form_params = opts[:form_params] || {}
@@ -787,7 +793,7 @@ module Svix
787
793
  # header parameters
788
794
  header_params = opts[:header_params] || {}
789
795
  # HTTP header 'Accept' (if needed)
790
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
796
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
791
797
 
792
798
  # form parameters
793
799
  form_params = opts[:form_params] || {}
@@ -845,7 +851,7 @@ module Svix
845
851
  # @option opts [String] :channel Filter response based on the channel
846
852
  # @option opts [Time] :before Only include items created before a certain date
847
853
  # @option opts [Time] :after Only include items created after a certain date
848
- # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
854
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
849
855
  # @option opts [String] :tag Filter messages matching the provided tag
850
856
  # @option opts [Array<String>] :event_types Filter response based on the event type
851
857
  # @return [Array<(ListResponseMessageOut, Integer, Hash)>] ListResponseMessageOut data, response status code and response headers
@@ -913,7 +919,7 @@ module Svix
913
919
  # header parameters
914
920
  header_params = opts[:header_params] || {}
915
921
  # HTTP header 'Accept' (if needed)
916
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
922
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
917
923
 
918
924
  # form parameters
919
925
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -89,7 +89,7 @@ module Svix
89
89
  # header parameters
90
90
  header_params = opts[:header_params] || {}
91
91
  # HTTP header 'Accept' (if needed)
92
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
92
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
93
93
 
94
94
  # form parameters
95
95
  form_params = opts[:form_params] || {}
@@ -190,7 +190,7 @@ module Svix
190
190
  # header parameters
191
191
  header_params = opts[:header_params] || {}
192
192
  # HTTP header 'Accept' (if needed)
193
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
194
194
 
195
195
  # form parameters
196
196
  form_params = opts[:form_params] || {}
@@ -291,7 +291,7 @@ module Svix
291
291
  # header parameters
292
292
  header_params = opts[:header_params] || {}
293
293
  # HTTP header 'Accept' (if needed)
294
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
294
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
295
295
 
296
296
  # form parameters
297
297
  form_params = opts[:form_params] || {}
@@ -400,7 +400,7 @@ module Svix
400
400
  # header parameters
401
401
  header_params = opts[:header_params] || {}
402
402
  # HTTP header 'Accept' (if needed)
403
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
403
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
404
404
 
405
405
  # form parameters
406
406
  form_params = opts[:form_params] || {}
@@ -440,7 +440,7 @@ module Svix
440
440
  # @option opts [String] :iterator The iterator returned from a prior invocation
441
441
  # @option opts [String] :channel Filter response based on the channel
442
442
  # @option opts [String] :tag Filter response based on the message tags
443
- # @option opts [MessageStatus] :status Filter response based on the delivery status
443
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
444
444
  # @option opts [Time] :before Only include items created before a certain date
445
445
  # @option opts [Time] :after Only include items created after a certain date
446
446
  # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
@@ -460,10 +460,10 @@ module Svix
460
460
  # @option opts [String] :iterator The iterator returned from a prior invocation
461
461
  # @option opts [String] :channel Filter response based on the channel
462
462
  # @option opts [String] :tag Filter response based on the message tags
463
- # @option opts [MessageStatus] :status Filter response based on the delivery status
463
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
464
464
  # @option opts [Time] :before Only include items created before a certain date
465
465
  # @option opts [Time] :after Only include items created after a certain date
466
- # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
466
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
467
467
  # @option opts [Array<String>] :event_types Filter response based on the event type
468
468
  # @return [Array<(ListResponseEndpointMessageOut, Integer, Hash)>] ListResponseEndpointMessageOut data, response status code and response headers
469
469
  def v1_message_attempt_list_attempted_messages_with_http_info(app_id, endpoint_id, opts = {})
@@ -548,7 +548,7 @@ module Svix
548
548
  # header parameters
549
549
  header_params = opts[:header_params] || {}
550
550
  # HTTP header 'Accept' (if needed)
551
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
551
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
552
552
 
553
553
  # form parameters
554
554
  form_params = opts[:form_params] || {}
@@ -586,7 +586,7 @@ module Svix
586
586
  # @param [Hash] opts the optional parameters
587
587
  # @option opts [Integer] :limit Limit the number of returned items
588
588
  # @option opts [String] :iterator The iterator returned from a prior invocation
589
- # @option opts [MessageStatus] :status Filter response based on the delivery status
589
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
590
590
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
591
591
  # @option opts [String] :channel Filter response based on the channel
592
592
  # @option opts [String] :tag Filter response based on the tag
@@ -608,14 +608,14 @@ module Svix
608
608
  # @param [Hash] opts the optional parameters
609
609
  # @option opts [Integer] :limit Limit the number of returned items
610
610
  # @option opts [String] :iterator The iterator returned from a prior invocation
611
- # @option opts [MessageStatus] :status Filter response based on the delivery status
611
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
612
612
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
613
613
  # @option opts [String] :channel Filter response based on the channel
614
614
  # @option opts [String] :tag Filter response based on the tag
615
615
  # @option opts [Time] :before Only include items created before a certain date
616
616
  # @option opts [Time] :after Only include items created after a certain date
617
- # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response
618
- # @option opts [Boolean] :with_msg When &#x60;true&#x60;, the message information is included in the response
617
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response (default to true)
618
+ # @option opts [Boolean] :with_msg When &#x60;true&#x60;, the message information is included in the response (default to false)
619
619
  # @option opts [Array<String>] :event_types Filter response based on the event type
620
620
  # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
621
621
  def v1_message_attempt_list_by_endpoint_with_http_info(app_id, endpoint_id, opts = {})
@@ -702,7 +702,7 @@ module Svix
702
702
  # header parameters
703
703
  header_params = opts[:header_params] || {}
704
704
  # HTTP header 'Accept' (if needed)
705
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
705
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
706
706
 
707
707
  # form parameters
708
708
  form_params = opts[:form_params] || {}
@@ -743,7 +743,7 @@ module Svix
743
743
  # @option opts [String] :iterator The iterator returned from a prior invocation
744
744
  # @option opts [String] :channel Filter response based on the channel
745
745
  # @option opts [String] :tag Filter response based on the tag
746
- # @option opts [MessageStatus] :status Filter response based on the delivery status
746
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
747
747
  # @option opts [Time] :before Only include items created before a certain date
748
748
  # @option opts [Time] :after Only include items created after a certain date
749
749
  # @option opts [Array<String>] :event_types Filter response based on the event type
@@ -763,7 +763,7 @@ module Svix
763
763
  # @option opts [String] :iterator The iterator returned from a prior invocation
764
764
  # @option opts [String] :channel Filter response based on the channel
765
765
  # @option opts [String] :tag Filter response based on the tag
766
- # @option opts [MessageStatus] :status Filter response based on the delivery status
766
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
767
767
  # @option opts [Time] :before Only include items created before a certain date
768
768
  # @option opts [Time] :after Only include items created after a certain date
769
769
  # @option opts [Array<String>] :event_types Filter response based on the event type
@@ -866,7 +866,7 @@ module Svix
866
866
  # header parameters
867
867
  header_params = opts[:header_params] || {}
868
868
  # HTTP header 'Accept' (if needed)
869
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
869
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
870
870
 
871
871
  # form parameters
872
872
  form_params = opts[:form_params] || {}
@@ -904,7 +904,7 @@ module Svix
904
904
  # @param [Hash] opts the optional parameters
905
905
  # @option opts [Integer] :limit Limit the number of returned items
906
906
  # @option opts [String] :iterator The iterator returned from a prior invocation
907
- # @option opts [MessageStatus] :status Filter response based on the delivery status
907
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
908
908
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
909
909
  # @option opts [String] :channel Filter response based on the channel
910
910
  # @option opts [String] :tag Filter response based on the tag
@@ -926,14 +926,14 @@ module Svix
926
926
  # @param [Hash] opts the optional parameters
927
927
  # @option opts [Integer] :limit Limit the number of returned items
928
928
  # @option opts [String] :iterator The iterator returned from a prior invocation
929
- # @option opts [MessageStatus] :status Filter response based on the delivery status
929
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
930
930
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
931
931
  # @option opts [String] :channel Filter response based on the channel
932
932
  # @option opts [String] :tag Filter response based on the tag
933
933
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
934
934
  # @option opts [Time] :before Only include items created before a certain date
935
935
  # @option opts [Time] :after Only include items created after a certain date
936
- # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response
936
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response (default to true)
937
937
  # @option opts [Array<String>] :event_types Filter response based on the event type
938
938
  # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
939
939
  def v1_message_attempt_list_by_msg_with_http_info(app_id, msg_id, opts = {})
@@ -1033,7 +1033,7 @@ module Svix
1033
1033
  # header parameters
1034
1034
  header_params = opts[:header_params] || {}
1035
1035
  # HTTP header 'Accept' (if needed)
1036
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1036
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1037
1037
 
1038
1038
  # form parameters
1039
1039
  form_params = opts[:form_params] || {}
@@ -1074,7 +1074,7 @@ module Svix
1074
1074
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1075
1075
  # @option opts [String] :channel Filter response based on the channel
1076
1076
  # @option opts [String] :tag Filter response based on the tag
1077
- # @option opts [MessageStatus] :status Filter response based on the delivery status
1077
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
1078
1078
  # @option opts [Time] :before Only include items created before a certain date
1079
1079
  # @option opts [Time] :after Only include items created after a certain date
1080
1080
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
@@ -1095,7 +1095,7 @@ module Svix
1095
1095
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1096
1096
  # @option opts [String] :channel Filter response based on the channel
1097
1097
  # @option opts [String] :tag Filter response based on the tag
1098
- # @option opts [MessageStatus] :status Filter response based on the delivery status
1098
+ # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
1099
1099
  # @option opts [Time] :before Only include items created before a certain date
1100
1100
  # @option opts [Time] :after Only include items created after a certain date
1101
1101
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
@@ -1197,7 +1197,7 @@ module Svix
1197
1197
  # header parameters
1198
1198
  header_params = opts[:header_params] || {}
1199
1199
  # HTTP header 'Accept' (if needed)
1200
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1201
1201
 
1202
1202
  # form parameters
1203
1203
  form_params = opts[:form_params] || {}
@@ -1313,7 +1313,7 @@ module Svix
1313
1313
  # header parameters
1314
1314
  header_params = opts[:header_params] || {}
1315
1315
  # HTTP header 'Accept' (if needed)
1316
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1316
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1317
1317
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
1318
1318
 
1319
1319
  # form parameters
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -53,9 +53,12 @@ module Svix
53
53
  # header parameters
54
54
  header_params = opts[:header_params] || {}
55
55
  # HTTP header 'Accept' (if needed)
56
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
57
  # HTTP header 'Content-Type'
58
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
58
+ content_type = @api_client.select_header_content_type(['application/json'])
59
+ if !content_type.nil?
60
+ header_params['Content-Type'] = content_type
61
+ end
59
62
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
60
63
 
61
64
  # form parameters
@@ -113,7 +116,7 @@ module Svix
113
116
  # header parameters
114
117
  header_params = opts[:header_params] || {}
115
118
  # HTTP header 'Accept' (if needed)
116
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
117
120
 
118
121
  # form parameters
119
122
  form_params = opts[:form_params] || {}
@@ -195,7 +198,7 @@ module Svix
195
198
  # header parameters
196
199
  header_params = opts[:header_params] || {}
197
200
  # HTTP header 'Accept' (if needed)
198
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
201
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
199
202
 
200
203
  # form parameters
201
204
  form_params = opts[:form_params] || {}
@@ -296,7 +299,7 @@ module Svix
296
299
  # header parameters
297
300
  header_params = opts[:header_params] || {}
298
301
  # HTTP header 'Accept' (if needed)
299
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
302
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
300
303
 
301
304
  # form parameters
302
305
  form_params = opts[:form_params] || {}