turnkey_client 0.0.4 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/organizations_api.rb +58 -0
  3. data/lib/turnkey_client/api/policies_api.rb +58 -0
  4. data/lib/turnkey_client/api/sessions_api.rb +116 -0
  5. data/lib/turnkey_client/api/signing_api.rb +58 -0
  6. data/lib/turnkey_client/api/users_api.rb +232 -0
  7. data/lib/turnkey_client/models/activity.rb +13 -4
  8. data/lib/turnkey_client/models/activity_type.rb +11 -0
  9. data/lib/turnkey_client/models/any.rb +200 -0
  10. data/lib/turnkey_client/models/api_key_curve.rb +28 -0
  11. data/lib/turnkey_client/models/api_key_params_v2.rb +250 -0
  12. data/lib/turnkey_client/models/config.rb +216 -0
  13. data/lib/turnkey_client/models/create_api_keys_intent_v2.rb +228 -0
  14. data/lib/turnkey_client/models/create_api_keys_request.rb +2 -2
  15. data/lib/turnkey_client/models/create_oauth_providers_intent.rb +228 -0
  16. data/lib/turnkey_client/models/create_oauth_providers_request.rb +288 -0
  17. data/lib/turnkey_client/models/create_oauth_providers_result.rb +213 -0
  18. data/lib/turnkey_client/models/create_policies_intent.rb +213 -0
  19. data/lib/turnkey_client/models/create_policies_request.rb +288 -0
  20. data/lib/turnkey_client/models/create_policies_result.rb +213 -0
  21. data/lib/turnkey_client/models/create_read_only_session_intent.rb +196 -0
  22. data/lib/turnkey_client/models/create_read_only_session_request.rb +288 -0
  23. data/lib/turnkey_client/models/create_read_only_session_result.rb +286 -0
  24. data/lib/turnkey_client/models/create_read_write_session_intent.rb +246 -0
  25. data/lib/turnkey_client/models/create_read_write_session_request.rb +288 -0
  26. data/lib/turnkey_client/models/create_read_write_session_result.rb +286 -0
  27. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +272 -0
  28. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +272 -0
  29. data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
  30. data/lib/turnkey_client/models/create_sub_organization_result_v5.rb +230 -0
  31. data/lib/turnkey_client/models/create_sub_organization_result_v6.rb +230 -0
  32. data/lib/turnkey_client/models/credential_type.rb +3 -0
  33. data/lib/turnkey_client/models/delete_oauth_providers_intent.rb +228 -0
  34. data/lib/turnkey_client/models/delete_oauth_providers_request.rb +288 -0
  35. data/lib/turnkey_client/models/delete_oauth_providers_result.rb +213 -0
  36. data/lib/turnkey_client/models/email_auth_intent.rb +14 -4
  37. data/lib/turnkey_client/models/email_auth_intent_v2.rb +265 -0
  38. data/lib/turnkey_client/models/email_auth_request.rb +2 -2
  39. data/lib/turnkey_client/models/email_customization_params.rb +1 -1
  40. data/lib/turnkey_client/models/external_data_v1_quorum.rb +228 -0
  41. data/lib/turnkey_client/models/get_oauth_providers_request.rb +221 -0
  42. data/lib/turnkey_client/models/get_oauth_providers_response.rb +213 -0
  43. data/lib/turnkey_client/models/get_organization_configs_request.rb +211 -0
  44. data/lib/turnkey_client/models/get_organization_configs_response.rb +210 -0
  45. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +1 -1
  46. data/lib/turnkey_client/models/intent.rb +103 -9
  47. data/lib/turnkey_client/models/oauth_intent.rb +246 -0
  48. data/lib/turnkey_client/models/oauth_provider.rb +299 -0
  49. data/lib/turnkey_client/models/oauth_provider_params.rb +226 -0
  50. data/lib/turnkey_client/models/oauth_request.rb +288 -0
  51. data/lib/turnkey_client/models/oauth_result.rb +241 -0
  52. data/lib/turnkey_client/models/result.rb +85 -4
  53. data/lib/turnkey_client/models/root_user_params_v2.rb +272 -0
  54. data/lib/turnkey_client/models/root_user_params_v3.rb +272 -0
  55. data/lib/turnkey_client/models/sign_raw_payloads_intent.rb +256 -0
  56. data/lib/turnkey_client/models/sign_raw_payloads_request.rb +288 -0
  57. data/lib/turnkey_client/models/sign_raw_payloads_result.rb +207 -0
  58. data/lib/turnkey_client/models/status.rb +225 -0
  59. data/lib/turnkey_client/models/user.rb +18 -1
  60. data/lib/turnkey_client/models/wallet_account.rb +4 -19
  61. data/lib/turnkey_client/version.rb +1 -1
  62. data/lib/turnkey_client.rb +41 -0
  63. data/turnkey_client-0.0.4.gem +0 -0
  64. metadata +44 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0923e45fec71c69f84f9072fc980e47978b50ee07aa942789c44a4005293ba63'
4
- data.tar.gz: 4e7cfcad8e0676aa99dbe439e6b2f459fbf1e069c463e6840f80ed12e841c10f
3
+ metadata.gz: 319944386506e66125f28a1814339fbdf93ec7a7a784ec4ad95a77f13b59f5a0
4
+ data.tar.gz: e90992727c95eccd9de55daaf3ee085242171ae37f176f00fcc44589e77e5fad
5
5
  SHA512:
6
- metadata.gz: 55e2775aa57eb6324dbf3253364764b2ee2ea6979e601a408331944542c45230a15470be438e80395c96030eb078381d198f74412fa935919bcadc7c48cbe547
7
- data.tar.gz: 8de5b03e67cab589d29efaeca8f724cc85e805196c484dfe82638ce9b8f61f5a3dcebc18894ef15da49f2904f91382f1a38456b65b2d02ff457107a07863b9f0
6
+ metadata.gz: 3b3e9c925b5e0503250f2c5a9034bcfa13a6b6d9afdc648b90425b53fb9c8dba86f020305d3d0ab357a1be78e17af94adc1c03cdc0df369e5538d79c2f0e39b5
7
+ data.tar.gz: ff7c8c59e148c28ecf967e0b043df8b0f122023674f34afcdf9ca9f5b8bd15a2837ac68d07331f4a1e0811acc66db5c358e96885c08e9d9d419d202de6ba48b1
@@ -73,6 +73,64 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Get Configs
77
+ # Get quorum settings and features for an organization
78
+ # @param body
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [GetOrganizationConfigsResponse]
81
+ def get_organization_configs(body, opts = {})
82
+ data, _status_code, _headers = get_organization_configs_with_http_info(body, opts)
83
+ data
84
+ end
85
+
86
+ # Get Configs
87
+ # Get quorum settings and features for an organization
88
+ # @param body
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(GetOrganizationConfigsResponse, Integer, Hash)>] GetOrganizationConfigsResponse data, response status code and response headers
91
+ def get_organization_configs_with_http_info(body, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_configs ...'
94
+ end
95
+ # verify the required parameter 'body' is set
96
+ if @api_client.config.client_side_validation && body.nil?
97
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.get_organization_configs"
98
+ end
99
+ # resource path
100
+ local_var_path = '/public/v1/query/get_organization_configs'
101
+
102
+ # query parameters
103
+ query_params = opts[:query_params] || {}
104
+
105
+ # header parameters
106
+ header_params = opts[:header_params] || {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
111
+
112
+ # form parameters
113
+ form_params = opts[:form_params] || {}
114
+
115
+ # http body (model)
116
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
117
+
118
+ return_type = opts[:return_type] || 'GetOrganizationConfigsResponse'
119
+
120
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
121
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => return_type)
128
+
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
76
134
  # Get Suborgs
77
135
  # Get all suborg IDs associated given a parent org ID and an optional filter.
78
136
  # @param body
@@ -15,6 +15,64 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
+ # Create Policies
19
+ # Create new Policies
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [ActivityResponse]
23
+ def create_policies(body, opts = {})
24
+ data, _status_code, _headers = create_policies_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Create Policies
29
+ # Create new Policies
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
33
+ def create_policies_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: PoliciesApi.create_policies ...'
36
+ end
37
+ # verify the required parameter 'body' is set
38
+ if @api_client.config.client_side_validation && body.nil?
39
+ fail ArgumentError, "Missing the required parameter 'body' when calling PoliciesApi.create_policies"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/submit/create_policies'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
59
+
60
+ return_type = opts[:return_type] || 'ActivityResponse'
61
+
62
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
63
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type)
70
+
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: PoliciesApi#create_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
18
76
  # Create Policy
19
77
  # Create a new Policy
20
78
  # @param body
@@ -15,6 +15,122 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
+ # Create Read Only Session
19
+ # Create a read only session for a user (valid for 1 hour)
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [ActivityResponse]
23
+ def create_read_only_session(body, opts = {})
24
+ data, _status_code, _headers = create_read_only_session_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Create Read Only Session
29
+ # Create a read only session for a user (valid for 1 hour)
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
33
+ def create_read_only_session_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: SessionsApi.create_read_only_session ...'
36
+ end
37
+ # verify the required parameter 'body' is set
38
+ if @api_client.config.client_side_validation && body.nil?
39
+ fail ArgumentError, "Missing the required parameter 'body' when calling SessionsApi.create_read_only_session"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/submit/create_read_only_session'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
59
+
60
+ return_type = opts[:return_type] || 'ActivityResponse'
61
+
62
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
63
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type)
70
+
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: SessionsApi#create_read_only_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Create Read Write Session
77
+ # Create a read write session for a user
78
+ # @param body
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [ActivityResponse]
81
+ def create_read_write_session(body, opts = {})
82
+ data, _status_code, _headers = create_read_write_session_with_http_info(body, opts)
83
+ data
84
+ end
85
+
86
+ # Create Read Write Session
87
+ # Create a read write session for a user
88
+ # @param body
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
91
+ def create_read_write_session_with_http_info(body, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: SessionsApi.create_read_write_session ...'
94
+ end
95
+ # verify the required parameter 'body' is set
96
+ if @api_client.config.client_side_validation && body.nil?
97
+ fail ArgumentError, "Missing the required parameter 'body' when calling SessionsApi.create_read_write_session"
98
+ end
99
+ # resource path
100
+ local_var_path = '/public/v1/submit/create_read_write_session'
101
+
102
+ # query parameters
103
+ query_params = opts[:query_params] || {}
104
+
105
+ # header parameters
106
+ header_params = opts[:header_params] || {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
111
+
112
+ # form parameters
113
+ form_params = opts[:form_params] || {}
114
+
115
+ # http body (model)
116
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
117
+
118
+ return_type = opts[:return_type] || 'ActivityResponse'
119
+
120
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
121
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => return_type)
128
+
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: SessionsApi#create_read_write_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
18
134
  # Who am I?
19
135
  # Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN or API key users.
20
136
  # @param body
@@ -73,6 +73,64 @@ module TurnkeyClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Sign Raw Payloads
77
+ # Sign multiple raw payloads with the same signing parameters
78
+ # @param body
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [ActivityResponse]
81
+ def sign_raw_payloads(body, opts = {})
82
+ data, _status_code, _headers = sign_raw_payloads_with_http_info(body, opts)
83
+ data
84
+ end
85
+
86
+ # Sign Raw Payloads
87
+ # Sign multiple raw payloads with the same signing parameters
88
+ # @param body
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
91
+ def sign_raw_payloads_with_http_info(body, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: SigningApi.sign_raw_payloads ...'
94
+ end
95
+ # verify the required parameter 'body' is set
96
+ if @api_client.config.client_side_validation && body.nil?
97
+ fail ArgumentError, "Missing the required parameter 'body' when calling SigningApi.sign_raw_payloads"
98
+ end
99
+ # resource path
100
+ local_var_path = '/public/v1/submit/sign_raw_payloads'
101
+
102
+ # query parameters
103
+ query_params = opts[:query_params] || {}
104
+
105
+ # header parameters
106
+ header_params = opts[:header_params] || {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
111
+
112
+ # form parameters
113
+ form_params = opts[:form_params] || {}
114
+
115
+ # http body (model)
116
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
117
+
118
+ return_type = opts[:return_type] || 'ActivityResponse'
119
+
120
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
121
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => return_type)
128
+
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: SigningApi#sign_raw_payloads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
76
134
  # Sign Transaction
77
135
  # Sign a transaction
78
136
  # @param body
@@ -15,6 +15,64 @@ module TurnkeyClient
15
15
  def initialize(api_client = ApiClient.default)
16
16
  @api_client = api_client
17
17
  end
18
+ # Create Oauth Providers
19
+ # Creates Oauth providers for a specified user - BETA
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [ActivityResponse]
23
+ def create_oauth_providers(body, opts = {})
24
+ data, _status_code, _headers = create_oauth_providers_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Create Oauth Providers
29
+ # Creates Oauth providers for a specified user - BETA
30
+ # @param body
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
33
+ def create_oauth_providers_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: UsersApi.create_oauth_providers ...'
36
+ end
37
+ # verify the required parameter 'body' is set
38
+ if @api_client.config.client_side_validation && body.nil?
39
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.create_oauth_providers"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/submit/create_oauth_providers'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
59
+
60
+ return_type = opts[:return_type] || 'ActivityResponse'
61
+
62
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
63
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type)
70
+
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: UsersApi#create_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
18
76
  # Create Users
19
77
  # Create Users in an existing Organization
20
78
  # @param body
@@ -73,6 +131,64 @@ module TurnkeyClient
73
131
  end
74
132
  return data, status_code, headers
75
133
  end
134
+ # Delete Oauth Providers
135
+ # Removes Oauth providers for a specified user - BETA
136
+ # @param body
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [ActivityResponse]
139
+ def delete_oauth_providers(body, opts = {})
140
+ data, _status_code, _headers = delete_oauth_providers_with_http_info(body, opts)
141
+ data
142
+ end
143
+
144
+ # Delete Oauth Providers
145
+ # Removes Oauth providers for a specified user - BETA
146
+ # @param body
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
149
+ def delete_oauth_providers_with_http_info(body, opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: UsersApi.delete_oauth_providers ...'
152
+ end
153
+ # verify the required parameter 'body' is set
154
+ if @api_client.config.client_side_validation && body.nil?
155
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.delete_oauth_providers"
156
+ end
157
+ # resource path
158
+ local_var_path = '/public/v1/submit/delete_oauth_providers'
159
+
160
+ # query parameters
161
+ query_params = opts[:query_params] || {}
162
+
163
+ # header parameters
164
+ header_params = opts[:header_params] || {}
165
+ # HTTP header 'Accept' (if needed)
166
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
167
+ # HTTP header 'Content-Type'
168
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
169
+
170
+ # form parameters
171
+ form_params = opts[:form_params] || {}
172
+
173
+ # http body (model)
174
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
175
+
176
+ return_type = opts[:return_type] || 'ActivityResponse'
177
+
178
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
179
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names,
185
+ :return_type => return_type)
186
+
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: UsersApi#delete_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
76
192
  # Delete Users
77
193
  # Delete Users within an Organization
78
194
  # @param body
@@ -131,6 +247,64 @@ module TurnkeyClient
131
247
  end
132
248
  return data, status_code, headers
133
249
  end
250
+ # Get Oauth providers
251
+ # Get details about Oauth providers for a user
252
+ # @param body
253
+ # @param [Hash] opts the optional parameters
254
+ # @return [GetOauthProvidersResponse]
255
+ def get_oauth_providers(body, opts = {})
256
+ data, _status_code, _headers = get_oauth_providers_with_http_info(body, opts)
257
+ data
258
+ end
259
+
260
+ # Get Oauth providers
261
+ # Get details about Oauth providers for a user
262
+ # @param body
263
+ # @param [Hash] opts the optional parameters
264
+ # @return [Array<(GetOauthProvidersResponse, Integer, Hash)>] GetOauthProvidersResponse data, response status code and response headers
265
+ def get_oauth_providers_with_http_info(body, opts = {})
266
+ if @api_client.config.debugging
267
+ @api_client.config.logger.debug 'Calling API: UsersApi.get_oauth_providers ...'
268
+ end
269
+ # verify the required parameter 'body' is set
270
+ if @api_client.config.client_side_validation && body.nil?
271
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.get_oauth_providers"
272
+ end
273
+ # resource path
274
+ local_var_path = '/public/v1/query/get_oauth_providers'
275
+
276
+ # query parameters
277
+ query_params = opts[:query_params] || {}
278
+
279
+ # header parameters
280
+ header_params = opts[:header_params] || {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
+ # HTTP header 'Content-Type'
284
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
285
+
286
+ # form parameters
287
+ form_params = opts[:form_params] || {}
288
+
289
+ # http body (model)
290
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
291
+
292
+ return_type = opts[:return_type] || 'GetOauthProvidersResponse'
293
+
294
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
295
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
296
+ :header_params => header_params,
297
+ :query_params => query_params,
298
+ :form_params => form_params,
299
+ :body => post_body,
300
+ :auth_names => auth_names,
301
+ :return_type => return_type)
302
+
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug "API called: UsersApi#get_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
305
+ end
306
+ return data, status_code, headers
307
+ end
134
308
  # Get User
135
309
  # Get details about a User
136
310
  # @param body
@@ -247,6 +421,64 @@ module TurnkeyClient
247
421
  end
248
422
  return data, status_code, headers
249
423
  end
424
+ # Oauth
425
+ # Authenticate a user with an Oidc token (Oauth) - BETA
426
+ # @param body
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [ActivityResponse]
429
+ def oauth(body, opts = {})
430
+ data, _status_code, _headers = oauth_with_http_info(body, opts)
431
+ data
432
+ end
433
+
434
+ # Oauth
435
+ # Authenticate a user with an Oidc token (Oauth) - BETA
436
+ # @param body
437
+ # @param [Hash] opts the optional parameters
438
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
439
+ def oauth_with_http_info(body, opts = {})
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug 'Calling API: UsersApi.oauth ...'
442
+ end
443
+ # verify the required parameter 'body' is set
444
+ if @api_client.config.client_side_validation && body.nil?
445
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.oauth"
446
+ end
447
+ # resource path
448
+ local_var_path = '/public/v1/submit/oauth'
449
+
450
+ # query parameters
451
+ query_params = opts[:query_params] || {}
452
+
453
+ # header parameters
454
+ header_params = opts[:header_params] || {}
455
+ # HTTP header 'Accept' (if needed)
456
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
457
+ # HTTP header 'Content-Type'
458
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
459
+
460
+ # form parameters
461
+ form_params = opts[:form_params] || {}
462
+
463
+ # http body (model)
464
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
465
+
466
+ return_type = opts[:return_type] || 'ActivityResponse'
467
+
468
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
469
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
470
+ :header_params => header_params,
471
+ :query_params => query_params,
472
+ :form_params => form_params,
473
+ :body => post_body,
474
+ :auth_names => auth_names,
475
+ :return_type => return_type)
476
+
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: UsersApi#oauth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
250
482
  # Update User
251
483
  # Update a User in an existing Organization
252
484
  # @param body
@@ -40,6 +40,8 @@ module TurnkeyClient
40
40
 
41
41
  attr_accessor :updated_at
42
42
 
43
+ attr_accessor :failure
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -54,7 +56,8 @@ module TurnkeyClient
54
56
  :'can_approve' => :'canApprove',
55
57
  :'can_reject' => :'canReject',
56
58
  :'created_at' => :'createdAt',
57
- :'updated_at' => :'updatedAt'
59
+ :'updated_at' => :'updatedAt',
60
+ :'failure' => :'failure'
58
61
  }
59
62
  end
60
63
 
@@ -72,7 +75,8 @@ module TurnkeyClient
72
75
  :'can_approve' => :'Object',
73
76
  :'can_reject' => :'Object',
74
77
  :'created_at' => :'Object',
75
- :'updated_at' => :'Object'
78
+ :'updated_at' => :'Object',
79
+ :'failure' => :'Object'
76
80
  }
77
81
  end
78
82
 
@@ -146,6 +150,10 @@ module TurnkeyClient
146
150
  if attributes.key?(:'updated_at')
147
151
  self.updated_at = attributes[:'updated_at']
148
152
  end
153
+
154
+ if attributes.key?(:'failure')
155
+ self.failure = attributes[:'failure']
156
+ end
149
157
  end
150
158
 
151
159
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -237,7 +245,8 @@ module TurnkeyClient
237
245
  can_approve == o.can_approve &&
238
246
  can_reject == o.can_reject &&
239
247
  created_at == o.created_at &&
240
- updated_at == o.updated_at
248
+ updated_at == o.updated_at &&
249
+ failure == o.failure
241
250
  end
242
251
 
243
252
  # @see the `==` method
@@ -249,7 +258,7 @@ module TurnkeyClient
249
258
  # Calculates hash code according to all attributes.
250
259
  # @return [Integer] Hash code
251
260
  def hash
252
- [id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at].hash
261
+ [id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash
253
262
  end
254
263
 
255
264
  # Builds the object from hash
@@ -73,6 +73,17 @@ module TurnkeyClient
73
73
  IMPORT_WALLET = 'ACTIVITY_TYPE_IMPORT_WALLET'.freeze
74
74
  INIT_IMPORT_PRIVATE_KEY = 'ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY'.freeze
75
75
  IMPORT_PRIVATE_KEY = 'ACTIVITY_TYPE_IMPORT_PRIVATE_KEY'.freeze
76
+ CREATE_POLICIES = 'ACTIVITY_TYPE_CREATE_POLICIES'.freeze
77
+ SIGN_RAW_PAYLOADS = 'ACTIVITY_TYPE_SIGN_RAW_PAYLOADS'.freeze
78
+ CREATE_READ_ONLY_SESSION = 'ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION'.freeze
79
+ CREATE_OAUTH_PROVIDERS = 'ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS'.freeze
80
+ DELETE_OAUTH_PROVIDERS = 'ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS'.freeze
81
+ CREATE_SUB_ORGANIZATION_V5 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5'.freeze
82
+ OAUTH = 'ACTIVITY_TYPE_OAUTH'.freeze
83
+ CREATE_API_KEYS_V2 = 'ACTIVITY_TYPE_CREATE_API_KEYS_V2'.freeze
84
+ CREATE_READ_WRITE_SESSION = 'ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION'.freeze
85
+ EMAIL_AUTH_V2 = 'ACTIVITY_TYPE_EMAIL_AUTH_V2'.freeze
86
+ CREATE_SUB_ORGANIZATION_V6 = 'ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6'.freeze
76
87
 
77
88
  # Builds the enum from string
78
89
  # @param [String] The enum value in the form of the string