# Code generated by lark_sdk_gen. DO NOT EDIT.

import typing

from pylark.api_service_auth_tenant_access_token_get import (
    GetTenantAccessTokenReq,
    TokenExpire,
    _get_tenant_access_token,
)
from pylark.lark_request import Response

if typing.TYPE_CHECKING:
    from lark import Lark


class LarkAuthService(object):
    cli: "Lark"

    def __init__(self, cli: "Lark"):
        self.cli = cli

    def get_tenant_access_token(self) -> tuple[TokenExpire, Response]:
        return _get_tenant_access_token(
            cli=self.cli,
            is_isv=False,
            app_id=self.cli.app_id,
            app_secret=self.cli.app_secret,
            tenant_key="",
        )
