zyphr 0.1.27 → 0.1.30

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -0
  3. data/docs/AddDomain200Response.md +20 -0
  4. data/docs/AddDomain200ResponseMeta.md +20 -0
  5. data/docs/AddDomainRequest.md +18 -0
  6. data/docs/DeleteDomainResponse.md +20 -0
  7. data/docs/DeleteDomainResponseData.md +20 -0
  8. data/docs/DnsRecord.md +26 -0
  9. data/docs/DomainListResponse.md +20 -0
  10. data/docs/DomainListResponseMeta.md +24 -0
  11. data/docs/DomainResponse.md +38 -0
  12. data/docs/DomainsApi.md +436 -0
  13. data/docs/GetDomain200Response.md +20 -0
  14. data/docs/GetDomain200ResponseMeta.md +18 -0
  15. data/docs/VerificationStatusResponse.md +20 -0
  16. data/docs/VerificationStatusResponseData.md +32 -0
  17. data/docs/VerifyDomainResponse.md +20 -0
  18. data/docs/VerifyDomainResponseData.md +24 -0
  19. data/lib/zyphr/api/domains_api.rb +399 -0
  20. data/lib/zyphr/models/add_domain200_response.rb +229 -0
  21. data/lib/zyphr/models/add_domain200_response_meta.rb +229 -0
  22. data/lib/zyphr/models/add_domain_request.rb +238 -0
  23. data/lib/zyphr/models/delete_domain_response.rb +263 -0
  24. data/lib/zyphr/models/delete_domain_response_data.rb +263 -0
  25. data/lib/zyphr/models/dns_record.rb +373 -0
  26. data/lib/zyphr/models/domain_list_response.rb +265 -0
  27. data/lib/zyphr/models/domain_list_response_meta.rb +249 -0
  28. data/lib/zyphr/models/domain_response.rb +463 -0
  29. data/lib/zyphr/models/get_domain200_response.rb +229 -0
  30. data/lib/zyphr/models/get_domain200_response_meta.rb +220 -0
  31. data/lib/zyphr/models/verification_status_response.rb +263 -0
  32. data/lib/zyphr/models/verification_status_response_data.rb +415 -0
  33. data/lib/zyphr/models/verify_domain_response.rb +263 -0
  34. data/lib/zyphr/models/verify_domain_response_data.rb +339 -0
  35. data/lib/zyphr.rb +16 -0
  36. data/spec/api/domains_api_spec.rb +106 -0
  37. data/spec/models/add_domain200_response_meta_spec.rb +42 -0
  38. data/spec/models/add_domain200_response_spec.rb +42 -0
  39. data/spec/models/add_domain_request_spec.rb +36 -0
  40. data/spec/models/delete_domain_response_data_spec.rb +42 -0
  41. data/spec/models/delete_domain_response_spec.rb +42 -0
  42. data/spec/models/dns_record_spec.rb +68 -0
  43. data/spec/models/domain_list_response_meta_spec.rb +54 -0
  44. data/spec/models/domain_list_response_spec.rb +42 -0
  45. data/spec/models/domain_response_spec.rb +100 -0
  46. data/spec/models/get_domain200_response_meta_spec.rb +36 -0
  47. data/spec/models/get_domain200_response_spec.rb +42 -0
  48. data/spec/models/verification_status_response_data_spec.rb +82 -0
  49. data/spec/models/verification_status_response_spec.rb +42 -0
  50. data/spec/models/verify_domain_response_data_spec.rb +58 -0
  51. data/spec/models/verify_domain_response_spec.rb +42 -0
  52. data/zyphr.gemspec +1 -1
  53. metadata +66 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c0048f5a4a2294ad94e431346bc3e1f65d4c9d5e746f53e4ee57f05cfe7222c
4
- data.tar.gz: a75783ec342d8e8e6780dd571c3fb59b11b76b232707fa9175a97596fb466452
3
+ metadata.gz: 66f94994637ec053fa5f9f8b06f18100b9b36cea273a621e829a96a9fb63380d
4
+ data.tar.gz: 5de6264f0d9351baf0366121f63beb2810fd386eec9b716ed9c9fe15acc0b5fd
5
5
  SHA512:
6
- metadata.gz: dffd78d2a8a86b4f7c7314136bbc24fb0420b6f0e828b8a6d666c27f7bb520fc4a13040afee24fd8ad8fd661e780a15d604d9f96d18eddfbfbf96d30dd607f9e
7
- data.tar.gz: 4435f2a1a9838d32d6e6ef3f44ebd0780df9972359211b4dcf3bab8bccad936fb2df80f88cdda41f87a6ff3777411eb950ba55f437e4f7e0579f70847da445e9
6
+ metadata.gz: 1d36f0b3a9ce887388fc0b44407952b92826388359df2f48137a7003818e4c0a03fe2c00502cc19c5f1ee49f39a50f4a1d6a89b0c93d59a5fc32035351855b01
7
+ data.tar.gz: 41e1288638d3924a86f1807dc9ac9ae08cdd5cb478699d2c3bba9592818e375d431f47e3bca0ad0850ca5076cce5d29a2c83637975a68dffca3449162270aa25
data/README.md CHANGED
@@ -192,6 +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** /v1/domains | Add a sending domain
196
+ *Zyphr::DomainsApi* | [**delete_domain**](docs/DomainsApi.md#delete_domain) | **DELETE** /v1/domains/{id} | Remove a sending domain
197
+ *Zyphr::DomainsApi* | [**get_domain**](docs/DomainsApi.md#get_domain) | **GET** /v1/domains/{id} | Get a sending domain
198
+ *Zyphr::DomainsApi* | [**get_domain_verification_status**](docs/DomainsApi.md#get_domain_verification_status) | **GET** /v1/domains/{id}/verification-status | Get domain verification status
199
+ *Zyphr::DomainsApi* | [**list_domains**](docs/DomainsApi.md#list_domains) | **GET** /v1/domains | List sending domains
200
+ *Zyphr::DomainsApi* | [**verify_domain**](docs/DomainsApi.md#verify_domain) | **POST** /v1/domains/{id}/verify | Trigger domain verification
195
201
  *Zyphr::EmailsApi* | [**get_email**](docs/EmailsApi.md#get_email) | **GET** /emails/{id} | Get email details
196
202
  *Zyphr::EmailsApi* | [**get_email_events**](docs/EmailsApi.md#get_email_events) | **GET** /emails/{id}/events | Get email events
197
203
  *Zyphr::EmailsApi* | [**get_email_tracking**](docs/EmailsApi.md#get_email_tracking) | **GET** /emails/{id}/tracking | Get email tracking stats
@@ -333,6 +339,9 @@ Class | Method | HTTP request | Description
333
339
 
334
340
  ## Documentation for Models
335
341
 
342
+ - [Zyphr::AddDomain200Response](docs/AddDomain200Response.md)
343
+ - [Zyphr::AddDomain200ResponseMeta](docs/AddDomain200ResponseMeta.md)
344
+ - [Zyphr::AddDomainRequest](docs/AddDomainRequest.md)
336
345
  - [Zyphr::AddTopicSubscribersRequest](docs/AddTopicSubscribersRequest.md)
337
346
  - [Zyphr::ApiError](docs/ApiError.md)
338
347
  - [Zyphr::ApiErrorError](docs/ApiErrorError.md)
@@ -399,6 +408,8 @@ Class | Method | HTTP request | Description
399
408
  - [Zyphr::CreateWaaSEventType201Response](docs/CreateWaaSEventType201Response.md)
400
409
  - [Zyphr::CreateWaaSEventTypeRequest](docs/CreateWaaSEventTypeRequest.md)
401
410
  - [Zyphr::CreateWebhookRequest](docs/CreateWebhookRequest.md)
411
+ - [Zyphr::DeleteDomainResponse](docs/DeleteDomainResponse.md)
412
+ - [Zyphr::DeleteDomainResponseData](docs/DeleteDomainResponseData.md)
402
413
  - [Zyphr::DeleteResult](docs/DeleteResult.md)
403
414
  - [Zyphr::DeleteResultData](docs/DeleteResultData.md)
404
415
  - [Zyphr::Device](docs/Device.md)
@@ -409,6 +420,10 @@ Class | Method | HTTP request | Description
409
420
  - [Zyphr::DeviceResponse](docs/DeviceResponse.md)
410
421
  - [Zyphr::DeviceStats](docs/DeviceStats.md)
411
422
  - [Zyphr::DeviceStatsResponse](docs/DeviceStatsResponse.md)
423
+ - [Zyphr::DnsRecord](docs/DnsRecord.md)
424
+ - [Zyphr::DomainListResponse](docs/DomainListResponse.md)
425
+ - [Zyphr::DomainListResponseMeta](docs/DomainListResponseMeta.md)
426
+ - [Zyphr::DomainResponse](docs/DomainResponse.md)
412
427
  - [Zyphr::EmailAddress](docs/EmailAddress.md)
413
428
  - [Zyphr::EmailAttachment](docs/EmailAttachment.md)
414
429
  - [Zyphr::EmailEvent](docs/EmailEvent.md)
@@ -433,6 +448,8 @@ Class | Method | HTTP request | Description
433
448
  - [Zyphr::GenerateSubscriberToken200ResponseData](docs/GenerateSubscriberToken200ResponseData.md)
434
449
  - [Zyphr::GenerateSubscriberTokenRequest](docs/GenerateSubscriberTokenRequest.md)
435
450
  - [Zyphr::GenerateWaaSPortalToken201Response](docs/GenerateWaaSPortalToken201Response.md)
451
+ - [Zyphr::GetDomain200Response](docs/GetDomain200Response.md)
452
+ - [Zyphr::GetDomain200ResponseMeta](docs/GetDomain200ResponseMeta.md)
436
453
  - [Zyphr::GetWaaSEndpoint200Response](docs/GetWaaSEndpoint200Response.md)
437
454
  - [Zyphr::GetWaaSUsage200Response](docs/GetWaaSUsage200Response.md)
438
455
  - [Zyphr::InAppNotification](docs/InAppNotification.md)
@@ -645,6 +662,10 @@ Class | Method | HTTP request | Description
645
662
  - [Zyphr::ValidateResetTokenRequest](docs/ValidateResetTokenRequest.md)
646
663
  - [Zyphr::ValidateResetTokenResponse](docs/ValidateResetTokenResponse.md)
647
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)
648
669
  - [Zyphr::VerifySmsConfigData](docs/VerifySmsConfigData.md)
649
670
  - [Zyphr::VerifySmsConfigResponse](docs/VerifySmsConfigResponse.md)
650
671
  - [Zyphr::WaaSApplication](docs/WaaSApplication.md)
@@ -0,0 +1,20 @@
1
+ # Zyphr::AddDomain200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**DomainResponse**](DomainResponse.md) | | [optional] |
8
+ | **meta** | [**AddDomain200ResponseMeta**](AddDomain200ResponseMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::AddDomain200Response.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::AddDomain200ResponseMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::AddDomain200ResponseMeta.new(
16
+ request_id: null,
17
+ message: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Zyphr::AddDomainRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain** | **String** | The sending domain to add (will be lowercased and trimmed) | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'zyphr'
13
+
14
+ instance = Zyphr::AddDomainRequest.new(
15
+ domain: sprint.example.com
16
+ )
17
+ ```
18
+
@@ -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/DnsRecord.md ADDED
@@ -0,0 +1,26 @@
1
+ # Zyphr::DnsRecord
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | DNS record type | |
8
+ | **name** | **String** | DNS record name (host) | |
9
+ | **value** | **String** | DNS record value | |
10
+ | **purpose** | **String** | What this record is for — useful for partial failure reasoning (e.g. \"SPF verified, DKIM #2 still pending\") instead of treating the set as opaque. | |
11
+ | **verified** | **Boolean** | Whether this specific record has been observed in DNS | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'zyphr'
17
+
18
+ instance = Zyphr::DnsRecord.new(
19
+ type: TXT,
20
+ name: _zyphr.sprint.example.com,
21
+ value: zyphr-verify-a58965815e2dcbacd2c7ecfdd2f342e6,
22
+ purpose: domain_verification,
23
+ verified: false
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::DomainListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<DomainResponse>**](DomainResponse.md) | | |
8
+ | **meta** | [**DomainListResponseMeta**](DomainListResponseMeta.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::DomainListResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Zyphr::DomainListResponseMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | | [optional] |
8
+ | **count** | **Integer** | Account-wide domain count (across all projects) | [optional] |
9
+ | **limit** | **Integer** | Per-account domain limit from the current plan | [optional] |
10
+ | **plan** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::DomainListResponseMeta.new(
18
+ request_id: null,
19
+ count: null,
20
+ limit: null,
21
+ plan: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,38 @@
1
+ # Zyphr::DomainResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **domain** | **String** | The sending domain | |
9
+ | **status** | **String** | | |
10
+ | **dns_records** | [**Array<DnsRecord>**](DnsRecord.md) | | |
11
+ | **records_verified** | **Integer** | Count of `dns_records[]` entries with `verified=true` | |
12
+ | **records_total** | **Integer** | Total entries in `dns_records[]` | |
13
+ | **verification_token** | **String** | Token used for the verification TXT record (also visible in `dns_records[]`) | [optional] |
14
+ | **verified_at** | **Time** | Timestamp when verification first succeeded | [optional] |
15
+ | **last_checked_at** | **Time** | Timestamp of the most recent verification attempt | [optional] |
16
+ | **created_at** | **Time** | | |
17
+ | **updated_at** | **Time** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'zyphr'
23
+
24
+ instance = Zyphr::DomainResponse.new(
25
+ id: 6dd58837-4e2d-4f0c-9b3a-1f2e3a4b5c6d,
26
+ domain: sprint.example.com,
27
+ status: pending,
28
+ dns_records: null,
29
+ records_verified: 0,
30
+ records_total: 6,
31
+ verification_token: null,
32
+ verified_at: null,
33
+ last_checked_at: null,
34
+ created_at: null,
35
+ updated_at: null
36
+ )
37
+ ```
38
+