zyphr 0.1.74 → 0.1.76

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -1
  3. data/docs/CreateInboxLabelRequest.md +20 -0
  4. data/docs/Draft.md +36 -0
  5. data/docs/DraftAddress.md +20 -0
  6. data/docs/DraftListResponse.md +20 -0
  7. data/docs/DraftRequest.md +30 -0
  8. data/docs/DraftResponse.md +20 -0
  9. data/docs/ForwardEmailRequest.md +34 -0
  10. data/docs/InboundEmailApi.md +1855 -152
  11. data/docs/Inbox.md +3 -1
  12. data/docs/InboxLabel.md +26 -0
  13. data/docs/InboxLabelListResponse.md +20 -0
  14. data/docs/InboxLabelResponse.md +20 -0
  15. data/docs/InboxListResponse.md +1 -1
  16. data/docs/InboxListResponseMeta.md +22 -0
  17. data/docs/{ReplyToInboundEmailRequest.md → ReplyEmailRequest.md} +3 -3
  18. data/docs/Thread.md +40 -0
  19. data/docs/ThreadEmail.md +38 -0
  20. data/docs/ThreadEmailAttachmentsInner.md +24 -0
  21. data/docs/ThreadEmailFrom.md +20 -0
  22. data/docs/ThreadEmailListResponse.md +20 -0
  23. data/docs/ThreadEmailResponse.md +20 -0
  24. data/docs/ThreadFolder.md +15 -0
  25. data/docs/ThreadLabelsInner.md +22 -0
  26. data/docs/ThreadLabelsRequest.md +18 -0
  27. data/docs/ThreadListResponse.md +20 -0
  28. data/docs/ThreadListResponseMeta.md +20 -0
  29. data/docs/ThreadResponse.md +20 -0
  30. data/docs/UpdateInboxLabelRequest.md +20 -0
  31. data/docs/UpdateThreadRequest.md +22 -0
  32. data/lib/zyphr/api/inbound_email_api.rb +1774 -168
  33. data/lib/zyphr/models/create_inbox_label_request.rb +272 -0
  34. data/lib/zyphr/models/draft.rb +375 -0
  35. data/lib/zyphr/models/draft_address.rb +249 -0
  36. data/lib/zyphr/models/draft_list_response.rb +231 -0
  37. data/lib/zyphr/models/draft_request.rb +299 -0
  38. data/lib/zyphr/models/draft_response.rb +229 -0
  39. data/lib/zyphr/models/forward_email_request.rb +393 -0
  40. data/lib/zyphr/models/inbox.rb +14 -4
  41. data/lib/zyphr/models/inbox_label.rb +258 -0
  42. data/lib/zyphr/models/inbox_label_list_response.rb +231 -0
  43. data/lib/zyphr/models/inbox_label_response.rb +229 -0
  44. data/lib/zyphr/models/inbox_list_response.rb +1 -1
  45. data/lib/zyphr/models/inbox_list_response_meta.rb +246 -0
  46. data/lib/zyphr/models/{reply_to_inbound_email_request.rb → reply_email_request.rb} +4 -3
  47. data/lib/zyphr/models/thread.rb +352 -0
  48. data/lib/zyphr/models/thread_email.rb +353 -0
  49. data/lib/zyphr/models/thread_email_attachments_inner.rb +248 -0
  50. data/lib/zyphr/models/thread_email_from.rb +230 -0
  51. data/lib/zyphr/models/thread_email_list_response.rb +231 -0
  52. data/lib/zyphr/models/thread_email_response.rb +229 -0
  53. data/lib/zyphr/models/thread_folder.rb +43 -0
  54. data/lib/zyphr/models/thread_labels_inner.rb +239 -0
  55. data/lib/zyphr/models/thread_labels_request.rb +248 -0
  56. data/lib/zyphr/models/thread_list_response.rb +231 -0
  57. data/lib/zyphr/models/thread_list_response_meta.rb +237 -0
  58. data/lib/zyphr/models/thread_response.rb +229 -0
  59. data/lib/zyphr/models/update_inbox_label_request.rb +264 -0
  60. data/lib/zyphr/models/update_thread_request.rb +262 -0
  61. data/lib/zyphr.rb +26 -1
  62. data/spec/api/inbound_email_api_spec.rb +294 -1
  63. data/spec/models/create_inbox_label_request_spec.rb +42 -0
  64. data/spec/models/draft_address_spec.rb +42 -0
  65. data/spec/models/draft_list_response_spec.rb +42 -0
  66. data/spec/models/draft_request_spec.rb +72 -0
  67. data/spec/models/draft_response_spec.rb +42 -0
  68. data/spec/models/draft_spec.rb +90 -0
  69. data/spec/models/forward_email_request_spec.rb +88 -0
  70. data/spec/models/inbox_label_list_response_spec.rb +42 -0
  71. data/spec/models/inbox_label_response_spec.rb +42 -0
  72. data/spec/models/inbox_label_spec.rb +60 -0
  73. data/spec/models/inbox_list_response_meta_spec.rb +48 -0
  74. data/spec/models/inbox_spec.rb +6 -0
  75. data/spec/models/{reply_to_inbound_email_request_spec.rb → reply_email_request_spec.rb} +6 -6
  76. data/spec/models/thread_email_attachments_inner_spec.rb +54 -0
  77. data/spec/models/thread_email_from_spec.rb +42 -0
  78. data/spec/models/thread_email_list_response_spec.rb +42 -0
  79. data/spec/models/thread_email_response_spec.rb +42 -0
  80. data/spec/models/thread_email_spec.rb +100 -0
  81. data/spec/models/thread_folder_spec.rb +30 -0
  82. data/spec/models/thread_labels_inner_spec.rb +48 -0
  83. data/spec/models/thread_labels_request_spec.rb +36 -0
  84. data/spec/models/thread_list_response_meta_spec.rb +42 -0
  85. data/spec/models/thread_list_response_spec.rb +42 -0
  86. data/spec/models/thread_response_spec.rb +42 -0
  87. data/spec/models/thread_spec.rb +102 -0
  88. data/spec/models/update_inbox_label_request_spec.rb +42 -0
  89. data/spec/models/update_thread_request_spec.rb +48 -0
  90. data/zyphr.gemspec +1 -1
  91. metadata +106 -6
data/docs/Inbox.md CHANGED
@@ -13,6 +13,7 @@
13
13
  | **from_name** | **String** | Display name recipients see on replies | [optional] |
14
14
  | **created_at** | **Time** | | [optional] |
15
15
  | **updated_at** | **Time** | | [optional] |
16
+ | **received_count** | **Integer** | Delivered mail in this inbox. Only with `include_counts=true`. | [optional] |
16
17
 
17
18
  ## Example
18
19
 
@@ -28,7 +29,8 @@ instance = Zyphr::Inbox.new(
28
29
  name: Support,
29
30
  from_name: Acme Support,
30
31
  created_at: null,
31
- updated_at: null
32
+ updated_at: null,
33
+ received_count: null
32
34
  )
33
35
  ```
34
36
 
@@ -0,0 +1,26 @@
1
+ # Zyphr::InboxLabel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **color** | **String** | Display hint only, e.g. `#3b82f6` | [optional] |
10
+ | **created_at** | **Time** | | [optional] |
11
+ | **updated_at** | **Time** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'zyphr'
17
+
18
+ instance = Zyphr::InboxLabel.new(
19
+ id: null,
20
+ name: Billing,
21
+ color: null,
22
+ created_at: null,
23
+ updated_at: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::InboxLabelListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<InboxLabel>**](InboxLabel.md) | | [optional] |
8
+ | **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::InboxLabelListResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::InboxLabelResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**InboxLabel**](InboxLabel.md) | | [optional] |
8
+ | **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::InboxLabelResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **data** | [**Array<InAppNotification>**](InAppNotification.md) | | [optional] |
8
- | **meta** | [**InboxListMeta**](InboxListMeta.md) | | [optional] |
8
+ | **meta** | [**InboxListResponseMeta**](InboxListResponseMeta.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -0,0 +1,22 @@
1
+ # Zyphr::InboxListResponseMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | | [optional] |
8
+ | **total** | **Integer** | | [optional] |
9
+ | **received_total** | **Integer** | All delivered mail in the project, including mail with no inbox. Only with `include_counts=true`. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'zyphr'
15
+
16
+ instance = Zyphr::InboxListResponseMeta.new(
17
+ request_id: req_abc123,
18
+ total: null,
19
+ received_total: null
20
+ )
21
+ ```
22
+
@@ -1,4 +1,4 @@
1
- # Zyphr::ReplyToInboundEmailRequest
1
+ # Zyphr::ReplyEmailRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -7,7 +7,7 @@
7
7
  | **from** | [**EmailAddress**](EmailAddress.md) | Sender, on one of your verified sending domains. The API also accepts a plain email string for convenience. | |
8
8
  | **html** | **String** | | [optional] |
9
9
  | **text** | **String** | | [optional] |
10
- | **reply_to** | **String** | | [optional] |
10
+ | **reply_to** | **String** | Defaults to the inbox address the email arrived at, so the customer's answer comes back to Zyphr and joins the thread. | [optional] |
11
11
  | **tags** | **Array<String>** | | [optional] |
12
12
  | **metadata** | **Hash<String, Object>** | | [optional] |
13
13
  | **classification** | **String** | | [optional] |
@@ -19,7 +19,7 @@
19
19
  ```ruby
20
20
  require 'zyphr'
21
21
 
22
- instance = Zyphr::ReplyToInboundEmailRequest.new(
22
+ instance = Zyphr::ReplyEmailRequest.new(
23
23
  from: null,
24
24
  html: null,
25
25
  text: null,
data/docs/Thread.md ADDED
@@ -0,0 +1,40 @@
1
+ # Zyphr::Thread
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **inbox_id** | **String** | Inbox of the email that started the thread | [optional] |
9
+ | **subject** | **String** | | [optional] |
10
+ | **folder** | [**ThreadFolder**](ThreadFolder.md) | | [optional] |
11
+ | **read** | **Boolean** | False whenever new mail arrives | [optional] |
12
+ | **assignee_user_id** | **String** | | [optional] |
13
+ | **labels** | [**Array<ThreadLabelsInner>**](ThreadLabelsInner.md) | | [optional] |
14
+ | **participants** | **Array<String>** | Addresses that have written in, first-seen order (up to 10) | [optional] |
15
+ | **message_count** | **Integer** | | [optional] |
16
+ | **last_message_at** | **Time** | | [optional] |
17
+ | **created_at** | **Time** | | [optional] |
18
+ | **updated_at** | **Time** | | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'zyphr'
24
+
25
+ instance = Zyphr::Thread.new(
26
+ id: null,
27
+ inbox_id: null,
28
+ subject: null,
29
+ folder: null,
30
+ read: null,
31
+ assignee_user_id: null,
32
+ labels: null,
33
+ participants: null,
34
+ message_count: null,
35
+ last_message_at: null,
36
+ created_at: null,
37
+ updated_at: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,38 @@
1
+ # Zyphr::ThreadEmail
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **direction** | **String** | `inbound` is a received email (an `/inbound-emails` id); `outbound` is one you sent (an `/emails` id) | [optional] |
9
+ | **from** | [**ThreadEmailFrom**](ThreadEmailFrom.md) | | [optional] |
10
+ | **to** | [**ThreadEmailFrom**](ThreadEmailFrom.md) | | [optional] |
11
+ | **cc** | **Array<String>** | | [optional] |
12
+ | **subject** | **String** | | [optional] |
13
+ | **text** | **String** | | [optional] |
14
+ | **html** | **String** | | [optional] |
15
+ | **status** | **String** | | [optional] |
16
+ | **attachments** | [**Array<ThreadEmailAttachmentsInner>**](ThreadEmailAttachmentsInner.md) | Received attachments; download with `GET /inbound-emails/{id}/attachments/{attachmentId}` | [optional] |
17
+ | **created_at** | **Time** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'zyphr'
23
+
24
+ instance = Zyphr::ThreadEmail.new(
25
+ id: null,
26
+ direction: null,
27
+ from: null,
28
+ to: null,
29
+ cc: null,
30
+ subject: null,
31
+ text: null,
32
+ html: null,
33
+ status: null,
34
+ attachments: null,
35
+ created_at: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,24 @@
1
+ # Zyphr::ThreadEmailAttachmentsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **filename** | **String** | | [optional] |
9
+ | **content_type** | **String** | | [optional] |
10
+ | **size** | **Integer** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::ThreadEmailAttachmentsInner.new(
18
+ id: null,
19
+ filename: null,
20
+ content_type: null,
21
+ size: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadEmailFrom
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **email** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadEmailFrom.new(
16
+ email: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadEmailListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<ThreadEmail>**](ThreadEmail.md) | | [optional] |
8
+ | **meta** | [**ThreadListResponseMeta**](ThreadListResponseMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadEmailListResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadEmailResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ThreadEmail**](ThreadEmail.md) | | [optional] |
8
+ | **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadEmailResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,15 @@
1
+ # Zyphr::ThreadFolder
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'zyphr'
12
+
13
+ instance = Zyphr::ThreadFolder.new()
14
+ ```
15
+
@@ -0,0 +1,22 @@
1
+ # Zyphr::ThreadLabelsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **color** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'zyphr'
15
+
16
+ instance = Zyphr::ThreadLabelsInner.new(
17
+ id: null,
18
+ name: null,
19
+ color: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # Zyphr::ThreadLabelsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **label_ids** | **Array<String>** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'zyphr'
13
+
14
+ instance = Zyphr::ThreadLabelsRequest.new(
15
+ label_ids: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<Thread>**](Thread.md) | | [optional] |
8
+ | **meta** | [**ThreadListResponseMeta**](ThreadListResponseMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadListResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadListResponseMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | | [optional] |
8
+ | **next_cursor** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadListResponseMeta.new(
16
+ request_id: req_abc123,
17
+ next_cursor: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::ThreadResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Thread**](Thread.md) | | [optional] |
8
+ | **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::ThreadResponse.new(
16
+ data: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::UpdateInboxLabelRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **color** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::UpdateInboxLabelRequest.new(
16
+ name: null,
17
+ color: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # Zyphr::UpdateThreadRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **folder** | [**ThreadFolder**](ThreadFolder.md) | | [optional] |
8
+ | **read** | **Boolean** | | [optional] |
9
+ | **assignee_user_id** | **String** | A member of your account; `null` unassigns | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'zyphr'
15
+
16
+ instance = Zyphr::UpdateThreadRequest.new(
17
+ folder: null,
18
+ read: null,
19
+ assignee_user_id: null
20
+ )
21
+ ```
22
+