svix 1.40.0 → 1.41.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: 922513d22c9531d05660266e60b390bac52a0c1a03858ef38176d0b0041dcc3e
4
- data.tar.gz: 1de75cc70e17bfcf03a5df92d3820d32883462b09624cd893647f2c2ddfc02a8
3
+ metadata.gz: 1c03e03208f22008f503a1190ee012447474c99f5343f93b133cc991934b2d71
4
+ data.tar.gz: f091fad8d9de7707bd6e60193dc82a9eeaddce4173ba71e8ba284e58ce29e50d
5
5
  SHA512:
6
- metadata.gz: 3d5b8a1484517b906d0925acfdc0e8b29f6433fe37fff31eeb9267626a5bbfd7b92c496a8e6b988ce4e49e0276e3bfe887281ce05a30090768f8f725dc6a2154
7
- data.tar.gz: 4ce1276759425213c6d337235b5b70f2381dcc987b68cbd32f9c8be0f3dd3cccae7a41210a8d475a6b99aabc07b405c88d79f36274761d93afd2238f6a967ccb
6
+ metadata.gz: ac4e6e56524f4d52e2e3992755e22adaab6c1c6293e4ddb452f02bbd64cd682fe41df8d82f566e2c422a7b57c32eeb1037aa96e8713ed2bb82d9618d82a3cc49
7
+ data.tar.gz: fef4d0656e9390b93d9c574c1ed0441c7a907987ccff447277b424ec0022f2a7e4dac25d7ff161a2ad2bca030ae4d12f11fdd477f9f2f970312606d1f401080c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.40.0)
4
+ svix (1.41.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -90,8 +90,8 @@ module Svix
90
90
  return data, status_code, headers
91
91
  end
92
92
 
93
- # Append To Stream
94
- # Creates streaming events.
93
+ # Create Events
94
+ # Creates events on the Stream.
95
95
  # @param stream_id [String]
96
96
  # @param create_stream_in [CreateStreamIn]
97
97
  # @param [Hash] opts the optional parameters
@@ -102,8 +102,8 @@ module Svix
102
102
  data
103
103
  end
104
104
 
105
- # Append To Stream
106
- # Creates streaming events.
105
+ # Create Events
106
+ # Creates events on the Stream.
107
107
  # @param stream_id [String]
108
108
  # @param create_stream_in [CreateStreamIn]
109
109
  # @param [Hash] opts the optional parameters
@@ -15,6 +15,7 @@ require 'time'
15
15
 
16
16
  module Svix
17
17
  class AppUsageStatsIn
18
+ # Specific app IDs or UIDs to aggregate stats for. Note that if none of the given IDs or UIDs are resolved, a 422 response will be given.
18
19
  attr_accessor :app_ids
19
20
 
20
21
  attr_accessor :since
@@ -21,6 +21,9 @@ module Svix
21
21
 
22
22
  attr_accessor :task
23
23
 
24
+ # Any app IDs or UIDs received in the request that weren't found. Stats will be produced for all the others.
25
+ attr_accessor :unresolved_app_ids
26
+
24
27
  class EnumAttributeValidator
25
28
  attr_reader :datatype
26
29
  attr_reader :allowable_values
@@ -48,7 +51,8 @@ module Svix
48
51
  {
49
52
  :'id' => :'id',
50
53
  :'status' => :'status',
51
- :'task' => :'task'
54
+ :'task' => :'task',
55
+ :'unresolved_app_ids' => :'unresolvedAppIds'
52
56
  }
53
57
  end
54
58
 
@@ -62,7 +66,8 @@ module Svix
62
66
  {
63
67
  :'id' => :'String',
64
68
  :'status' => :'BackgroundTaskStatus',
65
- :'task' => :'BackgroundTaskType'
69
+ :'task' => :'BackgroundTaskType',
70
+ :'unresolved_app_ids' => :'Array<String>'
66
71
  }
67
72
  end
68
73
 
@@ -104,6 +109,14 @@ module Svix
104
109
  else
105
110
  self.task = nil
106
111
  end
112
+
113
+ if attributes.key?(:'unresolved_app_ids')
114
+ if (value = attributes[:'unresolved_app_ids']).is_a?(Array)
115
+ self.unresolved_app_ids = value
116
+ end
117
+ else
118
+ self.unresolved_app_ids = nil
119
+ end
107
120
  end
108
121
 
109
122
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,6 +136,10 @@ module Svix
123
136
  invalid_properties.push('invalid value for "task", task cannot be nil.')
124
137
  end
125
138
 
139
+ if @unresolved_app_ids.nil?
140
+ invalid_properties.push('invalid value for "unresolved_app_ids", unresolved_app_ids cannot be nil.')
141
+ end
142
+
126
143
  invalid_properties
127
144
  end
128
145
 
@@ -133,9 +150,20 @@ module Svix
133
150
  return false if @id.nil?
134
151
  return false if @status.nil?
135
152
  return false if @task.nil?
153
+ return false if @unresolved_app_ids.nil?
136
154
  true
137
155
  end
138
156
 
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] unresolved_app_ids Value to be assigned
159
+ def unresolved_app_ids=(unresolved_app_ids)
160
+ if unresolved_app_ids.nil?
161
+ fail ArgumentError, 'unresolved_app_ids cannot be nil'
162
+ end
163
+
164
+ @unresolved_app_ids = unresolved_app_ids
165
+ end
166
+
139
167
  # Checks equality by comparing each attribute.
140
168
  # @param [Object] Object to be compared
141
169
  def ==(o)
@@ -143,7 +171,8 @@ module Svix
143
171
  self.class == o.class &&
144
172
  id == o.id &&
145
173
  status == o.status &&
146
- task == o.task
174
+ task == o.task &&
175
+ unresolved_app_ids == o.unresolved_app_ids
147
176
  end
148
177
 
149
178
  # @see the `==` method
@@ -155,7 +184,7 @@ module Svix
155
184
  # Calculates hash code according to all attributes.
156
185
  # @return [Integer] Hash code
157
186
  def hash
158
- [id, status, task].hash
187
+ [id, status, task, unresolved_app_ids].hash
159
188
  end
160
189
 
161
190
  # Builds the object from hash
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -87,6 +87,8 @@ module Svix
87
87
 
88
88
  if attributes.key?(:'iterator')
89
89
  self.iterator = attributes[:'iterator']
90
+ else
91
+ self.iterator = nil
90
92
  end
91
93
 
92
94
  if attributes.key?(:'prev_iterator')
@@ -17,12 +17,15 @@ module Svix
17
17
  class SinkHttpConfig
18
18
  attr_accessor :headers
19
19
 
20
+ attr_accessor :key
21
+
20
22
  attr_accessor :url
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'headers' => :'headers',
28
+ :'key' => :'key',
26
29
  :'url' => :'url'
27
30
  }
28
31
  end
@@ -36,6 +39,7 @@ module Svix
36
39
  def self.openapi_types
37
40
  {
38
41
  :'headers' => :'Hash<String, String>',
42
+ :'key' => :'String',
39
43
  :'url' => :'String'
40
44
  }
41
45
  end
@@ -43,6 +47,7 @@ module Svix
43
47
  # List of attributes with nullable: true
44
48
  def self.openapi_nullable
45
49
  Set.new([
50
+ :'key',
46
51
  ])
47
52
  end
48
53
 
@@ -67,6 +72,10 @@ module Svix
67
72
  end
68
73
  end
69
74
 
75
+ if attributes.key?(:'key')
76
+ self.key = attributes[:'key']
77
+ end
78
+
70
79
  if attributes.key?(:'url')
71
80
  self.url = attributes[:'url']
72
81
  else
@@ -100,6 +109,7 @@ module Svix
100
109
  return true if self.equal?(o)
101
110
  self.class == o.class &&
102
111
  headers == o.headers &&
112
+ key == o.key &&
103
113
  url == o.url
104
114
  end
105
115
 
@@ -112,7 +122,7 @@ module Svix
112
122
  # Calculates hash code according to all attributes.
113
123
  # @return [Integer] Hash code
114
124
  def hash
115
- [headers, url].hash
125
+ [headers, key, url].hash
116
126
  end
117
127
 
118
128
  # 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.40.0"
4
+ VERSION = "1.41.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.40.0
4
+ version: 1.41.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-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake