@ideascol/agents-generator-sdk 0.1.5 → 0.2.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.
- package/dist/bin/cli.js +580 -6
- package/dist/index.js +584 -7
- package/dist/lib/clients/agents-generator/index.d.ts +7 -0
- package/dist/lib/clients/agents-generator/services/AdminAgentsService.d.ts +85 -0
- package/dist/lib/clients/agents-generator/services/AdminConversationsService.d.ts +44 -0
- package/dist/lib/clients/agents-generator/services/AdminCredentialsService.d.ts +53 -0
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +109 -0
- package/dist/lib/clients/agents-generator/services/AdminMcpServersService.d.ts +30 -0
- package/dist/lib/clients/agents-generator/services/AgentService.d.ts +1 -2
- package/dist/lib/clients/agents-generator/services/PublicAgentsService.d.ts +12 -0
- package/dist/lib/clients/agents-generator/services/PublicConversationsService.d.ts +29 -0
- package/dist/lib/index.d.ts +40 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-2ca05a009ba704a733f8de2cabfb9379a45d1b79",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -401,15 +401,488 @@ var init_request = __esm(() => {
|
|
|
401
401
|
init_CancelablePromise();
|
|
402
402
|
});
|
|
403
403
|
|
|
404
|
+
// src/lib/clients/agents-generator/services/AdminAgentsService.ts
|
|
405
|
+
class AdminAgentsService {
|
|
406
|
+
static createAgent(requestBody) {
|
|
407
|
+
return request(OpenAPI, {
|
|
408
|
+
method: "POST",
|
|
409
|
+
url: "/agents",
|
|
410
|
+
body: requestBody,
|
|
411
|
+
mediaType: "application/json",
|
|
412
|
+
errors: {
|
|
413
|
+
422: `Validation Error`
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
static getAgents(skip, limit = 100) {
|
|
418
|
+
return request(OpenAPI, {
|
|
419
|
+
method: "GET",
|
|
420
|
+
url: "/agents",
|
|
421
|
+
query: {
|
|
422
|
+
skip,
|
|
423
|
+
limit
|
|
424
|
+
},
|
|
425
|
+
errors: {
|
|
426
|
+
422: `Validation Error`
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
static updateAgent(agentId, requestBody, userId) {
|
|
431
|
+
return request(OpenAPI, {
|
|
432
|
+
method: "PUT",
|
|
433
|
+
url: "/agents/{agent_id}",
|
|
434
|
+
path: {
|
|
435
|
+
agent_id: agentId
|
|
436
|
+
},
|
|
437
|
+
query: {
|
|
438
|
+
user_id: userId
|
|
439
|
+
},
|
|
440
|
+
body: requestBody,
|
|
441
|
+
mediaType: "application/json",
|
|
442
|
+
errors: {
|
|
443
|
+
422: `Validation Error`
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
static getAgent(agentId, userId) {
|
|
448
|
+
return request(OpenAPI, {
|
|
449
|
+
method: "GET",
|
|
450
|
+
url: "/agents/{agent_id}",
|
|
451
|
+
path: {
|
|
452
|
+
agent_id: agentId
|
|
453
|
+
},
|
|
454
|
+
query: {
|
|
455
|
+
user_id: userId
|
|
456
|
+
},
|
|
457
|
+
errors: {
|
|
458
|
+
422: `Validation Error`
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
static deleteAgent(agentId, userId) {
|
|
463
|
+
return request(OpenAPI, {
|
|
464
|
+
method: "DELETE",
|
|
465
|
+
url: "/agents/{agent_id}",
|
|
466
|
+
path: {
|
|
467
|
+
agent_id: agentId
|
|
468
|
+
},
|
|
469
|
+
query: {
|
|
470
|
+
user_id: userId
|
|
471
|
+
},
|
|
472
|
+
errors: {
|
|
473
|
+
422: `Validation Error`
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
static initializeAgent(agentId) {
|
|
478
|
+
return request(OpenAPI, {
|
|
479
|
+
method: "POST",
|
|
480
|
+
url: "/agents/{agent_id}/initialize",
|
|
481
|
+
path: {
|
|
482
|
+
agent_id: agentId
|
|
483
|
+
},
|
|
484
|
+
errors: {
|
|
485
|
+
422: `Validation Error`
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
static queryAgent(agentId, requestBody, userId, conversationId) {
|
|
490
|
+
return request(OpenAPI, {
|
|
491
|
+
method: "POST",
|
|
492
|
+
url: "/agents/{agent_id}/query",
|
|
493
|
+
path: {
|
|
494
|
+
agent_id: agentId
|
|
495
|
+
},
|
|
496
|
+
query: {
|
|
497
|
+
user_id: userId,
|
|
498
|
+
conversation_id: conversationId
|
|
499
|
+
},
|
|
500
|
+
body: requestBody,
|
|
501
|
+
mediaType: "application/json",
|
|
502
|
+
errors: {
|
|
503
|
+
422: `Validation Error`
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
static getAgentStructure(agentId, userId) {
|
|
508
|
+
return request(OpenAPI, {
|
|
509
|
+
method: "GET",
|
|
510
|
+
url: "/agents/{agent_id}/structure",
|
|
511
|
+
path: {
|
|
512
|
+
agent_id: agentId
|
|
513
|
+
},
|
|
514
|
+
query: {
|
|
515
|
+
user_id: userId
|
|
516
|
+
},
|
|
517
|
+
errors: {
|
|
518
|
+
422: `Validation Error`
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
static visualizeAgent(agentId, userId, format = "png") {
|
|
523
|
+
return request(OpenAPI, {
|
|
524
|
+
method: "GET",
|
|
525
|
+
url: "/agents/{agent_id}/visualize",
|
|
526
|
+
path: {
|
|
527
|
+
agent_id: agentId
|
|
528
|
+
},
|
|
529
|
+
query: {
|
|
530
|
+
user_id: userId,
|
|
531
|
+
format
|
|
532
|
+
},
|
|
533
|
+
errors: {
|
|
534
|
+
422: `Validation Error`
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
var init_AdminAgentsService = __esm(() => {
|
|
540
|
+
init_OpenAPI();
|
|
541
|
+
init_request();
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
// src/lib/clients/agents-generator/services/AdminConversationsService.ts
|
|
545
|
+
class AdminConversationsService {
|
|
546
|
+
static createConversation(requestBody) {
|
|
547
|
+
return request(OpenAPI, {
|
|
548
|
+
method: "POST",
|
|
549
|
+
url: "/conversations",
|
|
550
|
+
body: requestBody,
|
|
551
|
+
mediaType: "application/json",
|
|
552
|
+
errors: {
|
|
553
|
+
422: `Validation Error`
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
static getConversation(conversationId) {
|
|
558
|
+
return request(OpenAPI, {
|
|
559
|
+
method: "GET",
|
|
560
|
+
url: "/conversations/{conversation_id}",
|
|
561
|
+
path: {
|
|
562
|
+
conversation_id: conversationId
|
|
563
|
+
},
|
|
564
|
+
errors: {
|
|
565
|
+
422: `Validation Error`
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
static updateConversation(conversationId, requestBody) {
|
|
570
|
+
return request(OpenAPI, {
|
|
571
|
+
method: "PUT",
|
|
572
|
+
url: "/conversations/{conversation_id}",
|
|
573
|
+
path: {
|
|
574
|
+
conversation_id: conversationId
|
|
575
|
+
},
|
|
576
|
+
body: requestBody,
|
|
577
|
+
mediaType: "application/json",
|
|
578
|
+
errors: {
|
|
579
|
+
422: `Validation Error`
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
static deleteConversation(conversationId) {
|
|
584
|
+
return request(OpenAPI, {
|
|
585
|
+
method: "DELETE",
|
|
586
|
+
url: "/conversations/{conversation_id}",
|
|
587
|
+
path: {
|
|
588
|
+
conversation_id: conversationId
|
|
589
|
+
},
|
|
590
|
+
errors: {
|
|
591
|
+
422: `Validation Error`
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
static getAgentConversations(agentId, skip, limit = 100) {
|
|
596
|
+
return request(OpenAPI, {
|
|
597
|
+
method: "GET",
|
|
598
|
+
url: "/conversations/agent/{agent_id}",
|
|
599
|
+
path: {
|
|
600
|
+
agent_id: agentId
|
|
601
|
+
},
|
|
602
|
+
query: {
|
|
603
|
+
skip,
|
|
604
|
+
limit
|
|
605
|
+
},
|
|
606
|
+
errors: {
|
|
607
|
+
422: `Validation Error`
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
var init_AdminConversationsService = __esm(() => {
|
|
613
|
+
init_OpenAPI();
|
|
614
|
+
init_request();
|
|
615
|
+
});
|
|
616
|
+
|
|
617
|
+
// src/lib/clients/agents-generator/services/AdminCredentialsService.ts
|
|
618
|
+
class AdminCredentialsService {
|
|
619
|
+
static getCredentials() {
|
|
620
|
+
return request(OpenAPI, {
|
|
621
|
+
method: "GET",
|
|
622
|
+
url: "/credentials"
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
static createCredential(requestBody) {
|
|
626
|
+
return request(OpenAPI, {
|
|
627
|
+
method: "POST",
|
|
628
|
+
url: "/credentials",
|
|
629
|
+
body: requestBody,
|
|
630
|
+
mediaType: "application/json",
|
|
631
|
+
errors: {
|
|
632
|
+
422: `Validation Error`
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
static getCredential(credentialId) {
|
|
637
|
+
return request(OpenAPI, {
|
|
638
|
+
method: "GET",
|
|
639
|
+
url: "/credentials/{credential_id}",
|
|
640
|
+
path: {
|
|
641
|
+
credential_id: credentialId
|
|
642
|
+
},
|
|
643
|
+
errors: {
|
|
644
|
+
422: `Validation Error`
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
static updateCredential(credentialId, requestBody) {
|
|
649
|
+
return request(OpenAPI, {
|
|
650
|
+
method: "PUT",
|
|
651
|
+
url: "/credentials/{credential_id}",
|
|
652
|
+
path: {
|
|
653
|
+
credential_id: credentialId
|
|
654
|
+
},
|
|
655
|
+
body: requestBody,
|
|
656
|
+
mediaType: "application/json",
|
|
657
|
+
errors: {
|
|
658
|
+
422: `Validation Error`
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
static deleteCredential(credentialId) {
|
|
663
|
+
return request(OpenAPI, {
|
|
664
|
+
method: "DELETE",
|
|
665
|
+
url: "/credentials/{credential_id}",
|
|
666
|
+
path: {
|
|
667
|
+
credential_id: credentialId
|
|
668
|
+
},
|
|
669
|
+
errors: {
|
|
670
|
+
422: `Validation Error`
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
static getCredentialDecrypted(credentialId) {
|
|
675
|
+
return request(OpenAPI, {
|
|
676
|
+
method: "GET",
|
|
677
|
+
url: "/credentials/{credential_id}/decrypt",
|
|
678
|
+
path: {
|
|
679
|
+
credential_id: credentialId
|
|
680
|
+
},
|
|
681
|
+
errors: {
|
|
682
|
+
422: `Validation Error`
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
var init_AdminCredentialsService = __esm(() => {
|
|
688
|
+
init_OpenAPI();
|
|
689
|
+
init_request();
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// src/lib/clients/agents-generator/services/AdminFileLibraryService.ts
|
|
693
|
+
class AdminFileLibraryService {
|
|
694
|
+
static getBuckets() {
|
|
695
|
+
return request(OpenAPI, {
|
|
696
|
+
method: "GET",
|
|
697
|
+
url: "/file-library/buckets"
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
static createBucket(requestBody) {
|
|
701
|
+
return request(OpenAPI, {
|
|
702
|
+
method: "POST",
|
|
703
|
+
url: "/file-library/buckets",
|
|
704
|
+
body: requestBody,
|
|
705
|
+
mediaType: "application/json",
|
|
706
|
+
errors: {
|
|
707
|
+
422: `Validation Error`
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
static getBucket(bucketId) {
|
|
712
|
+
return request(OpenAPI, {
|
|
713
|
+
method: "GET",
|
|
714
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
715
|
+
path: {
|
|
716
|
+
bucket_id: bucketId
|
|
717
|
+
},
|
|
718
|
+
errors: {
|
|
719
|
+
422: `Validation Error`
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
static deleteBucket(bucketId) {
|
|
724
|
+
return request(OpenAPI, {
|
|
725
|
+
method: "DELETE",
|
|
726
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
727
|
+
path: {
|
|
728
|
+
bucket_id: bucketId
|
|
729
|
+
},
|
|
730
|
+
errors: {
|
|
731
|
+
422: `Validation Error`
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
static createFolder(requestBody) {
|
|
736
|
+
return request(OpenAPI, {
|
|
737
|
+
method: "POST",
|
|
738
|
+
url: "/file-library/folders",
|
|
739
|
+
body: requestBody,
|
|
740
|
+
mediaType: "application/json",
|
|
741
|
+
errors: {
|
|
742
|
+
422: `Validation Error`
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
747
|
+
return request(OpenAPI, {
|
|
748
|
+
method: "GET",
|
|
749
|
+
url: "/file-library/buckets/{bucket_id}/folders",
|
|
750
|
+
path: {
|
|
751
|
+
bucket_id: bucketId
|
|
752
|
+
},
|
|
753
|
+
query: {
|
|
754
|
+
parent_folder_id: parentFolderId
|
|
755
|
+
},
|
|
756
|
+
errors: {
|
|
757
|
+
422: `Validation Error`
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
static deleteFolder(folderId) {
|
|
762
|
+
return request(OpenAPI, {
|
|
763
|
+
method: "DELETE",
|
|
764
|
+
url: "/file-library/folders/{folder_id}",
|
|
765
|
+
path: {
|
|
766
|
+
folder_id: folderId
|
|
767
|
+
},
|
|
768
|
+
errors: {
|
|
769
|
+
422: `Validation Error`
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
static uploadFile(folderId, formData) {
|
|
774
|
+
return request(OpenAPI, {
|
|
775
|
+
method: "POST",
|
|
776
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
777
|
+
path: {
|
|
778
|
+
folder_id: folderId
|
|
779
|
+
},
|
|
780
|
+
formData,
|
|
781
|
+
mediaType: "multipart/form-data",
|
|
782
|
+
errors: {
|
|
783
|
+
422: `Validation Error`
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
static getFilesByFolder(folderId) {
|
|
788
|
+
return request(OpenAPI, {
|
|
789
|
+
method: "GET",
|
|
790
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
791
|
+
path: {
|
|
792
|
+
folder_id: folderId
|
|
793
|
+
},
|
|
794
|
+
errors: {
|
|
795
|
+
422: `Validation Error`
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
static deleteFile(fileId) {
|
|
800
|
+
return request(OpenAPI, {
|
|
801
|
+
method: "DELETE",
|
|
802
|
+
url: "/file-library/files/{file_id}",
|
|
803
|
+
path: {
|
|
804
|
+
file_id: fileId
|
|
805
|
+
},
|
|
806
|
+
errors: {
|
|
807
|
+
422: `Validation Error`
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
static uploadFolder(parentFolderId, requestBody) {
|
|
812
|
+
return request(OpenAPI, {
|
|
813
|
+
method: "POST",
|
|
814
|
+
url: "/file-library/folders/{parent_folder_id}/upload-folder",
|
|
815
|
+
path: {
|
|
816
|
+
parent_folder_id: parentFolderId
|
|
817
|
+
},
|
|
818
|
+
body: requestBody,
|
|
819
|
+
mediaType: "application/json",
|
|
820
|
+
errors: {
|
|
821
|
+
422: `Validation Error`
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
static createFolderVectorStore(folderId) {
|
|
826
|
+
return request(OpenAPI, {
|
|
827
|
+
method: "POST",
|
|
828
|
+
url: "/file-library/folders/{folder_id}/create-vector-store",
|
|
829
|
+
path: {
|
|
830
|
+
folder_id: folderId
|
|
831
|
+
},
|
|
832
|
+
errors: {
|
|
833
|
+
422: `Validation Error`
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
var init_AdminFileLibraryService = __esm(() => {
|
|
839
|
+
init_OpenAPI();
|
|
840
|
+
init_request();
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
// src/lib/clients/agents-generator/services/AdminMcpServersService.ts
|
|
844
|
+
class AdminMcpServersService {
|
|
845
|
+
static getMcpServersMcpServersGet() {
|
|
846
|
+
return request(OpenAPI, {
|
|
847
|
+
method: "GET",
|
|
848
|
+
url: "/mcp-servers"
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
static createMcpServerMcpServersPost(requestBody) {
|
|
852
|
+
return request(OpenAPI, {
|
|
853
|
+
method: "POST",
|
|
854
|
+
url: "/mcp-servers",
|
|
855
|
+
body: requestBody,
|
|
856
|
+
mediaType: "application/json",
|
|
857
|
+
errors: {
|
|
858
|
+
422: `Validation Error`
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
static getMcpServerMcpServersServerIdGet(serverId) {
|
|
863
|
+
return request(OpenAPI, {
|
|
864
|
+
method: "GET",
|
|
865
|
+
url: "/mcp-servers/{server_id}",
|
|
866
|
+
path: {
|
|
867
|
+
server_id: serverId
|
|
868
|
+
},
|
|
869
|
+
errors: {
|
|
870
|
+
422: `Validation Error`
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
var init_AdminMcpServersService = __esm(() => {
|
|
876
|
+
init_OpenAPI();
|
|
877
|
+
init_request();
|
|
878
|
+
});
|
|
879
|
+
|
|
404
880
|
// src/lib/clients/agents-generator/services/AgentService.ts
|
|
405
881
|
class AgentService {
|
|
406
|
-
static createAgent(requestBody
|
|
882
|
+
static createAgent(requestBody) {
|
|
407
883
|
return request(OpenAPI, {
|
|
408
884
|
method: "POST",
|
|
409
885
|
url: "/agents",
|
|
410
|
-
query: {
|
|
411
|
-
user_id: userId
|
|
412
|
-
},
|
|
413
886
|
body: requestBody,
|
|
414
887
|
mediaType: "application/json",
|
|
415
888
|
errors: {
|
|
@@ -925,6 +1398,79 @@ var init_McpServersService = __esm(() => {
|
|
|
925
1398
|
init_request();
|
|
926
1399
|
});
|
|
927
1400
|
|
|
1401
|
+
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
1402
|
+
class PublicAgentsService {
|
|
1403
|
+
static getAgent(agentId, userId) {
|
|
1404
|
+
return request(OpenAPI, {
|
|
1405
|
+
method: "GET",
|
|
1406
|
+
url: "/agents/{agent_id}",
|
|
1407
|
+
path: {
|
|
1408
|
+
agent_id: agentId
|
|
1409
|
+
},
|
|
1410
|
+
query: {
|
|
1411
|
+
user_id: userId
|
|
1412
|
+
},
|
|
1413
|
+
errors: {
|
|
1414
|
+
422: `Validation Error`
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
var init_PublicAgentsService = __esm(() => {
|
|
1420
|
+
init_OpenAPI();
|
|
1421
|
+
init_request();
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
// src/lib/clients/agents-generator/services/PublicConversationsService.ts
|
|
1425
|
+
class PublicConversationsService {
|
|
1426
|
+
static createConversation(requestBody) {
|
|
1427
|
+
return request(OpenAPI, {
|
|
1428
|
+
method: "POST",
|
|
1429
|
+
url: "/conversations",
|
|
1430
|
+
body: requestBody,
|
|
1431
|
+
mediaType: "application/json",
|
|
1432
|
+
errors: {
|
|
1433
|
+
422: `Validation Error`
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
static getConversation(conversationId) {
|
|
1438
|
+
return request(OpenAPI, {
|
|
1439
|
+
method: "GET",
|
|
1440
|
+
url: "/conversations/{conversation_id}",
|
|
1441
|
+
path: {
|
|
1442
|
+
conversation_id: conversationId
|
|
1443
|
+
},
|
|
1444
|
+
errors: {
|
|
1445
|
+
422: `Validation Error`
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
static addMessage(conversationId, requestBody, accept) {
|
|
1450
|
+
return request(OpenAPI, {
|
|
1451
|
+
method: "POST",
|
|
1452
|
+
url: "/conversations/{conversation_id}/messages",
|
|
1453
|
+
path: {
|
|
1454
|
+
conversation_id: conversationId
|
|
1455
|
+
},
|
|
1456
|
+
headers: {
|
|
1457
|
+
accept
|
|
1458
|
+
},
|
|
1459
|
+
body: requestBody,
|
|
1460
|
+
mediaType: "application/json",
|
|
1461
|
+
errors: {
|
|
1462
|
+
404: `Conversation or agent not found`,
|
|
1463
|
+
422: `Validation Error`,
|
|
1464
|
+
500: `Server error`
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
var init_PublicConversationsService = __esm(() => {
|
|
1470
|
+
init_OpenAPI();
|
|
1471
|
+
init_request();
|
|
1472
|
+
});
|
|
1473
|
+
|
|
928
1474
|
// src/lib/clients/agents-generator/services/RootService.ts
|
|
929
1475
|
class RootService {
|
|
930
1476
|
static root() {
|
|
@@ -950,16 +1496,25 @@ var init_agents_generator = __esm(() => {
|
|
|
950
1496
|
init_ApiError();
|
|
951
1497
|
init_CancelablePromise();
|
|
952
1498
|
init_OpenAPI();
|
|
1499
|
+
init_AdminAgentsService();
|
|
1500
|
+
init_AdminConversationsService();
|
|
1501
|
+
init_AdminCredentialsService();
|
|
1502
|
+
init_AdminFileLibraryService();
|
|
1503
|
+
init_AdminMcpServersService();
|
|
953
1504
|
init_AgentService();
|
|
954
1505
|
init_ConversationsService();
|
|
955
1506
|
init_CredentialsService();
|
|
956
1507
|
init_FileLibraryService();
|
|
957
1508
|
init_McpServersService();
|
|
1509
|
+
init_PublicAgentsService();
|
|
1510
|
+
init_PublicConversationsService();
|
|
958
1511
|
init_RootService();
|
|
959
1512
|
});
|
|
960
1513
|
|
|
961
1514
|
// src/lib/index.ts
|
|
962
1515
|
class AgentClient {
|
|
1516
|
+
admin;
|
|
1517
|
+
public;
|
|
963
1518
|
agent;
|
|
964
1519
|
conversations;
|
|
965
1520
|
mcpServers;
|
|
@@ -987,6 +1542,17 @@ class AgentClient {
|
|
|
987
1542
|
this.fileLibrary = FileLibraryService;
|
|
988
1543
|
this.credentials = CredentialsService;
|
|
989
1544
|
this.conversationsStream = ConversationsServiceStream;
|
|
1545
|
+
this.admin = {
|
|
1546
|
+
agents: AdminAgentsService,
|
|
1547
|
+
conversations: AdminConversationsService,
|
|
1548
|
+
credentials: AdminCredentialsService,
|
|
1549
|
+
fileLibrary: AdminFileLibraryService,
|
|
1550
|
+
mcpServers: AdminMcpServersService
|
|
1551
|
+
};
|
|
1552
|
+
this.public = {
|
|
1553
|
+
agents: PublicAgentsService,
|
|
1554
|
+
conversations: PublicConversationsServiceExtended
|
|
1555
|
+
};
|
|
990
1556
|
this.ApiError = ApiError;
|
|
991
1557
|
this.CancelError = CancelError;
|
|
992
1558
|
this.CancelablePromise = CancelablePromise;
|
|
@@ -999,7 +1565,7 @@ class AgentClient {
|
|
|
999
1565
|
return ConversationsServiceStream.addMessage(conversationId, requestBody, "text/plain");
|
|
1000
1566
|
}
|
|
1001
1567
|
}
|
|
1002
|
-
var ConversationsServiceStream, lib_default;
|
|
1568
|
+
var ConversationsServiceStream, PublicConversationsServiceExtended, lib_default;
|
|
1003
1569
|
var init_lib = __esm(() => {
|
|
1004
1570
|
init_agents_generator();
|
|
1005
1571
|
init_agents_generator();
|
|
@@ -1179,6 +1745,10 @@ var init_lib = __esm(() => {
|
|
|
1179
1745
|
return () => controller.abort();
|
|
1180
1746
|
}
|
|
1181
1747
|
};
|
|
1748
|
+
PublicConversationsServiceExtended = class PublicConversationsServiceExtended extends PublicConversationsService {
|
|
1749
|
+
static sendMessageWithStreaming;
|
|
1750
|
+
static sendMessage;
|
|
1751
|
+
};
|
|
1182
1752
|
lib_default = AgentClient;
|
|
1183
1753
|
});
|
|
1184
1754
|
|
|
@@ -1186,6 +1756,8 @@ var init_lib = __esm(() => {
|
|
|
1186
1756
|
var exports_src = {};
|
|
1187
1757
|
__export(exports_src, {
|
|
1188
1758
|
RootService: () => RootService,
|
|
1759
|
+
PublicConversationsService: () => PublicConversationsService,
|
|
1760
|
+
PublicAgentsService: () => PublicAgentsService,
|
|
1189
1761
|
OpenAPI: () => OpenAPI,
|
|
1190
1762
|
McpServersService: () => McpServersService,
|
|
1191
1763
|
FileLibraryService: () => FileLibraryService,
|
|
@@ -1195,7 +1767,12 @@ __export(exports_src, {
|
|
|
1195
1767
|
CancelError: () => CancelError,
|
|
1196
1768
|
ApiError: () => ApiError,
|
|
1197
1769
|
AgentService: () => AgentService,
|
|
1198
|
-
AgentClient: () => AgentClient
|
|
1770
|
+
AgentClient: () => AgentClient,
|
|
1771
|
+
AdminMcpServersService: () => AdminMcpServersService,
|
|
1772
|
+
AdminFileLibraryService: () => AdminFileLibraryService,
|
|
1773
|
+
AdminCredentialsService: () => AdminCredentialsService,
|
|
1774
|
+
AdminConversationsService: () => AdminConversationsService,
|
|
1775
|
+
AdminAgentsService: () => AdminAgentsService
|
|
1199
1776
|
});
|
|
1200
1777
|
module.exports = __toCommonJS(exports_src);
|
|
1201
1778
|
init_lib();
|
|
@@ -41,9 +41,16 @@ export type { NodeData } from './models/NodeData';
|
|
|
41
41
|
export type { Position } from './models/Position';
|
|
42
42
|
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
43
43
|
export type { ValidationError } from './models/ValidationError';
|
|
44
|
+
export { AdminAgentsService } from './services/AdminAgentsService';
|
|
45
|
+
export { AdminConversationsService } from './services/AdminConversationsService';
|
|
46
|
+
export { AdminCredentialsService } from './services/AdminCredentialsService';
|
|
47
|
+
export { AdminFileLibraryService } from './services/AdminFileLibraryService';
|
|
48
|
+
export { AdminMcpServersService } from './services/AdminMcpServersService';
|
|
44
49
|
export { AgentService } from './services/AgentService';
|
|
45
50
|
export { ConversationsService } from './services/ConversationsService';
|
|
46
51
|
export { CredentialsService } from './services/CredentialsService';
|
|
47
52
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
48
53
|
export { McpServersService } from './services/McpServersService';
|
|
54
|
+
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
55
|
+
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
49
56
|
export { RootService } from './services/RootService';
|