turnkey_client 0.0.13 → 0.0.14

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 (167) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +66 -8
  3. data/lib/turnkey_client/api/api_keys_api.rb +14 -14
  4. data/lib/turnkey_client/api/authenticators_api.rb +16 -16
  5. data/lib/turnkey_client/api/consensus_api.rb +8 -8
  6. data/lib/turnkey_client/api/features_api.rb +8 -8
  7. data/lib/turnkey_client/api/invitations_api.rb +8 -8
  8. data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
  9. data/lib/turnkey_client/api/organizations_api.rb +18 -18
  10. data/lib/turnkey_client/api/policies_api.rb +256 -24
  11. data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
  12. data/lib/turnkey_client/api/private_keys_api.rb +28 -28
  13. data/lib/turnkey_client/api/sessions_api.rb +184 -10
  14. data/lib/turnkey_client/api/signing_api.rb +12 -12
  15. data/lib/turnkey_client/api/user_auth_api.rb +20 -20
  16. data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
  17. data/lib/turnkey_client/api/user_tags_api.rb +12 -12
  18. data/lib/turnkey_client/api/user_verification_api.rb +135 -0
  19. data/lib/turnkey_client/api/users_api.rb +194 -20
  20. data/lib/turnkey_client/api/wallets_api.rb +48 -48
  21. data/lib/turnkey_client/models/activity_type.rb +14 -0
  22. data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
  23. data/lib/turnkey_client/models/address_format.rb +1 -0
  24. data/lib/turnkey_client/models/api_key.rb +1 -0
  25. data/lib/turnkey_client/models/api_key_params.rb +1 -0
  26. data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
  27. data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
  28. data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
  29. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
  30. data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
  31. data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
  32. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
  33. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
  34. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
  35. data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
  36. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
  37. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
  38. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
  39. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +4 -0
  40. data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
  41. data/lib/turnkey_client/models/create_users_request.rb +2 -2
  42. data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
  43. data/lib/turnkey_client/models/credential_type.rb +3 -0
  44. data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
  45. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
  46. data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
  47. data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
  48. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
  49. data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
  50. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
  51. data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
  52. data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
  53. data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
  54. data/lib/turnkey_client/models/email_customization_params.rb +5 -0
  55. data/lib/turnkey_client/models/feature.rb +1 -0
  56. data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
  57. data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
  58. data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
  59. data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
  60. data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
  61. data/lib/turnkey_client/models/get_activities_request.rb +3 -3
  62. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  63. data/lib/turnkey_client/models/get_activity_request.rb +2 -2
  64. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  65. data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
  66. data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
  67. data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
  68. data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
  69. data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
  70. data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
  71. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  72. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  73. data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
  74. data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
  75. data/lib/turnkey_client/models/get_policy_request.rb +2 -2
  76. data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
  77. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  78. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  79. data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
  80. data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
  81. data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
  82. data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
  83. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
  84. data/lib/turnkey_client/models/get_user_request.rb +2 -2
  85. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  86. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  87. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
  88. data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
  89. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +3 -7
  90. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  91. data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
  92. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  93. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  94. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  95. data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
  96. data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +315 -0
  97. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
  98. data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +226 -0
  99. data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
  100. data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
  101. data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
  102. data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
  103. data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
  104. data/lib/turnkey_client/models/init_otp_request.rb +288 -0
  105. data/lib/turnkey_client/models/init_otp_result.rb +211 -0
  106. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
  107. data/lib/turnkey_client/models/intent.rb +130 -4
  108. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  109. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  110. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  111. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  112. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  113. data/lib/turnkey_client/models/oauth_intent.rb +18 -5
  114. data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
  115. data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
  116. data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
  117. data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
  118. data/lib/turnkey_client/models/otp_login_intent.rb +248 -0
  119. data/lib/turnkey_client/models/otp_login_request.rb +288 -0
  120. data/lib/turnkey_client/models/otp_login_result.rb +211 -0
  121. data/lib/turnkey_client/models/outcome.rb +31 -0
  122. data/lib/turnkey_client/models/payload_encoding.rb +1 -0
  123. data/lib/turnkey_client/models/policy.rb +2 -0
  124. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  125. data/lib/turnkey_client/models/result.rb +121 -4
  126. data/lib/turnkey_client/models/root_user_params.rb +3 -2
  127. data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
  128. data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
  129. data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
  130. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
  131. data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
  132. data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
  133. data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
  134. data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
  135. data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
  136. data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
  137. data/lib/turnkey_client/models/transaction_type.rb +1 -0
  138. data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
  139. data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
  140. data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
  141. data/lib/turnkey_client/models/update_policy_request.rb +2 -2
  142. data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
  143. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
  144. data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
  145. data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
  146. data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
  147. data/lib/turnkey_client/models/update_user_intent.rb +4 -1
  148. data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
  149. data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
  150. data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
  151. data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
  152. data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
  153. data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
  154. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
  155. data/lib/turnkey_client/models/user.rb +3 -1
  156. data/lib/turnkey_client/models/user_params.rb +4 -3
  157. data/lib/turnkey_client/models/user_params_v2.rb +4 -3
  158. data/lib/turnkey_client/models/user_params_v3.rb +301 -0
  159. data/lib/turnkey_client/models/verify_otp_intent.rb +237 -0
  160. data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
  161. data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
  162. data/lib/turnkey_client/models/wallet_account.rb +15 -4
  163. data/lib/turnkey_client/models/wallet_params.rb +2 -1
  164. data/lib/turnkey_client/version.rb +1 -1
  165. data/lib/turnkey_client.rb +57 -0
  166. data/turnkey_client-0.0.13.gem +0 -0
  167. metadata +60 -2
@@ -144,6 +144,32 @@ module TurnkeyClient
144
144
 
145
145
  attr_accessor :update_wallet_result
146
146
 
147
+ attr_accessor :update_policy_result_v2
148
+
149
+ attr_accessor :init_otp_auth_result_v2
150
+
151
+ attr_accessor :init_otp_result
152
+
153
+ attr_accessor :verify_otp_result
154
+
155
+ attr_accessor :otp_login_result
156
+
157
+ attr_accessor :stamp_login_result
158
+
159
+ attr_accessor :oauth_login_result
160
+
161
+ attr_accessor :update_user_name_result
162
+
163
+ attr_accessor :update_user_email_result
164
+
165
+ attr_accessor :update_user_phone_number_result
166
+
167
+ attr_accessor :init_fiat_on_ramp_result
168
+
169
+ attr_accessor :create_smart_contract_interface_result
170
+
171
+ attr_accessor :delete_smart_contract_interface_result
172
+
147
173
  # Attribute mapping from ruby-style variable name to JSON key.
148
174
  def self.attribute_map
149
175
  {
@@ -212,7 +238,20 @@ module TurnkeyClient
212
238
  :'init_otp_auth_result' => :'initOtpAuthResult',
213
239
  :'otp_auth_result' => :'otpAuthResult',
214
240
  :'create_sub_organization_result_v7' => :'createSubOrganizationResultV7',
215
- :'update_wallet_result' => :'updateWalletResult'
241
+ :'update_wallet_result' => :'updateWalletResult',
242
+ :'update_policy_result_v2' => :'updatePolicyResultV2',
243
+ :'init_otp_auth_result_v2' => :'initOtpAuthResultV2',
244
+ :'init_otp_result' => :'initOtpResult',
245
+ :'verify_otp_result' => :'verifyOtpResult',
246
+ :'otp_login_result' => :'otpLoginResult',
247
+ :'stamp_login_result' => :'stampLoginResult',
248
+ :'oauth_login_result' => :'oauthLoginResult',
249
+ :'update_user_name_result' => :'updateUserNameResult',
250
+ :'update_user_email_result' => :'updateUserEmailResult',
251
+ :'update_user_phone_number_result' => :'updateUserPhoneNumberResult',
252
+ :'init_fiat_on_ramp_result' => :'initFiatOnRampResult',
253
+ :'create_smart_contract_interface_result' => :'createSmartContractInterfaceResult',
254
+ :'delete_smart_contract_interface_result' => :'deleteSmartContractInterfaceResult'
216
255
  }
217
256
  end
218
257
 
@@ -284,7 +323,20 @@ module TurnkeyClient
284
323
  :'init_otp_auth_result' => :'Object',
285
324
  :'otp_auth_result' => :'Object',
286
325
  :'create_sub_organization_result_v7' => :'Object',
287
- :'update_wallet_result' => :'Object'
326
+ :'update_wallet_result' => :'Object',
327
+ :'update_policy_result_v2' => :'Object',
328
+ :'init_otp_auth_result_v2' => :'Object',
329
+ :'init_otp_result' => :'Object',
330
+ :'verify_otp_result' => :'Object',
331
+ :'otp_login_result' => :'Object',
332
+ :'stamp_login_result' => :'Object',
333
+ :'oauth_login_result' => :'Object',
334
+ :'update_user_name_result' => :'Object',
335
+ :'update_user_email_result' => :'Object',
336
+ :'update_user_phone_number_result' => :'Object',
337
+ :'init_fiat_on_ramp_result' => :'Object',
338
+ :'create_smart_contract_interface_result' => :'Object',
339
+ :'delete_smart_contract_interface_result' => :'Object'
288
340
  }
289
341
  end
290
342
 
@@ -572,6 +624,58 @@ module TurnkeyClient
572
624
  if attributes.key?(:'update_wallet_result')
573
625
  self.update_wallet_result = attributes[:'update_wallet_result']
574
626
  end
627
+
628
+ if attributes.key?(:'update_policy_result_v2')
629
+ self.update_policy_result_v2 = attributes[:'update_policy_result_v2']
630
+ end
631
+
632
+ if attributes.key?(:'init_otp_auth_result_v2')
633
+ self.init_otp_auth_result_v2 = attributes[:'init_otp_auth_result_v2']
634
+ end
635
+
636
+ if attributes.key?(:'init_otp_result')
637
+ self.init_otp_result = attributes[:'init_otp_result']
638
+ end
639
+
640
+ if attributes.key?(:'verify_otp_result')
641
+ self.verify_otp_result = attributes[:'verify_otp_result']
642
+ end
643
+
644
+ if attributes.key?(:'otp_login_result')
645
+ self.otp_login_result = attributes[:'otp_login_result']
646
+ end
647
+
648
+ if attributes.key?(:'stamp_login_result')
649
+ self.stamp_login_result = attributes[:'stamp_login_result']
650
+ end
651
+
652
+ if attributes.key?(:'oauth_login_result')
653
+ self.oauth_login_result = attributes[:'oauth_login_result']
654
+ end
655
+
656
+ if attributes.key?(:'update_user_name_result')
657
+ self.update_user_name_result = attributes[:'update_user_name_result']
658
+ end
659
+
660
+ if attributes.key?(:'update_user_email_result')
661
+ self.update_user_email_result = attributes[:'update_user_email_result']
662
+ end
663
+
664
+ if attributes.key?(:'update_user_phone_number_result')
665
+ self.update_user_phone_number_result = attributes[:'update_user_phone_number_result']
666
+ end
667
+
668
+ if attributes.key?(:'init_fiat_on_ramp_result')
669
+ self.init_fiat_on_ramp_result = attributes[:'init_fiat_on_ramp_result']
670
+ end
671
+
672
+ if attributes.key?(:'create_smart_contract_interface_result')
673
+ self.create_smart_contract_interface_result = attributes[:'create_smart_contract_interface_result']
674
+ end
675
+
676
+ if attributes.key?(:'delete_smart_contract_interface_result')
677
+ self.delete_smart_contract_interface_result = attributes[:'delete_smart_contract_interface_result']
678
+ end
575
679
  end
576
680
 
577
681
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -657,7 +761,20 @@ module TurnkeyClient
657
761
  init_otp_auth_result == o.init_otp_auth_result &&
658
762
  otp_auth_result == o.otp_auth_result &&
659
763
  create_sub_organization_result_v7 == o.create_sub_organization_result_v7 &&
660
- update_wallet_result == o.update_wallet_result
764
+ update_wallet_result == o.update_wallet_result &&
765
+ update_policy_result_v2 == o.update_policy_result_v2 &&
766
+ init_otp_auth_result_v2 == o.init_otp_auth_result_v2 &&
767
+ init_otp_result == o.init_otp_result &&
768
+ verify_otp_result == o.verify_otp_result &&
769
+ otp_login_result == o.otp_login_result &&
770
+ stamp_login_result == o.stamp_login_result &&
771
+ oauth_login_result == o.oauth_login_result &&
772
+ update_user_name_result == o.update_user_name_result &&
773
+ update_user_email_result == o.update_user_email_result &&
774
+ update_user_phone_number_result == o.update_user_phone_number_result &&
775
+ init_fiat_on_ramp_result == o.init_fiat_on_ramp_result &&
776
+ create_smart_contract_interface_result == o.create_smart_contract_interface_result &&
777
+ delete_smart_contract_interface_result == o.delete_smart_contract_interface_result
661
778
  end
662
779
 
663
780
  # @see the `==` method
@@ -669,7 +786,7 @@ module TurnkeyClient
669
786
  # Calculates hash code according to all attributes.
670
787
  # @return [Integer] Hash code
671
788
  def hash
672
- [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].hash
789
+ [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].hash
673
790
  end
674
791
 
675
792
  # Builds the object from hash
@@ -18,10 +18,10 @@ module TurnkeyClient
18
18
  # The user's email address.
19
19
  attr_accessor :user_email
20
20
 
21
- # A list of API Key parameters.
21
+ # A list of API Key parameters. This field, if not needed, should be an empty array in your request body.
22
22
  attr_accessor :api_keys
23
23
 
24
- # A list of Authenticator parameters.
24
+ # A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body.
25
25
  attr_accessor :authenticators
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,6 +47,7 @@ module TurnkeyClient
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'user_email',
50
51
  ])
51
52
  end
52
53
 
@@ -18,13 +18,13 @@ module TurnkeyClient
18
18
  # The user's email address.
19
19
  attr_accessor :user_email
20
20
 
21
- # A list of API Key parameters.
21
+ # A list of API Key parameters. This field, if not needed, should be an empty array in your request body.
22
22
  attr_accessor :api_keys
23
23
 
24
- # A list of Authenticator parameters.
24
+ # A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body.
25
25
  attr_accessor :authenticators
26
26
 
27
- # A list of Oauth providers.
27
+ # A list of Oauth providers. This field, if not needed, should be an empty array in your request body.
28
28
  attr_accessor :oauth_providers
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +52,7 @@ module TurnkeyClient
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'user_email',
55
56
  ])
56
57
  end
57
58
 
@@ -18,13 +18,13 @@ module TurnkeyClient
18
18
  # The user's email address.
19
19
  attr_accessor :user_email
20
20
 
21
- # A list of API Key parameters.
21
+ # A list of API Key parameters. This field, if not needed, should be an empty array in your request body.
22
22
  attr_accessor :api_keys
23
23
 
24
- # A list of Authenticator parameters.
24
+ # A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body.
25
25
  attr_accessor :authenticators
26
26
 
27
- # A list of Oauth providers.
27
+ # A list of Oauth providers. This field, if not needed, should be an empty array in your request body.
28
28
  attr_accessor :oauth_providers
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +52,7 @@ module TurnkeyClient
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'user_email',
55
56
  ])
56
57
  end
57
58
 
@@ -21,13 +21,13 @@ module TurnkeyClient
21
21
  # The user's phone number in E.164 format e.g. +13214567890
22
22
  attr_accessor :user_phone_number
23
23
 
24
- # A list of API Key parameters.
24
+ # A list of API Key parameters. This field, if not needed, should be an empty array in your request body.
25
25
  attr_accessor :api_keys
26
26
 
27
- # A list of Authenticator parameters.
27
+ # A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body.
28
28
  attr_accessor :authenticators
29
29
 
30
- # A list of Oauth providers.
30
+ # A list of Oauth providers. This field, if not needed, should be an empty array in your request body.
31
31
  attr_accessor :oauth_providers
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -57,6 +57,8 @@ module TurnkeyClient
57
57
  # List of attributes with nullable: true
58
58
  def self.openapi_nullable
59
59
  Set.new([
60
+ :'user_email',
61
+ :'user_phone_number',
60
62
  ])
61
63
  end
62
64
 
@@ -36,6 +36,7 @@ module TurnkeyClient
36
36
  # List of attributes with nullable: true
37
37
  def self.openapi_nullable
38
38
  Set.new([
39
+ :'value'
39
40
  ])
40
41
  end
41
42
 
@@ -39,6 +39,8 @@ module TurnkeyClient
39
39
  # List of attributes with nullable: true
40
40
  def self.openapi_nullable
41
41
  Set.new([
42
+ :'appid',
43
+ :'appid_exclude',
42
44
  ])
43
45
  end
44
46
 
@@ -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
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class SmartContractInterfaceType
15
+ ETHEREUM = 'SMART_CONTRACT_INTERFACE_TYPE_ETHEREUM'.freeze
16
+ SOLANA = 'SMART_CONTRACT_INTERFACE_TYPE_SOLANA'.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 = SmartContractInterfaceType.constants.select { |c| SmartContractInterfaceType::const_get(c) == value }
23
+ raise "Invalid ENUM value #{value} for class #SmartContractInterfaceType" if constantValues.empty?
24
+ value
25
+ end
26
+ end
27
+ end
@@ -32,6 +32,7 @@ module TurnkeyClient
32
32
  # List of attributes with nullable: true
33
33
  def self.openapi_nullable
34
34
  Set.new([
35
+ :'template'
35
36
  ])
36
37
  end
37
38
 
@@ -0,0 +1,233 @@
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 StampLoginIntent
15
+ # Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request
16
+ attr_accessor :public_key
17
+
18
+ # Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used.
19
+ attr_accessor :expiration_seconds
20
+
21
+ # Invalidate all other previously generated Login API keys
22
+ attr_accessor :invalidate_existing
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'public_key' => :'publicKey',
28
+ :'expiration_seconds' => :'expirationSeconds',
29
+ :'invalidate_existing' => :'invalidateExisting'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'public_key' => :'Object',
37
+ :'expiration_seconds' => :'Object',
38
+ :'invalidate_existing' => :'Object'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ :'expiration_seconds',
46
+ :'invalidate_existing'
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::StampLoginIntent` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::StampLoginIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'public_key')
66
+ self.public_key = attributes[:'public_key']
67
+ end
68
+
69
+ if attributes.key?(:'expiration_seconds')
70
+ self.expiration_seconds = attributes[:'expiration_seconds']
71
+ end
72
+
73
+ if attributes.key?(:'invalidate_existing')
74
+ self.invalidate_existing = attributes[:'invalidate_existing']
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ if @public_key.nil?
83
+ invalid_properties.push('invalid value for "public_key", public_key cannot be nil.')
84
+ end
85
+
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ return false if @public_key.nil?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ public_key == o.public_key &&
102
+ expiration_seconds == o.expiration_seconds &&
103
+ invalidate_existing == o.invalidate_existing
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ def hash
115
+ [public_key, expiration_seconds, invalidate_existing].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def self.build_from_hash(attributes)
122
+ new.build_from_hash(attributes)
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ self.class.openapi_types.each_pair do |key, type|
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the attribute
133
+ # is documented as an array but the input is not
134
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
136
+ end
137
+ elsif !attributes[self.class.attribute_map[key]].nil?
138
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
139
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
140
+ self.send("#{key}=", nil)
141
+ end
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ TurnkeyClient.const_get(type).build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end end
233
+ end