lockally 0.3.1 → 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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/docs/AgentSendResult.md +6 -2
  4. data/docs/MailboxGrant.md +7 -3
  5. data/docs/MailboxGrantList.md +2 -2
  6. data/docs/MarkReadResult.md +2 -0
  7. data/docs/SimulatedInbound.md +6 -0
  8. data/docs/ThreadClassification.md +2 -0
  9. data/docs/ThreadMessageBody.md +10 -26
  10. data/docs/{ThreadMessageBodyAllOfBody.md → ThreadMessageBodyBody.md} +2 -2
  11. data/docs/Whoami.md +7 -7
  12. data/docs/WhoamiKey.md +20 -0
  13. data/docs/WhoamiTenant.md +22 -0
  14. data/lib/lockally/models/agent_send_result.rb +72 -1
  15. data/lib/lockally/models/mailbox_grant.rb +28 -10
  16. data/lib/lockally/models/mailbox_grant_list.rb +17 -17
  17. data/lib/lockally/models/mark_read_result.rb +10 -1
  18. data/lib/lockally/models/simulated_inbound.rb +29 -1
  19. data/lib/lockally/models/thread_classification.rb +11 -1
  20. data/lib/lockally/models/thread_message_body.rb +58 -233
  21. data/lib/lockally/models/{thread_message_body_all_of_body.rb → thread_message_body_body.rb} +4 -3
  22. data/lib/lockally/models/whoami.rb +98 -24
  23. data/lib/lockally/models/whoami_key.rb +157 -0
  24. data/lib/lockally/models/whoami_tenant.rb +166 -0
  25. data/lib/lockally/version.rb +1 -1
  26. data/lib/lockally.rb +3 -1
  27. data/spec/models/agent_send_result_spec.rb +12 -0
  28. data/spec/models/mailbox_grant_list_spec.rb +1 -1
  29. data/spec/models/mailbox_grant_spec.rb +13 -1
  30. data/spec/models/mark_read_result_spec.rb +6 -0
  31. data/spec/models/simulated_inbound_spec.rb +18 -0
  32. data/spec/models/thread_classification_spec.rb +6 -0
  33. data/spec/models/{thread_message_body_all_of_body_spec.rb → thread_message_body_body_spec.rb} +6 -6
  34. data/spec/models/thread_message_body_spec.rb +5 -57
  35. data/spec/models/whoami_key_spec.rb +42 -0
  36. data/spec/models/whoami_spec.rb +8 -4
  37. data/spec/models/whoami_tenant_spec.rb +48 -0
  38. metadata +13 -5
@@ -27,83 +27,31 @@ describe Lockally::ThreadMessageBody do
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "id"' do
30
+ describe 'test attribute "thread_id"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "direction"' do
36
+ describe 'test attribute "mailbox"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["inbound", "outbound"])
40
- # validator.allowable_values.each do |value|
41
- # expect { instance.direction = value }.not_to raise_error
42
- # end
43
39
  end
44
40
  end
45
41
 
46
- describe 'test attribute "rfc_message_id"' do
42
+ describe 'test attribute "message"' do
47
43
  it 'should work' do
48
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
45
  end
50
46
  end
51
47
 
52
- describe 'test attribute "in_reply_to"' do
53
- it 'should work' do
54
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
- end
56
- end
57
-
58
- describe 'test attribute "subject"' do
59
- it 'should work' do
60
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
- end
62
- end
63
-
64
- describe 'test attribute "from"' do
65
- it 'should work' do
66
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
- end
68
- end
69
-
70
- describe 'test attribute "to"' do
71
- it 'should work' do
72
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
- end
74
- end
75
-
76
- describe 'test attribute "snippet"' do
77
- it 'should work' do
78
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
- end
80
- end
81
-
82
- describe 'test attribute "has_attachments"' do
83
- it 'should work' do
84
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
- end
86
- end
87
-
88
- describe 'test attribute "attachments"' do
89
- it 'should work' do
90
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
91
- end
92
- end
93
-
94
- describe 'test attribute "annotations"' do
95
- it 'should work' do
96
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
- end
98
- end
99
-
100
- describe 'test attribute "received_at"' do
48
+ describe 'test attribute "body"' do
101
49
  it 'should work' do
102
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
51
  end
104
52
  end
105
53
 
106
- describe 'test attribute "body"' do
54
+ describe 'test attribute "body_unavailable"' do
107
55
  it 'should work' do
108
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
109
57
  end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #lockally control plane
3
+
4
+ #The lockally control plane lets integrators and direct customers manage everything except actual mail data flow (which uses standard JMAP / IMAP / SMTP-submission against the data plane endpoints). **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **Errors.** Failures return [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) `application/problem+json` documents. **Scopes.** Each endpoint requires a specific scope on the presented key. Insufficient scope returns `403` with the required scope name in `detail`.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+ Contact: support@lockally.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Lockally::WhoamiKey
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Lockally::WhoamiKey do
21
+ #let(:instance) { Lockally::WhoamiKey.new }
22
+
23
+ describe 'test an instance of WhoamiKey' do
24
+ it 'should create an instance of WhoamiKey' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Lockally::WhoamiKey)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "label"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -27,25 +27,29 @@ describe Lockally::Whoami do
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "tenant_id"' do
30
+ describe 'test attribute "tenant"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "tenant"' do
36
+ describe 'test attribute "scopes"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "label"' do
42
+ describe 'test attribute "auth"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["api_key", "session"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.auth = value }.not_to raise_error
48
+ # end
45
49
  end
46
50
  end
47
51
 
48
- describe 'test attribute "scopes"' do
52
+ describe 'test attribute "key"' do
49
53
  it 'should work' do
50
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
55
  end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #lockally control plane
3
+
4
+ #The lockally control plane lets integrators and direct customers manage everything except actual mail data flow (which uses standard JMAP / IMAP / SMTP-submission against the data plane endpoints). **Authentication.** All `/v1/*` endpoints require a Bearer API key in the `Authorization` header. Keys are formatted `lk_live_<8-char-prefix>_<32-char-secret>`, or `lk_test_<...>` for a test key. Create keys in the dashboard, or with `POST /v1/api-keys` using a key that holds `tenant:admin`. The key's plan is checked on every request, so a key stops working if the account moves to a plan without API access, and works again if it moves back. **Errors.** Failures return [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) `application/problem+json` documents. **Scopes.** Each endpoint requires a specific scope on the presented key. Insufficient scope returns `403` with the required scope name in `detail`.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+ Contact: support@lockally.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Lockally::WhoamiTenant
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Lockally::WhoamiTenant do
21
+ #let(:instance) { Lockally::WhoamiTenant.new }
22
+
23
+ describe 'test an instance of WhoamiTenant' do
24
+ it 'should create an instance of WhoamiTenant' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Lockally::WhoamiTenant)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "slug"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "name"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "plan"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -312,7 +312,7 @@ files:
312
312
  - docs/ThreadList.md
313
313
  - docs/ThreadMessage.md
314
314
  - docs/ThreadMessageBody.md
315
- - docs/ThreadMessageBodyAllOfBody.md
315
+ - docs/ThreadMessageBodyBody.md
316
316
  - docs/ThreadSummary.md
317
317
  - docs/UnitBundle.md
318
318
  - docs/UpdateAdminRequest.md
@@ -339,6 +339,8 @@ files:
339
339
  - docs/Webhook.md
340
340
  - docs/WebhooksApi.md
341
341
  - docs/Whoami.md
342
+ - docs/WhoamiKey.md
343
+ - docs/WhoamiTenant.md
342
344
  - git_push.sh
343
345
  - lib/lockally.rb
344
346
  - lib/lockally/api/add_ons_api.rb
@@ -560,7 +562,7 @@ files:
560
562
  - lib/lockally/models/thread_list.rb
561
563
  - lib/lockally/models/thread_message.rb
562
564
  - lib/lockally/models/thread_message_body.rb
563
- - lib/lockally/models/thread_message_body_all_of_body.rb
565
+ - lib/lockally/models/thread_message_body_body.rb
564
566
  - lib/lockally/models/thread_summary.rb
565
567
  - lib/lockally/models/unit_bundle.rb
566
568
  - lib/lockally/models/update_admin_request.rb
@@ -585,6 +587,8 @@ files:
585
587
  - lib/lockally/models/vacation_responder.rb
586
588
  - lib/lockally/models/webhook.rb
587
589
  - lib/lockally/models/whoami.rb
590
+ - lib/lockally/models/whoami_key.rb
591
+ - lib/lockally/models/whoami_tenant.rb
588
592
  - lib/lockally/version.rb
589
593
  - lockally.gemspec
590
594
  - spec/api/add_ons_api_spec.rb
@@ -799,7 +803,7 @@ files:
799
803
  - spec/models/tenant_spec.rb
800
804
  - spec/models/thread_classification_spec.rb
801
805
  - spec/models/thread_list_spec.rb
802
- - spec/models/thread_message_body_all_of_body_spec.rb
806
+ - spec/models/thread_message_body_body_spec.rb
803
807
  - spec/models/thread_message_body_spec.rb
804
808
  - spec/models/thread_message_spec.rb
805
809
  - spec/models/thread_spec.rb
@@ -826,7 +830,9 @@ files:
826
830
  - spec/models/vacation_params_spec.rb
827
831
  - spec/models/vacation_responder_spec.rb
828
832
  - spec/models/webhook_spec.rb
833
+ - spec/models/whoami_key_spec.rb
829
834
  - spec/models/whoami_spec.rb
835
+ - spec/models/whoami_tenant_spec.rb
830
836
  - spec/spec_helper.rb
831
837
  homepage: https://lockally.com
832
838
  licenses:
@@ -914,6 +920,7 @@ test_files:
914
920
  - spec/models/directory_permissions_spec.rb
915
921
  - spec/models/list_suppressions200_response_spec.rb
916
922
  - spec/models/create_calendar_request_spec.rb
923
+ - spec/models/thread_message_body_body_spec.rb
917
924
  - spec/models/admin_spec.rb
918
925
  - spec/models/tenant_spec.rb
919
926
  - spec/models/create_contact_list_request_spec.rb
@@ -979,7 +986,6 @@ test_files:
979
986
  - spec/models/get_directory_activity200_response_spec.rb
980
987
  - spec/models/update_resource_request_spec.rb
981
988
  - spec/models/signup_request_spec.rb
982
- - spec/models/thread_message_body_all_of_body_spec.rb
983
989
  - spec/models/get_directory_stats200_response_spec.rb
984
990
  - spec/models/create_domain_request_spec.rb
985
991
  - spec/models/unit_bundle_spec.rb
@@ -1055,6 +1061,7 @@ test_files:
1055
1061
  - spec/models/get_calendar_security200_response_external_sharing_spec.rb
1056
1062
  - spec/models/update_directory_permissions_request_spec.rb
1057
1063
  - spec/models/list_migration_credentials200_response_spec.rb
1064
+ - spec/models/whoami_tenant_spec.rb
1058
1065
  - spec/models/webhook_spec.rb
1059
1066
  - spec/models/template_spec.rb
1060
1067
  - spec/models/message_stats_rates_spec.rb
@@ -1092,4 +1099,5 @@ test_files:
1092
1099
  - spec/models/create_migration_credential_request_credentials_spec.rb
1093
1100
  - spec/models/mailbox_grant_list_spec.rb
1094
1101
  - spec/models/export_mailbox201_response_spec.rb
1102
+ - spec/models/whoami_key_spec.rb
1095
1103
  - spec/spec_helper.rb