inttegro.file
Models, requests, and enums for the Inttegro file resource.
The primary returned object is inttegro.file.File. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.
1"""Models, requests, and enums for the Inttegro file resource. 2 3The primary returned object is ``inttegro.file.File``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .actor import Actor as Actor 10 from .actor_input import ActorInput as ActorInput 11 from .contents_request import ContentsRequest as ContentsRequest 12 from .delete_request import DeleteRequest as DeleteRequest 13 from .delivery import Delivery as Delivery 14 from .delivery_details import DeliveryDetails as DeliveryDetails 15 from .disposition import Disposition as Disposition 16 from .file import File as File 17 from .latest_error import LatestError as LatestError 18 from .lookup_request import LookupRequest as LookupRequest 19 from .media import Media as Media 20 from .page import Page as Page 21 from .page_request import PageRequest as PageRequest 22 from .page_response import PageResponse as PageResponse 23 from .party import Party as Party 24 from .party_input import PartyInput as PartyInput 25 from .public_storage import PublicStorage as PublicStorage 26 from .resource import Resource as Resource 27 from .resource_input import ResourceInput as ResourceInput 28 from .response import Response as Response 29 from .scan_status import ScanStatus as ScanStatus 30 from .source import Source as Source 31 from .source_type import SourceType as SourceType 32 from .status import Status as Status 33 from .storage_encoding import StorageEncoding as StorageEncoding 34 from .upload_receipt import UploadReceipt as UploadReceipt 35 36 37_EXPORTS: dict[str, tuple[str, str]] = { 38 "Actor": ("inttegro.file.actor", "Actor"), 39 "ActorInput": ("inttegro.file.actor_input", "ActorInput"), 40 "ContentsRequest": ("inttegro.file.contents_request", "ContentsRequest"), 41 "DeleteRequest": ("inttegro.file.delete_request", "DeleteRequest"), 42 "Delivery": ("inttegro.file.delivery", "Delivery"), 43 "DeliveryDetails": ("inttegro.file.delivery_details", "DeliveryDetails"), 44 "Disposition": ("inttegro.file.disposition", "Disposition"), 45 "File": ("inttegro.file.file", "File"), 46 "LatestError": ("inttegro.file.latest_error", "LatestError"), 47 "LookupRequest": ("inttegro.file.lookup_request", "LookupRequest"), 48 "Media": ("inttegro.file.media", "Media"), 49 "Page": ("inttegro.file.page", "Page"), 50 "PageRequest": ("inttegro.file.page_request", "PageRequest"), 51 "PageResponse": ("inttegro.file.page_response", "PageResponse"), 52 "Party": ("inttegro.file.party", "Party"), 53 "PartyInput": ("inttegro.file.party_input", "PartyInput"), 54 "PublicStorage": ("inttegro.file.public_storage", "PublicStorage"), 55 "Resource": ("inttegro.file.resource", "Resource"), 56 "ResourceInput": ("inttegro.file.resource_input", "ResourceInput"), 57 "Response": ("inttegro.file.response", "Response"), 58 "ScanStatus": ("inttegro.file.scan_status", "ScanStatus"), 59 "Source": ("inttegro.file.source", "Source"), 60 "SourceType": ("inttegro.file.source_type", "SourceType"), 61 "Status": ("inttegro.file.status", "Status"), 62 "StorageEncoding": ("inttegro.file.storage_encoding", "StorageEncoding"), 63 "UploadReceipt": ("inttegro.file.upload_receipt", "UploadReceipt"), 64} 65 66__all__ = [ 67 "Actor", 68 "ActorInput", 69 "ContentsRequest", 70 "DeleteRequest", 71 "Delivery", 72 "DeliveryDetails", 73 "Disposition", 74 "File", 75 "LatestError", 76 "LookupRequest", 77 "Media", 78 "Page", 79 "PageRequest", 80 "PageResponse", 81 "Party", 82 "PartyInput", 83 "PublicStorage", 84 "Resource", 85 "ResourceInput", 86 "Response", 87 "ScanStatus", 88 "Source", 89 "SourceType", 90 "Status", 91 "StorageEncoding", 92 "UploadReceipt", 93] 94 95 96def __getattr__(name: str) -> Any: 97 """Load a public resource type on first access.""" 98 try: 99 module_name, attribute_name = _EXPORTS[name] 100 except KeyError: 101 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 102 value = getattr(import_module(module_name), attribute_name) 103 globals()[name] = value 104 return value
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Actor(ApiModel): 14 """Typed actor data in the file resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileActor``. 23 """ 24 type: str = field(init=False) 25 """Discriminator identifying the actor type. Required. Python type: ``str``; wire name: ``type``; JSON type: string""" 26 id: str | None = field(init=False) 27 """Unique identifier for this actor. Optional; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string""" 28 name: str | None = field(init=False) 29 """Human-readable name of the actor. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 30 email: str | None = field(init=False) 31 """The email associated with this actor. Optional; nullable. Python type: ``str | None``; wire name: ``email``; JSON type: string (email)"""
Typed actor data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileActor.
Discriminator identifying the actor type. Required. Python type: str; wire name: type; JSON type: string
Unique identifier for this actor. Optional; nullable. Python type: str | None; wire name: id; JSON type: string
Human-readable name of the actor. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The email associated with this actor. Optional; nullable. Python type: str | None; wire name: email; JSON type: string (email)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ActorInput(ApiRequest): 14 """Parameters accepted by the actor input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FileActorInput``. 21 """ 22 email: str | UnsetType = field(default=UNSET) 23 """The email associated with this actor input. Optional. Python type: ``str``; wire name: ``email``; JSON type: string""" 24 id: str | UnsetType = field(default=UNSET) 25 """Unique identifier for this actor input. Optional. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 name: str | UnsetType = field(default=UNSET) 27 """Human-readable name of the actor input. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 28 type: str | UnsetType = field(default=UNSET) 29 """Discriminator identifying the actor input type. Optional. Python type: ``str``; wire name: ``type``; JSON type: string"""
Parameters accepted by the actor input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FileActorInput.
The email associated with this actor input. Optional. Python type: str; wire name: email; JSON type: string
Unique identifier for this actor input. Optional. Python type: str; wire name: id; JSON type: string
Human-readable name of the actor input. Optional. Python type: str; wire name: name; JSON type: string
Discriminator identifying the actor input type. Optional. Python type: str; wire name: type; JSON type: string
13@dataclass(frozen=True, slots=True, kw_only=True) 14class ContentsRequest(ApiRequest): 15 """Parameters accepted by the contents request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``FileContentsRequest``. 22 """ 23 disposition: Literal['attachment', 'inline', FileDisposition.ATTACHMENT, FileDisposition.INLINE] | UnsetType = field(default=UNSET) 24 """The disposition associated with this contents request. Optional. Python type: ``Literal['attachment', 'inline', FileDisposition.ATTACHMENT, FileDisposition.INLINE]``; wire name: ``disposition``; JSON type: string. Constraints: allowed values ``attachment``, ``inline``""" 25 delivery: Literal['stream', 'redirect', FileDelivery.STREAM, FileDelivery.REDIRECT] | UnsetType = field(default=UNSET) 26 """The delivery associated with this contents request. Optional. Python type: ``Literal['stream', 'redirect', FileDelivery.STREAM, FileDelivery.REDIRECT]``; wire name: ``delivery``; JSON type: string. Constraints: allowed values ``stream``, ``redirect``""" 27 file_id: str 28 """Identifier of the related file. Required. Python type: ``str``; wire name: ``file_id``; JSON type: string"""
Parameters accepted by the contents request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FileContentsRequest.
The disposition associated with this contents request. Optional. Python type: Literal['attachment', 'inline', FileDisposition.ATTACHMENT, FileDisposition.INLINE]; wire name: disposition; JSON type: string. Constraints: allowed values attachment, inline
The delivery associated with this contents request. Optional. Python type: Literal['stream', 'redirect', FileDelivery.STREAM, FileDelivery.REDIRECT]; wire name: delivery; JSON type: string. Constraints: allowed values stream, redirect
Identifier of the related file. Required. Python type: str; wire name: file_id; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DeleteRequest(ApiRequest): 14 """Parameters accepted by the delete request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``DeleteFileRequest``. 21 """ 22 file_id: str 23 """Identifier of the related file. Required. Python type: ``str``; wire name: ``file_id``; JSON type: string"""
Parameters accepted by the delete request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: DeleteFileRequest.
Identifier of the related file. Required. Python type: str; wire name: file_id; JSON type: string
11class Delivery(WireEnum): 12 """Typed delivery data in the file resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileDelivery``. 18 """ 19 STREAM = "stream" 20 """Wire value ``stream`` (stream)""" 21 REDIRECT = "redirect" 22 """Wire value ``redirect`` (redirect)"""
Typed delivery data in the file resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileDelivery.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class DeliveryDetails(ApiModel): 14 """Purpose-authorized public delivery metadata for browser-rendered assets. Callers should store file IDs as canonical references and treat these URLs as render URLs. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileDeliveryDetails``. 23 """ 24 public_url: str | None = field(init=False) 25 """Unsigned CDN URL for public-safe assets such as product images. Optional; nullable. Python type: ``str | None``; wire name: ``public_url``; JSON type: string (uri)""" 26 cache_control: str | None = field(init=False) 27 """The cache control associated with this delivery detail. Optional; nullable. Python type: ``str | None``; wire name: ``cache_control``; JSON type: string""" 28 content_type: str | None = field(init=False) 29 """The content type associated with this delivery detail. Optional; nullable. Python type: ``str | None``; wire name: ``content_type``; JSON type: string"""
Purpose-authorized public delivery metadata for browser-rendered assets. Callers should store file IDs as canonical references and treat these URLs as render URLs.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileDeliveryDetails.
Unsigned CDN URL for public-safe assets such as product images. Optional; nullable. Python type: str | None; wire name: public_url; JSON type: string (uri)
The cache control associated with this delivery detail. Optional; nullable. Python type: str | None; wire name: cache_control; JSON type: string
The content type associated with this delivery detail. Optional; nullable. Python type: str | None; wire name: content_type; JSON type: string
11class Disposition(WireEnum): 12 """Typed disposition data in the file resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileDisposition``. 18 """ 19 ATTACHMENT = "attachment" 20 """Wire value ``attachment`` (attachment)""" 21 INLINE = "inline" 22 """Wire value ``inline`` (inline)"""
Typed disposition data in the file resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileDisposition.
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class File(ApiModel): 16 """Public file metadata. Storage provider details, object keys, and idempotency internals are not exposed. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 """ 24 id: str = field(init=False) 25 """Unique identifier for this file. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 purpose: str = field(init=False) 27 """The purpose associated with this file. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 28 status: Literal['uploading', 'processing', 'available', 'failed', 'deleted'] = field(init=False) 29 """Current lifecycle status of the file. Required. Python type: ``Literal['uploading', 'processing', 'available', 'failed', 'deleted']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``uploading``, ``processing``, ``available``, ``failed``, ``deleted``""" 30 scan_status: Literal['pending', 'passed', 'failed', 'skipped'] = field(init=False) 31 """The scan status associated with this file. Required. Python type: ``Literal['pending', 'passed', 'failed', 'skipped']``; wire name: ``scan_status``; JSON type: string. Constraints: allowed values ``pending``, ``passed``, ``failed``, ``skipped``""" 32 name: str | None = field(init=False) 33 """Human-readable name of the file. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 34 filename: str | None = field(init=False) 35 """The filename associated with this file. Optional; nullable. Python type: ``str | None``; wire name: ``filename``; JSON type: string""" 36 content_type: str = field(init=False) 37 """The content type associated with this file. Required. Python type: ``str``; wire name: ``content_type``; JSON type: string""" 38 size: int = field(init=False) 39 """Original byte size. Required. Python type: ``int``; wire name: ``size``; JSON type: integer (int64)""" 40 checksum_sha256: str = field(init=False) 41 """The checksum sha256 associated with this file. Required. Python type: ``str``; wire name: ``checksum_sha256``; JSON type: string""" 42 created_by: FileActor = field(init=False) 43 """The created by associated with this file. Required. Python type: ``FileActor``; wire name: ``created_by``; JSON type: object (FileActor)""" 44 source: FileSource = field(init=False) 45 """The source associated with this file. Required. Python type: ``FileSource``; wire name: ``source``; JSON type: object (FileSource)""" 46 media: FileMedia | None = field(init=False) 47 """The media associated with this file. Optional; nullable. Python type: ``FileMedia | None``; wire name: ``media``; JSON type: object (FileMedia)""" 48 storage: PublicFileStorage = field(init=False) 49 """The storage associated with this file. Required. Python type: ``PublicFileStorage``; wire name: ``storage``; JSON type: object (PublicFileStorage)""" 50 delivery: FileDeliveryDetails | None = field(init=False) 51 """Purpose-authorized public delivery metadata for browser-rendered assets. Callers should store file IDs as canonical references and treat these URLs as render URLs. Optional; nullable. Python type: ``FileDeliveryDetails | None``; wire name: ``delivery``; JSON type: object (FileDelivery)""" 52 latest_error: FileLatestError | None = field(init=False) 53 """The latest error associated with this file. Optional; nullable. Python type: ``FileLatestError | None``; wire name: ``latest_error``; JSON type: object (FileLatestError)""" 54 custom_data: CustomData | None = field(init=False) 55 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: ``CustomData | None``; wire name: ``custom_data``; JSON type: object (CustomData)""" 56 metadata: dict[str, str] | None = field(init=False) 57 """System-managed string metadata attached to a file resource. Optional; nullable. Python type: ``dict[str, str] | None``; wire name: ``metadata``; JSON type: object (FileMetadata)""" 58 created_at: datetime = field(init=False) 59 """When the file was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 60 updated_at: datetime = field(init=False) 61 """When the file was last updated. Required. Python type: ``datetime``; wire name: ``updated_at``; JSON type: string (date-time)""" 62 available_at: datetime | None = field(init=False) 63 """Timestamp for available at. Optional; nullable. Python type: ``datetime | None``; wire name: ``available_at``; JSON type: string (date-time)""" 64 expires_at: datetime | None = field(init=False) 65 """Timestamp for expires at. Optional; nullable. Python type: ``datetime | None``; wire name: ``expires_at``; JSON type: string (date-time)"""
Public file metadata. Storage provider details, object keys, and idempotency internals are not exposed.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
Unique identifier for this file. Required. Python type: str; wire name: id; JSON type: string
The purpose associated with this file. Required. Python type: str; wire name: purpose; JSON type: string
Current lifecycle status of the file. Required. Python type: Literal['uploading', 'processing', 'available', 'failed', 'deleted']; wire name: status; JSON type: string. Constraints: allowed values uploading, processing, available, failed, deleted
The scan status associated with this file. Required. Python type: Literal['pending', 'passed', 'failed', 'skipped']; wire name: scan_status; JSON type: string. Constraints: allowed values pending, passed, failed, skipped
Human-readable name of the file. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The filename associated with this file. Optional; nullable. Python type: str | None; wire name: filename; JSON type: string
The content type associated with this file. Required. Python type: str; wire name: content_type; JSON type: string
Original byte size. Required. Python type: int; wire name: size; JSON type: integer (int64)
The checksum sha256 associated with this file. Required. Python type: str; wire name: checksum_sha256; JSON type: string
The created by associated with this file. Required. Python type: FileActor; wire name: created_by; JSON type: object (FileActor)
The source associated with this file. Required. Python type: FileSource; wire name: source; JSON type: object (FileSource)
The media associated with this file. Optional; nullable. Python type: FileMedia | None; wire name: media; JSON type: object (FileMedia)
The storage associated with this file. Required. Python type: PublicFileStorage; wire name: storage; JSON type: object (PublicFileStorage)
Purpose-authorized public delivery metadata for browser-rendered assets. Callers should store file IDs as canonical references and treat these URLs as render URLs. Optional; nullable. Python type: FileDeliveryDetails | None; wire name: delivery; JSON type: object (FileDelivery)
The latest error associated with this file. Optional; nullable. Python type: FileLatestError | None; wire name: latest_error; JSON type: object (FileLatestError)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: CustomData | None; wire name: custom_data; JSON type: object (CustomData)
System-managed string metadata attached to a file resource. Optional; nullable. Python type: dict[str, str] | None; wire name: metadata; JSON type: object (FileMetadata)
When the file was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
When the file was last updated. Required. Python type: datetime; wire name: updated_at; JSON type: string (date-time)
Timestamp for available at. Optional; nullable. Python type: datetime | None; wire name: available_at; JSON type: string (date-time)
Timestamp for expires at. Optional; nullable. Python type: datetime | None; wire name: expires_at; JSON type: string (date-time)
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class LatestError(ApiModel): 15 """Typed latest error data in the file resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FileLatestError``. 24 """ 25 code: str | None = field(init=False) 26 """The code associated with this latest error. Optional; nullable. Python type: ``str | None``; wire name: ``code``; JSON type: string""" 27 message: str | None = field(init=False) 28 """The message associated with this latest error. Optional; nullable. Python type: ``str | None``; wire name: ``message``; JSON type: string""" 29 retryable: bool | None = field(init=False) 30 """Whether retryable. Optional; nullable. Python type: ``bool | None``; wire name: ``retryable``; JSON type: boolean""" 31 at: datetime | None = field(init=False) 32 """Timestamp for at. Optional; nullable. Python type: ``datetime | None``; wire name: ``at``; JSON type: string (date-time)"""
Typed latest error data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileLatestError.
The code associated with this latest error. Optional; nullable. Python type: str | None; wire name: code; JSON type: string
The message associated with this latest error. Optional; nullable. Python type: str | None; wire name: message; JSON type: string
Whether retryable. Optional; nullable. Python type: bool | None; wire name: retryable; JSON type: boolean
Timestamp for at. Optional; nullable. Python type: datetime | None; wire name: at; JSON type: string (date-time)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class LookupRequest(ApiRequest): 14 """Parameters accepted by the lookup request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``LookupFileRequest``. 21 """ 22 file_id: str 23 """Identifier of the related file. Required. Python type: ``str``; wire name: ``file_id``; JSON type: string"""
Parameters accepted by the lookup request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: LookupFileRequest.
Identifier of the related file. Required. Python type: str; wire name: file_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Media(ApiModel): 14 """Typed media data in the file resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileMedia``. 23 """ 24 kind: str | None = field(init=False) 25 """The kind associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``kind``; JSON type: string""" 26 width: int | None = field(init=False) 27 """The width associated with this media. Optional; nullable. Python type: ``int | None``; wire name: ``width``; JSON type: integer (int64)""" 28 height: int | None = field(init=False) 29 """The height associated with this media. Optional; nullable. Python type: ``int | None``; wire name: ``height``; JSON type: integer (int64)""" 30 duration_ms: int | None = field(init=False) 31 """The duration ms associated with this media. Optional; nullable. Python type: ``int | None``; wire name: ``duration_ms``; JSON type: integer (int64)""" 32 page_count: int | None = field(init=False) 33 """The page count associated with this media. Optional; nullable. Python type: ``int | None``; wire name: ``page_count``; JSON type: integer (int64)""" 34 frame_count: int | None = field(init=False) 35 """The frame count associated with this media. Optional; nullable. Python type: ``int | None``; wire name: ``frame_count``; JSON type: integer (int64)""" 36 color_space: str | None = field(init=False) 37 """The color space associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``color_space``; JSON type: string""" 38 has_alpha: bool | None = field(init=False) 39 """Whether has alpha. Optional; nullable. Python type: ``bool | None``; wire name: ``has_alpha``; JSON type: boolean""" 40 codec: str | None = field(init=False) 41 """The codec associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``codec``; JSON type: string""" 42 aspect_ratio: str | None = field(init=False) 43 """The aspect ratio associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``aspect_ratio``; JSON type: string"""
Typed media data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileMedia.
The kind associated with this media. Optional; nullable. Python type: str | None; wire name: kind; JSON type: string
The width associated with this media. Optional; nullable. Python type: int | None; wire name: width; JSON type: integer (int64)
The height associated with this media. Optional; nullable. Python type: int | None; wire name: height; JSON type: integer (int64)
The duration ms associated with this media. Optional; nullable. Python type: int | None; wire name: duration_ms; JSON type: integer (int64)
The page count associated with this media. Optional; nullable. Python type: int | None; wire name: page_count; JSON type: integer (int64)
The frame count associated with this media. Optional; nullable. Python type: int | None; wire name: frame_count; JSON type: integer (int64)
The color space associated with this media. Optional; nullable. Python type: str | None; wire name: color_space; JSON type: string
Whether has alpha. Optional; nullable. Python type: bool | None; wire name: has_alpha; JSON type: boolean
The codec associated with this media. Optional; nullable. Python type: str | None; wire name: codec; JSON type: string
The aspect ratio associated with this media. Optional; nullable. Python type: str | None; wire name: aspect_ratio; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Page(ApiModel): 14 """One page of page resources. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FilePage``. 23 """ 24 number: int = field(init=False) 25 """Human-readable number assigned to the page. Required. Python type: ``int``; wire name: ``number``; JSON type: integer""" 26 size: int = field(init=False) 27 """Numeric size used by this operation. Required. Python type: ``int``; wire name: ``size``; JSON type: integer""" 28 files: list[File] = field(init=False) 29 """The files associated with this page. Required. Python type: ``list[File]``; wire name: ``files``; JSON type: array of object (FileObject) values"""
One page of page resources.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FilePage.
Human-readable number assigned to the page. Required. Python type: int; wire name: number; JSON type: integer
Numeric size used by this operation. Required. Python type: int; wire name: size; JSON type: integer
14@dataclass(frozen=True, slots=True, kw_only=True) 15class PageRequest(ApiRequest): 16 """Parameters accepted by the page request operation. 17 18 This is an immutable, keyword-only request object. ``to_dict()`` uses 19 the documented wire names, omits fields left as ``UNSET``, serializes 20 string-backed enums by value, and requires timezone-aware datetimes. 21 22 API contract schema: ``PageFilesRequest``. 23 """ 24 purpose: str | UnsetType = field(default=UNSET) 25 """The purpose associated with this page request. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 26 status: Literal['uploading', 'processing', 'available', 'failed', 'deleted', FileStatus.UPLOADING, FileStatus.PROCESSING, FileStatus.AVAILABLE, FileStatus.FAILED, FileStatus.DELETED] | UnsetType = field(default=UNSET) 27 """Current lifecycle status of the page request. Optional. Python type: ``Literal['uploading', 'processing', 'available', 'failed', 'deleted', FileStatus.UPLOADING, FileStatus.PROCESSING, FileStatus.AVAILABLE, FileStatus.FAILED, FileStatus.DELETED]``; wire name: ``status``; JSON type: string. Constraints: allowed values ``uploading``, ``processing``, ``available``, ``failed``, ``deleted``""" 28 page_number: int | UnsetType = field(default=UNSET) 29 """The page number associated with this page request. Optional. Python type: ``int``; wire name: ``page_number``; JSON type: integer. Constraints: minimum 1""" 30 page_size: int | UnsetType = field(default=UNSET) 31 """The page size associated with this page request. Optional. Python type: ``int``; wire name: ``page_size``; JSON type: integer. Constraints: minimum 1""" 32 created_after: datetime | UnsetType = field(default=UNSET) 33 """Timestamp for created after. Optional. Python type: ``datetime``; wire name: ``created_after``; JSON type: string (date-time)""" 34 created_before: datetime | UnsetType = field(default=UNSET) 35 """Timestamp for created before. Optional. Python type: ``datetime``; wire name: ``created_before``; JSON type: string (date-time)"""
Parameters accepted by the page request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: PageFilesRequest.
The purpose associated with this page request. Optional. Python type: str; wire name: purpose; JSON type: string
Current lifecycle status of the page request. Optional. Python type: Literal['uploading', 'processing', 'available', 'failed', 'deleted', FileStatus.UPLOADING, FileStatus.PROCESSING, FileStatus.AVAILABLE, FileStatus.FAILED, FileStatus.DELETED]; wire name: status; JSON type: string. Constraints: allowed values uploading, processing, available, failed, deleted
The page number associated with this page request. Optional. Python type: int; wire name: page_number; JSON type: integer. Constraints: minimum 1
The page size associated with this page request. Optional. Python type: int; wire name: page_size; JSON type: integer. Constraints: minimum 1
Timestamp for created after. Optional. Python type: datetime; wire name: created_after; JSON type: string (date-time)
Timestamp for created before. Optional. Python type: datetime; wire name: created_before; JSON type: string (date-time)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class PageResponse(ApiModel): 14 """Typed response returned by the page operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FilePageResponse``. 23 """ 24 page: FilePage = field(init=False) 25 """Numeric page used by this operation. Required. Python type: ``FilePage``; wire name: ``page``; JSON type: object (FilePage)"""
Typed response returned by the page operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FilePageResponse.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Party(ApiModel): 14 """Typed party data in the file resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileParty``. 23 """ 24 type: str | None = field(init=False) 25 """Discriminator identifying the party type. Optional; nullable. Python type: ``str | None``; wire name: ``type``; JSON type: string""" 26 id: str | None = field(init=False) 27 """Unique identifier for this party. Optional; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string""" 28 name: str | None = field(init=False) 29 """Human-readable name of the party. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 30 email: str | None = field(init=False) 31 """The email associated with this party. Optional; nullable. Python type: ``str | None``; wire name: ``email``; JSON type: string (email)"""
Typed party data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileParty.
Discriminator identifying the party type. Optional; nullable. Python type: str | None; wire name: type; JSON type: string
Unique identifier for this party. Optional; nullable. Python type: str | None; wire name: id; JSON type: string
Human-readable name of the party. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The email associated with this party. Optional; nullable. Python type: str | None; wire name: email; JSON type: string (email)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class PartyInput(ApiRequest): 14 """Parameters accepted by the party input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FilePartyInput``. 21 """ 22 type: str | UnsetType = field(default=UNSET) 23 """Discriminator identifying the party input type. Optional. Python type: ``str``; wire name: ``type``; JSON type: string""" 24 id: str | UnsetType = field(default=UNSET) 25 """Unique identifier for this party input. Optional. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 name: str | UnsetType = field(default=UNSET) 27 """Human-readable name of the party input. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 28 email: str | UnsetType = field(default=UNSET) 29 """The email associated with this party input. Optional. Python type: ``str``; wire name: ``email``; JSON type: string (email)"""
Parameters accepted by the party input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FilePartyInput.
Discriminator identifying the party input type. Optional. Python type: str; wire name: type; JSON type: string
Unique identifier for this party input. Optional. Python type: str; wire name: id; JSON type: string
Human-readable name of the party input. Optional. Python type: str; wire name: name; JSON type: string
The email associated with this party input. Optional. Python type: str; wire name: email; JSON type: string (email)
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class PublicStorage(ApiModel): 15 """Typed public storage data in the file resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``PublicFileStorage``. 24 """ 25 encoding: Literal['identity', 'br'] = field(init=False) 26 """Encoding of the stored representation. Required. Python type: ``Literal['identity', 'br']``; wire name: ``encoding``; JSON type: string. Constraints: allowed values ``identity``, ``br``""" 27 stored_size: int = field(init=False) 28 """Stored byte size after any lossless encoding. Required. Python type: ``int``; wire name: ``stored_size``; JSON type: integer (int64)"""
Typed public storage data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: PublicFileStorage.
Encoding of the stored representation. Required. Python type: Literal['identity', 'br']; wire name: encoding; JSON type: string. Constraints: allowed values identity, br
Stored byte size after any lossless encoding. Required. Python type: int; wire name: stored_size; JSON type: integer (int64)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Resource(ApiModel): 14 """Typed resource data in the file resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileResource``. 23 """ 24 type: str | None = field(init=False) 25 """Discriminator identifying the resource type. Optional; nullable. Python type: ``str | None``; wire name: ``type``; JSON type: string""" 26 id: str | None = field(init=False) 27 """Unique identifier for this resource. Optional; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string""" 28 name: str | None = field(init=False) 29 """Human-readable name of the resource. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string"""
Typed resource data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileResource.
Discriminator identifying the resource type. Optional; nullable. Python type: str | None; wire name: type; JSON type: string
Unique identifier for this resource. Optional; nullable. Python type: str | None; wire name: id; JSON type: string
Human-readable name of the resource. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ResourceInput(ApiRequest): 14 """Parameters accepted by the resource input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FileResourceInput``. 21 """ 22 type: str | UnsetType = field(default=UNSET) 23 """Discriminator identifying the resource input type. Optional. Python type: ``str``; wire name: ``type``; JSON type: string""" 24 id: str | UnsetType = field(default=UNSET) 25 """Unique identifier for this resource input. Optional. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 name: str | UnsetType = field(default=UNSET) 27 """Human-readable name of the resource input. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
Parameters accepted by the resource input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FileResourceInput.
Discriminator identifying the resource input type. Optional. Python type: str; wire name: type; JSON type: string
Unique identifier for this resource input. Optional. Python type: str; wire name: id; JSON type: string
Human-readable name of the resource input. Optional. Python type: str; wire name: name; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Response(ApiModel): 14 """Typed response returned by the response operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FileResponse``. 23 """ 24 file: File = field(init=False) 25 """Public file metadata. Storage provider details, object keys, and idempotency internals are not exposed. Required. Python type: ``File``; wire name: ``file``; JSON type: object (FileObject)"""
Typed response returned by the response operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileResponse.
11class ScanStatus(WireEnum): 12 """Typed scan status data in the file resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileScanStatus``. 18 """ 19 PENDING = "pending" 20 """Wire value ``pending`` (pending)""" 21 PASSED = "passed" 22 """Wire value ``passed`` (passed)""" 23 FAILED = "failed" 24 """Wire value ``failed`` (failed)""" 25 SKIPPED = "skipped" 26 """Wire value ``skipped`` (skipped)"""
Typed scan status data in the file resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileScanStatus.
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Source(ApiModel): 15 """Typed source data in the file resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FileSource``. 24 """ 25 type: Literal['direct', 'upload_request', 'service'] | None = field(init=False) 26 """Discriminator identifying the source type. Optional; nullable. Python type: ``Literal['direct', 'upload_request', 'service'] | None``; wire name: ``type``; JSON type: string. Constraints: allowed values ``direct``, ``upload_request``, ``service``""" 27 service: str | None = field(init=False) 28 """The service associated with this source. Optional; nullable. Python type: ``str | None``; wire name: ``service``; JSON type: string""" 29 upload_request_id: str | None = field(init=False) 30 """Identifier of the related upload request. Optional; nullable. Python type: ``str | None``; wire name: ``upload_request_id``; JSON type: string"""
Typed source data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileSource.
The service associated with this source. Optional; nullable. Python type: str | None; wire name: service; JSON type: string
Identifier of the related upload request. Optional; nullable. Python type: str | None; wire name: upload_request_id; JSON type: string
11class SourceType(WireEnum): 12 """Typed source type data in the file resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileSourceType``. 18 """ 19 DIRECT = "direct" 20 """Wire value ``direct`` (direct)""" 21 UPLOAD_REQUEST = "upload_request" 22 """Wire value ``upload_request`` (upload request)""" 23 SERVICE = "service" 24 """Wire value ``service`` (service)"""
Typed source type data in the file resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileSourceType.
Wire value upload_request (upload request)
11class Status(WireEnum): 12 """Typed status data in the file resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileStatus``. 18 """ 19 UPLOADING = "uploading" 20 """Wire value ``uploading`` (uploading)""" 21 PROCESSING = "processing" 22 """Wire value ``processing`` (processing)""" 23 AVAILABLE = "available" 24 """Wire value ``available`` (available)""" 25 FAILED = "failed" 26 """Wire value ``failed`` (failed)""" 27 DELETED = "deleted" 28 """Wire value ``deleted`` (deleted)"""
Typed status data in the file resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileStatus.
11class StorageEncoding(WireEnum): 12 """Encoding of the stored representation. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``FileStorageEncoding``. 18 """ 19 IDENTITY = "identity" 20 """Wire value ``identity`` (identity) for encoding of the stored representation""" 21 BROTLI = "br" 22 """Wire value ``br`` (brotli) for encoding of the stored representation"""
Encoding of the stored representation.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: FileStorageEncoding.
Wire value identity (identity) for encoding of the stored representation
Wire value br (brotli) for encoding of the stored representation
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class UploadReceipt(ApiModel): 16 """Typed upload receipt data in the file resource namespace. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 24 API contract schema: ``FileUploadReceipt``. 25 """ 26 content_type: str = field(init=False) 27 """The content type associated with this upload receipt. Required. Python type: ``str``; wire name: ``content_type``; JSON type: string""" 28 created_at: datetime = field(init=False) 29 """When the upload receipt was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 30 filename: str | None = field(init=False) 31 """The filename associated with this upload receipt. Optional; nullable. Python type: ``str | None``; wire name: ``filename``; JSON type: string""" 32 id: str = field(init=False) 33 """Unique identifier for this upload receipt. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 34 name: str | None = field(init=False) 35 """Human-readable name of the upload receipt. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 36 size: int = field(init=False) 37 """Numeric size used by this operation. Required. Python type: ``int``; wire name: ``size``; JSON type: integer (int64). Constraints: minimum 0""" 38 status: Literal['uploading', 'processing', 'available', 'failed', 'deleted'] = field(init=False) 39 """Current lifecycle status of the upload receipt. Required. Python type: ``Literal['uploading', 'processing', 'available', 'failed', 'deleted']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``uploading``, ``processing``, ``available``, ``failed``, ``deleted``"""
Typed upload receipt data in the file resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileUploadReceipt.
The content type associated with this upload receipt. Required. Python type: str; wire name: content_type; JSON type: string
When the upload receipt was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
The filename associated with this upload receipt. Optional; nullable. Python type: str | None; wire name: filename; JSON type: string
Unique identifier for this upload receipt. Required. Python type: str; wire name: id; JSON type: string
Human-readable name of the upload receipt. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
Numeric size used by this operation. Required. Python type: int; wire name: size; JSON type: integer (int64). Constraints: minimum 0
Current lifecycle status of the upload receipt. Required. Python type: Literal['uploading', 'processing', 'available', 'failed', 'deleted']; wire name: status; JSON type: string. Constraints: allowed values uploading, processing, available, failed, deleted