Skip to content

sync spec: add AI routines, model suggestions, credit controls, and whoami - #64

Merged
dspangen merged 1 commit into
mainfrom
sync-spec-routines-suggestions
Jun 26, 2026
Merged

sync spec: add AI routines, model suggestions, credit controls, and whoami#64
dspangen merged 1 commit into
mainfrom
sync-spec-routines-suggestions

Conversation

@dspangen

@dspangen dspangen commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Syncs the embedded OpenAPI spec from exploreomni/omni@main. The full sync surfaces 15 new operations across three new command groups plus additions to ai, and one side-effect param on existing endpoints. No operations were removed.

New command groups / operations:

  • ai-routines — full CRUD plus trigger:
    • routine-create (POST /api/v1/ai/routines)
    • routine-get (GET /api/v1/ai/routines/{id})
    • routine-update (PATCH /api/v1/ai/routines/{id})
    • routine-delete (DELETE /api/v1/ai/routines/{id})
    • routines-list (GET /api/v1/ai/routines)
    • routine-trigger (POST /api/v1/ai/routines/{id}/trigger)
  • ai-model-suggestions:
    • model-suggestions-list (GET /api/v1/models/{modelId}/suggestions)
    • model-suggestions-delete / model-suggestions-ignore / model-suggestions-restore
    • model-suggestions-schedule-enable (PUT) / model-suggestions-schedule-disable (DELETE)
  • ai — credit controls:
    • credit-controls-get (GET /api/v1/ai/credit-controls)
    • credit-controls-update (PATCH /api/v1/ai/credit-controls)
  • whoami:
    • whoami (GET /api/v1/whoami) — current identity and permissions, optional --modelid filter

Side-effect changes pulled in by the full sync:

  • documents v2-get and documents v2-get-draft gain a --pretty query flag.
  • documents v2-create request body: containers is now nullable (type: ["array", "null"]). Passing containers: null creates a workbook-only document with no dashboard; in that case controls and settings must be omitted. (Body-schema change — sent via --body, so no flag change.)

Note: POST/PATCH operations (e.g. routine-create, routine-update, credit-controls-update) take their request body via --body, so their body fields don't appear as individual flags. Query/path params are wired as flags/positional args.

…hoami

Syncs the embedded OpenAPI spec from exploreomni/omni@main. New command
groups and operations surfaced by the generator:

- ai-routines: full CRUD plus trigger (routine-create, routine-get,
  routine-update, routine-delete, routines-list, routine-trigger)
- ai-model-suggestions: model-suggestions-list/delete/ignore/restore and
  schedule enable/disable
- ai: credit-controls-get and credit-controls-update
- whoami: current identity and permissions

Side-effect change pulled in by the full sync:
- documents v2-get and v2-get-draft gain a --pretty query flag

Co-Authored-By: Claude <noreply@anthropic.com>
@dspangen
dspangen requested a review from n8agrin June 25, 2026 18:01
@dspangen
dspangen merged commit d015b5c into main Jun 26, 2026
2 checks passed
@dspangen
dspangen deleted the sync-spec-routines-suggestions branch June 26, 2026 13:47
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