com.atproto.space.authorizeSpaceSync

Authorize syncing a space, returning a new credential for reading data across it and the space’s current revision, and optionally registering for notifications of updates to it. Depending on the space’s policy, a delegation token and/or client attestation may be required. Implemented by the space host.

class atproto_client.models.com.atproto.space.authorize_space_sync.Data

Bases: DataModelBase

Input data model for com.atproto.space.authorizeSpaceSync.

field client_attestation: str | None = None

Client attestation.

field credential_key: str [Required]

P-256 did:key that the credential is bound to.

field delegation_token: str | None = None

Obtained from getDelegationToken.

field notify: models.ComAtprotoSpaceAuthorizeSpaceSync.Notify | None = None
field space: SpaceRef [Required]

Space.

class atproto_client.models.com.atproto.space.authorize_space_sync.DataDict

Bases: TypedDict

credential_key: str

P-256 did:key that the credential is bound to.

space: SpaceRef

Space.

client_attestation: NotRequired[str | None]

Client attestation.

delegation_token: NotRequired[str | None]

Obtained from getDelegationToken.

notify: NotRequired[Notify | None]

Register an endpoint to be notified of updates to the space via notifySpaceUpdate. The registration stays active while this credential is valid. After it expires, the endpoint receives only a prompt to reauthorize, or notice of the space’s deletion.

class atproto_client.models.com.atproto.space.authorize_space_sync.Response

Bases: ResponseModelBase

Output data model for com.atproto.space.authorizeSpaceSync.

field credential: str [Required]

Credential.

field space_rev: Tid | None = None
class atproto_client.models.com.atproto.space.authorize_space_sync.Notify

Bases: ModelBase

Definition model for com.atproto.space.authorizeSpaceSync.

field endpoint: Uri [Required]

Base HTTPS URL that notification methods are called against.

field token: str [Required]

Opaque secret, included in the body of each request to the endpoint. The endpoint and token together identify the registration, so the token should stay the same across authorizations.

Constraints:
  • max_length = 512