svix 1.16.0 → 1.17.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af99d60754c708dc656f1b76db700927a11ddc7fc962d1487d9ceffea8aa7f16
4
- data.tar.gz: 73740a06e1d1c076759fa5a27fae9da4602af40025a76eda69349e26f377cdfe
3
+ metadata.gz: 3ba5fe6fcac362ef0933d96a1eb122bd48d4a07ff193107e3c5a70f03bdcebf1
4
+ data.tar.gz: ccac8f3e9a811be6692d800df9c0fe054992e70dfe6327a56649597a45cb7584
5
5
  SHA512:
6
- metadata.gz: 320643c346d8dc0f495f53744785c2bc7abe1b71ea4d9a1ad2b5618602b027c417563c0cec2195e9e584330f3fd26796e2e63d776d169e92bb423520b9f077dd
7
- data.tar.gz: cf7452898da4e5a34873e150a969aa7759804b736059a7a83774a1d3c8863cd8e707378b68a5272a123fba43b13c0660df8500033d9e1c518fe369cca490db38
6
+ metadata.gz: 9e740cdfd831ab44e09731bae416e8450da416629e481bff04c5dcc855afc4a84660adab5132cec16fb730b7318c205408c9b6a414bf68a33c4392bc365c5c18
7
+ data.tar.gz: 2930ee347a911562920a8cc22c26be028cf43327c4f7393d33b486036eeb8a204bfba87b9c07507fbec5372e9796c59f245d3d5dea3450db133839b3178d1c9d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.16.0)
4
+ svix (1.17.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -92,7 +92,7 @@ module Svix
92
92
  # HTTP header 'Accept' (if needed)
93
93
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
94
94
  # HTTP header 'Content-Type'
95
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain; charset=utf-8'])
95
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
96
96
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
97
97
 
98
98
  # form parameters
@@ -439,6 +439,7 @@ module Svix
439
439
  # @option opts [Integer] :limit Limit the number of returned items
440
440
  # @option opts [String] :iterator The iterator returned from a prior invocation
441
441
  # @option opts [String] :channel Filter response based on the channel
442
+ # @option opts [String] :tag Filter response based on the message tags
442
443
  # @option opts [MessageStatus] :status Filter response based on the delivery status
443
444
  # @option opts [Time] :before Only include items created before a certain date
444
445
  # @option opts [Time] :after Only include items created after a certain date
@@ -458,6 +459,7 @@ module Svix
458
459
  # @option opts [Integer] :limit Limit the number of returned items
459
460
  # @option opts [String] :iterator The iterator returned from a prior invocation
460
461
  # @option opts [String] :channel Filter response based on the channel
462
+ # @option opts [String] :tag Filter response based on the message tags
461
463
  # @option opts [MessageStatus] :status Filter response based on the delivery status
462
464
  # @option opts [Time] :before Only include items created before a certain date
463
465
  # @option opts [Time] :after Only include items created after a certain date
@@ -519,6 +521,15 @@ module Svix
519
521
  fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
520
522
  end
521
523
 
524
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
525
+ fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 128.'
526
+ end
527
+
528
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
529
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
530
+ fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
531
+ end
532
+
522
533
  # resource path
523
534
  local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
524
535
 
@@ -527,6 +538,7 @@ module Svix
527
538
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
528
539
  query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
529
540
  query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
541
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
530
542
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
531
543
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
532
544
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
@@ -577,6 +589,7 @@ module Svix
577
589
  # @option opts [MessageStatus] :status Filter response based on the delivery status
578
590
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
579
591
  # @option opts [String] :channel Filter response based on the channel
592
+ # @option opts [String] :tag Filter response based on the tag
580
593
  # @option opts [Time] :before Only include items created before a certain date
581
594
  # @option opts [Time] :after Only include items created after a certain date
582
595
  # @option opts [Boolean] :with_content When `true` attempt content is included in the response (default to true)
@@ -598,6 +611,7 @@ module Svix
598
611
  # @option opts [MessageStatus] :status Filter response based on the delivery status
599
612
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
600
613
  # @option opts [String] :channel Filter response based on the channel
614
+ # @option opts [String] :tag Filter response based on the tag
601
615
  # @option opts [Time] :before Only include items created before a certain date
602
616
  # @option opts [Time] :after Only include items created after a certain date
603
617
  # @option opts [Boolean] :with_content When `true` attempt content is included in the response
@@ -659,6 +673,15 @@ module Svix
659
673
  fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
660
674
  end
661
675
 
676
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
677
+ fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 128.'
678
+ end
679
+
680
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
681
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
682
+ fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
683
+ end
684
+
662
685
  # resource path
663
686
  local_var_path = '/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
664
687
 
@@ -669,6 +692,7 @@ module Svix
669
692
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
670
693
  query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
671
694
  query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
695
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
672
696
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
673
697
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
674
698
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
@@ -718,6 +742,7 @@ module Svix
718
742
  # @option opts [Integer] :limit Limit the number of returned items
719
743
  # @option opts [String] :iterator The iterator returned from a prior invocation
720
744
  # @option opts [String] :channel Filter response based on the channel
745
+ # @option opts [String] :tag Filter response based on the tag
721
746
  # @option opts [MessageStatus] :status Filter response based on the delivery status
722
747
  # @option opts [Time] :before Only include items created before a certain date
723
748
  # @option opts [Time] :after Only include items created after a certain date
@@ -737,6 +762,7 @@ module Svix
737
762
  # @option opts [Integer] :limit Limit the number of returned items
738
763
  # @option opts [String] :iterator The iterator returned from a prior invocation
739
764
  # @option opts [String] :channel Filter response based on the channel
765
+ # @option opts [String] :tag Filter response based on the tag
740
766
  # @option opts [MessageStatus] :status Filter response based on the delivery status
741
767
  # @option opts [Time] :before Only include items created before a certain date
742
768
  # @option opts [Time] :after Only include items created after a certain date
@@ -814,6 +840,15 @@ module Svix
814
840
  fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
815
841
  end
816
842
 
843
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
844
+ 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.'
845
+ end
846
+
847
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
848
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
849
+ fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
850
+ end
851
+
817
852
  # resource path
818
853
  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))
819
854
 
@@ -822,6 +857,7 @@ module Svix
822
857
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
823
858
  query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
824
859
  query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
860
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
825
861
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
826
862
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
827
863
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
@@ -871,6 +907,7 @@ module Svix
871
907
  # @option opts [MessageStatus] :status Filter response based on the delivery status
872
908
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
873
909
  # @option opts [String] :channel Filter response based on the channel
910
+ # @option opts [String] :tag Filter response based on the tag
874
911
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
875
912
  # @option opts [Time] :before Only include items created before a certain date
876
913
  # @option opts [Time] :after Only include items created after a certain date
@@ -892,6 +929,7 @@ module Svix
892
929
  # @option opts [MessageStatus] :status Filter response based on the delivery status
893
930
  # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
894
931
  # @option opts [String] :channel Filter response based on the channel
932
+ # @option opts [String] :tag Filter response based on the tag
895
933
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
896
934
  # @option opts [Time] :before Only include items created before a certain date
897
935
  # @option opts [Time] :after Only include items created after a certain date
@@ -953,6 +991,15 @@ module Svix
953
991
  fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
954
992
  end
955
993
 
994
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
995
+ fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 128.'
996
+ end
997
+
998
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
999
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
1000
+ fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
1001
+ end
1002
+
956
1003
  if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length > 256
957
1004
  fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 256.'
958
1005
  end
@@ -976,6 +1023,7 @@ module Svix
976
1023
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
977
1024
  query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
978
1025
  query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
1026
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
979
1027
  query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
980
1028
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
981
1029
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
@@ -1025,6 +1073,7 @@ module Svix
1025
1073
  # @option opts [String] :iterator The iterator returned from a prior invocation
1026
1074
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1027
1075
  # @option opts [String] :channel Filter response based on the channel
1076
+ # @option opts [String] :tag Filter response based on the tag
1028
1077
  # @option opts [MessageStatus] :status Filter response based on the delivery status
1029
1078
  # @option opts [Time] :before Only include items created before a certain date
1030
1079
  # @option opts [Time] :after Only include items created after a certain date
@@ -1045,6 +1094,7 @@ module Svix
1045
1094
  # @option opts [String] :iterator The iterator returned from a prior invocation
1046
1095
  # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1047
1096
  # @option opts [String] :channel Filter response based on the channel
1097
+ # @option opts [String] :tag Filter response based on the tag
1048
1098
  # @option opts [MessageStatus] :status Filter response based on the delivery status
1049
1099
  # @option opts [Time] :before Only include items created before a certain date
1050
1100
  # @option opts [Time] :after Only include items created after a certain date
@@ -1119,6 +1169,15 @@ module Svix
1119
1169
  fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1120
1170
  end
1121
1171
 
1172
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length > 128
1173
+ 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.'
1174
+ end
1175
+
1176
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1177
+ if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'] !~ pattern
1178
+ fail ArgumentError, "invalid value for 'opts[:\"tag\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
1179
+ end
1180
+
1122
1181
  # resource path
1123
1182
  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))
1124
1183
 
@@ -1128,6 +1187,7 @@ module Svix
1128
1187
  query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
1129
1188
  query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
1130
1189
  query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
1190
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
1131
1191
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
1132
1192
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1133
1193
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
@@ -34,6 +34,8 @@ module Svix
34
34
 
35
35
  attr_accessor :status
36
36
 
37
+ attr_accessor :tags
38
+
37
39
  attr_accessor :timestamp
38
40
 
39
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,6 +48,7 @@ module Svix
46
48
  :'next_attempt' => :'nextAttempt',
47
49
  :'payload' => :'payload',
48
50
  :'status' => :'status',
51
+ :'tags' => :'tags',
49
52
  :'timestamp' => :'timestamp'
50
53
  }
51
54
  end
@@ -65,6 +68,7 @@ module Svix
65
68
  :'next_attempt' => :'Time',
66
69
  :'payload' => :'Object',
67
70
  :'status' => :'MessageStatus',
71
+ :'tags' => :'Array<String>',
68
72
  :'timestamp' => :'Time'
69
73
  }
70
74
  end
@@ -75,6 +79,7 @@ module Svix
75
79
  :'channels',
76
80
  :'event_id',
77
81
  :'next_attempt',
82
+ :'tags',
78
83
  ])
79
84
  end
80
85
 
@@ -123,6 +128,12 @@ module Svix
123
128
  self.status = attributes[:'status']
124
129
  end
125
130
 
131
+ if attributes.key?(:'tags')
132
+ if (value = attributes[:'tags']).is_a?(Array)
133
+ self.tags = value
134
+ end
135
+ end
136
+
126
137
  if attributes.key?(:'timestamp')
127
138
  self.timestamp = attributes[:'timestamp']
128
139
  end
@@ -255,6 +266,12 @@ module Svix
255
266
  @event_type = event_type
256
267
  end
257
268
 
269
+ # Custom attribute writer method with validation
270
+ # @param [Object] tags Value to be assigned
271
+ def tags=(tags)
272
+ @tags = tags
273
+ end
274
+
258
275
  # Checks equality by comparing each attribute.
259
276
  # @param [Object] Object to be compared
260
277
  def ==(o)
@@ -267,6 +284,7 @@ module Svix
267
284
  next_attempt == o.next_attempt &&
268
285
  payload == o.payload &&
269
286
  status == o.status &&
287
+ tags == o.tags &&
270
288
  timestamp == o.timestamp
271
289
  end
272
290
 
@@ -279,7 +297,7 @@ module Svix
279
297
  # Calculates hash code according to all attributes.
280
298
  # @return [Integer] Hash code
281
299
  def hash
282
- [channels, event_id, event_type, id, next_attempt, payload, status, timestamp].hash
300
+ [channels, event_id, event_type, id, next_attempt, payload, status, tags, timestamp].hash
283
301
  end
284
302
 
285
303
  # Builds the object from hash
@@ -35,6 +35,8 @@ module Svix
35
35
 
36
36
  attr_accessor :enable_integration_management
37
37
 
38
+ attr_accessor :enable_message_tags
39
+
38
40
  attr_accessor :enable_transformations
39
41
 
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -50,6 +52,7 @@ module Svix
50
52
  :'display_name' => :'displayName',
51
53
  :'enable_channels' => :'enableChannels',
52
54
  :'enable_integration_management' => :'enableIntegrationManagement',
55
+ :'enable_message_tags' => :'enableMessageTags',
53
56
  :'enable_transformations' => :'enableTransformations'
54
57
  }
55
58
  end
@@ -72,6 +75,7 @@ module Svix
72
75
  :'display_name' => :'String',
73
76
  :'enable_channels' => :'Boolean',
74
77
  :'enable_integration_management' => :'Boolean',
78
+ :'enable_message_tags' => :'Boolean',
75
79
  :'enable_transformations' => :'Boolean'
76
80
  }
77
81
  end
@@ -145,6 +149,12 @@ module Svix
145
149
  self.enable_integration_management = false
146
150
  end
147
151
 
152
+ if attributes.key?(:'enable_message_tags')
153
+ self.enable_message_tags = attributes[:'enable_message_tags']
154
+ else
155
+ self.enable_message_tags = false
156
+ end
157
+
148
158
  if attributes.key?(:'enable_transformations')
149
159
  self.enable_transformations = attributes[:'enable_transformations']
150
160
  else
@@ -245,6 +255,7 @@ module Svix
245
255
  display_name == o.display_name &&
246
256
  enable_channels == o.enable_channels &&
247
257
  enable_integration_management == o.enable_integration_management &&
258
+ enable_message_tags == o.enable_message_tags &&
248
259
  enable_transformations == o.enable_transformations
249
260
  end
250
261
 
@@ -257,7 +268,7 @@ module Svix
257
268
  # Calculates hash code according to all attributes.
258
269
  # @return [Integer] Hash code
259
270
  def hash
260
- [color_palette_dark, color_palette_light, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, display_name, enable_channels, enable_integration_management, enable_transformations].hash
271
+ [color_palette_dark, color_palette_light, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, display_name, enable_channels, enable_integration_management, enable_message_tags, enable_transformations].hash
261
272
  end
262
273
 
263
274
  # Builds the object from hash
@@ -29,6 +29,8 @@ module Svix
29
29
 
30
30
  attr_accessor :payload
31
31
 
32
+ attr_accessor :tags
33
+
32
34
  attr_accessor :timestamp
33
35
 
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,6 +41,7 @@ module Svix
39
41
  :'event_type' => :'eventType',
40
42
  :'id' => :'id',
41
43
  :'payload' => :'payload',
44
+ :'tags' => :'tags',
42
45
  :'timestamp' => :'timestamp'
43
46
  }
44
47
  end
@@ -56,6 +59,7 @@ module Svix
56
59
  :'event_type' => :'String',
57
60
  :'id' => :'String',
58
61
  :'payload' => :'Object',
62
+ :'tags' => :'Array<String>',
59
63
  :'timestamp' => :'Time'
60
64
  }
61
65
  end
@@ -65,6 +69,7 @@ module Svix
65
69
  Set.new([
66
70
  :'channels',
67
71
  :'event_id',
72
+ :'tags',
68
73
  ])
69
74
  end
70
75
 
@@ -105,6 +110,12 @@ module Svix
105
110
  self.payload = attributes[:'payload']
106
111
  end
107
112
 
113
+ if attributes.key?(:'tags')
114
+ if (value = attributes[:'tags']).is_a?(Array)
115
+ self.tags = value
116
+ end
117
+ end
118
+
108
119
  if attributes.key?(:'timestamp')
109
120
  self.timestamp = attributes[:'timestamp']
110
121
  end
@@ -232,6 +243,12 @@ module Svix
232
243
  @event_type = event_type
233
244
  end
234
245
 
246
+ # Custom attribute writer method with validation
247
+ # @param [Object] tags Value to be assigned
248
+ def tags=(tags)
249
+ @tags = tags
250
+ end
251
+
235
252
  # Checks equality by comparing each attribute.
236
253
  # @param [Object] Object to be compared
237
254
  def ==(o)
@@ -242,6 +259,7 @@ module Svix
242
259
  event_type == o.event_type &&
243
260
  id == o.id &&
244
261
  payload == o.payload &&
262
+ tags == o.tags &&
245
263
  timestamp == o.timestamp
246
264
  end
247
265
 
@@ -254,7 +272,7 @@ module Svix
254
272
  # Calculates hash code according to all attributes.
255
273
  # @return [Integer] Hash code
256
274
  def hash
257
- [channels, event_id, event_type, id, payload, timestamp].hash
275
+ [channels, event_id, event_type, id, payload, tags, timestamp].hash
258
276
  end
259
277
 
260
278
  # Builds the object from hash
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "1.16.0"
4
+ VERSION = "1.17.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus