@pipelab/shared 1.0.0-beta.6 → 1.0.0-beta.8
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/CHANGELOG.md +16 -0
- package/dist/index.d.mts +244 -85
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +303 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/apis.ts +39 -13
- package/src/config/migrators.ts +160 -12
- package/src/config/settings-definition.ts +2 -0
- package/src/config.schema.ts +52 -2
- package/src/graph.ts +2 -70
- package/src/i18n/de_DE.json +4 -1
- package/src/i18n/en_US.json +17 -3
- package/src/i18n/es_ES.json +4 -1
- package/src/i18n/fr_FR.json +4 -1
- package/src/i18n/pt_BR.json +4 -1
- package/src/i18n/zh_CN.json +4 -1
- package/src/index.ts +2 -0
- package/src/ipc.types.ts +2 -0
- package/src/model.test.ts +176 -1
- package/src/model.ts +49 -42
- package/src/plugins/definitions.ts +11 -55
- package/src/plugins.ts +10 -1
- package/src/utils.ts +26 -0
package/dist/index.d.mts
CHANGED
|
@@ -151,15 +151,20 @@ type IconType = {
|
|
|
151
151
|
icon: string;
|
|
152
152
|
};
|
|
153
153
|
interface PluginDefinition {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
icon: IconType;
|
|
157
|
-
description: string;
|
|
154
|
+
packageName?: string;
|
|
155
|
+
version?: string;
|
|
158
156
|
}
|
|
159
157
|
type RendererNodeDefinition = {
|
|
160
158
|
node: PipelabNode;
|
|
161
159
|
};
|
|
162
160
|
interface RendererPluginDefinition extends PluginDefinition {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
icon: IconType;
|
|
164
|
+
description: string;
|
|
165
|
+
isOfficial: boolean;
|
|
166
|
+
packageName: string;
|
|
167
|
+
version: string;
|
|
163
168
|
nodes: Array<RendererNodeDefinition>;
|
|
164
169
|
}
|
|
165
170
|
interface MainPluginDefinition extends PluginDefinition {
|
|
@@ -184,7 +189,6 @@ type GetFlowKeys<T extends InputsOutputsDefinition> = keyof GetFlowEntries<T>;
|
|
|
184
189
|
type GetDataKeys<T extends InputsOutputsDefinition> = keyof GetDataEntries<T>;
|
|
185
190
|
type DataResult = Record<string, any>;
|
|
186
191
|
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
192
|
type SetOutputExpressionFn<T extends Expression> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
|
|
189
193
|
type ParamsToInput<PARAMS extends InputsDefinition> = { [index in keyof PARAMS]: PARAMS[index]["required"] extends true ? PARAMS[index]["value"] : PARAMS[index]["value"] | null };
|
|
190
194
|
interface BaseNode {
|
|
@@ -208,34 +212,8 @@ interface Action extends BaseNode {
|
|
|
208
212
|
deprecatedMessage?: string;
|
|
209
213
|
}
|
|
210
214
|
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
215
|
type ExtractInputsFromEvent<EVENT extends Event$1> = { [index in keyof EVENT["params"]]: EVENT["params"][index]["value"] };
|
|
214
216
|
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
217
|
interface Expression extends BaseNode {
|
|
240
218
|
id: string;
|
|
241
219
|
type: "expression";
|
|
@@ -260,7 +238,7 @@ interface Event$1 extends BaseNode {
|
|
|
260
238
|
meta?: Meta;
|
|
261
239
|
platforms?: NodeJS.Platform[];
|
|
262
240
|
}
|
|
263
|
-
type PipelabNode = Event$1 |
|
|
241
|
+
type PipelabNode = Event$1 | Expression | Action;
|
|
264
242
|
declare const createDefinition: <T extends MainPluginDefinition>(definition: T) => T;
|
|
265
243
|
declare const createAction: <T extends Omit<Action, "type">>(action: T) => T & {
|
|
266
244
|
type: "action";
|
|
@@ -385,12 +363,6 @@ declare const createRawParam: <T>(value: T, definition: Omit<InputDefinition, "v
|
|
|
385
363
|
declare const createExpression: <T extends Omit<Expression, "type">>(expression: T) => T & {
|
|
386
364
|
type: "expression";
|
|
387
365
|
};
|
|
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
366
|
declare const createEvent: <T extends Omit<Event$1, "type">>(event: T) => T & {
|
|
395
367
|
type: "event";
|
|
396
368
|
};
|
|
@@ -432,6 +404,7 @@ declare const foo = "bar";
|
|
|
432
404
|
type WithId<T> = T extends string | number ? never : T & {
|
|
433
405
|
id: string;
|
|
434
406
|
};
|
|
407
|
+
declare const transformUrl: (url: string | undefined | null) => string;
|
|
435
408
|
//#endregion
|
|
436
409
|
//#region src/save-location.d.ts
|
|
437
410
|
declare const SaveLocationInternalValidator: valibot.ObjectSchema<{
|
|
@@ -495,6 +468,7 @@ type Position = {
|
|
|
495
468
|
declare const OriginValidator: valibot.ObjectSchema<{
|
|
496
469
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
497
470
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
471
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
498
472
|
}, undefined>;
|
|
499
473
|
type Origin = InferOutput<typeof OriginValidator>;
|
|
500
474
|
declare const EditorParamValidatorV3: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
@@ -511,29 +485,16 @@ declare const BlockActionValidatorV3: valibot.ObjectSchema<{
|
|
|
511
485
|
readonly origin: valibot.ObjectSchema<{
|
|
512
486
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
513
487
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
488
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
514
489
|
}, undefined>;
|
|
515
490
|
}, 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
491
|
declare const BlockEventValidator: valibot.ObjectSchema<{
|
|
532
492
|
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
533
493
|
readonly uid: valibot.StringSchema<undefined>;
|
|
534
494
|
readonly origin: valibot.ObjectSchema<{
|
|
535
495
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
536
496
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
497
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
537
498
|
}, undefined>;
|
|
538
499
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
539
500
|
}, undefined>;
|
|
@@ -543,6 +504,7 @@ declare const BlockCommentValidator: valibot.ObjectSchema<{
|
|
|
543
504
|
readonly origin: valibot.ObjectSchema<{
|
|
544
505
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
545
506
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
507
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
546
508
|
}, undefined>;
|
|
547
509
|
readonly comment: valibot.StringSchema<undefined>;
|
|
548
510
|
}, undefined>;
|
|
@@ -558,6 +520,7 @@ declare const BlockValidatorV3: valibot.VariantSchema<"type", [valibot.ObjectSch
|
|
|
558
520
|
readonly origin: valibot.ObjectSchema<{
|
|
559
521
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
560
522
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
523
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
561
524
|
}, undefined>;
|
|
562
525
|
}, undefined>], undefined>;
|
|
563
526
|
type BlockAction = Simplify<InferOutput<typeof BlockActionValidatorV3>>;
|
|
@@ -578,6 +541,7 @@ declare const SavedFileValidatorV1: valibot.ObjectSchema<{
|
|
|
578
541
|
readonly origin: valibot.ObjectSchema<{
|
|
579
542
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
580
543
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
544
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
581
545
|
}, undefined>;
|
|
582
546
|
}, undefined>, valibot.ObjectSchema<{
|
|
583
547
|
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
@@ -585,6 +549,7 @@ declare const SavedFileValidatorV1: valibot.ObjectSchema<{
|
|
|
585
549
|
readonly origin: valibot.ObjectSchema<{
|
|
586
550
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
587
551
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
552
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
588
553
|
}, undefined>;
|
|
589
554
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
590
555
|
}, undefined>], undefined>, undefined>;
|
|
@@ -604,6 +569,7 @@ declare const SavedFileValidatorV2: valibot.ObjectSchema<{
|
|
|
604
569
|
readonly origin: valibot.ObjectSchema<{
|
|
605
570
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
606
571
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
572
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
607
573
|
}, undefined>;
|
|
608
574
|
}, undefined>], undefined>, undefined>;
|
|
609
575
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -612,6 +578,7 @@ declare const SavedFileValidatorV2: valibot.ObjectSchema<{
|
|
|
612
578
|
readonly origin: valibot.ObjectSchema<{
|
|
613
579
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
614
580
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
581
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
615
582
|
}, undefined>;
|
|
616
583
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
617
584
|
}, undefined>, undefined>;
|
|
@@ -635,6 +602,7 @@ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
|
|
|
635
602
|
readonly origin: valibot.ObjectSchema<{
|
|
636
603
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
637
604
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
605
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
638
606
|
}, undefined>;
|
|
639
607
|
}, undefined>], undefined>, undefined>;
|
|
640
608
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -643,17 +611,19 @@ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
|
|
|
643
611
|
readonly origin: valibot.ObjectSchema<{
|
|
644
612
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
645
613
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
614
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
646
615
|
}, undefined>;
|
|
647
616
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
648
617
|
}, undefined>, undefined>;
|
|
649
618
|
}, undefined>;
|
|
650
619
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
651
620
|
}, undefined>;
|
|
652
|
-
declare const
|
|
621
|
+
declare const SavedFileDefaultValidatorV4: valibot.ObjectSchema<{
|
|
653
622
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
654
623
|
readonly type: valibot.LiteralSchema<"default", undefined>;
|
|
655
624
|
readonly name: valibot.StringSchema<undefined>;
|
|
656
625
|
readonly description: valibot.StringSchema<undefined>;
|
|
626
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
657
627
|
readonly canvas: valibot.ObjectSchema<{
|
|
658
628
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
659
629
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
@@ -667,6 +637,7 @@ declare const SavedFileDefaultValidator: valibot.ObjectSchema<{
|
|
|
667
637
|
readonly origin: valibot.ObjectSchema<{
|
|
668
638
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
669
639
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
640
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
670
641
|
}, undefined>;
|
|
671
642
|
}, undefined>], undefined>, undefined>;
|
|
672
643
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -675,17 +646,19 @@ declare const SavedFileDefaultValidator: valibot.ObjectSchema<{
|
|
|
675
646
|
readonly origin: valibot.ObjectSchema<{
|
|
676
647
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
677
648
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
649
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
678
650
|
}, undefined>;
|
|
679
651
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
680
652
|
}, undefined>, undefined>;
|
|
681
653
|
}, undefined>;
|
|
682
654
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
683
655
|
}, undefined>;
|
|
684
|
-
declare const
|
|
656
|
+
declare const SavedFileSimpleValidatorV4: valibot.ObjectSchema<{
|
|
685
657
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
686
658
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
687
659
|
readonly name: valibot.StringSchema<undefined>;
|
|
688
660
|
readonly description: valibot.StringSchema<undefined>;
|
|
661
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
689
662
|
readonly source: valibot.ObjectSchema<{
|
|
690
663
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
691
664
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -708,11 +681,8 @@ declare const SavedFileSimpleValidator: valibot.ObjectSchema<{
|
|
|
708
681
|
}, undefined>;
|
|
709
682
|
}, undefined>;
|
|
710
683
|
}, 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>;
|
|
684
|
+
declare const SavedFileDefaultValidatorV5: valibot.ObjectSchema<{
|
|
685
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
716
686
|
readonly name: valibot.StringSchema<undefined>;
|
|
717
687
|
readonly description: valibot.StringSchema<undefined>;
|
|
718
688
|
readonly canvas: valibot.ObjectSchema<{
|
|
@@ -728,6 +698,7 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
728
698
|
readonly origin: valibot.ObjectSchema<{
|
|
729
699
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
730
700
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
701
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
731
702
|
}, undefined>;
|
|
732
703
|
}, undefined>], undefined>, undefined>;
|
|
733
704
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -736,16 +707,19 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
736
707
|
readonly origin: valibot.ObjectSchema<{
|
|
737
708
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
738
709
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
710
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
739
711
|
}, undefined>;
|
|
740
712
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
741
713
|
}, undefined>, undefined>;
|
|
742
714
|
}, undefined>;
|
|
743
715
|
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
744
|
-
}, undefined
|
|
745
|
-
|
|
716
|
+
}, undefined>;
|
|
717
|
+
declare const SavedFileSimpleValidatorV5: valibot.ObjectSchema<{
|
|
718
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
746
719
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
747
720
|
readonly name: valibot.StringSchema<undefined>;
|
|
748
721
|
readonly description: valibot.StringSchema<undefined>;
|
|
722
|
+
readonly plugins: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>;
|
|
749
723
|
readonly source: valibot.ObjectSchema<{
|
|
750
724
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
751
725
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -767,17 +741,15 @@ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
767
741
|
readonly gameId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
|
|
768
742
|
}, undefined>;
|
|
769
743
|
}, 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<{
|
|
744
|
+
}, undefined>;
|
|
745
|
+
type SavedFileDefault = InferOutput<typeof SavedFileDefaultValidatorV5>;
|
|
746
|
+
type SavedFileSimple = InferOutput<typeof SavedFileSimpleValidatorV5>;
|
|
747
|
+
declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
777
748
|
readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
|
|
778
749
|
readonly type: valibot.LiteralSchema<"default", undefined>;
|
|
779
750
|
readonly name: valibot.StringSchema<undefined>;
|
|
780
751
|
readonly description: valibot.StringSchema<undefined>;
|
|
752
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
781
753
|
readonly canvas: valibot.ObjectSchema<{
|
|
782
754
|
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
783
755
|
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
@@ -791,6 +763,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
791
763
|
readonly origin: valibot.ObjectSchema<{
|
|
792
764
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
793
765
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
766
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
794
767
|
}, undefined>;
|
|
795
768
|
}, undefined>], undefined>, undefined>;
|
|
796
769
|
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
@@ -799,6 +772,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
799
772
|
readonly origin: valibot.ObjectSchema<{
|
|
800
773
|
readonly pluginId: valibot.StringSchema<undefined>;
|
|
801
774
|
readonly nodeId: valibot.StringSchema<undefined>;
|
|
775
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
802
776
|
}, undefined>;
|
|
803
777
|
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
804
778
|
}, undefined>, undefined>;
|
|
@@ -809,6 +783,7 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
809
783
|
readonly type: valibot.LiteralSchema<"simple", undefined>;
|
|
810
784
|
readonly name: valibot.StringSchema<undefined>;
|
|
811
785
|
readonly description: valibot.StringSchema<undefined>;
|
|
786
|
+
readonly plugins: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.StringSchema<undefined>, undefined>, never>;
|
|
812
787
|
readonly source: valibot.ObjectSchema<{
|
|
813
788
|
readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
|
|
814
789
|
readonly path: valibot.StringSchema<undefined>;
|
|
@@ -831,9 +806,81 @@ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
|
|
|
831
806
|
}, undefined>;
|
|
832
807
|
}, undefined>;
|
|
833
808
|
}, undefined>], undefined>;
|
|
809
|
+
declare const SavedFileValidatorV5: valibot.ObjectSchema<{
|
|
810
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
811
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
812
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
813
|
+
readonly canvas: valibot.ObjectSchema<{
|
|
814
|
+
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
815
|
+
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
816
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
817
|
+
readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
|
|
818
|
+
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
819
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
820
|
+
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
821
|
+
readonly value: valibot.UnknownSchema;
|
|
822
|
+
}, undefined>, undefined>;
|
|
823
|
+
readonly origin: valibot.ObjectSchema<{
|
|
824
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
825
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
826
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
827
|
+
}, undefined>;
|
|
828
|
+
}, undefined>], undefined>, undefined>;
|
|
829
|
+
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
830
|
+
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
831
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
832
|
+
readonly origin: valibot.ObjectSchema<{
|
|
833
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
834
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
835
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
836
|
+
}, undefined>;
|
|
837
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
838
|
+
}, undefined>, undefined>;
|
|
839
|
+
}, undefined>;
|
|
840
|
+
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
841
|
+
}, undefined>;
|
|
842
|
+
type SavedFileV1 = InferOutput<typeof SavedFileValidatorV1>;
|
|
843
|
+
type SavedFileV2 = InferOutput<typeof SavedFileValidatorV2>;
|
|
844
|
+
type SavedFileV3 = InferOutput<typeof SavedFileValidatorV3>;
|
|
845
|
+
type SavedFileV4 = InferOutput<typeof SavedFileValidatorV4>;
|
|
846
|
+
type SavedFileV5 = InferOutput<typeof SavedFileValidatorV5>;
|
|
847
|
+
type SavedFile = SavedFileV5;
|
|
848
|
+
declare const SavedFileValidator: valibot.ObjectSchema<{
|
|
849
|
+
readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
|
|
850
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
851
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
852
|
+
readonly canvas: valibot.ObjectSchema<{
|
|
853
|
+
readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
|
|
854
|
+
readonly type: valibot.LiteralSchema<"action", undefined>;
|
|
855
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
856
|
+
readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
|
|
857
|
+
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
|
|
858
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
|
|
859
|
+
readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
|
|
860
|
+
readonly value: valibot.UnknownSchema;
|
|
861
|
+
}, undefined>, undefined>;
|
|
862
|
+
readonly origin: valibot.ObjectSchema<{
|
|
863
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
864
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
865
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
866
|
+
}, undefined>;
|
|
867
|
+
}, undefined>], undefined>, undefined>;
|
|
868
|
+
readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
869
|
+
readonly type: valibot.LiteralSchema<"event", undefined>;
|
|
870
|
+
readonly uid: valibot.StringSchema<undefined>;
|
|
871
|
+
readonly origin: valibot.ObjectSchema<{
|
|
872
|
+
readonly pluginId: valibot.StringSchema<undefined>;
|
|
873
|
+
readonly nodeId: valibot.StringSchema<undefined>;
|
|
874
|
+
readonly version: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "Pinned version of the plugin for this block. Falls back to \"latest\" when absent.">]>;
|
|
875
|
+
}, undefined>;
|
|
876
|
+
readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
|
|
877
|
+
}, undefined>, undefined>;
|
|
878
|
+
}, undefined>;
|
|
879
|
+
readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
|
|
880
|
+
}, undefined>;
|
|
834
881
|
type Preset = SavedFile;
|
|
835
882
|
type PresetResult = {
|
|
836
|
-
data:
|
|
883
|
+
data: Preset;
|
|
837
884
|
hightlight?: boolean;
|
|
838
885
|
disabled?: boolean;
|
|
839
886
|
};
|
|
@@ -841,7 +888,7 @@ type PresetFn = () => Promise<PresetResult>;
|
|
|
841
888
|
type Steps = Record<string, {
|
|
842
889
|
outputs: Record<string, unknown>;
|
|
843
890
|
}>;
|
|
844
|
-
type EnhancedFile<T
|
|
891
|
+
type EnhancedFile<T = SavedFile> = WithId<SaveLocation> & {
|
|
845
892
|
content: T;
|
|
846
893
|
};
|
|
847
894
|
//#endregion
|
|
@@ -1147,15 +1194,6 @@ type IpcDefinition$1 = {
|
|
|
1147
1194
|
outputs: Record<string, unknown>;
|
|
1148
1195
|
tmp: string;
|
|
1149
1196
|
}>)];
|
|
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
1197
|
"constants:get": [void, EndEvent$1<{
|
|
1160
1198
|
result: {
|
|
1161
1199
|
userData: string;
|
|
@@ -1178,6 +1216,11 @@ type IpcDefinition$1 = {
|
|
|
1178
1216
|
}, EndEvent$1<{
|
|
1179
1217
|
result: "ok";
|
|
1180
1218
|
}>];
|
|
1219
|
+
"config:delete": [{
|
|
1220
|
+
config: string;
|
|
1221
|
+
}, EndEvent$1<{
|
|
1222
|
+
result: "ok";
|
|
1223
|
+
}>];
|
|
1181
1224
|
"action:cancel": [void, EndEvent$1<{
|
|
1182
1225
|
result: "ok" | "ko";
|
|
1183
1226
|
}>];
|
|
@@ -1297,6 +1340,49 @@ type IpcDefinition$1 = {
|
|
|
1297
1340
|
"plugin:loaded": [void, {
|
|
1298
1341
|
plugin: RendererPluginDefinition;
|
|
1299
1342
|
}];
|
|
1343
|
+
"plugin:search": [{
|
|
1344
|
+
query: string;
|
|
1345
|
+
}, EndEvent$1<{
|
|
1346
|
+
results: Array<{
|
|
1347
|
+
name: string;
|
|
1348
|
+
version: string;
|
|
1349
|
+
description?: string;
|
|
1350
|
+
keywords?: string[];
|
|
1351
|
+
date?: string;
|
|
1352
|
+
}>;
|
|
1353
|
+
}>];
|
|
1354
|
+
"plugin:get-details": [{
|
|
1355
|
+
packageName: string;
|
|
1356
|
+
}, EndEvent$1<{
|
|
1357
|
+
name: string;
|
|
1358
|
+
latestVersion: string;
|
|
1359
|
+
versions: string[];
|
|
1360
|
+
description?: string;
|
|
1361
|
+
}>];
|
|
1362
|
+
"plugin:install": [{
|
|
1363
|
+
packageName: string;
|
|
1364
|
+
version: string;
|
|
1365
|
+
}, EndEvent$1<{
|
|
1366
|
+
result: "ok";
|
|
1367
|
+
}>];
|
|
1368
|
+
"plugin:uninstall": [{
|
|
1369
|
+
packageName: string;
|
|
1370
|
+
}, EndEvent$1<{
|
|
1371
|
+
result: "ok";
|
|
1372
|
+
}>];
|
|
1373
|
+
"plugin:list-installed": [void, EndEvent$1<{
|
|
1374
|
+
installed: Array<{
|
|
1375
|
+
name: string;
|
|
1376
|
+
version: string;
|
|
1377
|
+
description?: string;
|
|
1378
|
+
}>;
|
|
1379
|
+
}>];
|
|
1380
|
+
"plugin:ensure-loaded": [{
|
|
1381
|
+
plugins: Record<string, string>;
|
|
1382
|
+
}, EndEvent$1<{
|
|
1383
|
+
loaded: string[];
|
|
1384
|
+
failed: string[];
|
|
1385
|
+
}>];
|
|
1300
1386
|
};
|
|
1301
1387
|
type Channels = keyof IpcDefinition$1;
|
|
1302
1388
|
declare const ShellChannels: Channels[];
|
|
@@ -1399,6 +1485,40 @@ declare const AppSettingsValidatorV7: valibot.ObjectSchema<{
|
|
|
1399
1485
|
}, undefined>;
|
|
1400
1486
|
}, undefined>;
|
|
1401
1487
|
}, undefined>;
|
|
1488
|
+
declare const AppSettingsValidatorV8: valibot.ObjectSchema<{
|
|
1489
|
+
readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
|
|
1490
|
+
readonly version: valibot.LiteralSchema<"8.0.0", undefined>;
|
|
1491
|
+
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>;
|
|
1492
|
+
readonly tours: valibot.ObjectSchema<{
|
|
1493
|
+
readonly dashboard: valibot.ObjectSchema<{
|
|
1494
|
+
readonly step: valibot.NumberSchema<undefined>;
|
|
1495
|
+
readonly completed: valibot.BooleanSchema<undefined>;
|
|
1496
|
+
}, undefined>;
|
|
1497
|
+
readonly editor: valibot.ObjectSchema<{
|
|
1498
|
+
readonly step: valibot.NumberSchema<undefined>;
|
|
1499
|
+
readonly completed: valibot.BooleanSchema<undefined>;
|
|
1500
|
+
}, undefined>;
|
|
1501
|
+
}, undefined>;
|
|
1502
|
+
readonly autosave: valibot.BooleanSchema<undefined>;
|
|
1503
|
+
readonly agents: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1504
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
1505
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1506
|
+
readonly url: valibot.StringSchema<undefined>;
|
|
1507
|
+
}, undefined>, undefined>;
|
|
1508
|
+
readonly buildHistory: valibot.ObjectSchema<{
|
|
1509
|
+
readonly retentionPolicy: valibot.ObjectSchema<{
|
|
1510
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1511
|
+
readonly maxEntries: valibot.NumberSchema<undefined>;
|
|
1512
|
+
readonly maxAge: valibot.NumberSchema<undefined>;
|
|
1513
|
+
}, undefined>;
|
|
1514
|
+
}, undefined>;
|
|
1515
|
+
readonly plugins: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1516
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1517
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1518
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1519
|
+
}, undefined>, undefined>;
|
|
1520
|
+
readonly isInternalMigrationBannerClosed: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
1521
|
+
}, undefined>;
|
|
1402
1522
|
type AppConfigV1 = InferInput<typeof AppSettingsValidatorV1>;
|
|
1403
1523
|
type AppConfigV2 = InferInput<typeof AppSettingsValidatorV2>;
|
|
1404
1524
|
type AppConfigV3 = InferInput<typeof AppSettingsValidatorV3>;
|
|
@@ -1406,10 +1526,11 @@ type AppConfigV4 = InferInput<typeof AppSettingsValidatorV4>;
|
|
|
1406
1526
|
type AppConfigV5 = InferInput<typeof AppSettingsValidatorV5>;
|
|
1407
1527
|
type AppConfigV6 = InferInput<typeof AppSettingsValidatorV6>;
|
|
1408
1528
|
type AppConfigV7 = InferInput<typeof AppSettingsValidatorV7>;
|
|
1409
|
-
type
|
|
1529
|
+
type AppConfigV8 = InferInput<typeof AppSettingsValidatorV8>;
|
|
1530
|
+
type AppConfig = AppConfigV8;
|
|
1410
1531
|
declare const AppSettingsValidator: valibot.ObjectSchema<{
|
|
1411
1532
|
readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
|
|
1412
|
-
readonly version: valibot.LiteralSchema<"
|
|
1533
|
+
readonly version: valibot.LiteralSchema<"8.0.0", undefined>;
|
|
1413
1534
|
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>;
|
|
1414
1535
|
readonly tours: valibot.ObjectSchema<{
|
|
1415
1536
|
readonly dashboard: valibot.ObjectSchema<{
|
|
@@ -1434,6 +1555,12 @@ declare const AppSettingsValidator: valibot.ObjectSchema<{
|
|
|
1434
1555
|
readonly maxAge: valibot.NumberSchema<undefined>;
|
|
1435
1556
|
}, undefined>;
|
|
1436
1557
|
}, undefined>;
|
|
1558
|
+
readonly plugins: valibot.ArraySchema<valibot.ObjectSchema<{
|
|
1559
|
+
readonly name: valibot.StringSchema<undefined>;
|
|
1560
|
+
readonly enabled: valibot.BooleanSchema<undefined>;
|
|
1561
|
+
readonly description: valibot.StringSchema<undefined>;
|
|
1562
|
+
}, undefined>, undefined>;
|
|
1563
|
+
readonly isInternalMigrationBannerClosed: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
1437
1564
|
}, undefined>;
|
|
1438
1565
|
//#endregion
|
|
1439
1566
|
//#region src/database.types.d.ts
|
|
@@ -1514,7 +1641,7 @@ declare const processGraph: (options: {
|
|
|
1514
1641
|
variables: Array<Variable>;
|
|
1515
1642
|
steps: Steps;
|
|
1516
1643
|
context: Context;
|
|
1517
|
-
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"
|
|
1644
|
+
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"action:execute">>;
|
|
1518
1645
|
onNodeEnter: (node: Block) => void;
|
|
1519
1646
|
onNodeExit: (node: Block) => void;
|
|
1520
1647
|
abortSignal?: AbortSignal;
|
|
@@ -1524,7 +1651,7 @@ declare const processGraph: (options: {
|
|
|
1524
1651
|
variables: Array<Variable>;
|
|
1525
1652
|
steps: Steps;
|
|
1526
1653
|
context: Context;
|
|
1527
|
-
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"
|
|
1654
|
+
onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"action:execute">>;
|
|
1528
1655
|
onNodeEnter: (node: Block) => void;
|
|
1529
1656
|
onNodeExit: (node: Block) => void;
|
|
1530
1657
|
abortSignal?: AbortSignal;
|
|
@@ -1550,6 +1677,9 @@ declare let settings$5: {
|
|
|
1550
1677
|
integrations: string;
|
|
1551
1678
|
advanced: string;
|
|
1552
1679
|
billing: string;
|
|
1680
|
+
plugins: string;
|
|
1681
|
+
"core-plugins": string;
|
|
1682
|
+
"community-plugins": string;
|
|
1553
1683
|
};
|
|
1554
1684
|
"pipeline-cache-folder": string;
|
|
1555
1685
|
"enter-or-browse-for-a-folder": string;
|
|
@@ -1617,6 +1747,13 @@ declare let editor_1$5: {
|
|
|
1617
1747
|
"view-history": string;
|
|
1618
1748
|
"add-plugin": string;
|
|
1619
1749
|
"display-advanced-nodes": string;
|
|
1750
|
+
"project-settings": string;
|
|
1751
|
+
"jit-loading-title": string;
|
|
1752
|
+
"jit-loading-subtitle": string;
|
|
1753
|
+
"jit-loading-status": string;
|
|
1754
|
+
"validation-failed": string;
|
|
1755
|
+
"validation-plugin-disabled-or-missing": string;
|
|
1756
|
+
"validation-missing-param": string;
|
|
1620
1757
|
};
|
|
1621
1758
|
declare let home$5: {
|
|
1622
1759
|
"invalid-preset": string;
|
|
@@ -1663,6 +1800,10 @@ declare let home$5: {
|
|
|
1663
1800
|
"migrate-pipeline": string;
|
|
1664
1801
|
"migration-success": string;
|
|
1665
1802
|
"migrate-to-internal": string;
|
|
1803
|
+
"only-internal-supported-notice": string;
|
|
1804
|
+
"import-pipeline": string;
|
|
1805
|
+
"import-success": string;
|
|
1806
|
+
"failed-to-read-file": string;
|
|
1666
1807
|
};
|
|
1667
1808
|
declare namespace scenarios_1$5 {
|
|
1668
1809
|
let scenarios_2: string;
|
|
@@ -1711,6 +1852,9 @@ declare let settings$4: {
|
|
|
1711
1852
|
integrations: string;
|
|
1712
1853
|
advanced: string;
|
|
1713
1854
|
billing: string;
|
|
1855
|
+
plugins: string;
|
|
1856
|
+
"core-plugins": string;
|
|
1857
|
+
"community-plugins": string;
|
|
1714
1858
|
};
|
|
1715
1859
|
clearTempFolders: string;
|
|
1716
1860
|
clearTempFoldersDescription: string;
|
|
@@ -1805,6 +1949,9 @@ declare let settings$3: {
|
|
|
1805
1949
|
integrations: string;
|
|
1806
1950
|
advanced: string;
|
|
1807
1951
|
billing: string;
|
|
1952
|
+
plugins: string;
|
|
1953
|
+
"core-plugins": string;
|
|
1954
|
+
"community-plugins": string;
|
|
1808
1955
|
};
|
|
1809
1956
|
clearTempFolders: string;
|
|
1810
1957
|
clearTempFoldersDescription: string;
|
|
@@ -1896,6 +2043,9 @@ declare let settings$2: {
|
|
|
1896
2043
|
integrations: string;
|
|
1897
2044
|
advanced: string;
|
|
1898
2045
|
billing: string;
|
|
2046
|
+
plugins: string;
|
|
2047
|
+
"core-plugins": string;
|
|
2048
|
+
"community-plugins": string;
|
|
1899
2049
|
};
|
|
1900
2050
|
clearTempFolders: string;
|
|
1901
2051
|
clearTempFoldersDescription: string;
|
|
@@ -1987,6 +2137,9 @@ declare let settings$1: {
|
|
|
1987
2137
|
integrations: string;
|
|
1988
2138
|
advanced: string;
|
|
1989
2139
|
billing: string;
|
|
2140
|
+
plugins: string;
|
|
2141
|
+
"core-plugins": string;
|
|
2142
|
+
"community-plugins": string;
|
|
1990
2143
|
};
|
|
1991
2144
|
clearTempFolders: string;
|
|
1992
2145
|
clearTempFoldersDescription: string;
|
|
@@ -2078,6 +2231,9 @@ declare let settings: {
|
|
|
2078
2231
|
integrations: string;
|
|
2079
2232
|
advanced: string;
|
|
2080
2233
|
billing: string;
|
|
2234
|
+
plugins: string;
|
|
2235
|
+
"core-plugins": string;
|
|
2236
|
+
"community-plugins": string;
|
|
2081
2237
|
};
|
|
2082
2238
|
clearTempFolders: string;
|
|
2083
2239
|
clearTempFoldersDescription: string;
|
|
@@ -2193,6 +2349,8 @@ type IpcDefinition = {
|
|
|
2193
2349
|
"log:message": [ILogObjMeta, EndEvent<void>];
|
|
2194
2350
|
"update:set-status": [{
|
|
2195
2351
|
status: UpdateStatus;
|
|
2352
|
+
downloadUrl?: string;
|
|
2353
|
+
version?: string;
|
|
2196
2354
|
}, EndEvent<void>];
|
|
2197
2355
|
};
|
|
2198
2356
|
type RendererChannels = keyof IpcDefinition;
|
|
@@ -3647,6 +3805,7 @@ declare const fileRepoMigrations: any;
|
|
|
3647
3805
|
declare const defaultFileRepo: any;
|
|
3648
3806
|
declare const savedFileMigrator: any;
|
|
3649
3807
|
declare const configRegistry: Record<string, Migrator<any>>;
|
|
3808
|
+
declare const normalizePipelineConfig: (state: any) => boolean;
|
|
3650
3809
|
//#endregion
|
|
3651
|
-
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,
|
|
3810
|
+
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, 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, GetDataEntries, GetDataKeys, GetFlowEntries, GetFlowKeys, HandleListenerRenderer, HandleListenerRendererSendFn, IBuildHistoryStorage, IconType, InputDefinition, InputOutputDefinition, InputsDefinition, InputsOutputsDefinition, IpcEvent, IpcMessage, Json, Locales, LogEntry, MainPluginDefinition, MessageSchema, Meta, type Migrator, Origin, OriginValidator, OutputDefinition, OutputsDefinition, ParamsToInput, PathOptions, PipelabNode, PipelabSelectOption, PluginDefinition, Position, Preset, PresetFn, PresetResult, Presets, PropType, RELEASE_SYNC, RendererChannels, RendererData, RendererEnd, RendererEvents, RendererMessage, RendererNodeDefinition, RendererPluginDefinition, 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, 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, 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 };
|
|
3652
3811
|
//# sourceMappingURL=index.d.mts.map
|