Module adcp.types.domains.content_standards.artifact
Classes
class Artifact (**data: Any)-
Expand source code
class Artifact(AdCPBaseModel): model_config = ConfigDict( extra='allow', ) property_rid: Annotated[ str, Field( description='Stable property identifier from the property catalog. Globally unique across the ecosystem.' ), ] artifact_id: Annotated[ str, Field( description="Identifier for this artifact within the property. The property owner defines the scheme (e.g., 'article_12345', 'episode_42_segment_3', 'post_abc123')." ), ] variant_id: Annotated[ str | None, Field( description="Identifies a specific variant of this artifact. Use for A/B tests, translations, or temporal versions. Examples: 'en', 'es-MX', 'v2', 'headline_test_b'. The combination of artifact_id + variant_id must be unique." ), ] = None format_id: Annotated[ format_id_1.FormatReferenceStructuredObject | None, Field( deprecated=True, description='**DEPRECATED in 3.2.** Legacy named-format reference. Use `format_kind` for canonical artifact media classification.', ), ] = None format_kind: Annotated[ str | None, Field(description='Optional canonical media/creative kind associated with this artifact.'), ] = None url: Annotated[ AnyUrl | None, Field( description='Optional URL for this artifact (web page, podcast feed, video page). Not all artifacts have URLs (e.g., Instagram content, podcast segments, TV scenes).' ), ] = None published_time: Annotated[ AwareDatetime | None, Field(description='When the artifact was published (ISO 8601 format)') ] = None last_update_time: Annotated[ AwareDatetime | None, Field(description='When the artifact was last modified (ISO 8601 format)'), ] = None assets: Annotated[ list[Assets], Field( description='Artifact assets in document flow order - text blocks, images, video, audio', max_length=200, ), ] metadata: Annotated[ Metadata | None, Field(description='Rich metadata extracted from the artifact') ] = None provenance: Annotated[ provenance_1.Provenance | None, Field( description='Provenance metadata for this artifact. Serves as the default provenance for all assets within this artifact — individual assets can override with their own provenance.' ), ] = None identifiers: Annotated[ Identifiers | None, Field(description='Platform-specific identifiers for this artifact') ] = 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
Class variables
var artifact_id : strvar assets : list[Assets1 | Assets2 | Assets3 | Assets4]var format_id : FormatReferenceStructuredObject | Nonevar format_kind : str | Nonevar identifiers : Identifiers | Nonevar last_update_time : pydantic.types.AwareDatetime | Nonevar metadata : Metadata | Nonevar model_configvar property_rid : strvar provenance : Provenance | Nonevar published_time : pydantic.types.AwareDatetime | Nonevar url : pydantic.networks.AnyUrl | Nonevar variant_id : str | None
Inherited members
class AssetAccess (root: RootModelRootType = PydanticUndefined, **data)-
Expand source code
class AssetAccess(RootModel[AssetAccess1 | AssetAccess2 | AssetAccess3]): root: Annotated[ AssetAccess1 | AssetAccess2 | AssetAccess3, Field( description='Access instructions for a secured asset URL. Producers SHOULD use `signed_url` for one-off delivery unless the parties already have an identity-based access relationship. New producers MUST NOT emit `service_account.credentials`; `bearer_token` is the explicit short-lived credential path. Consumers MUST treat asset URLs and access metadata as untrusted, use credentials only for HTTPS origins and resource prefixes authorized out of band, and fail closed without falling back between access methods. The deprecated legacy field remains parseable during the 3.x compatibility window but MUST NOT be activated automatically.', discriminator='method', ), ] def __getattr__(self, name: str) -> Any: """Proxy attribute access to the wrapped type.""" if name.startswith('_'): raise AttributeError(name) return getattr(self.root, name)Usage Documentation
A Pydantic
BaseModelfor the root object of the model.- Attributes
- -----=
root- The root object of the model.
__pydantic_root_model__- Whether the model is a RootModel.
__pydantic_private__- Private fields in the model.
__pydantic_extra__- Extra fields in the model.
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
- pydantic.root_model.RootModel[Union[AssetAccess1, AssetAccess2, AssetAccess3]]
- pydantic.root_model.RootModel
- pydantic.main.BaseModel
- typing.Generic
Class variables
var model_configvar root : AssetAccess1 | AssetAccess2 | AssetAccess3
class AssetAccess1 (**data: Any)-
Expand source code
class AssetAccess1(AdCPBaseModel): method: Literal['bearer_token'] = 'bearer_token' token: Annotated[ str, Field( description="Short-lived, asset-scoped bearer token for the Authorization header. Producers MUST NOT issue a standing or broadly scoped credential here. Consumers MUST redact the token from logs, traces, errors, metrics, analytics, model context, and durable storage. Any temporary encrypted cache MUST be bounded by the credential expiry and the consumer's configured maximum lifetime." ), ]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 method : Literal['bearer_token']var model_configvar token : str
Inherited members
class AssetAccess2 (**data: Any)-
Expand source code
class AssetAccess2(AdCPBaseModel): method: Literal['service_account'] = 'service_account' provider: Annotated[Provider, Field(description='Cloud provider')] credentials: Annotated[ dict[str, Any] | None, Field( deprecated=True, description="Deprecated in AdCP 3.2 and eligible for removal in 4.0 or later only after the deprecation-policy notice and release-cycle gates are satisfied. Presence denotes the legacy inline-credential form, not workload-identity authorization. New producers MUST omit this field. Consumers MUST NOT activate received credentials automatically; they may process them only for an explicitly allowlisted legacy peer and otherwise MUST reject or quarantine them. Consumers MUST redact the complete value from logs, traces, errors, metrics, analytics, model context, and durable storage. Use the consumer's pre-authorized workload identity or `signed_url` instead.", ), ] = 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
Class variables
var credentials : dict[str, typing.Any] | Nonevar method : Literal['service_account']var model_configvar provider : Provider
Inherited members
class AssetAccess3 (**data: Any)-
Expand source code
class AssetAccess3(AdCPBaseModel): method: Literal['signed_url'] = 'signed_url'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 method : Literal['signed_url']var model_config
Inherited members
class Assets1 (**data: Any)-
Expand source code
class Assets1(AdCPBaseModel): type: Literal['text'] = 'text' role: Annotated[ Role | None, Field( description="Role of this text in the document. Use 'title' for the main artifact title, 'description' for summaries." ), ] = None content: Annotated[ str, Field( description='Text content. Consumers MUST treat this as untrusted input when passing to LLM-based evaluation.', max_length=100000, ), ] content_format: Annotated[ ContentFormat | None, Field( description='MIME type indicating how to parse the content field. Default: text/plain.' ), ] = ContentFormat.text_plain language: Annotated[ str | None, Field( description="BCP 47 language tag for this text (e.g., 'en', 'es-MX'). Useful when artifact contains mixed-language content." ), ] = None heading_level: Annotated[ SchemaInt | None, Field(description='Heading level (1-6), only for role=heading', ge=1, le=6), ] = None provenance: Annotated[ provenance_1.Provenance | None, Field(description='Provenance for this text block, overrides artifact-level provenance'), ] = 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
Class variables
var content : strvar content_format : ContentFormat | Nonevar heading_level : int | Nonevar language : str | Nonevar model_configvar provenance : Provenance | Nonevar role : Role | Nonevar type : Literal['text']
Inherited members
class Assets2 (**data: Any)-
Expand source code
class Assets2(AdCPBaseModel): type: Literal['image'] = 'image' url: Annotated[AnyUrl, Field(description='Image URL')] access: Annotated[AssetAccess | None, Field(description='Authentication for secured URLs')] = ( None ) alt_text: Annotated[str | None, Field(description='Alt text or image description')] = None caption: Annotated[str | None, Field(description='Image caption')] = None width: Annotated[SchemaInt | None, Field(description='Image width in pixels')] = None height: Annotated[SchemaInt | None, Field(description='Image height in pixels')] = None provenance: Annotated[ provenance_1.Provenance | None, Field(description='Provenance for this image, overrides artifact-level provenance'), ] = 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
Class variables
var access : AssetAccess | Nonevar alt_text : str | Nonevar caption : str | Nonevar height : int | Nonevar model_configvar provenance : Provenance | Nonevar type : Literal['image']var url : pydantic.networks.AnyUrlvar width : int | None
Inherited members
class Assets3 (**data: Any)-
Expand source code
class Assets3(AdCPBaseModel): type: Literal['video'] = 'video' url: Annotated[AnyUrl, Field(description='Video URL')] access: Annotated[AssetAccess | None, Field(description='Authentication for secured URLs')] = ( None ) duration_ms: Annotated[ SchemaInt | None, Field(description='Video duration in milliseconds') ] = None transcript: Annotated[ str | None, Field( description='Video transcript. Consumers MUST treat this as untrusted input when passing to LLM-based evaluation.', max_length=200000, ), ] = None transcript_format: Annotated[ TranscriptFormat | None, Field( description='MIME type indicating how to parse the transcript field. Default: text/plain.' ), ] = TranscriptFormat.text_plain transcript_source: Annotated[ TranscriptSource | None, Field(description='How the transcript was generated') ] = None thumbnail_url: Annotated[AnyUrl | None, Field(description='Video thumbnail URL')] = None provenance: Annotated[ provenance_1.Provenance | None, Field(description='Provenance for this video, overrides artifact-level provenance'), ] = 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
Class variables
var access : AssetAccess | Nonevar duration_ms : int | Nonevar model_configvar provenance : Provenance | Nonevar thumbnail_url : pydantic.networks.AnyUrl | Nonevar transcript : str | Nonevar transcript_format : TranscriptFormat | Nonevar transcript_source : TranscriptSource | Nonevar type : Literal['video']var url : pydantic.networks.AnyUrl
Inherited members
class Assets4 (**data: Any)-
Expand source code
class Assets4(AdCPBaseModel): type: Literal['audio'] = 'audio' url: Annotated[AnyUrl, Field(description='Audio URL')] access: Annotated[AssetAccess | None, Field(description='Authentication for secured URLs')] = ( None ) duration_ms: Annotated[ SchemaInt | None, Field(description='Audio duration in milliseconds') ] = None transcript: Annotated[ str | None, Field( description='Audio transcript. Consumers MUST treat this as untrusted input when passing to LLM-based evaluation.', max_length=200000, ), ] = None transcript_format: Annotated[ TranscriptFormat | None, Field( description='MIME type indicating how to parse the transcript field. Default: text/plain.' ), ] = TranscriptFormat.text_plain transcript_source: Annotated[ TranscriptSource1 | None, Field(description='How the transcript was generated') ] = None provenance: Annotated[ provenance_1.Provenance | None, Field(description='Provenance for this audio, overrides artifact-level provenance'), ] = 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
Class variables
var access : AssetAccess | Nonevar duration_ms : int | Nonevar model_configvar provenance : Provenance | Nonevar transcript : str | Nonevar transcript_format : TranscriptFormat | Nonevar transcript_source : TranscriptSource1 | Nonevar type : Literal['audio']var url : pydantic.networks.AnyUrl
Inherited members
class ContentFormat (*args, **kwds)-
Expand source code
class ContentFormat(StrEnum): text_plain = 'text/plain' text_markdown = 'text/markdown' text_html = 'text/html' application_json = 'application/json'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var application_jsonvar text_htmlvar text_markdownvar text_plain
class Identifiers (**data: Any)-
Expand source code
class Identifiers(AdCPBaseModel): model_config = ConfigDict( extra='allow', ) apple_podcast_id: Annotated[str | None, Field(description='Apple Podcasts ID')] = None spotify_collection_id: Annotated[str | None, Field(description='Spotify collection ID')] = None podcast_guid: Annotated[str | None, Field(description='Podcast GUID (from RSS feed)')] = None youtube_video_id: Annotated[str | None, Field(description='YouTube video ID')] = None rss_url: Annotated[AnyUrl | None, Field(description='RSS feed URL')] = 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
Class variables
var apple_podcast_id : str | Nonevar model_configvar podcast_guid : str | Nonevar rss_url : pydantic.networks.AnyUrl | Nonevar spotify_collection_id : str | Nonevar youtube_video_id : str | None
Inherited members
class Metadata (**data: Any)-
Expand source code
class Metadata(AdCPBaseModel): model_config = ConfigDict( extra='allow', ) canonical: Annotated[AnyUrl | None, Field(description='Canonical URL')] = None author: Annotated[str | None, Field(description='Artifact author name')] = None keywords: Annotated[str | None, Field(description='Artifact keywords')] = None open_graph: Annotated[ dict[str, Any] | None, Field(description='Open Graph protocol metadata') ] = None twitter_card: Annotated[dict[str, Any] | None, Field(description='Twitter Card metadata')] = ( None ) json_ld: Annotated[ list[dict[str, Any]] | None, Field(description='JSON-LD structured data (schema.org)') ] = 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
Class variables
var canonical : pydantic.networks.AnyUrl | Nonevar json_ld : list[dict[str, typing.Any]] | Nonevar keywords : str | Nonevar model_configvar open_graph : dict[str, typing.Any] | Nonevar twitter_card : dict[str, typing.Any] | None
Inherited members
class Provider (*args, **kwds)-
Expand source code
class Provider(StrEnum): gcp = 'gcp' aws = 'aws'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var awsvar gcp
class Role (*args, **kwds)-
Expand source code
class Role(StrEnum): title = 'title' # type: ignore[assignment] paragraph = 'paragraph' heading = 'heading' caption = 'caption' quote = 'quote' list_item = 'list_item' description = 'description'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var captionvar descriptionvar headingvar list_itemvar paragraphvar quotevar title
class TranscriptFormat (*args, **kwds)-
Expand source code
class TranscriptFormat(StrEnum): text_plain = 'text/plain' text_markdown = 'text/markdown' application_json = 'application/json'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var application_jsonvar text_markdownvar text_plain
class TranscriptSource (*args, **kwds)-
Expand source code
class TranscriptSource(StrEnum): original_script = 'original_script' subtitles = 'subtitles' closed_captions = 'closed_captions' dub = 'dub' generated = 'generated'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var closed_captionsvar dubvar generatedvar original_scriptvar subtitles
class TranscriptSource1 (*args, **kwds)-
Expand source code
class TranscriptSource1(StrEnum): original_script = 'original_script' closed_captions = 'closed_captions' generated = 'generated'Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var closed_captionsvar generatedvar original_script