|
24 | 24 | from lighter.models.accounts import Accounts |
25 | 25 | from lighter.models.detailed_accounts import DetailedAccounts |
26 | 26 | from lighter.models.fee_bucket import FeeBucket |
27 | | -from lighter.models.is_whitelisted import IsWhitelisted |
28 | 27 | from lighter.models.public_pools import PublicPools |
29 | 28 | from lighter.models.sub_accounts import SubAccounts |
30 | 29 |
|
@@ -906,7 +905,7 @@ async def apikeys( |
906 | 905 | ) -> AccountApiKeys: |
907 | 906 | """apikeys |
908 | 907 |
|
909 | | - Get account api key |
| 908 | + Get account api key. Set `api_key_index` to 255 to retrieve all api keys associated with the account. |
910 | 909 |
|
911 | 910 | :param account_index: (required) |
912 | 911 | :type account_index: int |
@@ -978,7 +977,7 @@ async def apikeys_with_http_info( |
978 | 977 | ) -> ApiResponse[AccountApiKeys]: |
979 | 978 | """apikeys |
980 | 979 |
|
981 | | - Get account api key |
| 980 | + Get account api key. Set `api_key_index` to 255 to retrieve all api keys associated with the account. |
982 | 981 |
|
983 | 982 | :param account_index: (required) |
984 | 983 | :type account_index: int |
@@ -1050,7 +1049,7 @@ async def apikeys_without_preload_content( |
1050 | 1049 | ) -> RESTResponseType: |
1051 | 1050 | """apikeys |
1052 | 1051 |
|
1053 | | - Get account api key |
| 1052 | + Get account api key. Set `api_key_index` to 255 to retrieve all api keys associated with the account. |
1054 | 1053 |
|
1055 | 1054 | :param account_index: (required) |
1056 | 1055 | :type account_index: int |
@@ -1429,269 +1428,6 @@ def _fee_bucket_serialize( |
1429 | 1428 |
|
1430 | 1429 |
|
1431 | 1430 |
|
1432 | | - @validate_call |
1433 | | - async def is_whitelisted( |
1434 | | - self, |
1435 | | - l1_address: StrictStr, |
1436 | | - _request_timeout: Union[ |
1437 | | - None, |
1438 | | - Annotated[StrictFloat, Field(gt=0)], |
1439 | | - Tuple[ |
1440 | | - Annotated[StrictFloat, Field(gt=0)], |
1441 | | - Annotated[StrictFloat, Field(gt=0)] |
1442 | | - ] |
1443 | | - ] = None, |
1444 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1445 | | - _content_type: Optional[StrictStr] = None, |
1446 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1447 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1448 | | - ) -> IsWhitelisted: |
1449 | | - """isWhitelisted |
1450 | | -
|
1451 | | - Get is account whitelisted |
1452 | | -
|
1453 | | - :param l1_address: (required) |
1454 | | - :type l1_address: str |
1455 | | - :param _request_timeout: timeout setting for this request. If one |
1456 | | - number provided, it will be total request |
1457 | | - timeout. It can also be a pair (tuple) of |
1458 | | - (connection, read) timeouts. |
1459 | | - :type _request_timeout: int, tuple(int, int), optional |
1460 | | - :param _request_auth: set to override the auth_settings for an a single |
1461 | | - request; this effectively ignores the |
1462 | | - authentication in the spec for a single request. |
1463 | | - :type _request_auth: dict, optional |
1464 | | - :param _content_type: force content-type for the request. |
1465 | | - :type _content_type: str, Optional |
1466 | | - :param _headers: set to override the headers for a single |
1467 | | - request; this effectively ignores the headers |
1468 | | - in the spec for a single request. |
1469 | | - :type _headers: dict, optional |
1470 | | - :param _host_index: set to override the host_index for a single |
1471 | | - request; this effectively ignores the host_index |
1472 | | - in the spec for a single request. |
1473 | | - :type _host_index: int, optional |
1474 | | - :return: Returns the result object. |
1475 | | - """ # noqa: E501 |
1476 | | - |
1477 | | - _param = self._is_whitelisted_serialize( |
1478 | | - l1_address=l1_address, |
1479 | | - _request_auth=_request_auth, |
1480 | | - _content_type=_content_type, |
1481 | | - _headers=_headers, |
1482 | | - _host_index=_host_index |
1483 | | - ) |
1484 | | - |
1485 | | - _response_types_map: Dict[str, Optional[str]] = { |
1486 | | - '200': "IsWhitelisted", |
1487 | | - '400': "ResultCode", |
1488 | | - } |
1489 | | - response_data = await self.api_client.call_api( |
1490 | | - *_param, |
1491 | | - _request_timeout=_request_timeout |
1492 | | - ) |
1493 | | - await response_data.read() |
1494 | | - return self.api_client.response_deserialize( |
1495 | | - response_data=response_data, |
1496 | | - response_types_map=_response_types_map, |
1497 | | - ).data |
1498 | | - |
1499 | | - |
1500 | | - @validate_call |
1501 | | - async def is_whitelisted_with_http_info( |
1502 | | - self, |
1503 | | - l1_address: StrictStr, |
1504 | | - _request_timeout: Union[ |
1505 | | - None, |
1506 | | - Annotated[StrictFloat, Field(gt=0)], |
1507 | | - Tuple[ |
1508 | | - Annotated[StrictFloat, Field(gt=0)], |
1509 | | - Annotated[StrictFloat, Field(gt=0)] |
1510 | | - ] |
1511 | | - ] = None, |
1512 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1513 | | - _content_type: Optional[StrictStr] = None, |
1514 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1515 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1516 | | - ) -> ApiResponse[IsWhitelisted]: |
1517 | | - """isWhitelisted |
1518 | | -
|
1519 | | - Get is account whitelisted |
1520 | | -
|
1521 | | - :param l1_address: (required) |
1522 | | - :type l1_address: str |
1523 | | - :param _request_timeout: timeout setting for this request. If one |
1524 | | - number provided, it will be total request |
1525 | | - timeout. It can also be a pair (tuple) of |
1526 | | - (connection, read) timeouts. |
1527 | | - :type _request_timeout: int, tuple(int, int), optional |
1528 | | - :param _request_auth: set to override the auth_settings for an a single |
1529 | | - request; this effectively ignores the |
1530 | | - authentication in the spec for a single request. |
1531 | | - :type _request_auth: dict, optional |
1532 | | - :param _content_type: force content-type for the request. |
1533 | | - :type _content_type: str, Optional |
1534 | | - :param _headers: set to override the headers for a single |
1535 | | - request; this effectively ignores the headers |
1536 | | - in the spec for a single request. |
1537 | | - :type _headers: dict, optional |
1538 | | - :param _host_index: set to override the host_index for a single |
1539 | | - request; this effectively ignores the host_index |
1540 | | - in the spec for a single request. |
1541 | | - :type _host_index: int, optional |
1542 | | - :return: Returns the result object. |
1543 | | - """ # noqa: E501 |
1544 | | - |
1545 | | - _param = self._is_whitelisted_serialize( |
1546 | | - l1_address=l1_address, |
1547 | | - _request_auth=_request_auth, |
1548 | | - _content_type=_content_type, |
1549 | | - _headers=_headers, |
1550 | | - _host_index=_host_index |
1551 | | - ) |
1552 | | - |
1553 | | - _response_types_map: Dict[str, Optional[str]] = { |
1554 | | - '200': "IsWhitelisted", |
1555 | | - '400': "ResultCode", |
1556 | | - } |
1557 | | - response_data = await self.api_client.call_api( |
1558 | | - *_param, |
1559 | | - _request_timeout=_request_timeout |
1560 | | - ) |
1561 | | - await response_data.read() |
1562 | | - return self.api_client.response_deserialize( |
1563 | | - response_data=response_data, |
1564 | | - response_types_map=_response_types_map, |
1565 | | - ) |
1566 | | - |
1567 | | - |
1568 | | - @validate_call |
1569 | | - async def is_whitelisted_without_preload_content( |
1570 | | - self, |
1571 | | - l1_address: StrictStr, |
1572 | | - _request_timeout: Union[ |
1573 | | - None, |
1574 | | - Annotated[StrictFloat, Field(gt=0)], |
1575 | | - Tuple[ |
1576 | | - Annotated[StrictFloat, Field(gt=0)], |
1577 | | - Annotated[StrictFloat, Field(gt=0)] |
1578 | | - ] |
1579 | | - ] = None, |
1580 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1581 | | - _content_type: Optional[StrictStr] = None, |
1582 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1583 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1584 | | - ) -> RESTResponseType: |
1585 | | - """isWhitelisted |
1586 | | -
|
1587 | | - Get is account whitelisted |
1588 | | -
|
1589 | | - :param l1_address: (required) |
1590 | | - :type l1_address: str |
1591 | | - :param _request_timeout: timeout setting for this request. If one |
1592 | | - number provided, it will be total request |
1593 | | - timeout. It can also be a pair (tuple) of |
1594 | | - (connection, read) timeouts. |
1595 | | - :type _request_timeout: int, tuple(int, int), optional |
1596 | | - :param _request_auth: set to override the auth_settings for an a single |
1597 | | - request; this effectively ignores the |
1598 | | - authentication in the spec for a single request. |
1599 | | - :type _request_auth: dict, optional |
1600 | | - :param _content_type: force content-type for the request. |
1601 | | - :type _content_type: str, Optional |
1602 | | - :param _headers: set to override the headers for a single |
1603 | | - request; this effectively ignores the headers |
1604 | | - in the spec for a single request. |
1605 | | - :type _headers: dict, optional |
1606 | | - :param _host_index: set to override the host_index for a single |
1607 | | - request; this effectively ignores the host_index |
1608 | | - in the spec for a single request. |
1609 | | - :type _host_index: int, optional |
1610 | | - :return: Returns the result object. |
1611 | | - """ # noqa: E501 |
1612 | | - |
1613 | | - _param = self._is_whitelisted_serialize( |
1614 | | - l1_address=l1_address, |
1615 | | - _request_auth=_request_auth, |
1616 | | - _content_type=_content_type, |
1617 | | - _headers=_headers, |
1618 | | - _host_index=_host_index |
1619 | | - ) |
1620 | | - |
1621 | | - _response_types_map: Dict[str, Optional[str]] = { |
1622 | | - '200': "IsWhitelisted", |
1623 | | - '400': "ResultCode", |
1624 | | - } |
1625 | | - response_data = await self.api_client.call_api( |
1626 | | - *_param, |
1627 | | - _request_timeout=_request_timeout |
1628 | | - ) |
1629 | | - return response_data.response |
1630 | | - |
1631 | | - |
1632 | | - def _is_whitelisted_serialize( |
1633 | | - self, |
1634 | | - l1_address, |
1635 | | - _request_auth, |
1636 | | - _content_type, |
1637 | | - _headers, |
1638 | | - _host_index, |
1639 | | - ) -> RequestSerialized: |
1640 | | - |
1641 | | - _host = None |
1642 | | - |
1643 | | - _collection_formats: Dict[str, str] = { |
1644 | | - } |
1645 | | - |
1646 | | - _path_params: Dict[str, str] = {} |
1647 | | - _query_params: List[Tuple[str, str]] = [] |
1648 | | - _header_params: Dict[str, Optional[str]] = _headers or {} |
1649 | | - _form_params: List[Tuple[str, str]] = [] |
1650 | | - _files: Dict[str, Union[str, bytes]] = {} |
1651 | | - _body_params: Optional[bytes] = None |
1652 | | - |
1653 | | - # process the path parameters |
1654 | | - # process the query parameters |
1655 | | - if l1_address is not None: |
1656 | | - |
1657 | | - _query_params.append(('l1_address', l1_address)) |
1658 | | - |
1659 | | - # process the header parameters |
1660 | | - # process the form parameters |
1661 | | - # process the body parameter |
1662 | | - |
1663 | | - |
1664 | | - # set the HTTP header `Accept` |
1665 | | - if 'Accept' not in _header_params: |
1666 | | - _header_params['Accept'] = self.api_client.select_header_accept( |
1667 | | - [ |
1668 | | - 'application/json' |
1669 | | - ] |
1670 | | - ) |
1671 | | - |
1672 | | - |
1673 | | - # authentication setting |
1674 | | - _auth_settings: List[str] = [ |
1675 | | - ] |
1676 | | - |
1677 | | - return self.api_client.param_serialize( |
1678 | | - method='GET', |
1679 | | - resource_path='/api/v1/isWhitelisted', |
1680 | | - path_params=_path_params, |
1681 | | - query_params=_query_params, |
1682 | | - header_params=_header_params, |
1683 | | - body=_body_params, |
1684 | | - post_params=_form_params, |
1685 | | - files=_files, |
1686 | | - auth_settings=_auth_settings, |
1687 | | - collection_formats=_collection_formats, |
1688 | | - _host=_host, |
1689 | | - _request_auth=_request_auth |
1690 | | - ) |
1691 | | - |
1692 | | - |
1693 | | - |
1694 | | - |
1695 | 1431 | @validate_call |
1696 | 1432 | async def pnl( |
1697 | 1433 | self, |
|
0 commit comments