diff --git a/aa.md b/aa.md index 65f24a7..e69de29 100644 --- a/aa.md +++ b/aa.md @@ -1 +0,0 @@ -
不可选择字段为系统默认导出字段,不可修改;自定义设置保存后,将记录保存字段结果,并支持修改。
\ No newline at end of file diff --git a/libs/dingtalk/api.json b/libs/dingtalk/api.json new file mode 100644 index 0000000..c34cff4 --- /dev/null +++ b/libs/dingtalk/api.json @@ -0,0 +1,511 @@ +{ + "schema_version": 1, + "sdk_id": "dingtalk_sdk", + "version": "0.1.2", + "modules": { + "dingtalk_sdk": { + "exports": [ + "AccessToken", + "AiTable", + "ApiError", + "AuthError", + "CancelledError", + "ConfigError", + "DingTalkError", + "DingTalkRobot", + "Dws", + "DwsError", + "NetworkError", + "Robot", + "RobotAccount", + "Settings", + "aitable", + "auth", + "build_sign", + "build_url", + "coerce_for_fields", + "collect_report", + "compose_batch_messages", + "config", + "dws", + "errors", + "flatten", + "get_settings", + "http", + "invalidate_token", + "load_env_files", + "markdown_image", + "media", + "ms_to_str", + "norm", + "parse_period", + "push_dws", + "push_robot", + "report", + "resolve_base", + "robot", + "split_by_chars", + "to_base_id", + "to_ms", + "token", + "upload_media", + "__version__" + ], + "all": [ + "AccessToken", + "AiTable", + "ApiError", + "AuthError", + "CancelledError", + "ConfigError", + "DingTalkError", + "DingTalkRobot", + "Dws", + "DwsError", + "NetworkError", + "Robot", + "RobotAccount", + "Settings", + "aitable", + "auth", + "build_sign", + "build_url", + "coerce_for_fields", + "collect_report", + "compose_batch_messages", + "config", + "dws", + "errors", + "flatten", + "get_settings", + "http", + "invalidate_token", + "load_env_files", + "markdown_image", + "media", + "ms_to_str", + "norm", + "parse_period", + "push_dws", + "push_robot", + "report", + "resolve_base", + "robot", + "split_by_chars", + "to_base_id", + "to_ms", + "token", + "upload_media", + "__version__" + ], + "signatures": { + "AccessToken": "(kind: 'str' = 'v1', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None) -> 'None'", + "AiTable": "(operator: 'str' = '', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "ApiError": "(message: 'str', code: 'str' = '', errmsg: 'str' = '', payload=None)", + "DingTalkRobot": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "Dws": "(bin: 'str' = '', rate_limit: 'Optional[int]' = None, rate_window: 'Optional[float]' = None, record_dir: 'str' = '', timeout: 'Optional[float]' = None, task_wait: 'Optional[float]' = None, task_poll: 'Optional[float]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "DwsError": "(message: 'str', code: 'str' = '')", + "Robot": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "RobotAccount": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '37du 任务调度平台') -> None", + "Settings": "(app_key: 'str' = '', app_secret: 'str' = '', operator: 'str' = '', dws_bin: 'str' = '', timeout: 'float' = 30.0, retries: 'int' = 3, rate_limit: 'int' = 50, rate_window: 'float' = 60.0, default_env: 'str' = 'prod', robots: 'Dict[str, RobotAccount]' = , base_aliases: 'Dict[str, str]' = ) -> None", + "build_sign": "(secret: 'str', timestamp_ms: 'Union[int, str]') -> 'str'", + "build_url": "(webhook: 'str', secret: 'str' = '') -> 'str'", + "coerce_for_fields": "(meta: 'dict', data: 'dict') -> 'dict'", + "collect_report": "(month: 'str' = '', week: 'Optional[str]' = None, base: 'str' = 'workplan', sheet: 'str' = 'hERWDMS', operator: 'str' = '', repo: 'Optional[str]' = None, skip_git: 'bool' = False) -> 'dict'", + "compose_batch_messages": "(blocks: 'Sequence[str]', title_prefix: 'str', batch_size: 'int' = 10) -> 'List[str]'", + "flatten": "(record: 'dict') -> 'dict'", + "get_settings": "(reload: 'bool' = False) -> 'Settings'", + "invalidate_token": "(kind: 'str' = '') -> 'None'", + "load_env_files": "(force: 'bool' = False) -> 'list'", + "markdown_image": "(media_id: 'str', alt: 'str' = '图片') -> 'str'", + "ms_to_str": "(ms: 'Any', with_time: 'bool' = False) -> 'str'", + "norm": "(value: 'Any') -> 'Any'", + "parse_period": "(month: 'str' = '', week: 'Optional[str]' = None) -> 'dict'", + "push_dws": "(messages: 'Iterable', record_dir: 'str' = '', chat_type: 'str' = '') -> 'dict'", + "push_robot": "(text, title: 'str' = '消息通知', status: 'str' = 'info', webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', batch: 'bool' = False, max_chars: 'int' = 15000, log: 'Optional[Callable[[str], None]]' = None) -> 'dict'", + "resolve_base": "(raw: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'Tuple[str, str]'", + "split_by_chars": "(content: 'str', max_chars: 'int' = 15000) -> 'List[str]'", + "to_base_id": "(base: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'str'", + "to_ms": "(value: 'Any') -> 'Optional[int]'", + "token": "(kind: 'str' = 'v1') -> 'str'", + "upload_media": "(path: 'str', media_type: 'str' = 'image', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None) -> 'str'" + } + }, + "dingtalk_sdk._selftest": { + "exports": [ + "aitable", + "annotations", + "base64", + "config", + "date", + "dws", + "hashlib", + "hmac", + "http", + "main", + "media", + "os", + "report", + "robot", + "test_aitable", + "test_config", + "test_dws", + "test_http", + "test_media", + "test_report", + "test_robot", + "urllib" + ], + "all": [], + "signatures": { + "main": "() -> 'int'", + "test_aitable": "() -> 'None'", + "test_config": "() -> 'None'", + "test_dws": "() -> 'None'", + "test_http": "() -> 'None'", + "test_media": "() -> 'None'", + "test_report": "() -> 'None'", + "test_robot": "() -> 'None'" + } + }, + "dingtalk_sdk.aitable": { + "exports": [ + "MAX_PAGES", + "PAGE_SIZE", + "TZ_CN", + "WRITE_BATCH", + "AiTable", + "ApiError", + "coerce_for_fields", + "flatten", + "ms_to_str", + "norm", + "resolve_base", + "to_base_id", + "to_ms" + ], + "all": [ + "MAX_PAGES", + "PAGE_SIZE", + "TZ_CN", + "WRITE_BATCH", + "AiTable", + "ApiError", + "coerce_for_fields", + "flatten", + "ms_to_str", + "norm", + "resolve_base", + "to_base_id", + "to_ms" + ], + "signatures": { + "AiTable": "(operator: 'str' = '', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "ApiError": "(message: 'str', code: 'str' = '', errmsg: 'str' = '', payload=None)", + "coerce_for_fields": "(meta: 'dict', data: 'dict') -> 'dict'", + "flatten": "(record: 'dict') -> 'dict'", + "ms_to_str": "(ms: 'Any', with_time: 'bool' = False) -> 'str'", + "norm": "(value: 'Any') -> 'Any'", + "resolve_base": "(raw: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'Tuple[str, str]'", + "to_base_id": "(base: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'str'", + "to_ms": "(value: 'Any') -> 'Optional[int]'" + } + }, + "dingtalk_sdk.auth": { + "exports": [ + "EXPIRY_MARGIN", + "KIND_OAPI", + "KIND_V1", + "AccessToken", + "AuthError", + "ApiError", + "invalidate", + "token" + ], + "all": [ + "EXPIRY_MARGIN", + "KIND_OAPI", + "KIND_V1", + "AccessToken", + "AuthError", + "ApiError", + "invalidate", + "token" + ], + "signatures": { + "AccessToken": "(kind: 'str' = 'v1', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None) -> 'None'", + "ApiError": "(message: 'str', code: 'str' = '', errmsg: 'str' = '', payload=None)", + "invalidate": "(kind: 'str' = '') -> 'None'", + "token": "(kind: 'str' = 'v1') -> 'str'" + } + }, + "dingtalk_sdk.config": { + "exports": [ + "BASE_ALIASES", + "DEFAULT_OPERATOR", + "DEFAULT_RATE_LIMIT", + "DEFAULT_RATE_WINDOW", + "DEFAULT_RETRIES", + "DEFAULT_ROBOTS", + "DEFAULT_TIMEOUT", + "ENV_FILE_VAR", + "RobotAccount", + "Settings", + "app_credentials", + "get_settings", + "load_env_files", + "resolve_dws_bin" + ], + "all": [ + "BASE_ALIASES", + "DEFAULT_OPERATOR", + "DEFAULT_RATE_LIMIT", + "DEFAULT_RATE_WINDOW", + "DEFAULT_RETRIES", + "DEFAULT_ROBOTS", + "DEFAULT_TIMEOUT", + "ENV_FILE_VAR", + "RobotAccount", + "Settings", + "app_credentials", + "get_settings", + "load_env_files", + "resolve_dws_bin" + ], + "signatures": { + "RobotAccount": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '37du 任务调度平台') -> None", + "Settings": "(app_key: 'str' = '', app_secret: 'str' = '', operator: 'str' = '', dws_bin: 'str' = '', timeout: 'float' = 30.0, retries: 'int' = 3, rate_limit: 'int' = 50, rate_window: 'float' = 60.0, default_env: 'str' = 'prod', robots: 'Dict[str, RobotAccount]' = , base_aliases: 'Dict[str, str]' = ) -> None", + "app_credentials": "() -> 'tuple'", + "get_settings": "(reload: 'bool' = False) -> 'Settings'", + "load_env_files": "(force: 'bool' = False) -> 'list'", + "resolve_dws_bin": "(explicit: 'str' = '') -> 'str'" + } + }, + "dingtalk_sdk.dws": { + "exports": [ + "CODE_NO_CONVERSATION", + "DEFAULT_TIMEOUT", + "Dws", + "RECORD_COLUMNS", + "RECORD_PATH_GLV", + "get_default", + "main", + "normalize_chat_type", + "normalize_msg_type", + "push", + "record_csv_path", + "resolve_group_id", + "resolve_open_id", + "send_group_message", + "send_message", + "set_default" + ], + "all": [ + "CODE_NO_CONVERSATION", + "DEFAULT_TIMEOUT", + "Dws", + "RECORD_COLUMNS", + "RECORD_PATH_GLV", + "get_default", + "main", + "normalize_chat_type", + "normalize_msg_type", + "push", + "record_csv_path", + "resolve_group_id", + "resolve_open_id", + "send_group_message", + "send_message", + "set_default" + ], + "signatures": { + "Dws": "(bin: 'str' = '', rate_limit: 'Optional[int]' = None, rate_window: 'Optional[float]' = None, record_dir: 'str' = '', timeout: 'Optional[float]' = None, task_wait: 'Optional[float]' = None, task_poll: 'Optional[float]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "get_default": "() -> 'Dws'", + "main": "(messages: 'Iterable', record_dir: 'str' = '', chat_type: 'str' = '') -> 'dict'", + "normalize_chat_type": "(chat_type: 'str') -> 'str'", + "normalize_msg_type": "(msg_type: 'str') -> 'str'", + "push": "(messages: 'Iterable', record_dir: 'str' = '', chat_type: 'str' = '') -> 'dict'", + "record_csv_path": "(record_dir: 'str') -> 'str'", + "resolve_group_id": "(group_name: 'str') -> 'str'", + "resolve_open_id": "(name: 'str', user_id: 'str' = '') -> 'str'", + "send_group_message": "(group_name, content: 'str' = '', file_path: 'str' = '', title: 'str' = '', at_all: 'bool' = False, at_open_ids: 'str' = '', record_dir: 'str' = '') -> 'dict'", + "send_message": "(msg_type, name, user_id, content, file_path: 'str' = '', record_dir: 'str' = '') -> 'dict'", + "set_default": "(client: 'Dws') -> 'None'" + } + }, + "dingtalk_sdk.errors": { + "exports": [ + "ApiError", + "AuthError", + "CancelledError", + "ConfigError", + "DingTalkError", + "DwsError", + "NetworkError" + ], + "all": [ + "ApiError", + "AuthError", + "CancelledError", + "ConfigError", + "DingTalkError", + "DwsError", + "NetworkError" + ], + "signatures": { + "ApiError": "(message: 'str', code: 'str' = '', errmsg: 'str' = '', payload=None)", + "DwsError": "(message: 'str', code: 'str' = '')" + } + }, + "dingtalk_sdk.http": { + "exports": [ + "API_BASE", + "API_HOST", + "HttpClient", + "OAPI_BASE", + "OAPI_HOST", + "install_dns_fallback", + "is_retryable", + "join_url", + "mask", + "request" + ], + "all": [ + "API_BASE", + "API_HOST", + "HttpClient", + "OAPI_BASE", + "OAPI_HOST", + "install_dns_fallback", + "is_retryable", + "join_url", + "mask", + "request" + ], + "signatures": { + "HttpClient": "(timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "install_dns_fallback": "(host: 'str' = 'api.dingtalk.com') -> 'bool'", + "is_retryable": "(exc: 'BaseException') -> 'bool'", + "join_url": "(base: 'str', *parts: 'str') -> 'str'", + "mask": "(text: 'Any') -> 'str'", + "request": "(method: 'str', url: 'str', **kwargs) -> 'dict'" + } + }, + "dingtalk_sdk.media": { + "exports": [ + "DEFAULT_TIMEOUT", + "MEDIA_IMAGE", + "markdown_image", + "upload", + "upload_media" + ], + "all": [ + "DEFAULT_TIMEOUT", + "MEDIA_IMAGE", + "markdown_image", + "upload", + "upload_media" + ], + "signatures": { + "markdown_image": "(media_id: 'str', alt: 'str' = '图片') -> 'str'", + "upload": "(path: 'str', media_type: 'str' = 'image', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None) -> 'dict'", + "upload_media": "(path: 'str', media_type: 'str' = 'image', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None) -> 'str'" + } + }, + "dingtalk_sdk.report": { + "exports": [ + "AiTable", + "Any", + "Counter", + "DATE_FIELDS", + "DEFAULT_BASE", + "DEFAULT_SHEET", + "Optional", + "Path", + "TYPE_LABEL", + "annotations", + "argparse", + "collect", + "collect_git", + "collect_table", + "date", + "datetime", + "flatten", + "get_settings", + "json", + "main", + "month_range", + "parse_period", + "print_human", + "re", + "resolve_base", + "subprocess", + "sys", + "timedelta", + "week_range" + ], + "all": [], + "signatures": { + "AiTable": "(operator: 'str' = '', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "Any": "(*args, **kwargs)", + "Counter": "(iterable=None, /, **kwds)", + "Optional": "(*args, **kwds)", + "Path": "(*args, **kwargs)", + "collect": "(month: 'str' = '', week: 'Optional[str]' = None, base: 'str' = 'workplan', sheet: 'str' = 'hERWDMS', operator: 'str' = '', repo: 'Optional[str]' = None, skip_git: 'bool' = False) -> 'dict'", + "collect_git": "(since: 'str', until_excl: 'str', repo: 'Path') -> 'dict'", + "collect_table": "(period: 'dict', base: 'str' = 'workplan', sheet: 'str' = 'hERWDMS', operator: 'str' = '', aliases: 'Optional[dict]' = None) -> 'dict'", + "flatten": "(record: 'dict') -> 'dict'", + "get_settings": "(reload: 'bool' = False) -> 'Settings'", + "main": "(argv: 'Optional[list]' = None) -> 'int'", + "month_range": "(month: 'str') -> 'tuple'", + "parse_period": "(month: 'str' = '', week: 'Optional[str]' = None) -> 'dict'", + "print_human": "(data: 'dict') -> 'None'", + "resolve_base": "(raw: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'Tuple[str, str]'", + "week_range": "(ref: 'date') -> 'tuple'" + } + }, + "dingtalk_sdk.robot": { + "exports": [ + "DEFAULT_BATCH_SIZE", + "DEFAULT_MAX_CHARS", + "DEFAULT_TITLE", + "DingTalkRobot", + "Robot", + "STATUS_COLORS", + "build_sign", + "build_url", + "compose_batch_messages", + "main", + "push", + "render_markdown", + "split_by_chars" + ], + "all": [ + "DEFAULT_BATCH_SIZE", + "DEFAULT_MAX_CHARS", + "DEFAULT_TITLE", + "DingTalkRobot", + "Robot", + "STATUS_COLORS", + "build_sign", + "build_url", + "compose_batch_messages", + "main", + "push", + "render_markdown", + "split_by_chars" + ], + "signatures": { + "DingTalkRobot": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "Robot": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'", + "build_sign": "(secret: 'str', timestamp_ms: 'Union[int, str]') -> 'str'", + "build_url": "(webhook: 'str', secret: 'str' = '') -> 'str'", + "compose_batch_messages": "(blocks: 'Sequence[str]', title_prefix: 'str', batch_size: 'int' = 10) -> 'List[str]'", + "main": "(text, title: 'str' = '消息通知', status: 'str' = 'info', webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', batch: 'bool' = False, max_chars: 'int' = 15000, log: 'Optional[Callable[[str], None]]' = None) -> 'dict'", + "push": "(text, title: 'str' = '消息通知', status: 'str' = 'info', webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', batch: 'bool' = False, max_chars: 'int' = 15000, log: 'Optional[Callable[[str], None]]' = None) -> 'dict'", + "render_markdown": "(title: 'str', content: 'str', status: 'str' = 'info', server_name: 'str' = '') -> 'str'", + "split_by_chars": "(content: 'str', max_chars: 'int' = 15000) -> 'List[str]'" + } + } + } +} \ No newline at end of file