Skip to main content

Module sync

Module sync 

Source

Structs§

CloudStatus
SyncResult
SyncedRule
TeamSyncResult

Functions§

build_provider_sync_entries
Build a structured provider sync payload from local provider records. Used by sync_providers; exposed for callers that want to inspect what will be sent before pushing.
fetch_cloud_status
Fetch the user’s cloud status (profile + billing plan + active team). Safe to call when not logged in — returns a logged_in: false response.
mask_api_key
Mask an API key for cross-device sync. The cloud never stores the secret — only an opaque hint (e.g. last 4 chars) so users can recognize which key they previously used on another device.
pull_providers
Fetch cloud-side providers as a structured array. Returns the parsed JSON array and optional updated_at, or None if not set. Cloud holds masked keys only — callers must NOT trust maskedKey as a usable secret.
pull_settings
Fetch cloud-side settings blob. Returns (settings_value, updated_at) or None if the cloud has no settings stored yet for this user.
sync_providers
sync_settings
sync_skills
sync_skills_filtered
Like sync_skills but filters out local-only ids before hashing so pending candidates are not recreated as active cloud rules.
sync_team_skills