crypticorn 2.17.0rc7__py3-none-any.whl → 2.18.0__py3-none-any.whl

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 (78) hide show
  1. crypticorn/auth/client/api/admin_api.py +2 -0
  2. crypticorn/auth/client/api/auth_api.py +1417 -545
  3. crypticorn/auth/client/api/service_api.py +4 -0
  4. crypticorn/auth/client/api/user_api.py +4 -0
  5. crypticorn/auth/client/api/wallet_api.py +4 -0
  6. crypticorn/auth/client/api_client.py +5 -0
  7. crypticorn/auth/client/configuration.py +2 -2
  8. crypticorn/auth/client/models/add_wallet_request.py +1 -1
  9. crypticorn/auth/client/models/authorize_user_request.py +1 -1
  10. crypticorn/auth/client/models/create_api_key_request.py +3 -3
  11. crypticorn/auth/client/models/create_user_request.py +1 -1
  12. crypticorn/auth/client/models/get_api_keys200_response_inner.py +3 -3
  13. crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
  14. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
  15. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
  16. crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
  17. crypticorn/auth/client/models/logout_default_response.py +1 -1
  18. crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
  19. crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
  20. crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
  21. crypticorn/auth/client/models/token_info200_response.py +1 -1
  22. crypticorn/auth/client/models/update_user_request.py +1 -1
  23. crypticorn/auth/client/models/user_by_username200_response.py +1 -1
  24. crypticorn/auth/client/models/verify200_response.py +1 -1
  25. crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
  26. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
  27. crypticorn/auth/client/models/whoami200_response.py +1 -1
  28. crypticorn/common/__init__.py +11 -11
  29. crypticorn/common/auth.py +109 -57
  30. crypticorn/common/decorators.py +1 -1
  31. crypticorn/common/enums.py +1 -0
  32. crypticorn/common/errors.py +7 -21
  33. crypticorn/common/exceptions.py +33 -17
  34. crypticorn/common/logging.py +5 -4
  35. crypticorn/common/metrics.py +17 -5
  36. crypticorn/common/middleware.py +61 -12
  37. crypticorn/common/mixins.py +2 -1
  38. crypticorn/common/pagination.py +3 -2
  39. crypticorn/common/router/admin_router.py +17 -6
  40. crypticorn/common/router/status_router.py +3 -26
  41. crypticorn/common/utils.py +6 -6
  42. crypticorn/common/warnings.py +1 -0
  43. crypticorn/dex/client/api/admin_api.py +3 -0
  44. crypticorn/dex/client/api/signals_api.py +27 -23
  45. crypticorn/dex/client/api/status_api.py +3 -0
  46. crypticorn/dex/client/api_client.py +5 -0
  47. crypticorn/dex/client/configuration.py +2 -2
  48. crypticorn/dex/client/models/exception_detail.py +1 -1
  49. crypticorn/dex/client/models/paginated_response_signal_with_token.py +1 -1
  50. crypticorn/dex/client/models/signal_overview_stats.py +4 -2
  51. crypticorn/dex/client/models/signal_volume.py +4 -4
  52. crypticorn/dex/client/models/signal_with_token.py +2 -2
  53. crypticorn/dex/client/models/token_detail.py +1 -1
  54. crypticorn/klines/main.py +1 -1
  55. crypticorn/metrics/main.py +1 -1
  56. crypticorn/trade/client/__init__.py +1 -7
  57. crypticorn/trade/client/api/admin_api.py +0 -402
  58. crypticorn/trade/client/api/trading_actions_api.py +86 -315
  59. crypticorn/trade/client/models/__init__.py +1 -7
  60. crypticorn/trade/client/models/actions_count.py +88 -0
  61. crypticorn/trade/client/models/api_error_identifier.py +1 -0
  62. crypticorn/trade/client/models/exchange_key.py +1 -1
  63. crypticorn/trade/client/models/exchange_key_balance.py +1 -1
  64. crypticorn/trade/client/models/execution_ids.py +1 -1
  65. crypticorn/trade/client/models/notification_create.py +1 -1
  66. crypticorn/trade/client/models/post_futures_action.py +1 -1
  67. crypticorn/trade/client/models/spot_balance.py +6 -7
  68. crypticorn/trade/client/models/tpsl.py +4 -19
  69. crypticorn/trade/client/models/tpsl_create.py +6 -19
  70. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/METADATA +1 -1
  71. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/RECORD +75 -77
  72. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +0 -141
  73. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +0 -165
  74. crypticorn/trade/client/models/spot_trading_action.py +0 -207
  75. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/WHEEL +0 -0
  76. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/entry_points.txt +0 -0
  77. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/licenses/LICENSE +0 -0
  78. {crypticorn-2.17.0rc7.dist-info → crypticorn-2.18.0.dist-info}/top_level.txt +0 -0
@@ -11,10 +11,14 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
+ import warnings
14
15
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
16
  from typing import Any, Dict, List, Optional, Tuple, Union
16
17
  from typing_extensions import Annotated
17
18
 
19
+ from pydantic import Field, StrictStr, field_validator
20
+ from typing import Any, List, Optional
21
+ from typing_extensions import Annotated
18
22
  from crypticorn.auth.client.models.authorize_user200_response import (
19
23
  AuthorizeUser200Response,
20
24
  )
@@ -2229,13 +2233,8 @@ class AuthApi:
2229
2233
  )
2230
2234
 
2231
2235
  @validate_call
2232
- def oauth_callback(
2236
+ def get_user_scopes(
2233
2237
  self,
2234
- code: StrictStr,
2235
- scope: StrictStr,
2236
- authuser: StrictStr,
2237
- prompt: StrictStr,
2238
- origin: StrictStr,
2239
2238
  _request_timeout: Union[
2240
2239
  None,
2241
2240
  Annotated[StrictFloat, Field(gt=0)],
@@ -2247,15 +2246,10 @@ class AuthApi:
2247
2246
  _content_type: Optional[StrictStr] = None,
2248
2247
  _headers: Optional[Dict[StrictStr, Any]] = None,
2249
2248
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2250
- ) -> OauthCallback200Response:
2251
- """OAuth Callback"""
2249
+ ) -> List[str]:
2250
+ """Get User Scopes"""
2252
2251
  if self.is_sync:
2253
- return self._oauth_callback_sync(
2254
- code=code,
2255
- scope=scope,
2256
- authuser=authuser,
2257
- prompt=prompt,
2258
- origin=origin,
2252
+ return self._get_user_scopes_sync(
2259
2253
  _request_timeout=_request_timeout,
2260
2254
  _request_auth=_request_auth,
2261
2255
  _content_type=_content_type,
@@ -2264,12 +2258,7 @@ class AuthApi:
2264
2258
  )
2265
2259
 
2266
2260
  else:
2267
- return self._oauth_callback_async(
2268
- code=code,
2269
- scope=scope,
2270
- authuser=authuser,
2271
- prompt=prompt,
2272
- origin=origin,
2261
+ return self._get_user_scopes_async(
2273
2262
  _request_timeout=_request_timeout,
2274
2263
  _request_auth=_request_auth,
2275
2264
  _content_type=_content_type,
@@ -2278,13 +2267,8 @@ class AuthApi:
2278
2267
  )
2279
2268
 
2280
2269
  @validate_call
2281
- def oauth_callback_with_http_info(
2270
+ def get_user_scopes_with_http_info(
2282
2271
  self,
2283
- code: StrictStr,
2284
- scope: StrictStr,
2285
- authuser: StrictStr,
2286
- prompt: StrictStr,
2287
- origin: StrictStr,
2288
2272
  _request_timeout: Union[
2289
2273
  None,
2290
2274
  Annotated[StrictFloat, Field(gt=0)],
@@ -2296,15 +2280,10 @@ class AuthApi:
2296
2280
  _content_type: Optional[StrictStr] = None,
2297
2281
  _headers: Optional[Dict[StrictStr, Any]] = None,
2298
2282
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2299
- ) -> ApiResponse[OauthCallback200Response]:
2300
- """OAuth Callback with HTTP info"""
2283
+ ) -> ApiResponse[List[str]]:
2284
+ """Get User Scopes with HTTP info"""
2301
2285
  if self.is_sync:
2302
- return self._oauth_callback_sync_with_http_info(
2303
- code=code,
2304
- scope=scope,
2305
- authuser=authuser,
2306
- prompt=prompt,
2307
- origin=origin,
2286
+ return self._get_user_scopes_sync_with_http_info(
2308
2287
  _request_timeout=_request_timeout,
2309
2288
  _request_auth=_request_auth,
2310
2289
  _content_type=_content_type,
@@ -2313,12 +2292,7 @@ class AuthApi:
2313
2292
  )
2314
2293
 
2315
2294
  else:
2316
- return self._oauth_callback_async_with_http_info(
2317
- code=code,
2318
- scope=scope,
2319
- authuser=authuser,
2320
- prompt=prompt,
2321
- origin=origin,
2295
+ return self._get_user_scopes_async_with_http_info(
2322
2296
  _request_timeout=_request_timeout,
2323
2297
  _request_auth=_request_auth,
2324
2298
  _content_type=_content_type,
@@ -2327,13 +2301,8 @@ class AuthApi:
2327
2301
  )
2328
2302
 
2329
2303
  @validate_call
2330
- def oauth_callback_without_preload_content(
2304
+ def get_user_scopes_without_preload_content(
2331
2305
  self,
2332
- code: StrictStr,
2333
- scope: StrictStr,
2334
- authuser: StrictStr,
2335
- prompt: StrictStr,
2336
- origin: StrictStr,
2337
2306
  _request_timeout: Union[
2338
2307
  None,
2339
2308
  Annotated[StrictFloat, Field(gt=0)],
@@ -2346,14 +2315,9 @@ class AuthApi:
2346
2315
  _headers: Optional[Dict[StrictStr, Any]] = None,
2347
2316
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2348
2317
  ) -> RESTResponseType:
2349
- """OAuth Callback without preloading content"""
2318
+ """Get User Scopes without preloading content"""
2350
2319
  if self.is_sync:
2351
- return self._oauth_callback_sync_without_preload_content(
2352
- code=code,
2353
- scope=scope,
2354
- authuser=authuser,
2355
- prompt=prompt,
2356
- origin=origin,
2320
+ return self._get_user_scopes_sync_without_preload_content(
2357
2321
  _request_timeout=_request_timeout,
2358
2322
  _request_auth=_request_auth,
2359
2323
  _content_type=_content_type,
@@ -2362,12 +2326,7 @@ class AuthApi:
2362
2326
  )
2363
2327
 
2364
2328
  else:
2365
- return self._oauth_callback_async_without_preload_content(
2366
- code=code,
2367
- scope=scope,
2368
- authuser=authuser,
2369
- prompt=prompt,
2370
- origin=origin,
2329
+ return self._get_user_scopes_async_without_preload_content(
2371
2330
  _request_timeout=_request_timeout,
2372
2331
  _request_auth=_request_auth,
2373
2332
  _content_type=_content_type,
@@ -2377,13 +2336,8 @@ class AuthApi:
2377
2336
 
2378
2337
  # Private async implementation methods
2379
2338
  @validate_call
2380
- async def _oauth_callback_async(
2339
+ async def _get_user_scopes_async(
2381
2340
  self,
2382
- code: StrictStr,
2383
- scope: StrictStr,
2384
- authuser: StrictStr,
2385
- prompt: StrictStr,
2386
- origin: StrictStr,
2387
2341
  _request_timeout: Union[
2388
2342
  None,
2389
2343
  Annotated[StrictFloat, Field(gt=0)],
@@ -2395,21 +2349,11 @@ class AuthApi:
2395
2349
  _content_type: Optional[StrictStr] = None,
2396
2350
  _headers: Optional[Dict[StrictStr, Any]] = None,
2397
2351
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2398
- ) -> OauthCallback200Response:
2399
- """OAuth Callback
2352
+ ) -> List[str]:
2353
+ """Get User Scopes
2400
2354
 
2401
- Handles the OAuth callback from Google.
2355
+ Gets the scopes for the user.
2402
2356
 
2403
- :param code: (required)
2404
- :type code: str
2405
- :param scope: (required)
2406
- :type scope: str
2407
- :param authuser: (required)
2408
- :type authuser: str
2409
- :param prompt: (required)
2410
- :type prompt: str
2411
- :param origin: (required)
2412
- :type origin: str
2413
2357
  :param _request_timeout: timeout setting for this request. If one
2414
2358
  number provided, it will be total request
2415
2359
  timeout. It can also be a pair (tuple) of
@@ -2432,12 +2376,7 @@ class AuthApi:
2432
2376
  :return: Returns the result object.
2433
2377
  """ # noqa: E501
2434
2378
 
2435
- _param = self._oauth_callback_serialize(
2436
- code=code,
2437
- scope=scope,
2438
- authuser=authuser,
2439
- prompt=prompt,
2440
- origin=origin,
2379
+ _param = self._get_user_scopes_serialize(
2441
2380
  _request_auth=_request_auth,
2442
2381
  _content_type=_content_type,
2443
2382
  _headers=_headers,
@@ -2445,7 +2384,7 @@ class AuthApi:
2445
2384
  )
2446
2385
 
2447
2386
  _response_types_map: Dict[str, Optional[str]] = {
2448
- "200": "OauthCallback200Response",
2387
+ "200": "List[str]",
2449
2388
  }
2450
2389
  response_data = await self.api_client.call_api(
2451
2390
  *_param, _request_timeout=_request_timeout
@@ -2457,13 +2396,8 @@ class AuthApi:
2457
2396
  ).data
2458
2397
 
2459
2398
  @validate_call
2460
- async def _oauth_callback_async_with_http_info(
2399
+ async def _get_user_scopes_async_with_http_info(
2461
2400
  self,
2462
- code: StrictStr,
2463
- scope: StrictStr,
2464
- authuser: StrictStr,
2465
- prompt: StrictStr,
2466
- origin: StrictStr,
2467
2401
  _request_timeout: Union[
2468
2402
  None,
2469
2403
  Annotated[StrictFloat, Field(gt=0)],
@@ -2475,21 +2409,11 @@ class AuthApi:
2475
2409
  _content_type: Optional[StrictStr] = None,
2476
2410
  _headers: Optional[Dict[StrictStr, Any]] = None,
2477
2411
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2478
- ) -> ApiResponse[OauthCallback200Response]:
2479
- """OAuth Callback
2412
+ ) -> ApiResponse[List[str]]:
2413
+ """Get User Scopes
2480
2414
 
2481
- Handles the OAuth callback from Google.
2415
+ Gets the scopes for the user.
2482
2416
 
2483
- :param code: (required)
2484
- :type code: str
2485
- :param scope: (required)
2486
- :type scope: str
2487
- :param authuser: (required)
2488
- :type authuser: str
2489
- :param prompt: (required)
2490
- :type prompt: str
2491
- :param origin: (required)
2492
- :type origin: str
2493
2417
  :param _request_timeout: timeout setting for this request. If one
2494
2418
  number provided, it will be total request
2495
2419
  timeout. It can also be a pair (tuple) of
@@ -2512,12 +2436,7 @@ class AuthApi:
2512
2436
  :return: Returns the result object.
2513
2437
  """ # noqa: E501
2514
2438
 
2515
- _param = self._oauth_callback_serialize(
2516
- code=code,
2517
- scope=scope,
2518
- authuser=authuser,
2519
- prompt=prompt,
2520
- origin=origin,
2439
+ _param = self._get_user_scopes_serialize(
2521
2440
  _request_auth=_request_auth,
2522
2441
  _content_type=_content_type,
2523
2442
  _headers=_headers,
@@ -2525,7 +2444,7 @@ class AuthApi:
2525
2444
  )
2526
2445
 
2527
2446
  _response_types_map: Dict[str, Optional[str]] = {
2528
- "200": "OauthCallback200Response",
2447
+ "200": "List[str]",
2529
2448
  }
2530
2449
  response_data = await self.api_client.call_api(
2531
2450
  *_param, _request_timeout=_request_timeout
@@ -2536,13 +2455,8 @@ class AuthApi:
2536
2455
  )
2537
2456
 
2538
2457
  @validate_call
2539
- async def _oauth_callback_async_without_preload_content(
2458
+ async def _get_user_scopes_async_without_preload_content(
2540
2459
  self,
2541
- code: StrictStr,
2542
- scope: StrictStr,
2543
- authuser: StrictStr,
2544
- prompt: StrictStr,
2545
- origin: StrictStr,
2546
2460
  _request_timeout: Union[
2547
2461
  None,
2548
2462
  Annotated[StrictFloat, Field(gt=0)],
@@ -2555,20 +2469,10 @@ class AuthApi:
2555
2469
  _headers: Optional[Dict[StrictStr, Any]] = None,
2556
2470
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2557
2471
  ) -> RESTResponseType:
2558
- """OAuth Callback
2472
+ """Get User Scopes
2559
2473
 
2560
- Handles the OAuth callback from Google.
2474
+ Gets the scopes for the user.
2561
2475
 
2562
- :param code: (required)
2563
- :type code: str
2564
- :param scope: (required)
2565
- :type scope: str
2566
- :param authuser: (required)
2567
- :type authuser: str
2568
- :param prompt: (required)
2569
- :type prompt: str
2570
- :param origin: (required)
2571
- :type origin: str
2572
2476
  :param _request_timeout: timeout setting for this request. If one
2573
2477
  number provided, it will be total request
2574
2478
  timeout. It can also be a pair (tuple) of
@@ -2591,12 +2495,7 @@ class AuthApi:
2591
2495
  :return: Returns the result object.
2592
2496
  """ # noqa: E501
2593
2497
 
2594
- _param = self._oauth_callback_serialize(
2595
- code=code,
2596
- scope=scope,
2597
- authuser=authuser,
2598
- prompt=prompt,
2599
- origin=origin,
2498
+ _param = self._get_user_scopes_serialize(
2600
2499
  _request_auth=_request_auth,
2601
2500
  _content_type=_content_type,
2602
2501
  _headers=_headers,
@@ -2604,7 +2503,7 @@ class AuthApi:
2604
2503
  )
2605
2504
 
2606
2505
  _response_types_map: Dict[str, Optional[str]] = {
2607
- "200": "OauthCallback200Response",
2506
+ "200": "List[str]",
2608
2507
  }
2609
2508
  response_data = await self.api_client.call_api(
2610
2509
  *_param, _request_timeout=_request_timeout
@@ -2613,13 +2512,8 @@ class AuthApi:
2613
2512
 
2614
2513
  # Private sync implementation methods
2615
2514
  @validate_call
2616
- def _oauth_callback_sync(
2515
+ def _get_user_scopes_sync(
2617
2516
  self,
2618
- code: StrictStr,
2619
- scope: StrictStr,
2620
- authuser: StrictStr,
2621
- prompt: StrictStr,
2622
- origin: StrictStr,
2623
2517
  _request_timeout: Union[
2624
2518
  None,
2625
2519
  Annotated[StrictFloat, Field(gt=0)],
@@ -2631,14 +2525,9 @@ class AuthApi:
2631
2525
  _content_type: Optional[StrictStr] = None,
2632
2526
  _headers: Optional[Dict[StrictStr, Any]] = None,
2633
2527
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2634
- ) -> OauthCallback200Response:
2635
- """Synchronous version of oauth_callback"""
2636
- return async_to_sync(self._oauth_callback_async)(
2637
- code=code,
2638
- scope=scope,
2639
- authuser=authuser,
2640
- prompt=prompt,
2641
- origin=origin,
2528
+ ) -> List[str]:
2529
+ """Synchronous version of get_user_scopes"""
2530
+ return async_to_sync(self._get_user_scopes_async)(
2642
2531
  _request_timeout=_request_timeout,
2643
2532
  _request_auth=_request_auth,
2644
2533
  _content_type=_content_type,
@@ -2647,13 +2536,8 @@ class AuthApi:
2647
2536
  )
2648
2537
 
2649
2538
  @validate_call
2650
- def _oauth_callback_sync_with_http_info(
2539
+ def _get_user_scopes_sync_with_http_info(
2651
2540
  self,
2652
- code: StrictStr,
2653
- scope: StrictStr,
2654
- authuser: StrictStr,
2655
- prompt: StrictStr,
2656
- origin: StrictStr,
2657
2541
  _request_timeout: Union[
2658
2542
  None,
2659
2543
  Annotated[StrictFloat, Field(gt=0)],
@@ -2665,14 +2549,9 @@ class AuthApi:
2665
2549
  _content_type: Optional[StrictStr] = None,
2666
2550
  _headers: Optional[Dict[StrictStr, Any]] = None,
2667
2551
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2668
- ) -> ApiResponse[OauthCallback200Response]:
2669
- """Synchronous version of oauth_callback_with_http_info"""
2670
- return async_to_sync(self._oauth_callback_async_with_http_info)(
2671
- code=code,
2672
- scope=scope,
2673
- authuser=authuser,
2674
- prompt=prompt,
2675
- origin=origin,
2552
+ ) -> ApiResponse[List[str]]:
2553
+ """Synchronous version of get_user_scopes_with_http_info"""
2554
+ return async_to_sync(self._get_user_scopes_async_with_http_info)(
2676
2555
  _request_timeout=_request_timeout,
2677
2556
  _request_auth=_request_auth,
2678
2557
  _content_type=_content_type,
@@ -2681,13 +2560,8 @@ class AuthApi:
2681
2560
  )
2682
2561
 
2683
2562
  @validate_call
2684
- def _oauth_callback_sync_without_preload_content(
2563
+ def _get_user_scopes_sync_without_preload_content(
2685
2564
  self,
2686
- code: StrictStr,
2687
- scope: StrictStr,
2688
- authuser: StrictStr,
2689
- prompt: StrictStr,
2690
- origin: StrictStr,
2691
2565
  _request_timeout: Union[
2692
2566
  None,
2693
2567
  Annotated[StrictFloat, Field(gt=0)],
@@ -2700,13 +2574,8 @@ class AuthApi:
2700
2574
  _headers: Optional[Dict[StrictStr, Any]] = None,
2701
2575
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2702
2576
  ) -> RESTResponseType:
2703
- """Synchronous version of oauth_callback_without_preload_content"""
2704
- return async_to_sync(self._oauth_callback_async_without_preload_content)(
2705
- code=code,
2706
- scope=scope,
2707
- authuser=authuser,
2708
- prompt=prompt,
2709
- origin=origin,
2577
+ """Synchronous version of get_user_scopes_without_preload_content"""
2578
+ return async_to_sync(self._get_user_scopes_async_without_preload_content)(
2710
2579
  _request_timeout=_request_timeout,
2711
2580
  _request_auth=_request_auth,
2712
2581
  _content_type=_content_type,
@@ -2714,13 +2583,8 @@ class AuthApi:
2714
2583
  _host_index=_host_index,
2715
2584
  )
2716
2585
 
2717
- def _oauth_callback_serialize(
2586
+ def _get_user_scopes_serialize(
2718
2587
  self,
2719
- code,
2720
- scope,
2721
- authuser,
2722
- prompt,
2723
- origin,
2724
2588
  _request_auth,
2725
2589
  _content_type,
2726
2590
  _headers,
@@ -2742,26 +2606,6 @@ class AuthApi:
2742
2606
 
2743
2607
  # process the path parameters
2744
2608
  # process the query parameters
2745
- if code is not None:
2746
-
2747
- _query_params.append(("code", code))
2748
-
2749
- if scope is not None:
2750
-
2751
- _query_params.append(("scope", scope))
2752
-
2753
- if authuser is not None:
2754
-
2755
- _query_params.append(("authuser", authuser))
2756
-
2757
- if prompt is not None:
2758
-
2759
- _query_params.append(("prompt", prompt))
2760
-
2761
- if origin is not None:
2762
-
2763
- _query_params.append(("origin", origin))
2764
-
2765
2609
  # process the header parameters
2766
2610
  # process the form parameters
2767
2611
  # process the body parameter
@@ -2773,11 +2617,11 @@ class AuthApi:
2773
2617
  )
2774
2618
 
2775
2619
  # authentication setting
2776
- _auth_settings: List[str] = []
2620
+ _auth_settings: List[str] = ["HTTPBearer"]
2777
2621
 
2778
2622
  return self.api_client.param_serialize(
2779
2623
  method="GET",
2780
- resource_path="/oauth-callback",
2624
+ resource_path="/get-user-scopes",
2781
2625
  path_params=_path_params,
2782
2626
  query_params=_query_params,
2783
2627
  header_params=_header_params,
@@ -2791,12 +2635,13 @@ class AuthApi:
2791
2635
  )
2792
2636
 
2793
2637
  @validate_call
2794
- def refresh_token_info(
2638
+ def oauth_callback(
2795
2639
  self,
2796
- x_refresh_token: Annotated[
2797
- Optional[StrictStr],
2798
- Field(description="The refresh token for rotating the access token."),
2799
- ] = None,
2640
+ code: StrictStr,
2641
+ scope: StrictStr,
2642
+ authuser: StrictStr,
2643
+ prompt: StrictStr,
2644
+ origin: StrictStr,
2800
2645
  _request_timeout: Union[
2801
2646
  None,
2802
2647
  Annotated[StrictFloat, Field(gt=0)],
@@ -2808,11 +2653,15 @@ class AuthApi:
2808
2653
  _content_type: Optional[StrictStr] = None,
2809
2654
  _headers: Optional[Dict[StrictStr, Any]] = None,
2810
2655
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2811
- ) -> RefreshTokenInfo200Response:
2812
- """Refresh token info"""
2656
+ ) -> OauthCallback200Response:
2657
+ """OAuth Callback"""
2813
2658
  if self.is_sync:
2814
- return self._refresh_token_info_sync(
2815
- x_refresh_token=x_refresh_token,
2659
+ return self._oauth_callback_sync(
2660
+ code=code,
2661
+ scope=scope,
2662
+ authuser=authuser,
2663
+ prompt=prompt,
2664
+ origin=origin,
2816
2665
  _request_timeout=_request_timeout,
2817
2666
  _request_auth=_request_auth,
2818
2667
  _content_type=_content_type,
@@ -2821,8 +2670,12 @@ class AuthApi:
2821
2670
  )
2822
2671
 
2823
2672
  else:
2824
- return self._refresh_token_info_async(
2825
- x_refresh_token=x_refresh_token,
2673
+ return self._oauth_callback_async(
2674
+ code=code,
2675
+ scope=scope,
2676
+ authuser=authuser,
2677
+ prompt=prompt,
2678
+ origin=origin,
2826
2679
  _request_timeout=_request_timeout,
2827
2680
  _request_auth=_request_auth,
2828
2681
  _content_type=_content_type,
@@ -2831,12 +2684,13 @@ class AuthApi:
2831
2684
  )
2832
2685
 
2833
2686
  @validate_call
2834
- def refresh_token_info_with_http_info(
2687
+ def oauth_callback_with_http_info(
2835
2688
  self,
2836
- x_refresh_token: Annotated[
2837
- Optional[StrictStr],
2838
- Field(description="The refresh token for rotating the access token."),
2839
- ] = None,
2689
+ code: StrictStr,
2690
+ scope: StrictStr,
2691
+ authuser: StrictStr,
2692
+ prompt: StrictStr,
2693
+ origin: StrictStr,
2840
2694
  _request_timeout: Union[
2841
2695
  None,
2842
2696
  Annotated[StrictFloat, Field(gt=0)],
@@ -2848,12 +2702,983 @@ class AuthApi:
2848
2702
  _content_type: Optional[StrictStr] = None,
2849
2703
  _headers: Optional[Dict[StrictStr, Any]] = None,
2850
2704
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2851
- ) -> ApiResponse[RefreshTokenInfo200Response]:
2852
- """Refresh token info with HTTP info"""
2705
+ ) -> ApiResponse[OauthCallback200Response]:
2706
+ """OAuth Callback with HTTP info"""
2853
2707
  if self.is_sync:
2854
- return self._refresh_token_info_sync_with_http_info(
2855
- x_refresh_token=x_refresh_token,
2856
- _request_timeout=_request_timeout,
2708
+ return self._oauth_callback_sync_with_http_info(
2709
+ code=code,
2710
+ scope=scope,
2711
+ authuser=authuser,
2712
+ prompt=prompt,
2713
+ origin=origin,
2714
+ _request_timeout=_request_timeout,
2715
+ _request_auth=_request_auth,
2716
+ _content_type=_content_type,
2717
+ _headers=_headers,
2718
+ _host_index=_host_index,
2719
+ )
2720
+
2721
+ else:
2722
+ return self._oauth_callback_async_with_http_info(
2723
+ code=code,
2724
+ scope=scope,
2725
+ authuser=authuser,
2726
+ prompt=prompt,
2727
+ origin=origin,
2728
+ _request_timeout=_request_timeout,
2729
+ _request_auth=_request_auth,
2730
+ _content_type=_content_type,
2731
+ _headers=_headers,
2732
+ _host_index=_host_index,
2733
+ )
2734
+
2735
+ @validate_call
2736
+ def oauth_callback_without_preload_content(
2737
+ self,
2738
+ code: StrictStr,
2739
+ scope: StrictStr,
2740
+ authuser: StrictStr,
2741
+ prompt: StrictStr,
2742
+ origin: StrictStr,
2743
+ _request_timeout: Union[
2744
+ None,
2745
+ Annotated[StrictFloat, Field(gt=0)],
2746
+ Tuple[
2747
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2748
+ ],
2749
+ ] = None,
2750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2751
+ _content_type: Optional[StrictStr] = None,
2752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2754
+ ) -> RESTResponseType:
2755
+ """OAuth Callback without preloading content"""
2756
+ if self.is_sync:
2757
+ return self._oauth_callback_sync_without_preload_content(
2758
+ code=code,
2759
+ scope=scope,
2760
+ authuser=authuser,
2761
+ prompt=prompt,
2762
+ origin=origin,
2763
+ _request_timeout=_request_timeout,
2764
+ _request_auth=_request_auth,
2765
+ _content_type=_content_type,
2766
+ _headers=_headers,
2767
+ _host_index=_host_index,
2768
+ )
2769
+
2770
+ else:
2771
+ return self._oauth_callback_async_without_preload_content(
2772
+ code=code,
2773
+ scope=scope,
2774
+ authuser=authuser,
2775
+ prompt=prompt,
2776
+ origin=origin,
2777
+ _request_timeout=_request_timeout,
2778
+ _request_auth=_request_auth,
2779
+ _content_type=_content_type,
2780
+ _headers=_headers,
2781
+ _host_index=_host_index,
2782
+ )
2783
+
2784
+ # Private async implementation methods
2785
+ @validate_call
2786
+ async def _oauth_callback_async(
2787
+ self,
2788
+ code: StrictStr,
2789
+ scope: StrictStr,
2790
+ authuser: StrictStr,
2791
+ prompt: StrictStr,
2792
+ origin: StrictStr,
2793
+ _request_timeout: Union[
2794
+ None,
2795
+ Annotated[StrictFloat, Field(gt=0)],
2796
+ Tuple[
2797
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2798
+ ],
2799
+ ] = None,
2800
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2801
+ _content_type: Optional[StrictStr] = None,
2802
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2803
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2804
+ ) -> OauthCallback200Response:
2805
+ """OAuth Callback
2806
+
2807
+ Handles the OAuth callback from Google.
2808
+
2809
+ :param code: (required)
2810
+ :type code: str
2811
+ :param scope: (required)
2812
+ :type scope: str
2813
+ :param authuser: (required)
2814
+ :type authuser: str
2815
+ :param prompt: (required)
2816
+ :type prompt: str
2817
+ :param origin: (required)
2818
+ :type origin: str
2819
+ :param _request_timeout: timeout setting for this request. If one
2820
+ number provided, it will be total request
2821
+ timeout. It can also be a pair (tuple) of
2822
+ (connection, read) timeouts.
2823
+ :type _request_timeout: int, tuple(int, int), optional
2824
+ :param _request_auth: set to override the auth_settings for an a single
2825
+ request; this effectively ignores the
2826
+ authentication in the spec for a single request.
2827
+ :type _request_auth: dict, optional
2828
+ :param _content_type: force content-type for the request.
2829
+ :type _content_type: str, Optional
2830
+ :param _headers: set to override the headers for a single
2831
+ request; this effectively ignores the headers
2832
+ in the spec for a single request.
2833
+ :type _headers: dict, optional
2834
+ :param _host_index: set to override the host_index for a single
2835
+ request; this effectively ignores the host_index
2836
+ in the spec for a single request.
2837
+ :type _host_index: int, optional
2838
+ :return: Returns the result object.
2839
+ """ # noqa: E501
2840
+
2841
+ _param = self._oauth_callback_serialize(
2842
+ code=code,
2843
+ scope=scope,
2844
+ authuser=authuser,
2845
+ prompt=prompt,
2846
+ origin=origin,
2847
+ _request_auth=_request_auth,
2848
+ _content_type=_content_type,
2849
+ _headers=_headers,
2850
+ _host_index=_host_index,
2851
+ )
2852
+
2853
+ _response_types_map: Dict[str, Optional[str]] = {
2854
+ "200": "OauthCallback200Response",
2855
+ }
2856
+ response_data = await self.api_client.call_api(
2857
+ *_param, _request_timeout=_request_timeout
2858
+ )
2859
+ await response_data.read()
2860
+ return self.api_client.response_deserialize(
2861
+ response_data=response_data,
2862
+ response_types_map=_response_types_map,
2863
+ ).data
2864
+
2865
+ @validate_call
2866
+ async def _oauth_callback_async_with_http_info(
2867
+ self,
2868
+ code: StrictStr,
2869
+ scope: StrictStr,
2870
+ authuser: StrictStr,
2871
+ prompt: StrictStr,
2872
+ origin: StrictStr,
2873
+ _request_timeout: Union[
2874
+ None,
2875
+ Annotated[StrictFloat, Field(gt=0)],
2876
+ Tuple[
2877
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2878
+ ],
2879
+ ] = None,
2880
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2881
+ _content_type: Optional[StrictStr] = None,
2882
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2883
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2884
+ ) -> ApiResponse[OauthCallback200Response]:
2885
+ """OAuth Callback
2886
+
2887
+ Handles the OAuth callback from Google.
2888
+
2889
+ :param code: (required)
2890
+ :type code: str
2891
+ :param scope: (required)
2892
+ :type scope: str
2893
+ :param authuser: (required)
2894
+ :type authuser: str
2895
+ :param prompt: (required)
2896
+ :type prompt: str
2897
+ :param origin: (required)
2898
+ :type origin: str
2899
+ :param _request_timeout: timeout setting for this request. If one
2900
+ number provided, it will be total request
2901
+ timeout. It can also be a pair (tuple) of
2902
+ (connection, read) timeouts.
2903
+ :type _request_timeout: int, tuple(int, int), optional
2904
+ :param _request_auth: set to override the auth_settings for an a single
2905
+ request; this effectively ignores the
2906
+ authentication in the spec for a single request.
2907
+ :type _request_auth: dict, optional
2908
+ :param _content_type: force content-type for the request.
2909
+ :type _content_type: str, Optional
2910
+ :param _headers: set to override the headers for a single
2911
+ request; this effectively ignores the headers
2912
+ in the spec for a single request.
2913
+ :type _headers: dict, optional
2914
+ :param _host_index: set to override the host_index for a single
2915
+ request; this effectively ignores the host_index
2916
+ in the spec for a single request.
2917
+ :type _host_index: int, optional
2918
+ :return: Returns the result object.
2919
+ """ # noqa: E501
2920
+
2921
+ _param = self._oauth_callback_serialize(
2922
+ code=code,
2923
+ scope=scope,
2924
+ authuser=authuser,
2925
+ prompt=prompt,
2926
+ origin=origin,
2927
+ _request_auth=_request_auth,
2928
+ _content_type=_content_type,
2929
+ _headers=_headers,
2930
+ _host_index=_host_index,
2931
+ )
2932
+
2933
+ _response_types_map: Dict[str, Optional[str]] = {
2934
+ "200": "OauthCallback200Response",
2935
+ }
2936
+ response_data = await self.api_client.call_api(
2937
+ *_param, _request_timeout=_request_timeout
2938
+ )
2939
+ await response_data.read()
2940
+ return self.api_client.response_deserialize(
2941
+ response_data=response_data, response_types_map=_response_types_map
2942
+ )
2943
+
2944
+ @validate_call
2945
+ async def _oauth_callback_async_without_preload_content(
2946
+ self,
2947
+ code: StrictStr,
2948
+ scope: StrictStr,
2949
+ authuser: StrictStr,
2950
+ prompt: StrictStr,
2951
+ origin: StrictStr,
2952
+ _request_timeout: Union[
2953
+ None,
2954
+ Annotated[StrictFloat, Field(gt=0)],
2955
+ Tuple[
2956
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2957
+ ],
2958
+ ] = None,
2959
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2960
+ _content_type: Optional[StrictStr] = None,
2961
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2962
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2963
+ ) -> RESTResponseType:
2964
+ """OAuth Callback
2965
+
2966
+ Handles the OAuth callback from Google.
2967
+
2968
+ :param code: (required)
2969
+ :type code: str
2970
+ :param scope: (required)
2971
+ :type scope: str
2972
+ :param authuser: (required)
2973
+ :type authuser: str
2974
+ :param prompt: (required)
2975
+ :type prompt: str
2976
+ :param origin: (required)
2977
+ :type origin: str
2978
+ :param _request_timeout: timeout setting for this request. If one
2979
+ number provided, it will be total request
2980
+ timeout. It can also be a pair (tuple) of
2981
+ (connection, read) timeouts.
2982
+ :type _request_timeout: int, tuple(int, int), optional
2983
+ :param _request_auth: set to override the auth_settings for an a single
2984
+ request; this effectively ignores the
2985
+ authentication in the spec for a single request.
2986
+ :type _request_auth: dict, optional
2987
+ :param _content_type: force content-type for the request.
2988
+ :type _content_type: str, Optional
2989
+ :param _headers: set to override the headers for a single
2990
+ request; this effectively ignores the headers
2991
+ in the spec for a single request.
2992
+ :type _headers: dict, optional
2993
+ :param _host_index: set to override the host_index for a single
2994
+ request; this effectively ignores the host_index
2995
+ in the spec for a single request.
2996
+ :type _host_index: int, optional
2997
+ :return: Returns the result object.
2998
+ """ # noqa: E501
2999
+
3000
+ _param = self._oauth_callback_serialize(
3001
+ code=code,
3002
+ scope=scope,
3003
+ authuser=authuser,
3004
+ prompt=prompt,
3005
+ origin=origin,
3006
+ _request_auth=_request_auth,
3007
+ _content_type=_content_type,
3008
+ _headers=_headers,
3009
+ _host_index=_host_index,
3010
+ )
3011
+
3012
+ _response_types_map: Dict[str, Optional[str]] = {
3013
+ "200": "OauthCallback200Response",
3014
+ }
3015
+ response_data = await self.api_client.call_api(
3016
+ *_param, _request_timeout=_request_timeout
3017
+ )
3018
+ return response_data
3019
+
3020
+ # Private sync implementation methods
3021
+ @validate_call
3022
+ def _oauth_callback_sync(
3023
+ self,
3024
+ code: StrictStr,
3025
+ scope: StrictStr,
3026
+ authuser: StrictStr,
3027
+ prompt: StrictStr,
3028
+ origin: StrictStr,
3029
+ _request_timeout: Union[
3030
+ None,
3031
+ Annotated[StrictFloat, Field(gt=0)],
3032
+ Tuple[
3033
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3034
+ ],
3035
+ ] = None,
3036
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3037
+ _content_type: Optional[StrictStr] = None,
3038
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3039
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3040
+ ) -> OauthCallback200Response:
3041
+ """Synchronous version of oauth_callback"""
3042
+ return async_to_sync(self._oauth_callback_async)(
3043
+ code=code,
3044
+ scope=scope,
3045
+ authuser=authuser,
3046
+ prompt=prompt,
3047
+ origin=origin,
3048
+ _request_timeout=_request_timeout,
3049
+ _request_auth=_request_auth,
3050
+ _content_type=_content_type,
3051
+ _headers=_headers,
3052
+ _host_index=_host_index,
3053
+ )
3054
+
3055
+ @validate_call
3056
+ def _oauth_callback_sync_with_http_info(
3057
+ self,
3058
+ code: StrictStr,
3059
+ scope: StrictStr,
3060
+ authuser: StrictStr,
3061
+ prompt: StrictStr,
3062
+ origin: StrictStr,
3063
+ _request_timeout: Union[
3064
+ None,
3065
+ Annotated[StrictFloat, Field(gt=0)],
3066
+ Tuple[
3067
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3068
+ ],
3069
+ ] = None,
3070
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3071
+ _content_type: Optional[StrictStr] = None,
3072
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3073
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3074
+ ) -> ApiResponse[OauthCallback200Response]:
3075
+ """Synchronous version of oauth_callback_with_http_info"""
3076
+ return async_to_sync(self._oauth_callback_async_with_http_info)(
3077
+ code=code,
3078
+ scope=scope,
3079
+ authuser=authuser,
3080
+ prompt=prompt,
3081
+ origin=origin,
3082
+ _request_timeout=_request_timeout,
3083
+ _request_auth=_request_auth,
3084
+ _content_type=_content_type,
3085
+ _headers=_headers,
3086
+ _host_index=_host_index,
3087
+ )
3088
+
3089
+ @validate_call
3090
+ def _oauth_callback_sync_without_preload_content(
3091
+ self,
3092
+ code: StrictStr,
3093
+ scope: StrictStr,
3094
+ authuser: StrictStr,
3095
+ prompt: StrictStr,
3096
+ origin: StrictStr,
3097
+ _request_timeout: Union[
3098
+ None,
3099
+ Annotated[StrictFloat, Field(gt=0)],
3100
+ Tuple[
3101
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3102
+ ],
3103
+ ] = None,
3104
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3105
+ _content_type: Optional[StrictStr] = None,
3106
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3107
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3108
+ ) -> RESTResponseType:
3109
+ """Synchronous version of oauth_callback_without_preload_content"""
3110
+ return async_to_sync(self._oauth_callback_async_without_preload_content)(
3111
+ code=code,
3112
+ scope=scope,
3113
+ authuser=authuser,
3114
+ prompt=prompt,
3115
+ origin=origin,
3116
+ _request_timeout=_request_timeout,
3117
+ _request_auth=_request_auth,
3118
+ _content_type=_content_type,
3119
+ _headers=_headers,
3120
+ _host_index=_host_index,
3121
+ )
3122
+
3123
+ def _oauth_callback_serialize(
3124
+ self,
3125
+ code,
3126
+ scope,
3127
+ authuser,
3128
+ prompt,
3129
+ origin,
3130
+ _request_auth,
3131
+ _content_type,
3132
+ _headers,
3133
+ _host_index,
3134
+ ) -> RequestSerialized:
3135
+
3136
+ _host = None
3137
+
3138
+ _collection_formats: Dict[str, str] = {}
3139
+
3140
+ _path_params: Dict[str, str] = {}
3141
+ _query_params: List[Tuple[str, str]] = []
3142
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3143
+ _form_params: List[Tuple[str, str]] = []
3144
+ _files: Dict[
3145
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3146
+ ] = {}
3147
+ _body_params: Optional[bytes] = None
3148
+
3149
+ # process the path parameters
3150
+ # process the query parameters
3151
+ if code is not None:
3152
+
3153
+ _query_params.append(("code", code))
3154
+
3155
+ if scope is not None:
3156
+
3157
+ _query_params.append(("scope", scope))
3158
+
3159
+ if authuser is not None:
3160
+
3161
+ _query_params.append(("authuser", authuser))
3162
+
3163
+ if prompt is not None:
3164
+
3165
+ _query_params.append(("prompt", prompt))
3166
+
3167
+ if origin is not None:
3168
+
3169
+ _query_params.append(("origin", origin))
3170
+
3171
+ # process the header parameters
3172
+ # process the form parameters
3173
+ # process the body parameter
3174
+
3175
+ # set the HTTP header `Accept`
3176
+ if "Accept" not in _header_params:
3177
+ _header_params["Accept"] = self.api_client.select_header_accept(
3178
+ ["application/json"]
3179
+ )
3180
+
3181
+ # authentication setting
3182
+ _auth_settings: List[str] = []
3183
+
3184
+ return self.api_client.param_serialize(
3185
+ method="GET",
3186
+ resource_path="/oauth-callback",
3187
+ path_params=_path_params,
3188
+ query_params=_query_params,
3189
+ header_params=_header_params,
3190
+ body=_body_params,
3191
+ post_params=_form_params,
3192
+ files=_files,
3193
+ auth_settings=_auth_settings,
3194
+ collection_formats=_collection_formats,
3195
+ _host=_host,
3196
+ _request_auth=_request_auth,
3197
+ )
3198
+
3199
+ @validate_call
3200
+ def refresh_token_info(
3201
+ self,
3202
+ x_refresh_token: Annotated[
3203
+ Optional[StrictStr],
3204
+ Field(description="The refresh token for rotating the access token."),
3205
+ ] = None,
3206
+ _request_timeout: Union[
3207
+ None,
3208
+ Annotated[StrictFloat, Field(gt=0)],
3209
+ Tuple[
3210
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3211
+ ],
3212
+ ] = None,
3213
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3214
+ _content_type: Optional[StrictStr] = None,
3215
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3216
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3217
+ ) -> RefreshTokenInfo200Response:
3218
+ """Refresh token info"""
3219
+ if self.is_sync:
3220
+ return self._refresh_token_info_sync(
3221
+ x_refresh_token=x_refresh_token,
3222
+ _request_timeout=_request_timeout,
3223
+ _request_auth=_request_auth,
3224
+ _content_type=_content_type,
3225
+ _headers=_headers,
3226
+ _host_index=_host_index,
3227
+ )
3228
+
3229
+ else:
3230
+ return self._refresh_token_info_async(
3231
+ x_refresh_token=x_refresh_token,
3232
+ _request_timeout=_request_timeout,
3233
+ _request_auth=_request_auth,
3234
+ _content_type=_content_type,
3235
+ _headers=_headers,
3236
+ _host_index=_host_index,
3237
+ )
3238
+
3239
+ @validate_call
3240
+ def refresh_token_info_with_http_info(
3241
+ self,
3242
+ x_refresh_token: Annotated[
3243
+ Optional[StrictStr],
3244
+ Field(description="The refresh token for rotating the access token."),
3245
+ ] = None,
3246
+ _request_timeout: Union[
3247
+ None,
3248
+ Annotated[StrictFloat, Field(gt=0)],
3249
+ Tuple[
3250
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3251
+ ],
3252
+ ] = None,
3253
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3254
+ _content_type: Optional[StrictStr] = None,
3255
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3256
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3257
+ ) -> ApiResponse[RefreshTokenInfo200Response]:
3258
+ """Refresh token info with HTTP info"""
3259
+ if self.is_sync:
3260
+ return self._refresh_token_info_sync_with_http_info(
3261
+ x_refresh_token=x_refresh_token,
3262
+ _request_timeout=_request_timeout,
3263
+ _request_auth=_request_auth,
3264
+ _content_type=_content_type,
3265
+ _headers=_headers,
3266
+ _host_index=_host_index,
3267
+ )
3268
+
3269
+ else:
3270
+ return self._refresh_token_info_async_with_http_info(
3271
+ x_refresh_token=x_refresh_token,
3272
+ _request_timeout=_request_timeout,
3273
+ _request_auth=_request_auth,
3274
+ _content_type=_content_type,
3275
+ _headers=_headers,
3276
+ _host_index=_host_index,
3277
+ )
3278
+
3279
+ @validate_call
3280
+ def refresh_token_info_without_preload_content(
3281
+ self,
3282
+ x_refresh_token: Annotated[
3283
+ Optional[StrictStr],
3284
+ Field(description="The refresh token for rotating the access token."),
3285
+ ] = None,
3286
+ _request_timeout: Union[
3287
+ None,
3288
+ Annotated[StrictFloat, Field(gt=0)],
3289
+ Tuple[
3290
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3291
+ ],
3292
+ ] = None,
3293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3294
+ _content_type: Optional[StrictStr] = None,
3295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3297
+ ) -> RESTResponseType:
3298
+ """Refresh token info without preloading content"""
3299
+ if self.is_sync:
3300
+ return self._refresh_token_info_sync_without_preload_content(
3301
+ x_refresh_token=x_refresh_token,
3302
+ _request_timeout=_request_timeout,
3303
+ _request_auth=_request_auth,
3304
+ _content_type=_content_type,
3305
+ _headers=_headers,
3306
+ _host_index=_host_index,
3307
+ )
3308
+
3309
+ else:
3310
+ return self._refresh_token_info_async_without_preload_content(
3311
+ x_refresh_token=x_refresh_token,
3312
+ _request_timeout=_request_timeout,
3313
+ _request_auth=_request_auth,
3314
+ _content_type=_content_type,
3315
+ _headers=_headers,
3316
+ _host_index=_host_index,
3317
+ )
3318
+
3319
+ # Private async implementation methods
3320
+ @validate_call
3321
+ async def _refresh_token_info_async(
3322
+ self,
3323
+ x_refresh_token: Annotated[
3324
+ Optional[StrictStr],
3325
+ Field(description="The refresh token for rotating the access token."),
3326
+ ] = None,
3327
+ _request_timeout: Union[
3328
+ None,
3329
+ Annotated[StrictFloat, Field(gt=0)],
3330
+ Tuple[
3331
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3332
+ ],
3333
+ ] = None,
3334
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3335
+ _content_type: Optional[StrictStr] = None,
3336
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3337
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3338
+ ) -> RefreshTokenInfo200Response:
3339
+ """Refresh token info
3340
+
3341
+ Returns the user session record of the refresh token.
3342
+
3343
+ :param x_refresh_token: The refresh token for rotating the access token.
3344
+ :type x_refresh_token: str
3345
+ :param _request_timeout: timeout setting for this request. If one
3346
+ number provided, it will be total request
3347
+ timeout. It can also be a pair (tuple) of
3348
+ (connection, read) timeouts.
3349
+ :type _request_timeout: int, tuple(int, int), optional
3350
+ :param _request_auth: set to override the auth_settings for an a single
3351
+ request; this effectively ignores the
3352
+ authentication in the spec for a single request.
3353
+ :type _request_auth: dict, optional
3354
+ :param _content_type: force content-type for the request.
3355
+ :type _content_type: str, Optional
3356
+ :param _headers: set to override the headers for a single
3357
+ request; this effectively ignores the headers
3358
+ in the spec for a single request.
3359
+ :type _headers: dict, optional
3360
+ :param _host_index: set to override the host_index for a single
3361
+ request; this effectively ignores the host_index
3362
+ in the spec for a single request.
3363
+ :type _host_index: int, optional
3364
+ :return: Returns the result object.
3365
+ """ # noqa: E501
3366
+
3367
+ _param = self._refresh_token_info_serialize(
3368
+ x_refresh_token=x_refresh_token,
3369
+ _request_auth=_request_auth,
3370
+ _content_type=_content_type,
3371
+ _headers=_headers,
3372
+ _host_index=_host_index,
3373
+ )
3374
+
3375
+ _response_types_map: Dict[str, Optional[str]] = {
3376
+ "200": "RefreshTokenInfo200Response",
3377
+ }
3378
+ response_data = await self.api_client.call_api(
3379
+ *_param, _request_timeout=_request_timeout
3380
+ )
3381
+ await response_data.read()
3382
+ return self.api_client.response_deserialize(
3383
+ response_data=response_data,
3384
+ response_types_map=_response_types_map,
3385
+ ).data
3386
+
3387
+ @validate_call
3388
+ async def _refresh_token_info_async_with_http_info(
3389
+ self,
3390
+ x_refresh_token: Annotated[
3391
+ Optional[StrictStr],
3392
+ Field(description="The refresh token for rotating the access token."),
3393
+ ] = None,
3394
+ _request_timeout: Union[
3395
+ None,
3396
+ Annotated[StrictFloat, Field(gt=0)],
3397
+ Tuple[
3398
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3399
+ ],
3400
+ ] = None,
3401
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3402
+ _content_type: Optional[StrictStr] = None,
3403
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3404
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3405
+ ) -> ApiResponse[RefreshTokenInfo200Response]:
3406
+ """Refresh token info
3407
+
3408
+ Returns the user session record of the refresh token.
3409
+
3410
+ :param x_refresh_token: The refresh token for rotating the access token.
3411
+ :type x_refresh_token: str
3412
+ :param _request_timeout: timeout setting for this request. If one
3413
+ number provided, it will be total request
3414
+ timeout. It can also be a pair (tuple) of
3415
+ (connection, read) timeouts.
3416
+ :type _request_timeout: int, tuple(int, int), optional
3417
+ :param _request_auth: set to override the auth_settings for an a single
3418
+ request; this effectively ignores the
3419
+ authentication in the spec for a single request.
3420
+ :type _request_auth: dict, optional
3421
+ :param _content_type: force content-type for the request.
3422
+ :type _content_type: str, Optional
3423
+ :param _headers: set to override the headers for a single
3424
+ request; this effectively ignores the headers
3425
+ in the spec for a single request.
3426
+ :type _headers: dict, optional
3427
+ :param _host_index: set to override the host_index for a single
3428
+ request; this effectively ignores the host_index
3429
+ in the spec for a single request.
3430
+ :type _host_index: int, optional
3431
+ :return: Returns the result object.
3432
+ """ # noqa: E501
3433
+
3434
+ _param = self._refresh_token_info_serialize(
3435
+ x_refresh_token=x_refresh_token,
3436
+ _request_auth=_request_auth,
3437
+ _content_type=_content_type,
3438
+ _headers=_headers,
3439
+ _host_index=_host_index,
3440
+ )
3441
+
3442
+ _response_types_map: Dict[str, Optional[str]] = {
3443
+ "200": "RefreshTokenInfo200Response",
3444
+ }
3445
+ response_data = await self.api_client.call_api(
3446
+ *_param, _request_timeout=_request_timeout
3447
+ )
3448
+ await response_data.read()
3449
+ return self.api_client.response_deserialize(
3450
+ response_data=response_data, response_types_map=_response_types_map
3451
+ )
3452
+
3453
+ @validate_call
3454
+ async def _refresh_token_info_async_without_preload_content(
3455
+ self,
3456
+ x_refresh_token: Annotated[
3457
+ Optional[StrictStr],
3458
+ Field(description="The refresh token for rotating the access token."),
3459
+ ] = None,
3460
+ _request_timeout: Union[
3461
+ None,
3462
+ Annotated[StrictFloat, Field(gt=0)],
3463
+ Tuple[
3464
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3465
+ ],
3466
+ ] = None,
3467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3468
+ _content_type: Optional[StrictStr] = None,
3469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3471
+ ) -> RESTResponseType:
3472
+ """Refresh token info
3473
+
3474
+ Returns the user session record of the refresh token.
3475
+
3476
+ :param x_refresh_token: The refresh token for rotating the access token.
3477
+ :type x_refresh_token: str
3478
+ :param _request_timeout: timeout setting for this request. If one
3479
+ number provided, it will be total request
3480
+ timeout. It can also be a pair (tuple) of
3481
+ (connection, read) timeouts.
3482
+ :type _request_timeout: int, tuple(int, int), optional
3483
+ :param _request_auth: set to override the auth_settings for an a single
3484
+ request; this effectively ignores the
3485
+ authentication in the spec for a single request.
3486
+ :type _request_auth: dict, optional
3487
+ :param _content_type: force content-type for the request.
3488
+ :type _content_type: str, Optional
3489
+ :param _headers: set to override the headers for a single
3490
+ request; this effectively ignores the headers
3491
+ in the spec for a single request.
3492
+ :type _headers: dict, optional
3493
+ :param _host_index: set to override the host_index for a single
3494
+ request; this effectively ignores the host_index
3495
+ in the spec for a single request.
3496
+ :type _host_index: int, optional
3497
+ :return: Returns the result object.
3498
+ """ # noqa: E501
3499
+
3500
+ _param = self._refresh_token_info_serialize(
3501
+ x_refresh_token=x_refresh_token,
3502
+ _request_auth=_request_auth,
3503
+ _content_type=_content_type,
3504
+ _headers=_headers,
3505
+ _host_index=_host_index,
3506
+ )
3507
+
3508
+ _response_types_map: Dict[str, Optional[str]] = {
3509
+ "200": "RefreshTokenInfo200Response",
3510
+ }
3511
+ response_data = await self.api_client.call_api(
3512
+ *_param, _request_timeout=_request_timeout
3513
+ )
3514
+ return response_data
3515
+
3516
+ # Private sync implementation methods
3517
+ @validate_call
3518
+ def _refresh_token_info_sync(
3519
+ self,
3520
+ x_refresh_token: Annotated[
3521
+ Optional[StrictStr],
3522
+ Field(description="The refresh token for rotating the access token."),
3523
+ ] = None,
3524
+ _request_timeout: Union[
3525
+ None,
3526
+ Annotated[StrictFloat, Field(gt=0)],
3527
+ Tuple[
3528
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3529
+ ],
3530
+ ] = None,
3531
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3532
+ _content_type: Optional[StrictStr] = None,
3533
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3534
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3535
+ ) -> RefreshTokenInfo200Response:
3536
+ """Synchronous version of refresh_token_info"""
3537
+ return async_to_sync(self._refresh_token_info_async)(
3538
+ x_refresh_token=x_refresh_token,
3539
+ _request_timeout=_request_timeout,
3540
+ _request_auth=_request_auth,
3541
+ _content_type=_content_type,
3542
+ _headers=_headers,
3543
+ _host_index=_host_index,
3544
+ )
3545
+
3546
+ @validate_call
3547
+ def _refresh_token_info_sync_with_http_info(
3548
+ self,
3549
+ x_refresh_token: Annotated[
3550
+ Optional[StrictStr],
3551
+ Field(description="The refresh token for rotating the access token."),
3552
+ ] = None,
3553
+ _request_timeout: Union[
3554
+ None,
3555
+ Annotated[StrictFloat, Field(gt=0)],
3556
+ Tuple[
3557
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3558
+ ],
3559
+ ] = None,
3560
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3561
+ _content_type: Optional[StrictStr] = None,
3562
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3563
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3564
+ ) -> ApiResponse[RefreshTokenInfo200Response]:
3565
+ """Synchronous version of refresh_token_info_with_http_info"""
3566
+ return async_to_sync(self._refresh_token_info_async_with_http_info)(
3567
+ x_refresh_token=x_refresh_token,
3568
+ _request_timeout=_request_timeout,
3569
+ _request_auth=_request_auth,
3570
+ _content_type=_content_type,
3571
+ _headers=_headers,
3572
+ _host_index=_host_index,
3573
+ )
3574
+
3575
+ @validate_call
3576
+ def _refresh_token_info_sync_without_preload_content(
3577
+ self,
3578
+ x_refresh_token: Annotated[
3579
+ Optional[StrictStr],
3580
+ Field(description="The refresh token for rotating the access token."),
3581
+ ] = None,
3582
+ _request_timeout: Union[
3583
+ None,
3584
+ Annotated[StrictFloat, Field(gt=0)],
3585
+ Tuple[
3586
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3587
+ ],
3588
+ ] = None,
3589
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3590
+ _content_type: Optional[StrictStr] = None,
3591
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3592
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3593
+ ) -> RESTResponseType:
3594
+ """Synchronous version of refresh_token_info_without_preload_content"""
3595
+ return async_to_sync(self._refresh_token_info_async_without_preload_content)(
3596
+ x_refresh_token=x_refresh_token,
3597
+ _request_timeout=_request_timeout,
3598
+ _request_auth=_request_auth,
3599
+ _content_type=_content_type,
3600
+ _headers=_headers,
3601
+ _host_index=_host_index,
3602
+ )
3603
+
3604
+ def _refresh_token_info_serialize(
3605
+ self,
3606
+ x_refresh_token,
3607
+ _request_auth,
3608
+ _content_type,
3609
+ _headers,
3610
+ _host_index,
3611
+ ) -> RequestSerialized:
3612
+
3613
+ _host = None
3614
+
3615
+ _collection_formats: Dict[str, str] = {}
3616
+
3617
+ _path_params: Dict[str, str] = {}
3618
+ _query_params: List[Tuple[str, str]] = []
3619
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3620
+ _form_params: List[Tuple[str, str]] = []
3621
+ _files: Dict[
3622
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3623
+ ] = {}
3624
+ _body_params: Optional[bytes] = None
3625
+
3626
+ # process the path parameters
3627
+ # process the query parameters
3628
+ # process the header parameters
3629
+ if x_refresh_token is not None:
3630
+ _header_params["X-Refresh-Token"] = x_refresh_token
3631
+ # process the form parameters
3632
+ # process the body parameter
3633
+
3634
+ # set the HTTP header `Accept`
3635
+ if "Accept" not in _header_params:
3636
+ _header_params["Accept"] = self.api_client.select_header_accept(
3637
+ ["application/json"]
3638
+ )
3639
+
3640
+ # authentication setting
3641
+ _auth_settings: List[str] = []
3642
+
3643
+ return self.api_client.param_serialize(
3644
+ method="GET",
3645
+ resource_path="/refresh-token-info",
3646
+ path_params=_path_params,
3647
+ query_params=_query_params,
3648
+ header_params=_header_params,
3649
+ body=_body_params,
3650
+ post_params=_form_params,
3651
+ files=_files,
3652
+ auth_settings=_auth_settings,
3653
+ collection_formats=_collection_formats,
3654
+ _host=_host,
3655
+ _request_auth=_request_auth,
3656
+ )
3657
+
3658
+ @validate_call
3659
+ def refresh_token_scopes(
3660
+ self,
3661
+ x_refresh_token: Annotated[
3662
+ Optional[StrictStr],
3663
+ Field(description="The refresh token for rotating the access token."),
3664
+ ] = None,
3665
+ _request_timeout: Union[
3666
+ None,
3667
+ Annotated[StrictFloat, Field(gt=0)],
3668
+ Tuple[
3669
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3670
+ ],
3671
+ ] = None,
3672
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3673
+ _content_type: Optional[StrictStr] = None,
3674
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3675
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3676
+ ) -> RotateTokens200Response:
3677
+ """Refresh token scopes"""
3678
+ if self.is_sync:
3679
+ return self._refresh_token_scopes_sync(
3680
+ x_refresh_token=x_refresh_token,
3681
+ _request_timeout=_request_timeout,
2857
3682
  _request_auth=_request_auth,
2858
3683
  _content_type=_content_type,
2859
3684
  _headers=_headers,
@@ -2861,7 +3686,7 @@ class AuthApi:
2861
3686
  )
2862
3687
 
2863
3688
  else:
2864
- return self._refresh_token_info_async_with_http_info(
3689
+ return self._refresh_token_scopes_async(
2865
3690
  x_refresh_token=x_refresh_token,
2866
3691
  _request_timeout=_request_timeout,
2867
3692
  _request_auth=_request_auth,
@@ -2871,7 +3696,47 @@ class AuthApi:
2871
3696
  )
2872
3697
 
2873
3698
  @validate_call
2874
- def refresh_token_info_without_preload_content(
3699
+ def refresh_token_scopes_with_http_info(
3700
+ self,
3701
+ x_refresh_token: Annotated[
3702
+ Optional[StrictStr],
3703
+ Field(description="The refresh token for rotating the access token."),
3704
+ ] = None,
3705
+ _request_timeout: Union[
3706
+ None,
3707
+ Annotated[StrictFloat, Field(gt=0)],
3708
+ Tuple[
3709
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3710
+ ],
3711
+ ] = None,
3712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3713
+ _content_type: Optional[StrictStr] = None,
3714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3716
+ ) -> ApiResponse[RotateTokens200Response]:
3717
+ """Refresh token scopes with HTTP info"""
3718
+ if self.is_sync:
3719
+ return self._refresh_token_scopes_sync_with_http_info(
3720
+ x_refresh_token=x_refresh_token,
3721
+ _request_timeout=_request_timeout,
3722
+ _request_auth=_request_auth,
3723
+ _content_type=_content_type,
3724
+ _headers=_headers,
3725
+ _host_index=_host_index,
3726
+ )
3727
+
3728
+ else:
3729
+ return self._refresh_token_scopes_async_with_http_info(
3730
+ x_refresh_token=x_refresh_token,
3731
+ _request_timeout=_request_timeout,
3732
+ _request_auth=_request_auth,
3733
+ _content_type=_content_type,
3734
+ _headers=_headers,
3735
+ _host_index=_host_index,
3736
+ )
3737
+
3738
+ @validate_call
3739
+ def refresh_token_scopes_without_preload_content(
2875
3740
  self,
2876
3741
  x_refresh_token: Annotated[
2877
3742
  Optional[StrictStr],
@@ -2889,9 +3754,9 @@ class AuthApi:
2889
3754
  _headers: Optional[Dict[StrictStr, Any]] = None,
2890
3755
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2891
3756
  ) -> RESTResponseType:
2892
- """Refresh token info without preloading content"""
3757
+ """Refresh token scopes without preloading content"""
2893
3758
  if self.is_sync:
2894
- return self._refresh_token_info_sync_without_preload_content(
3759
+ return self._refresh_token_scopes_sync_without_preload_content(
2895
3760
  x_refresh_token=x_refresh_token,
2896
3761
  _request_timeout=_request_timeout,
2897
3762
  _request_auth=_request_auth,
@@ -2901,7 +3766,7 @@ class AuthApi:
2901
3766
  )
2902
3767
 
2903
3768
  else:
2904
- return self._refresh_token_info_async_without_preload_content(
3769
+ return self._refresh_token_scopes_async_without_preload_content(
2905
3770
  x_refresh_token=x_refresh_token,
2906
3771
  _request_timeout=_request_timeout,
2907
3772
  _request_auth=_request_auth,
@@ -2912,7 +3777,7 @@ class AuthApi:
2912
3777
 
2913
3778
  # Private async implementation methods
2914
3779
  @validate_call
2915
- async def _refresh_token_info_async(
3780
+ async def _refresh_token_scopes_async(
2916
3781
  self,
2917
3782
  x_refresh_token: Annotated[
2918
3783
  Optional[StrictStr],
@@ -2929,10 +3794,10 @@ class AuthApi:
2929
3794
  _content_type: Optional[StrictStr] = None,
2930
3795
  _headers: Optional[Dict[StrictStr, Any]] = None,
2931
3796
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2932
- ) -> RefreshTokenInfo200Response:
2933
- """Refresh token info
3797
+ ) -> RotateTokens200Response:
3798
+ """Refresh token scopes
2934
3799
 
2935
- Returns the user session record of the refresh token.
3800
+ Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
2936
3801
 
2937
3802
  :param x_refresh_token: The refresh token for rotating the access token.
2938
3803
  :type x_refresh_token: str
@@ -2958,7 +3823,7 @@ class AuthApi:
2958
3823
  :return: Returns the result object.
2959
3824
  """ # noqa: E501
2960
3825
 
2961
- _param = self._refresh_token_info_serialize(
3826
+ _param = self._refresh_token_scopes_serialize(
2962
3827
  x_refresh_token=x_refresh_token,
2963
3828
  _request_auth=_request_auth,
2964
3829
  _content_type=_content_type,
@@ -2967,7 +3832,7 @@ class AuthApi:
2967
3832
  )
2968
3833
 
2969
3834
  _response_types_map: Dict[str, Optional[str]] = {
2970
- "200": "RefreshTokenInfo200Response",
3835
+ "200": "RotateTokens200Response",
2971
3836
  }
2972
3837
  response_data = await self.api_client.call_api(
2973
3838
  *_param, _request_timeout=_request_timeout
@@ -2979,7 +3844,7 @@ class AuthApi:
2979
3844
  ).data
2980
3845
 
2981
3846
  @validate_call
2982
- async def _refresh_token_info_async_with_http_info(
3847
+ async def _refresh_token_scopes_async_with_http_info(
2983
3848
  self,
2984
3849
  x_refresh_token: Annotated[
2985
3850
  Optional[StrictStr],
@@ -2996,10 +3861,10 @@ class AuthApi:
2996
3861
  _content_type: Optional[StrictStr] = None,
2997
3862
  _headers: Optional[Dict[StrictStr, Any]] = None,
2998
3863
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2999
- ) -> ApiResponse[RefreshTokenInfo200Response]:
3000
- """Refresh token info
3864
+ ) -> ApiResponse[RotateTokens200Response]:
3865
+ """Refresh token scopes
3001
3866
 
3002
- Returns the user session record of the refresh token.
3867
+ Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
3003
3868
 
3004
3869
  :param x_refresh_token: The refresh token for rotating the access token.
3005
3870
  :type x_refresh_token: str
@@ -3025,7 +3890,7 @@ class AuthApi:
3025
3890
  :return: Returns the result object.
3026
3891
  """ # noqa: E501
3027
3892
 
3028
- _param = self._refresh_token_info_serialize(
3893
+ _param = self._refresh_token_scopes_serialize(
3029
3894
  x_refresh_token=x_refresh_token,
3030
3895
  _request_auth=_request_auth,
3031
3896
  _content_type=_content_type,
@@ -3034,7 +3899,7 @@ class AuthApi:
3034
3899
  )
3035
3900
 
3036
3901
  _response_types_map: Dict[str, Optional[str]] = {
3037
- "200": "RefreshTokenInfo200Response",
3902
+ "200": "RotateTokens200Response",
3038
3903
  }
3039
3904
  response_data = await self.api_client.call_api(
3040
3905
  *_param, _request_timeout=_request_timeout
@@ -3045,7 +3910,7 @@ class AuthApi:
3045
3910
  )
3046
3911
 
3047
3912
  @validate_call
3048
- async def _refresh_token_info_async_without_preload_content(
3913
+ async def _refresh_token_scopes_async_without_preload_content(
3049
3914
  self,
3050
3915
  x_refresh_token: Annotated[
3051
3916
  Optional[StrictStr],
@@ -3063,9 +3928,9 @@ class AuthApi:
3063
3928
  _headers: Optional[Dict[StrictStr, Any]] = None,
3064
3929
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3065
3930
  ) -> RESTResponseType:
3066
- """Refresh token info
3931
+ """Refresh token scopes
3067
3932
 
3068
- Returns the user session record of the refresh token.
3933
+ Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
3069
3934
 
3070
3935
  :param x_refresh_token: The refresh token for rotating the access token.
3071
3936
  :type x_refresh_token: str
@@ -3091,7 +3956,7 @@ class AuthApi:
3091
3956
  :return: Returns the result object.
3092
3957
  """ # noqa: E501
3093
3958
 
3094
- _param = self._refresh_token_info_serialize(
3959
+ _param = self._refresh_token_scopes_serialize(
3095
3960
  x_refresh_token=x_refresh_token,
3096
3961
  _request_auth=_request_auth,
3097
3962
  _content_type=_content_type,
@@ -3100,7 +3965,7 @@ class AuthApi:
3100
3965
  )
3101
3966
 
3102
3967
  _response_types_map: Dict[str, Optional[str]] = {
3103
- "200": "RefreshTokenInfo200Response",
3968
+ "200": "RotateTokens200Response",
3104
3969
  }
3105
3970
  response_data = await self.api_client.call_api(
3106
3971
  *_param, _request_timeout=_request_timeout
@@ -3109,7 +3974,7 @@ class AuthApi:
3109
3974
 
3110
3975
  # Private sync implementation methods
3111
3976
  @validate_call
3112
- def _refresh_token_info_sync(
3977
+ def _refresh_token_scopes_sync(
3113
3978
  self,
3114
3979
  x_refresh_token: Annotated[
3115
3980
  Optional[StrictStr],
@@ -3126,9 +3991,9 @@ class AuthApi:
3126
3991
  _content_type: Optional[StrictStr] = None,
3127
3992
  _headers: Optional[Dict[StrictStr, Any]] = None,
3128
3993
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3129
- ) -> RefreshTokenInfo200Response:
3130
- """Synchronous version of refresh_token_info"""
3131
- return async_to_sync(self._refresh_token_info_async)(
3994
+ ) -> RotateTokens200Response:
3995
+ """Synchronous version of refresh_token_scopes"""
3996
+ return async_to_sync(self._refresh_token_scopes_async)(
3132
3997
  x_refresh_token=x_refresh_token,
3133
3998
  _request_timeout=_request_timeout,
3134
3999
  _request_auth=_request_auth,
@@ -3138,7 +4003,7 @@ class AuthApi:
3138
4003
  )
3139
4004
 
3140
4005
  @validate_call
3141
- def _refresh_token_info_sync_with_http_info(
4006
+ def _refresh_token_scopes_sync_with_http_info(
3142
4007
  self,
3143
4008
  x_refresh_token: Annotated[
3144
4009
  Optional[StrictStr],
@@ -3155,9 +4020,9 @@ class AuthApi:
3155
4020
  _content_type: Optional[StrictStr] = None,
3156
4021
  _headers: Optional[Dict[StrictStr, Any]] = None,
3157
4022
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3158
- ) -> ApiResponse[RefreshTokenInfo200Response]:
3159
- """Synchronous version of refresh_token_info_with_http_info"""
3160
- return async_to_sync(self._refresh_token_info_async_with_http_info)(
4023
+ ) -> ApiResponse[RotateTokens200Response]:
4024
+ """Synchronous version of refresh_token_scopes_with_http_info"""
4025
+ return async_to_sync(self._refresh_token_scopes_async_with_http_info)(
3161
4026
  x_refresh_token=x_refresh_token,
3162
4027
  _request_timeout=_request_timeout,
3163
4028
  _request_auth=_request_auth,
@@ -3167,7 +4032,7 @@ class AuthApi:
3167
4032
  )
3168
4033
 
3169
4034
  @validate_call
3170
- def _refresh_token_info_sync_without_preload_content(
4035
+ def _refresh_token_scopes_sync_without_preload_content(
3171
4036
  self,
3172
4037
  x_refresh_token: Annotated[
3173
4038
  Optional[StrictStr],
@@ -3185,8 +4050,8 @@ class AuthApi:
3185
4050
  _headers: Optional[Dict[StrictStr, Any]] = None,
3186
4051
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3187
4052
  ) -> RESTResponseType:
3188
- """Synchronous version of refresh_token_info_without_preload_content"""
3189
- return async_to_sync(self._refresh_token_info_async_without_preload_content)(
4053
+ """Synchronous version of refresh_token_scopes_without_preload_content"""
4054
+ return async_to_sync(self._refresh_token_scopes_async_without_preload_content)(
3190
4055
  x_refresh_token=x_refresh_token,
3191
4056
  _request_timeout=_request_timeout,
3192
4057
  _request_auth=_request_auth,
@@ -3195,7 +4060,7 @@ class AuthApi:
3195
4060
  _host_index=_host_index,
3196
4061
  )
3197
4062
 
3198
- def _refresh_token_info_serialize(
4063
+ def _refresh_token_scopes_serialize(
3199
4064
  self,
3200
4065
  x_refresh_token,
3201
4066
  _request_auth,
@@ -3235,8 +4100,8 @@ class AuthApi:
3235
4100
  _auth_settings: List[str] = []
3236
4101
 
3237
4102
  return self.api_client.param_serialize(
3238
- method="GET",
3239
- resource_path="/refresh-token-info",
4103
+ method="POST",
4104
+ resource_path="/refresh-token-scopes",
3240
4105
  path_params=_path_params,
3241
4106
  query_params=_query_params,
3242
4107
  header_params=_header_params,
@@ -3250,7 +4115,7 @@ class AuthApi:
3250
4115
  )
3251
4116
 
3252
4117
  @validate_call
3253
- def refresh_token_scopes(
4118
+ def rotate_tokens(
3254
4119
  self,
3255
4120
  x_refresh_token: Annotated[
3256
4121
  Optional[StrictStr],
@@ -3268,9 +4133,9 @@ class AuthApi:
3268
4133
  _headers: Optional[Dict[StrictStr, Any]] = None,
3269
4134
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3270
4135
  ) -> RotateTokens200Response:
3271
- """Refresh token scopes"""
4136
+ """Rotate tokens"""
3272
4137
  if self.is_sync:
3273
- return self._refresh_token_scopes_sync(
4138
+ return self._rotate_tokens_sync(
3274
4139
  x_refresh_token=x_refresh_token,
3275
4140
  _request_timeout=_request_timeout,
3276
4141
  _request_auth=_request_auth,
@@ -3280,7 +4145,7 @@ class AuthApi:
3280
4145
  )
3281
4146
 
3282
4147
  else:
3283
- return self._refresh_token_scopes_async(
4148
+ return self._rotate_tokens_async(
3284
4149
  x_refresh_token=x_refresh_token,
3285
4150
  _request_timeout=_request_timeout,
3286
4151
  _request_auth=_request_auth,
@@ -3290,7 +4155,7 @@ class AuthApi:
3290
4155
  )
3291
4156
 
3292
4157
  @validate_call
3293
- def refresh_token_scopes_with_http_info(
4158
+ def rotate_tokens_with_http_info(
3294
4159
  self,
3295
4160
  x_refresh_token: Annotated[
3296
4161
  Optional[StrictStr],
@@ -3308,9 +4173,9 @@ class AuthApi:
3308
4173
  _headers: Optional[Dict[StrictStr, Any]] = None,
3309
4174
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3310
4175
  ) -> ApiResponse[RotateTokens200Response]:
3311
- """Refresh token scopes with HTTP info"""
4176
+ """Rotate tokens with HTTP info"""
3312
4177
  if self.is_sync:
3313
- return self._refresh_token_scopes_sync_with_http_info(
4178
+ return self._rotate_tokens_sync_with_http_info(
3314
4179
  x_refresh_token=x_refresh_token,
3315
4180
  _request_timeout=_request_timeout,
3316
4181
  _request_auth=_request_auth,
@@ -3320,7 +4185,7 @@ class AuthApi:
3320
4185
  )
3321
4186
 
3322
4187
  else:
3323
- return self._refresh_token_scopes_async_with_http_info(
4188
+ return self._rotate_tokens_async_with_http_info(
3324
4189
  x_refresh_token=x_refresh_token,
3325
4190
  _request_timeout=_request_timeout,
3326
4191
  _request_auth=_request_auth,
@@ -3330,7 +4195,7 @@ class AuthApi:
3330
4195
  )
3331
4196
 
3332
4197
  @validate_call
3333
- def refresh_token_scopes_without_preload_content(
4198
+ def rotate_tokens_without_preload_content(
3334
4199
  self,
3335
4200
  x_refresh_token: Annotated[
3336
4201
  Optional[StrictStr],
@@ -3348,9 +4213,9 @@ class AuthApi:
3348
4213
  _headers: Optional[Dict[StrictStr, Any]] = None,
3349
4214
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3350
4215
  ) -> RESTResponseType:
3351
- """Refresh token scopes without preloading content"""
4216
+ """Rotate tokens without preloading content"""
3352
4217
  if self.is_sync:
3353
- return self._refresh_token_scopes_sync_without_preload_content(
4218
+ return self._rotate_tokens_sync_without_preload_content(
3354
4219
  x_refresh_token=x_refresh_token,
3355
4220
  _request_timeout=_request_timeout,
3356
4221
  _request_auth=_request_auth,
@@ -3360,7 +4225,7 @@ class AuthApi:
3360
4225
  )
3361
4226
 
3362
4227
  else:
3363
- return self._refresh_token_scopes_async_without_preload_content(
4228
+ return self._rotate_tokens_async_without_preload_content(
3364
4229
  x_refresh_token=x_refresh_token,
3365
4230
  _request_timeout=_request_timeout,
3366
4231
  _request_auth=_request_auth,
@@ -3371,7 +4236,7 @@ class AuthApi:
3371
4236
 
3372
4237
  # Private async implementation methods
3373
4238
  @validate_call
3374
- async def _refresh_token_scopes_async(
4239
+ async def _rotate_tokens_async(
3375
4240
  self,
3376
4241
  x_refresh_token: Annotated[
3377
4242
  Optional[StrictStr],
@@ -3389,9 +4254,9 @@ class AuthApi:
3389
4254
  _headers: Optional[Dict[StrictStr, Any]] = None,
3390
4255
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3391
4256
  ) -> RotateTokens200Response:
3392
- """Refresh token scopes
4257
+ """Rotate tokens
3393
4258
 
3394
- Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
4259
+ Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
3395
4260
 
3396
4261
  :param x_refresh_token: The refresh token for rotating the access token.
3397
4262
  :type x_refresh_token: str
@@ -3417,7 +4282,7 @@ class AuthApi:
3417
4282
  :return: Returns the result object.
3418
4283
  """ # noqa: E501
3419
4284
 
3420
- _param = self._refresh_token_scopes_serialize(
4285
+ _param = self._rotate_tokens_serialize(
3421
4286
  x_refresh_token=x_refresh_token,
3422
4287
  _request_auth=_request_auth,
3423
4288
  _content_type=_content_type,
@@ -3438,7 +4303,7 @@ class AuthApi:
3438
4303
  ).data
3439
4304
 
3440
4305
  @validate_call
3441
- async def _refresh_token_scopes_async_with_http_info(
4306
+ async def _rotate_tokens_async_with_http_info(
3442
4307
  self,
3443
4308
  x_refresh_token: Annotated[
3444
4309
  Optional[StrictStr],
@@ -3456,9 +4321,9 @@ class AuthApi:
3456
4321
  _headers: Optional[Dict[StrictStr, Any]] = None,
3457
4322
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3458
4323
  ) -> ApiResponse[RotateTokens200Response]:
3459
- """Refresh token scopes
4324
+ """Rotate tokens
3460
4325
 
3461
- Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
4326
+ Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
3462
4327
 
3463
4328
  :param x_refresh_token: The refresh token for rotating the access token.
3464
4329
  :type x_refresh_token: str
@@ -3484,7 +4349,7 @@ class AuthApi:
3484
4349
  :return: Returns the result object.
3485
4350
  """ # noqa: E501
3486
4351
 
3487
- _param = self._refresh_token_scopes_serialize(
4352
+ _param = self._rotate_tokens_serialize(
3488
4353
  x_refresh_token=x_refresh_token,
3489
4354
  _request_auth=_request_auth,
3490
4355
  _content_type=_content_type,
@@ -3504,7 +4369,7 @@ class AuthApi:
3504
4369
  )
3505
4370
 
3506
4371
  @validate_call
3507
- async def _refresh_token_scopes_async_without_preload_content(
4372
+ async def _rotate_tokens_async_without_preload_content(
3508
4373
  self,
3509
4374
  x_refresh_token: Annotated[
3510
4375
  Optional[StrictStr],
@@ -3522,9 +4387,9 @@ class AuthApi:
3522
4387
  _headers: Optional[Dict[StrictStr, Any]] = None,
3523
4388
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3524
4389
  ) -> RESTResponseType:
3525
- """Refresh token scopes
4390
+ """Rotate tokens
3526
4391
 
3527
- Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
4392
+ Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
3528
4393
 
3529
4394
  :param x_refresh_token: The refresh token for rotating the access token.
3530
4395
  :type x_refresh_token: str
@@ -3550,7 +4415,7 @@ class AuthApi:
3550
4415
  :return: Returns the result object.
3551
4416
  """ # noqa: E501
3552
4417
 
3553
- _param = self._refresh_token_scopes_serialize(
4418
+ _param = self._rotate_tokens_serialize(
3554
4419
  x_refresh_token=x_refresh_token,
3555
4420
  _request_auth=_request_auth,
3556
4421
  _content_type=_content_type,
@@ -3568,7 +4433,7 @@ class AuthApi:
3568
4433
 
3569
4434
  # Private sync implementation methods
3570
4435
  @validate_call
3571
- def _refresh_token_scopes_sync(
4436
+ def _rotate_tokens_sync(
3572
4437
  self,
3573
4438
  x_refresh_token: Annotated[
3574
4439
  Optional[StrictStr],
@@ -3586,8 +4451,8 @@ class AuthApi:
3586
4451
  _headers: Optional[Dict[StrictStr, Any]] = None,
3587
4452
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3588
4453
  ) -> RotateTokens200Response:
3589
- """Synchronous version of refresh_token_scopes"""
3590
- return async_to_sync(self._refresh_token_scopes_async)(
4454
+ """Synchronous version of rotate_tokens"""
4455
+ return async_to_sync(self._rotate_tokens_async)(
3591
4456
  x_refresh_token=x_refresh_token,
3592
4457
  _request_timeout=_request_timeout,
3593
4458
  _request_auth=_request_auth,
@@ -3597,7 +4462,7 @@ class AuthApi:
3597
4462
  )
3598
4463
 
3599
4464
  @validate_call
3600
- def _refresh_token_scopes_sync_with_http_info(
4465
+ def _rotate_tokens_sync_with_http_info(
3601
4466
  self,
3602
4467
  x_refresh_token: Annotated[
3603
4468
  Optional[StrictStr],
@@ -3615,8 +4480,8 @@ class AuthApi:
3615
4480
  _headers: Optional[Dict[StrictStr, Any]] = None,
3616
4481
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3617
4482
  ) -> ApiResponse[RotateTokens200Response]:
3618
- """Synchronous version of refresh_token_scopes_with_http_info"""
3619
- return async_to_sync(self._refresh_token_scopes_async_with_http_info)(
4483
+ """Synchronous version of rotate_tokens_with_http_info"""
4484
+ return async_to_sync(self._rotate_tokens_async_with_http_info)(
3620
4485
  x_refresh_token=x_refresh_token,
3621
4486
  _request_timeout=_request_timeout,
3622
4487
  _request_auth=_request_auth,
@@ -3626,7 +4491,7 @@ class AuthApi:
3626
4491
  )
3627
4492
 
3628
4493
  @validate_call
3629
- def _refresh_token_scopes_sync_without_preload_content(
4494
+ def _rotate_tokens_sync_without_preload_content(
3630
4495
  self,
3631
4496
  x_refresh_token: Annotated[
3632
4497
  Optional[StrictStr],
@@ -3644,8 +4509,8 @@ class AuthApi:
3644
4509
  _headers: Optional[Dict[StrictStr, Any]] = None,
3645
4510
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3646
4511
  ) -> RESTResponseType:
3647
- """Synchronous version of refresh_token_scopes_without_preload_content"""
3648
- return async_to_sync(self._refresh_token_scopes_async_without_preload_content)(
4512
+ """Synchronous version of rotate_tokens_without_preload_content"""
4513
+ return async_to_sync(self._rotate_tokens_async_without_preload_content)(
3649
4514
  x_refresh_token=x_refresh_token,
3650
4515
  _request_timeout=_request_timeout,
3651
4516
  _request_auth=_request_auth,
@@ -3654,7 +4519,7 @@ class AuthApi:
3654
4519
  _host_index=_host_index,
3655
4520
  )
3656
4521
 
3657
- def _refresh_token_scopes_serialize(
4522
+ def _rotate_tokens_serialize(
3658
4523
  self,
3659
4524
  x_refresh_token,
3660
4525
  _request_auth,
@@ -3695,7 +4560,7 @@ class AuthApi:
3695
4560
 
3696
4561
  return self.api_client.param_serialize(
3697
4562
  method="POST",
3698
- resource_path="/refresh-token-scopes",
4563
+ resource_path="/rotate-tokens",
3699
4564
  path_params=_path_params,
3700
4565
  query_params=_query_params,
3701
4566
  header_params=_header_params,
@@ -3709,7 +4574,7 @@ class AuthApi:
3709
4574
  )
3710
4575
 
3711
4576
  @validate_call
3712
- def rotate_tokens(
4577
+ def token_info(
3713
4578
  self,
3714
4579
  x_refresh_token: Annotated[
3715
4580
  Optional[StrictStr],
@@ -3726,10 +4591,10 @@ class AuthApi:
3726
4591
  _content_type: Optional[StrictStr] = None,
3727
4592
  _headers: Optional[Dict[StrictStr, Any]] = None,
3728
4593
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3729
- ) -> RotateTokens200Response:
3730
- """Rotate tokens"""
4594
+ ) -> TokenInfo200Response:
4595
+ """Token info"""
3731
4596
  if self.is_sync:
3732
- return self._rotate_tokens_sync(
4597
+ return self._token_info_sync(
3733
4598
  x_refresh_token=x_refresh_token,
3734
4599
  _request_timeout=_request_timeout,
3735
4600
  _request_auth=_request_auth,
@@ -3739,7 +4604,7 @@ class AuthApi:
3739
4604
  )
3740
4605
 
3741
4606
  else:
3742
- return self._rotate_tokens_async(
4607
+ return self._token_info_async(
3743
4608
  x_refresh_token=x_refresh_token,
3744
4609
  _request_timeout=_request_timeout,
3745
4610
  _request_auth=_request_auth,
@@ -3749,7 +4614,7 @@ class AuthApi:
3749
4614
  )
3750
4615
 
3751
4616
  @validate_call
3752
- def rotate_tokens_with_http_info(
4617
+ def token_info_with_http_info(
3753
4618
  self,
3754
4619
  x_refresh_token: Annotated[
3755
4620
  Optional[StrictStr],
@@ -3766,10 +4631,10 @@ class AuthApi:
3766
4631
  _content_type: Optional[StrictStr] = None,
3767
4632
  _headers: Optional[Dict[StrictStr, Any]] = None,
3768
4633
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3769
- ) -> ApiResponse[RotateTokens200Response]:
3770
- """Rotate tokens with HTTP info"""
4634
+ ) -> ApiResponse[TokenInfo200Response]:
4635
+ """Token info with HTTP info"""
3771
4636
  if self.is_sync:
3772
- return self._rotate_tokens_sync_with_http_info(
4637
+ return self._token_info_sync_with_http_info(
3773
4638
  x_refresh_token=x_refresh_token,
3774
4639
  _request_timeout=_request_timeout,
3775
4640
  _request_auth=_request_auth,
@@ -3779,7 +4644,7 @@ class AuthApi:
3779
4644
  )
3780
4645
 
3781
4646
  else:
3782
- return self._rotate_tokens_async_with_http_info(
4647
+ return self._token_info_async_with_http_info(
3783
4648
  x_refresh_token=x_refresh_token,
3784
4649
  _request_timeout=_request_timeout,
3785
4650
  _request_auth=_request_auth,
@@ -3789,7 +4654,7 @@ class AuthApi:
3789
4654
  )
3790
4655
 
3791
4656
  @validate_call
3792
- def rotate_tokens_without_preload_content(
4657
+ def token_info_without_preload_content(
3793
4658
  self,
3794
4659
  x_refresh_token: Annotated[
3795
4660
  Optional[StrictStr],
@@ -3807,9 +4672,9 @@ class AuthApi:
3807
4672
  _headers: Optional[Dict[StrictStr, Any]] = None,
3808
4673
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3809
4674
  ) -> RESTResponseType:
3810
- """Rotate tokens without preloading content"""
4675
+ """Token info without preloading content"""
3811
4676
  if self.is_sync:
3812
- return self._rotate_tokens_sync_without_preload_content(
4677
+ return self._token_info_sync_without_preload_content(
3813
4678
  x_refresh_token=x_refresh_token,
3814
4679
  _request_timeout=_request_timeout,
3815
4680
  _request_auth=_request_auth,
@@ -3819,7 +4684,7 @@ class AuthApi:
3819
4684
  )
3820
4685
 
3821
4686
  else:
3822
- return self._rotate_tokens_async_without_preload_content(
4687
+ return self._token_info_async_without_preload_content(
3823
4688
  x_refresh_token=x_refresh_token,
3824
4689
  _request_timeout=_request_timeout,
3825
4690
  _request_auth=_request_auth,
@@ -3830,7 +4695,7 @@ class AuthApi:
3830
4695
 
3831
4696
  # Private async implementation methods
3832
4697
  @validate_call
3833
- async def _rotate_tokens_async(
4698
+ async def _token_info_async(
3834
4699
  self,
3835
4700
  x_refresh_token: Annotated[
3836
4701
  Optional[StrictStr],
@@ -3847,10 +4712,10 @@ class AuthApi:
3847
4712
  _content_type: Optional[StrictStr] = None,
3848
4713
  _headers: Optional[Dict[StrictStr, Any]] = None,
3849
4714
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3850
- ) -> RotateTokens200Response:
3851
- """Rotate tokens
4715
+ ) -> TokenInfo200Response:
4716
+ """Token info
3852
4717
 
3853
- Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
4718
+ Returns the payload of the access token.
3854
4719
 
3855
4720
  :param x_refresh_token: The refresh token for rotating the access token.
3856
4721
  :type x_refresh_token: str
@@ -3876,7 +4741,7 @@ class AuthApi:
3876
4741
  :return: Returns the result object.
3877
4742
  """ # noqa: E501
3878
4743
 
3879
- _param = self._rotate_tokens_serialize(
4744
+ _param = self._token_info_serialize(
3880
4745
  x_refresh_token=x_refresh_token,
3881
4746
  _request_auth=_request_auth,
3882
4747
  _content_type=_content_type,
@@ -3885,7 +4750,7 @@ class AuthApi:
3885
4750
  )
3886
4751
 
3887
4752
  _response_types_map: Dict[str, Optional[str]] = {
3888
- "200": "RotateTokens200Response",
4753
+ "200": "TokenInfo200Response",
3889
4754
  }
3890
4755
  response_data = await self.api_client.call_api(
3891
4756
  *_param, _request_timeout=_request_timeout
@@ -3897,7 +4762,7 @@ class AuthApi:
3897
4762
  ).data
3898
4763
 
3899
4764
  @validate_call
3900
- async def _rotate_tokens_async_with_http_info(
4765
+ async def _token_info_async_with_http_info(
3901
4766
  self,
3902
4767
  x_refresh_token: Annotated[
3903
4768
  Optional[StrictStr],
@@ -3914,10 +4779,10 @@ class AuthApi:
3914
4779
  _content_type: Optional[StrictStr] = None,
3915
4780
  _headers: Optional[Dict[StrictStr, Any]] = None,
3916
4781
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3917
- ) -> ApiResponse[RotateTokens200Response]:
3918
- """Rotate tokens
4782
+ ) -> ApiResponse[TokenInfo200Response]:
4783
+ """Token info
3919
4784
 
3920
- Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
4785
+ Returns the payload of the access token.
3921
4786
 
3922
4787
  :param x_refresh_token: The refresh token for rotating the access token.
3923
4788
  :type x_refresh_token: str
@@ -3943,7 +4808,7 @@ class AuthApi:
3943
4808
  :return: Returns the result object.
3944
4809
  """ # noqa: E501
3945
4810
 
3946
- _param = self._rotate_tokens_serialize(
4811
+ _param = self._token_info_serialize(
3947
4812
  x_refresh_token=x_refresh_token,
3948
4813
  _request_auth=_request_auth,
3949
4814
  _content_type=_content_type,
@@ -3952,7 +4817,7 @@ class AuthApi:
3952
4817
  )
3953
4818
 
3954
4819
  _response_types_map: Dict[str, Optional[str]] = {
3955
- "200": "RotateTokens200Response",
4820
+ "200": "TokenInfo200Response",
3956
4821
  }
3957
4822
  response_data = await self.api_client.call_api(
3958
4823
  *_param, _request_timeout=_request_timeout
@@ -3963,7 +4828,7 @@ class AuthApi:
3963
4828
  )
3964
4829
 
3965
4830
  @validate_call
3966
- async def _rotate_tokens_async_without_preload_content(
4831
+ async def _token_info_async_without_preload_content(
3967
4832
  self,
3968
4833
  x_refresh_token: Annotated[
3969
4834
  Optional[StrictStr],
@@ -3981,9 +4846,9 @@ class AuthApi:
3981
4846
  _headers: Optional[Dict[StrictStr, Any]] = None,
3982
4847
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3983
4848
  ) -> RESTResponseType:
3984
- """Rotate tokens
4849
+ """Token info
3985
4850
 
3986
- Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
4851
+ Returns the payload of the access token.
3987
4852
 
3988
4853
  :param x_refresh_token: The refresh token for rotating the access token.
3989
4854
  :type x_refresh_token: str
@@ -4009,7 +4874,7 @@ class AuthApi:
4009
4874
  :return: Returns the result object.
4010
4875
  """ # noqa: E501
4011
4876
 
4012
- _param = self._rotate_tokens_serialize(
4877
+ _param = self._token_info_serialize(
4013
4878
  x_refresh_token=x_refresh_token,
4014
4879
  _request_auth=_request_auth,
4015
4880
  _content_type=_content_type,
@@ -4018,7 +4883,7 @@ class AuthApi:
4018
4883
  )
4019
4884
 
4020
4885
  _response_types_map: Dict[str, Optional[str]] = {
4021
- "200": "RotateTokens200Response",
4886
+ "200": "TokenInfo200Response",
4022
4887
  }
4023
4888
  response_data = await self.api_client.call_api(
4024
4889
  *_param, _request_timeout=_request_timeout
@@ -4027,7 +4892,7 @@ class AuthApi:
4027
4892
 
4028
4893
  # Private sync implementation methods
4029
4894
  @validate_call
4030
- def _rotate_tokens_sync(
4895
+ def _token_info_sync(
4031
4896
  self,
4032
4897
  x_refresh_token: Annotated[
4033
4898
  Optional[StrictStr],
@@ -4044,9 +4909,9 @@ class AuthApi:
4044
4909
  _content_type: Optional[StrictStr] = None,
4045
4910
  _headers: Optional[Dict[StrictStr, Any]] = None,
4046
4911
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4047
- ) -> RotateTokens200Response:
4048
- """Synchronous version of rotate_tokens"""
4049
- return async_to_sync(self._rotate_tokens_async)(
4912
+ ) -> TokenInfo200Response:
4913
+ """Synchronous version of token_info"""
4914
+ return async_to_sync(self._token_info_async)(
4050
4915
  x_refresh_token=x_refresh_token,
4051
4916
  _request_timeout=_request_timeout,
4052
4917
  _request_auth=_request_auth,
@@ -4056,7 +4921,7 @@ class AuthApi:
4056
4921
  )
4057
4922
 
4058
4923
  @validate_call
4059
- def _rotate_tokens_sync_with_http_info(
4924
+ def _token_info_sync_with_http_info(
4060
4925
  self,
4061
4926
  x_refresh_token: Annotated[
4062
4927
  Optional[StrictStr],
@@ -4073,9 +4938,9 @@ class AuthApi:
4073
4938
  _content_type: Optional[StrictStr] = None,
4074
4939
  _headers: Optional[Dict[StrictStr, Any]] = None,
4075
4940
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4076
- ) -> ApiResponse[RotateTokens200Response]:
4077
- """Synchronous version of rotate_tokens_with_http_info"""
4078
- return async_to_sync(self._rotate_tokens_async_with_http_info)(
4941
+ ) -> ApiResponse[TokenInfo200Response]:
4942
+ """Synchronous version of token_info_with_http_info"""
4943
+ return async_to_sync(self._token_info_async_with_http_info)(
4079
4944
  x_refresh_token=x_refresh_token,
4080
4945
  _request_timeout=_request_timeout,
4081
4946
  _request_auth=_request_auth,
@@ -4085,7 +4950,7 @@ class AuthApi:
4085
4950
  )
4086
4951
 
4087
4952
  @validate_call
4088
- def _rotate_tokens_sync_without_preload_content(
4953
+ def _token_info_sync_without_preload_content(
4089
4954
  self,
4090
4955
  x_refresh_token: Annotated[
4091
4956
  Optional[StrictStr],
@@ -4103,8 +4968,8 @@ class AuthApi:
4103
4968
  _headers: Optional[Dict[StrictStr, Any]] = None,
4104
4969
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4105
4970
  ) -> RESTResponseType:
4106
- """Synchronous version of rotate_tokens_without_preload_content"""
4107
- return async_to_sync(self._rotate_tokens_async_without_preload_content)(
4971
+ """Synchronous version of token_info_without_preload_content"""
4972
+ return async_to_sync(self._token_info_async_without_preload_content)(
4108
4973
  x_refresh_token=x_refresh_token,
4109
4974
  _request_timeout=_request_timeout,
4110
4975
  _request_auth=_request_auth,
@@ -4113,7 +4978,7 @@ class AuthApi:
4113
4978
  _host_index=_host_index,
4114
4979
  )
4115
4980
 
4116
- def _rotate_tokens_serialize(
4981
+ def _token_info_serialize(
4117
4982
  self,
4118
4983
  x_refresh_token,
4119
4984
  _request_auth,
@@ -4150,11 +5015,11 @@ class AuthApi:
4150
5015
  )
4151
5016
 
4152
5017
  # authentication setting
4153
- _auth_settings: List[str] = []
5018
+ _auth_settings: List[str] = ["HTTPBearer"]
4154
5019
 
4155
5020
  return self.api_client.param_serialize(
4156
- method="POST",
4157
- resource_path="/rotate-tokens",
5021
+ method="GET",
5022
+ resource_path="/token-info",
4158
5023
  path_params=_path_params,
4159
5024
  query_params=_query_params,
4160
5025
  header_params=_header_params,
@@ -4168,12 +5033,8 @@ class AuthApi:
4168
5033
  )
4169
5034
 
4170
5035
  @validate_call
4171
- def token_info(
5036
+ def verify(
4172
5037
  self,
4173
- x_refresh_token: Annotated[
4174
- Optional[StrictStr],
4175
- Field(description="The refresh token for rotating the access token."),
4176
- ] = None,
4177
5038
  _request_timeout: Union[
4178
5039
  None,
4179
5040
  Annotated[StrictFloat, Field(gt=0)],
@@ -4185,11 +5046,10 @@ class AuthApi:
4185
5046
  _content_type: Optional[StrictStr] = None,
4186
5047
  _headers: Optional[Dict[StrictStr, Any]] = None,
4187
5048
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4188
- ) -> TokenInfo200Response:
4189
- """Token info"""
5049
+ ) -> Verify200Response:
5050
+ """Verify Bearer Token"""
4190
5051
  if self.is_sync:
4191
- return self._token_info_sync(
4192
- x_refresh_token=x_refresh_token,
5052
+ return self._verify_sync(
4193
5053
  _request_timeout=_request_timeout,
4194
5054
  _request_auth=_request_auth,
4195
5055
  _content_type=_content_type,
@@ -4198,8 +5058,7 @@ class AuthApi:
4198
5058
  )
4199
5059
 
4200
5060
  else:
4201
- return self._token_info_async(
4202
- x_refresh_token=x_refresh_token,
5061
+ return self._verify_async(
4203
5062
  _request_timeout=_request_timeout,
4204
5063
  _request_auth=_request_auth,
4205
5064
  _content_type=_content_type,
@@ -4208,12 +5067,8 @@ class AuthApi:
4208
5067
  )
4209
5068
 
4210
5069
  @validate_call
4211
- def token_info_with_http_info(
5070
+ def verify_with_http_info(
4212
5071
  self,
4213
- x_refresh_token: Annotated[
4214
- Optional[StrictStr],
4215
- Field(description="The refresh token for rotating the access token."),
4216
- ] = None,
4217
5072
  _request_timeout: Union[
4218
5073
  None,
4219
5074
  Annotated[StrictFloat, Field(gt=0)],
@@ -4225,11 +5080,10 @@ class AuthApi:
4225
5080
  _content_type: Optional[StrictStr] = None,
4226
5081
  _headers: Optional[Dict[StrictStr, Any]] = None,
4227
5082
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4228
- ) -> ApiResponse[TokenInfo200Response]:
4229
- """Token info with HTTP info"""
5083
+ ) -> ApiResponse[Verify200Response]:
5084
+ """Verify Bearer Token with HTTP info"""
4230
5085
  if self.is_sync:
4231
- return self._token_info_sync_with_http_info(
4232
- x_refresh_token=x_refresh_token,
5086
+ return self._verify_sync_with_http_info(
4233
5087
  _request_timeout=_request_timeout,
4234
5088
  _request_auth=_request_auth,
4235
5089
  _content_type=_content_type,
@@ -4238,8 +5092,7 @@ class AuthApi:
4238
5092
  )
4239
5093
 
4240
5094
  else:
4241
- return self._token_info_async_with_http_info(
4242
- x_refresh_token=x_refresh_token,
5095
+ return self._verify_async_with_http_info(
4243
5096
  _request_timeout=_request_timeout,
4244
5097
  _request_auth=_request_auth,
4245
5098
  _content_type=_content_type,
@@ -4248,12 +5101,8 @@ class AuthApi:
4248
5101
  )
4249
5102
 
4250
5103
  @validate_call
4251
- def token_info_without_preload_content(
5104
+ def verify_without_preload_content(
4252
5105
  self,
4253
- x_refresh_token: Annotated[
4254
- Optional[StrictStr],
4255
- Field(description="The refresh token for rotating the access token."),
4256
- ] = None,
4257
5106
  _request_timeout: Union[
4258
5107
  None,
4259
5108
  Annotated[StrictFloat, Field(gt=0)],
@@ -4266,10 +5115,9 @@ class AuthApi:
4266
5115
  _headers: Optional[Dict[StrictStr, Any]] = None,
4267
5116
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4268
5117
  ) -> RESTResponseType:
4269
- """Token info without preloading content"""
5118
+ """Verify Bearer Token without preloading content"""
4270
5119
  if self.is_sync:
4271
- return self._token_info_sync_without_preload_content(
4272
- x_refresh_token=x_refresh_token,
5120
+ return self._verify_sync_without_preload_content(
4273
5121
  _request_timeout=_request_timeout,
4274
5122
  _request_auth=_request_auth,
4275
5123
  _content_type=_content_type,
@@ -4278,8 +5126,7 @@ class AuthApi:
4278
5126
  )
4279
5127
 
4280
5128
  else:
4281
- return self._token_info_async_without_preload_content(
4282
- x_refresh_token=x_refresh_token,
5129
+ return self._verify_async_without_preload_content(
4283
5130
  _request_timeout=_request_timeout,
4284
5131
  _request_auth=_request_auth,
4285
5132
  _content_type=_content_type,
@@ -4289,12 +5136,8 @@ class AuthApi:
4289
5136
 
4290
5137
  # Private async implementation methods
4291
5138
  @validate_call
4292
- async def _token_info_async(
5139
+ async def _verify_async(
4293
5140
  self,
4294
- x_refresh_token: Annotated[
4295
- Optional[StrictStr],
4296
- Field(description="The refresh token for rotating the access token."),
4297
- ] = None,
4298
5141
  _request_timeout: Union[
4299
5142
  None,
4300
5143
  Annotated[StrictFloat, Field(gt=0)],
@@ -4306,13 +5149,11 @@ class AuthApi:
4306
5149
  _content_type: Optional[StrictStr] = None,
4307
5150
  _headers: Optional[Dict[StrictStr, Any]] = None,
4308
5151
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4309
- ) -> TokenInfo200Response:
4310
- """Token info
5152
+ ) -> Verify200Response:
5153
+ """Verify Bearer Token
4311
5154
 
4312
- Returns the payload of the access token.
5155
+ Verifies the bearer token is valid.
4313
5156
 
4314
- :param x_refresh_token: The refresh token for rotating the access token.
4315
- :type x_refresh_token: str
4316
5157
  :param _request_timeout: timeout setting for this request. If one
4317
5158
  number provided, it will be total request
4318
5159
  timeout. It can also be a pair (tuple) of
@@ -4335,8 +5176,7 @@ class AuthApi:
4335
5176
  :return: Returns the result object.
4336
5177
  """ # noqa: E501
4337
5178
 
4338
- _param = self._token_info_serialize(
4339
- x_refresh_token=x_refresh_token,
5179
+ _param = self._verify_serialize(
4340
5180
  _request_auth=_request_auth,
4341
5181
  _content_type=_content_type,
4342
5182
  _headers=_headers,
@@ -4344,7 +5184,7 @@ class AuthApi:
4344
5184
  )
4345
5185
 
4346
5186
  _response_types_map: Dict[str, Optional[str]] = {
4347
- "200": "TokenInfo200Response",
5187
+ "200": "Verify200Response",
4348
5188
  }
4349
5189
  response_data = await self.api_client.call_api(
4350
5190
  *_param, _request_timeout=_request_timeout
@@ -4356,12 +5196,8 @@ class AuthApi:
4356
5196
  ).data
4357
5197
 
4358
5198
  @validate_call
4359
- async def _token_info_async_with_http_info(
5199
+ async def _verify_async_with_http_info(
4360
5200
  self,
4361
- x_refresh_token: Annotated[
4362
- Optional[StrictStr],
4363
- Field(description="The refresh token for rotating the access token."),
4364
- ] = None,
4365
5201
  _request_timeout: Union[
4366
5202
  None,
4367
5203
  Annotated[StrictFloat, Field(gt=0)],
@@ -4373,13 +5209,11 @@ class AuthApi:
4373
5209
  _content_type: Optional[StrictStr] = None,
4374
5210
  _headers: Optional[Dict[StrictStr, Any]] = None,
4375
5211
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4376
- ) -> ApiResponse[TokenInfo200Response]:
4377
- """Token info
5212
+ ) -> ApiResponse[Verify200Response]:
5213
+ """Verify Bearer Token
4378
5214
 
4379
- Returns the payload of the access token.
5215
+ Verifies the bearer token is valid.
4380
5216
 
4381
- :param x_refresh_token: The refresh token for rotating the access token.
4382
- :type x_refresh_token: str
4383
5217
  :param _request_timeout: timeout setting for this request. If one
4384
5218
  number provided, it will be total request
4385
5219
  timeout. It can also be a pair (tuple) of
@@ -4402,8 +5236,7 @@ class AuthApi:
4402
5236
  :return: Returns the result object.
4403
5237
  """ # noqa: E501
4404
5238
 
4405
- _param = self._token_info_serialize(
4406
- x_refresh_token=x_refresh_token,
5239
+ _param = self._verify_serialize(
4407
5240
  _request_auth=_request_auth,
4408
5241
  _content_type=_content_type,
4409
5242
  _headers=_headers,
@@ -4411,7 +5244,7 @@ class AuthApi:
4411
5244
  )
4412
5245
 
4413
5246
  _response_types_map: Dict[str, Optional[str]] = {
4414
- "200": "TokenInfo200Response",
5247
+ "200": "Verify200Response",
4415
5248
  }
4416
5249
  response_data = await self.api_client.call_api(
4417
5250
  *_param, _request_timeout=_request_timeout
@@ -4422,12 +5255,8 @@ class AuthApi:
4422
5255
  )
4423
5256
 
4424
5257
  @validate_call
4425
- async def _token_info_async_without_preload_content(
5258
+ async def _verify_async_without_preload_content(
4426
5259
  self,
4427
- x_refresh_token: Annotated[
4428
- Optional[StrictStr],
4429
- Field(description="The refresh token for rotating the access token."),
4430
- ] = None,
4431
5260
  _request_timeout: Union[
4432
5261
  None,
4433
5262
  Annotated[StrictFloat, Field(gt=0)],
@@ -4440,12 +5269,10 @@ class AuthApi:
4440
5269
  _headers: Optional[Dict[StrictStr, Any]] = None,
4441
5270
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4442
5271
  ) -> RESTResponseType:
4443
- """Token info
5272
+ """Verify Bearer Token
4444
5273
 
4445
- Returns the payload of the access token.
5274
+ Verifies the bearer token is valid.
4446
5275
 
4447
- :param x_refresh_token: The refresh token for rotating the access token.
4448
- :type x_refresh_token: str
4449
5276
  :param _request_timeout: timeout setting for this request. If one
4450
5277
  number provided, it will be total request
4451
5278
  timeout. It can also be a pair (tuple) of
@@ -4468,8 +5295,7 @@ class AuthApi:
4468
5295
  :return: Returns the result object.
4469
5296
  """ # noqa: E501
4470
5297
 
4471
- _param = self._token_info_serialize(
4472
- x_refresh_token=x_refresh_token,
5298
+ _param = self._verify_serialize(
4473
5299
  _request_auth=_request_auth,
4474
5300
  _content_type=_content_type,
4475
5301
  _headers=_headers,
@@ -4477,7 +5303,7 @@ class AuthApi:
4477
5303
  )
4478
5304
 
4479
5305
  _response_types_map: Dict[str, Optional[str]] = {
4480
- "200": "TokenInfo200Response",
5306
+ "200": "Verify200Response",
4481
5307
  }
4482
5308
  response_data = await self.api_client.call_api(
4483
5309
  *_param, _request_timeout=_request_timeout
@@ -4486,12 +5312,8 @@ class AuthApi:
4486
5312
 
4487
5313
  # Private sync implementation methods
4488
5314
  @validate_call
4489
- def _token_info_sync(
5315
+ def _verify_sync(
4490
5316
  self,
4491
- x_refresh_token: Annotated[
4492
- Optional[StrictStr],
4493
- Field(description="The refresh token for rotating the access token."),
4494
- ] = None,
4495
5317
  _request_timeout: Union[
4496
5318
  None,
4497
5319
  Annotated[StrictFloat, Field(gt=0)],
@@ -4503,10 +5325,9 @@ class AuthApi:
4503
5325
  _content_type: Optional[StrictStr] = None,
4504
5326
  _headers: Optional[Dict[StrictStr, Any]] = None,
4505
5327
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4506
- ) -> TokenInfo200Response:
4507
- """Synchronous version of token_info"""
4508
- return async_to_sync(self._token_info_async)(
4509
- x_refresh_token=x_refresh_token,
5328
+ ) -> Verify200Response:
5329
+ """Synchronous version of verify"""
5330
+ return async_to_sync(self._verify_async)(
4510
5331
  _request_timeout=_request_timeout,
4511
5332
  _request_auth=_request_auth,
4512
5333
  _content_type=_content_type,
@@ -4515,12 +5336,8 @@ class AuthApi:
4515
5336
  )
4516
5337
 
4517
5338
  @validate_call
4518
- def _token_info_sync_with_http_info(
5339
+ def _verify_sync_with_http_info(
4519
5340
  self,
4520
- x_refresh_token: Annotated[
4521
- Optional[StrictStr],
4522
- Field(description="The refresh token for rotating the access token."),
4523
- ] = None,
4524
5341
  _request_timeout: Union[
4525
5342
  None,
4526
5343
  Annotated[StrictFloat, Field(gt=0)],
@@ -4532,10 +5349,9 @@ class AuthApi:
4532
5349
  _content_type: Optional[StrictStr] = None,
4533
5350
  _headers: Optional[Dict[StrictStr, Any]] = None,
4534
5351
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4535
- ) -> ApiResponse[TokenInfo200Response]:
4536
- """Synchronous version of token_info_with_http_info"""
4537
- return async_to_sync(self._token_info_async_with_http_info)(
4538
- x_refresh_token=x_refresh_token,
5352
+ ) -> ApiResponse[Verify200Response]:
5353
+ """Synchronous version of verify_with_http_info"""
5354
+ return async_to_sync(self._verify_async_with_http_info)(
4539
5355
  _request_timeout=_request_timeout,
4540
5356
  _request_auth=_request_auth,
4541
5357
  _content_type=_content_type,
@@ -4544,12 +5360,8 @@ class AuthApi:
4544
5360
  )
4545
5361
 
4546
5362
  @validate_call
4547
- def _token_info_sync_without_preload_content(
5363
+ def _verify_sync_without_preload_content(
4548
5364
  self,
4549
- x_refresh_token: Annotated[
4550
- Optional[StrictStr],
4551
- Field(description="The refresh token for rotating the access token."),
4552
- ] = None,
4553
5365
  _request_timeout: Union[
4554
5366
  None,
4555
5367
  Annotated[StrictFloat, Field(gt=0)],
@@ -4562,9 +5374,8 @@ class AuthApi:
4562
5374
  _headers: Optional[Dict[StrictStr, Any]] = None,
4563
5375
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4564
5376
  ) -> RESTResponseType:
4565
- """Synchronous version of token_info_without_preload_content"""
4566
- return async_to_sync(self._token_info_async_without_preload_content)(
4567
- x_refresh_token=x_refresh_token,
5377
+ """Synchronous version of verify_without_preload_content"""
5378
+ return async_to_sync(self._verify_async_without_preload_content)(
4568
5379
  _request_timeout=_request_timeout,
4569
5380
  _request_auth=_request_auth,
4570
5381
  _content_type=_content_type,
@@ -4572,9 +5383,8 @@ class AuthApi:
4572
5383
  _host_index=_host_index,
4573
5384
  )
4574
5385
 
4575
- def _token_info_serialize(
5386
+ def _verify_serialize(
4576
5387
  self,
4577
- x_refresh_token,
4578
5388
  _request_auth,
4579
5389
  _content_type,
4580
5390
  _headers,
@@ -4597,8 +5407,6 @@ class AuthApi:
4597
5407
  # process the path parameters
4598
5408
  # process the query parameters
4599
5409
  # process the header parameters
4600
- if x_refresh_token is not None:
4601
- _header_params["X-Refresh-Token"] = x_refresh_token
4602
5410
  # process the form parameters
4603
5411
  # process the body parameter
4604
5412
 
@@ -4613,7 +5421,7 @@ class AuthApi:
4613
5421
 
4614
5422
  return self.api_client.param_serialize(
4615
5423
  method="GET",
4616
- resource_path="/token-info",
5424
+ resource_path="/verify",
4617
5425
  path_params=_path_params,
4618
5426
  query_params=_query_params,
4619
5427
  header_params=_header_params,
@@ -4627,8 +5435,9 @@ class AuthApi:
4627
5435
  )
4628
5436
 
4629
5437
  @validate_call
4630
- def verify(
5438
+ def verify_api_key(
4631
5439
  self,
5440
+ api_key: StrictStr,
4632
5441
  _request_timeout: Union[
4633
5442
  None,
4634
5443
  Annotated[StrictFloat, Field(gt=0)],
@@ -4641,9 +5450,10 @@ class AuthApi:
4641
5450
  _headers: Optional[Dict[StrictStr, Any]] = None,
4642
5451
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4643
5452
  ) -> Verify200Response:
4644
- """Verify Bearer Token"""
5453
+ """Verify API Key"""
4645
5454
  if self.is_sync:
4646
- return self._verify_sync(
5455
+ return self._verify_api_key_sync(
5456
+ api_key=api_key,
4647
5457
  _request_timeout=_request_timeout,
4648
5458
  _request_auth=_request_auth,
4649
5459
  _content_type=_content_type,
@@ -4652,7 +5462,8 @@ class AuthApi:
4652
5462
  )
4653
5463
 
4654
5464
  else:
4655
- return self._verify_async(
5465
+ return self._verify_api_key_async(
5466
+ api_key=api_key,
4656
5467
  _request_timeout=_request_timeout,
4657
5468
  _request_auth=_request_auth,
4658
5469
  _content_type=_content_type,
@@ -4661,8 +5472,9 @@ class AuthApi:
4661
5472
  )
4662
5473
 
4663
5474
  @validate_call
4664
- def verify_with_http_info(
5475
+ def verify_api_key_with_http_info(
4665
5476
  self,
5477
+ api_key: StrictStr,
4666
5478
  _request_timeout: Union[
4667
5479
  None,
4668
5480
  Annotated[StrictFloat, Field(gt=0)],
@@ -4675,9 +5487,10 @@ class AuthApi:
4675
5487
  _headers: Optional[Dict[StrictStr, Any]] = None,
4676
5488
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4677
5489
  ) -> ApiResponse[Verify200Response]:
4678
- """Verify Bearer Token with HTTP info"""
5490
+ """Verify API Key with HTTP info"""
4679
5491
  if self.is_sync:
4680
- return self._verify_sync_with_http_info(
5492
+ return self._verify_api_key_sync_with_http_info(
5493
+ api_key=api_key,
4681
5494
  _request_timeout=_request_timeout,
4682
5495
  _request_auth=_request_auth,
4683
5496
  _content_type=_content_type,
@@ -4686,7 +5499,8 @@ class AuthApi:
4686
5499
  )
4687
5500
 
4688
5501
  else:
4689
- return self._verify_async_with_http_info(
5502
+ return self._verify_api_key_async_with_http_info(
5503
+ api_key=api_key,
4690
5504
  _request_timeout=_request_timeout,
4691
5505
  _request_auth=_request_auth,
4692
5506
  _content_type=_content_type,
@@ -4695,8 +5509,9 @@ class AuthApi:
4695
5509
  )
4696
5510
 
4697
5511
  @validate_call
4698
- def verify_without_preload_content(
5512
+ def verify_api_key_without_preload_content(
4699
5513
  self,
5514
+ api_key: StrictStr,
4700
5515
  _request_timeout: Union[
4701
5516
  None,
4702
5517
  Annotated[StrictFloat, Field(gt=0)],
@@ -4709,9 +5524,10 @@ class AuthApi:
4709
5524
  _headers: Optional[Dict[StrictStr, Any]] = None,
4710
5525
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4711
5526
  ) -> RESTResponseType:
4712
- """Verify Bearer Token without preloading content"""
5527
+ """Verify API Key without preloading content"""
4713
5528
  if self.is_sync:
4714
- return self._verify_sync_without_preload_content(
5529
+ return self._verify_api_key_sync_without_preload_content(
5530
+ api_key=api_key,
4715
5531
  _request_timeout=_request_timeout,
4716
5532
  _request_auth=_request_auth,
4717
5533
  _content_type=_content_type,
@@ -4720,7 +5536,8 @@ class AuthApi:
4720
5536
  )
4721
5537
 
4722
5538
  else:
4723
- return self._verify_async_without_preload_content(
5539
+ return self._verify_api_key_async_without_preload_content(
5540
+ api_key=api_key,
4724
5541
  _request_timeout=_request_timeout,
4725
5542
  _request_auth=_request_auth,
4726
5543
  _content_type=_content_type,
@@ -4730,8 +5547,9 @@ class AuthApi:
4730
5547
 
4731
5548
  # Private async implementation methods
4732
5549
  @validate_call
4733
- async def _verify_async(
5550
+ async def _verify_api_key_async(
4734
5551
  self,
5552
+ api_key: StrictStr,
4735
5553
  _request_timeout: Union[
4736
5554
  None,
4737
5555
  Annotated[StrictFloat, Field(gt=0)],
@@ -4744,10 +5562,12 @@ class AuthApi:
4744
5562
  _headers: Optional[Dict[StrictStr, Any]] = None,
4745
5563
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4746
5564
  ) -> Verify200Response:
4747
- """Verify Bearer Token
5565
+ """Verify API Key
4748
5566
 
4749
- Verifies the bearer token is valid.
5567
+ Verifies the API key is valid.
4750
5568
 
5569
+ :param api_key: (required)
5570
+ :type api_key: str
4751
5571
  :param _request_timeout: timeout setting for this request. If one
4752
5572
  number provided, it will be total request
4753
5573
  timeout. It can also be a pair (tuple) of
@@ -4770,7 +5590,8 @@ class AuthApi:
4770
5590
  :return: Returns the result object.
4771
5591
  """ # noqa: E501
4772
5592
 
4773
- _param = self._verify_serialize(
5593
+ _param = self._verify_api_key_serialize(
5594
+ api_key=api_key,
4774
5595
  _request_auth=_request_auth,
4775
5596
  _content_type=_content_type,
4776
5597
  _headers=_headers,
@@ -4790,8 +5611,9 @@ class AuthApi:
4790
5611
  ).data
4791
5612
 
4792
5613
  @validate_call
4793
- async def _verify_async_with_http_info(
5614
+ async def _verify_api_key_async_with_http_info(
4794
5615
  self,
5616
+ api_key: StrictStr,
4795
5617
  _request_timeout: Union[
4796
5618
  None,
4797
5619
  Annotated[StrictFloat, Field(gt=0)],
@@ -4804,10 +5626,12 @@ class AuthApi:
4804
5626
  _headers: Optional[Dict[StrictStr, Any]] = None,
4805
5627
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4806
5628
  ) -> ApiResponse[Verify200Response]:
4807
- """Verify Bearer Token
5629
+ """Verify API Key
4808
5630
 
4809
- Verifies the bearer token is valid.
5631
+ Verifies the API key is valid.
4810
5632
 
5633
+ :param api_key: (required)
5634
+ :type api_key: str
4811
5635
  :param _request_timeout: timeout setting for this request. If one
4812
5636
  number provided, it will be total request
4813
5637
  timeout. It can also be a pair (tuple) of
@@ -4830,7 +5654,8 @@ class AuthApi:
4830
5654
  :return: Returns the result object.
4831
5655
  """ # noqa: E501
4832
5656
 
4833
- _param = self._verify_serialize(
5657
+ _param = self._verify_api_key_serialize(
5658
+ api_key=api_key,
4834
5659
  _request_auth=_request_auth,
4835
5660
  _content_type=_content_type,
4836
5661
  _headers=_headers,
@@ -4849,8 +5674,9 @@ class AuthApi:
4849
5674
  )
4850
5675
 
4851
5676
  @validate_call
4852
- async def _verify_async_without_preload_content(
5677
+ async def _verify_api_key_async_without_preload_content(
4853
5678
  self,
5679
+ api_key: StrictStr,
4854
5680
  _request_timeout: Union[
4855
5681
  None,
4856
5682
  Annotated[StrictFloat, Field(gt=0)],
@@ -4863,10 +5689,12 @@ class AuthApi:
4863
5689
  _headers: Optional[Dict[StrictStr, Any]] = None,
4864
5690
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4865
5691
  ) -> RESTResponseType:
4866
- """Verify Bearer Token
5692
+ """Verify API Key
4867
5693
 
4868
- Verifies the bearer token is valid.
5694
+ Verifies the API key is valid.
4869
5695
 
5696
+ :param api_key: (required)
5697
+ :type api_key: str
4870
5698
  :param _request_timeout: timeout setting for this request. If one
4871
5699
  number provided, it will be total request
4872
5700
  timeout. It can also be a pair (tuple) of
@@ -4889,7 +5717,8 @@ class AuthApi:
4889
5717
  :return: Returns the result object.
4890
5718
  """ # noqa: E501
4891
5719
 
4892
- _param = self._verify_serialize(
5720
+ _param = self._verify_api_key_serialize(
5721
+ api_key=api_key,
4893
5722
  _request_auth=_request_auth,
4894
5723
  _content_type=_content_type,
4895
5724
  _headers=_headers,
@@ -4906,8 +5735,9 @@ class AuthApi:
4906
5735
 
4907
5736
  # Private sync implementation methods
4908
5737
  @validate_call
4909
- def _verify_sync(
5738
+ def _verify_api_key_sync(
4910
5739
  self,
5740
+ api_key: StrictStr,
4911
5741
  _request_timeout: Union[
4912
5742
  None,
4913
5743
  Annotated[StrictFloat, Field(gt=0)],
@@ -4920,8 +5750,9 @@ class AuthApi:
4920
5750
  _headers: Optional[Dict[StrictStr, Any]] = None,
4921
5751
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4922
5752
  ) -> Verify200Response:
4923
- """Synchronous version of verify"""
4924
- return async_to_sync(self._verify_async)(
5753
+ """Synchronous version of verify_api_key"""
5754
+ return async_to_sync(self._verify_api_key_async)(
5755
+ api_key=api_key,
4925
5756
  _request_timeout=_request_timeout,
4926
5757
  _request_auth=_request_auth,
4927
5758
  _content_type=_content_type,
@@ -4930,8 +5761,9 @@ class AuthApi:
4930
5761
  )
4931
5762
 
4932
5763
  @validate_call
4933
- def _verify_sync_with_http_info(
5764
+ def _verify_api_key_sync_with_http_info(
4934
5765
  self,
5766
+ api_key: StrictStr,
4935
5767
  _request_timeout: Union[
4936
5768
  None,
4937
5769
  Annotated[StrictFloat, Field(gt=0)],
@@ -4944,8 +5776,9 @@ class AuthApi:
4944
5776
  _headers: Optional[Dict[StrictStr, Any]] = None,
4945
5777
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4946
5778
  ) -> ApiResponse[Verify200Response]:
4947
- """Synchronous version of verify_with_http_info"""
4948
- return async_to_sync(self._verify_async_with_http_info)(
5779
+ """Synchronous version of verify_api_key_with_http_info"""
5780
+ return async_to_sync(self._verify_api_key_async_with_http_info)(
5781
+ api_key=api_key,
4949
5782
  _request_timeout=_request_timeout,
4950
5783
  _request_auth=_request_auth,
4951
5784
  _content_type=_content_type,
@@ -4954,8 +5787,9 @@ class AuthApi:
4954
5787
  )
4955
5788
 
4956
5789
  @validate_call
4957
- def _verify_sync_without_preload_content(
5790
+ def _verify_api_key_sync_without_preload_content(
4958
5791
  self,
5792
+ api_key: StrictStr,
4959
5793
  _request_timeout: Union[
4960
5794
  None,
4961
5795
  Annotated[StrictFloat, Field(gt=0)],
@@ -4968,8 +5802,9 @@ class AuthApi:
4968
5802
  _headers: Optional[Dict[StrictStr, Any]] = None,
4969
5803
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4970
5804
  ) -> RESTResponseType:
4971
- """Synchronous version of verify_without_preload_content"""
4972
- return async_to_sync(self._verify_async_without_preload_content)(
5805
+ """Synchronous version of verify_api_key_without_preload_content"""
5806
+ return async_to_sync(self._verify_api_key_async_without_preload_content)(
5807
+ api_key=api_key,
4973
5808
  _request_timeout=_request_timeout,
4974
5809
  _request_auth=_request_auth,
4975
5810
  _content_type=_content_type,
@@ -4977,8 +5812,9 @@ class AuthApi:
4977
5812
  _host_index=_host_index,
4978
5813
  )
4979
5814
 
4980
- def _verify_serialize(
5815
+ def _verify_api_key_serialize(
4981
5816
  self,
5817
+ api_key,
4982
5818
  _request_auth,
4983
5819
  _content_type,
4984
5820
  _headers,
@@ -5000,6 +5836,10 @@ class AuthApi:
5000
5836
 
5001
5837
  # process the path parameters
5002
5838
  # process the query parameters
5839
+ if api_key is not None:
5840
+
5841
+ _query_params.append(("apiKey", api_key))
5842
+
5003
5843
  # process the header parameters
5004
5844
  # process the form parameters
5005
5845
  # process the body parameter
@@ -5011,11 +5851,11 @@ class AuthApi:
5011
5851
  )
5012
5852
 
5013
5853
  # authentication setting
5014
- _auth_settings: List[str] = ["HTTPBearer"]
5854
+ _auth_settings: List[str] = []
5015
5855
 
5016
5856
  return self.api_client.param_serialize(
5017
5857
  method="GET",
5018
- resource_path="/verify",
5858
+ resource_path="/verify-api-key",
5019
5859
  path_params=_path_params,
5020
5860
  query_params=_query_params,
5021
5861
  header_params=_header_params,
@@ -5029,9 +5869,10 @@ class AuthApi:
5029
5869
  )
5030
5870
 
5031
5871
  @validate_call
5032
- def verify_api_key(
5872
+ def verify_basic_auth(
5033
5873
  self,
5034
- api_key: StrictStr,
5874
+ username: StrictStr,
5875
+ password: StrictStr,
5035
5876
  _request_timeout: Union[
5036
5877
  None,
5037
5878
  Annotated[StrictFloat, Field(gt=0)],
@@ -5044,10 +5885,11 @@ class AuthApi:
5044
5885
  _headers: Optional[Dict[StrictStr, Any]] = None,
5045
5886
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5046
5887
  ) -> Verify200Response:
5047
- """Verify API Key"""
5888
+ """Verify Basic Auth"""
5048
5889
  if self.is_sync:
5049
- return self._verify_api_key_sync(
5050
- api_key=api_key,
5890
+ return self._verify_basic_auth_sync(
5891
+ username=username,
5892
+ password=password,
5051
5893
  _request_timeout=_request_timeout,
5052
5894
  _request_auth=_request_auth,
5053
5895
  _content_type=_content_type,
@@ -5056,8 +5898,9 @@ class AuthApi:
5056
5898
  )
5057
5899
 
5058
5900
  else:
5059
- return self._verify_api_key_async(
5060
- api_key=api_key,
5901
+ return self._verify_basic_auth_async(
5902
+ username=username,
5903
+ password=password,
5061
5904
  _request_timeout=_request_timeout,
5062
5905
  _request_auth=_request_auth,
5063
5906
  _content_type=_content_type,
@@ -5066,9 +5909,10 @@ class AuthApi:
5066
5909
  )
5067
5910
 
5068
5911
  @validate_call
5069
- def verify_api_key_with_http_info(
5912
+ def verify_basic_auth_with_http_info(
5070
5913
  self,
5071
- api_key: StrictStr,
5914
+ username: StrictStr,
5915
+ password: StrictStr,
5072
5916
  _request_timeout: Union[
5073
5917
  None,
5074
5918
  Annotated[StrictFloat, Field(gt=0)],
@@ -5081,10 +5925,11 @@ class AuthApi:
5081
5925
  _headers: Optional[Dict[StrictStr, Any]] = None,
5082
5926
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5083
5927
  ) -> ApiResponse[Verify200Response]:
5084
- """Verify API Key with HTTP info"""
5928
+ """Verify Basic Auth with HTTP info"""
5085
5929
  if self.is_sync:
5086
- return self._verify_api_key_sync_with_http_info(
5087
- api_key=api_key,
5930
+ return self._verify_basic_auth_sync_with_http_info(
5931
+ username=username,
5932
+ password=password,
5088
5933
  _request_timeout=_request_timeout,
5089
5934
  _request_auth=_request_auth,
5090
5935
  _content_type=_content_type,
@@ -5093,8 +5938,9 @@ class AuthApi:
5093
5938
  )
5094
5939
 
5095
5940
  else:
5096
- return self._verify_api_key_async_with_http_info(
5097
- api_key=api_key,
5941
+ return self._verify_basic_auth_async_with_http_info(
5942
+ username=username,
5943
+ password=password,
5098
5944
  _request_timeout=_request_timeout,
5099
5945
  _request_auth=_request_auth,
5100
5946
  _content_type=_content_type,
@@ -5103,9 +5949,10 @@ class AuthApi:
5103
5949
  )
5104
5950
 
5105
5951
  @validate_call
5106
- def verify_api_key_without_preload_content(
5952
+ def verify_basic_auth_without_preload_content(
5107
5953
  self,
5108
- api_key: StrictStr,
5954
+ username: StrictStr,
5955
+ password: StrictStr,
5109
5956
  _request_timeout: Union[
5110
5957
  None,
5111
5958
  Annotated[StrictFloat, Field(gt=0)],
@@ -5118,10 +5965,11 @@ class AuthApi:
5118
5965
  _headers: Optional[Dict[StrictStr, Any]] = None,
5119
5966
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5120
5967
  ) -> RESTResponseType:
5121
- """Verify API Key without preloading content"""
5968
+ """Verify Basic Auth without preloading content"""
5122
5969
  if self.is_sync:
5123
- return self._verify_api_key_sync_without_preload_content(
5124
- api_key=api_key,
5970
+ return self._verify_basic_auth_sync_without_preload_content(
5971
+ username=username,
5972
+ password=password,
5125
5973
  _request_timeout=_request_timeout,
5126
5974
  _request_auth=_request_auth,
5127
5975
  _content_type=_content_type,
@@ -5130,8 +5978,9 @@ class AuthApi:
5130
5978
  )
5131
5979
 
5132
5980
  else:
5133
- return self._verify_api_key_async_without_preload_content(
5134
- api_key=api_key,
5981
+ return self._verify_basic_auth_async_without_preload_content(
5982
+ username=username,
5983
+ password=password,
5135
5984
  _request_timeout=_request_timeout,
5136
5985
  _request_auth=_request_auth,
5137
5986
  _content_type=_content_type,
@@ -5141,9 +5990,10 @@ class AuthApi:
5141
5990
 
5142
5991
  # Private async implementation methods
5143
5992
  @validate_call
5144
- async def _verify_api_key_async(
5993
+ async def _verify_basic_auth_async(
5145
5994
  self,
5146
- api_key: StrictStr,
5995
+ username: StrictStr,
5996
+ password: StrictStr,
5147
5997
  _request_timeout: Union[
5148
5998
  None,
5149
5999
  Annotated[StrictFloat, Field(gt=0)],
@@ -5156,12 +6006,14 @@ class AuthApi:
5156
6006
  _headers: Optional[Dict[StrictStr, Any]] = None,
5157
6007
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5158
6008
  ) -> Verify200Response:
5159
- """Verify API Key
6009
+ """Verify Basic Auth
5160
6010
 
5161
- Verifies the API key is valid.
6011
+ Verifies the basic authentication credentials.
5162
6012
 
5163
- :param api_key: (required)
5164
- :type api_key: str
6013
+ :param username: (required)
6014
+ :type username: str
6015
+ :param password: (required)
6016
+ :type password: str
5165
6017
  :param _request_timeout: timeout setting for this request. If one
5166
6018
  number provided, it will be total request
5167
6019
  timeout. It can also be a pair (tuple) of
@@ -5184,8 +6036,9 @@ class AuthApi:
5184
6036
  :return: Returns the result object.
5185
6037
  """ # noqa: E501
5186
6038
 
5187
- _param = self._verify_api_key_serialize(
5188
- api_key=api_key,
6039
+ _param = self._verify_basic_auth_serialize(
6040
+ username=username,
6041
+ password=password,
5189
6042
  _request_auth=_request_auth,
5190
6043
  _content_type=_content_type,
5191
6044
  _headers=_headers,
@@ -5205,9 +6058,10 @@ class AuthApi:
5205
6058
  ).data
5206
6059
 
5207
6060
  @validate_call
5208
- async def _verify_api_key_async_with_http_info(
6061
+ async def _verify_basic_auth_async_with_http_info(
5209
6062
  self,
5210
- api_key: StrictStr,
6063
+ username: StrictStr,
6064
+ password: StrictStr,
5211
6065
  _request_timeout: Union[
5212
6066
  None,
5213
6067
  Annotated[StrictFloat, Field(gt=0)],
@@ -5220,12 +6074,14 @@ class AuthApi:
5220
6074
  _headers: Optional[Dict[StrictStr, Any]] = None,
5221
6075
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5222
6076
  ) -> ApiResponse[Verify200Response]:
5223
- """Verify API Key
6077
+ """Verify Basic Auth
5224
6078
 
5225
- Verifies the API key is valid.
6079
+ Verifies the basic authentication credentials.
5226
6080
 
5227
- :param api_key: (required)
5228
- :type api_key: str
6081
+ :param username: (required)
6082
+ :type username: str
6083
+ :param password: (required)
6084
+ :type password: str
5229
6085
  :param _request_timeout: timeout setting for this request. If one
5230
6086
  number provided, it will be total request
5231
6087
  timeout. It can also be a pair (tuple) of
@@ -5248,8 +6104,9 @@ class AuthApi:
5248
6104
  :return: Returns the result object.
5249
6105
  """ # noqa: E501
5250
6106
 
5251
- _param = self._verify_api_key_serialize(
5252
- api_key=api_key,
6107
+ _param = self._verify_basic_auth_serialize(
6108
+ username=username,
6109
+ password=password,
5253
6110
  _request_auth=_request_auth,
5254
6111
  _content_type=_content_type,
5255
6112
  _headers=_headers,
@@ -5268,9 +6125,10 @@ class AuthApi:
5268
6125
  )
5269
6126
 
5270
6127
  @validate_call
5271
- async def _verify_api_key_async_without_preload_content(
6128
+ async def _verify_basic_auth_async_without_preload_content(
5272
6129
  self,
5273
- api_key: StrictStr,
6130
+ username: StrictStr,
6131
+ password: StrictStr,
5274
6132
  _request_timeout: Union[
5275
6133
  None,
5276
6134
  Annotated[StrictFloat, Field(gt=0)],
@@ -5283,12 +6141,14 @@ class AuthApi:
5283
6141
  _headers: Optional[Dict[StrictStr, Any]] = None,
5284
6142
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5285
6143
  ) -> RESTResponseType:
5286
- """Verify API Key
6144
+ """Verify Basic Auth
5287
6145
 
5288
- Verifies the API key is valid.
6146
+ Verifies the basic authentication credentials.
5289
6147
 
5290
- :param api_key: (required)
5291
- :type api_key: str
6148
+ :param username: (required)
6149
+ :type username: str
6150
+ :param password: (required)
6151
+ :type password: str
5292
6152
  :param _request_timeout: timeout setting for this request. If one
5293
6153
  number provided, it will be total request
5294
6154
  timeout. It can also be a pair (tuple) of
@@ -5311,8 +6171,9 @@ class AuthApi:
5311
6171
  :return: Returns the result object.
5312
6172
  """ # noqa: E501
5313
6173
 
5314
- _param = self._verify_api_key_serialize(
5315
- api_key=api_key,
6174
+ _param = self._verify_basic_auth_serialize(
6175
+ username=username,
6176
+ password=password,
5316
6177
  _request_auth=_request_auth,
5317
6178
  _content_type=_content_type,
5318
6179
  _headers=_headers,
@@ -5329,9 +6190,10 @@ class AuthApi:
5329
6190
 
5330
6191
  # Private sync implementation methods
5331
6192
  @validate_call
5332
- def _verify_api_key_sync(
6193
+ def _verify_basic_auth_sync(
5333
6194
  self,
5334
- api_key: StrictStr,
6195
+ username: StrictStr,
6196
+ password: StrictStr,
5335
6197
  _request_timeout: Union[
5336
6198
  None,
5337
6199
  Annotated[StrictFloat, Field(gt=0)],
@@ -5344,9 +6206,10 @@ class AuthApi:
5344
6206
  _headers: Optional[Dict[StrictStr, Any]] = None,
5345
6207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5346
6208
  ) -> Verify200Response:
5347
- """Synchronous version of verify_api_key"""
5348
- return async_to_sync(self._verify_api_key_async)(
5349
- api_key=api_key,
6209
+ """Synchronous version of verify_basic_auth"""
6210
+ return async_to_sync(self._verify_basic_auth_async)(
6211
+ username=username,
6212
+ password=password,
5350
6213
  _request_timeout=_request_timeout,
5351
6214
  _request_auth=_request_auth,
5352
6215
  _content_type=_content_type,
@@ -5355,9 +6218,10 @@ class AuthApi:
5355
6218
  )
5356
6219
 
5357
6220
  @validate_call
5358
- def _verify_api_key_sync_with_http_info(
6221
+ def _verify_basic_auth_sync_with_http_info(
5359
6222
  self,
5360
- api_key: StrictStr,
6223
+ username: StrictStr,
6224
+ password: StrictStr,
5361
6225
  _request_timeout: Union[
5362
6226
  None,
5363
6227
  Annotated[StrictFloat, Field(gt=0)],
@@ -5370,9 +6234,10 @@ class AuthApi:
5370
6234
  _headers: Optional[Dict[StrictStr, Any]] = None,
5371
6235
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5372
6236
  ) -> ApiResponse[Verify200Response]:
5373
- """Synchronous version of verify_api_key_with_http_info"""
5374
- return async_to_sync(self._verify_api_key_async_with_http_info)(
5375
- api_key=api_key,
6237
+ """Synchronous version of verify_basic_auth_with_http_info"""
6238
+ return async_to_sync(self._verify_basic_auth_async_with_http_info)(
6239
+ username=username,
6240
+ password=password,
5376
6241
  _request_timeout=_request_timeout,
5377
6242
  _request_auth=_request_auth,
5378
6243
  _content_type=_content_type,
@@ -5381,9 +6246,10 @@ class AuthApi:
5381
6246
  )
5382
6247
 
5383
6248
  @validate_call
5384
- def _verify_api_key_sync_without_preload_content(
6249
+ def _verify_basic_auth_sync_without_preload_content(
5385
6250
  self,
5386
- api_key: StrictStr,
6251
+ username: StrictStr,
6252
+ password: StrictStr,
5387
6253
  _request_timeout: Union[
5388
6254
  None,
5389
6255
  Annotated[StrictFloat, Field(gt=0)],
@@ -5396,9 +6262,10 @@ class AuthApi:
5396
6262
  _headers: Optional[Dict[StrictStr, Any]] = None,
5397
6263
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5398
6264
  ) -> RESTResponseType:
5399
- """Synchronous version of verify_api_key_without_preload_content"""
5400
- return async_to_sync(self._verify_api_key_async_without_preload_content)(
5401
- api_key=api_key,
6265
+ """Synchronous version of verify_basic_auth_without_preload_content"""
6266
+ return async_to_sync(self._verify_basic_auth_async_without_preload_content)(
6267
+ username=username,
6268
+ password=password,
5402
6269
  _request_timeout=_request_timeout,
5403
6270
  _request_auth=_request_auth,
5404
6271
  _content_type=_content_type,
@@ -5406,9 +6273,10 @@ class AuthApi:
5406
6273
  _host_index=_host_index,
5407
6274
  )
5408
6275
 
5409
- def _verify_api_key_serialize(
6276
+ def _verify_basic_auth_serialize(
5410
6277
  self,
5411
- api_key,
6278
+ username,
6279
+ password,
5412
6280
  _request_auth,
5413
6281
  _content_type,
5414
6282
  _headers,
@@ -5430,9 +6298,13 @@ class AuthApi:
5430
6298
 
5431
6299
  # process the path parameters
5432
6300
  # process the query parameters
5433
- if api_key is not None:
6301
+ if username is not None:
5434
6302
 
5435
- _query_params.append(("apiKey", api_key))
6303
+ _query_params.append(("username", username))
6304
+
6305
+ if password is not None:
6306
+
6307
+ _query_params.append(("password", password))
5436
6308
 
5437
6309
  # process the header parameters
5438
6310
  # process the form parameters
@@ -5449,7 +6321,7 @@ class AuthApi:
5449
6321
 
5450
6322
  return self.api_client.param_serialize(
5451
6323
  method="GET",
5452
- resource_path="/verify-api-key",
6324
+ resource_path="/verify-basic-auth",
5453
6325
  path_params=_path_params,
5454
6326
  query_params=_query_params,
5455
6327
  header_params=_header_params,