Skip to content

Commit

Permalink
client changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Aug 15, 2024
1 parent d5c206e commit b2ea249
Show file tree
Hide file tree
Showing 45 changed files with 7,759 additions and 21 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.56
3.0.58
30 changes: 30 additions & 0 deletions turnkey_client/lib/turnkey_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
require 'turnkey_client/models/address_format'
require 'turnkey_client/models/any'
require 'turnkey_client/models/api_key'
require 'turnkey_client/models/api_key_curve'
require 'turnkey_client/models/api_key_params'
require 'turnkey_client/models/api_key_params_v2'
require 'turnkey_client/models/api_only_user_params'
require 'turnkey_client/models/approve_activity_intent'
require 'turnkey_client/models/approve_activity_request'
Expand All @@ -39,7 +41,9 @@
require 'turnkey_client/models/authenticator_params'
require 'turnkey_client/models/authenticator_params_v2'
require 'turnkey_client/models/authenticator_transport'
require 'turnkey_client/models/config'
require 'turnkey_client/models/create_api_keys_intent'
require 'turnkey_client/models/create_api_keys_intent_v2'
require 'turnkey_client/models/create_api_keys_request'
require 'turnkey_client/models/create_api_keys_result'
require 'turnkey_client/models/create_api_only_users_intent'
Expand All @@ -51,6 +55,9 @@
require 'turnkey_client/models/create_invitations_intent'
require 'turnkey_client/models/create_invitations_request'
require 'turnkey_client/models/create_invitations_result'
require 'turnkey_client/models/create_oauth_providers_intent'
require 'turnkey_client/models/create_oauth_providers_request'
require 'turnkey_client/models/create_oauth_providers_result'
require 'turnkey_client/models/create_organization_intent'
require 'turnkey_client/models/create_organization_intent_v2'
require 'turnkey_client/models/create_organization_result'
Expand All @@ -73,14 +80,21 @@
require 'turnkey_client/models/create_read_only_session_intent'
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_request'
require 'turnkey_client/models/create_read_write_session_result'
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'
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_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_user_tag_intent'
require 'turnkey_client/models/create_user_tag_request'
require 'turnkey_client/models/create_user_tag_result'
Expand All @@ -107,6 +121,9 @@
require 'turnkey_client/models/delete_invitation_intent'
require 'turnkey_client/models/delete_invitation_request'
require 'turnkey_client/models/delete_invitation_result'
require 'turnkey_client/models/delete_oauth_providers_intent'
require 'turnkey_client/models/delete_oauth_providers_request'
require 'turnkey_client/models/delete_oauth_providers_result'
require 'turnkey_client/models/delete_organization_intent'
require 'turnkey_client/models/delete_organization_result'
require 'turnkey_client/models/delete_payment_method_intent'
Expand All @@ -127,6 +144,7 @@
require 'turnkey_client/models/disable_private_key_result'
require 'turnkey_client/models/effect'
require 'turnkey_client/models/email_auth_intent'
require 'turnkey_client/models/email_auth_intent_v2'
require 'turnkey_client/models/email_auth_request'
require 'turnkey_client/models/email_auth_result'
require 'turnkey_client/models/email_customization_params'
Expand All @@ -140,6 +158,7 @@
require 'turnkey_client/models/export_wallet_request'
require 'turnkey_client/models/export_wallet_result'
require 'turnkey_client/models/external_data_v1_credential'
require 'turnkey_client/models/external_data_v1_quorum'
require 'turnkey_client/models/external_data_v1_timestamp'
require 'turnkey_client/models/feature'
require 'turnkey_client/models/feature_name'
Expand All @@ -154,6 +173,10 @@
require 'turnkey_client/models/get_authenticator_response'
require 'turnkey_client/models/get_authenticators_request'
require 'turnkey_client/models/get_authenticators_response'
require 'turnkey_client/models/get_oauth_providers_request'
require 'turnkey_client/models/get_oauth_providers_response'
require 'turnkey_client/models/get_organization_configs_request'
require 'turnkey_client/models/get_organization_configs_response'
require 'turnkey_client/models/get_policies_request'
require 'turnkey_client/models/get_policies_response'
require 'turnkey_client/models/get_policy_request'
Expand Down Expand Up @@ -199,6 +222,11 @@
require 'turnkey_client/models/list_user_tags_request'
require 'turnkey_client/models/list_user_tags_response'
require 'turnkey_client/models/mnemonic_language'
require 'turnkey_client/models/oauth_intent'
require 'turnkey_client/models/oauth_provider'
require 'turnkey_client/models/oauth_provider_params'
require 'turnkey_client/models/oauth_request'
require 'turnkey_client/models/oauth_result'
require 'turnkey_client/models/operator'
require 'turnkey_client/models/pagination'
require 'turnkey_client/models/path_format'
Expand All @@ -218,6 +246,8 @@
require 'turnkey_client/models/remove_organization_feature_result'
require 'turnkey_client/models/result'
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/selector'
require 'turnkey_client/models/selector_v2'
require 'turnkey_client/models/set_organization_feature_intent'
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
# Get Configs
# Get quorum settings and features for an organization
# @param body
# @param [Hash] opts the optional parameters
# @return [GetOrganizationConfigsResponse]
def get_organization_configs(body, opts = {})
data, _status_code, _headers = get_organization_configs_with_http_info(body, opts)
data
end

# Get Configs
# Get quorum settings and features for an organization
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(GetOrganizationConfigsResponse, Integer, Hash)>] GetOrganizationConfigsResponse data, response status code and response headers
def get_organization_configs_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_configs ...'
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_organization_configs"
end
# resource path
local_var_path = '/public/v1/query/get_organization_configs'

# 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] || 'GetOrganizationConfigsResponse'

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_organization_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
Expand Down
58 changes: 58 additions & 0 deletions turnkey_client/lib/turnkey_client/api/sessions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,64 @@ def create_read_only_session_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# Create Read Write Session
# Create a read write session for a user
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def create_read_write_session(body, opts = {})
data, _status_code, _headers = create_read_write_session_with_http_info(body, opts)
data
end

# Create Read Write Session
# Create a read write session for a user
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def create_read_write_session_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SessionsApi.create_read_write_session ...'
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 SessionsApi.create_read_write_session"
end
# resource path
local_var_path = '/public/v1/submit/create_read_write_session'

# 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: SessionsApi#create_read_write_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Who am I?
# 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.
# @param body
Expand Down
Loading

0 comments on commit b2ea249

Please sign in to comment.