ugcinc 3.10.1 → 3.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,6 +118,14 @@ export declare class AutomationsClient extends BaseClient {
118
118
  exportRun(params: {
119
119
  runId: string;
120
120
  }): Promise<ApiResponse<AutomationRunExport>>;
121
+ /**
122
+ * Stop a running automation
123
+ * Marks the run as failed and all pending executors as failed.
124
+ * In-flight executors will complete gracefully.
125
+ */
126
+ stop(params: {
127
+ runId: string;
128
+ }): Promise<ApiResponse<null>>;
121
129
  }
122
130
  /**
123
131
  * Get all available automation nodes
@@ -130,6 +130,17 @@ class AutomationsClient extends base_1.BaseClient {
130
130
  body: JSON.stringify(params),
131
131
  });
132
132
  }
133
+ /**
134
+ * Stop a running automation
135
+ * Marks the run as failed and all pending executors as failed.
136
+ * In-flight executors will complete gracefully.
137
+ */
138
+ async stop(params) {
139
+ return this.request('/automations/stop', {
140
+ method: 'POST',
141
+ body: JSON.stringify(params),
142
+ });
143
+ }
133
144
  }
134
145
  exports.AutomationsClient = AutomationsClient;
135
146
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",