Skip to content

Commit

Permalink
Merge pull-request #2
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Mar 8, 2024
2 parents d60ddf1 + 09c5a10 commit 5ae1072
Show file tree
Hide file tree
Showing 268 changed files with 2,786 additions and 292 deletions.
2 changes: 1 addition & 1 deletion turnkey_client/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.53
3.0.54
10 changes: 9 additions & 1 deletion turnkey_client/lib/turnkey_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

# Common files
Expand Down Expand Up @@ -156,6 +156,8 @@
require 'turnkey_client/models/get_private_key_response'
require 'turnkey_client/models/get_private_keys_request'
require 'turnkey_client/models/get_private_keys_response'
require 'turnkey_client/models/get_sub_org_ids_request'
require 'turnkey_client/models/get_sub_org_ids_response'
require 'turnkey_client/models/get_user_request'
require 'turnkey_client/models/get_user_response'
require 'turnkey_client/models/get_users_request'
Expand All @@ -169,9 +171,15 @@
require 'turnkey_client/models/get_whoami_request'
require 'turnkey_client/models/get_whoami_response'
require 'turnkey_client/models/hash_function'
require 'turnkey_client/models/import_private_key_intent'
require 'turnkey_client/models/import_private_key_request'
require 'turnkey_client/models/import_private_key_result'
require 'turnkey_client/models/import_wallet_intent'
require 'turnkey_client/models/import_wallet_request'
require 'turnkey_client/models/import_wallet_result'
require 'turnkey_client/models/init_import_private_key_intent'
require 'turnkey_client/models/init_import_private_key_request'
require 'turnkey_client/models/init_import_private_key_result'
require 'turnkey_client/models/init_import_wallet_intent'
require 'turnkey_client/models/init_import_wallet_request'
require 'turnkey_client/models/init_import_wallet_result'
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/activities_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/api_keys_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/consensus_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/features_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/invitations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
60 changes: 59 additions & 1 deletion turnkey_client/lib/turnkey_client/api/organizations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down Expand Up @@ -74,6 +74,64 @@ def create_sub_organization_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Get Suborgs
# Get all suborg IDs associated given a parent org ID and an optional filter.
# @param body
# @param [Hash] opts the optional parameters
# @return [GetSubOrgIdsResponse]
def get_sub_org_ids(body, opts = {})
data, _status_code, _headers = get_sub_org_ids_with_http_info(body, opts)
data
end

# Get Suborgs
# Get all suborg IDs associated given a parent org ID and an optional filter.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(GetSubOrgIdsResponse, Integer, Hash)>] GetSubOrgIdsResponse data, response status code and response headers
def get_sub_org_ids_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_sub_org_ids ...'
end
# verify the required parameter 'body' is set
if @api_client.config.client_side_validation && body.nil?
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.get_sub_org_ids"
end
# resource path
local_var_path = '/public/v1/query/list_suborgs'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(body)

return_type = opts[:return_type] || 'GetSubOrgIdsResponse'

auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type)

if @api_client.config.debugging
@api_client.config.logger.debug "API called: OrganizationsApi#get_sub_org_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Update Root Quorum
# Set the threshold and members of the root quorum. This must be approved by the current root quorum.
# @param body
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/policies_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
118 changes: 117 additions & 1 deletion turnkey_client/lib/turnkey_client/api/private_keys_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down Expand Up @@ -248,5 +248,121 @@ def get_private_keys_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Import Private Key
# Imports a private key
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def import_private_key(body, opts = {})
data, _status_code, _headers = import_private_key_with_http_info(body, opts)
data
end

# Import Private Key
# Imports a private key
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def import_private_key_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PrivateKeysApi.import_private_key ...'
end
# verify the required parameter 'body' is set
if @api_client.config.client_side_validation && body.nil?
fail ArgumentError, "Missing the required parameter 'body' when calling PrivateKeysApi.import_private_key"
end
# resource path
local_var_path = '/public/v1/submit/import_private_key'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(body)

return_type = opts[:return_type] || 'ActivityResponse'

auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type)

if @api_client.config.debugging
@api_client.config.logger.debug "API called: PrivateKeysApi#import_private_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Init Import Private Key
# Initializes a new private key import
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def init_import_private_key(body, opts = {})
data, _status_code, _headers = init_import_private_key_with_http_info(body, opts)
data
end

# Init Import Private Key
# Initializes a new private key import
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def init_import_private_key_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PrivateKeysApi.init_import_private_key ...'
end
# verify the required parameter 'body' is set
if @api_client.config.client_side_validation && body.nil?
fail ArgumentError, "Missing the required parameter 'body' when calling PrivateKeysApi.init_import_private_key"
end
# resource path
local_var_path = '/public/v1/submit/init_import_private_key'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(body)

return_type = opts[:return_type] || 'ActivityResponse'

auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type)

if @api_client.config.debugging
@api_client.config.logger.debug "API called: PrivateKeysApi#init_import_private_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
end
end
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/sessions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/signing_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/user_auth_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/user_recovery_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/user_tags_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/users_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api/wallets_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

require 'date'
Expand Down
2 changes: 1 addition & 1 deletion turnkey_client/lib/turnkey_client/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.53
Swagger Codegen version: 3.0.54
=end

module TurnkeyClient
Expand Down
Loading

0 comments on commit 5ae1072

Please sign in to comment.