turnkey_client 0.0.4 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/organizations_api.rb +58 -0
- data/lib/turnkey_client/api/policies_api.rb +58 -0
- data/lib/turnkey_client/api/private_keys_api.rb +58 -0
- data/lib/turnkey_client/api/sessions_api.rb +116 -0
- data/lib/turnkey_client/api/signing_api.rb +58 -0
- data/lib/turnkey_client/api/users_api.rb +232 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity.rb +13 -4
- data/lib/turnkey_client/models/activity_type.rb +13 -0
- data/lib/turnkey_client/models/any.rb +200 -0
- data/lib/turnkey_client/models/api_key_curve.rb +28 -0
- data/lib/turnkey_client/models/api_key_params_v2.rb +250 -0
- data/lib/turnkey_client/models/config.rb +216 -0
- data/lib/turnkey_client/models/create_api_keys_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_api_keys_request.rb +2 -2
- data/lib/turnkey_client/models/create_oauth_providers_intent.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +288 -0
- data/lib/turnkey_client/models/create_oauth_providers_result.rb +213 -0
- data/lib/turnkey_client/models/create_policies_intent.rb +213 -0
- data/lib/turnkey_client/models/create_policies_request.rb +288 -0
- data/lib/turnkey_client/models/create_policies_result.rb +213 -0
- data/lib/turnkey_client/models/create_read_only_session_intent.rb +196 -0
- data/lib/turnkey_client/models/create_read_only_session_request.rb +288 -0
- data/lib/turnkey_client/models/create_read_only_session_result.rb +286 -0
- data/lib/turnkey_client/models/create_read_write_session_intent.rb +246 -0
- data/lib/turnkey_client/models/create_read_write_session_request.rb +288 -0
- data/lib/turnkey_client/models/create_read_write_session_result.rb +286 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +272 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +272 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v5.rb +230 -0
- data/lib/turnkey_client/models/create_sub_organization_result_v6.rb +230 -0
- data/lib/turnkey_client/models/credential_type.rb +3 -0
- data/lib/turnkey_client/models/delete_oauth_providers_intent.rb +228 -0
- data/lib/turnkey_client/models/delete_oauth_providers_request.rb +288 -0
- data/lib/turnkey_client/models/delete_oauth_providers_result.rb +213 -0
- data/lib/turnkey_client/models/delete_private_keys_intent.rb +223 -0
- data/lib/turnkey_client/models/delete_private_keys_request.rb +288 -0
- data/lib/turnkey_client/models/delete_private_keys_result.rb +213 -0
- data/lib/turnkey_client/models/delete_wallets_intent.rb +223 -0
- data/lib/turnkey_client/models/delete_wallets_request.rb +288 -0
- data/lib/turnkey_client/models/delete_wallets_result.rb +213 -0
- data/lib/turnkey_client/models/email_auth_intent.rb +14 -4
- data/lib/turnkey_client/models/email_auth_intent_v2.rb +265 -0
- data/lib/turnkey_client/models/email_auth_request.rb +2 -2
- data/lib/turnkey_client/models/email_customization_params.rb +1 -1
- data/lib/turnkey_client/models/external_data_v1_quorum.rb +228 -0
- data/lib/turnkey_client/models/get_oauth_providers_request.rb +221 -0
- data/lib/turnkey_client/models/get_oauth_providers_response.rb +213 -0
- data/lib/turnkey_client/models/get_organization_configs_request.rb +211 -0
- data/lib/turnkey_client/models/get_organization_configs_response.rb +210 -0
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +1 -1
- data/lib/turnkey_client/models/intent.rb +121 -9
- data/lib/turnkey_client/models/oauth_intent.rb +246 -0
- data/lib/turnkey_client/models/oauth_provider.rb +299 -0
- data/lib/turnkey_client/models/oauth_provider_params.rb +226 -0
- data/lib/turnkey_client/models/oauth_request.rb +288 -0
- data/lib/turnkey_client/models/oauth_result.rb +241 -0
- data/lib/turnkey_client/models/result.rb +103 -4
- data/lib/turnkey_client/models/root_user_params_v2.rb +272 -0
- data/lib/turnkey_client/models/root_user_params_v3.rb +272 -0
- data/lib/turnkey_client/models/sign_raw_payloads_intent.rb +256 -0
- data/lib/turnkey_client/models/sign_raw_payloads_request.rb +288 -0
- data/lib/turnkey_client/models/sign_raw_payloads_result.rb +207 -0
- data/lib/turnkey_client/models/status.rb +225 -0
- data/lib/turnkey_client/models/user.rb +18 -1
- data/lib/turnkey_client/models/wallet_account.rb +4 -19
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +47 -0
- data/turnkey_client-0.0.4.gem +0 -0
- data/turnkey_client-0.0.7.gem +0 -0
- metadata +51 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6b2fb9158ef1973e1960d18d1a330e399759ce682aac326ef4def8e824078b
|
4
|
+
data.tar.gz: 62748d649e8de1e9c7a344a380ef5476c9fc0e97a9337052d5db54864126ecb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ebcd2cf3f4f7753e16bb258d1e274a68923d5e6f299a7df2c6788a14b3a6f5f7f2302f2fef18fcd8fe0e2b1646ce11eb91aea5fe06d2ce887fbe64de486989f
|
7
|
+
data.tar.gz: ee681bf7a0c611e0130566bd5a43495f6b3d6c6aa165925bd6b5745a8e6863322d629d3a807c84fcea5fba2f3dc1cf3042aa9c0549a1e7638d8c8c8af8c4317a
|
@@ -73,6 +73,64 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
+
# Get Configs
|
77
|
+
# Get quorum settings and features for an organization
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [GetOrganizationConfigsResponse]
|
81
|
+
def get_organization_configs(body, opts = {})
|
82
|
+
data, _status_code, _headers = get_organization_configs_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Get Configs
|
87
|
+
# Get quorum settings and features for an organization
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(GetOrganizationConfigsResponse, Integer, Hash)>] GetOrganizationConfigsResponse data, response status code and response headers
|
91
|
+
def get_organization_configs_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_configs ...'
|
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 OrganizationsApi.get_organization_configs"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/query/get_organization_configs'
|
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] || 'GetOrganizationConfigsResponse'
|
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: OrganizationsApi#get_organization_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
76
134
|
# Get Suborgs
|
77
135
|
# Get all suborg IDs associated given a parent org ID and an optional filter.
|
78
136
|
# @param body
|
@@ -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 Policies
|
19
|
+
# Create new Policies
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [ActivityResponse]
|
23
|
+
def create_policies(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_policies_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Create Policies
|
29
|
+
# Create new Policies
|
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_policies_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.create_policies ...'
|
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 PoliciesApi.create_policies"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/submit/create_policies'
|
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: PoliciesApi#create_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
18
76
|
# Create Policy
|
19
77
|
# Create a new Policy
|
20
78
|
# @param body
|
@@ -73,6 +73,64 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
+
# Delete organization private keys
|
77
|
+
# Deletes private keys for an organization
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [ActivityResponse]
|
81
|
+
def delete_private_keys(body, opts = {})
|
82
|
+
data, _status_code, _headers = delete_private_keys_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete organization private keys
|
87
|
+
# Deletes private keys for an organization
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
91
|
+
def delete_private_keys_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: PrivateKeysApi.delete_private_keys ...'
|
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 PrivateKeysApi.delete_private_keys"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/submit/delete_private_keys'
|
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] || 'ActivityResponse'
|
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: PrivateKeysApi#delete_private_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
76
134
|
# Export Private Key
|
77
135
|
# Exports a Private Key
|
78
136
|
# @param body
|
@@ -15,6 +15,122 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
+
# Create Read Only Session
|
19
|
+
# Create a read only session for a user (valid for 1 hour)
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [ActivityResponse]
|
23
|
+
def create_read_only_session(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_read_only_session_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Create Read Only Session
|
29
|
+
# Create a read only session for a user (valid for 1 hour)
|
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_read_only_session_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.create_read_only_session ...'
|
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 SessionsApi.create_read_only_session"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/submit/create_read_only_session'
|
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: SessionsApi#create_read_only_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
# Create Read Write Session
|
77
|
+
# Create a read write session for a user
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [ActivityResponse]
|
81
|
+
def create_read_write_session(body, opts = {})
|
82
|
+
data, _status_code, _headers = create_read_write_session_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Create Read Write Session
|
87
|
+
# Create a read write session for a user
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
91
|
+
def create_read_write_session_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.create_read_write_session ...'
|
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 SessionsApi.create_read_write_session"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/submit/create_read_write_session'
|
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] || 'ActivityResponse'
|
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: SessionsApi#create_read_write_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
18
134
|
# Who am I?
|
19
135
|
# Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN or API key users.
|
20
136
|
# @param body
|
@@ -73,6 +73,64 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
+
# Sign Raw Payloads
|
77
|
+
# Sign multiple raw payloads with the same signing parameters
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [ActivityResponse]
|
81
|
+
def sign_raw_payloads(body, opts = {})
|
82
|
+
data, _status_code, _headers = sign_raw_payloads_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Sign Raw Payloads
|
87
|
+
# Sign multiple raw payloads with the same signing parameters
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
91
|
+
def sign_raw_payloads_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: SigningApi.sign_raw_payloads ...'
|
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 SigningApi.sign_raw_payloads"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/submit/sign_raw_payloads'
|
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] || 'ActivityResponse'
|
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: SigningApi#sign_raw_payloads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
76
134
|
# Sign Transaction
|
77
135
|
# Sign a transaction
|
78
136
|
# @param body
|
@@ -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 Oauth Providers
|
19
|
+
# Creates Oauth providers for a specified user - BETA
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [ActivityResponse]
|
23
|
+
def create_oauth_providers(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_oauth_providers_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Create Oauth Providers
|
29
|
+
# Creates Oauth providers for a specified user - BETA
|
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_oauth_providers_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_oauth_providers ...'
|
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 UsersApi.create_oauth_providers"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/submit/create_oauth_providers'
|
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: UsersApi#create_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
18
76
|
# Create Users
|
19
77
|
# Create Users in an existing Organization
|
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 Oauth Providers
|
135
|
+
# Removes Oauth providers for a specified user - BETA
|
136
|
+
# @param body
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @return [ActivityResponse]
|
139
|
+
def delete_oauth_providers(body, opts = {})
|
140
|
+
data, _status_code, _headers = delete_oauth_providers_with_http_info(body, opts)
|
141
|
+
data
|
142
|
+
end
|
143
|
+
|
144
|
+
# Delete Oauth Providers
|
145
|
+
# Removes Oauth providers for a specified user - BETA
|
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_oauth_providers_with_http_info(body, opts = {})
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete_oauth_providers ...'
|
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 UsersApi.delete_oauth_providers"
|
156
|
+
end
|
157
|
+
# resource path
|
158
|
+
local_var_path = '/public/v1/submit/delete_oauth_providers'
|
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: UsersApi#delete_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
76
192
|
# Delete Users
|
77
193
|
# Delete Users within an Organization
|
78
194
|
# @param body
|
@@ -131,6 +247,64 @@ module TurnkeyClient
|
|
131
247
|
end
|
132
248
|
return data, status_code, headers
|
133
249
|
end
|
250
|
+
# Get Oauth providers
|
251
|
+
# Get details about Oauth providers for a user
|
252
|
+
# @param body
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [GetOauthProvidersResponse]
|
255
|
+
def get_oauth_providers(body, opts = {})
|
256
|
+
data, _status_code, _headers = get_oauth_providers_with_http_info(body, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Get Oauth providers
|
261
|
+
# Get details about Oauth providers for a user
|
262
|
+
# @param body
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [Array<(GetOauthProvidersResponse, Integer, Hash)>] GetOauthProvidersResponse data, response status code and response headers
|
265
|
+
def get_oauth_providers_with_http_info(body, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_oauth_providers ...'
|
268
|
+
end
|
269
|
+
# verify the required parameter 'body' is set
|
270
|
+
if @api_client.config.client_side_validation && body.nil?
|
271
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.get_oauth_providers"
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/public/v1/query/get_oauth_providers'
|
275
|
+
|
276
|
+
# query parameters
|
277
|
+
query_params = opts[:query_params] || {}
|
278
|
+
|
279
|
+
# header parameters
|
280
|
+
header_params = opts[:header_params] || {}
|
281
|
+
# HTTP header 'Accept' (if needed)
|
282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
+
# HTTP header 'Content-Type'
|
284
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
285
|
+
|
286
|
+
# form parameters
|
287
|
+
form_params = opts[:form_params] || {}
|
288
|
+
|
289
|
+
# http body (model)
|
290
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
291
|
+
|
292
|
+
return_type = opts[:return_type] || 'GetOauthProvidersResponse'
|
293
|
+
|
294
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
295
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names,
|
301
|
+
:return_type => return_type)
|
302
|
+
|
303
|
+
if @api_client.config.debugging
|
304
|
+
@api_client.config.logger.debug "API called: UsersApi#get_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
134
308
|
# Get User
|
135
309
|
# Get details about a User
|
136
310
|
# @param body
|
@@ -247,6 +421,64 @@ module TurnkeyClient
|
|
247
421
|
end
|
248
422
|
return data, status_code, headers
|
249
423
|
end
|
424
|
+
# Oauth
|
425
|
+
# Authenticate a user with an Oidc token (Oauth) - BETA
|
426
|
+
# @param body
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [ActivityResponse]
|
429
|
+
def oauth(body, opts = {})
|
430
|
+
data, _status_code, _headers = oauth_with_http_info(body, opts)
|
431
|
+
data
|
432
|
+
end
|
433
|
+
|
434
|
+
# Oauth
|
435
|
+
# Authenticate a user with an Oidc token (Oauth) - BETA
|
436
|
+
# @param body
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
439
|
+
def oauth_with_http_info(body, opts = {})
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.oauth ...'
|
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 UsersApi.oauth"
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = '/public/v1/submit/oauth'
|
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] || 'ActivityResponse'
|
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: UsersApi#oauth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
479
|
+
end
|
480
|
+
return data, status_code, headers
|
481
|
+
end
|
250
482
|
# Update User
|
251
483
|
# Update a User in an existing Organization
|
252
484
|
# @param body
|