Debian Codegraph @

src/anthropic/types/file_upload_params.py

raw
1 from __future__ import annotations
2
3 from typing_extensions import Required, TypedDict
4
5 from .._types import FileTypes
6
7 __all__ = ["FileUploadParams"]
8
9
10 class FileUploadParams(TypedDict, total=False):
11 file: Required[FileTypes]
12 """The file to upload.
13
14 Only the final path component of the part's `filename` is kept; an absent or
15 empty `filename` is replaced with `unnamed` plus the extension for the file's
16 stored `mime_type`, when known.
17 """
18
19 expires_in_seconds: int
20 """
21 Seconds from upload until the file expires and its bytes become permanently
22 unavailable. Must be between 3600 (one hour) and 7776000 (ninety days).
23 """
24
25 workspace_id: str
26 """Optional header to select the Workspace for this request.
27
28 The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
29
30 Only needed for credentials that can act on more than one Workspace. A
31 credential that belongs to a specific Workspace may omit it; if sent, it must
32 match that Workspace.
33 """