# Code generated by lark_sdk_gen. DO NOT EDIT.

from pylark.lark_request import RawRequestReq, _new_method_option
import attr
import typing
import io


@attr.s
class GetJssdkTicketReq(object):
    pass


@attr.s
class GetJssdkTicketResp(object):
    expire_in: int = attr.ib(
        default=0, metadata={"req_type": "json"}
    )  # `jsapi_ticket 的有效时间`
    ticket: str = attr.ib(default="", metadata={"req_type": "json"})  # `jsapi_ticket`


def _gen_get_jssdk_ticket_req(request, options) -> RawRequestReq:
    return RawRequestReq(
        dataclass=GetJssdkTicketResp,
        scope="Jssdk",
        api="GetJssdkTicket",
        method="POST",
        url="https://open.feishu.cn/open-apis/jssdk/ticket/get",
        body=request,
        method_option=_new_method_option(options),
        need_app_access_token=True,
        need_user_access_token=True,
    )
