trinsic_api 0.3.0 → 0.4.1
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 +21 -21
- data/docs/AttachmentsApi.md +15 -13
- data/docs/{ExchangeAttachmentAccessKeyRequest.md → GetAttachmentRequest.md} +2 -2
- data/docs/{ExchangeResultsKeyRequest.md → GetSessionResultRequest.md} +2 -2
- data/docs/{ExchangeResultsKeyResponse.md → GetSessionResultResponse.md} +2 -2
- data/docs/NetworkApi.md +10 -6
- data/docs/SessionsApi.md +56 -46
- data/lib/trinsic_api/api/attachments_api.rb +14 -12
- data/lib/trinsic_api/api/network_api.rb +7 -3
- data/lib/trinsic_api/api/sessions_api.rb +54 -44
- data/lib/trinsic_api/api_client.rb +1 -1
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/address.rb +1 -1
- data/lib/trinsic_api/models/attachments.rb +1 -1
- data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
- data/lib/trinsic_api/models/create_session_request.rb +1 -1
- data/lib/trinsic_api/models/create_session_response.rb +1 -1
- data/lib/trinsic_api/models/disclosed_fields.rb +1 -1
- data/lib/trinsic_api/models/disclosed_fields_request.rb +1 -1
- data/lib/trinsic_api/models/document_data.rb +1 -1
- data/lib/trinsic_api/models/failure_message.rb +1 -1
- data/lib/trinsic_api/models/{exchange_attachment_access_key_request.rb → get_attachment_request.rb} +4 -4
- data/lib/trinsic_api/models/get_session_response.rb +1 -1
- data/lib/trinsic_api/models/{exchange_results_key_request.rb → get_session_result_request.rb} +4 -4
- data/lib/trinsic_api/models/{exchange_results_key_response.rb → get_session_result_response.rb} +4 -4
- data/lib/trinsic_api/models/identity_data.rb +1 -1
- data/lib/trinsic_api/models/identity_lookup_response.rb +1 -1
- data/lib/trinsic_api/models/list_providers_response.rb +1 -1
- data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +1 -1
- data/lib/trinsic_api/models/provider_info.rb +1 -1
- data/lib/trinsic_api/models/session.rb +1 -1
- data/lib/trinsic_api/models/session_fail_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/session_state.rb +1 -1
- data/lib/trinsic_api/models/validation_result.rb +1 -1
- data/lib/trinsic_api/models/verification.rb +1 -1
- data/lib/trinsic_api/models/verification_fail_code.rb +1 -1
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +4 -4
- data/spec/api/attachments_api_spec.rb +5 -4
- data/spec/api/network_api_spec.rb +3 -1
- data/spec/api/sessions_api_spec.rb +15 -10
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachments_spec.rb +1 -1
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +1 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/disclosed_fields_request_spec.rb +1 -1
- data/spec/models/disclosed_fields_spec.rb +1 -1
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/failure_message_spec.rb +1 -1
- data/spec/models/{exchange_attachment_access_key_request_spec.rb → get_attachment_request_spec.rb} +7 -7
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/{exchange_results_key_request_spec.rb → get_session_result_request_spec.rb} +7 -7
- data/spec/models/{exchange_results_key_response_spec.rb → get_session_result_response_spec.rb} +7 -7
- data/spec/models/identity_data_spec.rb +1 -1
- data/spec/models/identity_lookup_response_spec.rb +1 -1
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +1 -1
- data/spec/models/provider_info_spec.rb +1 -1
- data/spec/models/session_fail_code_spec.rb +1 -1
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/session_state_spec.rb +1 -1
- data/spec/models/validation_result_spec.rb +1 -1
- data/spec/models/verification_fail_code_spec.rb +1 -1
- data/spec/models/verification_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +3 -3
- metadata +16 -16
data/lib/trinsic_api/version.rb
CHANGED
data/lib/trinsic_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,11 +25,11 @@ require 'trinsic_api/models/create_session_response'
|
|
25
25
|
require 'trinsic_api/models/disclosed_fields'
|
26
26
|
require 'trinsic_api/models/disclosed_fields_request'
|
27
27
|
require 'trinsic_api/models/document_data'
|
28
|
-
require 'trinsic_api/models/exchange_attachment_access_key_request'
|
29
|
-
require 'trinsic_api/models/exchange_results_key_request'
|
30
|
-
require 'trinsic_api/models/exchange_results_key_response'
|
31
28
|
require 'trinsic_api/models/failure_message'
|
29
|
+
require 'trinsic_api/models/get_attachment_request'
|
32
30
|
require 'trinsic_api/models/get_session_response'
|
31
|
+
require 'trinsic_api/models/get_session_result_request'
|
32
|
+
require 'trinsic_api/models/get_session_result_response'
|
33
33
|
require 'trinsic_api/models/identity_data'
|
34
34
|
require 'trinsic_api/models/identity_lookup_response'
|
35
35
|
require 'trinsic_api/models/list_providers_response'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,12 +32,13 @@ describe 'AttachmentsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for get_attachment
|
36
|
+
# Get Attachment
|
36
37
|
# Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [
|
39
|
+
# @option opts [GetAttachmentRequest] :get_attachment_request
|
39
40
|
# @return [nil]
|
40
|
-
describe '
|
41
|
+
describe 'get_attachment test' do
|
41
42
|
it 'should work' do
|
42
43
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
44
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,6 +33,7 @@ describe 'NetworkApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for identity_lookup
|
36
|
+
# Lookup Identity
|
36
37
|
# Query the availability of an identity in the Trinsic Network by phone number
|
37
38
|
# @param phone_number
|
38
39
|
# @param [Hash] opts the optional parameters
|
@@ -44,6 +45,7 @@ describe 'NetworkApi' do
|
|
44
45
|
end
|
45
46
|
|
46
47
|
# unit tests for list_providers
|
48
|
+
# List Identity Providers
|
47
49
|
# List all identity providers available for use
|
48
50
|
# @param [Hash] opts the optional parameters
|
49
51
|
# @return [ListProvidersResponse]
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,6 +33,7 @@ describe 'SessionsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for cancel_session
|
36
|
+
# Cancel Session
|
36
37
|
# Cancel a Session by its ID
|
37
38
|
# @param session_id
|
38
39
|
# @param [Hash] opts the optional parameters
|
@@ -44,6 +45,7 @@ describe 'SessionsApi' do
|
|
44
45
|
end
|
45
46
|
|
46
47
|
# unit tests for create_session
|
48
|
+
# Create Session
|
47
49
|
# Create a Session to verify a user's identity
|
48
50
|
# @param [Hash] opts the optional parameters
|
49
51
|
# @option opts [CreateSessionRequest] :create_session_request
|
@@ -54,30 +56,32 @@ describe 'SessionsApi' do
|
|
54
56
|
end
|
55
57
|
end
|
56
58
|
|
57
|
-
# unit tests for
|
58
|
-
#
|
59
|
+
# unit tests for get_session
|
60
|
+
# Get Session
|
61
|
+
# Get a Session by its ID
|
59
62
|
# @param session_id
|
60
63
|
# @param [Hash] opts the optional parameters
|
61
|
-
# @
|
62
|
-
|
63
|
-
describe 'exchange_results_key test' do
|
64
|
+
# @return [GetSessionResponse]
|
65
|
+
describe 'get_session test' do
|
64
66
|
it 'should work' do
|
65
67
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|
69
|
-
# unit tests for
|
70
|
-
# Get
|
71
|
+
# unit tests for get_session_result
|
72
|
+
# Get Session Results
|
71
73
|
# @param session_id
|
72
74
|
# @param [Hash] opts the optional parameters
|
73
|
-
# @
|
74
|
-
|
75
|
+
# @option opts [GetSessionResultRequest] :get_session_result_request
|
76
|
+
# @return [GetSessionResultResponse]
|
77
|
+
describe 'get_session_result test' do
|
75
78
|
it 'should work' do
|
76
79
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
77
80
|
end
|
78
81
|
end
|
79
82
|
|
80
83
|
# unit tests for list_sessions
|
84
|
+
# List Sessions
|
81
85
|
# List Sessions created by your account
|
82
86
|
# @param [Hash] opts the optional parameters
|
83
87
|
# @option opts [SessionOrdering] :order_by The field by which sessions should be ordered
|
@@ -92,6 +96,7 @@ describe 'SessionsApi' do
|
|
92
96
|
end
|
93
97
|
|
94
98
|
# unit tests for redact_session
|
99
|
+
# Redact Session
|
95
100
|
# Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
96
101
|
# @param session_id
|
97
102
|
# @param [Hash] opts the optional parameters
|
data/spec/models/address_spec.rb
CHANGED
data/spec/models/{exchange_attachment_access_key_request_spec.rb → get_attachment_request_spec.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TrinsicApi::
|
17
|
+
# Unit tests for TrinsicApi::GetAttachmentRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe TrinsicApi::
|
21
|
-
let(:instance) { TrinsicApi::
|
20
|
+
describe TrinsicApi::GetAttachmentRequest do
|
21
|
+
let(:instance) { TrinsicApi::GetAttachmentRequest.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
23
|
+
describe 'test an instance of GetAttachmentRequest' do
|
24
|
+
it 'should create an instance of GetAttachmentRequest' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::GetAttachmentRequest)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/spec/models/{exchange_results_key_request_spec.rb → get_session_result_request_spec.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TrinsicApi::
|
17
|
+
# Unit tests for TrinsicApi::GetSessionResultRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe TrinsicApi::
|
21
|
-
let(:instance) { TrinsicApi::
|
20
|
+
describe TrinsicApi::GetSessionResultRequest do
|
21
|
+
let(:instance) { TrinsicApi::GetSessionResultRequest.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
23
|
+
describe 'test an instance of GetSessionResultRequest' do
|
24
|
+
it 'should create an instance of GetSessionResultRequest' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::GetSessionResultRequest)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/spec/models/{exchange_results_key_response_spec.rb → get_session_result_response_spec.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TrinsicApi::
|
17
|
+
# Unit tests for TrinsicApi::GetSessionResultResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe TrinsicApi::
|
21
|
-
let(:instance) { TrinsicApi::
|
20
|
+
describe TrinsicApi::GetSessionResultResponse do
|
21
|
+
let(:instance) { TrinsicApi::GetSessionResultResponse.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
23
|
+
describe 'test an instance of GetSessionResultResponse' do
|
24
|
+
it 'should create an instance of GetSessionResultResponse' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::GetSessionResultResponse)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/spec/models/session_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/trinsic_api.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: v1
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
Generator version: 7.
|
11
|
+
Generator version: 7.8.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.authors = ["Trinsic"]
|
23
23
|
s.email = ["support@trinsic.id"]
|
24
24
|
s.homepage = "https://trinsic.id"
|
25
|
-
s.summary = "Trinsic Api"
|
26
|
-
s.description = "Trinsic Api"
|
25
|
+
s.summary = "Trinsic Api SDK"
|
26
|
+
s.description = "Trinsic Api SDK to assist you in integrating with Trinsic"
|
27
27
|
s.license = "Unlicense"
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = {}
|