Skip to content

sync spec: add per-user AI credit limits, document dashboard ops, dbt sync#69

Merged
dspangen merged 1 commit into
mainfrom
sync-spec-dbt-sync-user-credits
Jul 16, 2026
Merged

sync spec: add per-user AI credit limits, document dashboard ops, dbt sync#69
dspangen merged 1 commit into
mainfrom
sync-spec-dbt-sync-user-credits

Conversation

@dspangen

Copy link
Copy Markdown
Contributor

Summary

Full spec sync from exploreomni/omni@main. Headline changes:

  • Per-user AI credit limitsomni ai credit-controls-users-list (paginated via --cursor/--pagesize) and omni ai credit-controls-users-update (bulk PATCH via --body; each entry sets a limit, null for unlimited, or useDefaultLimit: true to revert to the org default).
  • Documents v2omni documents v2-remove-dashboard <identifier> <draftIdentifier> (leaves a workbook-only document) and omni documents v2-update-identifier <identifier> (renames a published document's identifier via --body).
  • dbt sync triggeromni models dbt-sync <modelId> --branch-id <id> triggers a dbt metadata quick sync as a background job.

Removed upstream:

  • connectionEnvironmentsList (GET /api/v1/connection-environments) is gone; omni connections connection-environments-list no longer exists. The create/update/delete commands remain.

Body fields on the PATCH/PUT endpoints don't surface as flags — those commands take --body and support --schema to inspect the shape.

Test plan

  • make build and make test pass
  • --help verified for all five new commands (positional args, --cursor/--pagesize/--branch-id flags, --body/--schema on mutation endpoints)
  • Confirmed connection-environments-list no longer appears under omni connections
  • Optional: live read-only check of ai credit-controls-users-list against a configured profile

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fmg7SCBjZZmUhxs8QDqquZ

… sync

New operations:
- aiCreditControlsUsersList / aiCreditControlsUsersUpdate — list and bulk-set
  individual users' AI credit limits (GET/PATCH /api/v1/ai/credit-controls/users)
- documentsV2RemoveDashboard — remove a dashboard from a draft, leaving a
  workbook-only document (DELETE /api/v2/documents/{identifier}/draft/{draftIdentifier}/dashboard)
- documentsV2UpdateIdentifier — rename a published document's identifier
  (PUT /api/v2/documents/{identifier}/identifier)
- modelsDbtSync — trigger a dbt metadata sync for a branch
  (POST /api/v1/models/{modelId}/dbt-sync)

Removed upstream:
- connectionEnvironmentsList (GET /api/v1/connection-environments); the
  create/update/delete operations remain.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fmg7SCBjZZmUhxs8QDqquZ
@dspangen
dspangen requested review from cmruderman and n8agrin July 16, 2026 17:18
@dspangen
dspangen merged commit d88376f into main Jul 16, 2026
2 checks passed
@dspangen
dspangen deleted the sync-spec-dbt-sync-user-credits branch July 16, 2026 17:32
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