svix 0.50.0 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/application_api.rb +5 -3
- data/lib/svix/authentication_api.rb +4 -4
- data/lib/svix/endpoint_api.rb +6 -6
- data/lib/svix/event_type_api.rb +2 -2
- data/lib/svix/integration_api.rb +4 -4
- data/lib/svix/message_api.rb +2 -2
- data/lib/svix/message_attempt_api.rb +2 -2
- data/lib/svix/models/message_attempt_endpoint_out.rb +15 -1
- data/lib/svix/models/message_attempt_out.rb +15 -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: 1902f3a8c6e14e4959c6b41f82d78a5fbba1e54d26f802332a31ad6d75cdfe98
|
4
|
+
data.tar.gz: 99ca5295e188cb3023817b605635a5f45c6f823ea29fee2311b828f22515c1c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65f29dcd08230a5e1f313f3b6b1f77f70d6d4b30cc7a2afa3fdb8755301aba448cf9055f829932833b343e9bd20d0d7828e5bace4d6e4f3f6519615bc2a3aa1
|
7
|
+
data.tar.gz: 17292a61f2f8bc10968baf86f2dbfbb86e93e4a9e5b70210f24b6de700afe5e139ac012df784ee24c93e5e5412413ae0ee33a3a7e331d8da3097e3f11f07075b
|
data/Gemfile.lock
CHANGED
data/lib/svix/application_api.rb
CHANGED
@@ -10,10 +10,12 @@ module Svix
|
|
10
10
|
return @api.list_applications_api_v1_app_get(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(application_in)
|
14
|
-
return @api.create_application_api_v1_app_post(application_in)
|
13
|
+
def create(application_in, options = {})
|
14
|
+
return @api.create_application_api_v1_app_post(application_in, options)
|
15
|
+
end
|
16
|
+
def get_or_create(application_in, options = {})
|
17
|
+
return @api.create_application_api_v1_app_post(application_in, {**options, get_if_exists: true})
|
15
18
|
end
|
16
|
-
|
17
19
|
def get(app_id)
|
18
20
|
return @api.get_application_api_v1_app_app_id_get(app_id)
|
19
21
|
end
|
@@ -6,12 +6,12 @@ module Svix
|
|
6
6
|
@api = AuthenticationApi.new(api_client)
|
7
7
|
end
|
8
8
|
|
9
|
-
def dashboard_access(app_id)
|
10
|
-
return @api.get_dashboard_access_api_v1_auth_dashboard_access_app_id_post(app_id)
|
9
|
+
def dashboard_access(app_id, options = {})
|
10
|
+
return @api.get_dashboard_access_api_v1_auth_dashboard_access_app_id_post(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def logout
|
14
|
-
return @api.logout_api_v1_auth_logout_post
|
13
|
+
def logout(options = {})
|
14
|
+
return @api.logout_api_v1_auth_logout_post(options)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/svix/endpoint_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_endpoints_api_v1_app_app_id_endpoint_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, endpoint_in)
|
14
|
-
return @api.create_endpoint_api_v1_app_app_id_endpoint_post(app_id, endpoint_in)
|
13
|
+
def create(app_id, endpoint_in, options = {})
|
14
|
+
return @api.create_endpoint_api_v1_app_app_id_endpoint_post(app_id, endpoint_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, endpoint_id)
|
@@ -30,12 +30,12 @@ module Svix
|
|
30
30
|
return @api.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get(endpoint_id, app_id)
|
31
31
|
end
|
32
32
|
|
33
|
-
def rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in)
|
34
|
-
return @api.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post(endpoint_id, app_id, endpoint_secret_rotate_in)
|
33
|
+
def rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options = {})
|
34
|
+
return @api.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post(endpoint_id, app_id, endpoint_secret_rotate_in, options)
|
35
35
|
end
|
36
36
|
|
37
|
-
def recover(app_id, endpoint_id, recover_in)
|
38
|
-
@api.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post(app_id, endpoint_id, recover_in)
|
37
|
+
def recover(app_id, endpoint_id, recover_in, options = {})
|
38
|
+
@api.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post(app_id, endpoint_id, recover_in, options)
|
39
39
|
nil
|
40
40
|
end
|
41
41
|
|
data/lib/svix/event_type_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_event_types_api_v1_event_type_get(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(event_type_in)
|
14
|
-
return @api.create_event_type_api_v1_event_type_post(event_type_in)
|
13
|
+
def create(event_type_in, options = {})
|
14
|
+
return @api.create_event_type_api_v1_event_type_post(event_type_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(event_type_name)
|
data/lib/svix/integration_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_integrations_api_v1_app_app_id_integration_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, integ_in)
|
14
|
-
return @api.create_integration_api_v1_app_app_id_integration_post(app_id, integ_in)
|
13
|
+
def create(app_id, integ_in, options = {})
|
14
|
+
return @api.create_integration_api_v1_app_app_id_integration_post(app_id, integ_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, integ_id)
|
@@ -30,8 +30,8 @@ module Svix
|
|
30
30
|
return @api.get_integration_key_api_v1_app_app_id_integration_integ_id_key_get(integ_id, app_id)
|
31
31
|
end
|
32
32
|
|
33
|
-
def rotate_key(app_id, integ_id)
|
34
|
-
return @api.rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id)
|
33
|
+
def rotate_key(app_id, integ_id, options = {})
|
34
|
+
return @api.rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id, options)
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
data/lib/svix/message_api.rb
CHANGED
@@ -10,8 +10,8 @@ module Svix
|
|
10
10
|
return @api.list_messages_api_v1_app_app_id_msg_get(app_id, options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def create(app_id, message_in)
|
14
|
-
return @api.create_message_api_v1_app_app_id_msg_post(app_id, message_in)
|
13
|
+
def create(app_id, message_in, options = {})
|
14
|
+
return @api.create_message_api_v1_app_app_id_msg_post(app_id, message_in, options)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(app_id, msg_id)
|
@@ -24,8 +24,8 @@ module Svix
|
|
24
24
|
return @api.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get(attempt_id, msg_id, app_id)
|
25
25
|
end
|
26
26
|
|
27
|
-
def resend(app_id, msg_id, endpoint_id)
|
28
|
-
return @api.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post(endpoint_id, msg_id, app_id)
|
27
|
+
def resend(app_id, msg_id, endpoint_id, options = {})
|
28
|
+
return @api.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post(endpoint_id, msg_id, app_id, options)
|
29
29
|
end
|
30
30
|
|
31
31
|
def list_attempted_messages(app_id, endpoint_id, options = {})
|
@@ -19,6 +19,8 @@ module Svix
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :msg_id
|
23
|
+
|
22
24
|
attr_accessor :response
|
23
25
|
|
24
26
|
attr_accessor :response_status_code
|
@@ -34,6 +36,7 @@ module Svix
|
|
34
36
|
{
|
35
37
|
:'endpoint_id' => :'endpointId',
|
36
38
|
:'id' => :'id',
|
39
|
+
:'msg_id' => :'msgId',
|
37
40
|
:'response' => :'response',
|
38
41
|
:'response_status_code' => :'responseStatusCode',
|
39
42
|
:'status' => :'status',
|
@@ -52,6 +55,7 @@ module Svix
|
|
52
55
|
{
|
53
56
|
:'endpoint_id' => :'String',
|
54
57
|
:'id' => :'String',
|
58
|
+
:'msg_id' => :'String',
|
55
59
|
:'response' => :'String',
|
56
60
|
:'response_status_code' => :'Integer',
|
57
61
|
:'status' => :'MessageStatus',
|
@@ -89,6 +93,10 @@ module Svix
|
|
89
93
|
self.id = attributes[:'id']
|
90
94
|
end
|
91
95
|
|
96
|
+
if attributes.key?(:'msg_id')
|
97
|
+
self.msg_id = attributes[:'msg_id']
|
98
|
+
end
|
99
|
+
|
92
100
|
if attributes.key?(:'response')
|
93
101
|
self.response = attributes[:'response']
|
94
102
|
end
|
@@ -122,6 +130,10 @@ module Svix
|
|
122
130
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
123
131
|
end
|
124
132
|
|
133
|
+
if @msg_id.nil?
|
134
|
+
invalid_properties.push('invalid value for "msg_id", msg_id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
125
137
|
if @response.nil?
|
126
138
|
invalid_properties.push('invalid value for "response", response cannot be nil.')
|
127
139
|
end
|
@@ -150,6 +162,7 @@ module Svix
|
|
150
162
|
def valid?
|
151
163
|
return false if @endpoint_id.nil?
|
152
164
|
return false if @id.nil?
|
165
|
+
return false if @msg_id.nil?
|
153
166
|
return false if @response.nil?
|
154
167
|
return false if @response_status_code.nil?
|
155
168
|
return false if @status.nil?
|
@@ -165,6 +178,7 @@ module Svix
|
|
165
178
|
self.class == o.class &&
|
166
179
|
endpoint_id == o.endpoint_id &&
|
167
180
|
id == o.id &&
|
181
|
+
msg_id == o.msg_id &&
|
168
182
|
response == o.response &&
|
169
183
|
response_status_code == o.response_status_code &&
|
170
184
|
status == o.status &&
|
@@ -181,7 +195,7 @@ module Svix
|
|
181
195
|
# Calculates hash code according to all attributes.
|
182
196
|
# @return [Integer] Hash code
|
183
197
|
def hash
|
184
|
-
[endpoint_id, id, response, response_status_code, status, timestamp, trigger_type].hash
|
198
|
+
[endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type].hash
|
185
199
|
end
|
186
200
|
|
187
201
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module Svix
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :msg_id
|
23
|
+
|
22
24
|
attr_accessor :response
|
23
25
|
|
24
26
|
attr_accessor :response_status_code
|
@@ -34,6 +36,7 @@ module Svix
|
|
34
36
|
{
|
35
37
|
:'endpoint_id' => :'endpointId',
|
36
38
|
:'id' => :'id',
|
39
|
+
:'msg_id' => :'msgId',
|
37
40
|
:'response' => :'response',
|
38
41
|
:'response_status_code' => :'responseStatusCode',
|
39
42
|
:'status' => :'status',
|
@@ -52,6 +55,7 @@ module Svix
|
|
52
55
|
{
|
53
56
|
:'endpoint_id' => :'String',
|
54
57
|
:'id' => :'String',
|
58
|
+
:'msg_id' => :'String',
|
55
59
|
:'response' => :'String',
|
56
60
|
:'response_status_code' => :'Integer',
|
57
61
|
:'status' => :'MessageStatus',
|
@@ -89,6 +93,10 @@ module Svix
|
|
89
93
|
self.id = attributes[:'id']
|
90
94
|
end
|
91
95
|
|
96
|
+
if attributes.key?(:'msg_id')
|
97
|
+
self.msg_id = attributes[:'msg_id']
|
98
|
+
end
|
99
|
+
|
92
100
|
if attributes.key?(:'response')
|
93
101
|
self.response = attributes[:'response']
|
94
102
|
end
|
@@ -122,6 +130,10 @@ module Svix
|
|
122
130
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
123
131
|
end
|
124
132
|
|
133
|
+
if @msg_id.nil?
|
134
|
+
invalid_properties.push('invalid value for "msg_id", msg_id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
125
137
|
if @response.nil?
|
126
138
|
invalid_properties.push('invalid value for "response", response cannot be nil.')
|
127
139
|
end
|
@@ -150,6 +162,7 @@ module Svix
|
|
150
162
|
def valid?
|
151
163
|
return false if @endpoint_id.nil?
|
152
164
|
return false if @id.nil?
|
165
|
+
return false if @msg_id.nil?
|
153
166
|
return false if @response.nil?
|
154
167
|
return false if @response_status_code.nil?
|
155
168
|
return false if @status.nil?
|
@@ -165,6 +178,7 @@ module Svix
|
|
165
178
|
self.class == o.class &&
|
166
179
|
endpoint_id == o.endpoint_id &&
|
167
180
|
id == o.id &&
|
181
|
+
msg_id == o.msg_id &&
|
168
182
|
response == o.response &&
|
169
183
|
response_status_code == o.response_status_code &&
|
170
184
|
status == o.status &&
|
@@ -181,7 +195,7 @@ module Svix
|
|
181
195
|
# Calculates hash code according to all attributes.
|
182
196
|
# @return [Integer] Hash code
|
183
197
|
def hash
|
184
|
-
[endpoint_id, id, response, response_status_code, status, timestamp, trigger_type].hash
|
198
|
+
[endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type].hash
|
185
199
|
end
|
186
200
|
|
187
201
|
# 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: 0.
|
4
|
+
version: 0.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|