lockally 0.3.0 → 0.3.2
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 -5
- data/docs/AgentSendResult.md +6 -2
- data/docs/Annotations.md +22 -0
- data/docs/Attachment.md +26 -0
- data/docs/Classification.md +24 -0
- data/docs/Draft.md +1 -1
- data/docs/DraftResult.md +1 -1
- data/docs/InjectionRisk.md +20 -0
- data/docs/MailboxGrant.md +7 -3
- data/docs/MailboxGrantList.md +2 -2
- data/docs/MarkReadResult.md +2 -0
- data/docs/PolicyFlags.md +28 -0
- data/docs/SimulatedInbound.md +7 -1
- data/docs/ThreadClassification.md +3 -1
- data/docs/ThreadMessage.md +2 -2
- data/docs/ThreadMessageBody.md +10 -26
- data/docs/{ThreadMessageBodyAllOfBody.md → ThreadMessageBodyBody.md} +2 -2
- data/docs/Whoami.md +7 -7
- data/docs/WhoamiKey.md +20 -0
- data/docs/WhoamiTenant.md +22 -0
- data/lib/lockally/models/agent_send_result.rb +72 -1
- data/lib/lockally/models/annotations.rb +168 -0
- data/lib/lockally/models/attachment.rb +185 -0
- data/lib/lockally/models/classification.rb +211 -0
- data/lib/lockally/models/draft.rb +2 -4
- data/lib/lockally/models/draft_result.rb +2 -4
- data/lib/lockally/models/injection_risk.rb +159 -0
- data/lib/lockally/models/mailbox_grant.rb +28 -10
- data/lib/lockally/models/mailbox_grant_list.rb +17 -17
- data/lib/lockally/models/mark_read_result.rb +10 -1
- data/lib/lockally/models/policy_flags.rb +197 -0
- data/lib/lockally/models/simulated_inbound.rb +31 -5
- data/lib/lockally/models/thread_classification.rb +13 -6
- data/lib/lockally/models/thread_message.rb +3 -6
- data/lib/lockally/models/thread_message_body.rb +58 -236
- data/lib/lockally/models/{thread_message_body_all_of_body.rb → thread_message_body_body.rb} +4 -3
- data/lib/lockally/models/whoami.rb +98 -24
- data/lib/lockally/models/whoami_key.rb +157 -0
- data/lib/lockally/models/whoami_tenant.rb +166 -0
- data/lib/lockally/version.rb +1 -1
- data/lib/lockally.rb +8 -1
- data/spec/models/agent_send_result_spec.rb +12 -0
- data/spec/models/annotations_spec.rb +48 -0
- data/spec/models/attachment_spec.rb +60 -0
- data/spec/models/classification_spec.rb +58 -0
- data/spec/models/injection_risk_spec.rb +42 -0
- data/spec/models/mailbox_grant_list_spec.rb +1 -1
- data/spec/models/mailbox_grant_spec.rb +13 -1
- data/spec/models/mark_read_result_spec.rb +6 -0
- data/spec/models/policy_flags_spec.rb +66 -0
- data/spec/models/simulated_inbound_spec.rb +18 -0
- data/spec/models/thread_classification_spec.rb +6 -0
- data/spec/models/{thread_message_body_all_of_body_spec.rb → thread_message_body_body_spec.rb} +6 -6
- data/spec/models/thread_message_body_spec.rb +5 -57
- data/spec/models/whoami_key_spec.rb +42 -0
- data/spec/models/whoami_spec.rb +8 -4
- data/spec/models/whoami_tenant_spec.rb +48 -0
- metadata +33 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03e2dc8e0b82c4ec5ae2245c6ed4acd23553a7ace4a9dd1a6cbcdeb2f0a2e431
|
|
4
|
+
data.tar.gz: a7193d69f28b1e713248c5253239ea42227aabfc7c827f81cd2453decfbd3406
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec1d1363e1911e4617574cb726fa85d4bac203e6d42d8bbe4f790d93b76928a5a3600605ec16779ff28d180179eed48b7a4225f3af55c2a55eea0a2f5ce133c1
|
|
7
|
+
data.tar.gz: bcd35cee397f0473bd804bef1dd397383ace594e8bdb93085d31960f5c8d4af20c7e762647cf5d9148e58121f34b7ee718350c2afbaf148256c7f5c074abd2e7
|
data/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Insufficient scope returns `403` with the required scope name in `detail`.
|
|
|
35
35
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
36
36
|
|
|
37
37
|
- API version: 0.1.0
|
|
38
|
-
- Package version: 0.3.
|
|
38
|
+
- Package version: 0.3.2
|
|
39
39
|
- Generator version: 7.23.0
|
|
40
40
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
41
41
|
|
|
@@ -52,16 +52,16 @@ gem build lockally.gemspec
|
|
|
52
52
|
Then either install the gem locally:
|
|
53
53
|
|
|
54
54
|
```shell
|
|
55
|
-
gem install ./lockally-0.3.
|
|
55
|
+
gem install ./lockally-0.3.2.gem
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
(for development, run `gem install --dev ./lockally-0.3.
|
|
58
|
+
(for development, run `gem install --dev ./lockally-0.3.2.gem` to install the development dependencies)
|
|
59
59
|
|
|
60
60
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
61
61
|
|
|
62
62
|
Finally add this to the Gemfile:
|
|
63
63
|
|
|
64
|
-
gem 'lockally', '~> 0.3.
|
|
64
|
+
gem 'lockally', '~> 0.3.2'
|
|
65
65
|
|
|
66
66
|
### Install from Git
|
|
67
67
|
|
|
@@ -316,6 +316,8 @@ Class | Method | HTTP request | Description
|
|
|
316
316
|
- [Lockally::AgentSendResult](docs/AgentSendResult.md)
|
|
317
317
|
- [Lockally::AiConfig](docs/AiConfig.md)
|
|
318
318
|
- [Lockally::AiConfigUpdate](docs/AiConfigUpdate.md)
|
|
319
|
+
- [Lockally::Annotations](docs/Annotations.md)
|
|
320
|
+
- [Lockally::Attachment](docs/Attachment.md)
|
|
319
321
|
- [Lockally::AuditEvent](docs/AuditEvent.md)
|
|
320
322
|
- [Lockally::BatchLookupPublicKeys200Response](docs/BatchLookupPublicKeys200Response.md)
|
|
321
323
|
- [Lockally::BatchLookupPublicKeys200ResponseDataInner](docs/BatchLookupPublicKeys200ResponseDataInner.md)
|
|
@@ -326,6 +328,7 @@ Class | Method | HTTP request | Description
|
|
|
326
328
|
- [Lockally::CalendarIntegration](docs/CalendarIntegration.md)
|
|
327
329
|
- [Lockally::CalendarMember](docs/CalendarMember.md)
|
|
328
330
|
- [Lockally::CalendarPolicies](docs/CalendarPolicies.md)
|
|
331
|
+
- [Lockally::Classification](docs/Classification.md)
|
|
329
332
|
- [Lockally::Contact](docs/Contact.md)
|
|
330
333
|
- [Lockally::ContactList](docs/ContactList.md)
|
|
331
334
|
- [Lockally::ContactLookup](docs/ContactLookup.md)
|
|
@@ -406,6 +409,7 @@ Class | Method | HTTP request | Description
|
|
|
406
409
|
- [Lockally::HealthCheck200Response](docs/HealthCheck200Response.md)
|
|
407
410
|
- [Lockally::Inbox](docs/Inbox.md)
|
|
408
411
|
- [Lockally::InboxList](docs/InboxList.md)
|
|
412
|
+
- [Lockally::InjectionRisk](docs/InjectionRisk.md)
|
|
409
413
|
- [Lockally::InviteAdminRequest](docs/InviteAdminRequest.md)
|
|
410
414
|
- [Lockally::ListAddOns200Response](docs/ListAddOns200Response.md)
|
|
411
415
|
- [Lockally::ListAdmins200Response](docs/ListAdmins200Response.md)
|
|
@@ -454,6 +458,7 @@ Class | Method | HTTP request | Description
|
|
|
454
458
|
- [Lockally::MigrationSettings](docs/MigrationSettings.md)
|
|
455
459
|
- [Lockally::ModelAlias](docs/ModelAlias.md)
|
|
456
460
|
- [Lockally::PlanCatalogEntry](docs/PlanCatalogEntry.md)
|
|
461
|
+
- [Lockally::PolicyFlags](docs/PolicyFlags.md)
|
|
457
462
|
- [Lockally::Problem](docs/Problem.md)
|
|
458
463
|
- [Lockally::ReplaceDistributionListMembers200Response](docs/ReplaceDistributionListMembers200Response.md)
|
|
459
464
|
- [Lockally::ReplaceDistributionListMembersRequest](docs/ReplaceDistributionListMembersRequest.md)
|
|
@@ -483,7 +488,7 @@ Class | Method | HTTP request | Description
|
|
|
483
488
|
- [Lockally::ThreadList](docs/ThreadList.md)
|
|
484
489
|
- [Lockally::ThreadMessage](docs/ThreadMessage.md)
|
|
485
490
|
- [Lockally::ThreadMessageBody](docs/ThreadMessageBody.md)
|
|
486
|
-
- [Lockally::
|
|
491
|
+
- [Lockally::ThreadMessageBodyBody](docs/ThreadMessageBodyBody.md)
|
|
487
492
|
- [Lockally::ThreadSummary](docs/ThreadSummary.md)
|
|
488
493
|
- [Lockally::UnitBundle](docs/UnitBundle.md)
|
|
489
494
|
- [Lockally::UpdateAdminRequest](docs/UpdateAdminRequest.md)
|
|
@@ -508,6 +513,8 @@ Class | Method | HTTP request | Description
|
|
|
508
513
|
- [Lockally::VacationResponder](docs/VacationResponder.md)
|
|
509
514
|
- [Lockally::Webhook](docs/Webhook.md)
|
|
510
515
|
- [Lockally::Whoami](docs/Whoami.md)
|
|
516
|
+
- [Lockally::WhoamiKey](docs/WhoamiKey.md)
|
|
517
|
+
- [Lockally::WhoamiTenant](docs/WhoamiTenant.md)
|
|
511
518
|
|
|
512
519
|
|
|
513
520
|
## Documentation for Authorization
|
data/docs/AgentSendResult.md
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The Lockally message id. |
|
|
8
|
-
| **
|
|
7
|
+
| **id** | **String** | The Lockally message id. | |
|
|
8
|
+
| **message_id** | **String** | The Internet Message-ID. | |
|
|
9
|
+
| **status** | **String** | | |
|
|
10
|
+
| **warning** | **String** | Set when the send is accepted but worth noting | [optional] |
|
|
9
11
|
| **thread_id** | **String** | The conversation the message joined. | |
|
|
10
12
|
|
|
11
13
|
## Example
|
|
@@ -15,7 +17,9 @@ require 'lockally'
|
|
|
15
17
|
|
|
16
18
|
instance = Lockally::AgentSendResult.new(
|
|
17
19
|
id: null,
|
|
20
|
+
message_id: null,
|
|
18
21
|
status: null,
|
|
22
|
+
warning: null,
|
|
19
23
|
thread_id: null
|
|
20
24
|
)
|
|
21
25
|
```
|
data/docs/Annotations.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Lockally::Annotations
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **attachment_types** | **Array<String>** | | [optional] |
|
|
8
|
+
| **meeting_request** | **Boolean** | | [optional] |
|
|
9
|
+
| **injection_risk** | [**InjectionRisk**](InjectionRisk.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'lockally'
|
|
15
|
+
|
|
16
|
+
instance = Lockally::Annotations.new(
|
|
17
|
+
attachment_types: null,
|
|
18
|
+
meeting_request: null,
|
|
19
|
+
injection_risk: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Attachment.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Lockally::Attachment
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | MIME type. | [optional] |
|
|
9
|
+
| **size** | **Integer** | Bytes. | [optional] |
|
|
10
|
+
| **blob_id** | **String** | | [optional] |
|
|
11
|
+
| **part_id** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'lockally'
|
|
17
|
+
|
|
18
|
+
instance = Lockally::Attachment.new(
|
|
19
|
+
name: null,
|
|
20
|
+
type: null,
|
|
21
|
+
size: null,
|
|
22
|
+
blob_id: null,
|
|
23
|
+
part_id: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Lockally::Classification
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **intent** | **String** | For example support_request, sales_lead, billing, spam. | [optional] |
|
|
8
|
+
| **urgency** | **String** | | [optional] |
|
|
9
|
+
| **summary** | **String** | One line. | [optional] |
|
|
10
|
+
| **suggested_action** | **String** | One line. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'lockally'
|
|
16
|
+
|
|
17
|
+
instance = Lockally::Classification.new(
|
|
18
|
+
intent: null,
|
|
19
|
+
urgency: null,
|
|
20
|
+
summary: null,
|
|
21
|
+
suggested_action: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/Draft.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
| **subject** | **String** | | [optional] |
|
|
14
14
|
| **body_text** | **String** | | [optional] |
|
|
15
15
|
| **status** | **String** | | |
|
|
16
|
-
| **policy_flags** | **
|
|
16
|
+
| **policy_flags** | [**PolicyFlags**](PolicyFlags.md) | | |
|
|
17
17
|
| **reviewed_at** | **Time** | | [optional] |
|
|
18
18
|
| **sent_message_id** | **String** | | [optional] |
|
|
19
19
|
| **created_at** | **Time** | | |
|
data/docs/DraftResult.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **draft_id** | **String** | | |
|
|
8
8
|
| **status** | **String** | | |
|
|
9
|
-
| **policy_flags** | **
|
|
9
|
+
| **policy_flags** | [**PolicyFlags**](PolicyFlags.md) | | |
|
|
10
10
|
| **thread_id** | **String** | | [optional] |
|
|
11
11
|
| **sent** | [**AgentSendResult**](AgentSendResult.md) | | [optional] |
|
|
12
12
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Lockally::InjectionRisk
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **flagged** | **Boolean** | | [optional] |
|
|
8
|
+
| **signals** | **Array<String>** | The phrases that tripped the check. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'lockally'
|
|
14
|
+
|
|
15
|
+
instance = Lockally::InjectionRisk.new(
|
|
16
|
+
flagged: null,
|
|
17
|
+
signals: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/MailboxGrant.md
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
7
|
+
| **api_key_id** | **String** | | [optional] |
|
|
8
|
+
| **mailbox_id** | **String** | | [optional] |
|
|
8
9
|
| **mailbox** | **String** | | [optional] |
|
|
10
|
+
| **created_at** | **Time** | | [optional] |
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
@@ -13,8 +15,10 @@
|
|
|
13
15
|
require 'lockally'
|
|
14
16
|
|
|
15
17
|
instance = Lockally::MailboxGrant.new(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
api_key_id: null,
|
|
19
|
+
mailbox_id: null,
|
|
20
|
+
mailbox: null,
|
|
21
|
+
created_at: null
|
|
18
22
|
)
|
|
19
23
|
```
|
|
20
24
|
|
data/docs/MailboxGrantList.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
7
|
+
| **grants** | [**Array<MailboxGrant>**](MailboxGrant.md) | | |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
require 'lockally'
|
|
13
13
|
|
|
14
14
|
instance = Lockally::MailboxGrantList.new(
|
|
15
|
-
|
|
15
|
+
grants: null
|
|
16
16
|
)
|
|
17
17
|
```
|
|
18
18
|
|
data/docs/MarkReadResult.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message_id** | **String** | | [optional] |
|
|
7
8
|
| **read** | **Boolean** | | [optional] |
|
|
8
9
|
|
|
9
10
|
## Example
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
require 'lockally'
|
|
13
14
|
|
|
14
15
|
instance = Lockally::MarkReadResult.new(
|
|
16
|
+
message_id: null,
|
|
15
17
|
read: null
|
|
16
18
|
)
|
|
17
19
|
```
|
data/docs/PolicyFlags.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Lockally::PolicyFlags
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **always_approve** | **Boolean** | | [optional] |
|
|
8
|
+
| **injection_risk** | **Boolean** | | [optional] |
|
|
9
|
+
| **new_recipient** | **Array<String>** | | [optional] |
|
|
10
|
+
| **new_thread** | **Boolean** | | [optional] |
|
|
11
|
+
| **pii** | **Array<String>** | | [optional] |
|
|
12
|
+
| **recipient_count** | **Integer** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'lockally'
|
|
18
|
+
|
|
19
|
+
instance = Lockally::PolicyFlags.new(
|
|
20
|
+
always_approve: null,
|
|
21
|
+
injection_risk: null,
|
|
22
|
+
new_recipient: null,
|
|
23
|
+
new_thread: null,
|
|
24
|
+
pii: null,
|
|
25
|
+
recipient_count: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/SimulatedInbound.md
CHANGED
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **simulated** | **Boolean** | | [optional] |
|
|
8
|
+
| **indexed** | **Boolean** | True when the message was adopted into a thread. | [optional] |
|
|
7
9
|
| **thread_id** | **String** | | [optional] |
|
|
8
10
|
| **message_id** | **String** | | [optional] |
|
|
9
|
-
| **
|
|
11
|
+
| **rfc_message_id** | **String** | | [optional] |
|
|
12
|
+
| **annotations** | [**Annotations**](Annotations.md) | | [optional] |
|
|
10
13
|
|
|
11
14
|
## Example
|
|
12
15
|
|
|
@@ -14,8 +17,11 @@
|
|
|
14
17
|
require 'lockally'
|
|
15
18
|
|
|
16
19
|
instance = Lockally::SimulatedInbound.new(
|
|
20
|
+
simulated: null,
|
|
21
|
+
indexed: null,
|
|
17
22
|
thread_id: null,
|
|
18
23
|
message_id: null,
|
|
24
|
+
rfc_message_id: null,
|
|
19
25
|
annotations: null
|
|
20
26
|
)
|
|
21
27
|
```
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **thread_id** | **String** | | |
|
|
8
8
|
| **cached** | **Boolean** | True when a previous classification was reused. | [optional] |
|
|
9
|
-
| **
|
|
9
|
+
| **billed** | **Boolean** | True when this call consumed an AI unit. | [optional] |
|
|
10
|
+
| **classification** | [**Classification**](Classification.md) | | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ require 'lockally'
|
|
|
16
17
|
instance = Lockally::ThreadClassification.new(
|
|
17
18
|
thread_id: null,
|
|
18
19
|
cached: null,
|
|
20
|
+
billed: null,
|
|
19
21
|
classification: null
|
|
20
22
|
)
|
|
21
23
|
```
|
data/docs/ThreadMessage.md
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
| **to** | **Array<String>** | | |
|
|
14
14
|
| **snippet** | **String** | | [optional] |
|
|
15
15
|
| **has_attachments** | **Boolean** | | |
|
|
16
|
-
| **attachments** | **Array<
|
|
17
|
-
| **annotations** | **
|
|
16
|
+
| **attachments** | [**Array<Attachment>**](Attachment.md) | | [optional] |
|
|
17
|
+
| **annotations** | [**Annotations**](Annotations.md) | | [optional] |
|
|
18
18
|
| **received_at** | **Time** | | |
|
|
19
19
|
|
|
20
20
|
## Example
|
data/docs/ThreadMessageBody.md
CHANGED
|
@@ -4,19 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
11
|
-
| **
|
|
12
|
-
| **from** | **String** | | |
|
|
13
|
-
| **to** | **Array<String>** | | |
|
|
14
|
-
| **snippet** | **String** | | [optional] |
|
|
15
|
-
| **has_attachments** | **Boolean** | | |
|
|
16
|
-
| **attachments** | **Array<Hash<String, Object>>** | | [optional] |
|
|
17
|
-
| **annotations** | **Hash<String, Object>** | Signals computed at ingest | [optional] |
|
|
18
|
-
| **received_at** | **Time** | | |
|
|
19
|
-
| **body** | [**ThreadMessageBodyAllOfBody**](ThreadMessageBodyAllOfBody.md) | | [optional] |
|
|
7
|
+
| **thread_id** | **String** | | |
|
|
8
|
+
| **mailbox** | **String** | | |
|
|
9
|
+
| **message** | [**ThreadMessage**](ThreadMessage.md) | | |
|
|
10
|
+
| **body** | [**ThreadMessageBodyBody**](ThreadMessageBodyBody.md) | | [optional] |
|
|
11
|
+
| **body_unavailable** | **String** | Present instead of body when the message could not be located in the mailbox. | [optional] |
|
|
20
12
|
|
|
21
13
|
## Example
|
|
22
14
|
|
|
@@ -24,19 +16,11 @@
|
|
|
24
16
|
require 'lockally'
|
|
25
17
|
|
|
26
18
|
instance = Lockally::ThreadMessageBody.new(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
from: null,
|
|
33
|
-
to: null,
|
|
34
|
-
snippet: null,
|
|
35
|
-
has_attachments: null,
|
|
36
|
-
attachments: null,
|
|
37
|
-
annotations: null,
|
|
38
|
-
received_at: null,
|
|
39
|
-
body: null
|
|
19
|
+
thread_id: null,
|
|
20
|
+
mailbox: null,
|
|
21
|
+
message: null,
|
|
22
|
+
body: null,
|
|
23
|
+
body_unavailable: null
|
|
40
24
|
)
|
|
41
25
|
```
|
|
42
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Lockally::
|
|
1
|
+
# Lockally::ThreadMessageBodyBody
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
```ruby
|
|
14
14
|
require 'lockally'
|
|
15
15
|
|
|
16
|
-
instance = Lockally::
|
|
16
|
+
instance = Lockally::ThreadMessageBodyBody.new(
|
|
17
17
|
text: null,
|
|
18
18
|
html: null,
|
|
19
19
|
truncated: null
|
data/docs/Whoami.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
7
|
+
| **tenant** | [**WhoamiTenant**](WhoamiTenant.md) | | |
|
|
8
|
+
| **scopes** | **Array<String>** | | |
|
|
9
|
+
| **auth** | **String** | | |
|
|
10
|
+
| **key** | [**WhoamiKey**](WhoamiKey.md) | | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
require 'lockally'
|
|
16
16
|
|
|
17
17
|
instance = Lockally::Whoami.new(
|
|
18
|
-
tenant_id: null,
|
|
19
18
|
tenant: null,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
scopes: null,
|
|
20
|
+
auth: null,
|
|
21
|
+
key: null
|
|
22
22
|
)
|
|
23
23
|
```
|
|
24
24
|
|
data/docs/WhoamiKey.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Lockally::WhoamiKey
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **label** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'lockally'
|
|
14
|
+
|
|
15
|
+
instance = Lockally::WhoamiKey.new(
|
|
16
|
+
id: null,
|
|
17
|
+
label: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Lockally::WhoamiTenant
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **slug** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | What the account calls itself. | [optional] |
|
|
9
|
+
| **plan** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'lockally'
|
|
15
|
+
|
|
16
|
+
instance = Lockally::WhoamiTenant.new(
|
|
17
|
+
slug: null,
|
|
18
|
+
name: null,
|
|
19
|
+
plan: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -18,8 +18,14 @@ module Lockally
|
|
|
18
18
|
# The Lockally message id.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# The Internet Message-ID.
|
|
22
|
+
attr_accessor :message_id
|
|
23
|
+
|
|
21
24
|
attr_accessor :status
|
|
22
25
|
|
|
26
|
+
# Set when the send is accepted but worth noting
|
|
27
|
+
attr_accessor :warning
|
|
28
|
+
|
|
23
29
|
# The conversation the message joined.
|
|
24
30
|
attr_accessor :thread_id
|
|
25
31
|
|
|
@@ -27,7 +33,9 @@ module Lockally
|
|
|
27
33
|
def self.attribute_map
|
|
28
34
|
{
|
|
29
35
|
:'id' => :'id',
|
|
36
|
+
:'message_id' => :'message_id',
|
|
30
37
|
:'status' => :'status',
|
|
38
|
+
:'warning' => :'warning',
|
|
31
39
|
:'thread_id' => :'thread_id'
|
|
32
40
|
}
|
|
33
41
|
end
|
|
@@ -46,7 +54,9 @@ module Lockally
|
|
|
46
54
|
def self.openapi_types
|
|
47
55
|
{
|
|
48
56
|
:'id' => :'String',
|
|
57
|
+
:'message_id' => :'String',
|
|
49
58
|
:'status' => :'String',
|
|
59
|
+
:'warning' => :'String',
|
|
50
60
|
:'thread_id' => :'String'
|
|
51
61
|
}
|
|
52
62
|
end
|
|
@@ -75,10 +85,24 @@ module Lockally
|
|
|
75
85
|
|
|
76
86
|
if attributes.key?(:'id')
|
|
77
87
|
self.id = attributes[:'id']
|
|
88
|
+
else
|
|
89
|
+
self.id = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'message_id')
|
|
93
|
+
self.message_id = attributes[:'message_id']
|
|
94
|
+
else
|
|
95
|
+
self.message_id = nil
|
|
78
96
|
end
|
|
79
97
|
|
|
80
98
|
if attributes.key?(:'status')
|
|
81
99
|
self.status = attributes[:'status']
|
|
100
|
+
else
|
|
101
|
+
self.status = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'warning')
|
|
105
|
+
self.warning = attributes[:'warning']
|
|
82
106
|
end
|
|
83
107
|
|
|
84
108
|
if attributes.key?(:'thread_id')
|
|
@@ -93,6 +117,18 @@ module Lockally
|
|
|
93
117
|
def list_invalid_properties
|
|
94
118
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
119
|
invalid_properties = Array.new
|
|
120
|
+
if @id.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @message_id.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @status.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
96
132
|
if @thread_id.nil?
|
|
97
133
|
invalid_properties.push('invalid value for "thread_id", thread_id cannot be nil.')
|
|
98
134
|
end
|
|
@@ -104,10 +140,43 @@ module Lockally
|
|
|
104
140
|
# @return true if the model is valid
|
|
105
141
|
def valid?
|
|
106
142
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
|
+
return false if @id.nil?
|
|
144
|
+
return false if @message_id.nil?
|
|
145
|
+
return false if @status.nil?
|
|
107
146
|
return false if @thread_id.nil?
|
|
108
147
|
true
|
|
109
148
|
end
|
|
110
149
|
|
|
150
|
+
# Custom attribute writer method with validation
|
|
151
|
+
# @param [Object] id Value to be assigned
|
|
152
|
+
def id=(id)
|
|
153
|
+
if id.nil?
|
|
154
|
+
fail ArgumentError, 'id cannot be nil'
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
@id = id
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param [Object] message_id Value to be assigned
|
|
162
|
+
def message_id=(message_id)
|
|
163
|
+
if message_id.nil?
|
|
164
|
+
fail ArgumentError, 'message_id cannot be nil'
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
@message_id = message_id
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method with validation
|
|
171
|
+
# @param [Object] status Value to be assigned
|
|
172
|
+
def status=(status)
|
|
173
|
+
if status.nil?
|
|
174
|
+
fail ArgumentError, 'status cannot be nil'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
@status = status
|
|
178
|
+
end
|
|
179
|
+
|
|
111
180
|
# Custom attribute writer method with validation
|
|
112
181
|
# @param [Object] thread_id Value to be assigned
|
|
113
182
|
def thread_id=(thread_id)
|
|
@@ -124,7 +193,9 @@ module Lockally
|
|
|
124
193
|
return true if self.equal?(o)
|
|
125
194
|
self.class == o.class &&
|
|
126
195
|
id == o.id &&
|
|
196
|
+
message_id == o.message_id &&
|
|
127
197
|
status == o.status &&
|
|
198
|
+
warning == o.warning &&
|
|
128
199
|
thread_id == o.thread_id
|
|
129
200
|
end
|
|
130
201
|
|
|
@@ -137,7 +208,7 @@ module Lockally
|
|
|
137
208
|
# Calculates hash code according to all attributes.
|
|
138
209
|
# @return [Integer] Hash code
|
|
139
210
|
def hash
|
|
140
|
-
[id, status, thread_id].hash
|
|
211
|
+
[id, message_id, status, warning, thread_id].hash
|
|
141
212
|
end
|
|
142
213
|
|
|
143
214
|
# Builds the object from hash
|