turnkey_client 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/default_api.rb +46 -0
- data/lib/turnkey_client/api/ip_allowlist_api.rb +193 -0
- data/lib/turnkey_client/api/organizations_api.rb +290 -0
- data/lib/turnkey_client/api/signing_api.rb +232 -0
- data/lib/turnkey_client/api/tvc_api.rb +773 -0
- data/lib/turnkey_client/api/wallets_api.rb +4 -4
- data/lib/turnkey_client/configuration.rb +7 -0
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +14 -4
- data/lib/turnkey_client/models/activity_type.rb +21 -0
- data/lib/turnkey_client/models/address_format.rb +2 -0
- data/lib/turnkey_client/models/app_status.rb +243 -0
- data/lib/turnkey_client/models/boot_proof.rb +17 -6
- data/lib/turnkey_client/models/create_oauth_providers_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +2 -2
- data/lib/turnkey_client/models/create_oauth_providers_result_v2.rb +213 -0
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v8.rb +316 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v8.rb +230 -0
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +9 -9
- data/lib/turnkey_client/models/create_tvc_app_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +45 -48
- data/lib/turnkey_client/models/create_tvc_deployment_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_request.rb +288 -0
- data/lib/turnkey_client/models/create_users_intent_v4.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_webhook_endpoint_intent.rb +238 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_result.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_result.rb +211 -0
- data/lib/turnkey_client/models/deployment_status.rb +255 -0
- data/lib/turnkey_client/models/eth_failure_details.rb +208 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +12 -1
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_status_response.rb +210 -0
- data/lib/turnkey_client/models/get_ip_allowlist_request.rb +222 -0
- data/lib/turnkey_client/models/get_ip_allowlist_response.rb +210 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +10 -1
- data/lib/turnkey_client/models/get_tvc_app_deployments_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_deployments_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_app_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_response.rb +210 -0
- data/lib/turnkey_client/models/get_tvc_apps_request.rb +211 -0
- data/lib/turnkey_client/models/get_tvc_apps_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_deployment_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_deployment_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_address_balances_request.rb +4 -4
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +1 -1
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/init_otp_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_result_v2.rb +226 -0
- data/lib/turnkey_client/models/intent.rb +193 -4
- data/lib/turnkey_client/models/ip_allowlist.rb +261 -0
- data/lib/turnkey_client/models/ip_allowlist_intent_rule.rb +222 -0
- data/lib/turnkey_client/models/ip_allowlist_rule.rb +232 -0
- data/lib/turnkey_client/models/list_supported_assets_request.rb +3 -3
- data/lib/turnkey_client/models/list_webhook_endpoints_request.rb +211 -0
- data/lib/turnkey_client/models/list_webhook_endpoints_response.rb +212 -0
- data/lib/turnkey_client/models/login_usage.rb +211 -0
- data/lib/turnkey_client/models/noop_codegen_anchor_response.rb +219 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +6 -2
- data/lib/turnkey_client/models/oauth_provider_params_v2.rb +230 -0
- data/lib/turnkey_client/models/oidc_claims.rb +241 -0
- data/lib/turnkey_client/models/otp_login_intent_v2.rb +262 -0
- data/lib/turnkey_client/models/otp_login_request.rb +2 -2
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_intent.rb +240 -0
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_result.rb +211 -0
- data/lib/turnkey_client/models/quorum_key_share_approval_bundle.rb +241 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_intent.rb +207 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/result.rb +166 -4
- data/lib/turnkey_client/models/root_user_params_v5.rb +284 -0
- data/lib/turnkey_client/models/set_ip_allowlist_intent.rb +241 -0
- data/lib/turnkey_client/models/set_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/set_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/signup_usage.rb +249 -0
- data/lib/turnkey_client/models/signup_usage_v2.rb +249 -0
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +3 -3
- data/lib/turnkey_client/models/solana_config.rb +207 -0
- data/lib/turnkey_client/models/solana_failure_details.rb +273 -0
- data/lib/turnkey_client/models/solana_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/spark_claim_leaf.rb +241 -0
- data/lib/turnkey_client/models/spark_claim_package.rb +275 -0
- data/lib/turnkey_client/models/spark_claim_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_claim_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_claim_transfer_result.rb +230 -0
- data/lib/turnkey_client/models/spark_deposit_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_encrypted_operator_package.rb +226 -0
- data/lib/turnkey_client/models/spark_frost_commitment.rb +241 -0
- data/lib/turnkey_client/models/spark_htlc_preimage_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_identity_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_key_derivation.rb +241 -0
- data/lib/turnkey_client/models/spark_leaf_public_key.rb +226 -0
- data/lib/turnkey_client/models/spark_lightning_receive_package.rb +228 -0
- data/lib/turnkey_client/models/spark_operator_recipient.rb +226 -0
- data/lib/turnkey_client/models/spark_partial_signature.rb +241 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_result.rb +228 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_result.rb +245 -0
- data/lib/turnkey_client/models/spark_sign_frost_intent.rb +228 -0
- data/lib/turnkey_client/models/spark_sign_frost_request.rb +288 -0
- data/lib/turnkey_client/models/spark_sign_frost_result.rb +213 -0
- data/lib/turnkey_client/models/spark_signature_request.rb +268 -0
- data/lib/turnkey_client/models/spark_signing_leaf_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_static_deposit_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_transfer_leaf.rb +272 -0
- data/lib/turnkey_client/models/spark_transfer_package.rb +275 -0
- data/lib/turnkey_client/models/token_usage.rb +252 -0
- data/lib/turnkey_client/models/tvc_app.rb +353 -0
- data/lib/turnkey_client/models/tvc_container_spec.rb +302 -0
- data/lib/turnkey_client/models/tvc_deployment.rb +372 -0
- data/lib/turnkey_client/models/tvc_health_check_type.rb +27 -0
- data/lib/turnkey_client/models/tvc_manifest.rb +254 -0
- data/lib/turnkey_client/models/tvc_operator.rb +269 -0
- data/lib/turnkey_client/models/tvc_operator_approval.rb +283 -0
- data/lib/turnkey_client/models/tvc_operator_set.rb +301 -0
- data/lib/turnkey_client/models/tx_error.rb +22 -4
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +17 -5
- data/lib/turnkey_client/models/update_organization_name_intent.rb +211 -0
- data/lib/turnkey_client/models/update_organization_name_request.rb +298 -0
- data/lib/turnkey_client/models/update_organization_name_result.rb +226 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_result.rb +196 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_intent.rb +244 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +15 -6
- data/lib/turnkey_client/models/usage_type.rb +27 -0
- data/lib/turnkey_client/models/user_params_v4.rb +301 -0
- data/lib/turnkey_client/models/validate_tvc_image_request.rb +237 -0
- data/lib/turnkey_client/models/validate_tvc_image_response.rb +205 -0
- data/lib/turnkey_client/models/verify_otp_intent_v2.rb +237 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +2 -2
- data/lib/turnkey_client/models/web_authn_stamp.rb +256 -0
- data/lib/turnkey_client/models/webhook_endpoint_data.rb +283 -0
- data/lib/turnkey_client/models/webhook_subscription_params.rb +233 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +122 -0
- metadata +124 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa132d6e411bbcf6ff61329af1300b16448617eca0abc855720f210538f03ff7
|
|
4
|
+
data.tar.gz: d7afac59e38ad4ab9246f4ad966841af7eeee901007c66a28d144e70670a792c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f647902af3f6b65233e1c9912d8be8999b8737eea58eeea27920afe5d4b679853ce6e35b0c31b22d204dfe1bb3bc99c6580108c437a529f0d15b1197cbf3f173
|
|
7
|
+
data.tar.gz: 8564fe549867d405497fb45e72eea221b80afca72a1aba69642897c20ba053a572cf4a693c1ea34417e2916feae05e8fe2c3306e76a02d11f90eaeeb317031b7
|
|
@@ -73,5 +73,51 @@ module TurnkeyClient
|
|
|
73
73
|
end
|
|
74
74
|
return data, status_code, headers
|
|
75
75
|
end
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [NOOPCodegenAnchorResponse]
|
|
78
|
+
def n_oop_codegen_anchor(opts = {})
|
|
79
|
+
data, _status_code, _headers = n_oop_codegen_anchor_with_http_info(opts)
|
|
80
|
+
data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [Array<(NOOPCodegenAnchorResponse, Integer, Hash)>] NOOPCodegenAnchorResponse data, response status code and response headers
|
|
85
|
+
def n_oop_codegen_anchor_with_http_info(opts = {})
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.n_oop_codegen_anchor ...'
|
|
88
|
+
end
|
|
89
|
+
# resource path
|
|
90
|
+
local_var_path = '/tkhq/api/v1/noop-codegen-anchor'
|
|
91
|
+
|
|
92
|
+
# query parameters
|
|
93
|
+
query_params = opts[:query_params] || {}
|
|
94
|
+
|
|
95
|
+
# header parameters
|
|
96
|
+
header_params = opts[:header_params] || {}
|
|
97
|
+
# HTTP header 'Accept' (if needed)
|
|
98
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
99
|
+
|
|
100
|
+
# form parameters
|
|
101
|
+
form_params = opts[:form_params] || {}
|
|
102
|
+
|
|
103
|
+
# http body (model)
|
|
104
|
+
post_body = opts[:body]
|
|
105
|
+
|
|
106
|
+
return_type = opts[:return_type] || 'NOOPCodegenAnchorResponse'
|
|
107
|
+
|
|
108
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
110
|
+
:header_params => header_params,
|
|
111
|
+
:query_params => query_params,
|
|
112
|
+
:form_params => form_params,
|
|
113
|
+
:body => post_body,
|
|
114
|
+
:auth_names => auth_names,
|
|
115
|
+
:return_type => return_type)
|
|
116
|
+
|
|
117
|
+
if @api_client.config.debugging
|
|
118
|
+
@api_client.config.logger.debug "API called: DefaultApi#n_oop_codegen_anchor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
119
|
+
end
|
|
120
|
+
return data, status_code, headers
|
|
121
|
+
end
|
|
76
122
|
end
|
|
77
123
|
end
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class IPAllowlistApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Get IP Allowlist
|
|
19
|
+
# Get IP allowlist and rules for an organization.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [GetIpAllowlistResponse]
|
|
23
|
+
def get_ip_allowlist(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = get_ip_allowlist_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Get IP Allowlist
|
|
29
|
+
# Get IP allowlist and rules for an organization.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(GetIpAllowlistResponse, Integer, Hash)>] GetIpAllowlistResponse data, response status code and response headers
|
|
33
|
+
def get_ip_allowlist_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.get_ip_allowlist ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IPAllowlistApi.get_ip_allowlist"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/query/get_ip_allowlist'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'GetIpAllowlistResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: IPAllowlistApi#get_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
# Remove IP Allowlist
|
|
77
|
+
# 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).
|
|
78
|
+
# @param body
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [ActivityResponse]
|
|
81
|
+
def remove_ip_allowlist(body, opts = {})
|
|
82
|
+
data, _status_code, _headers = remove_ip_allowlist_with_http_info(body, opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Remove IP Allowlist
|
|
87
|
+
# 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).
|
|
88
|
+
# @param body
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
91
|
+
def remove_ip_allowlist_with_http_info(body, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.remove_ip_allowlist ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'body' is set
|
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IPAllowlistApi.remove_ip_allowlist"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/public/v1/submit/remove_ip_allowlist'
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
109
|
+
# HTTP header 'Content-Type'
|
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
111
|
+
|
|
112
|
+
# form parameters
|
|
113
|
+
form_params = opts[:form_params] || {}
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
117
|
+
|
|
118
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
119
|
+
|
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type)
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: IPAllowlistApi#remove_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
# Set IP Allowlist
|
|
135
|
+
# 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.
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [ActivityResponse]
|
|
139
|
+
def set_ip_allowlist(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = set_ip_allowlist_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Set IP Allowlist
|
|
145
|
+
# 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.
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
149
|
+
def set_ip_allowlist_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: IPAllowlistApi.set_ip_allowlist ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IPAllowlistApi.set_ip_allowlist"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/submit/set_ip_allowlist'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: IPAllowlistApi#set_ip_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
@@ -73,6 +73,64 @@ module TurnkeyClient
|
|
|
73
73
|
end
|
|
74
74
|
return data, status_code, headers
|
|
75
75
|
end
|
|
76
|
+
# Create webhook endpoint
|
|
77
|
+
# Create a webhook endpoint for an organization.
|
|
78
|
+
# @param body
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [ActivityResponse]
|
|
81
|
+
def create_webhook_endpoint(body, opts = {})
|
|
82
|
+
data, _status_code, _headers = create_webhook_endpoint_with_http_info(body, opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Create webhook endpoint
|
|
87
|
+
# Create a webhook endpoint for an organization.
|
|
88
|
+
# @param body
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
91
|
+
def create_webhook_endpoint_with_http_info(body, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_webhook_endpoint ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'body' is set
|
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.create_webhook_endpoint"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/public/v1/submit/create_webhook_endpoint'
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
109
|
+
# HTTP header 'Content-Type'
|
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
111
|
+
|
|
112
|
+
# form parameters
|
|
113
|
+
form_params = opts[:form_params] || {}
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
117
|
+
|
|
118
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
119
|
+
|
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type)
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
76
134
|
# Delete sub-organization
|
|
77
135
|
# Delete a sub-organization.
|
|
78
136
|
# @param body
|
|
@@ -131,6 +189,64 @@ module TurnkeyClient
|
|
|
131
189
|
end
|
|
132
190
|
return data, status_code, headers
|
|
133
191
|
end
|
|
192
|
+
# Delete webhook endpoint
|
|
193
|
+
# Delete a webhook endpoint for an organization.
|
|
194
|
+
# @param body
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [ActivityResponse]
|
|
197
|
+
def delete_webhook_endpoint(body, opts = {})
|
|
198
|
+
data, _status_code, _headers = delete_webhook_endpoint_with_http_info(body, opts)
|
|
199
|
+
data
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Delete webhook endpoint
|
|
203
|
+
# Delete a webhook endpoint for an organization.
|
|
204
|
+
# @param body
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
207
|
+
def delete_webhook_endpoint_with_http_info(body, opts = {})
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_webhook_endpoint ...'
|
|
210
|
+
end
|
|
211
|
+
# verify the required parameter 'body' is set
|
|
212
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.delete_webhook_endpoint"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/public/v1/submit/delete_webhook_endpoint'
|
|
217
|
+
|
|
218
|
+
# query parameters
|
|
219
|
+
query_params = opts[:query_params] || {}
|
|
220
|
+
|
|
221
|
+
# header parameters
|
|
222
|
+
header_params = opts[:header_params] || {}
|
|
223
|
+
# HTTP header 'Accept' (if needed)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
225
|
+
# HTTP header 'Content-Type'
|
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
227
|
+
|
|
228
|
+
# form parameters
|
|
229
|
+
form_params = opts[:form_params] || {}
|
|
230
|
+
|
|
231
|
+
# http body (model)
|
|
232
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
233
|
+
|
|
234
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
235
|
+
|
|
236
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
238
|
+
:header_params => header_params,
|
|
239
|
+
:query_params => query_params,
|
|
240
|
+
:form_params => form_params,
|
|
241
|
+
:body => post_body,
|
|
242
|
+
:auth_names => auth_names,
|
|
243
|
+
:return_type => return_type)
|
|
244
|
+
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
134
250
|
# Get configs
|
|
135
251
|
# Get quorum settings and features for an organization.
|
|
136
252
|
# @param body
|
|
@@ -305,6 +421,122 @@ module TurnkeyClient
|
|
|
305
421
|
end
|
|
306
422
|
return data, status_code, headers
|
|
307
423
|
end
|
|
424
|
+
# List webhook endpoints
|
|
425
|
+
# List webhook endpoints within an organization.
|
|
426
|
+
# @param body
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [ListWebhookEndpointsResponse]
|
|
429
|
+
def list_webhook_endpoints(body, opts = {})
|
|
430
|
+
data, _status_code, _headers = list_webhook_endpoints_with_http_info(body, opts)
|
|
431
|
+
data
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# List webhook endpoints
|
|
435
|
+
# List webhook endpoints within an organization.
|
|
436
|
+
# @param body
|
|
437
|
+
# @param [Hash] opts the optional parameters
|
|
438
|
+
# @return [Array<(ListWebhookEndpointsResponse, Integer, Hash)>] ListWebhookEndpointsResponse data, response status code and response headers
|
|
439
|
+
def list_webhook_endpoints_with_http_info(body, opts = {})
|
|
440
|
+
if @api_client.config.debugging
|
|
441
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_webhook_endpoints ...'
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'body' is set
|
|
444
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.list_webhook_endpoints"
|
|
446
|
+
end
|
|
447
|
+
# resource path
|
|
448
|
+
local_var_path = '/public/v1/query/list_webhook_endpoints'
|
|
449
|
+
|
|
450
|
+
# query parameters
|
|
451
|
+
query_params = opts[:query_params] || {}
|
|
452
|
+
|
|
453
|
+
# header parameters
|
|
454
|
+
header_params = opts[:header_params] || {}
|
|
455
|
+
# HTTP header 'Accept' (if needed)
|
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
457
|
+
# HTTP header 'Content-Type'
|
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
459
|
+
|
|
460
|
+
# form parameters
|
|
461
|
+
form_params = opts[:form_params] || {}
|
|
462
|
+
|
|
463
|
+
# http body (model)
|
|
464
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
465
|
+
|
|
466
|
+
return_type = opts[:return_type] || 'ListWebhookEndpointsResponse'
|
|
467
|
+
|
|
468
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
469
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:auth_names => auth_names,
|
|
475
|
+
:return_type => return_type)
|
|
476
|
+
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_webhook_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
482
|
+
# Update organization name
|
|
483
|
+
# Update the name of an organization.
|
|
484
|
+
# @param body
|
|
485
|
+
# @param [Hash] opts the optional parameters
|
|
486
|
+
# @return [ActivityResponse]
|
|
487
|
+
def update_organization_name(body, opts = {})
|
|
488
|
+
data, _status_code, _headers = update_organization_name_with_http_info(body, opts)
|
|
489
|
+
data
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Update organization name
|
|
493
|
+
# Update the name of an organization.
|
|
494
|
+
# @param body
|
|
495
|
+
# @param [Hash] opts the optional parameters
|
|
496
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
497
|
+
def update_organization_name_with_http_info(body, opts = {})
|
|
498
|
+
if @api_client.config.debugging
|
|
499
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_name ...'
|
|
500
|
+
end
|
|
501
|
+
# verify the required parameter 'body' is set
|
|
502
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
503
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.update_organization_name"
|
|
504
|
+
end
|
|
505
|
+
# resource path
|
|
506
|
+
local_var_path = '/public/v1/submit/update_organization_name'
|
|
507
|
+
|
|
508
|
+
# query parameters
|
|
509
|
+
query_params = opts[:query_params] || {}
|
|
510
|
+
|
|
511
|
+
# header parameters
|
|
512
|
+
header_params = opts[:header_params] || {}
|
|
513
|
+
# HTTP header 'Accept' (if needed)
|
|
514
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
515
|
+
# HTTP header 'Content-Type'
|
|
516
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
517
|
+
|
|
518
|
+
# form parameters
|
|
519
|
+
form_params = opts[:form_params] || {}
|
|
520
|
+
|
|
521
|
+
# http body (model)
|
|
522
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
523
|
+
|
|
524
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
525
|
+
|
|
526
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
528
|
+
:header_params => header_params,
|
|
529
|
+
:query_params => query_params,
|
|
530
|
+
:form_params => form_params,
|
|
531
|
+
:body => post_body,
|
|
532
|
+
:auth_names => auth_names,
|
|
533
|
+
:return_type => return_type)
|
|
534
|
+
|
|
535
|
+
if @api_client.config.debugging
|
|
536
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
+
end
|
|
538
|
+
return data, status_code, headers
|
|
539
|
+
end
|
|
308
540
|
# Update root quorum
|
|
309
541
|
# Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
|
|
310
542
|
# @param body
|
|
@@ -363,5 +595,63 @@ module TurnkeyClient
|
|
|
363
595
|
end
|
|
364
596
|
return data, status_code, headers
|
|
365
597
|
end
|
|
598
|
+
# Update webhook endpoint
|
|
599
|
+
# Update a webhook endpoint for an organization.
|
|
600
|
+
# @param body
|
|
601
|
+
# @param [Hash] opts the optional parameters
|
|
602
|
+
# @return [ActivityResponse]
|
|
603
|
+
def update_webhook_endpoint(body, opts = {})
|
|
604
|
+
data, _status_code, _headers = update_webhook_endpoint_with_http_info(body, opts)
|
|
605
|
+
data
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Update webhook endpoint
|
|
609
|
+
# Update a webhook endpoint for an organization.
|
|
610
|
+
# @param body
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
613
|
+
def update_webhook_endpoint_with_http_info(body, opts = {})
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_webhook_endpoint ...'
|
|
616
|
+
end
|
|
617
|
+
# verify the required parameter 'body' is set
|
|
618
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
619
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.update_webhook_endpoint"
|
|
620
|
+
end
|
|
621
|
+
# resource path
|
|
622
|
+
local_var_path = '/public/v1/submit/update_webhook_endpoint'
|
|
623
|
+
|
|
624
|
+
# query parameters
|
|
625
|
+
query_params = opts[:query_params] || {}
|
|
626
|
+
|
|
627
|
+
# header parameters
|
|
628
|
+
header_params = opts[:header_params] || {}
|
|
629
|
+
# HTTP header 'Accept' (if needed)
|
|
630
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
631
|
+
# HTTP header 'Content-Type'
|
|
632
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
633
|
+
|
|
634
|
+
# form parameters
|
|
635
|
+
form_params = opts[:form_params] || {}
|
|
636
|
+
|
|
637
|
+
# http body (model)
|
|
638
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
639
|
+
|
|
640
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
641
|
+
|
|
642
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
643
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
644
|
+
:header_params => header_params,
|
|
645
|
+
:query_params => query_params,
|
|
646
|
+
:form_params => form_params,
|
|
647
|
+
:body => post_body,
|
|
648
|
+
:auth_names => auth_names,
|
|
649
|
+
:return_type => return_type)
|
|
650
|
+
|
|
651
|
+
if @api_client.config.debugging
|
|
652
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
653
|
+
end
|
|
654
|
+
return data, status_code, headers
|
|
655
|
+
end
|
|
366
656
|
end
|
|
367
657
|
end
|