@dotbep/core 0.2.9 → 0.2.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/dist/index.d.ts +67 -12
- package/dist/index.js +685 -654
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -332,9 +332,15 @@ export declare const BEPSchema: z.ZodObject<{
|
|
|
332
332
|
string: "string";
|
|
333
333
|
number: "number";
|
|
334
334
|
boolean: "boolean";
|
|
335
|
-
url: "url";
|
|
336
335
|
}>;
|
|
337
336
|
required: z.ZodBoolean;
|
|
337
|
+
label: z.ZodOptional<z.ZodString>;
|
|
338
|
+
description: z.ZodOptional<z.ZodString>;
|
|
339
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
340
|
+
pattern: z.ZodString;
|
|
341
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
338
344
|
}, z.core.$strip>>>;
|
|
339
345
|
}, z.core.$strip>>;
|
|
340
346
|
effects: z.ZodArray<z.ZodObject<{
|
|
@@ -347,9 +353,15 @@ export declare const BEPSchema: z.ZodObject<{
|
|
|
347
353
|
string: "string";
|
|
348
354
|
number: "number";
|
|
349
355
|
boolean: "boolean";
|
|
350
|
-
url: "url";
|
|
351
356
|
}>;
|
|
352
357
|
required: z.ZodBoolean;
|
|
358
|
+
label: z.ZodOptional<z.ZodString>;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
360
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
361
|
+
pattern: z.ZodString;
|
|
362
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
365
|
}, z.core.$strip>>>;
|
|
354
366
|
}, z.core.$strip>>;
|
|
355
367
|
automations: z.ZodArray<z.ZodObject<{
|
|
@@ -362,9 +374,15 @@ export declare const BEPSchema: z.ZodObject<{
|
|
|
362
374
|
string: "string";
|
|
363
375
|
number: "number";
|
|
364
376
|
boolean: "boolean";
|
|
365
|
-
url: "url";
|
|
366
377
|
}>;
|
|
367
378
|
required: z.ZodBoolean;
|
|
379
|
+
label: z.ZodOptional<z.ZodString>;
|
|
380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
381
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
pattern: z.ZodString;
|
|
383
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
386
|
}, z.core.$strip>>>;
|
|
369
387
|
output: z.ZodArray<z.ZodObject<{
|
|
370
388
|
key: z.ZodString;
|
|
@@ -372,9 +390,15 @@ export declare const BEPSchema: z.ZodObject<{
|
|
|
372
390
|
string: "string";
|
|
373
391
|
number: "number";
|
|
374
392
|
boolean: "boolean";
|
|
375
|
-
url: "url";
|
|
376
393
|
}>;
|
|
377
394
|
required: z.ZodBoolean;
|
|
395
|
+
label: z.ZodOptional<z.ZodString>;
|
|
396
|
+
description: z.ZodOptional<z.ZodString>;
|
|
397
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
pattern: z.ZodString;
|
|
399
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
378
402
|
}, z.core.$strip>>;
|
|
379
403
|
}, z.core.$strip>>;
|
|
380
404
|
env: z.ZodArray<z.ZodObject<{
|
|
@@ -843,8 +867,9 @@ export declare class Effects extends Entity<FlowEffect> {
|
|
|
843
867
|
export declare class Engine {
|
|
844
868
|
private readonly getBep;
|
|
845
869
|
private readonly getHistoricalBep?;
|
|
846
|
-
private
|
|
870
|
+
private _runtime;
|
|
847
871
|
private storage;
|
|
872
|
+
get runtime(): Runtime<any>;
|
|
848
873
|
private skipRaci;
|
|
849
874
|
private readonly transitionListeners;
|
|
850
875
|
private readonly createdListeners;
|
|
@@ -1135,9 +1160,15 @@ export declare const FlowAutomationSchema: z.ZodObject<{
|
|
|
1135
1160
|
string: "string";
|
|
1136
1161
|
number: "number";
|
|
1137
1162
|
boolean: "boolean";
|
|
1138
|
-
url: "url";
|
|
1139
1163
|
}>;
|
|
1140
1164
|
required: z.ZodBoolean;
|
|
1165
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1166
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
1168
|
+
pattern: z.ZodString;
|
|
1169
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
}, z.core.$strip>>;
|
|
1171
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1141
1172
|
}, z.core.$strip>>>;
|
|
1142
1173
|
output: z.ZodArray<z.ZodObject<{
|
|
1143
1174
|
key: z.ZodString;
|
|
@@ -1145,9 +1176,15 @@ export declare const FlowAutomationSchema: z.ZodObject<{
|
|
|
1145
1176
|
string: "string";
|
|
1146
1177
|
number: "number";
|
|
1147
1178
|
boolean: "boolean";
|
|
1148
|
-
url: "url";
|
|
1149
1179
|
}>;
|
|
1150
1180
|
required: z.ZodBoolean;
|
|
1181
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
1184
|
+
pattern: z.ZodString;
|
|
1185
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
}, z.core.$strip>>;
|
|
1187
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1151
1188
|
}, z.core.$strip>>;
|
|
1152
1189
|
}, z.core.$strip>;
|
|
1153
1190
|
|
|
@@ -1332,9 +1369,15 @@ export declare const FlowEffectSchema: z.ZodObject<{
|
|
|
1332
1369
|
string: "string";
|
|
1333
1370
|
number: "number";
|
|
1334
1371
|
boolean: "boolean";
|
|
1335
|
-
url: "url";
|
|
1336
1372
|
}>;
|
|
1337
1373
|
required: z.ZodBoolean;
|
|
1374
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
1377
|
+
pattern: z.ZodString;
|
|
1378
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
}, z.core.$strip>>;
|
|
1380
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1338
1381
|
}, z.core.$strip>>>;
|
|
1339
1382
|
}, z.core.$strip>;
|
|
1340
1383
|
|
|
@@ -1355,9 +1398,15 @@ export declare const FlowEventSchema: z.ZodObject<{
|
|
|
1355
1398
|
string: "string";
|
|
1356
1399
|
number: "number";
|
|
1357
1400
|
boolean: "boolean";
|
|
1358
|
-
url: "url";
|
|
1359
1401
|
}>;
|
|
1360
1402
|
required: z.ZodBoolean;
|
|
1403
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
1406
|
+
pattern: z.ZodString;
|
|
1407
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
}, z.core.$strip>>;
|
|
1409
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1361
1410
|
}, z.core.$strip>>>;
|
|
1362
1411
|
}, z.core.$strip>;
|
|
1363
1412
|
|
|
@@ -1422,9 +1471,15 @@ export declare const FlowPayloadFieldSchema: z.ZodObject<{
|
|
|
1422
1471
|
string: "string";
|
|
1423
1472
|
number: "number";
|
|
1424
1473
|
boolean: "boolean";
|
|
1425
|
-
url: "url";
|
|
1426
1474
|
}>;
|
|
1427
1475
|
required: z.ZodBoolean;
|
|
1476
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
1479
|
+
pattern: z.ZodString;
|
|
1480
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
1481
|
+
}, z.core.$strip>>;
|
|
1482
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1428
1483
|
}, z.core.$strip>;
|
|
1429
1484
|
|
|
1430
1485
|
export declare type FlowProcessNode = z.infer<typeof FlowProcessNodeSchema>;
|
|
@@ -2074,7 +2129,7 @@ export declare const ObjectiveSchema: z.ZodObject<{
|
|
|
2074
2129
|
|
|
2075
2130
|
export declare interface PayloadFieldError {
|
|
2076
2131
|
field: string;
|
|
2077
|
-
reason: 'missing' | 'wrong_type' | 'unknown_field';
|
|
2132
|
+
reason: 'missing' | 'wrong_type' | 'unknown_field' | 'invalid_format';
|
|
2078
2133
|
}
|
|
2079
2134
|
|
|
2080
2135
|
export declare type Phase = z.infer<typeof PhaseSchema>;
|
|
@@ -2223,7 +2278,7 @@ export declare class Runtime<T extends {
|
|
|
2223
2278
|
resolvers: Record<string, any>;
|
|
2224
2279
|
env: Record<string, any>;
|
|
2225
2280
|
} = BepTypes> {
|
|
2226
|
-
|
|
2281
|
+
env: T['env'];
|
|
2227
2282
|
readonly effects: Record<string, EffectHandler>;
|
|
2228
2283
|
readonly automations: Record<string, AutomationHandler>;
|
|
2229
2284
|
readonly resolvers: Record<string, ResolverHandler>;
|