# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .user_id import UserId
from .user_id import UserId
from .user_id import UserId
from .user_id import UserId


class P2DriveFilePermissionMemberAppliedV1Data(object):
    _types = {
        "file_type": str,
        "file_token": str,
        "operator_id": UserId,
        "approver_id": UserId,
        "application_user_list": List[UserId],
        "application_chat_list": List[str],
        "application_department_list": List[str],
        "application_remark": str,
        "permission": str,
        "subscriber_ids": List[UserId],
    }

    def __init__(self, d=None):
        self.file_type: Optional[str] = None
        self.file_token: Optional[str] = None
        self.operator_id: Optional[UserId] = None
        self.approver_id: Optional[UserId] = None
        self.application_user_list: Optional[List[UserId]] = None
        self.application_chat_list: Optional[List[str]] = None
        self.application_department_list: Optional[List[str]] = None
        self.application_remark: Optional[str] = None
        self.permission: Optional[str] = None
        self.subscriber_ids: Optional[List[UserId]] = None
        init(self, d, self._types)


class P2DriveFilePermissionMemberAppliedV1(EventContext):
    _types = {
        "event": P2DriveFilePermissionMemberAppliedV1Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2DriveFilePermissionMemberAppliedV1Data] = None
        init(self, d, self._types)
