n8n_client 0.2.0
n8n_client: ^0.2.0 copied to clipboard
A Dart client for interacting with the n8n Public API, built by Spinex IO.
Change Log #
All notable changes to this project will be documented in this file.
0.2.0 - 2025-01-12 #
Added #
-
New API Methods:
WorkflowsApi.getWorkflowVersion()- Retrieve specific workflow versionExecutionsApi.retryExecution()- Retry failed executionsCredentialsApi.updateCredential()- Update existing credentialsVariablesApi.updateVariable()- Update existing variablesProjectsApi.addUsersToProject()- Add users to a projectProjectsApi.removeUserFromProject()- Remove user from projectProjectsApi.changeUserRoleInProject()- Change user role in project
-
New Models:
Node- Workflow node with full property supportWorkflowSettings- Workflow configuration settingsWorkflowShare- Workflow sharing/permissionsActiveVersion- Workflow version trackingExecutionStatusenum - Execution state valuesExecutionModeenum - Execution trigger typesCredentialSchema- Credential type schema definitionCredentialProperty- Credential property definitionCredentialPropertyOption- Credential property optionsProjectRelation- Project user relationsAuditReport- Security audit reportRiskReport,RiskSection,RiskLocation- Audit risk detailsAuditOptions- Audit generation optionsPaginatedList<T>- Generic paginated response- Typed list responses for all entities
-
Enhanced Models:
Workflow- Addedshared,activeVersionfields, properNodetypingExecution- Addedstatusenum,workflowName, String IDsCredential- AddedisResolvable,isGlobal,isPartialDataVariable- AddedprojectId,projectrelationProject- AddedcreatedAt,updatedAt,relations
-
Enhanced API Methods:
WorkflowsApi.activateWorkflow()- AddedversionId,name,descriptionparamsVariablesApi.getVariables()- AddedprojectId,stateparams
-
Library Exports:
- All models now exported from main
n8n_client.dart - All API classes exported for direct access
- Utilities exported (
ApiException)
- All models now exported from main
Changed #
ExecutionsApimethods now useStringfor ID parameters (n8n uses alphanumeric IDs)Executionmodel usesStringforid,workflowId,retryOf,retrySuccessIdNode.typeVersionchanged todynamicto support both int and object values
Fixed #
- Workflow model parsing with real n8n API responses
- Execution model parsing with alphanumeric IDs
- Node typeVersion field type compatibility
0.1.0 - 2025-05-13 #
Initial Release #
- Basic API client with authentication
- Workflows API (CRUD, activate, deactivate, transfer, tags)
- Executions API (list, get, delete)
- Users API (list, create, get, delete, change role)
- Credentials API (create, delete, get schema, transfer)
- Tags API (CRUD)
- Variables API (create, list, delete)
- Projects API (CRUD)
- Audit API (generate)
- Source Control API (pull)
- Basic models for all entities