@tai42/api-client 16.0.0 → 17.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.map +1 -1
- package/dist/agents.js +1 -1
- package/dist/agents.js.map +1 -1
- package/dist/client/agents-client.d.ts +26 -0
- package/dist/client/agents-client.d.ts.map +1 -0
- package/dist/client/agents-client.js +19 -0
- package/dist/client/agents-client.js.map +1 -0
- package/dist/client/auth-client.d.ts +247 -0
- package/dist/client/auth-client.d.ts.map +1 -0
- package/dist/client/auth-client.js +73 -0
- package/dist/client/auth-client.js.map +1 -0
- package/dist/client/backend-client.d.ts +39 -0
- package/dist/client/backend-client.d.ts.map +1 -0
- package/dist/client/backend-client.js +22 -0
- package/dist/client/backend-client.js.map +1 -0
- package/dist/client/backup-client.d.ts +56 -0
- package/dist/client/backup-client.d.ts.map +1 -0
- package/dist/client/backup-client.js +12 -0
- package/dist/client/backup-client.js.map +1 -0
- package/dist/client/capabilities-client.d.ts +40 -0
- package/dist/client/capabilities-client.d.ts.map +1 -0
- package/dist/client/capabilities-client.js +19 -0
- package/dist/client/capabilities-client.js.map +1 -0
- package/dist/client/channels-client.d.ts +7 -0
- package/dist/client/channels-client.d.ts.map +1 -0
- package/dist/client/channels-client.js +10 -0
- package/dist/client/channels-client.js.map +1 -0
- package/dist/client/config-client.d.ts +59 -0
- package/dist/client/config-client.d.ts.map +1 -0
- package/dist/client/config-client.js +18 -0
- package/dist/client/config-client.js.map +1 -0
- package/dist/client/connectors-client.d.ts +225 -0
- package/dist/client/connectors-client.d.ts.map +1 -0
- package/dist/client/connectors-client.js +31 -0
- package/dist/client/connectors-client.js.map +1 -0
- package/dist/client/conversations-client.d.ts +398 -0
- package/dist/client/conversations-client.d.ts.map +1 -0
- package/dist/client/conversations-client.js +120 -0
- package/dist/client/conversations-client.js.map +1 -0
- package/dist/client/hooks-client.d.ts +112 -0
- package/dist/client/hooks-client.d.ts.map +1 -0
- package/dist/client/hooks-client.js +25 -0
- package/dist/client/hooks-client.js.map +1 -0
- package/dist/{client.d.ts → client/index.d.ts} +2336 -2708
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +79 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/interactions-client.d.ts +52 -0
- package/dist/client/interactions-client.d.ts.map +1 -0
- package/dist/client/interactions-client.js +84 -0
- package/dist/client/interactions-client.js.map +1 -0
- package/dist/client/login-client.d.ts +69 -0
- package/dist/client/login-client.d.ts.map +1 -0
- package/dist/client/login-client.js +137 -0
- package/dist/client/login-client.js.map +1 -0
- package/dist/client/manifest-client.d.ts +354 -0
- package/dist/client/manifest-client.d.ts.map +1 -0
- package/dist/client/manifest-client.js +76 -0
- package/dist/client/manifest-client.js.map +1 -0
- package/dist/client/marketplace-client.d.ts +274 -0
- package/dist/client/marketplace-client.d.ts.map +1 -0
- package/dist/client/marketplace-client.js +46 -0
- package/dist/client/marketplace-client.js.map +1 -0
- package/dist/client/mcp-config-schema-client.d.ts +5 -0
- package/dist/client/mcp-config-schema-client.d.ts.map +1 -0
- package/dist/client/mcp-config-schema-client.js +9 -0
- package/dist/client/mcp-config-schema-client.js.map +1 -0
- package/dist/client/notifications-client.d.ts +27 -0
- package/dist/client/notifications-client.d.ts.map +1 -0
- package/dist/client/notifications-client.js +11 -0
- package/dist/client/notifications-client.js.map +1 -0
- package/dist/client/observability-client.d.ts +103 -0
- package/dist/client/observability-client.d.ts.map +1 -0
- package/dist/client/observability-client.js +43 -0
- package/dist/client/observability-client.js.map +1 -0
- package/dist/client/plugins-client.d.ts +17 -0
- package/dist/client/plugins-client.d.ts.map +1 -0
- package/dist/client/plugins-client.js +9 -0
- package/dist/client/plugins-client.js.map +1 -0
- package/dist/client/policy-client.d.ts +37 -0
- package/dist/client/policy-client.d.ts.map +1 -0
- package/dist/client/policy-client.js +26 -0
- package/dist/client/policy-client.js.map +1 -0
- package/dist/client/presets-client.d.ts +334 -0
- package/dist/client/presets-client.d.ts.map +1 -0
- package/dist/client/presets-client.js +38 -0
- package/dist/client/presets-client.js.map +1 -0
- package/dist/client/profiles-client.d.ts +101 -0
- package/dist/client/profiles-client.d.ts.map +1 -0
- package/dist/client/profiles-client.js +37 -0
- package/dist/client/profiles-client.js.map +1 -0
- package/dist/client/schedules-client.d.ts +27 -0
- package/dist/client/schedules-client.d.ts.map +1 -0
- package/dist/client/schedules-client.js +13 -0
- package/dist/client/schedules-client.js.map +1 -0
- package/dist/client/settings-schema-client.d.ts +23 -0
- package/dist/client/settings-schema-client.d.ts.map +1 -0
- package/dist/client/settings-schema-client.js +9 -0
- package/dist/client/settings-schema-client.js.map +1 -0
- package/dist/client/states-client.d.ts +470 -0
- package/dist/client/states-client.d.ts.map +1 -0
- package/dist/client/states-client.js +144 -0
- package/dist/client/states-client.js.map +1 -0
- package/dist/client/storage-client.d.ts +40 -0
- package/dist/client/storage-client.d.ts.map +1 -0
- package/dist/client/storage-client.js +43 -0
- package/dist/client/storage-client.js.map +1 -0
- package/dist/client/sub-mcp-client.d.ts +17 -0
- package/dist/client/sub-mcp-client.d.ts.map +1 -0
- package/dist/client/sub-mcp-client.js +14 -0
- package/dist/client/sub-mcp-client.js.map +1 -0
- package/dist/client/system-client.d.ts +11 -0
- package/dist/client/system-client.d.ts.map +1 -0
- package/dist/client/system-client.js +13 -0
- package/dist/client/system-client.js.map +1 -0
- package/dist/client/templates-client.d.ts +29 -0
- package/dist/client/templates-client.d.ts.map +1 -0
- package/dist/client/templates-client.js +21 -0
- package/dist/client/templates-client.js.map +1 -0
- package/dist/client/tool-extensions-client.d.ts +53 -0
- package/dist/client/tool-extensions-client.d.ts.map +1 -0
- package/dist/client/tool-extensions-client.js +21 -0
- package/dist/client/tool-extensions-client.js.map +1 -0
- package/dist/client/tool-meta-client.d.ts +69 -0
- package/dist/client/tool-meta-client.d.ts.map +1 -0
- package/dist/client/tool-meta-client.js +38 -0
- package/dist/client/tool-meta-client.js.map +1 -0
- package/dist/client/tools-client.d.ts +83 -0
- package/dist/client/tools-client.d.ts.map +1 -0
- package/dist/client/tools-client.js +38 -0
- package/dist/client/tools-client.js.map +1 -0
- package/dist/client/transport.d.ts +13 -0
- package/dist/client/transport.d.ts.map +1 -0
- package/dist/client/transport.js +10 -0
- package/dist/client/transport.js.map +1 -0
- package/dist/client/trigger-links-client.d.ts +44 -0
- package/dist/client/trigger-links-client.d.ts.map +1 -0
- package/dist/client/trigger-links-client.js +30 -0
- package/dist/client/trigger-links-client.js.map +1 -0
- package/dist/client/web-entry-gate-client.d.ts +34 -0
- package/dist/client/web-entry-gate-client.d.ts.map +1 -0
- package/dist/client/web-entry-gate-client.js +25 -0
- package/dist/client/web-entry-gate-client.js.map +1 -0
- package/dist/errors.d.ts +11 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +15 -0
- package/dist/errors.js.map +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +33 -17
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/dist/schemas/api-keys.d.ts +43 -0
- package/dist/schemas/api-keys.d.ts.map +1 -0
- package/dist/schemas/api-keys.js +29 -0
- package/dist/schemas/api-keys.js.map +1 -0
- package/dist/schemas/auth-routes.d.ts +78 -0
- package/dist/schemas/auth-routes.d.ts.map +1 -0
- package/dist/schemas/auth-routes.js +42 -0
- package/dist/schemas/auth-routes.js.map +1 -0
- package/dist/schemas/backup.d.ts +78 -0
- package/dist/schemas/backup.d.ts.map +1 -0
- package/dist/schemas/backup.js +33 -0
- package/dist/schemas/backup.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +109 -0
- package/dist/schemas/capabilities.d.ts.map +1 -0
- package/dist/schemas/capabilities.js +78 -0
- package/dist/schemas/capabilities.js.map +1 -0
- package/dist/schemas/channels.d.ts +7 -0
- package/dist/schemas/channels.d.ts.map +1 -0
- package/dist/schemas/channels.js +9 -0
- package/dist/schemas/channels.js.map +1 -0
- package/dist/schemas/config.d.ts +17 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +17 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/schemas/connectors.d.ts +383 -0
- package/dist/schemas/connectors.d.ts.map +1 -0
- package/dist/schemas/connectors.js +122 -0
- package/dist/schemas/connectors.js.map +1 -0
- package/dist/schemas/conversations.d.ts +600 -0
- package/dist/schemas/conversations.d.ts.map +1 -0
- package/dist/schemas/conversations.js +208 -0
- package/dist/schemas/conversations.js.map +1 -0
- package/dist/schemas/extensions.d.ts +44 -0
- package/dist/schemas/extensions.d.ts.map +1 -0
- package/dist/schemas/extensions.js +29 -0
- package/dist/schemas/extensions.js.map +1 -0
- package/dist/schemas/fleet.d.ts +271 -0
- package/dist/schemas/fleet.d.ts.map +1 -0
- package/dist/schemas/fleet.js +132 -0
- package/dist/schemas/fleet.js.map +1 -0
- package/dist/schemas/hooks.d.ts +120 -0
- package/dist/schemas/hooks.d.ts.map +1 -0
- package/dist/schemas/hooks.js +44 -0
- package/dist/schemas/hooks.js.map +1 -0
- package/dist/schemas/index.d.ts +40 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +40 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/interactions.d.ts +156 -0
- package/dist/schemas/interactions.d.ts.map +1 -0
- package/dist/schemas/interactions.js +124 -0
- package/dist/schemas/interactions.js.map +1 -0
- package/dist/schemas/login.d.ts +93 -0
- package/dist/schemas/login.d.ts.map +1 -0
- package/dist/schemas/login.js +61 -0
- package/dist/schemas/login.js.map +1 -0
- package/dist/schemas/manifest-mcp.d.ts +125 -0
- package/dist/schemas/manifest-mcp.d.ts.map +1 -0
- package/dist/schemas/manifest-mcp.js +61 -0
- package/dist/schemas/manifest-mcp.js.map +1 -0
- package/dist/schemas/marketplace.d.ts +708 -0
- package/dist/schemas/marketplace.d.ts.map +1 -0
- package/dist/schemas/marketplace.js +387 -0
- package/dist/schemas/marketplace.js.map +1 -0
- package/dist/schemas/notifications.d.ts +61 -0
- package/dist/schemas/notifications.d.ts.map +1 -0
- package/dist/schemas/notifications.js +38 -0
- package/dist/schemas/notifications.js.map +1 -0
- package/dist/schemas/observability.d.ts +114 -0
- package/dist/schemas/observability.d.ts.map +1 -0
- package/dist/schemas/observability.js +74 -0
- package/dist/schemas/observability.js.map +1 -0
- package/dist/schemas/policy.d.ts +58 -0
- package/dist/schemas/policy.d.ts.map +1 -0
- package/dist/schemas/policy.js +32 -0
- package/dist/schemas/policy.js.map +1 -0
- package/dist/schemas/presets.d.ts +258 -0
- package/dist/schemas/presets.d.ts.map +1 -0
- package/dist/schemas/presets.js +95 -0
- package/dist/schemas/presets.js.map +1 -0
- package/dist/schemas/principals.d.ts +54 -0
- package/dist/schemas/principals.d.ts.map +1 -0
- package/dist/schemas/principals.js +34 -0
- package/dist/schemas/principals.js.map +1 -0
- package/dist/schemas/profiles.d.ts +180 -0
- package/dist/schemas/profiles.d.ts.map +1 -0
- package/dist/schemas/profiles.js +100 -0
- package/dist/schemas/profiles.js.map +1 -0
- package/dist/schemas/roles.d.ts +125 -0
- package/dist/schemas/roles.d.ts.map +1 -0
- package/dist/schemas/roles.js +46 -0
- package/dist/schemas/roles.js.map +1 -0
- package/dist/schemas/schedules.d.ts +25 -0
- package/dist/schemas/schedules.d.ts.map +1 -0
- package/dist/schemas/schedules.js +24 -0
- package/dist/schemas/schedules.js.map +1 -0
- package/dist/schemas/served.d.ts +626 -0
- package/dist/schemas/served.d.ts.map +1 -0
- package/dist/schemas/served.js +28 -0
- package/dist/schemas/served.js.map +1 -0
- package/dist/schemas/settings-schema.d.ts +23 -0
- package/dist/schemas/settings-schema.d.ts.map +1 -0
- package/dist/schemas/settings-schema.js +25 -0
- package/dist/schemas/settings-schema.js.map +1 -0
- package/dist/schemas/setup.d.ts +43 -0
- package/dist/schemas/setup.d.ts.map +1 -0
- package/dist/schemas/setup.js +19 -0
- package/dist/schemas/setup.js.map +1 -0
- package/dist/schemas/shared.d.ts +20 -0
- package/dist/schemas/shared.d.ts.map +1 -0
- package/dist/schemas/shared.js +20 -0
- package/dist/schemas/shared.js.map +1 -0
- package/dist/schemas/states.d.ts +499 -0
- package/dist/schemas/states.d.ts.map +1 -0
- package/dist/schemas/states.js +220 -0
- package/dist/schemas/states.js.map +1 -0
- package/dist/schemas/storage.d.ts +37 -0
- package/dist/schemas/storage.d.ts.map +1 -0
- package/dist/schemas/storage.js +24 -0
- package/dist/schemas/storage.js.map +1 -0
- package/dist/schemas/studio-plugins.d.ts +30 -0
- package/dist/schemas/studio-plugins.d.ts.map +1 -0
- package/dist/schemas/studio-plugins.js +20 -0
- package/dist/schemas/studio-plugins.js.map +1 -0
- package/dist/schemas/sub-mcp.d.ts +29 -0
- package/dist/schemas/sub-mcp.d.ts.map +1 -0
- package/dist/schemas/sub-mcp.js +22 -0
- package/dist/schemas/sub-mcp.js.map +1 -0
- package/dist/schemas/system-kinds.d.ts +122 -0
- package/dist/schemas/system-kinds.d.ts.map +1 -0
- package/dist/schemas/system-kinds.js +40 -0
- package/dist/schemas/system-kinds.js.map +1 -0
- package/dist/schemas/templates.d.ts +26 -0
- package/dist/schemas/templates.d.ts.map +1 -0
- package/dist/schemas/templates.js +11 -0
- package/dist/schemas/templates.js.map +1 -0
- package/dist/schemas/tool-meta.d.ts +64 -0
- package/dist/schemas/tool-meta.d.ts.map +1 -0
- package/dist/schemas/tool-meta.js +44 -0
- package/dist/schemas/tool-meta.js.map +1 -0
- package/dist/schemas/tools.d.ts +62 -0
- package/dist/schemas/tools.d.ts.map +1 -0
- package/dist/schemas/tools.js +53 -0
- package/dist/schemas/tools.js.map +1 -0
- package/dist/schemas/trigger-links.d.ts +71 -0
- package/dist/schemas/trigger-links.d.ts.map +1 -0
- package/dist/schemas/trigger-links.js +46 -0
- package/dist/schemas/trigger-links.js.map +1 -0
- package/dist/schemas/web-entry.d.ts +45 -0
- package/dist/schemas/web-entry.d.ts.map +1 -0
- package/dist/schemas/web-entry.js +36 -0
- package/dist/schemas/web-entry.js.map +1 -0
- package/dist/tool-runs.d.ts.map +1 -1
- package/dist/tool-runs.js.map +1 -1
- package/package.json +1 -1
- package/src/agents.ts +2 -2
- package/src/client/agents-client.ts +23 -0
- package/src/client/auth-client.ts +170 -0
- package/src/client/backend-client.ts +25 -0
- package/src/client/backup-client.ts +16 -0
- package/src/client/capabilities-client.ts +22 -0
- package/src/client/channels-client.ts +11 -0
- package/src/client/config-client.ts +21 -0
- package/src/client/connectors-client.ts +52 -0
- package/src/client/conversations-client.ts +240 -0
- package/src/client/hooks-client.ts +44 -0
- package/src/client/index.ts +122 -0
- package/src/client/interactions-client.ts +89 -0
- package/src/client/login-client.ts +150 -0
- package/src/client/manifest-client.ts +118 -0
- package/src/client/marketplace-client.ts +122 -0
- package/src/client/mcp-config-schema-client.ts +11 -0
- package/src/client/notifications-client.ts +13 -0
- package/src/client/observability-client.ts +82 -0
- package/src/client/plugins-client.ts +11 -0
- package/src/client/policy-client.ts +41 -0
- package/src/client/presets-client.ts +124 -0
- package/src/client/profiles-client.ts +51 -0
- package/src/client/schedules-client.ts +22 -0
- package/src/client/settings-schema-client.ts +11 -0
- package/src/client/states-client.ts +292 -0
- package/src/client/storage-client.ts +63 -0
- package/src/client/sub-mcp-client.ts +17 -0
- package/src/client/system-client.ts +16 -0
- package/src/client/templates-client.ts +28 -0
- package/src/client/tool-extensions-client.ts +24 -0
- package/src/client/tool-meta-client.ts +65 -0
- package/src/client/tools-client.ts +66 -0
- package/src/client/transport.ts +18 -0
- package/src/client/trigger-links-client.ts +51 -0
- package/src/client/web-entry-gate-client.ts +45 -0
- package/src/errors.ts +16 -0
- package/src/http.ts +48 -24
- package/src/index.ts +231 -226
- package/src/schemas/api-keys.ts +34 -0
- package/src/schemas/auth-routes.ts +48 -0
- package/src/schemas/backup.ts +43 -0
- package/src/schemas/capabilities.ts +92 -0
- package/src/schemas/channels.ts +11 -0
- package/src/schemas/config.ts +17 -0
- package/src/schemas/connectors.ts +139 -0
- package/src/schemas/conversations.ts +257 -0
- package/src/schemas/extensions.ts +34 -0
- package/src/schemas/fleet.ts +154 -0
- package/src/schemas/hooks.ts +57 -0
- package/src/schemas/index.ts +39 -0
- package/src/schemas/interactions.ts +147 -0
- package/src/schemas/login.ts +69 -0
- package/src/schemas/manifest-mcp.ts +70 -0
- package/src/schemas/marketplace.ts +447 -0
- package/src/schemas/notifications.ts +43 -0
- package/src/schemas/observability.ts +87 -0
- package/src/schemas/policy.ts +38 -0
- package/src/schemas/presets.ts +114 -0
- package/src/schemas/principals.ts +41 -0
- package/src/schemas/profiles.ts +120 -0
- package/src/schemas/roles.ts +58 -0
- package/src/schemas/schedules.ts +28 -0
- package/src/schemas/served.ts +50 -0
- package/src/schemas/settings-schema.ts +32 -0
- package/src/schemas/setup.ts +39 -0
- package/src/schemas/shared.ts +21 -0
- package/src/schemas/states.ts +273 -0
- package/src/schemas/storage.ts +31 -0
- package/src/schemas/studio-plugins.ts +21 -0
- package/src/schemas/sub-mcp.ts +24 -0
- package/src/schemas/system-kinds.ts +47 -0
- package/src/schemas/templates.ts +12 -0
- package/src/schemas/tool-meta.ts +51 -0
- package/src/schemas/tools.ts +62 -0
- package/src/schemas/trigger-links.ts +55 -0
- package/src/schemas/web-entry.ts +46 -0
- package/src/tool-runs.ts +1 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -920
- package/dist/client.js.map +0 -1
- package/dist/schemas.d.ts +0 -5172
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -2268
- package/dist/schemas.js.map +0 -1
- package/src/client.ts +0 -1771
- package/src/schemas.ts +0 -2760
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
/** Marketplace listing, version, install and advisory schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* The CLOSED HTTP-method enum fixed by the contract's RouteMethod, the one source
|
|
5
|
+
* for every route-method field (declaration and install/preview responses alike):
|
|
6
|
+
* a wire method the contract does not define fails loudly as drift rather than
|
|
7
|
+
* passing through silently.
|
|
8
|
+
*/
|
|
9
|
+
export declare const routeMethod: z.ZodEnum<{
|
|
10
|
+
GET: "GET";
|
|
11
|
+
POST: "POST";
|
|
12
|
+
PUT: "PUT";
|
|
13
|
+
PATCH: "PATCH";
|
|
14
|
+
DELETE: "DELETE";
|
|
15
|
+
}>;
|
|
16
|
+
export type RouteMethod = z.infer<typeof routeMethod>;
|
|
17
|
+
/**
|
|
18
|
+
* How the plugin is delivered, derived server-side from whether its spec names a
|
|
19
|
+
* package: `package` is pip-installed, `descriptor` (marketplace `source` `spec`)
|
|
20
|
+
* installs nothing but the manifest entry. A CLOSED enum, so a wire value the
|
|
21
|
+
* server does not derive fails loudly as drift.
|
|
22
|
+
*/
|
|
23
|
+
export declare const marketplaceDelivery: z.ZodEnum<{
|
|
24
|
+
package: "package";
|
|
25
|
+
descriptor: "descriptor";
|
|
26
|
+
}>;
|
|
27
|
+
export type MarketplaceDelivery = z.infer<typeof marketplaceDelivery>;
|
|
28
|
+
/**
|
|
29
|
+
* The install-provenance vocabulary a listing/version resolves from: a pip index
|
|
30
|
+
* (`pypi`), a git tag (`github`), or a descriptor yml (`spec`). CLOSED, so a wire
|
|
31
|
+
* value outside it fails as drift.
|
|
32
|
+
*/
|
|
33
|
+
export declare const marketplaceSource: z.ZodEnum<{
|
|
34
|
+
pypi: "pypi";
|
|
35
|
+
github: "github";
|
|
36
|
+
spec: "spec";
|
|
37
|
+
}>;
|
|
38
|
+
export type MarketplaceSource = z.infer<typeof marketplaceSource>;
|
|
39
|
+
/**
|
|
40
|
+
* One env var an item requires before install: its `name` and whether its value is
|
|
41
|
+
* a `secret` (an OAuth client secret is; a client id or a plain marker var is not).
|
|
42
|
+
* The install dialog seeds each toggle from `secret` and collects the missing ones.
|
|
43
|
+
*/
|
|
44
|
+
export declare const marketplaceRequiredEnvVar: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
secret: z.ZodBoolean;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type MarketplaceRequiredEnvVar = z.infer<typeof marketplaceRequiredEnvVar>;
|
|
49
|
+
/**
|
|
50
|
+
* One HTTP route an item declares in its `tai-plugin.yml`: a `path` relative to
|
|
51
|
+
* the item's mount base, the `methods` it answers, and whether it is served
|
|
52
|
+
* `public` (without authentication). The absolute path an operator sees is
|
|
53
|
+
* resolved from the base at install time.
|
|
54
|
+
*/
|
|
55
|
+
export declare const marketplaceRouteDecl: z.ZodObject<{
|
|
56
|
+
path: z.ZodString;
|
|
57
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
58
|
+
GET: "GET";
|
|
59
|
+
POST: "POST";
|
|
60
|
+
PUT: "PUT";
|
|
61
|
+
PATCH: "PATCH";
|
|
62
|
+
DELETE: "DELETE";
|
|
63
|
+
}>>;
|
|
64
|
+
public: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type MarketplaceRouteDecl = z.infer<typeof marketplaceRouteDecl>;
|
|
67
|
+
/**
|
|
68
|
+
* A route-carrying item's declared mount: the default `base` prefix the routes
|
|
69
|
+
* hang off (an operator may remap it at install) and the `paths` it registers.
|
|
70
|
+
*/
|
|
71
|
+
export declare const marketplaceRoutesDecl: z.ZodObject<{
|
|
72
|
+
base: z.ZodString;
|
|
73
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
76
|
+
GET: "GET";
|
|
77
|
+
POST: "POST";
|
|
78
|
+
PUT: "PUT";
|
|
79
|
+
PATCH: "PATCH";
|
|
80
|
+
DELETE: "DELETE";
|
|
81
|
+
}>>;
|
|
82
|
+
public: z.ZodBoolean;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type MarketplaceRoutesDecl = z.infer<typeof marketplaceRoutesDecl>;
|
|
86
|
+
/**
|
|
87
|
+
* One contained item of a marketplace plugin's published version: its kind
|
|
88
|
+
* (tool / agent / extension / …), name, description, free-form tags, and the
|
|
89
|
+
* logical group it belongs to (`null` when ungrouped). `routes` is present only
|
|
90
|
+
* on a route-carrying item (a router or channel); absent/null on every other.
|
|
91
|
+
* `required_env` is the env vars the item needs before install — but the REGISTRY's
|
|
92
|
+
* plugin-detail body does NOT carry it per item: required-env is server-computed
|
|
93
|
+
* (`required_env_for_spec`) and rides the install PREVIEW, never the listing detail,
|
|
94
|
+
* so the registry OMITS it here and it parses as `undefined`. Optional (not
|
|
95
|
+
* defaulted) so the type mirrors the wire; the authority the install dialog collects
|
|
96
|
+
* from is the preview's `required_env`/`missing_env`, never this field.
|
|
97
|
+
*/
|
|
98
|
+
export declare const marketplaceItem: z.ZodObject<{
|
|
99
|
+
kind: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
description: z.ZodString;
|
|
102
|
+
tags: z.ZodArray<z.ZodString>;
|
|
103
|
+
group: z.ZodNullable<z.ZodString>;
|
|
104
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
105
|
+
base: z.ZodString;
|
|
106
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
107
|
+
path: z.ZodString;
|
|
108
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
109
|
+
GET: "GET";
|
|
110
|
+
POST: "POST";
|
|
111
|
+
PUT: "PUT";
|
|
112
|
+
PATCH: "PATCH";
|
|
113
|
+
DELETE: "DELETE";
|
|
114
|
+
}>>;
|
|
115
|
+
public: z.ZodBoolean;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
}, z.core.$strip>>>;
|
|
118
|
+
required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
secret: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export type MarketplaceItem = z.infer<typeof marketplaceItem>;
|
|
124
|
+
/**
|
|
125
|
+
* One kind summary of a search row: an item kind, how many UNGROUPED items of
|
|
126
|
+
* that kind the listing's latest published version carries, and their names.
|
|
127
|
+
* The registry orders the array count DESC then kind ASC, and each entry's
|
|
128
|
+
* `names` ASC; the UI renders in that order.
|
|
129
|
+
*/
|
|
130
|
+
export declare const marketplaceSearchKind: z.ZodObject<{
|
|
131
|
+
kind: z.ZodString;
|
|
132
|
+
count: z.ZodNumber;
|
|
133
|
+
names: z.ZodArray<z.ZodString>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type MarketplaceSearchKind = z.infer<typeof marketplaceSearchKind>;
|
|
136
|
+
/**
|
|
137
|
+
* One logical group of a search row: the group name and how many items the
|
|
138
|
+
* listing's latest published version places in it. The registry orders the
|
|
139
|
+
* array count DESC then name ASC; the UI renders in that order.
|
|
140
|
+
*/
|
|
141
|
+
export declare const marketplaceSearchGroup: z.ZodObject<{
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
count: z.ZodNumber;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type MarketplaceSearchGroup = z.infer<typeof marketplaceSearchGroup>;
|
|
146
|
+
/**
|
|
147
|
+
* One listing-level search row (`GET /api/marketplace/search`). `ref` is the
|
|
148
|
+
* "namespace/name" install target, so every row carries enough to link to its
|
|
149
|
+
* plugin. `latest_version` is nullable defensively; the search relation only
|
|
150
|
+
* emits listings with a published version. `kinds` summarizes that latest
|
|
151
|
+
* version's UNGROUPED items; `groups` summarizes its logical groups (`[]` when
|
|
152
|
+
* none). Both keys are always present.
|
|
153
|
+
*/
|
|
154
|
+
export declare const marketplaceSearchRow: z.ZodObject<{
|
|
155
|
+
ref: z.ZodString;
|
|
156
|
+
namespace: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
159
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
160
|
+
package: z.ZodNullable<z.ZodString>;
|
|
161
|
+
description: z.ZodString;
|
|
162
|
+
categories: z.ZodArray<z.ZodString>;
|
|
163
|
+
tags: z.ZodArray<z.ZodString>;
|
|
164
|
+
trust_tier: z.ZodString;
|
|
165
|
+
pricing: z.ZodString;
|
|
166
|
+
premium: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
167
|
+
latest_version: z.ZodNullable<z.ZodString>;
|
|
168
|
+
downloads: z.ZodNumber;
|
|
169
|
+
updated_at: z.ZodString;
|
|
170
|
+
kinds: z.ZodArray<z.ZodObject<{
|
|
171
|
+
kind: z.ZodString;
|
|
172
|
+
count: z.ZodNumber;
|
|
173
|
+
names: z.ZodArray<z.ZodString>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
count: z.ZodNumber;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export type MarketplaceSearchRow = z.infer<typeof marketplaceSearchRow>;
|
|
181
|
+
/**
|
|
182
|
+
* One page of listing rows. The wire carries no next-page field — has-next is
|
|
183
|
+
* COMPUTED: `page * page_size < total`.
|
|
184
|
+
*/
|
|
185
|
+
export declare const marketplaceSearchPage: z.ZodObject<{
|
|
186
|
+
listings: z.ZodArray<z.ZodObject<{
|
|
187
|
+
ref: z.ZodString;
|
|
188
|
+
namespace: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
191
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
192
|
+
package: z.ZodNullable<z.ZodString>;
|
|
193
|
+
description: z.ZodString;
|
|
194
|
+
categories: z.ZodArray<z.ZodString>;
|
|
195
|
+
tags: z.ZodArray<z.ZodString>;
|
|
196
|
+
trust_tier: z.ZodString;
|
|
197
|
+
pricing: z.ZodString;
|
|
198
|
+
premium: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
199
|
+
latest_version: z.ZodNullable<z.ZodString>;
|
|
200
|
+
downloads: z.ZodNumber;
|
|
201
|
+
updated_at: z.ZodString;
|
|
202
|
+
kinds: z.ZodArray<z.ZodObject<{
|
|
203
|
+
kind: z.ZodString;
|
|
204
|
+
count: z.ZodNumber;
|
|
205
|
+
names: z.ZodArray<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
208
|
+
name: z.ZodString;
|
|
209
|
+
count: z.ZodNumber;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
total: z.ZodNumber;
|
|
213
|
+
page: z.ZodNumber;
|
|
214
|
+
page_size: z.ZodNumber;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export type MarketplaceSearchPage = z.infer<typeof marketplaceSearchPage>;
|
|
217
|
+
/**
|
|
218
|
+
* One version of a listing as the versions list carries it (`version`, its
|
|
219
|
+
* publication `status`, the `contract_range` it was validated against, and when
|
|
220
|
+
* it was `published_at`). `contract_range` and `published_at` are null until a
|
|
221
|
+
* version reaches the published state, so both are nullable.
|
|
222
|
+
*/
|
|
223
|
+
export declare const marketplaceVersion: z.ZodObject<{
|
|
224
|
+
version: z.ZodString;
|
|
225
|
+
contract_range: z.ZodNullable<z.ZodString>;
|
|
226
|
+
status: z.ZodString;
|
|
227
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
export type MarketplaceVersion = z.infer<typeof marketplaceVersion>;
|
|
230
|
+
/**
|
|
231
|
+
* The listing's latest published version as embedded in its detail: the version
|
|
232
|
+
* (with the `marketplaceVersion` lifecycle fields) and the items it contains. The
|
|
233
|
+
* registry's detail body carries NO per-version `delivery` field — delivery is
|
|
234
|
+
* server-computed from whether the spec names a package, and the detail surface
|
|
235
|
+
* derives it from the listing's `package` (null ⇒ `descriptor`, else `package`).
|
|
236
|
+
* Env to collect comes from the install preview (`required_env` / `missing_env`),
|
|
237
|
+
* never from these items.
|
|
238
|
+
*/
|
|
239
|
+
export declare const marketplaceLatestVersion: z.ZodObject<{
|
|
240
|
+
version: z.ZodString;
|
|
241
|
+
contract_range: z.ZodNullable<z.ZodString>;
|
|
242
|
+
status: z.ZodString;
|
|
243
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
244
|
+
items: z.ZodArray<z.ZodObject<{
|
|
245
|
+
kind: z.ZodString;
|
|
246
|
+
name: z.ZodString;
|
|
247
|
+
description: z.ZodString;
|
|
248
|
+
tags: z.ZodArray<z.ZodString>;
|
|
249
|
+
group: z.ZodNullable<z.ZodString>;
|
|
250
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
251
|
+
base: z.ZodString;
|
|
252
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
253
|
+
path: z.ZodString;
|
|
254
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
255
|
+
GET: "GET";
|
|
256
|
+
POST: "POST";
|
|
257
|
+
PUT: "PUT";
|
|
258
|
+
PATCH: "PATCH";
|
|
259
|
+
DELETE: "DELETE";
|
|
260
|
+
}>>;
|
|
261
|
+
public: z.ZodBoolean;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>>>;
|
|
264
|
+
required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
secret: z.ZodBoolean;
|
|
267
|
+
}, z.core.$strip>>>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export type MarketplaceLatestVersion = z.infer<typeof marketplaceLatestVersion>;
|
|
271
|
+
/** One advisory row; `withdrawn_at` non-null means it no longer applies. */
|
|
272
|
+
export declare const marketplaceAdvisory: z.ZodObject<{
|
|
273
|
+
id: z.ZodNumber;
|
|
274
|
+
listing: z.ZodString;
|
|
275
|
+
affected_versions: z.ZodString;
|
|
276
|
+
severity: z.ZodString;
|
|
277
|
+
summary: z.ZodString;
|
|
278
|
+
created_at: z.ZodString;
|
|
279
|
+
withdrawn_at: z.ZodNullable<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
export type MarketplaceAdvisory = z.infer<typeof marketplaceAdvisory>;
|
|
282
|
+
/**
|
|
283
|
+
* A plugin's full detail (`GET /api/marketplace/plugins/{ns}/{name}`): the
|
|
284
|
+
* listing, its latest published version (`null` when nothing is published yet,
|
|
285
|
+
* carrying the contained items), and the known version history.
|
|
286
|
+
*/
|
|
287
|
+
export declare const marketplacePluginDetail: z.ZodObject<{
|
|
288
|
+
namespace: z.ZodString;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
291
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
292
|
+
package: z.ZodNullable<z.ZodString>;
|
|
293
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
294
|
+
pypi: "pypi";
|
|
295
|
+
github: "github";
|
|
296
|
+
spec: "spec";
|
|
297
|
+
}>>>;
|
|
298
|
+
description: z.ZodString;
|
|
299
|
+
readme_md: z.ZodNullable<z.ZodString>;
|
|
300
|
+
license: z.ZodNullable<z.ZodString>;
|
|
301
|
+
homepage_url: z.ZodNullable<z.ZodString>;
|
|
302
|
+
repository_url: z.ZodNullable<z.ZodString>;
|
|
303
|
+
docs_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
categories: z.ZodArray<z.ZodString>;
|
|
305
|
+
tags: z.ZodArray<z.ZodString>;
|
|
306
|
+
trust_tier: z.ZodString;
|
|
307
|
+
pricing: z.ZodString;
|
|
308
|
+
premium: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
309
|
+
downloads: z.ZodNumber;
|
|
310
|
+
latest: z.ZodNullable<z.ZodObject<{
|
|
311
|
+
version: z.ZodString;
|
|
312
|
+
contract_range: z.ZodNullable<z.ZodString>;
|
|
313
|
+
status: z.ZodString;
|
|
314
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
315
|
+
items: z.ZodArray<z.ZodObject<{
|
|
316
|
+
kind: z.ZodString;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
description: z.ZodString;
|
|
319
|
+
tags: z.ZodArray<z.ZodString>;
|
|
320
|
+
group: z.ZodNullable<z.ZodString>;
|
|
321
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
322
|
+
base: z.ZodString;
|
|
323
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
324
|
+
path: z.ZodString;
|
|
325
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
326
|
+
GET: "GET";
|
|
327
|
+
POST: "POST";
|
|
328
|
+
PUT: "PUT";
|
|
329
|
+
PATCH: "PATCH";
|
|
330
|
+
DELETE: "DELETE";
|
|
331
|
+
}>>;
|
|
332
|
+
public: z.ZodBoolean;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
}, z.core.$strip>>>;
|
|
335
|
+
required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
|
+
name: z.ZodString;
|
|
337
|
+
secret: z.ZodBoolean;
|
|
338
|
+
}, z.core.$strip>>>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
342
|
+
version: z.ZodString;
|
|
343
|
+
contract_range: z.ZodNullable<z.ZodString>;
|
|
344
|
+
status: z.ZodString;
|
|
345
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
export type MarketplacePluginDetail = z.infer<typeof marketplacePluginDetail>;
|
|
349
|
+
/**
|
|
350
|
+
* One installed plugin's compat verdict against the RUNNING tai42-contract:
|
|
351
|
+
* `compatible` / `incompatible` per its declared contract range, `unknown` when
|
|
352
|
+
* no verdict could be computed. `reason` is the human-readable explanation of a
|
|
353
|
+
* non-`compatible` verdict, `null` when compatible. CLOSED (`.strict()`): the
|
|
354
|
+
* server is built against exactly this shape, so an unknown key is drift and
|
|
355
|
+
* throws instead of being stripped.
|
|
356
|
+
*/
|
|
357
|
+
export declare const marketplaceInstalledCompat: z.ZodObject<{
|
|
358
|
+
status: z.ZodEnum<{
|
|
359
|
+
unknown: "unknown";
|
|
360
|
+
compatible: "compatible";
|
|
361
|
+
incompatible: "incompatible";
|
|
362
|
+
}>;
|
|
363
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
364
|
+
}, z.core.$strict>;
|
|
365
|
+
export type MarketplaceInstalledCompat = z.infer<typeof marketplaceInstalledCompat>;
|
|
366
|
+
/**
|
|
367
|
+
* One installed marketplace plugin as the local attribution store records it.
|
|
368
|
+
* `latest` is the newest registry version (`null` when unknown);
|
|
369
|
+
* `update_available` advertises only a newer COMPATIBLE version, and
|
|
370
|
+
* `incompatible_newer` names the newest version blocked by the running
|
|
371
|
+
* contract (`null` when none), so "an update exists but needs a newer core" is
|
|
372
|
+
* visible. `missing_upstream` flags a plugin the registry no longer lists.
|
|
373
|
+
* `compat` is the row's verdict against the running contract. CLOSED, like
|
|
374
|
+
* every shape of the installed listing.
|
|
375
|
+
*/
|
|
376
|
+
export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
377
|
+
ref: z.ZodString;
|
|
378
|
+
version: z.ZodString;
|
|
379
|
+
source: z.ZodString;
|
|
380
|
+
delivery: z.ZodEnum<{
|
|
381
|
+
package: "package";
|
|
382
|
+
descriptor: "descriptor";
|
|
383
|
+
}>;
|
|
384
|
+
installed_at: z.ZodString;
|
|
385
|
+
latest: z.ZodNullable<z.ZodString>;
|
|
386
|
+
update_available: z.ZodBoolean;
|
|
387
|
+
incompatible_newer: z.ZodNullable<z.ZodString>;
|
|
388
|
+
missing_upstream: z.ZodBoolean;
|
|
389
|
+
compat: z.ZodObject<{
|
|
390
|
+
status: z.ZodEnum<{
|
|
391
|
+
unknown: "unknown";
|
|
392
|
+
compatible: "compatible";
|
|
393
|
+
incompatible: "incompatible";
|
|
394
|
+
}>;
|
|
395
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
396
|
+
}, z.core.$strict>;
|
|
397
|
+
items: z.ZodArray<z.ZodObject<{
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
kind: z.ZodString;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
export type MarketplaceInstalledPlugin = z.infer<typeof marketplaceInstalledPlugin>;
|
|
404
|
+
/** One plugin the boot pass quarantined instead of loading, with why. CLOSED. */
|
|
405
|
+
export declare const marketplaceQuarantinedPlugin: z.ZodObject<{
|
|
406
|
+
name: z.ZodString;
|
|
407
|
+
reason: z.ZodString;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
export type MarketplaceQuarantinedPlugin = z.infer<typeof marketplaceQuarantinedPlugin>;
|
|
410
|
+
/**
|
|
411
|
+
* The installed inventory (`GET /api/marketplace/installed`): the attributed
|
|
412
|
+
* rows plus every plugin the boot pass quarantined instead of loading. CLOSED.
|
|
413
|
+
*/
|
|
414
|
+
export declare const marketplaceInstalled: z.ZodObject<{
|
|
415
|
+
installed: z.ZodArray<z.ZodObject<{
|
|
416
|
+
ref: z.ZodString;
|
|
417
|
+
version: z.ZodString;
|
|
418
|
+
source: z.ZodString;
|
|
419
|
+
delivery: z.ZodEnum<{
|
|
420
|
+
package: "package";
|
|
421
|
+
descriptor: "descriptor";
|
|
422
|
+
}>;
|
|
423
|
+
installed_at: z.ZodString;
|
|
424
|
+
latest: z.ZodNullable<z.ZodString>;
|
|
425
|
+
update_available: z.ZodBoolean;
|
|
426
|
+
incompatible_newer: z.ZodNullable<z.ZodString>;
|
|
427
|
+
missing_upstream: z.ZodBoolean;
|
|
428
|
+
compat: z.ZodObject<{
|
|
429
|
+
status: z.ZodEnum<{
|
|
430
|
+
unknown: "unknown";
|
|
431
|
+
compatible: "compatible";
|
|
432
|
+
incompatible: "incompatible";
|
|
433
|
+
}>;
|
|
434
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
435
|
+
}, z.core.$strict>;
|
|
436
|
+
items: z.ZodArray<z.ZodObject<{
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
kind: z.ZodString;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
quarantined: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
reason: z.ZodString;
|
|
445
|
+
}, z.core.$strict>>;
|
|
446
|
+
}, z.core.$strict>;
|
|
447
|
+
export type MarketplaceInstalled = z.infer<typeof marketplaceInstalled>;
|
|
448
|
+
/**
|
|
449
|
+
* One per-plugin outcome of `POST /api/marketplace/upgrade-all`: `upgraded`,
|
|
450
|
+
* already `up-to-date`, `no-compatible-version` in the registry, or `failed`;
|
|
451
|
+
* `detail` always carries the human-readable specifics. CLOSED.
|
|
452
|
+
*/
|
|
453
|
+
export declare const marketplaceUpgradeAllRow: z.ZodObject<{
|
|
454
|
+
ref: z.ZodString;
|
|
455
|
+
outcome: z.ZodEnum<{
|
|
456
|
+
failed: "failed";
|
|
457
|
+
upgraded: "upgraded";
|
|
458
|
+
"up-to-date": "up-to-date";
|
|
459
|
+
"no-compatible-version": "no-compatible-version";
|
|
460
|
+
}>;
|
|
461
|
+
detail: z.ZodString;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
export type MarketplaceUpgradeAllRow = z.infer<typeof marketplaceUpgradeAllRow>;
|
|
464
|
+
/** The whole upgrade-all readout: one outcome row per installed plugin. CLOSED. */
|
|
465
|
+
export declare const marketplaceUpgradeAllResult: z.ZodObject<{
|
|
466
|
+
results: z.ZodArray<z.ZodObject<{
|
|
467
|
+
ref: z.ZodString;
|
|
468
|
+
outcome: z.ZodEnum<{
|
|
469
|
+
failed: "failed";
|
|
470
|
+
upgraded: "upgraded";
|
|
471
|
+
"up-to-date": "up-to-date";
|
|
472
|
+
"no-compatible-version": "no-compatible-version";
|
|
473
|
+
}>;
|
|
474
|
+
detail: z.ZodString;
|
|
475
|
+
}, z.core.$strict>>;
|
|
476
|
+
}, z.core.$strict>;
|
|
477
|
+
export type MarketplaceUpgradeAllResult = z.infer<typeof marketplaceUpgradeAllResult>;
|
|
478
|
+
/** The advisory state for installed plugins, with when it was last fetched. */
|
|
479
|
+
export declare const marketplaceAdvisories: z.ZodObject<{
|
|
480
|
+
advisories: z.ZodArray<z.ZodObject<{
|
|
481
|
+
id: z.ZodNumber;
|
|
482
|
+
listing: z.ZodString;
|
|
483
|
+
affected_versions: z.ZodString;
|
|
484
|
+
severity: z.ZodString;
|
|
485
|
+
summary: z.ZodString;
|
|
486
|
+
created_at: z.ZodString;
|
|
487
|
+
withdrawn_at: z.ZodNullable<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>>;
|
|
489
|
+
fetched_at: z.ZodString;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
/** The registry's controlled category list, proxied through the skeleton. */
|
|
492
|
+
export declare const marketplaceCategories: z.ZodArray<z.ZodString>;
|
|
493
|
+
/** The registry's controlled item-kind list, proxied through the skeleton. */
|
|
494
|
+
export declare const marketplaceKinds: z.ZodArray<z.ZodString>;
|
|
495
|
+
/**
|
|
496
|
+
* One route the install / update actually mounted: the item that owns it, the
|
|
497
|
+
* absolute `full_path` it now answers, the `methods`, and whether it is served
|
|
498
|
+
* `public`. The receipt lists these so the operator sees what was opened where.
|
|
499
|
+
*/
|
|
500
|
+
export declare const marketplaceMountedRoute: z.ZodObject<{
|
|
501
|
+
item: z.ZodString;
|
|
502
|
+
full_path: z.ZodString;
|
|
503
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
504
|
+
GET: "GET";
|
|
505
|
+
POST: "POST";
|
|
506
|
+
PUT: "PUT";
|
|
507
|
+
PATCH: "PATCH";
|
|
508
|
+
DELETE: "DELETE";
|
|
509
|
+
}>>;
|
|
510
|
+
public: z.ZodBoolean;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
export type MarketplaceMountedRoute = z.infer<typeof marketplaceMountedRoute>;
|
|
513
|
+
/**
|
|
514
|
+
* The receipt of an install / update: what landed and at which version.
|
|
515
|
+
* `notes` (env-selected items naming their activating env var) and any
|
|
516
|
+
* non-critical `advisories` ride BOTH the install and update receipts.
|
|
517
|
+
* `routes` is the mounted-route list — empty for a plugin that registers none.
|
|
518
|
+
* The wire also carries `package`, `reload`, and `pip_output`, which the receipt
|
|
519
|
+
* does not model — zod's default strip drops them; the UI renders the receipt,
|
|
520
|
+
* not the raw install log.
|
|
521
|
+
*/
|
|
522
|
+
export declare const marketplaceInstallResult: z.ZodObject<{
|
|
523
|
+
ref: z.ZodString;
|
|
524
|
+
version: z.ZodString;
|
|
525
|
+
notes: z.ZodArray<z.ZodString>;
|
|
526
|
+
advisories: z.ZodArray<z.ZodObject<{
|
|
527
|
+
id: z.ZodNumber;
|
|
528
|
+
listing: z.ZodString;
|
|
529
|
+
affected_versions: z.ZodString;
|
|
530
|
+
severity: z.ZodString;
|
|
531
|
+
summary: z.ZodString;
|
|
532
|
+
created_at: z.ZodString;
|
|
533
|
+
withdrawn_at: z.ZodNullable<z.ZodString>;
|
|
534
|
+
}, z.core.$strip>>;
|
|
535
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
536
|
+
item: z.ZodString;
|
|
537
|
+
full_path: z.ZodString;
|
|
538
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
539
|
+
GET: "GET";
|
|
540
|
+
POST: "POST";
|
|
541
|
+
PUT: "PUT";
|
|
542
|
+
PATCH: "PATCH";
|
|
543
|
+
DELETE: "DELETE";
|
|
544
|
+
}>>;
|
|
545
|
+
public: z.ZodBoolean;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
export type MarketplaceInstallResult = z.infer<typeof marketplaceInstallResult>;
|
|
549
|
+
/** One resolved route in an install preview: the declared `path`, its resolved
|
|
550
|
+
* absolute `full_path`, the `methods`, and whether it is `public`. */
|
|
551
|
+
export declare const marketplacePreviewRoute: z.ZodObject<{
|
|
552
|
+
path: z.ZodString;
|
|
553
|
+
full_path: z.ZodString;
|
|
554
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
555
|
+
GET: "GET";
|
|
556
|
+
POST: "POST";
|
|
557
|
+
PUT: "PUT";
|
|
558
|
+
PATCH: "PATCH";
|
|
559
|
+
DELETE: "DELETE";
|
|
560
|
+
}>>;
|
|
561
|
+
public: z.ZodBoolean;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
export type MarketplacePreviewRoute = z.infer<typeof marketplacePreviewRoute>;
|
|
564
|
+
/** One route-carrying item in an install preview: its resolved `base` (the
|
|
565
|
+
* override or the default), the `default_base` it declares, and the routes that
|
|
566
|
+
* mount under it. */
|
|
567
|
+
export declare const marketplacePreviewItem: z.ZodObject<{
|
|
568
|
+
item: z.ZodString;
|
|
569
|
+
kind: z.ZodString;
|
|
570
|
+
base: z.ZodString;
|
|
571
|
+
default_base: z.ZodString;
|
|
572
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
573
|
+
path: z.ZodString;
|
|
574
|
+
full_path: z.ZodString;
|
|
575
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
576
|
+
GET: "GET";
|
|
577
|
+
POST: "POST";
|
|
578
|
+
PUT: "PUT";
|
|
579
|
+
PATCH: "PATCH";
|
|
580
|
+
DELETE: "DELETE";
|
|
581
|
+
}>>;
|
|
582
|
+
public: z.ZodBoolean;
|
|
583
|
+
}, z.core.$strip>>;
|
|
584
|
+
}, z.core.$strip>;
|
|
585
|
+
export type MarketplacePreviewItem = z.infer<typeof marketplacePreviewItem>;
|
|
586
|
+
/** One collision the preview found: a route whose resolved shape+method clashes
|
|
587
|
+
* with an already-owned route. `conflict_owner` is `core` or `plugin:<ref>`; the
|
|
588
|
+
* remedy is to remap the item's base. */
|
|
589
|
+
export declare const marketplacePreviewCollision: z.ZodObject<{
|
|
590
|
+
item: z.ZodString;
|
|
591
|
+
full_path: z.ZodString;
|
|
592
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
593
|
+
GET: "GET";
|
|
594
|
+
POST: "POST";
|
|
595
|
+
PUT: "PUT";
|
|
596
|
+
PATCH: "PATCH";
|
|
597
|
+
DELETE: "DELETE";
|
|
598
|
+
}>>;
|
|
599
|
+
conflict_owner: z.ZodString;
|
|
600
|
+
conflict_path: z.ZodString;
|
|
601
|
+
}, z.core.$strip>;
|
|
602
|
+
export type MarketplacePreviewCollision = z.infer<typeof marketplacePreviewCollision>;
|
|
603
|
+
/** One public route the operator is asked to accept: served WITHOUT
|
|
604
|
+
* authentication once installed. */
|
|
605
|
+
export declare const marketplacePreviewPublicRoute: z.ZodObject<{
|
|
606
|
+
item: z.ZodString;
|
|
607
|
+
full_path: z.ZodString;
|
|
608
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
609
|
+
GET: "GET";
|
|
610
|
+
POST: "POST";
|
|
611
|
+
PUT: "PUT";
|
|
612
|
+
PATCH: "PATCH";
|
|
613
|
+
DELETE: "DELETE";
|
|
614
|
+
}>>;
|
|
615
|
+
}, z.core.$strip>;
|
|
616
|
+
export type MarketplacePreviewPublicRoute = z.infer<typeof marketplacePreviewPublicRoute>;
|
|
617
|
+
/**
|
|
618
|
+
* The install preview (`POST /api/marketplace/install/preview`): the resolved
|
|
619
|
+
* routes per item with any base overrides applied, the collisions against the
|
|
620
|
+
* live registry, the public routes requiring acceptance, and whether acceptance
|
|
621
|
+
* is required at all. `new_public_routes` narrows to rows not already approved
|
|
622
|
+
* (the update case); on a fresh install it equals `public_routes`.
|
|
623
|
+
*
|
|
624
|
+
* `required_env` is every env var the spec requires with its derived secret-ness;
|
|
625
|
+
* `missing_env` is the bare names not already present in the env store union
|
|
626
|
+
* process env (server-computed — the ONE authority the dialog collects), and
|
|
627
|
+
* `delivery` is the one word the surface shows (`package` / `descriptor`).
|
|
628
|
+
*/
|
|
629
|
+
export declare const marketplaceInstallPreview: z.ZodObject<{
|
|
630
|
+
ref: z.ZodString;
|
|
631
|
+
version: z.ZodString;
|
|
632
|
+
items: z.ZodArray<z.ZodObject<{
|
|
633
|
+
item: z.ZodString;
|
|
634
|
+
kind: z.ZodString;
|
|
635
|
+
base: z.ZodString;
|
|
636
|
+
default_base: z.ZodString;
|
|
637
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
638
|
+
path: z.ZodString;
|
|
639
|
+
full_path: z.ZodString;
|
|
640
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
641
|
+
GET: "GET";
|
|
642
|
+
POST: "POST";
|
|
643
|
+
PUT: "PUT";
|
|
644
|
+
PATCH: "PATCH";
|
|
645
|
+
DELETE: "DELETE";
|
|
646
|
+
}>>;
|
|
647
|
+
public: z.ZodBoolean;
|
|
648
|
+
}, z.core.$strip>>;
|
|
649
|
+
}, z.core.$strip>>;
|
|
650
|
+
collisions: z.ZodArray<z.ZodObject<{
|
|
651
|
+
item: z.ZodString;
|
|
652
|
+
full_path: z.ZodString;
|
|
653
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
654
|
+
GET: "GET";
|
|
655
|
+
POST: "POST";
|
|
656
|
+
PUT: "PUT";
|
|
657
|
+
PATCH: "PATCH";
|
|
658
|
+
DELETE: "DELETE";
|
|
659
|
+
}>>;
|
|
660
|
+
conflict_owner: z.ZodString;
|
|
661
|
+
conflict_path: z.ZodString;
|
|
662
|
+
}, z.core.$strip>>;
|
|
663
|
+
public_routes: z.ZodArray<z.ZodObject<{
|
|
664
|
+
item: z.ZodString;
|
|
665
|
+
full_path: z.ZodString;
|
|
666
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
667
|
+
GET: "GET";
|
|
668
|
+
POST: "POST";
|
|
669
|
+
PUT: "PUT";
|
|
670
|
+
PATCH: "PATCH";
|
|
671
|
+
DELETE: "DELETE";
|
|
672
|
+
}>>;
|
|
673
|
+
}, z.core.$strip>>;
|
|
674
|
+
new_public_routes: z.ZodArray<z.ZodObject<{
|
|
675
|
+
item: z.ZodString;
|
|
676
|
+
full_path: z.ZodString;
|
|
677
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
678
|
+
GET: "GET";
|
|
679
|
+
POST: "POST";
|
|
680
|
+
PUT: "PUT";
|
|
681
|
+
PATCH: "PATCH";
|
|
682
|
+
DELETE: "DELETE";
|
|
683
|
+
}>>;
|
|
684
|
+
}, z.core.$strip>>;
|
|
685
|
+
requires_public_acceptance: z.ZodBoolean;
|
|
686
|
+
required_env: z.ZodArray<z.ZodObject<{
|
|
687
|
+
name: z.ZodString;
|
|
688
|
+
secret: z.ZodBoolean;
|
|
689
|
+
}, z.core.$strip>>;
|
|
690
|
+
missing_env: z.ZodArray<z.ZodString>;
|
|
691
|
+
delivery: z.ZodEnum<{
|
|
692
|
+
package: "package";
|
|
693
|
+
descriptor: "descriptor";
|
|
694
|
+
}>;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
export type MarketplaceInstallPreview = z.infer<typeof marketplaceInstallPreview>;
|
|
697
|
+
/**
|
|
698
|
+
* The receipt of an uninstall. `notes` carries operator warnings (e.g. a config
|
|
699
|
+
* provider still selected by its env var); render them like the install
|
|
700
|
+
* receipt's notes.
|
|
701
|
+
*/
|
|
702
|
+
export declare const marketplaceUninstallResult: z.ZodObject<{
|
|
703
|
+
ref: z.ZodString;
|
|
704
|
+
uninstalled: z.ZodLiteral<true>;
|
|
705
|
+
notes: z.ZodArray<z.ZodString>;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
export type MarketplaceUninstallResult = z.infer<typeof marketplaceUninstallResult>;
|
|
708
|
+
//# sourceMappingURL=marketplace.d.ts.map
|