@voiceflow/dtos-interact 1.58.0 → 1.58.1-e23544f7c5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/cjs/socket/socket-action-trace.dto.d.ts +938 -84
  2. package/build/cjs/socket/socket-action-trace.dto.d.ts.map +1 -1
  3. package/build/cjs/socket/socket-message.dto.d.ts +1878 -170
  4. package/build/cjs/socket/socket-message.dto.d.ts.map +1 -1
  5. package/build/cjs/trace/any.dto.d.ts +793 -251
  6. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  7. package/build/cjs/trace/completion.dto.d.ts +271 -0
  8. package/build/cjs/trace/completion.dto.d.ts.map +1 -1
  9. package/build/cjs/trace/completion.dto.js +2 -0
  10. package/build/cjs/trace/completion.dto.js.map +1 -1
  11. package/build/cjs/trace/text.dto.d.ts +271 -0
  12. package/build/cjs/trace/text.dto.d.ts.map +1 -1
  13. package/build/cjs/trace/text.dto.js +2 -0
  14. package/build/cjs/trace/text.dto.js.map +1 -1
  15. package/build/esm/socket/socket-action-trace.dto.d.ts +938 -84
  16. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  17. package/build/esm/socket/socket-message.dto.d.ts +1878 -170
  18. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  19. package/build/esm/trace/any.dto.d.ts +793 -251
  20. package/build/esm/trace/any.dto.d.ts.map +1 -1
  21. package/build/esm/trace/completion.dto.d.ts +271 -0
  22. package/build/esm/trace/completion.dto.d.ts.map +1 -1
  23. package/build/esm/trace/completion.dto.js +2 -0
  24. package/build/esm/trace/completion.dto.js.map +1 -1
  25. package/build/esm/trace/text.dto.d.ts +271 -0
  26. package/build/esm/trace/text.dto.d.ts.map +1 -1
  27. package/build/esm/trace/text.dto.js +2 -0
  28. package/build/esm/trace/text.dto.js.map +1 -1
  29. package/package.json +2 -2
@@ -5390,10 +5390,203 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
5390
5390
  state: "content";
5391
5391
  }>, z.ZodObject<{
5392
5392
  state: z.ZodLiteral<"end">;
5393
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5394
+ type: z.ZodLiteral<"node">;
5395
+ nodeID: z.ZodString;
5396
+ nodeType: z.ZodString;
5397
+ diagramID: z.ZodString;
5398
+ }, "strip", z.ZodTypeAny, {
5399
+ type: "node";
5400
+ diagramID: string;
5401
+ nodeID: string;
5402
+ nodeType: string;
5403
+ }, {
5404
+ type: "node";
5405
+ diagramID: string;
5406
+ nodeID: string;
5407
+ nodeType: string;
5408
+ }>, z.ZodObject<{
5409
+ type: z.ZodLiteral<"agent">;
5410
+ nodeID: z.ZodString;
5411
+ agentID: z.ZodString;
5412
+ diagramID: z.ZodString;
5413
+ agentName: z.ZodOptional<z.ZodString>;
5414
+ }, "strip", z.ZodTypeAny, {
5415
+ type: "agent";
5416
+ diagramID: string;
5417
+ nodeID: string;
5418
+ agentID: string;
5419
+ agentName?: string | undefined;
5420
+ }, {
5421
+ type: "agent";
5422
+ diagramID: string;
5423
+ nodeID: string;
5424
+ agentID: string;
5425
+ agentName?: string | undefined;
5426
+ }>, z.ZodObject<{
5427
+ type: z.ZodLiteral<"prompt">;
5428
+ nodeID: z.ZodString;
5429
+ promptID: z.ZodString;
5430
+ diagramID: z.ZodString;
5431
+ }, "strip", z.ZodTypeAny, {
5432
+ type: "prompt";
5433
+ diagramID: string;
5434
+ nodeID: string;
5435
+ promptID: string;
5436
+ }, {
5437
+ type: "prompt";
5438
+ diagramID: string;
5439
+ nodeID: string;
5440
+ promptID: string;
5441
+ }>, z.ZodObject<{
5442
+ type: z.ZodLiteral<"api-tool">;
5443
+ nodeID: z.ZodString;
5444
+ diagramID: z.ZodString;
5445
+ apiToolID: z.ZodString;
5446
+ apiToolName: z.ZodOptional<z.ZodString>;
5447
+ }, "strip", z.ZodTypeAny, {
5448
+ type: "api-tool";
5449
+ diagramID: string;
5450
+ nodeID: string;
5451
+ apiToolID: string;
5452
+ apiToolName?: string | undefined;
5453
+ }, {
5454
+ type: "api-tool";
5455
+ diagramID: string;
5456
+ nodeID: string;
5457
+ apiToolID: string;
5458
+ apiToolName?: string | undefined;
5459
+ }>, z.ZodObject<{
5460
+ type: z.ZodLiteral<"function">;
5461
+ nodeID: z.ZodString;
5462
+ diagramID: z.ZodString;
5463
+ functionID: z.ZodString;
5464
+ functionName: z.ZodOptional<z.ZodString>;
5465
+ }, "strip", z.ZodTypeAny, {
5466
+ type: "function";
5467
+ diagramID: string;
5468
+ nodeID: string;
5469
+ functionID: string;
5470
+ functionName?: string | undefined;
5471
+ }, {
5472
+ type: "function";
5473
+ diagramID: string;
5474
+ nodeID: string;
5475
+ functionID: string;
5476
+ functionName?: string | undefined;
5477
+ }>, z.ZodObject<{
5478
+ type: z.ZodLiteral<"integration-tool">;
5479
+ nodeID: z.ZodString;
5480
+ diagramID: z.ZodString;
5481
+ integrationToolName: z.ZodString;
5482
+ }, "strip", z.ZodTypeAny, {
5483
+ type: "integration-tool";
5484
+ diagramID: string;
5485
+ nodeID: string;
5486
+ integrationToolName: string;
5487
+ }, {
5488
+ type: "integration-tool";
5489
+ diagramID: string;
5490
+ nodeID: string;
5491
+ integrationToolName: string;
5492
+ }>, z.ZodObject<{
5493
+ type: z.ZodLiteral<"mcp-integration-tool">;
5494
+ nodeID: z.ZodString;
5495
+ diagramID: z.ZodString;
5496
+ mcpToolName: z.ZodString;
5497
+ }, "strip", z.ZodTypeAny, {
5498
+ type: "mcp-integration-tool";
5499
+ diagramID: string;
5500
+ nodeID: string;
5501
+ mcpToolName: string;
5502
+ }, {
5503
+ type: "mcp-integration-tool";
5504
+ diagramID: string;
5505
+ nodeID: string;
5506
+ mcpToolName: string;
5507
+ }>]>>;
5393
5508
  }, "strip", z.ZodTypeAny, {
5394
5509
  state: "end";
5510
+ ref?: {
5511
+ type: "node";
5512
+ diagramID: string;
5513
+ nodeID: string;
5514
+ nodeType: string;
5515
+ } | {
5516
+ type: "agent";
5517
+ diagramID: string;
5518
+ nodeID: string;
5519
+ agentID: string;
5520
+ agentName?: string | undefined;
5521
+ } | {
5522
+ type: "api-tool";
5523
+ diagramID: string;
5524
+ nodeID: string;
5525
+ apiToolID: string;
5526
+ apiToolName?: string | undefined;
5527
+ } | {
5528
+ type: "integration-tool";
5529
+ diagramID: string;
5530
+ nodeID: string;
5531
+ integrationToolName: string;
5532
+ } | {
5533
+ type: "mcp-integration-tool";
5534
+ diagramID: string;
5535
+ nodeID: string;
5536
+ mcpToolName: string;
5537
+ } | {
5538
+ type: "function";
5539
+ diagramID: string;
5540
+ nodeID: string;
5541
+ functionID: string;
5542
+ functionName?: string | undefined;
5543
+ } | {
5544
+ type: "prompt";
5545
+ diagramID: string;
5546
+ nodeID: string;
5547
+ promptID: string;
5548
+ } | undefined;
5395
5549
  }, {
5396
5550
  state: "end";
5551
+ ref?: {
5552
+ type: "node";
5553
+ diagramID: string;
5554
+ nodeID: string;
5555
+ nodeType: string;
5556
+ } | {
5557
+ type: "agent";
5558
+ diagramID: string;
5559
+ nodeID: string;
5560
+ agentID: string;
5561
+ agentName?: string | undefined;
5562
+ } | {
5563
+ type: "api-tool";
5564
+ diagramID: string;
5565
+ nodeID: string;
5566
+ apiToolID: string;
5567
+ apiToolName?: string | undefined;
5568
+ } | {
5569
+ type: "integration-tool";
5570
+ diagramID: string;
5571
+ nodeID: string;
5572
+ integrationToolName: string;
5573
+ } | {
5574
+ type: "mcp-integration-tool";
5575
+ diagramID: string;
5576
+ nodeID: string;
5577
+ mcpToolName: string;
5578
+ } | {
5579
+ type: "function";
5580
+ diagramID: string;
5581
+ nodeID: string;
5582
+ functionID: string;
5583
+ functionName?: string | undefined;
5584
+ } | {
5585
+ type: "prompt";
5586
+ diagramID: string;
5587
+ nodeID: string;
5588
+ promptID: string;
5589
+ } | undefined;
5397
5590
  }>]>;
5398
5591
  }, "strip", z.ZodTypeAny, {
5399
5592
  type: "completion";
@@ -5411,6 +5604,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
5411
5604
  state: "content";
5412
5605
  } | {
5413
5606
  state: "end";
5607
+ ref?: {
5608
+ type: "node";
5609
+ diagramID: string;
5610
+ nodeID: string;
5611
+ nodeType: string;
5612
+ } | {
5613
+ type: "agent";
5614
+ diagramID: string;
5615
+ nodeID: string;
5616
+ agentID: string;
5617
+ agentName?: string | undefined;
5618
+ } | {
5619
+ type: "api-tool";
5620
+ diagramID: string;
5621
+ nodeID: string;
5622
+ apiToolID: string;
5623
+ apiToolName?: string | undefined;
5624
+ } | {
5625
+ type: "integration-tool";
5626
+ diagramID: string;
5627
+ nodeID: string;
5628
+ integrationToolName: string;
5629
+ } | {
5630
+ type: "mcp-integration-tool";
5631
+ diagramID: string;
5632
+ nodeID: string;
5633
+ mcpToolName: string;
5634
+ } | {
5635
+ type: "function";
5636
+ diagramID: string;
5637
+ nodeID: string;
5638
+ functionID: string;
5639
+ functionName?: string | undefined;
5640
+ } | {
5641
+ type: "prompt";
5642
+ diagramID: string;
5643
+ nodeID: string;
5644
+ promptID: string;
5645
+ } | undefined;
5414
5646
  };
5415
5647
  time?: number | undefined;
5416
5648
  paths?: {
@@ -5441,6 +5673,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
5441
5673
  state: "content";
5442
5674
  } | {
5443
5675
  state: "end";
5676
+ ref?: {
5677
+ type: "node";
5678
+ diagramID: string;
5679
+ nodeID: string;
5680
+ nodeType: string;
5681
+ } | {
5682
+ type: "agent";
5683
+ diagramID: string;
5684
+ nodeID: string;
5685
+ agentID: string;
5686
+ agentName?: string | undefined;
5687
+ } | {
5688
+ type: "api-tool";
5689
+ diagramID: string;
5690
+ nodeID: string;
5691
+ apiToolID: string;
5692
+ apiToolName?: string | undefined;
5693
+ } | {
5694
+ type: "integration-tool";
5695
+ diagramID: string;
5696
+ nodeID: string;
5697
+ integrationToolName: string;
5698
+ } | {
5699
+ type: "mcp-integration-tool";
5700
+ diagramID: string;
5701
+ nodeID: string;
5702
+ mcpToolName: string;
5703
+ } | {
5704
+ type: "function";
5705
+ diagramID: string;
5706
+ nodeID: string;
5707
+ functionID: string;
5708
+ functionName?: string | undefined;
5709
+ } | {
5710
+ type: "prompt";
5711
+ diagramID: string;
5712
+ nodeID: string;
5713
+ promptID: string;
5714
+ } | undefined;
5444
5715
  };
5445
5716
  time?: number | undefined;
5446
5717
  paths?: {
@@ -6891,6 +7162,121 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
6891
7162
  ai: z.ZodOptional<z.ZodBoolean>;
6892
7163
  message: z.ZodString;
6893
7164
  } & {
7165
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7166
+ type: z.ZodLiteral<"node">;
7167
+ nodeID: z.ZodString;
7168
+ nodeType: z.ZodString;
7169
+ diagramID: z.ZodString;
7170
+ }, "strip", z.ZodTypeAny, {
7171
+ type: "node";
7172
+ diagramID: string;
7173
+ nodeID: string;
7174
+ nodeType: string;
7175
+ }, {
7176
+ type: "node";
7177
+ diagramID: string;
7178
+ nodeID: string;
7179
+ nodeType: string;
7180
+ }>, z.ZodObject<{
7181
+ type: z.ZodLiteral<"agent">;
7182
+ nodeID: z.ZodString;
7183
+ agentID: z.ZodString;
7184
+ diagramID: z.ZodString;
7185
+ agentName: z.ZodOptional<z.ZodString>;
7186
+ }, "strip", z.ZodTypeAny, {
7187
+ type: "agent";
7188
+ diagramID: string;
7189
+ nodeID: string;
7190
+ agentID: string;
7191
+ agentName?: string | undefined;
7192
+ }, {
7193
+ type: "agent";
7194
+ diagramID: string;
7195
+ nodeID: string;
7196
+ agentID: string;
7197
+ agentName?: string | undefined;
7198
+ }>, z.ZodObject<{
7199
+ type: z.ZodLiteral<"prompt">;
7200
+ nodeID: z.ZodString;
7201
+ promptID: z.ZodString;
7202
+ diagramID: z.ZodString;
7203
+ }, "strip", z.ZodTypeAny, {
7204
+ type: "prompt";
7205
+ diagramID: string;
7206
+ nodeID: string;
7207
+ promptID: string;
7208
+ }, {
7209
+ type: "prompt";
7210
+ diagramID: string;
7211
+ nodeID: string;
7212
+ promptID: string;
7213
+ }>, z.ZodObject<{
7214
+ type: z.ZodLiteral<"api-tool">;
7215
+ nodeID: z.ZodString;
7216
+ diagramID: z.ZodString;
7217
+ apiToolID: z.ZodString;
7218
+ apiToolName: z.ZodOptional<z.ZodString>;
7219
+ }, "strip", z.ZodTypeAny, {
7220
+ type: "api-tool";
7221
+ diagramID: string;
7222
+ nodeID: string;
7223
+ apiToolID: string;
7224
+ apiToolName?: string | undefined;
7225
+ }, {
7226
+ type: "api-tool";
7227
+ diagramID: string;
7228
+ nodeID: string;
7229
+ apiToolID: string;
7230
+ apiToolName?: string | undefined;
7231
+ }>, z.ZodObject<{
7232
+ type: z.ZodLiteral<"function">;
7233
+ nodeID: z.ZodString;
7234
+ diagramID: z.ZodString;
7235
+ functionID: z.ZodString;
7236
+ functionName: z.ZodOptional<z.ZodString>;
7237
+ }, "strip", z.ZodTypeAny, {
7238
+ type: "function";
7239
+ diagramID: string;
7240
+ nodeID: string;
7241
+ functionID: string;
7242
+ functionName?: string | undefined;
7243
+ }, {
7244
+ type: "function";
7245
+ diagramID: string;
7246
+ nodeID: string;
7247
+ functionID: string;
7248
+ functionName?: string | undefined;
7249
+ }>, z.ZodObject<{
7250
+ type: z.ZodLiteral<"integration-tool">;
7251
+ nodeID: z.ZodString;
7252
+ diagramID: z.ZodString;
7253
+ integrationToolName: z.ZodString;
7254
+ }, "strip", z.ZodTypeAny, {
7255
+ type: "integration-tool";
7256
+ diagramID: string;
7257
+ nodeID: string;
7258
+ integrationToolName: string;
7259
+ }, {
7260
+ type: "integration-tool";
7261
+ diagramID: string;
7262
+ nodeID: string;
7263
+ integrationToolName: string;
7264
+ }>, z.ZodObject<{
7265
+ type: z.ZodLiteral<"mcp-integration-tool">;
7266
+ nodeID: z.ZodString;
7267
+ diagramID: z.ZodString;
7268
+ mcpToolName: z.ZodString;
7269
+ }, "strip", z.ZodTypeAny, {
7270
+ type: "mcp-integration-tool";
7271
+ diagramID: string;
7272
+ nodeID: string;
7273
+ mcpToolName: string;
7274
+ }, {
7275
+ type: "mcp-integration-tool";
7276
+ diagramID: string;
7277
+ nodeID: string;
7278
+ mcpToolName: string;
7279
+ }>]>>;
6894
7280
  slate: z.ZodObject<{
6895
7281
  id: z.ZodString;
6896
7282
  content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
@@ -6934,6 +7320,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
6934
7320
  } | undefined;
6935
7321
  ai?: boolean | undefined;
6936
7322
  delay?: number | undefined;
7323
+ ref?: {
7324
+ type: "node";
7325
+ diagramID: string;
7326
+ nodeID: string;
7327
+ nodeType: string;
7328
+ } | {
7329
+ type: "agent";
7330
+ diagramID: string;
7331
+ nodeID: string;
7332
+ agentID: string;
7333
+ agentName?: string | undefined;
7334
+ } | {
7335
+ type: "api-tool";
7336
+ diagramID: string;
7337
+ nodeID: string;
7338
+ apiToolID: string;
7339
+ apiToolName?: string | undefined;
7340
+ } | {
7341
+ type: "integration-tool";
7342
+ diagramID: string;
7343
+ nodeID: string;
7344
+ integrationToolName: string;
7345
+ } | {
7346
+ type: "mcp-integration-tool";
7347
+ diagramID: string;
7348
+ nodeID: string;
7349
+ mcpToolName: string;
7350
+ } | {
7351
+ type: "function";
7352
+ diagramID: string;
7353
+ nodeID: string;
7354
+ functionID: string;
7355
+ functionName?: string | undefined;
7356
+ } | {
7357
+ type: "prompt";
7358
+ diagramID: string;
7359
+ nodeID: string;
7360
+ promptID: string;
7361
+ } | undefined;
6937
7362
  sourceUrls?: {
6938
7363
  url: string;
6939
7364
  name?: string | undefined;
@@ -6951,6 +7376,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
6951
7376
  } | undefined;
6952
7377
  ai?: boolean | undefined;
6953
7378
  delay?: number | undefined;
7379
+ ref?: {
7380
+ type: "node";
7381
+ diagramID: string;
7382
+ nodeID: string;
7383
+ nodeType: string;
7384
+ } | {
7385
+ type: "agent";
7386
+ diagramID: string;
7387
+ nodeID: string;
7388
+ agentID: string;
7389
+ agentName?: string | undefined;
7390
+ } | {
7391
+ type: "api-tool";
7392
+ diagramID: string;
7393
+ nodeID: string;
7394
+ apiToolID: string;
7395
+ apiToolName?: string | undefined;
7396
+ } | {
7397
+ type: "integration-tool";
7398
+ diagramID: string;
7399
+ nodeID: string;
7400
+ integrationToolName: string;
7401
+ } | {
7402
+ type: "mcp-integration-tool";
7403
+ diagramID: string;
7404
+ nodeID: string;
7405
+ mcpToolName: string;
7406
+ } | {
7407
+ type: "function";
7408
+ diagramID: string;
7409
+ nodeID: string;
7410
+ functionID: string;
7411
+ functionName?: string | undefined;
7412
+ } | {
7413
+ type: "prompt";
7414
+ diagramID: string;
7415
+ nodeID: string;
7416
+ promptID: string;
7417
+ } | undefined;
6954
7418
  sourceUrls?: {
6955
7419
  url: string;
6956
7420
  name?: string | undefined;
@@ -6971,6 +7435,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
6971
7435
  } | undefined;
6972
7436
  ai?: boolean | undefined;
6973
7437
  delay?: number | undefined;
7438
+ ref?: {
7439
+ type: "node";
7440
+ diagramID: string;
7441
+ nodeID: string;
7442
+ nodeType: string;
7443
+ } | {
7444
+ type: "agent";
7445
+ diagramID: string;
7446
+ nodeID: string;
7447
+ agentID: string;
7448
+ agentName?: string | undefined;
7449
+ } | {
7450
+ type: "api-tool";
7451
+ diagramID: string;
7452
+ nodeID: string;
7453
+ apiToolID: string;
7454
+ apiToolName?: string | undefined;
7455
+ } | {
7456
+ type: "integration-tool";
7457
+ diagramID: string;
7458
+ nodeID: string;
7459
+ integrationToolName: string;
7460
+ } | {
7461
+ type: "mcp-integration-tool";
7462
+ diagramID: string;
7463
+ nodeID: string;
7464
+ mcpToolName: string;
7465
+ } | {
7466
+ type: "function";
7467
+ diagramID: string;
7468
+ nodeID: string;
7469
+ functionID: string;
7470
+ functionName?: string | undefined;
7471
+ } | {
7472
+ type: "prompt";
7473
+ diagramID: string;
7474
+ nodeID: string;
7475
+ promptID: string;
7476
+ } | undefined;
6974
7477
  sourceUrls?: {
6975
7478
  url: string;
6976
7479
  name?: string | undefined;
@@ -7002,8 +7505,47 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
7002
7505
  audio?: {
7003
7506
  src: string;
7004
7507
  } | undefined;
7005
- ai?: boolean | undefined;
7006
- delay?: number | undefined;
7508
+ ai?: boolean | undefined;
7509
+ delay?: number | undefined;
7510
+ ref?: {
7511
+ type: "node";
7512
+ diagramID: string;
7513
+ nodeID: string;
7514
+ nodeType: string;
7515
+ } | {
7516
+ type: "agent";
7517
+ diagramID: string;
7518
+ nodeID: string;
7519
+ agentID: string;
7520
+ agentName?: string | undefined;
7521
+ } | {
7522
+ type: "api-tool";
7523
+ diagramID: string;
7524
+ nodeID: string;
7525
+ apiToolID: string;
7526
+ apiToolName?: string | undefined;
7527
+ } | {
7528
+ type: "integration-tool";
7529
+ diagramID: string;
7530
+ nodeID: string;
7531
+ integrationToolName: string;
7532
+ } | {
7533
+ type: "mcp-integration-tool";
7534
+ diagramID: string;
7535
+ nodeID: string;
7536
+ mcpToolName: string;
7537
+ } | {
7538
+ type: "function";
7539
+ diagramID: string;
7540
+ nodeID: string;
7541
+ functionID: string;
7542
+ functionName?: string | undefined;
7543
+ } | {
7544
+ type: "prompt";
7545
+ diagramID: string;
7546
+ nodeID: string;
7547
+ promptID: string;
7548
+ } | undefined;
7007
7549
  sourceUrls?: {
7008
7550
  url: string;
7009
7551
  name?: string | undefined;
@@ -8132,21 +8674,52 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8132
8674
  turnID?: string | undefined;
8133
8675
  handleID?: string | undefined;
8134
8676
  } | {
8135
- type: "completion";
8677
+ type: "debug";
8136
8678
  payload: {
8137
- messageID: string;
8138
- state: "start";
8139
- ai?: boolean | undefined;
8140
- delay?: number | undefined;
8141
- sourceUrls?: {
8142
- url: string;
8143
- name?: string | undefined;
8144
- }[] | undefined;
8145
- } | {
8146
- content: string;
8147
- state: "content";
8148
- } | {
8149
- state: "end";
8679
+ message: string;
8680
+ type?: string | undefined;
8681
+ metadata?: Record<string, unknown> | undefined;
8682
+ ref?: {
8683
+ type: "node";
8684
+ diagramID: string;
8685
+ nodeID: string;
8686
+ nodeType: string;
8687
+ } | {
8688
+ type: "agent";
8689
+ diagramID: string;
8690
+ nodeID: string;
8691
+ agentID: string;
8692
+ agentName?: string | undefined;
8693
+ } | {
8694
+ type: "api-tool";
8695
+ diagramID: string;
8696
+ nodeID: string;
8697
+ apiToolID: string;
8698
+ apiToolName?: string | undefined;
8699
+ } | {
8700
+ type: "integration-tool";
8701
+ diagramID: string;
8702
+ nodeID: string;
8703
+ integrationToolName: string;
8704
+ } | {
8705
+ type: "mcp-integration-tool";
8706
+ diagramID: string;
8707
+ nodeID: string;
8708
+ mcpToolName: string;
8709
+ } | {
8710
+ type: "function";
8711
+ diagramID: string;
8712
+ nodeID: string;
8713
+ functionID: string;
8714
+ functionName?: string | undefined;
8715
+ } | {
8716
+ type: "prompt";
8717
+ diagramID: string;
8718
+ nodeID: string;
8719
+ promptID: string;
8720
+ } | undefined;
8721
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
8722
+ context?: string | undefined;
8150
8723
  };
8151
8724
  time?: number | undefined;
8152
8725
  paths?: {
@@ -8162,11 +8735,21 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8162
8735
  turnID?: string | undefined;
8163
8736
  handleID?: string | undefined;
8164
8737
  } | {
8165
- type: "debug";
8738
+ type: "completion";
8166
8739
  payload: {
8167
- message: string;
8168
- type?: string | undefined;
8169
- metadata?: Record<string, unknown> | undefined;
8740
+ messageID: string;
8741
+ state: "start";
8742
+ ai?: boolean | undefined;
8743
+ delay?: number | undefined;
8744
+ sourceUrls?: {
8745
+ url: string;
8746
+ name?: string | undefined;
8747
+ }[] | undefined;
8748
+ } | {
8749
+ content: string;
8750
+ state: "content";
8751
+ } | {
8752
+ state: "end";
8170
8753
  ref?: {
8171
8754
  type: "node";
8172
8755
  diagramID: string;
@@ -8206,8 +8789,6 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8206
8789
  nodeID: string;
8207
8790
  promptID: string;
8208
8791
  } | undefined;
8209
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
8210
- context?: string | undefined;
8211
8792
  };
8212
8793
  time?: number | undefined;
8213
8794
  paths?: {
@@ -8588,6 +9169,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8588
9169
  } | undefined;
8589
9170
  ai?: boolean | undefined;
8590
9171
  delay?: number | undefined;
9172
+ ref?: {
9173
+ type: "node";
9174
+ diagramID: string;
9175
+ nodeID: string;
9176
+ nodeType: string;
9177
+ } | {
9178
+ type: "agent";
9179
+ diagramID: string;
9180
+ nodeID: string;
9181
+ agentID: string;
9182
+ agentName?: string | undefined;
9183
+ } | {
9184
+ type: "api-tool";
9185
+ diagramID: string;
9186
+ nodeID: string;
9187
+ apiToolID: string;
9188
+ apiToolName?: string | undefined;
9189
+ } | {
9190
+ type: "integration-tool";
9191
+ diagramID: string;
9192
+ nodeID: string;
9193
+ integrationToolName: string;
9194
+ } | {
9195
+ type: "mcp-integration-tool";
9196
+ diagramID: string;
9197
+ nodeID: string;
9198
+ mcpToolName: string;
9199
+ } | {
9200
+ type: "function";
9201
+ diagramID: string;
9202
+ nodeID: string;
9203
+ functionID: string;
9204
+ functionName?: string | undefined;
9205
+ } | {
9206
+ type: "prompt";
9207
+ diagramID: string;
9208
+ nodeID: string;
9209
+ promptID: string;
9210
+ } | undefined;
8591
9211
  sourceUrls?: {
8592
9212
  url: string;
8593
9213
  name?: string | undefined;
@@ -8820,21 +9440,52 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8820
9440
  turnID?: string | undefined;
8821
9441
  handleID?: string | undefined;
8822
9442
  } | {
8823
- type: "completion";
9443
+ type: "debug";
8824
9444
  payload: {
8825
- messageID: string;
8826
- state: "start";
8827
- ai?: boolean | undefined;
8828
- delay?: number | undefined;
8829
- sourceUrls?: {
8830
- url: string;
8831
- name?: string | undefined;
8832
- }[] | undefined;
8833
- } | {
8834
- content: string;
8835
- state: "content";
8836
- } | {
8837
- state: "end";
9445
+ message: string;
9446
+ type?: string | undefined;
9447
+ metadata?: Record<string, unknown> | undefined;
9448
+ ref?: {
9449
+ type: "node";
9450
+ diagramID: string;
9451
+ nodeID: string;
9452
+ nodeType: string;
9453
+ } | {
9454
+ type: "agent";
9455
+ diagramID: string;
9456
+ nodeID: string;
9457
+ agentID: string;
9458
+ agentName?: string | undefined;
9459
+ } | {
9460
+ type: "api-tool";
9461
+ diagramID: string;
9462
+ nodeID: string;
9463
+ apiToolID: string;
9464
+ apiToolName?: string | undefined;
9465
+ } | {
9466
+ type: "integration-tool";
9467
+ diagramID: string;
9468
+ nodeID: string;
9469
+ integrationToolName: string;
9470
+ } | {
9471
+ type: "mcp-integration-tool";
9472
+ diagramID: string;
9473
+ nodeID: string;
9474
+ mcpToolName: string;
9475
+ } | {
9476
+ type: "function";
9477
+ diagramID: string;
9478
+ nodeID: string;
9479
+ functionID: string;
9480
+ functionName?: string | undefined;
9481
+ } | {
9482
+ type: "prompt";
9483
+ diagramID: string;
9484
+ nodeID: string;
9485
+ promptID: string;
9486
+ } | undefined;
9487
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
9488
+ context?: string | undefined;
8838
9489
  };
8839
9490
  time?: number | undefined;
8840
9491
  paths?: {
@@ -8850,11 +9501,21 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8850
9501
  turnID?: string | undefined;
8851
9502
  handleID?: string | undefined;
8852
9503
  } | {
8853
- type: "debug";
9504
+ type: "completion";
8854
9505
  payload: {
8855
- message: string;
8856
- type?: string | undefined;
8857
- metadata?: Record<string, unknown> | undefined;
9506
+ messageID: string;
9507
+ state: "start";
9508
+ ai?: boolean | undefined;
9509
+ delay?: number | undefined;
9510
+ sourceUrls?: {
9511
+ url: string;
9512
+ name?: string | undefined;
9513
+ }[] | undefined;
9514
+ } | {
9515
+ content: string;
9516
+ state: "content";
9517
+ } | {
9518
+ state: "end";
8858
9519
  ref?: {
8859
9520
  type: "node";
8860
9521
  diagramID: string;
@@ -8894,8 +9555,6 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8894
9555
  nodeID: string;
8895
9556
  promptID: string;
8896
9557
  } | undefined;
8897
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
8898
- context?: string | undefined;
8899
9558
  };
8900
9559
  time?: number | undefined;
8901
9560
  paths?: {
@@ -9274,8 +9933,47 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9274
9933
  audio?: {
9275
9934
  src: string;
9276
9935
  } | undefined;
9277
- ai?: boolean | undefined;
9278
- delay?: number | undefined;
9936
+ ai?: boolean | undefined;
9937
+ delay?: number | undefined;
9938
+ ref?: {
9939
+ type: "node";
9940
+ diagramID: string;
9941
+ nodeID: string;
9942
+ nodeType: string;
9943
+ } | {
9944
+ type: "agent";
9945
+ diagramID: string;
9946
+ nodeID: string;
9947
+ agentID: string;
9948
+ agentName?: string | undefined;
9949
+ } | {
9950
+ type: "api-tool";
9951
+ diagramID: string;
9952
+ nodeID: string;
9953
+ apiToolID: string;
9954
+ apiToolName?: string | undefined;
9955
+ } | {
9956
+ type: "integration-tool";
9957
+ diagramID: string;
9958
+ nodeID: string;
9959
+ integrationToolName: string;
9960
+ } | {
9961
+ type: "mcp-integration-tool";
9962
+ diagramID: string;
9963
+ nodeID: string;
9964
+ mcpToolName: string;
9965
+ } | {
9966
+ type: "function";
9967
+ diagramID: string;
9968
+ nodeID: string;
9969
+ functionID: string;
9970
+ functionName?: string | undefined;
9971
+ } | {
9972
+ type: "prompt";
9973
+ diagramID: string;
9974
+ nodeID: string;
9975
+ promptID: string;
9976
+ } | undefined;
9279
9977
  sourceUrls?: {
9280
9978
  url: string;
9281
9979
  name?: string | undefined;
@@ -9511,21 +10209,52 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9511
10209
  turnID?: string | undefined;
9512
10210
  handleID?: string | undefined;
9513
10211
  } | {
9514
- type: "completion";
10212
+ type: "debug";
9515
10213
  payload: {
9516
- messageID: string;
9517
- state: "start";
9518
- ai?: boolean | undefined;
9519
- delay?: number | undefined;
9520
- sourceUrls?: {
9521
- url: string;
9522
- name?: string | undefined;
9523
- }[] | undefined;
9524
- } | {
9525
- content: string;
9526
- state: "content";
9527
- } | {
9528
- state: "end";
10214
+ message: string;
10215
+ type?: string | undefined;
10216
+ metadata?: Record<string, unknown> | undefined;
10217
+ ref?: {
10218
+ type: "node";
10219
+ diagramID: string;
10220
+ nodeID: string;
10221
+ nodeType: string;
10222
+ } | {
10223
+ type: "agent";
10224
+ diagramID: string;
10225
+ nodeID: string;
10226
+ agentID: string;
10227
+ agentName?: string | undefined;
10228
+ } | {
10229
+ type: "api-tool";
10230
+ diagramID: string;
10231
+ nodeID: string;
10232
+ apiToolID: string;
10233
+ apiToolName?: string | undefined;
10234
+ } | {
10235
+ type: "integration-tool";
10236
+ diagramID: string;
10237
+ nodeID: string;
10238
+ integrationToolName: string;
10239
+ } | {
10240
+ type: "mcp-integration-tool";
10241
+ diagramID: string;
10242
+ nodeID: string;
10243
+ mcpToolName: string;
10244
+ } | {
10245
+ type: "function";
10246
+ diagramID: string;
10247
+ nodeID: string;
10248
+ functionID: string;
10249
+ functionName?: string | undefined;
10250
+ } | {
10251
+ type: "prompt";
10252
+ diagramID: string;
10253
+ nodeID: string;
10254
+ promptID: string;
10255
+ } | undefined;
10256
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
10257
+ context?: string | undefined;
9529
10258
  };
9530
10259
  time?: number | undefined;
9531
10260
  paths?: {
@@ -9541,11 +10270,21 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9541
10270
  turnID?: string | undefined;
9542
10271
  handleID?: string | undefined;
9543
10272
  } | {
9544
- type: "debug";
10273
+ type: "completion";
9545
10274
  payload: {
9546
- message: string;
9547
- type?: string | undefined;
9548
- metadata?: Record<string, unknown> | undefined;
10275
+ messageID: string;
10276
+ state: "start";
10277
+ ai?: boolean | undefined;
10278
+ delay?: number | undefined;
10279
+ sourceUrls?: {
10280
+ url: string;
10281
+ name?: string | undefined;
10282
+ }[] | undefined;
10283
+ } | {
10284
+ content: string;
10285
+ state: "content";
10286
+ } | {
10287
+ state: "end";
9549
10288
  ref?: {
9550
10289
  type: "node";
9551
10290
  diagramID: string;
@@ -9585,8 +10324,6 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9585
10324
  nodeID: string;
9586
10325
  promptID: string;
9587
10326
  } | undefined;
9588
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
9589
- context?: string | undefined;
9590
10327
  };
9591
10328
  time?: number | undefined;
9592
10329
  paths?: {
@@ -9967,6 +10704,45 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9967
10704
  } | undefined;
9968
10705
  ai?: boolean | undefined;
9969
10706
  delay?: number | undefined;
10707
+ ref?: {
10708
+ type: "node";
10709
+ diagramID: string;
10710
+ nodeID: string;
10711
+ nodeType: string;
10712
+ } | {
10713
+ type: "agent";
10714
+ diagramID: string;
10715
+ nodeID: string;
10716
+ agentID: string;
10717
+ agentName?: string | undefined;
10718
+ } | {
10719
+ type: "api-tool";
10720
+ diagramID: string;
10721
+ nodeID: string;
10722
+ apiToolID: string;
10723
+ apiToolName?: string | undefined;
10724
+ } | {
10725
+ type: "integration-tool";
10726
+ diagramID: string;
10727
+ nodeID: string;
10728
+ integrationToolName: string;
10729
+ } | {
10730
+ type: "mcp-integration-tool";
10731
+ diagramID: string;
10732
+ nodeID: string;
10733
+ mcpToolName: string;
10734
+ } | {
10735
+ type: "function";
10736
+ diagramID: string;
10737
+ nodeID: string;
10738
+ functionID: string;
10739
+ functionName?: string | undefined;
10740
+ } | {
10741
+ type: "prompt";
10742
+ diagramID: string;
10743
+ nodeID: string;
10744
+ promptID: string;
10745
+ } | undefined;
9970
10746
  sourceUrls?: {
9971
10747
  url: string;
9972
10748
  name?: string | undefined;
@@ -10202,21 +10978,52 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
10202
10978
  turnID?: string | undefined;
10203
10979
  handleID?: string | undefined;
10204
10980
  } | {
10205
- type: "completion";
10981
+ type: "debug";
10206
10982
  payload: {
10207
- messageID: string;
10208
- state: "start";
10209
- ai?: boolean | undefined;
10210
- delay?: number | undefined;
10211
- sourceUrls?: {
10212
- url: string;
10213
- name?: string | undefined;
10214
- }[] | undefined;
10215
- } | {
10216
- content: string;
10217
- state: "content";
10218
- } | {
10219
- state: "end";
10983
+ message: string;
10984
+ type?: string | undefined;
10985
+ metadata?: Record<string, unknown> | undefined;
10986
+ ref?: {
10987
+ type: "node";
10988
+ diagramID: string;
10989
+ nodeID: string;
10990
+ nodeType: string;
10991
+ } | {
10992
+ type: "agent";
10993
+ diagramID: string;
10994
+ nodeID: string;
10995
+ agentID: string;
10996
+ agentName?: string | undefined;
10997
+ } | {
10998
+ type: "api-tool";
10999
+ diagramID: string;
11000
+ nodeID: string;
11001
+ apiToolID: string;
11002
+ apiToolName?: string | undefined;
11003
+ } | {
11004
+ type: "integration-tool";
11005
+ diagramID: string;
11006
+ nodeID: string;
11007
+ integrationToolName: string;
11008
+ } | {
11009
+ type: "mcp-integration-tool";
11010
+ diagramID: string;
11011
+ nodeID: string;
11012
+ mcpToolName: string;
11013
+ } | {
11014
+ type: "function";
11015
+ diagramID: string;
11016
+ nodeID: string;
11017
+ functionID: string;
11018
+ functionName?: string | undefined;
11019
+ } | {
11020
+ type: "prompt";
11021
+ diagramID: string;
11022
+ nodeID: string;
11023
+ promptID: string;
11024
+ } | undefined;
11025
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
11026
+ context?: string | undefined;
10220
11027
  };
10221
11028
  time?: number | undefined;
10222
11029
  paths?: {
@@ -10232,11 +11039,21 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
10232
11039
  turnID?: string | undefined;
10233
11040
  handleID?: string | undefined;
10234
11041
  } | {
10235
- type: "debug";
11042
+ type: "completion";
10236
11043
  payload: {
10237
- message: string;
10238
- type?: string | undefined;
10239
- metadata?: Record<string, unknown> | undefined;
11044
+ messageID: string;
11045
+ state: "start";
11046
+ ai?: boolean | undefined;
11047
+ delay?: number | undefined;
11048
+ sourceUrls?: {
11049
+ url: string;
11050
+ name?: string | undefined;
11051
+ }[] | undefined;
11052
+ } | {
11053
+ content: string;
11054
+ state: "content";
11055
+ } | {
11056
+ state: "end";
10240
11057
  ref?: {
10241
11058
  type: "node";
10242
11059
  diagramID: string;
@@ -10276,8 +11093,6 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
10276
11093
  nodeID: string;
10277
11094
  promptID: string;
10278
11095
  } | undefined;
10279
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
10280
- context?: string | undefined;
10281
11096
  };
10282
11097
  time?: number | undefined;
10283
11098
  paths?: {
@@ -10656,8 +11471,47 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
10656
11471
  audio?: {
10657
11472
  src: string;
10658
11473
  } | undefined;
10659
- ai?: boolean | undefined;
10660
- delay?: number | undefined;
11474
+ ai?: boolean | undefined;
11475
+ delay?: number | undefined;
11476
+ ref?: {
11477
+ type: "node";
11478
+ diagramID: string;
11479
+ nodeID: string;
11480
+ nodeType: string;
11481
+ } | {
11482
+ type: "agent";
11483
+ diagramID: string;
11484
+ nodeID: string;
11485
+ agentID: string;
11486
+ agentName?: string | undefined;
11487
+ } | {
11488
+ type: "api-tool";
11489
+ diagramID: string;
11490
+ nodeID: string;
11491
+ apiToolID: string;
11492
+ apiToolName?: string | undefined;
11493
+ } | {
11494
+ type: "integration-tool";
11495
+ diagramID: string;
11496
+ nodeID: string;
11497
+ integrationToolName: string;
11498
+ } | {
11499
+ type: "mcp-integration-tool";
11500
+ diagramID: string;
11501
+ nodeID: string;
11502
+ mcpToolName: string;
11503
+ } | {
11504
+ type: "function";
11505
+ diagramID: string;
11506
+ nodeID: string;
11507
+ functionID: string;
11508
+ functionName?: string | undefined;
11509
+ } | {
11510
+ type: "prompt";
11511
+ diagramID: string;
11512
+ nodeID: string;
11513
+ promptID: string;
11514
+ } | undefined;
10661
11515
  sourceUrls?: {
10662
11516
  url: string;
10663
11517
  name?: string | undefined;
@@ -19885,10 +20739,203 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
19885
20739
  state: "content";
19886
20740
  }>, z.ZodObject<{
19887
20741
  state: z.ZodLiteral<"end">;
20742
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
20743
+ type: z.ZodLiteral<"node">;
20744
+ nodeID: z.ZodString;
20745
+ nodeType: z.ZodString;
20746
+ diagramID: z.ZodString;
20747
+ }, "strip", z.ZodTypeAny, {
20748
+ type: "node";
20749
+ diagramID: string;
20750
+ nodeID: string;
20751
+ nodeType: string;
20752
+ }, {
20753
+ type: "node";
20754
+ diagramID: string;
20755
+ nodeID: string;
20756
+ nodeType: string;
20757
+ }>, z.ZodObject<{
20758
+ type: z.ZodLiteral<"agent">;
20759
+ nodeID: z.ZodString;
20760
+ agentID: z.ZodString;
20761
+ diagramID: z.ZodString;
20762
+ agentName: z.ZodOptional<z.ZodString>;
20763
+ }, "strip", z.ZodTypeAny, {
20764
+ type: "agent";
20765
+ diagramID: string;
20766
+ nodeID: string;
20767
+ agentID: string;
20768
+ agentName?: string | undefined;
20769
+ }, {
20770
+ type: "agent";
20771
+ diagramID: string;
20772
+ nodeID: string;
20773
+ agentID: string;
20774
+ agentName?: string | undefined;
20775
+ }>, z.ZodObject<{
20776
+ type: z.ZodLiteral<"prompt">;
20777
+ nodeID: z.ZodString;
20778
+ promptID: z.ZodString;
20779
+ diagramID: z.ZodString;
20780
+ }, "strip", z.ZodTypeAny, {
20781
+ type: "prompt";
20782
+ diagramID: string;
20783
+ nodeID: string;
20784
+ promptID: string;
20785
+ }, {
20786
+ type: "prompt";
20787
+ diagramID: string;
20788
+ nodeID: string;
20789
+ promptID: string;
20790
+ }>, z.ZodObject<{
20791
+ type: z.ZodLiteral<"api-tool">;
20792
+ nodeID: z.ZodString;
20793
+ diagramID: z.ZodString;
20794
+ apiToolID: z.ZodString;
20795
+ apiToolName: z.ZodOptional<z.ZodString>;
20796
+ }, "strip", z.ZodTypeAny, {
20797
+ type: "api-tool";
20798
+ diagramID: string;
20799
+ nodeID: string;
20800
+ apiToolID: string;
20801
+ apiToolName?: string | undefined;
20802
+ }, {
20803
+ type: "api-tool";
20804
+ diagramID: string;
20805
+ nodeID: string;
20806
+ apiToolID: string;
20807
+ apiToolName?: string | undefined;
20808
+ }>, z.ZodObject<{
20809
+ type: z.ZodLiteral<"function">;
20810
+ nodeID: z.ZodString;
20811
+ diagramID: z.ZodString;
20812
+ functionID: z.ZodString;
20813
+ functionName: z.ZodOptional<z.ZodString>;
20814
+ }, "strip", z.ZodTypeAny, {
20815
+ type: "function";
20816
+ diagramID: string;
20817
+ nodeID: string;
20818
+ functionID: string;
20819
+ functionName?: string | undefined;
20820
+ }, {
20821
+ type: "function";
20822
+ diagramID: string;
20823
+ nodeID: string;
20824
+ functionID: string;
20825
+ functionName?: string | undefined;
20826
+ }>, z.ZodObject<{
20827
+ type: z.ZodLiteral<"integration-tool">;
20828
+ nodeID: z.ZodString;
20829
+ diagramID: z.ZodString;
20830
+ integrationToolName: z.ZodString;
20831
+ }, "strip", z.ZodTypeAny, {
20832
+ type: "integration-tool";
20833
+ diagramID: string;
20834
+ nodeID: string;
20835
+ integrationToolName: string;
20836
+ }, {
20837
+ type: "integration-tool";
20838
+ diagramID: string;
20839
+ nodeID: string;
20840
+ integrationToolName: string;
20841
+ }>, z.ZodObject<{
20842
+ type: z.ZodLiteral<"mcp-integration-tool">;
20843
+ nodeID: z.ZodString;
20844
+ diagramID: z.ZodString;
20845
+ mcpToolName: z.ZodString;
20846
+ }, "strip", z.ZodTypeAny, {
20847
+ type: "mcp-integration-tool";
20848
+ diagramID: string;
20849
+ nodeID: string;
20850
+ mcpToolName: string;
20851
+ }, {
20852
+ type: "mcp-integration-tool";
20853
+ diagramID: string;
20854
+ nodeID: string;
20855
+ mcpToolName: string;
20856
+ }>]>>;
19888
20857
  }, "strip", z.ZodTypeAny, {
19889
20858
  state: "end";
20859
+ ref?: {
20860
+ type: "node";
20861
+ diagramID: string;
20862
+ nodeID: string;
20863
+ nodeType: string;
20864
+ } | {
20865
+ type: "agent";
20866
+ diagramID: string;
20867
+ nodeID: string;
20868
+ agentID: string;
20869
+ agentName?: string | undefined;
20870
+ } | {
20871
+ type: "api-tool";
20872
+ diagramID: string;
20873
+ nodeID: string;
20874
+ apiToolID: string;
20875
+ apiToolName?: string | undefined;
20876
+ } | {
20877
+ type: "integration-tool";
20878
+ diagramID: string;
20879
+ nodeID: string;
20880
+ integrationToolName: string;
20881
+ } | {
20882
+ type: "mcp-integration-tool";
20883
+ diagramID: string;
20884
+ nodeID: string;
20885
+ mcpToolName: string;
20886
+ } | {
20887
+ type: "function";
20888
+ diagramID: string;
20889
+ nodeID: string;
20890
+ functionID: string;
20891
+ functionName?: string | undefined;
20892
+ } | {
20893
+ type: "prompt";
20894
+ diagramID: string;
20895
+ nodeID: string;
20896
+ promptID: string;
20897
+ } | undefined;
19890
20898
  }, {
19891
20899
  state: "end";
20900
+ ref?: {
20901
+ type: "node";
20902
+ diagramID: string;
20903
+ nodeID: string;
20904
+ nodeType: string;
20905
+ } | {
20906
+ type: "agent";
20907
+ diagramID: string;
20908
+ nodeID: string;
20909
+ agentID: string;
20910
+ agentName?: string | undefined;
20911
+ } | {
20912
+ type: "api-tool";
20913
+ diagramID: string;
20914
+ nodeID: string;
20915
+ apiToolID: string;
20916
+ apiToolName?: string | undefined;
20917
+ } | {
20918
+ type: "integration-tool";
20919
+ diagramID: string;
20920
+ nodeID: string;
20921
+ integrationToolName: string;
20922
+ } | {
20923
+ type: "mcp-integration-tool";
20924
+ diagramID: string;
20925
+ nodeID: string;
20926
+ mcpToolName: string;
20927
+ } | {
20928
+ type: "function";
20929
+ diagramID: string;
20930
+ nodeID: string;
20931
+ functionID: string;
20932
+ functionName?: string | undefined;
20933
+ } | {
20934
+ type: "prompt";
20935
+ diagramID: string;
20936
+ nodeID: string;
20937
+ promptID: string;
20938
+ } | undefined;
19892
20939
  }>]>;
19893
20940
  }, "strip", z.ZodTypeAny, {
19894
20941
  type: "completion";
@@ -19906,6 +20953,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
19906
20953
  state: "content";
19907
20954
  } | {
19908
20955
  state: "end";
20956
+ ref?: {
20957
+ type: "node";
20958
+ diagramID: string;
20959
+ nodeID: string;
20960
+ nodeType: string;
20961
+ } | {
20962
+ type: "agent";
20963
+ diagramID: string;
20964
+ nodeID: string;
20965
+ agentID: string;
20966
+ agentName?: string | undefined;
20967
+ } | {
20968
+ type: "api-tool";
20969
+ diagramID: string;
20970
+ nodeID: string;
20971
+ apiToolID: string;
20972
+ apiToolName?: string | undefined;
20973
+ } | {
20974
+ type: "integration-tool";
20975
+ diagramID: string;
20976
+ nodeID: string;
20977
+ integrationToolName: string;
20978
+ } | {
20979
+ type: "mcp-integration-tool";
20980
+ diagramID: string;
20981
+ nodeID: string;
20982
+ mcpToolName: string;
20983
+ } | {
20984
+ type: "function";
20985
+ diagramID: string;
20986
+ nodeID: string;
20987
+ functionID: string;
20988
+ functionName?: string | undefined;
20989
+ } | {
20990
+ type: "prompt";
20991
+ diagramID: string;
20992
+ nodeID: string;
20993
+ promptID: string;
20994
+ } | undefined;
19909
20995
  };
19910
20996
  time?: number | undefined;
19911
20997
  paths?: {
@@ -19936,6 +21022,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
19936
21022
  state: "content";
19937
21023
  } | {
19938
21024
  state: "end";
21025
+ ref?: {
21026
+ type: "node";
21027
+ diagramID: string;
21028
+ nodeID: string;
21029
+ nodeType: string;
21030
+ } | {
21031
+ type: "agent";
21032
+ diagramID: string;
21033
+ nodeID: string;
21034
+ agentID: string;
21035
+ agentName?: string | undefined;
21036
+ } | {
21037
+ type: "api-tool";
21038
+ diagramID: string;
21039
+ nodeID: string;
21040
+ apiToolID: string;
21041
+ apiToolName?: string | undefined;
21042
+ } | {
21043
+ type: "integration-tool";
21044
+ diagramID: string;
21045
+ nodeID: string;
21046
+ integrationToolName: string;
21047
+ } | {
21048
+ type: "mcp-integration-tool";
21049
+ diagramID: string;
21050
+ nodeID: string;
21051
+ mcpToolName: string;
21052
+ } | {
21053
+ type: "function";
21054
+ diagramID: string;
21055
+ nodeID: string;
21056
+ functionID: string;
21057
+ functionName?: string | undefined;
21058
+ } | {
21059
+ type: "prompt";
21060
+ diagramID: string;
21061
+ nodeID: string;
21062
+ promptID: string;
21063
+ } | undefined;
19939
21064
  };
19940
21065
  time?: number | undefined;
19941
21066
  paths?: {
@@ -21386,6 +22511,121 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
21386
22511
  ai: z.ZodOptional<z.ZodBoolean>;
21387
22512
  message: z.ZodString;
21388
22513
  } & {
22514
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22515
+ type: z.ZodLiteral<"node">;
22516
+ nodeID: z.ZodString;
22517
+ nodeType: z.ZodString;
22518
+ diagramID: z.ZodString;
22519
+ }, "strip", z.ZodTypeAny, {
22520
+ type: "node";
22521
+ diagramID: string;
22522
+ nodeID: string;
22523
+ nodeType: string;
22524
+ }, {
22525
+ type: "node";
22526
+ diagramID: string;
22527
+ nodeID: string;
22528
+ nodeType: string;
22529
+ }>, z.ZodObject<{
22530
+ type: z.ZodLiteral<"agent">;
22531
+ nodeID: z.ZodString;
22532
+ agentID: z.ZodString;
22533
+ diagramID: z.ZodString;
22534
+ agentName: z.ZodOptional<z.ZodString>;
22535
+ }, "strip", z.ZodTypeAny, {
22536
+ type: "agent";
22537
+ diagramID: string;
22538
+ nodeID: string;
22539
+ agentID: string;
22540
+ agentName?: string | undefined;
22541
+ }, {
22542
+ type: "agent";
22543
+ diagramID: string;
22544
+ nodeID: string;
22545
+ agentID: string;
22546
+ agentName?: string | undefined;
22547
+ }>, z.ZodObject<{
22548
+ type: z.ZodLiteral<"prompt">;
22549
+ nodeID: z.ZodString;
22550
+ promptID: z.ZodString;
22551
+ diagramID: z.ZodString;
22552
+ }, "strip", z.ZodTypeAny, {
22553
+ type: "prompt";
22554
+ diagramID: string;
22555
+ nodeID: string;
22556
+ promptID: string;
22557
+ }, {
22558
+ type: "prompt";
22559
+ diagramID: string;
22560
+ nodeID: string;
22561
+ promptID: string;
22562
+ }>, z.ZodObject<{
22563
+ type: z.ZodLiteral<"api-tool">;
22564
+ nodeID: z.ZodString;
22565
+ diagramID: z.ZodString;
22566
+ apiToolID: z.ZodString;
22567
+ apiToolName: z.ZodOptional<z.ZodString>;
22568
+ }, "strip", z.ZodTypeAny, {
22569
+ type: "api-tool";
22570
+ diagramID: string;
22571
+ nodeID: string;
22572
+ apiToolID: string;
22573
+ apiToolName?: string | undefined;
22574
+ }, {
22575
+ type: "api-tool";
22576
+ diagramID: string;
22577
+ nodeID: string;
22578
+ apiToolID: string;
22579
+ apiToolName?: string | undefined;
22580
+ }>, z.ZodObject<{
22581
+ type: z.ZodLiteral<"function">;
22582
+ nodeID: z.ZodString;
22583
+ diagramID: z.ZodString;
22584
+ functionID: z.ZodString;
22585
+ functionName: z.ZodOptional<z.ZodString>;
22586
+ }, "strip", z.ZodTypeAny, {
22587
+ type: "function";
22588
+ diagramID: string;
22589
+ nodeID: string;
22590
+ functionID: string;
22591
+ functionName?: string | undefined;
22592
+ }, {
22593
+ type: "function";
22594
+ diagramID: string;
22595
+ nodeID: string;
22596
+ functionID: string;
22597
+ functionName?: string | undefined;
22598
+ }>, z.ZodObject<{
22599
+ type: z.ZodLiteral<"integration-tool">;
22600
+ nodeID: z.ZodString;
22601
+ diagramID: z.ZodString;
22602
+ integrationToolName: z.ZodString;
22603
+ }, "strip", z.ZodTypeAny, {
22604
+ type: "integration-tool";
22605
+ diagramID: string;
22606
+ nodeID: string;
22607
+ integrationToolName: string;
22608
+ }, {
22609
+ type: "integration-tool";
22610
+ diagramID: string;
22611
+ nodeID: string;
22612
+ integrationToolName: string;
22613
+ }>, z.ZodObject<{
22614
+ type: z.ZodLiteral<"mcp-integration-tool">;
22615
+ nodeID: z.ZodString;
22616
+ diagramID: z.ZodString;
22617
+ mcpToolName: z.ZodString;
22618
+ }, "strip", z.ZodTypeAny, {
22619
+ type: "mcp-integration-tool";
22620
+ diagramID: string;
22621
+ nodeID: string;
22622
+ mcpToolName: string;
22623
+ }, {
22624
+ type: "mcp-integration-tool";
22625
+ diagramID: string;
22626
+ nodeID: string;
22627
+ mcpToolName: string;
22628
+ }>]>>;
21389
22629
  slate: z.ZodObject<{
21390
22630
  id: z.ZodString;
21391
22631
  content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
@@ -21429,6 +22669,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
21429
22669
  } | undefined;
21430
22670
  ai?: boolean | undefined;
21431
22671
  delay?: number | undefined;
22672
+ ref?: {
22673
+ type: "node";
22674
+ diagramID: string;
22675
+ nodeID: string;
22676
+ nodeType: string;
22677
+ } | {
22678
+ type: "agent";
22679
+ diagramID: string;
22680
+ nodeID: string;
22681
+ agentID: string;
22682
+ agentName?: string | undefined;
22683
+ } | {
22684
+ type: "api-tool";
22685
+ diagramID: string;
22686
+ nodeID: string;
22687
+ apiToolID: string;
22688
+ apiToolName?: string | undefined;
22689
+ } | {
22690
+ type: "integration-tool";
22691
+ diagramID: string;
22692
+ nodeID: string;
22693
+ integrationToolName: string;
22694
+ } | {
22695
+ type: "mcp-integration-tool";
22696
+ diagramID: string;
22697
+ nodeID: string;
22698
+ mcpToolName: string;
22699
+ } | {
22700
+ type: "function";
22701
+ diagramID: string;
22702
+ nodeID: string;
22703
+ functionID: string;
22704
+ functionName?: string | undefined;
22705
+ } | {
22706
+ type: "prompt";
22707
+ diagramID: string;
22708
+ nodeID: string;
22709
+ promptID: string;
22710
+ } | undefined;
21432
22711
  sourceUrls?: {
21433
22712
  url: string;
21434
22713
  name?: string | undefined;
@@ -21446,6 +22725,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
21446
22725
  } | undefined;
21447
22726
  ai?: boolean | undefined;
21448
22727
  delay?: number | undefined;
22728
+ ref?: {
22729
+ type: "node";
22730
+ diagramID: string;
22731
+ nodeID: string;
22732
+ nodeType: string;
22733
+ } | {
22734
+ type: "agent";
22735
+ diagramID: string;
22736
+ nodeID: string;
22737
+ agentID: string;
22738
+ agentName?: string | undefined;
22739
+ } | {
22740
+ type: "api-tool";
22741
+ diagramID: string;
22742
+ nodeID: string;
22743
+ apiToolID: string;
22744
+ apiToolName?: string | undefined;
22745
+ } | {
22746
+ type: "integration-tool";
22747
+ diagramID: string;
22748
+ nodeID: string;
22749
+ integrationToolName: string;
22750
+ } | {
22751
+ type: "mcp-integration-tool";
22752
+ diagramID: string;
22753
+ nodeID: string;
22754
+ mcpToolName: string;
22755
+ } | {
22756
+ type: "function";
22757
+ diagramID: string;
22758
+ nodeID: string;
22759
+ functionID: string;
22760
+ functionName?: string | undefined;
22761
+ } | {
22762
+ type: "prompt";
22763
+ diagramID: string;
22764
+ nodeID: string;
22765
+ promptID: string;
22766
+ } | undefined;
21449
22767
  sourceUrls?: {
21450
22768
  url: string;
21451
22769
  name?: string | undefined;
@@ -21466,6 +22784,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
21466
22784
  } | undefined;
21467
22785
  ai?: boolean | undefined;
21468
22786
  delay?: number | undefined;
22787
+ ref?: {
22788
+ type: "node";
22789
+ diagramID: string;
22790
+ nodeID: string;
22791
+ nodeType: string;
22792
+ } | {
22793
+ type: "agent";
22794
+ diagramID: string;
22795
+ nodeID: string;
22796
+ agentID: string;
22797
+ agentName?: string | undefined;
22798
+ } | {
22799
+ type: "api-tool";
22800
+ diagramID: string;
22801
+ nodeID: string;
22802
+ apiToolID: string;
22803
+ apiToolName?: string | undefined;
22804
+ } | {
22805
+ type: "integration-tool";
22806
+ diagramID: string;
22807
+ nodeID: string;
22808
+ integrationToolName: string;
22809
+ } | {
22810
+ type: "mcp-integration-tool";
22811
+ diagramID: string;
22812
+ nodeID: string;
22813
+ mcpToolName: string;
22814
+ } | {
22815
+ type: "function";
22816
+ diagramID: string;
22817
+ nodeID: string;
22818
+ functionID: string;
22819
+ functionName?: string | undefined;
22820
+ } | {
22821
+ type: "prompt";
22822
+ diagramID: string;
22823
+ nodeID: string;
22824
+ promptID: string;
22825
+ } | undefined;
21469
22826
  sourceUrls?: {
21470
22827
  url: string;
21471
22828
  name?: string | undefined;
@@ -21497,8 +22854,47 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
21497
22854
  audio?: {
21498
22855
  src: string;
21499
22856
  } | undefined;
21500
- ai?: boolean | undefined;
21501
- delay?: number | undefined;
22857
+ ai?: boolean | undefined;
22858
+ delay?: number | undefined;
22859
+ ref?: {
22860
+ type: "node";
22861
+ diagramID: string;
22862
+ nodeID: string;
22863
+ nodeType: string;
22864
+ } | {
22865
+ type: "agent";
22866
+ diagramID: string;
22867
+ nodeID: string;
22868
+ agentID: string;
22869
+ agentName?: string | undefined;
22870
+ } | {
22871
+ type: "api-tool";
22872
+ diagramID: string;
22873
+ nodeID: string;
22874
+ apiToolID: string;
22875
+ apiToolName?: string | undefined;
22876
+ } | {
22877
+ type: "integration-tool";
22878
+ diagramID: string;
22879
+ nodeID: string;
22880
+ integrationToolName: string;
22881
+ } | {
22882
+ type: "mcp-integration-tool";
22883
+ diagramID: string;
22884
+ nodeID: string;
22885
+ mcpToolName: string;
22886
+ } | {
22887
+ type: "function";
22888
+ diagramID: string;
22889
+ nodeID: string;
22890
+ functionID: string;
22891
+ functionName?: string | undefined;
22892
+ } | {
22893
+ type: "prompt";
22894
+ diagramID: string;
22895
+ nodeID: string;
22896
+ promptID: string;
22897
+ } | undefined;
21502
22898
  sourceUrls?: {
21503
22899
  url: string;
21504
22900
  name?: string | undefined;
@@ -22627,21 +24023,52 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
22627
24023
  turnID?: string | undefined;
22628
24024
  handleID?: string | undefined;
22629
24025
  } | {
22630
- type: "completion";
24026
+ type: "debug";
22631
24027
  payload: {
22632
- messageID: string;
22633
- state: "start";
22634
- ai?: boolean | undefined;
22635
- delay?: number | undefined;
22636
- sourceUrls?: {
22637
- url: string;
22638
- name?: string | undefined;
22639
- }[] | undefined;
22640
- } | {
22641
- content: string;
22642
- state: "content";
22643
- } | {
22644
- state: "end";
24028
+ message: string;
24029
+ type?: string | undefined;
24030
+ metadata?: Record<string, unknown> | undefined;
24031
+ ref?: {
24032
+ type: "node";
24033
+ diagramID: string;
24034
+ nodeID: string;
24035
+ nodeType: string;
24036
+ } | {
24037
+ type: "agent";
24038
+ diagramID: string;
24039
+ nodeID: string;
24040
+ agentID: string;
24041
+ agentName?: string | undefined;
24042
+ } | {
24043
+ type: "api-tool";
24044
+ diagramID: string;
24045
+ nodeID: string;
24046
+ apiToolID: string;
24047
+ apiToolName?: string | undefined;
24048
+ } | {
24049
+ type: "integration-tool";
24050
+ diagramID: string;
24051
+ nodeID: string;
24052
+ integrationToolName: string;
24053
+ } | {
24054
+ type: "mcp-integration-tool";
24055
+ diagramID: string;
24056
+ nodeID: string;
24057
+ mcpToolName: string;
24058
+ } | {
24059
+ type: "function";
24060
+ diagramID: string;
24061
+ nodeID: string;
24062
+ functionID: string;
24063
+ functionName?: string | undefined;
24064
+ } | {
24065
+ type: "prompt";
24066
+ diagramID: string;
24067
+ nodeID: string;
24068
+ promptID: string;
24069
+ } | undefined;
24070
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
24071
+ context?: string | undefined;
22645
24072
  };
22646
24073
  time?: number | undefined;
22647
24074
  paths?: {
@@ -22657,11 +24084,21 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
22657
24084
  turnID?: string | undefined;
22658
24085
  handleID?: string | undefined;
22659
24086
  } | {
22660
- type: "debug";
24087
+ type: "completion";
22661
24088
  payload: {
22662
- message: string;
22663
- type?: string | undefined;
22664
- metadata?: Record<string, unknown> | undefined;
24089
+ messageID: string;
24090
+ state: "start";
24091
+ ai?: boolean | undefined;
24092
+ delay?: number | undefined;
24093
+ sourceUrls?: {
24094
+ url: string;
24095
+ name?: string | undefined;
24096
+ }[] | undefined;
24097
+ } | {
24098
+ content: string;
24099
+ state: "content";
24100
+ } | {
24101
+ state: "end";
22665
24102
  ref?: {
22666
24103
  type: "node";
22667
24104
  diagramID: string;
@@ -22701,8 +24138,6 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
22701
24138
  nodeID: string;
22702
24139
  promptID: string;
22703
24140
  } | undefined;
22704
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
22705
- context?: string | undefined;
22706
24141
  };
22707
24142
  time?: number | undefined;
22708
24143
  paths?: {
@@ -23083,6 +24518,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
23083
24518
  } | undefined;
23084
24519
  ai?: boolean | undefined;
23085
24520
  delay?: number | undefined;
24521
+ ref?: {
24522
+ type: "node";
24523
+ diagramID: string;
24524
+ nodeID: string;
24525
+ nodeType: string;
24526
+ } | {
24527
+ type: "agent";
24528
+ diagramID: string;
24529
+ nodeID: string;
24530
+ agentID: string;
24531
+ agentName?: string | undefined;
24532
+ } | {
24533
+ type: "api-tool";
24534
+ diagramID: string;
24535
+ nodeID: string;
24536
+ apiToolID: string;
24537
+ apiToolName?: string | undefined;
24538
+ } | {
24539
+ type: "integration-tool";
24540
+ diagramID: string;
24541
+ nodeID: string;
24542
+ integrationToolName: string;
24543
+ } | {
24544
+ type: "mcp-integration-tool";
24545
+ diagramID: string;
24546
+ nodeID: string;
24547
+ mcpToolName: string;
24548
+ } | {
24549
+ type: "function";
24550
+ diagramID: string;
24551
+ nodeID: string;
24552
+ functionID: string;
24553
+ functionName?: string | undefined;
24554
+ } | {
24555
+ type: "prompt";
24556
+ diagramID: string;
24557
+ nodeID: string;
24558
+ promptID: string;
24559
+ } | undefined;
23086
24560
  sourceUrls?: {
23087
24561
  url: string;
23088
24562
  name?: string | undefined;
@@ -23315,21 +24789,52 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
23315
24789
  turnID?: string | undefined;
23316
24790
  handleID?: string | undefined;
23317
24791
  } | {
23318
- type: "completion";
24792
+ type: "debug";
23319
24793
  payload: {
23320
- messageID: string;
23321
- state: "start";
23322
- ai?: boolean | undefined;
23323
- delay?: number | undefined;
23324
- sourceUrls?: {
23325
- url: string;
23326
- name?: string | undefined;
23327
- }[] | undefined;
23328
- } | {
23329
- content: string;
23330
- state: "content";
23331
- } | {
23332
- state: "end";
24794
+ message: string;
24795
+ type?: string | undefined;
24796
+ metadata?: Record<string, unknown> | undefined;
24797
+ ref?: {
24798
+ type: "node";
24799
+ diagramID: string;
24800
+ nodeID: string;
24801
+ nodeType: string;
24802
+ } | {
24803
+ type: "agent";
24804
+ diagramID: string;
24805
+ nodeID: string;
24806
+ agentID: string;
24807
+ agentName?: string | undefined;
24808
+ } | {
24809
+ type: "api-tool";
24810
+ diagramID: string;
24811
+ nodeID: string;
24812
+ apiToolID: string;
24813
+ apiToolName?: string | undefined;
24814
+ } | {
24815
+ type: "integration-tool";
24816
+ diagramID: string;
24817
+ nodeID: string;
24818
+ integrationToolName: string;
24819
+ } | {
24820
+ type: "mcp-integration-tool";
24821
+ diagramID: string;
24822
+ nodeID: string;
24823
+ mcpToolName: string;
24824
+ } | {
24825
+ type: "function";
24826
+ diagramID: string;
24827
+ nodeID: string;
24828
+ functionID: string;
24829
+ functionName?: string | undefined;
24830
+ } | {
24831
+ type: "prompt";
24832
+ diagramID: string;
24833
+ nodeID: string;
24834
+ promptID: string;
24835
+ } | undefined;
24836
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
24837
+ context?: string | undefined;
23333
24838
  };
23334
24839
  time?: number | undefined;
23335
24840
  paths?: {
@@ -23345,11 +24850,21 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
23345
24850
  turnID?: string | undefined;
23346
24851
  handleID?: string | undefined;
23347
24852
  } | {
23348
- type: "debug";
24853
+ type: "completion";
23349
24854
  payload: {
23350
- message: string;
23351
- type?: string | undefined;
23352
- metadata?: Record<string, unknown> | undefined;
24855
+ messageID: string;
24856
+ state: "start";
24857
+ ai?: boolean | undefined;
24858
+ delay?: number | undefined;
24859
+ sourceUrls?: {
24860
+ url: string;
24861
+ name?: string | undefined;
24862
+ }[] | undefined;
24863
+ } | {
24864
+ content: string;
24865
+ state: "content";
24866
+ } | {
24867
+ state: "end";
23353
24868
  ref?: {
23354
24869
  type: "node";
23355
24870
  diagramID: string;
@@ -23389,8 +24904,6 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
23389
24904
  nodeID: string;
23390
24905
  promptID: string;
23391
24906
  } | undefined;
23392
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
23393
- context?: string | undefined;
23394
24907
  };
23395
24908
  time?: number | undefined;
23396
24909
  paths?: {
@@ -23769,8 +25282,47 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
23769
25282
  audio?: {
23770
25283
  src: string;
23771
25284
  } | undefined;
23772
- ai?: boolean | undefined;
23773
- delay?: number | undefined;
25285
+ ai?: boolean | undefined;
25286
+ delay?: number | undefined;
25287
+ ref?: {
25288
+ type: "node";
25289
+ diagramID: string;
25290
+ nodeID: string;
25291
+ nodeType: string;
25292
+ } | {
25293
+ type: "agent";
25294
+ diagramID: string;
25295
+ nodeID: string;
25296
+ agentID: string;
25297
+ agentName?: string | undefined;
25298
+ } | {
25299
+ type: "api-tool";
25300
+ diagramID: string;
25301
+ nodeID: string;
25302
+ apiToolID: string;
25303
+ apiToolName?: string | undefined;
25304
+ } | {
25305
+ type: "integration-tool";
25306
+ diagramID: string;
25307
+ nodeID: string;
25308
+ integrationToolName: string;
25309
+ } | {
25310
+ type: "mcp-integration-tool";
25311
+ diagramID: string;
25312
+ nodeID: string;
25313
+ mcpToolName: string;
25314
+ } | {
25315
+ type: "function";
25316
+ diagramID: string;
25317
+ nodeID: string;
25318
+ functionID: string;
25319
+ functionName?: string | undefined;
25320
+ } | {
25321
+ type: "prompt";
25322
+ diagramID: string;
25323
+ nodeID: string;
25324
+ promptID: string;
25325
+ } | undefined;
23774
25326
  sourceUrls?: {
23775
25327
  url: string;
23776
25328
  name?: string | undefined;
@@ -24006,21 +25558,52 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24006
25558
  turnID?: string | undefined;
24007
25559
  handleID?: string | undefined;
24008
25560
  } | {
24009
- type: "completion";
25561
+ type: "debug";
24010
25562
  payload: {
24011
- messageID: string;
24012
- state: "start";
24013
- ai?: boolean | undefined;
24014
- delay?: number | undefined;
24015
- sourceUrls?: {
24016
- url: string;
24017
- name?: string | undefined;
24018
- }[] | undefined;
24019
- } | {
24020
- content: string;
24021
- state: "content";
24022
- } | {
24023
- state: "end";
25563
+ message: string;
25564
+ type?: string | undefined;
25565
+ metadata?: Record<string, unknown> | undefined;
25566
+ ref?: {
25567
+ type: "node";
25568
+ diagramID: string;
25569
+ nodeID: string;
25570
+ nodeType: string;
25571
+ } | {
25572
+ type: "agent";
25573
+ diagramID: string;
25574
+ nodeID: string;
25575
+ agentID: string;
25576
+ agentName?: string | undefined;
25577
+ } | {
25578
+ type: "api-tool";
25579
+ diagramID: string;
25580
+ nodeID: string;
25581
+ apiToolID: string;
25582
+ apiToolName?: string | undefined;
25583
+ } | {
25584
+ type: "integration-tool";
25585
+ diagramID: string;
25586
+ nodeID: string;
25587
+ integrationToolName: string;
25588
+ } | {
25589
+ type: "mcp-integration-tool";
25590
+ diagramID: string;
25591
+ nodeID: string;
25592
+ mcpToolName: string;
25593
+ } | {
25594
+ type: "function";
25595
+ diagramID: string;
25596
+ nodeID: string;
25597
+ functionID: string;
25598
+ functionName?: string | undefined;
25599
+ } | {
25600
+ type: "prompt";
25601
+ diagramID: string;
25602
+ nodeID: string;
25603
+ promptID: string;
25604
+ } | undefined;
25605
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
25606
+ context?: string | undefined;
24024
25607
  };
24025
25608
  time?: number | undefined;
24026
25609
  paths?: {
@@ -24036,11 +25619,21 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24036
25619
  turnID?: string | undefined;
24037
25620
  handleID?: string | undefined;
24038
25621
  } | {
24039
- type: "debug";
25622
+ type: "completion";
24040
25623
  payload: {
24041
- message: string;
24042
- type?: string | undefined;
24043
- metadata?: Record<string, unknown> | undefined;
25624
+ messageID: string;
25625
+ state: "start";
25626
+ ai?: boolean | undefined;
25627
+ delay?: number | undefined;
25628
+ sourceUrls?: {
25629
+ url: string;
25630
+ name?: string | undefined;
25631
+ }[] | undefined;
25632
+ } | {
25633
+ content: string;
25634
+ state: "content";
25635
+ } | {
25636
+ state: "end";
24044
25637
  ref?: {
24045
25638
  type: "node";
24046
25639
  diagramID: string;
@@ -24080,8 +25673,6 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24080
25673
  nodeID: string;
24081
25674
  promptID: string;
24082
25675
  } | undefined;
24083
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
24084
- context?: string | undefined;
24085
25676
  };
24086
25677
  time?: number | undefined;
24087
25678
  paths?: {
@@ -24462,6 +26053,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24462
26053
  } | undefined;
24463
26054
  ai?: boolean | undefined;
24464
26055
  delay?: number | undefined;
26056
+ ref?: {
26057
+ type: "node";
26058
+ diagramID: string;
26059
+ nodeID: string;
26060
+ nodeType: string;
26061
+ } | {
26062
+ type: "agent";
26063
+ diagramID: string;
26064
+ nodeID: string;
26065
+ agentID: string;
26066
+ agentName?: string | undefined;
26067
+ } | {
26068
+ type: "api-tool";
26069
+ diagramID: string;
26070
+ nodeID: string;
26071
+ apiToolID: string;
26072
+ apiToolName?: string | undefined;
26073
+ } | {
26074
+ type: "integration-tool";
26075
+ diagramID: string;
26076
+ nodeID: string;
26077
+ integrationToolName: string;
26078
+ } | {
26079
+ type: "mcp-integration-tool";
26080
+ diagramID: string;
26081
+ nodeID: string;
26082
+ mcpToolName: string;
26083
+ } | {
26084
+ type: "function";
26085
+ diagramID: string;
26086
+ nodeID: string;
26087
+ functionID: string;
26088
+ functionName?: string | undefined;
26089
+ } | {
26090
+ type: "prompt";
26091
+ diagramID: string;
26092
+ nodeID: string;
26093
+ promptID: string;
26094
+ } | undefined;
24465
26095
  sourceUrls?: {
24466
26096
  url: string;
24467
26097
  name?: string | undefined;
@@ -24697,21 +26327,52 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24697
26327
  turnID?: string | undefined;
24698
26328
  handleID?: string | undefined;
24699
26329
  } | {
24700
- type: "completion";
26330
+ type: "debug";
24701
26331
  payload: {
24702
- messageID: string;
24703
- state: "start";
24704
- ai?: boolean | undefined;
24705
- delay?: number | undefined;
24706
- sourceUrls?: {
24707
- url: string;
24708
- name?: string | undefined;
24709
- }[] | undefined;
24710
- } | {
24711
- content: string;
24712
- state: "content";
24713
- } | {
24714
- state: "end";
26332
+ message: string;
26333
+ type?: string | undefined;
26334
+ metadata?: Record<string, unknown> | undefined;
26335
+ ref?: {
26336
+ type: "node";
26337
+ diagramID: string;
26338
+ nodeID: string;
26339
+ nodeType: string;
26340
+ } | {
26341
+ type: "agent";
26342
+ diagramID: string;
26343
+ nodeID: string;
26344
+ agentID: string;
26345
+ agentName?: string | undefined;
26346
+ } | {
26347
+ type: "api-tool";
26348
+ diagramID: string;
26349
+ nodeID: string;
26350
+ apiToolID: string;
26351
+ apiToolName?: string | undefined;
26352
+ } | {
26353
+ type: "integration-tool";
26354
+ diagramID: string;
26355
+ nodeID: string;
26356
+ integrationToolName: string;
26357
+ } | {
26358
+ type: "mcp-integration-tool";
26359
+ diagramID: string;
26360
+ nodeID: string;
26361
+ mcpToolName: string;
26362
+ } | {
26363
+ type: "function";
26364
+ diagramID: string;
26365
+ nodeID: string;
26366
+ functionID: string;
26367
+ functionName?: string | undefined;
26368
+ } | {
26369
+ type: "prompt";
26370
+ diagramID: string;
26371
+ nodeID: string;
26372
+ promptID: string;
26373
+ } | undefined;
26374
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
26375
+ context?: string | undefined;
24715
26376
  };
24716
26377
  time?: number | undefined;
24717
26378
  paths?: {
@@ -24727,11 +26388,21 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24727
26388
  turnID?: string | undefined;
24728
26389
  handleID?: string | undefined;
24729
26390
  } | {
24730
- type: "debug";
26391
+ type: "completion";
24731
26392
  payload: {
24732
- message: string;
24733
- type?: string | undefined;
24734
- metadata?: Record<string, unknown> | undefined;
26393
+ messageID: string;
26394
+ state: "start";
26395
+ ai?: boolean | undefined;
26396
+ delay?: number | undefined;
26397
+ sourceUrls?: {
26398
+ url: string;
26399
+ name?: string | undefined;
26400
+ }[] | undefined;
26401
+ } | {
26402
+ content: string;
26403
+ state: "content";
26404
+ } | {
26405
+ state: "end";
24735
26406
  ref?: {
24736
26407
  type: "node";
24737
26408
  diagramID: string;
@@ -24771,8 +26442,6 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
24771
26442
  nodeID: string;
24772
26443
  promptID: string;
24773
26444
  } | undefined;
24774
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
24775
- context?: string | undefined;
24776
26445
  };
24777
26446
  time?: number | undefined;
24778
26447
  paths?: {
@@ -25153,6 +26822,45 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25153
26822
  } | undefined;
25154
26823
  ai?: boolean | undefined;
25155
26824
  delay?: number | undefined;
26825
+ ref?: {
26826
+ type: "node";
26827
+ diagramID: string;
26828
+ nodeID: string;
26829
+ nodeType: string;
26830
+ } | {
26831
+ type: "agent";
26832
+ diagramID: string;
26833
+ nodeID: string;
26834
+ agentID: string;
26835
+ agentName?: string | undefined;
26836
+ } | {
26837
+ type: "api-tool";
26838
+ diagramID: string;
26839
+ nodeID: string;
26840
+ apiToolID: string;
26841
+ apiToolName?: string | undefined;
26842
+ } | {
26843
+ type: "integration-tool";
26844
+ diagramID: string;
26845
+ nodeID: string;
26846
+ integrationToolName: string;
26847
+ } | {
26848
+ type: "mcp-integration-tool";
26849
+ diagramID: string;
26850
+ nodeID: string;
26851
+ mcpToolName: string;
26852
+ } | {
26853
+ type: "function";
26854
+ diagramID: string;
26855
+ nodeID: string;
26856
+ functionID: string;
26857
+ functionName?: string | undefined;
26858
+ } | {
26859
+ type: "prompt";
26860
+ diagramID: string;
26861
+ nodeID: string;
26862
+ promptID: string;
26863
+ } | undefined;
25156
26864
  sourceUrls?: {
25157
26865
  url: string;
25158
26866
  name?: string | undefined;