hyperstack-async 1.56.9a0__py3-none-any.whl → 1.57.8a0__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.
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "v1.56.9-alpha"
17
+ __version__ = "v1.57.8-alpha"
18
18
 
19
19
  # import apis into sdk package
20
20
  from .api.access_keys_api import AccessKeysApi
@@ -313,6 +313,258 @@ class AuthApi:
313
313
 
314
314
 
315
315
 
316
+ @validate_call
317
+ async def check_access_token_status(
318
+ self,
319
+ _request_timeout: Union[
320
+ None,
321
+ Annotated[StrictFloat, Field(gt=0)],
322
+ Tuple[
323
+ Annotated[StrictFloat, Field(gt=0)],
324
+ Annotated[StrictFloat, Field(gt=0)]
325
+ ]
326
+ ] = None,
327
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
328
+ _content_type: Optional[StrictStr] = None,
329
+ _headers: Optional[Dict[StrictStr, Any]] = None,
330
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
331
+ ) -> None:
332
+ """Check the authenticated access token
333
+
334
+ Returns active=true when the token is accepted, otherwise 401 with error_reason `token_revoked` (logged out, or issued before a password change / MFA disable / admin revoke) or `unauthorized` (expired, invalid, from another environment, or the user no longer exists). Only Bearer access tokens are accepted; API keys are rejected.
335
+
336
+ :param _request_timeout: timeout setting for this request. If one
337
+ number provided, it will be total request
338
+ timeout. It can also be a pair (tuple) of
339
+ (connection, read) timeouts.
340
+ :type _request_timeout: int, tuple(int, int), optional
341
+ :param _request_auth: set to override the auth_settings for an a single
342
+ request; this effectively ignores the
343
+ authentication in the spec for a single request.
344
+ :type _request_auth: dict, optional
345
+ :param _content_type: force content-type for the request.
346
+ :type _content_type: str, Optional
347
+ :param _headers: set to override the headers for a single
348
+ request; this effectively ignores the headers
349
+ in the spec for a single request.
350
+ :type _headers: dict, optional
351
+ :param _host_index: set to override the host_index for a single
352
+ request; this effectively ignores the host_index
353
+ in the spec for a single request.
354
+ :type _host_index: int, optional
355
+ :return: Returns the result object.
356
+ """ # noqa: E501
357
+
358
+ _param = self._check_access_token_status_serialize(
359
+ _request_auth=_request_auth,
360
+ _content_type=_content_type,
361
+ _headers=_headers,
362
+ _host_index=_host_index
363
+ )
364
+
365
+ _response_types_map: Dict[str, Optional[str]] = {
366
+ '200': None,
367
+ '401': "ErrorResponseModel",
368
+ '500': None,
369
+ }
370
+ response_data = await self.api_client.call_api(
371
+ *_param,
372
+ _request_timeout=_request_timeout
373
+ )
374
+ await response_data.read()
375
+ return self.api_client.response_deserialize(
376
+ response_data=response_data,
377
+ response_types_map=_response_types_map,
378
+ ).data
379
+
380
+
381
+ @validate_call
382
+ async def check_access_token_status_with_http_info(
383
+ self,
384
+ _request_timeout: Union[
385
+ None,
386
+ Annotated[StrictFloat, Field(gt=0)],
387
+ Tuple[
388
+ Annotated[StrictFloat, Field(gt=0)],
389
+ Annotated[StrictFloat, Field(gt=0)]
390
+ ]
391
+ ] = None,
392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
393
+ _content_type: Optional[StrictStr] = None,
394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
396
+ ) -> ApiResponse[None]:
397
+ """Check the authenticated access token
398
+
399
+ Returns active=true when the token is accepted, otherwise 401 with error_reason `token_revoked` (logged out, or issued before a password change / MFA disable / admin revoke) or `unauthorized` (expired, invalid, from another environment, or the user no longer exists). Only Bearer access tokens are accepted; API keys are rejected.
400
+
401
+ :param _request_timeout: timeout setting for this request. If one
402
+ number provided, it will be total request
403
+ timeout. It can also be a pair (tuple) of
404
+ (connection, read) timeouts.
405
+ :type _request_timeout: int, tuple(int, int), optional
406
+ :param _request_auth: set to override the auth_settings for an a single
407
+ request; this effectively ignores the
408
+ authentication in the spec for a single request.
409
+ :type _request_auth: dict, optional
410
+ :param _content_type: force content-type for the request.
411
+ :type _content_type: str, Optional
412
+ :param _headers: set to override the headers for a single
413
+ request; this effectively ignores the headers
414
+ in the spec for a single request.
415
+ :type _headers: dict, optional
416
+ :param _host_index: set to override the host_index for a single
417
+ request; this effectively ignores the host_index
418
+ in the spec for a single request.
419
+ :type _host_index: int, optional
420
+ :return: Returns the result object.
421
+ """ # noqa: E501
422
+
423
+ _param = self._check_access_token_status_serialize(
424
+ _request_auth=_request_auth,
425
+ _content_type=_content_type,
426
+ _headers=_headers,
427
+ _host_index=_host_index
428
+ )
429
+
430
+ _response_types_map: Dict[str, Optional[str]] = {
431
+ '200': None,
432
+ '401': "ErrorResponseModel",
433
+ '500': None,
434
+ }
435
+ response_data = await self.api_client.call_api(
436
+ *_param,
437
+ _request_timeout=_request_timeout
438
+ )
439
+ await response_data.read()
440
+ return self.api_client.response_deserialize(
441
+ response_data=response_data,
442
+ response_types_map=_response_types_map,
443
+ )
444
+
445
+
446
+ @validate_call
447
+ async def check_access_token_status_without_preload_content(
448
+ self,
449
+ _request_timeout: Union[
450
+ None,
451
+ Annotated[StrictFloat, Field(gt=0)],
452
+ Tuple[
453
+ Annotated[StrictFloat, Field(gt=0)],
454
+ Annotated[StrictFloat, Field(gt=0)]
455
+ ]
456
+ ] = None,
457
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
458
+ _content_type: Optional[StrictStr] = None,
459
+ _headers: Optional[Dict[StrictStr, Any]] = None,
460
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
461
+ ) -> RESTResponseType:
462
+ """Check the authenticated access token
463
+
464
+ Returns active=true when the token is accepted, otherwise 401 with error_reason `token_revoked` (logged out, or issued before a password change / MFA disable / admin revoke) or `unauthorized` (expired, invalid, from another environment, or the user no longer exists). Only Bearer access tokens are accepted; API keys are rejected.
465
+
466
+ :param _request_timeout: timeout setting for this request. If one
467
+ number provided, it will be total request
468
+ timeout. It can also be a pair (tuple) of
469
+ (connection, read) timeouts.
470
+ :type _request_timeout: int, tuple(int, int), optional
471
+ :param _request_auth: set to override the auth_settings for an a single
472
+ request; this effectively ignores the
473
+ authentication in the spec for a single request.
474
+ :type _request_auth: dict, optional
475
+ :param _content_type: force content-type for the request.
476
+ :type _content_type: str, Optional
477
+ :param _headers: set to override the headers for a single
478
+ request; this effectively ignores the headers
479
+ in the spec for a single request.
480
+ :type _headers: dict, optional
481
+ :param _host_index: set to override the host_index for a single
482
+ request; this effectively ignores the host_index
483
+ in the spec for a single request.
484
+ :type _host_index: int, optional
485
+ :return: Returns the result object.
486
+ """ # noqa: E501
487
+
488
+ _param = self._check_access_token_status_serialize(
489
+ _request_auth=_request_auth,
490
+ _content_type=_content_type,
491
+ _headers=_headers,
492
+ _host_index=_host_index
493
+ )
494
+
495
+ _response_types_map: Dict[str, Optional[str]] = {
496
+ '200': None,
497
+ '401': "ErrorResponseModel",
498
+ '500': None,
499
+ }
500
+ response_data = await self.api_client.call_api(
501
+ *_param,
502
+ _request_timeout=_request_timeout
503
+ )
504
+ return response_data.response
505
+
506
+
507
+ def _check_access_token_status_serialize(
508
+ self,
509
+ _request_auth,
510
+ _content_type,
511
+ _headers,
512
+ _host_index,
513
+ ) -> RequestSerialized:
514
+
515
+ _host = None
516
+
517
+ _collection_formats: Dict[str, str] = {
518
+ }
519
+
520
+ _path_params: Dict[str, str] = {}
521
+ _query_params: List[Tuple[str, str]] = []
522
+ _header_params: Dict[str, Optional[str]] = _headers or {}
523
+ _form_params: List[Tuple[str, str]] = []
524
+ _files: Dict[
525
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
526
+ ] = {}
527
+ _body_params: Optional[bytes] = None
528
+
529
+ # process the path parameters
530
+ # process the query parameters
531
+ # process the header parameters
532
+ # process the form parameters
533
+ # process the body parameter
534
+
535
+
536
+ # set the HTTP header `Accept`
537
+ if 'Accept' not in _header_params:
538
+ _header_params['Accept'] = self.api_client.select_header_accept(
539
+ [
540
+ 'application/json'
541
+ ]
542
+ )
543
+
544
+
545
+ # authentication setting
546
+ _auth_settings: List[str] = [
547
+ 'apiKey'
548
+ ]
549
+
550
+ return self.api_client.param_serialize(
551
+ method='GET',
552
+ resource_path='/auth/token/status',
553
+ path_params=_path_params,
554
+ query_params=_query_params,
555
+ header_params=_header_params,
556
+ body=_body_params,
557
+ post_params=_form_params,
558
+ files=_files,
559
+ auth_settings=_auth_settings,
560
+ collection_formats=_collection_formats,
561
+ _host=_host,
562
+ _request_auth=_request_auth
563
+ )
564
+
565
+
566
+
567
+
316
568
  @validate_call
317
569
  async def get_user_mfa_status(
318
570
  self,
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'hyperstack-python-sdk-async/v1.56.9-alpha'
93
+ self.user_agent = 'hyperstack-python-sdk-async/v1.57.8-alpha'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  async def __aenter__(self):
@@ -520,7 +520,7 @@ conf = hyperstack_async.Configuration(
520
520
  "OS: {env}\n"\
521
521
  "Python Version: {pyversion}\n"\
522
522
  "Version of the API: 1.0\n"\
523
- "SDK Package Version: v1.56.9-alpha".\
523
+ "SDK Package Version: v1.57.8-alpha".\
524
524
  format(env=sys.platform, pyversion=sys.version)
525
525
 
526
526
  def get_host_settings(self) -> List[HostSetting]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperstack-async
3
- Version: 1.56.9a0
3
+ Version: 1.57.8a0
4
4
  Summary: Infrahub-API
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,8 +1,8 @@
1
- hyperstack_async/__init__.py,sha256=3-RHfCltBbY7r7NUOsNp67XbQyvX63kPBJe7O5dibXE,27982
1
+ hyperstack_async/__init__.py,sha256=VF3QXdeoR-Uy1oRRhnV8klKdz-MQYWyuqmpZk835oUQ,27982
2
2
  hyperstack_async/_user_agent.py,sha256=0PuKz9Id4hvep2S4Q71hpNmxM7sdwSPgfcRCK3LxS3o,3343
3
- hyperstack_async/api_client.py,sha256=eGjqXxLbedI5jt4uFwWnHGJhRbVYzChdEUqg2ZTOfeQ,27963
3
+ hyperstack_async/api_client.py,sha256=hX7hcc3KLyubVGVnAAiK55_b8j7zOc1ZAWa4tsJPIW4,27963
4
4
  hyperstack_async/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
5
- hyperstack_async/configuration.py,sha256=GnslsXA_soYOqh1PmGN_CqijKfIiueyaHgLhaJROXpA,18532
5
+ hyperstack_async/configuration.py,sha256=6B-59DDt0WW2JbBDeF7-Wn79u404fExPmnp2dnE9iIw,18532
6
6
  hyperstack_async/exceptions.py,sha256=WNUju20ADFYpDuZnq5o9FKSoa9N5nsCkMPNaK_VUrNM,6230
7
7
  hyperstack_async/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  hyperstack_async/rest.py,sha256=vDpLbnCnS7N7cAzvq1AqgKHpl3sDaG0jJgIZWnMThXY,7364
@@ -11,7 +11,7 @@ hyperstack_async/api/access_keys_api.py,sha256=AhKAjlELTnqfplh2aPgKKOrDklDwJelWm
11
11
  hyperstack_async/api/alive_api.py,sha256=iLo7sz5ptZ8umqZwU83O3-NkwoawWwItDU7GyGKtJSY,19699
12
12
  hyperstack_async/api/api_key_api.py,sha256=GBmQelo6yGwSHlYb-cyO8-9Xu_QPKp7xcSJzK6W13vA,45562
13
13
  hyperstack_async/api/assigning_member_role_api.py,sha256=JyFdgRLheTMtoOrSzAOX77QelFGt5AtBe7Py7KUvAWA,24959
14
- hyperstack_async/api/auth_api.py,sha256=JXZXTezimJVJfCTPjbp-Q_DS8hPhwXA5_jIEJgDVYCo,42877
14
+ hyperstack_async/api/auth_api.py,sha256=RPlqQ_5Gbu4amU4LMacnbcyTV52LHtF1oYosV-d-_b0,53362
15
15
  hyperstack_async/api/auto_topup_api.py,sha256=r-IEmI-6gGX4H1Yy5YI7ItOeOfsATKSN_rbBiCoNqOY,54090
16
16
  hyperstack_async/api/beta_access_api.py,sha256=EddWA5D3nJMwxHuuTP3Kwlrd1G7zq99IU-e9IVFuhhE,33114
17
17
  hyperstack_async/api/billing_api.py,sha256=i50ATAdXHIsEHCVicZm6GemLG9UAcBaDAW1mYMbXaSs,542214
@@ -400,7 +400,7 @@ hyperstack_async/models/voucher.py,sha256=NcAC56VXmouQwlF3oBGOgRVDJYm63-VntGrCfX
400
400
  hyperstack_async/models/voucher_redeem_response_schema.py,sha256=r1vtGZVvOxEHneq4d7SoaN6R-dRXyYcW2_FIVQuehDQ,3995
401
401
  hyperstack_async/models/workload_billing_history_response.py,sha256=CQU9wAz_X8zmhy0T2rJnQA3Zal3TcXFUbwcXMPoBmkE,4139
402
402
  hyperstack_async/models/zendesk_messaging_token.py,sha256=qLhCPjXLLPg5SOXZ-rOTJGI78193tgSEocnMO_VCZHA,3683
403
- hyperstack_async-1.56.9a0.dist-info/METADATA,sha256=t24mGm2iopZLufqO7HU4ZxyZV_-eZgzZtx7QVBz2sFo,990
404
- hyperstack_async-1.56.9a0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
405
- hyperstack_async-1.56.9a0.dist-info/top_level.txt,sha256=1O1xRJNDA_kLEifSDNFJCZaw6QoWCHO0s5xRD_Xyf1A,17
406
- hyperstack_async-1.56.9a0.dist-info/RECORD,,
403
+ hyperstack_async-1.57.8a0.dist-info/METADATA,sha256=Od8PzA1W8cYjxk7HM2z9LD9TBAtJqBjwDxUcAncv3Yc,990
404
+ hyperstack_async-1.57.8a0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
405
+ hyperstack_async-1.57.8a0.dist-info/top_level.txt,sha256=1O1xRJNDA_kLEifSDNFJCZaw6QoWCHO0s5xRD_Xyf1A,17
406
+ hyperstack_async-1.57.8a0.dist-info/RECORD,,