turnkey_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +7 -0
  4. data/Rakefile +8 -0
  5. data/git_push.sh +55 -0
  6. data/lib/turnkey_client/api/activities_api.rb +136 -0
  7. data/lib/turnkey_client/api/api_keys_api.rb +252 -0
  8. data/lib/turnkey_client/api/authenticators_api.rb +252 -0
  9. data/lib/turnkey_client/api/consensus_api.rb +136 -0
  10. data/lib/turnkey_client/api/features_api.rb +136 -0
  11. data/lib/turnkey_client/api/invitations_api.rb +136 -0
  12. data/lib/turnkey_client/api/organizations_api.rb +194 -0
  13. data/lib/turnkey_client/api/policies_api.rb +310 -0
  14. data/lib/turnkey_client/api/private_key_tags_api.rb +194 -0
  15. data/lib/turnkey_client/api/private_keys_api.rb +252 -0
  16. data/lib/turnkey_client/api/public_api_service_api.rb +66 -0
  17. data/lib/turnkey_client/api/sessions_api.rb +78 -0
  18. data/lib/turnkey_client/api/signing_api.rb +136 -0
  19. data/lib/turnkey_client/api/user_auth_api.rb +78 -0
  20. data/lib/turnkey_client/api/user_recovery_api.rb +136 -0
  21. data/lib/turnkey_client/api/user_tags_api.rb +194 -0
  22. data/lib/turnkey_client/api/users_api.rb +310 -0
  23. data/lib/turnkey_client/api/wallets_api.rb +426 -0
  24. data/lib/turnkey_client/api_client.rb +446 -0
  25. data/lib/turnkey_client/api_error.rb +57 -0
  26. data/lib/turnkey_client/configuration.rb +216 -0
  27. data/lib/turnkey_client/models/datav1_tag.rb +269 -0
  28. data/lib/turnkey_client/models/externaldatav1_address.rb +215 -0
  29. data/lib/turnkey_client/models/externaldatav1_credential.rb +226 -0
  30. data/lib/turnkey_client/models/externaldatav1_quorum.rb +229 -0
  31. data/lib/turnkey_client/models/externaldatav1_timestamp.rb +225 -0
  32. data/lib/turnkey_client/models/immutableactivityv1_address.rb +215 -0
  33. data/lib/turnkey_client/models/protobuf_any.rb +201 -0
  34. data/lib/turnkey_client/models/rpc_status.rb +226 -0
  35. data/lib/turnkey_client/models/v1_accept_invitation_intent.rb +241 -0
  36. data/lib/turnkey_client/models/v1_accept_invitation_intent_v2.rb +241 -0
  37. data/lib/turnkey_client/models/v1_accept_invitation_result.rb +227 -0
  38. data/lib/turnkey_client/models/v1_access_type.rb +29 -0
  39. data/lib/turnkey_client/models/v1_activate_billing_tier_intent.rb +212 -0
  40. data/lib/turnkey_client/models/v1_activate_billing_tier_result.rb +212 -0
  41. data/lib/turnkey_client/models/v1_activity.rb +371 -0
  42. data/lib/turnkey_client/models/v1_activity_response.rb +211 -0
  43. data/lib/turnkey_client/models/v1_activity_status.rb +32 -0
  44. data/lib/turnkey_client/models/v1_activity_type.rb +83 -0
  45. data/lib/turnkey_client/models/v1_address_format.rb +31 -0
  46. data/lib/turnkey_client/models/v1_api_key.rb +279 -0
  47. data/lib/turnkey_client/models/v1_api_key_params.rb +237 -0
  48. data/lib/turnkey_client/models/v1_api_only_user_params.rb +256 -0
  49. data/lib/turnkey_client/models/v1_approve_activity_intent.rb +212 -0
  50. data/lib/turnkey_client/models/v1_approve_activity_request.rb +289 -0
  51. data/lib/turnkey_client/models/v1_attestation.rb +259 -0
  52. data/lib/turnkey_client/models/v1_authenticator.rb +345 -0
  53. data/lib/turnkey_client/models/v1_authenticator_attestation_response.rb +280 -0
  54. data/lib/turnkey_client/models/v1_authenticator_params.rb +256 -0
  55. data/lib/turnkey_client/models/v1_authenticator_params_v2.rb +241 -0
  56. data/lib/turnkey_client/models/v1_authenticator_transport.rb +31 -0
  57. data/lib/turnkey_client/models/v1_create_api_keys_intent.rb +229 -0
  58. data/lib/turnkey_client/models/v1_create_api_keys_request.rb +289 -0
  59. data/lib/turnkey_client/models/v1_create_api_keys_result.rb +214 -0
  60. data/lib/turnkey_client/models/v1_create_api_only_users_intent.rb +214 -0
  61. data/lib/turnkey_client/models/v1_create_api_only_users_request.rb +289 -0
  62. data/lib/turnkey_client/models/v1_create_api_only_users_result.rb +214 -0
  63. data/lib/turnkey_client/models/v1_create_authenticators_intent.rb +229 -0
  64. data/lib/turnkey_client/models/v1_create_authenticators_intent_v2.rb +229 -0
  65. data/lib/turnkey_client/models/v1_create_authenticators_request.rb +289 -0
  66. data/lib/turnkey_client/models/v1_create_authenticators_result.rb +214 -0
  67. data/lib/turnkey_client/models/v1_create_invitations_intent.rb +214 -0
  68. data/lib/turnkey_client/models/v1_create_invitations_request.rb +289 -0
  69. data/lib/turnkey_client/models/v1_create_invitations_result.rb +214 -0
  70. data/lib/turnkey_client/models/v1_create_organization_intent.rb +251 -0
  71. data/lib/turnkey_client/models/v1_create_organization_intent_v2.rb +251 -0
  72. data/lib/turnkey_client/models/v1_create_organization_result.rb +212 -0
  73. data/lib/turnkey_client/models/v1_create_policy_intent.rb +252 -0
  74. data/lib/turnkey_client/models/v1_create_policy_intent_v2.rb +252 -0
  75. data/lib/turnkey_client/models/v1_create_policy_intent_v3.rb +255 -0
  76. data/lib/turnkey_client/models/v1_create_policy_request.rb +289 -0
  77. data/lib/turnkey_client/models/v1_create_policy_result.rb +212 -0
  78. data/lib/turnkey_client/models/v1_create_private_key_tag_intent.rb +229 -0
  79. data/lib/turnkey_client/models/v1_create_private_key_tag_request.rb +289 -0
  80. data/lib/turnkey_client/models/v1_create_private_key_tag_result.rb +229 -0
  81. data/lib/turnkey_client/models/v1_create_private_keys_intent.rb +214 -0
  82. data/lib/turnkey_client/models/v1_create_private_keys_intent_v2.rb +214 -0
  83. data/lib/turnkey_client/models/v1_create_private_keys_request.rb +289 -0
  84. data/lib/turnkey_client/models/v1_create_private_keys_result.rb +214 -0
  85. data/lib/turnkey_client/models/v1_create_private_keys_result_v2.rb +214 -0
  86. data/lib/turnkey_client/models/v1_create_sub_organization_intent.rb +226 -0
  87. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v2.rb +244 -0
  88. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v3.rb +261 -0
  89. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v4.rb +273 -0
  90. data/lib/turnkey_client/models/v1_create_sub_organization_request.rb +289 -0
  91. data/lib/turnkey_client/models/v1_create_sub_organization_result.rb +211 -0
  92. data/lib/turnkey_client/models/v1_create_sub_organization_result_v3.rb +228 -0
  93. data/lib/turnkey_client/models/v1_create_sub_organization_result_v4.rb +220 -0
  94. data/lib/turnkey_client/models/v1_create_user_tag_intent.rb +229 -0
  95. data/lib/turnkey_client/models/v1_create_user_tag_request.rb +289 -0
  96. data/lib/turnkey_client/models/v1_create_user_tag_result.rb +229 -0
  97. data/lib/turnkey_client/models/v1_create_users_intent.rb +214 -0
  98. data/lib/turnkey_client/models/v1_create_users_intent_v2.rb +214 -0
  99. data/lib/turnkey_client/models/v1_create_users_request.rb +289 -0
  100. data/lib/turnkey_client/models/v1_create_users_result.rb +214 -0
  101. data/lib/turnkey_client/models/v1_create_wallet_accounts_intent.rb +229 -0
  102. data/lib/turnkey_client/models/v1_create_wallet_accounts_request.rb +289 -0
  103. data/lib/turnkey_client/models/v1_create_wallet_accounts_result.rb +214 -0
  104. data/lib/turnkey_client/models/v1_create_wallet_intent.rb +239 -0
  105. data/lib/turnkey_client/models/v1_create_wallet_request.rb +289 -0
  106. data/lib/turnkey_client/models/v1_create_wallet_result.rb +229 -0
  107. data/lib/turnkey_client/models/v1_cred_props_authentication_extensions_client_outputs.rb +211 -0
  108. data/lib/turnkey_client/models/v1_credential_type.rb +29 -0
  109. data/lib/turnkey_client/models/v1_curve.rb +28 -0
  110. data/lib/turnkey_client/models/v1_delete_api_keys_intent.rb +229 -0
  111. data/lib/turnkey_client/models/v1_delete_api_keys_request.rb +289 -0
  112. data/lib/turnkey_client/models/v1_delete_api_keys_result.rb +214 -0
  113. data/lib/turnkey_client/models/v1_delete_authenticators_intent.rb +229 -0
  114. data/lib/turnkey_client/models/v1_delete_authenticators_request.rb +289 -0
  115. data/lib/turnkey_client/models/v1_delete_authenticators_result.rb +214 -0
  116. data/lib/turnkey_client/models/v1_delete_invitation_intent.rb +212 -0
  117. data/lib/turnkey_client/models/v1_delete_invitation_request.rb +289 -0
  118. data/lib/turnkey_client/models/v1_delete_invitation_result.rb +212 -0
  119. data/lib/turnkey_client/models/v1_delete_organization_intent.rb +212 -0
  120. data/lib/turnkey_client/models/v1_delete_organization_result.rb +212 -0
  121. data/lib/turnkey_client/models/v1_delete_payment_method_intent.rb +212 -0
  122. data/lib/turnkey_client/models/v1_delete_payment_method_result.rb +212 -0
  123. data/lib/turnkey_client/models/v1_delete_policy_intent.rb +212 -0
  124. data/lib/turnkey_client/models/v1_delete_policy_request.rb +289 -0
  125. data/lib/turnkey_client/models/v1_delete_policy_result.rb +212 -0
  126. data/lib/turnkey_client/models/v1_delete_private_key_tags_intent.rb +214 -0
  127. data/lib/turnkey_client/models/v1_delete_private_key_tags_result.rb +231 -0
  128. data/lib/turnkey_client/models/v1_delete_user_tags_intent.rb +214 -0
  129. data/lib/turnkey_client/models/v1_delete_user_tags_result.rb +231 -0
  130. data/lib/turnkey_client/models/v1_delete_users_intent.rb +214 -0
  131. data/lib/turnkey_client/models/v1_delete_users_result.rb +214 -0
  132. data/lib/turnkey_client/models/v1_disable_private_key_intent.rb +212 -0
  133. data/lib/turnkey_client/models/v1_disable_private_key_result.rb +212 -0
  134. data/lib/turnkey_client/models/v1_effect.rb +28 -0
  135. data/lib/turnkey_client/models/v1_email_auth_intent.rb +256 -0
  136. data/lib/turnkey_client/models/v1_email_auth_request.rb +289 -0
  137. data/lib/turnkey_client/models/v1_email_auth_result.rb +227 -0
  138. data/lib/turnkey_client/models/v1_email_customization.rb +233 -0
  139. data/lib/turnkey_client/models/v1_export_private_key_intent.rb +227 -0
  140. data/lib/turnkey_client/models/v1_export_private_key_request.rb +289 -0
  141. data/lib/turnkey_client/models/v1_export_private_key_result.rb +227 -0
  142. data/lib/turnkey_client/models/v1_export_wallet_account_intent.rb +227 -0
  143. data/lib/turnkey_client/models/v1_export_wallet_account_request.rb +289 -0
  144. data/lib/turnkey_client/models/v1_export_wallet_account_result.rb +227 -0
  145. data/lib/turnkey_client/models/v1_export_wallet_intent.rb +236 -0
  146. data/lib/turnkey_client/models/v1_export_wallet_request.rb +289 -0
  147. data/lib/turnkey_client/models/v1_export_wallet_result.rb +227 -0
  148. data/lib/turnkey_client/models/v1_feature.rb +215 -0
  149. data/lib/turnkey_client/models/v1_feature_name.rb +30 -0
  150. data/lib/turnkey_client/models/v1_get_activities_request.rb +245 -0
  151. data/lib/turnkey_client/models/v1_get_activities_response.rb +214 -0
  152. data/lib/turnkey_client/models/v1_get_activity_request.rb +227 -0
  153. data/lib/turnkey_client/models/v1_get_api_key_request.rb +227 -0
  154. data/lib/turnkey_client/models/v1_get_api_key_response.rb +211 -0
  155. data/lib/turnkey_client/models/v1_get_api_keys_request.rb +222 -0
  156. data/lib/turnkey_client/models/v1_get_api_keys_response.rb +214 -0
  157. data/lib/turnkey_client/models/v1_get_authenticator_request.rb +227 -0
  158. data/lib/turnkey_client/models/v1_get_authenticator_response.rb +211 -0
  159. data/lib/turnkey_client/models/v1_get_authenticators_request.rb +227 -0
  160. data/lib/turnkey_client/models/v1_get_authenticators_response.rb +214 -0
  161. data/lib/turnkey_client/models/v1_get_organization_request.rb +212 -0
  162. data/lib/turnkey_client/models/v1_get_organization_response.rb +211 -0
  163. data/lib/turnkey_client/models/v1_get_policies_request.rb +212 -0
  164. data/lib/turnkey_client/models/v1_get_policies_response.rb +214 -0
  165. data/lib/turnkey_client/models/v1_get_policy_request.rb +227 -0
  166. data/lib/turnkey_client/models/v1_get_policy_response.rb +211 -0
  167. data/lib/turnkey_client/models/v1_get_private_key_request.rb +227 -0
  168. data/lib/turnkey_client/models/v1_get_private_key_response.rb +211 -0
  169. data/lib/turnkey_client/models/v1_get_private_keys_request.rb +212 -0
  170. data/lib/turnkey_client/models/v1_get_private_keys_response.rb +214 -0
  171. data/lib/turnkey_client/models/v1_get_user_request.rb +227 -0
  172. data/lib/turnkey_client/models/v1_get_user_response.rb +211 -0
  173. data/lib/turnkey_client/models/v1_get_users_request.rb +212 -0
  174. data/lib/turnkey_client/models/v1_get_users_response.rb +214 -0
  175. data/lib/turnkey_client/models/v1_get_wallet_accounts_request.rb +227 -0
  176. data/lib/turnkey_client/models/v1_get_wallet_accounts_response.rb +214 -0
  177. data/lib/turnkey_client/models/v1_get_wallet_request.rb +227 -0
  178. data/lib/turnkey_client/models/v1_get_wallet_response.rb +211 -0
  179. data/lib/turnkey_client/models/v1_get_wallets_request.rb +212 -0
  180. data/lib/turnkey_client/models/v1_get_wallets_response.rb +214 -0
  181. data/lib/turnkey_client/models/v1_get_whoami_request.rb +212 -0
  182. data/lib/turnkey_client/models/v1_get_whoami_response.rb +257 -0
  183. data/lib/turnkey_client/models/v1_hash_function.rb +30 -0
  184. data/lib/turnkey_client/models/v1_init_user_email_recovery_intent.rb +237 -0
  185. data/lib/turnkey_client/models/v1_init_user_email_recovery_request.rb +289 -0
  186. data/lib/turnkey_client/models/v1_init_user_email_recovery_result.rb +212 -0
  187. data/lib/turnkey_client/models/v1_intent.rb +715 -0
  188. data/lib/turnkey_client/models/v1_invitation.rb +330 -0
  189. data/lib/turnkey_client/models/v1_invitation_params.rb +273 -0
  190. data/lib/turnkey_client/models/v1_invitation_status.rb +29 -0
  191. data/lib/turnkey_client/models/v1_list_private_key_tags_request.rb +212 -0
  192. data/lib/turnkey_client/models/v1_list_private_key_tags_response.rb +214 -0
  193. data/lib/turnkey_client/models/v1_list_user_tags_request.rb +212 -0
  194. data/lib/turnkey_client/models/v1_list_user_tags_response.rb +214 -0
  195. data/lib/turnkey_client/models/v1_mnemonic_language.rb +35 -0
  196. data/lib/turnkey_client/models/v1_noop_codegen_anchor_response.rb +211 -0
  197. data/lib/turnkey_client/models/v1_operator.rb +37 -0
  198. data/lib/turnkey_client/models/v1_organization_data.rb +301 -0
  199. data/lib/turnkey_client/models/v1_pagination.rb +227 -0
  200. data/lib/turnkey_client/models/v1_path_format.rb +27 -0
  201. data/lib/turnkey_client/models/v1_payload_encoding.rb +28 -0
  202. data/lib/turnkey_client/models/v1_policy.rb +314 -0
  203. data/lib/turnkey_client/models/v1_private_key.rb +333 -0
  204. data/lib/turnkey_client/models/v1_private_key_params.rb +260 -0
  205. data/lib/turnkey_client/models/v1_private_key_result.rb +217 -0
  206. data/lib/turnkey_client/models/v1_public_key_credential_with_attestation.rb +323 -0
  207. data/lib/turnkey_client/models/v1_recover_user_intent.rb +226 -0
  208. data/lib/turnkey_client/models/v1_recover_user_request.rb +289 -0
  209. data/lib/turnkey_client/models/v1_recover_user_result.rb +214 -0
  210. data/lib/turnkey_client/models/v1_reject_activity_intent.rb +212 -0
  211. data/lib/turnkey_client/models/v1_reject_activity_request.rb +289 -0
  212. data/lib/turnkey_client/models/v1_remove_organization_feature_intent.rb +211 -0
  213. data/lib/turnkey_client/models/v1_remove_organization_feature_request.rb +289 -0
  214. data/lib/turnkey_client/models/v1_remove_organization_feature_result.rb +214 -0
  215. data/lib/turnkey_client/models/v1_result.rb +602 -0
  216. data/lib/turnkey_client/models/v1_root_user_params.rb +256 -0
  217. data/lib/turnkey_client/models/v1_selector.rb +224 -0
  218. data/lib/turnkey_client/models/v1_selector_v2.rb +226 -0
  219. data/lib/turnkey_client/models/v1_set_organization_feature_intent.rb +226 -0
  220. data/lib/turnkey_client/models/v1_set_organization_feature_request.rb +289 -0
  221. data/lib/turnkey_client/models/v1_set_organization_feature_result.rb +214 -0
  222. data/lib/turnkey_client/models/v1_set_payment_method_intent.rb +287 -0
  223. data/lib/turnkey_client/models/v1_set_payment_method_intent_v2.rb +242 -0
  224. data/lib/turnkey_client/models/v1_set_payment_method_result.rb +242 -0
  225. data/lib/turnkey_client/models/v1_sign_raw_payload_intent.rb +255 -0
  226. data/lib/turnkey_client/models/v1_sign_raw_payload_intent_v2.rb +255 -0
  227. data/lib/turnkey_client/models/v1_sign_raw_payload_request.rb +289 -0
  228. data/lib/turnkey_client/models/v1_sign_raw_payload_result.rb +242 -0
  229. data/lib/turnkey_client/models/v1_sign_transaction_intent.rb +241 -0
  230. data/lib/turnkey_client/models/v1_sign_transaction_intent_v2.rb +241 -0
  231. data/lib/turnkey_client/models/v1_sign_transaction_request.rb +289 -0
  232. data/lib/turnkey_client/models/v1_sign_transaction_result.rb +211 -0
  233. data/lib/turnkey_client/models/v1_simple_client_extension_results.rb +224 -0
  234. data/lib/turnkey_client/models/v1_tag_type.rb +28 -0
  235. data/lib/turnkey_client/models/v1_transaction_type.rb +27 -0
  236. data/lib/turnkey_client/models/v1_update_allowed_origins_intent.rb +214 -0
  237. data/lib/turnkey_client/models/v1_update_allowed_origins_result.rb +197 -0
  238. data/lib/turnkey_client/models/v1_update_policy_intent.rb +261 -0
  239. data/lib/turnkey_client/models/v1_update_policy_request.rb +289 -0
  240. data/lib/turnkey_client/models/v1_update_policy_result.rb +212 -0
  241. data/lib/turnkey_client/models/v1_update_private_key_tag_intent.rb +256 -0
  242. data/lib/turnkey_client/models/v1_update_private_key_tag_request.rb +289 -0
  243. data/lib/turnkey_client/models/v1_update_private_key_tag_result.rb +212 -0
  244. data/lib/turnkey_client/models/v1_update_root_quorum_intent.rb +229 -0
  245. data/lib/turnkey_client/models/v1_update_root_quorum_request.rb +289 -0
  246. data/lib/turnkey_client/models/v1_update_root_quorum_result.rb +197 -0
  247. data/lib/turnkey_client/models/v1_update_user_intent.rb +244 -0
  248. data/lib/turnkey_client/models/v1_update_user_request.rb +289 -0
  249. data/lib/turnkey_client/models/v1_update_user_result.rb +212 -0
  250. data/lib/turnkey_client/models/v1_update_user_tag_intent.rb +256 -0
  251. data/lib/turnkey_client/models/v1_update_user_tag_request.rb +289 -0
  252. data/lib/turnkey_client/models/v1_update_user_tag_result.rb +212 -0
  253. data/lib/turnkey_client/models/v1_user.rb +316 -0
  254. data/lib/turnkey_client/models/v1_user_params.rb +287 -0
  255. data/lib/turnkey_client/models/v1_user_params_v2.rb +273 -0
  256. data/lib/turnkey_client/models/v1_vote.rb +378 -0
  257. data/lib/turnkey_client/models/v1_wallet.rb +270 -0
  258. data/lib/turnkey_client/models/v1_wallet_account.rb +342 -0
  259. data/lib/turnkey_client/models/v1_wallet_account_params.rb +254 -0
  260. data/lib/turnkey_client/models/v1_wallet_params.rb +239 -0
  261. data/lib/turnkey_client/models/v1_wallet_result.rb +228 -0
  262. data/lib/turnkey_client/models/v1_web_authn_stamp.rb +257 -0
  263. data/lib/turnkey_client/version.rb +14 -0
  264. data/lib/turnkey_client.rb +289 -0
  265. data/turnkey_client.gemspec +38 -0
  266. metadata +387 -0
@@ -0,0 +1,602 @@
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
+ Swagger Codegen version: 3.0.53
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module TurnkeyClient
15
+ class V1Result
16
+ attr_accessor :create_organization_result
17
+
18
+ attr_accessor :create_authenticators_result
19
+
20
+ attr_accessor :create_users_result
21
+
22
+ attr_accessor :create_private_keys_result
23
+
24
+ attr_accessor :create_invitations_result
25
+
26
+ attr_accessor :accept_invitation_result
27
+
28
+ attr_accessor :sign_raw_payload_result
29
+
30
+ attr_accessor :create_policy_result
31
+
32
+ attr_accessor :disable_private_key_result
33
+
34
+ attr_accessor :delete_users_result
35
+
36
+ attr_accessor :delete_authenticators_result
37
+
38
+ attr_accessor :delete_invitation_result
39
+
40
+ attr_accessor :delete_organization_result
41
+
42
+ attr_accessor :delete_policy_result
43
+
44
+ attr_accessor :create_user_tag_result
45
+
46
+ attr_accessor :delete_user_tags_result
47
+
48
+ attr_accessor :sign_transaction_result
49
+
50
+ attr_accessor :delete_api_keys_result
51
+
52
+ attr_accessor :create_api_keys_result
53
+
54
+ attr_accessor :create_private_key_tag_result
55
+
56
+ attr_accessor :delete_private_key_tags_result
57
+
58
+ attr_accessor :set_payment_method_result
59
+
60
+ attr_accessor :activate_billing_tier_result
61
+
62
+ attr_accessor :delete_payment_method_result
63
+
64
+ attr_accessor :create_api_only_users_result
65
+
66
+ attr_accessor :update_root_quorum_result
67
+
68
+ attr_accessor :update_user_tag_result
69
+
70
+ attr_accessor :update_private_key_tag_result
71
+
72
+ attr_accessor :create_sub_organization_result
73
+
74
+ attr_accessor :update_allowed_origins_result
75
+
76
+ attr_accessor :create_private_keys_result_v2
77
+
78
+ attr_accessor :update_user_result
79
+
80
+ attr_accessor :update_policy_result
81
+
82
+ attr_accessor :create_sub_organization_result_v3
83
+
84
+ attr_accessor :create_wallet_result
85
+
86
+ attr_accessor :create_wallet_accounts_result
87
+
88
+ attr_accessor :init_user_email_recovery_result
89
+
90
+ attr_accessor :recover_user_result
91
+
92
+ attr_accessor :set_organization_feature_result
93
+
94
+ attr_accessor :remove_organization_feature_result
95
+
96
+ attr_accessor :export_private_key_result
97
+
98
+ attr_accessor :export_wallet_result
99
+
100
+ attr_accessor :create_sub_organization_result_v4
101
+
102
+ attr_accessor :email_auth_result
103
+
104
+ attr_accessor :export_wallet_account_result
105
+
106
+ # Attribute mapping from ruby-style variable name to JSON key.
107
+ def self.attribute_map
108
+ {
109
+ :'create_organization_result' => :'createOrganizationResult',
110
+ :'create_authenticators_result' => :'createAuthenticatorsResult',
111
+ :'create_users_result' => :'createUsersResult',
112
+ :'create_private_keys_result' => :'createPrivateKeysResult',
113
+ :'create_invitations_result' => :'createInvitationsResult',
114
+ :'accept_invitation_result' => :'acceptInvitationResult',
115
+ :'sign_raw_payload_result' => :'signRawPayloadResult',
116
+ :'create_policy_result' => :'createPolicyResult',
117
+ :'disable_private_key_result' => :'disablePrivateKeyResult',
118
+ :'delete_users_result' => :'deleteUsersResult',
119
+ :'delete_authenticators_result' => :'deleteAuthenticatorsResult',
120
+ :'delete_invitation_result' => :'deleteInvitationResult',
121
+ :'delete_organization_result' => :'deleteOrganizationResult',
122
+ :'delete_policy_result' => :'deletePolicyResult',
123
+ :'create_user_tag_result' => :'createUserTagResult',
124
+ :'delete_user_tags_result' => :'deleteUserTagsResult',
125
+ :'sign_transaction_result' => :'signTransactionResult',
126
+ :'delete_api_keys_result' => :'deleteApiKeysResult',
127
+ :'create_api_keys_result' => :'createApiKeysResult',
128
+ :'create_private_key_tag_result' => :'createPrivateKeyTagResult',
129
+ :'delete_private_key_tags_result' => :'deletePrivateKeyTagsResult',
130
+ :'set_payment_method_result' => :'setPaymentMethodResult',
131
+ :'activate_billing_tier_result' => :'activateBillingTierResult',
132
+ :'delete_payment_method_result' => :'deletePaymentMethodResult',
133
+ :'create_api_only_users_result' => :'createApiOnlyUsersResult',
134
+ :'update_root_quorum_result' => :'updateRootQuorumResult',
135
+ :'update_user_tag_result' => :'updateUserTagResult',
136
+ :'update_private_key_tag_result' => :'updatePrivateKeyTagResult',
137
+ :'create_sub_organization_result' => :'createSubOrganizationResult',
138
+ :'update_allowed_origins_result' => :'updateAllowedOriginsResult',
139
+ :'create_private_keys_result_v2' => :'createPrivateKeysResultV2',
140
+ :'update_user_result' => :'updateUserResult',
141
+ :'update_policy_result' => :'updatePolicyResult',
142
+ :'create_sub_organization_result_v3' => :'createSubOrganizationResultV3',
143
+ :'create_wallet_result' => :'createWalletResult',
144
+ :'create_wallet_accounts_result' => :'createWalletAccountsResult',
145
+ :'init_user_email_recovery_result' => :'initUserEmailRecoveryResult',
146
+ :'recover_user_result' => :'recoverUserResult',
147
+ :'set_organization_feature_result' => :'setOrganizationFeatureResult',
148
+ :'remove_organization_feature_result' => :'removeOrganizationFeatureResult',
149
+ :'export_private_key_result' => :'exportPrivateKeyResult',
150
+ :'export_wallet_result' => :'exportWalletResult',
151
+ :'create_sub_organization_result_v4' => :'createSubOrganizationResultV4',
152
+ :'email_auth_result' => :'emailAuthResult',
153
+ :'export_wallet_account_result' => :'exportWalletAccountResult'
154
+ }
155
+ end
156
+
157
+ # Attribute type mapping.
158
+ def self.openapi_types
159
+ {
160
+ :'create_organization_result' => :'Object',
161
+ :'create_authenticators_result' => :'Object',
162
+ :'create_users_result' => :'Object',
163
+ :'create_private_keys_result' => :'Object',
164
+ :'create_invitations_result' => :'Object',
165
+ :'accept_invitation_result' => :'Object',
166
+ :'sign_raw_payload_result' => :'Object',
167
+ :'create_policy_result' => :'Object',
168
+ :'disable_private_key_result' => :'Object',
169
+ :'delete_users_result' => :'Object',
170
+ :'delete_authenticators_result' => :'Object',
171
+ :'delete_invitation_result' => :'Object',
172
+ :'delete_organization_result' => :'Object',
173
+ :'delete_policy_result' => :'Object',
174
+ :'create_user_tag_result' => :'Object',
175
+ :'delete_user_tags_result' => :'Object',
176
+ :'sign_transaction_result' => :'Object',
177
+ :'delete_api_keys_result' => :'Object',
178
+ :'create_api_keys_result' => :'Object',
179
+ :'create_private_key_tag_result' => :'Object',
180
+ :'delete_private_key_tags_result' => :'Object',
181
+ :'set_payment_method_result' => :'Object',
182
+ :'activate_billing_tier_result' => :'Object',
183
+ :'delete_payment_method_result' => :'Object',
184
+ :'create_api_only_users_result' => :'Object',
185
+ :'update_root_quorum_result' => :'Object',
186
+ :'update_user_tag_result' => :'Object',
187
+ :'update_private_key_tag_result' => :'Object',
188
+ :'create_sub_organization_result' => :'Object',
189
+ :'update_allowed_origins_result' => :'Object',
190
+ :'create_private_keys_result_v2' => :'Object',
191
+ :'update_user_result' => :'Object',
192
+ :'update_policy_result' => :'Object',
193
+ :'create_sub_organization_result_v3' => :'Object',
194
+ :'create_wallet_result' => :'Object',
195
+ :'create_wallet_accounts_result' => :'Object',
196
+ :'init_user_email_recovery_result' => :'Object',
197
+ :'recover_user_result' => :'Object',
198
+ :'set_organization_feature_result' => :'Object',
199
+ :'remove_organization_feature_result' => :'Object',
200
+ :'export_private_key_result' => :'Object',
201
+ :'export_wallet_result' => :'Object',
202
+ :'create_sub_organization_result_v4' => :'Object',
203
+ :'email_auth_result' => :'Object',
204
+ :'export_wallet_account_result' => :'Object'
205
+ }
206
+ end
207
+
208
+ # List of attributes with nullable: true
209
+ def self.openapi_nullable
210
+ Set.new([
211
+ ])
212
+ end
213
+
214
+ # Initializes the object
215
+ # @param [Hash] attributes Model attributes in the form of hash
216
+ def initialize(attributes = {})
217
+ if (!attributes.is_a?(Hash))
218
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1Result` initialize method"
219
+ end
220
+
221
+ # check to see if the attribute exists and convert string to symbol for hash key
222
+ attributes = attributes.each_with_object({}) { |(k, v), h|
223
+ if (!self.class.attribute_map.key?(k.to_sym))
224
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1Result`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
225
+ end
226
+ h[k.to_sym] = v
227
+ }
228
+
229
+ if attributes.key?(:'create_organization_result')
230
+ self.create_organization_result = attributes[:'create_organization_result']
231
+ end
232
+
233
+ if attributes.key?(:'create_authenticators_result')
234
+ self.create_authenticators_result = attributes[:'create_authenticators_result']
235
+ end
236
+
237
+ if attributes.key?(:'create_users_result')
238
+ self.create_users_result = attributes[:'create_users_result']
239
+ end
240
+
241
+ if attributes.key?(:'create_private_keys_result')
242
+ self.create_private_keys_result = attributes[:'create_private_keys_result']
243
+ end
244
+
245
+ if attributes.key?(:'create_invitations_result')
246
+ self.create_invitations_result = attributes[:'create_invitations_result']
247
+ end
248
+
249
+ if attributes.key?(:'accept_invitation_result')
250
+ self.accept_invitation_result = attributes[:'accept_invitation_result']
251
+ end
252
+
253
+ if attributes.key?(:'sign_raw_payload_result')
254
+ self.sign_raw_payload_result = attributes[:'sign_raw_payload_result']
255
+ end
256
+
257
+ if attributes.key?(:'create_policy_result')
258
+ self.create_policy_result = attributes[:'create_policy_result']
259
+ end
260
+
261
+ if attributes.key?(:'disable_private_key_result')
262
+ self.disable_private_key_result = attributes[:'disable_private_key_result']
263
+ end
264
+
265
+ if attributes.key?(:'delete_users_result')
266
+ self.delete_users_result = attributes[:'delete_users_result']
267
+ end
268
+
269
+ if attributes.key?(:'delete_authenticators_result')
270
+ self.delete_authenticators_result = attributes[:'delete_authenticators_result']
271
+ end
272
+
273
+ if attributes.key?(:'delete_invitation_result')
274
+ self.delete_invitation_result = attributes[:'delete_invitation_result']
275
+ end
276
+
277
+ if attributes.key?(:'delete_organization_result')
278
+ self.delete_organization_result = attributes[:'delete_organization_result']
279
+ end
280
+
281
+ if attributes.key?(:'delete_policy_result')
282
+ self.delete_policy_result = attributes[:'delete_policy_result']
283
+ end
284
+
285
+ if attributes.key?(:'create_user_tag_result')
286
+ self.create_user_tag_result = attributes[:'create_user_tag_result']
287
+ end
288
+
289
+ if attributes.key?(:'delete_user_tags_result')
290
+ self.delete_user_tags_result = attributes[:'delete_user_tags_result']
291
+ end
292
+
293
+ if attributes.key?(:'sign_transaction_result')
294
+ self.sign_transaction_result = attributes[:'sign_transaction_result']
295
+ end
296
+
297
+ if attributes.key?(:'delete_api_keys_result')
298
+ self.delete_api_keys_result = attributes[:'delete_api_keys_result']
299
+ end
300
+
301
+ if attributes.key?(:'create_api_keys_result')
302
+ self.create_api_keys_result = attributes[:'create_api_keys_result']
303
+ end
304
+
305
+ if attributes.key?(:'create_private_key_tag_result')
306
+ self.create_private_key_tag_result = attributes[:'create_private_key_tag_result']
307
+ end
308
+
309
+ if attributes.key?(:'delete_private_key_tags_result')
310
+ self.delete_private_key_tags_result = attributes[:'delete_private_key_tags_result']
311
+ end
312
+
313
+ if attributes.key?(:'set_payment_method_result')
314
+ self.set_payment_method_result = attributes[:'set_payment_method_result']
315
+ end
316
+
317
+ if attributes.key?(:'activate_billing_tier_result')
318
+ self.activate_billing_tier_result = attributes[:'activate_billing_tier_result']
319
+ end
320
+
321
+ if attributes.key?(:'delete_payment_method_result')
322
+ self.delete_payment_method_result = attributes[:'delete_payment_method_result']
323
+ end
324
+
325
+ if attributes.key?(:'create_api_only_users_result')
326
+ self.create_api_only_users_result = attributes[:'create_api_only_users_result']
327
+ end
328
+
329
+ if attributes.key?(:'update_root_quorum_result')
330
+ self.update_root_quorum_result = attributes[:'update_root_quorum_result']
331
+ end
332
+
333
+ if attributes.key?(:'update_user_tag_result')
334
+ self.update_user_tag_result = attributes[:'update_user_tag_result']
335
+ end
336
+
337
+ if attributes.key?(:'update_private_key_tag_result')
338
+ self.update_private_key_tag_result = attributes[:'update_private_key_tag_result']
339
+ end
340
+
341
+ if attributes.key?(:'create_sub_organization_result')
342
+ self.create_sub_organization_result = attributes[:'create_sub_organization_result']
343
+ end
344
+
345
+ if attributes.key?(:'update_allowed_origins_result')
346
+ self.update_allowed_origins_result = attributes[:'update_allowed_origins_result']
347
+ end
348
+
349
+ if attributes.key?(:'create_private_keys_result_v2')
350
+ self.create_private_keys_result_v2 = attributes[:'create_private_keys_result_v2']
351
+ end
352
+
353
+ if attributes.key?(:'update_user_result')
354
+ self.update_user_result = attributes[:'update_user_result']
355
+ end
356
+
357
+ if attributes.key?(:'update_policy_result')
358
+ self.update_policy_result = attributes[:'update_policy_result']
359
+ end
360
+
361
+ if attributes.key?(:'create_sub_organization_result_v3')
362
+ self.create_sub_organization_result_v3 = attributes[:'create_sub_organization_result_v3']
363
+ end
364
+
365
+ if attributes.key?(:'create_wallet_result')
366
+ self.create_wallet_result = attributes[:'create_wallet_result']
367
+ end
368
+
369
+ if attributes.key?(:'create_wallet_accounts_result')
370
+ self.create_wallet_accounts_result = attributes[:'create_wallet_accounts_result']
371
+ end
372
+
373
+ if attributes.key?(:'init_user_email_recovery_result')
374
+ self.init_user_email_recovery_result = attributes[:'init_user_email_recovery_result']
375
+ end
376
+
377
+ if attributes.key?(:'recover_user_result')
378
+ self.recover_user_result = attributes[:'recover_user_result']
379
+ end
380
+
381
+ if attributes.key?(:'set_organization_feature_result')
382
+ self.set_organization_feature_result = attributes[:'set_organization_feature_result']
383
+ end
384
+
385
+ if attributes.key?(:'remove_organization_feature_result')
386
+ self.remove_organization_feature_result = attributes[:'remove_organization_feature_result']
387
+ end
388
+
389
+ if attributes.key?(:'export_private_key_result')
390
+ self.export_private_key_result = attributes[:'export_private_key_result']
391
+ end
392
+
393
+ if attributes.key?(:'export_wallet_result')
394
+ self.export_wallet_result = attributes[:'export_wallet_result']
395
+ end
396
+
397
+ if attributes.key?(:'create_sub_organization_result_v4')
398
+ self.create_sub_organization_result_v4 = attributes[:'create_sub_organization_result_v4']
399
+ end
400
+
401
+ if attributes.key?(:'email_auth_result')
402
+ self.email_auth_result = attributes[:'email_auth_result']
403
+ end
404
+
405
+ if attributes.key?(:'export_wallet_account_result')
406
+ self.export_wallet_account_result = attributes[:'export_wallet_account_result']
407
+ end
408
+ end
409
+
410
+ # Show invalid properties with the reasons. Usually used together with valid?
411
+ # @return Array for valid properties with the reasons
412
+ def list_invalid_properties
413
+ invalid_properties = Array.new
414
+ invalid_properties
415
+ end
416
+
417
+ # Check to see if the all the properties in the model are valid
418
+ # @return true if the model is valid
419
+ def valid?
420
+ true
421
+ end
422
+
423
+ # Checks equality by comparing each attribute.
424
+ # @param [Object] Object to be compared
425
+ def ==(o)
426
+ return true if self.equal?(o)
427
+ self.class == o.class &&
428
+ create_organization_result == o.create_organization_result &&
429
+ create_authenticators_result == o.create_authenticators_result &&
430
+ create_users_result == o.create_users_result &&
431
+ create_private_keys_result == o.create_private_keys_result &&
432
+ create_invitations_result == o.create_invitations_result &&
433
+ accept_invitation_result == o.accept_invitation_result &&
434
+ sign_raw_payload_result == o.sign_raw_payload_result &&
435
+ create_policy_result == o.create_policy_result &&
436
+ disable_private_key_result == o.disable_private_key_result &&
437
+ delete_users_result == o.delete_users_result &&
438
+ delete_authenticators_result == o.delete_authenticators_result &&
439
+ delete_invitation_result == o.delete_invitation_result &&
440
+ delete_organization_result == o.delete_organization_result &&
441
+ delete_policy_result == o.delete_policy_result &&
442
+ create_user_tag_result == o.create_user_tag_result &&
443
+ delete_user_tags_result == o.delete_user_tags_result &&
444
+ sign_transaction_result == o.sign_transaction_result &&
445
+ delete_api_keys_result == o.delete_api_keys_result &&
446
+ create_api_keys_result == o.create_api_keys_result &&
447
+ create_private_key_tag_result == o.create_private_key_tag_result &&
448
+ delete_private_key_tags_result == o.delete_private_key_tags_result &&
449
+ set_payment_method_result == o.set_payment_method_result &&
450
+ activate_billing_tier_result == o.activate_billing_tier_result &&
451
+ delete_payment_method_result == o.delete_payment_method_result &&
452
+ create_api_only_users_result == o.create_api_only_users_result &&
453
+ update_root_quorum_result == o.update_root_quorum_result &&
454
+ update_user_tag_result == o.update_user_tag_result &&
455
+ update_private_key_tag_result == o.update_private_key_tag_result &&
456
+ create_sub_organization_result == o.create_sub_organization_result &&
457
+ update_allowed_origins_result == o.update_allowed_origins_result &&
458
+ create_private_keys_result_v2 == o.create_private_keys_result_v2 &&
459
+ update_user_result == o.update_user_result &&
460
+ update_policy_result == o.update_policy_result &&
461
+ create_sub_organization_result_v3 == o.create_sub_organization_result_v3 &&
462
+ create_wallet_result == o.create_wallet_result &&
463
+ create_wallet_accounts_result == o.create_wallet_accounts_result &&
464
+ init_user_email_recovery_result == o.init_user_email_recovery_result &&
465
+ recover_user_result == o.recover_user_result &&
466
+ set_organization_feature_result == o.set_organization_feature_result &&
467
+ remove_organization_feature_result == o.remove_organization_feature_result &&
468
+ export_private_key_result == o.export_private_key_result &&
469
+ export_wallet_result == o.export_wallet_result &&
470
+ create_sub_organization_result_v4 == o.create_sub_organization_result_v4 &&
471
+ email_auth_result == o.email_auth_result &&
472
+ export_wallet_account_result == o.export_wallet_account_result
473
+ end
474
+
475
+ # @see the `==` method
476
+ # @param [Object] Object to be compared
477
+ def eql?(o)
478
+ self == o
479
+ end
480
+
481
+ # Calculates hash code according to all attributes.
482
+ # @return [Integer] Hash code
483
+ def hash
484
+ [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result].hash
485
+ end
486
+
487
+ # Builds the object from hash
488
+ # @param [Hash] attributes Model attributes in the form of hash
489
+ # @return [Object] Returns the model itself
490
+ def self.build_from_hash(attributes)
491
+ new.build_from_hash(attributes)
492
+ end
493
+
494
+ # Builds the object from hash
495
+ # @param [Hash] attributes Model attributes in the form of hash
496
+ # @return [Object] Returns the model itself
497
+ def build_from_hash(attributes)
498
+ return nil unless attributes.is_a?(Hash)
499
+ self.class.openapi_types.each_pair do |key, type|
500
+ if type =~ /\AArray<(.*)>/i
501
+ # check to ensure the input is an array given that the attribute
502
+ # is documented as an array but the input is not
503
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
504
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
505
+ end
506
+ elsif !attributes[self.class.attribute_map[key]].nil?
507
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
508
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
509
+ self.send("#{key}=", nil)
510
+ end
511
+ end
512
+
513
+ self
514
+ end
515
+
516
+ # Deserializes the data based on type
517
+ # @param string type Data type
518
+ # @param string value Value to be deserialized
519
+ # @return [Object] Deserialized data
520
+ def _deserialize(type, value)
521
+ case type.to_sym
522
+ when :DateTime
523
+ DateTime.parse(value)
524
+ when :Date
525
+ Date.parse(value)
526
+ when :String
527
+ value.to_s
528
+ when :Integer
529
+ value.to_i
530
+ when :Float
531
+ value.to_f
532
+ when :Boolean
533
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
534
+ true
535
+ else
536
+ false
537
+ end
538
+ when :Object
539
+ # generic object (usually a Hash), return directly
540
+ value
541
+ when /\AArray<(?<inner_type>.+)>\z/
542
+ inner_type = Regexp.last_match[:inner_type]
543
+ value.map { |v| _deserialize(inner_type, v) }
544
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
545
+ k_type = Regexp.last_match[:k_type]
546
+ v_type = Regexp.last_match[:v_type]
547
+ {}.tap do |hash|
548
+ value.each do |k, v|
549
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
550
+ end
551
+ end
552
+ else # model
553
+ TurnkeyClient.const_get(type).build_from_hash(value)
554
+ end
555
+ end
556
+
557
+ # Returns the string representation of the object
558
+ # @return [String] String presentation of the object
559
+ def to_s
560
+ to_hash.to_s
561
+ end
562
+
563
+ # to_body is an alias to to_hash (backward compatibility)
564
+ # @return [Hash] Returns the object in the form of hash
565
+ def to_body
566
+ to_hash
567
+ end
568
+
569
+ # Returns the object in the form of hash
570
+ # @return [Hash] Returns the object in the form of hash
571
+ def to_hash
572
+ hash = {}
573
+ self.class.attribute_map.each_pair do |attr, param|
574
+ value = self.send(attr)
575
+ if value.nil?
576
+ is_nullable = self.class.openapi_nullable.include?(attr)
577
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
578
+ end
579
+
580
+ hash[param] = _to_hash(value)
581
+ end
582
+ hash
583
+ end
584
+
585
+ # Outputs non-array value in the form of hash
586
+ # For object, use to_hash. Otherwise, just return the value
587
+ # @param [Object] value Any valid value
588
+ # @return [Hash] Returns the value in the form of hash
589
+ def _to_hash(value)
590
+ if value.is_a?(Array)
591
+ value.compact.map { |v| _to_hash(v) }
592
+ elsif value.is_a?(Hash)
593
+ {}.tap do |hash|
594
+ value.each { |k, v| hash[k] = _to_hash(v) }
595
+ end
596
+ elsif value.respond_to? :to_hash
597
+ value.to_hash
598
+ else
599
+ value
600
+ end
601
+ end end
602
+ end