svix 1.38.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +8 -1
- data/lib/svix/api/application_api.rb +23 -14
- data/lib/svix/api/authentication_api.rb +23 -11
- data/lib/svix/api/background_tasks_api.rb +3 -3
- data/lib/svix/api/broadcast_api.rb +6 -3
- data/lib/svix/api/endpoint_api.rb +86 -44
- data/lib/svix/api/environment_api.rb +8 -5
- data/lib/svix/api/environment_settings_api.rb +2 -2
- data/lib/svix/api/event_type_api.rb +39 -21
- data/lib/svix/api/events_api.rb +2 -2
- data/lib/svix/api/health_api.rb +2 -2
- data/lib/svix/api/inbound_api.rb +7 -4
- data/lib/svix/api/integration_api.rb +16 -10
- data/lib/svix/api/message_api.rb +21 -15
- data/lib/svix/api/message_attempt_api.rb +25 -25
- data/lib/svix/api/statistics_api.rb +9 -6
- data/lib/svix/api/stream_api.rb +176 -10
- data/lib/svix/api/stream_event_types_api.rb +486 -0
- data/lib/svix/api/transformation_template_api.rb +49 -22
- data/lib/svix/api/webhook_endpoint_api.rb +572 -0
- data/lib/svix/api_client.rb +45 -28
- data/lib/svix/api_error.rb +2 -1
- data/lib/svix/configuration.rb +42 -12
- data/lib/svix/models/aggregate_event_types_out.rb +43 -19
- data/lib/svix/models/app_portal_access_in.rb +19 -19
- data/lib/svix/models/app_portal_access_out.rb +19 -19
- data/lib/svix/models/app_usage_stats_in.rb +19 -19
- data/lib/svix/models/app_usage_stats_out.rb +43 -19
- data/lib/svix/models/application_in.rb +17 -19
- data/lib/svix/models/application_out.rb +25 -19
- data/lib/svix/models/application_patch.rb +15 -19
- data/lib/svix/models/application_stats.rb +19 -19
- data/lib/svix/models/application_token_expire_in.rb +15 -19
- data/lib/svix/models/attempt_statistics_data.rb +15 -19
- data/lib/svix/models/attempt_statistics_response.rb +45 -19
- data/lib/svix/models/auth_token_out.rb +21 -19
- data/lib/svix/models/azure_blob_storage_config.rb +21 -19
- data/lib/svix/models/background_task_out.rb +45 -19
- data/lib/svix/models/background_task_status.rb +7 -4
- data/lib/svix/models/background_task_type.rb +7 -4
- data/lib/svix/models/big_query_config.rb +271 -0
- data/lib/svix/models/border_radius_config.rb +37 -19
- data/lib/svix/models/border_radius_enum.rb +7 -4
- data/lib/svix/models/client_secret_jwt_params_in.rb +41 -19
- data/lib/svix/models/completion_choice.rb +21 -19
- data/lib/svix/models/completion_message.rb +19 -19
- data/lib/svix/models/create_message_token_in.rb +17 -19
- data/lib/svix/models/create_stream_in.rb +30 -23
- data/lib/svix/models/custom_color_palette.rb +15 -19
- data/lib/svix/models/custom_strings_override.rb +15 -19
- data/lib/svix/models/custom_theme_override.rb +15 -19
- data/lib/svix/models/dashboard_access_out.rb +19 -19
- data/lib/svix/models/duration.rb +19 -19
- data/lib/svix/models/endpoint_created_event.rb +17 -19
- data/lib/svix/models/endpoint_created_event_data.rb +19 -19
- data/lib/svix/models/endpoint_deleted_event.rb +17 -19
- data/lib/svix/models/endpoint_deleted_event_data.rb +19 -19
- data/lib/svix/models/endpoint_disabled_event.rb +17 -19
- data/lib/svix/models/endpoint_disabled_event_data.rb +21 -19
- data/lib/svix/models/endpoint_headers_in.rb +17 -19
- data/lib/svix/models/endpoint_headers_out.rb +19 -19
- data/lib/svix/models/endpoint_headers_patch_in.rb +17 -19
- data/lib/svix/models/endpoint_in.rb +17 -19
- data/lib/svix/models/endpoint_message_out.rb +47 -19
- data/lib/svix/models/endpoint_mtls_config_in.rb +17 -19
- data/lib/svix/models/endpoint_oauth_config_in.rb +45 -19
- data/lib/svix/models/endpoint_out.rb +29 -19
- data/lib/svix/models/endpoint_patch.rb +20 -20
- data/lib/svix/models/endpoint_secret_out.rb +17 -19
- data/lib/svix/models/endpoint_secret_rotate_in.rb +15 -21
- data/lib/svix/models/endpoint_stats.rb +23 -19
- data/lib/svix/models/endpoint_transformation_in.rb +15 -19
- data/lib/svix/models/endpoint_transformation_out.rb +15 -19
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +21 -19
- data/lib/svix/models/endpoint_transformation_simulate_out.rb +41 -19
- data/lib/svix/models/endpoint_update.rb +17 -19
- data/lib/svix/models/endpoint_updated_event.rb +17 -19
- data/lib/svix/models/endpoint_updated_event_data.rb +19 -19
- data/lib/svix/models/environment_in.rb +19 -19
- data/lib/svix/models/environment_out.rb +21 -19
- data/lib/svix/models/environment_settings_out.rb +15 -19
- data/lib/svix/models/event_example_in.rb +52 -23
- data/lib/svix/models/event_in.rb +55 -20
- data/lib/svix/models/event_out.rb +57 -20
- data/lib/svix/models/event_stream_out.rb +21 -19
- data/lib/svix/models/event_type_example_out.rb +17 -19
- data/lib/svix/models/event_type_from_open_api.rb +95 -20
- data/lib/svix/models/event_type_import_open_api_in.rb +15 -19
- data/lib/svix/models/event_type_import_open_api_out.rb +17 -19
- data/lib/svix/models/event_type_import_open_api_out_data.rb +17 -19
- data/lib/svix/models/event_type_in.rb +19 -19
- data/lib/svix/models/event_type_out.rb +25 -19
- data/lib/svix/models/event_type_patch.rb +15 -19
- data/lib/svix/models/event_type_schema_in.rb +17 -19
- data/lib/svix/models/event_type_update.rb +17 -19
- data/lib/svix/models/export_event_type_out.rb +43 -19
- data/lib/svix/models/font_size_config.rb +15 -19
- data/lib/svix/models/generate_in.rb +17 -19
- data/lib/svix/models/generate_out.rb +25 -19
- data/lib/svix/models/google_cloud_storage_config.rb +19 -19
- data/lib/svix/models/http_error_out.rb +19 -19
- data/lib/svix/models/http_validation_error.rb +17 -19
- data/lib/svix/models/hubspot_oauth_config_in.rb +17 -19
- data/lib/svix/models/inbound_path_params.rb +19 -19
- data/lib/svix/models/incoming_webhook_payload_out.rb +15 -19
- data/lib/svix/models/integration_in.rb +17 -19
- data/lib/svix/models/integration_key_out.rb +17 -19
- data/lib/svix/models/integration_out.rb +23 -19
- data/lib/svix/models/integration_update.rb +17 -19
- data/lib/svix/models/kafka_security_protocol_type.rb +7 -4
- data/lib/svix/models/list_response_application_out.rb +19 -19
- data/lib/svix/models/list_response_application_stats.rb +19 -19
- data/lib/svix/models/list_response_background_task_out.rb +19 -19
- data/lib/svix/models/list_response_endpoint_message_out.rb +19 -19
- data/lib/svix/models/list_response_endpoint_out.rb +19 -19
- data/lib/svix/models/list_response_event_type_out.rb +19 -19
- data/lib/svix/models/list_response_integration_out.rb +19 -19
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +19 -19
- data/lib/svix/models/list_response_message_attempt_out.rb +19 -19
- data/lib/svix/models/list_response_message_endpoint_out.rb +19 -19
- data/lib/svix/models/list_response_message_out.rb +19 -19
- data/lib/svix/models/list_response_operational_webhook_endpoint_out.rb +259 -0
- data/lib/svix/models/list_response_sink_out.rb +19 -19
- data/lib/svix/models/list_response_stream_event_type_out.rb +259 -0
- data/lib/svix/models/list_response_stream_out.rb +19 -19
- data/lib/svix/models/list_response_stream_sink_out.rb +19 -19
- data/lib/svix/models/list_response_template_out.rb +19 -19
- data/lib/svix/models/message_attempt_endpoint_out.rb +57 -19
- data/lib/svix/models/message_attempt_exhausted_event.rb +17 -19
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +23 -19
- data/lib/svix/models/message_attempt_failed_data.rb +21 -19
- data/lib/svix/models/message_attempt_failing_event.rb +17 -19
- data/lib/svix/models/message_attempt_failing_event_data.rb +23 -19
- data/lib/svix/models/message_attempt_headers_out.rb +19 -19
- data/lib/svix/models/message_attempt_out.rb +57 -19
- data/lib/svix/models/message_attempt_recovered_event.rb +17 -19
- data/lib/svix/models/message_attempt_recovered_event_data.rb +23 -19
- data/lib/svix/models/message_attempt_trigger_type.rb +7 -4
- data/lib/svix/models/message_broadcast_in.rb +19 -19
- data/lib/svix/models/message_broadcast_out.rb +43 -19
- data/lib/svix/models/message_endpoint_out.rb +51 -19
- data/lib/svix/models/message_events_out.rb +21 -19
- data/lib/svix/models/message_in.rb +19 -19
- data/lib/svix/models/message_out.rb +23 -19
- data/lib/svix/models/message_raw_payload_out.rb +17 -19
- data/lib/svix/models/message_status.rb +7 -4
- data/lib/svix/models/message_subscriber_auth_token_out.rb +19 -19
- data/lib/svix/models/o_auth_payload_in.rb +19 -19
- data/lib/svix/models/o_auth_payload_out.rb +15 -19
- data/lib/svix/models/oauth2_auth_method_in.rb +7 -4
- data/lib/svix/models/oauth2_grant_type_in.rb +7 -4
- data/lib/svix/models/oauth_jws_signing_algorithm.rb +7 -4
- data/lib/svix/models/one_time_token_in.rb +17 -19
- data/lib/svix/models/one_time_token_out.rb +17 -19
- data/lib/svix/models/operational_webhook_endpoint_in.rb +408 -0
- data/lib/svix/models/operational_webhook_endpoint_out.rb +442 -0
- data/lib/svix/models/operational_webhook_endpoint_secret_in.rb +233 -0
- data/lib/svix/models/operational_webhook_endpoint_secret_out.rb +243 -0
- data/lib/svix/models/operational_webhook_endpoint_update.rb +380 -0
- data/lib/svix/models/ordering.rb +7 -4
- data/lib/svix/models/recover_in.rb +17 -19
- data/lib/svix/models/recover_out.rb +43 -19
- data/lib/svix/models/redshift_config.rb +25 -19
- data/lib/svix/models/replay_in.rb +17 -19
- data/lib/svix/models/replay_out.rb +43 -19
- data/lib/svix/models/retry_schedule_in_out.rb +15 -19
- data/lib/svix/models/rotated_url_out.rb +17 -19
- data/lib/svix/models/s3_config.rb +23 -19
- data/lib/svix/models/settings_in.rb +15 -19
- data/lib/svix/models/settings_out.rb +15 -19
- data/lib/svix/models/sink_http_config.rb +17 -19
- data/lib/svix/models/sink_in.rb +4 -4
- data/lib/svix/models/sink_in_one_of.rb +21 -19
- data/lib/svix/models/sink_in_one_of1.rb +25 -19
- data/lib/svix/models/sink_in_one_of2.rb +23 -19
- data/lib/svix/models/sink_in_one_of3.rb +19 -19
- data/lib/svix/models/sink_otel_v1_config.rb +17 -19
- data/lib/svix/models/sink_out.rb +4 -4
- data/lib/svix/models/sink_payload_format.rb +7 -4
- data/lib/svix/models/sink_status.rb +7 -4
- data/lib/svix/models/sink_status_in.rb +7 -4
- data/lib/svix/models/sink_transform_in.rb +15 -19
- data/lib/svix/models/sink_transformation_out.rb +15 -19
- data/lib/svix/models/snowflake_config.rb +21 -19
- data/lib/svix/models/statistics_period.rb +7 -4
- data/lib/svix/models/status_code_class.rb +7 -4
- data/lib/svix/models/stream_event_type_in.rb +262 -0
- data/lib/svix/models/stream_event_type_out.rb +294 -0
- data/lib/svix/models/stream_event_type_patch.rb +254 -0
- data/lib/svix/models/stream_in.rb +24 -22
- data/lib/svix/models/stream_out.rb +28 -22
- data/lib/svix/models/stream_patch.rb +22 -22
- data/lib/svix/models/stream_sink_in.rb +6 -5
- data/lib/svix/models/stream_sink_in_one_of.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of1.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of2.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of3.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of4.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of5.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of6.rb +19 -19
- data/lib/svix/models/stream_sink_in_one_of7.rb +271 -0
- data/lib/svix/models/stream_sink_out.rb +6 -5
- data/lib/svix/models/stream_sink_patch.rb +6 -5
- data/lib/svix/models/template_in.rb +43 -21
- data/lib/svix/models/template_out.rb +57 -19
- data/lib/svix/models/template_patch.rb +43 -21
- data/lib/svix/models/template_update.rb +41 -19
- data/lib/svix/models/transformation_http_method.rb +7 -4
- data/lib/svix/models/transformation_simulate_in.rb +21 -19
- data/lib/svix/models/transformation_simulate_out.rb +41 -19
- data/lib/svix/models/transformation_template_kind.rb +7 -4
- data/lib/svix/models/validation_error.rb +21 -19
- data/lib/svix/operational_webhook_endpoint_api.rb +37 -0
- data/lib/svix/version.rb +1 -1
- data/svix.gemspec +12 -2
- metadata +45 -22
- 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
|
-
|
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
|
-
|
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
|
@@ -170,7 +173,7 @@ module Svix
|
|
170
173
|
# header parameters
|
171
174
|
header_params = opts[:header_params] || {}
|
172
175
|
# HTTP header 'Accept' (if needed)
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
174
177
|
|
175
178
|
# form parameters
|
176
179
|
form_params = opts[:form_params] || {}
|
@@ -265,7 +268,7 @@ module Svix
|
|
265
268
|
# header parameters
|
266
269
|
header_params = opts[:header_params] || {}
|
267
270
|
# HTTP header 'Accept' (if needed)
|
268
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
269
272
|
|
270
273
|
# form parameters
|
271
274
|
form_params = opts[:form_params] || {}
|
@@ -360,7 +363,7 @@ module Svix
|
|
360
363
|
# header parameters
|
361
364
|
header_params = opts[:header_params] || {}
|
362
365
|
# HTTP header 'Accept' (if needed)
|
363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
366
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
364
367
|
|
365
368
|
# form parameters
|
366
369
|
form_params = opts[:form_params] || {}
|
@@ -455,7 +458,7 @@ module Svix
|
|
455
458
|
# header parameters
|
456
459
|
header_params = opts[:header_params] || {}
|
457
460
|
# HTTP header 'Accept' (if needed)
|
458
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
461
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
459
462
|
|
460
463
|
# form parameters
|
461
464
|
form_params = opts[:form_params] || {}
|
@@ -550,7 +553,7 @@ module Svix
|
|
550
553
|
# header parameters
|
551
554
|
header_params = opts[:header_params] || {}
|
552
555
|
# HTTP header 'Accept' (if needed)
|
553
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
556
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
554
557
|
|
555
558
|
# form parameters
|
556
559
|
form_params = opts[:form_params] || {}
|
@@ -645,7 +648,7 @@ module Svix
|
|
645
648
|
# header parameters
|
646
649
|
header_params = opts[:header_params] || {}
|
647
650
|
# HTTP header 'Accept' (if needed)
|
648
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
651
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
649
652
|
|
650
653
|
# form parameters
|
651
654
|
form_params = opts[:form_params] || {}
|
@@ -746,7 +749,7 @@ module Svix
|
|
746
749
|
# header parameters
|
747
750
|
header_params = opts[:header_params] || {}
|
748
751
|
# HTTP header 'Accept' (if needed)
|
749
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
752
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
750
753
|
|
751
754
|
# form parameters
|
752
755
|
form_params = opts[:form_params] || {}
|
@@ -839,7 +842,7 @@ module Svix
|
|
839
842
|
# header parameters
|
840
843
|
header_params = opts[:header_params] || {}
|
841
844
|
# HTTP header 'Accept' (if needed)
|
842
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
845
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
843
846
|
|
844
847
|
# form parameters
|
845
848
|
form_params = opts[:form_params] || {}
|
@@ -940,9 +943,12 @@ module Svix
|
|
940
943
|
# header parameters
|
941
944
|
header_params = opts[:header_params] || {}
|
942
945
|
# HTTP header 'Accept' (if needed)
|
943
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
946
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
944
947
|
# HTTP header 'Content-Type'
|
945
|
-
|
948
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
949
|
+
if !content_type.nil?
|
950
|
+
header_params['Content-Type'] = content_type
|
951
|
+
end
|
946
952
|
|
947
953
|
# form parameters
|
948
954
|
form_params = opts[:form_params] || {}
|
@@ -1043,9 +1049,12 @@ module Svix
|
|
1043
1049
|
# header parameters
|
1044
1050
|
header_params = opts[:header_params] || {}
|
1045
1051
|
# HTTP header 'Accept' (if needed)
|
1046
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1052
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1047
1053
|
# HTTP header 'Content-Type'
|
1048
|
-
|
1054
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1055
|
+
if !content_type.nil?
|
1056
|
+
header_params['Content-Type'] = content_type
|
1057
|
+
end
|
1049
1058
|
|
1050
1059
|
# form parameters
|
1051
1060
|
form_params = opts[:form_params] || {}
|
@@ -1077,7 +1086,7 @@ module Svix
|
|
1077
1086
|
end
|
1078
1087
|
|
1079
1088
|
# Recover Failed Webhooks
|
1080
|
-
# Resend all failed messages since a given time.
|
1089
|
+
# Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
|
1081
1090
|
# @param app_id [String] The app's ID or UID
|
1082
1091
|
# @param endpoint_id [String] The ep's ID or UID
|
1083
1092
|
# @param recover_in [RecoverIn]
|
@@ -1090,7 +1099,7 @@ module Svix
|
|
1090
1099
|
end
|
1091
1100
|
|
1092
1101
|
# Recover Failed Webhooks
|
1093
|
-
# Resend all failed messages since a given time.
|
1102
|
+
# Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
|
1094
1103
|
# @param app_id [String] The app's ID or UID
|
1095
1104
|
# @param endpoint_id [String] The ep's ID or UID
|
1096
1105
|
# @param recover_in [RecoverIn]
|
@@ -1148,9 +1157,12 @@ module Svix
|
|
1148
1157
|
# header parameters
|
1149
1158
|
header_params = opts[:header_params] || {}
|
1150
1159
|
# HTTP header 'Accept' (if needed)
|
1151
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1152
1161
|
# HTTP header 'Content-Type'
|
1153
|
-
|
1162
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1163
|
+
if !content_type.nil?
|
1164
|
+
header_params['Content-Type'] = content_type
|
1165
|
+
end
|
1154
1166
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1155
1167
|
|
1156
1168
|
# form parameters
|
@@ -1254,9 +1266,12 @@ module Svix
|
|
1254
1266
|
# header parameters
|
1255
1267
|
header_params = opts[:header_params] || {}
|
1256
1268
|
# HTTP header 'Accept' (if needed)
|
1257
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1269
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1258
1270
|
# HTTP header 'Content-Type'
|
1259
|
-
|
1271
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1272
|
+
if !content_type.nil?
|
1273
|
+
header_params['Content-Type'] = content_type
|
1274
|
+
end
|
1260
1275
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1261
1276
|
|
1262
1277
|
# form parameters
|
@@ -1289,7 +1304,7 @@ module Svix
|
|
1289
1304
|
end
|
1290
1305
|
|
1291
1306
|
# Rotate Endpoint Secret
|
1292
|
-
# Rotates the endpoint's signing secret. The previous secret will
|
1307
|
+
# Rotates the endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
1293
1308
|
# @param app_id [String] The app's ID or UID
|
1294
1309
|
# @param endpoint_id [String] The ep's ID or UID
|
1295
1310
|
# @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
|
@@ -1302,7 +1317,7 @@ module Svix
|
|
1302
1317
|
end
|
1303
1318
|
|
1304
1319
|
# Rotate Endpoint Secret
|
1305
|
-
# Rotates the endpoint's signing secret. The previous secret will
|
1320
|
+
# Rotates the endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
1306
1321
|
# @param app_id [String] The app's ID or UID
|
1307
1322
|
# @param endpoint_id [String] The ep's ID or UID
|
1308
1323
|
# @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
|
@@ -1360,9 +1375,12 @@ module Svix
|
|
1360
1375
|
# header parameters
|
1361
1376
|
header_params = opts[:header_params] || {}
|
1362
1377
|
# HTTP header 'Accept' (if needed)
|
1363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1364
1379
|
# HTTP header 'Content-Type'
|
1365
|
-
|
1380
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1381
|
+
if !content_type.nil?
|
1382
|
+
header_params['Content-Type'] = content_type
|
1383
|
+
end
|
1366
1384
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1367
1385
|
|
1368
1386
|
# form parameters
|
@@ -1466,9 +1484,12 @@ module Svix
|
|
1466
1484
|
# header parameters
|
1467
1485
|
header_params = opts[:header_params] || {}
|
1468
1486
|
# HTTP header 'Accept' (if needed)
|
1469
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1487
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1470
1488
|
# HTTP header 'Content-Type'
|
1471
|
-
|
1489
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1490
|
+
if !content_type.nil?
|
1491
|
+
header_params['Content-Type'] = content_type
|
1492
|
+
end
|
1472
1493
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1473
1494
|
|
1474
1495
|
# form parameters
|
@@ -1564,7 +1585,7 @@ module Svix
|
|
1564
1585
|
# header parameters
|
1565
1586
|
header_params = opts[:header_params] || {}
|
1566
1587
|
# HTTP header 'Accept' (if needed)
|
1567
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1568
1589
|
|
1569
1590
|
# form parameters
|
1570
1591
|
form_params = opts[:form_params] || {}
|
@@ -1665,9 +1686,12 @@ module Svix
|
|
1665
1686
|
# header parameters
|
1666
1687
|
header_params = opts[:header_params] || {}
|
1667
1688
|
# HTTP header 'Accept' (if needed)
|
1668
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1689
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1669
1690
|
# HTTP header 'Content-Type'
|
1670
|
-
|
1691
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1692
|
+
if !content_type.nil?
|
1693
|
+
header_params['Content-Type'] = content_type
|
1694
|
+
end
|
1671
1695
|
|
1672
1696
|
# form parameters
|
1673
1697
|
form_params = opts[:form_params] || {}
|
@@ -1770,9 +1794,12 @@ module Svix
|
|
1770
1794
|
# header parameters
|
1771
1795
|
header_params = opts[:header_params] || {}
|
1772
1796
|
# HTTP header 'Accept' (if needed)
|
1773
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1797
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1774
1798
|
# HTTP header 'Content-Type'
|
1775
|
-
|
1799
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1800
|
+
if !content_type.nil?
|
1801
|
+
header_params['Content-Type'] = content_type
|
1802
|
+
end
|
1776
1803
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1777
1804
|
|
1778
1805
|
# form parameters
|
@@ -1874,9 +1901,12 @@ module Svix
|
|
1874
1901
|
# header parameters
|
1875
1902
|
header_params = opts[:header_params] || {}
|
1876
1903
|
# HTTP header 'Accept' (if needed)
|
1877
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1904
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1878
1905
|
# HTTP header 'Content-Type'
|
1879
|
-
|
1906
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1907
|
+
if !content_type.nil?
|
1908
|
+
header_params['Content-Type'] = content_type
|
1909
|
+
end
|
1880
1910
|
|
1881
1911
|
# form parameters
|
1882
1912
|
form_params = opts[:form_params] || {}
|
@@ -1977,9 +2007,12 @@ module Svix
|
|
1977
2007
|
# header parameters
|
1978
2008
|
header_params = opts[:header_params] || {}
|
1979
2009
|
# HTTP header 'Accept' (if needed)
|
1980
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2010
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1981
2011
|
# HTTP header 'Content-Type'
|
1982
|
-
|
2012
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2013
|
+
if !content_type.nil?
|
2014
|
+
header_params['Content-Type'] = content_type
|
2015
|
+
end
|
1983
2016
|
|
1984
2017
|
# form parameters
|
1985
2018
|
form_params = opts[:form_params] || {}
|
@@ -2080,9 +2113,12 @@ module Svix
|
|
2080
2113
|
# header parameters
|
2081
2114
|
header_params = opts[:header_params] || {}
|
2082
2115
|
# HTTP header 'Accept' (if needed)
|
2083
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2084
2117
|
# HTTP header 'Content-Type'
|
2085
|
-
|
2118
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2119
|
+
if !content_type.nil?
|
2120
|
+
header_params['Content-Type'] = content_type
|
2121
|
+
end
|
2086
2122
|
|
2087
2123
|
# form parameters
|
2088
2124
|
form_params = opts[:form_params] || {}
|
@@ -2183,9 +2219,12 @@ module Svix
|
|
2183
2219
|
# header parameters
|
2184
2220
|
header_params = opts[:header_params] || {}
|
2185
2221
|
# HTTP header 'Accept' (if needed)
|
2186
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2222
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2187
2223
|
# HTTP header 'Content-Type'
|
2188
|
-
|
2224
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2225
|
+
if !content_type.nil?
|
2226
|
+
header_params['Content-Type'] = content_type
|
2227
|
+
end
|
2189
2228
|
|
2190
2229
|
# form parameters
|
2191
2230
|
form_params = opts[:form_params] || {}
|
@@ -2269,9 +2308,12 @@ module Svix
|
|
2269
2308
|
# header parameters
|
2270
2309
|
header_params = opts[:header_params] || {}
|
2271
2310
|
# HTTP header 'Accept' (if needed)
|
2272
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2273
2312
|
# HTTP header 'Content-Type'
|
2274
|
-
|
2313
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2314
|
+
if !content_type.nil?
|
2315
|
+
header_params['Content-Type'] = content_type
|
2316
|
+
end
|
2275
2317
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
2276
2318
|
|
2277
2319
|
# form parameters
|
@@ -2367,7 +2409,7 @@ module Svix
|
|
2367
2409
|
# header parameters
|
2368
2410
|
header_params = opts[:header_params] || {}
|
2369
2411
|
# HTTP header 'Accept' (if needed)
|
2370
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2412
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2371
2413
|
|
2372
2414
|
# form parameters
|
2373
2415
|
form_params = opts[:form_params] || {}
|
@@ -2460,7 +2502,7 @@ module Svix
|
|
2460
2502
|
# header parameters
|
2461
2503
|
header_params = opts[:header_params] || {}
|
2462
2504
|
# HTTP header 'Accept' (if needed)
|
2463
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2505
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2464
2506
|
|
2465
2507
|
# form parameters
|
2466
2508
|
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
|
-
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,7 +47,7 @@ module Svix
|
|
47
47
|
# header parameters
|
48
48
|
header_params = opts[:header_params] || {}
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
51
51
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
52
52
|
|
53
53
|
# form parameters
|
@@ -105,7 +105,7 @@ module Svix
|
|
105
105
|
# header parameters
|
106
106
|
header_params = opts[:header_params] || {}
|
107
107
|
# HTTP header 'Accept' (if needed)
|
108
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
109
109
|
|
110
110
|
# form parameters
|
111
111
|
form_params = opts[:form_params] || {}
|
@@ -170,9 +170,12 @@ module Svix
|
|
170
170
|
# header parameters
|
171
171
|
header_params = opts[:header_params] || {}
|
172
172
|
# HTTP header 'Accept' (if needed)
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
174
174
|
# HTTP header 'Content-Type'
|
175
|
-
|
175
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
176
|
+
if !content_type.nil?
|
177
|
+
header_params['Content-Type'] = content_type
|
178
|
+
end
|
176
179
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
177
180
|
|
178
181
|
# 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
|
-
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
# header parameters
|
46
46
|
header_params = opts[:header_params] || {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
49
49
|
|
50
50
|
# form parameters
|
51
51
|
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
|
-
|
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
|
-
|
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
|
@@ -102,7 +105,7 @@ module Svix
|
|
102
105
|
# Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post).
|
103
106
|
# @param event_type_name [String] The event type's name
|
104
107
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [Boolean] :expunge By default event types are archived when \"deleted\". Passing this to `true` deletes them entirely.
|
108
|
+
# @option opts [Boolean] :expunge By default event types are archived when \"deleted\". Passing this to `true` deletes them entirely. (default to false)
|
106
109
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
107
110
|
def v1_event_type_delete_with_http_info(event_type_name, opts = {})
|
108
111
|
if @api_client.config.debugging
|
@@ -131,7 +134,7 @@ module Svix
|
|
131
134
|
# header parameters
|
132
135
|
header_params = opts[:header_params] || {}
|
133
136
|
# HTTP header 'Accept' (if needed)
|
134
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
135
138
|
|
136
139
|
# form parameters
|
137
140
|
form_params = opts[:form_params] || {}
|
@@ -190,7 +193,7 @@ module Svix
|
|
190
193
|
# header parameters
|
191
194
|
header_params = opts[:header_params] || {}
|
192
195
|
# HTTP header 'Accept' (if needed)
|
193
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
194
197
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
195
198
|
|
196
199
|
# form parameters
|
@@ -256,9 +259,12 @@ module Svix
|
|
256
259
|
# header parameters
|
257
260
|
header_params = opts[:header_params] || {}
|
258
261
|
# HTTP header 'Accept' (if needed)
|
259
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
260
263
|
# HTTP header 'Content-Type'
|
261
|
-
|
264
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
265
|
+
if !content_type.nil?
|
266
|
+
header_params['Content-Type'] = content_type
|
267
|
+
end
|
262
268
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
263
269
|
|
264
270
|
# form parameters
|
@@ -331,7 +337,7 @@ module Svix
|
|
331
337
|
# header parameters
|
332
338
|
header_params = opts[:header_params] || {}
|
333
339
|
# HTTP header 'Accept' (if needed)
|
334
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
335
341
|
|
336
342
|
# form parameters
|
337
343
|
form_params = opts[:form_params] || {}
|
@@ -403,7 +409,7 @@ module Svix
|
|
403
409
|
# header parameters
|
404
410
|
header_params = opts[:header_params] || {}
|
405
411
|
# HTTP header 'Accept' (if needed)
|
406
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
412
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
407
413
|
|
408
414
|
# form parameters
|
409
415
|
form_params = opts[:form_params] || {}
|
@@ -468,9 +474,12 @@ module Svix
|
|
468
474
|
# header parameters
|
469
475
|
header_params = opts[:header_params] || {}
|
470
476
|
# HTTP header 'Accept' (if needed)
|
471
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
477
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
472
478
|
# HTTP header 'Content-Type'
|
473
|
-
|
479
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
480
|
+
if !content_type.nil?
|
481
|
+
header_params['Content-Type'] = content_type
|
482
|
+
end
|
474
483
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
475
484
|
|
476
485
|
# form parameters
|
@@ -522,8 +531,8 @@ module Svix
|
|
522
531
|
# @option opts [Integer] :limit Limit the number of returned items
|
523
532
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
524
533
|
# @option opts [Ordering] :order The sorting order of the returned items
|
525
|
-
# @option opts [Boolean] :include_archived When `true` archived (deleted but not expunged) items are included in the response
|
526
|
-
# @option opts [Boolean] :with_content When `true` the full item (including the schema) is included in the response
|
534
|
+
# @option opts [Boolean] :include_archived When `true` archived (deleted but not expunged) items are included in the response (default to false)
|
535
|
+
# @option opts [Boolean] :with_content When `true` the full item (including the schema) is included in the response (default to false)
|
527
536
|
# @return [Array<(ListResponseEventTypeOut, Integer, Hash)>] ListResponseEventTypeOut data, response status code and response headers
|
528
537
|
def v1_event_type_list_with_http_info(opts = {})
|
529
538
|
if @api_client.config.debugging
|
@@ -560,7 +569,7 @@ module Svix
|
|
560
569
|
# header parameters
|
561
570
|
header_params = opts[:header_params] || {}
|
562
571
|
# HTTP header 'Accept' (if needed)
|
563
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
564
573
|
|
565
574
|
# form parameters
|
566
575
|
form_params = opts[:form_params] || {}
|
@@ -638,9 +647,12 @@ module Svix
|
|
638
647
|
# header parameters
|
639
648
|
header_params = opts[:header_params] || {}
|
640
649
|
# HTTP header 'Accept' (if needed)
|
641
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
650
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
642
651
|
# HTTP header 'Content-Type'
|
643
|
-
|
652
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
653
|
+
if !content_type.nil?
|
654
|
+
header_params['Content-Type'] = content_type
|
655
|
+
end
|
644
656
|
|
645
657
|
# form parameters
|
646
658
|
form_params = opts[:form_params] || {}
|
@@ -718,9 +730,12 @@ module Svix
|
|
718
730
|
# header parameters
|
719
731
|
header_params = opts[:header_params] || {}
|
720
732
|
# HTTP header 'Accept' (if needed)
|
721
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
733
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
722
734
|
# HTTP header 'Content-Type'
|
723
|
-
|
735
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
736
|
+
if !content_type.nil?
|
737
|
+
header_params['Content-Type'] = content_type
|
738
|
+
end
|
724
739
|
|
725
740
|
# form parameters
|
726
741
|
form_params = opts[:form_params] || {}
|
@@ -798,9 +813,12 @@ module Svix
|
|
798
813
|
# header parameters
|
799
814
|
header_params = opts[:header_params] || {}
|
800
815
|
# HTTP header 'Accept' (if needed)
|
801
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
816
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
802
817
|
# HTTP header 'Content-Type'
|
803
|
-
|
818
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
819
|
+
if !content_type.nil?
|
820
|
+
header_params['Content-Type'] = content_type
|
821
|
+
end
|
804
822
|
|
805
823
|
# form parameters
|
806
824
|
form_params = opts[:form_params] || {}
|
data/lib/svix/api/events_api.rb
CHANGED
@@ -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
|
-
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -68,7 +68,7 @@ module Svix
|
|
68
68
|
# header parameters
|
69
69
|
header_params = opts[:header_params] || {}
|
70
70
|
# HTTP header 'Accept' (if needed)
|
71
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
72
72
|
|
73
73
|
# form parameters
|
74
74
|
form_params = opts[:form_params] || {}
|
data/lib/svix/api/health_api.rb
CHANGED
@@ -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
|
-
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
# header parameters
|
46
46
|
header_params = opts[:header_params] || {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
49
49
|
|
50
50
|
# form parameters
|
51
51
|
form_params = opts[:form_params] || {}
|
data/lib/svix/api/inbound_api.rb
CHANGED
@@ -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
|
-
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -90,9 +90,12 @@ module Svix
|
|
90
90
|
# header parameters
|
91
91
|
header_params = opts[:header_params] || {}
|
92
92
|
# HTTP header 'Accept' (if needed)
|
93
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
93
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
94
94
|
# HTTP header 'Content-Type'
|
95
|
-
|
95
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
96
|
+
if !content_type.nil?
|
97
|
+
header_params['Content-Type'] = content_type
|
98
|
+
end
|
96
99
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
97
100
|
|
98
101
|
# form parameters
|
@@ -171,7 +174,7 @@ module Svix
|
|
171
174
|
# header parameters
|
172
175
|
header_params = opts[:header_params] || {}
|
173
176
|
# HTTP header 'Accept' (if needed)
|
174
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
175
178
|
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
176
179
|
|
177
180
|
# form parameters
|