trinsic_api 0.2.3

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 (103) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +137 -0
  4. data/Rakefile +10 -0
  5. data/docs/Address.md +32 -0
  6. data/docs/Attachments.md +24 -0
  7. data/docs/AttachmentsApi.md +76 -0
  8. data/docs/CancelSessionResponse.md +18 -0
  9. data/docs/CreateSessionRequest.md +22 -0
  10. data/docs/CreateSessionResponse.md +20 -0
  11. data/docs/DisclosedFields.md +40 -0
  12. data/docs/DisclosedFieldsRequest.md +40 -0
  13. data/docs/DocumentData.md +28 -0
  14. data/docs/ExchangeAttachmentAccessKeyRequest.md +18 -0
  15. data/docs/ExchangeResultsKeyRequest.md +18 -0
  16. data/docs/ExchangeResultsKeyResponse.md +20 -0
  17. data/docs/FailureMessage.md +18 -0
  18. data/docs/GetSessionResponse.md +18 -0
  19. data/docs/IdentityData.md +24 -0
  20. data/docs/IdentityLookupResponse.md +18 -0
  21. data/docs/ListProvidersResponse.md +18 -0
  22. data/docs/ListSessionsResponse.md +22 -0
  23. data/docs/NetworkApi.md +140 -0
  24. data/docs/OrderDirection.md +15 -0
  25. data/docs/PersonData.md +34 -0
  26. data/docs/ProviderInfo.md +22 -0
  27. data/docs/Session.md +30 -0
  28. data/docs/SessionFailCode.md +15 -0
  29. data/docs/SessionOrdering.md +15 -0
  30. data/docs/SessionState.md +15 -0
  31. data/docs/SessionsApi.md +428 -0
  32. data/docs/ValidationResult.md +20 -0
  33. data/docs/Verification.md +20 -0
  34. data/docs/VerificationFailCode.md +15 -0
  35. data/git_push.sh +57 -0
  36. data/lib/trinsic_api/api/attachments_api.rb +84 -0
  37. data/lib/trinsic_api/api/network_api.rb +138 -0
  38. data/lib/trinsic_api/api/sessions_api.rb +418 -0
  39. data/lib/trinsic_api/api_client.rb +394 -0
  40. data/lib/trinsic_api/api_error.rb +58 -0
  41. data/lib/trinsic_api/configuration.rb +308 -0
  42. data/lib/trinsic_api/models/address.rb +279 -0
  43. data/lib/trinsic_api/models/attachments.rb +246 -0
  44. data/lib/trinsic_api/models/cancel_session_response.rb +221 -0
  45. data/lib/trinsic_api/models/create_session_request.rb +237 -0
  46. data/lib/trinsic_api/models/create_session_response.rb +232 -0
  47. data/lib/trinsic_api/models/disclosed_fields.rb +397 -0
  48. data/lib/trinsic_api/models/disclosed_fields_request.rb +313 -0
  49. data/lib/trinsic_api/models/document_data.rb +259 -0
  50. data/lib/trinsic_api/models/exchange_attachment_access_key_request.rb +241 -0
  51. data/lib/trinsic_api/models/exchange_results_key_request.rb +222 -0
  52. data/lib/trinsic_api/models/exchange_results_key_response.rb +230 -0
  53. data/lib/trinsic_api/models/failure_message.rb +221 -0
  54. data/lib/trinsic_api/models/get_session_response.rb +221 -0
  55. data/lib/trinsic_api/models/identity_data.rb +245 -0
  56. data/lib/trinsic_api/models/identity_lookup_response.rb +222 -0
  57. data/lib/trinsic_api/models/list_providers_response.rb +224 -0
  58. data/lib/trinsic_api/models/list_sessions_response.rb +257 -0
  59. data/lib/trinsic_api/models/order_direction.rb +40 -0
  60. data/lib/trinsic_api/models/person_data.rb +292 -0
  61. data/lib/trinsic_api/models/provider_info.rb +257 -0
  62. data/lib/trinsic_api/models/session.rb +338 -0
  63. data/lib/trinsic_api/models/session_fail_code.rb +45 -0
  64. data/lib/trinsic_api/models/session_ordering.rb +41 -0
  65. data/lib/trinsic_api/models/session_state.rb +44 -0
  66. data/lib/trinsic_api/models/validation_result.rb +232 -0
  67. data/lib/trinsic_api/models/verification.rb +248 -0
  68. data/lib/trinsic_api/models/verification_fail_code.rb +43 -0
  69. data/lib/trinsic_api/version.rb +15 -0
  70. data/lib/trinsic_api.rb +69 -0
  71. data/spec/api/attachments_api_spec.rb +46 -0
  72. data/spec/api/network_api_spec.rb +56 -0
  73. data/spec/api/sessions_api_spec.rb +105 -0
  74. data/spec/models/address_spec.rb +78 -0
  75. data/spec/models/attachments_spec.rb +54 -0
  76. data/spec/models/cancel_session_response_spec.rb +36 -0
  77. data/spec/models/create_session_request_spec.rb +48 -0
  78. data/spec/models/create_session_response_spec.rb +42 -0
  79. data/spec/models/disclosed_fields_request_spec.rb +102 -0
  80. data/spec/models/disclosed_fields_spec.rb +102 -0
  81. data/spec/models/document_data_spec.rb +66 -0
  82. data/spec/models/exchange_attachment_access_key_request_spec.rb +36 -0
  83. data/spec/models/exchange_results_key_request_spec.rb +36 -0
  84. data/spec/models/exchange_results_key_response_spec.rb +42 -0
  85. data/spec/models/failure_message_spec.rb +36 -0
  86. data/spec/models/get_session_response_spec.rb +36 -0
  87. data/spec/models/identity_data_spec.rb +54 -0
  88. data/spec/models/identity_lookup_response_spec.rb +36 -0
  89. data/spec/models/list_providers_response_spec.rb +36 -0
  90. data/spec/models/list_sessions_response_spec.rb +48 -0
  91. data/spec/models/order_direction_spec.rb +30 -0
  92. data/spec/models/person_data_spec.rb +84 -0
  93. data/spec/models/provider_info_spec.rb +48 -0
  94. data/spec/models/session_fail_code_spec.rb +30 -0
  95. data/spec/models/session_ordering_spec.rb +30 -0
  96. data/spec/models/session_spec.rb +72 -0
  97. data/spec/models/session_state_spec.rb +30 -0
  98. data/spec/models/validation_result_spec.rb +42 -0
  99. data/spec/models/verification_fail_code_spec.rb +30 -0
  100. data/spec/models/verification_spec.rb +42 -0
  101. data/spec/spec_helper.rb +111 -0
  102. data/trinsic_api.gemspec +39 -0
  103. metadata +215 -0
@@ -0,0 +1,140 @@
1
+ # TrinsicApi::NetworkApi
2
+
3
+ All URIs are relative to *https://api.trinsic.id*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**identity_lookup**](NetworkApi.md#identity_lookup) | **GET** /api/v1/network/identities/{phoneNumber} | Query the availability of an identity in the Trinsic Network by phone number |
8
+ | [**list_providers**](NetworkApi.md#list_providers) | **GET** /api/v1/network/providers | List all identity providers available for use |
9
+
10
+
11
+ ## identity_lookup
12
+
13
+ > <IdentityLookupResponse> identity_lookup(phone_number)
14
+
15
+ Query the availability of an identity in the Trinsic Network by phone number
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'trinsic_api'
22
+ # setup authorization
23
+ TrinsicApi.configure do |config|
24
+ # Configure Bearer authorization: Bearer
25
+ config.access_token = 'YOUR_BEARER_TOKEN'
26
+ end
27
+
28
+ api_instance = TrinsicApi::NetworkApi.new
29
+ phone_number = 'phone_number_example' # String |
30
+
31
+ begin
32
+ # Query the availability of an identity in the Trinsic Network by phone number
33
+ result = api_instance.identity_lookup(phone_number)
34
+ p result
35
+ rescue TrinsicApi::ApiError => e
36
+ puts "Error when calling NetworkApi->identity_lookup: #{e}"
37
+ end
38
+ ```
39
+
40
+ #### Using the identity_lookup_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
43
+
44
+ > <Array(<IdentityLookupResponse>, Integer, Hash)> identity_lookup_with_http_info(phone_number)
45
+
46
+ ```ruby
47
+ begin
48
+ # Query the availability of an identity in the Trinsic Network by phone number
49
+ data, status_code, headers = api_instance.identity_lookup_with_http_info(phone_number)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <IdentityLookupResponse>
53
+ rescue TrinsicApi::ApiError => e
54
+ puts "Error when calling NetworkApi->identity_lookup_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **phone_number** | **String** | | |
63
+
64
+ ### Return type
65
+
66
+ [**IdentityLookupResponse**](IdentityLookupResponse.md)
67
+
68
+ ### Authorization
69
+
70
+ [Bearer](../README.md#Bearer)
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: text/plain, application/json, text/json
76
+
77
+
78
+ ## list_providers
79
+
80
+ > <ListProvidersResponse> list_providers
81
+
82
+ List all identity providers available for use
83
+
84
+ ### Examples
85
+
86
+ ```ruby
87
+ require 'time'
88
+ require 'trinsic_api'
89
+ # setup authorization
90
+ TrinsicApi.configure do |config|
91
+ # Configure Bearer authorization: Bearer
92
+ config.access_token = 'YOUR_BEARER_TOKEN'
93
+ end
94
+
95
+ api_instance = TrinsicApi::NetworkApi.new
96
+
97
+ begin
98
+ # List all identity providers available for use
99
+ result = api_instance.list_providers
100
+ p result
101
+ rescue TrinsicApi::ApiError => e
102
+ puts "Error when calling NetworkApi->list_providers: #{e}"
103
+ end
104
+ ```
105
+
106
+ #### Using the list_providers_with_http_info variant
107
+
108
+ This returns an Array which contains the response data, status code and headers.
109
+
110
+ > <Array(<ListProvidersResponse>, Integer, Hash)> list_providers_with_http_info
111
+
112
+ ```ruby
113
+ begin
114
+ # List all identity providers available for use
115
+ data, status_code, headers = api_instance.list_providers_with_http_info
116
+ p status_code # => 2xx
117
+ p headers # => { ... }
118
+ p data # => <ListProvidersResponse>
119
+ rescue TrinsicApi::ApiError => e
120
+ puts "Error when calling NetworkApi->list_providers_with_http_info: #{e}"
121
+ end
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ This endpoint does not need any parameter.
127
+
128
+ ### Return type
129
+
130
+ [**ListProvidersResponse**](ListProvidersResponse.md)
131
+
132
+ ### Authorization
133
+
134
+ [Bearer](../README.md#Bearer)
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: text/plain, application/json, text/json
140
+
@@ -0,0 +1,15 @@
1
+ # TrinsicApi::OrderDirection
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'trinsic_api'
12
+
13
+ instance = TrinsicApi::OrderDirection.new()
14
+ ```
15
+
@@ -0,0 +1,34 @@
1
+ # TrinsicApi::PersonData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **given_name** | **String** | Given (first) name of the individual | [optional] |
8
+ | **family_name** | **String** | Family (last) name of the individual | [optional] |
9
+ | **middle_name** | **String** | Middle name of the individual | [optional] |
10
+ | **full_name** | **String** | The individual&#39;s full name as a single string. Useful for names which do not fit into a \&quot;first middle last\&quot; structure. | [optional] |
11
+ | **nationality** | **String** | | [optional] |
12
+ | **gender** | **String** | | [optional] |
13
+ | **phone_number** | **String** | | [optional] |
14
+ | **address** | [**Address**](Address.md) | Address information for an individual | [optional] |
15
+ | **date_of_birth** | **String** | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'trinsic_api'
21
+
22
+ instance = TrinsicApi::PersonData.new(
23
+ given_name: John,
24
+ family_name: Doe,
25
+ middle_name: Jacob,
26
+ full_name: John Jacob de Doe,
27
+ nationality: null,
28
+ gender: null,
29
+ phone_number: null,
30
+ address: null,
31
+ date_of_birth: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,22 @@
1
+ # TrinsicApi::ProviderInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The ID of the provider | |
8
+ | **name** | **String** | The friendly, human-readable name of the provider | |
9
+ | **logo_url** | **String** | A URL pointing to the provider&#39;s logo | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trinsic_api'
15
+
16
+ instance = TrinsicApi::ProviderInfo.new(
17
+ id: yoti | clear | ...,
18
+ name: Yoti | CLEAR | ...,
19
+ logo_url: null
20
+ )
21
+ ```
22
+
data/docs/Session.md ADDED
@@ -0,0 +1,30 @@
1
+ # TrinsicApi::Session
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **state** | [**SessionState**](SessionState.md) | The state of the session | |
9
+ | **fail_code** | [**SessionFailCode**](SessionFailCode.md) | If the session is in state &#x60;IdvFailed&#x60;, this field contains the reason for failure. | [optional] |
10
+ | **verification** | [**Verification**](Verification.md) | The underlying verification for this Session | |
11
+ | **disclosed_fields** | [**DisclosedFields**](DisclosedFields.md) | The fields that were requested to be disclosed when the Session was created | |
12
+ | **created** | **Integer** | The unix timestamp, in seconds, when this session was created | |
13
+ | **updated** | **Integer** | The unix timestamp, in seconds, when this session&#39;s state last changed | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'trinsic_api'
19
+
20
+ instance = TrinsicApi::Session.new(
21
+ id: 678c1ff6-2178-49e7-81d2-548afb6f85ec,
22
+ state: null,
23
+ fail_code: null,
24
+ verification: null,
25
+ disclosed_fields: null,
26
+ created: 1722526411,
27
+ updated: 1722526722
28
+ )
29
+ ```
30
+
@@ -0,0 +1,15 @@
1
+ # TrinsicApi::SessionFailCode
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'trinsic_api'
12
+
13
+ instance = TrinsicApi::SessionFailCode.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # TrinsicApi::SessionOrdering
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'trinsic_api'
12
+
13
+ instance = TrinsicApi::SessionOrdering.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # TrinsicApi::SessionState
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'trinsic_api'
12
+
13
+ instance = TrinsicApi::SessionState.new()
14
+ ```
15
+