Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions turnkey_client/lib/turnkey_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@
require 'turnkey_client/models/update_user_tag_intent'
require 'turnkey_client/models/update_user_tag_request'
require 'turnkey_client/models/update_user_tag_result'
require 'turnkey_client/models/update_wallet_intent'
require 'turnkey_client/models/update_wallet_request'
require 'turnkey_client/models/update_wallet_result'
require 'turnkey_client/models/user'
require 'turnkey_client/models/user_params'
require 'turnkey_client/models/user_params_v2'
Expand Down
58 changes: 58 additions & 0 deletions turnkey_client/lib/turnkey_client/api/wallets_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -595,5 +595,63 @@ def init_import_wallet_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Update Wallet
# Update a wallet for an organization
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def update_wallet(body, opts = {})
data, _status_code, _headers = update_wallet_with_http_info(body, opts)
data
end

# Update Wallet
# Update a wallet for an organization
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def update_wallet_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: WalletsApi.update_wallet ...'
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 WalletsApi.update_wallet"
end
# resource path
local_var_path = '/public/v1/submit/update_wallet'

# 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: WalletsApi#update_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
end
end
1 change: 1 addition & 0 deletions turnkey_client/lib/turnkey_client/models/activity_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class ActivityType
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
UPDATE_WALLET = 'ACTIVITY_TYPE_UPDATE_WALLET'.freeze

# Builds the enum from string
# @param [String] The enum value in the form of the string
Expand Down
18 changes: 14 additions & 4 deletions turnkey_client/lib/turnkey_client/models/email_auth_intent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class EmailAuthIntent
# Invalidate all other previously generated Email Auth API keys
attr_accessor :invalidate_existing

# Optional custom email address from which to send the email
attr_accessor :send_from_email_address

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand All @@ -37,7 +40,8 @@ def self.attribute_map
:'api_key_name' => :'apiKeyName',
:'expiration_seconds' => :'expirationSeconds',
:'email_customization' => :'emailCustomization',
:'invalidate_existing' => :'invalidateExisting'
:'invalidate_existing' => :'invalidateExisting',
:'send_from_email_address' => :'sendFromEmailAddress'
}
end

Expand All @@ -49,7 +53,8 @@ def self.openapi_types
:'api_key_name' => :'Object',
:'expiration_seconds' => :'Object',
:'email_customization' => :'Object',
:'invalidate_existing' => :'Object'
:'invalidate_existing' => :'Object',
:'send_from_email_address' => :'Object'
}
end

Expand Down Expand Up @@ -97,6 +102,10 @@ def initialize(attributes = {})
if attributes.key?(:'invalidate_existing')
self.invalidate_existing = attributes[:'invalidate_existing']
end

if attributes.key?(:'send_from_email_address')
self.send_from_email_address = attributes[:'send_from_email_address']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -132,7 +141,8 @@ def ==(o)
api_key_name == o.api_key_name &&
expiration_seconds == o.expiration_seconds &&
email_customization == o.email_customization &&
invalidate_existing == o.invalidate_existing
invalidate_existing == o.invalidate_existing &&
send_from_email_address == o.send_from_email_address
end

# @see the `==` method
Expand All @@ -144,7 +154,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing].hash
[email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address].hash
end

# Builds the object from hash
Expand Down
18 changes: 14 additions & 4 deletions turnkey_client/lib/turnkey_client/models/email_auth_intent_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class EmailAuthIntentV2
# Invalidate all other previously generated Email Auth API keys
attr_accessor :invalidate_existing

# Optional custom email address from which to send the email
attr_accessor :send_from_email_address

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand All @@ -37,7 +40,8 @@ def self.attribute_map
:'api_key_name' => :'apiKeyName',
:'expiration_seconds' => :'expirationSeconds',
:'email_customization' => :'emailCustomization',
:'invalidate_existing' => :'invalidateExisting'
:'invalidate_existing' => :'invalidateExisting',
:'send_from_email_address' => :'sendFromEmailAddress'
}
end

Expand All @@ -49,7 +53,8 @@ def self.openapi_types
:'api_key_name' => :'Object',
:'expiration_seconds' => :'Object',
:'email_customization' => :'Object',
:'invalidate_existing' => :'Object'
:'invalidate_existing' => :'Object',
:'send_from_email_address' => :'Object'
}
end

Expand Down Expand Up @@ -97,6 +102,10 @@ def initialize(attributes = {})
if attributes.key?(:'invalidate_existing')
self.invalidate_existing = attributes[:'invalidate_existing']
end

if attributes.key?(:'send_from_email_address')
self.send_from_email_address = attributes[:'send_from_email_address']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -132,7 +141,8 @@ def ==(o)
api_key_name == o.api_key_name &&
expiration_seconds == o.expiration_seconds &&
email_customization == o.email_customization &&
invalidate_existing == o.invalidate_existing
invalidate_existing == o.invalidate_existing &&
send_from_email_address == o.send_from_email_address
end

# @see the `==` method
Expand All @@ -144,7 +154,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing].hash
[email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address].hash
end

# Builds the object from hash
Expand Down
18 changes: 14 additions & 4 deletions turnkey_client/lib/turnkey_client/models/init_otp_auth_intent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ class InitOtpAuthIntent
# Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address.
attr_accessor :user_identifier

# Optional custom email address from which to send the OTP email
attr_accessor :send_from_email_address

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'otp_type' => :'otpType',
:'contact' => :'contact',
:'email_customization' => :'emailCustomization',
:'sms_customization' => :'smsCustomization',
:'user_identifier' => :'userIdentifier'
:'user_identifier' => :'userIdentifier',
:'send_from_email_address' => :'sendFromEmailAddress'
}
end

Expand All @@ -43,7 +47,8 @@ def self.openapi_types
:'contact' => :'Object',
:'email_customization' => :'Object',
:'sms_customization' => :'Object',
:'user_identifier' => :'Object'
:'user_identifier' => :'Object',
:'send_from_email_address' => :'Object'
}
end

Expand Down Expand Up @@ -87,6 +92,10 @@ def initialize(attributes = {})
if attributes.key?(:'user_identifier')
self.user_identifier = attributes[:'user_identifier']
end

if attributes.key?(:'send_from_email_address')
self.send_from_email_address = attributes[:'send_from_email_address']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -121,7 +130,8 @@ def ==(o)
contact == o.contact &&
email_customization == o.email_customization &&
sms_customization == o.sms_customization &&
user_identifier == o.user_identifier
user_identifier == o.user_identifier &&
send_from_email_address == o.send_from_email_address
end

# @see the `==` method
Expand All @@ -133,7 +143,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[otp_type, contact, email_customization, sms_customization, user_identifier].hash
[otp_type, contact, email_customization, sms_customization, user_identifier, send_from_email_address].hash
end

# Builds the object from hash
Expand Down
17 changes: 13 additions & 4 deletions turnkey_client/lib/turnkey_client/models/intent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ class Intent

attr_accessor :create_sub_organization_intent_v7

attr_accessor :update_wallet_intent

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand Down Expand Up @@ -251,7 +253,8 @@ def self.attribute_map
:'delete_sub_organization_intent' => :'deleteSubOrganizationIntent',
:'init_otp_auth_intent' => :'initOtpAuthIntent',
:'otp_auth_intent' => :'otpAuthIntent',
:'create_sub_organization_intent_v7' => :'createSubOrganizationIntentV7'
:'create_sub_organization_intent_v7' => :'createSubOrganizationIntentV7',
:'update_wallet_intent' => :'updateWalletIntent'
}
end

Expand Down Expand Up @@ -336,7 +339,8 @@ def self.openapi_types
:'delete_sub_organization_intent' => :'Object',
:'init_otp_auth_intent' => :'Object',
:'otp_auth_intent' => :'Object',
:'create_sub_organization_intent_v7' => :'Object'
:'create_sub_organization_intent_v7' => :'Object',
:'update_wallet_intent' => :'Object'
}
end

Expand Down Expand Up @@ -676,6 +680,10 @@ def initialize(attributes = {})
if attributes.key?(:'create_sub_organization_intent_v7')
self.create_sub_organization_intent_v7 = attributes[:'create_sub_organization_intent_v7']
end

if attributes.key?(:'update_wallet_intent')
self.update_wallet_intent = attributes[:'update_wallet_intent']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -774,7 +782,8 @@ def ==(o)
delete_sub_organization_intent == o.delete_sub_organization_intent &&
init_otp_auth_intent == o.init_otp_auth_intent &&
otp_auth_intent == o.otp_auth_intent &&
create_sub_organization_intent_v7 == o.create_sub_organization_intent_v7
create_sub_organization_intent_v7 == o.create_sub_organization_intent_v7 &&
update_wallet_intent == o.update_wallet_intent
end

# @see the `==` method
Expand All @@ -786,7 +795,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, export_wallet_account_intent, init_import_wallet_intent, import_wallet_intent, init_import_private_key_intent, import_private_key_intent, create_policies_intent, sign_raw_payloads_intent, create_read_only_session_intent, create_oauth_providers_intent, delete_oauth_providers_intent, create_sub_organization_intent_v5, oauth_intent, create_api_keys_intent_v2, create_read_write_session_intent, email_auth_intent_v2, create_sub_organization_intent_v6, delete_private_keys_intent, delete_wallets_intent, create_read_write_session_intent_v2, delete_sub_organization_intent, init_otp_auth_intent, otp_auth_intent, create_sub_organization_intent_v7].hash
[create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, export_wallet_account_intent, init_import_wallet_intent, import_wallet_intent, init_import_private_key_intent, import_private_key_intent, create_policies_intent, sign_raw_payloads_intent, create_read_only_session_intent, create_oauth_providers_intent, delete_oauth_providers_intent, create_sub_organization_intent_v5, oauth_intent, create_api_keys_intent_v2, create_read_write_session_intent, email_auth_intent_v2, create_sub_organization_intent_v6, delete_private_keys_intent, delete_wallets_intent, create_read_write_session_intent_v2, delete_sub_organization_intent, init_otp_auth_intent, otp_auth_intent, create_sub_organization_intent_v7, update_wallet_intent].hash
end

# Builds the object from hash
Expand Down
Loading
Loading