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

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