@tai42/api-client 15.0.0 → 16.0.1
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/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 +205 -0
- package/dist/client/auth-client.d.ts.map +1 -0
- package/dist/client/auth-client.js +59 -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 +35 -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 +399 -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 +113 -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} +2199 -2508
- 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 +56 -0
- package/dist/client/login-client.d.ts.map +1 -0
- package/dist/client/login-client.js +103 -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 +335 -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 +102 -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 +28 -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 +471 -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 +54 -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/generated/served-schemas.d.ts +748 -0
- package/dist/generated/served-schemas.d.ts.map +1 -0
- package/dist/generated/served-schemas.js +60 -0
- package/dist/generated/served-schemas.js.map +1 -0
- 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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/api-keys.d.ts +34 -0
- package/dist/schemas/api-keys.d.ts.map +1 -0
- package/dist/schemas/api-keys.js +22 -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 +99 -0
- package/dist/schemas/capabilities.d.ts.map +1 -0
- package/dist/schemas/capabilities.js +74 -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 +38 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +38 -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 +86 -0
- package/dist/schemas/login.d.ts.map +1 -0
- package/dist/schemas/login.js +54 -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/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/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/templated-text.d.ts +30 -0
- package/dist/templated-text.d.ts.map +1 -0
- package/dist/templated-text.js +30 -0
- package/dist/templated-text.js.map +1 -0
- package/dist/tool-runs.d.ts +4 -4
- package/package.json +6 -2
- package/src/client/agents-client.ts +23 -0
- package/src/client/auth-client.ts +144 -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 +109 -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/generated/served-schemas.ts +126 -0
- package/src/http.ts +48 -24
- package/src/index.ts +1 -0
- package/src/schemas/api-keys.ts +26 -0
- package/src/schemas/auth-routes.ts +48 -0
- package/src/schemas/backup.ts +42 -0
- package/src/schemas/capabilities.ts +87 -0
- package/src/schemas/channels.ts +11 -0
- package/src/schemas/config.ts +17 -0
- package/src/schemas/connectors.ts +138 -0
- package/src/schemas/conversations.ts +256 -0
- package/src/schemas/extensions.ts +34 -0
- package/src/schemas/fleet.ts +153 -0
- package/src/schemas/hooks.ts +56 -0
- package/src/schemas/index.ts +37 -0
- package/src/schemas/interactions.ts +146 -0
- package/src/schemas/login.ts +62 -0
- package/src/schemas/manifest-mcp.ts +69 -0
- package/src/schemas/marketplace.ts +447 -0
- package/src/schemas/notifications.ts +42 -0
- package/src/schemas/observability.ts +86 -0
- package/src/schemas/policy.ts +37 -0
- package/src/schemas/presets.ts +113 -0
- package/src/schemas/profiles.ts +119 -0
- package/src/schemas/roles.ts +57 -0
- package/src/schemas/schedules.ts +27 -0
- package/src/schemas/served.ts +49 -0
- package/src/schemas/settings-schema.ts +31 -0
- package/src/schemas/shared.ts +21 -0
- package/src/schemas/states.ts +272 -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 +46 -0
- package/src/schemas/templates.ts +11 -0
- package/src/schemas/tool-meta.ts +51 -0
- package/src/schemas/tools.ts +61 -0
- package/src/schemas/trigger-links.ts +54 -0
- package/src/schemas/web-entry.ts +46 -0
- package/src/templated-text.ts +35 -0
- 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 -5152
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -2556
- package/dist/schemas.js.map +0 -1
- package/src/client.ts +0 -1765
- package/src/schemas.ts +0 -3067
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/** Caller capability projection and auth-capabilities schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** A concrete route the caller can reach, with the methods that pass its jq fence. */
|
|
4
|
+
export declare const routeEntry: z.ZodObject<{
|
|
5
|
+
path: z.ZodString;
|
|
6
|
+
methods: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type RouteEntry = z.infer<typeof routeEntry>;
|
|
9
|
+
/**
|
|
10
|
+
* A dynamic route pattern the caller can reach — a mount/pattern surface not
|
|
11
|
+
* enumerable into concrete paths, projected only when its scope AND jq admit it.
|
|
12
|
+
*/
|
|
13
|
+
export declare const patternEntry: z.ZodObject<{
|
|
14
|
+
pattern: z.ZodString;
|
|
15
|
+
scope_id: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type PatternEntry = z.infer<typeof patternEntry>;
|
|
18
|
+
/**
|
|
19
|
+
* A sub-MCP mount the caller can reach, with the tools it exposes and its
|
|
20
|
+
* transport. Shares the {@link subMcpMount} shape with the registry list, adding
|
|
21
|
+
* the `slug` the projection carries inline (the list keys mounts by slug instead).
|
|
22
|
+
*/
|
|
23
|
+
export declare const subMcpEntry: z.ZodObject<{
|
|
24
|
+
tools: z.ZodArray<z.ZodString>;
|
|
25
|
+
transport: z.ZodString;
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type SubMcpEntry = z.infer<typeof subMcpEntry>;
|
|
29
|
+
/**
|
|
30
|
+
* `GET /api/auth/me` — the caller's derived capability projection: the concrete
|
|
31
|
+
* (path, method) surface, dynamic patterns, sub-MCP mounts, tools, and agents it
|
|
32
|
+
* can reach RIGHT NOW (derived server-side, never stored). `admin` is the
|
|
33
|
+
* condition-free ownerless `"*"` discriminator (a TOTAL projection); a scoped
|
|
34
|
+
* session carries `admin: false` and a jq-exact `routes` list. `owner_user_id` is
|
|
35
|
+
* the key's owner claim, `null` for an ownerless key. The invariant is
|
|
36
|
+
* projection ⊆ gate: every projected surface is one the server would admit, so
|
|
37
|
+
* the UI can filter on it without ever advertising a door the gate denies.
|
|
38
|
+
*/
|
|
39
|
+
export declare const meProjection: z.ZodObject<{
|
|
40
|
+
user_id: z.ZodString;
|
|
41
|
+
owner_user_id: z.ZodNullable<z.ZodString>;
|
|
42
|
+
admin: z.ZodBoolean;
|
|
43
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
44
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
45
|
+
path: z.ZodString;
|
|
46
|
+
methods: z.ZodArray<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
route_patterns: z.ZodArray<z.ZodObject<{
|
|
49
|
+
pattern: z.ZodString;
|
|
50
|
+
scope_id: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
sub_mcp: z.ZodArray<z.ZodObject<{
|
|
53
|
+
tools: z.ZodArray<z.ZodString>;
|
|
54
|
+
transport: z.ZodString;
|
|
55
|
+
slug: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
tools: z.ZodArray<z.ZodString>;
|
|
58
|
+
agents: z.ZodArray<z.ZodString>;
|
|
59
|
+
mintable: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type MeProjection = z.infer<typeof meProjection>;
|
|
62
|
+
/**
|
|
63
|
+
* `POST /api/auth/claim-links` — a one-time claim link minted in the key-create
|
|
64
|
+
* flow. `claim_path` is a fragment-carrier path (`/login#claim=<token>`, never an
|
|
65
|
+
* absolute URL — the Studio composes the origin); `token` is the raw claim token
|
|
66
|
+
* returned exactly ONCE; `expires_at` is an ISO-8601 instant.
|
|
67
|
+
*/
|
|
68
|
+
export declare const claimLinkCreated: z.ZodObject<{
|
|
69
|
+
claim_path: z.ZodString;
|
|
70
|
+
token: z.ZodString;
|
|
71
|
+
expires_at: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type ClaimLinkCreated = z.infer<typeof claimLinkCreated>;
|
|
74
|
+
/**
|
|
75
|
+
* `POST /api/auth/logout` — the single authed logout dispatcher's result.
|
|
76
|
+
* `revoked` is `true` when a live accounts session was revoked; a plain `sk-` key
|
|
77
|
+
* has nothing to revoke and answers `404` (a loud absent-session signal), never a
|
|
78
|
+
* `revoked: false` body. Non-strict, so a SUCCESSFUL logout never throws
|
|
79
|
+
* `ApiSchemaError` on an additive field.
|
|
80
|
+
*/
|
|
81
|
+
export declare const logoutResult: z.ZodObject<{
|
|
82
|
+
revoked: z.ZodBoolean;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type LogoutResult = z.infer<typeof logoutResult>;
|
|
85
|
+
/**
|
|
86
|
+
* `GET /api/auth/capabilities` — whether this deployment can MINT API keys
|
|
87
|
+
* locally. `mintable: false` means every configured identity provider is
|
|
88
|
+
* validator-only (keys are issued at an external issuer), so the key-creation
|
|
89
|
+
* UI disables up front instead of surfacing a raw mint failure. Non-strict.
|
|
90
|
+
*/
|
|
91
|
+
export declare const authCapabilities: z.ZodObject<{
|
|
92
|
+
mintable: z.ZodBoolean;
|
|
93
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
mintable: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export type AuthCapabilities = z.infer<typeof authCapabilities>;
|
|
99
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,sFAAsF;AACtF,eAAO,MAAM,UAAU;;;iBAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;iBAA2C,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAWvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;iBAAqC,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/** Caller capability projection and auth-capabilities schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { subMcpMount } from './sub-mcp';
|
|
4
|
+
/** A concrete route the caller can reach, with the methods that pass its jq fence. */
|
|
5
|
+
export const routeEntry = z.object({
|
|
6
|
+
path: z.string(),
|
|
7
|
+
methods: z.array(z.string()),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* A dynamic route pattern the caller can reach — a mount/pattern surface not
|
|
11
|
+
* enumerable into concrete paths, projected only when its scope AND jq admit it.
|
|
12
|
+
*/
|
|
13
|
+
export const patternEntry = z.object({
|
|
14
|
+
pattern: z.string(),
|
|
15
|
+
scope_id: z.string(),
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* A sub-MCP mount the caller can reach, with the tools it exposes and its
|
|
19
|
+
* transport. Shares the {@link subMcpMount} shape with the registry list, adding
|
|
20
|
+
* the `slug` the projection carries inline (the list keys mounts by slug instead).
|
|
21
|
+
*/
|
|
22
|
+
export const subMcpEntry = subMcpMount.extend({ slug: z.string() });
|
|
23
|
+
/**
|
|
24
|
+
* `GET /api/auth/me` — the caller's derived capability projection: the concrete
|
|
25
|
+
* (path, method) surface, dynamic patterns, sub-MCP mounts, tools, and agents it
|
|
26
|
+
* can reach RIGHT NOW (derived server-side, never stored). `admin` is the
|
|
27
|
+
* condition-free ownerless `"*"` discriminator (a TOTAL projection); a scoped
|
|
28
|
+
* session carries `admin: false` and a jq-exact `routes` list. `owner_user_id` is
|
|
29
|
+
* the key's owner claim, `null` for an ownerless key. The invariant is
|
|
30
|
+
* projection ⊆ gate: every projected surface is one the server would admit, so
|
|
31
|
+
* the UI can filter on it without ever advertising a door the gate denies.
|
|
32
|
+
*/
|
|
33
|
+
export const meProjection = z.object({
|
|
34
|
+
user_id: z.string(),
|
|
35
|
+
owner_user_id: z.string().nullable(),
|
|
36
|
+
admin: z.boolean(),
|
|
37
|
+
scopes: z.array(z.string()),
|
|
38
|
+
routes: z.array(routeEntry),
|
|
39
|
+
route_patterns: z.array(patternEntry),
|
|
40
|
+
sub_mcp: z.array(subMcpEntry),
|
|
41
|
+
tools: z.array(z.string()),
|
|
42
|
+
agents: z.array(z.string()),
|
|
43
|
+
mintable: z.boolean(),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* `POST /api/auth/claim-links` — a one-time claim link minted in the key-create
|
|
47
|
+
* flow. `claim_path` is a fragment-carrier path (`/login#claim=<token>`, never an
|
|
48
|
+
* absolute URL — the Studio composes the origin); `token` is the raw claim token
|
|
49
|
+
* returned exactly ONCE; `expires_at` is an ISO-8601 instant.
|
|
50
|
+
*/
|
|
51
|
+
export const claimLinkCreated = z.object({
|
|
52
|
+
claim_path: z.string(),
|
|
53
|
+
token: z.string(),
|
|
54
|
+
expires_at: z.string(),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* `POST /api/auth/logout` — the single authed logout dispatcher's result.
|
|
58
|
+
* `revoked` is `true` when a live accounts session was revoked; a plain `sk-` key
|
|
59
|
+
* has nothing to revoke and answers `404` (a loud absent-session signal), never a
|
|
60
|
+
* `revoked: false` body. Non-strict, so a SUCCESSFUL logout never throws
|
|
61
|
+
* `ApiSchemaError` on an additive field.
|
|
62
|
+
*/
|
|
63
|
+
export const logoutResult = z.object({ revoked: z.boolean() });
|
|
64
|
+
/**
|
|
65
|
+
* `GET /api/auth/capabilities` — whether this deployment can MINT API keys
|
|
66
|
+
* locally. `mintable: false` means every configured identity provider is
|
|
67
|
+
* validator-only (keys are issued at an external issuer), so the key-creation
|
|
68
|
+
* UI disables up front instead of surfacing a raw mint failure. Non-strict.
|
|
69
|
+
*/
|
|
70
|
+
export const authCapabilities = z.object({
|
|
71
|
+
mintable: z.boolean(),
|
|
72
|
+
providers: z.array(z.object({ name: z.string(), mintable: z.boolean() })),
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,sFAAsF;AACtF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAGpE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAC3B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAGH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAG/D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;CAC1E,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Installed channel-plugin catalog response schema. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const channels: z.ZodObject<{
|
|
4
|
+
channels: z.ZodArray<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type Channels = z.infer<typeof channels>;
|
|
7
|
+
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/schemas/channels.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,QAAQ;;iBAEnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Installed channel-plugin catalog response schema. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
// The installed channel-plugin catalog: names registered via the manifest's
|
|
4
|
+
// channel modules. A deployment with none bound answers questions only in this
|
|
5
|
+
// inbox (the Studio default).
|
|
6
|
+
export const channels = z.object({
|
|
7
|
+
channels: z.array(z.string()),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=channels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/schemas/channels.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,+EAA+E;AAC/E,8BAA8B;AAE9B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Environment-config and config-mode response schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const envConfig: z.ZodObject<{
|
|
4
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
|
+
secret_keys: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
/**
|
|
8
|
+
* `GET /api/config/mode` — the active config backend mode (`file` / `k8s`). The
|
|
9
|
+
* skeleton emits only `config_mode`; `read_only` is a UI-side gate, tolerated-absent
|
|
10
|
+
* and defaulting to `false` (writable) so a normal response never drifts, while a
|
|
11
|
+
* genuinely read-only deployment can opt in by emitting `read_only: true`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const configMode: z.ZodObject<{
|
|
14
|
+
config_mode: z.ZodString;
|
|
15
|
+
read_only: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;iBAGpB,CAAC;AACH;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;iBAGrB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Environment-config and config-mode response schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const envConfig = z.object({
|
|
4
|
+
env: z.record(z.string(), z.string()),
|
|
5
|
+
secret_keys: z.array(z.string()),
|
|
6
|
+
});
|
|
7
|
+
/**
|
|
8
|
+
* `GET /api/config/mode` — the active config backend mode (`file` / `k8s`). The
|
|
9
|
+
* skeleton emits only `config_mode`; `read_only` is a UI-side gate, tolerated-absent
|
|
10
|
+
* and defaulting to `false` (writable) so a normal response never drifts, while a
|
|
11
|
+
* genuinely read-only deployment can opt in by emitting `read_only: true`.
|
|
12
|
+
*/
|
|
13
|
+
export const configMode = z.object({
|
|
14
|
+
config_mode: z.string(),
|
|
15
|
+
read_only: z.boolean().default(false),
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AACH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/** Connector provider catalog and connection lifecycle schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const subServiceView: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
display_name: z.ZodString;
|
|
6
|
+
description: z.ZodString;
|
|
7
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const configFieldView: z.ZodObject<{
|
|
10
|
+
key: z.ZodString;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
target: z.ZodEnum<{
|
|
13
|
+
env: "env";
|
|
14
|
+
header: "header";
|
|
15
|
+
}>;
|
|
16
|
+
required: z.ZodBoolean;
|
|
17
|
+
secret: z.ZodBoolean;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const providerView: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
display_name: z.ZodString;
|
|
22
|
+
description: z.ZodString;
|
|
23
|
+
icon_url: z.ZodURL;
|
|
24
|
+
kind: z.ZodEnum<{
|
|
25
|
+
none: "none";
|
|
26
|
+
oauth: "oauth";
|
|
27
|
+
}>;
|
|
28
|
+
origin: z.ZodEnum<{
|
|
29
|
+
system: "system";
|
|
30
|
+
community: "community";
|
|
31
|
+
}>;
|
|
32
|
+
category: z.ZodString;
|
|
33
|
+
sub_services: z.ZodArray<z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
display_name: z.ZodString;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
config_fields: z.ZodArray<z.ZodObject<{
|
|
40
|
+
key: z.ZodString;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
target: z.ZodEnum<{
|
|
43
|
+
env: "env";
|
|
44
|
+
header: "header";
|
|
45
|
+
}>;
|
|
46
|
+
required: z.ZodBoolean;
|
|
47
|
+
secret: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type ProviderView = z.infer<typeof providerView>;
|
|
51
|
+
/**
|
|
52
|
+
* One `connector_category` grouping row served alongside the catalog: the UI's
|
|
53
|
+
* label and sort key for the providers it groups, so the list can group, order,
|
|
54
|
+
* and label providers by category without a second read.
|
|
55
|
+
*/
|
|
56
|
+
export declare const connectorCategoryView: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
display_name: z.ZodString;
|
|
59
|
+
sort_order: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type ConnectorCategoryView = z.infer<typeof connectorCategoryView>;
|
|
62
|
+
/**
|
|
63
|
+
* `GET /api/connectors/providers` — the provider catalog: the providers plus the
|
|
64
|
+
* category groupings the UI arranges them under. Reshaped from a bare provider
|
|
65
|
+
* array so the category label/order surface rides the same read.
|
|
66
|
+
*/
|
|
67
|
+
export declare const providers: z.ZodObject<{
|
|
68
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
display_name: z.ZodString;
|
|
71
|
+
description: z.ZodString;
|
|
72
|
+
icon_url: z.ZodURL;
|
|
73
|
+
kind: z.ZodEnum<{
|
|
74
|
+
none: "none";
|
|
75
|
+
oauth: "oauth";
|
|
76
|
+
}>;
|
|
77
|
+
origin: z.ZodEnum<{
|
|
78
|
+
system: "system";
|
|
79
|
+
community: "community";
|
|
80
|
+
}>;
|
|
81
|
+
category: z.ZodString;
|
|
82
|
+
sub_services: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
display_name: z.ZodString;
|
|
85
|
+
description: z.ZodString;
|
|
86
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
config_fields: z.ZodArray<z.ZodObject<{
|
|
89
|
+
key: z.ZodString;
|
|
90
|
+
label: z.ZodString;
|
|
91
|
+
target: z.ZodEnum<{
|
|
92
|
+
env: "env";
|
|
93
|
+
header: "header";
|
|
94
|
+
}>;
|
|
95
|
+
required: z.ZodBoolean;
|
|
96
|
+
secret: z.ZodBoolean;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
display_name: z.ZodString;
|
|
102
|
+
sort_order: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type ProviderCatalogResponse = z.infer<typeof providers>;
|
|
106
|
+
export declare const connectionView: z.ZodObject<{
|
|
107
|
+
connection_id: z.ZodString;
|
|
108
|
+
provider_id: z.ZodString;
|
|
109
|
+
alias: z.ZodString;
|
|
110
|
+
kind: z.ZodEnum<{
|
|
111
|
+
none: "none";
|
|
112
|
+
oauth: "oauth";
|
|
113
|
+
}>;
|
|
114
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
115
|
+
enabled_sub_services: z.ZodArray<z.ZodString>;
|
|
116
|
+
granted_scopes: z.ZodArray<z.ZodString>;
|
|
117
|
+
unreachable_sub_services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
118
|
+
auth_health_state: z.ZodEnum<{
|
|
119
|
+
healthy: "healthy";
|
|
120
|
+
reconnect_required: "reconnect_required";
|
|
121
|
+
refresh_failing: "refresh_failing";
|
|
122
|
+
}>;
|
|
123
|
+
created_at: z.ZodString;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type ConnectionView = z.infer<typeof connectionView>;
|
|
126
|
+
export declare const connectionsList: z.ZodObject<{
|
|
127
|
+
items: z.ZodArray<z.ZodObject<{
|
|
128
|
+
connection_id: z.ZodString;
|
|
129
|
+
provider_id: z.ZodString;
|
|
130
|
+
alias: z.ZodString;
|
|
131
|
+
kind: z.ZodEnum<{
|
|
132
|
+
none: "none";
|
|
133
|
+
oauth: "oauth";
|
|
134
|
+
}>;
|
|
135
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
136
|
+
enabled_sub_services: z.ZodArray<z.ZodString>;
|
|
137
|
+
granted_scopes: z.ZodArray<z.ZodString>;
|
|
138
|
+
unreachable_sub_services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
139
|
+
auth_health_state: z.ZodEnum<{
|
|
140
|
+
healthy: "healthy";
|
|
141
|
+
reconnect_required: "reconnect_required";
|
|
142
|
+
refresh_failing: "refresh_failing";
|
|
143
|
+
}>;
|
|
144
|
+
created_at: z.ZodString;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
total: z.ZodNumber;
|
|
147
|
+
unhealthy: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export declare const startConnectResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
150
|
+
flow_id: z.ZodString;
|
|
151
|
+
authorize_url: z.ZodString;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
connection_id: z.ZodString;
|
|
154
|
+
added_manifest_entries: z.ZodArray<z.ZodString>;
|
|
155
|
+
fanout: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
156
|
+
mode: z.ZodLiteral<"local-only">;
|
|
157
|
+
note: z.ZodString;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
+
op: z.ZodString;
|
|
160
|
+
reachable: z.ZodBoolean;
|
|
161
|
+
local_only: z.ZodBoolean;
|
|
162
|
+
results: z.ZodArray<z.ZodObject<{
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
outcome: z.ZodEnum<{
|
|
165
|
+
failed: "failed";
|
|
166
|
+
resyncing: "resyncing";
|
|
167
|
+
recycling: "recycling";
|
|
168
|
+
stale: "stale";
|
|
169
|
+
applied: "applied";
|
|
170
|
+
missing: "missing";
|
|
171
|
+
departed: "departed";
|
|
172
|
+
timed_out: "timed_out";
|
|
173
|
+
}>;
|
|
174
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
175
|
+
error: z.ZodNullable<z.ZodString>;
|
|
176
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
error: z.ZodNullable<z.ZodString>;
|
|
179
|
+
mode: z.ZodLiteral<"fleet">;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
op: z.ZodString;
|
|
182
|
+
reachable: z.ZodBoolean;
|
|
183
|
+
local_only: z.ZodBoolean;
|
|
184
|
+
results: z.ZodArray<z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
outcome: z.ZodEnum<{
|
|
187
|
+
failed: "failed";
|
|
188
|
+
resyncing: "resyncing";
|
|
189
|
+
recycling: "recycling";
|
|
190
|
+
stale: "stale";
|
|
191
|
+
applied: "applied";
|
|
192
|
+
missing: "missing";
|
|
193
|
+
departed: "departed";
|
|
194
|
+
timed_out: "timed_out";
|
|
195
|
+
}>;
|
|
196
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
197
|
+
error: z.ZodNullable<z.ZodString>;
|
|
198
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
error: z.ZodNullable<z.ZodString>;
|
|
201
|
+
mode: z.ZodLiteral<"unreachable">;
|
|
202
|
+
}, z.core.$strip>], "mode">>;
|
|
203
|
+
}, z.core.$strip>]>;
|
|
204
|
+
export declare const reconnectResult: z.ZodObject<{
|
|
205
|
+
flow_id: z.ZodString;
|
|
206
|
+
authorize_url: z.ZodString;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export declare const disconnectResult: z.ZodObject<{
|
|
209
|
+
connection_id: z.ZodString;
|
|
210
|
+
upstream_revoke_outcome: z.ZodEnum<{
|
|
211
|
+
success: "success";
|
|
212
|
+
failed: "failed";
|
|
213
|
+
skipped: "skipped";
|
|
214
|
+
}>;
|
|
215
|
+
upstream_revoke_status: z.ZodNullable<z.ZodNumber>;
|
|
216
|
+
removed_manifest_entries: z.ZodArray<z.ZodString>;
|
|
217
|
+
fanout: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
218
|
+
mode: z.ZodLiteral<"local-only">;
|
|
219
|
+
note: z.ZodString;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
op: z.ZodString;
|
|
222
|
+
reachable: z.ZodBoolean;
|
|
223
|
+
local_only: z.ZodBoolean;
|
|
224
|
+
results: z.ZodArray<z.ZodObject<{
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
outcome: z.ZodEnum<{
|
|
227
|
+
failed: "failed";
|
|
228
|
+
resyncing: "resyncing";
|
|
229
|
+
recycling: "recycling";
|
|
230
|
+
stale: "stale";
|
|
231
|
+
applied: "applied";
|
|
232
|
+
missing: "missing";
|
|
233
|
+
departed: "departed";
|
|
234
|
+
timed_out: "timed_out";
|
|
235
|
+
}>;
|
|
236
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
237
|
+
error: z.ZodNullable<z.ZodString>;
|
|
238
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
error: z.ZodNullable<z.ZodString>;
|
|
241
|
+
mode: z.ZodLiteral<"fleet">;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
op: z.ZodString;
|
|
244
|
+
reachable: z.ZodBoolean;
|
|
245
|
+
local_only: z.ZodBoolean;
|
|
246
|
+
results: z.ZodArray<z.ZodObject<{
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
outcome: z.ZodEnum<{
|
|
249
|
+
failed: "failed";
|
|
250
|
+
resyncing: "resyncing";
|
|
251
|
+
recycling: "recycling";
|
|
252
|
+
stale: "stale";
|
|
253
|
+
applied: "applied";
|
|
254
|
+
missing: "missing";
|
|
255
|
+
departed: "departed";
|
|
256
|
+
timed_out: "timed_out";
|
|
257
|
+
}>;
|
|
258
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
259
|
+
error: z.ZodNullable<z.ZodString>;
|
|
260
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
error: z.ZodNullable<z.ZodString>;
|
|
263
|
+
mode: z.ZodLiteral<"unreachable">;
|
|
264
|
+
}, z.core.$strip>], "mode">>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
export declare const patchSubServicesResult: z.ZodObject<{
|
|
267
|
+
connection_id: z.ZodString;
|
|
268
|
+
enabled_sub_services: z.ZodArray<z.ZodString>;
|
|
269
|
+
consent_required: z.ZodBoolean;
|
|
270
|
+
flow_id: z.ZodNullable<z.ZodString>;
|
|
271
|
+
authorize_url: z.ZodNullable<z.ZodString>;
|
|
272
|
+
added_manifest_entries: z.ZodArray<z.ZodString>;
|
|
273
|
+
removed_manifest_entries: z.ZodArray<z.ZodString>;
|
|
274
|
+
fanout: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
275
|
+
mode: z.ZodLiteral<"local-only">;
|
|
276
|
+
note: z.ZodString;
|
|
277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
+
op: z.ZodString;
|
|
279
|
+
reachable: z.ZodBoolean;
|
|
280
|
+
local_only: z.ZodBoolean;
|
|
281
|
+
results: z.ZodArray<z.ZodObject<{
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
outcome: z.ZodEnum<{
|
|
284
|
+
failed: "failed";
|
|
285
|
+
resyncing: "resyncing";
|
|
286
|
+
recycling: "recycling";
|
|
287
|
+
stale: "stale";
|
|
288
|
+
applied: "applied";
|
|
289
|
+
missing: "missing";
|
|
290
|
+
departed: "departed";
|
|
291
|
+
timed_out: "timed_out";
|
|
292
|
+
}>;
|
|
293
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
294
|
+
error: z.ZodNullable<z.ZodString>;
|
|
295
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
error: z.ZodNullable<z.ZodString>;
|
|
298
|
+
mode: z.ZodLiteral<"fleet">;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
op: z.ZodString;
|
|
301
|
+
reachable: z.ZodBoolean;
|
|
302
|
+
local_only: z.ZodBoolean;
|
|
303
|
+
results: z.ZodArray<z.ZodObject<{
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
outcome: z.ZodEnum<{
|
|
306
|
+
failed: "failed";
|
|
307
|
+
resyncing: "resyncing";
|
|
308
|
+
recycling: "recycling";
|
|
309
|
+
stale: "stale";
|
|
310
|
+
applied: "applied";
|
|
311
|
+
missing: "missing";
|
|
312
|
+
departed: "departed";
|
|
313
|
+
timed_out: "timed_out";
|
|
314
|
+
}>;
|
|
315
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
316
|
+
error: z.ZodNullable<z.ZodString>;
|
|
317
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
error: z.ZodNullable<z.ZodString>;
|
|
320
|
+
mode: z.ZodLiteral<"unreachable">;
|
|
321
|
+
}, z.core.$strip>], "mode">>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
kind: z.ZodLiteral<"success">;
|
|
325
|
+
connection_id: z.ZodString;
|
|
326
|
+
return_url: z.ZodString;
|
|
327
|
+
fanout: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
328
|
+
mode: z.ZodLiteral<"local-only">;
|
|
329
|
+
note: z.ZodString;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
op: z.ZodString;
|
|
332
|
+
reachable: z.ZodBoolean;
|
|
333
|
+
local_only: z.ZodBoolean;
|
|
334
|
+
results: z.ZodArray<z.ZodObject<{
|
|
335
|
+
name: z.ZodString;
|
|
336
|
+
outcome: z.ZodEnum<{
|
|
337
|
+
failed: "failed";
|
|
338
|
+
resyncing: "resyncing";
|
|
339
|
+
recycling: "recycling";
|
|
340
|
+
stale: "stale";
|
|
341
|
+
applied: "applied";
|
|
342
|
+
missing: "missing";
|
|
343
|
+
departed: "departed";
|
|
344
|
+
timed_out: "timed_out";
|
|
345
|
+
}>;
|
|
346
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
347
|
+
error: z.ZodNullable<z.ZodString>;
|
|
348
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
error: z.ZodNullable<z.ZodString>;
|
|
351
|
+
mode: z.ZodLiteral<"fleet">;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
op: z.ZodString;
|
|
354
|
+
reachable: z.ZodBoolean;
|
|
355
|
+
local_only: z.ZodBoolean;
|
|
356
|
+
results: z.ZodArray<z.ZodObject<{
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
outcome: z.ZodEnum<{
|
|
359
|
+
failed: "failed";
|
|
360
|
+
resyncing: "resyncing";
|
|
361
|
+
recycling: "recycling";
|
|
362
|
+
stale: "stale";
|
|
363
|
+
applied: "applied";
|
|
364
|
+
missing: "missing";
|
|
365
|
+
departed: "departed";
|
|
366
|
+
timed_out: "timed_out";
|
|
367
|
+
}>;
|
|
368
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
369
|
+
error: z.ZodNullable<z.ZodString>;
|
|
370
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
error: z.ZodNullable<z.ZodString>;
|
|
373
|
+
mode: z.ZodLiteral<"unreachable">;
|
|
374
|
+
}, z.core.$strip>], "mode">>;
|
|
375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
376
|
+
kind: z.ZodLiteral<"failed">;
|
|
377
|
+
reason: z.ZodString;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
kind: z.ZodLiteral<"cancelled">;
|
|
380
|
+
message: z.ZodString;
|
|
381
|
+
}, z.core.$strip>], "kind">;
|
|
382
|
+
export type OAuthCompleteResult = z.infer<typeof oauthCompleteResult>;
|
|
383
|
+
//# sourceMappingURL=connectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/schemas/connectors.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;iBAKzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;iBAM1B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAavB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGpB,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;iBAiBzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AAOH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAO7B,CAAC;AAIH,eAAO,MAAM,eAAe;;;iBAA+D,CAAC;AAE5F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAW9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|