@tai42/api-client 0.11.0 → 0.13.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/schemas.d.ts CHANGED
@@ -39,21 +39,15 @@ export declare const allToolSchemas: z.ZodRecord<z.ZodString, z.ZodObject<{
39
39
  }>>;
40
40
  export declare const runToolResult: z.ZodType<unknown, z.ZodTypeDef, unknown>;
41
41
  /**
42
- * The MEDIA variant a direct tool run (`/api/run-tool`) can return:
43
- * fastmcp serializes a returned `Image`/`Audio` MediaBlock to the MCP content
44
- * object `{ type: 'image' | 'audio', data: <base64>, mimeType: <mime> }`. The
45
- * `ResultViewer` detects this shape and renders an `<img>`/`<audio>` from a
46
- * `data:` URI. A tool result is still arbitrary JSON (`runToolResult`); this is
47
- * one recognised shape it can take, kept as its own schema so the viewer's
48
- * detection is a schema parse, not an ad-hoc shape check.
42
+ * The MEDIA content shape a direct tool run may return — fastmcp's serialized
43
+ * `Image`/`Audio` MediaBlock (`{ type, data: <base64>, mimeType }`). One recognised
44
+ * shape of the otherwise-arbitrary `runToolResult`, kept as its own schema so the
45
+ * viewer detects media by parse, not by ad-hoc shape check.
49
46
  *
50
- * SECURITY: the refinement pins `mimeType` to its media kind — an `image` block
51
- * MUST carry an `image/*` type, an `audio` block an `audio/*` type. A drifting or
52
- * arbitrary mimeType (e.g. a script type) fails the parse, so the viewer never
53
- * turns an unexpected mime into a `data:` URI — it falls back to the JSON/text
54
- * view instead. A `File` MediaBlock serializes to a distinct `EmbeddedResource`
55
- * shape (no top-level `data`/`mimeType`), so it also fails here and is not
56
- * media-rendered.
47
+ * SECURITY: the refinement pins `mimeType` to its kind — `image` MUST be `image/*`,
48
+ * `audio` MUST be `audio/*` — so a drifting/arbitrary mime fails the parse and is
49
+ * never turned into a `data:` URI (a `File` MediaBlock's distinct `EmbeddedResource`
50
+ * shape also fails here, by design).
57
51
  */
58
52
  export declare const toolMediaResult: z.ZodEffects<z.ZodObject<{
59
53
  type: z.ZodEnum<["image", "audio"]>;
@@ -1236,14 +1230,156 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1236
1230
  mode: "unreachable";
1237
1231
  }>]>;
1238
1232
  export type FleetReportFanout = z.infer<typeof fleetReportFanout>;
1233
+ /**
1234
+ * The back-reference a connector writes onto a manifest MCP entry to mark it
1235
+ * connector-owned: the connection and the provider sub-service that own it.
1236
+ * Hand-authored entries carry no `managed` marker.
1237
+ */
1238
+ export declare const connectorRef: z.ZodObject<{
1239
+ connection_id: z.ZodString;
1240
+ provider_id: z.ZodString;
1241
+ sub_service: z.ZodString;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ connection_id: string;
1244
+ provider_id: string;
1245
+ sub_service: string;
1246
+ }, {
1247
+ connection_id: string;
1248
+ provider_id: string;
1249
+ sub_service: string;
1250
+ }>;
1251
+ export type ConnectorRef = z.infer<typeof connectorRef>;
1252
+ /**
1253
+ * One entry of the live manifest's MCP section. Only the `managed` provenance
1254
+ * marker is typed — the connect/disconnect flows write it server-side to point a
1255
+ * connector-owned entry back at its connection, and the editor renders such
1256
+ * entries read-only. `.nullish()` because a hand-authored entry carries `null`
1257
+ * (present) or omits the key. Every other field (title, config, extensions) rides
1258
+ * through `.passthrough()` unmodeled so the config editor keeps editing the whole
1259
+ * entry — narrowing it to a typed subset would silently strip the fields it saves.
1260
+ */
1261
+ export declare const manifestMcpEntry: z.ZodObject<{
1262
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1263
+ connection_id: z.ZodString;
1264
+ provider_id: z.ZodString;
1265
+ sub_service: z.ZodString;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ connection_id: string;
1268
+ provider_id: string;
1269
+ sub_service: string;
1270
+ }, {
1271
+ connection_id: string;
1272
+ provider_id: string;
1273
+ sub_service: string;
1274
+ }>>>;
1275
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1276
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1277
+ connection_id: z.ZodString;
1278
+ provider_id: z.ZodString;
1279
+ sub_service: z.ZodString;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ connection_id: string;
1282
+ provider_id: string;
1283
+ sub_service: string;
1284
+ }, {
1285
+ connection_id: string;
1286
+ provider_id: string;
1287
+ sub_service: string;
1288
+ }>>>;
1289
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1290
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1291
+ connection_id: z.ZodString;
1292
+ provider_id: z.ZodString;
1293
+ sub_service: z.ZodString;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ connection_id: string;
1296
+ provider_id: string;
1297
+ sub_service: string;
1298
+ }, {
1299
+ connection_id: string;
1300
+ provider_id: string;
1301
+ sub_service: string;
1302
+ }>>>;
1303
+ }, z.ZodTypeAny, "passthrough">>;
1304
+ export type ManifestMcpEntry = z.infer<typeof manifestMcpEntry>;
1239
1305
  export declare const manifestView: z.ZodObject<{
1240
- mcp: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1306
+ mcp: z.ZodArray<z.ZodObject<{
1307
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1308
+ connection_id: z.ZodString;
1309
+ provider_id: z.ZodString;
1310
+ sub_service: z.ZodString;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ connection_id: string;
1313
+ provider_id: string;
1314
+ sub_service: string;
1315
+ }, {
1316
+ connection_id: string;
1317
+ provider_id: string;
1318
+ sub_service: string;
1319
+ }>>>;
1320
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1321
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1322
+ connection_id: z.ZodString;
1323
+ provider_id: z.ZodString;
1324
+ sub_service: z.ZodString;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ connection_id: string;
1327
+ provider_id: string;
1328
+ sub_service: string;
1329
+ }, {
1330
+ connection_id: string;
1331
+ provider_id: string;
1332
+ sub_service: string;
1333
+ }>>>;
1334
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1335
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1336
+ connection_id: z.ZodString;
1337
+ provider_id: z.ZodString;
1338
+ sub_service: z.ZodString;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ connection_id: string;
1341
+ provider_id: string;
1342
+ sub_service: string;
1343
+ }, {
1344
+ connection_id: string;
1345
+ provider_id: string;
1346
+ sub_service: string;
1347
+ }>>>;
1348
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1241
1349
  user_tools: z.ZodArray<z.ZodString, "many">;
1242
1350
  }, "strip", z.ZodTypeAny, {
1243
- mcp: Record<string, unknown>[];
1351
+ mcp: z.objectOutputType<{
1352
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1353
+ connection_id: z.ZodString;
1354
+ provider_id: z.ZodString;
1355
+ sub_service: z.ZodString;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ connection_id: string;
1358
+ provider_id: string;
1359
+ sub_service: string;
1360
+ }, {
1361
+ connection_id: string;
1362
+ provider_id: string;
1363
+ sub_service: string;
1364
+ }>>>;
1365
+ }, z.ZodTypeAny, "passthrough">[];
1244
1366
  user_tools: string[];
1245
1367
  }, {
1246
- mcp: Record<string, unknown>[];
1368
+ mcp: z.objectInputType<{
1369
+ managed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1370
+ connection_id: z.ZodString;
1371
+ provider_id: z.ZodString;
1372
+ sub_service: z.ZodString;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ connection_id: string;
1375
+ provider_id: string;
1376
+ sub_service: string;
1377
+ }, {
1378
+ connection_id: string;
1379
+ provider_id: string;
1380
+ sub_service: string;
1381
+ }>>>;
1382
+ }, z.ZodTypeAny, "passthrough">[];
1247
1383
  user_tools: string[];
1248
1384
  }>;
1249
1385
  /**
@@ -1747,16 +1883,47 @@ export declare const mcpReloadResult: z.ZodObject<{
1747
1883
  }[];
1748
1884
  }>;
1749
1885
  export type McpReloadResult = z.infer<typeof mcpReloadResult>;
1750
- export declare const subMcpList: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1886
+ /**
1887
+ * One registered sub-MCP mount as it rides the registry list and the projection:
1888
+ * the tools it exposes and the transport it serves on. In `GET /api/sub-mcp` the
1889
+ * slug is the map key, so the mount value carries no slug; {@link subMcpEntry}
1890
+ * extends this with `slug` for the capability projection where mounts are a flat
1891
+ * list. `transport` is always present on the wire (the server defaults it to
1892
+ * `http`), so it is required — its absence is a drift, not a legal shape.
1893
+ */
1894
+ export declare const subMcpMount: z.ZodObject<{
1895
+ tools: z.ZodArray<z.ZodString, "many">;
1896
+ transport: z.ZodString;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ tools: string[];
1899
+ transport: string;
1900
+ }, {
1901
+ tools: string[];
1902
+ transport: string;
1903
+ }>;
1904
+ export type SubMcpMount = z.infer<typeof subMcpMount>;
1905
+ export declare const subMcpList: z.ZodRecord<z.ZodString, z.ZodObject<{
1906
+ tools: z.ZodArray<z.ZodString, "many">;
1907
+ transport: z.ZodString;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ tools: string[];
1910
+ transport: string;
1911
+ }, {
1912
+ tools: string[];
1913
+ transport: string;
1914
+ }>>;
1751
1915
  export declare const subMcpCreated: z.ZodObject<{
1752
1916
  slug: z.ZodString;
1753
1917
  tools: z.ZodArray<z.ZodString, "many">;
1918
+ transport: z.ZodString;
1754
1919
  }, "strip", z.ZodTypeAny, {
1755
- slug: string;
1756
1920
  tools: string[];
1757
- }, {
1921
+ transport: string;
1758
1922
  slug: string;
1923
+ }, {
1759
1924
  tools: string[];
1925
+ transport: string;
1926
+ slug: string;
1760
1927
  }>;
1761
1928
  export declare const subMcpRemoved: z.ZodObject<{
1762
1929
  slug: z.ZodString;
@@ -1780,12 +1947,9 @@ export declare const envConfig: z.ZodObject<{
1780
1947
  }>;
1781
1948
  /**
1782
1949
  * `GET /api/config/mode` — the active config backend mode (`file` / `k8s`). The
1783
- * skeleton emits ONLY `config_mode`; `read_only` is a UI-side gate that no config
1784
- * backend currently drives (both the `file` and `k8s` providers implement writes),
1785
- * so it is tolerated-absent and defaults to `false` (writable). A deployment whose
1786
- * config is genuinely read-only can still opt in by emitting `read_only: true`,
1787
- * which the settings surface honors — but its absence is the normal case, not a
1788
- * drift, so requiring it here would make every real `getConfigMode()` throw.
1950
+ * skeleton emits only `config_mode`; `read_only` is a UI-side gate, tolerated-absent
1951
+ * and defaulting to `false` (writable) so a normal response never drifts, while a
1952
+ * genuinely read-only deployment can opt in by emitting `read_only: true`.
1789
1953
  */
1790
1954
  export declare const configMode: z.ZodObject<{
1791
1955
  config_mode: z.ZodString;
@@ -1918,93 +2082,189 @@ export declare const providerView: z.ZodObject<{
1918
2082
  secret: boolean;
1919
2083
  }[];
1920
2084
  }>;
1921
- export declare const providers: z.ZodArray<z.ZodObject<{
2085
+ export type ProviderView = z.infer<typeof providerView>;
2086
+ /**
2087
+ * One `connector_category` grouping row served alongside the catalog: the UI's
2088
+ * label and sort key for the providers it groups, so the list can group, order,
2089
+ * and label providers by category without a second read.
2090
+ */
2091
+ export declare const connectorCategoryView: z.ZodObject<{
1922
2092
  id: z.ZodString;
1923
2093
  display_name: z.ZodString;
1924
- description: z.ZodString;
1925
- icon_url: z.ZodString;
1926
- kind: z.ZodEnum<["oauth", "none"]>;
1927
- origin: z.ZodEnum<["system", "community"]>;
1928
- category: z.ZodString;
1929
- sub_services: z.ZodArray<z.ZodObject<{
2094
+ sort_order: z.ZodNumber;
2095
+ }, "strip", z.ZodTypeAny, {
2096
+ id: string;
2097
+ display_name: string;
2098
+ sort_order: number;
2099
+ }, {
2100
+ id: string;
2101
+ display_name: string;
2102
+ sort_order: number;
2103
+ }>;
2104
+ export type ConnectorCategoryView = z.infer<typeof connectorCategoryView>;
2105
+ /**
2106
+ * `GET /api/connectors/providers` — the provider catalog: the providers plus the
2107
+ * category groupings the UI arranges them under. Reshaped from a bare provider
2108
+ * array so the category label/order surface rides the same read.
2109
+ */
2110
+ export declare const providers: z.ZodObject<{
2111
+ providers: z.ZodArray<z.ZodObject<{
1930
2112
  id: z.ZodString;
1931
2113
  display_name: z.ZodString;
1932
2114
  description: z.ZodString;
1933
- scopes: z.ZodArray<z.ZodString, "many">;
2115
+ icon_url: z.ZodString;
2116
+ kind: z.ZodEnum<["oauth", "none"]>;
2117
+ origin: z.ZodEnum<["system", "community"]>;
2118
+ category: z.ZodString;
2119
+ sub_services: z.ZodArray<z.ZodObject<{
2120
+ id: z.ZodString;
2121
+ display_name: z.ZodString;
2122
+ description: z.ZodString;
2123
+ scopes: z.ZodArray<z.ZodString, "many">;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ description: string;
2126
+ id: string;
2127
+ display_name: string;
2128
+ scopes: string[];
2129
+ }, {
2130
+ description: string;
2131
+ id: string;
2132
+ display_name: string;
2133
+ scopes: string[];
2134
+ }>, "many">;
2135
+ config_fields: z.ZodArray<z.ZodObject<{
2136
+ key: z.ZodString;
2137
+ label: z.ZodString;
2138
+ target: z.ZodEnum<["env", "header"]>;
2139
+ required: z.ZodBoolean;
2140
+ secret: z.ZodBoolean;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ key: string;
2143
+ required: boolean;
2144
+ label: string;
2145
+ target: "env" | "header";
2146
+ secret: boolean;
2147
+ }, {
2148
+ key: string;
2149
+ required: boolean;
2150
+ label: string;
2151
+ target: "env" | "header";
2152
+ secret: boolean;
2153
+ }>, "many">;
1934
2154
  }, "strip", z.ZodTypeAny, {
1935
2155
  description: string;
2156
+ kind: "oauth" | "none";
1936
2157
  id: string;
1937
2158
  display_name: string;
1938
- scopes: string[];
2159
+ origin: "system" | "community";
2160
+ icon_url: string;
2161
+ category: string;
2162
+ sub_services: {
2163
+ description: string;
2164
+ id: string;
2165
+ display_name: string;
2166
+ scopes: string[];
2167
+ }[];
2168
+ config_fields: {
2169
+ key: string;
2170
+ required: boolean;
2171
+ label: string;
2172
+ target: "env" | "header";
2173
+ secret: boolean;
2174
+ }[];
1939
2175
  }, {
1940
2176
  description: string;
2177
+ kind: "oauth" | "none";
1941
2178
  id: string;
1942
2179
  display_name: string;
1943
- scopes: string[];
2180
+ origin: "system" | "community";
2181
+ icon_url: string;
2182
+ category: string;
2183
+ sub_services: {
2184
+ description: string;
2185
+ id: string;
2186
+ display_name: string;
2187
+ scopes: string[];
2188
+ }[];
2189
+ config_fields: {
2190
+ key: string;
2191
+ required: boolean;
2192
+ label: string;
2193
+ target: "env" | "header";
2194
+ secret: boolean;
2195
+ }[];
1944
2196
  }>, "many">;
1945
- config_fields: z.ZodArray<z.ZodObject<{
1946
- key: z.ZodString;
1947
- label: z.ZodString;
1948
- target: z.ZodEnum<["env", "header"]>;
1949
- required: z.ZodBoolean;
1950
- secret: z.ZodBoolean;
2197
+ categories: z.ZodArray<z.ZodObject<{
2198
+ id: z.ZodString;
2199
+ display_name: z.ZodString;
2200
+ sort_order: z.ZodNumber;
1951
2201
  }, "strip", z.ZodTypeAny, {
1952
- key: string;
1953
- required: boolean;
1954
- label: string;
1955
- target: "env" | "header";
1956
- secret: boolean;
2202
+ id: string;
2203
+ display_name: string;
2204
+ sort_order: number;
1957
2205
  }, {
1958
- key: string;
1959
- required: boolean;
1960
- label: string;
1961
- target: "env" | "header";
1962
- secret: boolean;
2206
+ id: string;
2207
+ display_name: string;
2208
+ sort_order: number;
1963
2209
  }>, "many">;
1964
2210
  }, "strip", z.ZodTypeAny, {
1965
- description: string;
1966
- kind: "oauth" | "none";
1967
- id: string;
1968
- display_name: string;
1969
- origin: "system" | "community";
1970
- icon_url: string;
1971
- category: string;
1972
- sub_services: {
2211
+ providers: {
1973
2212
  description: string;
2213
+ kind: "oauth" | "none";
1974
2214
  id: string;
1975
2215
  display_name: string;
1976
- scopes: string[];
2216
+ origin: "system" | "community";
2217
+ icon_url: string;
2218
+ category: string;
2219
+ sub_services: {
2220
+ description: string;
2221
+ id: string;
2222
+ display_name: string;
2223
+ scopes: string[];
2224
+ }[];
2225
+ config_fields: {
2226
+ key: string;
2227
+ required: boolean;
2228
+ label: string;
2229
+ target: "env" | "header";
2230
+ secret: boolean;
2231
+ }[];
1977
2232
  }[];
1978
- config_fields: {
1979
- key: string;
1980
- required: boolean;
1981
- label: string;
1982
- target: "env" | "header";
1983
- secret: boolean;
2233
+ categories: {
2234
+ id: string;
2235
+ display_name: string;
2236
+ sort_order: number;
1984
2237
  }[];
1985
2238
  }, {
1986
- description: string;
1987
- kind: "oauth" | "none";
1988
- id: string;
1989
- display_name: string;
1990
- origin: "system" | "community";
1991
- icon_url: string;
1992
- category: string;
1993
- sub_services: {
2239
+ providers: {
1994
2240
  description: string;
2241
+ kind: "oauth" | "none";
1995
2242
  id: string;
1996
2243
  display_name: string;
1997
- scopes: string[];
2244
+ origin: "system" | "community";
2245
+ icon_url: string;
2246
+ category: string;
2247
+ sub_services: {
2248
+ description: string;
2249
+ id: string;
2250
+ display_name: string;
2251
+ scopes: string[];
2252
+ }[];
2253
+ config_fields: {
2254
+ key: string;
2255
+ required: boolean;
2256
+ label: string;
2257
+ target: "env" | "header";
2258
+ secret: boolean;
2259
+ }[];
1998
2260
  }[];
1999
- config_fields: {
2000
- key: string;
2001
- required: boolean;
2002
- label: string;
2003
- target: "env" | "header";
2004
- secret: boolean;
2261
+ categories: {
2262
+ id: string;
2263
+ display_name: string;
2264
+ sort_order: number;
2005
2265
  }[];
2006
- }>, "many">;
2007
- export type ProviderView = z.infer<typeof providerView>;
2266
+ }>;
2267
+ export type ProviderCatalogResponse = z.infer<typeof providers>;
2008
2268
  export declare const connectionView: z.ZodObject<{
2009
2269
  connection_id: z.ZodString;
2010
2270
  provider_id: z.ZodString;
@@ -2013,6 +2273,7 @@ export declare const connectionView: z.ZodObject<{
2013
2273
  account_identity: z.ZodNullable<z.ZodString>;
2014
2274
  enabled_sub_services: z.ZodArray<z.ZodString, "many">;
2015
2275
  granted_scopes: z.ZodArray<z.ZodString, "many">;
2276
+ unreachable_sub_services: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2016
2277
  auth_health_state: z.ZodEnum<["healthy", "reconnect_required", "refresh_failing"]>;
2017
2278
  created_at: z.ZodString;
2018
2279
  }, "strip", z.ZodTypeAny, {
@@ -2024,6 +2285,7 @@ export declare const connectionView: z.ZodObject<{
2024
2285
  account_identity: string | null;
2025
2286
  enabled_sub_services: string[];
2026
2287
  granted_scopes: string[];
2288
+ unreachable_sub_services: string[];
2027
2289
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2028
2290
  }, {
2029
2291
  kind: "oauth" | "none";
@@ -2035,6 +2297,7 @@ export declare const connectionView: z.ZodObject<{
2035
2297
  enabled_sub_services: string[];
2036
2298
  granted_scopes: string[];
2037
2299
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2300
+ unreachable_sub_services?: string[] | undefined;
2038
2301
  }>;
2039
2302
  export type ConnectionView = z.infer<typeof connectionView>;
2040
2303
  export declare const connectionsList: z.ZodObject<{
@@ -2046,6 +2309,7 @@ export declare const connectionsList: z.ZodObject<{
2046
2309
  account_identity: z.ZodNullable<z.ZodString>;
2047
2310
  enabled_sub_services: z.ZodArray<z.ZodString, "many">;
2048
2311
  granted_scopes: z.ZodArray<z.ZodString, "many">;
2312
+ unreachable_sub_services: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2049
2313
  auth_health_state: z.ZodEnum<["healthy", "reconnect_required", "refresh_failing"]>;
2050
2314
  created_at: z.ZodString;
2051
2315
  }, "strip", z.ZodTypeAny, {
@@ -2057,6 +2321,7 @@ export declare const connectionsList: z.ZodObject<{
2057
2321
  account_identity: string | null;
2058
2322
  enabled_sub_services: string[];
2059
2323
  granted_scopes: string[];
2324
+ unreachable_sub_services: string[];
2060
2325
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2061
2326
  }, {
2062
2327
  kind: "oauth" | "none";
@@ -2068,8 +2333,10 @@ export declare const connectionsList: z.ZodObject<{
2068
2333
  enabled_sub_services: string[];
2069
2334
  granted_scopes: string[];
2070
2335
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2336
+ unreachable_sub_services?: string[] | undefined;
2071
2337
  }>, "many">;
2072
2338
  total: z.ZodNumber;
2339
+ unhealthy: z.ZodOptional<z.ZodNumber>;
2073
2340
  }, "strip", z.ZodTypeAny, {
2074
2341
  items: {
2075
2342
  kind: "oauth" | "none";
@@ -2080,9 +2347,11 @@ export declare const connectionsList: z.ZodObject<{
2080
2347
  account_identity: string | null;
2081
2348
  enabled_sub_services: string[];
2082
2349
  granted_scopes: string[];
2350
+ unreachable_sub_services: string[];
2083
2351
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2084
2352
  }[];
2085
2353
  total: number;
2354
+ unhealthy?: number | undefined;
2086
2355
  }, {
2087
2356
  items: {
2088
2357
  kind: "oauth" | "none";
@@ -2094,8 +2363,10 @@ export declare const connectionsList: z.ZodObject<{
2094
2363
  enabled_sub_services: string[];
2095
2364
  granted_scopes: string[];
2096
2365
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
2366
+ unreachable_sub_services?: string[] | undefined;
2097
2367
  }[];
2098
2368
  total: number;
2369
+ unhealthy?: number | undefined;
2099
2370
  }>;
2100
2371
  export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2101
2372
  flow_id: z.ZodString;
@@ -2224,6 +2495,7 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2224
2495
  mode: "unreachable";
2225
2496
  }>]>>;
2226
2497
  }, "strip", z.ZodTypeAny, {
2498
+ connection_id: string;
2227
2499
  fanout: {
2228
2500
  mode: "local-only";
2229
2501
  note: string;
@@ -2254,9 +2526,9 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2254
2526
  }[];
2255
2527
  mode: "unreachable";
2256
2528
  } | null;
2257
- connection_id: string;
2258
2529
  added_manifest_entries: string[];
2259
2530
  }, {
2531
+ connection_id: string;
2260
2532
  fanout: {
2261
2533
  mode: "local-only";
2262
2534
  note: string;
@@ -2287,7 +2559,6 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2287
2559
  }[];
2288
2560
  mode: "unreachable";
2289
2561
  } | null;
2290
- connection_id: string;
2291
2562
  added_manifest_entries: string[];
2292
2563
  }>]>;
2293
2564
  export declare const reconnectResult: z.ZodObject<{
@@ -2420,6 +2691,7 @@ export declare const disconnectResult: z.ZodObject<{
2420
2691
  mode: "unreachable";
2421
2692
  }>]>>;
2422
2693
  }, "strip", z.ZodTypeAny, {
2694
+ connection_id: string;
2423
2695
  fanout: {
2424
2696
  mode: "local-only";
2425
2697
  note: string;
@@ -2450,11 +2722,11 @@ export declare const disconnectResult: z.ZodObject<{
2450
2722
  }[];
2451
2723
  mode: "unreachable";
2452
2724
  } | null;
2453
- connection_id: string;
2454
2725
  upstream_revoke_outcome: "failed" | "success" | "skipped";
2455
2726
  upstream_revoke_status: number | null;
2456
2727
  removed_manifest_entries: string[];
2457
2728
  }, {
2729
+ connection_id: string;
2458
2730
  fanout: {
2459
2731
  mode: "local-only";
2460
2732
  note: string;
@@ -2485,7 +2757,6 @@ export declare const disconnectResult: z.ZodObject<{
2485
2757
  }[];
2486
2758
  mode: "unreachable";
2487
2759
  } | null;
2488
- connection_id: string;
2489
2760
  upstream_revoke_outcome: "failed" | "success" | "skipped";
2490
2761
  upstream_revoke_status: number | null;
2491
2762
  removed_manifest_entries: string[];
@@ -2613,6 +2884,7 @@ export declare const patchSubServicesResult: z.ZodObject<{
2613
2884
  mode: "unreachable";
2614
2885
  }>]>>;
2615
2886
  }, "strip", z.ZodTypeAny, {
2887
+ connection_id: string;
2616
2888
  fanout: {
2617
2889
  mode: "local-only";
2618
2890
  note: string;
@@ -2643,7 +2915,6 @@ export declare const patchSubServicesResult: z.ZodObject<{
2643
2915
  }[];
2644
2916
  mode: "unreachable";
2645
2917
  } | null;
2646
- connection_id: string;
2647
2918
  enabled_sub_services: string[];
2648
2919
  flow_id: string | null;
2649
2920
  authorize_url: string | null;
@@ -2651,6 +2922,7 @@ export declare const patchSubServicesResult: z.ZodObject<{
2651
2922
  removed_manifest_entries: string[];
2652
2923
  consent_required: boolean;
2653
2924
  }, {
2925
+ connection_id: string;
2654
2926
  fanout: {
2655
2927
  mode: "local-only";
2656
2928
  note: string;
@@ -2681,7 +2953,6 @@ export declare const patchSubServicesResult: z.ZodObject<{
2681
2953
  }[];
2682
2954
  mode: "unreachable";
2683
2955
  } | null;
2684
- connection_id: string;
2685
2956
  enabled_sub_services: string[];
2686
2957
  flow_id: string | null;
2687
2958
  authorize_url: string | null;
@@ -2809,6 +3080,7 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
2809
3080
  }>]>>;
2810
3081
  }, "strip", z.ZodTypeAny, {
2811
3082
  kind: "success";
3083
+ connection_id: string;
2812
3084
  fanout: {
2813
3085
  mode: "local-only";
2814
3086
  note: string;
@@ -2839,10 +3111,10 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
2839
3111
  }[];
2840
3112
  mode: "unreachable";
2841
3113
  } | null;
2842
- connection_id: string;
2843
3114
  return_url: string;
2844
3115
  }, {
2845
3116
  kind: "success";
3117
+ connection_id: string;
2846
3118
  fanout: {
2847
3119
  mode: "local-only";
2848
3120
  note: string;
@@ -2873,7 +3145,6 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
2873
3145
  }[];
2874
3146
  mode: "unreachable";
2875
3147
  } | null;
2876
- connection_id: string;
2877
3148
  return_url: string;
2878
3149
  }>, z.ZodObject<{
2879
3150
  kind: z.ZodLiteral<"failed">;
@@ -4373,19 +4644,24 @@ export declare const patternEntry: z.ZodObject<{
4373
4644
  pattern: string;
4374
4645
  }>;
4375
4646
  export type PatternEntry = z.infer<typeof patternEntry>;
4376
- /** A sub-MCP mount the caller can reach, with the tools it exposes. */
4647
+ /**
4648
+ * A sub-MCP mount the caller can reach, with the tools it exposes and its
4649
+ * transport. Shares the {@link subMcpMount} shape with the registry list, adding
4650
+ * the `slug` the projection carries inline (the list keys mounts by slug instead).
4651
+ */
4377
4652
  export declare const subMcpEntry: z.ZodObject<{
4378
- slug: z.ZodString;
4379
4653
  tools: z.ZodArray<z.ZodString, "many">;
4380
4654
  transport: z.ZodString;
4655
+ } & {
4656
+ slug: z.ZodString;
4381
4657
  }, "strip", z.ZodTypeAny, {
4382
- slug: string;
4383
4658
  tools: string[];
4384
4659
  transport: string;
4385
- }, {
4386
4660
  slug: string;
4661
+ }, {
4387
4662
  tools: string[];
4388
4663
  transport: string;
4664
+ slug: string;
4389
4665
  }>;
4390
4666
  export type SubMcpEntry = z.infer<typeof subMcpEntry>;
4391
4667
  /**
@@ -4424,17 +4700,18 @@ export declare const meProjection: z.ZodObject<{
4424
4700
  pattern: string;
4425
4701
  }>, "many">;
4426
4702
  sub_mcp: z.ZodArray<z.ZodObject<{
4427
- slug: z.ZodString;
4428
4703
  tools: z.ZodArray<z.ZodString, "many">;
4429
4704
  transport: z.ZodString;
4705
+ } & {
4706
+ slug: z.ZodString;
4430
4707
  }, "strip", z.ZodTypeAny, {
4431
- slug: string;
4432
4708
  tools: string[];
4433
4709
  transport: string;
4434
- }, {
4435
4710
  slug: string;
4711
+ }, {
4436
4712
  tools: string[];
4437
4713
  transport: string;
4714
+ slug: string;
4438
4715
  }>, "many">;
4439
4716
  tools: z.ZodArray<z.ZodString, "many">;
4440
4717
  agents: z.ZodArray<z.ZodString, "many">;
@@ -4454,9 +4731,9 @@ export declare const meProjection: z.ZodObject<{
4454
4731
  pattern: string;
4455
4732
  }[];
4456
4733
  sub_mcp: {
4457
- slug: string;
4458
4734
  tools: string[];
4459
4735
  transport: string;
4736
+ slug: string;
4460
4737
  }[];
4461
4738
  agents: string[];
4462
4739
  mintable: boolean;
@@ -4475,9 +4752,9 @@ export declare const meProjection: z.ZodObject<{
4475
4752
  pattern: string;
4476
4753
  }[];
4477
4754
  sub_mcp: {
4478
- slug: string;
4479
4755
  tools: string[];
4480
4756
  transport: string;
4757
+ slug: string;
4481
4758
  }[];
4482
4759
  agents: string[];
4483
4760
  mintable: boolean;
@@ -4537,17 +4814,17 @@ export declare const authCapabilities: z.ZodObject<{
4537
4814
  mintable: boolean;
4538
4815
  }>, "many">;
4539
4816
  }, "strip", z.ZodTypeAny, {
4540
- mintable: boolean;
4541
4817
  providers: {
4542
4818
  name: string;
4543
4819
  mintable: boolean;
4544
4820
  }[];
4545
- }, {
4546
4821
  mintable: boolean;
4822
+ }, {
4547
4823
  providers: {
4548
4824
  name: string;
4549
4825
  mintable: boolean;
4550
4826
  }[];
4827
+ mintable: boolean;
4551
4828
  }>;
4552
4829
  export type AuthCapabilities = z.infer<typeof authCapabilities>;
4553
4830
  /**
@@ -5566,6 +5843,7 @@ export declare const marketplaceSearchRow: z.ZodObject<{
5566
5843
  tags: string[];
5567
5844
  display_name: string | null;
5568
5845
  icon_url: string | null;
5846
+ categories: string[];
5569
5847
  item: {
5570
5848
  name: string;
5571
5849
  description: string;
@@ -5575,7 +5853,6 @@ export declare const marketplaceSearchRow: z.ZodObject<{
5575
5853
  ref: string;
5576
5854
  namespace: string;
5577
5855
  package: string;
5578
- categories: string[];
5579
5856
  trust_tier: string;
5580
5857
  pricing: string;
5581
5858
  latest_version: string | null;
@@ -5587,6 +5864,7 @@ export declare const marketplaceSearchRow: z.ZodObject<{
5587
5864
  tags: string[];
5588
5865
  display_name: string | null;
5589
5866
  icon_url: string | null;
5867
+ categories: string[];
5590
5868
  item: {
5591
5869
  name: string;
5592
5870
  description: string;
@@ -5596,7 +5874,6 @@ export declare const marketplaceSearchRow: z.ZodObject<{
5596
5874
  ref: string;
5597
5875
  namespace: string;
5598
5876
  package: string;
5599
- categories: string[];
5600
5877
  trust_tier: string;
5601
5878
  pricing: string;
5602
5879
  latest_version: string | null;
@@ -5646,6 +5923,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5646
5923
  tags: string[];
5647
5924
  display_name: string | null;
5648
5925
  icon_url: string | null;
5926
+ categories: string[];
5649
5927
  item: {
5650
5928
  name: string;
5651
5929
  description: string;
@@ -5655,7 +5933,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5655
5933
  ref: string;
5656
5934
  namespace: string;
5657
5935
  package: string;
5658
- categories: string[];
5659
5936
  trust_tier: string;
5660
5937
  pricing: string;
5661
5938
  latest_version: string | null;
@@ -5667,6 +5944,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5667
5944
  tags: string[];
5668
5945
  display_name: string | null;
5669
5946
  icon_url: string | null;
5947
+ categories: string[];
5670
5948
  item: {
5671
5949
  name: string;
5672
5950
  description: string;
@@ -5676,7 +5954,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5676
5954
  ref: string;
5677
5955
  namespace: string;
5678
5956
  package: string;
5679
- categories: string[];
5680
5957
  trust_tier: string;
5681
5958
  pricing: string;
5682
5959
  latest_version: string | null;
@@ -5693,6 +5970,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5693
5970
  tags: string[];
5694
5971
  display_name: string | null;
5695
5972
  icon_url: string | null;
5973
+ categories: string[];
5696
5974
  item: {
5697
5975
  name: string;
5698
5976
  description: string;
@@ -5702,7 +5980,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5702
5980
  ref: string;
5703
5981
  namespace: string;
5704
5982
  package: string;
5705
- categories: string[];
5706
5983
  trust_tier: string;
5707
5984
  pricing: string;
5708
5985
  latest_version: string | null;
@@ -5719,6 +5996,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5719
5996
  tags: string[];
5720
5997
  display_name: string | null;
5721
5998
  icon_url: string | null;
5999
+ categories: string[];
5722
6000
  item: {
5723
6001
  name: string;
5724
6002
  description: string;
@@ -5728,7 +6006,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
5728
6006
  ref: string;
5729
6007
  namespace: string;
5730
6008
  package: string;
5731
- categories: string[];
5732
6009
  trust_tier: string;
5733
6010
  pricing: string;
5734
6011
  latest_version: string | null;
@@ -5928,6 +6205,7 @@ export declare const marketplacePluginDetail: z.ZodObject<{
5928
6205
  tags: string[];
5929
6206
  display_name: string | null;
5930
6207
  icon_url: string | null;
6208
+ categories: string[];
5931
6209
  versions: {
5932
6210
  status: string;
5933
6211
  version: string;
@@ -5936,7 +6214,6 @@ export declare const marketplacePluginDetail: z.ZodObject<{
5936
6214
  }[];
5937
6215
  namespace: string;
5938
6216
  package: string;
5939
- categories: string[];
5940
6217
  trust_tier: string;
5941
6218
  pricing: string;
5942
6219
  downloads: number;
@@ -5962,6 +6239,7 @@ export declare const marketplacePluginDetail: z.ZodObject<{
5962
6239
  tags: string[];
5963
6240
  display_name: string | null;
5964
6241
  icon_url: string | null;
6242
+ categories: string[];
5965
6243
  versions: {
5966
6244
  status: string;
5967
6245
  version: string;
@@ -5970,7 +6248,6 @@ export declare const marketplacePluginDetail: z.ZodObject<{
5970
6248
  }[];
5971
6249
  namespace: string;
5972
6250
  package: string;
5973
- categories: string[];
5974
6251
  trust_tier: string;
5975
6252
  pricing: string;
5976
6253
  downloads: number;