Skip to content

Workflows service and updated core API schemas#6

Merged
berggren merged 9 commits intomainfrom
workflows
Mar 18, 2026
Merged

Workflows service and updated core API schemas#6
berggren merged 9 commits intomainfrom
workflows

Conversation

@berggren
Copy link
Copy Markdown
Contributor

Summary

Adding WorkflowsService for management of workflows and their associated tasks.

Key Changes

  • WorkflowsService: Implemented Create, Run, Status, and Get methods.
    • Methods use ID-based parameters (folderID, workflowID) for flexibility.
    • Create includes automatic folder ID resolution from input files with validation.
  • Model Updates:
    • Added Folder field to the File struct.
    • Added UUID and Description fields to the Folder struct.
    • Introduced Workflow, Task, and WorkflowStatus structures.
  • Client Enhancements:
    • Updated the Error struct to include and display an underlying Cause.
    • Initialized WorkflowsService in the main Client.
  • Testing: Added workflows_test.go with 100% coverage of new service methods, including error paths and folder resolution logic.

@berggren berggren requested a review from hacktobeer March 17, 2026 08:40
@berggren berggren merged commit 15e4df6 into main Mar 18, 2026
3 checks passed
@berggren berggren deleted the workflows branch March 18, 2026 09:21
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