svix 0.77.0 → 0.78.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc4ed3e070078f73e713cd5e6dec2ed2b3ce8716b4460fa01cd091a13eb5a88b
4
- data.tar.gz: 4139a45d397e5186b793f4d4f2fdf1ecb11e9241a03d46f120facb80a6971461
3
+ metadata.gz: acf6ba05165f4558afc10818384e88cc631a01f7ab2404c68bfc22b1138f5974
4
+ data.tar.gz: ec392fa6436bb9a1b5117f8c2bfebc6eeaddcd9efd06842ed8bd7b355c798796
5
5
  SHA512:
6
- metadata.gz: dff04125709a9541885a6814b3e00492227732f25a38d6455c183c732e3ed10657123b645fdabcebdea7068cd018e3f320ddd0d9b669171cdeabb8505bddad14
7
- data.tar.gz: 513a6495d589704093708356ed6cee3702d4d5d47cd6c9a26995920761701428651d0157b3bbc29b407c129c6a9b0ce497b715f3d7621de4d42519df10cad0a3
6
+ metadata.gz: c5a0ade041c5f182abf910d0e104910310014f2cc01abf5e6c46c47e7d3f5b0c74aba253995375db2337b5c5ba00c9bacc4b780462b7e4b5d9884eec38ebeb19
7
+ data.tar.gz: eb7b77a4f7c556d8ffe05eb2f7336cfc55cc3643a7f3c2d95290a90486b91d5400241ec76ea2fcca57b142f02074642922e3e9029a699119594ab357f5266e19
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.77.0)
4
+ svix (0.78.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -700,6 +700,7 @@ module Svix
700
700
  # @param [Hash] opts the optional parameters
701
701
  # @option opts [String] :iterator
702
702
  # @option opts [Integer] :limit (default to 50)
703
+ # @option opts [Ordering] :order
703
704
  # @option opts [String] :idempotency_key The request's idempotency key
704
705
  # @return [ListResponseEndpointOut]
705
706
  def list_endpoints_api_v1_app_app_id_endpoint_get(app_id, opts = {})
@@ -713,6 +714,7 @@ module Svix
713
714
  # @param [Hash] opts the optional parameters
714
715
  # @option opts [String] :iterator
715
716
  # @option opts [Integer] :limit
717
+ # @option opts [Ordering] :order
716
718
  # @option opts [String] :idempotency_key The request's idempotency key
717
719
  # @return [Array<(ListResponseEndpointOut, Integer, Hash)>] ListResponseEndpointOut data, response status code and response headers
718
720
  def list_endpoints_api_v1_app_app_id_endpoint_get_with_http_info(app_id, opts = {})
@@ -747,6 +749,7 @@ module Svix
747
749
  query_params = opts[:query_params] || {}
748
750
  query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
749
751
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
752
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
750
753
 
751
754
  # header parameters
752
755
  header_params = opts[:header_params] || {}
@@ -88,9 +88,10 @@ module Svix
88
88
  end
89
89
 
90
90
  # Archive Event Type
91
- # Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post).
91
+ # Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post). If `expunge=true` is set then the event type is deleted instead of archived. This can only be used in development environments.
92
92
  # @param event_type_name [String]
93
93
  # @param [Hash] opts the optional parameters
94
+ # @option opts [Boolean] :expunge (default to false)
94
95
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
95
96
  # @return [nil]
96
97
  def delete_event_type_api_v1_event_type_event_type_name_delete(event_type_name, opts = {})
@@ -99,9 +100,10 @@ module Svix
99
100
  end
100
101
 
101
102
  # Archive Event Type
102
- # Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post).
103
+ # Archive an event type. Endpoints already configured to filter on an event type will continue to do so after archival. However, new messages can not be sent with it and endpoints can not filter on it. An event type can be unarchived with the [create operation](#operation/create_event_type_api_v1_event_type__post). If &#x60;expunge&#x3D;true&#x60; is set then the event type is deleted instead of archived. This can only be used in development environments.
103
104
  # @param event_type_name [String]
104
105
  # @param [Hash] opts the optional parameters
106
+ # @option opts [Boolean] :expunge
105
107
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
106
108
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
109
  def delete_event_type_api_v1_event_type_event_type_name_delete_with_http_info(event_type_name, opts = {})
@@ -126,6 +128,7 @@ module Svix
126
128
 
127
129
  # query parameters
128
130
  query_params = opts[:query_params] || {}
131
+ query_params[:'expunge'] = opts[:'expunge'] if !opts[:'expunge'].nil?
129
132
 
130
133
  # header parameters
131
134
  header_params = opts[:header_params] || {}
@@ -21,12 +21,15 @@ module Svix
21
21
 
22
22
  attr_accessor :iterator
23
23
 
24
+ attr_accessor :prev_iterator
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'data' => :'data',
28
30
  :'done' => :'done',
29
- :'iterator' => :'iterator'
31
+ :'iterator' => :'iterator',
32
+ :'prev_iterator' => :'prevIterator'
30
33
  }
31
34
  end
32
35
 
@@ -40,14 +43,16 @@ module Svix
40
43
  {
41
44
  :'data' => :'Array<ApplicationOut>',
42
45
  :'done' => :'Boolean',
43
- :'iterator' => :'String'
46
+ :'iterator' => :'String',
47
+ :'prev_iterator' => :'String'
44
48
  }
45
49
  end
46
50
 
47
51
  # List of attributes with nullable: true
48
52
  def self.openapi_nullable
49
53
  Set.new([
50
- :'iterator'
54
+ :'iterator',
55
+ :'prev_iterator'
51
56
  ])
52
57
  end
53
58
 
@@ -79,6 +84,10 @@ module Svix
79
84
  if attributes.key?(:'iterator')
80
85
  self.iterator = attributes[:'iterator']
81
86
  end
87
+
88
+ if attributes.key?(:'prev_iterator')
89
+ self.prev_iterator = attributes[:'prev_iterator']
90
+ end
82
91
  end
83
92
 
84
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +120,8 @@ module Svix
111
120
  self.class == o.class &&
112
121
  data == o.data &&
113
122
  done == o.done &&
114
- iterator == o.iterator
123
+ iterator == o.iterator &&
124
+ prev_iterator == o.prev_iterator
115
125
  end
116
126
 
117
127
  # @see the `==` method
@@ -123,7 +133,7 @@ module Svix
123
133
  # Calculates hash code according to all attributes.
124
134
  # @return [Integer] Hash code
125
135
  def hash
126
- [data, done, iterator].hash
136
+ [data, done, iterator, prev_iterator].hash
127
137
  end
128
138
 
129
139
  # Builds the object from hash
@@ -21,12 +21,15 @@ module Svix
21
21
 
22
22
  attr_accessor :iterator
23
23
 
24
+ attr_accessor :prev_iterator
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'data' => :'data',
28
30
  :'done' => :'done',
29
- :'iterator' => :'iterator'
31
+ :'iterator' => :'iterator',
32
+ :'prev_iterator' => :'prevIterator'
30
33
  }
31
34
  end
32
35
 
@@ -40,14 +43,16 @@ module Svix
40
43
  {
41
44
  :'data' => :'Array<EndpointOut>',
42
45
  :'done' => :'Boolean',
43
- :'iterator' => :'String'
46
+ :'iterator' => :'String',
47
+ :'prev_iterator' => :'String'
44
48
  }
45
49
  end
46
50
 
47
51
  # List of attributes with nullable: true
48
52
  def self.openapi_nullable
49
53
  Set.new([
50
- :'iterator'
54
+ :'iterator',
55
+ :'prev_iterator'
51
56
  ])
52
57
  end
53
58
 
@@ -79,6 +84,10 @@ module Svix
79
84
  if attributes.key?(:'iterator')
80
85
  self.iterator = attributes[:'iterator']
81
86
  end
87
+
88
+ if attributes.key?(:'prev_iterator')
89
+ self.prev_iterator = attributes[:'prev_iterator']
90
+ end
82
91
  end
83
92
 
84
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +120,8 @@ module Svix
111
120
  self.class == o.class &&
112
121
  data == o.data &&
113
122
  done == o.done &&
114
- iterator == o.iterator
123
+ iterator == o.iterator &&
124
+ prev_iterator == o.prev_iterator
115
125
  end
116
126
 
117
127
  # @see the `==` method
@@ -123,7 +133,7 @@ module Svix
123
133
  # Calculates hash code according to all attributes.
124
134
  # @return [Integer] Hash code
125
135
  def hash
126
- [data, done, iterator].hash
136
+ [data, done, iterator, prev_iterator].hash
127
137
  end
128
138
 
129
139
  # Builds the object from hash
@@ -0,0 +1,37 @@
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 user on your platform. - `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/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## 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
+ class Ordering
18
+ ASCENDING = "ascending".freeze
19
+ DESCENDING = "descending".freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ constantValues = Ordering.constants.select { |c| Ordering::const_get(c) == value }
33
+ raise "Invalid ENUM value #{value} for class #Ordering" if constantValues.empty?
34
+ value
35
+ end
36
+ end
37
+ end
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "0.77.0"
4
+ VERSION = "0.78.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: 0.77.0
4
+ version: 0.78.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-07 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -181,6 +181,7 @@ files:
181
181
  - lib/svix/models/message_in.rb
182
182
  - lib/svix/models/message_out.rb
183
183
  - lib/svix/models/message_status.rb
184
+ - lib/svix/models/ordering.rb
184
185
  - lib/svix/models/recover_in.rb
185
186
  - lib/svix/models/replay_in.rb
186
187
  - lib/svix/models/settings_in.rb