@pipelab/shared 1.0.0-beta.1 → 1.0.0-beta.11
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/.oxfmtrc.json +1 -1
- package/CHANGELOG.md +82 -0
- package/dist/index.d.mts +467 -153
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +440 -188
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -4
- package/src/apis.ts +40 -13
- package/src/build-history.ts +2 -0
- package/src/config/connections-definition.ts +3 -0
- package/src/config/migrators.ts +227 -85
- package/src/config/settings-definition.ts +2 -0
- package/src/config.schema.ts +71 -2
- package/src/graph.ts +2 -70
- package/src/i18n/de_DE.json +5 -1
- package/src/i18n/en_US.json +18 -3
- package/src/i18n/es_ES.json +5 -1
- package/src/i18n/fr_FR.json +5 -1
- package/src/i18n/pt_BR.json +5 -1
- package/src/i18n/zh_CN.json +5 -1
- package/src/index.ts +19 -0
- package/src/ipc.types.ts +2 -0
- package/src/model.test.ts +313 -1
- package/src/model.ts +54 -43
- package/src/plugins/definitions.ts +25 -55
- package/src/plugins.ts +10 -1
- package/src/utils.ts +26 -0
- package/tsconfig.json +1 -3
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ import { User, UserResponse } from "@supabase/supabase-js";
|
|
|
8
8
|
import { ConditionalPick, Simplify, Tagged } from "type-fest";
|
|
9
9
|
import { WebSocket } from "ws";
|
|
10
10
|
import { IncomingMessage as IncomingMessage$1 } from "http";
|
|
11
|
+
import { SandboxFolder } from "@pipelab/constants";
|
|
11
12
|
|
|
12
13
|
//#region src/config/migrators.d.ts
|
|
13
14
|
interface Migrator<T> {
|
|
@@ -151,16 +152,32 @@ type IconType = {
|
|
|
151
152
|
icon: string;
|
|
152
153
|
};
|
|
153
154
|
interface PluginDefinition {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
icon: IconType;
|
|
157
|
-
description: string;
|
|
155
|
+
packageName?: string;
|
|
156
|
+
version?: string;
|
|
158
157
|
}
|
|
159
158
|
type RendererNodeDefinition = {
|
|
160
159
|
node: PipelabNode;
|
|
161
160
|
};
|
|
161
|
+
interface IntegrationField {
|
|
162
|
+
key: string;
|
|
163
|
+
label: string;
|
|
164
|
+
type: "text" | "password" | "file" | "directory";
|
|
165
|
+
placeholder?: string;
|
|
166
|
+
}
|
|
167
|
+
interface IntegrationDefinition {
|
|
168
|
+
name: string;
|
|
169
|
+
fields: IntegrationField[];
|
|
170
|
+
}
|
|
162
171
|
interface RendererPluginDefinition extends PluginDefinition {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
icon: IconType;
|
|
175
|
+
description: string;
|
|
176
|
+
isOfficial: boolean;
|
|
177
|
+
packageName: string;
|
|
178
|
+
version: string;
|
|
163
179
|
nodes: Array<RendererNodeDefinition>;
|
|
180
|
+
integrations?: Array<IntegrationDefinition>;
|
|
164
181
|
}
|
|
165
182
|
interface MainPluginDefinition extends PluginDefinition {
|
|
166
183
|
nodes: ({
|
|
@@ -171,6 +188,7 @@ interface MainPluginDefinition extends PluginDefinition {
|
|
|
171
188
|
description: string;
|
|
172
189
|
validator: (options: any) => any;
|
|
173
190
|
}>;
|
|
191
|
+
integrations?: Array<IntegrationDefinition>;
|
|
174
192
|
}
|
|
175
193
|
declare const createNodeDefinition: (def: MainPluginDefinition) => MainPluginDefinition;
|
|
176
194
|
type InputsOutputsDefinition = InputsDefinition | OutputsDefinition;
|
|
@@ -184,7 +202,6 @@ type GetFlowKeys<T extends InputsOutputsDefinition> = keyof GetFlowEntries<T>;
|
|
|
184
202
|
type GetDataKeys<T extends InputsOutputsDefinition> = keyof GetDataEntries<T>;
|
|
185
203
|
type DataResult = Record<string, any>;
|
|
186
204
|
type SetOutputActionFn<T extends Action> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
|
|
187
|
-
type SetOutputLoopFn<T extends Loop> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
|
|
188
205
|
type SetOutputExpressionFn<T extends Expression> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
|
|
189
206
|
type ParamsToInput<PARAMS extends InputsDefinition> = { [index in keyof PARAMS]: PARAMS[index]["required"] extends true ? PARAMS[index]["value"] : PARAMS[index]["value"] | null };
|
|
190
207
|
interface BaseNode {
|
|
@@ -208,34 +225,8 @@ interface Action extends BaseNode {
|
|
|
208
225
|
deprecatedMessage?: string;
|
|
209
226
|
}
|
|
210
227
|
type ExtractInputsFromAction<ACTION extends Action> = { [index in keyof ACTION["params"]]: ACTION["params"][index]["value"] };
|
|
211
|
-
type ExtractInputsFromCondition<CONDITION extends Condition> = { [index in keyof CONDITION["params"]]: CONDITION["params"][index]["value"] };
|
|
212
|
-
type ExtractInputsFromLoop<LOOP extends Loop> = { [index in keyof LOOP["params"]]: LOOP["params"][index]["value"] };
|
|
213
228
|
type ExtractInputsFromEvent<EVENT extends Event$1> = { [index in keyof EVENT["params"]]: EVENT["params"][index]["value"] };
|
|
214
229
|
type ExtractInputsFromExpression<EXPRESSION extends Expression> = { [index in keyof EXPRESSION["params"]]: EXPRESSION["params"][index]["value"] };
|
|
215
|
-
interface Condition extends BaseNode {
|
|
216
|
-
id: string;
|
|
217
|
-
type: "condition";
|
|
218
|
-
version?: number;
|
|
219
|
-
displayString: string;
|
|
220
|
-
icon: string;
|
|
221
|
-
name: string;
|
|
222
|
-
description: string;
|
|
223
|
-
params: InputsDefinition;
|
|
224
|
-
meta?: Meta;
|
|
225
|
-
platforms?: NodeJS.Platform[];
|
|
226
|
-
}
|
|
227
|
-
interface Loop extends BaseNode {
|
|
228
|
-
id: string;
|
|
229
|
-
type: "loop";
|
|
230
|
-
version?: number;
|
|
231
|
-
displayString: string;
|
|
232
|
-
icon: string;
|
|
233
|
-
name: string;
|
|
234
|
-
description: string;
|
|
235
|
-
params: InputsDefinition;
|
|
236
|
-
meta?: Meta;
|
|
237
|
-
outputs: OutputsDefinition;
|
|
238
|
-
}
|
|
239
230
|
interface Expression extends BaseNode {
|
|
240
231
|
id: string;
|
|
241
232
|
type: "expression";
|
|
@@ -260,7 +251,7 @@ interface Event$1 extends BaseNode {
|
|
|
260
251
|
meta?: Meta;
|
|
261
252
|
platforms?: NodeJS.Platform[];
|
|
262
253
|
}
|
|
263
|
-
type PipelabNode = Event$1 |
|
|
254
|
+
type PipelabNode = Event$1 | Expression | Action;
|
|
264
255
|
declare const createDefinition: <T extends MainPluginDefinition>(definition: T) => T;
|
|
265
256
|
declare const createAction: <T extends Omit<Action, "type">>(action: T) => T & {
|
|
266
257
|
type: "action";
|
|
@@ -385,12 +376,6 @@ declare const createRawParam: <T>(value: T, definition: Omit<InputDefinition, "v
|
|
|
385
376
|
declare const createExpression: <T extends Omit<Expression, "type">>(expression: T) => T & {
|
|
386
377
|
type: "expression";
|
|
387
378
|
};
|
|
388
|
-
declare const createCondition: <T extends Omit<Condition, "type">>(condition: T) => T & {
|
|
389
|
-
type: "condition";
|
|
390
|
-
};
|
|
391
|
-
declare const createLoop: <T extends Omit<Loop, "type">>(loop: T) => T & {
|
|
392
|
-
type: "loop";
|
|
393
|
-
};
|
|
394
379
|
declare const createEvent: <T extends Omit<Event$1, "type">>(event: T) => T & {
|
|
395
380
|
type: "event";
|
|
396
381
|
};
|
|
@@ -432,6 +417,7 @@ declare const foo = "bar";
|
|
|
432
417
|
type WithId<T> = T extends string | number ? never : T & {
|
|
433
418
|
id: string;
|
|
434
419
|
};
|
|
420
|
+
declare const transformUrl: (url: string | undefined | null) => string;
|
|
435
421
|
//#endregion
|
|
436
422
|
//#region src/save-location.d.ts
|
|
437
423
|
declare const SaveLocationInternalValidator: valibot.ObjectSchema<{
|
|
@@ -488,6 +474,7 @@ declare const SaveLocationValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
488
474
|
type SaveLocation = InferInput<typeof SaveLocationValidator>;
|
|
489
475
|
//#endregion
|
|
490
476
|
//#region src/model.d.ts
|
|
477
|
+
type NodeId = string;
|
|
491
478
|
type Position = {
|
|
492
479
|
x: number;
|
|
493
480
|
y: number;
|
|
@@ -495,6 +482,7 @@ type Position = {
|
|
|
495
482
|
declare const OriginValidator: valibot.ObjectSchema<{
|
|
496
483
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
497
484
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
485
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
498
486
|
}, undefined>;
|
|
499
487
|
type Origin = InferOutput<typeof OriginValidator>;
|
|
500
488
|
declare const EditorParamValidatorV3: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -502,7 +490,7 @@ type EditorParam = InferOutput<typeof EditorParamValidatorV3>;
|
|
|
502
490
|
declare const BlockActionValidatorV3: valibot.ObjectSchema<{
|
|
503
491
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
504
492
|
readonly uid: valibot.StringSchema<undefined>;
|
|
505
|
-
readonly name: valibot.
|
|
493
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
506
494
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
507
495
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
508
496
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -511,29 +499,16 @@ declare const BlockActionValidatorV3: valibot.ObjectSchema<{
|
|
|
511
499
|
readonly origin: valibot.ObjectSchema<{
|
|
512
500
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
513
501
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
502
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
514
503
|
}, undefined>;
|
|
515
504
|
}, undefined>;
|
|
516
|
-
type BlockCondition = {
|
|
517
|
-
type: "condition";
|
|
518
|
-
uid: string;
|
|
519
|
-
origin: Origin;
|
|
520
|
-
params: Record<string, any>;
|
|
521
|
-
branchTrue: Array<Block>;
|
|
522
|
-
branchFalse: Array<Block>;
|
|
523
|
-
};
|
|
524
|
-
type BlockLoop = {
|
|
525
|
-
type: "loop";
|
|
526
|
-
uid: string;
|
|
527
|
-
origin: Origin;
|
|
528
|
-
params: Record<string, any>;
|
|
529
|
-
children: Array<Block>;
|
|
530
|
-
};
|
|
531
505
|
declare const BlockEventValidator: valibot.ObjectSchema<{
|
|
532
506
|
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
533
507
|
readonly uid: valibot.StringSchema<undefined>;
|
|
534
508
|
readonly origin: valibot.ObjectSchema<{
|
|
535
509
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
536
510
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
511
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
537
512
|
}, undefined>;
|
|
538
513
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
539
514
|
}, undefined>;
|
|
@@ -543,13 +518,14 @@ declare const BlockCommentValidator: valibot.ObjectSchema<{
|
|
|
543
518
|
readonly origin: valibot.ObjectSchema<{
|
|
544
519
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
545
520
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
521
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
546
522
|
}, undefined>;
|
|
547
523
|
readonly comment: valibot.StringSchema<undefined>;
|
|
548
524
|
}, undefined>;
|
|
549
525
|
declare const BlockValidatorV3: valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
550
526
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
551
527
|
readonly uid: valibot.StringSchema<undefined>;
|
|
552
|
-
readonly name: valibot.
|
|
528
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
553
529
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
554
530
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
555
531
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -558,6 +534,7 @@ declare const BlockValidatorV3: valibot.VariantSchema<"type", [valibot.ObjectSch
|
|
|
558
534
|
readonly origin: valibot.ObjectSchema<{
|
|
559
535
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
560
536
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
537
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
561
538
|
}, undefined>;
|
|
562
539
|
}, undefined>], undefined>;
|
|
563
540
|
type BlockAction = Simplify<InferOutput<typeof BlockActionValidatorV3>>;
|
|
@@ -578,6 +555,7 @@ declare const SavedFileValidatorV1: valibot.ObjectSchema<{
|
|
|
578
555
|
readonly origin: valibot.ObjectSchema<{
|
|
579
556
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
580
557
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
558
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
581
559
|
}, undefined>;
|
|
582
560
|
}, undefined>, valibot.ObjectSchema<{
|
|
583
561
|
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
@@ -585,6 +563,7 @@ declare const SavedFileValidatorV1: valibot.ObjectSchema<{
|
|
|
585
563
|
readonly origin: valibot.ObjectSchema<{
|
|
586
564
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
587
565
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
566
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
588
567
|
}, undefined>;
|
|
589
568
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
590
569
|
}, undefined>], undefined>, undefined>;
|
|
@@ -604,6 +583,7 @@ declare const SavedFileValidatorV2: valibot.ObjectSchema<{
|
|
|
604
583
|
readonly origin: valibot.ObjectSchema<{
|
|
605
584
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
606
585
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
586
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
607
587
|
}, undefined>;
|
|
608
588
|
}, undefined>], undefined>, undefined>;
|
|
609
589
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -612,6 +592,7 @@ declare const SavedFileValidatorV2: valibot.ObjectSchema<{
|
|
|
612
592
|
readonly origin: valibot.ObjectSchema<{
|
|
613
593
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
614
594
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
595
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
615
596
|
}, undefined>;
|
|
616
597
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
617
598
|
}, undefined>, undefined>;
|
|
@@ -626,7 +607,7 @@ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
|
|
|
626
607
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
627
608
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
628
609
|
readonly uid: valibot.StringSchema<undefined>;
|
|
629
|
-
readonly name: valibot.
|
|
610
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
630
611
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
631
612
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
632
613
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -635,6 +616,7 @@ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
|
|
|
635
616
|
readonly origin: valibot.ObjectSchema<{
|
|
636
617
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
637
618
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
619
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
638
620
|
}, undefined>;
|
|
639
621
|
}, undefined>], undefined>, undefined>;
|
|
640
622
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -643,22 +625,24 @@ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
|
|
|
643
625
|
readonly origin: valibot.ObjectSchema<{
|
|
644
626
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
645
627
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
628
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
646
629
|
}, undefined>;
|
|
647
630
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
648
631
|
}, undefined>, undefined>;
|
|
649
632
|
}, undefined>;
|
|
650
633
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
651
634
|
}, undefined>;
|
|
652
|
-
declare const
|
|
635
|
+
declare const SavedFileDefaultValidatorV4: valibot.ObjectSchema<{
|
|
653
636
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
654
637
|
readonly type: valibot.LiteralSchema<"default", undefined>;
|
|
655
638
|
readonly name: valibot.StringSchema<undefined>;
|
|
656
639
|
readonly description: valibot.StringSchema<undefined>;
|
|
640
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
657
641
|
readonly canvas: valibot.ObjectSchema<{
|
|
658
642
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
659
643
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
660
644
|
readonly uid: valibot.StringSchema<undefined>;
|
|
661
|
-
readonly name: valibot.
|
|
645
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
662
646
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
663
647
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
664
648
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -667,6 +651,7 @@ declare const SavedFileDefaultValidator: valibot.ObjectSchema<{
|
|
|
667
651
|
readonly origin: valibot.ObjectSchema<{
|
|
668
652
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
669
653
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
654
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
670
655
|
}, undefined>;
|
|
671
656
|
}, undefined>], undefined>, undefined>;
|
|
672
657
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -675,17 +660,19 @@ declare const SavedFileDefaultValidator: valibot.ObjectSchema<{
|
|
|
675
660
|
readonly origin: valibot.ObjectSchema<{
|
|
676
661
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
677
662
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
663
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
678
664
|
}, undefined>;
|
|
679
665
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
680
666
|
}, undefined>, undefined>;
|
|
681
667
|
}, undefined>;
|
|
682
668
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
683
669
|
}, undefined>;
|
|
684
|
-
declare const
|
|
670
|
+
declare const SavedFileSimpleValidatorV4: valibot.ObjectSchema<{
|
|
685
671
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
686
672
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
687
673
|
readonly name: valibot.StringSchema<undefined>;
|
|
688
674
|
readonly description: valibot.StringSchema<undefined>;
|
|
675
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
689
676
|
readonly source: valibot.ObjectSchema<{
|
|
690
677
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
691
678
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -708,18 +695,15 @@ declare const SavedFileSimpleValidator: valibot.ObjectSchema<{
|
|
|
708
695
|
}, undefined>;
|
|
709
696
|
}, undefined>;
|
|
710
697
|
}, undefined>;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
714
|
-
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
715
|
-
readonly type: valibot.LiteralSchema<"default", undefined>;
|
|
698
|
+
declare const SavedFileDefaultValidatorV5: valibot.ObjectSchema<{
|
|
699
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
716
700
|
readonly name: valibot.StringSchema<undefined>;
|
|
717
701
|
readonly description: valibot.StringSchema<undefined>;
|
|
718
702
|
readonly canvas: valibot.ObjectSchema<{
|
|
719
703
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
720
704
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
721
705
|
readonly uid: valibot.StringSchema<undefined>;
|
|
722
|
-
readonly name: valibot.
|
|
706
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
723
707
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
724
708
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
725
709
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -728,6 +712,7 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
728
712
|
readonly origin: valibot.ObjectSchema<{
|
|
729
713
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
730
714
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
715
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
731
716
|
}, undefined>;
|
|
732
717
|
}, undefined>], undefined>, undefined>;
|
|
733
718
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -736,16 +721,19 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
736
721
|
readonly origin: valibot.ObjectSchema<{
|
|
737
722
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
738
723
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
724
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
739
725
|
}, undefined>;
|
|
740
726
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
741
727
|
}, undefined>, undefined>;
|
|
742
728
|
}, undefined>;
|
|
743
729
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
744
|
-
}, undefined
|
|
745
|
-
|
|
730
|
+
}, undefined>;
|
|
731
|
+
declare const SavedFileSimpleValidatorV5: valibot.ObjectSchema<{
|
|
732
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
746
733
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
747
734
|
readonly name: valibot.StringSchema<undefined>;
|
|
748
735
|
readonly description: valibot.StringSchema<undefined>;
|
|
736
|
+
readonly plugins: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>;
|
|
749
737
|
readonly source: valibot.ObjectSchema<{
|
|
750
738
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
751
739
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -767,22 +755,20 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
767
755
|
readonly gameId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
|
|
768
756
|
}, undefined>;
|
|
769
757
|
}, undefined>;
|
|
770
|
-
}, undefined
|
|
771
|
-
type
|
|
772
|
-
type
|
|
773
|
-
|
|
774
|
-
type SavedFileV4 = InferOutput<typeof SavedFileValidatorV4>;
|
|
775
|
-
type SavedFile = SavedFileV4;
|
|
776
|
-
declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
758
|
+
}, undefined>;
|
|
759
|
+
type SavedFileDefault = InferOutput<typeof SavedFileDefaultValidatorV5>;
|
|
760
|
+
type SavedFileSimple = InferOutput<typeof SavedFileSimpleValidatorV5>;
|
|
761
|
+
declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
777
762
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
778
763
|
readonly type: valibot.LiteralSchema<"default", undefined>;
|
|
779
764
|
readonly name: valibot.StringSchema<undefined>;
|
|
780
765
|
readonly description: valibot.StringSchema<undefined>;
|
|
766
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
781
767
|
readonly canvas: valibot.ObjectSchema<{
|
|
782
768
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
783
769
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
784
770
|
readonly uid: valibot.StringSchema<undefined>;
|
|
785
|
-
readonly name: valibot.
|
|
771
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
786
772
|
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
787
773
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
788
774
|
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -791,6 +777,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
791
777
|
readonly origin: valibot.ObjectSchema<{
|
|
792
778
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
793
779
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
780
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
794
781
|
}, undefined>;
|
|
795
782
|
}, undefined>], undefined>, undefined>;
|
|
796
783
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -799,6 +786,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
799
786
|
readonly origin: valibot.ObjectSchema<{
|
|
800
787
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
801
788
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
789
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
802
790
|
}, undefined>;
|
|
803
791
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
804
792
|
}, undefined>, undefined>;
|
|
@@ -809,6 +797,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
809
797
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
810
798
|
readonly name: valibot.StringSchema<undefined>;
|
|
811
799
|
readonly description: valibot.StringSchema<undefined>;
|
|
800
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
812
801
|
readonly source: valibot.ObjectSchema<{
|
|
813
802
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
814
803
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -831,9 +820,81 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
831
820
|
}, undefined>;
|
|
832
821
|
}, undefined>;
|
|
833
822
|
}, undefined>], undefined>;
|
|
823
|
+
declare const SavedFileValidatorV5: valibot.ObjectSchema<{
|
|
824
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
825
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
826
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
827
|
+
readonly canvas: valibot.ObjectSchema<{
|
|
828
|
+
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
829
|
+
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
830
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
831
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
832
|
+
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
833
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
834
|
+
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
835
|
+
readonly value: valibot.UnknownSchema;
|
|
836
|
+
}, undefined>, undefined>;
|
|
837
|
+
readonly origin: valibot.ObjectSchema<{
|
|
838
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
839
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
840
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
841
|
+
}, undefined>;
|
|
842
|
+
}, undefined>], undefined>, undefined>;
|
|
843
|
+
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
844
|
+
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
845
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
846
|
+
readonly origin: valibot.ObjectSchema<{
|
|
847
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
848
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
849
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
850
|
+
}, undefined>;
|
|
851
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
852
|
+
}, undefined>, undefined>;
|
|
853
|
+
}, undefined>;
|
|
854
|
+
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
855
|
+
}, undefined>;
|
|
856
|
+
type SavedFileV1 = InferOutput<typeof SavedFileValidatorV1>;
|
|
857
|
+
type SavedFileV2 = InferOutput<typeof SavedFileValidatorV2>;
|
|
858
|
+
type SavedFileV3 = InferOutput<typeof SavedFileValidatorV3>;
|
|
859
|
+
type SavedFileV4 = InferOutput<typeof SavedFileValidatorV4>;
|
|
860
|
+
type SavedFileV5 = InferOutput<typeof SavedFileValidatorV5>;
|
|
861
|
+
type SavedFile = SavedFileV5;
|
|
862
|
+
declare const SavedFileValidator: valibot.ObjectSchema<{
|
|
863
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
864
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
865
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
866
|
+
readonly canvas: valibot.ObjectSchema<{
|
|
867
|
+
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
868
|
+
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
869
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
870
|
+
readonly name: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "A custom name provided by the user">]>, never>;
|
|
871
|
+
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
872
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
873
|
+
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
874
|
+
readonly value: valibot.UnknownSchema;
|
|
875
|
+
}, undefined>, undefined>;
|
|
876
|
+
readonly origin: valibot.ObjectSchema<{
|
|
877
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
878
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
879
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
880
|
+
}, undefined>;
|
|
881
|
+
}, undefined>], undefined>, undefined>;
|
|
882
|
+
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
883
|
+
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
884
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
885
|
+
readonly origin: valibot.ObjectSchema<{
|
|
886
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
887
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
888
|
+
readonly version: valibot.OptionalSchema<valibot.SchemaWithPipe<[valibot.StringSchema<undefined>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>, never>;
|
|
889
|
+
}, undefined>;
|
|
890
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
891
|
+
}, undefined>, undefined>;
|
|
892
|
+
}, undefined>;
|
|
893
|
+
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
894
|
+
}, undefined>;
|
|
834
895
|
type Preset = SavedFile;
|
|
835
896
|
type PresetResult = {
|
|
836
|
-
data:
|
|
897
|
+
data: Preset;
|
|
837
898
|
hightlight?: boolean;
|
|
838
899
|
disabled?: boolean;
|
|
839
900
|
};
|
|
@@ -841,7 +902,7 @@ type PresetFn = () => Promise<PresetResult>;
|
|
|
841
902
|
type Steps = Record<string, {
|
|
842
903
|
outputs: Record<string, unknown>;
|
|
843
904
|
}>;
|
|
844
|
-
type EnhancedFile<T
|
|
905
|
+
type EnhancedFile<T = SavedFile> = WithId<SaveLocation> & {
|
|
845
906
|
content: T;
|
|
846
907
|
};
|
|
847
908
|
//#endregion
|
|
@@ -1032,6 +1093,11 @@ interface IBuildHistoryStorage {
|
|
|
1032
1093
|
total: number;
|
|
1033
1094
|
free: number;
|
|
1034
1095
|
pipelab: number;
|
|
1096
|
+
folders: Array<{
|
|
1097
|
+
name: SandboxFolder;
|
|
1098
|
+
label: string;
|
|
1099
|
+
size: number;
|
|
1100
|
+
}>;
|
|
1035
1101
|
};
|
|
1036
1102
|
}>;
|
|
1037
1103
|
}
|
|
@@ -1090,7 +1156,7 @@ type EndEvent$1<DATA> = {
|
|
|
1090
1156
|
};
|
|
1091
1157
|
};
|
|
1092
1158
|
type Presets = Record<string, PresetResult>;
|
|
1093
|
-
type IpcDefinition
|
|
1159
|
+
type IpcDefinition = {
|
|
1094
1160
|
"fs:read": [{
|
|
1095
1161
|
path: string;
|
|
1096
1162
|
}, EndEvent$1<{
|
|
@@ -1147,15 +1213,6 @@ type IpcDefinition$1 = {
|
|
|
1147
1213
|
outputs: Record<string, unknown>;
|
|
1148
1214
|
tmp: string;
|
|
1149
1215
|
}>)];
|
|
1150
|
-
"condition:execute": [{
|
|
1151
|
-
pluginId: string;
|
|
1152
|
-
nodeId: string;
|
|
1153
|
-
params: any;
|
|
1154
|
-
steps: Steps;
|
|
1155
|
-
}, (Event$2<"progress", unknown> | Event$2<"progress", unknown> | EndEvent$1<{
|
|
1156
|
-
outputs: Record<string, unknown>;
|
|
1157
|
-
value: boolean;
|
|
1158
|
-
}>)];
|
|
1159
1216
|
"constants:get": [void, EndEvent$1<{
|
|
1160
1217
|
result: {
|
|
1161
1218
|
userData: string;
|
|
@@ -1178,6 +1235,11 @@ type IpcDefinition$1 = {
|
|
|
1178
1235
|
}, EndEvent$1<{
|
|
1179
1236
|
result: "ok";
|
|
1180
1237
|
}>];
|
|
1238
|
+
"config:delete": [{
|
|
1239
|
+
config: string;
|
|
1240
|
+
}, EndEvent$1<{
|
|
1241
|
+
result: "ok";
|
|
1242
|
+
}>];
|
|
1181
1243
|
"action:cancel": [void, EndEvent$1<{
|
|
1182
1244
|
result: "ok" | "ko";
|
|
1183
1245
|
}>];
|
|
@@ -1294,12 +1356,58 @@ type IpcDefinition$1 = {
|
|
|
1294
1356
|
} | {
|
|
1295
1357
|
type: "ready";
|
|
1296
1358
|
}];
|
|
1359
|
+
"plugin:loaded": [void, {
|
|
1360
|
+
plugin: RendererPluginDefinition;
|
|
1361
|
+
}];
|
|
1362
|
+
"plugin:search": [{
|
|
1363
|
+
query: string;
|
|
1364
|
+
}, EndEvent$1<{
|
|
1365
|
+
results: Array<{
|
|
1366
|
+
name: string;
|
|
1367
|
+
version: string;
|
|
1368
|
+
description?: string;
|
|
1369
|
+
keywords?: string[];
|
|
1370
|
+
date?: string;
|
|
1371
|
+
}>;
|
|
1372
|
+
}>];
|
|
1373
|
+
"plugin:get-details": [{
|
|
1374
|
+
packageName: string;
|
|
1375
|
+
}, EndEvent$1<{
|
|
1376
|
+
name: string;
|
|
1377
|
+
latestVersion: string;
|
|
1378
|
+
versions: string[];
|
|
1379
|
+
description?: string;
|
|
1380
|
+
}>];
|
|
1381
|
+
"plugin:install": [{
|
|
1382
|
+
packageName: string;
|
|
1383
|
+
version: string;
|
|
1384
|
+
}, EndEvent$1<{
|
|
1385
|
+
result: "ok";
|
|
1386
|
+
}>];
|
|
1387
|
+
"plugin:uninstall": [{
|
|
1388
|
+
packageName: string;
|
|
1389
|
+
}, EndEvent$1<{
|
|
1390
|
+
result: "ok";
|
|
1391
|
+
}>];
|
|
1392
|
+
"plugin:list-installed": [void, EndEvent$1<{
|
|
1393
|
+
installed: Array<{
|
|
1394
|
+
name: string;
|
|
1395
|
+
version: string;
|
|
1396
|
+
description?: string;
|
|
1397
|
+
}>;
|
|
1398
|
+
}>];
|
|
1399
|
+
"plugin:ensure-loaded": [{
|
|
1400
|
+
plugins: Record<string, string>;
|
|
1401
|
+
}, EndEvent$1<{
|
|
1402
|
+
loaded: string[];
|
|
1403
|
+
failed: string[];
|
|
1404
|
+
}>];
|
|
1297
1405
|
};
|
|
1298
|
-
type Channels = keyof IpcDefinition
|
|
1406
|
+
type Channels = keyof IpcDefinition;
|
|
1299
1407
|
declare const ShellChannels: Channels[];
|
|
1300
|
-
type Data$1<KEY extends Channels> = IpcDefinition
|
|
1301
|
-
type Events<KEY extends Channels> = IpcDefinition
|
|
1302
|
-
type End<KEY extends Channels> = Extract<IpcDefinition
|
|
1408
|
+
type Data$1<KEY extends Channels> = IpcDefinition[KEY][0];
|
|
1409
|
+
type Events<KEY extends Channels> = IpcDefinition[KEY][1];
|
|
1410
|
+
type End<KEY extends Channels> = Extract<IpcDefinition[KEY][1], {
|
|
1303
1411
|
type: "end";
|
|
1304
1412
|
}>["data"];
|
|
1305
1413
|
type IpcMessage = {
|
|
@@ -1308,6 +1416,160 @@ type IpcMessage = {
|
|
|
1308
1416
|
};
|
|
1309
1417
|
type RequestId$1 = Tagged<string, "request-id">;
|
|
1310
1418
|
//#endregion
|
|
1419
|
+
//#region src/ipc.types.d.ts
|
|
1420
|
+
type UpdateStatus = "update-available" | "update-downloaded" | "checking-for-update" | "update-not-available" | "error";
|
|
1421
|
+
type IpcEvent<TYPE extends string, DATA> = {
|
|
1422
|
+
type: TYPE;
|
|
1423
|
+
data: DATA;
|
|
1424
|
+
};
|
|
1425
|
+
type EndEvent<DATA> = {
|
|
1426
|
+
type: "end";
|
|
1427
|
+
data: {
|
|
1428
|
+
type: "success";
|
|
1429
|
+
result: DATA;
|
|
1430
|
+
} | {
|
|
1431
|
+
type: "error";
|
|
1432
|
+
ipcError: string;
|
|
1433
|
+
};
|
|
1434
|
+
};
|
|
1435
|
+
type IpcDefinition$1 = {
|
|
1436
|
+
"dialog:alert": [{
|
|
1437
|
+
message: string;
|
|
1438
|
+
buttons?: {
|
|
1439
|
+
title: string;
|
|
1440
|
+
value: string;
|
|
1441
|
+
}[];
|
|
1442
|
+
}, EndEvent<{
|
|
1443
|
+
answer: string;
|
|
1444
|
+
}>];
|
|
1445
|
+
"dialog:prompt": [{
|
|
1446
|
+
message: string;
|
|
1447
|
+
buttons?: {
|
|
1448
|
+
title: string;
|
|
1449
|
+
value: string;
|
|
1450
|
+
}[];
|
|
1451
|
+
}, EndEvent<{
|
|
1452
|
+
answer: string;
|
|
1453
|
+
}>];
|
|
1454
|
+
"log:message": [ILogObjMeta, EndEvent<void>];
|
|
1455
|
+
"update:set-status": [{
|
|
1456
|
+
status: UpdateStatus;
|
|
1457
|
+
downloadUrl?: string;
|
|
1458
|
+
version?: string;
|
|
1459
|
+
}, EndEvent<void>];
|
|
1460
|
+
};
|
|
1461
|
+
type RendererChannels = keyof IpcDefinition$1;
|
|
1462
|
+
type RendererData<KEY extends RendererChannels> = IpcDefinition$1[KEY][0];
|
|
1463
|
+
type RendererEvents<KEY extends RendererChannels> = IpcDefinition$1[KEY][1];
|
|
1464
|
+
type RendererEnd<KEY extends RendererChannels> = Extract<IpcDefinition$1[KEY][1], {
|
|
1465
|
+
type: "end";
|
|
1466
|
+
}>["data"];
|
|
1467
|
+
type RendererMessage = {
|
|
1468
|
+
requestId: RequestId;
|
|
1469
|
+
data: any;
|
|
1470
|
+
};
|
|
1471
|
+
type RequestId = Tagged<string, "request-id">;
|
|
1472
|
+
type HandleListenerRendererSendFn<KEY extends RendererChannels> = (events: RendererEvents<KEY>) => void;
|
|
1473
|
+
type HandleListenerRenderer<KEY extends RendererChannels> = (event: any, data: {
|
|
1474
|
+
value: RendererData<KEY>;
|
|
1475
|
+
send: HandleListenerRendererSendFn<KEY>;
|
|
1476
|
+
}) => Promise<void>;
|
|
1477
|
+
//#endregion
|
|
1478
|
+
//#region src/config/projects-definition.d.ts
|
|
1479
|
+
declare const FileRepoValidatorV1: valibot.ObjectSchema<{
|
|
1480
|
+
readonly version: valibot.LiteralSchema<"1.0.0", undefined>;
|
|
1481
|
+
readonly data: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
1482
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1483
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1484
|
+
readonly path: valibot.StringSchema<undefined>;
|
|
1485
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1486
|
+
readonly type: valibot.LiteralSchema<"external", undefined>;
|
|
1487
|
+
readonly summary: valibot.ObjectSchema<{
|
|
1488
|
+
readonly plugins: valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>;
|
|
1489
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1490
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1491
|
+
}, undefined>;
|
|
1492
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1493
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1494
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1495
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1496
|
+
readonly type: valibot.LiteralSchema<"internal", undefined>;
|
|
1497
|
+
readonly configName: valibot.StringSchema<undefined>;
|
|
1498
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1499
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1500
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1501
|
+
readonly type: valibot.LiteralSchema<"pipelab-cloud", undefined>;
|
|
1502
|
+
}, undefined>], undefined>, undefined>, {}>;
|
|
1503
|
+
}, undefined>;
|
|
1504
|
+
declare const FileRepoProjectValidatorV2: valibot.ObjectSchema<{
|
|
1505
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1506
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1507
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1508
|
+
}, undefined>;
|
|
1509
|
+
declare const FileRepoValidatorV2: valibot.ObjectSchema<{
|
|
1510
|
+
readonly version: valibot.LiteralSchema<"2.0.0", undefined>;
|
|
1511
|
+
readonly projects: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1512
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1513
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1514
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1515
|
+
}, undefined>, undefined>;
|
|
1516
|
+
readonly pipelines: valibot.OptionalSchema<valibot.ArraySchema<valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
1517
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1518
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1519
|
+
readonly path: valibot.StringSchema<undefined>;
|
|
1520
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1521
|
+
readonly type: valibot.LiteralSchema<"external", undefined>;
|
|
1522
|
+
readonly summary: valibot.ObjectSchema<{
|
|
1523
|
+
readonly plugins: valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>;
|
|
1524
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1525
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1526
|
+
}, undefined>;
|
|
1527
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1528
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1529
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1530
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1531
|
+
readonly type: valibot.LiteralSchema<"internal", undefined>;
|
|
1532
|
+
readonly configName: valibot.StringSchema<undefined>;
|
|
1533
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1534
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1535
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1536
|
+
readonly type: valibot.LiteralSchema<"pipelab-cloud", undefined>;
|
|
1537
|
+
}, undefined>], undefined>, undefined>, readonly []>;
|
|
1538
|
+
}, undefined>;
|
|
1539
|
+
type FileRepoV1 = InferInput<typeof FileRepoValidatorV1>;
|
|
1540
|
+
type FileRepoV2 = InferInput<typeof FileRepoValidatorV2>;
|
|
1541
|
+
declare const FileRepoValidator: valibot.ObjectSchema<{
|
|
1542
|
+
readonly version: valibot.LiteralSchema<"2.0.0", undefined>;
|
|
1543
|
+
readonly projects: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1544
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1545
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1546
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1547
|
+
}, undefined>, undefined>;
|
|
1548
|
+
readonly pipelines: valibot.OptionalSchema<valibot.ArraySchema<valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
1549
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1550
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1551
|
+
readonly path: valibot.StringSchema<undefined>;
|
|
1552
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1553
|
+
readonly type: valibot.LiteralSchema<"external", undefined>;
|
|
1554
|
+
readonly summary: valibot.ObjectSchema<{
|
|
1555
|
+
readonly plugins: valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>;
|
|
1556
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1557
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1558
|
+
}, undefined>;
|
|
1559
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1560
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1561
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1562
|
+
readonly lastModified: valibot.StringSchema<undefined>;
|
|
1563
|
+
readonly type: valibot.LiteralSchema<"internal", undefined>;
|
|
1564
|
+
readonly configName: valibot.StringSchema<undefined>;
|
|
1565
|
+
}, undefined>, valibot.ObjectSchema<{
|
|
1566
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1567
|
+
readonly project: valibot.StringSchema<undefined>;
|
|
1568
|
+
readonly type: valibot.LiteralSchema<"pipelab-cloud", undefined>;
|
|
1569
|
+
}, undefined>], undefined>, undefined>, readonly []>;
|
|
1570
|
+
}, undefined>;
|
|
1571
|
+
type FileRepo = InferInput<typeof FileRepoValidator>;
|
|
1572
|
+
//#endregion
|
|
1311
1573
|
//#region src/config.schema.d.ts
|
|
1312
1574
|
declare const createVersionSchema: <T extends GenericSchema<any, any>>(schema: T) => T;
|
|
1313
1575
|
declare const AppSettingsValidatorV1: valibot.ObjectSchema<{
|
|
@@ -1396,6 +1658,70 @@ declare const AppSettingsValidatorV7: valibot.ObjectSchema<{
|
|
|
1396
1658
|
}, undefined>;
|
|
1397
1659
|
}, undefined>;
|
|
1398
1660
|
}, undefined>;
|
|
1661
|
+
declare const AppSettingsValidatorV8: valibot.ObjectSchema<{
|
|
1662
|
+
readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
|
|
1663
|
+
readonly version: valibot.LiteralSchema<"8.0.0", undefined>;
|
|
1664
|
+
readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
|
|
1665
|
+
readonly tours: valibot.ObjectSchema<{
|
|
1666
|
+
readonly dashboard: valibot.ObjectSchema<{
|
|
1667
|
+
readonly step: valibot.NumberSchema<undefined>;
|
|
1668
|
+
readonly completed: valibot.BooleanSchema<undefined>;
|
|
1669
|
+
}, undefined>;
|
|
1670
|
+
readonly editor: valibot.ObjectSchema<{
|
|
1671
|
+
readonly step: valibot.NumberSchema<undefined>;
|
|
1672
|
+
readonly completed: valibot.BooleanSchema<undefined>;
|
|
1673
|
+
}, undefined>;
|
|
1674
|
+
}, undefined>;
|
|
1675
|
+
readonly autosave: valibot.BooleanSchema<undefined>;
|
|
1676
|
+
readonly agents: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1677
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1678
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1679
|
+
readonly url: valibot.StringSchema<undefined>;
|
|
1680
|
+
}, undefined>, undefined>;
|
|
1681
|
+
readonly buildHistory: valibot.ObjectSchema<{
|
|
1682
|
+
readonly retentionPolicy: valibot.ObjectSchema<{
|
|
1683
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1684
|
+
readonly maxEntries: valibot.NumberSchema<undefined>;
|
|
1685
|
+
readonly maxAge: valibot.NumberSchema<undefined>;
|
|
1686
|
+
}, undefined>;
|
|
1687
|
+
}, undefined>;
|
|
1688
|
+
readonly plugins: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1689
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1690
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1691
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1692
|
+
}, undefined>, undefined>;
|
|
1693
|
+
readonly isInternalMigrationBannerClosed: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
1694
|
+
}, undefined>;
|
|
1695
|
+
declare const ConnectionValidator: valibot.LooseObjectSchema<{
|
|
1696
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1697
|
+
readonly pluginName: valibot.StringSchema<undefined>;
|
|
1698
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1699
|
+
readonly createdAt: valibot.StringSchema<undefined>;
|
|
1700
|
+
readonly isDefault: valibot.BooleanSchema<undefined>;
|
|
1701
|
+
}, undefined>;
|
|
1702
|
+
declare const ConnectionsValidatorV1: valibot.ObjectSchema<{
|
|
1703
|
+
readonly version: valibot.LiteralSchema<"1.0.0", undefined>;
|
|
1704
|
+
readonly connections: valibot.ArraySchema<valibot.LooseObjectSchema<{
|
|
1705
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1706
|
+
readonly pluginName: valibot.StringSchema<undefined>;
|
|
1707
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1708
|
+
readonly createdAt: valibot.StringSchema<undefined>;
|
|
1709
|
+
readonly isDefault: valibot.BooleanSchema<undefined>;
|
|
1710
|
+
}, undefined>, undefined>;
|
|
1711
|
+
}, undefined>;
|
|
1712
|
+
type Connection = InferInput<typeof ConnectionValidator>;
|
|
1713
|
+
type ConnectionsConfigV1 = InferInput<typeof ConnectionsValidatorV1>;
|
|
1714
|
+
type ConnectionsConfig = ConnectionsConfigV1;
|
|
1715
|
+
declare const ConnectionsValidator: valibot.ObjectSchema<{
|
|
1716
|
+
readonly version: valibot.LiteralSchema<"1.0.0", undefined>;
|
|
1717
|
+
readonly connections: valibot.ArraySchema<valibot.LooseObjectSchema<{
|
|
1718
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1719
|
+
readonly pluginName: valibot.StringSchema<undefined>;
|
|
1720
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1721
|
+
readonly createdAt: valibot.StringSchema<undefined>;
|
|
1722
|
+
readonly isDefault: valibot.BooleanSchema<undefined>;
|
|
1723
|
+
}, undefined>, undefined>;
|
|
1724
|
+
}, undefined>;
|
|
1399
1725
|
type AppConfigV1 = InferInput<typeof AppSettingsValidatorV1>;
|
|
1400
1726
|
type AppConfigV2 = InferInput<typeof AppSettingsValidatorV2>;
|
|
1401
1727
|
type AppConfigV3 = InferInput<typeof AppSettingsValidatorV3>;
|
|
@@ -1403,10 +1729,11 @@ type AppConfigV4 = InferInput<typeof AppSettingsValidatorV4>;
|
|
|
1403
1729
|
type AppConfigV5 = InferInput<typeof AppSettingsValidatorV5>;
|
|
1404
1730
|
type AppConfigV6 = InferInput<typeof AppSettingsValidatorV6>;
|
|
1405
1731
|
type AppConfigV7 = InferInput<typeof AppSettingsValidatorV7>;
|
|
1406
|
-
type
|
|
1732
|
+
type AppConfigV8 = InferInput<typeof AppSettingsValidatorV8>;
|
|
1733
|
+
type AppConfig = AppConfigV8;
|
|
1407
1734
|
declare const AppSettingsValidator: valibot.ObjectSchema<{
|
|
1408
1735
|
readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
|
|
1409
|
-
readonly version: valibot.LiteralSchema<"
|
|
1736
|
+
readonly version: valibot.LiteralSchema<"8.0.0", undefined>;
|
|
1410
1737
|
readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
|
|
1411
1738
|
readonly tours: valibot.ObjectSchema<{
|
|
1412
1739
|
readonly dashboard: valibot.ObjectSchema<{
|
|
@@ -1431,6 +1758,12 @@ declare const AppSettingsValidator: valibot.ObjectSchema<{
|
|
|
1431
1758
|
readonly maxAge: valibot.NumberSchema<undefined>;
|
|
1432
1759
|
}, undefined>;
|
|
1433
1760
|
}, undefined>;
|
|
1761
|
+
readonly plugins: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1762
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1763
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1764
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1765
|
+
}, undefined>, undefined>;
|
|
1766
|
+
readonly isInternalMigrationBannerClosed: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
1434
1767
|
}, undefined>;
|
|
1435
1768
|
//#endregion
|
|
1436
1769
|
//#region src/database.types.d.ts
|
|
@@ -1511,7 +1844,7 @@ declare const processGraph: (options: {
|
|
|
1511
1844
|
variables: Array<Variable>;
|
|
1512
1845
|
steps: Steps;
|
|
1513
1846
|
context: Context;
|
|
1514
|
-
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"
|
|
1847
|
+
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"action:execute">>;
|
|
1515
1848
|
onNodeEnter: (node: Block) => void;
|
|
1516
1849
|
onNodeExit: (node: Block) => void;
|
|
1517
1850
|
abortSignal?: AbortSignal;
|
|
@@ -1521,7 +1854,7 @@ declare const processGraph: (options: {
|
|
|
1521
1854
|
variables: Array<Variable>;
|
|
1522
1855
|
steps: Steps;
|
|
1523
1856
|
context: Context;
|
|
1524
|
-
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"
|
|
1857
|
+
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"action:execute">>;
|
|
1525
1858
|
onNodeEnter: (node: Block) => void;
|
|
1526
1859
|
onNodeExit: (node: Block) => void;
|
|
1527
1860
|
abortSignal?: AbortSignal;
|
|
@@ -1547,6 +1880,10 @@ declare let settings$5: {
|
|
|
1547
1880
|
integrations: string;
|
|
1548
1881
|
advanced: string;
|
|
1549
1882
|
billing: string;
|
|
1883
|
+
plugins: string;
|
|
1884
|
+
"core-plugins": string;
|
|
1885
|
+
"community-plugins": string;
|
|
1886
|
+
versions: string;
|
|
1550
1887
|
};
|
|
1551
1888
|
"pipeline-cache-folder": string;
|
|
1552
1889
|
"enter-or-browse-for-a-folder": string;
|
|
@@ -1614,6 +1951,13 @@ declare let editor_1$5: {
|
|
|
1614
1951
|
"view-history": string;
|
|
1615
1952
|
"add-plugin": string;
|
|
1616
1953
|
"display-advanced-nodes": string;
|
|
1954
|
+
"project-settings": string;
|
|
1955
|
+
"jit-loading-title": string;
|
|
1956
|
+
"jit-loading-subtitle": string;
|
|
1957
|
+
"jit-loading-status": string;
|
|
1958
|
+
"validation-failed": string;
|
|
1959
|
+
"validation-plugin-disabled-or-missing": string;
|
|
1960
|
+
"validation-missing-param": string;
|
|
1617
1961
|
};
|
|
1618
1962
|
declare let home$5: {
|
|
1619
1963
|
"invalid-preset": string;
|
|
@@ -1660,6 +2004,10 @@ declare let home$5: {
|
|
|
1660
2004
|
"migrate-pipeline": string;
|
|
1661
2005
|
"migration-success": string;
|
|
1662
2006
|
"migrate-to-internal": string;
|
|
2007
|
+
"only-internal-supported-notice": string;
|
|
2008
|
+
"import-pipeline": string;
|
|
2009
|
+
"import-success": string;
|
|
2010
|
+
"failed-to-read-file": string;
|
|
1663
2011
|
};
|
|
1664
2012
|
declare namespace scenarios_1$5 {
|
|
1665
2013
|
let scenarios_2: string;
|
|
@@ -1708,6 +2056,10 @@ declare let settings$4: {
|
|
|
1708
2056
|
integrations: string;
|
|
1709
2057
|
advanced: string;
|
|
1710
2058
|
billing: string;
|
|
2059
|
+
plugins: string;
|
|
2060
|
+
"core-plugins": string;
|
|
2061
|
+
"community-plugins": string;
|
|
2062
|
+
versions: string;
|
|
1711
2063
|
};
|
|
1712
2064
|
clearTempFolders: string;
|
|
1713
2065
|
clearTempFoldersDescription: string;
|
|
@@ -1802,6 +2154,10 @@ declare let settings$3: {
|
|
|
1802
2154
|
integrations: string;
|
|
1803
2155
|
advanced: string;
|
|
1804
2156
|
billing: string;
|
|
2157
|
+
plugins: string;
|
|
2158
|
+
"core-plugins": string;
|
|
2159
|
+
"community-plugins": string;
|
|
2160
|
+
versions: string;
|
|
1805
2161
|
};
|
|
1806
2162
|
clearTempFolders: string;
|
|
1807
2163
|
clearTempFoldersDescription: string;
|
|
@@ -1893,6 +2249,10 @@ declare let settings$2: {
|
|
|
1893
2249
|
integrations: string;
|
|
1894
2250
|
advanced: string;
|
|
1895
2251
|
billing: string;
|
|
2252
|
+
plugins: string;
|
|
2253
|
+
"core-plugins": string;
|
|
2254
|
+
"community-plugins": string;
|
|
2255
|
+
versions: string;
|
|
1896
2256
|
};
|
|
1897
2257
|
clearTempFolders: string;
|
|
1898
2258
|
clearTempFoldersDescription: string;
|
|
@@ -1984,6 +2344,10 @@ declare let settings$1: {
|
|
|
1984
2344
|
integrations: string;
|
|
1985
2345
|
advanced: string;
|
|
1986
2346
|
billing: string;
|
|
2347
|
+
plugins: string;
|
|
2348
|
+
"core-plugins": string;
|
|
2349
|
+
"community-plugins": string;
|
|
2350
|
+
versions: string;
|
|
1987
2351
|
};
|
|
1988
2352
|
clearTempFolders: string;
|
|
1989
2353
|
clearTempFoldersDescription: string;
|
|
@@ -2075,6 +2439,10 @@ declare let settings: {
|
|
|
2075
2439
|
integrations: string;
|
|
2076
2440
|
advanced: string;
|
|
2077
2441
|
billing: string;
|
|
2442
|
+
plugins: string;
|
|
2443
|
+
"core-plugins": string;
|
|
2444
|
+
"community-plugins": string;
|
|
2445
|
+
versions: string;
|
|
2078
2446
|
};
|
|
2079
2447
|
clearTempFolders: string;
|
|
2080
2448
|
clearTempFoldersDescription: string;
|
|
@@ -2152,63 +2520,6 @@ declare namespace __json_default_export {
|
|
|
2152
2520
|
type MessageSchema = typeof __json_default_export$1;
|
|
2153
2521
|
type Locales = "en-US" | "fr-FR" | "pt-BR" | "zh-CN" | "es-ES" | "de-DE";
|
|
2154
2522
|
//#endregion
|
|
2155
|
-
//#region src/ipc.types.d.ts
|
|
2156
|
-
type UpdateStatus = "update-available" | "update-downloaded" | "checking-for-update" | "update-not-available" | "error";
|
|
2157
|
-
type IpcEvent<TYPE extends string, DATA> = {
|
|
2158
|
-
type: TYPE;
|
|
2159
|
-
data: DATA;
|
|
2160
|
-
};
|
|
2161
|
-
type EndEvent<DATA> = {
|
|
2162
|
-
type: "end";
|
|
2163
|
-
data: {
|
|
2164
|
-
type: "success";
|
|
2165
|
-
result: DATA;
|
|
2166
|
-
} | {
|
|
2167
|
-
type: "error";
|
|
2168
|
-
ipcError: string;
|
|
2169
|
-
};
|
|
2170
|
-
};
|
|
2171
|
-
type IpcDefinition = {
|
|
2172
|
-
"dialog:alert": [{
|
|
2173
|
-
message: string;
|
|
2174
|
-
buttons?: {
|
|
2175
|
-
title: string;
|
|
2176
|
-
value: string;
|
|
2177
|
-
}[];
|
|
2178
|
-
}, EndEvent<{
|
|
2179
|
-
answer: string;
|
|
2180
|
-
}>];
|
|
2181
|
-
"dialog:prompt": [{
|
|
2182
|
-
message: string;
|
|
2183
|
-
buttons?: {
|
|
2184
|
-
title: string;
|
|
2185
|
-
value: string;
|
|
2186
|
-
}[];
|
|
2187
|
-
}, EndEvent<{
|
|
2188
|
-
answer: string;
|
|
2189
|
-
}>];
|
|
2190
|
-
"log:message": [ILogObjMeta, EndEvent<void>];
|
|
2191
|
-
"update:set-status": [{
|
|
2192
|
-
status: UpdateStatus;
|
|
2193
|
-
}, EndEvent<void>];
|
|
2194
|
-
};
|
|
2195
|
-
type RendererChannels = keyof IpcDefinition;
|
|
2196
|
-
type RendererData<KEY extends RendererChannels> = IpcDefinition[KEY][0];
|
|
2197
|
-
type RendererEvents<KEY extends RendererChannels> = IpcDefinition[KEY][1];
|
|
2198
|
-
type RendererEnd<KEY extends RendererChannels> = Extract<IpcDefinition[KEY][1], {
|
|
2199
|
-
type: "end";
|
|
2200
|
-
}>["data"];
|
|
2201
|
-
type RendererMessage = {
|
|
2202
|
-
requestId: RequestId;
|
|
2203
|
-
data: any;
|
|
2204
|
-
};
|
|
2205
|
-
type RequestId = Tagged<string, "request-id">;
|
|
2206
|
-
type HandleListenerRendererSendFn<KEY extends RendererChannels> = (events: RendererEvents<KEY>) => void;
|
|
2207
|
-
type HandleListenerRenderer<KEY extends RendererChannels> = (event: any, data: {
|
|
2208
|
-
value: RendererData<KEY>;
|
|
2209
|
-
send: HandleListenerRendererSendFn<KEY>;
|
|
2210
|
-
}) => Promise<void>;
|
|
2211
|
-
//#endregion
|
|
2212
2523
|
//#region src/logger.d.ts
|
|
2213
2524
|
declare const useLogger: () => {
|
|
2214
2525
|
logger: () => Logger<unknown>;
|
|
@@ -3644,6 +3955,9 @@ declare const fileRepoMigrations: any;
|
|
|
3644
3955
|
declare const defaultFileRepo: any;
|
|
3645
3956
|
declare const savedFileMigrator: any;
|
|
3646
3957
|
declare const configRegistry: Record<string, Migrator<any>>;
|
|
3958
|
+
declare const normalizePipelineConfig: (state: any) => boolean;
|
|
3959
|
+
declare const connectionsMigrator: any;
|
|
3960
|
+
declare const defaultConnections: any;
|
|
3647
3961
|
//#endregion
|
|
3648
|
-
export { Action, Agent, type AppConfig, type AppConfigV1, type AppConfigV2, type AppConfigV3, type AppConfigV4, type AppConfigV5, type AppConfigV6, type AppConfigV7, AppSettingsValidator, AppSettingsValidatorV1, AppSettingsValidatorV2, AppSettingsValidatorV3, AppSettingsValidatorV4, AppSettingsValidatorV5, AppSettingsValidatorV6, AppSettingsValidatorV7, AuthorizationCheck, AuthorizationContext, BaseNode, BenefitNotFoundError, Block, BlockAction, BlockComment,
|
|
3962
|
+
export { Action, Agent, type AppConfig, type AppConfigV1, type AppConfigV2, type AppConfigV3, type AppConfigV4, type AppConfigV5, type AppConfigV6, type AppConfigV7, type AppConfigV8, AppSettingsValidator, AppSettingsValidatorV1, AppSettingsValidatorV2, AppSettingsValidatorV3, AppSettingsValidatorV4, AppSettingsValidatorV5, AppSettingsValidatorV6, AppSettingsValidatorV7, AppSettingsValidatorV8, AuthorizationCheck, AuthorizationContext, BaseNode, BenefitNotFoundError, Block, BlockAction, BlockComment, BlockEvent, BuildHistoryConfig, BuildHistoryEntry, BuildHistoryQuery, BuildHistoryResponse, Channels, type Connection, ConnectionValidator, type ConnectionsConfig, type ConnectionsConfigV1, ConnectionsValidator, ConnectionsValidatorV1, Context, ControlType, ControlTypeArray, ControlTypeBase, ControlTypeBoolean, ControlTypeCheckbox, ControlTypeColor, ControlTypeElectronConfigureV2, ControlTypeExpression, ControlTypeInput, ControlTypeJSON, ControlTypeMultiSelect, ControlTypeNetlifySite, ControlTypePath, ControlTypeSelect, CreateQuickJSFn, Data$1 as Data, DataResult, Database, EditorParam, EditorParamValidatorV3, End, EndEvent, EnhancedFile, Enums, Event$1 as Event, Events, ExecutionError, ExecutionStep, Expression, ExtractInputsFromAction, ExtractInputsFromEvent, ExtractInputsFromExpression, type FileRepo, FileRepoProjectValidatorV2, type FileRepoV1, type FileRepoV2, FileRepoValidator, FileRepoValidatorV1, FileRepoValidatorV2, GetDataEntries, GetDataKeys, GetFlowEntries, GetFlowKeys, HandleListenerRenderer, HandleListenerRendererSendFn, IBuildHistoryStorage, IconType, InputDefinition, InputOutputDefinition, InputsDefinition, InputsOutputsDefinition, IntegrationDefinition, IntegrationField, type IpcDefinition, IpcEvent, IpcMessage, Json, Locales, LogEntry, MainPluginDefinition, MessageSchema, Meta, type Migrator, type NodeId, Origin, OriginValidator, OutputDefinition, OutputsDefinition, ParamsToInput, PathOptions, PipelabNode, PipelabSelectOption, PluginDefinition, Position, Preset, PresetFn, PresetResult, Presets, PropType, RELEASE_SYNC, RendererChannels, RendererData, RendererEnd, RendererEvents, type IpcDefinition$1 as RendererIpcDefinition, RendererMessage, RendererNodeDefinition, RendererPluginDefinition, type RequestId as RendererRequestId, type RequestId$1 as RequestId, RetentionPolicy, SaveLocation, SaveLocationExternal, SaveLocationExternalValidator, SaveLocationInternal, SaveLocationInternalValidator, SaveLocationPipelabCloud, SaveLocationPipelabCloudValidator, SaveLocationValidator, SavedFile, SavedFileDefault, SavedFileDefaultValidatorV4, SavedFileDefaultValidatorV5, SavedFileSimple, SavedFileSimpleValidatorV4, SavedFileSimpleValidatorV5, SavedFileV1, SavedFileV2, SavedFileV3, SavedFileV4, SavedFileV5, SavedFileValidator, SavedFileValidatorV1, SavedFileValidatorV2, SavedFileValidatorV3, SavedFileValidatorV4, SavedFileValidatorV5, SetOutputActionFn, SetOutputExpressionFn, ShellChannels, Steps, SubscriptionBenefit, SubscriptionError, SubscriptionExpiredError, SubscriptionRequiredError, Tables, TablesInsert, TablesUpdate, UnauthorizedError, UpdateStatus, Variable, VariableBase, VariableValidatorV1, WebSocketAPI, WebSocketClientConfig, WebSocketClientEvents, WebSocketConnectionError, WebSocketConnectionInfo, WebSocketConnectionState, WebSocketError, WebSocketErrorMessage, WebSocketEvent, WebSocketHandler, WebSocketListener, WebSocketManager, WebSocketMessage, WebSocketMessageType, WebSocketRequestMessage, WebSocketResponseMessage, WebSocketResponseType, WebSocketSendFunction, WebSocketServerConfig, WebSocketServerEvents, WebSocketTimeoutError, WithId, appSettingsMigrator, configRegistry, connectionsMigrator, createAction, createArray, createBooleanParam, createColorPicker, createDefinition, createEvent, createExpression, createNetlifySiteParam, createNodeDefinition, createNumberParam, createPasswordParam, createPathParam, createQuickJs, createQuickJsFromVariant, createRawParam, createStringParam, createSubscriptionError, createVersionSchema, __json_default_export as de_DE, defaultAppSettings, defaultConnections, defaultFileRepo, __json_default_export$1 as en_US, __json_default_export$2 as es_ES, fileRepoMigrations, fmt, foo, __json_default_export$3 as fr_FR, getSubscriptionErrorMessage, isRenderer, isRequired, isSubscriptionError, isSupabaseAvailable, isWebSocketErrorMessage, isWebSocketRequestMessage, isWebSocketResponseMessage, makeResolvedParams, newVariant, normalizePipelineConfig, processGraph, __json_default_export$4 as pt_BR, savedFileMigrator, supabase, transformUrl, useLogger, usePlugins, variableToFormattedVariable, __json_default_export$5 as zh_CN };
|
|
3649
3963
|
//# sourceMappingURL=index.d.mts.map
|