Skip to content

sync spec: add Slack destinations to AI routines - #68

Merged
cmruderman merged 1 commit into
mainfrom
corey/feature/cut-version-for-routines
Jul 8, 2026
Merged

sync spec: add Slack destinations to AI routines#68
cmruderman merged 1 commit into
mainfrom
corey/feature/cut-version-for-routines

Conversation

@cmruderman

Copy link
Copy Markdown
Contributor

Summary

Syncs the embedded OpenAPI spec from exploreomni/omni@main. Headline change is Slack delivery for AI routines.

  • Routine responses moved from an email-only object to a union: RoutineEmailDestinationRoutineDestinationResponse (oneOf RoutineEmailDestinationResponse | RoutineSlackDestination).
  • New RoutineSlackDestination schema — a single Slack channel ID (e.g. C01234567) or user DM (U01234567); exactly one recipient per Slack routine.
  • routine-create / routine-update request bodies now accept either an email destination (recipientEmails + userGroupIds) or a Slack destination (recipientId + slackRecipientType). These are body-schema changes on the existing ai-routines operations, so they surface via --body (visible with --schema), not new flags.

Side-effect change (pulled in by the full sync)

  • New operation documentsUpgradeLayoutPOST /api/v1/documents/{identifier}/upgrade, wired up as documents upgrade-layout <identifier>.

Test plan

  • make build
  • make test (all packages pass)
  • ./bin/omni documents upgrade-layout --help — new command present with <identifier> positional
  • ./bin/omni ai-routines routine-create --schema — body reflects the email/Slack destination union

Routines can now deliver through Slack in addition to email. The
destination response shape moved from an email-only object to a union:
- RoutineEmailDestination -> RoutineDestinationResponse (oneOf email | slack)
- new RoutineSlackDestination schema (single channel or DM recipient)
- routine-create/update bodies accept an email destination (recipient
  emails + user group IDs) or a Slack destination (recipientId +
  slackRecipientType)

These are request/response body changes on the existing ai-routines
operations, so they surface via --body rather than new flags.

Side-effect change pulled in by the full sync:
- new documentsUpgradeLayout operation: POST /api/v1/documents/{identifier}/upgrade
  (documents upgrade-layout)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cmruderman
cmruderman requested a review from n8agrin July 8, 2026 15:04
@cmruderman
cmruderman merged commit 00f633f into main Jul 8, 2026
2 checks passed
@cmruderman
cmruderman deleted the corey/feature/cut-version-for-routines branch July 8, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants