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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.0.19 -- 2026-06-03

### Patch Changes
- API sync for Mono `v2026.6.0`

## 0.0.18 -- 2026-02-20

### Patch Changes
Expand Down
122 changes: 122 additions & 0 deletions turnkey_client/lib/turnkey_client.rb

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions turnkey_client/lib/turnkey_client/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,51 @@ def get_oauth2_credential_with_http_info(body, opts = {})
end
return data, status_code, headers
end
# @param [Hash] opts the optional parameters
# @return [NOOPCodegenAnchorResponse]
def n_oop_codegen_anchor(opts = {})
data, _status_code, _headers = n_oop_codegen_anchor_with_http_info(opts)
data
end

# @param [Hash] opts the optional parameters
# @return [Array<(NOOPCodegenAnchorResponse, Integer, Hash)>] NOOPCodegenAnchorResponse data, response status code and response headers
def n_oop_codegen_anchor_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.n_oop_codegen_anchor ...'
end
# resource path
local_var_path = '/tkhq/api/v1/noop-codegen-anchor'

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

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

# http body (model)
post_body = opts[:body]

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

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: DefaultApi#n_oop_codegen_anchor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
end
end
193 changes: 193 additions & 0 deletions turnkey_client/lib/turnkey_client/api/ip_allowlist_api.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
=begin
#API Reference

#Review our [API Introduction](../api-introduction) to get started.

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
=end

module TurnkeyClient
class IPAllowlistApi
attr_accessor :api_client

def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Get IP Allowlist
# Get IP allowlist and rules for an organization.
# @param body
# @param [Hash] opts the optional parameters
# @return [GetIpAllowlistResponse]
def get_ip_allowlist(body, opts = {})
data, _status_code, _headers = get_ip_allowlist_with_http_info(body, opts)
data
end

# Get IP Allowlist
# Get IP allowlist and rules for an organization.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(GetIpAllowlistResponse, Integer, Hash)>] GetIpAllowlistResponse data, response status code and response headers
def get_ip_allowlist_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.get_ip_allowlist ...'
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 IPAllowlistApi.get_ip_allowlist"
end
# resource path
local_var_path = '/public/v1/query/get_ip_allowlist'

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

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: IPAllowlistApi#get_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Remove IP Allowlist
# Delete IP allowlist and all associated rules for organization or API key. After removal, access will be determined by organization-level allowlist (for API keys) or allowed from all IPs (for organizations).
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def remove_ip_allowlist(body, opts = {})
data, _status_code, _headers = remove_ip_allowlist_with_http_info(body, opts)
data
end

# Remove IP Allowlist
# Delete IP allowlist and all associated rules for organization or API key. After removal, access will be determined by organization-level allowlist (for API keys) or allowed from all IPs (for organizations).
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def remove_ip_allowlist_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.remove_ip_allowlist ...'
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 IPAllowlistApi.remove_ip_allowlist"
end
# resource path
local_var_path = '/public/v1/submit/remove_ip_allowlist'

# 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: IPAllowlistApi#remove_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Set IP Allowlist
# Create or update IP allowlist and rules for organization or API key. The IP allowlist restricts API access to specific CIDR blocks. Organization-level allowlists apply to all API keys unless overridden by a key-specific allowlist.
# @param body
# @param [Hash] opts the optional parameters
# @return [ActivityResponse]
def set_ip_allowlist(body, opts = {})
data, _status_code, _headers = set_ip_allowlist_with_http_info(body, opts)
data
end

# Set IP Allowlist
# Create or update IP allowlist and rules for organization or API key. The IP allowlist restricts API access to specific CIDR blocks. Organization-level allowlists apply to all API keys unless overridden by a key-specific allowlist.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
def set_ip_allowlist_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.set_ip_allowlist ...'
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 IPAllowlistApi.set_ip_allowlist"
end
# resource path
local_var_path = '/public/v1/submit/set_ip_allowlist'

# 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: IPAllowlistApi#set_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
end
end
Loading
Loading