zyphr 0.1.30 → 0.1.32
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/README.md +6 -6
- data/docs/DomainResponse.md +5 -1
- data/docs/DomainsApi.md +6 -6
- data/lib/zyphr/api/domains_api.rb +6 -6
- data/lib/zyphr/models/domain_response.rb +46 -2
- data/spec/models/domain_response_spec.rb +20 -0
- data/zyphr.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 160f65594ad461d4615c233b0b9e3ee82e5a84efb4692799fd2ca9e9554e2c45
|
|
4
|
+
data.tar.gz: ba9792dde4092f0b85ae6c068942209ac675d2e1078539d4c043e99e793080ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fedd0c1e864abcc2cfcda379c1aa45c7b185b7c58d9b388a47388b1c31e464f7d421f0a882d0c6052a4b31cf5e74c9c821e90b1d2f18b4354587e04e554554a
|
|
7
|
+
data.tar.gz: 4c4fb0fc90ce7990d504393a5f34af6024eef05f9e93933bd647395ef3fc2040a820a59a3e6a699a384ab4e8e9124dc872f2fe9e8da11f8a6a4887540c3c18bc
|
data/README.md
CHANGED
|
@@ -192,12 +192,12 @@ Class | Method | HTTP request | Description
|
|
|
192
192
|
*Zyphr::DevicesApi* | [**get_device_stats**](docs/DevicesApi.md#get_device_stats) | **GET** /devices/stats | Get device statistics
|
|
193
193
|
*Zyphr::DevicesApi* | [**list_devices**](docs/DevicesApi.md#list_devices) | **GET** /devices | List devices
|
|
194
194
|
*Zyphr::DevicesApi* | [**register_device**](docs/DevicesApi.md#register_device) | **POST** /devices | Register a device
|
|
195
|
-
*Zyphr::DomainsApi* | [**add_domain**](docs/DomainsApi.md#add_domain) | **POST** /
|
|
196
|
-
*Zyphr::DomainsApi* | [**delete_domain**](docs/DomainsApi.md#delete_domain) | **DELETE** /
|
|
197
|
-
*Zyphr::DomainsApi* | [**get_domain**](docs/DomainsApi.md#get_domain) | **GET** /
|
|
198
|
-
*Zyphr::DomainsApi* | [**get_domain_verification_status**](docs/DomainsApi.md#get_domain_verification_status) | **GET** /
|
|
199
|
-
*Zyphr::DomainsApi* | [**list_domains**](docs/DomainsApi.md#list_domains) | **GET** /
|
|
200
|
-
*Zyphr::DomainsApi* | [**verify_domain**](docs/DomainsApi.md#verify_domain) | **POST** /
|
|
195
|
+
*Zyphr::DomainsApi* | [**add_domain**](docs/DomainsApi.md#add_domain) | **POST** /domains | Add a sending domain
|
|
196
|
+
*Zyphr::DomainsApi* | [**delete_domain**](docs/DomainsApi.md#delete_domain) | **DELETE** /domains/{id} | Remove a sending domain
|
|
197
|
+
*Zyphr::DomainsApi* | [**get_domain**](docs/DomainsApi.md#get_domain) | **GET** /domains/{id} | Get a sending domain
|
|
198
|
+
*Zyphr::DomainsApi* | [**get_domain_verification_status**](docs/DomainsApi.md#get_domain_verification_status) | **GET** /domains/{id}/verification-status | Get domain verification status
|
|
199
|
+
*Zyphr::DomainsApi* | [**list_domains**](docs/DomainsApi.md#list_domains) | **GET** /domains | List sending domains
|
|
200
|
+
*Zyphr::DomainsApi* | [**verify_domain**](docs/DomainsApi.md#verify_domain) | **POST** /domains/{id}/verify | Trigger domain verification
|
|
201
201
|
*Zyphr::EmailsApi* | [**get_email**](docs/EmailsApi.md#get_email) | **GET** /emails/{id} | Get email details
|
|
202
202
|
*Zyphr::EmailsApi* | [**get_email_events**](docs/EmailsApi.md#get_email_events) | **GET** /emails/{id}/events | Get email events
|
|
203
203
|
*Zyphr::EmailsApi* | [**get_email_tracking**](docs/EmailsApi.md#get_email_tracking) | **GET** /emails/{id}/tracking | Get email tracking stats
|
data/docs/DomainResponse.md
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
| **records_verified** | **Integer** | Count of `dns_records[]` entries with `verified=true` | |
|
|
12
12
|
| **records_total** | **Integer** | Total entries in `dns_records[]` | |
|
|
13
13
|
| **verification_token** | **String** | Token used for the verification TXT record (also visible in `dns_records[]`) | [optional] |
|
|
14
|
-
| **
|
|
14
|
+
| **ses_identity_status** | **String** | AWS SES identity-verification sub-status. Surfaced so callers can see WHY top-level `status` is still `pending` when all DNS records report `verified: true` — typically because SES DKIM propagation hasn't completed yet (can take a few minutes after DNS records land). Top-level `status` only flips to `verified` once both this and `ses_dkim_status` are `success`. | [optional] |
|
|
15
|
+
| **ses_dkim_status** | **String** | AWS SES DKIM verification sub-status. See `ses_identity_status`. | [optional] |
|
|
16
|
+
| **verified_at** | **Time** | Timestamp when verification first succeeded. Cleared to null if status later reverts away from `verified` (e.g. DNS records observed but SES DKIM not yet propagated). | [optional] |
|
|
15
17
|
| **last_checked_at** | **Time** | Timestamp of the most recent verification attempt | [optional] |
|
|
16
18
|
| **created_at** | **Time** | | |
|
|
17
19
|
| **updated_at** | **Time** | | [optional] |
|
|
@@ -29,6 +31,8 @@ instance = Zyphr::DomainResponse.new(
|
|
|
29
31
|
records_verified: 0,
|
|
30
32
|
records_total: 6,
|
|
31
33
|
verification_token: null,
|
|
34
|
+
ses_identity_status: null,
|
|
35
|
+
ses_dkim_status: null,
|
|
32
36
|
verified_at: null,
|
|
33
37
|
last_checked_at: null,
|
|
34
38
|
created_at: null,
|
data/docs/DomainsApi.md
CHANGED
|
@@ -4,12 +4,12 @@ All URIs are relative to *https://api.zyphr.dev/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**add_domain**](DomainsApi.md#add_domain) | **POST** /
|
|
8
|
-
| [**delete_domain**](DomainsApi.md#delete_domain) | **DELETE** /
|
|
9
|
-
| [**get_domain**](DomainsApi.md#get_domain) | **GET** /
|
|
10
|
-
| [**get_domain_verification_status**](DomainsApi.md#get_domain_verification_status) | **GET** /
|
|
11
|
-
| [**list_domains**](DomainsApi.md#list_domains) | **GET** /
|
|
12
|
-
| [**verify_domain**](DomainsApi.md#verify_domain) | **POST** /
|
|
7
|
+
| [**add_domain**](DomainsApi.md#add_domain) | **POST** /domains | Add a sending domain |
|
|
8
|
+
| [**delete_domain**](DomainsApi.md#delete_domain) | **DELETE** /domains/{id} | Remove a sending domain |
|
|
9
|
+
| [**get_domain**](DomainsApi.md#get_domain) | **GET** /domains/{id} | Get a sending domain |
|
|
10
|
+
| [**get_domain_verification_status**](DomainsApi.md#get_domain_verification_status) | **GET** /domains/{id}/verification-status | Get domain verification status |
|
|
11
|
+
| [**list_domains**](DomainsApi.md#list_domains) | **GET** /domains | List sending domains |
|
|
12
|
+
| [**verify_domain**](DomainsApi.md#verify_domain) | **POST** /domains/{id}/verify | Trigger domain verification |
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## add_domain
|
|
@@ -43,7 +43,7 @@ module Zyphr
|
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'add_domain_request' when calling DomainsApi.add_domain"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
|
-
local_var_path = '/
|
|
46
|
+
local_var_path = '/domains'
|
|
47
47
|
|
|
48
48
|
# query parameters
|
|
49
49
|
query_params = opts[:query_params] || {}
|
|
@@ -111,7 +111,7 @@ module Zyphr
|
|
|
111
111
|
fail ArgumentError, "Missing the required parameter 'id' when calling DomainsApi.delete_domain"
|
|
112
112
|
end
|
|
113
113
|
# resource path
|
|
114
|
-
local_var_path = '/
|
|
114
|
+
local_var_path = '/domains/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
115
115
|
|
|
116
116
|
# query parameters
|
|
117
117
|
query_params = opts[:query_params] || {}
|
|
@@ -174,7 +174,7 @@ module Zyphr
|
|
|
174
174
|
fail ArgumentError, "Missing the required parameter 'id' when calling DomainsApi.get_domain"
|
|
175
175
|
end
|
|
176
176
|
# resource path
|
|
177
|
-
local_var_path = '/
|
|
177
|
+
local_var_path = '/domains/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
178
178
|
|
|
179
179
|
# query parameters
|
|
180
180
|
query_params = opts[:query_params] || {}
|
|
@@ -237,7 +237,7 @@ module Zyphr
|
|
|
237
237
|
fail ArgumentError, "Missing the required parameter 'id' when calling DomainsApi.get_domain_verification_status"
|
|
238
238
|
end
|
|
239
239
|
# resource path
|
|
240
|
-
local_var_path = '/
|
|
240
|
+
local_var_path = '/domains/{id}/verification-status'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
241
241
|
|
|
242
242
|
# query parameters
|
|
243
243
|
query_params = opts[:query_params] || {}
|
|
@@ -294,7 +294,7 @@ module Zyphr
|
|
|
294
294
|
@api_client.config.logger.debug 'Calling API: DomainsApi.list_domains ...'
|
|
295
295
|
end
|
|
296
296
|
# resource path
|
|
297
|
-
local_var_path = '/
|
|
297
|
+
local_var_path = '/domains'
|
|
298
298
|
|
|
299
299
|
# query parameters
|
|
300
300
|
query_params = opts[:query_params] || {}
|
|
@@ -357,7 +357,7 @@ module Zyphr
|
|
|
357
357
|
fail ArgumentError, "Missing the required parameter 'id' when calling DomainsApi.verify_domain"
|
|
358
358
|
end
|
|
359
359
|
# resource path
|
|
360
|
-
local_var_path = '/
|
|
360
|
+
local_var_path = '/domains/{id}/verify'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
361
361
|
|
|
362
362
|
# query parameters
|
|
363
363
|
query_params = opts[:query_params] || {}
|
|
@@ -33,7 +33,13 @@ module Zyphr
|
|
|
33
33
|
# Token used for the verification TXT record (also visible in `dns_records[]`)
|
|
34
34
|
attr_accessor :verification_token
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
# AWS SES identity-verification sub-status. Surfaced so callers can see WHY top-level `status` is still `pending` when all DNS records report `verified: true` — typically because SES DKIM propagation hasn't completed yet (can take a few minutes after DNS records land). Top-level `status` only flips to `verified` once both this and `ses_dkim_status` are `success`.
|
|
37
|
+
attr_accessor :ses_identity_status
|
|
38
|
+
|
|
39
|
+
# AWS SES DKIM verification sub-status. See `ses_identity_status`.
|
|
40
|
+
attr_accessor :ses_dkim_status
|
|
41
|
+
|
|
42
|
+
# Timestamp when verification first succeeded. Cleared to null if status later reverts away from `verified` (e.g. DNS records observed but SES DKIM not yet propagated).
|
|
37
43
|
attr_accessor :verified_at
|
|
38
44
|
|
|
39
45
|
# Timestamp of the most recent verification attempt
|
|
@@ -75,6 +81,8 @@ module Zyphr
|
|
|
75
81
|
:'records_verified' => :'records_verified',
|
|
76
82
|
:'records_total' => :'records_total',
|
|
77
83
|
:'verification_token' => :'verification_token',
|
|
84
|
+
:'ses_identity_status' => :'ses_identity_status',
|
|
85
|
+
:'ses_dkim_status' => :'ses_dkim_status',
|
|
78
86
|
:'verified_at' => :'verified_at',
|
|
79
87
|
:'last_checked_at' => :'last_checked_at',
|
|
80
88
|
:'created_at' => :'created_at',
|
|
@@ -102,6 +110,8 @@ module Zyphr
|
|
|
102
110
|
:'records_verified' => :'Integer',
|
|
103
111
|
:'records_total' => :'Integer',
|
|
104
112
|
:'verification_token' => :'String',
|
|
113
|
+
:'ses_identity_status' => :'String',
|
|
114
|
+
:'ses_dkim_status' => :'String',
|
|
105
115
|
:'verified_at' => :'Time',
|
|
106
116
|
:'last_checked_at' => :'Time',
|
|
107
117
|
:'created_at' => :'Time',
|
|
@@ -175,6 +185,14 @@ module Zyphr
|
|
|
175
185
|
self.verification_token = attributes[:'verification_token']
|
|
176
186
|
end
|
|
177
187
|
|
|
188
|
+
if attributes.key?(:'ses_identity_status')
|
|
189
|
+
self.ses_identity_status = attributes[:'ses_identity_status']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'ses_dkim_status')
|
|
193
|
+
self.ses_dkim_status = attributes[:'ses_dkim_status']
|
|
194
|
+
end
|
|
195
|
+
|
|
178
196
|
if attributes.key?(:'verified_at')
|
|
179
197
|
self.verified_at = attributes[:'verified_at']
|
|
180
198
|
end
|
|
@@ -242,6 +260,10 @@ module Zyphr
|
|
|
242
260
|
return false if @dns_records.nil?
|
|
243
261
|
return false if @records_verified.nil?
|
|
244
262
|
return false if @records_total.nil?
|
|
263
|
+
ses_identity_status_validator = EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
264
|
+
return false unless ses_identity_status_validator.valid?(@ses_identity_status)
|
|
265
|
+
ses_dkim_status_validator = EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
266
|
+
return false unless ses_dkim_status_validator.valid?(@ses_dkim_status)
|
|
245
267
|
return false if @created_at.nil?
|
|
246
268
|
true
|
|
247
269
|
end
|
|
@@ -306,6 +328,26 @@ module Zyphr
|
|
|
306
328
|
@records_total = records_total
|
|
307
329
|
end
|
|
308
330
|
|
|
331
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
332
|
+
# @param [Object] ses_identity_status Object to be assigned
|
|
333
|
+
def ses_identity_status=(ses_identity_status)
|
|
334
|
+
validator = EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
335
|
+
unless validator.valid?(ses_identity_status)
|
|
336
|
+
fail ArgumentError, "invalid value for \"ses_identity_status\", must be one of #{validator.allowable_values}."
|
|
337
|
+
end
|
|
338
|
+
@ses_identity_status = ses_identity_status
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
342
|
+
# @param [Object] ses_dkim_status Object to be assigned
|
|
343
|
+
def ses_dkim_status=(ses_dkim_status)
|
|
344
|
+
validator = EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
345
|
+
unless validator.valid?(ses_dkim_status)
|
|
346
|
+
fail ArgumentError, "invalid value for \"ses_dkim_status\", must be one of #{validator.allowable_values}."
|
|
347
|
+
end
|
|
348
|
+
@ses_dkim_status = ses_dkim_status
|
|
349
|
+
end
|
|
350
|
+
|
|
309
351
|
# Custom attribute writer method with validation
|
|
310
352
|
# @param [Object] created_at Value to be assigned
|
|
311
353
|
def created_at=(created_at)
|
|
@@ -328,6 +370,8 @@ module Zyphr
|
|
|
328
370
|
records_verified == o.records_verified &&
|
|
329
371
|
records_total == o.records_total &&
|
|
330
372
|
verification_token == o.verification_token &&
|
|
373
|
+
ses_identity_status == o.ses_identity_status &&
|
|
374
|
+
ses_dkim_status == o.ses_dkim_status &&
|
|
331
375
|
verified_at == o.verified_at &&
|
|
332
376
|
last_checked_at == o.last_checked_at &&
|
|
333
377
|
created_at == o.created_at &&
|
|
@@ -343,7 +387,7 @@ module Zyphr
|
|
|
343
387
|
# Calculates hash code according to all attributes.
|
|
344
388
|
# @return [Integer] Hash code
|
|
345
389
|
def hash
|
|
346
|
-
[id, domain, status, dns_records, records_verified, records_total, verification_token, verified_at, last_checked_at, created_at, updated_at].hash
|
|
390
|
+
[id, domain, status, dns_records, records_verified, records_total, verification_token, ses_identity_status, ses_dkim_status, verified_at, last_checked_at, created_at, updated_at].hash
|
|
347
391
|
end
|
|
348
392
|
|
|
349
393
|
# Builds the object from hash
|
|
@@ -73,6 +73,26 @@ describe Zyphr::DomainResponse do
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
describe 'test attribute "ses_identity_status"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
80
|
+
# validator.allowable_values.each do |value|
|
|
81
|
+
# expect { instance.ses_identity_status = value }.not_to raise_error
|
|
82
|
+
# end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
describe 'test attribute "ses_dkim_status"' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "success", "failed", "temporary_failure", "not_started"])
|
|
90
|
+
# validator.allowable_values.each do |value|
|
|
91
|
+
# expect { instance.ses_dkim_status = value }.not_to raise_error
|
|
92
|
+
# end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
76
96
|
describe 'test attribute "verified_at"' do
|
|
77
97
|
it 'should work' do
|
|
78
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
data/zyphr.gemspec
CHANGED