turnkey_client 0.0.13 → 0.0.15

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.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +66 -8
  3. data/lib/turnkey_client/api/api_keys_api.rb +14 -14
  4. data/lib/turnkey_client/api/app_proof_api.rb +77 -0
  5. data/lib/turnkey_client/api/authenticators_api.rb +16 -16
  6. data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
  7. data/lib/turnkey_client/api/consensus_api.rb +8 -8
  8. data/lib/turnkey_client/api/default_api.rb +77 -0
  9. data/lib/turnkey_client/api/features_api.rb +8 -8
  10. data/lib/turnkey_client/api/invitations_api.rb +8 -8
  11. data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
  12. data/lib/turnkey_client/api/organizations_api.rb +18 -18
  13. data/lib/turnkey_client/api/policies_api.rb +256 -24
  14. data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
  15. data/lib/turnkey_client/api/private_keys_api.rb +28 -28
  16. data/lib/turnkey_client/api/sessions_api.rb +184 -10
  17. data/lib/turnkey_client/api/signing_api.rb +12 -12
  18. data/lib/turnkey_client/api/user_auth_api.rb +310 -20
  19. data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
  20. data/lib/turnkey_client/api/user_tags_api.rb +12 -12
  21. data/lib/turnkey_client/api/user_verification_api.rb +135 -0
  22. data/lib/turnkey_client/api/users_api.rb +194 -20
  23. data/lib/turnkey_client/api/wallets_api.rb +48 -48
  24. data/lib/turnkey_client/models/activity.rb +13 -1
  25. data/lib/turnkey_client/models/activity_type.rb +21 -0
  26. data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
  27. data/lib/turnkey_client/models/address_format.rb +1 -0
  28. data/lib/turnkey_client/models/api_key.rb +1 -0
  29. data/lib/turnkey_client/models/api_key_params.rb +1 -0
  30. data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
  31. data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
  32. data/lib/turnkey_client/models/app_proof.rb +255 -0
  33. data/lib/turnkey_client/models/boot_proof.rb +315 -0
  34. data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
  35. data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
  36. data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
  37. data/lib/turnkey_client/models/create_oauth2_credential_request.rb +288 -0
  38. data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
  39. data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
  40. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
  41. data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
  42. data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
  43. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
  44. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
  45. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
  46. data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
  47. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
  48. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
  49. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
  50. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +19 -4
  51. data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
  52. data/lib/turnkey_client/models/create_users_request.rb +2 -2
  53. data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
  54. data/lib/turnkey_client/models/credential_type.rb +3 -0
  55. data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
  56. data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
  57. data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +288 -0
  58. data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
  59. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
  60. data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
  61. data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
  62. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
  63. data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
  64. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
  65. data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
  66. data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
  67. data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
  68. data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
  69. data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
  70. data/lib/turnkey_client/models/email_customization_params.rb +5 -0
  71. data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
  72. data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
  73. data/lib/turnkey_client/models/feature.rb +1 -0
  74. data/lib/turnkey_client/models/feature_name.rb +1 -0
  75. data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
  76. data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
  77. data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
  78. data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
  79. data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
  80. data/lib/turnkey_client/models/get_activities_request.rb +3 -3
  81. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  82. data/lib/turnkey_client/models/get_activity_request.rb +2 -2
  83. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  84. data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
  85. data/lib/turnkey_client/models/get_app_proofs_request.rb +226 -0
  86. data/lib/turnkey_client/models/get_app_proofs_response.rb +212 -0
  87. data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
  88. data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
  89. data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
  90. data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
  91. data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
  92. data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
  93. data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
  94. data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
  95. data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
  96. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  97. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  98. data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
  99. data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
  100. data/lib/turnkey_client/models/get_policy_request.rb +2 -2
  101. data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
  102. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  103. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  104. data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
  105. data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
  106. data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
  107. data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
  108. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
  109. data/lib/turnkey_client/models/get_user_request.rb +2 -2
  110. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  111. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  112. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
  113. data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
  114. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +15 -8
  115. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  116. data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
  117. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  118. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  119. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  120. data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
  121. data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +326 -0
  122. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
  123. data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +236 -0
  124. data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
  125. data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
  126. data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
  127. data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
  128. data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
  129. data/lib/turnkey_client/models/init_otp_request.rb +288 -0
  130. data/lib/turnkey_client/models/init_otp_result.rb +211 -0
  131. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
  132. data/lib/turnkey_client/models/intent.rb +193 -4
  133. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  134. data/lib/turnkey_client/models/list_oauth2_credentials_request.rb +211 -0
  135. data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
  136. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  137. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  138. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  139. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  140. data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
  141. data/lib/turnkey_client/models/oauth2_authenticate_request.rb +288 -0
  142. data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
  143. data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
  144. data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
  145. data/lib/turnkey_client/models/oauth_intent.rb +18 -5
  146. data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
  147. data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
  148. data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
  149. data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
  150. data/lib/turnkey_client/models/otp_login_intent.rb +259 -0
  151. data/lib/turnkey_client/models/otp_login_request.rb +288 -0
  152. data/lib/turnkey_client/models/otp_login_result.rb +211 -0
  153. data/lib/turnkey_client/models/outcome.rb +31 -0
  154. data/lib/turnkey_client/models/payload_encoding.rb +2 -0
  155. data/lib/turnkey_client/models/policy.rb +2 -0
  156. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  157. data/lib/turnkey_client/models/result.rb +184 -4
  158. data/lib/turnkey_client/models/root_user_params.rb +3 -2
  159. data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
  160. data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
  161. data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
  162. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
  163. data/lib/turnkey_client/models/signature_scheme.rb +26 -0
  164. data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
  165. data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
  166. data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
  167. data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
  168. data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
  169. data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
  170. data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
  171. data/lib/turnkey_client/models/transaction_type.rb +1 -0
  172. data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
  173. data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +346 -0
  174. data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
  175. data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
  176. data/lib/turnkey_client/models/update_oauth2_credential_request.rb +288 -0
  177. data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
  178. data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
  179. data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
  180. data/lib/turnkey_client/models/update_policy_request.rb +2 -2
  181. data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
  182. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
  183. data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
  184. data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
  185. data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
  186. data/lib/turnkey_client/models/update_user_intent.rb +4 -1
  187. data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
  188. data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
  189. data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
  190. data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
  191. data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
  192. data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
  193. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
  194. data/lib/turnkey_client/models/user.rb +3 -1
  195. data/lib/turnkey_client/models/user_params.rb +4 -3
  196. data/lib/turnkey_client/models/user_params_v2.rb +4 -3
  197. data/lib/turnkey_client/models/user_params_v3.rb +301 -0
  198. data/lib/turnkey_client/models/verify_otp_intent.rb +248 -0
  199. data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
  200. data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
  201. data/lib/turnkey_client/models/wallet_account.rb +24 -4
  202. data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
  203. data/lib/turnkey_client/models/wallet_params.rb +2 -1
  204. data/lib/turnkey_client/version.rb +1 -1
  205. data/lib/turnkey_client.rb +93 -0
  206. data/turnkey_client-0.0.13.gem +0 -0
  207. data/turnkey_client-0.0.14.gem +0 -0
  208. metadata +99 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 735f419505b71e2c17a4b6d98a462154bed1f9c69ae8108071644c57790630d6
4
- data.tar.gz: 97e239f9f8ce70527e983ae839afbb09e3ffa566ace0c28aa2b0cb54fb42b0e0
3
+ metadata.gz: 9f01f4f78891458b9b95476a312d1195983159b140cd7e7f2294dfbd131c8ae8
4
+ data.tar.gz: 7cfdd50b651f12004ceb49d2b470385523346d09bf94e5279d7172a3eea6b238
5
5
  SHA512:
6
- metadata.gz: d353e062d0a91636a6bd43ad6ea58c285a19015a77ae130bfc9a0d23cfe8af3c371e7e01d4a5b60207fcf50da850dab9c8a1e10e208174867562cdf39508ffee
7
- data.tar.gz: 6d325ede310f1498ed5cdeac65842af814cbaded0027694ba5e323d4afe1c32822fe59143998662003efbd19e2be9c091d7b4ee33bbdee08c9530f9e2690e534
6
+ metadata.gz: c440982ac92485071fc6836c80d74b7b26611bb2689b798b29888b7cda231b96d30c2c7faa50d2fffe89ba5709145386bafaa3ff6f6669b2708ffa974558fb57
7
+ data.tar.gz: b39ab30fd6e0559d5d9a94972460dedadc5a35a9f110ea174d2b9c2d8b5513713a4f3fb9cc86ff51e6871c5de457bcf74ab339e826a540e0af5db6b9f1c733c1
@@ -15,8 +15,8 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
- # List Activities
19
- # List all Activities within an Organization
18
+ # List activities
19
+ # List all activities within an organization.
20
20
  # @param body
21
21
  # @param [Hash] opts the optional parameters
22
22
  # @return [GetActivitiesResponse]
@@ -25,8 +25,8 @@ module TurnkeyClient
25
25
  data
26
26
  end
27
27
 
28
- # List Activities
29
- # List all Activities within an Organization
28
+ # List activities
29
+ # List all activities within an organization.
30
30
  # @param body
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(GetActivitiesResponse, Integer, Hash)>] GetActivitiesResponse data, response status code and response headers
@@ -73,8 +73,8 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
- # Get Activity
77
- # Get details about an Activity
76
+ # Get activity
77
+ # Get details about an activity.
78
78
  # @param body
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [ActivityResponse]
@@ -83,8 +83,8 @@ module TurnkeyClient
83
83
  data
84
84
  end
85
85
 
86
- # Get Activity
87
- # Get details about an Activity
86
+ # Get activity
87
+ # Get details about an activity.
88
88
  # @param body
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -131,5 +131,63 @@ module TurnkeyClient
131
131
  end
132
132
  return data, status_code, headers
133
133
  end
134
+ # Get policy evaluations
135
+ # Get the policy evaluations for an activity.
136
+ # @param body
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [GetPolicyEvaluationsResponse]
139
+ def get_policy_evaluations(body, opts = {})
140
+ data, _status_code, _headers = get_policy_evaluations_with_http_info(body, opts)
141
+ data
142
+ end
143
+
144
+ # Get policy evaluations
145
+ # Get the policy evaluations for an activity.
146
+ # @param body
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(GetPolicyEvaluationsResponse, Integer, Hash)>] GetPolicyEvaluationsResponse data, response status code and response headers
149
+ def get_policy_evaluations_with_http_info(body, opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: ActivitiesApi.get_policy_evaluations ...'
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 ActivitiesApi.get_policy_evaluations"
156
+ end
157
+ # resource path
158
+ local_var_path = '/public/v1/query/get_policy_evaluations'
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] || 'GetPolicyEvaluationsResponse'
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: ActivitiesApi#get_policy_evaluations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
134
192
  end
135
193
  end
@@ -15,8 +15,8 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
- # Create API Keys
19
- # Add api keys to an existing User
18
+ # Create API keys
19
+ # Add API keys to an existing user.
20
20
  # @param body
21
21
  # @param [Hash] opts the optional parameters
22
22
  # @return [ActivityResponse]
@@ -25,8 +25,8 @@ module TurnkeyClient
25
25
  data
26
26
  end
27
27
 
28
- # Create API Keys
29
- # Add api keys to an existing User
28
+ # Create API keys
29
+ # Add API keys to an existing user.
30
30
  # @param body
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -73,8 +73,8 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
- # Delete API Keys
77
- # Remove api keys from a User
76
+ # Delete API keys
77
+ # Remove api keys from a user.
78
78
  # @param body
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [ActivityResponse]
@@ -83,8 +83,8 @@ module TurnkeyClient
83
83
  data
84
84
  end
85
85
 
86
- # Delete API Keys
87
- # Remove api keys from a User
86
+ # Delete API keys
87
+ # Remove api keys from a user.
88
88
  # @param body
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -132,7 +132,7 @@ module TurnkeyClient
132
132
  return data, status_code, headers
133
133
  end
134
134
  # Get API key
135
- # Get details about an API key
135
+ # Get details about an API key.
136
136
  # @param body
137
137
  # @param [Hash] opts the optional parameters
138
138
  # @return [GetApiKeyResponse]
@@ -142,7 +142,7 @@ module TurnkeyClient
142
142
  end
143
143
 
144
144
  # Get API key
145
- # Get details about an API key
145
+ # Get details about an API key.
146
146
  # @param body
147
147
  # @param [Hash] opts the optional parameters
148
148
  # @return [Array<(GetApiKeyResponse, Integer, Hash)>] GetApiKeyResponse data, response status code and response headers
@@ -189,8 +189,8 @@ module TurnkeyClient
189
189
  end
190
190
  return data, status_code, headers
191
191
  end
192
- # Get API key
193
- # Get details about API keys for a user
192
+ # Get API keys
193
+ # Get details about API keys for a user.
194
194
  # @param body
195
195
  # @param [Hash] opts the optional parameters
196
196
  # @return [GetApiKeysResponse]
@@ -199,8 +199,8 @@ module TurnkeyClient
199
199
  data
200
200
  end
201
201
 
202
- # Get API key
203
- # Get details about API keys for a user
202
+ # Get API keys
203
+ # Get details about API keys for a user.
204
204
  # @param body
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @return [Array<(GetApiKeysResponse, Integer, Hash)>] GetApiKeysResponse data, response status code and response headers
@@ -0,0 +1,77 @@
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 AppProofApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+ # List app proofs for an activity
19
+ # List the app proofs for the given activity.
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [GetAppProofsResponse]
23
+ def get_app_proofs(body, opts = {})
24
+ data, _status_code, _headers = get_app_proofs_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # List app proofs for an activity
29
+ # List the app proofs for the given activity.
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(GetAppProofsResponse, Integer, Hash)>] GetAppProofsResponse data, response status code and response headers
33
+ def get_app_proofs_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AppProofApi.get_app_proofs ...'
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 AppProofApi.get_app_proofs"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/query/list_app_proofs'
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] || 'GetAppProofsResponse'
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: AppProofApi#get_app_proofs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ end
77
+ end
@@ -15,8 +15,8 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
- # Create Authenticators
19
- # Create Authenticators to authenticate requests to Turnkey
18
+ # Create authenticators
19
+ # Create authenticators to authenticate requests to Turnkey.
20
20
  # @param body
21
21
  # @param [Hash] opts the optional parameters
22
22
  # @return [ActivityResponse]
@@ -25,8 +25,8 @@ module TurnkeyClient
25
25
  data
26
26
  end
27
27
 
28
- # Create Authenticators
29
- # Create Authenticators to authenticate requests to Turnkey
28
+ # Create authenticators
29
+ # Create authenticators to authenticate requests to Turnkey.
30
30
  # @param body
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -73,8 +73,8 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
- # Delete Authenticators
77
- # Remove authenticators from a User
76
+ # Delete authenticators
77
+ # Remove authenticators from a user.
78
78
  # @param body
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [ActivityResponse]
@@ -83,8 +83,8 @@ module TurnkeyClient
83
83
  data
84
84
  end
85
85
 
86
- # Delete Authenticators
87
- # Remove authenticators from a User
86
+ # Delete authenticators
87
+ # Remove authenticators from a user.
88
88
  # @param body
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -131,8 +131,8 @@ module TurnkeyClient
131
131
  end
132
132
  return data, status_code, headers
133
133
  end
134
- # Get Authenticator
135
- # Get details about an authenticator
134
+ # Get authenticator
135
+ # Get details about an authenticator.
136
136
  # @param body
137
137
  # @param [Hash] opts the optional parameters
138
138
  # @return [GetAuthenticatorResponse]
@@ -141,8 +141,8 @@ module TurnkeyClient
141
141
  data
142
142
  end
143
143
 
144
- # Get Authenticator
145
- # Get details about an authenticator
144
+ # Get authenticator
145
+ # Get details about an authenticator.
146
146
  # @param body
147
147
  # @param [Hash] opts the optional parameters
148
148
  # @return [Array<(GetAuthenticatorResponse, Integer, Hash)>] GetAuthenticatorResponse data, response status code and response headers
@@ -189,8 +189,8 @@ module TurnkeyClient
189
189
  end
190
190
  return data, status_code, headers
191
191
  end
192
- # Get Authenticators
193
- # Get details about authenticators for a user
192
+ # Get authenticators
193
+ # Get details about authenticators for a user.
194
194
  # @param body
195
195
  # @param [Hash] opts the optional parameters
196
196
  # @return [GetAuthenticatorsResponse]
@@ -199,8 +199,8 @@ module TurnkeyClient
199
199
  data
200
200
  end
201
201
 
202
- # Get Authenticators
203
- # Get details about authenticators for a user
202
+ # Get authenticators
203
+ # Get details about authenticators for a user.
204
204
  # @param body
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @return [Array<(GetAuthenticatorsResponse, Integer, Hash)>] GetAuthenticatorsResponse data, response status code and response headers
@@ -0,0 +1,135 @@
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 BootProofApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+ # Get a specific boot proof
19
+ # Get the boot proof for a given ephemeral key.
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [BootProofResponse]
23
+ def get_boot_proof(body, opts = {})
24
+ data, _status_code, _headers = get_boot_proof_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Get a specific boot proof
29
+ # Get the boot proof for a given ephemeral key.
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
33
+ def get_boot_proof_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: BootProofApi.get_boot_proof ...'
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 BootProofApi.get_boot_proof"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/query/get_boot_proof'
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] || 'BootProofResponse'
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: BootProofApi#get_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Get the latest boot proof for an app
77
+ # Get the latest boot proof for a given enclave app name.
78
+ # @param body
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [BootProofResponse]
81
+ def get_latest_boot_proof(body, opts = {})
82
+ data, _status_code, _headers = get_latest_boot_proof_with_http_info(body, opts)
83
+ data
84
+ end
85
+
86
+ # Get the latest boot proof for an app
87
+ # Get the latest boot proof for a given enclave app name.
88
+ # @param body
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
91
+ def get_latest_boot_proof_with_http_info(body, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: BootProofApi.get_latest_boot_proof ...'
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 BootProofApi.get_latest_boot_proof"
98
+ end
99
+ # resource path
100
+ local_var_path = '/public/v1/query/get_latest_boot_proof'
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] || 'BootProofResponse'
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: BootProofApi#get_latest_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+ end
135
+ end
@@ -15,8 +15,8 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
- # Approve Activity
19
- # Approve an Activity
18
+ # Approve activity
19
+ # Approve an activity.
20
20
  # @param body
21
21
  # @param [Hash] opts the optional parameters
22
22
  # @return [ActivityResponse]
@@ -25,8 +25,8 @@ module TurnkeyClient
25
25
  data
26
26
  end
27
27
 
28
- # Approve Activity
29
- # Approve an Activity
28
+ # Approve activity
29
+ # Approve an activity.
30
30
  # @param body
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -73,8 +73,8 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
- # Reject Activity
77
- # Reject an Activity
76
+ # Reject activity
77
+ # Reject an activity.
78
78
  # @param body
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [ActivityResponse]
@@ -83,8 +83,8 @@ module TurnkeyClient
83
83
  data
84
84
  end
85
85
 
86
- # Reject Activity
87
- # Reject an Activity
86
+ # Reject activity
87
+ # Reject an activity.
88
88
  # @param body
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -0,0 +1,77 @@
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 DefaultApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+ # Get OAuth 2.0 credential
19
+ # Get details about an OAuth 2.0 credential.
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [GetOauth2CredentialResponse]
23
+ def get_oauth2_credential(body, opts = {})
24
+ data, _status_code, _headers = get_oauth2_credential_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Get OAuth 2.0 credential
29
+ # Get details about an OAuth 2.0 credential.
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(GetOauth2CredentialResponse, Integer, Hash)>] GetOauth2CredentialResponse data, response status code and response headers
33
+ def get_oauth2_credential_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_oauth2_credential ...'
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 DefaultApi.get_oauth2_credential"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/query/get_oauth2_credential'
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] || 'GetOauth2CredentialResponse'
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: DefaultApi#get_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ end
77
+ end
@@ -15,8 +15,8 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
- # Remove Organization Feature
19
- # Removes an organization feature. This activity must be approved by the current root quorum.
18
+ # Remove organization feature
19
+ # Remove an organization feature. This activity must be approved by the current root quorum.
20
20
  # @param body
21
21
  # @param [Hash] opts the optional parameters
22
22
  # @return [ActivityResponse]
@@ -25,8 +25,8 @@ module TurnkeyClient
25
25
  data
26
26
  end
27
27
 
28
- # Remove Organization Feature
29
- # Removes an organization feature. This activity must be approved by the current root quorum.
28
+ # Remove organization feature
29
+ # Remove an organization feature. This activity must be approved by the current root quorum.
30
30
  # @param body
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -73,8 +73,8 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
- # Set Organization Feature
77
- # Sets an organization feature. This activity must be approved by the current root quorum.
76
+ # Set organization feature
77
+ # Set an organization feature. This activity must be approved by the current root quorum.
78
78
  # @param body
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [ActivityResponse]
@@ -83,8 +83,8 @@ module TurnkeyClient
83
83
  data
84
84
  end
85
85
 
86
- # Set Organization Feature
87
- # Sets an organization feature. This activity must be approved by the current root quorum.
86
+ # Set organization feature
87
+ # Set an organization feature. This activity must be approved by the current root quorum.
88
88
  # @param body
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers