Skip to content

[codex] add automation API SDK#17

Merged
debidong merged 2 commits into
flashcatcloud:mainfrom
debidong:codex/automation-api-sdk
Jun 29, 2026
Merged

[codex] add automation API SDK#17
debidong merged 2 commits into
flashcatcloud:mainfrom
debidong:codex/automation-api-sdk

Conversation

@debidong

Copy link
Copy Markdown
Contributor

What changed

  • Synced the latest Flashduty OpenAPI spec so AI-SRE Automation endpoints are available in go-flashduty.
  • Generated the AutomationsService rule/list/get/update/delete/template/run methods.
  • Added a hand-written TriggerWriteFire method for the HTTP POST trigger endpoint because it uses Bearer token auth, a path parameter, and 202 Accepted.
  • Added a hand-written AutomationRuleUpdateRequest so partial updates can send explicit zero values like enabled=false and schedule_trigger_enabled=false.

Why

Automation via chat will use flashduty-cli, and the CLI should call the SDK instead of hand-rolling raw HTTP. The trigger fire endpoint does not follow the normal app_key-generated path, so it needs explicit SDK support.

Validation

  • go test ./...
  • make test
  • make build
  • make generate
  • git diff --check

@debidong debidong marked this pull request as ready for review June 29, 2026 05:36
@debidong debidong merged commit 9893dd1 into flashcatcloud:main Jun 29, 2026
4 checks passed
@debidong debidong deleted the codex/automation-api-sdk branch June 29, 2026 06:14
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.

1 participant