svix 0.21.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -3
  3. data/README.md +16 -3
  4. data/lib/svix/api/application_api.rb +386 -0
  5. data/lib/svix/api/authentication_api.rb +155 -0
  6. data/lib/svix/api/endpoint_api.rb +980 -0
  7. data/lib/svix/api/event_type_api.rb +454 -0
  8. data/lib/svix/api/health_api.rb +77 -0
  9. data/lib/svix/api/message_api.rb +289 -0
  10. data/lib/svix/api/message_attempt_api.rb +678 -0
  11. data/lib/svix/api_client.rb +399 -0
  12. data/lib/svix/api_error.rb +57 -0
  13. data/lib/svix/application_api.rb +29 -0
  14. data/lib/svix/authentication_api.rb +17 -0
  15. data/lib/svix/configuration.rb +277 -0
  16. data/lib/svix/endpoint_api.rb +43 -0
  17. data/{src → lib}/svix/errors.rb +0 -0
  18. data/lib/svix/event_type_api.rb +25 -0
  19. data/lib/svix/internal.rb +16 -0
  20. data/lib/svix/message_api.rb +21 -0
  21. data/lib/svix/message_attempt_api.rb +33 -0
  22. data/lib/svix/models/application_in.rb +277 -0
  23. data/lib/svix/models/application_out.rb +319 -0
  24. data/lib/svix/models/dashboard_access_out.rb +265 -0
  25. data/lib/svix/models/endpoint_created_event.rb +269 -0
  26. data/lib/svix/models/endpoint_created_event_data.rb +282 -0
  27. data/lib/svix/models/endpoint_deleted_event.rb +269 -0
  28. data/lib/svix/models/endpoint_deleted_event_data.rb +282 -0
  29. data/lib/svix/models/endpoint_disabled_event.rb +269 -0
  30. data/lib/svix/models/endpoint_disabled_event_data.rb +296 -0
  31. data/lib/svix/models/endpoint_in.rb +394 -0
  32. data/lib/svix/models/endpoint_message_out.rb +363 -0
  33. data/lib/svix/models/endpoint_out.rb +409 -0
  34. data/lib/svix/models/endpoint_secret_out.rb +245 -0
  35. data/lib/svix/models/endpoint_secret_rotate_in.rb +236 -0
  36. data/lib/svix/models/endpoint_stats.rb +265 -0
  37. data/lib/svix/models/endpoint_update.rb +367 -0
  38. data/lib/svix/models/endpoint_updated_event.rb +269 -0
  39. data/lib/svix/models/endpoint_updated_event_data.rb +282 -0
  40. data/lib/svix/models/endpointd_updated_event.rb +269 -0
  41. data/lib/svix/models/event_example_in.rb +253 -0
  42. data/lib/svix/models/event_type_example_out.rb +223 -0
  43. data/lib/svix/models/event_type_in.rb +290 -0
  44. data/lib/svix/models/event_type_out.rb +318 -0
  45. data/lib/svix/models/event_type_schema_in.rb +224 -0
  46. data/lib/svix/models/event_type_update.rb +246 -0
  47. data/lib/svix/models/http_error_out.rb +237 -0
  48. data/lib/svix/models/http_validation_error.rb +220 -0
  49. data/lib/svix/models/list_response_application_out.rb +248 -0
  50. data/lib/svix/models/list_response_endpoint_message_out.rb +248 -0
  51. data/lib/svix/models/list_response_endpoint_out.rb +248 -0
  52. data/lib/svix/models/list_response_event_type_out.rb +248 -0
  53. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +248 -0
  54. data/lib/svix/models/list_response_message_attempt_out.rb +248 -0
  55. data/lib/svix/models/list_response_message_endpoint_out.rb +248 -0
  56. data/lib/svix/models/list_response_message_out.rb +248 -0
  57. data/lib/svix/models/message_attempt_endpoint_out.rb +293 -0
  58. data/lib/svix/models/message_attempt_exhausted_event.rb +269 -0
  59. data/lib/svix/models/message_attempt_exhausted_event_data.rb +310 -0
  60. data/lib/svix/models/message_attempt_failed_event.rb +251 -0
  61. data/lib/svix/models/message_attempt_out.rb +307 -0
  62. data/lib/svix/models/message_attempt_trigger_type.rb +37 -0
  63. data/lib/svix/models/message_endpoint_out.rb +418 -0
  64. data/lib/svix/models/message_in.rb +312 -0
  65. data/lib/svix/models/message_out.rb +340 -0
  66. data/lib/svix/models/message_status.rb +39 -0
  67. data/lib/svix/models/recover_in.rb +223 -0
  68. data/lib/svix/models/validation_error.rb +253 -0
  69. data/lib/svix/models/webhook_types.rb +280 -0
  70. data/lib/svix/svix.rb +43 -0
  71. data/{src → lib}/svix/util.rb +1 -1
  72. data/{src → lib}/svix/version.rb +1 -1
  73. data/{src → lib}/svix/webhook.rb +7 -2
  74. data/lib/svix.rb +78 -0
  75. data/svix.gemspec +17 -7
  76. metadata +96 -11
  77. data/.gitignore +0 -9
  78. data/src/svix.rb +0 -8
@@ -0,0 +1,280 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each of your users. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
5
+
6
+ The version of the OpenAPI document: 1.4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ # All of the webhook types that we support
18
+ class WebhookTypes
19
+ attr_accessor :a
20
+
21
+ attr_accessor :b
22
+
23
+ attr_accessor :c
24
+
25
+ attr_accessor :d
26
+
27
+ attr_accessor :e
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'a' => :'a',
33
+ :'b' => :'b',
34
+ :'c' => :'c',
35
+ :'d' => :'d',
36
+ :'e' => :'e'
37
+ }
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'a' => :'EndpointDisabledEvent',
49
+ :'b' => :'EndpointCreatedEvent',
50
+ :'c' => :'EndpointUpdatedEvent',
51
+ :'d' => :'EndpointDeletedEvent',
52
+ :'e' => :'MessageAttemptExhaustedEvent'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::WebhookTypes` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::WebhookTypes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'a')
78
+ self.a = attributes[:'a']
79
+ end
80
+
81
+ if attributes.key?(:'b')
82
+ self.b = attributes[:'b']
83
+ end
84
+
85
+ if attributes.key?(:'c')
86
+ self.c = attributes[:'c']
87
+ end
88
+
89
+ if attributes.key?(:'d')
90
+ self.d = attributes[:'d']
91
+ end
92
+
93
+ if attributes.key?(:'e')
94
+ self.e = attributes[:'e']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ if @a.nil?
103
+ invalid_properties.push('invalid value for "a", a cannot be nil.')
104
+ end
105
+
106
+ if @b.nil?
107
+ invalid_properties.push('invalid value for "b", b cannot be nil.')
108
+ end
109
+
110
+ if @c.nil?
111
+ invalid_properties.push('invalid value for "c", c cannot be nil.')
112
+ end
113
+
114
+ if @d.nil?
115
+ invalid_properties.push('invalid value for "d", d cannot be nil.')
116
+ end
117
+
118
+ if @e.nil?
119
+ invalid_properties.push('invalid value for "e", e cannot be nil.')
120
+ end
121
+
122
+ invalid_properties
123
+ end
124
+
125
+ # Check to see if the all the properties in the model are valid
126
+ # @return true if the model is valid
127
+ def valid?
128
+ return false if @a.nil?
129
+ return false if @b.nil?
130
+ return false if @c.nil?
131
+ return false if @d.nil?
132
+ return false if @e.nil?
133
+ true
134
+ end
135
+
136
+ # Checks equality by comparing each attribute.
137
+ # @param [Object] Object to be compared
138
+ def ==(o)
139
+ return true if self.equal?(o)
140
+ self.class == o.class &&
141
+ a == o.a &&
142
+ b == o.b &&
143
+ c == o.c &&
144
+ d == o.d &&
145
+ e == o.e
146
+ end
147
+
148
+ # @see the `==` method
149
+ # @param [Object] Object to be compared
150
+ def eql?(o)
151
+ self == o
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Integer] Hash code
156
+ def hash
157
+ [a, b, c, d, e].hash
158
+ end
159
+
160
+ # Builds the object from hash
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ # @return [Object] Returns the model itself
163
+ def self.build_from_hash(attributes)
164
+ new.build_from_hash(attributes)
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ self.class.openapi_types.each_pair do |key, type|
173
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
174
+ self.send("#{key}=", nil)
175
+ elsif type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
179
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
180
+ end
181
+ elsif !attributes[self.class.attribute_map[key]].nil?
182
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
+ end
184
+ end
185
+
186
+ self
187
+ end
188
+
189
+ # Deserializes the data based on type
190
+ # @param string type Data type
191
+ # @param string value Value to be deserialized
192
+ # @return [Object] Deserialized data
193
+ def _deserialize(type, value)
194
+ case type.to_sym
195
+ when :Time
196
+ Time.parse(value)
197
+ when :Date
198
+ Date.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :Boolean
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ # models (e.g. Pet) or oneOf
227
+ klass = Svix.const_get(type)
228
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
229
+ end
230
+ end
231
+
232
+ # Returns the string representation of the object
233
+ # @return [String] String presentation of the object
234
+ def to_s
235
+ to_hash.to_s
236
+ end
237
+
238
+ # to_body is an alias to to_hash (backward compatibility)
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_body
241
+ to_hash
242
+ end
243
+
244
+ # Returns the object in the form of hash
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_hash
247
+ hash = {}
248
+ self.class.attribute_map.each_pair do |attr, param|
249
+ value = self.send(attr)
250
+ if value.nil?
251
+ is_nullable = self.class.openapi_nullable.include?(attr)
252
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
253
+ end
254
+
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ # Outputs non-array value in the form of hash
261
+ # For object, use to_hash. Otherwise, just return the value
262
+ # @param [Object] value Any valid value
263
+ # @return [Hash] Returns the value in the form of hash
264
+ def _to_hash(value)
265
+ if value.is_a?(Array)
266
+ value.compact.map { |v| _to_hash(v) }
267
+ elsif value.is_a?(Hash)
268
+ {}.tap do |hash|
269
+ value.each { |k, v| hash[k] = _to_hash(v) }
270
+ end
271
+ elsif value.respond_to? :to_hash
272
+ value.to_hash
273
+ else
274
+ value
275
+ end
276
+ end
277
+
278
+ end
279
+
280
+ end
data/lib/svix/svix.rb ADDED
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Svix
4
+ class SvixOptions
5
+ attr_accessor :debug
6
+ attr_accessor :debug_url
7
+
8
+ def initialize(debug = false, debug_url = "https://api.svix.com")
9
+ @debug=debug
10
+ @debug_url=debug_url
11
+ end
12
+ end
13
+
14
+ class Client
15
+ attr_accessor :application
16
+ attr_accessor :authentication
17
+ attr_accessor :endpoint
18
+ attr_accessor :event_type
19
+ attr_accessor :message
20
+ attr_accessor :message_attempt
21
+
22
+ def initialize(auth_token, options = SvixOptions.new)
23
+ uri = URI(options.debug_url)
24
+
25
+ configuration = Configuration.new
26
+ configuration.debugging = options.debug
27
+ configuration.scheme = uri.scheme
28
+ configuration.host = uri.port ? "#{uri.host}:#{uri.port}" : uri.host
29
+ configuration.access_token = auth_token
30
+ configuration.server_index = nil
31
+
32
+ api_client = ApiClient.new(configuration)
33
+ api_client.user_agent = "svix-libs/#{VERSION}/ruby"
34
+
35
+ @application = ApplicationAPI.new(api_client)
36
+ @authentication = AuthenticationAPI.new(api_client)
37
+ @endpoint = EndpointAPI.new(api_client)
38
+ @event_type = EventTypeAPI.new(api_client)
39
+ @message = MessageAPI.new(api_client)
40
+ @message_attempt = MessageAttemptAPI.new(api_client)
41
+ end
42
+ end
43
+ end
@@ -34,4 +34,4 @@ module Svix
34
34
  a.length == b.length && fixed_length_secure_compare(a, b)
35
35
  end
36
36
  module_function :secure_compare
37
- end
37
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "0.21.0"
4
+ VERSION = "0.36.0"
5
5
  end
@@ -16,7 +16,12 @@ module Svix
16
16
  msgSignature = headers["svix-signature"]
17
17
  msgTimestamp = headers["svix-timestamp"]
18
18
  if !msgSignature || !msgId || !msgTimestamp
19
- raise WebhookVerificationError, "Missing required headers"
19
+ msgId = headers["webhook-id"]
20
+ msgSignature = headers["webhook-signature"]
21
+ msgTimestamp = headers["webhook-timestamp"]
22
+ if !msgSignature || !msgId || !msgTimestamp
23
+ raise WebhookVerificationError, "Missing required headers"
24
+ end
20
25
  end
21
26
 
22
27
  verify_timestamp(msgTimestamp)
@@ -29,7 +34,7 @@ module Svix
29
34
  if version != "v1"
30
35
  next
31
36
  end
32
- if Svix.secure_compare(signature, expectedSignature)
37
+ if ::Svix::secure_compare(signature, expectedSignature)
33
38
  return JSON.parse(payload, symbolize_names: true)
34
39
  end
35
40
  end
data/lib/svix.rb ADDED
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+ require "openssl"
5
+ require "Base64"
6
+
7
+ # API
8
+ require "svix/api/application_api"
9
+ require "svix/api/authentication_api"
10
+ require "svix/api/endpoint_api"
11
+ require "svix/api/event_type_api"
12
+ require "svix/api/health_api"
13
+ require "svix/api/message_api"
14
+ require "svix/api/message_attempt_api"
15
+
16
+ # Models
17
+ require "svix/models/application_in"
18
+ require "svix/models/application_out"
19
+ require "svix/models/dashboard_access_out"
20
+ require "svix/models/endpoint_created_event_data"
21
+ require "svix/models/endpoint_created_event"
22
+ require "svix/models/endpoint_deleted_event_data"
23
+ require "svix/models/endpoint_deleted_event"
24
+ require "svix/models/endpoint_disabled_event_data"
25
+ require "svix/models/endpoint_disabled_event"
26
+ require "svix/models/endpoint_in"
27
+ require "svix/models/endpoint_message_out"
28
+ require "svix/models/endpoint_out"
29
+ require "svix/models/endpoint_secret_out"
30
+ require "svix/models/endpoint_secret_rotate_in"
31
+ require "svix/models/endpoint_stats"
32
+ require "svix/models/endpoint_update"
33
+ require "svix/models/endpoint_updated_event_data"
34
+ require "svix/models/endpoint_updated_event"
35
+ require "svix/models/event_example_in"
36
+ require "svix/models/event_type_in"
37
+ require "svix/models/event_type_out"
38
+ require "svix/models/event_type_update"
39
+ require "svix/models/http_error_out"
40
+ require "svix/models/http_validation_error"
41
+ require "svix/models/list_response_application_out"
42
+ require "svix/models/list_response_endpoint_message_out"
43
+ require "svix/models/list_response_endpoint_out"
44
+ require "svix/models/list_response_event_type_out"
45
+ require "svix/models/list_response_message_attempt_endpoint_out"
46
+ require "svix/models/list_response_message_attempt_out"
47
+ require "svix/models/list_response_message_endpoint_out"
48
+ require "svix/models/list_response_message_out"
49
+ require "svix/models/message_attempt_endpoint_out"
50
+ require "svix/models/message_attempt_exhausted_event_data"
51
+ require "svix/models/message_attempt_exhausted_event"
52
+ require "svix/models/message_attempt_failed_event"
53
+ require "svix/models/message_attempt_out"
54
+ require "svix/models/message_attempt_trigger_type"
55
+ require "svix/models/message_endpoint_out"
56
+ require "svix/models/message_in"
57
+ require "svix/models/message_out"
58
+ require "svix/models/message_status"
59
+ require "svix/models/recover_in"
60
+ require "svix/models/validation_error"
61
+ require "svix/models/webhook_types"
62
+
63
+ # Core
64
+ require "svix/api_client"
65
+ require "svix/api_error"
66
+ require "svix/application_api"
67
+ require "svix/authentication_api"
68
+ require "svix/configuration"
69
+ require "svix/endpoint_api"
70
+ require "svix/errors"
71
+ require "svix/event_type_api"
72
+ require "svix/message_api"
73
+ require "svix/message_attempt_api"
74
+ require "svix/svix"
75
+ require "svix/util"
76
+ require "svix/version"
77
+ require "svix/webhook"
78
+ require "svix/internal"
data/svix.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- lib = File.expand_path("../src", __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "svix/version"
5
5
 
@@ -29,15 +29,25 @@ Gem::Specification.new do |spec|
29
29
  end
30
30
 
31
31
  # Specify which files should be added to the gem when it is released.
32
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
34
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
35
- end
32
+ ignored = Regexp.union(
33
+ /\A\.openapi-generator/,
34
+ /\Aspec/,
35
+ /\Apkg/,
36
+ /\Atemplates/,
37
+ /\A.gitignore/,
38
+ /\A.openapi-generator-ignore/,
39
+ /\Aopenapi-generator-config.json/,
40
+ /.gem\z/
41
+ )
42
+ spec.files = Dir['**/*'].reject {|f| !File.file?(f) || ignored.match(f) }
43
+
36
44
  spec.bindir = "exe"
37
45
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
- spec.require_paths = ["src"]
46
+ spec.require_paths = ["lib"]
47
+
48
+ spec.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
39
49
 
40
50
  spec.add_development_dependency "bundler", "~> 1.17"
41
- spec.add_development_dependency "rake", "~> 10.0"
51
+ spec.add_development_dependency "rake", "~> 13.0"
42
52
  spec.add_development_dependency "rspec", "~> 3.2"
43
53
  end
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-13 00:00:00.000000000 Z
11
+ date: 2021-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: typhoeus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.1
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: bundler
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +50,14 @@ dependencies:
30
50
  requirements:
31
51
  - - "~>"
32
52
  - !ruby/object:Gem::Version
33
- version: '10.0'
53
+ version: '13.0'
34
54
  type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
58
  - - "~>"
39
59
  - !ruby/object:Gem::Version
40
- version: '10.0'
60
+ version: '13.0'
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: rspec
43
63
  requirement: !ruby/object:Gem::Requirement
@@ -59,16 +79,81 @@ executables: []
59
79
  extensions: []
60
80
  extra_rdoc_files: []
61
81
  files:
62
- - ".gitignore"
63
82
  - Gemfile
64
83
  - Gemfile.lock
65
84
  - README.md
66
85
  - Rakefile
67
- - src/svix.rb
68
- - src/svix/errors.rb
69
- - src/svix/util.rb
70
- - src/svix/version.rb
71
- - src/svix/webhook.rb
86
+ - lib/svix.rb
87
+ - lib/svix/api/application_api.rb
88
+ - lib/svix/api/authentication_api.rb
89
+ - lib/svix/api/endpoint_api.rb
90
+ - lib/svix/api/event_type_api.rb
91
+ - lib/svix/api/health_api.rb
92
+ - lib/svix/api/message_api.rb
93
+ - lib/svix/api/message_attempt_api.rb
94
+ - lib/svix/api_client.rb
95
+ - lib/svix/api_error.rb
96
+ - lib/svix/application_api.rb
97
+ - lib/svix/authentication_api.rb
98
+ - lib/svix/configuration.rb
99
+ - lib/svix/endpoint_api.rb
100
+ - lib/svix/errors.rb
101
+ - lib/svix/event_type_api.rb
102
+ - lib/svix/internal.rb
103
+ - lib/svix/message_api.rb
104
+ - lib/svix/message_attempt_api.rb
105
+ - lib/svix/models/application_in.rb
106
+ - lib/svix/models/application_out.rb
107
+ - lib/svix/models/dashboard_access_out.rb
108
+ - lib/svix/models/endpoint_created_event.rb
109
+ - lib/svix/models/endpoint_created_event_data.rb
110
+ - lib/svix/models/endpoint_deleted_event.rb
111
+ - lib/svix/models/endpoint_deleted_event_data.rb
112
+ - lib/svix/models/endpoint_disabled_event.rb
113
+ - lib/svix/models/endpoint_disabled_event_data.rb
114
+ - lib/svix/models/endpoint_in.rb
115
+ - lib/svix/models/endpoint_message_out.rb
116
+ - lib/svix/models/endpoint_out.rb
117
+ - lib/svix/models/endpoint_secret_out.rb
118
+ - lib/svix/models/endpoint_secret_rotate_in.rb
119
+ - lib/svix/models/endpoint_stats.rb
120
+ - lib/svix/models/endpoint_update.rb
121
+ - lib/svix/models/endpoint_updated_event.rb
122
+ - lib/svix/models/endpoint_updated_event_data.rb
123
+ - lib/svix/models/endpointd_updated_event.rb
124
+ - lib/svix/models/event_example_in.rb
125
+ - lib/svix/models/event_type_example_out.rb
126
+ - lib/svix/models/event_type_in.rb
127
+ - lib/svix/models/event_type_out.rb
128
+ - lib/svix/models/event_type_schema_in.rb
129
+ - lib/svix/models/event_type_update.rb
130
+ - lib/svix/models/http_error_out.rb
131
+ - lib/svix/models/http_validation_error.rb
132
+ - lib/svix/models/list_response_application_out.rb
133
+ - lib/svix/models/list_response_endpoint_message_out.rb
134
+ - lib/svix/models/list_response_endpoint_out.rb
135
+ - lib/svix/models/list_response_event_type_out.rb
136
+ - lib/svix/models/list_response_message_attempt_endpoint_out.rb
137
+ - lib/svix/models/list_response_message_attempt_out.rb
138
+ - lib/svix/models/list_response_message_endpoint_out.rb
139
+ - lib/svix/models/list_response_message_out.rb
140
+ - lib/svix/models/message_attempt_endpoint_out.rb
141
+ - lib/svix/models/message_attempt_exhausted_event.rb
142
+ - lib/svix/models/message_attempt_exhausted_event_data.rb
143
+ - lib/svix/models/message_attempt_failed_event.rb
144
+ - lib/svix/models/message_attempt_out.rb
145
+ - lib/svix/models/message_attempt_trigger_type.rb
146
+ - lib/svix/models/message_endpoint_out.rb
147
+ - lib/svix/models/message_in.rb
148
+ - lib/svix/models/message_out.rb
149
+ - lib/svix/models/message_status.rb
150
+ - lib/svix/models/recover_in.rb
151
+ - lib/svix/models/validation_error.rb
152
+ - lib/svix/models/webhook_types.rb
153
+ - lib/svix/svix.rb
154
+ - lib/svix/util.rb
155
+ - lib/svix/version.rb
156
+ - lib/svix/webhook.rb
72
157
  - svix.gemspec
73
158
  homepage: https://www.svix.com
74
159
  licenses:
@@ -81,7 +166,7 @@ metadata:
81
166
  post_install_message:
82
167
  rdoc_options: []
83
168
  require_paths:
84
- - src
169
+ - lib
85
170
  required_ruby_version: !ruby/object:Gem::Requirement
86
171
  requirements:
87
172
  - - ">="
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- *.gem
data/src/svix.rb DELETED
@@ -1,8 +0,0 @@
1
- require "json"
2
- require "openssl"
3
- require 'Base64'
4
-
5
- require "svix/version"
6
- require "svix/errors"
7
- require "svix/webhook"
8
- require "svix/util"