app.bsky.ageassurance.defs¶
- atproto_client.models.app.bsky.ageassurance.defs.Access¶
The access level granted based on Age Assurance data we’ve processed.
alias of
Union[Literal[‘unknown’],Literal[‘none’],Literal[‘safe’],Literal[‘full’],str]
- class atproto_client.models.app.bsky.ageassurance.defs.Config¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs.- field py_type: Literal['app.bsky.ageassurance.defs#config'] = 'app.bsky.ageassurance.defs#config'¶
- field regions: List[models.AppBskyAgeassuranceDefs.ConfigRegion] [Required]¶
The per-region Age Assurance configuration.
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegion¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. The Age Assurance configuration for a specific region.- field country_code: str [Required]¶
The ISO 3166-1 alpha-2 country code this configuration applies to.
- field min_access_age: int [Required]¶
The minimum age (as a whole integer) required to use Bluesky in this region.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegion'] = 'app.bsky.ageassurance.defs#configRegion'¶
- field region_code: str | None = None¶
- field rules: List[models.AppBskyAgeassuranceDefs.ConfigRegionRuleDefault | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfDeclaredOverAge | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfDeclaredUnderAge | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfAssuredOverAge | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfAssuredUnderAge | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfAccountNewerThan | models.AppBskyAgeassuranceDefs.ConfigRegionRuleIfAccountOlderThan] [Required]¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleDefault¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies by default.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleDefault'] = 'app.bsky.ageassurance.defs#configRegionRuleDefault'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfAccountNewerThan¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the account is equal-to or newer than a certain date.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field date: str [Required]¶
The date threshold as a datetime string.
- Constraints:
func = Validated by:
string_formats.validate_datetime()(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan'] = 'app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfAccountOlderThan¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the account is older than a certain date.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field date: str [Required]¶
The date threshold as a datetime string.
- Constraints:
func = Validated by:
string_formats.validate_datetime()(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan'] = 'app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfAssuredOverAge¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field age: int [Required]¶
The age threshold as a whole integer.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge'] = 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfAssuredUnderAge¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the user has been assured to be under a certain age.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field age: int [Required]¶
The age threshold as a whole integer.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge'] = 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfDeclaredOverAge¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field age: int [Required]¶
The age threshold as a whole integer.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge'] = 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge'¶
- class atproto_client.models.app.bsky.ageassurance.defs.ConfigRegionRuleIfDeclaredUnderAge¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Age Assurance rule that applies if the user has declared themselves under a certain age.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field age: int [Required]¶
The age threshold as a whole integer.
- field py_type: Literal['app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge'] = 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge'¶
- class atproto_client.models.app.bsky.ageassurance.defs.Event¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Object used to store Age Assurance data in stash.- field access: Literal['unknown'] | Literal['none'] | Literal['safe'] | Literal['full'] | str [Required]¶
The access level granted based on Age Assurance data we’ve processed.
- field attempt_id: str [Required]¶
The unique identifier for this instance of the Age Assurance flow, in UUID format.
- field complete_ip: str | None = None¶
The IP address used when completing the Age Assurance flow.
- field complete_ua: str | None = None¶
The user agent used when completing the Age Assurance flow.
- field country_code: str [Required]¶
The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.
- field created_at: str [Required]¶
The date and time of this write operation.
- Constraints:
func = Validated by:
string_formats.validate_datetime()(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field email: str | None = None¶
The email used for Age Assurance.
- field init_ip: str | None = None¶
The IP address used when initiating the Age Assurance flow.
- field init_ua: str | None = None¶
The user agent used when initiating the Age Assurance flow.
- field py_type: Literal['app.bsky.ageassurance.defs#event'] = 'app.bsky.ageassurance.defs#event'¶
- field region_code: str | None = None¶
The ISO 3166-2 region code provided when beginning the Age Assurance flow.
- field status: Literal['unknown'] | Literal['pending'] | Literal['assured'] | Literal['blocked'] | str [Required]¶
The status of the Age Assurance process.
- class atproto_client.models.app.bsky.ageassurance.defs.State¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. The user’s computed Age Assurance state.- field access: models.AppBskyAgeassuranceDefs.Access [Required]¶
Access.
- field last_initiated_at: str | None = None¶
The timestamp when this state was last updated.
- field py_type: Literal['app.bsky.ageassurance.defs#state'] = 'app.bsky.ageassurance.defs#state'¶
- field status: models.AppBskyAgeassuranceDefs.Status [Required]¶
Status.
- class atproto_client.models.app.bsky.ageassurance.defs.StateMetadata¶
Bases:
ModelBaseDefinition model for
app.bsky.ageassurance.defs. Additional metadata needed to compute Age Assurance state client-side.- field account_created_at: str | None = None¶
The account creation timestamp.
- field py_type: Literal['app.bsky.ageassurance.defs#stateMetadata'] = 'app.bsky.ageassurance.defs#stateMetadata'¶
- atproto_client.models.app.bsky.ageassurance.defs.Status¶
The status of the Age Assurance process.
alias of
Union[Literal[‘unknown’],Literal[‘pending’],Literal[‘assured’],Literal[‘blocked’],str]