trinsic_api 2.2.0.pre.alpha1 → 2.2.0
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/docs/NetworkApi.md +7 -5
- data/docs/SessionsApi.md +14 -14
- data/lib/trinsic_api/api/network_api.rb +6 -2
- data/lib/trinsic_api/api/sessions_api.rb +18 -18
- data/lib/trinsic_api/version.rb +1 -1
- data/spec/api/network_api_spec.rb +3 -1
- data/spec/api/sessions_api_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7119195ef1973bb58ec167091a9fb2b4bec432da992452638f76af0163dff5b4
|
4
|
+
data.tar.gz: d725f104318f759292c70adf177d7e0a0909d97a5946720d28a9eed09e2e3108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29575cae410be8e818ff5918930730731b4efe8616023f7a99f2e1936c5e116c87849d4b6c295920e2fedcb355f9b0231d1bbba417ad3d27c15b6e4739e1189a
|
7
|
+
data.tar.gz: 1296cfb9a8eaa46d654431b010eb714c7b73f6890e2b28d48ac60e0162ca82e9e9b479512114ac95a5ecacd5a98d9ddcbcaf11c250dae95c01774b38789deb3a
|
data/docs/NetworkApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.trinsic.id*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list_provider_contracts**](NetworkApi.md#list_provider_contracts) | **GET** /api/v1/network/{verificationProfileId}/providers/contracts | List Provider Contracts |
|
8
|
-
| [**list_providers**](NetworkApi.md#list_providers) | **GET** /api/v1/network/{verificationProfileId}/providers |
|
8
|
+
| [**list_providers**](NetworkApi.md#list_providers) | **GET** /api/v1/network/{verificationProfileId}/providers | List Providers |
|
9
9
|
| [**recommend_providers**](NetworkApi.md#recommend_providers) | **POST** /api/v1/network/recommend | Recommend Providers |
|
10
10
|
|
11
11
|
|
@@ -82,7 +82,9 @@ end
|
|
82
82
|
|
83
83
|
> <ListProvidersResponse> list_providers(verification_profile_id, opts)
|
84
84
|
|
85
|
+
List Providers
|
85
86
|
|
87
|
+
List all identity providers available for use
|
86
88
|
|
87
89
|
### Examples
|
88
90
|
|
@@ -98,11 +100,11 @@ end
|
|
98
100
|
api_instance = TrinsicApi::NetworkApi.new
|
99
101
|
verification_profile_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
100
102
|
opts = {
|
101
|
-
health: 'health_example' # String |
|
103
|
+
health: 'health_example' # String | Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
102
104
|
}
|
103
105
|
|
104
106
|
begin
|
105
|
-
|
107
|
+
# List Providers
|
106
108
|
result = api_instance.list_providers(verification_profile_id, opts)
|
107
109
|
p result
|
108
110
|
rescue TrinsicApi::ApiError => e
|
@@ -118,7 +120,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
118
120
|
|
119
121
|
```ruby
|
120
122
|
begin
|
121
|
-
|
123
|
+
# List Providers
|
122
124
|
data, status_code, headers = api_instance.list_providers_with_http_info(verification_profile_id, opts)
|
123
125
|
p status_code # => 2xx
|
124
126
|
p headers # => { ... }
|
@@ -133,7 +135,7 @@ end
|
|
133
135
|
| Name | Type | Description | Notes |
|
134
136
|
| ---- | ---- | ----------- | ----- |
|
135
137
|
| **verification_profile_id** | **String** | | |
|
136
|
-
| **health** | **String** |
|
138
|
+
| **health** | **String** | Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\". | [optional] |
|
137
139
|
|
138
140
|
### Return type
|
139
141
|
|
data/docs/SessionsApi.md
CHANGED
@@ -12,8 +12,8 @@ All URIs are relative to *https://api.trinsic.id*
|
|
12
12
|
| [**get_session_result**](SessionsApi.md#get_session_result) | **POST** /api/v1/sessions/{sessionId}/results | Get Session Results |
|
13
13
|
| [**list_sessions**](SessionsApi.md#list_sessions) | **GET** /api/v1/verification-profiles/{verificationProfileId}/sessions | List Sessions |
|
14
14
|
| [**redact_session**](SessionsApi.md#redact_session) | **POST** /api/v1/sessions/{sessionId}/redact | Redact Session |
|
15
|
-
| [**refresh_step_content**](SessionsApi.md#refresh_step_content) | **POST** /api/v1/sessions/{
|
16
|
-
| [**submit_native_challenge_response**](SessionsApi.md#submit_native_challenge_response) | **POST** /api/v1/sessions/{
|
15
|
+
| [**refresh_step_content**](SessionsApi.md#refresh_step_content) | **POST** /api/v1/sessions/{sessionId}/step/refresh | Refresh Step Content |
|
16
|
+
| [**submit_native_challenge_response**](SessionsApi.md#submit_native_challenge_response) | **POST** /api/v1/sessions/{sessionId}/native-challenge/submit | Submit Native Challenge Response |
|
17
17
|
|
18
18
|
|
19
19
|
## cancel_session
|
@@ -587,7 +587,7 @@ nil (empty response body)
|
|
587
587
|
|
588
588
|
## refresh_step_content
|
589
589
|
|
590
|
-
> <RefreshStepContentResponse> refresh_step_content(
|
590
|
+
> <RefreshStepContentResponse> refresh_step_content(session_id, opts)
|
591
591
|
|
592
592
|
Refresh Step Content
|
593
593
|
|
@@ -605,14 +605,14 @@ TrinsicApi.configure do |config|
|
|
605
605
|
end
|
606
606
|
|
607
607
|
api_instance = TrinsicApi::SessionsApi.new
|
608
|
-
|
608
|
+
session_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
609
609
|
opts = {
|
610
610
|
refresh_step_content_request: TrinsicApi::RefreshStepContentRequest.new({results_access_key: 'results_access_key_example'}) # RefreshStepContentRequest |
|
611
611
|
}
|
612
612
|
|
613
613
|
begin
|
614
614
|
# Refresh Step Content
|
615
|
-
result = api_instance.refresh_step_content(
|
615
|
+
result = api_instance.refresh_step_content(session_id, opts)
|
616
616
|
p result
|
617
617
|
rescue TrinsicApi::ApiError => e
|
618
618
|
puts "Error when calling SessionsApi->refresh_step_content: #{e}"
|
@@ -623,12 +623,12 @@ end
|
|
623
623
|
|
624
624
|
This returns an Array which contains the response data, status code and headers.
|
625
625
|
|
626
|
-
> <Array(<RefreshStepContentResponse>, Integer, Hash)> refresh_step_content_with_http_info(
|
626
|
+
> <Array(<RefreshStepContentResponse>, Integer, Hash)> refresh_step_content_with_http_info(session_id, opts)
|
627
627
|
|
628
628
|
```ruby
|
629
629
|
begin
|
630
630
|
# Refresh Step Content
|
631
|
-
data, status_code, headers = api_instance.refresh_step_content_with_http_info(
|
631
|
+
data, status_code, headers = api_instance.refresh_step_content_with_http_info(session_id, opts)
|
632
632
|
p status_code # => 2xx
|
633
633
|
p headers # => { ... }
|
634
634
|
p data # => <RefreshStepContentResponse>
|
@@ -641,7 +641,7 @@ end
|
|
641
641
|
|
642
642
|
| Name | Type | Description | Notes |
|
643
643
|
| ---- | ---- | ----------- | ----- |
|
644
|
-
| **
|
644
|
+
| **session_id** | **String** | | |
|
645
645
|
| **refresh_step_content_request** | [**RefreshStepContentRequest**](RefreshStepContentRequest.md) | | [optional] |
|
646
646
|
|
647
647
|
### Return type
|
@@ -660,7 +660,7 @@ end
|
|
660
660
|
|
661
661
|
## submit_native_challenge_response
|
662
662
|
|
663
|
-
> <SubmitNativeChallengeResponseResponse> submit_native_challenge_response(
|
663
|
+
> <SubmitNativeChallengeResponseResponse> submit_native_challenge_response(session_id, opts)
|
664
664
|
|
665
665
|
Submit Native Challenge Response
|
666
666
|
|
@@ -678,14 +678,14 @@ TrinsicApi.configure do |config|
|
|
678
678
|
end
|
679
679
|
|
680
680
|
api_instance = TrinsicApi::SessionsApi.new
|
681
|
-
|
681
|
+
session_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
682
682
|
opts = {
|
683
683
|
submit_native_challenge_response_request: TrinsicApi::SubmitNativeChallengeResponseRequest.new({results_access_key: 'results_access_key_example', response_token: 'response_token_example'}) # SubmitNativeChallengeResponseRequest |
|
684
684
|
}
|
685
685
|
|
686
686
|
begin
|
687
687
|
# Submit Native Challenge Response
|
688
|
-
result = api_instance.submit_native_challenge_response(
|
688
|
+
result = api_instance.submit_native_challenge_response(session_id, opts)
|
689
689
|
p result
|
690
690
|
rescue TrinsicApi::ApiError => e
|
691
691
|
puts "Error when calling SessionsApi->submit_native_challenge_response: #{e}"
|
@@ -696,12 +696,12 @@ end
|
|
696
696
|
|
697
697
|
This returns an Array which contains the response data, status code and headers.
|
698
698
|
|
699
|
-
> <Array(<SubmitNativeChallengeResponseResponse>, Integer, Hash)> submit_native_challenge_response_with_http_info(
|
699
|
+
> <Array(<SubmitNativeChallengeResponseResponse>, Integer, Hash)> submit_native_challenge_response_with_http_info(session_id, opts)
|
700
700
|
|
701
701
|
```ruby
|
702
702
|
begin
|
703
703
|
# Submit Native Challenge Response
|
704
|
-
data, status_code, headers = api_instance.submit_native_challenge_response_with_http_info(
|
704
|
+
data, status_code, headers = api_instance.submit_native_challenge_response_with_http_info(session_id, opts)
|
705
705
|
p status_code # => 2xx
|
706
706
|
p headers # => { ... }
|
707
707
|
p data # => <SubmitNativeChallengeResponseResponse>
|
@@ -714,7 +714,7 @@ end
|
|
714
714
|
|
715
715
|
| Name | Type | Description | Notes |
|
716
716
|
| ---- | ---- | ----------- | ----- |
|
717
|
-
| **
|
717
|
+
| **session_id** | **String** | | |
|
718
718
|
| **submit_native_challenge_response_request** | [**SubmitNativeChallengeResponseRequest**](SubmitNativeChallengeResponseRequest.md) | | [optional] |
|
719
719
|
|
720
720
|
### Return type
|
@@ -82,18 +82,22 @@ module TrinsicApi
|
|
82
82
|
return data, status_code, headers
|
83
83
|
end
|
84
84
|
|
85
|
+
# List Providers
|
86
|
+
# List all identity providers available for use
|
85
87
|
# @param verification_profile_id [String]
|
86
88
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @option opts [String] :health
|
89
|
+
# @option opts [String] :health Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
88
90
|
# @return [ListProvidersResponse]
|
89
91
|
def list_providers(verification_profile_id, opts = {})
|
90
92
|
data, _status_code, _headers = list_providers_with_http_info(verification_profile_id, opts)
|
91
93
|
data
|
92
94
|
end
|
93
95
|
|
96
|
+
# List Providers
|
97
|
+
# List all identity providers available for use
|
94
98
|
# @param verification_profile_id [String]
|
95
99
|
# @param [Hash] opts the optional parameters
|
96
|
-
# @option opts [String] :health
|
100
|
+
# @option opts [String] :health Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
97
101
|
# @return [Array<(ListProvidersResponse, Integer, Hash)>] ListProvidersResponse data, response status code and response headers
|
98
102
|
def list_providers_with_http_info(verification_profile_id, opts = {})
|
99
103
|
if @api_client.config.debugging
|
@@ -561,31 +561,31 @@ module TrinsicApi
|
|
561
561
|
|
562
562
|
# Refresh Step Content
|
563
563
|
# Refreshes the content of a Step for a Direct Provider Session.
|
564
|
-
# @param
|
564
|
+
# @param session_id [String]
|
565
565
|
# @param [Hash] opts the optional parameters
|
566
566
|
# @option opts [RefreshStepContentRequest] :refresh_step_content_request
|
567
567
|
# @return [RefreshStepContentResponse]
|
568
|
-
def refresh_step_content(
|
569
|
-
data, _status_code, _headers = refresh_step_content_with_http_info(
|
568
|
+
def refresh_step_content(session_id, opts = {})
|
569
|
+
data, _status_code, _headers = refresh_step_content_with_http_info(session_id, opts)
|
570
570
|
data
|
571
571
|
end
|
572
572
|
|
573
573
|
# Refresh Step Content
|
574
574
|
# Refreshes the content of a Step for a Direct Provider Session.
|
575
|
-
# @param
|
575
|
+
# @param session_id [String]
|
576
576
|
# @param [Hash] opts the optional parameters
|
577
577
|
# @option opts [RefreshStepContentRequest] :refresh_step_content_request
|
578
578
|
# @return [Array<(RefreshStepContentResponse, Integer, Hash)>] RefreshStepContentResponse data, response status code and response headers
|
579
|
-
def refresh_step_content_with_http_info(
|
579
|
+
def refresh_step_content_with_http_info(session_id, opts = {})
|
580
580
|
if @api_client.config.debugging
|
581
581
|
@api_client.config.logger.debug 'Calling API: SessionsApi.refresh_step_content ...'
|
582
582
|
end
|
583
|
-
# verify the required parameter '
|
584
|
-
if @api_client.config.client_side_validation &&
|
585
|
-
fail ArgumentError, "Missing the required parameter '
|
583
|
+
# verify the required parameter 'session_id' is set
|
584
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
585
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.refresh_step_content"
|
586
586
|
end
|
587
587
|
# resource path
|
588
|
-
local_var_path = '/api/v1/sessions/{
|
588
|
+
local_var_path = '/api/v1/sessions/{sessionId}/step/refresh'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
589
589
|
|
590
590
|
# query parameters
|
591
591
|
query_params = opts[:query_params] || {}
|
@@ -631,31 +631,31 @@ module TrinsicApi
|
|
631
631
|
|
632
632
|
# Submit Native Challenge Response
|
633
633
|
# Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
634
|
-
# @param
|
634
|
+
# @param session_id [String]
|
635
635
|
# @param [Hash] opts the optional parameters
|
636
636
|
# @option opts [SubmitNativeChallengeResponseRequest] :submit_native_challenge_response_request
|
637
637
|
# @return [SubmitNativeChallengeResponseResponse]
|
638
|
-
def submit_native_challenge_response(
|
639
|
-
data, _status_code, _headers = submit_native_challenge_response_with_http_info(
|
638
|
+
def submit_native_challenge_response(session_id, opts = {})
|
639
|
+
data, _status_code, _headers = submit_native_challenge_response_with_http_info(session_id, opts)
|
640
640
|
data
|
641
641
|
end
|
642
642
|
|
643
643
|
# Submit Native Challenge Response
|
644
644
|
# Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
645
|
-
# @param
|
645
|
+
# @param session_id [String]
|
646
646
|
# @param [Hash] opts the optional parameters
|
647
647
|
# @option opts [SubmitNativeChallengeResponseRequest] :submit_native_challenge_response_request
|
648
648
|
# @return [Array<(SubmitNativeChallengeResponseResponse, Integer, Hash)>] SubmitNativeChallengeResponseResponse data, response status code and response headers
|
649
|
-
def submit_native_challenge_response_with_http_info(
|
649
|
+
def submit_native_challenge_response_with_http_info(session_id, opts = {})
|
650
650
|
if @api_client.config.debugging
|
651
651
|
@api_client.config.logger.debug 'Calling API: SessionsApi.submit_native_challenge_response ...'
|
652
652
|
end
|
653
|
-
# verify the required parameter '
|
654
|
-
if @api_client.config.client_side_validation &&
|
655
|
-
fail ArgumentError, "Missing the required parameter '
|
653
|
+
# verify the required parameter 'session_id' is set
|
654
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
655
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.submit_native_challenge_response"
|
656
656
|
end
|
657
657
|
# resource path
|
658
|
-
local_var_path = '/api/v1/sessions/{
|
658
|
+
local_var_path = '/api/v1/sessions/{sessionId}/native-challenge/submit'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
659
659
|
|
660
660
|
# query parameters
|
661
661
|
query_params = opts[:query_params] || {}
|
data/lib/trinsic_api/version.rb
CHANGED
@@ -45,9 +45,11 @@ describe 'NetworkApi' do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# unit tests for list_providers
|
48
|
+
# List Providers
|
49
|
+
# List all identity providers available for use
|
48
50
|
# @param verification_profile_id
|
49
51
|
# @param [Hash] opts the optional parameters
|
50
|
-
# @option opts [String] :health
|
52
|
+
# @option opts [String] :health Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
51
53
|
# @return [ListProvidersResponse]
|
52
54
|
describe 'list_providers test' do
|
53
55
|
it 'should work' do
|
@@ -135,7 +135,7 @@ describe 'SessionsApi' do
|
|
135
135
|
# unit tests for refresh_step_content
|
136
136
|
# Refresh Step Content
|
137
137
|
# Refreshes the content of a Step for a Direct Provider Session.
|
138
|
-
# @param
|
138
|
+
# @param session_id
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @option opts [RefreshStepContentRequest] :refresh_step_content_request
|
141
141
|
# @return [RefreshStepContentResponse]
|
@@ -148,7 +148,7 @@ describe 'SessionsApi' do
|
|
148
148
|
# unit tests for submit_native_challenge_response
|
149
149
|
# Submit Native Challenge Response
|
150
150
|
# Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
151
|
-
# @param
|
151
|
+
# @param session_id
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @option opts [SubmitNativeChallengeResponseRequest] :submit_native_challenge_response_request
|
154
154
|
# @return [SubmitNativeChallengeResponseResponse]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinsic_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trinsic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|