inttegro.upload_request
Models, requests, and enums for the Inttegro upload request resource.
The primary returned object is inttegro.upload_request.UploadRequest. 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 upload request resource. 2 3The primary returned object is ``inttegro.upload_request.UploadRequest``. 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 .attempt import Attempt as Attempt 11 from .attempts import Attempts as Attempts 12 from .attempts_request import AttemptsRequest as AttemptsRequest 13 from .cancel_request import CancelRequest as CancelRequest 14 from .constraints import Constraints as Constraints 15 from .constraints_input import ConstraintsInput as ConstraintsInput 16 from .create_request import CreateRequest as CreateRequest 17 from .display import Display as Display 18 from .display_input import DisplayInput as DisplayInput 19 from .latest_error import LatestError as LatestError 20 from .lookup_request import LookupRequest as LookupRequest 21 from .page import Page as Page 22 from .page_request import PageRequest as PageRequest 23 from .page_response import PageResponse as PageResponse 24 from .response import Response as Response 25 from .review import Review as Review 26 from .review_attempt_by_id_request import ReviewAttemptByIDRequest as ReviewAttemptByIDRequest 27 from .review_attempt_by_ordinal_request import ReviewAttemptByOrdinalRequest as ReviewAttemptByOrdinalRequest 28 from .review_attempt_request import ReviewAttemptRequest as ReviewAttemptRequest 29 from .review_decision import ReviewDecision as ReviewDecision 30 from .review_reason import ReviewReason as ReviewReason 31 from .review_reason_input import ReviewReasonInput as ReviewReasonInput 32 from .review_type import ReviewType as ReviewType 33 from .status import Status as Status 34 from .upload_request import UploadRequest as UploadRequest 35 from .with_attempt_object import WithAttemptObject as WithAttemptObject 36 from .with_attempt_response import WithAttemptResponse as WithAttemptResponse 37 38 39_EXPORTS: dict[str, tuple[str, str]] = { 40 "Actor": ("inttegro.upload_request.actor", "Actor"), 41 "Attempt": ("inttegro.upload_request.attempt", "Attempt"), 42 "Attempts": ("inttegro.upload_request.attempts", "Attempts"), 43 "AttemptsRequest": ("inttegro.upload_request.attempts_request", "AttemptsRequest"), 44 "CancelRequest": ("inttegro.upload_request.cancel_request", "CancelRequest"), 45 "Constraints": ("inttegro.upload_request.constraints", "Constraints"), 46 "ConstraintsInput": ("inttegro.upload_request.constraints_input", "ConstraintsInput"), 47 "CreateRequest": ("inttegro.upload_request.create_request", "CreateRequest"), 48 "Display": ("inttegro.upload_request.display", "Display"), 49 "DisplayInput": ("inttegro.upload_request.display_input", "DisplayInput"), 50 "LatestError": ("inttegro.upload_request.latest_error", "LatestError"), 51 "LookupRequest": ("inttegro.upload_request.lookup_request", "LookupRequest"), 52 "Page": ("inttegro.upload_request.page", "Page"), 53 "PageRequest": ("inttegro.upload_request.page_request", "PageRequest"), 54 "PageResponse": ("inttegro.upload_request.page_response", "PageResponse"), 55 "Response": ("inttegro.upload_request.response", "Response"), 56 "Review": ("inttegro.upload_request.review", "Review"), 57 "ReviewAttemptByIDRequest": ("inttegro.upload_request.review_attempt_by_id_request", "ReviewAttemptByIDRequest"), 58 "ReviewAttemptByOrdinalRequest": ("inttegro.upload_request.review_attempt_by_ordinal_request", "ReviewAttemptByOrdinalRequest"), 59 "ReviewAttemptRequest": ("inttegro.upload_request.review_attempt_request", "ReviewAttemptRequest"), 60 "ReviewDecision": ("inttegro.upload_request.review_decision", "ReviewDecision"), 61 "ReviewReason": ("inttegro.upload_request.review_reason", "ReviewReason"), 62 "ReviewReasonInput": ("inttegro.upload_request.review_reason_input", "ReviewReasonInput"), 63 "ReviewType": ("inttegro.upload_request.review_type", "ReviewType"), 64 "Status": ("inttegro.upload_request.status", "Status"), 65 "UploadRequest": ("inttegro.upload_request.upload_request", "UploadRequest"), 66 "WithAttemptObject": ("inttegro.upload_request.with_attempt_object", "WithAttemptObject"), 67 "WithAttemptResponse": ("inttegro.upload_request.with_attempt_response", "WithAttemptResponse"), 68} 69 70__all__ = [ 71 "Actor", 72 "Attempt", 73 "Attempts", 74 "AttemptsRequest", 75 "CancelRequest", 76 "Constraints", 77 "ConstraintsInput", 78 "CreateRequest", 79 "Display", 80 "DisplayInput", 81 "LatestError", 82 "LookupRequest", 83 "Page", 84 "PageRequest", 85 "PageResponse", 86 "Response", 87 "Review", 88 "ReviewAttemptByIDRequest", 89 "ReviewAttemptByOrdinalRequest", 90 "ReviewAttemptRequest", 91 "ReviewDecision", 92 "ReviewReason", 93 "ReviewReasonInput", 94 "ReviewType", 95 "Status", 96 "UploadRequest", 97 "WithAttemptObject", 98 "WithAttemptResponse", 99] 100 101 102def __getattr__(name: str) -> Any: 103 """Load a public resource type on first access.""" 104 try: 105 module_name, attribute_name = _EXPORTS[name] 106 except KeyError: 107 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 108 value = getattr(import_module(module_name), attribute_name) 109 globals()[name] = value 110 return value
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Actor(ApiModel): 14 """Typed actor data in the upload request 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: ``UploadRequestActor``. 23 """ 24 email: str | None = field(init=False) 25 """The email associated with this actor. Optional; nullable. Python type: ``str | None``; wire name: ``email``; 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 type: str = field(init=False) 31 """Discriminator identifying the actor type. Required. Python type: ``str``; wire name: ``type``; JSON type: string"""
Typed actor data in the upload request 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: UploadRequestActor.
The email associated with this actor. Optional; nullable. Python type: str | None; wire name: email; 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
Discriminator identifying the actor type. Required. Python type: str; wire name: type; JSON type: string
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Attempt(ApiModel): 15 """Typed attempt data in the upload request 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: ``UploadRequestAttempt``. 24 """ 25 attempted_at: datetime = field(init=False) 26 """Timestamp for attempted at. Required. Python type: ``datetime``; wire name: ``attempted_at``; JSON type: string (date-time)""" 27 content_type: str | None = field(init=False) 28 """The content type associated with this attempt. Optional; nullable. Python type: ``str | None``; wire name: ``content_type``; JSON type: string""" 29 declared_size: int | None = field(init=False) 30 """The declared size associated with this attempt. Optional; nullable. Python type: ``int | None``; wire name: ``declared_size``; JSON type: integer (int64). Constraints: minimum 0""" 31 error: UploadRequestLatestError | None = field(init=False) 32 """The error associated with this attempt. Optional; nullable. Python type: ``UploadRequestLatestError | None``; wire name: ``error``; JSON type: object (UploadRequestLatestError)""" 33 failed_at: datetime | None = field(init=False) 34 """When the attempt failed. Optional; nullable. Python type: ``datetime | None``; wire name: ``failed_at``; JSON type: string (date-time)""" 35 file_id: str | None = field(init=False) 36 """Identifier of the related file. Optional; nullable. Python type: ``str | None``; wire name: ``file_id``; JSON type: string""" 37 filename: str | None = field(init=False) 38 """The filename associated with this attempt. Optional; nullable. Python type: ``str | None``; wire name: ``filename``; JSON type: string""" 39 id: str = field(init=False) 40 """Unique identifier for this attempt. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 41 ordinal: int = field(init=False) 42 """The ordinal associated with this attempt. Required. Python type: ``int``; wire name: ``ordinal``; JSON type: integer (int64). Constraints: minimum 1""" 43 review: UploadRequestReview | None = field(init=False) 44 """The review associated with this attempt. Optional; nullable. Python type: ``UploadRequestReview | None``; wire name: ``review``; JSON type: object (UploadRequestReview)""" 45 status: str = field(init=False) 46 """Current lifecycle status of the attempt. Required. Python type: ``str``; wire name: ``status``; JSON type: string""" 47 succeeded_at: datetime | None = field(init=False) 48 """Timestamp for succeeded at. Optional; nullable. Python type: ``datetime | None``; wire name: ``succeeded_at``; JSON type: string (date-time)""" 49 upload_request_id: str = field(init=False) 50 """Identifier of the related upload request. Required. Python type: ``str``; wire name: ``upload_request_id``; JSON type: string"""
Typed attempt data in the upload request 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: UploadRequestAttempt.
Timestamp for attempted at. Required. Python type: datetime; wire name: attempted_at; JSON type: string (date-time)
The content type associated with this attempt. Optional; nullable. Python type: str | None; wire name: content_type; JSON type: string
The declared size associated with this attempt. Optional; nullable. Python type: int | None; wire name: declared_size; JSON type: integer (int64). Constraints: minimum 0
The error associated with this attempt. Optional; nullable. Python type: UploadRequestLatestError | None; wire name: error; JSON type: object (UploadRequestLatestError)
When the attempt failed. Optional; nullable. Python type: datetime | None; wire name: failed_at; JSON type: string (date-time)
Identifier of the related file. Optional; nullable. Python type: str | None; wire name: file_id; JSON type: string
The filename associated with this attempt. Optional; nullable. Python type: str | None; wire name: filename; JSON type: string
Unique identifier for this attempt. Required. Python type: str; wire name: id; JSON type: string
The ordinal associated with this attempt. Required. Python type: int; wire name: ordinal; JSON type: integer (int64). Constraints: minimum 1
The review associated with this attempt. Optional; nullable. Python type: UploadRequestReview | None; wire name: review; JSON type: object (UploadRequestReview)
Current lifecycle status of the attempt. Required. Python type: str; wire name: status; JSON type: string
Timestamp for succeeded at. Optional; nullable. Python type: datetime | None; wire name: succeeded_at; JSON type: string (date-time)
Identifier of the related upload request. Required. Python type: str; wire name: upload_request_id; JSON type: string
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Attempts(ApiModel): 15 """Typed attempts data in the upload request 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: ``UploadRequestAttempts``. 24 """ 25 max_attempts: int | None = field(init=False) 26 """The max attempts associated with this attempt. Optional; nullable. Python type: ``int | None``; wire name: ``max_attempts``; JSON type: integer (int64)""" 27 attempt_count: int = field(init=False) 28 """The attempt count associated with this attempt. Required. Python type: ``int``; wire name: ``attempt_count``; JSON type: integer (int64)""" 29 failed_attempt_count: int = field(init=False) 30 """The failed attempt count associated with this attempt. Required. Python type: ``int``; wire name: ``failed_attempt_count``; JSON type: integer (int64)""" 31 last_attempted_at: datetime | None = field(init=False) 32 """Timestamp for last attempted at. Optional; nullable. Python type: ``datetime | None``; wire name: ``last_attempted_at``; JSON type: string (date-time)"""
Typed attempts data in the upload request 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: UploadRequestAttempts.
The max attempts associated with this attempt. Optional; nullable. Python type: int | None; wire name: max_attempts; JSON type: integer (int64)
The attempt count associated with this attempt. Required. Python type: int; wire name: attempt_count; JSON type: integer (int64)
The failed attempt count associated with this attempt. Required. Python type: int; wire name: failed_attempt_count; JSON type: integer (int64)
Timestamp for last attempted at. Optional; nullable. Python type: datetime | None; wire name: last_attempted_at; JSON type: string (date-time)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class AttemptsRequest(ApiRequest): 14 """Parameters accepted by the attempts 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: ``UploadRequestAttemptsRequest``. 21 """ 22 max_attempts: int | UnsetType = field(default=UNSET) 23 """The max attempts associated with this attempts request. Optional. Python type: ``int``; wire name: ``max_attempts``; JSON type: integer (int64). Constraints: minimum 0"""
Parameters accepted by the attempts 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: UploadRequestAttemptsRequest.
The max attempts associated with this attempts request. Optional. Python type: int; wire name: max_attempts; JSON type: integer (int64). Constraints: minimum 0
12@dataclass(frozen=True, slots=True, kw_only=True) 13class CancelRequest(ApiRequest): 14 """Parameters accepted by the cancel 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: ``CancelUploadRequestRequest``. 21 """ 22 canceled_by: FileActorInput | UnsetType = field(default=UNSET) 23 """The canceled by associated with this cancel request. Optional. Python type: ``FileActorInput``; wire name: ``canceled_by``; JSON type: object (FileActorInput)""" 24 id: str 25 """Unique identifier for this cancel request. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
Parameters accepted by the cancel 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: CancelUploadRequestRequest.
The canceled by associated with this cancel request. Optional. Python type: FileActorInput; wire name: canceled_by; JSON type: object (FileActorInput)
Unique identifier for this cancel request. Required. Python type: str; wire name: id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Constraints(ApiModel): 14 """Typed constraints data in the upload request 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: ``UploadRequestConstraints``. 23 """ 24 min_size: int | None = field(init=False) 25 """The min size associated with this constraint. Optional; nullable. Python type: ``int | None``; wire name: ``min_size``; JSON type: integer (int64)""" 26 max_size: int | None = field(init=False) 27 """The max size associated with this constraint. Optional; nullable. Python type: ``int | None``; wire name: ``max_size``; JSON type: integer (int64)""" 28 exact_size: int | None = field(init=False) 29 """The exact size associated with this constraint. Optional; nullable. Python type: ``int | None``; wire name: ``exact_size``; JSON type: integer (int64)""" 30 content_types: list[str] | None = field(init=False) 31 """The content types associated with this constraint. Optional; nullable. Python type: ``list[str] | None``; wire name: ``content_types``; JSON type: array of string values""" 32 extensions: list[str] | None = field(init=False) 33 """The extensions associated with this constraint. Optional; nullable. Python type: ``list[str] | None``; wire name: ``extensions``; JSON type: array of string values""" 34 filename: str | None = field(init=False) 35 """The filename associated with this constraint. Optional; nullable. Python type: ``str | None``; wire name: ``filename``; JSON type: string"""
Typed constraints data in the upload request 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: UploadRequestConstraints.
The min size associated with this constraint. Optional; nullable. Python type: int | None; wire name: min_size; JSON type: integer (int64)
The max size associated with this constraint. Optional; nullable. Python type: int | None; wire name: max_size; JSON type: integer (int64)
The exact size associated with this constraint. Optional; nullable. Python type: int | None; wire name: exact_size; JSON type: integer (int64)
The content types associated with this constraint. Optional; nullable. Python type: list[str] | None; wire name: content_types; JSON type: array of string values
The extensions associated with this constraint. Optional; nullable. Python type: list[str] | None; wire name: extensions; JSON type: array of string values
The filename associated with this constraint. Optional; nullable. Python type: str | None; wire name: filename; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ConstraintsInput(ApiRequest): 14 """Parameters accepted by the constraints 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: ``UploadRequestConstraintsInput``. 21 """ 22 min_size: int | UnsetType = field(default=UNSET) 23 """The min size associated with this constraints input. Optional. Python type: ``int``; wire name: ``min_size``; JSON type: integer (int64)""" 24 max_size: int | UnsetType = field(default=UNSET) 25 """The max size associated with this constraints input. Optional. Python type: ``int``; wire name: ``max_size``; JSON type: integer (int64)""" 26 exact_size: int | UnsetType = field(default=UNSET) 27 """The exact size associated with this constraints input. Optional. Python type: ``int``; wire name: ``exact_size``; JSON type: integer (int64)""" 28 content_types: list[str] | UnsetType = field(default=UNSET) 29 """The content types associated with this constraints input. Optional. Python type: ``list[str]``; wire name: ``content_types``; JSON type: array of string values""" 30 extensions: list[str] | UnsetType = field(default=UNSET) 31 """The extensions associated with this constraints input. Optional. Python type: ``list[str]``; wire name: ``extensions``; JSON type: array of string values""" 32 filename: str | UnsetType = field(default=UNSET) 33 """The filename associated with this constraints input. Optional. Python type: ``str``; wire name: ``filename``; JSON type: string"""
Parameters accepted by the constraints 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: UploadRequestConstraintsInput.
The min size associated with this constraints input. Optional. Python type: int; wire name: min_size; JSON type: integer (int64)
The max size associated with this constraints input. Optional. Python type: int; wire name: max_size; JSON type: integer (int64)
The exact size associated with this constraints input. Optional. Python type: int; wire name: exact_size; JSON type: integer (int64)
The content types associated with this constraints input. Optional. Python type: list[str]; wire name: content_types; JSON type: array of string values
The extensions associated with this constraints input. Optional. Python type: list[str]; wire name: extensions; JSON type: array of string values
The filename associated with this constraints input. Optional. Python type: str; wire name: filename; JSON type: string
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CreateRequest(ApiRequest): 15 """Parameters accepted by the create 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: ``CreateUploadRequestRequest``. 22 """ 23 constraints: UploadRequestConstraintsInput | UnsetType = field(default=UNSET) 24 """The constraints associated with this create request. Optional. Python type: ``UploadRequestConstraintsInput``; wire name: ``constraints``; JSON type: object (UploadRequestConstraints)""" 25 display: UploadRequestDisplayInput | UnsetType = field(default=UNSET) 26 """The display associated with this create request. Optional. Python type: ``UploadRequestDisplayInput``; wire name: ``display``; JSON type: object (UploadRequestDisplay)""" 27 subject: FilePartyInput | UnsetType = field(default=UNSET) 28 """The subject associated with this create request. Optional. Python type: ``FilePartyInput``; wire name: ``subject``; JSON type: object (FileParty)""" 29 recipient: FilePartyInput | UnsetType = field(default=UNSET) 30 """The recipient associated with this create request. Optional. Python type: ``FilePartyInput``; wire name: ``recipient``; JSON type: object (FileParty)""" 31 resource: FileResourceInput | UnsetType = field(default=UNSET) 32 """The resource associated with this create request. Optional. Python type: ``FileResourceInput``; wire name: ``resource``; JSON type: object (FileResource)""" 33 requester: FileActorInput | UnsetType = field(default=UNSET) 34 """The requester associated with this create request. Optional. Python type: ``FileActorInput``; wire name: ``requester``; JSON type: object (FileActorInput)""" 35 attempts: UploadRequestAttemptsRequest | UnsetType = field(default=UNSET) 36 """The attempts associated with this create request. Optional. Python type: ``UploadRequestAttemptsRequest``; wire name: ``attempts``; JSON type: object (UploadRequestAttemptsRequest)""" 37 custom_data: CustomData | UnsetType = field(default=UNSET) 38 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: ``CustomData``; wire name: ``custom_data``; JSON type: object (CustomData)""" 39 expires_at: datetime | UnsetType = field(default=UNSET) 40 """Timestamp for expires at. Optional. Python type: ``datetime``; wire name: ``expires_at``; JSON type: string (date-time)""" 41 purpose: str 42 """The purpose associated with this create request. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
Parameters accepted by the create 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: CreateUploadRequestRequest.
The constraints associated with this create request. Optional. Python type: UploadRequestConstraintsInput; wire name: constraints; JSON type: object (UploadRequestConstraints)
The display associated with this create request. Optional. Python type: UploadRequestDisplayInput; wire name: display; JSON type: object (UploadRequestDisplay)
The subject associated with this create request. Optional. Python type: FilePartyInput; wire name: subject; JSON type: object (FileParty)
The recipient associated with this create request. Optional. Python type: FilePartyInput; wire name: recipient; JSON type: object (FileParty)
The resource associated with this create request. Optional. Python type: FileResourceInput; wire name: resource; JSON type: object (FileResource)
The requester associated with this create request. Optional. Python type: FileActorInput; wire name: requester; JSON type: object (FileActorInput)
The attempts associated with this create request. Optional. Python type: UploadRequestAttemptsRequest; wire name: attempts; JSON type: object (UploadRequestAttemptsRequest)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: CustomData; wire name: custom_data; JSON type: object (CustomData)
Timestamp for expires at. Optional. Python type: datetime; wire name: expires_at; JSON type: string (date-time)
The purpose associated with this create request. Required. Python type: str; wire name: purpose; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Display(ApiModel): 14 """Typed display data in the upload request 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: ``UploadRequestDisplay``. 23 """ 24 title: str | None = field(init=False) 25 """The title associated with this display. Optional; nullable. Python type: ``str | None``; wire name: ``title``; JSON type: string""" 26 description: str | None = field(init=False) 27 """Human-readable description of the display. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 28 help_text: str | None = field(init=False) 29 """The help text associated with this display. Optional; nullable. Python type: ``str | None``; wire name: ``help_text``; JSON type: string"""
Typed display data in the upload request 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: UploadRequestDisplay.
The title associated with this display. Optional; nullable. Python type: str | None; wire name: title; JSON type: string
Human-readable description of the display. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
The help text associated with this display. Optional; nullable. Python type: str | None; wire name: help_text; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DisplayInput(ApiRequest): 14 """Parameters accepted by the display 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: ``UploadRequestDisplayInput``. 21 """ 22 title: str | UnsetType = field(default=UNSET) 23 """The title associated with this display input. Optional. Python type: ``str``; wire name: ``title``; JSON type: string""" 24 description: str | UnsetType = field(default=UNSET) 25 """Human-readable description of the display input. Optional. Python type: ``str``; wire name: ``description``; JSON type: string""" 26 help_text: str | UnsetType = field(default=UNSET) 27 """The help text associated with this display input. Optional. Python type: ``str``; wire name: ``help_text``; JSON type: string"""
Parameters accepted by the display 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: UploadRequestDisplayInput.
The title associated with this display input. Optional. Python type: str; wire name: title; JSON type: string
Human-readable description of the display input. Optional. Python type: str; wire name: description; JSON type: string
The help text associated with this display input. Optional. Python type: str; wire name: help_text; JSON type: string
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class LatestError(ApiModel): 15 """Typed latest error data in the upload request 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: ``UploadRequestLatestError``. 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 param: str | None = field(init=False) 28 """The param associated with this latest error. Optional; nullable. Python type: ``str | None``; wire name: ``param``; JSON type: string""" 29 message: str | None = field(init=False) 30 """The message associated with this latest error. Optional; nullable. Python type: ``str | None``; wire name: ``message``; JSON type: string""" 31 retryable: bool | None = field(init=False) 32 """Whether retryable. Optional; nullable. Python type: ``bool | None``; wire name: ``retryable``; JSON type: boolean""" 33 at: datetime | None = field(init=False) 34 """Timestamp for at. Optional; nullable. Python type: ``datetime | None``; wire name: ``at``; JSON type: string (date-time)"""
Typed latest error data in the upload request 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: UploadRequestLatestError.
The code associated with this latest error. Optional; nullable. Python type: str | None; wire name: code; JSON type: string
The param associated with this latest error. Optional; nullable. Python type: str | None; wire name: param; 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: ``LookupUploadRequestRequest``. 21 """ 22 id: str 23 """Unique identifier for this lookup request. Required. Python type: ``str``; wire name: ``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: LookupUploadRequestRequest.
Unique identifier for this lookup request. Required. Python type: str; wire name: id; 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: ``UploadRequestPage``. 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 upload_requests: list[UploadRequest] = field(init=False) 29 """The upload requests associated with this page. Required. Python type: ``list[UploadRequest]``; wire name: ``upload_requests``; JSON type: array of object (UploadRequestObject) 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: UploadRequestPage.
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
The upload requests associated with this page. Required. Python type: list[UploadRequest]; wire name: upload_requests; JSON type: array of object (UploadRequestObject) values
13@dataclass(frozen=True, slots=True, kw_only=True) 14class PageRequest(ApiRequest): 15 """Parameters accepted by the page 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: ``PageUploadRequestsRequest``. 22 """ 23 purpose: str | UnsetType = field(default=UNSET) 24 """The purpose associated with this page request. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 25 status: Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed', UploadRequestStatus.PENDING, UploadRequestStatus.UPLOADING, UploadRequestStatus.FULFILLED, UploadRequestStatus.EXPIRED, UploadRequestStatus.CANCELED, UploadRequestStatus.FAILED] | UnsetType = field(default=UNSET) 26 """Current lifecycle status of the page request. Optional. Python type: ``Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed', UploadRequestStatus.PENDING, UploadRequestStatus.UPLOADING, UploadRequestStatus.FULFILLED, UploadRequestStatus.EXPIRED, UploadRequestStatus.CANCELED, UploadRequestStatus.FAILED]``; wire name: ``status``; JSON type: string. Constraints: allowed values ``pending``, ``uploading``, ``fulfilled``, ``expired``, ``canceled``, ``failed``""" 27 resource: FileResourceInput | UnsetType = field(default=UNSET) 28 """The resource associated with this page request. Optional. Python type: ``FileResourceInput``; wire name: ``resource``; JSON type: object (FileResource)""" 29 page_number: int | UnsetType = field(default=UNSET) 30 """The page number associated with this page request. Optional. Python type: ``int``; wire name: ``page_number``; JSON type: integer. Constraints: minimum 1""" 31 page_size: int | UnsetType = field(default=UNSET) 32 """The page size associated with this page request. Optional. Python type: ``int``; wire name: ``page_size``; JSON type: integer. Constraints: minimum 1"""
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: PageUploadRequestsRequest.
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['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed', UploadRequestStatus.PENDING, UploadRequestStatus.UPLOADING, UploadRequestStatus.FULFILLED, UploadRequestStatus.EXPIRED, UploadRequestStatus.CANCELED, UploadRequestStatus.FAILED]; wire name: status; JSON type: string. Constraints: allowed values pending, uploading, fulfilled, expired, canceled, failed
The resource associated with this page request. Optional. Python type: FileResourceInput; wire name: resource; JSON type: object (FileResource)
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
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: ``UploadRequestPageResponse``. 23 """ 24 page: UploadRequestPage = field(init=False) 25 """Numeric page used by this operation. Required. Python type: ``UploadRequestPage``; wire name: ``page``; JSON type: object (UploadRequestPage)"""
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: UploadRequestPageResponse.
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: ``UploadRequestResponse``. 23 """ 24 upload_request: UploadRequest = field(init=False) 25 """Public upload request metadata. Token hashes are not exposed. Required. Python type: ``UploadRequest``; wire name: ``upload_request``; JSON type: object (UploadRequestObject)"""
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: UploadRequestResponse.
Public upload request metadata. Token hashes are not exposed. Required. Python type: UploadRequest; wire name: upload_request; JSON type: object (UploadRequestObject)
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class Review(ApiModel): 16 """Typed review data in the upload request 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: ``UploadRequestReview``. 25 """ 26 created_at: datetime = field(init=False) 27 """When the review was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 28 decision: Literal['approved', 'rejected'] = field(init=False) 29 """The decision associated with this review. Required. Python type: ``Literal['approved', 'rejected']``; wire name: ``decision``; JSON type: string. Constraints: allowed values ``approved``, ``rejected``""" 30 file_id: str | None = field(init=False) 31 """Identifier of the related file. Optional; nullable. Python type: ``str | None``; wire name: ``file_id``; JSON type: string""" 32 public_message: str | None = field(init=False) 33 """The public message associated with this review. Optional; nullable. Python type: ``str | None``; wire name: ``public_message``; JSON type: string""" 34 reasons: list[UploadRequestReviewReason] | None = field(init=False) 35 """The reasons associated with this review. Optional; nullable. Python type: ``list[UploadRequestReviewReason] | None``; wire name: ``reasons``; JSON type: array of object (UploadRequestReviewReason) values""" 36 reviewed_at: datetime = field(init=False) 37 """Timestamp for reviewed at. Required. Python type: ``datetime``; wire name: ``reviewed_at``; JSON type: string (date-time)""" 38 type: Literal['automatic', 'manual'] = field(init=False) 39 """Discriminator identifying the review type. Required. Python type: ``Literal['automatic', 'manual']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``automatic``, ``manual``"""
Typed review data in the upload request 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: UploadRequestReview.
When the review was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
The decision associated with this review. Required. Python type: Literal['approved', 'rejected']; wire name: decision; JSON type: string. Constraints: allowed values approved, rejected
Identifier of the related file. Optional; nullable. Python type: str | None; wire name: file_id; JSON type: string
The public message associated with this review. Optional; nullable. Python type: str | None; wire name: public_message; JSON type: string
The reasons associated with this review. Optional; nullable. Python type: list[UploadRequestReviewReason] | None; wire name: reasons; JSON type: array of object (UploadRequestReviewReason) values
Timestamp for reviewed at. Required. Python type: datetime; wire name: reviewed_at; JSON type: string (date-time)
Discriminator identifying the review type. Required. Python type: Literal['automatic', 'manual']; wire name: type; JSON type: string. Constraints: allowed values automatic, manual
13@dataclass(frozen=True, slots=True, kw_only=True) 14class ReviewAttemptByIDRequest(ApiRequest): 15 """Parameters accepted by the review attempt by idrequest 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: ``ReviewUploadRequestAttemptByIDRequest``. 22 """ 23 public_message: str | UnsetType = field(default=UNSET) 24 """The public message associated with this review attempt by idrequest. Optional. Python type: ``str``; wire name: ``public_message``; JSON type: string""" 25 reasons: list[UploadRequestReviewReasonInput] | UnsetType = field(default=UNSET) 26 """The reasons associated with this review attempt by idrequest. Optional. Python type: ``list[UploadRequestReviewReasonInput]``; wire name: ``reasons``; JSON type: array of object (UploadRequestReviewReasonInput) values""" 27 attempt_id: str 28 """Identifier of the related attempt. Required. Python type: ``str``; wire name: ``attempt_id``; JSON type: string. Constraints: minimum length 1""" 29 decision: Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED] 30 """The decision associated with this review attempt by idrequest. Required. Python type: ``Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED]``; wire name: ``decision``; JSON type: string. Constraints: allowed values ``approved``, ``rejected``""" 31 id: str 32 """Unique identifier for this review attempt by idrequest. Required. Python type: ``str``; wire name: ``id``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the review attempt by idrequest 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: ReviewUploadRequestAttemptByIDRequest.
The public message associated with this review attempt by idrequest. Optional. Python type: str; wire name: public_message; JSON type: string
The reasons associated with this review attempt by idrequest. Optional. Python type: list[UploadRequestReviewReasonInput]; wire name: reasons; JSON type: array of object (UploadRequestReviewReasonInput) values
Identifier of the related attempt. Required. Python type: str; wire name: attempt_id; JSON type: string. Constraints: minimum length 1
The decision associated with this review attempt by idrequest. Required. Python type: Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED]; wire name: decision; JSON type: string. Constraints: allowed values approved, rejected
Unique identifier for this review attempt by idrequest. Required. Python type: str; wire name: id; JSON type: string. Constraints: minimum length 1
13@dataclass(frozen=True, slots=True, kw_only=True) 14class ReviewAttemptByOrdinalRequest(ApiRequest): 15 """Parameters accepted by the review attempt by ordinal 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: ``ReviewUploadRequestAttemptByOrdinalRequest``. 22 """ 23 public_message: str | UnsetType = field(default=UNSET) 24 """The public message associated with this review attempt by ordinal request. Optional. Python type: ``str``; wire name: ``public_message``; JSON type: string""" 25 reasons: list[UploadRequestReviewReasonInput] | UnsetType = field(default=UNSET) 26 """The reasons associated with this review attempt by ordinal request. Optional. Python type: ``list[UploadRequestReviewReasonInput]``; wire name: ``reasons``; JSON type: array of object (UploadRequestReviewReasonInput) values""" 27 attempt_ordinal: int 28 """The attempt ordinal associated with this review attempt by ordinal request. Required. Python type: ``int``; wire name: ``attempt_ordinal``; JSON type: integer (int64). Constraints: minimum 1""" 29 decision: Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED] 30 """The decision associated with this review attempt by ordinal request. Required. Python type: ``Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED]``; wire name: ``decision``; JSON type: string. Constraints: allowed values ``approved``, ``rejected``""" 31 id: str 32 """Unique identifier for this review attempt by ordinal request. Required. Python type: ``str``; wire name: ``id``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the review attempt by ordinal 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: ReviewUploadRequestAttemptByOrdinalRequest.
The public message associated with this review attempt by ordinal request. Optional. Python type: str; wire name: public_message; JSON type: string
The reasons associated with this review attempt by ordinal request. Optional. Python type: list[UploadRequestReviewReasonInput]; wire name: reasons; JSON type: array of object (UploadRequestReviewReasonInput) values
The attempt ordinal associated with this review attempt by ordinal request. Required. Python type: int; wire name: attempt_ordinal; JSON type: integer (int64). Constraints: minimum 1
The decision associated with this review attempt by ordinal request. Required. Python type: Literal['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED]; wire name: decision; JSON type: string. Constraints: allowed values approved, rejected
Unique identifier for this review attempt by ordinal request. Required. Python type: str; wire name: id; JSON type: string. Constraints: minimum length 1
11class ReviewDecision(WireEnum): 12 """Typed review decision data in the upload request 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: ``UploadReviewDecision``. 18 """ 19 APPROVED = "approved" 20 """Wire value ``approved`` (approved)""" 21 REJECTED = "rejected" 22 """Wire value ``rejected`` (rejected)"""
Typed review decision data in the upload request 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: UploadReviewDecision.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class ReviewReason(ApiModel): 14 """Typed review reason data in the upload request 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: ``UploadRequestReviewReason``. 23 """ 24 code: str = field(init=False) 25 """The code associated with this review reason. Required. Python type: ``str``; wire name: ``code``; JSON type: string. Constraints: minimum length 1""" 26 message: str = field(init=False) 27 """The message associated with this review reason. Required. Python type: ``str``; wire name: ``message``; JSON type: string. Constraints: minimum length 1""" 28 param: str | None = field(init=False) 29 """The param associated with this review reason. Optional; nullable. Python type: ``str | None``; wire name: ``param``; JSON type: string"""
Typed review reason data in the upload request 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: UploadRequestReviewReason.
The code associated with this review reason. Required. Python type: str; wire name: code; JSON type: string. Constraints: minimum length 1
The message associated with this review reason. Required. Python type: str; wire name: message; JSON type: string. Constraints: minimum length 1
The param associated with this review reason. Optional; nullable. Python type: str | None; wire name: param; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ReviewReasonInput(ApiRequest): 14 """Parameters accepted by the review reason 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: ``UploadRequestReviewReasonInput``. 21 """ 22 param: str | UnsetType = field(default=UNSET) 23 """The param associated with this review reason input. Optional. Python type: ``str``; wire name: ``param``; JSON type: string""" 24 code: str 25 """The code associated with this review reason input. Required. Python type: ``str``; wire name: ``code``; JSON type: string. Constraints: minimum length 1""" 26 message: str 27 """The message associated with this review reason input. Required. Python type: ``str``; wire name: ``message``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the review reason 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: UploadRequestReviewReasonInput.
The param associated with this review reason input. Optional. Python type: str; wire name: param; JSON type: string
The code associated with this review reason input. Required. Python type: str; wire name: code; JSON type: string. Constraints: minimum length 1
The message associated with this review reason input. Required. Python type: str; wire name: message; JSON type: string. Constraints: minimum length 1
11class ReviewType(WireEnum): 12 """Typed review type data in the upload request 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: ``UploadReviewType``. 18 """ 19 AUTOMATIC = "automatic" 20 """Wire value ``automatic`` (automatic)""" 21 MANUAL = "manual" 22 """Wire value ``manual`` (manual)"""
Typed review type data in the upload request 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: UploadReviewType.
11class Status(WireEnum): 12 """Typed status data in the upload request 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: ``UploadRequestStatus``. 18 """ 19 PENDING = "pending" 20 """Wire value ``pending`` (pending)""" 21 UPLOADING = "uploading" 22 """Wire value ``uploading`` (uploading)""" 23 FULFILLED = "fulfilled" 24 """Wire value ``fulfilled`` (fulfilled)""" 25 EXPIRED = "expired" 26 """Wire value ``expired`` (expired)""" 27 CANCELED = "canceled" 28 """Wire value ``canceled`` (canceled)""" 29 FAILED = "failed" 30 """Wire value ``failed`` (failed)"""
Typed status data in the upload request 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: UploadRequestStatus.
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class UploadRequest(ApiModel): 16 """Typed upload request data in the upload request 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 id: str = field(init=False) 25 """Unique identifier for this upload request. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 purpose: str = field(init=False) 27 """The purpose associated with this upload request. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 28 status: Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed'] = field(init=False) 29 """Current lifecycle status of the upload request. Required. Python type: ``Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``pending``, ``uploading``, ``fulfilled``, ``expired``, ``canceled``, ``failed``""" 30 active: bool = field(init=False) 31 """Whether the upload request is active. Required. Python type: ``bool``; wire name: ``active``; JSON type: boolean""" 32 file_id: str | None = field(init=False) 33 """Identifier of the related file. Optional; nullable. Python type: ``str | None``; wire name: ``file_id``; JSON type: string""" 34 upload_url: str | None = field(init=False) 35 """Public capability URL returned when available. Treat as bearer-secret material. Optional; nullable. Python type: ``str | None``; wire name: ``upload_url``; JSON type: string (uri)""" 36 constraints: UploadRequestConstraints = field(init=False) 37 """The constraints associated with this upload request. Required. Python type: ``UploadRequestConstraints``; wire name: ``constraints``; JSON type: object (UploadRequestConstraints)""" 38 display: UploadRequestDisplay = field(init=False) 39 """The display associated with this upload request. Required. Python type: ``UploadRequestDisplay``; wire name: ``display``; JSON type: object (UploadRequestDisplay)""" 40 subject: FileParty = field(init=False) 41 """The subject associated with this upload request. Required. Python type: ``FileParty``; wire name: ``subject``; JSON type: object (FileParty)""" 42 recipient: FileParty = field(init=False) 43 """The recipient associated with this upload request. Required. Python type: ``FileParty``; wire name: ``recipient``; JSON type: object (FileParty)""" 44 resource: FileResource = field(init=False) 45 """The resource associated with this upload request. Required. Python type: ``FileResource``; wire name: ``resource``; JSON type: object (FileResource)""" 46 requester: UploadRequestActor = field(init=False) 47 """The requester associated with this upload request. Required. Python type: ``UploadRequestActor``; wire name: ``requester``; JSON type: object (UploadRequestActor)""" 48 attempts: UploadRequestAttempts = field(init=False) 49 """The attempts associated with this upload request. Required. Python type: ``UploadRequestAttempts``; wire name: ``attempts``; JSON type: object (UploadRequestAttempts)""" 50 latest_error: UploadRequestLatestError | None = field(init=False) 51 """The latest error associated with this upload request. Optional; nullable. Python type: ``UploadRequestLatestError | None``; wire name: ``latest_error``; JSON type: object (UploadRequestLatestError)""" 52 canceled_by: UploadRequestActor | None = field(init=False) 53 """The canceled by associated with this upload request. Optional; nullable. Python type: ``UploadRequestActor | None``; wire name: ``canceled_by``; JSON type: object (UploadRequestActor)""" 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 upload request 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 upload request was last updated. Required. Python type: ``datetime``; wire name: ``updated_at``; JSON type: string (date-time)""" 62 expires_at: datetime = field(init=False) 63 """Timestamp for expires at. Required. Python type: ``datetime``; wire name: ``expires_at``; JSON type: string (date-time)""" 64 uploading_at: datetime | None = field(init=False) 65 """Timestamp for uploading at. Optional; nullable. Python type: ``datetime | None``; wire name: ``uploading_at``; JSON type: string (date-time)""" 66 fulfilled_at: datetime | None = field(init=False) 67 """Timestamp for fulfilled at. Optional; nullable. Python type: ``datetime | None``; wire name: ``fulfilled_at``; JSON type: string (date-time)""" 68 expired_at: datetime | None = field(init=False) 69 """When the upload request expired. Optional; nullable. Python type: ``datetime | None``; wire name: ``expired_at``; JSON type: string (date-time)""" 70 canceled_at: datetime | None = field(init=False) 71 """When the upload request was canceled. Optional; nullable. Python type: ``datetime | None``; wire name: ``canceled_at``; JSON type: string (date-time)""" 72 attempt: UploadRequestAttempt | None = field(init=False) 73 """The attempt associated with this upload request. Optional; nullable. Python type: ``UploadRequestAttempt | None``; wire name: ``attempt``; JSON type: object (UploadRequestAttempt)"""
Typed upload request data in the upload request 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.
Unique identifier for this upload request. Required. Python type: str; wire name: id; JSON type: string
The purpose associated with this upload request. Required. Python type: str; wire name: purpose; JSON type: string
Current lifecycle status of the upload request. Required. Python type: Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed']; wire name: status; JSON type: string. Constraints: allowed values pending, uploading, fulfilled, expired, canceled, failed
Whether the upload request is active. Required. Python type: bool; wire name: active; JSON type: boolean
Identifier of the related file. Optional; nullable. Python type: str | None; wire name: file_id; JSON type: string
Public capability URL returned when available. Treat as bearer-secret material. Optional; nullable. Python type: str | None; wire name: upload_url; JSON type: string (uri)
The constraints associated with this upload request. Required. Python type: UploadRequestConstraints; wire name: constraints; JSON type: object (UploadRequestConstraints)
The display associated with this upload request. Required. Python type: UploadRequestDisplay; wire name: display; JSON type: object (UploadRequestDisplay)
The subject associated with this upload request. Required. Python type: FileParty; wire name: subject; JSON type: object (FileParty)
The recipient associated with this upload request. Required. Python type: FileParty; wire name: recipient; JSON type: object (FileParty)
The resource associated with this upload request. Required. Python type: FileResource; wire name: resource; JSON type: object (FileResource)
The requester associated with this upload request. Required. Python type: UploadRequestActor; wire name: requester; JSON type: object (UploadRequestActor)
The attempts associated with this upload request. Required. Python type: UploadRequestAttempts; wire name: attempts; JSON type: object (UploadRequestAttempts)
The latest error associated with this upload request. Optional; nullable. Python type: UploadRequestLatestError | None; wire name: latest_error; JSON type: object (UploadRequestLatestError)
The canceled by associated with this upload request. Optional; nullable. Python type: UploadRequestActor | None; wire name: canceled_by; JSON type: object (UploadRequestActor)
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 upload request was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
When the upload request was last updated. Required. Python type: datetime; wire name: updated_at; JSON type: string (date-time)
Timestamp for expires at. Required. Python type: datetime; wire name: expires_at; JSON type: string (date-time)
Timestamp for uploading at. Optional; nullable. Python type: datetime | None; wire name: uploading_at; JSON type: string (date-time)
Timestamp for fulfilled at. Optional; nullable. Python type: datetime | None; wire name: fulfilled_at; JSON type: string (date-time)
When the upload request expired. Optional; nullable. Python type: datetime | None; wire name: expired_at; JSON type: string (date-time)
When the upload request was canceled. Optional; nullable. Python type: datetime | None; wire name: canceled_at; JSON type: string (date-time)
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class WithAttemptObject(ApiModel): 16 """Typed with attempt object data in the upload request 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: ``UploadRequestWithAttemptObject``. 25 """ 26 id: str = field(init=False) 27 """Unique identifier for this with attempt object. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 28 purpose: str = field(init=False) 29 """The purpose associated with this with attempt object. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 30 status: Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed'] = field(init=False) 31 """Current lifecycle status of the with attempt object. Required. Python type: ``Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``pending``, ``uploading``, ``fulfilled``, ``expired``, ``canceled``, ``failed``""" 32 active: bool = field(init=False) 33 """Whether the with attempt object is active. Required. Python type: ``bool``; wire name: ``active``; JSON type: boolean""" 34 file_id: str | None = field(init=False) 35 """Identifier of the related file. Optional; nullable. Python type: ``str | None``; wire name: ``file_id``; JSON type: string""" 36 upload_url: str | None = field(init=False) 37 """Public capability URL returned when available. Treat as bearer-secret material. Optional; nullable. Python type: ``str | None``; wire name: ``upload_url``; JSON type: string (uri)""" 38 constraints: UploadRequestConstraints = field(init=False) 39 """The constraints associated with this with attempt object. Required. Python type: ``UploadRequestConstraints``; wire name: ``constraints``; JSON type: object (UploadRequestConstraints)""" 40 display: UploadRequestDisplay = field(init=False) 41 """The display associated with this with attempt object. Required. Python type: ``UploadRequestDisplay``; wire name: ``display``; JSON type: object (UploadRequestDisplay)""" 42 subject: FileParty = field(init=False) 43 """The subject associated with this with attempt object. Required. Python type: ``FileParty``; wire name: ``subject``; JSON type: object (FileParty)""" 44 recipient: FileParty = field(init=False) 45 """The recipient associated with this with attempt object. Required. Python type: ``FileParty``; wire name: ``recipient``; JSON type: object (FileParty)""" 46 resource: FileResource = field(init=False) 47 """The resource associated with this with attempt object. Required. Python type: ``FileResource``; wire name: ``resource``; JSON type: object (FileResource)""" 48 requester: UploadRequestActor = field(init=False) 49 """The requester associated with this with attempt object. Required. Python type: ``UploadRequestActor``; wire name: ``requester``; JSON type: object (UploadRequestActor)""" 50 attempts: UploadRequestAttempts = field(init=False) 51 """The attempts associated with this with attempt object. Required. Python type: ``UploadRequestAttempts``; wire name: ``attempts``; JSON type: object (UploadRequestAttempts)""" 52 latest_error: UploadRequestLatestError | None = field(init=False) 53 """The latest error associated with this with attempt object. Optional; nullable. Python type: ``UploadRequestLatestError | None``; wire name: ``latest_error``; JSON type: object (UploadRequestLatestError)""" 54 canceled_by: UploadRequestActor | None = field(init=False) 55 """The canceled by associated with this with attempt object. Optional; nullable. Python type: ``UploadRequestActor | None``; wire name: ``canceled_by``; JSON type: object (UploadRequestActor)""" 56 custom_data: CustomData | None = field(init=False) 57 """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)""" 58 metadata: dict[str, str] | None = field(init=False) 59 """System-managed string metadata attached to a file resource. Optional; nullable. Python type: ``dict[str, str] | None``; wire name: ``metadata``; JSON type: object (FileMetadata)""" 60 created_at: datetime = field(init=False) 61 """When the with attempt object was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 62 updated_at: datetime = field(init=False) 63 """When the with attempt object was last updated. Required. Python type: ``datetime``; wire name: ``updated_at``; JSON type: string (date-time)""" 64 expires_at: datetime = field(init=False) 65 """Timestamp for expires at. Required. Python type: ``datetime``; wire name: ``expires_at``; JSON type: string (date-time)""" 66 uploading_at: datetime | None = field(init=False) 67 """Timestamp for uploading at. Optional; nullable. Python type: ``datetime | None``; wire name: ``uploading_at``; JSON type: string (date-time)""" 68 fulfilled_at: datetime | None = field(init=False) 69 """Timestamp for fulfilled at. Optional; nullable. Python type: ``datetime | None``; wire name: ``fulfilled_at``; JSON type: string (date-time)""" 70 expired_at: datetime | None = field(init=False) 71 """When the with attempt object expired. Optional; nullable. Python type: ``datetime | None``; wire name: ``expired_at``; JSON type: string (date-time)""" 72 canceled_at: datetime | None = field(init=False) 73 """When the with attempt object was canceled. Optional; nullable. Python type: ``datetime | None``; wire name: ``canceled_at``; JSON type: string (date-time)""" 74 attempt: UploadRequestAttempt | None = field(init=False) 75 """The attempt associated with this with attempt object. Optional; nullable. Python type: ``UploadRequestAttempt | None``; wire name: ``attempt``; JSON type: object (UploadRequestAttempt)"""
Typed with attempt object data in the upload request 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: UploadRequestWithAttemptObject.
Unique identifier for this with attempt object. Required. Python type: str; wire name: id; JSON type: string
The purpose associated with this with attempt object. Required. Python type: str; wire name: purpose; JSON type: string
Current lifecycle status of the with attempt object. Required. Python type: Literal['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed']; wire name: status; JSON type: string. Constraints: allowed values pending, uploading, fulfilled, expired, canceled, failed
Whether the with attempt object is active. Required. Python type: bool; wire name: active; JSON type: boolean
Identifier of the related file. Optional; nullable. Python type: str | None; wire name: file_id; JSON type: string
Public capability URL returned when available. Treat as bearer-secret material. Optional; nullable. Python type: str | None; wire name: upload_url; JSON type: string (uri)
The constraints associated with this with attempt object. Required. Python type: UploadRequestConstraints; wire name: constraints; JSON type: object (UploadRequestConstraints)
The display associated with this with attempt object. Required. Python type: UploadRequestDisplay; wire name: display; JSON type: object (UploadRequestDisplay)
The subject associated with this with attempt object. Required. Python type: FileParty; wire name: subject; JSON type: object (FileParty)
The recipient associated with this with attempt object. Required. Python type: FileParty; wire name: recipient; JSON type: object (FileParty)
The resource associated with this with attempt object. Required. Python type: FileResource; wire name: resource; JSON type: object (FileResource)
The requester associated with this with attempt object. Required. Python type: UploadRequestActor; wire name: requester; JSON type: object (UploadRequestActor)
The attempts associated with this with attempt object. Required. Python type: UploadRequestAttempts; wire name: attempts; JSON type: object (UploadRequestAttempts)
The latest error associated with this with attempt object. Optional; nullable. Python type: UploadRequestLatestError | None; wire name: latest_error; JSON type: object (UploadRequestLatestError)
The canceled by associated with this with attempt object. Optional; nullable. Python type: UploadRequestActor | None; wire name: canceled_by; JSON type: object (UploadRequestActor)
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 with attempt object was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
When the with attempt object was last updated. Required. Python type: datetime; wire name: updated_at; JSON type: string (date-time)
Timestamp for expires at. Required. Python type: datetime; wire name: expires_at; JSON type: string (date-time)
Timestamp for uploading at. Optional; nullable. Python type: datetime | None; wire name: uploading_at; JSON type: string (date-time)
Timestamp for fulfilled at. Optional; nullable. Python type: datetime | None; wire name: fulfilled_at; JSON type: string (date-time)
When the with attempt object expired. Optional; nullable. Python type: datetime | None; wire name: expired_at; JSON type: string (date-time)
When the with attempt object was canceled. Optional; nullable. Python type: datetime | None; wire name: canceled_at; JSON type: string (date-time)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class WithAttemptResponse(ApiModel): 14 """Typed response returned by the with attempt 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: ``UploadRequestWithAttemptResponse``. 23 """ 24 upload_request: UploadRequestWithAttemptObject = field(init=False) 25 """The upload request associated with this with attempt response. Required. Python type: ``UploadRequestWithAttemptObject``; wire name: ``upload_request``; JSON type: object (UploadRequestWithAttemptObject)"""
Typed response returned by the with attempt 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: UploadRequestWithAttemptResponse.
The upload request associated with this with attempt response. Required. Python type: UploadRequestWithAttemptObject; wire name: upload_request; JSON type: object (UploadRequestWithAttemptObject)