Skip to content

Commit

Permalink
Merge pull-request #9
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Oct 2, 2024
2 parents 56bb4a7 + 6f21a3e commit f8cb909
Show file tree
Hide file tree
Showing 17 changed files with 1,540 additions and 23 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.61
3.0.58
5 changes: 5 additions & 0 deletions turnkey_client/lib/turnkey_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@
require 'turnkey_client/models/create_read_only_session_request'
require 'turnkey_client/models/create_read_only_session_result'
require 'turnkey_client/models/create_read_write_session_intent'
require 'turnkey_client/models/create_read_write_session_intent_v2'
require 'turnkey_client/models/create_read_write_session_request'
require 'turnkey_client/models/create_read_write_session_result'
require 'turnkey_client/models/create_read_write_session_result_v2'
require 'turnkey_client/models/create_sub_organization_intent'
require 'turnkey_client/models/create_sub_organization_intent_v2'
require 'turnkey_client/models/create_sub_organization_intent_v3'
Expand Down Expand Up @@ -137,6 +139,9 @@
require 'turnkey_client/models/delete_private_keys_intent'
require 'turnkey_client/models/delete_private_keys_request'
require 'turnkey_client/models/delete_private_keys_result'
require 'turnkey_client/models/delete_sub_organization_intent'
require 'turnkey_client/models/delete_sub_organization_request'
require 'turnkey_client/models/delete_sub_organization_result'
require 'turnkey_client/models/delete_user_tags_intent'
require 'turnkey_client/models/delete_user_tags_request'
require 'turnkey_client/models/delete_user_tags_result'
Expand Down
58 changes: 58 additions & 0 deletions turnkey_client/lib/turnkey_client/api/organizations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,64 @@ def create_sub_organization_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Delete Sub Organization
# Deletes a sub organization
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def delete_sub_organization(body, opts = {})
data, _status_code, _headers = delete_sub_organization_with_http_info(body, opts)
data
end

# Delete Sub Organization
# Deletes a sub organization
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def delete_sub_organization_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_sub_organization ...'
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.delete_sub_organization"
end
# resource path
local_var_path = '/public/v1/submit/delete_sub_organization'

# 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: OrganizationsApi#delete_sub_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Get Configs
# Get quorum settings and features for an organization
# @param body
Expand Down
4 changes: 2 additions & 2 deletions turnkey_client/lib/turnkey_client/api/private_keys_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_private_keys_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Delete organization private keys
# Delete Private Keys
# Deletes private keys for an organization
# @param body
# @param [Hash] opts the optional parameters
Expand All @@ -83,7 +83,7 @@ def delete_private_keys(body, opts = {})
data
end

# Delete organization private keys
# Delete Private Keys
# Deletes private keys for an organization
# @param body
# @param [Hash] opts the optional parameters
Expand Down
4 changes: 2 additions & 2 deletions turnkey_client/lib/turnkey_client/api/wallets_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def create_wallet_accounts_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Delete organization wallets
# Delete Wallets
# Deletes wallets for an organization
# @param body
# @param [Hash] opts the optional parameters
Expand All @@ -141,7 +141,7 @@ def delete_wallets(body, opts = {})
data
end

# Delete organization wallets
# Delete Wallets
# Deletes wallets for an organization
# @param body
# @param [Hash] opts the optional parameters
Expand Down
2 changes: 2 additions & 0 deletions turnkey_client/lib/turnkey_client/models/activity_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class ActivityType
CREATE_SUB_ORGANIZATION_V6 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6'.freeze
DELETE_PRIVATE_KEYS = 'ACTIVITY_TYPE_DELETE_PRIVATE_KEYS'.freeze
DELETE_WALLETS = 'ACTIVITY_TYPE_DELETE_WALLETS'.freeze
CREATE_READ_WRITE_SESSION_V2 = 'ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2'.freeze
DELETE_SUB_ORGANIZATION = 'ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION'.freeze

# Builds the enum from string
# @param [String] The enum value in the form of the string
Expand Down
22 changes: 22 additions & 0 deletions turnkey_client/lib/turnkey_client/models/address_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ class AddressFormat
SOLANA = 'ADDRESS_FORMAT_SOLANA'.freeze
COSMOS = 'ADDRESS_FORMAT_COSMOS'.freeze
TRON = 'ADDRESS_FORMAT_TRON'.freeze
SUI = 'ADDRESS_FORMAT_SUI'.freeze
APTOS = 'ADDRESS_FORMAT_APTOS'.freeze
BITCOIN_MAINNET_P2_PKH = 'ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH'.freeze
BITCOIN_MAINNET_P2_SH = 'ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH'.freeze
BITCOIN_MAINNET_P2_WPKH = 'ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH'.freeze
BITCOIN_MAINNET_P2_WSH = 'ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH'.freeze
BITCOIN_MAINNET_P2_TR = 'ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR'.freeze
BITCOIN_TESTNET_P2_PKH = 'ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH'.freeze
BITCOIN_TESTNET_P2_SH = 'ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH'.freeze
BITCOIN_TESTNET_P2_WPKH = 'ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH'.freeze
BITCOIN_TESTNET_P2_WSH = 'ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH'.freeze
BITCOIN_TESTNET_P2_TR = 'ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR'.freeze
BITCOIN_SIGNET_P2_PKH = 'ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH'.freeze
BITCOIN_SIGNET_P2_SH = 'ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH'.freeze
BITCOIN_SIGNET_P2_WPKH = 'ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH'.freeze
BITCOIN_SIGNET_P2_WSH = 'ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH'.freeze
BITCOIN_SIGNET_P2_TR = 'ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR'.freeze
BITCOIN_REGTEST_P2_PKH = 'ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH'.freeze
BITCOIN_REGTEST_P2_SH = 'ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH'.freeze
BITCOIN_REGTEST_P2_WPKH = 'ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH'.freeze
BITCOIN_REGTEST_P2_WSH = 'ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH'.freeze
BITCOIN_REGTEST_P2_TR = 'ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR'.freeze

# Builds the enum from string
# @param [String] The enum value in the form of the string
Expand Down
Loading

0 comments on commit f8cb909

Please sign in to comment.