@activepieces/shared 0.40.0 → 0.41.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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/lib/automation/agents/tools.d.ts +5 -0
  3. package/src/lib/automation/agents/tools.js +12 -0
  4. package/src/lib/automation/agents/tools.js.map +1 -1
  5. package/src/lib/automation/app-connection/app-connection.d.ts +2 -2
  6. package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +1 -1
  7. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +21 -21
  8. package/src/lib/automation/flows/flow-version.d.ts +2 -2
  9. package/src/lib/automation/flows/flow.d.ts +8 -8
  10. package/src/lib/automation/flows/operations/index.d.ts +25 -25
  11. package/src/lib/automation/flows/operations/paste-operations.d.ts +19 -19
  12. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +1 -1
  13. package/src/lib/automation/flows/util/flow-structure-util.js +12 -6
  14. package/src/lib/automation/flows/util/flow-structure-util.js.map +1 -1
  15. package/src/lib/automation/mcp/mcp.d.ts +4 -4
  16. package/src/lib/automation/pieces/utils.js +5 -4
  17. package/src/lib/automation/pieces/utils.js.map +1 -1
  18. package/src/lib/automation/project-release/project-state.d.ts +30 -30
  19. package/src/lib/automation/tables/record.d.ts +1 -1
  20. package/src/lib/automation/tables/table.d.ts +3 -3
  21. package/src/lib/automation/workers/job-data.d.ts +27 -27
  22. package/src/lib/core/authentication/dto/authentication-response.d.ts +5 -5
  23. package/src/lib/core/common/activepieces-error.d.ts +2 -50
  24. package/src/lib/core/common/activepieces-error.js +0 -10
  25. package/src/lib/core/common/activepieces-error.js.map +1 -1
  26. package/src/lib/ee/api-key/index.d.ts +1 -1
  27. package/src/lib/ee/audit-events/index.d.ts +24 -24
  28. package/src/lib/ee/git-repo/index.d.ts +1 -1
  29. package/src/lib/ee/project-members/project-member.d.ts +1 -1
  30. package/src/lib/management/invitations/index.d.ts +2 -2
  31. package/src/lib/management/project/project.d.ts +8 -8
  32. package/src/lib/management/template/template.d.ts +10 -10
@@ -44,8 +44,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
44
44
  notes?: {
45
45
  ownerId?: string | null | undefined;
46
46
  id: string;
47
- color: import("..").NoteColorVariant;
48
47
  content: string;
48
+ color: import("..").NoteColorVariant;
49
49
  position: {
50
50
  x: number;
51
51
  y: number;
@@ -62,14 +62,13 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
62
62
  nextAction?: any;
63
63
  type: import("../triggers/trigger").FlowTriggerType.EMPTY;
64
64
  name: string;
65
- displayName: string;
66
65
  settings: any;
67
66
  valid: boolean;
67
+ displayName: string;
68
68
  } | {
69
69
  nextAction?: any;
70
70
  type: import("../triggers/trigger").FlowTriggerType.PIECE;
71
71
  name: string;
72
- displayName: string;
73
72
  settings: {
74
73
  triggerName?: string | undefined;
75
74
  sampleData?: {
@@ -91,6 +90,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
91
90
  };
92
91
  };
93
92
  valid: boolean;
93
+ displayName: string;
94
94
  };
95
95
  };
96
96
  } | {
@@ -109,7 +109,6 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
109
109
  skip?: boolean | undefined;
110
110
  type: import("../actions/action").FlowActionType.ROUTER;
111
111
  name: string;
112
- displayName: string;
113
112
  settings: {
114
113
  sampleData?: {
115
114
  sampleDataFileId?: string | undefined;
@@ -144,11 +143,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
144
143
  executionType: import("../actions/action").RouterExecutionType;
145
144
  };
146
145
  valid: boolean;
146
+ displayName: string;
147
147
  } | {
148
148
  skip?: boolean | undefined;
149
149
  type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
150
150
  name: string;
151
- displayName: string;
152
151
  settings: {
153
152
  sampleData?: {
154
153
  sampleDataFileId?: string | undefined;
@@ -159,13 +158,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
159
158
  items: string;
160
159
  };
161
160
  valid: boolean;
161
+ displayName: string;
162
162
  } | {
163
163
  skip?: boolean | undefined;
164
164
  type: import("../actions/action").FlowActionType.PIECE;
165
165
  name: string;
166
- displayName: string;
167
166
  settings: {
168
- actionName?: string | undefined;
169
167
  errorHandlingOptions?: {
170
168
  continueOnFailure?: {
171
169
  value?: boolean | undefined;
@@ -180,6 +178,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
180
178
  lastTestDate?: string | undefined;
181
179
  } | undefined;
182
180
  customLogoUrl?: string | undefined;
181
+ actionName?: string | undefined;
183
182
  pieceName: string;
184
183
  pieceVersion: string;
185
184
  input: {
@@ -193,11 +192,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
193
192
  };
194
193
  };
195
194
  valid: boolean;
195
+ displayName: string;
196
196
  } | {
197
197
  skip?: boolean | undefined;
198
198
  type: import("../actions/action").FlowActionType.CODE;
199
199
  name: string;
200
- displayName: string;
201
200
  settings: {
202
201
  errorHandlingOptions?: {
203
202
  continueOnFailure?: {
@@ -217,11 +216,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
217
216
  [x: string]: any;
218
217
  };
219
218
  sourceCode: {
220
- code: string;
221
219
  packageJson: string;
220
+ code: string;
222
221
  };
223
222
  };
224
223
  valid: boolean;
224
+ displayName: string;
225
225
  };
226
226
  } | {
227
227
  type: FlowOperationType.ADD_ACTION;
@@ -233,7 +233,6 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
233
233
  skip?: boolean | undefined;
234
234
  type: import("../actions/action").FlowActionType.ROUTER;
235
235
  name: string;
236
- displayName: string;
237
236
  settings: {
238
237
  sampleData?: {
239
238
  sampleDataFileId?: string | undefined;
@@ -268,11 +267,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
268
267
  executionType: import("../actions/action").RouterExecutionType;
269
268
  };
270
269
  valid: boolean;
270
+ displayName: string;
271
271
  } | {
272
272
  skip?: boolean | undefined;
273
273
  type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
274
274
  name: string;
275
- displayName: string;
276
275
  settings: {
277
276
  sampleData?: {
278
277
  sampleDataFileId?: string | undefined;
@@ -283,13 +282,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
283
282
  items: string;
284
283
  };
285
284
  valid: boolean;
285
+ displayName: string;
286
286
  } | {
287
287
  skip?: boolean | undefined;
288
288
  type: import("../actions/action").FlowActionType.PIECE;
289
289
  name: string;
290
- displayName: string;
291
290
  settings: {
292
- actionName?: string | undefined;
293
291
  errorHandlingOptions?: {
294
292
  continueOnFailure?: {
295
293
  value?: boolean | undefined;
@@ -304,6 +302,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
304
302
  lastTestDate?: string | undefined;
305
303
  } | undefined;
306
304
  customLogoUrl?: string | undefined;
305
+ actionName?: string | undefined;
307
306
  pieceName: string;
308
307
  pieceVersion: string;
309
308
  input: {
@@ -317,11 +316,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
317
316
  };
318
317
  };
319
318
  valid: boolean;
319
+ displayName: string;
320
320
  } | {
321
321
  skip?: boolean | undefined;
322
322
  type: import("../actions/action").FlowActionType.CODE;
323
323
  name: string;
324
- displayName: string;
325
324
  settings: {
326
325
  errorHandlingOptions?: {
327
326
  continueOnFailure?: {
@@ -341,11 +340,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
341
340
  [x: string]: any;
342
341
  };
343
342
  sourceCode: {
344
- code: string;
345
343
  packageJson: string;
344
+ code: string;
346
345
  };
347
346
  };
348
347
  valid: boolean;
348
+ displayName: string;
349
349
  };
350
350
  };
351
351
  } | {
@@ -354,14 +354,13 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
354
354
  nextAction?: any;
355
355
  type: import("../triggers/trigger").FlowTriggerType.EMPTY;
356
356
  name: string;
357
- displayName: string;
358
357
  settings: any;
359
358
  valid: boolean;
359
+ displayName: string;
360
360
  } | {
361
361
  nextAction?: any;
362
362
  type: import("../triggers/trigger").FlowTriggerType.PIECE;
363
363
  name: string;
364
- displayName: string;
365
364
  settings: {
366
365
  triggerName?: string | undefined;
367
366
  sampleData?: {
@@ -383,6 +382,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
383
382
  };
384
383
  };
385
384
  valid: boolean;
385
+ displayName: string;
386
386
  };
387
387
  } | {
388
388
  type: FlowOperationType.CHANGE_FOLDER;
@@ -472,8 +472,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
472
472
  request: {
473
473
  ownerId?: string | null | undefined;
474
474
  id: string;
475
- color: import("..").NoteColorVariant;
476
475
  content: string;
476
+ color: import("..").NoteColorVariant;
477
477
  position: {
478
478
  x: number;
479
479
  y: number;
@@ -492,8 +492,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
492
492
  type: FlowOperationType.ADD_NOTE;
493
493
  request: {
494
494
  id: string;
495
- color: import("..").NoteColorVariant;
496
495
  content: string;
496
+ color: import("..").NoteColorVariant;
497
497
  position: {
498
498
  x: number;
499
499
  y: number;
@@ -10,8 +10,8 @@ export declare const TriggerEvent: import("@sinclair/typebox").TObject<{
10
10
  }>;
11
11
  export type TriggerEvent = Static<typeof TriggerEvent> & BaseModel<TriggerEventId>;
12
12
  export declare const TriggerEventWithPayload: import("@sinclair/typebox").TObject<{
13
- id: import("@sinclair/typebox").TString;
14
13
  projectId: import("@sinclair/typebox").TString;
14
+ id: import("@sinclair/typebox").TString;
15
15
  flowId: import("@sinclair/typebox").TString;
16
16
  sourceName: import("@sinclair/typebox").TString;
17
17
  fileId: import("@sinclair/typebox").TString;
@@ -16,9 +16,11 @@ function getActionOrThrow(name, flowRoot) {
16
16
  const step = getStepOrThrow(name, flowRoot);
17
17
  if (!isAction(step.type)) {
18
18
  throw new activepieces_error_1.ActivepiecesError({
19
- code: activepieces_error_1.ErrorCode.STEP_NOT_FOUND,
19
+ code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
20
20
  params: {
21
- stepName: name,
21
+ entityType: 'step',
22
+ entityId: name,
23
+ message: 'Step is not an action',
22
24
  },
23
25
  });
24
26
  }
@@ -28,9 +30,11 @@ function getTriggerOrThrow(name, flowRoot) {
28
30
  const step = getStepOrThrow(name, flowRoot);
29
31
  if (!isTrigger(step.type)) {
30
32
  throw new activepieces_error_1.ActivepiecesError({
31
- code: activepieces_error_1.ErrorCode.STEP_NOT_FOUND,
33
+ code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
32
34
  params: {
33
- stepName: name,
35
+ entityType: 'step',
36
+ entityId: name,
37
+ message: 'Step is not a trigger',
34
38
  },
35
39
  });
36
40
  }
@@ -43,9 +47,11 @@ function getStepOrThrow(name, flowRoot) {
43
47
  const step = getStep(name, flowRoot);
44
48
  if ((0, common_1.isNil)(step)) {
45
49
  throw new activepieces_error_1.ActivepiecesError({
46
- code: activepieces_error_1.ErrorCode.STEP_NOT_FOUND,
50
+ code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
47
51
  params: {
48
- stepName: name,
52
+ entityType: 'step',
53
+ entityId: name,
54
+ message: 'Step not found',
49
55
  },
50
56
  });
51
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,gFAAsF;AACtF,8CAAqJ;AAErJ,iDAAkE;AAGrD,QAAA,aAAa,GAAG,wBAAwB,CAAA;AAOrD,SAAS,QAAQ,CAAC,IAAkD;IAChE,OAAO,MAAM,CAAC,OAAO,CAAC,uBAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC7E,CAAC;AAED,SAAS,SAAS,CAAC,IAAkD;IACjE,O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AAW,CAAC,CAAC,CAAC,CAAA;AACnE,CAAC;AAEY,QAAA,iBAAiB,GAAG;IAC7B,SAAS;IACT,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,cAAc;IACd,SAAS;IACT,cAAc;IACd,eAAe;IACf,gCAAgC;IAChC,gBAAgB;IAChB,oBAAoB;IACpB,YAAY;IACZ,eAAe;CAClB,CAAA"}
1
+ {"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,gFAAsF;AACtF,8CAAqJ;AAErJ,iDAAkE;AAGrD,QAAA,aAAa,GAAG,wBAAwB,CAAA;AAOrD,SAAS,QAAQ,CAAC,IAAkD;IAChE,OAAO,MAAM,CAAC,OAAO,CAAC,uBAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC7E,CAAC;AAED,SAAS,SAAS,CAAC,IAAkD;IACjE,OAAO,MAAM,CAAC,OAAO,CAAC,yBAAe,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC9E,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAY,EAAE,QAAc;IAClD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC3C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,sCAAiB,CAAC;YACxB,IAAI,EAAE,8BAAS,CAAC,gBAAgB;YAChC,MAAM,EAAE;gBACJ,UAAU,EAAE,MAAM;gBAClB,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE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@@ export declare const McpServer: import("@sinclair/typebox").TObject<{
15
15
  updated: import("@sinclair/typebox").TString;
16
16
  }>;
17
17
  export declare const PopulatedMcpServer: import("@sinclair/typebox").TObject<{
18
+ projectId: import("@sinclair/typebox").TString;
18
19
  id: import("@sinclair/typebox").TString;
19
20
  created: import("@sinclair/typebox").TString;
20
21
  updated: import("@sinclair/typebox").TString;
21
- projectId: import("@sinclair/typebox").TString;
22
22
  status: import("@sinclair/typebox").TEnum<typeof McpServerStatus>;
23
23
  token: import("@sinclair/typebox").TString;
24
24
  flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
25
+ projectId: import("@sinclair/typebox").TString;
25
26
  id: import("@sinclair/typebox").TString;
26
27
  created: import("@sinclair/typebox").TString;
27
28
  updated: import("@sinclair/typebox").TString;
28
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
29
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
29
30
  externalId: import("@sinclair/typebox").TString;
31
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
30
32
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
31
33
  [x: string]: unknown;
32
34
  } | null>>;
33
- projectId: import("@sinclair/typebox").TString;
34
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
35
35
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
36
36
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
37
37
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -50,11 +50,12 @@ const extractPieceFromModule = (params) => {
50
50
  constructors.push((_a = e === null || e === void 0 ? void 0 : e.constructor) === null || _a === void 0 ? void 0 : _a.name);
51
51
  }
52
52
  throw new activepieces_error_1.ActivepiecesError({
53
- code: activepieces_error_1.ErrorCode.PIECE_NOT_FOUND,
53
+ code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
54
54
  params: {
55
- pieceName,
56
- pieceVersion,
57
- message: `Failed to extract piece from module, found constructors: ${constructors.join(', ')}`,
55
+ entityType: 'piece',
56
+ entityId: pieceName,
57
+ message: `Failed to extract piece from module (version: ${pieceVersion}), found constructors: ${constructors.join(', ')}`,
58
+ extra: { pieceName, pieceVersion },
58
59
  },
59
60
  });
60
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/lib/automation/pieces/utils.ts"],"names":[],"mappings":";;;;AAAA,2EAAgD;AAChD,2EAAgD;AAChD,oFAAwD;AACxD,8CAA4D;AAC5D,6EAAmF;AAEnF;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CAAC,MAAqC,EAAU,EAAE;IACrF,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,CAAA;IAC1C,OAAO,GAAG,SAAS,IAAI,YAAY,EAAE,CAAA;AACzC,CAAC,CAAA;AAHY,QAAA,uBAAuB,2BAGnC;AAED;;;GAGG;AACI,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAU,EAAE;IAC3D,MAAM,aAAa,GAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;IAC7E,IAAA,iCAAwB,EAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;IAC1D,IAAI,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrC,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACtD,CAAC;IACD,OAAO,aAAa,CAAA;AACxB,CAAC,CAAA;AAPY,QAAA,qBAAqB,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,CAAC,IAAI,IAAA,eAAW,EAAC,aAAa,CAAC,EAAE;QAC/D,CAAC,CAAC,GAAG,IAAA,eAAW,EAAC,YAAY,CAAC,IAAI,IAAA,eAAW,EAAC,YAAY,CAAC,EAAE,CAAA;AACrE,CAAC,CAAA;AALY,QAAA,4BAA4B,gCAKxC;AAYY,QAAA,0BAA0B,GAAG,GAAG,CAAA"}
@@ -15,16 +15,16 @@ export declare enum TableOperationType {
15
15
  DELETE_TABLE = "DELETE_TABLE"
16
16
  }
17
17
  export declare const FlowState: import("@sinclair/typebox").TObject<{
18
+ projectId: import("@sinclair/typebox").TString;
18
19
  id: import("@sinclair/typebox").TString;
19
20
  created: import("@sinclair/typebox").TString;
20
21
  updated: import("@sinclair/typebox").TString;
21
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
22
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
22
23
  externalId: import("@sinclair/typebox").TString;
24
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
23
25
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
24
26
  [x: string]: unknown;
25
27
  } | null>>;
26
- projectId: import("@sinclair/typebox").TString;
27
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
28
28
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
29
29
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
30
30
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -138,16 +138,16 @@ export declare const TableState: import("@sinclair/typebox").TObject<{
138
138
  export type TableState = Static<typeof TableState>;
139
139
  export declare const ProjectState: import("@sinclair/typebox").TObject<{
140
140
  flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
141
+ projectId: import("@sinclair/typebox").TString;
141
142
  id: import("@sinclair/typebox").TString;
142
143
  created: import("@sinclair/typebox").TString;
143
144
  updated: import("@sinclair/typebox").TString;
144
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
145
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
145
146
  externalId: import("@sinclair/typebox").TString;
147
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
146
148
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
147
149
  [x: string]: unknown;
148
150
  } | null>>;
149
- projectId: import("@sinclair/typebox").TString;
150
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
151
151
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
152
152
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
153
153
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -250,16 +250,16 @@ export type ProjectState = Static<typeof ProjectState>;
250
250
  export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
251
251
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
252
252
  newFlowState: import("@sinclair/typebox").TObject<{
253
+ projectId: import("@sinclair/typebox").TString;
253
254
  id: import("@sinclair/typebox").TString;
254
255
  created: import("@sinclair/typebox").TString;
255
256
  updated: import("@sinclair/typebox").TString;
256
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
257
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
257
258
  externalId: import("@sinclair/typebox").TString;
259
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
258
260
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
259
261
  [x: string]: unknown;
260
262
  } | null>>;
261
- projectId: import("@sinclair/typebox").TString;
262
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
263
263
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
264
264
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
265
265
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -336,16 +336,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
336
336
  }>>;
337
337
  }>;
338
338
  flowState: import("@sinclair/typebox").TObject<{
339
+ projectId: import("@sinclair/typebox").TString;
339
340
  id: import("@sinclair/typebox").TString;
340
341
  created: import("@sinclair/typebox").TString;
341
342
  updated: import("@sinclair/typebox").TString;
342
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
343
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
343
344
  externalId: import("@sinclair/typebox").TString;
345
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
344
346
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
345
347
  [x: string]: unknown;
346
348
  } | null>>;
347
- projectId: import("@sinclair/typebox").TString;
348
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
349
349
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
350
350
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
351
351
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -424,16 +424,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
424
424
  }>, import("@sinclair/typebox").TObject<{
425
425
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
426
426
  flowState: import("@sinclair/typebox").TObject<{
427
+ projectId: import("@sinclair/typebox").TString;
427
428
  id: import("@sinclair/typebox").TString;
428
429
  created: import("@sinclair/typebox").TString;
429
430
  updated: import("@sinclair/typebox").TString;
430
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
431
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
431
432
  externalId: import("@sinclair/typebox").TString;
433
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
432
434
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
433
435
  [x: string]: unknown;
434
436
  } | null>>;
435
- projectId: import("@sinclair/typebox").TString;
436
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
437
437
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
438
438
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
439
439
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -512,16 +512,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
512
512
  }>, import("@sinclair/typebox").TObject<{
513
513
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
514
514
  flowState: import("@sinclair/typebox").TObject<{
515
+ projectId: import("@sinclair/typebox").TString;
515
516
  id: import("@sinclair/typebox").TString;
516
517
  created: import("@sinclair/typebox").TString;
517
518
  updated: import("@sinclair/typebox").TString;
518
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
519
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
519
520
  externalId: import("@sinclair/typebox").TString;
521
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
520
522
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
521
523
  [x: string]: unknown;
522
524
  } | null>>;
523
- projectId: import("@sinclair/typebox").TString;
524
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
525
525
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
526
526
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
527
527
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -700,16 +700,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
700
700
  flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
701
701
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
702
702
  newFlowState: import("@sinclair/typebox").TObject<{
703
+ projectId: import("@sinclair/typebox").TString;
703
704
  id: import("@sinclair/typebox").TString;
704
705
  created: import("@sinclair/typebox").TString;
705
706
  updated: import("@sinclair/typebox").TString;
706
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
707
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
707
708
  externalId: import("@sinclair/typebox").TString;
709
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
708
710
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
709
711
  [x: string]: unknown;
710
712
  } | null>>;
711
- projectId: import("@sinclair/typebox").TString;
712
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
713
713
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
714
714
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
715
715
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -786,16 +786,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
786
786
  }>>;
787
787
  }>;
788
788
  flowState: import("@sinclair/typebox").TObject<{
789
+ projectId: import("@sinclair/typebox").TString;
789
790
  id: import("@sinclair/typebox").TString;
790
791
  created: import("@sinclair/typebox").TString;
791
792
  updated: import("@sinclair/typebox").TString;
792
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
793
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
793
794
  externalId: import("@sinclair/typebox").TString;
795
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
794
796
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
795
797
  [x: string]: unknown;
796
798
  } | null>>;
797
- projectId: import("@sinclair/typebox").TString;
798
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
799
799
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
800
800
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
801
801
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -874,16 +874,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
874
874
  }>, import("@sinclair/typebox").TObject<{
875
875
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
876
876
  flowState: import("@sinclair/typebox").TObject<{
877
+ projectId: import("@sinclair/typebox").TString;
877
878
  id: import("@sinclair/typebox").TString;
878
879
  created: import("@sinclair/typebox").TString;
879
880
  updated: import("@sinclair/typebox").TString;
880
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
881
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
881
882
  externalId: import("@sinclair/typebox").TString;
883
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
882
884
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
883
885
  [x: string]: unknown;
884
886
  } | null>>;
885
- projectId: import("@sinclair/typebox").TString;
886
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
887
887
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
888
888
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
889
889
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -962,16 +962,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
962
962
  }>, import("@sinclair/typebox").TObject<{
963
963
  type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
964
964
  flowState: import("@sinclair/typebox").TObject<{
965
+ projectId: import("@sinclair/typebox").TString;
965
966
  id: import("@sinclair/typebox").TString;
966
967
  created: import("@sinclair/typebox").TString;
967
968
  updated: import("@sinclair/typebox").TString;
968
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
969
+ status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
969
970
  externalId: import("@sinclair/typebox").TString;
971
+ ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
970
972
  metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
971
973
  [x: string]: unknown;
972
974
  } | null>>;
973
- projectId: import("@sinclair/typebox").TString;
974
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
975
975
  folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
976
976
  publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
977
977
  operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
@@ -8,10 +8,10 @@ export declare const Record: import("@sinclair/typebox").TObject<{
8
8
  }>;
9
9
  export type Record = Static<typeof Record>;
10
10
  export declare const PopulatedRecord: import("@sinclair/typebox").TObject<{
11
+ projectId: import("@sinclair/typebox").TString;
11
12
  id: import("@sinclair/typebox").TString;
12
13
  created: import("@sinclair/typebox").TString;
13
14
  updated: import("@sinclair/typebox").TString;
14
- projectId: import("@sinclair/typebox").TString;
15
15
  tableId: import("@sinclair/typebox").TString;
16
16
  cells: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
17
17
  created: import("@sinclair/typebox").TString;
@@ -19,13 +19,13 @@ export declare const Table: import("@sinclair/typebox").TObject<{
19
19
  }>;
20
20
  export type Table = Static<typeof Table>;
21
21
  export declare const PopulatedTable: import("@sinclair/typebox").TObject<{
22
+ projectId: import("@sinclair/typebox").TString;
22
23
  id: import("@sinclair/typebox").TString;
23
24
  created: import("@sinclair/typebox").TString;
24
25
  updated: import("@sinclair/typebox").TString;
25
- name: import("@sinclair/typebox").TString;
26
- externalId: import("@sinclair/typebox").TString;
27
- projectId: import("@sinclair/typebox").TString;
28
26
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
27
+ externalId: import("@sinclair/typebox").TString;
28
+ name: import("@sinclair/typebox").TString;
29
29
  trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
30
30
  fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
31
31
  name: import("@sinclair/typebox").TString;