@swirls/sdk 0.0.6 → 0.0.7
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/client/client.d.ts +367 -126
- package/dist/client/client.js +1734 -1
- package/dist/form/form.js +213 -3
- package/package.json +4 -2
package/dist/client/client.d.ts
CHANGED
|
@@ -8,13 +8,34 @@ import * as _orpc_contract from '@orpc/contract';
|
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
import * as zod from 'zod';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Main entry point for the Swirls SDK.
|
|
13
|
+
*
|
|
14
|
+
* Provides a type-safe client for the Swirls API with namespaced methods
|
|
15
|
+
* for graphs, forms, webhooks, schedules, triggers, agents, and more.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Swirls } from '@swirls/sdk/client'
|
|
20
|
+
*
|
|
21
|
+
* const swirls = new Swirls({ apiKey: 'your-api-key' })
|
|
22
|
+
* const projects = await swirls.client.projects.listProjects()
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
11
25
|
declare class Swirls {
|
|
12
26
|
private apiKey;
|
|
13
27
|
private apiUrl;
|
|
28
|
+
/**
|
|
29
|
+
* Create a new Swirls SDK instance.
|
|
30
|
+
*
|
|
31
|
+
* @param options.apiKey - Your Swirls API key.
|
|
32
|
+
* @param options.apiUrl - Override the API base URL (defaults to `https://swirls.ai/api`).
|
|
33
|
+
*/
|
|
14
34
|
constructor(options: {
|
|
15
35
|
apiKey: string;
|
|
16
36
|
apiUrl?: string;
|
|
17
37
|
});
|
|
38
|
+
/** Type-safe oRPC client with namespaced methods for all Swirls resources. */
|
|
18
39
|
get client(): {
|
|
19
40
|
folders: {
|
|
20
41
|
createFolder: _orpc_contract.ContractProcedureClient<Record<never, never>, zod.ZodObject<{
|
|
@@ -397,9 +418,6 @@ declare class Swirls {
|
|
|
397
418
|
prompt?: string | undefined;
|
|
398
419
|
temperature?: number | undefined;
|
|
399
420
|
maxTokens?: number | undefined;
|
|
400
|
-
} | {
|
|
401
|
-
type: "decision";
|
|
402
|
-
expression?: string | undefined;
|
|
403
421
|
} | {
|
|
404
422
|
type: "code";
|
|
405
423
|
code?: string | undefined;
|
|
@@ -442,6 +460,10 @@ declare class Swirls {
|
|
|
442
460
|
limit?: number | undefined;
|
|
443
461
|
offset?: number | undefined;
|
|
444
462
|
} | undefined;
|
|
463
|
+
} | {
|
|
464
|
+
type: "switch";
|
|
465
|
+
outputs: string[];
|
|
466
|
+
code?: string | undefined;
|
|
445
467
|
} | {
|
|
446
468
|
type: "wait";
|
|
447
469
|
amount?: number | undefined;
|
|
@@ -457,9 +479,6 @@ declare class Swirls {
|
|
|
457
479
|
prompt?: string | undefined;
|
|
458
480
|
temperature?: number | undefined;
|
|
459
481
|
maxTokens?: number | undefined;
|
|
460
|
-
} | {
|
|
461
|
-
type: "decision";
|
|
462
|
-
expression?: string | undefined;
|
|
463
482
|
} | {
|
|
464
483
|
type: "code";
|
|
465
484
|
code?: string | undefined;
|
|
@@ -502,6 +521,10 @@ declare class Swirls {
|
|
|
502
521
|
limit?: number | undefined;
|
|
503
522
|
offset?: number | undefined;
|
|
504
523
|
} | undefined;
|
|
524
|
+
} | {
|
|
525
|
+
type: "switch";
|
|
526
|
+
outputs: string[];
|
|
527
|
+
code?: string | undefined;
|
|
505
528
|
} | {
|
|
506
529
|
type: "wait";
|
|
507
530
|
amount?: number | undefined;
|
|
@@ -517,9 +540,6 @@ declare class Swirls {
|
|
|
517
540
|
prompt?: string | undefined;
|
|
518
541
|
temperature?: number | undefined;
|
|
519
542
|
maxTokens?: number | undefined;
|
|
520
|
-
} | {
|
|
521
|
-
type: "decision";
|
|
522
|
-
expression?: string | undefined;
|
|
523
543
|
} | {
|
|
524
544
|
type: "code";
|
|
525
545
|
code?: string | undefined;
|
|
@@ -562,6 +582,10 @@ declare class Swirls {
|
|
|
562
582
|
limit?: number | undefined;
|
|
563
583
|
offset?: number | undefined;
|
|
564
584
|
} | undefined;
|
|
585
|
+
} | {
|
|
586
|
+
type: "switch";
|
|
587
|
+
outputs: string[];
|
|
588
|
+
code?: string | undefined;
|
|
565
589
|
} | {
|
|
566
590
|
type: "wait";
|
|
567
591
|
amount?: number | undefined;
|
|
@@ -577,9 +601,6 @@ declare class Swirls {
|
|
|
577
601
|
prompt?: string | undefined;
|
|
578
602
|
temperature?: number | undefined;
|
|
579
603
|
maxTokens?: number | undefined;
|
|
580
|
-
} | {
|
|
581
|
-
type: "decision";
|
|
582
|
-
expression?: string | undefined;
|
|
583
604
|
} | {
|
|
584
605
|
type: "code";
|
|
585
606
|
code?: string | undefined;
|
|
@@ -622,6 +643,10 @@ declare class Swirls {
|
|
|
622
643
|
limit?: number | undefined;
|
|
623
644
|
offset?: number | undefined;
|
|
624
645
|
} | undefined;
|
|
646
|
+
} | {
|
|
647
|
+
type: "switch";
|
|
648
|
+
outputs: string[];
|
|
649
|
+
code?: string | undefined;
|
|
625
650
|
} | {
|
|
626
651
|
type: "wait";
|
|
627
652
|
amount?: number | undefined;
|
|
@@ -640,6 +665,11 @@ declare class Swirls {
|
|
|
640
665
|
approvedOutput?: string | undefined;
|
|
641
666
|
rejectedOutput?: string | undefined;
|
|
642
667
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
668
|
+
actions?: {
|
|
669
|
+
id: string;
|
|
670
|
+
label: string;
|
|
671
|
+
outcome: "approve" | "reject";
|
|
672
|
+
}[] | undefined;
|
|
643
673
|
}, {
|
|
644
674
|
enabled: boolean;
|
|
645
675
|
title?: string | undefined;
|
|
@@ -648,6 +678,11 @@ declare class Swirls {
|
|
|
648
678
|
approvedOutput?: string | undefined;
|
|
649
679
|
rejectedOutput?: string | undefined;
|
|
650
680
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
681
|
+
actions?: {
|
|
682
|
+
id: string;
|
|
683
|
+
label: string;
|
|
684
|
+
outcome: "approve" | "reject";
|
|
685
|
+
}[] | undefined;
|
|
651
686
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
652
687
|
enabled: boolean;
|
|
653
688
|
title?: string | undefined;
|
|
@@ -656,6 +691,11 @@ declare class Swirls {
|
|
|
656
691
|
approvedOutput?: string | undefined;
|
|
657
692
|
rejectedOutput?: string | undefined;
|
|
658
693
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
694
|
+
actions?: {
|
|
695
|
+
id: string;
|
|
696
|
+
label: string;
|
|
697
|
+
outcome: "approve" | "reject";
|
|
698
|
+
}[] | undefined;
|
|
659
699
|
}, {
|
|
660
700
|
enabled: boolean;
|
|
661
701
|
title?: string | undefined;
|
|
@@ -664,6 +704,11 @@ declare class Swirls {
|
|
|
664
704
|
approvedOutput?: string | undefined;
|
|
665
705
|
rejectedOutput?: string | undefined;
|
|
666
706
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
707
|
+
actions?: {
|
|
708
|
+
id: string;
|
|
709
|
+
label: string;
|
|
710
|
+
outcome: "approve" | "reject";
|
|
711
|
+
}[] | undefined;
|
|
667
712
|
}>>>;
|
|
668
713
|
position: zod.ZodNullable<zod.ZodType<{
|
|
669
714
|
x: number;
|
|
@@ -686,7 +731,6 @@ declare class Swirls {
|
|
|
686
731
|
type: zod.ZodEnum<{
|
|
687
732
|
code: "code";
|
|
688
733
|
bucket: "bucket";
|
|
689
|
-
decision: "decision";
|
|
690
734
|
document: "document";
|
|
691
735
|
email: "email";
|
|
692
736
|
graph: "graph";
|
|
@@ -694,6 +738,7 @@ declare class Swirls {
|
|
|
694
738
|
llm: "llm";
|
|
695
739
|
scrape: "scrape";
|
|
696
740
|
stream: "stream";
|
|
741
|
+
switch: "switch";
|
|
697
742
|
wait: "wait";
|
|
698
743
|
}>;
|
|
699
744
|
}, {
|
|
@@ -1187,7 +1232,6 @@ declare class Swirls {
|
|
|
1187
1232
|
type: zod.ZodEnum<{
|
|
1188
1233
|
code: "code";
|
|
1189
1234
|
bucket: "bucket";
|
|
1190
|
-
decision: "decision";
|
|
1191
1235
|
document: "document";
|
|
1192
1236
|
email: "email";
|
|
1193
1237
|
graph: "graph";
|
|
@@ -1195,6 +1239,7 @@ declare class Swirls {
|
|
|
1195
1239
|
llm: "llm";
|
|
1196
1240
|
scrape: "scrape";
|
|
1197
1241
|
stream: "stream";
|
|
1242
|
+
switch: "switch";
|
|
1198
1243
|
wait: "wait";
|
|
1199
1244
|
}>;
|
|
1200
1245
|
config: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
@@ -1206,6 +1251,14 @@ declare class Swirls {
|
|
|
1206
1251
|
approvedOutput: zod.ZodOptional<zod.ZodString>;
|
|
1207
1252
|
rejectedOutput: zod.ZodOptional<zod.ZodString>;
|
|
1208
1253
|
schema: zod.ZodNullable<zod.ZodOptional<zod.ZodType<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema, zod_v4_core.$ZodTypeInternals<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema>>>>;
|
|
1254
|
+
actions: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1255
|
+
id: zod.ZodString;
|
|
1256
|
+
label: zod.ZodString;
|
|
1257
|
+
outcome: zod.ZodEnum<{
|
|
1258
|
+
approve: "approve";
|
|
1259
|
+
reject: "reject";
|
|
1260
|
+
}>;
|
|
1261
|
+
}, zod_v4_core.$strip>>>;
|
|
1209
1262
|
}, zod_v4_core.$strip>>>;
|
|
1210
1263
|
position: zod.ZodOptional<zod.ZodObject<{
|
|
1211
1264
|
x: zod.ZodNumber;
|
|
@@ -1225,9 +1278,6 @@ declare class Swirls {
|
|
|
1225
1278
|
prompt?: string | undefined;
|
|
1226
1279
|
temperature?: number | undefined;
|
|
1227
1280
|
maxTokens?: number | undefined;
|
|
1228
|
-
} | {
|
|
1229
|
-
type: "decision";
|
|
1230
|
-
expression?: string | undefined;
|
|
1231
1281
|
} | {
|
|
1232
1282
|
type: "code";
|
|
1233
1283
|
code?: string | undefined;
|
|
@@ -1270,6 +1320,10 @@ declare class Swirls {
|
|
|
1270
1320
|
limit?: number | undefined;
|
|
1271
1321
|
offset?: number | undefined;
|
|
1272
1322
|
} | undefined;
|
|
1323
|
+
} | {
|
|
1324
|
+
type: "switch";
|
|
1325
|
+
outputs: string[];
|
|
1326
|
+
code?: string | undefined;
|
|
1273
1327
|
} | {
|
|
1274
1328
|
type: "wait";
|
|
1275
1329
|
amount?: number | undefined;
|
|
@@ -1285,9 +1339,6 @@ declare class Swirls {
|
|
|
1285
1339
|
prompt?: string | undefined;
|
|
1286
1340
|
temperature?: number | undefined;
|
|
1287
1341
|
maxTokens?: number | undefined;
|
|
1288
|
-
} | {
|
|
1289
|
-
type: "decision";
|
|
1290
|
-
expression?: string | undefined;
|
|
1291
1342
|
} | {
|
|
1292
1343
|
type: "code";
|
|
1293
1344
|
code?: string | undefined;
|
|
@@ -1330,6 +1381,10 @@ declare class Swirls {
|
|
|
1330
1381
|
limit?: number | undefined;
|
|
1331
1382
|
offset?: number | undefined;
|
|
1332
1383
|
} | undefined;
|
|
1384
|
+
} | {
|
|
1385
|
+
type: "switch";
|
|
1386
|
+
outputs: string[];
|
|
1387
|
+
code?: string | undefined;
|
|
1333
1388
|
} | {
|
|
1334
1389
|
type: "wait";
|
|
1335
1390
|
amount?: number | undefined;
|
|
@@ -1345,9 +1400,6 @@ declare class Swirls {
|
|
|
1345
1400
|
prompt?: string | undefined;
|
|
1346
1401
|
temperature?: number | undefined;
|
|
1347
1402
|
maxTokens?: number | undefined;
|
|
1348
|
-
} | {
|
|
1349
|
-
type: "decision";
|
|
1350
|
-
expression?: string | undefined;
|
|
1351
1403
|
} | {
|
|
1352
1404
|
type: "code";
|
|
1353
1405
|
code?: string | undefined;
|
|
@@ -1390,6 +1442,10 @@ declare class Swirls {
|
|
|
1390
1442
|
limit?: number | undefined;
|
|
1391
1443
|
offset?: number | undefined;
|
|
1392
1444
|
} | undefined;
|
|
1445
|
+
} | {
|
|
1446
|
+
type: "switch";
|
|
1447
|
+
outputs: string[];
|
|
1448
|
+
code?: string | undefined;
|
|
1393
1449
|
} | {
|
|
1394
1450
|
type: "wait";
|
|
1395
1451
|
amount?: number | undefined;
|
|
@@ -1405,9 +1461,6 @@ declare class Swirls {
|
|
|
1405
1461
|
prompt?: string | undefined;
|
|
1406
1462
|
temperature?: number | undefined;
|
|
1407
1463
|
maxTokens?: number | undefined;
|
|
1408
|
-
} | {
|
|
1409
|
-
type: "decision";
|
|
1410
|
-
expression?: string | undefined;
|
|
1411
1464
|
} | {
|
|
1412
1465
|
type: "code";
|
|
1413
1466
|
code?: string | undefined;
|
|
@@ -1450,6 +1503,10 @@ declare class Swirls {
|
|
|
1450
1503
|
limit?: number | undefined;
|
|
1451
1504
|
offset?: number | undefined;
|
|
1452
1505
|
} | undefined;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: "switch";
|
|
1508
|
+
outputs: string[];
|
|
1509
|
+
code?: string | undefined;
|
|
1453
1510
|
} | {
|
|
1454
1511
|
type: "wait";
|
|
1455
1512
|
amount?: number | undefined;
|
|
@@ -1468,6 +1525,11 @@ declare class Swirls {
|
|
|
1468
1525
|
approvedOutput?: string | undefined;
|
|
1469
1526
|
rejectedOutput?: string | undefined;
|
|
1470
1527
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1528
|
+
actions?: {
|
|
1529
|
+
id: string;
|
|
1530
|
+
label: string;
|
|
1531
|
+
outcome: "approve" | "reject";
|
|
1532
|
+
}[] | undefined;
|
|
1471
1533
|
}, {
|
|
1472
1534
|
enabled: boolean;
|
|
1473
1535
|
title?: string | undefined;
|
|
@@ -1476,6 +1538,11 @@ declare class Swirls {
|
|
|
1476
1538
|
approvedOutput?: string | undefined;
|
|
1477
1539
|
rejectedOutput?: string | undefined;
|
|
1478
1540
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1541
|
+
actions?: {
|
|
1542
|
+
id: string;
|
|
1543
|
+
label: string;
|
|
1544
|
+
outcome: "approve" | "reject";
|
|
1545
|
+
}[] | undefined;
|
|
1479
1546
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
1480
1547
|
enabled: boolean;
|
|
1481
1548
|
title?: string | undefined;
|
|
@@ -1484,6 +1551,11 @@ declare class Swirls {
|
|
|
1484
1551
|
approvedOutput?: string | undefined;
|
|
1485
1552
|
rejectedOutput?: string | undefined;
|
|
1486
1553
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1554
|
+
actions?: {
|
|
1555
|
+
id: string;
|
|
1556
|
+
label: string;
|
|
1557
|
+
outcome: "approve" | "reject";
|
|
1558
|
+
}[] | undefined;
|
|
1487
1559
|
}, {
|
|
1488
1560
|
enabled: boolean;
|
|
1489
1561
|
title?: string | undefined;
|
|
@@ -1492,6 +1564,11 @@ declare class Swirls {
|
|
|
1492
1564
|
approvedOutput?: string | undefined;
|
|
1493
1565
|
rejectedOutput?: string | undefined;
|
|
1494
1566
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1567
|
+
actions?: {
|
|
1568
|
+
id: string;
|
|
1569
|
+
label: string;
|
|
1570
|
+
outcome: "approve" | "reject";
|
|
1571
|
+
}[] | undefined;
|
|
1495
1572
|
}>>>;
|
|
1496
1573
|
position: zod.ZodNullable<zod.ZodType<{
|
|
1497
1574
|
x: number;
|
|
@@ -1514,7 +1591,6 @@ declare class Swirls {
|
|
|
1514
1591
|
type: zod.ZodEnum<{
|
|
1515
1592
|
code: "code";
|
|
1516
1593
|
bucket: "bucket";
|
|
1517
|
-
decision: "decision";
|
|
1518
1594
|
document: "document";
|
|
1519
1595
|
email: "email";
|
|
1520
1596
|
graph: "graph";
|
|
@@ -1522,6 +1598,7 @@ declare class Swirls {
|
|
|
1522
1598
|
llm: "llm";
|
|
1523
1599
|
scrape: "scrape";
|
|
1524
1600
|
stream: "stream";
|
|
1601
|
+
switch: "switch";
|
|
1525
1602
|
wait: "wait";
|
|
1526
1603
|
}>;
|
|
1527
1604
|
}, {
|
|
@@ -1533,7 +1610,6 @@ declare class Swirls {
|
|
|
1533
1610
|
type: zod.ZodOptional<zod.ZodEnum<{
|
|
1534
1611
|
code: "code";
|
|
1535
1612
|
bucket: "bucket";
|
|
1536
|
-
decision: "decision";
|
|
1537
1613
|
document: "document";
|
|
1538
1614
|
email: "email";
|
|
1539
1615
|
graph: "graph";
|
|
@@ -1541,6 +1617,7 @@ declare class Swirls {
|
|
|
1541
1617
|
llm: "llm";
|
|
1542
1618
|
scrape: "scrape";
|
|
1543
1619
|
stream: "stream";
|
|
1620
|
+
switch: "switch";
|
|
1544
1621
|
wait: "wait";
|
|
1545
1622
|
}>>;
|
|
1546
1623
|
name: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1555,6 +1632,14 @@ declare class Swirls {
|
|
|
1555
1632
|
approvedOutput: zod.ZodOptional<zod.ZodString>;
|
|
1556
1633
|
rejectedOutput: zod.ZodOptional<zod.ZodString>;
|
|
1557
1634
|
schema: zod.ZodNullable<zod.ZodOptional<zod.ZodType<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema, zod_v4_core.$ZodTypeInternals<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema>>>>;
|
|
1635
|
+
actions: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1636
|
+
id: zod.ZodString;
|
|
1637
|
+
label: zod.ZodString;
|
|
1638
|
+
outcome: zod.ZodEnum<{
|
|
1639
|
+
approve: "approve";
|
|
1640
|
+
reject: "reject";
|
|
1641
|
+
}>;
|
|
1642
|
+
}, zod_v4_core.$strip>>>;
|
|
1558
1643
|
}, zod_v4_core.$strip>>>;
|
|
1559
1644
|
position: zod.ZodOptional<zod.ZodObject<{
|
|
1560
1645
|
x: zod.ZodNumber;
|
|
@@ -1574,9 +1659,6 @@ declare class Swirls {
|
|
|
1574
1659
|
prompt?: string | undefined;
|
|
1575
1660
|
temperature?: number | undefined;
|
|
1576
1661
|
maxTokens?: number | undefined;
|
|
1577
|
-
} | {
|
|
1578
|
-
type: "decision";
|
|
1579
|
-
expression?: string | undefined;
|
|
1580
1662
|
} | {
|
|
1581
1663
|
type: "code";
|
|
1582
1664
|
code?: string | undefined;
|
|
@@ -1619,6 +1701,10 @@ declare class Swirls {
|
|
|
1619
1701
|
limit?: number | undefined;
|
|
1620
1702
|
offset?: number | undefined;
|
|
1621
1703
|
} | undefined;
|
|
1704
|
+
} | {
|
|
1705
|
+
type: "switch";
|
|
1706
|
+
outputs: string[];
|
|
1707
|
+
code?: string | undefined;
|
|
1622
1708
|
} | {
|
|
1623
1709
|
type: "wait";
|
|
1624
1710
|
amount?: number | undefined;
|
|
@@ -1634,9 +1720,6 @@ declare class Swirls {
|
|
|
1634
1720
|
prompt?: string | undefined;
|
|
1635
1721
|
temperature?: number | undefined;
|
|
1636
1722
|
maxTokens?: number | undefined;
|
|
1637
|
-
} | {
|
|
1638
|
-
type: "decision";
|
|
1639
|
-
expression?: string | undefined;
|
|
1640
1723
|
} | {
|
|
1641
1724
|
type: "code";
|
|
1642
1725
|
code?: string | undefined;
|
|
@@ -1679,6 +1762,10 @@ declare class Swirls {
|
|
|
1679
1762
|
limit?: number | undefined;
|
|
1680
1763
|
offset?: number | undefined;
|
|
1681
1764
|
} | undefined;
|
|
1765
|
+
} | {
|
|
1766
|
+
type: "switch";
|
|
1767
|
+
outputs: string[];
|
|
1768
|
+
code?: string | undefined;
|
|
1682
1769
|
} | {
|
|
1683
1770
|
type: "wait";
|
|
1684
1771
|
amount?: number | undefined;
|
|
@@ -1694,9 +1781,6 @@ declare class Swirls {
|
|
|
1694
1781
|
prompt?: string | undefined;
|
|
1695
1782
|
temperature?: number | undefined;
|
|
1696
1783
|
maxTokens?: number | undefined;
|
|
1697
|
-
} | {
|
|
1698
|
-
type: "decision";
|
|
1699
|
-
expression?: string | undefined;
|
|
1700
1784
|
} | {
|
|
1701
1785
|
type: "code";
|
|
1702
1786
|
code?: string | undefined;
|
|
@@ -1739,6 +1823,10 @@ declare class Swirls {
|
|
|
1739
1823
|
limit?: number | undefined;
|
|
1740
1824
|
offset?: number | undefined;
|
|
1741
1825
|
} | undefined;
|
|
1826
|
+
} | {
|
|
1827
|
+
type: "switch";
|
|
1828
|
+
outputs: string[];
|
|
1829
|
+
code?: string | undefined;
|
|
1742
1830
|
} | {
|
|
1743
1831
|
type: "wait";
|
|
1744
1832
|
amount?: number | undefined;
|
|
@@ -1754,9 +1842,6 @@ declare class Swirls {
|
|
|
1754
1842
|
prompt?: string | undefined;
|
|
1755
1843
|
temperature?: number | undefined;
|
|
1756
1844
|
maxTokens?: number | undefined;
|
|
1757
|
-
} | {
|
|
1758
|
-
type: "decision";
|
|
1759
|
-
expression?: string | undefined;
|
|
1760
1845
|
} | {
|
|
1761
1846
|
type: "code";
|
|
1762
1847
|
code?: string | undefined;
|
|
@@ -1799,6 +1884,10 @@ declare class Swirls {
|
|
|
1799
1884
|
limit?: number | undefined;
|
|
1800
1885
|
offset?: number | undefined;
|
|
1801
1886
|
} | undefined;
|
|
1887
|
+
} | {
|
|
1888
|
+
type: "switch";
|
|
1889
|
+
outputs: string[];
|
|
1890
|
+
code?: string | undefined;
|
|
1802
1891
|
} | {
|
|
1803
1892
|
type: "wait";
|
|
1804
1893
|
amount?: number | undefined;
|
|
@@ -1817,6 +1906,11 @@ declare class Swirls {
|
|
|
1817
1906
|
approvedOutput?: string | undefined;
|
|
1818
1907
|
rejectedOutput?: string | undefined;
|
|
1819
1908
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1909
|
+
actions?: {
|
|
1910
|
+
id: string;
|
|
1911
|
+
label: string;
|
|
1912
|
+
outcome: "approve" | "reject";
|
|
1913
|
+
}[] | undefined;
|
|
1820
1914
|
}, {
|
|
1821
1915
|
enabled: boolean;
|
|
1822
1916
|
title?: string | undefined;
|
|
@@ -1825,6 +1919,11 @@ declare class Swirls {
|
|
|
1825
1919
|
approvedOutput?: string | undefined;
|
|
1826
1920
|
rejectedOutput?: string | undefined;
|
|
1827
1921
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1922
|
+
actions?: {
|
|
1923
|
+
id: string;
|
|
1924
|
+
label: string;
|
|
1925
|
+
outcome: "approve" | "reject";
|
|
1926
|
+
}[] | undefined;
|
|
1828
1927
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
1829
1928
|
enabled: boolean;
|
|
1830
1929
|
title?: string | undefined;
|
|
@@ -1833,6 +1932,11 @@ declare class Swirls {
|
|
|
1833
1932
|
approvedOutput?: string | undefined;
|
|
1834
1933
|
rejectedOutput?: string | undefined;
|
|
1835
1934
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1935
|
+
actions?: {
|
|
1936
|
+
id: string;
|
|
1937
|
+
label: string;
|
|
1938
|
+
outcome: "approve" | "reject";
|
|
1939
|
+
}[] | undefined;
|
|
1836
1940
|
}, {
|
|
1837
1941
|
enabled: boolean;
|
|
1838
1942
|
title?: string | undefined;
|
|
@@ -1841,6 +1945,11 @@ declare class Swirls {
|
|
|
1841
1945
|
approvedOutput?: string | undefined;
|
|
1842
1946
|
rejectedOutput?: string | undefined;
|
|
1843
1947
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
1948
|
+
actions?: {
|
|
1949
|
+
id: string;
|
|
1950
|
+
label: string;
|
|
1951
|
+
outcome: "approve" | "reject";
|
|
1952
|
+
}[] | undefined;
|
|
1844
1953
|
}>>>;
|
|
1845
1954
|
position: zod.ZodNullable<zod.ZodType<{
|
|
1846
1955
|
x: number;
|
|
@@ -1863,7 +1972,6 @@ declare class Swirls {
|
|
|
1863
1972
|
type: zod.ZodEnum<{
|
|
1864
1973
|
code: "code";
|
|
1865
1974
|
bucket: "bucket";
|
|
1866
|
-
decision: "decision";
|
|
1867
1975
|
document: "document";
|
|
1868
1976
|
email: "email";
|
|
1869
1977
|
graph: "graph";
|
|
@@ -1871,6 +1979,7 @@ declare class Swirls {
|
|
|
1871
1979
|
llm: "llm";
|
|
1872
1980
|
scrape: "scrape";
|
|
1873
1981
|
stream: "stream";
|
|
1982
|
+
switch: "switch";
|
|
1874
1983
|
wait: "wait";
|
|
1875
1984
|
}>;
|
|
1876
1985
|
}, {
|
|
@@ -2037,7 +2146,6 @@ declare class Swirls {
|
|
|
2037
2146
|
type: zod.ZodEnum<{
|
|
2038
2147
|
code: "code";
|
|
2039
2148
|
bucket: "bucket";
|
|
2040
|
-
decision: "decision";
|
|
2041
2149
|
document: "document";
|
|
2042
2150
|
email: "email";
|
|
2043
2151
|
graph: "graph";
|
|
@@ -2045,6 +2153,7 @@ declare class Swirls {
|
|
|
2045
2153
|
llm: "llm";
|
|
2046
2154
|
scrape: "scrape";
|
|
2047
2155
|
stream: "stream";
|
|
2156
|
+
switch: "switch";
|
|
2048
2157
|
wait: "wait";
|
|
2049
2158
|
}>;
|
|
2050
2159
|
config: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
@@ -2056,6 +2165,14 @@ declare class Swirls {
|
|
|
2056
2165
|
approvedOutput: zod.ZodOptional<zod.ZodString>;
|
|
2057
2166
|
rejectedOutput: zod.ZodOptional<zod.ZodString>;
|
|
2058
2167
|
schema: zod.ZodNullable<zod.ZodOptional<zod.ZodType<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema, zod_v4_core.$ZodTypeInternals<_swirls_core_schemas.JsonSchema, _swirls_core_schemas.JsonSchema>>>>;
|
|
2168
|
+
actions: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2169
|
+
id: zod.ZodString;
|
|
2170
|
+
label: zod.ZodString;
|
|
2171
|
+
outcome: zod.ZodEnum<{
|
|
2172
|
+
approve: "approve";
|
|
2173
|
+
reject: "reject";
|
|
2174
|
+
}>;
|
|
2175
|
+
}, zod_v4_core.$strip>>>;
|
|
2059
2176
|
}, zod_v4_core.$strip>>>;
|
|
2060
2177
|
position: zod.ZodOptional<zod.ZodObject<{
|
|
2061
2178
|
x: zod.ZodNumber;
|
|
@@ -2092,9 +2209,6 @@ declare class Swirls {
|
|
|
2092
2209
|
prompt?: string | undefined;
|
|
2093
2210
|
temperature?: number | undefined;
|
|
2094
2211
|
maxTokens?: number | undefined;
|
|
2095
|
-
} | {
|
|
2096
|
-
type: "decision";
|
|
2097
|
-
expression?: string | undefined;
|
|
2098
2212
|
} | {
|
|
2099
2213
|
type: "code";
|
|
2100
2214
|
code?: string | undefined;
|
|
@@ -2137,6 +2251,10 @@ declare class Swirls {
|
|
|
2137
2251
|
limit?: number | undefined;
|
|
2138
2252
|
offset?: number | undefined;
|
|
2139
2253
|
} | undefined;
|
|
2254
|
+
} | {
|
|
2255
|
+
type: "switch";
|
|
2256
|
+
outputs: string[];
|
|
2257
|
+
code?: string | undefined;
|
|
2140
2258
|
} | {
|
|
2141
2259
|
type: "wait";
|
|
2142
2260
|
amount?: number | undefined;
|
|
@@ -2152,9 +2270,6 @@ declare class Swirls {
|
|
|
2152
2270
|
prompt?: string | undefined;
|
|
2153
2271
|
temperature?: number | undefined;
|
|
2154
2272
|
maxTokens?: number | undefined;
|
|
2155
|
-
} | {
|
|
2156
|
-
type: "decision";
|
|
2157
|
-
expression?: string | undefined;
|
|
2158
2273
|
} | {
|
|
2159
2274
|
type: "code";
|
|
2160
2275
|
code?: string | undefined;
|
|
@@ -2197,6 +2312,10 @@ declare class Swirls {
|
|
|
2197
2312
|
limit?: number | undefined;
|
|
2198
2313
|
offset?: number | undefined;
|
|
2199
2314
|
} | undefined;
|
|
2315
|
+
} | {
|
|
2316
|
+
type: "switch";
|
|
2317
|
+
outputs: string[];
|
|
2318
|
+
code?: string | undefined;
|
|
2200
2319
|
} | {
|
|
2201
2320
|
type: "wait";
|
|
2202
2321
|
amount?: number | undefined;
|
|
@@ -2212,9 +2331,6 @@ declare class Swirls {
|
|
|
2212
2331
|
prompt?: string | undefined;
|
|
2213
2332
|
temperature?: number | undefined;
|
|
2214
2333
|
maxTokens?: number | undefined;
|
|
2215
|
-
} | {
|
|
2216
|
-
type: "decision";
|
|
2217
|
-
expression?: string | undefined;
|
|
2218
2334
|
} | {
|
|
2219
2335
|
type: "code";
|
|
2220
2336
|
code?: string | undefined;
|
|
@@ -2257,6 +2373,10 @@ declare class Swirls {
|
|
|
2257
2373
|
limit?: number | undefined;
|
|
2258
2374
|
offset?: number | undefined;
|
|
2259
2375
|
} | undefined;
|
|
2376
|
+
} | {
|
|
2377
|
+
type: "switch";
|
|
2378
|
+
outputs: string[];
|
|
2379
|
+
code?: string | undefined;
|
|
2260
2380
|
} | {
|
|
2261
2381
|
type: "wait";
|
|
2262
2382
|
amount?: number | undefined;
|
|
@@ -2272,9 +2392,6 @@ declare class Swirls {
|
|
|
2272
2392
|
prompt?: string | undefined;
|
|
2273
2393
|
temperature?: number | undefined;
|
|
2274
2394
|
maxTokens?: number | undefined;
|
|
2275
|
-
} | {
|
|
2276
|
-
type: "decision";
|
|
2277
|
-
expression?: string | undefined;
|
|
2278
2395
|
} | {
|
|
2279
2396
|
type: "code";
|
|
2280
2397
|
code?: string | undefined;
|
|
@@ -2317,6 +2434,10 @@ declare class Swirls {
|
|
|
2317
2434
|
limit?: number | undefined;
|
|
2318
2435
|
offset?: number | undefined;
|
|
2319
2436
|
} | undefined;
|
|
2437
|
+
} | {
|
|
2438
|
+
type: "switch";
|
|
2439
|
+
outputs: string[];
|
|
2440
|
+
code?: string | undefined;
|
|
2320
2441
|
} | {
|
|
2321
2442
|
type: "wait";
|
|
2322
2443
|
amount?: number | undefined;
|
|
@@ -2335,6 +2456,11 @@ declare class Swirls {
|
|
|
2335
2456
|
approvedOutput?: string | undefined;
|
|
2336
2457
|
rejectedOutput?: string | undefined;
|
|
2337
2458
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
2459
|
+
actions?: {
|
|
2460
|
+
id: string;
|
|
2461
|
+
label: string;
|
|
2462
|
+
outcome: "approve" | "reject";
|
|
2463
|
+
}[] | undefined;
|
|
2338
2464
|
}, {
|
|
2339
2465
|
enabled: boolean;
|
|
2340
2466
|
title?: string | undefined;
|
|
@@ -2343,6 +2469,11 @@ declare class Swirls {
|
|
|
2343
2469
|
approvedOutput?: string | undefined;
|
|
2344
2470
|
rejectedOutput?: string | undefined;
|
|
2345
2471
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
2472
|
+
actions?: {
|
|
2473
|
+
id: string;
|
|
2474
|
+
label: string;
|
|
2475
|
+
outcome: "approve" | "reject";
|
|
2476
|
+
}[] | undefined;
|
|
2346
2477
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
2347
2478
|
enabled: boolean;
|
|
2348
2479
|
title?: string | undefined;
|
|
@@ -2351,6 +2482,11 @@ declare class Swirls {
|
|
|
2351
2482
|
approvedOutput?: string | undefined;
|
|
2352
2483
|
rejectedOutput?: string | undefined;
|
|
2353
2484
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
2485
|
+
actions?: {
|
|
2486
|
+
id: string;
|
|
2487
|
+
label: string;
|
|
2488
|
+
outcome: "approve" | "reject";
|
|
2489
|
+
}[] | undefined;
|
|
2354
2490
|
}, {
|
|
2355
2491
|
enabled: boolean;
|
|
2356
2492
|
title?: string | undefined;
|
|
@@ -2359,6 +2495,11 @@ declare class Swirls {
|
|
|
2359
2495
|
approvedOutput?: string | undefined;
|
|
2360
2496
|
rejectedOutput?: string | undefined;
|
|
2361
2497
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
2498
|
+
actions?: {
|
|
2499
|
+
id: string;
|
|
2500
|
+
label: string;
|
|
2501
|
+
outcome: "approve" | "reject";
|
|
2502
|
+
}[] | undefined;
|
|
2362
2503
|
}>>>;
|
|
2363
2504
|
position: zod.ZodNullable<zod.ZodType<{
|
|
2364
2505
|
x: number;
|
|
@@ -2381,7 +2522,6 @@ declare class Swirls {
|
|
|
2381
2522
|
type: zod.ZodEnum<{
|
|
2382
2523
|
code: "code";
|
|
2383
2524
|
bucket: "bucket";
|
|
2384
|
-
decision: "decision";
|
|
2385
2525
|
document: "document";
|
|
2386
2526
|
email: "email";
|
|
2387
2527
|
graph: "graph";
|
|
@@ -2389,6 +2529,7 @@ declare class Swirls {
|
|
|
2389
2529
|
llm: "llm";
|
|
2390
2530
|
scrape: "scrape";
|
|
2391
2531
|
stream: "stream";
|
|
2532
|
+
switch: "switch";
|
|
2392
2533
|
wait: "wait";
|
|
2393
2534
|
}>;
|
|
2394
2535
|
}, {
|
|
@@ -3258,12 +3399,6 @@ declare class Swirls {
|
|
|
3258
3399
|
out: {};
|
|
3259
3400
|
in: {};
|
|
3260
3401
|
}>>, Record<never, never>>;
|
|
3261
|
-
executeNode: _orpc_contract.ContractProcedureClient<Record<never, never>, zod.ZodObject<{
|
|
3262
|
-
nodeId: zod.ZodString;
|
|
3263
|
-
input: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
3264
|
-
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3265
|
-
executionId: zod.ZodString;
|
|
3266
|
-
}, zod_v4_core.$strip>, Record<never, never>>;
|
|
3267
3402
|
};
|
|
3268
3403
|
triggers: {
|
|
3269
3404
|
createTrigger: _orpc_contract.ContractProcedureClient<Record<never, never>, zod.ZodObject<{
|
|
@@ -9509,9 +9644,6 @@ declare class Swirls {
|
|
|
9509
9644
|
prompt?: string | undefined;
|
|
9510
9645
|
temperature?: number | undefined;
|
|
9511
9646
|
maxTokens?: number | undefined;
|
|
9512
|
-
} | {
|
|
9513
|
-
type: "decision";
|
|
9514
|
-
expression?: string | undefined;
|
|
9515
9647
|
} | {
|
|
9516
9648
|
type: "code";
|
|
9517
9649
|
code?: string | undefined;
|
|
@@ -9554,6 +9686,10 @@ declare class Swirls {
|
|
|
9554
9686
|
limit?: number | undefined;
|
|
9555
9687
|
offset?: number | undefined;
|
|
9556
9688
|
} | undefined;
|
|
9689
|
+
} | {
|
|
9690
|
+
type: "switch";
|
|
9691
|
+
outputs: string[];
|
|
9692
|
+
code?: string | undefined;
|
|
9557
9693
|
} | {
|
|
9558
9694
|
type: "wait";
|
|
9559
9695
|
amount?: number | undefined;
|
|
@@ -9569,9 +9705,6 @@ declare class Swirls {
|
|
|
9569
9705
|
prompt?: string | undefined;
|
|
9570
9706
|
temperature?: number | undefined;
|
|
9571
9707
|
maxTokens?: number | undefined;
|
|
9572
|
-
} | {
|
|
9573
|
-
type: "decision";
|
|
9574
|
-
expression?: string | undefined;
|
|
9575
9708
|
} | {
|
|
9576
9709
|
type: "code";
|
|
9577
9710
|
code?: string | undefined;
|
|
@@ -9614,6 +9747,10 @@ declare class Swirls {
|
|
|
9614
9747
|
limit?: number | undefined;
|
|
9615
9748
|
offset?: number | undefined;
|
|
9616
9749
|
} | undefined;
|
|
9750
|
+
} | {
|
|
9751
|
+
type: "switch";
|
|
9752
|
+
outputs: string[];
|
|
9753
|
+
code?: string | undefined;
|
|
9617
9754
|
} | {
|
|
9618
9755
|
type: "wait";
|
|
9619
9756
|
amount?: number | undefined;
|
|
@@ -9629,9 +9766,6 @@ declare class Swirls {
|
|
|
9629
9766
|
prompt?: string | undefined;
|
|
9630
9767
|
temperature?: number | undefined;
|
|
9631
9768
|
maxTokens?: number | undefined;
|
|
9632
|
-
} | {
|
|
9633
|
-
type: "decision";
|
|
9634
|
-
expression?: string | undefined;
|
|
9635
9769
|
} | {
|
|
9636
9770
|
type: "code";
|
|
9637
9771
|
code?: string | undefined;
|
|
@@ -9674,6 +9808,10 @@ declare class Swirls {
|
|
|
9674
9808
|
limit?: number | undefined;
|
|
9675
9809
|
offset?: number | undefined;
|
|
9676
9810
|
} | undefined;
|
|
9811
|
+
} | {
|
|
9812
|
+
type: "switch";
|
|
9813
|
+
outputs: string[];
|
|
9814
|
+
code?: string | undefined;
|
|
9677
9815
|
} | {
|
|
9678
9816
|
type: "wait";
|
|
9679
9817
|
amount?: number | undefined;
|
|
@@ -9689,9 +9827,6 @@ declare class Swirls {
|
|
|
9689
9827
|
prompt?: string | undefined;
|
|
9690
9828
|
temperature?: number | undefined;
|
|
9691
9829
|
maxTokens?: number | undefined;
|
|
9692
|
-
} | {
|
|
9693
|
-
type: "decision";
|
|
9694
|
-
expression?: string | undefined;
|
|
9695
9830
|
} | {
|
|
9696
9831
|
type: "code";
|
|
9697
9832
|
code?: string | undefined;
|
|
@@ -9734,6 +9869,10 @@ declare class Swirls {
|
|
|
9734
9869
|
limit?: number | undefined;
|
|
9735
9870
|
offset?: number | undefined;
|
|
9736
9871
|
} | undefined;
|
|
9872
|
+
} | {
|
|
9873
|
+
type: "switch";
|
|
9874
|
+
outputs: string[];
|
|
9875
|
+
code?: string | undefined;
|
|
9737
9876
|
} | {
|
|
9738
9877
|
type: "wait";
|
|
9739
9878
|
amount?: number | undefined;
|
|
@@ -9752,6 +9891,11 @@ declare class Swirls {
|
|
|
9752
9891
|
approvedOutput?: string | undefined;
|
|
9753
9892
|
rejectedOutput?: string | undefined;
|
|
9754
9893
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
9894
|
+
actions?: {
|
|
9895
|
+
id: string;
|
|
9896
|
+
label: string;
|
|
9897
|
+
outcome: "approve" | "reject";
|
|
9898
|
+
}[] | undefined;
|
|
9755
9899
|
}, {
|
|
9756
9900
|
enabled: boolean;
|
|
9757
9901
|
title?: string | undefined;
|
|
@@ -9760,6 +9904,11 @@ declare class Swirls {
|
|
|
9760
9904
|
approvedOutput?: string | undefined;
|
|
9761
9905
|
rejectedOutput?: string | undefined;
|
|
9762
9906
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
9907
|
+
actions?: {
|
|
9908
|
+
id: string;
|
|
9909
|
+
label: string;
|
|
9910
|
+
outcome: "approve" | "reject";
|
|
9911
|
+
}[] | undefined;
|
|
9763
9912
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
9764
9913
|
enabled: boolean;
|
|
9765
9914
|
title?: string | undefined;
|
|
@@ -9768,6 +9917,11 @@ declare class Swirls {
|
|
|
9768
9917
|
approvedOutput?: string | undefined;
|
|
9769
9918
|
rejectedOutput?: string | undefined;
|
|
9770
9919
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
9920
|
+
actions?: {
|
|
9921
|
+
id: string;
|
|
9922
|
+
label: string;
|
|
9923
|
+
outcome: "approve" | "reject";
|
|
9924
|
+
}[] | undefined;
|
|
9771
9925
|
}, {
|
|
9772
9926
|
enabled: boolean;
|
|
9773
9927
|
title?: string | undefined;
|
|
@@ -9776,6 +9930,11 @@ declare class Swirls {
|
|
|
9776
9930
|
approvedOutput?: string | undefined;
|
|
9777
9931
|
rejectedOutput?: string | undefined;
|
|
9778
9932
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
9933
|
+
actions?: {
|
|
9934
|
+
id: string;
|
|
9935
|
+
label: string;
|
|
9936
|
+
outcome: "approve" | "reject";
|
|
9937
|
+
}[] | undefined;
|
|
9779
9938
|
}>>>;
|
|
9780
9939
|
position: zod.ZodNullable<zod.ZodType<{
|
|
9781
9940
|
x: number;
|
|
@@ -9798,7 +9957,6 @@ declare class Swirls {
|
|
|
9798
9957
|
type: zod.ZodEnum<{
|
|
9799
9958
|
code: "code";
|
|
9800
9959
|
bucket: "bucket";
|
|
9801
|
-
decision: "decision";
|
|
9802
9960
|
document: "document";
|
|
9803
9961
|
email: "email";
|
|
9804
9962
|
graph: "graph";
|
|
@@ -9806,6 +9964,7 @@ declare class Swirls {
|
|
|
9806
9964
|
llm: "llm";
|
|
9807
9965
|
scrape: "scrape";
|
|
9808
9966
|
stream: "stream";
|
|
9967
|
+
switch: "switch";
|
|
9809
9968
|
wait: "wait";
|
|
9810
9969
|
}>;
|
|
9811
9970
|
}, {
|
|
@@ -10313,9 +10472,6 @@ declare class Swirls {
|
|
|
10313
10472
|
prompt?: string | undefined;
|
|
10314
10473
|
temperature?: number | undefined;
|
|
10315
10474
|
maxTokens?: number | undefined;
|
|
10316
|
-
} | {
|
|
10317
|
-
type: "decision";
|
|
10318
|
-
expression?: string | undefined;
|
|
10319
10475
|
} | {
|
|
10320
10476
|
type: "code";
|
|
10321
10477
|
code?: string | undefined;
|
|
@@ -10358,6 +10514,10 @@ declare class Swirls {
|
|
|
10358
10514
|
limit?: number | undefined;
|
|
10359
10515
|
offset?: number | undefined;
|
|
10360
10516
|
} | undefined;
|
|
10517
|
+
} | {
|
|
10518
|
+
type: "switch";
|
|
10519
|
+
outputs: string[];
|
|
10520
|
+
code?: string | undefined;
|
|
10361
10521
|
} | {
|
|
10362
10522
|
type: "wait";
|
|
10363
10523
|
amount?: number | undefined;
|
|
@@ -10373,9 +10533,6 @@ declare class Swirls {
|
|
|
10373
10533
|
prompt?: string | undefined;
|
|
10374
10534
|
temperature?: number | undefined;
|
|
10375
10535
|
maxTokens?: number | undefined;
|
|
10376
|
-
} | {
|
|
10377
|
-
type: "decision";
|
|
10378
|
-
expression?: string | undefined;
|
|
10379
10536
|
} | {
|
|
10380
10537
|
type: "code";
|
|
10381
10538
|
code?: string | undefined;
|
|
@@ -10418,6 +10575,10 @@ declare class Swirls {
|
|
|
10418
10575
|
limit?: number | undefined;
|
|
10419
10576
|
offset?: number | undefined;
|
|
10420
10577
|
} | undefined;
|
|
10578
|
+
} | {
|
|
10579
|
+
type: "switch";
|
|
10580
|
+
outputs: string[];
|
|
10581
|
+
code?: string | undefined;
|
|
10421
10582
|
} | {
|
|
10422
10583
|
type: "wait";
|
|
10423
10584
|
amount?: number | undefined;
|
|
@@ -10433,9 +10594,6 @@ declare class Swirls {
|
|
|
10433
10594
|
prompt?: string | undefined;
|
|
10434
10595
|
temperature?: number | undefined;
|
|
10435
10596
|
maxTokens?: number | undefined;
|
|
10436
|
-
} | {
|
|
10437
|
-
type: "decision";
|
|
10438
|
-
expression?: string | undefined;
|
|
10439
10597
|
} | {
|
|
10440
10598
|
type: "code";
|
|
10441
10599
|
code?: string | undefined;
|
|
@@ -10478,6 +10636,10 @@ declare class Swirls {
|
|
|
10478
10636
|
limit?: number | undefined;
|
|
10479
10637
|
offset?: number | undefined;
|
|
10480
10638
|
} | undefined;
|
|
10639
|
+
} | {
|
|
10640
|
+
type: "switch";
|
|
10641
|
+
outputs: string[];
|
|
10642
|
+
code?: string | undefined;
|
|
10481
10643
|
} | {
|
|
10482
10644
|
type: "wait";
|
|
10483
10645
|
amount?: number | undefined;
|
|
@@ -10493,9 +10655,6 @@ declare class Swirls {
|
|
|
10493
10655
|
prompt?: string | undefined;
|
|
10494
10656
|
temperature?: number | undefined;
|
|
10495
10657
|
maxTokens?: number | undefined;
|
|
10496
|
-
} | {
|
|
10497
|
-
type: "decision";
|
|
10498
|
-
expression?: string | undefined;
|
|
10499
10658
|
} | {
|
|
10500
10659
|
type: "code";
|
|
10501
10660
|
code?: string | undefined;
|
|
@@ -10538,6 +10697,10 @@ declare class Swirls {
|
|
|
10538
10697
|
limit?: number | undefined;
|
|
10539
10698
|
offset?: number | undefined;
|
|
10540
10699
|
} | undefined;
|
|
10700
|
+
} | {
|
|
10701
|
+
type: "switch";
|
|
10702
|
+
outputs: string[];
|
|
10703
|
+
code?: string | undefined;
|
|
10541
10704
|
} | {
|
|
10542
10705
|
type: "wait";
|
|
10543
10706
|
amount?: number | undefined;
|
|
@@ -10556,6 +10719,11 @@ declare class Swirls {
|
|
|
10556
10719
|
approvedOutput?: string | undefined;
|
|
10557
10720
|
rejectedOutput?: string | undefined;
|
|
10558
10721
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
10722
|
+
actions?: {
|
|
10723
|
+
id: string;
|
|
10724
|
+
label: string;
|
|
10725
|
+
outcome: "approve" | "reject";
|
|
10726
|
+
}[] | undefined;
|
|
10559
10727
|
}, {
|
|
10560
10728
|
enabled: boolean;
|
|
10561
10729
|
title?: string | undefined;
|
|
@@ -10564,6 +10732,11 @@ declare class Swirls {
|
|
|
10564
10732
|
approvedOutput?: string | undefined;
|
|
10565
10733
|
rejectedOutput?: string | undefined;
|
|
10566
10734
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
10735
|
+
actions?: {
|
|
10736
|
+
id: string;
|
|
10737
|
+
label: string;
|
|
10738
|
+
outcome: "approve" | "reject";
|
|
10739
|
+
}[] | undefined;
|
|
10567
10740
|
}, zod_v4_core.$ZodTypeInternals<{
|
|
10568
10741
|
enabled: boolean;
|
|
10569
10742
|
title?: string | undefined;
|
|
@@ -10572,6 +10745,11 @@ declare class Swirls {
|
|
|
10572
10745
|
approvedOutput?: string | undefined;
|
|
10573
10746
|
rejectedOutput?: string | undefined;
|
|
10574
10747
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
10748
|
+
actions?: {
|
|
10749
|
+
id: string;
|
|
10750
|
+
label: string;
|
|
10751
|
+
outcome: "approve" | "reject";
|
|
10752
|
+
}[] | undefined;
|
|
10575
10753
|
}, {
|
|
10576
10754
|
enabled: boolean;
|
|
10577
10755
|
title?: string | undefined;
|
|
@@ -10580,6 +10758,11 @@ declare class Swirls {
|
|
|
10580
10758
|
approvedOutput?: string | undefined;
|
|
10581
10759
|
rejectedOutput?: string | undefined;
|
|
10582
10760
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
10761
|
+
actions?: {
|
|
10762
|
+
id: string;
|
|
10763
|
+
label: string;
|
|
10764
|
+
outcome: "approve" | "reject";
|
|
10765
|
+
}[] | undefined;
|
|
10583
10766
|
}>>>;
|
|
10584
10767
|
position: zod.ZodNullable<zod.ZodType<{
|
|
10585
10768
|
x: number;
|
|
@@ -10602,7 +10785,6 @@ declare class Swirls {
|
|
|
10602
10785
|
type: zod.ZodEnum<{
|
|
10603
10786
|
code: "code";
|
|
10604
10787
|
bucket: "bucket";
|
|
10605
|
-
decision: "decision";
|
|
10606
10788
|
document: "document";
|
|
10607
10789
|
email: "email";
|
|
10608
10790
|
graph: "graph";
|
|
@@ -10610,6 +10792,7 @@ declare class Swirls {
|
|
|
10610
10792
|
llm: "llm";
|
|
10611
10793
|
scrape: "scrape";
|
|
10612
10794
|
stream: "stream";
|
|
10795
|
+
switch: "switch";
|
|
10613
10796
|
wait: "wait";
|
|
10614
10797
|
}>;
|
|
10615
10798
|
}, {
|
|
@@ -11851,6 +12034,7 @@ declare class Swirls {
|
|
|
11851
12034
|
}, zod_v4_core.$strip>, Record<never, never>>;
|
|
11852
12035
|
};
|
|
11853
12036
|
};
|
|
12037
|
+
/** TanStack Query utilities for use with `useQuery()` and `useMutation()`. */
|
|
11854
12038
|
get query(): {
|
|
11855
12039
|
folders: {
|
|
11856
12040
|
createFolder: _orpc_tanstack_query.ProcedureUtils<Record<never, never>, {
|
|
@@ -11971,9 +12155,6 @@ declare class Swirls {
|
|
|
11971
12155
|
prompt?: string | undefined;
|
|
11972
12156
|
temperature?: number | undefined;
|
|
11973
12157
|
maxTokens?: number | undefined;
|
|
11974
|
-
} | {
|
|
11975
|
-
type: "decision";
|
|
11976
|
-
expression?: string | undefined;
|
|
11977
12158
|
} | {
|
|
11978
12159
|
type: "code";
|
|
11979
12160
|
code?: string | undefined;
|
|
@@ -12016,6 +12197,10 @@ declare class Swirls {
|
|
|
12016
12197
|
limit?: number | undefined;
|
|
12017
12198
|
offset?: number | undefined;
|
|
12018
12199
|
} | undefined;
|
|
12200
|
+
} | {
|
|
12201
|
+
type: "switch";
|
|
12202
|
+
outputs: string[];
|
|
12203
|
+
code?: string | undefined;
|
|
12019
12204
|
} | {
|
|
12020
12205
|
type: "wait";
|
|
12021
12206
|
amount?: number | undefined;
|
|
@@ -12034,6 +12219,11 @@ declare class Swirls {
|
|
|
12034
12219
|
approvedOutput?: string | undefined;
|
|
12035
12220
|
rejectedOutput?: string | undefined;
|
|
12036
12221
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12222
|
+
actions?: {
|
|
12223
|
+
id: string;
|
|
12224
|
+
label: string;
|
|
12225
|
+
outcome: "approve" | "reject";
|
|
12226
|
+
}[] | undefined;
|
|
12037
12227
|
} | null;
|
|
12038
12228
|
position: {
|
|
12039
12229
|
x: number;
|
|
@@ -12044,7 +12234,7 @@ declare class Swirls {
|
|
|
12044
12234
|
createdAt: Date;
|
|
12045
12235
|
orgId: string | null;
|
|
12046
12236
|
userId: string;
|
|
12047
|
-
type: "code" | "bucket" | "
|
|
12237
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12048
12238
|
}[];
|
|
12049
12239
|
edges: {
|
|
12050
12240
|
id: string;
|
|
@@ -12127,7 +12317,7 @@ declare class Swirls {
|
|
|
12127
12317
|
graphId: string;
|
|
12128
12318
|
name: string;
|
|
12129
12319
|
label: string;
|
|
12130
|
-
type: "code" | "bucket" | "
|
|
12320
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12131
12321
|
config: Record<string, any>;
|
|
12132
12322
|
id?: string | undefined;
|
|
12133
12323
|
description?: string | undefined;
|
|
@@ -12139,6 +12329,11 @@ declare class Swirls {
|
|
|
12139
12329
|
approvedOutput?: string | undefined;
|
|
12140
12330
|
rejectedOutput?: string | undefined;
|
|
12141
12331
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12332
|
+
actions?: {
|
|
12333
|
+
id: string;
|
|
12334
|
+
label: string;
|
|
12335
|
+
outcome: "approve" | "reject";
|
|
12336
|
+
}[] | undefined;
|
|
12142
12337
|
} | null | undefined;
|
|
12143
12338
|
position?: {
|
|
12144
12339
|
x: number;
|
|
@@ -12158,9 +12353,6 @@ declare class Swirls {
|
|
|
12158
12353
|
prompt?: string | undefined;
|
|
12159
12354
|
temperature?: number | undefined;
|
|
12160
12355
|
maxTokens?: number | undefined;
|
|
12161
|
-
} | {
|
|
12162
|
-
type: "decision";
|
|
12163
|
-
expression?: string | undefined;
|
|
12164
12356
|
} | {
|
|
12165
12357
|
type: "code";
|
|
12166
12358
|
code?: string | undefined;
|
|
@@ -12203,6 +12395,10 @@ declare class Swirls {
|
|
|
12203
12395
|
limit?: number | undefined;
|
|
12204
12396
|
offset?: number | undefined;
|
|
12205
12397
|
} | undefined;
|
|
12398
|
+
} | {
|
|
12399
|
+
type: "switch";
|
|
12400
|
+
outputs: string[];
|
|
12401
|
+
code?: string | undefined;
|
|
12206
12402
|
} | {
|
|
12207
12403
|
type: "wait";
|
|
12208
12404
|
amount?: number | undefined;
|
|
@@ -12221,6 +12417,11 @@ declare class Swirls {
|
|
|
12221
12417
|
approvedOutput?: string | undefined;
|
|
12222
12418
|
rejectedOutput?: string | undefined;
|
|
12223
12419
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12420
|
+
actions?: {
|
|
12421
|
+
id: string;
|
|
12422
|
+
label: string;
|
|
12423
|
+
outcome: "approve" | "reject";
|
|
12424
|
+
}[] | undefined;
|
|
12224
12425
|
} | null;
|
|
12225
12426
|
position: {
|
|
12226
12427
|
x: number;
|
|
@@ -12231,12 +12432,12 @@ declare class Swirls {
|
|
|
12231
12432
|
createdAt: Date;
|
|
12232
12433
|
orgId: string | null;
|
|
12233
12434
|
userId: string;
|
|
12234
|
-
type: "code" | "bucket" | "
|
|
12435
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12235
12436
|
}, Error> & _orpc_tanstack_query.GeneralUtils<{
|
|
12236
12437
|
graphId: string;
|
|
12237
12438
|
name: string;
|
|
12238
12439
|
label: string;
|
|
12239
|
-
type: "code" | "bucket" | "
|
|
12440
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12240
12441
|
config: Record<string, any>;
|
|
12241
12442
|
id?: string | undefined;
|
|
12242
12443
|
description?: string | undefined;
|
|
@@ -12248,6 +12449,11 @@ declare class Swirls {
|
|
|
12248
12449
|
approvedOutput?: string | undefined;
|
|
12249
12450
|
rejectedOutput?: string | undefined;
|
|
12250
12451
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12452
|
+
actions?: {
|
|
12453
|
+
id: string;
|
|
12454
|
+
label: string;
|
|
12455
|
+
outcome: "approve" | "reject";
|
|
12456
|
+
}[] | undefined;
|
|
12251
12457
|
} | null | undefined;
|
|
12252
12458
|
position?: {
|
|
12253
12459
|
x: number;
|
|
@@ -12258,7 +12464,7 @@ declare class Swirls {
|
|
|
12258
12464
|
}>;
|
|
12259
12465
|
updateNode: _orpc_tanstack_query.ProcedureUtils<Record<never, never>, {
|
|
12260
12466
|
id: string;
|
|
12261
|
-
type?: "code" | "bucket" | "
|
|
12467
|
+
type?: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait" | undefined;
|
|
12262
12468
|
name?: string | undefined;
|
|
12263
12469
|
label?: string | undefined;
|
|
12264
12470
|
description?: string | undefined;
|
|
@@ -12271,6 +12477,11 @@ declare class Swirls {
|
|
|
12271
12477
|
approvedOutput?: string | undefined;
|
|
12272
12478
|
rejectedOutput?: string | undefined;
|
|
12273
12479
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12480
|
+
actions?: {
|
|
12481
|
+
id: string;
|
|
12482
|
+
label: string;
|
|
12483
|
+
outcome: "approve" | "reject";
|
|
12484
|
+
}[] | undefined;
|
|
12274
12485
|
} | null | undefined;
|
|
12275
12486
|
position?: {
|
|
12276
12487
|
x: number;
|
|
@@ -12290,9 +12501,6 @@ declare class Swirls {
|
|
|
12290
12501
|
prompt?: string | undefined;
|
|
12291
12502
|
temperature?: number | undefined;
|
|
12292
12503
|
maxTokens?: number | undefined;
|
|
12293
|
-
} | {
|
|
12294
|
-
type: "decision";
|
|
12295
|
-
expression?: string | undefined;
|
|
12296
12504
|
} | {
|
|
12297
12505
|
type: "code";
|
|
12298
12506
|
code?: string | undefined;
|
|
@@ -12335,6 +12543,10 @@ declare class Swirls {
|
|
|
12335
12543
|
limit?: number | undefined;
|
|
12336
12544
|
offset?: number | undefined;
|
|
12337
12545
|
} | undefined;
|
|
12546
|
+
} | {
|
|
12547
|
+
type: "switch";
|
|
12548
|
+
outputs: string[];
|
|
12549
|
+
code?: string | undefined;
|
|
12338
12550
|
} | {
|
|
12339
12551
|
type: "wait";
|
|
12340
12552
|
amount?: number | undefined;
|
|
@@ -12353,6 +12565,11 @@ declare class Swirls {
|
|
|
12353
12565
|
approvedOutput?: string | undefined;
|
|
12354
12566
|
rejectedOutput?: string | undefined;
|
|
12355
12567
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12568
|
+
actions?: {
|
|
12569
|
+
id: string;
|
|
12570
|
+
label: string;
|
|
12571
|
+
outcome: "approve" | "reject";
|
|
12572
|
+
}[] | undefined;
|
|
12356
12573
|
} | null;
|
|
12357
12574
|
position: {
|
|
12358
12575
|
x: number;
|
|
@@ -12363,10 +12580,10 @@ declare class Swirls {
|
|
|
12363
12580
|
createdAt: Date;
|
|
12364
12581
|
orgId: string | null;
|
|
12365
12582
|
userId: string;
|
|
12366
|
-
type: "code" | "bucket" | "
|
|
12583
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12367
12584
|
}, Error> & _orpc_tanstack_query.GeneralUtils<{
|
|
12368
12585
|
id: string;
|
|
12369
|
-
type?: "code" | "bucket" | "
|
|
12586
|
+
type?: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait" | undefined;
|
|
12370
12587
|
name?: string | undefined;
|
|
12371
12588
|
label?: string | undefined;
|
|
12372
12589
|
description?: string | undefined;
|
|
@@ -12379,6 +12596,11 @@ declare class Swirls {
|
|
|
12379
12596
|
approvedOutput?: string | undefined;
|
|
12380
12597
|
rejectedOutput?: string | undefined;
|
|
12381
12598
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12599
|
+
actions?: {
|
|
12600
|
+
id: string;
|
|
12601
|
+
label: string;
|
|
12602
|
+
outcome: "approve" | "reject";
|
|
12603
|
+
}[] | undefined;
|
|
12382
12604
|
} | null | undefined;
|
|
12383
12605
|
position?: {
|
|
12384
12606
|
x: number;
|
|
@@ -12425,7 +12647,7 @@ declare class Swirls {
|
|
|
12425
12647
|
id: string;
|
|
12426
12648
|
name: string;
|
|
12427
12649
|
label: string;
|
|
12428
|
-
type: "code" | "bucket" | "
|
|
12650
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12429
12651
|
config: Record<string, any>;
|
|
12430
12652
|
description?: string | undefined;
|
|
12431
12653
|
reviewConfig?: {
|
|
@@ -12436,6 +12658,11 @@ declare class Swirls {
|
|
|
12436
12658
|
approvedOutput?: string | undefined;
|
|
12437
12659
|
rejectedOutput?: string | undefined;
|
|
12438
12660
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12661
|
+
actions?: {
|
|
12662
|
+
id: string;
|
|
12663
|
+
label: string;
|
|
12664
|
+
outcome: "approve" | "reject";
|
|
12665
|
+
}[] | undefined;
|
|
12439
12666
|
} | null | undefined;
|
|
12440
12667
|
position?: {
|
|
12441
12668
|
x: number;
|
|
@@ -12472,9 +12699,6 @@ declare class Swirls {
|
|
|
12472
12699
|
prompt?: string | undefined;
|
|
12473
12700
|
temperature?: number | undefined;
|
|
12474
12701
|
maxTokens?: number | undefined;
|
|
12475
|
-
} | {
|
|
12476
|
-
type: "decision";
|
|
12477
|
-
expression?: string | undefined;
|
|
12478
12702
|
} | {
|
|
12479
12703
|
type: "code";
|
|
12480
12704
|
code?: string | undefined;
|
|
@@ -12517,6 +12741,10 @@ declare class Swirls {
|
|
|
12517
12741
|
limit?: number | undefined;
|
|
12518
12742
|
offset?: number | undefined;
|
|
12519
12743
|
} | undefined;
|
|
12744
|
+
} | {
|
|
12745
|
+
type: "switch";
|
|
12746
|
+
outputs: string[];
|
|
12747
|
+
code?: string | undefined;
|
|
12520
12748
|
} | {
|
|
12521
12749
|
type: "wait";
|
|
12522
12750
|
amount?: number | undefined;
|
|
@@ -12535,6 +12763,11 @@ declare class Swirls {
|
|
|
12535
12763
|
approvedOutput?: string | undefined;
|
|
12536
12764
|
rejectedOutput?: string | undefined;
|
|
12537
12765
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12766
|
+
actions?: {
|
|
12767
|
+
id: string;
|
|
12768
|
+
label: string;
|
|
12769
|
+
outcome: "approve" | "reject";
|
|
12770
|
+
}[] | undefined;
|
|
12538
12771
|
} | null;
|
|
12539
12772
|
position: {
|
|
12540
12773
|
x: number;
|
|
@@ -12545,7 +12778,7 @@ declare class Swirls {
|
|
|
12545
12778
|
createdAt: Date;
|
|
12546
12779
|
orgId: string | null;
|
|
12547
12780
|
userId: string;
|
|
12548
|
-
type: "code" | "bucket" | "
|
|
12781
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12549
12782
|
}[];
|
|
12550
12783
|
edges: {
|
|
12551
12784
|
id: string;
|
|
@@ -12563,7 +12796,7 @@ declare class Swirls {
|
|
|
12563
12796
|
id: string;
|
|
12564
12797
|
name: string;
|
|
12565
12798
|
label: string;
|
|
12566
|
-
type: "code" | "bucket" | "
|
|
12799
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
12567
12800
|
config: Record<string, any>;
|
|
12568
12801
|
description?: string | undefined;
|
|
12569
12802
|
reviewConfig?: {
|
|
@@ -12574,6 +12807,11 @@ declare class Swirls {
|
|
|
12574
12807
|
approvedOutput?: string | undefined;
|
|
12575
12808
|
rejectedOutput?: string | undefined;
|
|
12576
12809
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
12810
|
+
actions?: {
|
|
12811
|
+
id: string;
|
|
12812
|
+
label: string;
|
|
12813
|
+
outcome: "approve" | "reject";
|
|
12814
|
+
}[] | undefined;
|
|
12577
12815
|
} | null | undefined;
|
|
12578
12816
|
position?: {
|
|
12579
12817
|
x: number;
|
|
@@ -12741,15 +12979,6 @@ declare class Swirls {
|
|
|
12741
12979
|
} | null, Error> & _orpc_tanstack_query.GeneralUtils<{
|
|
12742
12980
|
graphId: string;
|
|
12743
12981
|
}>;
|
|
12744
|
-
executeNode: _orpc_tanstack_query.ProcedureUtils<Record<never, never>, {
|
|
12745
|
-
nodeId: string;
|
|
12746
|
-
input: Record<string, any>;
|
|
12747
|
-
}, {
|
|
12748
|
-
executionId: string;
|
|
12749
|
-
}, Error> & _orpc_tanstack_query.GeneralUtils<{
|
|
12750
|
-
nodeId: string;
|
|
12751
|
-
input: Record<string, any>;
|
|
12752
|
-
}>;
|
|
12753
12982
|
} & _orpc_tanstack_query.GeneralUtils<unknown>;
|
|
12754
12983
|
triggers: {
|
|
12755
12984
|
createTrigger: _orpc_tanstack_query.ProcedureUtils<Record<never, never>, {
|
|
@@ -14191,9 +14420,6 @@ declare class Swirls {
|
|
|
14191
14420
|
prompt?: string | undefined;
|
|
14192
14421
|
temperature?: number | undefined;
|
|
14193
14422
|
maxTokens?: number | undefined;
|
|
14194
|
-
} | {
|
|
14195
|
-
type: "decision";
|
|
14196
|
-
expression?: string | undefined;
|
|
14197
14423
|
} | {
|
|
14198
14424
|
type: "code";
|
|
14199
14425
|
code?: string | undefined;
|
|
@@ -14236,6 +14462,10 @@ declare class Swirls {
|
|
|
14236
14462
|
limit?: number | undefined;
|
|
14237
14463
|
offset?: number | undefined;
|
|
14238
14464
|
} | undefined;
|
|
14465
|
+
} | {
|
|
14466
|
+
type: "switch";
|
|
14467
|
+
outputs: string[];
|
|
14468
|
+
code?: string | undefined;
|
|
14239
14469
|
} | {
|
|
14240
14470
|
type: "wait";
|
|
14241
14471
|
amount?: number | undefined;
|
|
@@ -14254,6 +14484,11 @@ declare class Swirls {
|
|
|
14254
14484
|
approvedOutput?: string | undefined;
|
|
14255
14485
|
rejectedOutput?: string | undefined;
|
|
14256
14486
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
14487
|
+
actions?: {
|
|
14488
|
+
id: string;
|
|
14489
|
+
label: string;
|
|
14490
|
+
outcome: "approve" | "reject";
|
|
14491
|
+
}[] | undefined;
|
|
14257
14492
|
} | null;
|
|
14258
14493
|
position: {
|
|
14259
14494
|
x: number;
|
|
@@ -14264,7 +14499,7 @@ declare class Swirls {
|
|
|
14264
14499
|
createdAt: Date;
|
|
14265
14500
|
orgId: string | null;
|
|
14266
14501
|
userId: string;
|
|
14267
|
-
type: "code" | "bucket" | "
|
|
14502
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
14268
14503
|
} | undefined;
|
|
14269
14504
|
graphExecution?: {
|
|
14270
14505
|
id: string;
|
|
@@ -14339,9 +14574,6 @@ declare class Swirls {
|
|
|
14339
14574
|
prompt?: string | undefined;
|
|
14340
14575
|
temperature?: number | undefined;
|
|
14341
14576
|
maxTokens?: number | undefined;
|
|
14342
|
-
} | {
|
|
14343
|
-
type: "decision";
|
|
14344
|
-
expression?: string | undefined;
|
|
14345
14577
|
} | {
|
|
14346
14578
|
type: "code";
|
|
14347
14579
|
code?: string | undefined;
|
|
@@ -14384,6 +14616,10 @@ declare class Swirls {
|
|
|
14384
14616
|
limit?: number | undefined;
|
|
14385
14617
|
offset?: number | undefined;
|
|
14386
14618
|
} | undefined;
|
|
14619
|
+
} | {
|
|
14620
|
+
type: "switch";
|
|
14621
|
+
outputs: string[];
|
|
14622
|
+
code?: string | undefined;
|
|
14387
14623
|
} | {
|
|
14388
14624
|
type: "wait";
|
|
14389
14625
|
amount?: number | undefined;
|
|
@@ -14402,6 +14638,11 @@ declare class Swirls {
|
|
|
14402
14638
|
approvedOutput?: string | undefined;
|
|
14403
14639
|
rejectedOutput?: string | undefined;
|
|
14404
14640
|
schema?: _swirls_core_schemas.JsonSchema | null | undefined;
|
|
14641
|
+
actions?: {
|
|
14642
|
+
id: string;
|
|
14643
|
+
label: string;
|
|
14644
|
+
outcome: "approve" | "reject";
|
|
14645
|
+
}[] | undefined;
|
|
14405
14646
|
} | null;
|
|
14406
14647
|
position: {
|
|
14407
14648
|
x: number;
|
|
@@ -14412,7 +14653,7 @@ declare class Swirls {
|
|
|
14412
14653
|
createdAt: Date;
|
|
14413
14654
|
orgId: string | null;
|
|
14414
14655
|
userId: string;
|
|
14415
|
-
type: "code" | "bucket" | "
|
|
14656
|
+
type: "code" | "bucket" | "document" | "email" | "graph" | "http" | "llm" | "scrape" | "stream" | "switch" | "wait";
|
|
14416
14657
|
} | undefined;
|
|
14417
14658
|
graphExecution?: {
|
|
14418
14659
|
id: string;
|