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,224 @@
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 V1SimpleClientExtensionResults
16
+ attr_accessor :appid
17
+
18
+ attr_accessor :appid_exclude
19
+
20
+ attr_accessor :cred_props
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'appid' => :'appid',
26
+ :'appid_exclude' => :'appidExclude',
27
+ :'cred_props' => :'credProps'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'appid' => :'Object',
35
+ :'appid_exclude' => :'Object',
36
+ :'cred_props' => :'Object'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1SimpleClientExtensionResults` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1SimpleClientExtensionResults`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'appid')
62
+ self.appid = attributes[:'appid']
63
+ end
64
+
65
+ if attributes.key?(:'appid_exclude')
66
+ self.appid_exclude = attributes[:'appid_exclude']
67
+ end
68
+
69
+ if attributes.key?(:'cred_props')
70
+ self.cred_props = attributes[:'cred_props']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ appid == o.appid &&
93
+ appid_exclude == o.appid_exclude &&
94
+ cred_props == o.cred_props
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [appid, appid_exclude, cred_props].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ DateTime.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ TurnkeyClient.const_get(type).build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end end
224
+ end
@@ -0,0 +1,28 @@
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 V1TagType
16
+ USER = 'TAG_TYPE_USER'.freeze
17
+ PRIVATE_KEY = 'TAG_TYPE_PRIVATE_KEY'.freeze
18
+
19
+ # Builds the enum from string
20
+ # @param [String] The enum value in the form of the string
21
+ # @return [String] The enum value
22
+ def build_from_hash(value)
23
+ constantValues = V1TagType.constants.select { |c| V1TagType::const_get(c) == value }
24
+ raise "Invalid ENUM value #{value} for class #V1TagType" if constantValues.empty?
25
+ value
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,27 @@
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 V1TransactionType
16
+ TRANSACTION_TYPE_ETHEREUM = 'TRANSACTION_TYPE_ETHEREUM'.freeze
17
+
18
+ # Builds the enum from string
19
+ # @param [String] The enum value in the form of the string
20
+ # @return [String] The enum value
21
+ def build_from_hash(value)
22
+ constantValues = V1TransactionType.constants.select { |c| V1TransactionType::const_get(c) == value }
23
+ raise "Invalid ENUM value #{value} for class #V1TransactionType" if constantValues.empty?
24
+ value
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,214 @@
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 V1UpdateAllowedOriginsIntent
16
+ # Additional origins requests are allowed from besides Turnkey origins
17
+ attr_accessor :allowed_origins
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'allowed_origins' => :'allowedOrigins'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'allowed_origins' => :'Object'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1UpdateAllowedOriginsIntent` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1UpdateAllowedOriginsIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'allowed_origins')
55
+ if (value = attributes[:'allowed_origins']).is_a?(Array)
56
+ self.allowed_origins = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @allowed_origins.nil?
66
+ invalid_properties.push('invalid value for "allowed_origins", allowed_origins cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @allowed_origins.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ allowed_origins == o.allowed_origins
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [allowed_origins].hash
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 self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
121
+ self.send("#{key}=", nil)
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ TurnkeyClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end end
214
+ end
@@ -0,0 +1,197 @@
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 V1UpdateAllowedOriginsResult
16
+ # Attribute mapping from ruby-style variable name to JSON key.
17
+ def self.attribute_map
18
+ {
19
+ }
20
+ end
21
+
22
+ # Attribute type mapping.
23
+ def self.openapi_types
24
+ {
25
+ }
26
+ end
27
+
28
+ # List of attributes with nullable: true
29
+ def self.openapi_nullable
30
+ Set.new([
31
+ ])
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ if (!attributes.is_a?(Hash))
38
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1UpdateAllowedOriginsResult` initialize method"
39
+ end
40
+
41
+ # check to see if the attribute exists and convert string to symbol for hash key
42
+ attributes = attributes.each_with_object({}) { |(k, v), h|
43
+ if (!self.class.attribute_map.key?(k.to_sym))
44
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1UpdateAllowedOriginsResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
45
+ end
46
+ h[k.to_sym] = v
47
+ }
48
+ end
49
+
50
+ # Show invalid properties with the reasons. Usually used together with valid?
51
+ # @return Array for valid properties with the reasons
52
+ def list_invalid_properties
53
+ invalid_properties = Array.new
54
+ invalid_properties
55
+ end
56
+
57
+ # Check to see if the all the properties in the model are valid
58
+ # @return true if the model is valid
59
+ def valid?
60
+ true
61
+ end
62
+
63
+ # Checks equality by comparing each attribute.
64
+ # @param [Object] Object to be compared
65
+ def ==(o)
66
+ return true if self.equal?(o)
67
+ self.class == o.class
68
+ end
69
+
70
+ # @see the `==` method
71
+ # @param [Object] Object to be compared
72
+ def eql?(o)
73
+ self == o
74
+ end
75
+
76
+ # Calculates hash code according to all attributes.
77
+ # @return [Integer] Hash code
78
+ def hash
79
+ [].hash
80
+ end
81
+
82
+ # Builds the object from hash
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ # @return [Object] Returns the model itself
85
+ def self.build_from_hash(attributes)
86
+ new.build_from_hash(attributes)
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.openapi_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
104
+ self.send("#{key}=", nil)
105
+ end
106
+ end
107
+
108
+ self
109
+ end
110
+
111
+ # Deserializes the data based on type
112
+ # @param string type Data type
113
+ # @param string value Value to be deserialized
114
+ # @return [Object] Deserialized data
115
+ def _deserialize(type, value)
116
+ case type.to_sym
117
+ when :DateTime
118
+ DateTime.parse(value)
119
+ when :Date
120
+ Date.parse(value)
121
+ when :String
122
+ value.to_s
123
+ when :Integer
124
+ value.to_i
125
+ when :Float
126
+ value.to_f
127
+ when :Boolean
128
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
129
+ true
130
+ else
131
+ false
132
+ end
133
+ when :Object
134
+ # generic object (usually a Hash), return directly
135
+ value
136
+ when /\AArray<(?<inner_type>.+)>\z/
137
+ inner_type = Regexp.last_match[:inner_type]
138
+ value.map { |v| _deserialize(inner_type, v) }
139
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
140
+ k_type = Regexp.last_match[:k_type]
141
+ v_type = Regexp.last_match[:v_type]
142
+ {}.tap do |hash|
143
+ value.each do |k, v|
144
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
145
+ end
146
+ end
147
+ else # model
148
+ TurnkeyClient.const_get(type).build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ if value.nil?
171
+ is_nullable = self.class.openapi_nullable.include?(attr)
172
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
+ end
174
+
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ # Outputs non-array value in the form of hash
181
+ # For object, use to_hash. Otherwise, just return the value
182
+ # @param [Object] value Any valid value
183
+ # @return [Hash] Returns the value in the form of hash
184
+ def _to_hash(value)
185
+ if value.is_a?(Array)
186
+ value.compact.map { |v| _to_hash(v) }
187
+ elsif value.is_a?(Hash)
188
+ {}.tap do |hash|
189
+ value.each { |k, v| hash[k] = _to_hash(v) }
190
+ end
191
+ elsif value.respond_to? :to_hash
192
+ value.to_hash
193
+ else
194
+ value
195
+ end
196
+ end end
197
+ end