Skip to content

Commit

Permalink
changes for mono release v2024.10.10
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Nov 4, 2024
1 parent 03c215a commit 75b55ba
Show file tree
Hide file tree
Showing 23 changed files with 2,875 additions and 30 deletions.
9 changes: 9 additions & 0 deletions turnkey_client/lib/turnkey_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@
require 'turnkey_client/models/create_sub_organization_intent_v4'
require 'turnkey_client/models/create_sub_organization_intent_v5'
require 'turnkey_client/models/create_sub_organization_intent_v6'
require 'turnkey_client/models/create_sub_organization_intent_v7'
require 'turnkey_client/models/create_sub_organization_request'
require 'turnkey_client/models/create_sub_organization_result'
require 'turnkey_client/models/create_sub_organization_result_v3'
require 'turnkey_client/models/create_sub_organization_result_v4'
require 'turnkey_client/models/create_sub_organization_result_v5'
require 'turnkey_client/models/create_sub_organization_result_v6'
require 'turnkey_client/models/create_sub_organization_result_v7'
require 'turnkey_client/models/create_user_tag_intent'
require 'turnkey_client/models/create_user_tag_request'
require 'turnkey_client/models/create_user_tag_result'
Expand Down Expand Up @@ -223,6 +225,9 @@
require 'turnkey_client/models/init_import_wallet_intent'
require 'turnkey_client/models/init_import_wallet_request'
require 'turnkey_client/models/init_import_wallet_result'
require 'turnkey_client/models/init_otp_auth_intent'
require 'turnkey_client/models/init_otp_auth_request'
require 'turnkey_client/models/init_otp_auth_result'
require 'turnkey_client/models/init_user_email_recovery_intent'
require 'turnkey_client/models/init_user_email_recovery_request'
require 'turnkey_client/models/init_user_email_recovery_result'
Expand All @@ -239,6 +244,9 @@
require 'turnkey_client/models/oauth_request'
require 'turnkey_client/models/oauth_result'
require 'turnkey_client/models/operator'
require 'turnkey_client/models/otp_auth_intent'
require 'turnkey_client/models/otp_auth_request'
require 'turnkey_client/models/otp_auth_result'
require 'turnkey_client/models/pagination'
require 'turnkey_client/models/path_format'
require 'turnkey_client/models/payload_encoding'
Expand All @@ -259,6 +267,7 @@
require 'turnkey_client/models/root_user_params'
require 'turnkey_client/models/root_user_params_v2'
require 'turnkey_client/models/root_user_params_v3'
require 'turnkey_client/models/root_user_params_v4'
require 'turnkey_client/models/selector'
require 'turnkey_client/models/selector_v2'
require 'turnkey_client/models/set_organization_feature_intent'
Expand Down
8 changes: 4 additions & 4 deletions turnkey_client/lib/turnkey_client/api/features_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Remove Organization Feature
# Removes an organization feature
# Removes an organization feature. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
Expand All @@ -26,7 +26,7 @@ def remove_organization_feature(body, opts = {})
end

# Remove Organization Feature
# Removes an organization feature
# Removes an organization feature. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
Expand Down Expand Up @@ -74,7 +74,7 @@ def remove_organization_feature_with_http_info(body, opts = {})
return data, status_code, headers
end
# Set Organization Feature
# Sets an organization feature
# Sets an organization feature. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
Expand All @@ -84,7 +84,7 @@ def set_organization_feature(body, opts = {})
end

# Set Organization Feature
# Sets an organization feature
# Sets an organization feature. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
Expand Down
4 changes: 2 additions & 2 deletions turnkey_client/lib/turnkey_client/api/organizations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get_sub_org_ids_with_http_info(body, opts = {})
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.
# Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
Expand All @@ -258,7 +258,7 @@ def update_root_quorum(body, opts = {})
end

# Update Root Quorum
# Set the threshold and members of the root quorum. This must be approved by the current root quorum.
# Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
Expand Down
116 changes: 116 additions & 0 deletions turnkey_client/lib/turnkey_client/api/users_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,64 @@ def get_users_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Init OTP auth
# Initiate an OTP auth activity
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def init_otp_auth(body, opts = {})
data, _status_code, _headers = init_otp_auth_with_http_info(body, opts)
data
end

# Init OTP auth
# Initiate an OTP auth activity
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def init_otp_auth_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: UsersApi.init_otp_auth ...'
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 UsersApi.init_otp_auth"
end
# resource path
local_var_path = '/public/v1/submit/init_otp_auth'

# 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: UsersApi#init_otp_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Oauth
# Authenticate a user with an Oidc token (Oauth) - BETA
# @param body
Expand Down Expand Up @@ -479,6 +537,64 @@ def oauth_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# OTP auth
# Authenticate a user with an OTP code sent via email or SMS
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def otp_auth(body, opts = {})
data, _status_code, _headers = otp_auth_with_http_info(body, opts)
data
end

# OTP auth
# Authenticate a user with an OTP code sent via email or SMS
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def otp_auth_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: UsersApi.otp_auth ...'
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 UsersApi.otp_auth"
end
# resource path
local_var_path = '/public/v1/submit/otp_auth'

# 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: UsersApi#otp_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Update User
# Update a User in an existing Organization
# @param body
Expand Down
3 changes: 3 additions & 0 deletions turnkey_client/lib/turnkey_client/models/activity_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ class ActivityType
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
INIT_OTP_AUTH = 'ACTIVITY_TYPE_INIT_OTP_AUTH'.freeze
OTP_AUTH = 'ACTIVITY_TYPE_OTP_AUTH'.freeze
CREATE_SUB_ORGANIZATION_V7 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7'.freeze

# Builds the enum from string
# @param [String] The enum value in the form of the string
Expand Down
6 changes: 6 additions & 0 deletions turnkey_client/lib/turnkey_client/models/address_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class AddressFormat
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
SEI = 'ADDRESS_FORMAT_SEI'.freeze
XLM = 'ADDRESS_FORMAT_XLM'.freeze
DOGE_MAINNET = 'ADDRESS_FORMAT_DOGE_MAINNET'.freeze
DOGE_TESTNET = 'ADDRESS_FORMAT_DOGE_TESTNET'.freeze
TON_V3_R2 = 'ADDRESS_FORMAT_TON_V3R2'.freeze
TON_V4_R2 = 'ADDRESS_FORMAT_TON_V4R2'.freeze

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

0 comments on commit 75b55ba

Please sign in to comment.