Minor Changes
- e13f0e4:
coss.email.templates.render(template, { version, locale, variables })renders a template's draft (or a published version) as a send would, without sending (POST /v1/email_templates/{id}/render). The CLI getscoss domains list|add|get|verify(DNS records as a table or zone-file lines with--format bind;verify --waitfollows the domain until it's verified) and templates as code:coss templates list|pull|push|preview(a folder per template,push --watchand--publish,preview --var … --open). - 2857473:
coss/diagnoseexplains an email's delivery:diagnose(coss, id)reads the email, its events and its account context, anddiagnoseEmailis the pure part (moved fromcoss-mcp, which now uses it and still re-exports it). The CLI getscoss emails list,coss emails get,coss emails eventsandcoss emails diagnose, andcoss inbox(the inbound domain, then received emails as they arrive) withcoss inbox get. - e2ddd7a:
coss hooks …: create Hooks applications, event types and endpoints (endpoints addprints the signing secret), send messages (--data,-Ffields, or the event type's example), follow deliveries and their attempts, retry one, and open an application's portal.coss risk …: assess an event and see the decision, score and reasons (sandbox fixtures produce each decision), list assessments and the review queue, send feedback, and manage the allow and block lists. Help and errors for groups inside groups (coss hooks apps) now name their own commands. - 3a02992:
coss initsets a project up: it installscosswith the project's package manager and writes a new development key, approved in the dashboard and named after the project, to.env.local(Next.js) or.env.coss profiles listandcoss use <profile>show and switch the saved profiles, andcoss open [page]opens the environment's dashboard page. A daily update notice says when a newer coss-cli exists (COSS_NO_UPDATE_CHECK=1turns it off), and completion offers saved profile names. - 78b99d3: Test webhook events:
coss.webhookEvents.test({ type, data })(POST /v1/webhook_events/test) sends a sample event of a type to the environment's subscribed endpoints and open listeners, exactly like a real one (sandbox keys; every type but the live-onlydomain.*,account.*andbilling.*). The SDK also exportsWEBHOOK_EVENT_TYPES,TEST_WEBHOOK_EVENT_TYPESandisLiveOnlyEventType. The CLI getscoss trigger <event-type>(with--dataand-F, socoss listen+coss triggerexercises a local handler), andcoss webhooks list,coss webhooks deliveries <endpoint>andcoss webhooks retry <endpoint> <delivery>. - 8fea903:
coss.request(method, path, options)calls any endpoint by its path (for one the SDK has no method for yet), with the client's key, version, timeout and retries; POST, PUT and PATCH are retried only withretry: true. The CLI's newcoss api <path>uses it:-f/-Ffields,--inputbodies (or stdin),--paginateand--raw. Alsocoss completion bash|zsh|fish, and every command's--helpis now generated from its flags.