@arbium/enterprise-agent-connect 0.1.2-dev.d2aa5ca → 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.
Files changed (127) hide show
  1. package/README.md +15 -5
  2. package/dist/connectors/dynamics-365/connector.json +16 -1
  3. package/dist/connectors/dynamics-365/index.d.ts +1 -4
  4. package/dist/connectors/dynamics-365/index.js.map +1 -1
  5. package/dist/connectors/entra/index.d.ts +1 -1
  6. package/dist/connectors/gong/vendor.d.ts +1 -1
  7. package/dist/connectors/gong/vendor.js +24 -32
  8. package/dist/connectors/gong/vendor.js.map +1 -1
  9. package/dist/connectors/http/index.d.ts +2 -6
  10. package/dist/connectors/http/index.js +4 -1
  11. package/dist/connectors/http/index.js.map +1 -1
  12. package/dist/connectors/http/openapi.d.ts +62 -0
  13. package/dist/connectors/http/openapi.js +342 -0
  14. package/dist/connectors/http/openapi.js.map +1 -0
  15. package/dist/connectors/intune/index.d.ts +1 -1
  16. package/dist/connectors/jamf/vendor.js +5 -1
  17. package/dist/connectors/jamf/vendor.js.map +1 -1
  18. package/dist/connectors/jira/connector.json +3 -3
  19. package/dist/connectors/jira/vendor.d.ts +1 -1
  20. package/dist/connectors/jira/vendor.js +8 -2
  21. package/dist/connectors/jira/vendor.js.map +1 -1
  22. package/dist/connectors/microsoft/client.d.ts +11 -3
  23. package/dist/connectors/microsoft/client.js +62 -8
  24. package/dist/connectors/microsoft/client.js.map +1 -1
  25. package/dist/connectors/netsuite/connector.json +4 -2
  26. package/dist/connectors/netsuite/vendor.d.ts +1 -1
  27. package/dist/connectors/netsuite/vendor.js +5 -6
  28. package/dist/connectors/netsuite/vendor.js.map +1 -1
  29. package/dist/connectors/odata/index.d.ts +1 -4
  30. package/dist/connectors/odata/index.js.map +1 -1
  31. package/dist/connectors/okta/connector.json +3 -2
  32. package/dist/connectors/okta/vendor.d.ts +1 -1
  33. package/dist/connectors/okta/vendor.js +7 -6
  34. package/dist/connectors/okta/vendor.js.map +1 -1
  35. package/dist/connectors/outlook-calendar/index.d.ts +1 -1
  36. package/dist/connectors/outlook-mail/index.d.ts +1 -1
  37. package/dist/connectors/salesforce/vendor.d.ts +1 -1
  38. package/dist/connectors/salesforce/vendor.js +9 -3
  39. package/dist/connectors/salesforce/vendor.js.map +1 -1
  40. package/dist/connectors/sap-s4hana/connector.json +1 -0
  41. package/dist/connectors/servicenow/vendor.d.ts +0 -1
  42. package/dist/connectors/servicenow/vendor.js +7 -10
  43. package/dist/connectors/servicenow/vendor.js.map +1 -1
  44. package/dist/connectors/sharepoint-files/connector.json +34 -3
  45. package/dist/connectors/sharepoint-files/documents.d.ts +7 -0
  46. package/dist/connectors/sharepoint-files/documents.js +212 -0
  47. package/dist/connectors/sharepoint-files/documents.js.map +1 -0
  48. package/dist/connectors/sharepoint-files/docx-worker.d.ts +7 -0
  49. package/dist/connectors/sharepoint-files/docx-worker.js +41 -0
  50. package/dist/connectors/sharepoint-files/docx-worker.js.map +1 -0
  51. package/dist/connectors/sharepoint-files/docx.d.ts +96 -0
  52. package/dist/connectors/sharepoint-files/docx.js +823 -0
  53. package/dist/connectors/sharepoint-files/docx.js.map +1 -0
  54. package/dist/connectors/sharepoint-files/index.d.ts +1 -4
  55. package/dist/connectors/sharepoint-files/index.js +2 -1
  56. package/dist/connectors/sharepoint-files/index.js.map +1 -1
  57. package/dist/connectors/sharepoint-files/ooxml.d.ts +19 -0
  58. package/dist/connectors/sharepoint-files/ooxml.js +179 -0
  59. package/dist/connectors/sharepoint-files/ooxml.js.map +1 -0
  60. package/dist/connectors/sharepoint-files/paging.d.ts +15 -0
  61. package/dist/connectors/sharepoint-files/paging.js +87 -0
  62. package/dist/connectors/sharepoint-files/paging.js.map +1 -0
  63. package/dist/connectors/sharepoint-files/parse-host.mjs +78 -0
  64. package/dist/connectors/sharepoint-files/pdf-worker.mjs +108 -0
  65. package/dist/connectors/sharepoint-files/pdf.d.ts +16 -0
  66. package/dist/connectors/sharepoint-files/pdf.js +19 -0
  67. package/dist/connectors/sharepoint-files/pdf.js.map +1 -0
  68. package/dist/connectors/sharepoint-files/sandbox.d.ts +19 -0
  69. package/dist/connectors/sharepoint-files/sandbox.js +176 -0
  70. package/dist/connectors/sharepoint-files/sandbox.js.map +1 -0
  71. package/dist/connectors/sharepoint-files/tools.d.ts +6 -0
  72. package/dist/connectors/sharepoint-files/tools.js +79 -4
  73. package/dist/connectors/sharepoint-files/tools.js.map +1 -1
  74. package/dist/connectors/slack/vendor.d.ts +1 -1
  75. package/dist/connectors/slack/vendor.js +32 -38
  76. package/dist/connectors/slack/vendor.js.map +1 -1
  77. package/dist/connectors/soap/index.d.ts +1 -4
  78. package/dist/connectors/sql/index.d.ts +1 -4
  79. package/dist/connectors/sql/index.js +2 -0
  80. package/dist/connectors/sql/index.js.map +1 -1
  81. package/dist/connectors/teams/index.d.ts +1 -1
  82. package/dist/connectors/teams/tools.d.ts +6 -1
  83. package/dist/connectors/teams/tools.js +3 -2
  84. package/dist/connectors/teams/tools.js.map +1 -1
  85. package/dist/connectors/workday/connector.json +6 -4
  86. package/dist/connectors/workday/vendor.d.ts +1 -1
  87. package/dist/connectors/workday/vendor.js +8 -4
  88. package/dist/connectors/workday/vendor.js.map +1 -1
  89. package/dist/packages/connector-kit/src/common.d.ts +4 -5
  90. package/dist/packages/connector-kit/src/common.js +4 -1
  91. package/dist/packages/connector-kit/src/common.js.map +1 -1
  92. package/dist/packages/connector-kit/src/connector.d.ts +37 -27
  93. package/dist/packages/connector-kit/src/connector.js +50 -11
  94. package/dist/packages/connector-kit/src/connector.js.map +1 -1
  95. package/dist/packages/connector-kit/src/fetch.d.ts +6 -0
  96. package/dist/packages/connector-kit/src/fetch.js +44 -0
  97. package/dist/packages/connector-kit/src/fetch.js.map +1 -0
  98. package/dist/packages/connector-kit/src/index.d.ts +3 -3
  99. package/dist/packages/connector-kit/src/index.js +1 -0
  100. package/dist/packages/connector-kit/src/index.js.map +1 -1
  101. package/dist/packages/connector-kit/src/oauth.d.ts +1 -1
  102. package/dist/packages/connector-kit/src/oauth.js +4 -2
  103. package/dist/packages/connector-kit/src/oauth.js.map +1 -1
  104. package/dist/packages/connector-kit/src/types.d.ts +4 -1
  105. package/dist/packages/connector-kit/src/types.js.map +1 -1
  106. package/dist/packages/server/migrations/0008_internal_apps.sql +16 -0
  107. package/dist/packages/server/migrations/rollback/to-legacy.sql +2 -0
  108. package/dist/packages/server/src/api.d.ts +2417 -253
  109. package/dist/packages/server/src/api.js +84 -1
  110. package/dist/packages/server/src/api.js.map +1 -1
  111. package/dist/packages/server/src/app.js +26 -1
  112. package/dist/packages/server/src/app.js.map +1 -1
  113. package/dist/packages/server/src/builtin.d.ts +4 -3
  114. package/dist/packages/server/src/builtin.js.map +1 -1
  115. package/dist/packages/server/src/events/runtime.js +17 -10
  116. package/dist/packages/server/src/events/runtime.js.map +1 -1
  117. package/dist/packages/server/src/events/store.d.ts +2 -2
  118. package/dist/packages/server/src/index.d.ts +3 -3
  119. package/dist/packages/server/src/index.js +32 -22
  120. package/dist/packages/server/src/index.js.map +1 -1
  121. package/dist/packages/server/src/service.d.ts +1113 -14
  122. package/dist/packages/server/src/service.js +266 -21
  123. package/dist/packages/server/src/service.js.map +1 -1
  124. package/dist/packages/server/src/store.d.ts +43 -4
  125. package/dist/packages/server/src/store.js +79 -0
  126. package/dist/packages/server/src/store.js.map +1 -1
  127. package/package.json +4 -1
@@ -1,8 +1,9 @@
1
1
  import { type Connector, type Provider } from "../../connector-kit/src/connector.js";
2
2
  import { type CredentialKey } from "./secrets.js";
3
3
  import type { AgentRow, ConnectionRow, Limits, ProviderRow, PublicConnection, Store } from "./store.js";
4
- import { type ToolContext, type Toolset } from "../../connector-kit/src/common.js";
4
+ import { type Toolset } from "../../connector-kit/src/common.js";
5
5
  import type { TeamsAccess } from "./teams/runtime.js";
6
+ import type { TeamsToolContext } from "../../../connectors/teams/tools.js";
6
7
  import type { BotRow } from "./teams/store.js";
7
8
  import { type ProviderClient, type Vendor, type VendorRequest } from "../../connector-kit/src/types.js";
8
9
  export type App = {
@@ -27,6 +28,7 @@ export type CheckResult = {
27
28
  label: string;
28
29
  values: string[];
29
30
  warning?: string;
31
+ labels?: Record<string, string>;
30
32
  };
31
33
  export declare class InvalidInput extends Error {
32
34
  }
@@ -42,6 +44,8 @@ export declare function createService(deps: {
42
44
  providers?: ProviderApp[];
43
45
  store: Store;
44
46
  key: CredentialKey;
47
+ internalApp?: (connector: Connector) => App;
48
+ reservedIds?: Iterable<string>;
45
49
  bots?: {
46
50
  botForAgent(org: string, agentId: string): Promise<BotRow | null>;
47
51
  access(bot: BotRow): TeamsAccess;
@@ -68,7 +72,7 @@ export declare function createService(deps: {
68
72
  certificate?: boolean | undefined;
69
73
  click?: string[] | undefined;
70
74
  clickUnavailable?: true | undefined;
71
- siteRole?: "write" | "read" | undefined;
75
+ siteRole?: "read" | "write" | undefined;
72
76
  agentCheck?: boolean | undefined;
73
77
  confirm?: string | undefined;
74
78
  live?: string | undefined;
@@ -83,6 +87,7 @@ export declare function createService(deps: {
83
87
  field: string;
84
88
  value: string;
85
89
  } | undefined;
90
+ capabilities?: string[] | undefined;
86
91
  }[];
87
92
  afterConnect: {
88
93
  title: string;
@@ -97,7 +102,7 @@ export declare function createService(deps: {
97
102
  certificate?: boolean | undefined;
98
103
  click?: string[] | undefined;
99
104
  clickUnavailable?: true | undefined;
100
- siteRole?: "write" | "read" | undefined;
105
+ siteRole?: "read" | "write" | undefined;
101
106
  agentCheck?: boolean | undefined;
102
107
  confirm?: string | undefined;
103
108
  live?: string | undefined;
@@ -112,11 +117,13 @@ export declare function createService(deps: {
112
117
  field: string;
113
118
  value: string;
114
119
  } | undefined;
120
+ capabilities?: string[] | undefined;
115
121
  }[];
116
122
  fields: {
117
123
  id: string;
118
124
  label: string;
119
125
  secret: boolean;
126
+ optional: boolean;
120
127
  help?: string | undefined;
121
128
  placeholder?: string | undefined;
122
129
  options?: {
@@ -160,6 +167,7 @@ export declare function createService(deps: {
160
167
  path: string;
161
168
  label: string;
162
169
  show: string;
170
+ name?: string | undefined;
163
171
  match?: Record<string, string | number | boolean> | undefined;
164
172
  body?: Record<string, unknown> | undefined;
165
173
  ifEmpty?: string | undefined;
@@ -187,7 +195,7 @@ export declare function createService(deps: {
187
195
  certificate?: boolean | undefined;
188
196
  click?: string[] | undefined;
189
197
  clickUnavailable?: true | undefined;
190
- siteRole?: "write" | "read" | undefined;
198
+ siteRole?: "read" | "write" | undefined;
191
199
  agentCheck?: boolean | undefined;
192
200
  confirm?: string | undefined;
193
201
  live?: string | undefined;
@@ -226,6 +234,7 @@ export declare function createService(deps: {
226
234
  path: string;
227
235
  label: string;
228
236
  show: string;
237
+ name?: string | undefined;
229
238
  match?: Record<string, string | number | boolean> | undefined;
230
239
  body?: Record<string, unknown> | undefined;
231
240
  ifEmpty?: string | undefined;
@@ -268,7 +277,7 @@ export declare function createService(deps: {
268
277
  params: Record<string, {
269
278
  type: "string" | "number" | "boolean" | "array" | "integer";
270
279
  description: string;
271
- in: "path" | "body" | "query";
280
+ in: "body" | "path" | "query";
272
281
  required: boolean;
273
282
  name?: string | undefined;
274
283
  default?: string | number | boolean | (string | number | boolean)[] | undefined;
@@ -383,14 +392,14 @@ export declare function createService(deps: {
383
392
  description: string;
384
393
  kind: "function" | "list" | "get" | "create" | "update" | "action";
385
394
  key: Record<string, {
386
- type: "string" | "number" | "boolean" | "integer" | "decimal" | "guid" | "datetime" | "datetimeoffset";
395
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
387
396
  description: string;
388
397
  property?: string | undefined;
389
398
  required?: boolean | undefined;
390
399
  limit?: string | undefined;
391
400
  }>;
392
401
  filters: Record<string, {
393
- type: "string" | "number" | "boolean" | "integer" | "decimal" | "guid" | "datetime" | "datetimeoffset";
402
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
394
403
  description: string;
395
404
  op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
396
405
  property?: string | undefined;
@@ -398,14 +407,14 @@ export declare function createService(deps: {
398
407
  limit?: string | undefined;
399
408
  }>;
400
409
  fields: Record<string, {
401
- type: "string" | "number" | "boolean" | "integer" | "decimal" | "guid" | "datetime" | "datetimeoffset";
410
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
402
411
  description: string;
403
412
  property?: string | undefined;
404
413
  required?: boolean | undefined;
405
414
  limit?: string | undefined;
406
415
  }>;
407
416
  params: Record<string, {
408
- type: "string" | "number" | "boolean" | "integer" | "decimal" | "guid" | "datetime" | "datetimeoffset";
417
+ type: "string" | "number" | "boolean" | "guid" | "integer" | "decimal" | "datetime" | "datetimeoffset";
409
418
  description: string;
410
419
  property?: string | undefined;
411
420
  required?: boolean | undefined;
@@ -491,7 +500,7 @@ export declare function createService(deps: {
491
500
  certificate?: boolean | undefined;
492
501
  click?: string[] | undefined;
493
502
  clickUnavailable?: true | undefined;
494
- siteRole?: "write" | "read" | undefined;
503
+ siteRole?: "read" | "write" | undefined;
495
504
  agentCheck?: boolean | undefined;
496
505
  confirm?: string | undefined;
497
506
  live?: string | undefined;
@@ -548,13 +557,1102 @@ export declare function createService(deps: {
548
557
  deliveryId: string[];
549
558
  types: {
550
559
  type: string;
551
- same?: [string, string] | undefined;
560
+ since?: string | undefined;
552
561
  }[];
553
562
  filter?: string | undefined;
554
563
  wrap?: string | undefined;
555
564
  } | undefined;
556
565
  } | undefined;
557
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>;
558
1656
  providers: () => {
559
1657
  approval: boolean;
560
1658
  id: string;
@@ -577,7 +1675,7 @@ export declare function createService(deps: {
577
1675
  certificate?: boolean | undefined;
578
1676
  click?: string[] | undefined;
579
1677
  clickUnavailable?: true | undefined;
580
- siteRole?: "write" | "read" | undefined;
1678
+ siteRole?: "read" | "write" | undefined;
581
1679
  agentCheck?: boolean | undefined;
582
1680
  confirm?: string | undefined;
583
1681
  live?: string | undefined;
@@ -625,7 +1723,7 @@ export declare function createService(deps: {
625
1723
  certificate?: boolean | undefined;
626
1724
  click?: string[] | undefined;
627
1725
  clickUnavailable?: true | undefined;
628
- siteRole?: "write" | "read" | undefined;
1726
+ siteRole?: "read" | "write" | undefined;
629
1727
  agentCheck?: boolean | undefined;
630
1728
  confirm?: string | undefined;
631
1729
  live?: string | undefined;
@@ -750,11 +1848,12 @@ export declare function createService(deps: {
750
1848
  agent: AgentRow;
751
1849
  toolsets: {
752
1850
  toolset: Toolset;
753
- ctx: ToolContext;
1851
+ ctx: TeamsToolContext;
754
1852
  allowed: Set<string>;
755
1853
  }[];
756
1854
  refuseUngranted(tool: string, args: unknown): Promise<void>;
757
1855
  } | null>;
758
1856
  };
1857
+ export declare function plainParseError(message: string): string;
759
1858
  export type Service = ReturnType<typeof createService>;
760
1859
  export {};