← Về thư mục
skills/protocolsio-integration/scripts/plan_write_request.py
- build_parser · function · L83-L146 — def build_parser() -> argparse.ArgumentParser
- _payload · function · L149-L157 — def _payload(path: str | None) -> dict[str, Any]
- _sensitive_paths · function · L160-L174 — def _sensitive_paths(value: Any, prefix: str = "$") -> list[str]
- _drop_sensitive · function · L177-L188 — def _drop_sensitive(value: Any) -> Any
- _exact_fields · function · L191-L205 — def _exact_fields( payload: Mapping[str, Any], *, required: set[str], optional: set[str], operation: str, ) -> None
- _slug · function · L208-L211 — def _slug(value: str | None, *, name: str) -> str
- _protocol_uri · function · L214-L224 — def _protocol_uri(value: str | None) -> str
- _int_id · function · L227-L240 — def _int_id(value: Any, *, name: str) -> int
- _validate_update · function · L243-L296 — def _validate_update(payload: Mapping[str, Any]) -> None
- _validate_steps · function · L299-L338 — def _validate_steps(payload: Mapping[str, Any], *, deleting: bool) -> None
- _validate_publish · function · L341-L351 — def _validate_publish(payload: Mapping[str, Any]) -> None
- _validate_comment · function · L354-L365 — def _validate_comment(payload: Mapping[str, Any]) -> None
- _validate_ids · function · L368-L379 — def _validate_ids(payload: Mapping[str, Any], *, operation: str) -> None
- _hash_file · function · L382-L396 — def _hash_file(path: Path, maximum: int) -> str
- _upload_plan · function · L399-L447 — def _upload_plan( raw_path: str | None, *, local_max_bytes: int, origin: str, ) -> tuple[str, dict[str, Any], list[dict[str, Any]]]
- build_plan · function · L450-L626 — def build_plan( *, operation: str, target: str | None, payload: dict[str, Any], origin: str, tenant_origin: str | None, upload_file: str | None, local_max_upload_bytes: int, confirmation: str | None, ) -> dict[str, Any]
- credential_env_name · function · L629-L630 — def credential_env_name() -> str
- urllib_target · function · L633-L634 — def urllib_target(url: str) -> str
- main · function · L637-L653 — def main(argv: Sequence[str] | None = None) -> int