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,371 @@
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 V1Activity
16
+ # Unique identifier for a given Activity object.
17
+ attr_accessor :id
18
+
19
+ # Unique identifier for a given Organization.
20
+ attr_accessor :organization_id
21
+
22
+ attr_accessor :status
23
+
24
+ attr_accessor :type
25
+
26
+ attr_accessor :intent
27
+
28
+ attr_accessor :result
29
+
30
+ # A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata.
31
+ attr_accessor :votes
32
+
33
+ # An artifact verifying a User's action.
34
+ attr_accessor :fingerprint
35
+
36
+ attr_accessor :can_approve
37
+
38
+ attr_accessor :can_reject
39
+
40
+ attr_accessor :created_at
41
+
42
+ attr_accessor :updated_at
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'id' => :'id',
48
+ :'organization_id' => :'organizationId',
49
+ :'status' => :'status',
50
+ :'type' => :'type',
51
+ :'intent' => :'intent',
52
+ :'result' => :'result',
53
+ :'votes' => :'votes',
54
+ :'fingerprint' => :'fingerprint',
55
+ :'can_approve' => :'canApprove',
56
+ :'can_reject' => :'canReject',
57
+ :'created_at' => :'createdAt',
58
+ :'updated_at' => :'updatedAt'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'id' => :'Object',
66
+ :'organization_id' => :'Object',
67
+ :'status' => :'Object',
68
+ :'type' => :'Object',
69
+ :'intent' => :'Object',
70
+ :'result' => :'Object',
71
+ :'votes' => :'Object',
72
+ :'fingerprint' => :'Object',
73
+ :'can_approve' => :'Object',
74
+ :'can_reject' => :'Object',
75
+ :'created_at' => :'Object',
76
+ :'updated_at' => :'Object'
77
+ }
78
+ end
79
+
80
+ # List of attributes with nullable: true
81
+ def self.openapi_nullable
82
+ Set.new([
83
+ ])
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ if (!attributes.is_a?(Hash))
90
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1Activity` initialize method"
91
+ end
92
+
93
+ # check to see if the attribute exists and convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h|
95
+ if (!self.class.attribute_map.key?(k.to_sym))
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1Activity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ end
98
+ h[k.to_sym] = v
99
+ }
100
+
101
+ if attributes.key?(:'id')
102
+ self.id = attributes[:'id']
103
+ end
104
+
105
+ if attributes.key?(:'organization_id')
106
+ self.organization_id = attributes[:'organization_id']
107
+ end
108
+
109
+ if attributes.key?(:'status')
110
+ self.status = attributes[:'status']
111
+ end
112
+
113
+ if attributes.key?(:'type')
114
+ self.type = attributes[:'type']
115
+ end
116
+
117
+ if attributes.key?(:'intent')
118
+ self.intent = attributes[:'intent']
119
+ end
120
+
121
+ if attributes.key?(:'result')
122
+ self.result = attributes[:'result']
123
+ end
124
+
125
+ if attributes.key?(:'votes')
126
+ if (value = attributes[:'votes']).is_a?(Array)
127
+ self.votes = value
128
+ end
129
+ end
130
+
131
+ if attributes.key?(:'fingerprint')
132
+ self.fingerprint = attributes[:'fingerprint']
133
+ end
134
+
135
+ if attributes.key?(:'can_approve')
136
+ self.can_approve = attributes[:'can_approve']
137
+ end
138
+
139
+ if attributes.key?(:'can_reject')
140
+ self.can_reject = attributes[:'can_reject']
141
+ end
142
+
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
147
+ if attributes.key?(:'updated_at')
148
+ self.updated_at = attributes[:'updated_at']
149
+ end
150
+ end
151
+
152
+ # Show invalid properties with the reasons. Usually used together with valid?
153
+ # @return Array for valid properties with the reasons
154
+ def list_invalid_properties
155
+ invalid_properties = Array.new
156
+ if @id.nil?
157
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
158
+ end
159
+
160
+ if @organization_id.nil?
161
+ invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
162
+ end
163
+
164
+ if @status.nil?
165
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
166
+ end
167
+
168
+ if @type.nil?
169
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
170
+ end
171
+
172
+ if @intent.nil?
173
+ invalid_properties.push('invalid value for "intent", intent cannot be nil.')
174
+ end
175
+
176
+ if @result.nil?
177
+ invalid_properties.push('invalid value for "result", result cannot be nil.')
178
+ end
179
+
180
+ if @votes.nil?
181
+ invalid_properties.push('invalid value for "votes", votes cannot be nil.')
182
+ end
183
+
184
+ if @fingerprint.nil?
185
+ invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
186
+ end
187
+
188
+ if @can_approve.nil?
189
+ invalid_properties.push('invalid value for "can_approve", can_approve cannot be nil.')
190
+ end
191
+
192
+ if @can_reject.nil?
193
+ invalid_properties.push('invalid value for "can_reject", can_reject cannot be nil.')
194
+ end
195
+
196
+ if @created_at.nil?
197
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
198
+ end
199
+
200
+ if @updated_at.nil?
201
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
202
+ end
203
+
204
+ invalid_properties
205
+ end
206
+
207
+ # Check to see if the all the properties in the model are valid
208
+ # @return true if the model is valid
209
+ def valid?
210
+ return false if @id.nil?
211
+ return false if @organization_id.nil?
212
+ return false if @status.nil?
213
+ return false if @type.nil?
214
+ return false if @intent.nil?
215
+ return false if @result.nil?
216
+ return false if @votes.nil?
217
+ return false if @fingerprint.nil?
218
+ return false if @can_approve.nil?
219
+ return false if @can_reject.nil?
220
+ return false if @created_at.nil?
221
+ return false if @updated_at.nil?
222
+ true
223
+ end
224
+
225
+ # Checks equality by comparing each attribute.
226
+ # @param [Object] Object to be compared
227
+ def ==(o)
228
+ return true if self.equal?(o)
229
+ self.class == o.class &&
230
+ id == o.id &&
231
+ organization_id == o.organization_id &&
232
+ status == o.status &&
233
+ type == o.type &&
234
+ intent == o.intent &&
235
+ result == o.result &&
236
+ votes == o.votes &&
237
+ fingerprint == o.fingerprint &&
238
+ can_approve == o.can_approve &&
239
+ can_reject == o.can_reject &&
240
+ created_at == o.created_at &&
241
+ updated_at == o.updated_at
242
+ end
243
+
244
+ # @see the `==` method
245
+ # @param [Object] Object to be compared
246
+ def eql?(o)
247
+ self == o
248
+ end
249
+
250
+ # Calculates hash code according to all attributes.
251
+ # @return [Integer] Hash code
252
+ def hash
253
+ [id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at].hash
254
+ end
255
+
256
+ # Builds the object from hash
257
+ # @param [Hash] attributes Model attributes in the form of hash
258
+ # @return [Object] Returns the model itself
259
+ def self.build_from_hash(attributes)
260
+ new.build_from_hash(attributes)
261
+ end
262
+
263
+ # Builds the object from hash
264
+ # @param [Hash] attributes Model attributes in the form of hash
265
+ # @return [Object] Returns the model itself
266
+ def build_from_hash(attributes)
267
+ return nil unless attributes.is_a?(Hash)
268
+ self.class.openapi_types.each_pair do |key, type|
269
+ if type =~ /\AArray<(.*)>/i
270
+ # check to ensure the input is an array given that the attribute
271
+ # is documented as an array but the input is not
272
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
273
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
274
+ end
275
+ elsif !attributes[self.class.attribute_map[key]].nil?
276
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
277
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
278
+ self.send("#{key}=", nil)
279
+ end
280
+ end
281
+
282
+ self
283
+ end
284
+
285
+ # Deserializes the data based on type
286
+ # @param string type Data type
287
+ # @param string value Value to be deserialized
288
+ # @return [Object] Deserialized data
289
+ def _deserialize(type, value)
290
+ case type.to_sym
291
+ when :DateTime
292
+ DateTime.parse(value)
293
+ when :Date
294
+ Date.parse(value)
295
+ when :String
296
+ value.to_s
297
+ when :Integer
298
+ value.to_i
299
+ when :Float
300
+ value.to_f
301
+ when :Boolean
302
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
303
+ true
304
+ else
305
+ false
306
+ end
307
+ when :Object
308
+ # generic object (usually a Hash), return directly
309
+ value
310
+ when /\AArray<(?<inner_type>.+)>\z/
311
+ inner_type = Regexp.last_match[:inner_type]
312
+ value.map { |v| _deserialize(inner_type, v) }
313
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
314
+ k_type = Regexp.last_match[:k_type]
315
+ v_type = Regexp.last_match[:v_type]
316
+ {}.tap do |hash|
317
+ value.each do |k, v|
318
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
319
+ end
320
+ end
321
+ else # model
322
+ TurnkeyClient.const_get(type).build_from_hash(value)
323
+ end
324
+ end
325
+
326
+ # Returns the string representation of the object
327
+ # @return [String] String presentation of the object
328
+ def to_s
329
+ to_hash.to_s
330
+ end
331
+
332
+ # to_body is an alias to to_hash (backward compatibility)
333
+ # @return [Hash] Returns the object in the form of hash
334
+ def to_body
335
+ to_hash
336
+ end
337
+
338
+ # Returns the object in the form of hash
339
+ # @return [Hash] Returns the object in the form of hash
340
+ def to_hash
341
+ hash = {}
342
+ self.class.attribute_map.each_pair do |attr, param|
343
+ value = self.send(attr)
344
+ if value.nil?
345
+ is_nullable = self.class.openapi_nullable.include?(attr)
346
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
347
+ end
348
+
349
+ hash[param] = _to_hash(value)
350
+ end
351
+ hash
352
+ end
353
+
354
+ # Outputs non-array value in the form of hash
355
+ # For object, use to_hash. Otherwise, just return the value
356
+ # @param [Object] value Any valid value
357
+ # @return [Hash] Returns the value in the form of hash
358
+ def _to_hash(value)
359
+ if value.is_a?(Array)
360
+ value.compact.map { |v| _to_hash(v) }
361
+ elsif value.is_a?(Hash)
362
+ {}.tap do |hash|
363
+ value.each { |k, v| hash[k] = _to_hash(v) }
364
+ end
365
+ elsif value.respond_to? :to_hash
366
+ value.to_hash
367
+ else
368
+ value
369
+ end
370
+ end end
371
+ end
@@ -0,0 +1,211 @@
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 V1ActivityResponse
16
+ attr_accessor :activity
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'activity' => :'activity'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'activity' => :'Object'
29
+ }
30
+ end
31
+
32
+ # List of attributes with nullable: true
33
+ def self.openapi_nullable
34
+ Set.new([
35
+ ])
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ if (!attributes.is_a?(Hash))
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1ActivityResponse` initialize method"
43
+ end
44
+
45
+ # check to see if the attribute exists and convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h|
47
+ if (!self.class.attribute_map.key?(k.to_sym))
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1ActivityResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ end
50
+ h[k.to_sym] = v
51
+ }
52
+
53
+ if attributes.key?(:'activity')
54
+ self.activity = attributes[:'activity']
55
+ end
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properties with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ if @activity.nil?
63
+ invalid_properties.push('invalid value for "activity", activity cannot be nil.')
64
+ end
65
+
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ return false if @activity.nil?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ activity == o.activity
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Integer] Hash code
92
+ def hash
93
+ [activity].hash
94
+ end
95
+
96
+ # Builds the object from hash
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ # @return [Object] Returns the model itself
99
+ def self.build_from_hash(attributes)
100
+ new.build_from_hash(attributes)
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.openapi_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
+ self.send("#{key}=", nil)
119
+ end
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ TurnkeyClient.const_get(type).build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end end
211
+ end
@@ -0,0 +1,32 @@
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 V1ActivityStatus
16
+ CREATED = 'ACTIVITY_STATUS_CREATED'.freeze
17
+ PENDING = 'ACTIVITY_STATUS_PENDING'.freeze
18
+ COMPLETED = 'ACTIVITY_STATUS_COMPLETED'.freeze
19
+ FAILED = 'ACTIVITY_STATUS_FAILED'.freeze
20
+ CONSENSUS_NEEDED = 'ACTIVITY_STATUS_CONSENSUS_NEEDED'.freeze
21
+ REJECTED = 'ACTIVITY_STATUS_REJECTED'.freeze
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def build_from_hash(value)
27
+ constantValues = V1ActivityStatus.constants.select { |c| V1ActivityStatus::const_get(c) == value }
28
+ raise "Invalid ENUM value #{value} for class #V1ActivityStatus" if constantValues.empty?
29
+ value
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,83 @@
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 V1ActivityType
16
+ CREATE_API_KEYS = 'ACTIVITY_TYPE_CREATE_API_KEYS'.freeze
17
+ CREATE_USERS = 'ACTIVITY_TYPE_CREATE_USERS'.freeze
18
+ CREATE_PRIVATE_KEYS = 'ACTIVITY_TYPE_CREATE_PRIVATE_KEYS'.freeze
19
+ SIGN_RAW_PAYLOAD = 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD'.freeze
20
+ CREATE_INVITATIONS = 'ACTIVITY_TYPE_CREATE_INVITATIONS'.freeze
21
+ ACCEPT_INVITATION = 'ACTIVITY_TYPE_ACCEPT_INVITATION'.freeze
22
+ CREATE_POLICY = 'ACTIVITY_TYPE_CREATE_POLICY'.freeze
23
+ DISABLE_PRIVATE_KEY = 'ACTIVITY_TYPE_DISABLE_PRIVATE_KEY'.freeze
24
+ DELETE_USERS = 'ACTIVITY_TYPE_DELETE_USERS'.freeze
25
+ DELETE_API_KEYS = 'ACTIVITY_TYPE_DELETE_API_KEYS'.freeze
26
+ DELETE_INVITATION = 'ACTIVITY_TYPE_DELETE_INVITATION'.freeze
27
+ DELETE_ORGANIZATION = 'ACTIVITY_TYPE_DELETE_ORGANIZATION'.freeze
28
+ DELETE_POLICY = 'ACTIVITY_TYPE_DELETE_POLICY'.freeze
29
+ CREATE_USER_TAG = 'ACTIVITY_TYPE_CREATE_USER_TAG'.freeze
30
+ DELETE_USER_TAGS = 'ACTIVITY_TYPE_DELETE_USER_TAGS'.freeze
31
+ CREATE_ORGANIZATION = 'ACTIVITY_TYPE_CREATE_ORGANIZATION'.freeze
32
+ SIGN_TRANSACTION = 'ACTIVITY_TYPE_SIGN_TRANSACTION'.freeze
33
+ APPROVE_ACTIVITY = 'ACTIVITY_TYPE_APPROVE_ACTIVITY'.freeze
34
+ REJECT_ACTIVITY = 'ACTIVITY_TYPE_REJECT_ACTIVITY'.freeze
35
+ DELETE_AUTHENTICATORS = 'ACTIVITY_TYPE_DELETE_AUTHENTICATORS'.freeze
36
+ CREATE_AUTHENTICATORS = 'ACTIVITY_TYPE_CREATE_AUTHENTICATORS'.freeze
37
+ CREATE_PRIVATE_KEY_TAG = 'ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG'.freeze
38
+ DELETE_PRIVATE_KEY_TAGS = 'ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS'.freeze
39
+ SET_PAYMENT_METHOD = 'ACTIVITY_TYPE_SET_PAYMENT_METHOD'.freeze
40
+ ACTIVATE_BILLING_TIER = 'ACTIVITY_TYPE_ACTIVATE_BILLING_TIER'.freeze
41
+ DELETE_PAYMENT_METHOD = 'ACTIVITY_TYPE_DELETE_PAYMENT_METHOD'.freeze
42
+ CREATE_POLICY_V2 = 'ACTIVITY_TYPE_CREATE_POLICY_V2'.freeze
43
+ CREATE_POLICY_V3 = 'ACTIVITY_TYPE_CREATE_POLICY_V3'.freeze
44
+ CREATE_API_ONLY_USERS = 'ACTIVITY_TYPE_CREATE_API_ONLY_USERS'.freeze
45
+ UPDATE_ROOT_QUORUM = 'ACTIVITY_TYPE_UPDATE_ROOT_QUORUM'.freeze
46
+ UPDATE_USER_TAG = 'ACTIVITY_TYPE_UPDATE_USER_TAG'.freeze
47
+ UPDATE_PRIVATE_KEY_TAG = 'ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG'.freeze
48
+ CREATE_AUTHENTICATORS_V2 = 'ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2'.freeze
49
+ CREATE_ORGANIZATION_V2 = 'ACTIVITY_TYPE_CREATE_ORGANIZATION_V2'.freeze
50
+ CREATE_USERS_V2 = 'ACTIVITY_TYPE_CREATE_USERS_V2'.freeze
51
+ ACCEPT_INVITATION_V2 = 'ACTIVITY_TYPE_ACCEPT_INVITATION_V2'.freeze
52
+ CREATE_SUB_ORGANIZATION = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION'.freeze
53
+ CREATE_SUB_ORGANIZATION_V2 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2'.freeze
54
+ UPDATE_ALLOWED_ORIGINS = 'ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS'.freeze
55
+ CREATE_PRIVATE_KEYS_V2 = 'ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2'.freeze
56
+ UPDATE_USER = 'ACTIVITY_TYPE_UPDATE_USER'.freeze
57
+ UPDATE_POLICY = 'ACTIVITY_TYPE_UPDATE_POLICY'.freeze
58
+ SET_PAYMENT_METHOD_V2 = 'ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2'.freeze
59
+ CREATE_SUB_ORGANIZATION_V3 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3'.freeze
60
+ CREATE_WALLET = 'ACTIVITY_TYPE_CREATE_WALLET'.freeze
61
+ CREATE_WALLET_ACCOUNTS = 'ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS'.freeze
62
+ INIT_USER_EMAIL_RECOVERY = 'ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY'.freeze
63
+ RECOVER_USER = 'ACTIVITY_TYPE_RECOVER_USER'.freeze
64
+ SET_ORGANIZATION_FEATURE = 'ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE'.freeze
65
+ REMOVE_ORGANIZATION_FEATURE = 'ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE'.freeze
66
+ SIGN_RAW_PAYLOAD_V2 = 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2'.freeze
67
+ SIGN_TRANSACTION_V2 = 'ACTIVITY_TYPE_SIGN_TRANSACTION_V2'.freeze
68
+ EXPORT_PRIVATE_KEY = 'ACTIVITY_TYPE_EXPORT_PRIVATE_KEY'.freeze
69
+ EXPORT_WALLET = 'ACTIVITY_TYPE_EXPORT_WALLET'.freeze
70
+ CREATE_SUB_ORGANIZATION_V4 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4'.freeze
71
+ EMAIL_AUTH = 'ACTIVITY_TYPE_EMAIL_AUTH'.freeze
72
+ EXPORT_WALLET_ACCOUNT = 'ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT'.freeze
73
+
74
+ # Builds the enum from string
75
+ # @param [String] The enum value in the form of the string
76
+ # @return [String] The enum value
77
+ def build_from_hash(value)
78
+ constantValues = V1ActivityType.constants.select { |c| V1ActivityType::const_get(c) == value }
79
+ raise "Invalid ENUM value #{value} for class #V1ActivityType" if constantValues.empty?
80
+ value
81
+ end
82
+ end
83
+ end