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.
@@ -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
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",