svix 1.40.0 → 1.41.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/stream_api.rb +4 -4
- data/lib/svix/models/app_usage_stats_in.rb +1 -0
- data/lib/svix/models/app_usage_stats_out.rb +33 -4
- data/lib/svix/models/list_response_application_out.rb +2 -0
- data/lib/svix/models/list_response_application_stats.rb +2 -0
- data/lib/svix/models/list_response_background_task_out.rb +2 -0
- data/lib/svix/models/list_response_endpoint_message_out.rb +2 -0
- data/lib/svix/models/list_response_endpoint_out.rb +2 -0
- data/lib/svix/models/list_response_event_type_out.rb +2 -0
- data/lib/svix/models/list_response_integration_out.rb +2 -0
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +2 -0
- data/lib/svix/models/list_response_message_attempt_out.rb +2 -0
- data/lib/svix/models/list_response_message_endpoint_out.rb +2 -0
- data/lib/svix/models/list_response_message_out.rb +2 -0
- data/lib/svix/models/list_response_operational_webhook_endpoint_out.rb +2 -0
- data/lib/svix/models/list_response_sink_out.rb +2 -0
- data/lib/svix/models/list_response_stream_event_type_out.rb +2 -0
- data/lib/svix/models/list_response_stream_out.rb +2 -0
- data/lib/svix/models/list_response_stream_sink_out.rb +2 -0
- data/lib/svix/models/list_response_template_out.rb +2 -0
- data/lib/svix/models/sink_http_config.rb +11 -1
- data/lib/svix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c03e03208f22008f503a1190ee012447474c99f5343f93b133cc991934b2d71
|
4
|
+
data.tar.gz: f091fad8d9de7707bd6e60193dc82a9eeaddce4173ba71e8ba284e58ce29e50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac4e6e56524f4d52e2e3992755e22adaab6c1c6293e4ddb452f02bbd64cd682fe41df8d82f566e2c422a7b57c32eeb1037aa96e8713ed2bb82d9618d82a3cc49
|
7
|
+
data.tar.gz: fef4d0656e9390b93d9c574c1ed0441c7a907987ccff447277b424ec0022f2a7e4dac25d7ff161a2ad2bca030ae4d12f11fdd477f9f2f970312606d1f401080c
|
data/Gemfile.lock
CHANGED
data/lib/svix/api/stream_api.rb
CHANGED
@@ -90,8 +90,8 @@ module Svix
|
|
90
90
|
return data, status_code, headers
|
91
91
|
end
|
92
92
|
|
93
|
-
#
|
94
|
-
# Creates
|
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
|
-
#
|
106
|
-
# Creates
|
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
|
@@ -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
|
@@ -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
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.
|
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
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|