apollo-deploy-signal-sdk 1.0.5
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 +7 -0
- data/Gemfile +5 -0
- data/LICENSE +21 -0
- data/README.md +79 -0
- data/docs/README.md +30 -0
- data/docs/domains/api-keys.md +92 -0
- data/docs/domains/contact-properties.md +122 -0
- data/docs/domains/contacts.md +394 -0
- data/docs/domains/emails.md +150 -0
- data/docs/domains/metrics.md +131 -0
- data/docs/domains/projects.md +127 -0
- data/docs/domains/segments.md +116 -0
- data/docs/domains/sending-domains.md +160 -0
- data/docs/domains/suppressions.md +120 -0
- data/docs/domains/topics.md +141 -0
- data/docs/domains/webhooks.md +200 -0
- data/docs/types.md +1225 -0
- data/lib/apollo-deploy-signal-sdk.rb +3 -0
- data/lib/apollo_deploy_signal_sdk/client.rb +111 -0
- data/lib/apollo_deploy_signal_sdk/errors.rb +150 -0
- data/lib/apollo_deploy_signal_sdk/resources/api-keys.rb +86 -0
- data/lib/apollo_deploy_signal_sdk/resources/contact-properties.rb +108 -0
- data/lib/apollo_deploy_signal_sdk/resources/contacts.rb +356 -0
- data/lib/apollo_deploy_signal_sdk/resources/emails.rb +128 -0
- data/lib/apollo_deploy_signal_sdk/resources/metrics.rb +122 -0
- data/lib/apollo_deploy_signal_sdk/resources/projects.rb +114 -0
- data/lib/apollo_deploy_signal_sdk/resources/segments.rb +105 -0
- data/lib/apollo_deploy_signal_sdk/resources/sending-domains.rb +144 -0
- data/lib/apollo_deploy_signal_sdk/resources/suppressions.rb +104 -0
- data/lib/apollo_deploy_signal_sdk/resources/topics.rb +126 -0
- data/lib/apollo_deploy_signal_sdk/resources/webhooks.rb +184 -0
- data/lib/apollo_deploy_signal_sdk/transport.rb +618 -0
- data/lib/apollo_deploy_signal_sdk/types.rb +4917 -0
- data/lib/apollo_deploy_signal_sdk/version.rb +5 -0
- data/lib/apollo_deploy_signal_sdk.rb +47 -0
- metadata +135 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5d4cf128d1c2b7e000c6b62cbd0c0adbae2d1cf11ffff02840f7bf51269b01d2
|
|
4
|
+
data.tar.gz: 86caecd7897b9ba8ce03c4cf53d00486d415c81ffb87993b3a9a4cf596251caa
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a0bd3c657a819dedfd3e15076eb6aff52932ae8286d54b5e0428c68c892b6ba5400e50f94f2bc319d6159f0bfa60305b0d05afe937a9a8faa087e8e3a7feedfa
|
|
7
|
+
data.tar.gz: c31586ba81fb9c35936b113aeb74ab786f213a491b243631178a4de2fc6bc730ea19648b0f04bd5094c79ac0ebd08befa275520aad905dc6ecef4c3891e986b4
|
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Apollo Signal API SDK contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Apollo Signal API Ruby SDK
|
|
2
|
+
|
|
3
|
+
Ruby client for the Apollo Signal API API.
|
|
4
|
+
|
|
5
|
+
> Generated by [Tesseract](https://www.npmjs.com/package/@apollo-deploy/tesseract). Generated source files should not be edited manually.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'apollo-deploy-signal-sdk'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bundle install
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'apollo-deploy-signal-sdk'
|
|
21
|
+
|
|
22
|
+
client = ApolloDeploySignalSdk::Client.new(
|
|
23
|
+
base_url: "https://signal.apollodeploy.com",
|
|
24
|
+
timeout: 15
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
api = client.emails
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Configuration and reliability
|
|
31
|
+
|
|
32
|
+
The transport provides bounded timeouts, exponential-backoff retries, rate-limit handling, default headers, and structured `SDKError` values. Unsafe requests are retried only when explicitly enabled or made idempotent.
|
|
33
|
+
|
|
34
|
+
```ruby
|
|
35
|
+
client = ApolloDeploySignalSdk::Client.new(
|
|
36
|
+
timeout: 30,
|
|
37
|
+
retries: {
|
|
38
|
+
attempts: 3,
|
|
39
|
+
backoff: 0.4,
|
|
40
|
+
jitter: true,
|
|
41
|
+
max_backoff: 30.0
|
|
42
|
+
},
|
|
43
|
+
default_headers: { 'X-Application' => 'my-service' }
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Documentation
|
|
48
|
+
|
|
49
|
+
- [Documentation index](./docs/README.md)
|
|
50
|
+
- [Generated types](./docs/types.md)
|
|
51
|
+
|
|
52
|
+
| Domain | Description |
|
|
53
|
+
|---|---|
|
|
54
|
+
| [Emails](./docs/domains/emails.md) | emails operations |
|
|
55
|
+
| [Metrics](./docs/domains/metrics.md) | metrics operations |
|
|
56
|
+
| [Suppressions](./docs/domains/suppressions.md) | suppressions operations |
|
|
57
|
+
| [Segments](./docs/domains/segments.md) | segments operations |
|
|
58
|
+
| [Topics](./docs/domains/topics.md) | topics operations |
|
|
59
|
+
| [ContactProperties](./docs/domains/contact-properties.md) | contactProperties operations |
|
|
60
|
+
| [Contacts](./docs/domains/contacts.md) | contacts operations |
|
|
61
|
+
| [Webhooks](./docs/domains/webhooks.md) | webhooks operations |
|
|
62
|
+
| [ApiKeys](./docs/domains/api-keys.md) | apiKeys operations |
|
|
63
|
+
| [Projects](./docs/domains/projects.md) | projects operations |
|
|
64
|
+
| [SendingDomains](./docs/domains/sending-domains.md) | sendingDomains operations |
|
|
65
|
+
|
|
66
|
+
## Error handling
|
|
67
|
+
|
|
68
|
+
```ruby
|
|
69
|
+
begin
|
|
70
|
+
# Call a domain operation.
|
|
71
|
+
rescue ApolloDeploySignalSdk::SDKError => error
|
|
72
|
+
warn "#{error.status} #{error.code} request=#{error.request_id}"
|
|
73
|
+
raise
|
|
74
|
+
end
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT
|
data/docs/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Apollo Signal API SDK documentation
|
|
2
|
+
|
|
3
|
+
Reference documentation for the Apollo Signal API SDK.
|
|
4
|
+
|
|
5
|
+
[Back to the SDK overview](../README.md)
|
|
6
|
+
|
|
7
|
+
## API domains
|
|
8
|
+
|
|
9
|
+
| Domain | Client accessor | Operations | Description |
|
|
10
|
+
|---|---|---:|---|
|
|
11
|
+
| [EmailsAPI](./domains/emails.md) | `client.emails` | 8 | emails operations |
|
|
12
|
+
| [MetricsAPI](./domains/metrics.md) | `client.metrics` | 6 | metrics operations |
|
|
13
|
+
| [SuppressionsAPI](./domains/suppressions.md) | `client.suppressions` | 5 | suppressions operations |
|
|
14
|
+
| [SegmentsAPI](./domains/segments.md) | `client.segments` | 5 | segments operations |
|
|
15
|
+
| [TopicsAPI](./domains/topics.md) | `client.topics` | 6 | topics operations |
|
|
16
|
+
| [ContactPropertiesAPI](./domains/contact-properties.md) | `client.contact_properties` | 5 | contactProperties operations |
|
|
17
|
+
| [ContactsAPI](./domains/contacts.md) | `client.contacts` | 18 | contacts operations |
|
|
18
|
+
| [WebhooksAPI](./domains/webhooks.md) | `client.webhooks` | 9 | webhooks operations |
|
|
19
|
+
| [ApiKeysAPI](./domains/api-keys.md) | `client.api_keys` | 4 | apiKeys operations |
|
|
20
|
+
| [ProjectsAPI](./domains/projects.md) | `client.projects` | 6 | projects operations |
|
|
21
|
+
| [SendingDomainsAPI](./domains/sending-domains.md) | `client.sending_domains` | 7 | sendingDomains operations |
|
|
22
|
+
|
|
23
|
+
## Models and types
|
|
24
|
+
|
|
25
|
+
- [Generated types reference](./types.md)
|
|
26
|
+
|
|
27
|
+
## Reliability behavior
|
|
28
|
+
|
|
29
|
+
Generated clients use bounded request timeouts, structured SDK errors, request ID propagation, and retry transient failures with exponential backoff. Unsafe requests are not retried unless the generated client can establish idempotency or the caller explicitly enables it.
|
|
30
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# ApiKeysAPI
|
|
2
|
+
|
|
3
|
+
apiKeys API operations.
|
|
4
|
+
|
|
5
|
+
[Documentation index](../README.md) · [SDK overview](../../README.md) · [Generated source](../../lib/apollo_deploy_signal_sdk/resources/api-keys.rb)
|
|
6
|
+
|
|
7
|
+
Client accessor: `client.api_keys`
|
|
8
|
+
|
|
9
|
+
## Operations
|
|
10
|
+
|
|
11
|
+
| Method | HTTP | Path | Returns | Description |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| [`list_api_keys`](#list-api-keys) | `GET` | `/v1/projects/{projectId}/api-keys` | `ListApiKeysResponse` | — |
|
|
14
|
+
| [`get_api_key`](#get-api-key) | `GET` | `/v1/projects/{projectId}/api-keys/{keyId}` | `ApiKey` | — |
|
|
15
|
+
| [`get_api_key_usage`](#get-api-key-usage) | `GET` | `/v1/projects/{projectId}/api-keys/{keyId}/usage` | `ApiKeyUsageResponse` | — |
|
|
16
|
+
| [`export_api_key_usage`](#export-api-key-usage) | `GET` | `/v1/projects/{projectId}/api-keys/{keyId}/usage/export` | `nil` | — |
|
|
17
|
+
|
|
18
|
+
## list_api_keys
|
|
19
|
+
|
|
20
|
+
`GET /v1/projects/{projectId}/api-keys`
|
|
21
|
+
|
|
22
|
+
### Parameters
|
|
23
|
+
|
|
24
|
+
| Name | Location | Type | Required | Description |
|
|
25
|
+
|---|---|---|:---:|---|
|
|
26
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
27
|
+
|
|
28
|
+
### Response
|
|
29
|
+
|
|
30
|
+
- Response schema selectors: `200`
|
|
31
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
32
|
+
- Type: `ListApiKeysResponse`
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## get_api_key
|
|
36
|
+
|
|
37
|
+
`GET /v1/projects/{projectId}/api-keys/{keyId}`
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
| Name | Location | Type | Required | Description |
|
|
42
|
+
|---|---|---|:---:|---|
|
|
43
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
44
|
+
| `keyId` | Path | `String` | Yes | — |
|
|
45
|
+
|
|
46
|
+
### Response
|
|
47
|
+
|
|
48
|
+
- Response schema selectors: `200`
|
|
49
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
50
|
+
- Type: `ApiKey`
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## get_api_key_usage
|
|
54
|
+
|
|
55
|
+
`GET /v1/projects/{projectId}/api-keys/{keyId}/usage`
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
| Name | Location | Type | Required | Description |
|
|
60
|
+
|---|---|---|:---:|---|
|
|
61
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
62
|
+
| `keyId` | Path | `String` | Yes | — |
|
|
63
|
+
|
|
64
|
+
### Response
|
|
65
|
+
|
|
66
|
+
- Response schema selectors: `200`
|
|
67
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
68
|
+
- Type: `ApiKeyUsageResponse`
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## export_api_key_usage
|
|
72
|
+
|
|
73
|
+
`GET /v1/projects/{projectId}/api-keys/{keyId}/usage/export`
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
|
|
77
|
+
| Name | Location | Type | Required | Description |
|
|
78
|
+
|---|---|---|:---:|---|
|
|
79
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
80
|
+
| `keyId` | Path | `String` | Yes | — |
|
|
81
|
+
|
|
82
|
+
### Response
|
|
83
|
+
|
|
84
|
+
- Response schema selectors: `2XX`
|
|
85
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
86
|
+
- Type: `nil`
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
Generated from the Apollo Signal API manifest by Tesseract.
|
|
92
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# ContactPropertiesAPI
|
|
2
|
+
|
|
3
|
+
contactProperties API operations.
|
|
4
|
+
|
|
5
|
+
[Documentation index](../README.md) · [SDK overview](../../README.md) · [Generated source](../../lib/apollo_deploy_signal_sdk/resources/contact-properties.rb)
|
|
6
|
+
|
|
7
|
+
Client accessor: `client.contact_properties`
|
|
8
|
+
|
|
9
|
+
## Operations
|
|
10
|
+
|
|
11
|
+
| Method | HTTP | Path | Returns | Description |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| [`list_contact_properties`](#list-contact-properties) | `GET` | `/v1/projects/{projectId}/contact-properties` | `ContactPropertyPageResponse` | — |
|
|
14
|
+
| [`get_contact_property`](#get-contact-property) | `GET` | `/v1/projects/{projectId}/contact-properties/{propertyId}` | `ContactPropertyResponse` | — |
|
|
15
|
+
| [`create_contact_property`](#create-contact-property) | `POST` | `/v1/projects/{projectId}/contact-properties` | `ContactPropertyResponse` | — |
|
|
16
|
+
| [`update_contact_property`](#update-contact-property) | `PATCH` | `/v1/projects/{projectId}/contact-properties/{propertyId}` | `ContactPropertyResponse` | — |
|
|
17
|
+
| [`delete_contact_property`](#delete-contact-property) | `DELETE` | `/v1/projects/{projectId}/contact-properties/{propertyId}` | `nil` | — |
|
|
18
|
+
|
|
19
|
+
## list_contact_properties
|
|
20
|
+
|
|
21
|
+
`GET /v1/projects/{projectId}/contact-properties`
|
|
22
|
+
|
|
23
|
+
### Parameters
|
|
24
|
+
|
|
25
|
+
| Name | Location | Type | Required | Description |
|
|
26
|
+
|---|---|---|:---:|---|
|
|
27
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
28
|
+
|
|
29
|
+
### Response
|
|
30
|
+
|
|
31
|
+
- Response schema selectors: `200`
|
|
32
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
33
|
+
- Type: `ContactPropertyPageResponse`
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## get_contact_property
|
|
37
|
+
|
|
38
|
+
`GET /v1/projects/{projectId}/contact-properties/{propertyId}`
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Location | Type | Required | Description |
|
|
43
|
+
|---|---|---|:---:|---|
|
|
44
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
45
|
+
| `propertyId` | Path | `String` | Yes | — |
|
|
46
|
+
|
|
47
|
+
### Response
|
|
48
|
+
|
|
49
|
+
- Response schema selectors: `200`
|
|
50
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
51
|
+
- Type: `ContactPropertyResponse`
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## create_contact_property
|
|
55
|
+
|
|
56
|
+
`POST /v1/projects/{projectId}/contact-properties`
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
| Name | Location | Type | Required | Description |
|
|
61
|
+
|---|---|---|:---:|---|
|
|
62
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
63
|
+
|
|
64
|
+
### Request body
|
|
65
|
+
|
|
66
|
+
- Type: `CreateContactPropertyBody`
|
|
67
|
+
- Required: Yes
|
|
68
|
+
- Content type: `application/json`
|
|
69
|
+
|
|
70
|
+
### Response
|
|
71
|
+
|
|
72
|
+
- Response schema selectors: `201`
|
|
73
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
74
|
+
- Type: `ContactPropertyResponse`
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## update_contact_property
|
|
78
|
+
|
|
79
|
+
`PATCH /v1/projects/{projectId}/contact-properties/{propertyId}`
|
|
80
|
+
|
|
81
|
+
### Parameters
|
|
82
|
+
|
|
83
|
+
| Name | Location | Type | Required | Description |
|
|
84
|
+
|---|---|---|:---:|---|
|
|
85
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
86
|
+
| `propertyId` | Path | `String` | Yes | — |
|
|
87
|
+
|
|
88
|
+
### Request body
|
|
89
|
+
|
|
90
|
+
- Type: `UpdateContactPropertyBody`
|
|
91
|
+
- Required: Yes
|
|
92
|
+
- Content type: `application/json`
|
|
93
|
+
|
|
94
|
+
### Response
|
|
95
|
+
|
|
96
|
+
- Response schema selectors: `200`
|
|
97
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
98
|
+
- Type: `ContactPropertyResponse`
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## delete_contact_property
|
|
102
|
+
|
|
103
|
+
`DELETE /v1/projects/{projectId}/contact-properties/{propertyId}`
|
|
104
|
+
|
|
105
|
+
### Parameters
|
|
106
|
+
|
|
107
|
+
| Name | Location | Type | Required | Description |
|
|
108
|
+
|---|---|---|:---:|---|
|
|
109
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
110
|
+
| `propertyId` | Path | `String` | Yes | — |
|
|
111
|
+
|
|
112
|
+
### Response
|
|
113
|
+
|
|
114
|
+
- Response schema selectors: `2XX`
|
|
115
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
116
|
+
- Type: `nil`
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
Generated from the Apollo Signal API manifest by Tesseract.
|
|
122
|
+
|