newo 1.6.1 → 1.7.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/src/types.ts CHANGED
@@ -34,6 +34,23 @@ export interface CustomerProfile {
34
34
  [key: string]: any;
35
35
  }
36
36
 
37
+ export interface CustomerAttribute {
38
+ id?: string; // Required for push operations
39
+ idn: string;
40
+ value: string | object;
41
+ title: string;
42
+ description: string;
43
+ group: string;
44
+ is_hidden: boolean;
45
+ possible_values: string[];
46
+ value_type: string;
47
+ }
48
+
49
+ export interface CustomerAttributesResponse {
50
+ groups: string[];
51
+ attributes: CustomerAttribute[];
52
+ }
53
+
37
54
  export interface MultiCustomerConfig {
38
55
  customers: Record<string, CustomerConfig>;
39
56
  defaultCustomer?: string | undefined;
@@ -210,17 +227,17 @@ export interface FlowsYamlEvent {
210
227
  title: string;
211
228
  idn: string;
212
229
  skill_selector: string;
213
- skill_idn?: string | undefined;
214
- state_idn?: string | undefined;
215
- integration_idn?: string | undefined;
216
- connector_idn?: string | undefined;
230
+ skill_idn?: string | null;
231
+ state_idn?: string | null;
232
+ integration_idn?: string | null;
233
+ connector_idn?: string | null;
217
234
  interrupt_mode: string;
218
235
  }
219
236
 
220
237
  export interface FlowsYamlState {
221
238
  title: string;
222
239
  idn: string;
223
- default_value?: string | undefined;
240
+ default_value?: string | null;
224
241
  scope: string;
225
242
  }
226
243
 
@@ -238,7 +255,7 @@ export interface FlowsYamlFlow {
238
255
 
239
256
  export interface FlowsYamlAgent {
240
257
  agent_idn: string;
241
- agent_description?: string | undefined;
258
+ agent_description?: string | null;
242
259
  agent_flows: FlowsYamlFlow[];
243
260
  }
244
261
 
@@ -273,4 +290,50 @@ export interface StatusResult {
273
290
  status: FileStatus;
274
291
  oldHash?: string;
275
292
  newHash?: string;
293
+ }
294
+
295
+ // Hierarchical Metadata Types for Individual YAML Files
296
+ export interface ProjectMetadata {
297
+ id: string;
298
+ idn: string;
299
+ title: string;
300
+ description?: string;
301
+ created_at?: string;
302
+ updated_at?: string;
303
+ }
304
+
305
+ export interface AgentMetadata {
306
+ id: string;
307
+ idn: string;
308
+ title?: string;
309
+ description?: string;
310
+ // Additional agent settings from UI could be added here
311
+ persona?: string;
312
+ created_at?: string;
313
+ updated_at?: string;
314
+ }
315
+
316
+ export interface FlowMetadata {
317
+ id: string;
318
+ idn: string;
319
+ title: string;
320
+ description?: string;
321
+ default_runner_type: RunnerType;
322
+ default_model: ModelConfig;
323
+ events: FlowEvent[];
324
+ state_fields: FlowState[];
325
+ created_at?: string;
326
+ updated_at?: string;
327
+ }
328
+
329
+ export interface SkillMetadata {
330
+ id: string;
331
+ idn: string;
332
+ title: string;
333
+ runner_type: RunnerType;
334
+ model: ModelConfig;
335
+ parameters: SkillParameter[];
336
+ path?: string;
337
+ created_at?: string;
338
+ updated_at?: string;
276
339
  }