turnkey_client 0.0.13 → 0.0.15

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 (208) 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/app_proof_api.rb +77 -0
  5. data/lib/turnkey_client/api/authenticators_api.rb +16 -16
  6. data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
  7. data/lib/turnkey_client/api/consensus_api.rb +8 -8
  8. data/lib/turnkey_client/api/default_api.rb +77 -0
  9. data/lib/turnkey_client/api/features_api.rb +8 -8
  10. data/lib/turnkey_client/api/invitations_api.rb +8 -8
  11. data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
  12. data/lib/turnkey_client/api/organizations_api.rb +18 -18
  13. data/lib/turnkey_client/api/policies_api.rb +256 -24
  14. data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
  15. data/lib/turnkey_client/api/private_keys_api.rb +28 -28
  16. data/lib/turnkey_client/api/sessions_api.rb +184 -10
  17. data/lib/turnkey_client/api/signing_api.rb +12 -12
  18. data/lib/turnkey_client/api/user_auth_api.rb +310 -20
  19. data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
  20. data/lib/turnkey_client/api/user_tags_api.rb +12 -12
  21. data/lib/turnkey_client/api/user_verification_api.rb +135 -0
  22. data/lib/turnkey_client/api/users_api.rb +194 -20
  23. data/lib/turnkey_client/api/wallets_api.rb +48 -48
  24. data/lib/turnkey_client/models/activity.rb +13 -1
  25. data/lib/turnkey_client/models/activity_type.rb +21 -0
  26. data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
  27. data/lib/turnkey_client/models/address_format.rb +1 -0
  28. data/lib/turnkey_client/models/api_key.rb +1 -0
  29. data/lib/turnkey_client/models/api_key_params.rb +1 -0
  30. data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
  31. data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
  32. data/lib/turnkey_client/models/app_proof.rb +255 -0
  33. data/lib/turnkey_client/models/boot_proof.rb +315 -0
  34. data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
  35. data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
  36. data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
  37. data/lib/turnkey_client/models/create_oauth2_credential_request.rb +288 -0
  38. data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
  39. data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
  40. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
  41. data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
  42. data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
  43. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
  44. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
  45. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
  46. data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
  47. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
  48. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
  49. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
  50. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +19 -4
  51. data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
  52. data/lib/turnkey_client/models/create_users_request.rb +2 -2
  53. data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
  54. data/lib/turnkey_client/models/credential_type.rb +3 -0
  55. data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
  56. data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
  57. data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +288 -0
  58. data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
  59. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
  60. data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
  61. data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
  62. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
  63. data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
  64. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
  65. data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
  66. data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
  67. data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
  68. data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
  69. data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
  70. data/lib/turnkey_client/models/email_customization_params.rb +5 -0
  71. data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
  72. data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
  73. data/lib/turnkey_client/models/feature.rb +1 -0
  74. data/lib/turnkey_client/models/feature_name.rb +1 -0
  75. data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
  76. data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
  77. data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
  78. data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
  79. data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
  80. data/lib/turnkey_client/models/get_activities_request.rb +3 -3
  81. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  82. data/lib/turnkey_client/models/get_activity_request.rb +2 -2
  83. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  84. data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
  85. data/lib/turnkey_client/models/get_app_proofs_request.rb +226 -0
  86. data/lib/turnkey_client/models/get_app_proofs_response.rb +212 -0
  87. data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
  88. data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
  89. data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
  90. data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
  91. data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
  92. data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
  93. data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
  94. data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
  95. data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
  96. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  97. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  98. data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
  99. data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
  100. data/lib/turnkey_client/models/get_policy_request.rb +2 -2
  101. data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
  102. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  103. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  104. data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
  105. data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
  106. data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
  107. data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
  108. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
  109. data/lib/turnkey_client/models/get_user_request.rb +2 -2
  110. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  111. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  112. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
  113. data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
  114. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +15 -8
  115. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  116. data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
  117. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  118. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  119. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  120. data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
  121. data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +326 -0
  122. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
  123. data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +236 -0
  124. data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
  125. data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
  126. data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
  127. data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
  128. data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
  129. data/lib/turnkey_client/models/init_otp_request.rb +288 -0
  130. data/lib/turnkey_client/models/init_otp_result.rb +211 -0
  131. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
  132. data/lib/turnkey_client/models/intent.rb +193 -4
  133. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  134. data/lib/turnkey_client/models/list_oauth2_credentials_request.rb +211 -0
  135. data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
  136. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  137. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  138. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  139. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  140. data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
  141. data/lib/turnkey_client/models/oauth2_authenticate_request.rb +288 -0
  142. data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
  143. data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
  144. data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
  145. data/lib/turnkey_client/models/oauth_intent.rb +18 -5
  146. data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
  147. data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
  148. data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
  149. data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
  150. data/lib/turnkey_client/models/otp_login_intent.rb +259 -0
  151. data/lib/turnkey_client/models/otp_login_request.rb +288 -0
  152. data/lib/turnkey_client/models/otp_login_result.rb +211 -0
  153. data/lib/turnkey_client/models/outcome.rb +31 -0
  154. data/lib/turnkey_client/models/payload_encoding.rb +2 -0
  155. data/lib/turnkey_client/models/policy.rb +2 -0
  156. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  157. data/lib/turnkey_client/models/result.rb +184 -4
  158. data/lib/turnkey_client/models/root_user_params.rb +3 -2
  159. data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
  160. data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
  161. data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
  162. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
  163. data/lib/turnkey_client/models/signature_scheme.rb +26 -0
  164. data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
  165. data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
  166. data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
  167. data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
  168. data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
  169. data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
  170. data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
  171. data/lib/turnkey_client/models/transaction_type.rb +1 -0
  172. data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
  173. data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +346 -0
  174. data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
  175. data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
  176. data/lib/turnkey_client/models/update_oauth2_credential_request.rb +288 -0
  177. data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
  178. data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
  179. data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
  180. data/lib/turnkey_client/models/update_policy_request.rb +2 -2
  181. data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
  182. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
  183. data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
  184. data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
  185. data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
  186. data/lib/turnkey_client/models/update_user_intent.rb +4 -1
  187. data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
  188. data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
  189. data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
  190. data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
  191. data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
  192. data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
  193. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
  194. data/lib/turnkey_client/models/user.rb +3 -1
  195. data/lib/turnkey_client/models/user_params.rb +4 -3
  196. data/lib/turnkey_client/models/user_params_v2.rb +4 -3
  197. data/lib/turnkey_client/models/user_params_v3.rb +301 -0
  198. data/lib/turnkey_client/models/verify_otp_intent.rb +248 -0
  199. data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
  200. data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
  201. data/lib/turnkey_client/models/wallet_account.rb +24 -4
  202. data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
  203. data/lib/turnkey_client/models/wallet_params.rb +2 -1
  204. data/lib/turnkey_client/version.rb +1 -1
  205. data/lib/turnkey_client.rb +93 -0
  206. data/turnkey_client-0.0.13.gem +0 -0
  207. data/turnkey_client-0.0.14.gem +0 -0
  208. metadata +99 -2
@@ -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
+ :'delete_without_export'
35
36
  ])
36
37
  end
37
38
 
@@ -37,6 +37,7 @@ module TurnkeyClient
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'delete_without_export'
40
41
  ])
41
42
  end
42
43
 
@@ -0,0 +1,196 @@
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 DisableAuthProxyIntent
15
+ # Attribute mapping from ruby-style variable name to JSON key.
16
+ def self.attribute_map
17
+ {
18
+ }
19
+ end
20
+
21
+ # Attribute type mapping.
22
+ def self.openapi_types
23
+ {
24
+ }
25
+ end
26
+
27
+ # List of attributes with nullable: true
28
+ def self.openapi_nullable
29
+ Set.new([
30
+ ])
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ if (!attributes.is_a?(Hash))
37
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::DisableAuthProxyIntent` initialize method"
38
+ end
39
+
40
+ # check to see if the attribute exists and convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}) { |(k, v), h|
42
+ if (!self.class.attribute_map.key?(k.to_sym))
43
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::DisableAuthProxyIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
44
+ end
45
+ h[k.to_sym] = v
46
+ }
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properties with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Integer] Hash code
77
+ def hash
78
+ [].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def self.build_from_hash(attributes)
85
+ new.build_from_hash(attributes)
86
+ end
87
+
88
+ # Builds the object from hash
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ # @return [Object] Returns the model itself
91
+ def build_from_hash(attributes)
92
+ return nil unless attributes.is_a?(Hash)
93
+ self.class.openapi_types.each_pair do |key, type|
94
+ if type =~ /\AArray<(.*)>/i
95
+ # check to ensure the input is an array given that the attribute
96
+ # is documented as an array but the input is not
97
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
98
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ end
100
+ elsif !attributes[self.class.attribute_map[key]].nil?
101
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
102
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
103
+ self.send("#{key}=", nil)
104
+ end
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :Boolean
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ TurnkeyClient.const_get(type).build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ if value.nil?
170
+ is_nullable = self.class.openapi_nullable.include?(attr)
171
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
172
+ end
173
+
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map { |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end end
196
+ end
@@ -0,0 +1,196 @@
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 DisableAuthProxyResult
15
+ # Attribute mapping from ruby-style variable name to JSON key.
16
+ def self.attribute_map
17
+ {
18
+ }
19
+ end
20
+
21
+ # Attribute type mapping.
22
+ def self.openapi_types
23
+ {
24
+ }
25
+ end
26
+
27
+ # List of attributes with nullable: true
28
+ def self.openapi_nullable
29
+ Set.new([
30
+ ])
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ if (!attributes.is_a?(Hash))
37
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::DisableAuthProxyResult` initialize method"
38
+ end
39
+
40
+ # check to see if the attribute exists and convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}) { |(k, v), h|
42
+ if (!self.class.attribute_map.key?(k.to_sym))
43
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::DisableAuthProxyResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
44
+ end
45
+ h[k.to_sym] = v
46
+ }
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properties with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Integer] Hash code
77
+ def hash
78
+ [].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def self.build_from_hash(attributes)
85
+ new.build_from_hash(attributes)
86
+ end
87
+
88
+ # Builds the object from hash
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ # @return [Object] Returns the model itself
91
+ def build_from_hash(attributes)
92
+ return nil unless attributes.is_a?(Hash)
93
+ self.class.openapi_types.each_pair do |key, type|
94
+ if type =~ /\AArray<(.*)>/i
95
+ # check to ensure the input is an array given that the attribute
96
+ # is documented as an array but the input is not
97
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
98
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ end
100
+ elsif !attributes[self.class.attribute_map[key]].nil?
101
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
102
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
103
+ self.send("#{key}=", nil)
104
+ end
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :Boolean
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ TurnkeyClient.const_get(type).build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ if value.nil?
170
+ is_nullable = self.class.openapi_nullable.include?(attr)
171
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
172
+ end
173
+
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map { |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end end
196
+ end
@@ -21,7 +21,7 @@ module TurnkeyClient
21
21
  # Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp>
22
22
  attr_accessor :api_key_name
23
23
 
24
- # Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used.
24
+ # Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used.
25
25
  attr_accessor :expiration_seconds
26
26
 
27
27
  attr_accessor :email_customization
@@ -32,6 +32,12 @@ module TurnkeyClient
32
32
  # Optional custom email address from which to send the email
33
33
  attr_accessor :send_from_email_address
34
34
 
35
+ # Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications'
36
+ attr_accessor :send_from_email_sender_name
37
+
38
+ # Optional custom email address to use as reply-to
39
+ attr_accessor :reply_to_email_address
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
@@ -41,7 +47,9 @@ module TurnkeyClient
41
47
  :'expiration_seconds' => :'expirationSeconds',
42
48
  :'email_customization' => :'emailCustomization',
43
49
  :'invalidate_existing' => :'invalidateExisting',
44
- :'send_from_email_address' => :'sendFromEmailAddress'
50
+ :'send_from_email_address' => :'sendFromEmailAddress',
51
+ :'send_from_email_sender_name' => :'sendFromEmailSenderName',
52
+ :'reply_to_email_address' => :'replyToEmailAddress'
45
53
  }
46
54
  end
47
55
 
@@ -54,13 +62,21 @@ module TurnkeyClient
54
62
  :'expiration_seconds' => :'Object',
55
63
  :'email_customization' => :'Object',
56
64
  :'invalidate_existing' => :'Object',
57
- :'send_from_email_address' => :'Object'
65
+ :'send_from_email_address' => :'Object',
66
+ :'send_from_email_sender_name' => :'Object',
67
+ :'reply_to_email_address' => :'Object'
58
68
  }
59
69
  end
60
70
 
61
71
  # List of attributes with nullable: true
62
72
  def self.openapi_nullable
63
73
  Set.new([
74
+ :'api_key_name',
75
+ :'expiration_seconds',
76
+ :'invalidate_existing',
77
+ :'send_from_email_address',
78
+ :'send_from_email_sender_name',
79
+ :'reply_to_email_address'
64
80
  ])
65
81
  end
66
82
 
@@ -106,6 +122,14 @@ module TurnkeyClient
106
122
  if attributes.key?(:'send_from_email_address')
107
123
  self.send_from_email_address = attributes[:'send_from_email_address']
108
124
  end
125
+
126
+ if attributes.key?(:'send_from_email_sender_name')
127
+ self.send_from_email_sender_name = attributes[:'send_from_email_sender_name']
128
+ end
129
+
130
+ if attributes.key?(:'reply_to_email_address')
131
+ self.reply_to_email_address = attributes[:'reply_to_email_address']
132
+ end
109
133
  end
110
134
 
111
135
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,7 +166,9 @@ module TurnkeyClient
142
166
  expiration_seconds == o.expiration_seconds &&
143
167
  email_customization == o.email_customization &&
144
168
  invalidate_existing == o.invalidate_existing &&
145
- send_from_email_address == o.send_from_email_address
169
+ send_from_email_address == o.send_from_email_address &&
170
+ send_from_email_sender_name == o.send_from_email_sender_name &&
171
+ reply_to_email_address == o.reply_to_email_address
146
172
  end
147
173
 
148
174
  # @see the `==` method
@@ -154,7 +180,7 @@ module TurnkeyClient
154
180
  # Calculates hash code according to all attributes.
155
181
  # @return [Integer] Hash code
156
182
  def hash
157
- [email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address].hash
183
+ [email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address, send_from_email_sender_name, reply_to_email_address].hash
158
184
  end
159
185
 
160
186
  # Builds the object from hash
@@ -21,7 +21,7 @@ module TurnkeyClient
21
21
  # Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp>
22
22
  attr_accessor :api_key_name
23
23
 
24
- # Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used.
24
+ # Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used.
25
25
  attr_accessor :expiration_seconds
26
26
 
27
27
  attr_accessor :email_customization
@@ -32,6 +32,12 @@ module TurnkeyClient
32
32
  # Optional custom email address from which to send the email
33
33
  attr_accessor :send_from_email_address
34
34
 
35
+ # Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications'
36
+ attr_accessor :send_from_email_sender_name
37
+
38
+ # Optional custom email address to use as reply-to
39
+ attr_accessor :reply_to_email_address
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
@@ -41,7 +47,9 @@ module TurnkeyClient
41
47
  :'expiration_seconds' => :'expirationSeconds',
42
48
  :'email_customization' => :'emailCustomization',
43
49
  :'invalidate_existing' => :'invalidateExisting',
44
- :'send_from_email_address' => :'sendFromEmailAddress'
50
+ :'send_from_email_address' => :'sendFromEmailAddress',
51
+ :'send_from_email_sender_name' => :'sendFromEmailSenderName',
52
+ :'reply_to_email_address' => :'replyToEmailAddress'
45
53
  }
46
54
  end
47
55
 
@@ -54,13 +62,21 @@ module TurnkeyClient
54
62
  :'expiration_seconds' => :'Object',
55
63
  :'email_customization' => :'Object',
56
64
  :'invalidate_existing' => :'Object',
57
- :'send_from_email_address' => :'Object'
65
+ :'send_from_email_address' => :'Object',
66
+ :'send_from_email_sender_name' => :'Object',
67
+ :'reply_to_email_address' => :'Object'
58
68
  }
59
69
  end
60
70
 
61
71
  # List of attributes with nullable: true
62
72
  def self.openapi_nullable
63
73
  Set.new([
74
+ :'api_key_name',
75
+ :'expiration_seconds',
76
+ :'invalidate_existing',
77
+ :'send_from_email_address',
78
+ :'send_from_email_sender_name',
79
+ :'reply_to_email_address'
64
80
  ])
65
81
  end
66
82
 
@@ -106,6 +122,14 @@ module TurnkeyClient
106
122
  if attributes.key?(:'send_from_email_address')
107
123
  self.send_from_email_address = attributes[:'send_from_email_address']
108
124
  end
125
+
126
+ if attributes.key?(:'send_from_email_sender_name')
127
+ self.send_from_email_sender_name = attributes[:'send_from_email_sender_name']
128
+ end
129
+
130
+ if attributes.key?(:'reply_to_email_address')
131
+ self.reply_to_email_address = attributes[:'reply_to_email_address']
132
+ end
109
133
  end
110
134
 
111
135
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,7 +166,9 @@ module TurnkeyClient
142
166
  expiration_seconds == o.expiration_seconds &&
143
167
  email_customization == o.email_customization &&
144
168
  invalidate_existing == o.invalidate_existing &&
145
- send_from_email_address == o.send_from_email_address
169
+ send_from_email_address == o.send_from_email_address &&
170
+ send_from_email_sender_name == o.send_from_email_sender_name &&
171
+ reply_to_email_address == o.reply_to_email_address
146
172
  end
147
173
 
148
174
  # @see the `==` method
@@ -154,7 +180,7 @@ module TurnkeyClient
154
180
  # Calculates hash code according to all attributes.
155
181
  # @return [Integer] Hash code
156
182
  def hash
157
- [email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address].hash
183
+ [email, target_public_key, api_key_name, expiration_seconds, email_customization, invalidate_existing, send_from_email_address, send_from_email_sender_name, reply_to_email_address].hash
158
184
  end
159
185
 
160
186
  # Builds the object from hash
@@ -52,6 +52,11 @@ module TurnkeyClient
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'app_name',
56
+ :'logo_url',
57
+ :'magic_link_template',
58
+ :'template_variables',
59
+ :'template_id'
55
60
  ])
56
61
  end
57
62