turnkey_client 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +39 -0
  3. data/.rspec +2 -0
  4. data/.swagger-codegen/VERSION +1 -0
  5. data/.swagger-codegen-ignore +23 -0
  6. data/lib/turnkey_client/api/app_proof_api.rb +4 -4
  7. data/lib/turnkey_client/api/broadcasting_api.rb +251 -0
  8. data/lib/turnkey_client/api/on_ramp_api.rb +290 -0
  9. data/lib/turnkey_client/api/policies_api.rb +58 -0
  10. data/lib/turnkey_client/api/send_transactions_api.rb +77 -0
  11. data/lib/turnkey_client/api/wallets_api.rb +58 -0
  12. data/lib/turnkey_client/models/activity.rb +1 -1
  13. data/lib/turnkey_client/models/activity_type.rb +16 -0
  14. data/lib/turnkey_client/models/approve_activity_request.rb +14 -4
  15. data/lib/turnkey_client/models/client_signature.rb +255 -0
  16. data/lib/turnkey_client/models/client_signature_scheme.rb +26 -0
  17. data/lib/turnkey_client/models/create_api_keys_request.rb +14 -4
  18. data/lib/turnkey_client/models/create_authenticators_request.rb +14 -4
  19. data/lib/turnkey_client/models/create_fiat_on_ramp_credential_intent.rb +272 -0
  20. data/lib/turnkey_client/models/create_fiat_on_ramp_credential_request.rb +298 -0
  21. data/lib/turnkey_client/models/create_fiat_on_ramp_credential_result.rb +211 -0
  22. data/lib/turnkey_client/models/create_invitations_request.rb +14 -4
  23. data/lib/turnkey_client/models/create_oauth2_credential_request.rb +14 -4
  24. data/lib/turnkey_client/models/create_oauth_providers_request.rb +14 -4
  25. data/lib/turnkey_client/models/create_policies_request.rb +14 -4
  26. data/lib/turnkey_client/models/create_policy_intent_v3.rb +6 -0
  27. data/lib/turnkey_client/models/create_policy_request.rb +14 -4
  28. data/lib/turnkey_client/models/create_private_key_tag_request.rb +14 -4
  29. data/lib/turnkey_client/models/create_private_keys_request.rb +14 -4
  30. data/lib/turnkey_client/models/create_read_only_session_request.rb +14 -4
  31. data/lib/turnkey_client/models/create_read_write_session_request.rb +14 -4
  32. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +1 -1
  33. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +14 -4
  34. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +14 -5
  35. data/lib/turnkey_client/models/create_sub_organization_request.rb +14 -4
  36. data/lib/turnkey_client/models/create_tvc_app_intent.rb +277 -0
  37. data/lib/turnkey_client/models/create_tvc_app_result.rb +258 -0
  38. data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +346 -0
  39. data/lib/turnkey_client/models/create_tvc_deployment_result.rb +226 -0
  40. data/lib/turnkey_client/models/create_tvc_manifest_approvals_intent.rb +228 -0
  41. data/lib/turnkey_client/models/create_tvc_manifest_approvals_result.rb +213 -0
  42. data/lib/turnkey_client/models/create_user_tag_request.rb +14 -4
  43. data/lib/turnkey_client/models/create_users_request.rb +14 -4
  44. data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +15 -4
  45. data/lib/turnkey_client/models/create_wallet_accounts_request.rb +14 -4
  46. data/lib/turnkey_client/models/create_wallet_request.rb +14 -4
  47. data/lib/turnkey_client/models/curve.rb +1 -0
  48. data/lib/turnkey_client/models/custom_revert_error.rb +218 -0
  49. data/lib/turnkey_client/models/data_v1_signature_scheme.rb +26 -0
  50. data/lib/turnkey_client/models/delete_api_keys_request.rb +14 -4
  51. data/lib/turnkey_client/models/delete_authenticators_request.rb +14 -4
  52. data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_intent.rb +211 -0
  53. data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_request.rb +298 -0
  54. data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_result.rb +211 -0
  55. data/lib/turnkey_client/models/delete_invitation_request.rb +14 -4
  56. data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +14 -4
  57. data/lib/turnkey_client/models/delete_oauth_providers_request.rb +14 -4
  58. data/lib/turnkey_client/models/delete_policies_intent.rb +213 -0
  59. data/lib/turnkey_client/models/delete_policies_request.rb +298 -0
  60. data/lib/turnkey_client/models/delete_policies_result.rb +213 -0
  61. data/lib/turnkey_client/models/delete_policy_request.rb +14 -4
  62. data/lib/turnkey_client/models/delete_private_key_tags_request.rb +14 -4
  63. data/lib/turnkey_client/models/delete_private_keys_request.rb +14 -4
  64. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +14 -4
  65. data/lib/turnkey_client/models/delete_sub_organization_request.rb +14 -4
  66. data/lib/turnkey_client/models/delete_user_tags_request.rb +14 -4
  67. data/lib/turnkey_client/models/delete_users_request.rb +14 -4
  68. data/lib/turnkey_client/models/delete_wallet_accounts_intent.rb +224 -0
  69. data/lib/turnkey_client/models/delete_wallet_accounts_request.rb +298 -0
  70. data/lib/turnkey_client/models/delete_wallet_accounts_result.rb +213 -0
  71. data/lib/turnkey_client/models/delete_wallets_request.rb +14 -4
  72. data/lib/turnkey_client/models/email_auth_customization_params.rb +255 -0
  73. data/lib/turnkey_client/models/email_auth_intent_v3.rb +306 -0
  74. data/lib/turnkey_client/models/email_auth_request.rb +16 -6
  75. data/lib/turnkey_client/models/email_customization_params_v2.rb +240 -0
  76. data/lib/turnkey_client/models/eth_send_raw_transaction_intent.rb +260 -0
  77. data/lib/turnkey_client/models/eth_send_raw_transaction_result.rb +211 -0
  78. data/lib/turnkey_client/models/eth_send_transaction_intent.rb +363 -0
  79. data/lib/turnkey_client/models/eth_send_transaction_request.rb +298 -0
  80. data/lib/turnkey_client/models/eth_send_transaction_result.rb +211 -0
  81. data/lib/turnkey_client/models/eth_send_transaction_status.rb +207 -0
  82. data/lib/turnkey_client/models/export_private_key_request.rb +14 -4
  83. data/lib/turnkey_client/models/export_wallet_account_request.rb +14 -4
  84. data/lib/turnkey_client/models/export_wallet_request.rb +14 -4
  85. data/lib/turnkey_client/models/fiat_on_ramp_credential.rb +330 -0
  86. data/lib/turnkey_client/models/get_gas_usage_request.rb +211 -0
  87. data/lib/turnkey_client/models/get_gas_usage_response.rb +241 -0
  88. data/lib/turnkey_client/models/get_nonces_request.rb +261 -0
  89. data/lib/turnkey_client/models/get_nonces_response.rb +218 -0
  90. data/lib/turnkey_client/models/get_on_ramp_transaction_status_request.rb +237 -0
  91. data/lib/turnkey_client/models/get_on_ramp_transaction_status_response.rb +211 -0
  92. data/lib/turnkey_client/models/get_send_transaction_status_request.rb +226 -0
  93. data/lib/turnkey_client/models/get_send_transaction_status_response.rb +240 -0
  94. data/lib/turnkey_client/models/import_private_key_request.rb +14 -4
  95. data/lib/turnkey_client/models/import_wallet_request.rb +14 -4
  96. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +14 -4
  97. data/lib/turnkey_client/models/init_import_private_key_request.rb +14 -4
  98. data/lib/turnkey_client/models/init_import_wallet_request.rb +14 -4
  99. data/lib/turnkey_client/models/init_otp_auth_intent_v3.rb +336 -0
  100. data/lib/turnkey_client/models/init_otp_auth_request.rb +16 -6
  101. data/lib/turnkey_client/models/init_otp_intent_v2.rb +336 -0
  102. data/lib/turnkey_client/models/init_otp_request.rb +16 -6
  103. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +37 -4
  104. data/lib/turnkey_client/models/init_user_email_recovery_intent_v2.rb +284 -0
  105. data/lib/turnkey_client/models/init_user_email_recovery_request.rb +16 -6
  106. data/lib/turnkey_client/models/intent.rb +148 -4
  107. data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_request.rb +211 -0
  108. data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_response.rb +212 -0
  109. data/lib/turnkey_client/models/native_revert_error.rb +229 -0
  110. data/lib/turnkey_client/models/oauth2_authenticate_request.rb +14 -4
  111. data/lib/turnkey_client/models/oauth_login_request.rb +14 -4
  112. data/lib/turnkey_client/models/oauth_request.rb +14 -4
  113. data/lib/turnkey_client/models/otp_auth_request.rb +14 -4
  114. data/lib/turnkey_client/models/otp_login_intent.rb +0 -2
  115. data/lib/turnkey_client/models/otp_login_request.rb +14 -4
  116. data/lib/turnkey_client/models/recover_user_request.rb +14 -4
  117. data/lib/turnkey_client/models/reject_activity_request.rb +14 -4
  118. data/lib/turnkey_client/models/remove_organization_feature_request.rb +14 -4
  119. data/lib/turnkey_client/models/result.rb +112 -4
  120. data/lib/turnkey_client/models/revert_chain_entry.rb +253 -0
  121. data/lib/turnkey_client/models/set_organization_feature_request.rb +14 -4
  122. data/lib/turnkey_client/models/sign_raw_payload_request.rb +14 -4
  123. data/lib/turnkey_client/models/sign_raw_payloads_request.rb +14 -4
  124. data/lib/turnkey_client/models/sign_transaction_request.rb +14 -4
  125. data/lib/turnkey_client/models/sol_send_transaction_intent.rb +297 -0
  126. data/lib/turnkey_client/models/sol_send_transaction_request.rb +298 -0
  127. data/lib/turnkey_client/models/sol_send_transaction_result.rb +211 -0
  128. data/lib/turnkey_client/models/stamp_login_request.rb +14 -4
  129. data/lib/turnkey_client/models/transaction_type.rb +2 -0
  130. data/lib/turnkey_client/models/tvc_manifest_approval.rb +226 -0
  131. data/lib/turnkey_client/models/tvc_operator_params.rb +226 -0
  132. data/lib/turnkey_client/models/tvc_operator_set_params.rb +250 -0
  133. data/lib/turnkey_client/models/tx_error.rb +218 -0
  134. data/lib/turnkey_client/models/unknown_revert_error.rb +218 -0
  135. data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +27 -5
  136. data/lib/turnkey_client/models/update_fiat_on_ramp_credential_intent.rb +277 -0
  137. data/lib/turnkey_client/models/update_fiat_on_ramp_credential_request.rb +298 -0
  138. data/lib/turnkey_client/models/update_fiat_on_ramp_credential_result.rb +211 -0
  139. data/lib/turnkey_client/models/update_oauth2_credential_request.rb +14 -4
  140. data/lib/turnkey_client/models/update_policy_request.rb +14 -4
  141. data/lib/turnkey_client/models/update_private_key_tag_request.rb +14 -4
  142. data/lib/turnkey_client/models/update_root_quorum_request.rb +14 -4
  143. data/lib/turnkey_client/models/update_user_email_request.rb +14 -4
  144. data/lib/turnkey_client/models/update_user_name_request.rb +14 -4
  145. data/lib/turnkey_client/models/update_user_phone_number_request.rb +14 -4
  146. data/lib/turnkey_client/models/update_user_request.rb +14 -4
  147. data/lib/turnkey_client/models/update_user_tag_request.rb +14 -4
  148. data/lib/turnkey_client/models/update_wallet_request.rb +14 -4
  149. data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +241 -0
  150. data/lib/turnkey_client/models/upsert_gas_usage_config_result.rb +211 -0
  151. data/lib/turnkey_client/models/verify_otp_request.rb +14 -4
  152. data/lib/turnkey_client/version.rb +1 -1
  153. data/lib/turnkey_client.rb +63 -2
  154. data/turnkey_client.gemspec +1 -1
  155. metadata +90 -33
  156. data/turnkey_client-0.0.12.gem +0 -0
  157. data/turnkey_client-0.0.13.gem +0 -0
  158. data/turnkey_client-0.0.14.gem +0 -0
  159. data/turnkey_client-0.0.2.gem +0 -0
  160. data/turnkey_client-0.0.3.gem +0 -0
  161. data/turnkey_client-0.0.4.gem +0 -0
  162. data/turnkey_client-0.0.7.gem +0 -0
  163. data/turnkey_client-0.0.8.gem +0 -0
  164. data/turnkey_client-0.0.9.gem +0 -0
@@ -184,6 +184,30 @@ module TurnkeyClient
184
184
 
185
185
  attr_accessor :oauth2_authenticate_result
186
186
 
187
+ attr_accessor :delete_wallet_accounts_result
188
+
189
+ attr_accessor :delete_policies_result
190
+
191
+ attr_accessor :eth_send_raw_transaction_result
192
+
193
+ attr_accessor :create_fiat_on_ramp_credential_result
194
+
195
+ attr_accessor :update_fiat_on_ramp_credential_result
196
+
197
+ attr_accessor :delete_fiat_on_ramp_credential_result
198
+
199
+ attr_accessor :eth_send_transaction_result
200
+
201
+ attr_accessor :upsert_gas_usage_config_result
202
+
203
+ attr_accessor :create_tvc_app_result
204
+
205
+ attr_accessor :create_tvc_deployment_result
206
+
207
+ attr_accessor :create_tvc_manifest_approvals_result
208
+
209
+ attr_accessor :sol_send_transaction_result
210
+
187
211
  # Attribute mapping from ruby-style variable name to JSON key.
188
212
  def self.attribute_map
189
213
  {
@@ -272,7 +296,19 @@ module TurnkeyClient
272
296
  :'create_oauth2_credential_result' => :'createOauth2CredentialResult',
273
297
  :'update_oauth2_credential_result' => :'updateOauth2CredentialResult',
274
298
  :'delete_oauth2_credential_result' => :'deleteOauth2CredentialResult',
275
- :'oauth2_authenticate_result' => :'oauth2AuthenticateResult'
299
+ :'oauth2_authenticate_result' => :'oauth2AuthenticateResult',
300
+ :'delete_wallet_accounts_result' => :'deleteWalletAccountsResult',
301
+ :'delete_policies_result' => :'deletePoliciesResult',
302
+ :'eth_send_raw_transaction_result' => :'ethSendRawTransactionResult',
303
+ :'create_fiat_on_ramp_credential_result' => :'createFiatOnRampCredentialResult',
304
+ :'update_fiat_on_ramp_credential_result' => :'updateFiatOnRampCredentialResult',
305
+ :'delete_fiat_on_ramp_credential_result' => :'deleteFiatOnRampCredentialResult',
306
+ :'eth_send_transaction_result' => :'ethSendTransactionResult',
307
+ :'upsert_gas_usage_config_result' => :'upsertGasUsageConfigResult',
308
+ :'create_tvc_app_result' => :'createTvcAppResult',
309
+ :'create_tvc_deployment_result' => :'createTvcDeploymentResult',
310
+ :'create_tvc_manifest_approvals_result' => :'createTvcManifestApprovalsResult',
311
+ :'sol_send_transaction_result' => :'solSendTransactionResult'
276
312
  }
277
313
  end
278
314
 
@@ -364,7 +400,19 @@ module TurnkeyClient
364
400
  :'create_oauth2_credential_result' => :'Object',
365
401
  :'update_oauth2_credential_result' => :'Object',
366
402
  :'delete_oauth2_credential_result' => :'Object',
367
- :'oauth2_authenticate_result' => :'Object'
403
+ :'oauth2_authenticate_result' => :'Object',
404
+ :'delete_wallet_accounts_result' => :'Object',
405
+ :'delete_policies_result' => :'Object',
406
+ :'eth_send_raw_transaction_result' => :'Object',
407
+ :'create_fiat_on_ramp_credential_result' => :'Object',
408
+ :'update_fiat_on_ramp_credential_result' => :'Object',
409
+ :'delete_fiat_on_ramp_credential_result' => :'Object',
410
+ :'eth_send_transaction_result' => :'Object',
411
+ :'upsert_gas_usage_config_result' => :'Object',
412
+ :'create_tvc_app_result' => :'Object',
413
+ :'create_tvc_deployment_result' => :'Object',
414
+ :'create_tvc_manifest_approvals_result' => :'Object',
415
+ :'sol_send_transaction_result' => :'Object'
368
416
  }
369
417
  end
370
418
 
@@ -732,6 +780,54 @@ module TurnkeyClient
732
780
  if attributes.key?(:'oauth2_authenticate_result')
733
781
  self.oauth2_authenticate_result = attributes[:'oauth2_authenticate_result']
734
782
  end
783
+
784
+ if attributes.key?(:'delete_wallet_accounts_result')
785
+ self.delete_wallet_accounts_result = attributes[:'delete_wallet_accounts_result']
786
+ end
787
+
788
+ if attributes.key?(:'delete_policies_result')
789
+ self.delete_policies_result = attributes[:'delete_policies_result']
790
+ end
791
+
792
+ if attributes.key?(:'eth_send_raw_transaction_result')
793
+ self.eth_send_raw_transaction_result = attributes[:'eth_send_raw_transaction_result']
794
+ end
795
+
796
+ if attributes.key?(:'create_fiat_on_ramp_credential_result')
797
+ self.create_fiat_on_ramp_credential_result = attributes[:'create_fiat_on_ramp_credential_result']
798
+ end
799
+
800
+ if attributes.key?(:'update_fiat_on_ramp_credential_result')
801
+ self.update_fiat_on_ramp_credential_result = attributes[:'update_fiat_on_ramp_credential_result']
802
+ end
803
+
804
+ if attributes.key?(:'delete_fiat_on_ramp_credential_result')
805
+ self.delete_fiat_on_ramp_credential_result = attributes[:'delete_fiat_on_ramp_credential_result']
806
+ end
807
+
808
+ if attributes.key?(:'eth_send_transaction_result')
809
+ self.eth_send_transaction_result = attributes[:'eth_send_transaction_result']
810
+ end
811
+
812
+ if attributes.key?(:'upsert_gas_usage_config_result')
813
+ self.upsert_gas_usage_config_result = attributes[:'upsert_gas_usage_config_result']
814
+ end
815
+
816
+ if attributes.key?(:'create_tvc_app_result')
817
+ self.create_tvc_app_result = attributes[:'create_tvc_app_result']
818
+ end
819
+
820
+ if attributes.key?(:'create_tvc_deployment_result')
821
+ self.create_tvc_deployment_result = attributes[:'create_tvc_deployment_result']
822
+ end
823
+
824
+ if attributes.key?(:'create_tvc_manifest_approvals_result')
825
+ self.create_tvc_manifest_approvals_result = attributes[:'create_tvc_manifest_approvals_result']
826
+ end
827
+
828
+ if attributes.key?(:'sol_send_transaction_result')
829
+ self.sol_send_transaction_result = attributes[:'sol_send_transaction_result']
830
+ end
735
831
  end
736
832
 
737
833
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -837,7 +933,19 @@ module TurnkeyClient
837
933
  create_oauth2_credential_result == o.create_oauth2_credential_result &&
838
934
  update_oauth2_credential_result == o.update_oauth2_credential_result &&
839
935
  delete_oauth2_credential_result == o.delete_oauth2_credential_result &&
840
- oauth2_authenticate_result == o.oauth2_authenticate_result
936
+ oauth2_authenticate_result == o.oauth2_authenticate_result &&
937
+ delete_wallet_accounts_result == o.delete_wallet_accounts_result &&
938
+ delete_policies_result == o.delete_policies_result &&
939
+ eth_send_raw_transaction_result == o.eth_send_raw_transaction_result &&
940
+ create_fiat_on_ramp_credential_result == o.create_fiat_on_ramp_credential_result &&
941
+ update_fiat_on_ramp_credential_result == o.update_fiat_on_ramp_credential_result &&
942
+ delete_fiat_on_ramp_credential_result == o.delete_fiat_on_ramp_credential_result &&
943
+ eth_send_transaction_result == o.eth_send_transaction_result &&
944
+ upsert_gas_usage_config_result == o.upsert_gas_usage_config_result &&
945
+ create_tvc_app_result == o.create_tvc_app_result &&
946
+ create_tvc_deployment_result == o.create_tvc_deployment_result &&
947
+ create_tvc_manifest_approvals_result == o.create_tvc_manifest_approvals_result &&
948
+ sol_send_transaction_result == o.sol_send_transaction_result
841
949
  end
842
950
 
843
951
  # @see the `==` method
@@ -849,7 +957,7 @@ module TurnkeyClient
849
957
  # Calculates hash code according to all attributes.
850
958
  # @return [Integer] Hash code
851
959
  def hash
852
- [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result, enable_auth_proxy_result, disable_auth_proxy_result, update_auth_proxy_config_result, create_oauth2_credential_result, update_oauth2_credential_result, delete_oauth2_credential_result, oauth2_authenticate_result].hash
960
+ [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result, enable_auth_proxy_result, disable_auth_proxy_result, update_auth_proxy_config_result, create_oauth2_credential_result, update_oauth2_credential_result, delete_oauth2_credential_result, oauth2_authenticate_result, delete_wallet_accounts_result, delete_policies_result, eth_send_raw_transaction_result, create_fiat_on_ramp_credential_result, update_fiat_on_ramp_credential_result, delete_fiat_on_ramp_credential_result, eth_send_transaction_result, upsert_gas_usage_config_result, create_tvc_app_result, create_tvc_deployment_result, create_tvc_manifest_approvals_result, sol_send_transaction_result].hash
853
961
  end
854
962
 
855
963
  # Builds the object from hash
@@ -0,0 +1,253 @@
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 RevertChainEntry
15
+ # The contract address where the revert occurred.
16
+ attr_accessor :address
17
+
18
+ # Type of error: 'unknown', 'native', or 'custom'.
19
+ attr_accessor :error_type
20
+
21
+ # Human-readable message describing this revert.
22
+ attr_accessor :display_message
23
+
24
+ attr_accessor :unknown
25
+
26
+ attr_accessor :native
27
+
28
+ attr_accessor :custom
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'address' => :'address',
34
+ :'error_type' => :'errorType',
35
+ :'display_message' => :'displayMessage',
36
+ :'unknown' => :'unknown',
37
+ :'native' => :'native',
38
+ :'custom' => :'custom'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'address' => :'Object',
46
+ :'error_type' => :'Object',
47
+ :'display_message' => :'Object',
48
+ :'unknown' => :'Object',
49
+ :'native' => :'Object',
50
+ :'custom' => :'Object'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RevertChainEntry` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RevertChainEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'address')
76
+ self.address = attributes[:'address']
77
+ end
78
+
79
+ if attributes.key?(:'error_type')
80
+ self.error_type = attributes[:'error_type']
81
+ end
82
+
83
+ if attributes.key?(:'display_message')
84
+ self.display_message = attributes[:'display_message']
85
+ end
86
+
87
+ if attributes.key?(:'unknown')
88
+ self.unknown = attributes[:'unknown']
89
+ end
90
+
91
+ if attributes.key?(:'native')
92
+ self.native = attributes[:'native']
93
+ end
94
+
95
+ if attributes.key?(:'custom')
96
+ self.custom = attributes[:'custom']
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ address == o.address &&
119
+ error_type == o.error_type &&
120
+ display_message == o.display_message &&
121
+ unknown == o.unknown &&
122
+ native == o.native &&
123
+ custom == o.custom
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Integer] Hash code
134
+ def hash
135
+ [address, error_type, display_message, unknown, native, custom].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def self.build_from_hash(attributes)
142
+ new.build_from_hash(attributes)
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def build_from_hash(attributes)
149
+ return nil unless attributes.is_a?(Hash)
150
+ self.class.openapi_types.each_pair do |key, type|
151
+ if type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
160
+ self.send("#{key}=", nil)
161
+ end
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :DateTime
174
+ DateTime.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ TurnkeyClient.const_get(type).build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end end
253
+ end
@@ -22,6 +22,8 @@ module TurnkeyClient
22
22
 
23
23
  attr_accessor :parameters
24
24
 
25
+ attr_accessor :generate_app_proofs
26
+
25
27
  class EnumAttributeValidator
26
28
  attr_reader :datatype
27
29
  attr_reader :allowable_values
@@ -50,7 +52,8 @@ module TurnkeyClient
50
52
  :'type' => :'type',
51
53
  :'timestamp_ms' => :'timestampMs',
52
54
  :'organization_id' => :'organizationId',
53
- :'parameters' => :'parameters'
55
+ :'parameters' => :'parameters',
56
+ :'generate_app_proofs' => :'generateAppProofs'
54
57
  }
55
58
  end
56
59
 
@@ -60,13 +63,15 @@ module TurnkeyClient
60
63
  :'type' => :'Object',
61
64
  :'timestamp_ms' => :'Object',
62
65
  :'organization_id' => :'Object',
63
- :'parameters' => :'Object'
66
+ :'parameters' => :'Object',
67
+ :'generate_app_proofs' => :'Object'
64
68
  }
65
69
  end
66
70
 
67
71
  # List of attributes with nullable: true
68
72
  def self.openapi_nullable
69
73
  Set.new([
74
+ :'generate_app_proofs'
70
75
  ])
71
76
  end
72
77
 
@@ -100,6 +105,10 @@ module TurnkeyClient
100
105
  if attributes.key?(:'parameters')
101
106
  self.parameters = attributes[:'parameters']
102
107
  end
108
+
109
+ if attributes.key?(:'generate_app_proofs')
110
+ self.generate_app_proofs = attributes[:'generate_app_proofs']
111
+ end
103
112
  end
104
113
 
105
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +164,8 @@ module TurnkeyClient
155
164
  type == o.type &&
156
165
  timestamp_ms == o.timestamp_ms &&
157
166
  organization_id == o.organization_id &&
158
- parameters == o.parameters
167
+ parameters == o.parameters &&
168
+ generate_app_proofs == o.generate_app_proofs
159
169
  end
160
170
 
161
171
  # @see the `==` method
@@ -167,7 +177,7 @@ module TurnkeyClient
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [type, timestamp_ms, organization_id, parameters].hash
180
+ [type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash
@@ -22,6 +22,8 @@ module TurnkeyClient
22
22
 
23
23
  attr_accessor :parameters
24
24
 
25
+ attr_accessor :generate_app_proofs
26
+
25
27
  class EnumAttributeValidator
26
28
  attr_reader :datatype
27
29
  attr_reader :allowable_values
@@ -50,7 +52,8 @@ module TurnkeyClient
50
52
  :'type' => :'type',
51
53
  :'timestamp_ms' => :'timestampMs',
52
54
  :'organization_id' => :'organizationId',
53
- :'parameters' => :'parameters'
55
+ :'parameters' => :'parameters',
56
+ :'generate_app_proofs' => :'generateAppProofs'
54
57
  }
55
58
  end
56
59
 
@@ -60,13 +63,15 @@ module TurnkeyClient
60
63
  :'type' => :'Object',
61
64
  :'timestamp_ms' => :'Object',
62
65
  :'organization_id' => :'Object',
63
- :'parameters' => :'Object'
66
+ :'parameters' => :'Object',
67
+ :'generate_app_proofs' => :'Object'
64
68
  }
65
69
  end
66
70
 
67
71
  # List of attributes with nullable: true
68
72
  def self.openapi_nullable
69
73
  Set.new([
74
+ :'generate_app_proofs'
70
75
  ])
71
76
  end
72
77
 
@@ -100,6 +105,10 @@ module TurnkeyClient
100
105
  if attributes.key?(:'parameters')
101
106
  self.parameters = attributes[:'parameters']
102
107
  end
108
+
109
+ if attributes.key?(:'generate_app_proofs')
110
+ self.generate_app_proofs = attributes[:'generate_app_proofs']
111
+ end
103
112
  end
104
113
 
105
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +164,8 @@ module TurnkeyClient
155
164
  type == o.type &&
156
165
  timestamp_ms == o.timestamp_ms &&
157
166
  organization_id == o.organization_id &&
158
- parameters == o.parameters
167
+ parameters == o.parameters &&
168
+ generate_app_proofs == o.generate_app_proofs
159
169
  end
160
170
 
161
171
  # @see the `==` method
@@ -167,7 +177,7 @@ module TurnkeyClient
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [type, timestamp_ms, organization_id, parameters].hash
180
+ [type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash
@@ -22,6 +22,8 @@ module TurnkeyClient
22
22
 
23
23
  attr_accessor :parameters
24
24
 
25
+ attr_accessor :generate_app_proofs
26
+
25
27
  class EnumAttributeValidator
26
28
  attr_reader :datatype
27
29
  attr_reader :allowable_values
@@ -50,7 +52,8 @@ module TurnkeyClient
50
52
  :'type' => :'type',
51
53
  :'timestamp_ms' => :'timestampMs',
52
54
  :'organization_id' => :'organizationId',
53
- :'parameters' => :'parameters'
55
+ :'parameters' => :'parameters',
56
+ :'generate_app_proofs' => :'generateAppProofs'
54
57
  }
55
58
  end
56
59
 
@@ -60,13 +63,15 @@ module TurnkeyClient
60
63
  :'type' => :'Object',
61
64
  :'timestamp_ms' => :'Object',
62
65
  :'organization_id' => :'Object',
63
- :'parameters' => :'Object'
66
+ :'parameters' => :'Object',
67
+ :'generate_app_proofs' => :'Object'
64
68
  }
65
69
  end
66
70
 
67
71
  # List of attributes with nullable: true
68
72
  def self.openapi_nullable
69
73
  Set.new([
74
+ :'generate_app_proofs'
70
75
  ])
71
76
  end
72
77
 
@@ -100,6 +105,10 @@ module TurnkeyClient
100
105
  if attributes.key?(:'parameters')
101
106
  self.parameters = attributes[:'parameters']
102
107
  end
108
+
109
+ if attributes.key?(:'generate_app_proofs')
110
+ self.generate_app_proofs = attributes[:'generate_app_proofs']
111
+ end
103
112
  end
104
113
 
105
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +164,8 @@ module TurnkeyClient
155
164
  type == o.type &&
156
165
  timestamp_ms == o.timestamp_ms &&
157
166
  organization_id == o.organization_id &&
158
- parameters == o.parameters
167
+ parameters == o.parameters &&
168
+ generate_app_proofs == o.generate_app_proofs
159
169
  end
160
170
 
161
171
  # @see the `==` method
@@ -167,7 +177,7 @@ module TurnkeyClient
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [type, timestamp_ms, organization_id, parameters].hash
180
+ [type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash
@@ -22,6 +22,8 @@ module TurnkeyClient
22
22
 
23
23
  attr_accessor :parameters
24
24
 
25
+ attr_accessor :generate_app_proofs
26
+
25
27
  class EnumAttributeValidator
26
28
  attr_reader :datatype
27
29
  attr_reader :allowable_values
@@ -50,7 +52,8 @@ module TurnkeyClient
50
52
  :'type' => :'type',
51
53
  :'timestamp_ms' => :'timestampMs',
52
54
  :'organization_id' => :'organizationId',
53
- :'parameters' => :'parameters'
55
+ :'parameters' => :'parameters',
56
+ :'generate_app_proofs' => :'generateAppProofs'
54
57
  }
55
58
  end
56
59
 
@@ -60,13 +63,15 @@ module TurnkeyClient
60
63
  :'type' => :'Object',
61
64
  :'timestamp_ms' => :'Object',
62
65
  :'organization_id' => :'Object',
63
- :'parameters' => :'Object'
66
+ :'parameters' => :'Object',
67
+ :'generate_app_proofs' => :'Object'
64
68
  }
65
69
  end
66
70
 
67
71
  # List of attributes with nullable: true
68
72
  def self.openapi_nullable
69
73
  Set.new([
74
+ :'generate_app_proofs'
70
75
  ])
71
76
  end
72
77
 
@@ -100,6 +105,10 @@ module TurnkeyClient
100
105
  if attributes.key?(:'parameters')
101
106
  self.parameters = attributes[:'parameters']
102
107
  end
108
+
109
+ if attributes.key?(:'generate_app_proofs')
110
+ self.generate_app_proofs = attributes[:'generate_app_proofs']
111
+ end
103
112
  end
104
113
 
105
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +164,8 @@ module TurnkeyClient
155
164
  type == o.type &&
156
165
  timestamp_ms == o.timestamp_ms &&
157
166
  organization_id == o.organization_id &&
158
- parameters == o.parameters
167
+ parameters == o.parameters &&
168
+ generate_app_proofs == o.generate_app_proofs
159
169
  end
160
170
 
161
171
  # @see the `==` method
@@ -167,7 +177,7 @@ module TurnkeyClient
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [type, timestamp_ms, organization_id, parameters].hash
180
+ [type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash