trinsic_api 2.0.0.pre.alpha3 → 2.0.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 +1 -1
- data/docs/AttachmentsApi.md +1 -1
- data/docs/BrazilDigitalCnhInput.md +2 -2
- data/docs/CreateAdvancedProviderSessionRequest.md +3 -3
- data/docs/CreateHostedProviderSessionResponse.md +4 -2
- data/docs/CreateWidgetSessionRequest.md +3 -3
- data/docs/CreateWidgetSessionResponse.md +4 -2
- data/docs/IdentityData.md +2 -0
- data/docs/IdinInput.md +18 -0
- data/docs/IntegrationStep.md +1 -1
- data/docs/Language.md +15 -0
- data/docs/ListProviderContractsResponse.md +18 -0
- data/docs/MobileIdInput.md +22 -0
- data/docs/NetworkApi.md +71 -4
- data/docs/ProviderContract.md +48 -0
- data/docs/ProviderHealth.md +15 -0
- data/docs/ProviderInfo.md +1 -3
- data/docs/ProviderInformation.md +3 -3
- data/docs/ProviderInput.md +24 -12
- data/docs/RecommendRequest.md +2 -10
- data/docs/RecommendationInfo.md +24 -0
- data/docs/ResultCollection.md +2 -2
- data/docs/Session.md +3 -3
- data/docs/SessionsApi.md +2 -2
- data/docs/SmartIdInput.md +18 -0
- data/docs/SpidInput.md +18 -0
- data/docs/StepRefreshInfo.md +1 -1
- data/docs/SubProviderMetadata.md +24 -0
- data/docs/TrinsicTestDatabaseLookupInput.md +24 -0
- data/docs/TrinsicTestSubProvidersInput.md +18 -0
- data/docs/WellKnownApi.md +71 -0
- data/lib/trinsic_api/api/attachments_api.rb +3 -3
- data/lib/trinsic_api/api/network_api.rb +60 -3
- data/lib/trinsic_api/api/sessions_api.rb +5 -5
- data/lib/trinsic_api/api/well_known_api.rb +75 -0
- data/lib/trinsic_api/api_client.rb +8 -9
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/aadhaar_input.rb +10 -4
- data/lib/trinsic_api/models/address.rb +10 -4
- data/lib/trinsic_api/models/attachment_access_keys.rb +20 -4
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +12 -6
- data/lib/trinsic_api/models/cancel_session_response.rb +20 -4
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +13 -7
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +40 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +10 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +69 -10
- data/lib/trinsic_api/models/create_widget_session_request.rb +20 -14
- data/lib/trinsic_api/models/create_widget_session_response.rb +69 -10
- data/lib/trinsic_api/models/document_data.rb +10 -4
- data/lib/trinsic_api/models/document_scan_attachments.rb +10 -4
- data/lib/trinsic_api/models/document_type.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_request.rb +10 -4
- data/lib/trinsic_api/models/get_attachment_response.rb +30 -4
- data/lib/trinsic_api/models/get_session_response.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_request.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_response.rb +20 -4
- data/lib/trinsic_api/models/http_validation_problem_details.rb +10 -4
- data/lib/trinsic_api/models/identity_data.rb +21 -5
- data/lib/trinsic_api/models/{known_identity_data.rb → idin_input.rb} +21 -16
- data/lib/trinsic_api/models/indonesia_nik_input.rb +20 -4
- data/lib/trinsic_api/models/integration_capability.rb +1 -1
- data/lib/trinsic_api/models/integration_launch_method.rb +3 -3
- data/lib/trinsic_api/models/integration_step.rb +30 -6
- data/lib/trinsic_api/models/kenya_nid_input.rb +20 -4
- data/lib/trinsic_api/models/language.rb +42 -0
- data/lib/trinsic_api/models/{known_address.rb → list_provider_contracts_response.rb} +39 -86
- data/lib/trinsic_api/models/list_providers_response.rb +20 -4
- data/lib/trinsic_api/models/list_sessions_response.rb +40 -4
- data/lib/trinsic_api/models/mexico_curp_input.rb +10 -4
- data/lib/trinsic_api/models/mobile_id_input.rb +266 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +20 -4
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +10 -4
- data/lib/trinsic_api/models/philippine_match_input.rb +10 -4
- data/lib/trinsic_api/models/philippine_qr_input.rb +10 -4
- data/lib/trinsic_api/models/problem_details.rb +10 -4
- data/lib/trinsic_api/models/provider_attachments.rb +10 -4
- data/lib/trinsic_api/models/provider_contract.rb +655 -0
- data/lib/trinsic_api/models/provider_health.rb +40 -0
- data/lib/trinsic_api/models/provider_info.rb +44 -21
- data/lib/trinsic_api/models/provider_information.rb +40 -4
- data/lib/trinsic_api/models/provider_input.rb +92 -20
- data/lib/trinsic_api/models/recommend_request.rb +19 -63
- data/lib/trinsic_api/models/recommend_response.rb +40 -4
- data/lib/trinsic_api/models/recommendation_info.rb +262 -0
- data/lib/trinsic_api/models/refresh_step_content_request.rb +10 -4
- data/lib/trinsic_api/models/refresh_step_content_response.rb +20 -4
- data/lib/trinsic_api/models/result_collection.rb +38 -6
- data/lib/trinsic_api/models/result_collection_method.rb +1 -1
- data/lib/trinsic_api/models/session.rb +63 -7
- data/lib/trinsic_api/models/session_error_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +1 -1
- data/lib/trinsic_api/models/smart_id_input.rb +222 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +20 -4
- data/lib/trinsic_api/models/spid_input.rb +222 -0
- data/lib/trinsic_api/models/step_refresh_info.rb +41 -5
- data/lib/trinsic_api/models/sub_provider_metadata.rb +320 -0
- data/lib/trinsic_api/models/{known_person_data.rb → trinsic_test_database_lookup_input.rb} +31 -69
- data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +222 -0
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +14 -4
- data/spec/api/attachments_api_spec.rb +2 -2
- data/spec/api/network_api_spec.rb +13 -2
- data/spec/api/sessions_api_spec.rb +3 -3
- data/spec/api/well_known_api_spec.rb +44 -0
- data/spec/models/aadhaar_input_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachment_access_keys_spec.rb +1 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +1 -1
- data/spec/models/brazil_cpf_check_input_spec.rb +1 -1
- data/spec/models/brazil_digital_cnh_input_spec.rb +1 -1
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_response_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_request_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_response_spec.rb +7 -1
- data/spec/models/create_widget_session_request_spec.rb +2 -2
- data/spec/models/create_widget_session_response_spec.rb +7 -1
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +1 -1
- data/spec/models/document_type_spec.rb +1 -1
- data/spec/models/get_attachment_request_spec.rb +1 -1
- data/spec/models/get_attachment_response_spec.rb +1 -1
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/get_session_result_request_spec.rb +1 -1
- data/spec/models/get_session_result_response_spec.rb +1 -1
- data/spec/models/http_validation_problem_details_spec.rb +1 -1
- data/spec/models/identity_data_spec.rb +7 -1
- data/spec/models/{known_identity_data_spec.rb → idin_input_spec.rb} +8 -8
- data/spec/models/indonesia_nik_input_spec.rb +1 -1
- data/spec/models/integration_capability_spec.rb +1 -1
- data/spec/models/integration_launch_method_spec.rb +1 -1
- data/spec/models/integration_step_spec.rb +1 -1
- data/spec/models/kenya_nid_input_spec.rb +1 -1
- data/spec/models/language_spec.rb +30 -0
- data/spec/models/list_provider_contracts_response_spec.rb +36 -0
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/mexico_curp_input_spec.rb +1 -1
- data/spec/models/mobile_id_input_spec.rb +48 -0
- data/spec/models/nigeria_nin_input_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/philippine_match_input_spec.rb +1 -1
- data/spec/models/philippine_qr_input_spec.rb +1 -1
- data/spec/models/problem_details_spec.rb +1 -1
- data/spec/models/provider_attachments_spec.rb +1 -1
- data/spec/models/provider_contract_spec.rb +126 -0
- data/spec/models/provider_health_spec.rb +30 -0
- data/spec/models/provider_info_spec.rb +1 -7
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/provider_input_spec.rb +37 -1
- data/spec/models/recommend_request_spec.rb +2 -26
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/recommendation_info_spec.rb +54 -0
- data/spec/models/refresh_step_content_request_spec.rb +1 -1
- data/spec/models/refresh_step_content_response_spec.rb +1 -1
- data/spec/models/result_collection_method_spec.rb +1 -1
- data/spec/models/result_collection_spec.rb +1 -1
- data/spec/models/session_error_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/sex_spec.rb +1 -1
- data/spec/models/smart_id_input_spec.rb +36 -0
- data/spec/models/south_africa_nid_input_spec.rb +1 -1
- data/spec/models/spid_input_spec.rb +36 -0
- data/spec/models/step_refresh_info_spec.rb +1 -1
- data/spec/models/sub_provider_metadata_spec.rb +54 -0
- data/spec/models/trinsic_test_database_lookup_input_spec.rb +54 -0
- data/spec/models/trinsic_test_sub_providers_input_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +96 -56
- data/docs/KnownAddress.md +0 -32
- data/docs/KnownIdentityData.md +0 -18
- data/docs/KnownPersonData.md +0 -32
- data/spec/models/known_address_spec.rb +0 -78
- data/spec/models/known_person_data_spec.rb +0 -78
data/docs/SpidInput.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# TrinsicApi::SpidInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **sub_provider_id** | **String** | The ID of the specific IDP to invoke within SPID. If not specified, the user will be prompted to select an IDP. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trinsic_api'
|
13
|
+
|
14
|
+
instance = TrinsicApi::SpidInput.new(
|
15
|
+
sub_provider_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/StepRefreshInfo.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **expires_at** | **Time** | The UTC date/time at which the step `content` will expire and should no longer be used.
|
7
|
+
| **expires_at** | **Time** | The UTC date/time at which the step `content` will expire and should no longer be used. Use the `Refresh Step Content` API to obtain a new value for `content`. | |
|
8
8
|
| **refresh_after** | **Time** | The UTC date/time after which Trinsic recommends you refresh the step `content`. | |
|
9
9
|
| **time_to_live_seconds** | **Integer** | The total lifetime of the step `content`. | |
|
10
10
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# TrinsicApi::SubProviderMetadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The ID of the sub-provider. This cannot be used as a standalone Provider ID when creating a Session. It must be passed in via the Provider-specific input. | |
|
8
|
+
| **name** | **String** | The name of the sub-provider | |
|
9
|
+
| **description** | **String** | Flavor text for the sub-provider | |
|
10
|
+
| **logo_url** | **String** | A URL pointing to the logo on Trinsic's CDN. May be a PNG, JPG, or SVG image. | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'trinsic_api'
|
16
|
+
|
17
|
+
instance = TrinsicApi::SubProviderMetadata.new(
|
18
|
+
id: null,
|
19
|
+
name: null,
|
20
|
+
description: null,
|
21
|
+
logo_url: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# TrinsicApi::TrinsicTestDatabaseLookupInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **given_name** | **String** | The given name to use for the output of the test Session. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Can be any non-empty value. | [optional] |
|
8
|
+
| **family_name** | **String** | The family name to use for the output of the test Session. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Can be any non-empty value. | [optional] |
|
9
|
+
| **identity_code** | **String** | A 6-digit code; must be \"123456\" for the Session to succeed. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Any other value will cause the Session to fail. | [optional] |
|
10
|
+
| **selfie_base64** | **String** | An optional selfie image, base64-encoded. Will replace the existing test selfie attachment output if provided. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'trinsic_api'
|
16
|
+
|
17
|
+
instance = TrinsicApi::TrinsicTestDatabaseLookupInput.new(
|
18
|
+
given_name: null,
|
19
|
+
family_name: null,
|
20
|
+
identity_code: null,
|
21
|
+
selfie_base64: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TrinsicApi::TrinsicTestSubProvidersInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **sub_provider_id** | **String** | The ID of the specific IDP to invoke within the test federated provider. Valid options are `sub-provider-a` and `sub-provider-b`. If not specified, the user will be prompted to select one. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trinsic_api'
|
13
|
+
|
14
|
+
instance = TrinsicApi::TrinsicTestSubProvidersInput.new(
|
15
|
+
sub_provider_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# TrinsicApi::WellKnownApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.trinsic.id*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**interac_jwk**](WellKnownApi.md#interac_jwk) | **GET** /api/integrations/v1/interac/.well-known/jwks.json | |
|
8
|
+
|
9
|
+
|
10
|
+
## interac_jwk
|
11
|
+
|
12
|
+
> interac_jwk
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Examples
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'time'
|
20
|
+
require 'trinsic_api'
|
21
|
+
# setup authorization
|
22
|
+
TrinsicApi.configure do |config|
|
23
|
+
# Configure Bearer authorization: Bearer
|
24
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = TrinsicApi::WellKnownApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
api_instance.interac_jwk
|
32
|
+
rescue TrinsicApi::ApiError => e
|
33
|
+
puts "Error when calling WellKnownApi->interac_jwk: #{e}"
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
#### Using the interac_jwk_with_http_info variant
|
38
|
+
|
39
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
40
|
+
|
41
|
+
> <Array(nil, Integer, Hash)> interac_jwk_with_http_info
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
begin
|
45
|
+
|
46
|
+
data, status_code, headers = api_instance.interac_jwk_with_http_info
|
47
|
+
p status_code # => 2xx
|
48
|
+
p headers # => { ... }
|
49
|
+
p data # => nil
|
50
|
+
rescue TrinsicApi::ApiError => e
|
51
|
+
puts "Error when calling WellKnownApi->interac_jwk_with_http_info: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
This endpoint does not need any parameter.
|
58
|
+
|
59
|
+
### Return type
|
60
|
+
|
61
|
+
nil (empty response body)
|
62
|
+
|
63
|
+
### Authorization
|
64
|
+
|
65
|
+
[Bearer](../README.md#Bearer)
|
66
|
+
|
67
|
+
### HTTP request headers
|
68
|
+
|
69
|
+
- **Content-Type**: Not defined
|
70
|
+
- **Accept**: application/json
|
71
|
+
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module TrinsicApi
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get Attachment
|
23
|
-
# Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment.
|
23
|
+
# 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 503 code, and you should try again later.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [GetAttachmentRequest] :get_attachment_request
|
26
26
|
# @return [GetAttachmentResponse]
|
@@ -30,7 +30,7 @@ module TrinsicApi
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Get Attachment
|
33
|
-
# Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment.
|
33
|
+
# 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 503 code, and you should try again later.
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @option opts [GetAttachmentRequest] :get_attachment_request
|
36
36
|
# @return [Array<(GetAttachmentResponse, Integer, Hash)>] GetAttachmentResponse data, response status code and response headers
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,7 +19,64 @@ module TrinsicApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# List
|
22
|
+
# List Provider Contracts
|
23
|
+
# List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [ListProviderContractsResponse]
|
26
|
+
def list_provider_contracts(opts = {})
|
27
|
+
data, _status_code, _headers = list_provider_contracts_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# List Provider Contracts
|
32
|
+
# List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(ListProviderContractsResponse, Integer, Hash)>] ListProviderContractsResponse data, response status code and response headers
|
35
|
+
def list_provider_contracts_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: NetworkApi.list_provider_contracts ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/api/v1/network/providers/contracts'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = opts[:query_params] || {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = opts[:header_params] || {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
49
|
+
|
50
|
+
# form parameters
|
51
|
+
form_params = opts[:form_params] || {}
|
52
|
+
|
53
|
+
# http body (model)
|
54
|
+
post_body = opts[:debug_body]
|
55
|
+
|
56
|
+
# return_type
|
57
|
+
return_type = opts[:debug_return_type] || 'ListProviderContractsResponse'
|
58
|
+
|
59
|
+
# auth_names
|
60
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
61
|
+
|
62
|
+
new_options = opts.merge(
|
63
|
+
:operation => :"NetworkApi.list_provider_contracts",
|
64
|
+
:header_params => header_params,
|
65
|
+
:query_params => query_params,
|
66
|
+
:form_params => form_params,
|
67
|
+
:body => post_body,
|
68
|
+
:auth_names => auth_names,
|
69
|
+
:return_type => return_type
|
70
|
+
)
|
71
|
+
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: NetworkApi#list_provider_contracts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
79
|
+
# List Providers
|
23
80
|
# List all identity providers available for use
|
24
81
|
# @param [Hash] opts the optional parameters
|
25
82
|
# @return [ListProvidersResponse]
|
@@ -28,7 +85,7 @@ module TrinsicApi
|
|
28
85
|
data
|
29
86
|
end
|
30
87
|
|
31
|
-
# List
|
88
|
+
# List Providers
|
32
89
|
# List all identity providers available for use
|
33
90
|
# @param [Hash] opts the optional parameters
|
34
91
|
# @return [Array<(ListProvidersResponse, Integer, Hash)>] ListProvidersResponse data, response status code and response headers
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,7 +83,7 @@ module TrinsicApi
|
|
83
83
|
end
|
84
84
|
|
85
85
|
# Create Advanced Provider Session
|
86
|
-
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI.
|
86
|
+
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic's hosted UI will automatically be invoked to handle any capabilities you do not support.
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [CreateAdvancedProviderSessionRequest] :create_advanced_provider_session_request
|
89
89
|
# @return [CreateAdvancedProviderSessionResponse]
|
@@ -93,7 +93,7 @@ module TrinsicApi
|
|
93
93
|
end
|
94
94
|
|
95
95
|
# Create Advanced Provider Session
|
96
|
-
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI.
|
96
|
+
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic's hosted UI will automatically be invoked to handle any capabilities you do not support.
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @option opts [CreateAdvancedProviderSessionRequest] :create_advanced_provider_session_request
|
99
99
|
# @return [Array<(CreateAdvancedProviderSessionResponse, Integer, Hash)>] CreateAdvancedProviderSessionResponse data, response status code and response headers
|
@@ -491,7 +491,7 @@ module TrinsicApi
|
|
491
491
|
end
|
492
492
|
|
493
493
|
# Redact Session
|
494
|
-
# Redact a Session, removing all identity data from Trinsic's servers.
|
494
|
+
# Redact a Session, removing all identity data from Trinsic's servers. Every application has a redaction period that dictates how long we will hold on to your users' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
495
495
|
# @param session_id [String]
|
496
496
|
# @param [Hash] opts the optional parameters
|
497
497
|
# @return [nil]
|
@@ -501,7 +501,7 @@ module TrinsicApi
|
|
501
501
|
end
|
502
502
|
|
503
503
|
# Redact Session
|
504
|
-
# Redact a Session, removing all identity data from Trinsic's servers.
|
504
|
+
# Redact a Session, removing all identity data from Trinsic's servers. Every application has a redaction period that dictates how long we will hold on to your users' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
505
505
|
# @param session_id [String]
|
506
506
|
# @param [Hash] opts the optional parameters
|
507
507
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -0,0 +1,75 @@
|
|
1
|
+
=begin
|
2
|
+
#Trinsic API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module TrinsicApi
|
16
|
+
class WellKnownApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [nil]
|
24
|
+
def interac_jwk(opts = {})
|
25
|
+
interac_jwk_with_http_info(opts)
|
26
|
+
nil
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
31
|
+
def interac_jwk_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: WellKnownApi.interac_jwk ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/api/integrations/v1/interac/.well-known/jwks.json'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
45
|
+
|
46
|
+
# form parameters
|
47
|
+
form_params = opts[:form_params] || {}
|
48
|
+
|
49
|
+
# http body (model)
|
50
|
+
post_body = opts[:debug_body]
|
51
|
+
|
52
|
+
# return_type
|
53
|
+
return_type = opts[:debug_return_type]
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"WellKnownApi.interac_jwk",
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names,
|
65
|
+
:return_type => return_type
|
66
|
+
)
|
67
|
+
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: WellKnownApi#interac_jwk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -49,7 +49,8 @@ module TrinsicApi
|
|
49
49
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
50
50
|
def call_api(http_method, path, opts = {})
|
51
51
|
request = build_request(http_method, path, opts)
|
52
|
-
tempfile =
|
52
|
+
tempfile = nil
|
53
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
53
54
|
response = request.run
|
54
55
|
|
55
56
|
if @config.debugging
|
@@ -188,19 +189,17 @@ module TrinsicApi
|
|
188
189
|
chunk.force_encoding(encoding)
|
189
190
|
tempfile.write(chunk)
|
190
191
|
end
|
191
|
-
|
192
|
-
|
193
|
-
|
192
|
+
request.on_complete do
|
193
|
+
if !tempfile
|
194
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
195
|
+
end
|
194
196
|
tempfile.close
|
195
197
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
196
198
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
197
199
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
198
200
|
"explicitly with `tempfile.delete`"
|
199
|
-
|
200
|
-
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
201
|
+
yield tempfile if block_given?
|
201
202
|
end
|
202
|
-
|
203
|
-
tempfile
|
204
203
|
end
|
205
204
|
|
206
205
|
# Check if the given MIME is a JSON MIME.
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,9 +29,14 @@ module TrinsicApi
|
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
|
+
# Returns attribute mapping this model knows about
|
33
|
+
def self.acceptable_attribute_map
|
34
|
+
attribute_map
|
35
|
+
end
|
36
|
+
|
32
37
|
# Returns all the JSON keys this model knows about
|
33
38
|
def self.acceptable_attributes
|
34
|
-
|
39
|
+
acceptable_attribute_map.values
|
35
40
|
end
|
36
41
|
|
37
42
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module TrinsicApi
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AadhaarInput`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AadhaarInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,9 +45,14 @@ module TrinsicApi
|
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
|
+
# Returns attribute mapping this model knows about
|
49
|
+
def self.acceptable_attribute_map
|
50
|
+
attribute_map
|
51
|
+
end
|
52
|
+
|
48
53
|
# Returns all the JSON keys this model knows about
|
49
54
|
def self.acceptable_attributes
|
50
|
-
|
55
|
+
acceptable_attribute_map.values
|
51
56
|
end
|
52
57
|
|
53
58
|
# Attribute type mapping.
|
@@ -86,9 +91,10 @@ module TrinsicApi
|
|
86
91
|
end
|
87
92
|
|
88
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
89
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
|
-
if (!
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Address`. Please check the name to make sure it's valid. List of attributes: " +
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Address`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
92
98
|
end
|
93
99
|
h[k.to_sym] = v
|
94
100
|
}
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,9 +36,14 @@ module TrinsicApi
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -70,9 +75,10 @@ module TrinsicApi
|
|
70
75
|
end
|
71
76
|
|
72
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
73
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
-
if (!
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AttachmentAccessKeys`. Please check the name to make sure it's valid. List of attributes: " +
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AttachmentAccessKeys`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
76
82
|
end
|
77
83
|
h[k.to_sym] = v
|
78
84
|
}
|
@@ -120,6 +126,16 @@ module TrinsicApi
|
|
120
126
|
true
|
121
127
|
end
|
122
128
|
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] provider Value to be assigned
|
131
|
+
def provider=(provider)
|
132
|
+
if provider.nil?
|
133
|
+
fail ArgumentError, 'provider cannot be nil'
|
134
|
+
end
|
135
|
+
|
136
|
+
@provider = provider
|
137
|
+
end
|
138
|
+
|
123
139
|
# Checks equality by comparing each attribute.
|
124
140
|
# @param [Object] Object to be compared
|
125
141
|
def ==(o)
|
@@ -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.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,9 +37,14 @@ module TrinsicApi
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
+
# Returns attribute mapping this model knows about
|
41
|
+
def self.acceptable_attribute_map
|
42
|
+
attribute_map
|
43
|
+
end
|
44
|
+
|
40
45
|
# Returns all the JSON keys this model knows about
|
41
46
|
def self.acceptable_attributes
|
42
|
-
|
47
|
+
acceptable_attribute_map.values
|
43
48
|
end
|
44
49
|
|
45
50
|
# Attribute type mapping.
|
@@ -70,9 +75,10 @@ module TrinsicApi
|
|
70
75
|
end
|
71
76
|
|
72
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
73
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
-
if (!
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BangladeshNationalIdInput`. Please check the name to make sure it's valid. List of attributes: " +
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BangladeshNationalIdInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
76
82
|
end
|
77
83
|
h[k.to_sym] = v
|
78
84
|
}
|