svix 1.56.0 → 1.57.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 (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +115 -10
  4. data/lib/svix/api/authentication_api.rb +101 -16
  5. data/lib/svix/api/background_tasks_api.rb +43 -17
  6. data/lib/svix/api/endpoint_api.rb +312 -96
  7. data/lib/svix/api/inbound_api.rb +4 -4
  8. data/lib/svix/api/integration_api.rb +102 -24
  9. data/lib/svix/api/message_api.rb +142 -39
  10. data/lib/svix/api/message_attempt_api.rb +135 -372
  11. data/lib/svix/api/statistics_api.rb +6 -6
  12. data/lib/svix/api/stream_api.rb +203 -142
  13. data/lib/svix/api/transformation_template_api.rb +88 -23
  14. data/lib/svix/api/webhook_endpoint_api.rb +253 -77
  15. data/lib/svix/background_tasks_api.rb +2 -2
  16. data/lib/svix/message_attempt_api.rb +7 -3
  17. data/lib/svix/models/active_application_out.rb +373 -0
  18. data/lib/svix/models/active_endpoint_out.rb +355 -0
  19. data/lib/svix/models/aggregate_event_types_out.rb +40 -0
  20. data/lib/svix/models/aggregated_event_types.rb +305 -0
  21. data/lib/svix/models/app_portal_access_in.rb +18 -0
  22. data/lib/svix/models/app_usage_stats_out.rb +40 -0
  23. data/lib/svix/models/application_message_failure.rb +277 -0
  24. data/lib/svix/models/application_message_id_pair.rb +317 -0
  25. data/lib/svix/models/application_out.rb +41 -2
  26. data/lib/svix/models/application_patch.rb +1 -1
  27. data/lib/svix/models/application_stats.rb +41 -2
  28. data/lib/svix/models/application_stats_out.rb +324 -0
  29. data/lib/svix/models/auth_token_out.rb +40 -1
  30. data/lib/svix/models/background_task_finished_event.rb +272 -0
  31. data/lib/svix/models/background_task_finished_event2.rb +331 -0
  32. data/lib/svix/models/background_task_out.rb +40 -0
  33. data/lib/svix/models/background_task_type.rb +2 -1
  34. data/lib/svix/models/{template_in.rb → connector_in.rb} +4 -4
  35. data/lib/svix/models/{transformation_template_kind.rb → connector_kind.rb} +3 -3
  36. data/lib/svix/models/create_stream_in.rb +12 -12
  37. data/lib/svix/models/data.rb +108 -0
  38. data/lib/svix/models/data_any_of.rb +240 -0
  39. data/lib/svix/models/data_any_of1.rb +223 -0
  40. data/lib/svix/models/data_any_of2.rb +241 -0
  41. data/lib/svix/models/data_any_of3.rb +223 -0
  42. data/lib/svix/models/data_any_of4.rb +240 -0
  43. data/lib/svix/models/endpoint_created_event_data.rb +82 -4
  44. data/lib/svix/models/endpoint_deleted_event_data.rb +82 -4
  45. data/lib/svix/models/endpoint_disabled_event.rb +1 -1
  46. data/lib/svix/models/endpoint_disabled_event_data.rb +119 -16
  47. data/lib/svix/models/endpoint_disabled_trigger.rb +40 -0
  48. data/lib/svix/models/endpoint_enabled_event.rb +272 -0
  49. data/lib/svix/models/endpoint_enabled_event_data.rb +410 -0
  50. data/lib/svix/models/endpoint_message_out.rb +40 -1
  51. data/lib/svix/models/endpoint_mtls_config_out.rb +215 -0
  52. data/lib/svix/models/endpoint_oauth_config_in.rb +2 -2
  53. data/lib/svix/models/endpoint_oauth_config_out.rb +315 -0
  54. data/lib/svix/models/endpoint_out.rb +40 -1
  55. data/lib/svix/models/endpoint_patch.rb +1 -1
  56. data/lib/svix/models/endpoint_updated_event_data.rb +82 -4
  57. data/lib/svix/models/environment_in.rb +17 -19
  58. data/lib/svix/models/environment_settings_out.rb +23 -1
  59. data/lib/svix/models/event_type_import_open_api_in.rb +14 -2
  60. data/lib/svix/models/export_event_type_out.rb +40 -0
  61. data/lib/svix/models/expung_all_contents_out.rb +315 -0
  62. data/lib/svix/models/inbound_path_params.rb +1 -1
  63. data/lib/svix/models/integration_in.rb +41 -1
  64. data/lib/svix/models/integration_out.rb +81 -2
  65. data/lib/svix/models/integration_update.rb +41 -1
  66. data/lib/svix/models/list_response_active_application_out.rb +261 -0
  67. data/lib/svix/models/message_attempt_endpoint_out.rb +120 -3
  68. data/lib/svix/models/message_attempt_exhausted_event_data.rb +122 -5
  69. data/lib/svix/models/message_attempt_failed_data.rb +40 -1
  70. data/lib/svix/models/message_attempt_failing_event_data.rb +122 -5
  71. data/lib/svix/models/message_attempt_out.rb +120 -3
  72. data/lib/svix/models/message_attempt_recovered_event_data.rb +122 -5
  73. data/lib/svix/models/message_broadcast_out.rb +40 -0
  74. data/lib/svix/models/message_endpoint_out.rb +40 -1
  75. data/lib/svix/models/message_out.rb +40 -1
  76. data/lib/svix/models/message_precheck_in.rb +288 -0
  77. data/lib/svix/models/message_precheck_out.rb +221 -0
  78. data/lib/svix/models/{oauth2_auth_method_in.rb → oauth2_auth_method_in_out.rb} +3 -3
  79. data/lib/svix/models/{oauth2_grant_type_in.rb → oauth2_grant_type_in_out.rb} +3 -3
  80. data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +223 -0
  81. data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +251 -0
  82. data/lib/svix/models/operational_webhook_endpoint_out.rb +40 -1
  83. data/lib/svix/models/polling_endpoint_message_out.rb +454 -0
  84. data/lib/svix/models/polling_endpoint_out.rb +255 -0
  85. data/lib/svix/models/recover_out.rb +40 -0
  86. data/lib/svix/models/replay_out.rb +40 -0
  87. data/lib/svix/models/rotate_poller_token_in.rb +1 -1
  88. data/lib/svix/models/sink_secret_out.rb +233 -0
  89. data/lib/svix/models/stream_in.rb +6 -7
  90. data/lib/svix/models/stream_out.rb +46 -7
  91. data/lib/svix/models/stream_patch.rb +6 -7
  92. data/lib/svix/models/stream_portal_access_in.rb +293 -0
  93. data/lib/svix/models/template_out.rb +81 -1
  94. data/lib/svix/models/template_patch.rb +1 -1
  95. data/lib/svix/models/template_update.rb +1 -1
  96. data/lib/svix/version.rb +1 -1
  97. metadata +35 -7
  98. data/lib/svix/operational_webhook_endpoint_api.rb +0 -37
@@ -21,8 +21,8 @@ module Svix
21
21
  end
22
22
  # Count Attempts By Endpoint
23
23
  # Like `v1.message-attempt.list-by-endpoint` but returning a count only.
24
- # @param app_id [String] The app's ID or UID
25
- # @param endpoint_id [String] The ep's ID or UID
24
+ # @param app_id [String] The Application's ID or UID.
25
+ # @param endpoint_id [String] The Endpoint's ID or UID.
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
28
28
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
@@ -39,8 +39,8 @@ module Svix
39
39
 
40
40
  # Count Attempts By Endpoint
41
41
  # Like `v1.message-attempt.list-by-endpoint` but returning a count only.
42
- # @param app_id [String] The app's ID or UID
43
- # @param endpoint_id [String] The ep's ID or UID
42
+ # @param app_id [String] The Application's ID or UID.
43
+ # @param endpoint_id [String] The Endpoint's ID or UID.
44
44
  # @param [Hash] opts the optional parameters
45
45
  # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
46
46
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
@@ -155,9 +155,9 @@ module Svix
155
155
 
156
156
  # Delete attempt response body
157
157
  # Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content. The message can't be replayed or resent once its payload has been deleted or expired.
158
- # @param app_id [String] The app's ID or UID
159
- # @param msg_id [String] The msg's ID or UID
160
- # @param attempt_id [String] The attempt's ID
158
+ # @param app_id [String] The Application's ID or UID.
159
+ # @param msg_id [String] The Message's ID or UID.
160
+ # @param attempt_id [String] The MessageAttempt's ID.
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @return [nil]
163
163
  def v1_message_attempt_expunge_content(app_id, msg_id, attempt_id, opts = {})
@@ -167,9 +167,9 @@ module Svix
167
167
 
168
168
  # Delete attempt response body
169
169
  # Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content. The message can't be replayed or resent once its payload has been deleted or expired.
170
- # @param app_id [String] The app's ID or UID
171
- # @param msg_id [String] The msg's ID or UID
172
- # @param attempt_id [String] The attempt's ID
170
+ # @param app_id [String] The Application's ID or UID.
171
+ # @param msg_id [String] The Message's ID or UID.
172
+ # @param attempt_id [String] The MessageAttempt's ID.
173
173
  # @param [Hash] opts the optional parameters
174
174
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175
175
  def v1_message_attempt_expunge_content_with_http_info(app_id, msg_id, attempt_id, opts = {})
@@ -214,6 +214,19 @@ module Svix
214
214
  if @api_client.config.client_side_validation && attempt_id.nil?
215
215
  fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content"
216
216
  end
217
+ if @api_client.config.client_side_validation && attempt_id.to_s.length > 33
218
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be smaller than or equal to 33.'
219
+ end
220
+
221
+ if @api_client.config.client_side_validation && attempt_id.to_s.length < 33
222
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be great than or equal to 33.'
223
+ end
224
+
225
+ pattern = Regexp.new(/^atmpt_[A-Za-z0-9]{27}$/)
226
+ if @api_client.config.client_side_validation && attempt_id !~ pattern
227
+ fail ArgumentError, "invalid value for 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content, must conform to the pattern #{pattern}."
228
+ end
229
+
217
230
  # resource path
218
231
  local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
219
232
 
@@ -256,9 +269,9 @@ module Svix
256
269
 
257
270
  # Get Attempt
258
271
  # `msg_id`: Use a message id or a message `eventId`
259
- # @param app_id [String] The app&#39;s ID or UID
260
- # @param msg_id [String] The msg&#39;s ID or UID
261
- # @param attempt_id [String] The attempt&#39;s ID
272
+ # @param app_id [String] The Application&#39;s ID or UID.
273
+ # @param msg_id [String] The Message&#39;s ID or UID.
274
+ # @param attempt_id [String] The MessageAttempt&#39;s ID.
262
275
  # @param [Hash] opts the optional parameters
263
276
  # @return [MessageAttemptOut]
264
277
  def v1_message_attempt_get(app_id, msg_id, attempt_id, opts = {})
@@ -268,9 +281,9 @@ module Svix
268
281
 
269
282
  # Get Attempt
270
283
  # &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
271
- # @param app_id [String] The app&#39;s ID or UID
272
- # @param msg_id [String] The msg&#39;s ID or UID
273
- # @param attempt_id [String] The attempt&#39;s ID
284
+ # @param app_id [String] The Application&#39;s ID or UID.
285
+ # @param msg_id [String] The Message&#39;s ID or UID.
286
+ # @param attempt_id [String] The MessageAttempt&#39;s ID.
274
287
  # @param [Hash] opts the optional parameters
275
288
  # @return [Array<(MessageAttemptOut, Integer, Hash)>] MessageAttemptOut data, response status code and response headers
276
289
  def v1_message_attempt_get_with_http_info(app_id, msg_id, attempt_id, opts = {})
@@ -315,6 +328,19 @@ module Svix
315
328
  if @api_client.config.client_side_validation && attempt_id.nil?
316
329
  fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get"
317
330
  end
331
+ if @api_client.config.client_side_validation && attempt_id.to_s.length > 33
332
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be smaller than or equal to 33.'
333
+ end
334
+
335
+ if @api_client.config.client_side_validation && attempt_id.to_s.length < 33
336
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be great than or equal to 33.'
337
+ end
338
+
339
+ pattern = Regexp.new(/^atmpt_[A-Za-z0-9]{27}$/)
340
+ if @api_client.config.client_side_validation && attempt_id !~ pattern
341
+ fail ArgumentError, "invalid value for 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get, must conform to the pattern #{pattern}."
342
+ end
343
+
318
344
  # resource path
319
345
  local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
320
346
 
@@ -357,9 +383,9 @@ module Svix
357
383
 
358
384
  # Get Attempt Headers
359
385
  # Calculate and return headers used on a given message attempt
360
- # @param app_id [String] The app&#39;s ID or UID
361
- # @param msg_id [String] The msg&#39;s ID or UID
362
- # @param attempt_id [String] The attempt&#39;s ID
386
+ # @param app_id [String] The Application&#39;s ID or UID.
387
+ # @param msg_id [String] The Message&#39;s ID or UID.
388
+ # @param attempt_id [String] The MessageAttempt&#39;s ID.
363
389
  # @param [Hash] opts the optional parameters
364
390
  # @return [MessageAttemptHeadersOut]
365
391
  def v1_message_attempt_get_headers(app_id, msg_id, attempt_id, opts = {})
@@ -369,9 +395,9 @@ module Svix
369
395
 
370
396
  # Get Attempt Headers
371
397
  # Calculate and return headers used on a given message attempt
372
- # @param app_id [String] The app&#39;s ID or UID
373
- # @param msg_id [String] The msg&#39;s ID or UID
374
- # @param attempt_id [String] The attempt&#39;s ID
398
+ # @param app_id [String] The Application&#39;s ID or UID.
399
+ # @param msg_id [String] The Message&#39;s ID or UID.
400
+ # @param attempt_id [String] The MessageAttempt&#39;s ID.
375
401
  # @param [Hash] opts the optional parameters
376
402
  # @return [Array<(MessageAttemptHeadersOut, Integer, Hash)>] MessageAttemptHeadersOut data, response status code and response headers
377
403
  def v1_message_attempt_get_headers_with_http_info(app_id, msg_id, attempt_id, opts = {})
@@ -416,6 +442,19 @@ module Svix
416
442
  if @api_client.config.client_side_validation && attempt_id.nil?
417
443
  fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get_headers"
418
444
  end
445
+ if @api_client.config.client_side_validation && attempt_id.to_s.length > 33
446
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be smaller than or equal to 33.'
447
+ end
448
+
449
+ if @api_client.config.client_side_validation && attempt_id.to_s.length < 33
450
+ fail ArgumentError, 'invalid value for "attempt_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be great than or equal to 33.'
451
+ end
452
+
453
+ pattern = Regexp.new(/^atmpt_[A-Za-z0-9]{27}$/)
454
+ if @api_client.config.client_side_validation && attempt_id !~ pattern
455
+ fail ArgumentError, "invalid value for 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get_headers, must conform to the pattern #{pattern}."
456
+ end
457
+
419
458
  # resource path
420
459
  local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
421
460
 
@@ -458,8 +497,8 @@ module Svix
458
497
 
459
498
  # List Attempted Destinations
460
499
  # List endpoints attempted by a given message. Additionally includes metadata about the latest message attempt. By default, endpoints are listed in ascending order by ID.
461
- # @param app_id [String] The app&#39;s ID or UID
462
- # @param msg_id [String] The msg&#39;s ID or UID
500
+ # @param app_id [String] The Application&#39;s ID or UID.
501
+ # @param msg_id [String] The Message&#39;s ID or UID.
463
502
  # @param [Hash] opts the optional parameters
464
503
  # @option opts [Integer] :limit Limit the number of returned items
465
504
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -471,8 +510,8 @@ module Svix
471
510
 
472
511
  # List Attempted Destinations
473
512
  # List endpoints attempted by a given message. Additionally includes metadata about the latest message attempt. By default, endpoints are listed in ascending order by ID.
474
- # @param app_id [String] The app&#39;s ID or UID
475
- # @param msg_id [String] The msg&#39;s ID or UID
513
+ # @param app_id [String] The Application&#39;s ID or UID.
514
+ # @param msg_id [String] The Message&#39;s ID or UID.
476
515
  # @param [Hash] opts the optional parameters
477
516
  # @option opts [Integer] :limit Limit the number of returned items
478
517
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -523,6 +562,19 @@ module Svix
523
562
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be greater than or equal to 1.'
524
563
  end
525
564
 
565
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
566
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be smaller than or equal to 30.'
567
+ end
568
+
569
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
570
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be great than or equal to 30.'
571
+ end
572
+
573
+ pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
574
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
575
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must conform to the pattern #{pattern}."
576
+ end
577
+
526
578
  # resource path
527
579
  local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
528
580
 
@@ -567,8 +619,8 @@ module Svix
567
619
 
568
620
  # List Attempted Messages
569
621
  # List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed. Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate.
570
- # @param app_id [String] The app&#39;s ID or UID
571
- # @param endpoint_id [String] The ep&#39;s ID or UID
622
+ # @param app_id [String] The Application&#39;s ID or UID.
623
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
572
624
  # @param [Hash] opts the optional parameters
573
625
  # @option opts [Integer] :limit Limit the number of returned items
574
626
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -587,8 +639,8 @@ module Svix
587
639
 
588
640
  # List Attempted Messages
589
641
  # List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The &#x60;before&#x60; parameter lets you filter all items created before a certain date and is ignored if an iterator is passed. Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate.
590
- # @param app_id [String] The app&#39;s ID or UID
591
- # @param endpoint_id [String] The ep&#39;s ID or UID
642
+ # @param app_id [String] The Application&#39;s ID or UID.
643
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
592
644
  # @param [Hash] opts the optional parameters
593
645
  # @option opts [Integer] :limit Limit the number of returned items
594
646
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -646,6 +698,19 @@ module Svix
646
698
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be greater than or equal to 1.'
647
699
  end
648
700
 
701
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 31
702
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 31.'
703
+ end
704
+
705
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 31
706
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be great than or equal to 31.'
707
+ end
708
+
709
+ pattern = Regexp.new(/^msg_[A-Za-z0-9]{27}$/)
710
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
711
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
712
+ end
713
+
649
714
  if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
650
715
  fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 128.'
651
716
  end
@@ -715,8 +780,8 @@ module Svix
715
780
 
716
781
  # List Attempts By Endpoint
717
782
  # List attempts by endpoint id Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate.
718
- # @param app_id [String] The app&#39;s ID or UID
719
- # @param endpoint_id [String] The ep&#39;s ID or UID
783
+ # @param app_id [String] The Application&#39;s ID or UID.
784
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
720
785
  # @param [Hash] opts the optional parameters
721
786
  # @option opts [Integer] :limit Limit the number of returned items
722
787
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -737,8 +802,8 @@ module Svix
737
802
 
738
803
  # List Attempts By Endpoint
739
804
  # List attempts by endpoint id Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate.
740
- # @param app_id [String] The app&#39;s ID or UID
741
- # @param endpoint_id [String] The ep&#39;s ID or UID
805
+ # @param app_id [String] The Application&#39;s ID or UID.
806
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
742
807
  # @param [Hash] opts the optional parameters
743
808
  # @option opts [Integer] :limit Limit the number of returned items
744
809
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -798,6 +863,19 @@ module Svix
798
863
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be greater than or equal to 1.'
799
864
  end
800
865
 
866
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 33
867
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 33.'
868
+ end
869
+
870
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 33
871
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be great than or equal to 33.'
872
+ end
873
+
874
+ pattern = Regexp.new(/^atmpt_[A-Za-z0-9]{27}$/)
875
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
876
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
877
+ end
878
+
801
879
  if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
802
880
  fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 128.'
803
881
  end
@@ -867,174 +945,10 @@ module Svix
867
945
  return data, status_code, headers
868
946
  end
869
947
 
870
- # List Attempts For Endpoint
871
- # DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed. Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate.
872
- # @param app_id [String] The app&#39;s ID or UID
873
- # @param msg_id [String] The msg&#39;s ID or UID
874
- # @param endpoint_id [String] The ep&#39;s ID or UID
875
- # @param [Hash] opts the optional parameters
876
- # @option opts [Integer] :limit Limit the number of returned items
877
- # @option opts [String] :iterator The iterator returned from a prior invocation
878
- # @option opts [String] :channel Filter response based on the channel
879
- # @option opts [String] :tag Filter response based on the tag
880
- # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
881
- # @option opts [Time] :before Only include items created before a certain date
882
- # @option opts [Time] :after Only include items created after a certain date
883
- # @option opts [Array<String>] :event_types Filter response based on the event type
884
- # @return [ListResponseMessageAttemptEndpointOut]
885
- def v1_message_attempt_list_by_endpoint_deprecated(app_id, msg_id, endpoint_id, opts = {})
886
- data, _status_code, _headers = v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts)
887
- data
888
- end
889
-
890
- # List Attempts For Endpoint
891
- # DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The &#x60;before&#x60; parameter lets you filter all items created before a certain date and is ignored if an iterator is passed. Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate.
892
- # @param app_id [String] The app&#39;s ID or UID
893
- # @param msg_id [String] The msg&#39;s ID or UID
894
- # @param endpoint_id [String] The ep&#39;s ID or UID
895
- # @param [Hash] opts the optional parameters
896
- # @option opts [Integer] :limit Limit the number of returned items
897
- # @option opts [String] :iterator The iterator returned from a prior invocation
898
- # @option opts [String] :channel Filter response based on the channel
899
- # @option opts [String] :tag Filter response based on the tag
900
- # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
901
- # @option opts [Time] :before Only include items created before a certain date
902
- # @option opts [Time] :after Only include items created after a certain date
903
- # @option opts [Array<String>] :event_types Filter response based on the event type
904
- # @return [Array<(ListResponseMessageAttemptEndpointOut, Integer, Hash)>] ListResponseMessageAttemptEndpointOut data, response status code and response headers
905
- def v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts = {})
906
- if @api_client.config.debugging
907
- @api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated ...'
908
- end
909
- # verify the required parameter 'app_id' is set
910
- if @api_client.config.client_side_validation && app_id.nil?
911
- fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
912
- end
913
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
914
- fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
915
- end
916
-
917
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
918
- fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
919
- end
920
-
921
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
922
- if @api_client.config.client_side_validation && app_id !~ pattern
923
- fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
924
- end
925
-
926
- # verify the required parameter 'msg_id' is set
927
- if @api_client.config.client_side_validation && msg_id.nil?
928
- fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
929
- end
930
- if @api_client.config.client_side_validation && msg_id.to_s.length > 256
931
- fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
932
- end
933
-
934
- if @api_client.config.client_side_validation && msg_id.to_s.length < 1
935
- fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
936
- end
937
-
938
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
939
- if @api_client.config.client_side_validation && msg_id !~ pattern
940
- fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
941
- end
942
-
943
- # verify the required parameter 'endpoint_id' is set
944
- if @api_client.config.client_side_validation && endpoint_id.nil?
945
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
946
- end
947
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
948
- fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
949
- end
950
-
951
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
952
- fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
953
- end
954
-
955
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
956
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
957
- fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
958
- end
959
-
960
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
961
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be smaller than or equal to 250.'
962
- end
963
-
964
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
965
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be greater than or equal to 1.'
966
- end
967
-
968
- if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
969
- fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 128.'
970
- end
971
-
972
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.:]+$/)
973
- if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
974
- fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
975
- end
976
-
977
- if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
978
- fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 128.'
979
- end
980
-
981
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
982
- if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
983
- fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
984
- end
985
-
986
- # resource path
987
- local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
988
-
989
- # query parameters
990
- query_params = opts[:query_params] || {}
991
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
992
- query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
993
- query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
994
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
995
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
996
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
997
- query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
998
- query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
999
-
1000
- # header parameters
1001
- header_params = opts[:header_params] || {}
1002
- # HTTP header 'Accept' (if needed)
1003
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1004
-
1005
- # form parameters
1006
- form_params = opts[:form_params] || {}
1007
-
1008
- # http body (model)
1009
- post_body = opts[:debug_body]
1010
-
1011
- # return_type
1012
- return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptEndpointOut'
1013
-
1014
- # auth_names
1015
- auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1016
-
1017
- new_options = opts.merge(
1018
- :operation => :"MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated",
1019
- :header_params => header_params,
1020
- :query_params => query_params,
1021
- :form_params => form_params,
1022
- :body => post_body,
1023
- :auth_names => auth_names,
1024
- :return_type => return_type
1025
- )
1026
-
1027
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1028
- if @api_client.config.debugging
1029
- @api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_endpoint_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1030
- end
1031
- return data, status_code, headers
1032
- end
1033
-
1034
948
  # List Attempts By Msg
1035
949
  # List attempts by message ID. Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate.
1036
- # @param app_id [String] The app&#39;s ID or UID
1037
- # @param msg_id [String] The msg&#39;s ID or UID
950
+ # @param app_id [String] The Application&#39;s ID or UID.
951
+ # @param msg_id [String] The Message&#39;s ID or UID.
1038
952
  # @param [Hash] opts the optional parameters
1039
953
  # @option opts [Integer] :limit Limit the number of returned items
1040
954
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -1055,8 +969,8 @@ module Svix
1055
969
 
1056
970
  # List Attempts By Msg
1057
971
  # List attempts by message ID. Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate.
1058
- # @param app_id [String] The app&#39;s ID or UID
1059
- # @param msg_id [String] The msg&#39;s ID or UID
972
+ # @param app_id [String] The Application&#39;s ID or UID.
973
+ # @param msg_id [String] The Message&#39;s ID or UID.
1060
974
  # @param [Hash] opts the optional parameters
1061
975
  # @option opts [Integer] :limit Limit the number of returned items
1062
976
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -1116,6 +1030,19 @@ module Svix
1116
1030
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be greater than or equal to 1.'
1117
1031
  end
1118
1032
 
1033
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 33
1034
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 33.'
1035
+ end
1036
+
1037
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 33
1038
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be great than or equal to 33.'
1039
+ end
1040
+
1041
+ pattern = Regexp.new(/^atmpt_[A-Za-z0-9]{27}$/)
1042
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
1043
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
1044
+ end
1045
+
1119
1046
  if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
1120
1047
  fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 128.'
1121
1048
  end
@@ -1198,175 +1125,11 @@ module Svix
1198
1125
  return data, status_code, headers
1199
1126
  end
1200
1127
 
1201
- # List Attempts
1202
- # Deprecated: Please use \"List Attempts by Endpoint\" and \"List Attempts by Msg\" instead. Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate. `msg_id`: Use a message id or a message `eventId`
1203
- # @param app_id [String] The app&#39;s ID or UID
1204
- # @param msg_id [String] The msg&#39;s ID or UID
1205
- # @param [Hash] opts the optional parameters
1206
- # @option opts [Integer] :limit Limit the number of returned items
1207
- # @option opts [String] :iterator The iterator returned from a prior invocation
1208
- # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1209
- # @option opts [String] :channel Filter response based on the channel
1210
- # @option opts [String] :tag Filter response based on the tag
1211
- # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
1212
- # @option opts [Time] :before Only include items created before a certain date
1213
- # @option opts [Time] :after Only include items created after a certain date
1214
- # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
1215
- # @option opts [Array<String>] :event_types Filter response based on the event type
1216
- # @return [ListResponseMessageAttemptOut]
1217
- def v1_message_attempt_list_by_msg_deprecated(app_id, msg_id, opts = {})
1218
- data, _status_code, _headers = v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts)
1219
- data
1220
- end
1221
-
1222
- # List Attempts
1223
- # Deprecated: Please use \&quot;List Attempts by Endpoint\&quot; and \&quot;List Attempts by Msg\&quot; instead. Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate. &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
1224
- # @param app_id [String] The app&#39;s ID or UID
1225
- # @param msg_id [String] The msg&#39;s ID or UID
1226
- # @param [Hash] opts the optional parameters
1227
- # @option opts [Integer] :limit Limit the number of returned items
1228
- # @option opts [String] :iterator The iterator returned from a prior invocation
1229
- # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1230
- # @option opts [String] :channel Filter response based on the channel
1231
- # @option opts [String] :tag Filter response based on the tag
1232
- # @option opts [MessageStatus] :status Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)
1233
- # @option opts [Time] :before Only include items created before a certain date
1234
- # @option opts [Time] :after Only include items created after a certain date
1235
- # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
1236
- # @option opts [Array<String>] :event_types Filter response based on the event type
1237
- # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
1238
- def v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts = {})
1239
- if @api_client.config.debugging
1240
- @api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated ...'
1241
- end
1242
- # verify the required parameter 'app_id' is set
1243
- if @api_client.config.client_side_validation && app_id.nil?
1244
- fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated"
1245
- end
1246
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
1247
- fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
1248
- end
1249
-
1250
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
1251
- fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
1252
- end
1253
-
1254
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1255
- if @api_client.config.client_side_validation && app_id !~ pattern
1256
- fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1257
- end
1258
-
1259
- # verify the required parameter 'msg_id' is set
1260
- if @api_client.config.client_side_validation && msg_id.nil?
1261
- fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated"
1262
- end
1263
- if @api_client.config.client_side_validation && msg_id.to_s.length > 256
1264
- fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
1265
- end
1266
-
1267
- if @api_client.config.client_side_validation && msg_id.to_s.length < 1
1268
- fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
1269
- end
1270
-
1271
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1272
- if @api_client.config.client_side_validation && msg_id !~ pattern
1273
- fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1274
- end
1275
-
1276
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
1277
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be smaller than or equal to 250.'
1278
- end
1279
-
1280
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1281
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be greater than or equal to 1.'
1282
- end
1283
-
1284
- if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length > 256
1285
- fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
1286
- end
1287
-
1288
- if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length < 1
1289
- fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
1290
- end
1291
-
1292
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1293
- if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'] !~ pattern
1294
- fail ArgumentError, "invalid value for 'opts[:\"endpoint_id\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1295
- end
1296
-
1297
- if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
1298
- fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 128.'
1299
- end
1300
-
1301
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.:]+$/)
1302
- if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
1303
- fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1304
- end
1305
-
1306
- if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
1307
- fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 128.'
1308
- end
1309
-
1310
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1311
- if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
1312
- fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1313
- end
1314
-
1315
- # resource path
1316
- local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
1317
-
1318
- # query parameters
1319
- query_params = opts[:query_params] || {}
1320
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1321
- query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
1322
- query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
1323
- query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
1324
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
1325
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
1326
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1327
- query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1328
- query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
1329
- query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
1330
-
1331
- # header parameters
1332
- header_params = opts[:header_params] || {}
1333
- # HTTP header 'Accept' (if needed)
1334
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1335
-
1336
- # form parameters
1337
- form_params = opts[:form_params] || {}
1338
-
1339
- # http body (model)
1340
- post_body = opts[:debug_body]
1341
-
1342
- # return_type
1343
- return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
1344
-
1345
- # auth_names
1346
- auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1347
-
1348
- new_options = opts.merge(
1349
- :operation => :"MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated",
1350
- :header_params => header_params,
1351
- :query_params => query_params,
1352
- :form_params => form_params,
1353
- :body => post_body,
1354
- :auth_names => auth_names,
1355
- :return_type => return_type
1356
- )
1357
-
1358
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1359
- if @api_client.config.debugging
1360
- @api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_msg_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1361
- end
1362
- return data, status_code, headers
1363
- end
1364
-
1365
1128
  # Resend Webhook
1366
1129
  # Resend a message to the specified endpoint.
1367
- # @param app_id [String] The app&#39;s ID or UID
1368
- # @param msg_id [String] The msg&#39;s ID or UID
1369
- # @param endpoint_id [String] The ep&#39;s ID or UID
1130
+ # @param app_id [String] The Application&#39;s ID or UID.
1131
+ # @param msg_id [String] The Message&#39;s ID or UID.
1132
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1370
1133
  # @param [Hash] opts the optional parameters
1371
1134
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1372
1135
  # @return [nil]
@@ -1377,9 +1140,9 @@ module Svix
1377
1140
 
1378
1141
  # Resend Webhook
1379
1142
  # Resend a message to the specified endpoint.
1380
- # @param app_id [String] The app&#39;s ID or UID
1381
- # @param msg_id [String] The msg&#39;s ID or UID
1382
- # @param endpoint_id [String] The ep&#39;s ID or UID
1143
+ # @param app_id [String] The Application&#39;s ID or UID.
1144
+ # @param msg_id [String] The Message&#39;s ID or UID.
1145
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1383
1146
  # @param [Hash] opts the optional parameters
1384
1147
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1385
1148
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers