authlete_ruby_test 0.0.1.beta → 0.0.2.pre.beta

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5f22ddd32c8770e02d00e9accdf405e7331ee5d01bedbbacd3182b6a16167ed
4
- data.tar.gz: 2a2a69cc2376bc5d98481747054dce74bd7ba7508895fb781b7bc0bc106fb161
3
+ metadata.gz: f27a964c2fc4b34b737ef4f0cbbd1d82bf80a9700f5dd9222256831d69cbeb9a
4
+ data.tar.gz: 01d3cd529b95649a4035ea3a615749703df1d41c3b0a4eb32d77c2023b5693b0
5
5
  SHA512:
6
- metadata.gz: 444338634534e394ac0bff0e4f198d12b5da7ef21d8d65db579c04841ea7390cb9e3d038ece1e52de6a065f83833b498dd49ff1fc72be1c825af9fc9c34c5d41
7
- data.tar.gz: ae7585313190a54a5804b1772bc5ded15e5ab9e2a6419821f37637f5337b8a51c8fc8ba712043cf0a90bfc2c336077be948bb62ec011d9cee901a76c0617f19d
6
+ metadata.gz: fb46a62ab4eeaccb182141a21a5594d9adec9a79652330e2c74cf06d75dbf11345f8a5438a994ae412e04b525df27449a6df658b04da397bc106cb06ac1913bb
7
+ data.tar.gz: 0b00645d2d39cbf42ff50119bc06a064c057161486a27362cee7c139b9480946f63c2b794b6f6326191c272a3444dc2bdedfb72ceb2cd310db0f467f9410db9d
@@ -482,7 +482,7 @@ module Authlete
482
482
  hook_ctx = SDKHooks::HookContext.new(
483
483
  config: @sdk_configuration,
484
484
  base_url: base_url,
485
- oauth2_scopes: [],
485
+ oauth2_scopes: nil,
486
486
  operation_id: 'auth_authorization_api',
487
487
  security_source: @sdk_configuration.security_source
488
488
  )
@@ -564,7 +564,7 @@ module Authlete
564
564
  response_data = http_response.env.response_body
565
565
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
566
566
  obj.raw_response = http_response
567
- throw obj
567
+ raise obj
568
568
  else
569
569
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
570
570
  end
@@ -579,7 +579,7 @@ module Authlete
579
579
  response_data = http_response.env.response_body
580
580
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
581
581
  obj.raw_response = http_response
582
- throw obj
582
+ raise obj
583
583
  else
584
584
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
585
585
  end
@@ -713,7 +713,7 @@ module Authlete
713
713
  hook_ctx = SDKHooks::HookContext.new(
714
714
  config: @sdk_configuration,
715
715
  base_url: base_url,
716
- oauth2_scopes: [],
716
+ oauth2_scopes: nil,
717
717
  operation_id: 'auth_authorization_fail_api',
718
718
  security_source: @sdk_configuration.security_source
719
719
  )
@@ -795,7 +795,7 @@ module Authlete
795
795
  response_data = http_response.env.response_body
796
796
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
797
797
  obj.raw_response = http_response
798
- throw obj
798
+ raise obj
799
799
  else
800
800
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
801
801
  end
@@ -810,7 +810,7 @@ module Authlete
810
810
  response_data = http_response.env.response_body
811
811
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
812
812
  obj.raw_response = http_response
813
- throw obj
813
+ raise obj
814
814
  else
815
815
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
816
816
  end
@@ -948,7 +948,7 @@ module Authlete
948
948
  hook_ctx = SDKHooks::HookContext.new(
949
949
  config: @sdk_configuration,
950
950
  base_url: base_url,
951
- oauth2_scopes: [],
951
+ oauth2_scopes: nil,
952
952
  operation_id: 'auth_authorization_issue_api',
953
953
  security_source: @sdk_configuration.security_source
954
954
  )
@@ -1030,7 +1030,7 @@ module Authlete
1030
1030
  response_data = http_response.env.response_body
1031
1031
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1032
1032
  obj.raw_response = http_response
1033
- throw obj
1033
+ raise obj
1034
1034
  else
1035
1035
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1036
1036
  end
@@ -1045,7 +1045,7 @@ module Authlete
1045
1045
  response_data = http_response.env.response_body
1046
1046
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1047
1047
  obj.raw_response = http_response
1048
- throw obj
1048
+ raise obj
1049
1049
  else
1050
1050
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1051
1051
  end
@@ -81,7 +81,7 @@ module Authlete
81
81
  hook_ctx = SDKHooks::HookContext.new(
82
82
  config: @sdk_configuration,
83
83
  base_url: base_url,
84
- oauth2_scopes: [],
84
+ oauth2_scopes: nil,
85
85
  operation_id: 'authorization_ticket_info_post_api',
86
86
  security_source: @sdk_configuration.security_source
87
87
  )
@@ -163,7 +163,7 @@ module Authlete
163
163
  response_data = http_response.env.response_body
164
164
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
165
165
  obj.raw_response = http_response
166
- throw obj
166
+ raise obj
167
167
  else
168
168
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
169
169
  end
@@ -178,7 +178,7 @@ module Authlete
178
178
  response_data = http_response.env.response_body
179
179
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
180
180
  obj.raw_response = http_response
181
- throw obj
181
+ raise obj
182
182
  else
183
183
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
184
184
  end
@@ -235,7 +235,7 @@ module Authlete
235
235
  hook_ctx = SDKHooks::HookContext.new(
236
236
  config: @sdk_configuration,
237
237
  base_url: base_url,
238
- oauth2_scopes: [],
238
+ oauth2_scopes: nil,
239
239
  operation_id: 'updateAuthorizationTicket',
240
240
  security_source: @sdk_configuration.security_source
241
241
  )
@@ -317,7 +317,7 @@ module Authlete
317
317
  response_data = http_response.env.response_body
318
318
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
319
319
  obj.raw_response = http_response
320
- throw obj
320
+ raise obj
321
321
  else
322
322
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
323
323
  end
@@ -332,7 +332,7 @@ module Authlete
332
332
  response_data = http_response.env.response_body
333
333
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
334
334
  obj.raw_response = http_response
335
- throw obj
335
+ raise obj
336
336
  else
337
337
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
338
338
  end
data/lib/authlete/ciba.rb CHANGED
@@ -316,7 +316,7 @@ module Authlete
316
316
  hook_ctx = SDKHooks::HookContext.new(
317
317
  config: @sdk_configuration,
318
318
  base_url: base_url,
319
- oauth2_scopes: [],
319
+ oauth2_scopes: nil,
320
320
  operation_id: 'backchannel_authentication_api',
321
321
  security_source: @sdk_configuration.security_source
322
322
  )
@@ -398,7 +398,7 @@ module Authlete
398
398
  response_data = http_response.env.response_body
399
399
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
400
400
  obj.raw_response = http_response
401
- throw obj
401
+ raise obj
402
402
  else
403
403
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
404
404
  end
@@ -413,7 +413,7 @@ module Authlete
413
413
  response_data = http_response.env.response_body
414
414
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
415
415
  obj.raw_response = http_response
416
- throw obj
416
+ raise obj
417
417
  else
418
418
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
419
419
  end
@@ -535,7 +535,7 @@ module Authlete
535
535
  hook_ctx = SDKHooks::HookContext.new(
536
536
  config: @sdk_configuration,
537
537
  base_url: base_url,
538
- oauth2_scopes: [],
538
+ oauth2_scopes: nil,
539
539
  operation_id: 'backchannel_authentication_issue_api',
540
540
  security_source: @sdk_configuration.security_source
541
541
  )
@@ -617,7 +617,7 @@ module Authlete
617
617
  response_data = http_response.env.response_body
618
618
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
619
619
  obj.raw_response = http_response
620
- throw obj
620
+ raise obj
621
621
  else
622
622
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
623
623
  end
@@ -632,7 +632,7 @@ module Authlete
632
632
  response_data = http_response.env.response_body
633
633
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
634
634
  obj.raw_response = http_response
635
- throw obj
635
+ raise obj
636
636
  else
637
637
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
638
638
  end
@@ -713,7 +713,7 @@ module Authlete
713
713
  hook_ctx = SDKHooks::HookContext.new(
714
714
  config: @sdk_configuration,
715
715
  base_url: base_url,
716
- oauth2_scopes: [],
716
+ oauth2_scopes: nil,
717
717
  operation_id: 'backchannel_authentication_fail_api',
718
718
  security_source: @sdk_configuration.security_source
719
719
  )
@@ -795,7 +795,7 @@ module Authlete
795
795
  response_data = http_response.env.response_body
796
796
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
797
797
  obj.raw_response = http_response
798
- throw obj
798
+ raise obj
799
799
  else
800
800
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
801
801
  end
@@ -810,7 +810,7 @@ module Authlete
810
810
  response_data = http_response.env.response_body
811
811
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
812
812
  obj.raw_response = http_response
813
- throw obj
813
+ raise obj
814
814
  else
815
815
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
816
816
  end
@@ -950,7 +950,7 @@ module Authlete
950
950
  hook_ctx = SDKHooks::HookContext.new(
951
951
  config: @sdk_configuration,
952
952
  base_url: base_url,
953
- oauth2_scopes: [],
953
+ oauth2_scopes: nil,
954
954
  operation_id: 'backchannel_authentication_complete_api',
955
955
  security_source: @sdk_configuration.security_source
956
956
  )
@@ -1032,7 +1032,7 @@ module Authlete
1032
1032
  response_data = http_response.env.response_body
1033
1033
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1034
1034
  obj.raw_response = http_response
1035
- throw obj
1035
+ raise obj
1036
1036
  else
1037
1037
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1038
1038
  end
@@ -1047,7 +1047,7 @@ module Authlete
1047
1047
  response_data = http_response.env.response_body
1048
1048
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1049
1049
  obj.raw_response = http_response
1050
- throw obj
1050
+ raise obj
1051
1051
  else
1052
1052
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1053
1053
  end
@@ -18,6 +18,16 @@ module Authlete
18
18
 
19
19
  attr_accessor :services, :clients, :client_management, :authorization, :pushed_authorization, :tokens, :introspection, :revocation, :userinfo, :token_management, :grant_management, :jwk_set_endpoint, :dynamic_client_registration, :ciba, :device_flow, :jose_object, :federation, :hardware_security_keys, :verifiable_credentials, :authorization_management, :native_sso
20
20
 
21
+ # Instantiates the SDK, configuring it with the provided parameters.
22
+ #
23
+ # @param client [Faraday::Connection, nil] The faraday HTTP client to use for all operations
24
+ # @param retry_config [::Authlete::Utils::RetryConfig, nil] The retry configuration to use for all operations
25
+ # @param timeout_ms [Integer, nil] Request timeout in milliseconds for all operations
26
+ # @param security [Models::Components::Security, nil] The security details required for authentication
27
+ # @param security_source [Proc{|| Models::Components::Security, nil}] A function that returns security details required for authentication
28
+ # @param server_idx [Integer, nil] The index of the server to use for all operations
29
+ # @param server_url [String, nil] The server URL to use for all operations
30
+ # @param url_params [Hash{Symbol => String}, nil] Parameters to optionally template the server URL with
21
31
  sig do
22
32
  params(
23
33
  client: T.nilable(Faraday::Connection),
@@ -31,15 +41,6 @@ module Authlete
31
41
  ).void
32
42
  end
33
43
  def initialize(client: nil, retry_config: nil, timeout_ms: nil, bearer: nil, security_source: nil, server_idx: nil, server_url: nil, url_params: nil)
34
- ## Instantiates the SDK configuring it with the provided parameters.
35
- # @param [T.nilable(Faraday::Connection)] client The faraday HTTP client to use for all operations
36
- # @param [T.nilable(::Authlete::Utils::RetryConfig)] retry_config The retry configuration to use for all operations
37
- # @param [T.nilable(Integer)] timeout_ms Request timeout in milliseconds for all operations
38
- # @param [T.nilable(Models::Components::Security)] security: The security details required for authentication
39
- # @param [T.proc.returns(T.nilable(Models::Components::Security))] security_source: A function that returns security details required for authentication
40
- # @param [T.nilable(::Integer)] server_idx The index of the server to use for all operations
41
- # @param [T.nilable(::String)] server_url The server URL to use for all operations
42
- # @param [T.nilable(::Hash<::Symbol, ::String>)] url_params Parameters to optionally template the server URL with
43
44
 
44
45
  connection_options = {
45
46
  request: {
@@ -83,7 +83,7 @@ module Authlete
83
83
  hook_ctx = SDKHooks::HookContext.new(
84
84
  config: @sdk_configuration,
85
85
  base_url: base_url,
86
- oauth2_scopes: [],
86
+ oauth2_scopes: nil,
87
87
  operation_id: 'client_flag_update_api',
88
88
  security_source: @sdk_configuration.security_source
89
89
  )
@@ -165,7 +165,7 @@ module Authlete
165
165
  response_data = http_response.env.response_body
166
166
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
167
167
  obj.raw_response = http_response
168
- throw obj
168
+ raise obj
169
169
  else
170
170
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
171
171
  end
@@ -180,7 +180,7 @@ module Authlete
180
180
  response_data = http_response.env.response_body
181
181
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
182
182
  obj.raw_response = http_response
183
- throw obj
183
+ raise obj
184
184
  else
185
185
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
186
186
  end
@@ -231,7 +231,7 @@ module Authlete
231
231
  hook_ctx = SDKHooks::HookContext.new(
232
232
  config: @sdk_configuration,
233
233
  base_url: base_url,
234
- oauth2_scopes: [],
234
+ oauth2_scopes: nil,
235
235
  operation_id: 'client_secret_refresh_api',
236
236
  security_source: @sdk_configuration.security_source
237
237
  )
@@ -312,7 +312,7 @@ module Authlete
312
312
  response_data = http_response.env.response_body
313
313
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
314
314
  obj.raw_response = http_response
315
- throw obj
315
+ raise obj
316
316
  else
317
317
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
318
318
  end
@@ -327,7 +327,7 @@ module Authlete
327
327
  response_data = http_response.env.response_body
328
328
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
329
329
  obj.raw_response = http_response
330
- throw obj
330
+ raise obj
331
331
  else
332
332
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
333
333
  end
@@ -390,7 +390,7 @@ module Authlete
390
390
  hook_ctx = SDKHooks::HookContext.new(
391
391
  config: @sdk_configuration,
392
392
  base_url: base_url,
393
- oauth2_scopes: [],
393
+ oauth2_scopes: nil,
394
394
  operation_id: 'client_secret_update_api',
395
395
  security_source: @sdk_configuration.security_source
396
396
  )
@@ -472,7 +472,7 @@ module Authlete
472
472
  response_data = http_response.env.response_body
473
473
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
474
474
  obj.raw_response = http_response
475
- throw obj
475
+ raise obj
476
476
  else
477
477
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
478
478
  end
@@ -487,7 +487,7 @@ module Authlete
487
487
  response_data = http_response.env.response_body
488
488
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
489
489
  obj.raw_response = http_response
490
- throw obj
490
+ raise obj
491
491
  else
492
492
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
493
493
  end
@@ -534,7 +534,7 @@ module Authlete
534
534
  hook_ctx = SDKHooks::HookContext.new(
535
535
  config: @sdk_configuration,
536
536
  base_url: base_url,
537
- oauth2_scopes: [],
537
+ oauth2_scopes: nil,
538
538
  operation_id: 'client_authorization_get_list_api',
539
539
  security_source: @sdk_configuration.security_source
540
540
  )
@@ -616,7 +616,7 @@ module Authlete
616
616
  response_data = http_response.env.response_body
617
617
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
618
618
  obj.raw_response = http_response
619
- throw obj
619
+ raise obj
620
620
  else
621
621
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
622
622
  end
@@ -631,7 +631,7 @@ module Authlete
631
631
  response_data = http_response.env.response_body
632
632
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
633
633
  obj.raw_response = http_response
634
- throw obj
634
+ raise obj
635
635
  else
636
636
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
637
637
  end
@@ -690,7 +690,7 @@ module Authlete
690
690
  hook_ctx = SDKHooks::HookContext.new(
691
691
  config: @sdk_configuration,
692
692
  base_url: base_url,
693
- oauth2_scopes: [],
693
+ oauth2_scopes: nil,
694
694
  operation_id: 'client_authorization_update_api',
695
695
  security_source: @sdk_configuration.security_source
696
696
  )
@@ -772,7 +772,7 @@ module Authlete
772
772
  response_data = http_response.env.response_body
773
773
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
774
774
  obj.raw_response = http_response
775
- throw obj
775
+ raise obj
776
776
  else
777
777
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
778
778
  end
@@ -787,7 +787,7 @@ module Authlete
787
787
  response_data = http_response.env.response_body
788
788
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
789
789
  obj.raw_response = http_response
790
- throw obj
790
+ raise obj
791
791
  else
792
792
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
793
793
  end
@@ -840,7 +840,7 @@ module Authlete
840
840
  hook_ctx = SDKHooks::HookContext.new(
841
841
  config: @sdk_configuration,
842
842
  base_url: base_url,
843
- oauth2_scopes: [],
843
+ oauth2_scopes: nil,
844
844
  operation_id: 'client_authorization_delete_api',
845
845
  security_source: @sdk_configuration.security_source
846
846
  )
@@ -922,7 +922,7 @@ module Authlete
922
922
  response_data = http_response.env.response_body
923
923
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
924
924
  obj.raw_response = http_response
925
- throw obj
925
+ raise obj
926
926
  else
927
927
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
928
928
  end
@@ -937,7 +937,7 @@ module Authlete
937
937
  response_data = http_response.env.response_body
938
938
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
939
939
  obj.raw_response = http_response
940
- throw obj
940
+ raise obj
941
941
  else
942
942
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
943
943
  end
@@ -1001,7 +1001,7 @@ module Authlete
1001
1001
  hook_ctx = SDKHooks::HookContext.new(
1002
1002
  config: @sdk_configuration,
1003
1003
  base_url: base_url,
1004
- oauth2_scopes: [],
1004
+ oauth2_scopes: nil,
1005
1005
  operation_id: 'client_granted_scopes_get_api',
1006
1006
  security_source: @sdk_configuration.security_source
1007
1007
  )
@@ -1083,7 +1083,7 @@ module Authlete
1083
1083
  response_data = http_response.env.response_body
1084
1084
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1085
1085
  obj.raw_response = http_response
1086
- throw obj
1086
+ raise obj
1087
1087
  else
1088
1088
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1089
1089
  end
@@ -1098,7 +1098,7 @@ module Authlete
1098
1098
  response_data = http_response.env.response_body
1099
1099
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1100
1100
  obj.raw_response = http_response
1101
- throw obj
1101
+ raise obj
1102
1102
  else
1103
1103
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1104
1104
  end
@@ -1153,7 +1153,7 @@ module Authlete
1153
1153
  hook_ctx = SDKHooks::HookContext.new(
1154
1154
  config: @sdk_configuration,
1155
1155
  base_url: base_url,
1156
- oauth2_scopes: [],
1156
+ oauth2_scopes: nil,
1157
1157
  operation_id: 'client_granted_scopes_delete_api',
1158
1158
  security_source: @sdk_configuration.security_source
1159
1159
  )
@@ -1235,7 +1235,7 @@ module Authlete
1235
1235
  response_data = http_response.env.response_body
1236
1236
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1237
1237
  obj.raw_response = http_response
1238
- throw obj
1238
+ raise obj
1239
1239
  else
1240
1240
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1241
1241
  end
@@ -1250,7 +1250,7 @@ module Authlete
1250
1250
  response_data = http_response.env.response_body
1251
1251
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1252
1252
  obj.raw_response = http_response
1253
- throw obj
1253
+ raise obj
1254
1254
  else
1255
1255
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1256
1256
  end
@@ -1298,7 +1298,7 @@ module Authlete
1298
1298
  hook_ctx = SDKHooks::HookContext.new(
1299
1299
  config: @sdk_configuration,
1300
1300
  base_url: base_url,
1301
- oauth2_scopes: [],
1301
+ oauth2_scopes: nil,
1302
1302
  operation_id: 'client_extension_requestables_scopes_get_api',
1303
1303
  security_source: @sdk_configuration.security_source
1304
1304
  )
@@ -1379,7 +1379,7 @@ module Authlete
1379
1379
  response_data = http_response.env.response_body
1380
1380
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1381
1381
  obj.raw_response = http_response
1382
- throw obj
1382
+ raise obj
1383
1383
  else
1384
1384
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1385
1385
  end
@@ -1394,7 +1394,7 @@ module Authlete
1394
1394
  response_data = http_response.env.response_body
1395
1395
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1396
1396
  obj.raw_response = http_response
1397
- throw obj
1397
+ raise obj
1398
1398
  else
1399
1399
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1400
1400
  end
@@ -1454,7 +1454,7 @@ module Authlete
1454
1454
  hook_ctx = SDKHooks::HookContext.new(
1455
1455
  config: @sdk_configuration,
1456
1456
  base_url: base_url,
1457
- oauth2_scopes: [],
1457
+ oauth2_scopes: nil,
1458
1458
  operation_id: 'client_extension_requestables_scopes_update_api',
1459
1459
  security_source: @sdk_configuration.security_source
1460
1460
  )
@@ -1536,7 +1536,7 @@ module Authlete
1536
1536
  response_data = http_response.env.response_body
1537
1537
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1538
1538
  obj.raw_response = http_response
1539
- throw obj
1539
+ raise obj
1540
1540
  else
1541
1541
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1542
1542
  end
@@ -1551,7 +1551,7 @@ module Authlete
1551
1551
  response_data = http_response.env.response_body
1552
1552
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1553
1553
  obj.raw_response = http_response
1554
- throw obj
1554
+ raise obj
1555
1555
  else
1556
1556
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1557
1557
  end
@@ -1599,7 +1599,7 @@ module Authlete
1599
1599
  hook_ctx = SDKHooks::HookContext.new(
1600
1600
  config: @sdk_configuration,
1601
1601
  base_url: base_url,
1602
- oauth2_scopes: [],
1602
+ oauth2_scopes: nil,
1603
1603
  operation_id: 'client_extension_requestables_scopes_delete_api',
1604
1604
  security_source: @sdk_configuration.security_source
1605
1605
  )
@@ -1671,7 +1671,7 @@ module Authlete
1671
1671
  response_data = http_response.env.response_body
1672
1672
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1673
1673
  obj.raw_response = http_response
1674
- throw obj
1674
+ raise obj
1675
1675
  else
1676
1676
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1677
1677
  end
@@ -1686,7 +1686,7 @@ module Authlete
1686
1686
  response_data = http_response.env.response_body
1687
1687
  obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
1688
1688
  obj.raw_response = http_response
1689
- throw obj
1689
+ raise obj
1690
1690
  else
1691
1691
  raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1692
1692
  end