@tai42/api-client 25.0.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents.d.ts +1 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js.map +1 -1
- package/dist/client/auth-client.d.ts +1 -0
- package/dist/client/auth-client.d.ts.map +1 -1
- package/dist/client/backup-client.d.ts +1 -0
- package/dist/client/backup-client.d.ts.map +1 -1
- package/dist/client/capabilities-client.d.ts +1 -0
- package/dist/client/capabilities-client.d.ts.map +1 -1
- package/dist/client/channels-client.d.ts +4 -1
- package/dist/client/channels-client.d.ts.map +1 -1
- package/dist/client/config-client.d.ts +1 -0
- package/dist/client/config-client.d.ts.map +1 -1
- package/dist/client/connectors-client.d.ts +7 -0
- package/dist/client/connectors-client.d.ts.map +1 -1
- package/dist/client/conversations-client.d.ts +9 -9
- package/dist/client/hooks-client.d.ts +1 -1
- package/dist/client/index.d.ts +529 -198
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +9 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/interactions-client.d.ts +1 -1
- package/dist/client/manifest-client.d.ts +161 -30
- package/dist/client/manifest-client.d.ts.map +1 -1
- package/dist/client/manifest-client.js +16 -5
- package/dist/client/manifest-client.js.map +1 -1
- package/dist/client/marketplace-client.d.ts +132 -83
- package/dist/client/marketplace-client.d.ts.map +1 -1
- package/dist/client/observability-client.d.ts +2 -2
- package/dist/client/presets-client.d.ts +113 -11
- package/dist/client/presets-client.d.ts.map +1 -1
- package/dist/client/presets-client.js +4 -3
- package/dist/client/presets-client.js.map +1 -1
- package/dist/client/profiles-client.d.ts +1 -0
- package/dist/client/profiles-client.d.ts.map +1 -1
- package/dist/client/states-client.d.ts +30 -21
- package/dist/client/states-client.d.ts.map +1 -1
- package/dist/client/states-client.js +5 -0
- package/dist/client/states-client.js.map +1 -1
- package/dist/client/storage-client.d.ts +19 -0
- package/dist/client/storage-client.d.ts.map +1 -1
- package/dist/client/storage-client.js +14 -17
- package/dist/client/storage-client.js.map +1 -1
- package/dist/client/templates-client.d.ts +20 -2
- package/dist/client/templates-client.d.ts.map +1 -1
- package/dist/client/templates-client.js +1 -1
- package/dist/client/templates-client.js.map +1 -1
- package/dist/client/tool-extensions-client.d.ts +3 -0
- package/dist/client/tool-extensions-client.d.ts.map +1 -1
- package/dist/client/transport.d.ts +2 -1
- package/dist/client/transport.d.ts.map +1 -1
- package/dist/client/transport.js.map +1 -1
- package/dist/errors.d.ts +13 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +31 -0
- package/dist/errors.js.map +1 -1
- package/dist/fleet-report.d.ts +14 -2
- package/dist/fleet-report.d.ts.map +1 -1
- package/dist/fleet-report.js +41 -10
- package/dist/fleet-report.js.map +1 -1
- package/dist/generated/api-routes.d.ts +17 -1
- package/dist/generated/api-routes.d.ts.map +1 -1
- package/dist/generated/api-routes.js +7 -2
- package/dist/generated/api-routes.js.map +1 -1
- package/dist/generated/openapi-schemas.d.ts +737 -160
- package/dist/generated/openapi-schemas.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.js +46 -27
- package/dist/generated/openapi-schemas.js.map +1 -1
- package/dist/generated/served-schemas.d.ts +80 -16
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +64 -4
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +11 -0
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/auth-routes.d.ts +34 -8
- package/dist/schemas/auth-routes.d.ts.map +1 -1
- package/dist/schemas/auth-routes.js +16 -8
- package/dist/schemas/auth-routes.js.map +1 -1
- package/dist/schemas/backup.d.ts +13 -0
- package/dist/schemas/backup.d.ts.map +1 -1
- package/dist/schemas/backup.js +5 -0
- package/dist/schemas/backup.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +11 -6
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +10 -6
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/channels.d.ts +7 -1
- package/dist/schemas/channels.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +6 -0
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/conversations.d.ts +11 -11
- package/dist/schemas/extensions.d.ts +8 -4
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/extensions.js +5 -4
- package/dist/schemas/extensions.js.map +1 -1
- package/dist/schemas/hooks.d.ts +1 -1
- package/dist/schemas/interactions.d.ts +3 -3
- package/dist/schemas/manifest-mcp.d.ts +79 -0
- package/dist/schemas/manifest-mcp.d.ts.map +1 -1
- package/dist/schemas/manifest-mcp.js +19 -0
- package/dist/schemas/manifest-mcp.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +155 -84
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/marketplace.js +7 -2
- package/dist/schemas/marketplace.js.map +1 -1
- package/dist/schemas/observability.d.ts +3 -3
- package/dist/schemas/presets.d.ts +107 -14
- package/dist/schemas/presets.d.ts.map +1 -1
- package/dist/schemas/presets.js +7 -5
- package/dist/schemas/presets.js.map +1 -1
- package/dist/schemas/profiles.d.ts +1 -0
- package/dist/schemas/profiles.d.ts.map +1 -1
- package/dist/schemas/served.d.ts +67 -13
- package/dist/schemas/served.d.ts.map +1 -1
- package/dist/schemas/states.d.ts +22 -22
- package/dist/schemas/storage.d.ts +30 -1
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +8 -1
- package/dist/schemas/storage.js.map +1 -1
- package/dist/schemas/system-kinds.d.ts +1 -0
- package/dist/schemas/system-kinds.d.ts.map +1 -1
- package/dist/schemas/templates.d.ts +110 -83
- package/dist/schemas/templates.d.ts.map +1 -1
- package/dist/schemas/templates.js +14 -2
- package/dist/schemas/templates.js.map +1 -1
- package/dist/schemas/tools.d.ts +1 -1
- package/package.json +3 -3
- package/src/agents.ts +1 -0
- package/src/client/index.ts +9 -2
- package/src/client/manifest-client.ts +39 -12
- package/src/client/presets-client.ts +20 -6
- package/src/client/states-client.ts +10 -0
- package/src/client/storage-client.ts +21 -17
- package/src/client/templates-client.ts +1 -1
- package/src/client/transport.ts +3 -1
- package/src/errors.ts +34 -0
- package/src/fleet-report.ts +46 -7
- package/src/generated/api-routes.ts +7 -2
- package/src/generated/openapi-schemas.ts +80 -31
- package/src/generated/served-schemas.ts +64 -4
- package/src/http.ts +12 -0
- package/src/index.ts +19 -2
- package/src/schemas/auth-routes.ts +18 -8
- package/src/schemas/backup.ts +7 -0
- package/src/schemas/capabilities.ts +10 -6
- package/src/schemas/channels.ts +2 -0
- package/src/schemas/extensions.ts +5 -4
- package/src/schemas/manifest-mcp.ts +25 -0
- package/src/schemas/marketplace.ts +7 -2
- package/src/schemas/presets.ts +13 -6
- package/src/schemas/storage.ts +10 -1
- package/src/schemas/templates.ts +17 -1
|
@@ -8,8 +8,8 @@ export declare const conversationDoor: z.ZodEnum<{
|
|
|
8
8
|
export type ConversationDoor = z.infer<typeof conversationDoor>;
|
|
9
9
|
/** What a route's turn runs: a registered agent, or a tool dispatch. */
|
|
10
10
|
export declare const conversationTargetKind: z.ZodEnum<{
|
|
11
|
-
tool: "tool";
|
|
12
11
|
agent: "agent";
|
|
12
|
+
tool: "tool";
|
|
13
13
|
}>;
|
|
14
14
|
export type ConversationTargetKind = z.infer<typeof conversationTargetKind>;
|
|
15
15
|
/**
|
|
@@ -137,8 +137,8 @@ export declare const conversationRouteView: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
137
137
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
138
|
}, z.core.$strict>>>;
|
|
139
139
|
target_kind: z.ZodEnum<{
|
|
140
|
-
tool: "tool";
|
|
141
140
|
agent: "agent";
|
|
141
|
+
tool: "tool";
|
|
142
142
|
}>;
|
|
143
143
|
target_name: z.ZodString;
|
|
144
144
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -206,8 +206,8 @@ export declare const conversationRouteView: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
206
206
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
207
|
}, z.core.$strict>>>;
|
|
208
208
|
target_kind: z.ZodEnum<{
|
|
209
|
-
tool: "tool";
|
|
210
209
|
agent: "agent";
|
|
210
|
+
tool: "tool";
|
|
211
211
|
}>;
|
|
212
212
|
target_name: z.ZodString;
|
|
213
213
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -278,8 +278,8 @@ export declare const conversationRoutes: z.ZodObject<{
|
|
|
278
278
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
279
279
|
}, z.core.$strict>>>;
|
|
280
280
|
target_kind: z.ZodEnum<{
|
|
281
|
-
tool: "tool";
|
|
282
281
|
agent: "agent";
|
|
282
|
+
tool: "tool";
|
|
283
283
|
}>;
|
|
284
284
|
target_name: z.ZodString;
|
|
285
285
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -347,8 +347,8 @@ export declare const conversationRoutes: z.ZodObject<{
|
|
|
347
347
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
348
348
|
}, z.core.$strict>>>;
|
|
349
349
|
target_kind: z.ZodEnum<{
|
|
350
|
-
tool: "tool";
|
|
351
350
|
agent: "agent";
|
|
351
|
+
tool: "tool";
|
|
352
352
|
}>;
|
|
353
353
|
target_name: z.ZodString;
|
|
354
354
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -431,8 +431,8 @@ export declare const conversationRouteWritten: z.ZodObject<{
|
|
|
431
431
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
432
432
|
}, z.core.$strict>>>;
|
|
433
433
|
target_kind: z.ZodEnum<{
|
|
434
|
-
tool: "tool";
|
|
435
434
|
agent: "agent";
|
|
435
|
+
tool: "tool";
|
|
436
436
|
}>;
|
|
437
437
|
target_name: z.ZodString;
|
|
438
438
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -500,8 +500,8 @@ export declare const conversationRouteWritten: z.ZodObject<{
|
|
|
500
500
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
501
501
|
}, z.core.$strict>>>;
|
|
502
502
|
target_kind: z.ZodEnum<{
|
|
503
|
-
tool: "tool";
|
|
504
503
|
agent: "agent";
|
|
504
|
+
tool: "tool";
|
|
505
505
|
}>;
|
|
506
506
|
target_name: z.ZodString;
|
|
507
507
|
turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1628,8 +1628,8 @@ export declare const conversationConfigs: z.ZodObject<{
|
|
|
1628
1628
|
}, z.core.$strict>>;
|
|
1629
1629
|
}, z.core.$strict>>>;
|
|
1630
1630
|
target_kind: z.ZodEnum<{
|
|
1631
|
-
tool: "tool";
|
|
1632
1631
|
agent: "agent";
|
|
1632
|
+
tool: "tool";
|
|
1633
1633
|
}>;
|
|
1634
1634
|
target_name: z.ZodString;
|
|
1635
1635
|
}, z.core.$strip>>;
|
|
@@ -1689,15 +1689,15 @@ export declare const conversationConfigWritten: z.ZodObject<{
|
|
|
1689
1689
|
}, z.core.$strict>>;
|
|
1690
1690
|
}, z.core.$strict>>>;
|
|
1691
1691
|
target_kind: z.ZodEnum<{
|
|
1692
|
-
tool: "tool";
|
|
1693
1692
|
agent: "agent";
|
|
1693
|
+
tool: "tool";
|
|
1694
1694
|
}>;
|
|
1695
1695
|
target_name: z.ZodString;
|
|
1696
1696
|
}, z.core.$strip>;
|
|
1697
1697
|
created: z.ZodBoolean;
|
|
1698
1698
|
target_kind: z.ZodEnum<{
|
|
1699
|
-
tool: "tool";
|
|
1700
1699
|
agent: "agent";
|
|
1700
|
+
tool: "tool";
|
|
1701
1701
|
}>;
|
|
1702
1702
|
target_name: z.ZodString;
|
|
1703
1703
|
}, z.core.$strip>;
|
|
@@ -1706,8 +1706,8 @@ export type ConversationConfigWritten = z.infer<typeof conversationConfigWritten
|
|
|
1706
1706
|
export declare const conversationConfigDeleted: z.ZodObject<{
|
|
1707
1707
|
removed: z.ZodBoolean;
|
|
1708
1708
|
target_kind: z.ZodEnum<{
|
|
1709
|
-
tool: "tool";
|
|
1710
1709
|
agent: "agent";
|
|
1710
|
+
tool: "tool";
|
|
1711
1711
|
}>;
|
|
1712
1712
|
target_name: z.ZodString;
|
|
1713
1713
|
}, z.core.$strip>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/** Extension element/combo and per-tool extension response schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const extension: z.ZodObject<{
|
|
4
|
+
config_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4
5
|
kind: z.ZodString;
|
|
5
6
|
multiple: z.ZodBoolean;
|
|
6
7
|
name: z.ZodString;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
export declare const extensions: z.ZodArray<z.ZodObject<{
|
|
10
|
+
config_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
11
|
kind: z.ZodString;
|
|
10
12
|
multiple: z.ZodBoolean;
|
|
11
13
|
name: z.ZodString;
|
|
@@ -13,8 +15,8 @@ export declare const extensions: z.ZodArray<z.ZodObject<{
|
|
|
13
15
|
export type Extension = z.infer<typeof extension>;
|
|
14
16
|
/**
|
|
15
17
|
* One element of an extension combo: a bare extension NAME, or a
|
|
16
|
-
* `{ name, config }` mapping binding
|
|
17
|
-
*
|
|
18
|
+
* `{ name, config }` mapping binding the extension's settings, which the server
|
|
19
|
+
* checks against the extension's declared `config_schema`. Both wire forms are admitted so a
|
|
18
20
|
* config-bearing combo parses without dropping server data. A drift throws
|
|
19
21
|
* `ApiSchemaError`.
|
|
20
22
|
*/
|
|
@@ -26,14 +28,16 @@ export type PresetExtensionElement = z.infer<typeof presetExtensionElement>;
|
|
|
26
28
|
/**
|
|
27
29
|
* `GET /api/tools/{name}/extensions` — a tool's FULL lossless list-of-combos plus
|
|
28
30
|
* the extension catalog. `combos` is a list of combos, each an ordered list of
|
|
29
|
-
* extension ELEMENTS (a bare name or a
|
|
30
|
-
*
|
|
31
|
+
* extension ELEMENTS (a bare name, or a `{ name, config }` mapping binding the
|
|
32
|
+
* extension's settings, which the server checks against the extension's declared
|
|
33
|
+
* `config_schema`); `[]` when the tool has no map entry.
|
|
31
34
|
* It carries EVERY combo mapped to the base tool (the union across every `tools`/`mcp`
|
|
32
35
|
* config), never a single flattened one. `available` is the same flat catalog
|
|
33
36
|
* `GET /api/extensions` returns. A drift throws `ApiSchemaError`.
|
|
34
37
|
*/
|
|
35
38
|
export declare const toolExtensions: z.ZodObject<{
|
|
36
39
|
available: z.ZodArray<z.ZodObject<{
|
|
40
|
+
config_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
41
|
kind: z.ZodString;
|
|
38
42
|
multiple: z.ZodBoolean;
|
|
39
43
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;;iBAAwB,CAAC;AAC/C,eAAO,MAAM,UAAU;;;;;kBAA2B,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAIlD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;mBAGjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;iBAEzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ export const extensions = openapi.extensionListing;
|
|
|
7
7
|
// reads its `{ name, config }` form.
|
|
8
8
|
/**
|
|
9
9
|
* One element of an extension combo: a bare extension NAME, or a
|
|
10
|
-
* `{ name, config }` mapping binding
|
|
11
|
-
*
|
|
10
|
+
* `{ name, config }` mapping binding the extension's settings, which the server
|
|
11
|
+
* checks against the extension's declared `config_schema`. Both wire forms are admitted so a
|
|
12
12
|
* config-bearing combo parses without dropping server data. A drift throws
|
|
13
13
|
* `ApiSchemaError`.
|
|
14
14
|
*/
|
|
@@ -19,8 +19,9 @@ export const presetExtensionElement = z.union([
|
|
|
19
19
|
/**
|
|
20
20
|
* `GET /api/tools/{name}/extensions` — a tool's FULL lossless list-of-combos plus
|
|
21
21
|
* the extension catalog. `combos` is a list of combos, each an ordered list of
|
|
22
|
-
* extension ELEMENTS (a bare name or a
|
|
23
|
-
*
|
|
22
|
+
* extension ELEMENTS (a bare name, or a `{ name, config }` mapping binding the
|
|
23
|
+
* extension's settings, which the server checks against the extension's declared
|
|
24
|
+
* `config_schema`); `[]` when the tool has no map entry.
|
|
24
25
|
* It carries EVERY combo mapped to the base tool (the union across every `tools`/`mcp`
|
|
25
26
|
* config), never a single flattened one. `available` is the same flat catalog
|
|
26
27
|
* `GET /api/extensions` returns. A drift throws `ApiSchemaError`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC;AAC/C,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAGnD,0FAA0F;AAC1F,qCAAqC;AACrC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5C,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;CAC1E,CAAC,CAAC;AAGH
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC;AAC/C,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAGnD,0FAA0F;AAC1F,qCAAqC;AACrC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5C,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;CAC1E,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACjD,CAAC,CAAC"}
|
package/dist/schemas/hooks.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Interaction question, answer and media response schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const answerFormat: z.ZodEnum<{
|
|
4
|
-
text: "text";
|
|
5
4
|
free: "free";
|
|
6
5
|
confirm: "confirm";
|
|
7
6
|
form: "form";
|
|
7
|
+
text: "text";
|
|
8
8
|
select: "select";
|
|
9
9
|
external: "external";
|
|
10
10
|
}>;
|
|
@@ -549,10 +549,10 @@ export declare const interactionReaction: z.ZodObject<{
|
|
|
549
549
|
export type InteractionReaction = z.infer<typeof interactionReaction>;
|
|
550
550
|
export declare const interaction: z.ZodObject<{
|
|
551
551
|
answer_format: z.ZodEnum<{
|
|
552
|
-
text: "text";
|
|
553
552
|
free: "free";
|
|
554
553
|
confirm: "confirm";
|
|
555
554
|
form: "form";
|
|
555
|
+
text: "text";
|
|
556
556
|
select: "select";
|
|
557
557
|
external: "external";
|
|
558
558
|
}>;
|
|
@@ -612,10 +612,10 @@ export declare const interactionsPage: z.ZodObject<{
|
|
|
612
612
|
truncated: z.ZodBoolean;
|
|
613
613
|
items: z.ZodArray<z.ZodObject<{
|
|
614
614
|
answer_format: z.ZodEnum<{
|
|
615
|
-
text: "text";
|
|
616
615
|
free: "free";
|
|
617
616
|
confirm: "confirm";
|
|
618
617
|
form: "form";
|
|
618
|
+
text: "text";
|
|
619
619
|
select: "select";
|
|
620
620
|
external: "external";
|
|
621
621
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Live-manifest MCP section, env-ref and config-reload schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
3
4
|
/**
|
|
4
5
|
* The back-reference a connector writes onto a manifest MCP entry to mark it
|
|
5
6
|
* connector-owned: the connection and the provider sub-service that own it.
|
|
@@ -29,6 +30,34 @@ export declare const manifestMcpEntry: z.ZodObject<{
|
|
|
29
30
|
}, z.core.$strip>>>;
|
|
30
31
|
}, z.core.$loose>;
|
|
31
32
|
export type ManifestMcpEntry = z.infer<typeof manifestMcpEntry>;
|
|
33
|
+
/**
|
|
34
|
+
* The preserved manifest's extension settings: the extension modules, the backend
|
|
35
|
+
* module, and the `extensions` maps of the `tools`, `mcp` and `api_tools` sections,
|
|
36
|
+
* each combo element refined to the client's extension-element schema.
|
|
37
|
+
*/
|
|
38
|
+
export declare const manifestExtensionSettings: z.ZodObject<{
|
|
39
|
+
backend_module: z.ZodNullable<z.ZodString>;
|
|
40
|
+
extensions_modules: z.ZodArray<z.ZodString>;
|
|
41
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
extensions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
+
}, z.core.$strip>]>>>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
mcp: z.ZodArray<z.ZodObject<{
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
extensions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
53
|
+
}, z.core.$strip>]>>>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
api_tools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
+
}, z.core.$strip>]>>>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export type ManifestExtensionSettings = z.infer<typeof manifestExtensionSettings>;
|
|
32
61
|
export declare const manifestView: z.ZodObject<{
|
|
33
62
|
user_tools: z.ZodArray<z.ZodString>;
|
|
34
63
|
mcp: z.ZodArray<z.ZodObject<{
|
|
@@ -38,6 +67,28 @@ export declare const manifestView: z.ZodObject<{
|
|
|
38
67
|
sub_service: z.ZodString;
|
|
39
68
|
}, z.core.$strip>>>;
|
|
40
69
|
}, z.core.$loose>>;
|
|
70
|
+
extension_settings: z.ZodObject<{
|
|
71
|
+
backend_module: z.ZodNullable<z.ZodString>;
|
|
72
|
+
extensions_modules: z.ZodArray<z.ZodString>;
|
|
73
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
74
|
+
title: z.ZodString;
|
|
75
|
+
extensions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
78
|
+
}, z.core.$strip>]>>>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
mcp: z.ZodArray<z.ZodObject<{
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
extensions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
85
|
+
}, z.core.$strip>]>>>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
api_tools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
90
|
+
}, z.core.$strip>]>>>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
41
92
|
}, z.core.$strip>;
|
|
42
93
|
/**
|
|
43
94
|
* One `!ENV ${VAR[:default]}` marker the manifest's MCP section carries
|
|
@@ -97,6 +148,7 @@ export declare const reloadConfigResult: z.ZodObject<{
|
|
|
97
148
|
name: z.ZodNullable<z.ZodString>;
|
|
98
149
|
}, z.core.$strip>>>;
|
|
99
150
|
}, z.core.$strip>>>;
|
|
151
|
+
span_release_error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
100
152
|
status: z.ZodString;
|
|
101
153
|
fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
154
|
mode: z.ZodLiteral<"local-only">;
|
|
@@ -148,4 +200,31 @@ export declare const reloadConfigResult: z.ZodObject<{
|
|
|
148
200
|
}, z.core.$strip>], "mode">;
|
|
149
201
|
}, z.core.$strip>;
|
|
150
202
|
export type ReloadConfigResult = z.infer<typeof reloadConfigResult>;
|
|
203
|
+
/**
|
|
204
|
+
* `POST /api/mcp-status/{title}/advertised-tools` — every tool the server advertises
|
|
205
|
+
* (before the entry's include/exclude filter), each with whether it is selected and
|
|
206
|
+
* bound, and why not (`unbound_reason`, or `null` when bound or unselected).
|
|
207
|
+
*/
|
|
208
|
+
export declare const mcpAdvertisedTools: z.ZodObject<{
|
|
209
|
+
exclude: z.ZodArray<z.ZodString>;
|
|
210
|
+
include: z.ZodArray<z.ZodString>;
|
|
211
|
+
title: z.ZodString;
|
|
212
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
213
|
+
bound: z.ZodBoolean;
|
|
214
|
+
description: z.ZodNullable<z.ZodString>;
|
|
215
|
+
name: z.ZodString;
|
|
216
|
+
selected: z.ZodBoolean;
|
|
217
|
+
title: z.ZodNullable<z.ZodString>;
|
|
218
|
+
unbound_reason: z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
server_failed: "server_failed";
|
|
220
|
+
not_loaded: "not_loaded";
|
|
221
|
+
preset_conflict: "preset_conflict";
|
|
222
|
+
unusable_schema: "unusable_schema";
|
|
223
|
+
not_listed_at_bind: "not_listed_at_bind";
|
|
224
|
+
}>>;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
unadvertised: z.ZodArray<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
export type McpAdvertisedTools = z.infer<typeof mcpAdvertisedTools>;
|
|
229
|
+
export type McpAdvertisedTool = z.infer<typeof openapi.mcpAdvertisedTool>;
|
|
151
230
|
//# sourceMappingURL=manifest-mcp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/manifest-mcp.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest-mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/manifest-mcp.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAIxD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;iBAIvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAInB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAIhE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGvB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS;;;;;iBAAoB,CAAC;AAC3C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAClD,eAAO,MAAM,UAAU;;;;;kBAAwB,CAAC;AAChD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8D,CAAC;AAC9F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;iBAA6B,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Live-manifest MCP section, env-ref and config-reload schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import * as openapi from '../generated/openapi-schemas';
|
|
4
|
+
import { presetExtensionElement } from './extensions';
|
|
4
5
|
import { fleetReportFanout } from './fleet';
|
|
5
6
|
/**
|
|
6
7
|
* The back-reference a connector writes onto a manifest MCP entry to mark it
|
|
@@ -27,8 +28,20 @@ export const manifestMcpEntry = z
|
|
|
27
28
|
managed: connectorRef.nullish(),
|
|
28
29
|
})
|
|
29
30
|
.loose();
|
|
31
|
+
const extensionMap = z.record(z.string(), z.array(z.array(presetExtensionElement)));
|
|
32
|
+
/**
|
|
33
|
+
* The preserved manifest's extension settings: the extension modules, the backend
|
|
34
|
+
* module, and the `extensions` maps of the `tools`, `mcp` and `api_tools` sections,
|
|
35
|
+
* each combo element refined to the client's extension-element schema.
|
|
36
|
+
*/
|
|
37
|
+
export const manifestExtensionSettings = openapi.manifestExtensionSettings.extend({
|
|
38
|
+
tools: z.array(openapi.manifestExtensionMap.extend({ extensions: extensionMap })),
|
|
39
|
+
mcp: z.array(openapi.manifestExtensionMap.extend({ extensions: extensionMap })),
|
|
40
|
+
api_tools: extensionMap,
|
|
41
|
+
});
|
|
30
42
|
export const manifestView = openapi.preservedManifestView.extend({
|
|
31
43
|
mcp: z.array(manifestMcpEntry),
|
|
44
|
+
extension_settings: manifestExtensionSettings,
|
|
32
45
|
});
|
|
33
46
|
/**
|
|
34
47
|
* One `!ENV ${VAR[:default]}` marker the manifest's MCP section carries
|
|
@@ -52,4 +65,10 @@ export const mcpEnvRefs = openapi.mcpEnvRefList;
|
|
|
52
65
|
* propagation. A drift throws `ApiSchemaError`.
|
|
53
66
|
*/
|
|
54
67
|
export const reloadConfigResult = openapi.applyResponse.extend({ fanout: fleetReportFanout });
|
|
68
|
+
/**
|
|
69
|
+
* `POST /api/mcp-status/{title}/advertised-tools` — every tool the server advertises
|
|
70
|
+
* (before the entry's include/exclude filter), each with whether it is selected and
|
|
71
|
+
* bound, and why not (`unbound_reason`, or `null` when bound or unselected).
|
|
72
|
+
*/
|
|
73
|
+
export const mcpAdvertisedTools = openapi.mcpAdvertisedTools;
|
|
55
74
|
//# sourceMappingURL=manifest-mcp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-mcp.js","sourceRoot":"","sources":["../../src/schemas/manifest-mcp.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,OAAO,EAAE,YAAY,CAAC,OAAO,EAAE;CAChC,CAAC;KACD,KAAK,EAAE,CAAC;AAGX,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest-mcp.js","sourceRoot":"","sources":["../../src/schemas/manifest-mcp.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,OAAO,EAAE,YAAY,CAAC,OAAO,EAAE;CAChC,CAAC;KACD,KAAK,EAAE,CAAC;AAGX,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,MAAM,CAAC;IAChF,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/E,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAC9B,kBAAkB,EAAE,yBAAyB;CAC9C,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAG9F;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC"}
|