turnkey_client 0.0.3 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +0 -1
  3. data/lib/turnkey_client/api/api_keys_api.rb +0 -1
  4. data/lib/turnkey_client/api/authenticators_api.rb +0 -1
  5. data/lib/turnkey_client/api/consensus_api.rb +0 -1
  6. data/lib/turnkey_client/api/features_api.rb +0 -1
  7. data/lib/turnkey_client/api/invitations_api.rb +0 -1
  8. data/lib/turnkey_client/api/organizations_api.rb +58 -1
  9. data/lib/turnkey_client/api/policies_api.rb +58 -1
  10. data/lib/turnkey_client/api/private_key_tags_api.rb +0 -1
  11. data/lib/turnkey_client/api/private_keys_api.rb +0 -1
  12. data/lib/turnkey_client/api/sessions_api.rb +118 -3
  13. data/lib/turnkey_client/api/signing_api.rb +58 -1
  14. data/lib/turnkey_client/api/user_auth_api.rb +0 -1
  15. data/lib/turnkey_client/api/user_recovery_api.rb +0 -1
  16. data/lib/turnkey_client/api/user_tags_api.rb +0 -1
  17. data/lib/turnkey_client/api/users_api.rb +232 -1
  18. data/lib/turnkey_client/api/wallets_api.rb +0 -1
  19. data/lib/turnkey_client/api_client.rb +0 -1
  20. data/lib/turnkey_client/api_error.rb +0 -1
  21. data/lib/turnkey_client/configuration.rb +0 -1
  22. data/lib/turnkey_client/models/accept_invitation_intent.rb +0 -1
  23. data/lib/turnkey_client/models/accept_invitation_intent_v2.rb +0 -1
  24. data/lib/turnkey_client/models/accept_invitation_result.rb +0 -1
  25. data/lib/turnkey_client/models/access_type.rb +0 -1
  26. data/lib/turnkey_client/models/activate_billing_tier_intent.rb +0 -1
  27. data/lib/turnkey_client/models/activate_billing_tier_result.rb +0 -1
  28. data/lib/turnkey_client/models/activity.rb +13 -5
  29. data/lib/turnkey_client/models/activity_response.rb +0 -1
  30. data/lib/turnkey_client/models/activity_status.rb +0 -1
  31. data/lib/turnkey_client/models/activity_type.rb +11 -1
  32. data/lib/turnkey_client/models/activity_v1_address.rb +0 -1
  33. data/lib/turnkey_client/models/address_format.rb +0 -1
  34. data/lib/turnkey_client/models/any.rb +200 -0
  35. data/lib/turnkey_client/models/api_key.rb +0 -1
  36. data/lib/turnkey_client/models/api_key_curve.rb +28 -0
  37. data/lib/turnkey_client/models/api_key_params.rb +0 -1
  38. data/lib/turnkey_client/models/api_key_params_v2.rb +250 -0
  39. data/lib/turnkey_client/models/api_only_user_params.rb +0 -1
  40. data/lib/turnkey_client/models/approve_activity_intent.rb +0 -1
  41. data/lib/turnkey_client/models/approve_activity_request.rb +0 -1
  42. data/lib/turnkey_client/models/attestation.rb +0 -1
  43. data/lib/turnkey_client/models/authenticator.rb +0 -1
  44. data/lib/turnkey_client/models/authenticator_attestation_response.rb +0 -1
  45. data/lib/turnkey_client/models/authenticator_params.rb +0 -1
  46. data/lib/turnkey_client/models/authenticator_params_v2.rb +0 -1
  47. data/lib/turnkey_client/models/authenticator_transport.rb +0 -1
  48. data/lib/turnkey_client/models/config.rb +216 -0
  49. data/lib/turnkey_client/models/create_api_keys_intent.rb +0 -1
  50. data/lib/turnkey_client/models/create_api_keys_intent_v2.rb +228 -0
  51. data/lib/turnkey_client/models/create_api_keys_request.rb +2 -3
  52. data/lib/turnkey_client/models/create_api_keys_result.rb +0 -1
  53. data/lib/turnkey_client/models/create_api_only_users_intent.rb +0 -1
  54. data/lib/turnkey_client/models/create_api_only_users_result.rb +0 -1
  55. data/lib/turnkey_client/models/create_authenticators_intent.rb +0 -1
  56. data/lib/turnkey_client/models/create_authenticators_intent_v2.rb +0 -1
  57. data/lib/turnkey_client/models/create_authenticators_request.rb +0 -1
  58. data/lib/turnkey_client/models/create_authenticators_result.rb +0 -1
  59. data/lib/turnkey_client/models/create_invitations_intent.rb +0 -1
  60. data/lib/turnkey_client/models/create_invitations_request.rb +0 -1
  61. data/lib/turnkey_client/models/create_invitations_result.rb +0 -1
  62. data/lib/turnkey_client/models/create_oauth_providers_intent.rb +228 -0
  63. data/lib/turnkey_client/models/create_oauth_providers_request.rb +288 -0
  64. data/lib/turnkey_client/models/create_oauth_providers_result.rb +213 -0
  65. data/lib/turnkey_client/models/create_organization_intent.rb +0 -1
  66. data/lib/turnkey_client/models/create_organization_intent_v2.rb +0 -1
  67. data/lib/turnkey_client/models/create_organization_result.rb +0 -1
  68. data/lib/turnkey_client/models/create_policies_intent.rb +213 -0
  69. data/lib/turnkey_client/models/create_policies_request.rb +288 -0
  70. data/lib/turnkey_client/models/create_policies_result.rb +213 -0
  71. data/lib/turnkey_client/models/create_policy_intent.rb +0 -1
  72. data/lib/turnkey_client/models/create_policy_intent_v2.rb +0 -1
  73. data/lib/turnkey_client/models/create_policy_intent_v3.rb +0 -1
  74. data/lib/turnkey_client/models/create_policy_request.rb +0 -1
  75. data/lib/turnkey_client/models/create_policy_result.rb +0 -1
  76. data/lib/turnkey_client/models/create_private_key_tag_intent.rb +0 -1
  77. data/lib/turnkey_client/models/create_private_key_tag_request.rb +0 -1
  78. data/lib/turnkey_client/models/create_private_key_tag_result.rb +0 -1
  79. data/lib/turnkey_client/models/create_private_keys_intent.rb +0 -1
  80. data/lib/turnkey_client/models/create_private_keys_intent_v2.rb +0 -1
  81. data/lib/turnkey_client/models/create_private_keys_request.rb +0 -1
  82. data/lib/turnkey_client/models/create_private_keys_result.rb +0 -1
  83. data/lib/turnkey_client/models/create_private_keys_result_v2.rb +0 -1
  84. data/lib/turnkey_client/models/create_read_only_session_intent.rb +196 -0
  85. data/lib/turnkey_client/models/create_read_only_session_request.rb +288 -0
  86. data/lib/turnkey_client/models/create_read_only_session_result.rb +286 -0
  87. data/lib/turnkey_client/models/create_read_write_session_intent.rb +246 -0
  88. data/lib/turnkey_client/models/create_read_write_session_request.rb +288 -0
  89. data/lib/turnkey_client/models/create_read_write_session_result.rb +286 -0
  90. data/lib/turnkey_client/models/create_sub_organization_intent.rb +0 -1
  91. data/lib/turnkey_client/models/create_sub_organization_intent_v2.rb +0 -1
  92. data/lib/turnkey_client/models/create_sub_organization_intent_v3.rb +0 -1
  93. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +0 -1
  94. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +272 -0
  95. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +272 -0
  96. data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -3
  97. data/lib/turnkey_client/models/create_sub_organization_result.rb +0 -1
  98. data/lib/turnkey_client/models/create_sub_organization_result_v3.rb +0 -1
  99. data/lib/turnkey_client/models/create_sub_organization_result_v4.rb +0 -1
  100. data/lib/turnkey_client/models/create_sub_organization_result_v5.rb +230 -0
  101. data/lib/turnkey_client/models/create_sub_organization_result_v6.rb +230 -0
  102. data/lib/turnkey_client/models/create_user_tag_intent.rb +0 -1
  103. data/lib/turnkey_client/models/create_user_tag_request.rb +0 -1
  104. data/lib/turnkey_client/models/create_user_tag_result.rb +0 -1
  105. data/lib/turnkey_client/models/create_users_intent.rb +0 -1
  106. data/lib/turnkey_client/models/create_users_intent_v2.rb +0 -1
  107. data/lib/turnkey_client/models/create_users_request.rb +0 -1
  108. data/lib/turnkey_client/models/create_users_result.rb +0 -1
  109. data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +0 -1
  110. data/lib/turnkey_client/models/create_wallet_accounts_request.rb +0 -1
  111. data/lib/turnkey_client/models/create_wallet_accounts_result.rb +0 -1
  112. data/lib/turnkey_client/models/create_wallet_intent.rb +0 -1
  113. data/lib/turnkey_client/models/create_wallet_request.rb +0 -1
  114. data/lib/turnkey_client/models/create_wallet_result.rb +0 -1
  115. data/lib/turnkey_client/models/cred_props_authentication_extensions_client_outputs.rb +0 -1
  116. data/lib/turnkey_client/models/credential_type.rb +3 -1
  117. data/lib/turnkey_client/models/curve.rb +0 -1
  118. data/lib/turnkey_client/models/data_v1_address.rb +0 -1
  119. data/lib/turnkey_client/models/delete_api_keys_intent.rb +0 -1
  120. data/lib/turnkey_client/models/delete_api_keys_request.rb +0 -1
  121. data/lib/turnkey_client/models/delete_api_keys_result.rb +0 -1
  122. data/lib/turnkey_client/models/delete_authenticators_intent.rb +0 -1
  123. data/lib/turnkey_client/models/delete_authenticators_request.rb +0 -1
  124. data/lib/turnkey_client/models/delete_authenticators_result.rb +0 -1
  125. data/lib/turnkey_client/models/delete_invitation_intent.rb +0 -1
  126. data/lib/turnkey_client/models/delete_invitation_request.rb +0 -1
  127. data/lib/turnkey_client/models/delete_invitation_result.rb +0 -1
  128. data/lib/turnkey_client/models/delete_oauth_providers_intent.rb +228 -0
  129. data/lib/turnkey_client/models/delete_oauth_providers_request.rb +288 -0
  130. data/lib/turnkey_client/models/delete_oauth_providers_result.rb +213 -0
  131. data/lib/turnkey_client/models/delete_organization_intent.rb +0 -1
  132. data/lib/turnkey_client/models/delete_organization_result.rb +0 -1
  133. data/lib/turnkey_client/models/delete_payment_method_intent.rb +0 -1
  134. data/lib/turnkey_client/models/delete_payment_method_result.rb +0 -1
  135. data/lib/turnkey_client/models/delete_policy_intent.rb +0 -1
  136. data/lib/turnkey_client/models/delete_policy_request.rb +0 -1
  137. data/lib/turnkey_client/models/delete_policy_result.rb +0 -1
  138. data/lib/turnkey_client/models/delete_private_key_tags_intent.rb +0 -1
  139. data/lib/turnkey_client/models/delete_private_key_tags_request.rb +0 -1
  140. data/lib/turnkey_client/models/delete_private_key_tags_result.rb +0 -1
  141. data/lib/turnkey_client/models/delete_user_tags_intent.rb +0 -1
  142. data/lib/turnkey_client/models/delete_user_tags_request.rb +0 -1
  143. data/lib/turnkey_client/models/delete_user_tags_result.rb +0 -1
  144. data/lib/turnkey_client/models/delete_users_intent.rb +0 -1
  145. data/lib/turnkey_client/models/delete_users_request.rb +0 -1
  146. data/lib/turnkey_client/models/delete_users_result.rb +0 -1
  147. data/lib/turnkey_client/models/disable_private_key_intent.rb +0 -1
  148. data/lib/turnkey_client/models/disable_private_key_result.rb +0 -1
  149. data/lib/turnkey_client/models/effect.rb +0 -1
  150. data/lib/turnkey_client/models/email_auth_intent.rb +14 -5
  151. data/lib/turnkey_client/models/email_auth_intent_v2.rb +265 -0
  152. data/lib/turnkey_client/models/email_auth_request.rb +2 -3
  153. data/lib/turnkey_client/models/email_auth_result.rb +0 -1
  154. data/lib/turnkey_client/models/email_customization_params.rb +1 -2
  155. data/lib/turnkey_client/models/export_private_key_intent.rb +0 -1
  156. data/lib/turnkey_client/models/export_private_key_request.rb +0 -1
  157. data/lib/turnkey_client/models/export_private_key_result.rb +0 -1
  158. data/lib/turnkey_client/models/export_wallet_account_intent.rb +0 -1
  159. data/lib/turnkey_client/models/export_wallet_account_request.rb +0 -1
  160. data/lib/turnkey_client/models/export_wallet_account_result.rb +0 -1
  161. data/lib/turnkey_client/models/export_wallet_intent.rb +0 -1
  162. data/lib/turnkey_client/models/export_wallet_request.rb +0 -1
  163. data/lib/turnkey_client/models/export_wallet_result.rb +0 -1
  164. data/lib/turnkey_client/models/external_data_v1_credential.rb +0 -1
  165. data/lib/turnkey_client/models/external_data_v1_quorum.rb +228 -0
  166. data/lib/turnkey_client/models/external_data_v1_timestamp.rb +0 -1
  167. data/lib/turnkey_client/models/feature.rb +0 -1
  168. data/lib/turnkey_client/models/feature_name.rb +0 -1
  169. data/lib/turnkey_client/models/get_activities_request.rb +0 -1
  170. data/lib/turnkey_client/models/get_activities_response.rb +0 -1
  171. data/lib/turnkey_client/models/get_activity_request.rb +0 -1
  172. data/lib/turnkey_client/models/get_api_key_request.rb +0 -1
  173. data/lib/turnkey_client/models/get_api_key_response.rb +0 -1
  174. data/lib/turnkey_client/models/get_api_keys_request.rb +0 -1
  175. data/lib/turnkey_client/models/get_api_keys_response.rb +0 -1
  176. data/lib/turnkey_client/models/get_authenticator_request.rb +0 -1
  177. data/lib/turnkey_client/models/get_authenticator_response.rb +0 -1
  178. data/lib/turnkey_client/models/get_authenticators_request.rb +0 -1
  179. data/lib/turnkey_client/models/get_authenticators_response.rb +0 -1
  180. data/lib/turnkey_client/models/get_oauth_providers_request.rb +221 -0
  181. data/lib/turnkey_client/models/get_oauth_providers_response.rb +213 -0
  182. data/lib/turnkey_client/models/get_organization_configs_request.rb +211 -0
  183. data/lib/turnkey_client/models/get_organization_configs_response.rb +210 -0
  184. data/lib/turnkey_client/models/get_policies_request.rb +0 -1
  185. data/lib/turnkey_client/models/get_policies_response.rb +0 -1
  186. data/lib/turnkey_client/models/get_policy_request.rb +0 -1
  187. data/lib/turnkey_client/models/get_policy_response.rb +0 -1
  188. data/lib/turnkey_client/models/get_private_key_request.rb +0 -1
  189. data/lib/turnkey_client/models/get_private_key_response.rb +0 -1
  190. data/lib/turnkey_client/models/get_private_keys_request.rb +0 -1
  191. data/lib/turnkey_client/models/get_private_keys_response.rb +0 -1
  192. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +14 -6
  193. data/lib/turnkey_client/models/get_sub_org_ids_response.rb +0 -1
  194. data/lib/turnkey_client/models/get_user_request.rb +0 -1
  195. data/lib/turnkey_client/models/get_user_response.rb +0 -1
  196. data/lib/turnkey_client/models/get_users_request.rb +0 -1
  197. data/lib/turnkey_client/models/get_users_response.rb +0 -1
  198. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +13 -5
  199. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +0 -1
  200. data/lib/turnkey_client/models/get_wallet_request.rb +0 -1
  201. data/lib/turnkey_client/models/get_wallet_response.rb +0 -1
  202. data/lib/turnkey_client/models/get_wallets_request.rb +0 -1
  203. data/lib/turnkey_client/models/get_wallets_response.rb +0 -1
  204. data/lib/turnkey_client/models/get_whoami_request.rb +0 -1
  205. data/lib/turnkey_client/models/get_whoami_response.rb +0 -1
  206. data/lib/turnkey_client/models/hash_function.rb +0 -1
  207. data/lib/turnkey_client/models/import_private_key_intent.rb +0 -1
  208. data/lib/turnkey_client/models/import_private_key_request.rb +0 -1
  209. data/lib/turnkey_client/models/import_private_key_result.rb +0 -1
  210. data/lib/turnkey_client/models/import_wallet_intent.rb +0 -1
  211. data/lib/turnkey_client/models/import_wallet_request.rb +0 -1
  212. data/lib/turnkey_client/models/import_wallet_result.rb +0 -1
  213. data/lib/turnkey_client/models/init_import_private_key_intent.rb +0 -1
  214. data/lib/turnkey_client/models/init_import_private_key_request.rb +0 -1
  215. data/lib/turnkey_client/models/init_import_private_key_result.rb +0 -1
  216. data/lib/turnkey_client/models/init_import_wallet_intent.rb +0 -1
  217. data/lib/turnkey_client/models/init_import_wallet_request.rb +0 -1
  218. data/lib/turnkey_client/models/init_import_wallet_result.rb +0 -1
  219. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +0 -1
  220. data/lib/turnkey_client/models/init_user_email_recovery_request.rb +0 -1
  221. data/lib/turnkey_client/models/init_user_email_recovery_result.rb +0 -1
  222. data/lib/turnkey_client/models/intent.rb +103 -10
  223. data/lib/turnkey_client/models/invitation_params.rb +0 -1
  224. data/lib/turnkey_client/models/list_private_key_tags_request.rb +0 -1
  225. data/lib/turnkey_client/models/list_private_key_tags_response.rb +0 -1
  226. data/lib/turnkey_client/models/list_user_tags_request.rb +0 -1
  227. data/lib/turnkey_client/models/list_user_tags_response.rb +0 -1
  228. data/lib/turnkey_client/models/mnemonic_language.rb +0 -1
  229. data/lib/turnkey_client/models/oauth_intent.rb +246 -0
  230. data/lib/turnkey_client/models/oauth_provider.rb +299 -0
  231. data/lib/turnkey_client/models/oauth_provider_params.rb +226 -0
  232. data/lib/turnkey_client/models/oauth_request.rb +288 -0
  233. data/lib/turnkey_client/models/oauth_result.rb +241 -0
  234. data/lib/turnkey_client/models/operator.rb +0 -1
  235. data/lib/turnkey_client/models/pagination.rb +0 -1
  236. data/lib/turnkey_client/models/path_format.rb +0 -1
  237. data/lib/turnkey_client/models/payload_encoding.rb +0 -1
  238. data/lib/turnkey_client/models/policy.rb +0 -1
  239. data/lib/turnkey_client/models/private_key.rb +0 -1
  240. data/lib/turnkey_client/models/private_key_params.rb +0 -1
  241. data/lib/turnkey_client/models/private_key_result.rb +0 -1
  242. data/lib/turnkey_client/models/public_key_credential_with_attestation.rb +0 -1
  243. data/lib/turnkey_client/models/recover_user_intent.rb +0 -1
  244. data/lib/turnkey_client/models/recover_user_request.rb +0 -1
  245. data/lib/turnkey_client/models/recover_user_result.rb +0 -1
  246. data/lib/turnkey_client/models/reject_activity_intent.rb +0 -1
  247. data/lib/turnkey_client/models/reject_activity_request.rb +0 -1
  248. data/lib/turnkey_client/models/remove_organization_feature_intent.rb +0 -1
  249. data/lib/turnkey_client/models/remove_organization_feature_request.rb +0 -1
  250. data/lib/turnkey_client/models/remove_organization_feature_result.rb +0 -1
  251. data/lib/turnkey_client/models/result.rb +85 -5
  252. data/lib/turnkey_client/models/root_user_params.rb +0 -1
  253. data/lib/turnkey_client/models/root_user_params_v2.rb +272 -0
  254. data/lib/turnkey_client/models/root_user_params_v3.rb +272 -0
  255. data/lib/turnkey_client/models/selector.rb +0 -1
  256. data/lib/turnkey_client/models/selector_v2.rb +0 -1
  257. data/lib/turnkey_client/models/set_organization_feature_intent.rb +0 -1
  258. data/lib/turnkey_client/models/set_organization_feature_request.rb +0 -1
  259. data/lib/turnkey_client/models/set_organization_feature_result.rb +0 -1
  260. data/lib/turnkey_client/models/set_payment_method_intent.rb +0 -1
  261. data/lib/turnkey_client/models/set_payment_method_intent_v2.rb +0 -1
  262. data/lib/turnkey_client/models/set_payment_method_result.rb +0 -1
  263. data/lib/turnkey_client/models/sign_raw_payload_intent.rb +0 -1
  264. data/lib/turnkey_client/models/sign_raw_payload_intent_v2.rb +0 -1
  265. data/lib/turnkey_client/models/sign_raw_payload_request.rb +0 -1
  266. data/lib/turnkey_client/models/sign_raw_payload_result.rb +0 -1
  267. data/lib/turnkey_client/models/sign_raw_payloads_intent.rb +256 -0
  268. data/lib/turnkey_client/models/sign_raw_payloads_request.rb +288 -0
  269. data/lib/turnkey_client/models/sign_raw_payloads_result.rb +207 -0
  270. data/lib/turnkey_client/models/sign_transaction_intent.rb +0 -1
  271. data/lib/turnkey_client/models/sign_transaction_intent_v2.rb +0 -1
  272. data/lib/turnkey_client/models/sign_transaction_request.rb +0 -1
  273. data/lib/turnkey_client/models/sign_transaction_result.rb +0 -1
  274. data/lib/turnkey_client/models/simple_client_extension_results.rb +0 -1
  275. data/lib/turnkey_client/models/status.rb +225 -0
  276. data/lib/turnkey_client/models/tag_type.rb +0 -1
  277. data/lib/turnkey_client/models/transaction_type.rb +0 -1
  278. data/lib/turnkey_client/models/update_allowed_origins_intent.rb +0 -1
  279. data/lib/turnkey_client/models/update_allowed_origins_result.rb +0 -1
  280. data/lib/turnkey_client/models/update_policy_intent.rb +0 -1
  281. data/lib/turnkey_client/models/update_policy_request.rb +0 -1
  282. data/lib/turnkey_client/models/update_policy_result.rb +0 -1
  283. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +0 -1
  284. data/lib/turnkey_client/models/update_private_key_tag_request.rb +0 -1
  285. data/lib/turnkey_client/models/update_private_key_tag_result.rb +0 -1
  286. data/lib/turnkey_client/models/update_root_quorum_intent.rb +0 -1
  287. data/lib/turnkey_client/models/update_root_quorum_request.rb +0 -1
  288. data/lib/turnkey_client/models/update_root_quorum_result.rb +0 -1
  289. data/lib/turnkey_client/models/update_user_intent.rb +0 -1
  290. data/lib/turnkey_client/models/update_user_request.rb +0 -1
  291. data/lib/turnkey_client/models/update_user_result.rb +0 -1
  292. data/lib/turnkey_client/models/update_user_tag_intent.rb +0 -1
  293. data/lib/turnkey_client/models/update_user_tag_request.rb +0 -1
  294. data/lib/turnkey_client/models/update_user_tag_result.rb +0 -1
  295. data/lib/turnkey_client/models/user.rb +18 -2
  296. data/lib/turnkey_client/models/user_params.rb +0 -1
  297. data/lib/turnkey_client/models/user_params_v2.rb +0 -1
  298. data/lib/turnkey_client/models/v1_tag.rb +0 -1
  299. data/lib/turnkey_client/models/vote.rb +0 -1
  300. data/lib/turnkey_client/models/wallet.rb +0 -1
  301. data/lib/turnkey_client/models/wallet_account.rb +4 -20
  302. data/lib/turnkey_client/models/wallet_account_params.rb +0 -1
  303. data/lib/turnkey_client/models/wallet_params.rb +0 -1
  304. data/lib/turnkey_client/models/wallet_result.rb +0 -1
  305. data/lib/turnkey_client/version.rb +1 -2
  306. data/lib/turnkey_client.rb +41 -1
  307. data/turnkey_client-0.0.3.gem +0 -0
  308. data/turnkey_client-0.0.4.gem +0 -0
  309. data/turnkey_client.gemspec +0 -1
  310. metadata +45 -2
@@ -0,0 +1,207 @@
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
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class SignRawPayloadsResult
15
+ attr_accessor :signatures
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'signatures' => :'signatures'
21
+ }
22
+ end
23
+
24
+ # Attribute type mapping.
25
+ def self.openapi_types
26
+ {
27
+ :'signatures' => :'Object'
28
+ }
29
+ end
30
+
31
+ # List of attributes with nullable: true
32
+ def self.openapi_nullable
33
+ Set.new([
34
+ ])
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ if (!attributes.is_a?(Hash))
41
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::SignRawPayloadsResult` initialize method"
42
+ end
43
+
44
+ # check to see if the attribute exists and convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h|
46
+ if (!self.class.attribute_map.key?(k.to_sym))
47
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::SignRawPayloadsResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
48
+ end
49
+ h[k.to_sym] = v
50
+ }
51
+
52
+ if attributes.key?(:'signatures')
53
+ if (value = attributes[:'signatures']).is_a?(Array)
54
+ self.signatures = value
55
+ end
56
+ end
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properties with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ signatures == o.signatures
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Integer] Hash code
88
+ def hash
89
+ [signatures].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def self.build_from_hash(attributes)
96
+ new.build_from_hash(attributes)
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def build_from_hash(attributes)
103
+ return nil unless attributes.is_a?(Hash)
104
+ self.class.openapi_types.each_pair do |key, type|
105
+ if type =~ /\AArray<(.*)>/i
106
+ # check to ensure the input is an array given that the attribute
107
+ # is documented as an array but the input is not
108
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ end
111
+ elsif !attributes[self.class.attribute_map[key]].nil?
112
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ end
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :Boolean
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ TurnkeyClient.const_get(type).build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Outputs non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ # @param [Object] value Any valid value
193
+ # @return [Hash] Returns the value in the form of hash
194
+ def _to_hash(value)
195
+ if value.is_a?(Array)
196
+ value.compact.map { |v| _to_hash(v) }
197
+ elsif value.is_a?(Hash)
198
+ {}.tap do |hash|
199
+ value.each { |k, v| hash[k] = _to_hash(v) }
200
+ end
201
+ elsif value.respond_to? :to_hash
202
+ value.to_hash
203
+ else
204
+ value
205
+ end
206
+ end end
207
+ end
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -0,0 +1,225 @@
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
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class Status
15
+ attr_accessor :code
16
+
17
+ attr_accessor :message
18
+
19
+ attr_accessor :details
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'code' => :'code',
25
+ :'message' => :'message',
26
+ :'details' => :'details'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'code' => :'Object',
34
+ :'message' => :'Object',
35
+ :'details' => :'Object'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Status` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Status`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'code')
61
+ self.code = attributes[:'code']
62
+ end
63
+
64
+ if attributes.key?(:'message')
65
+ self.message = attributes[:'message']
66
+ end
67
+
68
+ if attributes.key?(:'details')
69
+ if (value = attributes[:'details']).is_a?(Array)
70
+ self.details = value
71
+ end
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ code == o.code &&
94
+ message == o.message &&
95
+ details == o.details
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [code, message, details].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
132
+ self.send("#{key}=", nil)
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :DateTime
146
+ DateTime.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ TurnkeyClient.const_get(type).build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end end
225
+ end
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'
@@ -6,7 +6,6 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.54
10
9
  =end
11
10
 
12
11
  require 'date'