turnkey_client 0.0.14 → 0.0.15
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/lib/turnkey_client/api/app_proof_api.rb +77 -0
- data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
- data/lib/turnkey_client/api/default_api.rb +77 -0
- data/lib/turnkey_client/api/user_auth_api.rb +290 -0
- data/lib/turnkey_client/models/activity.rb +13 -1
- data/lib/turnkey_client/models/activity_type.rb +7 -0
- data/lib/turnkey_client/models/app_proof.rb +255 -0
- data/lib/turnkey_client/models/boot_proof.rb +315 -0
- data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
- data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +16 -5
- data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_proofs_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_proofs_response.rb +212 -0
- data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +12 -1
- data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +16 -5
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +14 -4
- data/lib/turnkey_client/models/intent.rb +67 -4
- data/lib/turnkey_client/models/list_oauth2_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +288 -0
- data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
- data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
- data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
- data/lib/turnkey_client/models/otp_login_intent.rb +16 -5
- data/lib/turnkey_client/models/payload_encoding.rb +1 -0
- data/lib/turnkey_client/models/result.rb +67 -4
- data/lib/turnkey_client/models/signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +346 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
- data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/verify_otp_intent.rb +16 -5
- data/lib/turnkey_client/models/wallet_account.rb +14 -5
- data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +38 -2
- data/turnkey_client-0.0.14.gem +0 -0
- metadata +41 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f01f4f78891458b9b95476a312d1195983159b140cd7e7f2294dfbd131c8ae8
|
4
|
+
data.tar.gz: 7cfdd50b651f12004ceb49d2b470385523346d09bf94e5279d7172a3eea6b238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c440982ac92485071fc6836c80d74b7b26611bb2689b798b29888b7cda231b96d30c2c7faa50d2fffe89ba5709145386bafaa3ff6f6669b2708ffa974558fb57
|
7
|
+
data.tar.gz: b39ab30fd6e0559d5d9a94972460dedadc5a35a9f110ea174d2b9c2d8b5513713a4f3fb9cc86ff51e6871c5de457bcf74ab339e826a540e0af5db6b9f1c733c1
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
module TurnkeyClient
|
12
|
+
class AppProofApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# List app proofs for an activity
|
19
|
+
# List the app proofs for the given activity.
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [GetAppProofsResponse]
|
23
|
+
def get_app_proofs(body, opts = {})
|
24
|
+
data, _status_code, _headers = get_app_proofs_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# List app proofs for an activity
|
29
|
+
# List the app proofs for the given activity.
|
30
|
+
# @param body
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(GetAppProofsResponse, Integer, Hash)>] GetAppProofsResponse data, response status code and response headers
|
33
|
+
def get_app_proofs_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: AppProofApi.get_app_proofs ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'body' is set
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppProofApi.get_app_proofs"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/query/list_app_proofs'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
59
|
+
|
60
|
+
return_type = opts[:return_type] || 'GetAppProofsResponse'
|
61
|
+
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
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
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: AppProofApi#get_app_proofs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
module TurnkeyClient
|
12
|
+
class BootProofApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# Get a specific boot proof
|
19
|
+
# Get the boot proof for a given ephemeral key.
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [BootProofResponse]
|
23
|
+
def get_boot_proof(body, opts = {})
|
24
|
+
data, _status_code, _headers = get_boot_proof_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Get a specific boot proof
|
29
|
+
# Get the boot proof for a given ephemeral key.
|
30
|
+
# @param body
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
|
33
|
+
def get_boot_proof_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: BootProofApi.get_boot_proof ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'body' is set
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_boot_proof"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/query/get_boot_proof'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
59
|
+
|
60
|
+
return_type = opts[:return_type] || 'BootProofResponse'
|
61
|
+
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
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
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: BootProofApi#get_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
# Get the latest boot proof for an app
|
77
|
+
# Get the latest boot proof for a given enclave app name.
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [BootProofResponse]
|
81
|
+
def get_latest_boot_proof(body, opts = {})
|
82
|
+
data, _status_code, _headers = get_latest_boot_proof_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Get the latest boot proof for an app
|
87
|
+
# Get the latest boot proof for a given enclave app name.
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
|
91
|
+
def get_latest_boot_proof_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: BootProofApi.get_latest_boot_proof ...'
|
94
|
+
end
|
95
|
+
# verify the required parameter 'body' is set
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_latest_boot_proof"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/query/get_latest_boot_proof'
|
101
|
+
|
102
|
+
# query parameters
|
103
|
+
query_params = opts[:query_params] || {}
|
104
|
+
|
105
|
+
# header parameters
|
106
|
+
header_params = opts[:header_params] || {}
|
107
|
+
# HTTP header 'Accept' (if needed)
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
|
+
# HTTP header 'Content-Type'
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
111
|
+
|
112
|
+
# form parameters
|
113
|
+
form_params = opts[:form_params] || {}
|
114
|
+
|
115
|
+
# http body (model)
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
117
|
+
|
118
|
+
return_type = opts[:return_type] || 'BootProofResponse'
|
119
|
+
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
122
|
+
:header_params => header_params,
|
123
|
+
:query_params => query_params,
|
124
|
+
:form_params => form_params,
|
125
|
+
:body => post_body,
|
126
|
+
:auth_names => auth_names,
|
127
|
+
:return_type => return_type)
|
128
|
+
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug "API called: BootProofApi#get_latest_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
module TurnkeyClient
|
12
|
+
class DefaultApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# Get OAuth 2.0 credential
|
19
|
+
# Get details about an OAuth 2.0 credential.
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [GetOauth2CredentialResponse]
|
23
|
+
def get_oauth2_credential(body, opts = {})
|
24
|
+
data, _status_code, _headers = get_oauth2_credential_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Get OAuth 2.0 credential
|
29
|
+
# Get details about an OAuth 2.0 credential.
|
30
|
+
# @param body
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(GetOauth2CredentialResponse, Integer, Hash)>] GetOauth2CredentialResponse data, response status code and response headers
|
33
|
+
def get_oauth2_credential_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_oauth2_credential ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'body' is set
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.get_oauth2_credential"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/query/get_oauth2_credential'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
59
|
+
|
60
|
+
return_type = opts[:return_type] || 'GetOauth2CredentialResponse'
|
61
|
+
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
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
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -15,6 +15,64 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
+
# Create an OAuth 2.0 Credential
|
19
|
+
# Enable authentication for end users with an OAuth 2.0 provider
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [ActivityResponse]
|
23
|
+
def create_oauth2_credential(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_oauth2_credential_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Create an OAuth 2.0 Credential
|
29
|
+
# Enable authentication for end users with an OAuth 2.0 provider
|
30
|
+
# @param body
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
33
|
+
def create_oauth2_credential_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.create_oauth2_credential ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'body' is set
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.create_oauth2_credential"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/submit/create_oauth2_credential'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
59
|
+
|
60
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
61
|
+
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
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
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: UserAuthApi#create_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
18
76
|
# Create Oauth providers
|
19
77
|
# Create Oauth providers for a specified user.
|
20
78
|
# @param body
|
@@ -73,6 +131,64 @@ module TurnkeyClient
|
|
73
131
|
end
|
74
132
|
return data, status_code, headers
|
75
133
|
end
|
134
|
+
# Delete an OAuth 2.0 Credential
|
135
|
+
# Disable authentication for end users with an OAuth 2.0 provider
|
136
|
+
# @param body
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @return [ActivityResponse]
|
139
|
+
def delete_oauth2_credential(body, opts = {})
|
140
|
+
data, _status_code, _headers = delete_oauth2_credential_with_http_info(body, opts)
|
141
|
+
data
|
142
|
+
end
|
143
|
+
|
144
|
+
# Delete an OAuth 2.0 Credential
|
145
|
+
# Disable authentication for end users with an OAuth 2.0 provider
|
146
|
+
# @param body
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
149
|
+
def delete_oauth2_credential_with_http_info(body, opts = {})
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.delete_oauth2_credential ...'
|
152
|
+
end
|
153
|
+
# verify the required parameter 'body' is set
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.delete_oauth2_credential"
|
156
|
+
end
|
157
|
+
# resource path
|
158
|
+
local_var_path = '/public/v1/submit/delete_oauth2_credential'
|
159
|
+
|
160
|
+
# query parameters
|
161
|
+
query_params = opts[:query_params] || {}
|
162
|
+
|
163
|
+
# header parameters
|
164
|
+
header_params = opts[:header_params] || {}
|
165
|
+
# HTTP header 'Accept' (if needed)
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
167
|
+
# HTTP header 'Content-Type'
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
169
|
+
|
170
|
+
# form parameters
|
171
|
+
form_params = opts[:form_params] || {}
|
172
|
+
|
173
|
+
# http body (model)
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
175
|
+
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
177
|
+
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
180
|
+
:header_params => header_params,
|
181
|
+
:query_params => query_params,
|
182
|
+
:form_params => form_params,
|
183
|
+
:body => post_body,
|
184
|
+
:auth_names => auth_names,
|
185
|
+
:return_type => return_type)
|
186
|
+
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug "API called: UserAuthApi#delete_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
76
192
|
# Delete Oauth providers
|
77
193
|
# Remove Oauth providers for a specified user.
|
78
194
|
# @param body
|
@@ -305,6 +421,64 @@ module TurnkeyClient
|
|
305
421
|
end
|
306
422
|
return data, status_code, headers
|
307
423
|
end
|
424
|
+
# List OAuth 2.0 Credentials
|
425
|
+
# List all OAuth 2.0 credentials within an organization.
|
426
|
+
# @param body
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [ListOauth2CredentialsResponse]
|
429
|
+
def list_oauth2_credentials(body, opts = {})
|
430
|
+
data, _status_code, _headers = list_oauth2_credentials_with_http_info(body, opts)
|
431
|
+
data
|
432
|
+
end
|
433
|
+
|
434
|
+
# List OAuth 2.0 Credentials
|
435
|
+
# List all OAuth 2.0 credentials within an organization.
|
436
|
+
# @param body
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @return [Array<(ListOauth2CredentialsResponse, Integer, Hash)>] ListOauth2CredentialsResponse data, response status code and response headers
|
439
|
+
def list_oauth2_credentials_with_http_info(body, opts = {})
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.list_oauth2_credentials ...'
|
442
|
+
end
|
443
|
+
# verify the required parameter 'body' is set
|
444
|
+
if @api_client.config.client_side_validation && body.nil?
|
445
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.list_oauth2_credentials"
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = '/public/v1/query/list_oauth2_credentials'
|
449
|
+
|
450
|
+
# query parameters
|
451
|
+
query_params = opts[:query_params] || {}
|
452
|
+
|
453
|
+
# header parameters
|
454
|
+
header_params = opts[:header_params] || {}
|
455
|
+
# HTTP header 'Accept' (if needed)
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
457
|
+
# HTTP header 'Content-Type'
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
459
|
+
|
460
|
+
# form parameters
|
461
|
+
form_params = opts[:form_params] || {}
|
462
|
+
|
463
|
+
# http body (model)
|
464
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
465
|
+
|
466
|
+
return_type = opts[:return_type] || 'ListOauth2CredentialsResponse'
|
467
|
+
|
468
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
469
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
470
|
+
:header_params => header_params,
|
471
|
+
:query_params => query_params,
|
472
|
+
:form_params => form_params,
|
473
|
+
:body => post_body,
|
474
|
+
:auth_names => auth_names,
|
475
|
+
:return_type => return_type)
|
476
|
+
|
477
|
+
if @api_client.config.debugging
|
478
|
+
@api_client.config.logger.debug "API called: UserAuthApi#list_oauth2_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
479
|
+
end
|
480
|
+
return data, status_code, headers
|
481
|
+
end
|
308
482
|
# Oauth
|
309
483
|
# Authenticate a user with an OIDC token (Oauth).
|
310
484
|
# @param body
|
@@ -363,6 +537,64 @@ module TurnkeyClient
|
|
363
537
|
end
|
364
538
|
return data, status_code, headers
|
365
539
|
end
|
540
|
+
# OAuth 2.0 authentication
|
541
|
+
# Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities
|
542
|
+
# @param body
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @return [ActivityResponse]
|
545
|
+
def oauth2_authenticate(body, opts = {})
|
546
|
+
data, _status_code, _headers = oauth2_authenticate_with_http_info(body, opts)
|
547
|
+
data
|
548
|
+
end
|
549
|
+
|
550
|
+
# OAuth 2.0 authentication
|
551
|
+
# Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities
|
552
|
+
# @param body
|
553
|
+
# @param [Hash] opts the optional parameters
|
554
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
555
|
+
def oauth2_authenticate_with_http_info(body, opts = {})
|
556
|
+
if @api_client.config.debugging
|
557
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.oauth2_authenticate ...'
|
558
|
+
end
|
559
|
+
# verify the required parameter 'body' is set
|
560
|
+
if @api_client.config.client_side_validation && body.nil?
|
561
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.oauth2_authenticate"
|
562
|
+
end
|
563
|
+
# resource path
|
564
|
+
local_var_path = '/public/v1/submit/oauth2_authenticate'
|
565
|
+
|
566
|
+
# query parameters
|
567
|
+
query_params = opts[:query_params] || {}
|
568
|
+
|
569
|
+
# header parameters
|
570
|
+
header_params = opts[:header_params] || {}
|
571
|
+
# HTTP header 'Accept' (if needed)
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
573
|
+
# HTTP header 'Content-Type'
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
575
|
+
|
576
|
+
# form parameters
|
577
|
+
form_params = opts[:form_params] || {}
|
578
|
+
|
579
|
+
# http body (model)
|
580
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
581
|
+
|
582
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
583
|
+
|
584
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
585
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
586
|
+
:header_params => header_params,
|
587
|
+
:query_params => query_params,
|
588
|
+
:form_params => form_params,
|
589
|
+
:body => post_body,
|
590
|
+
:auth_names => auth_names,
|
591
|
+
:return_type => return_type)
|
592
|
+
|
593
|
+
if @api_client.config.debugging
|
594
|
+
@api_client.config.logger.debug "API called: UserAuthApi#oauth2_authenticate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
595
|
+
end
|
596
|
+
return data, status_code, headers
|
597
|
+
end
|
366
598
|
# OTP auth
|
367
599
|
# Authenticate a user with an OTP code sent via email or SMS.
|
368
600
|
# @param body
|
@@ -421,5 +653,63 @@ module TurnkeyClient
|
|
421
653
|
end
|
422
654
|
return data, status_code, headers
|
423
655
|
end
|
656
|
+
# Update an OAuth 2.0 Credential
|
657
|
+
# Update an OAuth 2.0 provider credential
|
658
|
+
# @param body
|
659
|
+
# @param [Hash] opts the optional parameters
|
660
|
+
# @return [ActivityResponse]
|
661
|
+
def update_oauth2_credential(body, opts = {})
|
662
|
+
data, _status_code, _headers = update_oauth2_credential_with_http_info(body, opts)
|
663
|
+
data
|
664
|
+
end
|
665
|
+
|
666
|
+
# Update an OAuth 2.0 Credential
|
667
|
+
# Update an OAuth 2.0 provider credential
|
668
|
+
# @param body
|
669
|
+
# @param [Hash] opts the optional parameters
|
670
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
671
|
+
def update_oauth2_credential_with_http_info(body, opts = {})
|
672
|
+
if @api_client.config.debugging
|
673
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.update_oauth2_credential ...'
|
674
|
+
end
|
675
|
+
# verify the required parameter 'body' is set
|
676
|
+
if @api_client.config.client_side_validation && body.nil?
|
677
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.update_oauth2_credential"
|
678
|
+
end
|
679
|
+
# resource path
|
680
|
+
local_var_path = '/public/v1/submit/update_oauth2_credential'
|
681
|
+
|
682
|
+
# query parameters
|
683
|
+
query_params = opts[:query_params] || {}
|
684
|
+
|
685
|
+
# header parameters
|
686
|
+
header_params = opts[:header_params] || {}
|
687
|
+
# HTTP header 'Accept' (if needed)
|
688
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
689
|
+
# HTTP header 'Content-Type'
|
690
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
691
|
+
|
692
|
+
# form parameters
|
693
|
+
form_params = opts[:form_params] || {}
|
694
|
+
|
695
|
+
# http body (model)
|
696
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
697
|
+
|
698
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
699
|
+
|
700
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
701
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
702
|
+
:header_params => header_params,
|
703
|
+
:query_params => query_params,
|
704
|
+
:form_params => form_params,
|
705
|
+
:body => post_body,
|
706
|
+
:auth_names => auth_names,
|
707
|
+
:return_type => return_type)
|
708
|
+
|
709
|
+
if @api_client.config.debugging
|
710
|
+
@api_client.config.logger.debug "API called: UserAuthApi#update_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
711
|
+
end
|
712
|
+
return data, status_code, headers
|
713
|
+
end
|
424
714
|
end
|
425
715
|
end
|
@@ -29,6 +29,9 @@ module TurnkeyClient
|
|
29
29
|
# A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata.
|
30
30
|
attr_accessor :votes
|
31
31
|
|
32
|
+
# A list of app proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations.
|
33
|
+
attr_accessor :app_proofs
|
34
|
+
|
32
35
|
# An artifact verifying a User's action.
|
33
36
|
attr_accessor :fingerprint
|
34
37
|
|
@@ -52,6 +55,7 @@ module TurnkeyClient
|
|
52
55
|
:'intent' => :'intent',
|
53
56
|
:'result' => :'result',
|
54
57
|
:'votes' => :'votes',
|
58
|
+
:'app_proofs' => :'appProofs',
|
55
59
|
:'fingerprint' => :'fingerprint',
|
56
60
|
:'can_approve' => :'canApprove',
|
57
61
|
:'can_reject' => :'canReject',
|
@@ -71,6 +75,7 @@ module TurnkeyClient
|
|
71
75
|
:'intent' => :'Object',
|
72
76
|
:'result' => :'Object',
|
73
77
|
:'votes' => :'Object',
|
78
|
+
:'app_proofs' => :'Object',
|
74
79
|
:'fingerprint' => :'Object',
|
75
80
|
:'can_approve' => :'Object',
|
76
81
|
:'can_reject' => :'Object',
|
@@ -131,6 +136,12 @@ module TurnkeyClient
|
|
131
136
|
end
|
132
137
|
end
|
133
138
|
|
139
|
+
if attributes.key?(:'app_proofs')
|
140
|
+
if (value = attributes[:'app_proofs']).is_a?(Array)
|
141
|
+
self.app_proofs = value
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
134
145
|
if attributes.key?(:'fingerprint')
|
135
146
|
self.fingerprint = attributes[:'fingerprint']
|
136
147
|
end
|
@@ -241,6 +252,7 @@ module TurnkeyClient
|
|
241
252
|
intent == o.intent &&
|
242
253
|
result == o.result &&
|
243
254
|
votes == o.votes &&
|
255
|
+
app_proofs == o.app_proofs &&
|
244
256
|
fingerprint == o.fingerprint &&
|
245
257
|
can_approve == o.can_approve &&
|
246
258
|
can_reject == o.can_reject &&
|
@@ -258,7 +270,7 @@ module TurnkeyClient
|
|
258
270
|
# Calculates hash code according to all attributes.
|
259
271
|
# @return [Integer] Hash code
|
260
272
|
def hash
|
261
|
-
[id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash
|
273
|
+
[id, organization_id, status, type, intent, result, votes, app_proofs, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash
|
262
274
|
end
|
263
275
|
|
264
276
|
# Builds the object from hash
|