@tai42/api-client 20.0.0 → 22.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/README.md +29 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +6 -4
- package/dist/agents.js.map +1 -1
- package/dist/client/agents-client.d.ts.map +1 -1
- package/dist/client/agents-client.js +3 -2
- package/dist/client/agents-client.js.map +1 -1
- package/dist/client/auth-client.d.ts +129 -127
- package/dist/client/auth-client.d.ts.map +1 -1
- package/dist/client/auth-client.js +68 -28
- package/dist/client/auth-client.js.map +1 -1
- package/dist/client/backend-client.d.ts +14 -13
- package/dist/client/backend-client.d.ts.map +1 -1
- package/dist/client/backend-client.js +7 -3
- package/dist/client/backend-client.js.map +1 -1
- package/dist/client/backup-client.d.ts +45 -19
- package/dist/client/backup-client.d.ts.map +1 -1
- package/dist/client/backup-client.js +8 -3
- package/dist/client/backup-client.js.map +1 -1
- package/dist/client/capabilities-client.d.ts +20 -16
- package/dist/client/capabilities-client.d.ts.map +1 -1
- package/dist/client/capabilities-client.js +3 -2
- package/dist/client/capabilities-client.js.map +1 -1
- package/dist/client/channels-client.d.ts.map +1 -1
- package/dist/client/channels-client.js +2 -1
- package/dist/client/channels-client.js.map +1 -1
- package/dist/client/config-client.d.ts +44 -17
- package/dist/client/config-client.d.ts.map +1 -1
- package/dist/client/config-client.js +10 -4
- package/dist/client/config-client.js.map +1 -1
- package/dist/client/connectors-client.d.ts +270 -81
- package/dist/client/connectors-client.d.ts.map +1 -1
- package/dist/client/connectors-client.js +38 -10
- package/dist/client/connectors-client.js.map +1 -1
- package/dist/client/conversations-client.d.ts +440 -86
- package/dist/client/conversations-client.d.ts.map +1 -1
- package/dist/client/conversations-client.js +46 -17
- package/dist/client/conversations-client.js.map +1 -1
- package/dist/client/hooks-client.d.ts +3 -3
- package/dist/client/hooks-client.d.ts.map +1 -1
- package/dist/client/hooks-client.js +12 -7
- package/dist/client/hooks-client.js.map +1 -1
- package/dist/client/index.d.ts +2272 -914
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +10 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/interactions-client.d.ts +19 -14
- package/dist/client/interactions-client.d.ts.map +1 -1
- package/dist/client/interactions-client.js +21 -9
- package/dist/client/interactions-client.js.map +1 -1
- package/dist/client/login-client.d.ts +18 -17
- package/dist/client/login-client.d.ts.map +1 -1
- package/dist/client/login-client.js +8 -4
- package/dist/client/login-client.js.map +1 -1
- package/dist/client/manifest-client.d.ts +276 -105
- package/dist/client/manifest-client.d.ts.map +1 -1
- package/dist/client/manifest-client.js +22 -16
- package/dist/client/manifest-client.js.map +1 -1
- package/dist/client/marketplace-client.d.ts +181 -51
- package/dist/client/marketplace-client.d.ts.map +1 -1
- package/dist/client/marketplace-client.js +23 -12
- package/dist/client/marketplace-client.js.map +1 -1
- package/dist/client/mcp-config-schema-client.d.ts.map +1 -1
- package/dist/client/mcp-config-schema-client.js +2 -1
- package/dist/client/mcp-config-schema-client.js.map +1 -1
- package/dist/client/notifications-client.d.ts +43 -6
- package/dist/client/notifications-client.d.ts.map +1 -1
- package/dist/client/notifications-client.js +2 -1
- package/dist/client/notifications-client.js.map +1 -1
- package/dist/client/observability-client.d.ts +78 -38
- package/dist/client/observability-client.d.ts.map +1 -1
- package/dist/client/observability-client.js +29 -6
- package/dist/client/observability-client.js.map +1 -1
- package/dist/client/plugins-client.d.ts +8 -6
- package/dist/client/plugins-client.d.ts.map +1 -1
- package/dist/client/plugins-client.js +2 -1
- package/dist/client/plugins-client.js.map +1 -1
- package/dist/client/policy-client.d.ts +4 -4
- package/dist/client/policy-client.d.ts.map +1 -1
- package/dist/client/policy-client.js +11 -4
- package/dist/client/policy-client.js.map +1 -1
- package/dist/client/presets-client.d.ts +84 -39
- package/dist/client/presets-client.d.ts.map +1 -1
- package/dist/client/presets-client.js +25 -13
- package/dist/client/presets-client.js.map +1 -1
- package/dist/client/profiles-client.d.ts +40 -33
- package/dist/client/profiles-client.d.ts.map +1 -1
- package/dist/client/profiles-client.js +15 -10
- package/dist/client/profiles-client.js.map +1 -1
- package/dist/client/schedules-client.d.ts +21 -17
- package/dist/client/schedules-client.d.ts.map +1 -1
- package/dist/client/schedules-client.js +8 -5
- package/dist/client/schedules-client.js.map +1 -1
- package/dist/client/settings-schema-client.d.ts +1 -1
- package/dist/client/settings-schema-client.d.ts.map +1 -1
- package/dist/client/settings-schema-client.js +2 -1
- package/dist/client/settings-schema-client.js.map +1 -1
- package/dist/client/states-client.d.ts +215 -87
- package/dist/client/states-client.d.ts.map +1 -1
- package/dist/client/states-client.js +98 -37
- package/dist/client/states-client.js.map +1 -1
- package/dist/client/storage-client.d.ts +5 -5
- package/dist/client/storage-client.d.ts.map +1 -1
- package/dist/client/storage-client.js +24 -12
- package/dist/client/storage-client.js.map +1 -1
- package/dist/client/sub-mcp-client.d.ts +3 -1
- package/dist/client/sub-mcp-client.d.ts.map +1 -1
- package/dist/client/sub-mcp-client.js +9 -4
- package/dist/client/sub-mcp-client.js.map +1 -1
- package/dist/client/system-client.d.ts +2 -2
- package/dist/client/system-client.d.ts.map +1 -1
- package/dist/client/system-client.js +2 -1
- package/dist/client/system-client.js.map +1 -1
- package/dist/client/templates-client.d.ts +65 -6
- package/dist/client/templates-client.d.ts.map +1 -1
- package/dist/client/templates-client.js +25 -7
- package/dist/client/templates-client.js.map +1 -1
- package/dist/client/tool-extensions-client.d.ts +41 -16
- package/dist/client/tool-extensions-client.d.ts.map +1 -1
- package/dist/client/tool-extensions-client.js +6 -4
- package/dist/client/tool-extensions-client.js.map +1 -1
- package/dist/client/tool-meta-client.d.ts +8 -8
- package/dist/client/tool-meta-client.d.ts.map +1 -1
- package/dist/client/tool-meta-client.js +12 -8
- package/dist/client/tool-meta-client.js.map +1 -1
- package/dist/client/tools-client.d.ts +150 -23
- package/dist/client/tools-client.d.ts.map +1 -1
- package/dist/client/tools-client.js +8 -8
- package/dist/client/tools-client.js.map +1 -1
- package/dist/client/trigger-links-client.d.ts +11 -9
- package/dist/client/trigger-links-client.d.ts.map +1 -1
- package/dist/client/trigger-links-client.js +4 -4
- package/dist/client/trigger-links-client.js.map +1 -1
- package/dist/fleet-report.d.ts +21 -5
- package/dist/fleet-report.d.ts.map +1 -1
- package/dist/fleet-report.js +31 -6
- package/dist/fleet-report.js.map +1 -1
- package/dist/generated/api-routes.d.ts +1014 -0
- package/dist/generated/api-routes.d.ts.map +1 -0
- package/dist/generated/api-routes.js +322 -0
- package/dist/generated/api-routes.js.map +1 -0
- package/dist/generated/openapi-schemas.d.ts +12425 -0
- package/dist/generated/openapi-schemas.d.ts.map +1 -0
- package/dist/generated/openapi-schemas.js +671 -0
- package/dist/generated/openapi-schemas.js.map +1 -0
- package/dist/generated/served-schemas.d.ts +6698 -349
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +7062 -21
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/headers.d.ts +4 -0
- package/dist/headers.d.ts.map +1 -0
- package/dist/headers.js +4 -0
- package/dist/headers.js.map +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +4 -3
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/api-keys.d.ts +14 -12
- package/dist/schemas/api-keys.d.ts.map +1 -1
- package/dist/schemas/api-keys.js +9 -23
- package/dist/schemas/api-keys.js.map +1 -1
- package/dist/schemas/auth-routes.d.ts +34 -29
- package/dist/schemas/auth-routes.d.ts.map +1 -1
- package/dist/schemas/auth-routes.js +22 -27
- package/dist/schemas/auth-routes.js.map +1 -1
- package/dist/schemas/backup.d.ts +157 -36
- package/dist/schemas/backup.d.ts.map +1 -1
- package/dist/schemas/backup.js +27 -26
- package/dist/schemas/backup.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +32 -22
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +15 -40
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/channels.d.ts +1 -1
- package/dist/schemas/channels.d.ts.map +1 -1
- package/dist/schemas/channels.js +2 -5
- package/dist/schemas/channels.js.map +1 -1
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/config.js +4 -6
- package/dist/schemas/config.js.map +1 -1
- package/dist/schemas/connectors.d.ts +381 -185
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/connectors.js +54 -101
- package/dist/schemas/connectors.js.map +1 -1
- package/dist/schemas/conversations.d.ts +977 -248
- package/dist/schemas/conversations.d.ts.map +1 -1
- package/dist/schemas/conversations.js +40 -134
- package/dist/schemas/conversations.js.map +1 -1
- package/dist/schemas/extensions.d.ts +9 -6
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/extensions.js +6 -4
- package/dist/schemas/extensions.js.map +1 -1
- package/dist/schemas/fleet.d.ts +153 -99
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/fleet.js +41 -51
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/hooks.d.ts +34 -34
- package/dist/schemas/hooks.d.ts.map +1 -1
- package/dist/schemas/hooks.js +15 -34
- package/dist/schemas/hooks.js.map +1 -1
- package/dist/schemas/index.d.ts +0 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/interactions.d.ts +400 -128
- package/dist/schemas/interactions.d.ts.map +1 -1
- package/dist/schemas/interactions.js +202 -131
- package/dist/schemas/interactions.js.map +1 -1
- package/dist/schemas/login.d.ts +36 -37
- package/dist/schemas/login.d.ts.map +1 -1
- package/dist/schemas/login.js +8 -42
- package/dist/schemas/login.js.map +1 -1
- package/dist/schemas/manifest-mcp.d.ts +61 -35
- package/dist/schemas/manifest-mcp.d.ts.map +1 -1
- package/dist/schemas/manifest-mcp.js +13 -19
- package/dist/schemas/manifest-mcp.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +219 -133
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/marketplace.js +35 -120
- package/dist/schemas/marketplace.js.map +1 -1
- package/dist/schemas/members.d.ts +59 -52
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +20 -52
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/notifications.d.ts +115 -17
- package/dist/schemas/notifications.d.ts.map +1 -1
- package/dist/schemas/notifications.js +9 -35
- package/dist/schemas/notifications.js.map +1 -1
- package/dist/schemas/observability.d.ts +174 -72
- package/dist/schemas/observability.d.ts.map +1 -1
- package/dist/schemas/observability.js +23 -76
- package/dist/schemas/observability.js.map +1 -1
- package/dist/schemas/policy.d.ts +11 -11
- package/dist/schemas/policy.d.ts.map +1 -1
- package/dist/schemas/policy.js +5 -12
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/presets.d.ts +109 -64
- package/dist/schemas/presets.d.ts.map +1 -1
- package/dist/schemas/presets.js +12 -48
- package/dist/schemas/presets.js.map +1 -1
- package/dist/schemas/principals.d.ts +28 -21
- package/dist/schemas/principals.d.ts.map +1 -1
- package/dist/schemas/principals.js +13 -25
- package/dist/schemas/principals.js.map +1 -1
- package/dist/schemas/profiles.d.ts +75 -63
- package/dist/schemas/profiles.d.ts.map +1 -1
- package/dist/schemas/profiles.js +24 -54
- package/dist/schemas/profiles.js.map +1 -1
- package/dist/schemas/roles.d.ts +22 -22
- package/dist/schemas/roles.d.ts.map +1 -1
- package/dist/schemas/roles.js +10 -17
- package/dist/schemas/roles.js.map +1 -1
- package/dist/schemas/schedules.d.ts +21 -15
- package/dist/schemas/schedules.d.ts.map +1 -1
- package/dist/schemas/schedules.js +4 -13
- package/dist/schemas/schedules.js.map +1 -1
- package/dist/schemas/served.d.ts +6373 -181
- package/dist/schemas/served.d.ts.map +1 -1
- package/dist/schemas/served.js +21 -0
- package/dist/schemas/served.js.map +1 -1
- package/dist/schemas/settings-schema.d.ts +1 -1
- package/dist/schemas/settings-schema.d.ts.map +1 -1
- package/dist/schemas/settings-schema.js +17 -19
- package/dist/schemas/settings-schema.js.map +1 -1
- package/dist/schemas/setup.d.ts +6 -6
- package/dist/schemas/setup.d.ts.map +1 -1
- package/dist/schemas/setup.js +2 -11
- package/dist/schemas/setup.js.map +1 -1
- package/dist/schemas/states.d.ts +450 -135
- package/dist/schemas/states.d.ts.map +1 -1
- package/dist/schemas/states.js +76 -140
- package/dist/schemas/states.js.map +1 -1
- package/dist/schemas/storage.d.ts +7 -8
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +8 -17
- package/dist/schemas/storage.js.map +1 -1
- package/dist/schemas/studio-plugins.d.ts +24 -18
- package/dist/schemas/studio-plugins.d.ts.map +1 -1
- package/dist/schemas/studio-plugins.js +5 -19
- package/dist/schemas/studio-plugins.js.map +1 -1
- package/dist/schemas/sub-mcp.d.ts +11 -8
- package/dist/schemas/sub-mcp.d.ts.map +1 -1
- package/dist/schemas/sub-mcp.js +10 -19
- package/dist/schemas/sub-mcp.js.map +1 -1
- package/dist/schemas/system-kinds.d.ts +76 -46
- package/dist/schemas/system-kinds.d.ts.map +1 -1
- package/dist/schemas/system-kinds.js +11 -28
- package/dist/schemas/system-kinds.js.map +1 -1
- package/dist/schemas/templates.d.ts +83 -25
- package/dist/schemas/templates.d.ts.map +1 -1
- package/dist/schemas/templates.js +8 -9
- package/dist/schemas/templates.js.map +1 -1
- package/dist/schemas/tool-meta.d.ts +15 -15
- package/dist/schemas/tool-meta.d.ts.map +1 -1
- package/dist/schemas/tool-meta.js +6 -21
- package/dist/schemas/tool-meta.js.map +1 -1
- package/dist/schemas/tools.d.ts +177 -56
- package/dist/schemas/tools.d.ts.map +1 -1
- package/dist/schemas/tools.js +20 -41
- package/dist/schemas/tools.js.map +1 -1
- package/dist/schemas/trigger-links.d.ts +22 -17
- package/dist/schemas/trigger-links.d.ts.map +1 -1
- package/dist/schemas/trigger-links.js +7 -27
- package/dist/schemas/trigger-links.js.map +1 -1
- package/dist/tool-runs.d.ts +175 -54
- package/dist/tool-runs.d.ts.map +1 -1
- package/dist/tool-runs.js +33 -34
- package/dist/tool-runs.js.map +1 -1
- package/package.json +4 -3
- package/src/agents.ts +16 -4
- package/src/client/agents-client.ts +3 -2
- package/src/client/auth-client.ts +102 -37
- package/src/client/backend-client.ts +8 -3
- package/src/client/backup-client.ts +8 -3
- package/src/client/capabilities-client.ts +4 -2
- package/src/client/channels-client.ts +3 -1
- package/src/client/config-client.ts +13 -5
- package/src/client/connectors-client.ts +91 -16
- package/src/client/conversations-client.ts +79 -30
- package/src/client/hooks-client.ts +25 -12
- package/src/client/index.ts +16 -4
- package/src/client/interactions-client.ts +40 -16
- package/src/client/login-client.ts +8 -4
- package/src/client/manifest-client.ts +48 -24
- package/src/client/marketplace-client.ts +23 -12
- package/src/client/mcp-config-schema-client.ts +2 -1
- package/src/client/notifications-client.ts +2 -1
- package/src/client/observability-client.ts +60 -8
- package/src/client/plugins-client.ts +2 -1
- package/src/client/policy-client.ts +24 -9
- package/src/client/presets-client.ts +26 -13
- package/src/client/profiles-client.ts +53 -24
- package/src/client/schedules-client.ts +14 -20
- package/src/client/settings-schema-client.ts +2 -1
- package/src/client/states-client.ts +151 -49
- package/src/client/storage-client.ts +43 -14
- package/src/client/sub-mcp-client.ts +10 -4
- package/src/client/system-client.ts +2 -1
- package/src/client/templates-client.ts +26 -7
- package/src/client/tool-extensions-client.ts +14 -7
- package/src/client/tool-meta-client.ts +46 -21
- package/src/client/tools-client.ts +13 -8
- package/src/client/trigger-links-client.ts +10 -6
- package/src/fleet-report.ts +48 -7
- package/src/generated/api-routes.ts +327 -0
- package/src/generated/openapi-schemas.ts +1508 -0
- package/src/generated/served-schemas.ts +7120 -40
- package/src/headers.ts +4 -0
- package/src/http.ts +4 -3
- package/src/index.ts +54 -10
- package/src/schemas/api-keys.ts +9 -25
- package/src/schemas/auth-routes.ts +27 -28
- package/src/schemas/backup.ts +33 -31
- package/src/schemas/capabilities.ts +16 -39
- package/src/schemas/channels.ts +4 -4
- package/src/schemas/config.ts +6 -6
- package/src/schemas/connectors.ts +61 -102
- package/src/schemas/conversations.ts +43 -133
- package/src/schemas/extensions.ts +7 -4
- package/src/schemas/fleet.ts +51 -51
- package/src/schemas/hooks.ts +18 -37
- package/src/schemas/index.ts +0 -1
- package/src/schemas/interactions.ts +227 -131
- package/src/schemas/login.ts +10 -41
- package/src/schemas/manifest-mcp.ts +13 -19
- package/src/schemas/marketplace.ts +37 -120
- package/src/schemas/members.ts +21 -51
- package/src/schemas/notifications.ts +10 -34
- package/src/schemas/observability.ts +34 -79
- package/src/schemas/policy.ts +5 -12
- package/src/schemas/presets.ts +13 -48
- package/src/schemas/principals.ts +17 -24
- package/src/schemas/profiles.ts +25 -55
- package/src/schemas/roles.ts +11 -17
- package/src/schemas/schedules.ts +4 -15
- package/src/schemas/served.ts +33 -0
- package/src/schemas/settings-schema.ts +18 -23
- package/src/schemas/setup.ts +4 -10
- package/src/schemas/states.ts +88 -139
- package/src/schemas/storage.ts +10 -16
- package/src/schemas/studio-plugins.ts +8 -19
- package/src/schemas/sub-mcp.ts +12 -18
- package/src/schemas/system-kinds.ts +12 -29
- package/src/schemas/templates.ts +8 -10
- package/src/schemas/tool-meta.ts +8 -20
- package/src/schemas/tools.ts +22 -45
- package/src/schemas/trigger-links.ts +8 -26
- package/src/tool-runs.ts +47 -38
- package/dist/client/web-entry-gate-client.d.ts +0 -34
- package/dist/client/web-entry-gate-client.d.ts.map +0 -1
- package/dist/client/web-entry-gate-client.js +0 -25
- package/dist/client/web-entry-gate-client.js.map +0 -1
- package/dist/schemas/web-entry.d.ts +0 -45
- package/dist/schemas/web-entry.d.ts.map +0 -1
- package/dist/schemas/web-entry.js +0 -36
- package/dist/schemas/web-entry.js.map +0 -1
- package/src/client/web-entry-gate-client.ts +0 -45
- package/src/schemas/web-entry.ts +0 -46
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
/** Marketplace listing, version, install and advisory schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
4
|
+
// The registry's listing, search, version, detail and advisory shapes are hand-written: the
|
|
5
|
+
// skeleton passes the upstream registry's bodies through as opaque values. The installed,
|
|
6
|
+
// upgrade, install, preview and uninstall shapes are the skeleton's own.
|
|
3
7
|
/**
|
|
4
8
|
* The CLOSED HTTP-method enum fixed by the contract's RouteMethod, the one source
|
|
5
9
|
* for every route-method field (declaration and install/preview responses alike):
|
|
6
10
|
* a wire method the contract does not define fails loudly as drift rather than
|
|
7
11
|
* passing through silently.
|
|
8
12
|
*/
|
|
9
|
-
export const routeMethod =
|
|
13
|
+
export const routeMethod = openapi.mountedRoute.shape.methods.element;
|
|
10
14
|
/**
|
|
11
15
|
* How the plugin is delivered, derived server-side from whether its spec names a
|
|
12
16
|
* package: `package` is pip-installed, `descriptor` (marketplace `source` `spec`)
|
|
13
17
|
* installs nothing but the manifest entry. A CLOSED enum, so a wire value the
|
|
14
18
|
* server does not derive fails loudly as drift.
|
|
15
19
|
*/
|
|
16
|
-
export const marketplaceDelivery =
|
|
20
|
+
export const marketplaceDelivery = openapi.installedRow.shape.delivery;
|
|
17
21
|
/**
|
|
18
22
|
* The install-provenance vocabulary a listing/version resolves from: a pip index
|
|
19
23
|
* (`pypi`), a git tag (`github`), or a descriptor yml (`spec`). CLOSED, so a wire
|
|
@@ -25,7 +29,7 @@ export const marketplaceSource = z.enum(['pypi', 'github', 'spec']);
|
|
|
25
29
|
* a `secret` (an OAuth client secret is; a client id or a plain marker var is not).
|
|
26
30
|
* The install dialog seeds each toggle from `secret` and collects the missing ones.
|
|
27
31
|
*/
|
|
28
|
-
export const marketplaceRequiredEnvVar =
|
|
32
|
+
export const marketplaceRequiredEnvVar = openapi.requiredEnvVar;
|
|
29
33
|
/**
|
|
30
34
|
* One HTTP route an item declares in its `tai-plugin.yml`: a `path` relative to
|
|
31
35
|
* the item's mount base, the `methods` it answers, and whether it is served
|
|
@@ -199,16 +203,9 @@ export const marketplacePluginDetail = z.object({
|
|
|
199
203
|
* One installed plugin's compat verdict against the RUNNING tai42-contract:
|
|
200
204
|
* `compatible` / `incompatible` per its declared contract range, `unknown` when
|
|
201
205
|
* no verdict could be computed. `reason` is the human-readable explanation of a
|
|
202
|
-
* non-`compatible` verdict, `null` when compatible.
|
|
203
|
-
* server is built against exactly this shape, so an unknown key is drift and
|
|
204
|
-
* throws instead of being stripped.
|
|
206
|
+
* non-`compatible` verdict, `null` when compatible.
|
|
205
207
|
*/
|
|
206
|
-
export const marketplaceInstalledCompat =
|
|
207
|
-
.object({
|
|
208
|
-
status: z.enum(['compatible', 'incompatible', 'unknown']),
|
|
209
|
-
reason: z.string().nullable(),
|
|
210
|
-
})
|
|
211
|
-
.strict();
|
|
208
|
+
export const marketplaceInstalledCompat = openapi.compatStatus;
|
|
212
209
|
/**
|
|
213
210
|
* One installed marketplace plugin as the local attribution store records it.
|
|
214
211
|
* `latest` is the newest registry version (`null` when unknown);
|
|
@@ -216,132 +213,65 @@ export const marketplaceInstalledCompat = z
|
|
|
216
213
|
* `incompatible_newer` names the newest version blocked by the running
|
|
217
214
|
* contract (`null` when none), so "an update exists but needs a newer core" is
|
|
218
215
|
* visible. `missing_upstream` flags a plugin the registry no longer lists.
|
|
219
|
-
* `compat` is the row's verdict against the running contract.
|
|
220
|
-
*
|
|
216
|
+
* `compat` is the row's verdict against the running contract. `delivery` is `package`
|
|
217
|
+
* for a pip-installed plugin, `descriptor` for a descriptor-only plugin whose stored spec
|
|
218
|
+
* names no package. `items` is the `{kind, name}` of every item this plugin's stored spec
|
|
219
|
+
* provides (local truth); `route_mounts` is the persisted `{item_name: base}` mount this
|
|
220
|
+
* plugin is installed at (`{}` means every item at its declared base).
|
|
221
221
|
*/
|
|
222
|
-
export const marketplaceInstalledPlugin =
|
|
223
|
-
.object({
|
|
224
|
-
ref: z.string(),
|
|
225
|
-
version: z.string(),
|
|
226
|
-
source: z.string(),
|
|
227
|
-
// How the row was delivered: `package` for a pip-installed plugin, `descriptor`
|
|
228
|
-
// for a descriptor-only plugin whose stored spec names no package.
|
|
229
|
-
delivery: marketplaceDelivery,
|
|
230
|
-
installed_at: z.string(),
|
|
231
|
-
latest: z.string().nullable(),
|
|
232
|
-
update_available: z.boolean(),
|
|
233
|
-
incompatible_newer: z.string().nullable(),
|
|
234
|
-
missing_upstream: z.boolean(),
|
|
235
|
-
compat: marketplaceInstalledCompat,
|
|
236
|
-
// The `{kind, name}` of every item this plugin's stored spec provides
|
|
237
|
-
// (local truth). The connectors page's McpServersSection joins the mcp-server
|
|
238
|
-
// item names against the manifest's mcp-entry titles to render an
|
|
239
|
-
// installer-written entry read-only.
|
|
240
|
-
items: z.array(marketplaceItem.pick({ kind: true, name: true })),
|
|
241
|
-
// The persisted `{item_name: base}` mount this plugin is installed at (local
|
|
242
|
-
// truth; `{}` means every item at its declared base). Studio seeds the update
|
|
243
|
-
// flow and renders routes at the ACTUAL mounted base from this.
|
|
244
|
-
route_mounts: z.record(z.string(), z.string()),
|
|
245
|
-
})
|
|
246
|
-
.strict();
|
|
222
|
+
export const marketplaceInstalledPlugin = openapi.installedRow;
|
|
247
223
|
/**
|
|
248
224
|
* The installed inventory (`GET /api/marketplace/installed`): the attributed
|
|
249
|
-
* rows, each with its per-row compat verdict and update picture.
|
|
225
|
+
* rows, each with its per-row compat verdict and update picture.
|
|
250
226
|
*/
|
|
251
|
-
export const marketplaceInstalled =
|
|
252
|
-
.object({
|
|
253
|
-
installed: z.array(marketplaceInstalledPlugin),
|
|
254
|
-
})
|
|
255
|
-
.strict();
|
|
227
|
+
export const marketplaceInstalled = openapi.installedInventory;
|
|
256
228
|
/**
|
|
257
229
|
* One per-plugin outcome of `POST /api/marketplace/upgrade-all`: `upgraded`,
|
|
258
230
|
* already `up-to-date`, `no-compatible-version` in the registry, or `failed`;
|
|
259
|
-
* `detail` always carries the human-readable specifics.
|
|
231
|
+
* `detail` always carries the human-readable specifics.
|
|
260
232
|
*/
|
|
261
|
-
export const marketplaceUpgradeAllRow =
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
outcome: z.enum(['upgraded', 'up-to-date', 'no-compatible-version', 'failed']),
|
|
265
|
-
detail: z.string(),
|
|
266
|
-
})
|
|
267
|
-
.strict();
|
|
268
|
-
/** The whole upgrade-all readout: one outcome row per installed plugin. CLOSED. */
|
|
269
|
-
export const marketplaceUpgradeAllResult = z
|
|
270
|
-
.object({
|
|
271
|
-
results: z.array(marketplaceUpgradeAllRow),
|
|
272
|
-
})
|
|
273
|
-
.strict();
|
|
233
|
+
export const marketplaceUpgradeAllRow = openapi.upgradeRow;
|
|
234
|
+
/** The whole upgrade-all readout: one outcome row per installed plugin. */
|
|
235
|
+
export const marketplaceUpgradeAllResult = openapi.upgradeAllResult;
|
|
274
236
|
/** The advisory state for installed plugins, with when it was last fetched. */
|
|
275
|
-
export const marketplaceAdvisories =
|
|
237
|
+
export const marketplaceAdvisories = openapi.advisorySnapshot.extend({
|
|
276
238
|
advisories: z.array(marketplaceAdvisory),
|
|
277
|
-
fetched_at: z.string(),
|
|
278
239
|
});
|
|
279
240
|
/** The registry's controlled category list, proxied through the skeleton. */
|
|
280
|
-
export const marketplaceCategories =
|
|
241
|
+
export const marketplaceCategories = openapi.stringList;
|
|
281
242
|
/** The registry's controlled item-kind list, proxied through the skeleton. */
|
|
282
|
-
export const marketplaceKinds =
|
|
243
|
+
export const marketplaceKinds = openapi.stringList;
|
|
283
244
|
/**
|
|
284
245
|
* One route the install / update actually mounted: the item that owns it, the
|
|
285
246
|
* absolute `full_path` it now answers, the `methods`, and whether it is served
|
|
286
247
|
* `public`. The receipt lists these so the operator sees what was opened where.
|
|
287
248
|
*/
|
|
288
|
-
export const marketplaceMountedRoute =
|
|
289
|
-
item: z.string(),
|
|
290
|
-
full_path: z.string(),
|
|
291
|
-
methods: z.array(routeMethod),
|
|
292
|
-
public: z.boolean(),
|
|
293
|
-
});
|
|
249
|
+
export const marketplaceMountedRoute = openapi.mountedRoute;
|
|
294
250
|
/**
|
|
295
251
|
* The receipt of an install / update: what landed and at which version.
|
|
296
252
|
* `notes` (env-selected items naming their activating env var) and any
|
|
297
253
|
* non-critical `advisories` ride BOTH the install and update receipts.
|
|
298
254
|
* `routes` is the mounted-route list — empty for a plugin that registers none.
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
* not the raw install log.
|
|
255
|
+
* `package`, `reload` and `pip_output` carry the installed package, the config reload
|
|
256
|
+
* and the raw install log.
|
|
302
257
|
*/
|
|
303
|
-
export const marketplaceInstallResult =
|
|
304
|
-
ref: z.string(),
|
|
305
|
-
version: z.string(),
|
|
306
|
-
notes: z.array(z.string()),
|
|
258
|
+
export const marketplaceInstallResult = openapi.installResult.extend({
|
|
307
259
|
advisories: z.array(marketplaceAdvisory),
|
|
308
|
-
routes: z.array(marketplaceMountedRoute),
|
|
309
260
|
});
|
|
310
261
|
/** One resolved route in an install preview: the declared `path`, its resolved
|
|
311
262
|
* absolute `full_path`, the `methods`, and whether it is `public`. */
|
|
312
|
-
export const marketplacePreviewRoute =
|
|
313
|
-
path: z.string(),
|
|
314
|
-
full_path: z.string(),
|
|
315
|
-
methods: z.array(routeMethod),
|
|
316
|
-
public: z.boolean(),
|
|
317
|
-
});
|
|
263
|
+
export const marketplacePreviewRoute = openapi.previewItemRoute;
|
|
318
264
|
/** One route-carrying item in an install preview: its resolved `base` (the
|
|
319
265
|
* override or the default), the `default_base` it declares, and the routes that
|
|
320
266
|
* mount under it. */
|
|
321
|
-
export const marketplacePreviewItem =
|
|
322
|
-
item: z.string(),
|
|
323
|
-
kind: z.string(),
|
|
324
|
-
base: z.string(),
|
|
325
|
-
default_base: z.string(),
|
|
326
|
-
routes: z.array(marketplacePreviewRoute),
|
|
327
|
-
});
|
|
267
|
+
export const marketplacePreviewItem = openapi.previewItem;
|
|
328
268
|
/** One collision the preview found: a route whose resolved shape+method clashes
|
|
329
269
|
* with an already-owned route. `conflict_owner` is `core` or `plugin:<ref>`; the
|
|
330
270
|
* remedy is to remap the item's base. */
|
|
331
|
-
export const marketplacePreviewCollision =
|
|
332
|
-
item: z.string(),
|
|
333
|
-
full_path: z.string(),
|
|
334
|
-
methods: z.array(routeMethod),
|
|
335
|
-
conflict_owner: z.string(),
|
|
336
|
-
conflict_path: z.string(),
|
|
337
|
-
});
|
|
271
|
+
export const marketplacePreviewCollision = openapi.routeCollision;
|
|
338
272
|
/** One public route the operator is asked to accept: served WITHOUT
|
|
339
273
|
* authentication once installed. */
|
|
340
|
-
export const marketplacePreviewPublicRoute =
|
|
341
|
-
item: z.string(),
|
|
342
|
-
full_path: z.string(),
|
|
343
|
-
methods: z.array(routeMethod),
|
|
344
|
-
});
|
|
274
|
+
export const marketplacePreviewPublicRoute = openapi.publicRouteRow;
|
|
345
275
|
/**
|
|
346
276
|
* The install preview (`POST /api/marketplace/install/preview`): the resolved
|
|
347
277
|
* routes per item with any base overrides applied, the collisions against the
|
|
@@ -354,26 +284,11 @@ export const marketplacePreviewPublicRoute = z.object({
|
|
|
354
284
|
* process env (server-computed — the ONE authority the dialog collects), and
|
|
355
285
|
* `delivery` is the one word the surface shows (`package` / `descriptor`).
|
|
356
286
|
*/
|
|
357
|
-
export const marketplaceInstallPreview =
|
|
358
|
-
ref: z.string(),
|
|
359
|
-
version: z.string(),
|
|
360
|
-
items: z.array(marketplacePreviewItem),
|
|
361
|
-
collisions: z.array(marketplacePreviewCollision),
|
|
362
|
-
public_routes: z.array(marketplacePreviewPublicRoute),
|
|
363
|
-
new_public_routes: z.array(marketplacePreviewPublicRoute),
|
|
364
|
-
requires_public_acceptance: z.boolean(),
|
|
365
|
-
required_env: z.array(marketplaceRequiredEnvVar),
|
|
366
|
-
missing_env: z.array(z.string()),
|
|
367
|
-
delivery: marketplaceDelivery,
|
|
368
|
-
});
|
|
287
|
+
export const marketplaceInstallPreview = openapi.installPreview;
|
|
369
288
|
/**
|
|
370
289
|
* The receipt of an uninstall. `notes` carries operator warnings (e.g. a config
|
|
371
290
|
* provider still selected by its env var); render them like the install
|
|
372
|
-
* receipt's notes.
|
|
291
|
+
* receipt's notes. `reload` is `null` when the plugin wrote no manifest entry to remove.
|
|
373
292
|
*/
|
|
374
|
-
export const marketplaceUninstallResult =
|
|
375
|
-
ref: z.string(),
|
|
376
|
-
uninstalled: z.literal(true),
|
|
377
|
-
notes: z.array(z.string()),
|
|
378
|
-
});
|
|
293
|
+
export const marketplaceUninstallResult = openapi.uninstallResult;
|
|
379
294
|
//# sourceMappingURL=marketplace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/schemas/marketplace.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/schemas/marketplace.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,4FAA4F;AAC5F,0FAA0F;AAC1F,yEAAyE;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;AAGtE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC;AAGvE;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AAGpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,c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CAAC,cAAc,CAAC;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;AAGhE;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Member, invite, directory and member-action schemas for the generic Members view. */
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
3
|
/**
|
|
4
4
|
* Where a declared member action renders: a page-level button, a member-row menu
|
|
5
5
|
* item, or an invite-row menu item. A provider classifies each of its own actions
|
|
@@ -15,21 +15,26 @@ export type MemberActionScope = z.infer<typeof memberActionScope>;
|
|
|
15
15
|
/**
|
|
16
16
|
* One platform principal a member holds (`GET /api/auth/members` →
|
|
17
17
|
* `members[].principals[]`). `user_id` is the platform principal id; `disabled` is
|
|
18
|
-
* taken from that principal's own record (the store the principals listing reads)
|
|
19
|
-
* never from a
|
|
18
|
+
* taken from that principal's own record (the store the principals listing reads) and
|
|
19
|
+
* `role` is the role it holds, joined from its own policy record — both never from a
|
|
20
|
+
* provider. `role` is `null` when the principal's policy was not written from a role
|
|
21
|
+
* template.
|
|
20
22
|
*/
|
|
21
23
|
export declare const memberPrincipalState: z.ZodObject<{
|
|
22
|
-
user_id: z.ZodString;
|
|
23
24
|
disabled: z.ZodBoolean;
|
|
24
|
-
|
|
25
|
+
role: z.ZodNullable<z.ZodString>;
|
|
26
|
+
user_id: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
25
28
|
export type MemberPrincipalState = z.infer<typeof memberPrincipalState>;
|
|
26
29
|
/**
|
|
27
30
|
* One person an accounts provider owns, as the directory door returns them
|
|
28
31
|
* (`GET /api/auth/members` → `members[]`). `id` is the provider's stable handle for
|
|
29
|
-
* the person (a list key, not shown). `email` is the sign-in identity; `role`
|
|
30
|
-
*
|
|
31
|
-
* from the role listing)
|
|
32
|
-
*
|
|
32
|
+
* the person (a list key, not shown). `email` is the sign-in identity; `role` is the
|
|
33
|
+
* one role name every principal holds (the NAME only — the role definition is read
|
|
34
|
+
* from the role listing), or `null` when there is no single name: every principal's
|
|
35
|
+
* access was set directly, or the principals hold different roles
|
|
36
|
+
* (`principals[].role` carries each one's own). `principals` carries each principal's
|
|
37
|
+
* platform-joined state; `disabled` is derived True only when EVERY principal is disabled, so a
|
|
33
38
|
* person with any enabled principal still reads active while the per-principal truth
|
|
34
39
|
* stays visible. `handle` routes an invoke back to the producing provider and pins
|
|
35
40
|
* this row; `action_keys` are the opaque catalog keys of the actions applicable to
|
|
@@ -37,37 +42,38 @@ export type MemberPrincipalState = z.infer<typeof memberPrincipalState>;
|
|
|
37
42
|
* instant.
|
|
38
43
|
*/
|
|
39
44
|
export declare const memberRow: z.ZodObject<{
|
|
40
|
-
|
|
41
|
-
email: z.ZodString;
|
|
42
|
-
role: z.ZodString;
|
|
45
|
+
action_keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
43
46
|
created_at: z.ZodString;
|
|
44
|
-
principals: z.ZodArray<z.ZodObject<{
|
|
45
|
-
user_id: z.ZodString;
|
|
46
|
-
disabled: z.ZodBoolean;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
47
|
disabled: z.ZodBoolean;
|
|
48
|
+
email: z.ZodString;
|
|
49
49
|
handle: z.ZodString;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
principals: z.ZodArray<z.ZodObject<{
|
|
52
|
+
disabled: z.ZodBoolean;
|
|
53
|
+
role: z.ZodNullable<z.ZodString>;
|
|
54
|
+
user_id: z.ZodString;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
role: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
52
58
|
export type MemberRow = z.infer<typeof memberRow>;
|
|
53
59
|
/**
|
|
54
60
|
* One outstanding invitation an accounts provider holds, as the directory door
|
|
55
61
|
* returns them (`GET /api/auth/members` → `invites[]`). `id` is the provider's
|
|
56
62
|
* stable handle for the invited person; `email` is the invited address; `role` names
|
|
57
|
-
* the platform role they will hold (name only,
|
|
63
|
+
* the platform role they will hold (name only, or `null` when not from a role template). An
|
|
58
64
|
* invitation holds no principal, so it carries no principal state. `handle` and
|
|
59
65
|
* `action_keys` are the opaque routing tokens (see {@link memberRow}). `created_at`
|
|
60
66
|
* and `expires_at` are ISO-8601 instants.
|
|
61
67
|
*/
|
|
62
68
|
export declare const inviteRow: z.ZodObject<{
|
|
63
|
-
|
|
64
|
-
email: z.ZodString;
|
|
65
|
-
role: z.ZodString;
|
|
69
|
+
action_keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
66
70
|
created_at: z.ZodString;
|
|
71
|
+
email: z.ZodString;
|
|
67
72
|
expires_at: z.ZodString;
|
|
68
73
|
handle: z.ZodString;
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
role: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strict>;
|
|
71
77
|
export type InviteRow = z.infer<typeof inviteRow>;
|
|
72
78
|
/**
|
|
73
79
|
* The deployment-wide membership (`GET /api/auth/members`): every accounts
|
|
@@ -76,29 +82,30 @@ export type InviteRow = z.infer<typeof inviteRow>;
|
|
|
76
82
|
* provider.
|
|
77
83
|
*/
|
|
78
84
|
export declare const memberDirectory: z.ZodObject<{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
email: z.ZodString;
|
|
82
|
-
role: z.ZodString;
|
|
85
|
+
invites: z.ZodArray<z.ZodObject<{
|
|
86
|
+
action_keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
83
87
|
created_at: z.ZodString;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
disabled: z.ZodBoolean;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
disabled: z.ZodBoolean;
|
|
88
|
+
email: z.ZodString;
|
|
89
|
+
expires_at: z.ZodString;
|
|
89
90
|
handle: z.ZodString;
|
|
90
|
-
action_keys: z.ZodArray<z.ZodString>;
|
|
91
|
-
}, z.core.$strip>>;
|
|
92
|
-
invites: z.ZodArray<z.ZodObject<{
|
|
93
91
|
id: z.ZodString;
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
role: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
94
|
+
members: z.ZodArray<z.ZodObject<{
|
|
95
|
+
action_keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
96
96
|
created_at: z.ZodString;
|
|
97
|
-
|
|
97
|
+
disabled: z.ZodBoolean;
|
|
98
|
+
email: z.ZodString;
|
|
98
99
|
handle: z.ZodString;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
principals: z.ZodArray<z.ZodObject<{
|
|
102
|
+
disabled: z.ZodBoolean;
|
|
103
|
+
role: z.ZodNullable<z.ZodString>;
|
|
104
|
+
user_id: z.ZodString;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
role: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
102
109
|
export type MemberDirectory = z.infer<typeof memberDirectory>;
|
|
103
110
|
/**
|
|
104
111
|
* One declared member action, serialized for the catalog (`GET
|
|
@@ -110,17 +117,17 @@ export type MemberDirectory = z.infer<typeof memberDirectory>;
|
|
|
110
117
|
* name known to Studio.
|
|
111
118
|
*/
|
|
112
119
|
export declare const memberActionDescriptor: z.ZodObject<{
|
|
120
|
+
destructive: z.ZodBoolean;
|
|
121
|
+
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
113
122
|
key: z.ZodString;
|
|
114
123
|
label: z.ZodString;
|
|
124
|
+
result_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
115
125
|
scope: z.ZodEnum<{
|
|
116
126
|
page: "page";
|
|
117
127
|
member_row: "member_row";
|
|
118
128
|
invite_row: "invite_row";
|
|
119
129
|
}>;
|
|
120
|
-
|
|
121
|
-
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
122
|
-
result_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
123
|
-
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strict>;
|
|
124
131
|
export type MemberActionDescriptor = z.infer<typeof memberActionDescriptor>;
|
|
125
132
|
/**
|
|
126
133
|
* Every declared member action across the registered accounts providers (`GET
|
|
@@ -129,18 +136,18 @@ export type MemberActionDescriptor = z.infer<typeof memberActionDescriptor>;
|
|
|
129
136
|
*/
|
|
130
137
|
export declare const memberActionCatalog: z.ZodObject<{
|
|
131
138
|
actions: z.ZodArray<z.ZodObject<{
|
|
139
|
+
destructive: z.ZodBoolean;
|
|
140
|
+
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
132
141
|
key: z.ZodString;
|
|
133
142
|
label: z.ZodString;
|
|
143
|
+
result_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
134
144
|
scope: z.ZodEnum<{
|
|
135
145
|
page: "page";
|
|
136
146
|
member_row: "member_row";
|
|
137
147
|
invite_row: "invite_row";
|
|
138
148
|
}>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
result_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
142
|
-
}, z.core.$strip>>;
|
|
143
|
-
}, z.core.$strip>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
}, z.core.$strict>;
|
|
144
151
|
export type MemberActionCatalog = z.infer<typeof memberActionCatalog>;
|
|
145
152
|
/**
|
|
146
153
|
* The invoke-door result (`POST /api/auth/member-actions/invoke`): the provider's
|
|
@@ -149,6 +156,6 @@ export type MemberActionCatalog = z.infer<typeof memberActionCatalog>;
|
|
|
149
156
|
*/
|
|
150
157
|
export declare const invokeMemberActionResult: z.ZodObject<{
|
|
151
158
|
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
152
|
-
}, z.core.$
|
|
159
|
+
}, z.core.$strict>;
|
|
153
160
|
export type InvokeMemberActionResult = z.infer<typeof invokeMemberActionResult>;
|
|
154
161
|
//# sourceMappingURL=members.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/schemas/members.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/schemas/members.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAA6C,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;kBAA+B,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;kBAAoB,CAAC;AAC3C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS;;;;;;;;kBAAoB,CAAC;AAC3C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;kBAA0B,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;kBAAiC,CAAC;AACrE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;kBAA8B,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;kBAAmC,CAAC;AACzE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/schemas/members.js
CHANGED
|
@@ -1,74 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { jsonSchema } from './shared';
|
|
1
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
4
2
|
/**
|
|
5
3
|
* Where a declared member action renders: a page-level button, a member-row menu
|
|
6
4
|
* item, or an invite-row menu item. A provider classifies each of its own actions
|
|
7
5
|
* into one of these three places; Studio only joins by `scope`, never reads the
|
|
8
6
|
* provider's meaning behind it.
|
|
9
7
|
*/
|
|
10
|
-
export const memberActionScope =
|
|
8
|
+
export const memberActionScope = openapi.memberActionDescriptor.shape.scope;
|
|
11
9
|
/**
|
|
12
10
|
* One platform principal a member holds (`GET /api/auth/members` →
|
|
13
11
|
* `members[].principals[]`). `user_id` is the platform principal id; `disabled` is
|
|
14
|
-
* taken from that principal's own record (the store the principals listing reads)
|
|
15
|
-
* never from a
|
|
12
|
+
* taken from that principal's own record (the store the principals listing reads) and
|
|
13
|
+
* `role` is the role it holds, joined from its own policy record — both never from a
|
|
14
|
+
* provider. `role` is `null` when the principal's policy was not written from a role
|
|
15
|
+
* template.
|
|
16
16
|
*/
|
|
17
|
-
export const memberPrincipalState =
|
|
18
|
-
user_id: z.string(),
|
|
19
|
-
disabled: z.boolean(),
|
|
20
|
-
});
|
|
17
|
+
export const memberPrincipalState = openapi.memberPrincipalState;
|
|
21
18
|
/**
|
|
22
19
|
* One person an accounts provider owns, as the directory door returns them
|
|
23
20
|
* (`GET /api/auth/members` → `members[]`). `id` is the provider's stable handle for
|
|
24
|
-
* the person (a list key, not shown). `email` is the sign-in identity; `role`
|
|
25
|
-
*
|
|
26
|
-
* from the role listing)
|
|
27
|
-
*
|
|
21
|
+
* the person (a list key, not shown). `email` is the sign-in identity; `role` is the
|
|
22
|
+
* one role name every principal holds (the NAME only — the role definition is read
|
|
23
|
+
* from the role listing), or `null` when there is no single name: every principal's
|
|
24
|
+
* access was set directly, or the principals hold different roles
|
|
25
|
+
* (`principals[].role` carries each one's own). `principals` carries each principal's
|
|
26
|
+
* platform-joined state; `disabled` is derived True only when EVERY principal is disabled, so a
|
|
28
27
|
* person with any enabled principal still reads active while the per-principal truth
|
|
29
28
|
* stays visible. `handle` routes an invoke back to the producing provider and pins
|
|
30
29
|
* this row; `action_keys` are the opaque catalog keys of the actions applicable to
|
|
31
30
|
* it — Studio joins and echoes both, never parses them. `created_at` is an ISO-8601
|
|
32
31
|
* instant.
|
|
33
32
|
*/
|
|
34
|
-
export const memberRow =
|
|
35
|
-
id: z.string(),
|
|
36
|
-
email: z.string(),
|
|
37
|
-
role: z.string(),
|
|
38
|
-
created_at: z.string(),
|
|
39
|
-
principals: z.array(memberPrincipalState),
|
|
40
|
-
disabled: z.boolean(),
|
|
41
|
-
handle: z.string(),
|
|
42
|
-
action_keys: z.array(z.string()),
|
|
43
|
-
});
|
|
33
|
+
export const memberRow = openapi.memberRow;
|
|
44
34
|
/**
|
|
45
35
|
* One outstanding invitation an accounts provider holds, as the directory door
|
|
46
36
|
* returns them (`GET /api/auth/members` → `invites[]`). `id` is the provider's
|
|
47
37
|
* stable handle for the invited person; `email` is the invited address; `role` names
|
|
48
|
-
* the platform role they will hold (name only,
|
|
38
|
+
* the platform role they will hold (name only, or `null` when not from a role template). An
|
|
49
39
|
* invitation holds no principal, so it carries no principal state. `handle` and
|
|
50
40
|
* `action_keys` are the opaque routing tokens (see {@link memberRow}). `created_at`
|
|
51
41
|
* and `expires_at` are ISO-8601 instants.
|
|
52
42
|
*/
|
|
53
|
-
export const inviteRow =
|
|
54
|
-
id: z.string(),
|
|
55
|
-
email: z.string(),
|
|
56
|
-
role: z.string(),
|
|
57
|
-
created_at: z.string(),
|
|
58
|
-
expires_at: z.string(),
|
|
59
|
-
handle: z.string(),
|
|
60
|
-
action_keys: z.array(z.string()),
|
|
61
|
-
});
|
|
43
|
+
export const inviteRow = openapi.inviteRow;
|
|
62
44
|
/**
|
|
63
45
|
* The deployment-wide membership (`GET /api/auth/members`): every accounts
|
|
64
46
|
* provider's people and outstanding invitations, aggregated and platform-joined by
|
|
65
47
|
* the backend into one view so a generic Members screen renders without naming any
|
|
66
48
|
* provider.
|
|
67
49
|
*/
|
|
68
|
-
export const memberDirectory =
|
|
69
|
-
members: z.array(memberRow),
|
|
70
|
-
invites: z.array(inviteRow),
|
|
71
|
-
});
|
|
50
|
+
export const memberDirectory = openapi.memberDirectory;
|
|
72
51
|
/**
|
|
73
52
|
* One declared member action, serialized for the catalog (`GET
|
|
74
53
|
* /api/auth/member-actions` → `actions[]`). `key` is the opaque catalog key a caller
|
|
@@ -78,28 +57,17 @@ export const memberDirectory = z.object({
|
|
|
78
57
|
* form and a read-only result view from them generically, with no provider field
|
|
79
58
|
* name known to Studio.
|
|
80
59
|
*/
|
|
81
|
-
export const memberActionDescriptor =
|
|
82
|
-
key: z.string(),
|
|
83
|
-
label: z.string(),
|
|
84
|
-
scope: memberActionScope,
|
|
85
|
-
destructive: z.boolean(),
|
|
86
|
-
input_schema: jsonSchema,
|
|
87
|
-
result_schema: jsonSchema,
|
|
88
|
-
});
|
|
60
|
+
export const memberActionDescriptor = openapi.memberActionDescriptor;
|
|
89
61
|
/**
|
|
90
62
|
* Every declared member action across the registered accounts providers (`GET
|
|
91
63
|
* /api/auth/member-actions`). ADMIN-ONLY (`secret`) — a non-admin projection never
|
|
92
64
|
* reaches the route, exactly as the members listing.
|
|
93
65
|
*/
|
|
94
|
-
export const memberActionCatalog =
|
|
95
|
-
actions: z.array(memberActionDescriptor),
|
|
96
|
-
});
|
|
66
|
+
export const memberActionCatalog = openapi.memberActionCatalog;
|
|
97
67
|
/**
|
|
98
68
|
* The invoke-door result (`POST /api/auth/member-actions/invoke`): the provider's
|
|
99
69
|
* result-model dump, carried opaquely. `result` is rendered through the action's
|
|
100
70
|
* `result_schema`; Studio reads no field of it by name.
|
|
101
71
|
*/
|
|
102
|
-
export const invokeMemberActionResult =
|
|
103
|
-
result: jsonSchema,
|
|
104
|
-
});
|
|
72
|
+
export const invokeMemberActionResult = openapi.invokeMemberActionResult;
|
|
105
73
|
//# sourceMappingURL=members.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../src/schemas/members.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../src/schemas/members.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;AAG5E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;AAGjE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAG3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAG3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;AAGvD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;AAGrE;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAG/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC"}
|