Skip to main content

Module ops

Module ops 

Source
Expand description

Each operation’s identity as data: one Operation constant per operation, named for its client method in upper case. Every request an operation method or request builder builds carries its Operation among its extensions, so a transport backend can tell operations apart without parsing paths.

Structs§

Operation
One operation’s identity: its id, HTTP method and path template, as the description declares them.

Constants§

ABORT_ALBUM_UPGRADE
abort_album_upgrade: DELETE /v1/albums/{album_id}/upgrade.
ADOPT_DROP
adopt_drop: POST /v1/drops/{drop_id}/adopt.
ALBUM_LIFECYCLE_OP
album_lifecycle_op: POST /v1/albums/{album_id}/ops.
ALBUM_UPGRADE_PHASE
album_upgrade_phase: GET /v1/albums/{album_id}/upgrade.
APPEND_CHUNK
append_chunk: PATCH /v1/upload/{id}.
APPEND_DROP_CHUNK
append_drop_chunk: PATCH /d/{opaque_id}/{upload_id}.
ATTESTATION_KEYS
attestation_keys: GET /.well-known/capsule/attestation-keys.
BEGIN_OIDC_DEVICE_LOGIN
begin_oidc_device_login: POST /v1/auth/oidc/device.
BEGIN_OIDC_LOGIN
begin_oidc_login: POST /v1/auth/oidc/authorize.
CANCEL_UPLOAD
cancel_upload: DELETE /v1/upload/{id}.
CHANGE_PASSWORD
change_password: POST /v1/auth/password.
CLOSE_ENROLLMENT_CHANNEL
close_enrollment_channel: DELETE /v1/auth/devices/enroll/channel/{channel_id}.
COMPLETE_OIDC_LOGIN
complete_oidc_login: POST /v1/auth/oidc/callback.
CREATE_DROP
create_drop: POST /d/{opaque_id}.
CREATE_UPLOAD
create_upload: POST /v1/upload.
DEPRECATION_ANNOUNCEMENTS
deprecation_announcements: GET /.well-known/capsule/deprecation.
DISCARD_DROP
discard_drop: DELETE /v1/drops/{drop_id}.
DRAIN_ENROLLMENT_CHANNEL
drain_enrollment_channel: GET /v1/auth/devices/enroll/channel/{channel_id}.
DROP_STATUS
drop_status: GET /d/{opaque_id}/{upload_id}.
FETCH_ESCROW
fetch_escrow: GET /v1/auth/escrow.
FETCH_SEALED_IDENTITY
fetch_sealed_identity: GET /v1/auth/escrow/identity.
GET_ASSET_RECEIPTS
get_asset_receipts: GET /v1/assets/{asset_id}/receipts.
GET_BLOB
get_blob: GET /v1/blob/{hash}.
GET_PROFILE
get_profile: GET /v1/auth/profile.
GET_PULLED_ASSET_METADATA
get_pulled_asset_metadata: GET /v1/federation/subscriptions/{peer}/{album_id}/assets/{asset_id}/metadata.
GET_QUOTA
get_quota: GET /v1/quota.
GET_VERSION
get_version: GET /v1/version.
HEAD_UPLOAD
head_upload: HEAD /v1/upload/{id}.
ISSUE_CAPABILITY
issue_capability: POST /v1/albums/{album_id}/capabilities.
ISSUE_ENROLLMENT_CODE
issue_enrollment_code: POST /v1/auth/devices/enroll.
ISSUE_SHARE
issue_share: POST /v1/shares.
LIST_ACTIVITY
list_activity: GET /v1/auth/activity.
LIST_ALBUM_KEYS
list_album_keys: GET /v1/auth/escrow/albums.
LIST_DEVICES
list_devices: GET /v1/auth/devices.
LIST_INBOX
list_inbox: GET /v1/drops.
LIST_PULLED_ASSETS
list_pulled_assets: GET /v1/federation/subscriptions/{peer}/{album_id}/assets.
LIST_SUBSCRIPTIONS
list_subscriptions: GET /v1/federation/subscriptions.
LIST_UPLOAD_SESSIONS
list_upload_sessions: GET /v1/upload/sessions.
LOGIN_USER
login_user: POST /v1/auth/login.
LOGOUT
logout: POST /v1/auth/logout.
MODERATION_RECORD
moderation_record: GET /v1/moderation/record.
POLL_OIDC_DEVICE_LOGIN
poll_oidc_device_login: POST /v1/auth/oidc/device/poll.
PROVISION_ALBUM
provision_album: POST /v1/albums.
PROVISION_LINK
provision_link: POST /v1/drops/links.
PUBLISH_ALBUM_ROSTER
publish_album_roster: PUT /v1/albums/{album_id}/roster.
REANNOUNCE_MANIFESTS
reannounce_manifests: POST /v1/sync/reannounce.
REAUTHENTICATE
reauthenticate: POST /v1/auth/reauthenticate.
REDEEM_ENROLLMENT_CODE
redeem_enrollment_code: POST /v1/auth/devices/enroll/redeem.
REFRESH_CAPABILITY
refresh_capability: POST /v1/federation/capabilities/refresh.
REFRESH_TOKEN
refresh_token: POST /v1/auth/refresh.
REGISTER_USER
register_user: POST /v1/auth/register.
RELAY_ENROLLMENT_PAYLOAD
relay_enrollment_payload: POST /v1/auth/devices/enroll/channel/{channel_id}.
REVOKED_JTI
revoked_jti: GET /.well-known/capsule/revoked-jti.
REVOKE_ALL
revoke_all: POST /v1/auth/logout/all.
REVOKE_ALL_CHALLENGE
revoke_all_challenge: POST /v1/auth/logout/all/challenge.
REVOKE_CAPABILITY
revoke_capability: DELETE /v1/albums/{album_id}/capabilities/{jti}.
REVOKE_LINK
revoke_link: DELETE /v1/drops/links/{opaque_id}.
REVOKE_SESSION
revoke_session: DELETE /v1/auth/devices/{session_id}.
REVOKE_SHARE
revoke_share: DELETE /v1/shares/{opaque_id}.
SERVER_INFO
server_info: GET /.well-known/capsule/server-info.
SHARE_BLOB
share_blob: GET /s/{opaque_id}/blob/{hash}.
SHARE_METADATA
share_metadata: GET /s/{opaque_id}.
SHARE_WRAPPED_SECRET
share_wrapped_secret: GET /s/{opaque_id}/wrapped-secret.
STORE_ALBUM_KEYS
store_album_keys: PUT /v1/auth/escrow/albums/{album_id}.
STORE_ESCROW
store_escrow: PUT /v1/auth/escrow.
STORE_SEALED_IDENTITY
store_sealed_identity: PUT /v1/auth/escrow/identity.
SUBMIT_FEDERATED_REPORT
submit_federated_report: POST /v1/federation/reports.
SUBMIT_PULL_HINT
submit_pull_hint: POST /v1/federation/hints.
SUBSCRIBE_ALBUM
subscribe_album: POST /v1/federation/subscriptions.
SYNC_FEED
sync_feed: GET /v1/sync.
TOTP_DISABLE
totp_disable: POST /v1/auth/totp/disable.
TOTP_ENROLL
totp_enroll: POST /v1/auth/totp/enroll.
TOTP_VERIFY_ENROLLMENT
totp_verify_enrollment: POST /v1/auth/totp/verify-enrollment.
TOTP_VERIFY_LOGIN
totp_verify_login: POST /v1/auth/login/verify-totp.
UNSUBSCRIBE_ALBUM
unsubscribe_album: DELETE /v1/federation/subscriptions/{peer}/{album_id}.
UPDATE_PROFILE
update_profile: PATCH /v1/auth/profile.
VERIFY_STORAGE
verify_storage: POST /v1/storage/verify.