@arbium/enterprise-agent-connect 0.2.0 → 0.2.1-dev.7b4e802

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 (68) hide show
  1. package/README.md +10 -3
  2. package/dist/connectors/adestra/connector.json +336 -0
  3. package/dist/connectors/adobe-admin-console/connector.json +212 -0
  4. package/dist/connectors/argo-cd/connector.json +210 -0
  5. package/dist/connectors/automox/connector.json +376 -0
  6. package/dist/connectors/churnzero/connector.json +238 -0
  7. package/dist/connectors/confluence/connector.json +168 -0
  8. package/dist/connectors/cvent/connector.json +287 -0
  9. package/dist/connectors/datadog/connector.json +188 -0
  10. package/dist/connectors/drata/connector.json +447 -0
  11. package/dist/connectors/druva/connector.json +258 -0
  12. package/dist/connectors/forsta-decipher/connector.json +164 -0
  13. package/dist/connectors/gitlab/connector.json +263 -0
  14. package/dist/connectors/grafana/connector.json +162 -0
  15. package/dist/connectors/http/index.d.ts +5 -1
  16. package/dist/connectors/http/index.js +62 -8
  17. package/dist/connectors/http/index.js.map +1 -1
  18. package/dist/connectors/http/openapi.d.ts +62 -0
  19. package/dist/connectors/http/openapi.js +342 -0
  20. package/dist/connectors/http/openapi.js.map +1 -0
  21. package/dist/connectors/intercom/connector.json +249 -0
  22. package/dist/connectors/lusha/connector.json +59 -0
  23. package/dist/connectors/lusha/index.d.ts +8 -0
  24. package/dist/connectors/lusha/index.js +7 -0
  25. package/dist/connectors/lusha/index.js.map +1 -0
  26. package/dist/connectors/lusha/tools.d.ts +2 -0
  27. package/dist/connectors/lusha/tools.js +113 -0
  28. package/dist/connectors/lusha/tools.js.map +1 -0
  29. package/dist/connectors/lusha/vendor.d.ts +4 -0
  30. package/dist/connectors/lusha/vendor.js +72 -0
  31. package/dist/connectors/lusha/vendor.js.map +1 -0
  32. package/dist/connectors/odata/index.js +12 -5
  33. package/dist/connectors/odata/index.js.map +1 -1
  34. package/dist/connectors/pagerduty/connector.json +247 -0
  35. package/dist/connectors/qualys/connector.json +271 -0
  36. package/dist/connectors/safebase/connector.json +221 -0
  37. package/dist/connectors/soap/index.js +4 -3
  38. package/dist/connectors/soap/index.js.map +1 -1
  39. package/dist/connectors/sonarqube/connector.json +165 -0
  40. package/dist/connectors/sprout-social/connector.json +158 -0
  41. package/dist/connectors/synthesia/connector.json +113 -0
  42. package/dist/connectors/wordpress/connector.json +203 -0
  43. package/dist/connectors/zephyr/connector.json +192 -0
  44. package/dist/packages/connector-kit/src/connector.d.ts +45 -7
  45. package/dist/packages/connector-kit/src/connector.js +113 -10
  46. package/dist/packages/connector-kit/src/connector.js.map +1 -1
  47. package/dist/packages/connector-kit/src/oauth.d.ts +2 -0
  48. package/dist/packages/connector-kit/src/oauth.js +12 -4
  49. package/dist/packages/connector-kit/src/oauth.js.map +1 -1
  50. package/dist/packages/server/migrations/0008_internal_apps.sql +16 -0
  51. package/dist/packages/server/migrations/rollback/to-legacy.sql +2 -0
  52. package/dist/packages/server/src/api.d.ts +2490 -277
  53. package/dist/packages/server/src/api.js +82 -1
  54. package/dist/packages/server/src/api.js.map +1 -1
  55. package/dist/packages/server/src/app.js +26 -1
  56. package/dist/packages/server/src/app.js.map +1 -1
  57. package/dist/packages/server/src/builtin.d.ts +3 -0
  58. package/dist/packages/server/src/builtin.js +32 -0
  59. package/dist/packages/server/src/builtin.js.map +1 -1
  60. package/dist/packages/server/src/index.js +27 -18
  61. package/dist/packages/server/src/index.js.map +1 -1
  62. package/dist/packages/server/src/service.d.ts +1113 -0
  63. package/dist/packages/server/src/service.js +257 -19
  64. package/dist/packages/server/src/service.js.map +1 -1
  65. package/dist/packages/server/src/store.d.ts +41 -1
  66. package/dist/packages/server/src/store.js +79 -0
  67. package/dist/packages/server/src/store.js.map +1 -1
  68. package/package.json +1 -1
@@ -44,6 +44,8 @@ export declare function createService(deps: {
44
44
  providers?: ProviderApp[];
45
45
  store: Store;
46
46
  key: CredentialKey;
47
+ internalApp?: (connector: Connector) => App;
48
+ reservedIds?: Iterable<string>;
47
49
  bots?: {
48
50
  botForAgent(org: string, agentId: string): Promise<BotRow | null>;
49
51
  access(bot: BotRow): TeamsAccess;
@@ -261,12 +263,15 @@ export declare function createService(deps: {
261
263
  clientId: string;
262
264
  clientSecret: string;
263
265
  scope?: string | undefined;
266
+ clientAuth?: "body" | "basic" | undefined;
267
+ audience?: string | undefined;
264
268
  } | {
265
269
  type: "query";
266
270
  param: string;
267
271
  value: string;
268
272
  };
269
273
  headers: Record<string, string>;
274
+ fieldHeaders: Record<string, string>;
270
275
  tools: {
271
276
  name: string;
272
277
  description: string;
@@ -305,6 +310,7 @@ export declare function createService(deps: {
305
310
  } | undefined;
306
311
  }[];
307
312
  allowInsecureHttp: boolean;
313
+ allowedHosts?: string[] | undefined;
308
314
  } | undefined;
309
315
  soap?: {
310
316
  endpoint: string;
@@ -377,6 +383,8 @@ export declare function createService(deps: {
377
383
  clientId: string;
378
384
  clientSecret: string;
379
385
  scope?: string | undefined;
386
+ clientAuth?: "body" | "basic" | undefined;
387
+ audience?: string | undefined;
380
388
  } | {
381
389
  type: "query";
382
390
  param: string;
@@ -430,6 +438,7 @@ export declare function createService(deps: {
430
438
  orderBy?: string | undefined;
431
439
  }[];
432
440
  allowInsecureHttp: boolean;
441
+ allowedHosts?: string[] | undefined;
433
442
  } | undefined;
434
443
  sql?: {
435
444
  engine: "postgres" | "sqlserver" | "mysql" | "oracle";
@@ -562,6 +571,1109 @@ export declare function createService(deps: {
562
571
  } | undefined;
563
572
  } | undefined;
564
573
  }[];
574
+ connectorsFor(org: string): Promise<{
575
+ id: string;
576
+ name: string;
577
+ description: string;
578
+ logo: string;
579
+ identity: string;
580
+ connectionKind: "guided";
581
+ accountKey: string;
582
+ setup: {
583
+ title: string;
584
+ body: string;
585
+ link?: {
586
+ label: string;
587
+ href: string;
588
+ } | undefined;
589
+ copy?: string[] | undefined;
590
+ shell?: "bash" | "powershell" | undefined;
591
+ permissions?: boolean | undefined;
592
+ certificate?: boolean | undefined;
593
+ click?: string[] | undefined;
594
+ clickUnavailable?: true | undefined;
595
+ siteRole?: "read" | "write" | undefined;
596
+ agentCheck?: boolean | undefined;
597
+ confirm?: string | undefined;
598
+ live?: string | undefined;
599
+ settings?: {
600
+ id: string;
601
+ label: string;
602
+ pattern: string;
603
+ help?: string | undefined;
604
+ placeholder?: string | undefined;
605
+ }[] | undefined;
606
+ option?: {
607
+ field: string;
608
+ value: string;
609
+ } | undefined;
610
+ capabilities?: string[] | undefined;
611
+ }[];
612
+ afterConnect: {
613
+ title: string;
614
+ body: string;
615
+ link?: {
616
+ label: string;
617
+ href: string;
618
+ } | undefined;
619
+ copy?: string[] | undefined;
620
+ shell?: "bash" | "powershell" | undefined;
621
+ permissions?: boolean | undefined;
622
+ certificate?: boolean | undefined;
623
+ click?: string[] | undefined;
624
+ clickUnavailable?: true | undefined;
625
+ siteRole?: "read" | "write" | undefined;
626
+ agentCheck?: boolean | undefined;
627
+ confirm?: string | undefined;
628
+ live?: string | undefined;
629
+ settings?: {
630
+ id: string;
631
+ label: string;
632
+ pattern: string;
633
+ help?: string | undefined;
634
+ placeholder?: string | undefined;
635
+ }[] | undefined;
636
+ option?: {
637
+ field: string;
638
+ value: string;
639
+ } | undefined;
640
+ capabilities?: string[] | undefined;
641
+ }[];
642
+ fields: {
643
+ id: string;
644
+ label: string;
645
+ secret: boolean;
646
+ optional: boolean;
647
+ help?: string | undefined;
648
+ placeholder?: string | undefined;
649
+ options?: {
650
+ value: string;
651
+ label: string;
652
+ description: string;
653
+ scopes?: string[] | undefined;
654
+ }[] | undefined;
655
+ requires?: {
656
+ field: string;
657
+ value: string;
658
+ } | undefined;
659
+ }[];
660
+ capabilities: {
661
+ id: string;
662
+ label: string;
663
+ description: string;
664
+ required: boolean;
665
+ destructive: boolean;
666
+ scopes: string[];
667
+ permissions: string[];
668
+ tools: string[];
669
+ costs?: boolean | undefined;
670
+ roles?: string[] | undefined;
671
+ fill?: Record<string, string> | undefined;
672
+ note?: string | undefined;
673
+ forbidden?: string | undefined;
674
+ claudeKey?: boolean | undefined;
675
+ }[];
676
+ limits: {
677
+ id: string;
678
+ label: string;
679
+ help: string;
680
+ kind: "text" | "map" | "list";
681
+ required: boolean;
682
+ pattern?: string | undefined;
683
+ keys?: string | undefined;
684
+ }[];
685
+ verify: {
686
+ method: "GET" | "POST";
687
+ path: string;
688
+ label: string;
689
+ show: string;
690
+ name?: string | undefined;
691
+ match?: Record<string, string | number | boolean> | undefined;
692
+ body?: Record<string, unknown> | undefined;
693
+ ifEmpty?: string | undefined;
694
+ } | {
695
+ label: string;
696
+ check: string;
697
+ ifEmpty?: string | undefined;
698
+ };
699
+ revoke: string;
700
+ signsInAs?: "agentBot" | undefined;
701
+ provider?: string | undefined;
702
+ order?: number | undefined;
703
+ scopes?: string[] | undefined;
704
+ siteAccess?: {
705
+ grant: {
706
+ title: string;
707
+ body: string;
708
+ link?: {
709
+ label: string;
710
+ href: string;
711
+ } | undefined;
712
+ copy?: string[] | undefined;
713
+ shell?: "bash" | "powershell" | undefined;
714
+ permissions?: boolean | undefined;
715
+ certificate?: boolean | undefined;
716
+ click?: string[] | undefined;
717
+ clickUnavailable?: true | undefined;
718
+ siteRole?: "read" | "write" | undefined;
719
+ agentCheck?: boolean | undefined;
720
+ confirm?: string | undefined;
721
+ live?: string | undefined;
722
+ settings?: {
723
+ id: string;
724
+ label: string;
725
+ pattern: string;
726
+ help?: string | undefined;
727
+ placeholder?: string | undefined;
728
+ }[] | undefined;
729
+ option?: {
730
+ field: string;
731
+ value: string;
732
+ } | undefined;
733
+ }[];
734
+ request: string;
735
+ write: string[];
736
+ } | undefined;
737
+ agentAccess?: {
738
+ limit: string;
739
+ label: string;
740
+ path: string;
741
+ granted: string;
742
+ notGranted: string;
743
+ notFound: string;
744
+ probes: Record<string, {
745
+ method: "GET" | "POST" | "PATCH";
746
+ path: string;
747
+ allowed: number[];
748
+ body?: unknown;
749
+ }>;
750
+ missing?: string | undefined;
751
+ } | undefined;
752
+ discover?: {
753
+ method: "GET" | "POST";
754
+ path: string;
755
+ label: string;
756
+ show: string;
757
+ name?: string | undefined;
758
+ match?: Record<string, string | number | boolean> | undefined;
759
+ body?: Record<string, unknown> | undefined;
760
+ ifEmpty?: string | undefined;
761
+ } | {
762
+ label: string;
763
+ check: string;
764
+ ifEmpty?: string | undefined;
765
+ } | undefined;
766
+ http?: {
767
+ baseUrl: string;
768
+ auth: {
769
+ type: "header";
770
+ header: string;
771
+ value: string;
772
+ prefix?: string | undefined;
773
+ } | {
774
+ type: "bearer";
775
+ token: string;
776
+ } | {
777
+ type: "basic";
778
+ username: string;
779
+ password: string;
780
+ } | {
781
+ type: "oauth2";
782
+ tokenUrl: string;
783
+ clientId: string;
784
+ clientSecret: string;
785
+ scope?: string | undefined;
786
+ clientAuth?: "body" | "basic" | undefined;
787
+ audience?: string | undefined;
788
+ } | {
789
+ type: "query";
790
+ param: string;
791
+ value: string;
792
+ };
793
+ headers: Record<string, string>;
794
+ fieldHeaders: Record<string, string>;
795
+ tools: {
796
+ name: string;
797
+ description: string;
798
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
799
+ path: string;
800
+ params: Record<string, {
801
+ type: "string" | "number" | "boolean" | "array" | "integer";
802
+ description: string;
803
+ in: "body" | "path" | "query";
804
+ required: boolean;
805
+ name?: string | undefined;
806
+ default?: string | number | boolean | (string | number | boolean)[] | undefined;
807
+ enum?: (string | number | boolean)[] | undefined;
808
+ items?: "string" | "number" | "boolean" | "integer" | undefined;
809
+ join?: string | undefined;
810
+ limit?: string | undefined;
811
+ }>;
812
+ destructive: boolean;
813
+ answerLimits: {
814
+ field: string;
815
+ limit: string;
816
+ }[];
817
+ result?: {
818
+ items?: string | undefined;
819
+ fields?: string[] | undefined;
820
+ } | undefined;
821
+ paging?: {
822
+ param: string;
823
+ body: string;
824
+ } | {
825
+ param: string;
826
+ header: string;
827
+ } | {
828
+ param: string;
829
+ link: true;
830
+ } | undefined;
831
+ }[];
832
+ allowInsecureHttp: boolean;
833
+ allowedHosts?: string[] | undefined;
834
+ } | undefined;
835
+ soap?: {
836
+ endpoint: string;
837
+ version: "1.1" | "1.2";
838
+ namespaces: Record<string, string>;
839
+ tools: {
840
+ name: string;
841
+ description: string;
842
+ operation: string;
843
+ body: string;
844
+ params: Record<string, {
845
+ type: "string" | "number" | "boolean" | "integer";
846
+ description: string;
847
+ required: boolean;
848
+ limit?: string | undefined;
849
+ }>;
850
+ readOnly: boolean;
851
+ destructive: boolean;
852
+ answerLimits: {
853
+ field: string;
854
+ limit: string;
855
+ }[];
856
+ soapAction?: string | undefined;
857
+ result?: string | undefined;
858
+ fields?: string[] | undefined;
859
+ }[];
860
+ allowInsecureHttp: boolean;
861
+ auth?: {
862
+ type: "header";
863
+ header: string;
864
+ value: string;
865
+ prefix?: string | undefined;
866
+ } | {
867
+ type: "bearer";
868
+ token: string;
869
+ } | {
870
+ type: "basic";
871
+ username: string;
872
+ password: string;
873
+ } | undefined;
874
+ wsSecurity?: {
875
+ username: string;
876
+ password: string;
877
+ digest: boolean;
878
+ } | undefined;
879
+ verify?: {
880
+ tool: string;
881
+ args: Record<string, string | number | boolean>;
882
+ show: string;
883
+ } | undefined;
884
+ } | undefined;
885
+ odata?: {
886
+ serviceRoot: string;
887
+ version: "2" | "4";
888
+ auth: {
889
+ type: "header";
890
+ header: string;
891
+ value: string;
892
+ prefix?: string | undefined;
893
+ } | {
894
+ type: "bearer";
895
+ token: string;
896
+ } | {
897
+ type: "basic";
898
+ username: string;
899
+ password: string;
900
+ } | {
901
+ type: "oauth2";
902
+ tokenUrl: string;
903
+ clientId: string;
904
+ clientSecret: string;
905
+ scope?: string | undefined;
906
+ clientAuth?: "body" | "basic" | undefined;
907
+ audience?: string | undefined;
908
+ } | {
909
+ type: "query";
910
+ param: string;
911
+ value: string;
912
+ };
913
+ headers: Record<string, string>;
914
+ csrf: boolean;
915
+ paging: "skip" | "server";
916
+ tools: {
917
+ name: string;
918
+ description: string;
919
+ kind: "function" | "list" | "get" | "create" | "update" | "action";
920
+ key: Record<string, {
921
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
922
+ description: string;
923
+ property?: string | undefined;
924
+ required?: boolean | undefined;
925
+ limit?: string | undefined;
926
+ }>;
927
+ filters: Record<string, {
928
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
929
+ description: string;
930
+ op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
931
+ property?: string | undefined;
932
+ required?: boolean | undefined;
933
+ limit?: string | undefined;
934
+ }>;
935
+ fields: Record<string, {
936
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
937
+ description: string;
938
+ property?: string | undefined;
939
+ required?: boolean | undefined;
940
+ limit?: string | undefined;
941
+ }>;
942
+ params: Record<string, {
943
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
944
+ description: string;
945
+ property?: string | undefined;
946
+ required?: boolean | undefined;
947
+ limit?: string | undefined;
948
+ }>;
949
+ select: string[];
950
+ top: number;
951
+ destructive: boolean;
952
+ answerLimits: {
953
+ field: string;
954
+ limit: string;
955
+ }[];
956
+ entitySet?: string | undefined;
957
+ function?: string | undefined;
958
+ orderBy?: string | undefined;
959
+ }[];
960
+ allowInsecureHttp: boolean;
961
+ allowedHosts?: string[] | undefined;
962
+ } | undefined;
963
+ sql?: {
964
+ engine: "postgres" | "sqlserver" | "mysql" | "oracle";
965
+ host: string;
966
+ database: string;
967
+ auth: {
968
+ user: string;
969
+ password: string;
970
+ };
971
+ tls: "verify" | "insecure" | "off";
972
+ timeoutSeconds: number;
973
+ maxRows: number;
974
+ tools: {
975
+ name: string;
976
+ description: string;
977
+ sql: string;
978
+ params: Record<string, {
979
+ type: "string" | "number" | "boolean" | "integer";
980
+ description: string;
981
+ required: boolean;
982
+ limit?: string | undefined;
983
+ }>;
984
+ write: boolean;
985
+ destructive: boolean;
986
+ answerLimits: {
987
+ column: string;
988
+ limit: string;
989
+ }[];
990
+ }[];
991
+ port?: number | undefined;
992
+ } | undefined;
993
+ events?: {
994
+ types: {
995
+ id: string;
996
+ label: string;
997
+ }[];
998
+ fields: Record<string, string>;
999
+ limits: Record<string, string>;
1000
+ webhook?: {
1001
+ verify: {
1002
+ type: "hmac-sha256";
1003
+ header: string;
1004
+ prefix: string;
1005
+ } | {
1006
+ type: "token";
1007
+ header: string;
1008
+ } | {
1009
+ type: "none";
1010
+ };
1011
+ allowInsecure: boolean;
1012
+ type: {
1013
+ field: string;
1014
+ } | {
1015
+ header: string;
1016
+ };
1017
+ setup: {
1018
+ title: string;
1019
+ body: string;
1020
+ link?: {
1021
+ label: string;
1022
+ href: string;
1023
+ } | undefined;
1024
+ copy?: string[] | undefined;
1025
+ shell?: "bash" | "powershell" | undefined;
1026
+ permissions?: boolean | undefined;
1027
+ certificate?: boolean | undefined;
1028
+ click?: string[] | undefined;
1029
+ clickUnavailable?: true | undefined;
1030
+ siteRole?: "read" | "write" | undefined;
1031
+ agentCheck?: boolean | undefined;
1032
+ confirm?: string | undefined;
1033
+ live?: string | undefined;
1034
+ settings?: {
1035
+ id: string;
1036
+ label: string;
1037
+ pattern: string;
1038
+ help?: string | undefined;
1039
+ placeholder?: string | undefined;
1040
+ }[] | undefined;
1041
+ option?: {
1042
+ field: string;
1043
+ value: string;
1044
+ } | undefined;
1045
+ }[];
1046
+ deliveryId?: {
1047
+ field: string;
1048
+ } | {
1049
+ header: string;
1050
+ } | undefined;
1051
+ timestamp?: {
1052
+ at: {
1053
+ field: string;
1054
+ } | {
1055
+ header: string;
1056
+ };
1057
+ unit: "s" | "ms" | "iso";
1058
+ toleranceSeconds: number;
1059
+ } | undefined;
1060
+ register?: {
1061
+ method: "GET" | "POST" | "PUT";
1062
+ path: string;
1063
+ location: string;
1064
+ body?: unknown;
1065
+ } | undefined;
1066
+ } | undefined;
1067
+ self?: {
1068
+ request: {
1069
+ method: "GET" | "POST" | "PUT";
1070
+ path: string;
1071
+ body?: unknown;
1072
+ };
1073
+ id: string;
1074
+ fields: string[];
1075
+ } | undefined;
1076
+ poll?: {
1077
+ request: {
1078
+ method: "GET" | "POST" | "PUT";
1079
+ path: string;
1080
+ body?: unknown;
1081
+ };
1082
+ items: string;
1083
+ cursor: string;
1084
+ deliveryId: string[];
1085
+ types: {
1086
+ type: string;
1087
+ since?: string | undefined;
1088
+ }[];
1089
+ filter?: string | undefined;
1090
+ wrap?: string | undefined;
1091
+ } | undefined;
1092
+ } | undefined;
1093
+ }[]>;
1094
+ listInternalApps(org: string): Promise<({
1095
+ problem: null;
1096
+ id: string;
1097
+ organizationId: string;
1098
+ definition: Record<string, unknown>;
1099
+ createdBy: string;
1100
+ createdAt: string;
1101
+ updatedBy: string;
1102
+ updatedAt: string;
1103
+ } | {
1104
+ problem: string;
1105
+ id: string;
1106
+ organizationId: string;
1107
+ definition: Record<string, unknown>;
1108
+ createdBy: string;
1109
+ createdAt: string;
1110
+ updatedBy: string;
1111
+ updatedAt: string;
1112
+ })[]>;
1113
+ getInternalApp(org: string, id: string): Promise<{
1114
+ problem: null;
1115
+ id: string;
1116
+ organizationId: string;
1117
+ definition: Record<string, unknown>;
1118
+ createdBy: string;
1119
+ createdAt: string;
1120
+ updatedBy: string;
1121
+ updatedAt: string;
1122
+ } | {
1123
+ problem: string;
1124
+ id: string;
1125
+ organizationId: string;
1126
+ definition: Record<string, unknown>;
1127
+ createdBy: string;
1128
+ createdAt: string;
1129
+ updatedBy: string;
1130
+ updatedAt: string;
1131
+ } | null>;
1132
+ saveInternalApp(org: string, id: string, definition: Record<string, unknown>, by: string): Promise<{
1133
+ app: {
1134
+ problem: null;
1135
+ id: string;
1136
+ organizationId: string;
1137
+ definition: Record<string, unknown>;
1138
+ createdBy: string;
1139
+ createdAt: string;
1140
+ updatedBy: string;
1141
+ updatedAt: string;
1142
+ } | {
1143
+ problem: string;
1144
+ id: string;
1145
+ organizationId: string;
1146
+ definition: Record<string, unknown>;
1147
+ createdBy: string;
1148
+ createdAt: string;
1149
+ updatedBy: string;
1150
+ updatedAt: string;
1151
+ };
1152
+ connector: {
1153
+ id: string;
1154
+ name: string;
1155
+ description: string;
1156
+ logo: string;
1157
+ identity: string;
1158
+ connectionKind: "guided";
1159
+ accountKey: string;
1160
+ setup: {
1161
+ title: string;
1162
+ body: string;
1163
+ link?: {
1164
+ label: string;
1165
+ href: string;
1166
+ } | undefined;
1167
+ copy?: string[] | undefined;
1168
+ shell?: "bash" | "powershell" | undefined;
1169
+ permissions?: boolean | undefined;
1170
+ certificate?: boolean | undefined;
1171
+ click?: string[] | undefined;
1172
+ clickUnavailable?: true | undefined;
1173
+ siteRole?: "read" | "write" | undefined;
1174
+ agentCheck?: boolean | undefined;
1175
+ confirm?: string | undefined;
1176
+ live?: string | undefined;
1177
+ settings?: {
1178
+ id: string;
1179
+ label: string;
1180
+ pattern: string;
1181
+ help?: string | undefined;
1182
+ placeholder?: string | undefined;
1183
+ }[] | undefined;
1184
+ option?: {
1185
+ field: string;
1186
+ value: string;
1187
+ } | undefined;
1188
+ capabilities?: string[] | undefined;
1189
+ }[];
1190
+ afterConnect: {
1191
+ title: string;
1192
+ body: string;
1193
+ link?: {
1194
+ label: string;
1195
+ href: string;
1196
+ } | undefined;
1197
+ copy?: string[] | undefined;
1198
+ shell?: "bash" | "powershell" | undefined;
1199
+ permissions?: boolean | undefined;
1200
+ certificate?: boolean | undefined;
1201
+ click?: string[] | undefined;
1202
+ clickUnavailable?: true | undefined;
1203
+ siteRole?: "read" | "write" | undefined;
1204
+ agentCheck?: boolean | undefined;
1205
+ confirm?: string | undefined;
1206
+ live?: string | undefined;
1207
+ settings?: {
1208
+ id: string;
1209
+ label: string;
1210
+ pattern: string;
1211
+ help?: string | undefined;
1212
+ placeholder?: string | undefined;
1213
+ }[] | undefined;
1214
+ option?: {
1215
+ field: string;
1216
+ value: string;
1217
+ } | undefined;
1218
+ capabilities?: string[] | undefined;
1219
+ }[];
1220
+ fields: {
1221
+ id: string;
1222
+ label: string;
1223
+ secret: boolean;
1224
+ optional: boolean;
1225
+ help?: string | undefined;
1226
+ placeholder?: string | undefined;
1227
+ options?: {
1228
+ value: string;
1229
+ label: string;
1230
+ description: string;
1231
+ scopes?: string[] | undefined;
1232
+ }[] | undefined;
1233
+ requires?: {
1234
+ field: string;
1235
+ value: string;
1236
+ } | undefined;
1237
+ }[];
1238
+ capabilities: {
1239
+ id: string;
1240
+ label: string;
1241
+ description: string;
1242
+ required: boolean;
1243
+ destructive: boolean;
1244
+ scopes: string[];
1245
+ permissions: string[];
1246
+ tools: string[];
1247
+ costs?: boolean | undefined;
1248
+ roles?: string[] | undefined;
1249
+ fill?: Record<string, string> | undefined;
1250
+ note?: string | undefined;
1251
+ forbidden?: string | undefined;
1252
+ claudeKey?: boolean | undefined;
1253
+ }[];
1254
+ limits: {
1255
+ id: string;
1256
+ label: string;
1257
+ help: string;
1258
+ kind: "text" | "map" | "list";
1259
+ required: boolean;
1260
+ pattern?: string | undefined;
1261
+ keys?: string | undefined;
1262
+ }[];
1263
+ verify: {
1264
+ method: "GET" | "POST";
1265
+ path: string;
1266
+ label: string;
1267
+ show: string;
1268
+ name?: string | undefined;
1269
+ match?: Record<string, string | number | boolean> | undefined;
1270
+ body?: Record<string, unknown> | undefined;
1271
+ ifEmpty?: string | undefined;
1272
+ } | {
1273
+ label: string;
1274
+ check: string;
1275
+ ifEmpty?: string | undefined;
1276
+ };
1277
+ revoke: string;
1278
+ signsInAs?: "agentBot" | undefined;
1279
+ provider?: string | undefined;
1280
+ order?: number | undefined;
1281
+ scopes?: string[] | undefined;
1282
+ siteAccess?: {
1283
+ grant: {
1284
+ title: string;
1285
+ body: string;
1286
+ link?: {
1287
+ label: string;
1288
+ href: string;
1289
+ } | undefined;
1290
+ copy?: string[] | undefined;
1291
+ shell?: "bash" | "powershell" | undefined;
1292
+ permissions?: boolean | undefined;
1293
+ certificate?: boolean | undefined;
1294
+ click?: string[] | undefined;
1295
+ clickUnavailable?: true | undefined;
1296
+ siteRole?: "read" | "write" | undefined;
1297
+ agentCheck?: boolean | undefined;
1298
+ confirm?: string | undefined;
1299
+ live?: string | undefined;
1300
+ settings?: {
1301
+ id: string;
1302
+ label: string;
1303
+ pattern: string;
1304
+ help?: string | undefined;
1305
+ placeholder?: string | undefined;
1306
+ }[] | undefined;
1307
+ option?: {
1308
+ field: string;
1309
+ value: string;
1310
+ } | undefined;
1311
+ }[];
1312
+ request: string;
1313
+ write: string[];
1314
+ } | undefined;
1315
+ agentAccess?: {
1316
+ limit: string;
1317
+ label: string;
1318
+ path: string;
1319
+ granted: string;
1320
+ notGranted: string;
1321
+ notFound: string;
1322
+ probes: Record<string, {
1323
+ method: "GET" | "POST" | "PATCH";
1324
+ path: string;
1325
+ allowed: number[];
1326
+ body?: unknown;
1327
+ }>;
1328
+ missing?: string | undefined;
1329
+ } | undefined;
1330
+ discover?: {
1331
+ method: "GET" | "POST";
1332
+ path: string;
1333
+ label: string;
1334
+ show: string;
1335
+ name?: string | undefined;
1336
+ match?: Record<string, string | number | boolean> | undefined;
1337
+ body?: Record<string, unknown> | undefined;
1338
+ ifEmpty?: string | undefined;
1339
+ } | {
1340
+ label: string;
1341
+ check: string;
1342
+ ifEmpty?: string | undefined;
1343
+ } | undefined;
1344
+ http?: {
1345
+ baseUrl: string;
1346
+ auth: {
1347
+ type: "header";
1348
+ header: string;
1349
+ value: string;
1350
+ prefix?: string | undefined;
1351
+ } | {
1352
+ type: "bearer";
1353
+ token: string;
1354
+ } | {
1355
+ type: "basic";
1356
+ username: string;
1357
+ password: string;
1358
+ } | {
1359
+ type: "oauth2";
1360
+ tokenUrl: string;
1361
+ clientId: string;
1362
+ clientSecret: string;
1363
+ scope?: string | undefined;
1364
+ clientAuth?: "body" | "basic" | undefined;
1365
+ audience?: string | undefined;
1366
+ } | {
1367
+ type: "query";
1368
+ param: string;
1369
+ value: string;
1370
+ };
1371
+ headers: Record<string, string>;
1372
+ fieldHeaders: Record<string, string>;
1373
+ tools: {
1374
+ name: string;
1375
+ description: string;
1376
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1377
+ path: string;
1378
+ params: Record<string, {
1379
+ type: "string" | "number" | "boolean" | "array" | "integer";
1380
+ description: string;
1381
+ in: "body" | "path" | "query";
1382
+ required: boolean;
1383
+ name?: string | undefined;
1384
+ default?: string | number | boolean | (string | number | boolean)[] | undefined;
1385
+ enum?: (string | number | boolean)[] | undefined;
1386
+ items?: "string" | "number" | "boolean" | "integer" | undefined;
1387
+ join?: string | undefined;
1388
+ limit?: string | undefined;
1389
+ }>;
1390
+ destructive: boolean;
1391
+ answerLimits: {
1392
+ field: string;
1393
+ limit: string;
1394
+ }[];
1395
+ result?: {
1396
+ items?: string | undefined;
1397
+ fields?: string[] | undefined;
1398
+ } | undefined;
1399
+ paging?: {
1400
+ param: string;
1401
+ body: string;
1402
+ } | {
1403
+ param: string;
1404
+ header: string;
1405
+ } | {
1406
+ param: string;
1407
+ link: true;
1408
+ } | undefined;
1409
+ }[];
1410
+ allowInsecureHttp: boolean;
1411
+ allowedHosts?: string[] | undefined;
1412
+ } | undefined;
1413
+ soap?: {
1414
+ endpoint: string;
1415
+ version: "1.1" | "1.2";
1416
+ namespaces: Record<string, string>;
1417
+ tools: {
1418
+ name: string;
1419
+ description: string;
1420
+ operation: string;
1421
+ body: string;
1422
+ params: Record<string, {
1423
+ type: "string" | "number" | "boolean" | "integer";
1424
+ description: string;
1425
+ required: boolean;
1426
+ limit?: string | undefined;
1427
+ }>;
1428
+ readOnly: boolean;
1429
+ destructive: boolean;
1430
+ answerLimits: {
1431
+ field: string;
1432
+ limit: string;
1433
+ }[];
1434
+ soapAction?: string | undefined;
1435
+ result?: string | undefined;
1436
+ fields?: string[] | undefined;
1437
+ }[];
1438
+ allowInsecureHttp: boolean;
1439
+ auth?: {
1440
+ type: "header";
1441
+ header: string;
1442
+ value: string;
1443
+ prefix?: string | undefined;
1444
+ } | {
1445
+ type: "bearer";
1446
+ token: string;
1447
+ } | {
1448
+ type: "basic";
1449
+ username: string;
1450
+ password: string;
1451
+ } | undefined;
1452
+ wsSecurity?: {
1453
+ username: string;
1454
+ password: string;
1455
+ digest: boolean;
1456
+ } | undefined;
1457
+ verify?: {
1458
+ tool: string;
1459
+ args: Record<string, string | number | boolean>;
1460
+ show: string;
1461
+ } | undefined;
1462
+ } | undefined;
1463
+ odata?: {
1464
+ serviceRoot: string;
1465
+ version: "2" | "4";
1466
+ auth: {
1467
+ type: "header";
1468
+ header: string;
1469
+ value: string;
1470
+ prefix?: string | undefined;
1471
+ } | {
1472
+ type: "bearer";
1473
+ token: string;
1474
+ } | {
1475
+ type: "basic";
1476
+ username: string;
1477
+ password: string;
1478
+ } | {
1479
+ type: "oauth2";
1480
+ tokenUrl: string;
1481
+ clientId: string;
1482
+ clientSecret: string;
1483
+ scope?: string | undefined;
1484
+ clientAuth?: "body" | "basic" | undefined;
1485
+ audience?: string | undefined;
1486
+ } | {
1487
+ type: "query";
1488
+ param: string;
1489
+ value: string;
1490
+ };
1491
+ headers: Record<string, string>;
1492
+ csrf: boolean;
1493
+ paging: "skip" | "server";
1494
+ tools: {
1495
+ name: string;
1496
+ description: string;
1497
+ kind: "function" | "list" | "get" | "create" | "update" | "action";
1498
+ key: Record<string, {
1499
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
1500
+ description: string;
1501
+ property?: string | undefined;
1502
+ required?: boolean | undefined;
1503
+ limit?: string | undefined;
1504
+ }>;
1505
+ filters: Record<string, {
1506
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
1507
+ description: string;
1508
+ op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
1509
+ property?: string | undefined;
1510
+ required?: boolean | undefined;
1511
+ limit?: string | undefined;
1512
+ }>;
1513
+ fields: Record<string, {
1514
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
1515
+ description: string;
1516
+ property?: string | undefined;
1517
+ required?: boolean | undefined;
1518
+ limit?: string | undefined;
1519
+ }>;
1520
+ params: Record<string, {
1521
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
1522
+ description: string;
1523
+ property?: string | undefined;
1524
+ required?: boolean | undefined;
1525
+ limit?: string | undefined;
1526
+ }>;
1527
+ select: string[];
1528
+ top: number;
1529
+ destructive: boolean;
1530
+ answerLimits: {
1531
+ field: string;
1532
+ limit: string;
1533
+ }[];
1534
+ entitySet?: string | undefined;
1535
+ function?: string | undefined;
1536
+ orderBy?: string | undefined;
1537
+ }[];
1538
+ allowInsecureHttp: boolean;
1539
+ allowedHosts?: string[] | undefined;
1540
+ } | undefined;
1541
+ sql?: {
1542
+ engine: "postgres" | "sqlserver" | "mysql" | "oracle";
1543
+ host: string;
1544
+ database: string;
1545
+ auth: {
1546
+ user: string;
1547
+ password: string;
1548
+ };
1549
+ tls: "verify" | "insecure" | "off";
1550
+ timeoutSeconds: number;
1551
+ maxRows: number;
1552
+ tools: {
1553
+ name: string;
1554
+ description: string;
1555
+ sql: string;
1556
+ params: Record<string, {
1557
+ type: "string" | "number" | "boolean" | "integer";
1558
+ description: string;
1559
+ required: boolean;
1560
+ limit?: string | undefined;
1561
+ }>;
1562
+ write: boolean;
1563
+ destructive: boolean;
1564
+ answerLimits: {
1565
+ column: string;
1566
+ limit: string;
1567
+ }[];
1568
+ }[];
1569
+ port?: number | undefined;
1570
+ } | undefined;
1571
+ events?: {
1572
+ types: {
1573
+ id: string;
1574
+ label: string;
1575
+ }[];
1576
+ fields: Record<string, string>;
1577
+ limits: Record<string, string>;
1578
+ webhook?: {
1579
+ verify: {
1580
+ type: "hmac-sha256";
1581
+ header: string;
1582
+ prefix: string;
1583
+ } | {
1584
+ type: "token";
1585
+ header: string;
1586
+ } | {
1587
+ type: "none";
1588
+ };
1589
+ allowInsecure: boolean;
1590
+ type: {
1591
+ field: string;
1592
+ } | {
1593
+ header: string;
1594
+ };
1595
+ setup: {
1596
+ title: string;
1597
+ body: string;
1598
+ link?: {
1599
+ label: string;
1600
+ href: string;
1601
+ } | undefined;
1602
+ copy?: string[] | undefined;
1603
+ shell?: "bash" | "powershell" | undefined;
1604
+ permissions?: boolean | undefined;
1605
+ certificate?: boolean | undefined;
1606
+ click?: string[] | undefined;
1607
+ clickUnavailable?: true | undefined;
1608
+ siteRole?: "read" | "write" | undefined;
1609
+ agentCheck?: boolean | undefined;
1610
+ confirm?: string | undefined;
1611
+ live?: string | undefined;
1612
+ settings?: {
1613
+ id: string;
1614
+ label: string;
1615
+ pattern: string;
1616
+ help?: string | undefined;
1617
+ placeholder?: string | undefined;
1618
+ }[] | undefined;
1619
+ option?: {
1620
+ field: string;
1621
+ value: string;
1622
+ } | undefined;
1623
+ }[];
1624
+ deliveryId?: {
1625
+ field: string;
1626
+ } | {
1627
+ header: string;
1628
+ } | undefined;
1629
+ timestamp?: {
1630
+ at: {
1631
+ field: string;
1632
+ } | {
1633
+ header: string;
1634
+ };
1635
+ unit: "s" | "ms" | "iso";
1636
+ toleranceSeconds: number;
1637
+ } | undefined;
1638
+ register?: {
1639
+ method: "GET" | "POST" | "PUT";
1640
+ path: string;
1641
+ location: string;
1642
+ body?: unknown;
1643
+ } | undefined;
1644
+ } | undefined;
1645
+ self?: {
1646
+ request: {
1647
+ method: "GET" | "POST" | "PUT";
1648
+ path: string;
1649
+ body?: unknown;
1650
+ };
1651
+ id: string;
1652
+ fields: string[];
1653
+ } | undefined;
1654
+ poll?: {
1655
+ request: {
1656
+ method: "GET" | "POST" | "PUT";
1657
+ path: string;
1658
+ body?: unknown;
1659
+ };
1660
+ items: string;
1661
+ cursor: string;
1662
+ deliveryId: string[];
1663
+ types: {
1664
+ type: string;
1665
+ since?: string | undefined;
1666
+ }[];
1667
+ filter?: string | undefined;
1668
+ wrap?: string | undefined;
1669
+ } | undefined;
1670
+ } | undefined;
1671
+ };
1672
+ created: boolean;
1673
+ disconnected: boolean;
1674
+ grantsRemoved: string[];
1675
+ }>;
1676
+ deleteInternalApp(org: string, id: string, by: string): Promise<boolean>;
565
1677
  providers: () => {
566
1678
  approval: boolean;
567
1679
  id: string;
@@ -763,5 +1875,6 @@ export declare function createService(deps: {
763
1875
  refuseUngranted(tool: string, args: unknown): Promise<void>;
764
1876
  } | null>;
765
1877
  };
1878
+ export declare function plainParseError(message: string): string;
766
1879
  export type Service = ReturnType<typeof createService>;
767
1880
  export {};