ugcinc 3.2.2 → 3.3.0
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.
- package/dist/automations.d.ts +6 -0
- package/dist/automations.js +9 -0
- package/dist/types.d.ts +10 -2
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -98,6 +98,12 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
98
98
|
valid: boolean;
|
|
99
99
|
errors: string[];
|
|
100
100
|
}>>;
|
|
101
|
+
/**
|
|
102
|
+
* Delete an automation run
|
|
103
|
+
*/
|
|
104
|
+
deleteRun(params: {
|
|
105
|
+
runId: string;
|
|
106
|
+
}): Promise<ApiResponse<null>>;
|
|
101
107
|
}
|
|
102
108
|
/**
|
|
103
109
|
* Get all available automation nodes
|
package/dist/automations.js
CHANGED
|
@@ -101,6 +101,15 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
101
101
|
body: JSON.stringify(params),
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Delete an automation run
|
|
106
|
+
*/
|
|
107
|
+
async deleteRun(params) {
|
|
108
|
+
return this.request('/automations/delete-run', {
|
|
109
|
+
method: 'POST',
|
|
110
|
+
body: JSON.stringify(params),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
104
113
|
}
|
|
105
114
|
exports.AutomationsClient = AutomationsClient;
|
|
106
115
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -840,8 +840,16 @@ export interface LLMOutputField {
|
|
|
840
840
|
description?: string;
|
|
841
841
|
/** Output type */
|
|
842
842
|
type: 'string' | 'number' | 'boolean' | 'array';
|
|
843
|
-
/** For array types - the item type */
|
|
844
|
-
items?: 'string' | 'number' | 'boolean';
|
|
843
|
+
/** For array types - the item type (including 'object' for arrays of objects) */
|
|
844
|
+
items?: 'string' | 'number' | 'boolean' | 'object';
|
|
845
|
+
/** For array of objects - nested field definitions (max 2 levels of nesting) */
|
|
846
|
+
objectSchema?: LLMOutputField[];
|
|
847
|
+
/** Exact array length constraint */
|
|
848
|
+
length?: number;
|
|
849
|
+
/** Minimum array length constraint */
|
|
850
|
+
minLength?: number;
|
|
851
|
+
/** Maximum array length constraint */
|
|
852
|
+
maxLength?: number;
|
|
845
853
|
}
|
|
846
854
|
/**
|
|
847
855
|
* API Keys configuration for LLM providers (user can bring their own)
|