zyphr 0.1.31 → 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 +12 -0
- data/docs/DeleteDomainResponse.md +20 -0
- data/docs/DeleteDomainResponseData.md +20 -0
- data/docs/DomainResponse.md +5 -1
- data/docs/DomainsApi.md +288 -0
- data/docs/GetDomain200Response.md +20 -0
- data/docs/GetDomain200ResponseMeta.md +18 -0
- data/docs/VerificationStatusResponse.md +20 -0
- data/docs/VerificationStatusResponseData.md +32 -0
- data/docs/VerifyDomainResponse.md +20 -0
- data/docs/VerifyDomainResponseData.md +24 -0
- data/lib/zyphr/api/domains_api.rb +252 -0
- data/lib/zyphr/models/delete_domain_response.rb +263 -0
- data/lib/zyphr/models/delete_domain_response_data.rb +263 -0
- data/lib/zyphr/models/domain_response.rb +46 -2
- data/lib/zyphr/models/get_domain200_response.rb +229 -0
- data/lib/zyphr/models/get_domain200_response_meta.rb +220 -0
- data/lib/zyphr/models/verification_status_response.rb +263 -0
- data/lib/zyphr/models/verification_status_response_data.rb +415 -0
- data/lib/zyphr/models/verify_domain_response.rb +263 -0
- data/lib/zyphr/models/verify_domain_response_data.rb +339 -0
- data/lib/zyphr.rb +8 -0
- data/spec/api/domains_api_spec.rb +48 -0
- data/spec/models/delete_domain_response_data_spec.rb +42 -0
- data/spec/models/delete_domain_response_spec.rb +42 -0
- data/spec/models/domain_response_spec.rb +20 -0
- data/spec/models/get_domain200_response_meta_spec.rb +36 -0
- data/spec/models/get_domain200_response_spec.rb +42 -0
- data/spec/models/verification_status_response_data_spec.rb +82 -0
- data/spec/models/verification_status_response_spec.rb +42 -0
- data/spec/models/verify_domain_response_data_spec.rb +58 -0
- data/spec/models/verify_domain_response_spec.rb +42 -0
- data/zyphr.gemspec +1 -1
- metadata +33 -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
|
@@ -193,7 +193,11 @@ Class | Method | HTTP request | Description
|
|
|
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
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
|
|
196
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
|
|
197
201
|
*Zyphr::EmailsApi* | [**get_email**](docs/EmailsApi.md#get_email) | **GET** /emails/{id} | Get email details
|
|
198
202
|
*Zyphr::EmailsApi* | [**get_email_events**](docs/EmailsApi.md#get_email_events) | **GET** /emails/{id}/events | Get email events
|
|
199
203
|
*Zyphr::EmailsApi* | [**get_email_tracking**](docs/EmailsApi.md#get_email_tracking) | **GET** /emails/{id}/tracking | Get email tracking stats
|
|
@@ -404,6 +408,8 @@ Class | Method | HTTP request | Description
|
|
|
404
408
|
- [Zyphr::CreateWaaSEventType201Response](docs/CreateWaaSEventType201Response.md)
|
|
405
409
|
- [Zyphr::CreateWaaSEventTypeRequest](docs/CreateWaaSEventTypeRequest.md)
|
|
406
410
|
- [Zyphr::CreateWebhookRequest](docs/CreateWebhookRequest.md)
|
|
411
|
+
- [Zyphr::DeleteDomainResponse](docs/DeleteDomainResponse.md)
|
|
412
|
+
- [Zyphr::DeleteDomainResponseData](docs/DeleteDomainResponseData.md)
|
|
407
413
|
- [Zyphr::DeleteResult](docs/DeleteResult.md)
|
|
408
414
|
- [Zyphr::DeleteResultData](docs/DeleteResultData.md)
|
|
409
415
|
- [Zyphr::Device](docs/Device.md)
|
|
@@ -442,6 +448,8 @@ Class | Method | HTTP request | Description
|
|
|
442
448
|
- [Zyphr::GenerateSubscriberToken200ResponseData](docs/GenerateSubscriberToken200ResponseData.md)
|
|
443
449
|
- [Zyphr::GenerateSubscriberTokenRequest](docs/GenerateSubscriberTokenRequest.md)
|
|
444
450
|
- [Zyphr::GenerateWaaSPortalToken201Response](docs/GenerateWaaSPortalToken201Response.md)
|
|
451
|
+
- [Zyphr::GetDomain200Response](docs/GetDomain200Response.md)
|
|
452
|
+
- [Zyphr::GetDomain200ResponseMeta](docs/GetDomain200ResponseMeta.md)
|
|
445
453
|
- [Zyphr::GetWaaSEndpoint200Response](docs/GetWaaSEndpoint200Response.md)
|
|
446
454
|
- [Zyphr::GetWaaSUsage200Response](docs/GetWaaSUsage200Response.md)
|
|
447
455
|
- [Zyphr::InAppNotification](docs/InAppNotification.md)
|
|
@@ -654,6 +662,10 @@ Class | Method | HTTP request | Description
|
|
|
654
662
|
- [Zyphr::ValidateResetTokenRequest](docs/ValidateResetTokenRequest.md)
|
|
655
663
|
- [Zyphr::ValidateResetTokenResponse](docs/ValidateResetTokenResponse.md)
|
|
656
664
|
- [Zyphr::ValidateResetTokenResponseData](docs/ValidateResetTokenResponseData.md)
|
|
665
|
+
- [Zyphr::VerificationStatusResponse](docs/VerificationStatusResponse.md)
|
|
666
|
+
- [Zyphr::VerificationStatusResponseData](docs/VerificationStatusResponseData.md)
|
|
667
|
+
- [Zyphr::VerifyDomainResponse](docs/VerifyDomainResponse.md)
|
|
668
|
+
- [Zyphr::VerifyDomainResponseData](docs/VerifyDomainResponseData.md)
|
|
657
669
|
- [Zyphr::VerifySmsConfigData](docs/VerifySmsConfigData.md)
|
|
658
670
|
- [Zyphr::VerifySmsConfigResponse](docs/VerifySmsConfigResponse.md)
|
|
659
671
|
- [Zyphr::WaaSApplication](docs/WaaSApplication.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::DeleteDomainResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**DeleteDomainResponseData**](DeleteDomainResponseData.md) | | |
|
|
8
|
+
| **meta** | [**GetDomain200ResponseMeta**](GetDomain200ResponseMeta.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::DeleteDomainResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::DeleteDomainResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **deleted** | **Boolean** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::DeleteDomainResponseData.new(
|
|
16
|
+
id: null,
|
|
17
|
+
deleted: true
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
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
|
@@ -5,7 +5,11 @@ All URIs are relative to *https://api.zyphr.dev/v1*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
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 |
|
|
8
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 |
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
## add_domain
|
|
@@ -79,6 +83,219 @@ end
|
|
|
79
83
|
- **Accept**: application/json
|
|
80
84
|
|
|
81
85
|
|
|
86
|
+
## delete_domain
|
|
87
|
+
|
|
88
|
+
> <DeleteDomainResponse> delete_domain(id)
|
|
89
|
+
|
|
90
|
+
Remove a sending domain
|
|
91
|
+
|
|
92
|
+
Remove a sending domain from the project. The domain is also detached from any SES identity that was provisioned for it. Returns 409 if the domain is still referenced by other resources (templates, scheduled sends, etc.) — those must be removed first.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'zyphr'
|
|
99
|
+
# setup authorization
|
|
100
|
+
Zyphr.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = Zyphr::DomainsApi.new
|
|
108
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
109
|
+
|
|
110
|
+
begin
|
|
111
|
+
# Remove a sending domain
|
|
112
|
+
result = api_instance.delete_domain(id)
|
|
113
|
+
p result
|
|
114
|
+
rescue Zyphr::ApiError => e
|
|
115
|
+
puts "Error when calling DomainsApi->delete_domain: #{e}"
|
|
116
|
+
end
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### Using the delete_domain_with_http_info variant
|
|
120
|
+
|
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
|
122
|
+
|
|
123
|
+
> <Array(<DeleteDomainResponse>, Integer, Hash)> delete_domain_with_http_info(id)
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
begin
|
|
127
|
+
# Remove a sending domain
|
|
128
|
+
data, status_code, headers = api_instance.delete_domain_with_http_info(id)
|
|
129
|
+
p status_code # => 2xx
|
|
130
|
+
p headers # => { ... }
|
|
131
|
+
p data # => <DeleteDomainResponse>
|
|
132
|
+
rescue Zyphr::ApiError => e
|
|
133
|
+
puts "Error when calling DomainsApi->delete_domain_with_http_info: #{e}"
|
|
134
|
+
end
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
| Name | Type | Description | Notes |
|
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
|
141
|
+
| **id** | **String** | | |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
[**DeleteDomainResponse**](DeleteDomainResponse.md)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## get_domain
|
|
158
|
+
|
|
159
|
+
> <GetDomain200Response> get_domain(id)
|
|
160
|
+
|
|
161
|
+
Get a sending domain
|
|
162
|
+
|
|
163
|
+
Retrieve a single sending domain by ID, including DNS records and verification counters.
|
|
164
|
+
|
|
165
|
+
### Examples
|
|
166
|
+
|
|
167
|
+
```ruby
|
|
168
|
+
require 'time'
|
|
169
|
+
require 'zyphr'
|
|
170
|
+
# setup authorization
|
|
171
|
+
Zyphr.configure do |config|
|
|
172
|
+
# Configure API key authorization: ApiKeyAuth
|
|
173
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
174
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
175
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
api_instance = Zyphr::DomainsApi.new
|
|
179
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
180
|
+
|
|
181
|
+
begin
|
|
182
|
+
# Get a sending domain
|
|
183
|
+
result = api_instance.get_domain(id)
|
|
184
|
+
p result
|
|
185
|
+
rescue Zyphr::ApiError => e
|
|
186
|
+
puts "Error when calling DomainsApi->get_domain: #{e}"
|
|
187
|
+
end
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### Using the get_domain_with_http_info variant
|
|
191
|
+
|
|
192
|
+
This returns an Array which contains the response data, status code and headers.
|
|
193
|
+
|
|
194
|
+
> <Array(<GetDomain200Response>, Integer, Hash)> get_domain_with_http_info(id)
|
|
195
|
+
|
|
196
|
+
```ruby
|
|
197
|
+
begin
|
|
198
|
+
# Get a sending domain
|
|
199
|
+
data, status_code, headers = api_instance.get_domain_with_http_info(id)
|
|
200
|
+
p status_code # => 2xx
|
|
201
|
+
p headers # => { ... }
|
|
202
|
+
p data # => <GetDomain200Response>
|
|
203
|
+
rescue Zyphr::ApiError => e
|
|
204
|
+
puts "Error when calling DomainsApi->get_domain_with_http_info: #{e}"
|
|
205
|
+
end
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
| Name | Type | Description | Notes |
|
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
|
212
|
+
| **id** | **String** | | |
|
|
213
|
+
|
|
214
|
+
### Return type
|
|
215
|
+
|
|
216
|
+
[**GetDomain200Response**](GetDomain200Response.md)
|
|
217
|
+
|
|
218
|
+
### Authorization
|
|
219
|
+
|
|
220
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
221
|
+
|
|
222
|
+
### HTTP request headers
|
|
223
|
+
|
|
224
|
+
- **Content-Type**: Not defined
|
|
225
|
+
- **Accept**: application/json
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
## get_domain_verification_status
|
|
229
|
+
|
|
230
|
+
> <VerificationStatusResponse> get_domain_verification_status(id)
|
|
231
|
+
|
|
232
|
+
Get domain verification status
|
|
233
|
+
|
|
234
|
+
Returns the current verification status with per-record `verified` flags and aggregate counters. Useful when polling for terminal status from an AI agent (the recommended pattern is to subscribe to the `domain.verified` webhook event instead — see sc-5444).
|
|
235
|
+
|
|
236
|
+
### Examples
|
|
237
|
+
|
|
238
|
+
```ruby
|
|
239
|
+
require 'time'
|
|
240
|
+
require 'zyphr'
|
|
241
|
+
# setup authorization
|
|
242
|
+
Zyphr.configure do |config|
|
|
243
|
+
# Configure API key authorization: ApiKeyAuth
|
|
244
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
245
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
246
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
api_instance = Zyphr::DomainsApi.new
|
|
250
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Domain ID
|
|
251
|
+
|
|
252
|
+
begin
|
|
253
|
+
# Get domain verification status
|
|
254
|
+
result = api_instance.get_domain_verification_status(id)
|
|
255
|
+
p result
|
|
256
|
+
rescue Zyphr::ApiError => e
|
|
257
|
+
puts "Error when calling DomainsApi->get_domain_verification_status: #{e}"
|
|
258
|
+
end
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
#### Using the get_domain_verification_status_with_http_info variant
|
|
262
|
+
|
|
263
|
+
This returns an Array which contains the response data, status code and headers.
|
|
264
|
+
|
|
265
|
+
> <Array(<VerificationStatusResponse>, Integer, Hash)> get_domain_verification_status_with_http_info(id)
|
|
266
|
+
|
|
267
|
+
```ruby
|
|
268
|
+
begin
|
|
269
|
+
# Get domain verification status
|
|
270
|
+
data, status_code, headers = api_instance.get_domain_verification_status_with_http_info(id)
|
|
271
|
+
p status_code # => 2xx
|
|
272
|
+
p headers # => { ... }
|
|
273
|
+
p data # => <VerificationStatusResponse>
|
|
274
|
+
rescue Zyphr::ApiError => e
|
|
275
|
+
puts "Error when calling DomainsApi->get_domain_verification_status_with_http_info: #{e}"
|
|
276
|
+
end
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Parameters
|
|
280
|
+
|
|
281
|
+
| Name | Type | Description | Notes |
|
|
282
|
+
| ---- | ---- | ----------- | ----- |
|
|
283
|
+
| **id** | **String** | Domain ID | |
|
|
284
|
+
|
|
285
|
+
### Return type
|
|
286
|
+
|
|
287
|
+
[**VerificationStatusResponse**](VerificationStatusResponse.md)
|
|
288
|
+
|
|
289
|
+
### Authorization
|
|
290
|
+
|
|
291
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
292
|
+
|
|
293
|
+
### HTTP request headers
|
|
294
|
+
|
|
295
|
+
- **Content-Type**: Not defined
|
|
296
|
+
- **Accept**: application/json
|
|
297
|
+
|
|
298
|
+
|
|
82
299
|
## list_domains
|
|
83
300
|
|
|
84
301
|
> <DomainListResponse> list_domains
|
|
@@ -146,3 +363,74 @@ This endpoint does not need any parameter.
|
|
|
146
363
|
- **Content-Type**: Not defined
|
|
147
364
|
- **Accept**: application/json
|
|
148
365
|
|
|
366
|
+
|
|
367
|
+
## verify_domain
|
|
368
|
+
|
|
369
|
+
> <VerifyDomainResponse> verify_domain(id)
|
|
370
|
+
|
|
371
|
+
Trigger domain verification
|
|
372
|
+
|
|
373
|
+
Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
|
|
374
|
+
|
|
375
|
+
### Examples
|
|
376
|
+
|
|
377
|
+
```ruby
|
|
378
|
+
require 'time'
|
|
379
|
+
require 'zyphr'
|
|
380
|
+
# setup authorization
|
|
381
|
+
Zyphr.configure do |config|
|
|
382
|
+
# Configure API key authorization: ApiKeyAuth
|
|
383
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
384
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
385
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
api_instance = Zyphr::DomainsApi.new
|
|
389
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
390
|
+
|
|
391
|
+
begin
|
|
392
|
+
# Trigger domain verification
|
|
393
|
+
result = api_instance.verify_domain(id)
|
|
394
|
+
p result
|
|
395
|
+
rescue Zyphr::ApiError => e
|
|
396
|
+
puts "Error when calling DomainsApi->verify_domain: #{e}"
|
|
397
|
+
end
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
#### Using the verify_domain_with_http_info variant
|
|
401
|
+
|
|
402
|
+
This returns an Array which contains the response data, status code and headers.
|
|
403
|
+
|
|
404
|
+
> <Array(<VerifyDomainResponse>, Integer, Hash)> verify_domain_with_http_info(id)
|
|
405
|
+
|
|
406
|
+
```ruby
|
|
407
|
+
begin
|
|
408
|
+
# Trigger domain verification
|
|
409
|
+
data, status_code, headers = api_instance.verify_domain_with_http_info(id)
|
|
410
|
+
p status_code # => 2xx
|
|
411
|
+
p headers # => { ... }
|
|
412
|
+
p data # => <VerifyDomainResponse>
|
|
413
|
+
rescue Zyphr::ApiError => e
|
|
414
|
+
puts "Error when calling DomainsApi->verify_domain_with_http_info: #{e}"
|
|
415
|
+
end
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
### Parameters
|
|
419
|
+
|
|
420
|
+
| Name | Type | Description | Notes |
|
|
421
|
+
| ---- | ---- | ----------- | ----- |
|
|
422
|
+
| **id** | **String** | | |
|
|
423
|
+
|
|
424
|
+
### Return type
|
|
425
|
+
|
|
426
|
+
[**VerifyDomainResponse**](VerifyDomainResponse.md)
|
|
427
|
+
|
|
428
|
+
### Authorization
|
|
429
|
+
|
|
430
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
431
|
+
|
|
432
|
+
### HTTP request headers
|
|
433
|
+
|
|
434
|
+
- **Content-Type**: Not defined
|
|
435
|
+
- **Accept**: application/json
|
|
436
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::GetDomain200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**DomainResponse**](DomainResponse.md) | | [optional] |
|
|
8
|
+
| **meta** | [**GetDomain200ResponseMeta**](GetDomain200ResponseMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::GetDomain200Response.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Zyphr::GetDomain200ResponseMeta
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **request_id** | **String** | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'zyphr'
|
|
13
|
+
|
|
14
|
+
instance = Zyphr::GetDomain200ResponseMeta.new(
|
|
15
|
+
request_id: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::VerificationStatusResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**VerificationStatusResponseData**](VerificationStatusResponseData.md) | | |
|
|
8
|
+
| **meta** | [**GetDomain200ResponseMeta**](GetDomain200ResponseMeta.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::VerificationStatusResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Zyphr::VerificationStatusResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **domain_id** | **String** | | |
|
|
8
|
+
| **domain** | **String** | | |
|
|
9
|
+
| **status** | **String** | | |
|
|
10
|
+
| **records_verified** | **Integer** | | |
|
|
11
|
+
| **records_total** | **Integer** | | |
|
|
12
|
+
| **progress** | **Hash<String, Object>** | Internal verification progress detail | [optional] |
|
|
13
|
+
| **dns_records** | [**Array<DnsRecord>**](DnsRecord.md) | | |
|
|
14
|
+
| **last_checked_at** | **Time** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'zyphr'
|
|
20
|
+
|
|
21
|
+
instance = Zyphr::VerificationStatusResponseData.new(
|
|
22
|
+
domain_id: null,
|
|
23
|
+
domain: null,
|
|
24
|
+
status: null,
|
|
25
|
+
records_verified: null,
|
|
26
|
+
records_total: null,
|
|
27
|
+
progress: null,
|
|
28
|
+
dns_records: null,
|
|
29
|
+
last_checked_at: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::VerifyDomainResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**VerifyDomainResponseData**](VerifyDomainResponseData.md) | | |
|
|
8
|
+
| **meta** | [**AddDomain200ResponseMeta**](AddDomain200ResponseMeta.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::VerifyDomainResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Zyphr::VerifyDomainResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **job_id** | **String** | | |
|
|
8
|
+
| **domain_id** | **String** | | |
|
|
9
|
+
| **domain** | **String** | | |
|
|
10
|
+
| **status** | **String** | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'zyphr'
|
|
16
|
+
|
|
17
|
+
instance = Zyphr::VerifyDomainResponseData.new(
|
|
18
|
+
job_id: null,
|
|
19
|
+
domain_id: null,
|
|
20
|
+
domain: null,
|
|
21
|
+
status: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|