Module adcp.types.domains.media_buy.accept_proposal_response
Classes
class AcceptProposalResponse1 (**data: Any)-
Expand source code
class AcceptProposalResponse1(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) status: Literal['completed'] = 'completed' media_buy_id: Annotated[str, Field(min_length=1)] name: Annotated[ str | None, Field( description='Persisted human-readable MediaBuy name for trafficking UI display and operational communication. The seller MUST echo a buyer-supplied request name unchanged; when the seller seeded a new MediaBuy name from an already-valid proposal.name, it MUST return that value unchanged here. Existing named MediaBuys return the stored value on amendment or cancellation commitments. This operational metadata is outside accepted_proposal and is not covered by terms_digest. This display label is not an identifier or financial reference.', max_length=255, min_length=1, pattern='\\S', ), ] = None revision: Annotated[SchemaInt, Field(ge=1)] media_buy_status: media_buy_status_1.MediaBuyStatus | None = None confirmed_at: AwareDatetime | None = None accepted_proposal: AcceptedProposal purchase_bindings: Annotated[ list[PurchaseBinding], Field( description='Execution identities assigned to the immutable purchases. purchase_index is the zero-based position in accepted_proposal.commercial_terms.purchases and disambiguates repeated product IDs.', min_length=1, ), ] available_actions: list[canonical_media_buy_action.CanonicalMediaBuyAction] warnings: Annotated[ list[Warning] | None, Field( description='Non-blocking observations about this completed commitment. The MediaBuy was still created or amended exactly as represented. Continuing conditions also appear as indicators on get_media_buys.', min_length=1, ), ] = None context: context_1.ContextObject | None = None ext: ext_1.ExtensionObject | None = None replayed: Literal[True] | None = NoneBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Subclasses
Class variables
var accepted_proposal : AcceptedProposalvar available_actions : list[CanonicalMediaBuyAction1 | CanonicalMediaBuyAction2 | CanonicalMediaBuyAction3]var confirmed_at : pydantic.types.AwareDatetime | Nonevar context : ContextObject | Nonevar ext : ExtensionObject | Nonevar media_buy_id : strvar media_buy_status : MediaBuyStatus | Nonevar model_configvar name : str | Nonevar purchase_bindings : list[PurchaseBinding]var replayed : Literal[True] | Nonevar revision : intvar status : Literal['completed']var warnings : list[Warning] | None
Inherited members
class AcceptProposalResponse2 (**data: Any)-
Expand source code
class AcceptProposalResponse2(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) status: Literal['failed'] = 'failed' errors: Annotated[list[error.Error], Field(min_length=1)] context: context_1.ContextObject | None = None ext: ext_1.ExtensionObject | None = None replayed: Literal[True] | None = NoneBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Subclasses
Class variables
var context : ContextObject | Nonevar errors : list[Error]var ext : ExtensionObject | Nonevar model_configvar replayed : Literal[True] | Nonevar status : Literal['failed']
Inherited members
class AcceptProposalResponse3 (**data: Any)-
Expand source code
class AcceptProposalResponse3(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) status: Literal['submitted'] = 'submitted' task_id: Annotated[str, Field(min_length=1)] message: Annotated[str | None, Field(max_length=2000)] = None errors: list[error.Error] | None = None context: context_1.ContextObject | None = None ext: ext_1.ExtensionObject | None = None replayed: Literal[True] | None = NoneBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Subclasses
Class variables
var context : ContextObject | Nonevar errors : list[Error] | Nonevar ext : ExtensionObject | Nonevar message : str | Nonevar model_configvar replayed : Literal[True] | Nonevar status : Literal['submitted']var task_id : str
Inherited members
class AcceptProposalResponse4 (**data: Any)-
Expand source code
class AcceptProposalResponse4(AdCPBaseModel): passBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Subclasses
Class variables
var model_config
Inherited members
class AcceptProposalResponse5 (**data: Any)-
Expand source code
class AcceptProposalResponse5(AdcpResponse, AcceptProposalResponse1, AcceptProposalResponse4): passThe response message of a task in the pinned bundle's task registry.
A consumer holding one can route on task state, pick up an async
task_id, split envelope from payload and log uniformly, before knowing which tool answered. Which makes one generic poll-to-terminal loop possible for all 77 tasks, where today each arm has no common type at all.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdcpResponse
- adcp.types.base._AdcpMessage
- AcceptProposalResponse1
- AcceptProposalResponse4
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var model_config
Inherited members
class AcceptProposalResponse6 (**data: Any)-
Expand source code
class AcceptProposalResponse6(AdcpResponse, AcceptProposalResponse2, AcceptProposalResponse4): passThe response message of a task in the pinned bundle's task registry.
A consumer holding one can route on task state, pick up an async
task_id, split envelope from payload and log uniformly, before knowing which tool answered. Which makes one generic poll-to-terminal loop possible for all 77 tasks, where today each arm has no common type at all.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdcpResponse
- adcp.types.base._AdcpMessage
- AcceptProposalResponse2
- AcceptProposalResponse4
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var model_config
Inherited members
class AcceptProposalResponse7 (**data: Any)-
Expand source code
class AcceptProposalResponse7(AdcpResponse, AcceptProposalResponse3, AcceptProposalResponse4): passThe response message of a task in the pinned bundle's task registry.
A consumer holding one can route on task state, pick up an async
task_id, split envelope from payload and log uniformly, before knowing which tool answered. Which makes one generic poll-to-terminal loop possible for all 77 tasks, where today each arm has no common type at all.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdcpResponse
- adcp.types.base._AdcpMessage
- AcceptProposalResponse3
- AcceptProposalResponse4
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var model_config
Inherited members
class AcceptedProposal (**data: Any)-
Expand source code
class AcceptedProposal(CanonicalProposal): proposal_status: Annotated[ Literal['accepted'], Field( description='draft is indicative and unreserved; committed has firm terms with inventory reserved until expires_at; accepted is the historical snapshot attached to a MediaBuy.', title='Proposal Status', ), ] = 'accepted' media_buy_id: Annotated[str, Field(min_length=1)] accepted_at: Any commercial_terms: Any terms_digest: AnyBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CanonicalProposal
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var accepted_at : Anyvar commercial_terms : Anyvar media_buy_id : strvar model_configvar proposal_status : Literal['accepted']var terms_digest : Any
Inherited members
class Code (*args, **kwds)-
Expand source code
class Code(StrEnum): inventory_shortfall_forecast = 'inventory_shortfall_forecast' flight_change_creates_pacing_risk = 'flight_change_creates_pacing_risk' fields_ignored_due_to_precedence = 'fields_ignored_due_to_precedence' inventory_shortfall_forecast_1 = 'inventory_shortfall_forecast' flight_change_creates_pacing_risk_1 = 'flight_change_creates_pacing_risk'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var fields_ignored_due_to_precedencevar flight_change_creates_pacing_riskvar flight_change_creates_pacing_risk_1var inventory_shortfall_forecastvar inventory_shortfall_forecast_1
class ProposalStatus (*args, **kwds)-
Expand source code
class ProposalStatus(StrEnum): draft = 'draft' committed = 'committed' accepted = 'accepted'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var acceptedvar committedvar draft
class PurchaseBinding (**data: Any)-
Expand source code
class PurchaseBinding(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) purchase_index: Annotated[SchemaInt, Field(ge=0)] product_id: Annotated[str, Field(min_length=1)] package_id: Annotated[str, Field(min_length=1)]Base model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar package_id : strvar product_id : strvar purchase_index : int
Inherited members
class Warning (**data: Any)-
Expand source code
class Warning(Warning_1): code: Annotated[ Code | None, Field( description='Closed warning vocabulary for the negotiated AdCP release. A non-blocking condition observed while an operation still succeeded. New values are added through normal protocol releases; buyers validate against the negotiated release.', title='Warning Code', ), ] = NoneBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config.Set
ADCP_STRICT_VALIDATION=1in the environment ("1","true","yes","on"are accepted) to flip the default toextra='forbid'. Use this during spec upgrades to catch silently-dropped renamed fields in tests. See :func:_resolve_extra_policy.Important
The env var is resolved once at module import time. Set it in your shell or CI environment before
import adcpruns — mutatingos.environ["ADCP_STRICT_VALIDATION"]after the firstadcpimport has no effect on already-imported model classes (they captured the policy at class-body evaluation).Consumers who want per-model strict validation can override
model_configon their subclass.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- Warning
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var code : Code | Nonevar model_config
Inherited members