Skip to main content

Module domains

Module domains 

Source
Expand description

Domains & semantic mail/address stack

Functions§

accept_coop_share_package
Accept a coop share package or a bare connect-invite JSON (one paste). Connects to the host, scopes the project, admits host+self on the local roster, registers mesh peer when magic_link is present, and opens a project group chat when possible.
add_mail_domain
Add a context-domain (single-owner). agent_type is a token: person/org/ai/service/content/group.
cf_list_zones
List the Cloudflare zones (domains) the token can manage.
cf_provision_pages_project
Provision a Cloudflare Pages project linked to a GitHub repo.
cf_provision_r2_bucket
Provision a Cloudflare R2 bucket.
cf_provision_tunnel
Provision a Cloudflare Tunnel.
cf_provision_worker
Provision a Cloudflare Worker using the local vendor JS file.
cf_publish_front_door
Publish the domain’s _qdp TXT front-door record to Cloudflare (no hosting needed).
cf_route_tunnel_dns
Route a Cloudflare Tunnel in DNS.
cf_verify_token
Verify a Cloudflare API token (the easy-install front-door publishing path).
coop_share_package
Build a pasteable coop share package — one blob the joiner pastes under People → Accept. Always embeds a signed connect invite (enables invites if needed). Never includes private keys.
create_project_group_chat
Create a group chat for a project from its collaborator roster (+ optional extra DIDs). Returns { session_id, title, participants }.
extract_invite_json_from_package
Pure: pull the connect-invite JSON string out of a coop package or bare invite object. Used by accept + unit tests (no APP_STATE).
front_door_forms
The QDP front-door forms for a domain — the DNS TXT (no-hosting anchor), the DNS record name, and the rich profile in Turtle + JSON-LD (served by the local HTTP server over the mesh when hosting).
github_deploy_static_site
Create a GitHub repository and push static site files.
github_verify_token
Verify a GitHub PAT.
list_mail_addresses
Addresses (optionally filtered to one domain).
list_mail_domains
The person’s context-domains (personal/work/projects/…), each an agent with a front-door DID.
load_mail_transport_config
mail_fetch
Fetch unseen mail via IMAP, apply semantic delivery + rules, and store accepted mail in the local inbox (same store as the SMTP receiver).
mail_now_unix
mail_send
Send mail via SMTP. smtp_json = SmtpConfig, mail_json = OutgoingMail.
mint_purpose_inbox
Mint a purpose inbox (frontdoor@, junkmail@, …). rules_json is a MailRules object (or empty).
mint_relationship_address
Mint a per-relationship (pairwise) address bound to a relationship DID.
onboard_mail_domain
Onboard mail for a registered domain: mint purpose presets + catchall, then auto-start the local SMTP receiver so the product path finishes without a second hunt.
parse_magic_link
Parse a magic link (deep link / https / bare qcx1_…) into the connection identifier it carries.
purpose_inbox_presets
Built-in purpose-inbox presets (frontdoor/junkmail/mygov/newsletters).
resolve_mail_delivery
Resolve how mail to to_address would be handled (exact / catchall / reject) — pure, for UI/debug.
save_mail_transport_config
Persist SMTP/IMAP prefs (app_meta_dir). Passwords stored locally — same trust as desktop secrets.
set_mail_address_enabled
Enable/disable an address (the surgical per-relationship revoke). Returns the refreshed list.
start_qdp_server
Start serving /.well-known/QDP for a domain from a local HTTP server (self-host over the mesh).
talk_setup_status
Human-readable readiness for Talk: domains, mailboxes, receiver, people, so first-run can guide.