@tai42/api-client 19.3.0 → 21.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 +143 -90
- package/dist/client/auth-client.d.ts.map +1 -1
- package/dist/client/auth-client.js +81 -25
- 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 +2252 -864
- 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 +44 -14
- 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 +6697 -392
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +7061 -46
- 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 +970 -241
- 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 +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/interactions.d.ts +146 -123
- package/dist/schemas/interactions.d.ts.map +1 -1
- package/dist/schemas/interactions.js +44 -129
- 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 +161 -0
- package/dist/schemas/members.d.ts.map +1 -0
- package/dist/schemas/members.js +73 -0
- package/dist/schemas/members.js.map +1 -0
- package/dist/schemas/notifications.d.ts +113 -41
- 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 -194
- 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 +134 -34
- 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 +7118 -82
- package/src/headers.ts +4 -0
- package/src/http.ts +4 -3
- package/src/index.ts +52 -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 +1 -1
- package/src/schemas/interactions.ts +48 -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 +91 -0
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../src/schemas/states.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../src/schemas/states.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,2FAA2F;AAC3F,eAAO,MAAM,YAAY;;;;;;;;kBAAuB,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,sFAAsF;AACtF,eAAO,MAAM,WAAW;;;;;;;kBAAyB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;kBAAmB,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;mBAA+B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;kBAA0B,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,mGAAmG;AACnG,eAAO,MAAM,eAAe;;;;;iBAA8B,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,mBAAmB;;;;;;kBAA8B,CAAC;AAE/D,qGAAqG;AAGrG,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAqE,CAAC;AAC9F,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;GAIG;AACH,eAAO,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AAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;iBAAkC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,wEAAwE;AACxE,eAAO,MAAM,oBAAoB;;iBAAoC,CAAC"}
|
package/dist/schemas/states.js
CHANGED
|
@@ -1,220 +1,156 @@
|
|
|
1
1
|
/** State declaration, record, template and consumer response schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import
|
|
3
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
4
|
+
import * as served from '../generated/served-schemas';
|
|
4
5
|
import { stateDeclaration, stateTemplateDocument } from './served';
|
|
5
|
-
// The
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// sub-shapes) are generated from the contract bundle and re-exported at the top of this
|
|
9
|
-
// file. The composed `effective_schema` and write `regimes` stay permissive JSON records
|
|
10
|
-
// (the auto-form and JsonTree interpret them at runtime) and are server-computed, so they
|
|
11
|
-
// are modelled optional and a response that omits them still parses.
|
|
6
|
+
// The state response schemas — list rows and detail, attachments, per-subject records and
|
|
7
|
+
// subjects, stats and consumers. The served DOCUMENT schemas (`stateDeclaration`/
|
|
8
|
+
// `stateTemplateDocument` and the template sub-shapes) are re-exported from `./served`.
|
|
12
9
|
/** One addressed subject: the conversation-target scope plus the (kind, key) within it. */
|
|
13
|
-
export const stateSubject =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
kind: z.string(),
|
|
17
|
-
key: z.string(),
|
|
18
|
-
});
|
|
19
|
-
/** One absolute write-regime rule composed over the attachments: `{path, regime}`, permissive. */
|
|
20
|
-
export const stateRegime = z.record(z.string(), z.unknown());
|
|
10
|
+
export const stateSubject = openapi.stateSubject;
|
|
11
|
+
/** One absolute write-regime rule composed over the attachments: `{path, regime}`. */
|
|
12
|
+
export const stateRegime = served.stateRegimeRule;
|
|
21
13
|
/**
|
|
22
14
|
* One row of `GET /api/states` — a served declaration (`list_states` dumps every
|
|
23
15
|
* `StateDeclaration`) plus `updated_at` (the row's last-write timestamp, ISO or
|
|
24
16
|
* `null`). The list carries no record count; the `Records` column reads
|
|
25
17
|
* `getStateStats` lazily per row.
|
|
26
18
|
*/
|
|
27
|
-
export const stateListItem = stateDeclaration
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
export const stateListItem = stateDeclaration;
|
|
20
|
+
export const stateList = openapi.stateDeclarationList;
|
|
21
|
+
/**
|
|
22
|
+
* One save held by a failed pending save: `save_id` names it, `held_by` the failed save holding it
|
|
23
|
+
* (equal to `save_id` for the failed save itself), `subjects` the subjects it writes. A scan or
|
|
24
|
+
* a re-declare that read past it names it in its `held` list.
|
|
25
|
+
*/
|
|
26
|
+
export const heldPendingSave = openapi.heldPendingSave;
|
|
31
27
|
/** One template attachment on a state: where the fragment lands + its param/declaration values. */
|
|
32
|
-
export const stateAttachment =
|
|
33
|
-
|
|
34
|
-
path: z.array(z.string()),
|
|
35
|
-
parameters: z.record(z.string(), z.unknown()).default({}),
|
|
36
|
-
declarations: z.record(z.string(), z.unknown()).default({}),
|
|
37
|
-
});
|
|
38
|
-
export const stateAttachmentList = z.array(stateAttachment);
|
|
28
|
+
export const stateAttachment = openapi.stateAttachmentView;
|
|
29
|
+
export const stateAttachmentList = openapi.stateAttachmentList;
|
|
39
30
|
/** `GET /api/states/{name}` — the declaration (with effective schema + regimes) plus attachments. */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
31
|
+
// Built on the declaration document: the spec publishes the served view's `schema` and
|
|
32
|
+
// `regimes` as open objects, the document types them.
|
|
33
|
+
export const stateDetail = stateDeclaration.extend({ attachments: z.array(stateAttachment) });
|
|
34
|
+
/**
|
|
35
|
+
* `PUT /api/states/{name}` — a create or re-declare's answer: the stored declaration's fields
|
|
36
|
+
* plus `held`, the held pending saves an accepted re-declare names (absent when none). The
|
|
37
|
+
* answer carries no attachments; a caller that needs them reads `getState`.
|
|
38
|
+
*/
|
|
39
|
+
export const stateDeclarationSaved = openapi.stateDeclarationPutResponse;
|
|
43
40
|
/**
|
|
44
41
|
* `GET /api/states/{name}/stats` — `records` (total documents), `per_field` (the count
|
|
45
42
|
* of records carrying each base-schema property), `per_kind` (records per subject kind)
|
|
46
43
|
* and `consumers` (the count of listable consumers). The Records tab shows `records`;
|
|
47
44
|
* the states list reads it lazily for its Records column.
|
|
48
45
|
*/
|
|
49
|
-
export const stateStats =
|
|
50
|
-
records: z.number(),
|
|
51
|
-
per_field: z.record(z.string(), z.number()).default({}),
|
|
52
|
-
per_kind: z.record(z.string(), z.number()).default({}),
|
|
53
|
-
consumers: z.number().default(0),
|
|
54
|
-
});
|
|
46
|
+
export const stateStats = openapi.stateStats;
|
|
55
47
|
/**
|
|
56
48
|
* One row of `GET /api/state-templates`. The template document plus the two derived columns
|
|
57
49
|
* the Templates tab shows: `attached_to` (how many states attach it — a delete is refused
|
|
58
50
|
* while > 0) and `shipped_default` (a platform-shipped template). Both are server-derived
|
|
59
51
|
* columns; the document fields are verbatim.
|
|
60
52
|
*/
|
|
53
|
+
// Built on the template document: the spec publishes a served template's jq programs as open
|
|
54
|
+
// objects, the document types them.
|
|
61
55
|
export const stateTemplateListItem = stateTemplateDocument.extend({
|
|
62
|
-
attached_to:
|
|
63
|
-
shipped_default:
|
|
56
|
+
attached_to: openapi.stateTemplateCatalogEntry.shape.attached_to,
|
|
57
|
+
shipped_default: openapi.stateTemplateCatalogEntry.shape.shipped_default,
|
|
64
58
|
});
|
|
65
59
|
export const stateTemplateList = z.array(stateTemplateListItem);
|
|
66
60
|
/** A read record: the state, its subject, the document + monotonic seq, and any fold. */
|
|
67
|
-
export const stateRecord =
|
|
68
|
-
state: z.string(),
|
|
69
|
-
subject: stateSubject,
|
|
70
|
-
data: z.record(z.string(), z.unknown()).default({}),
|
|
71
|
-
seq: z.number(),
|
|
72
|
-
canonical_subject: stateSubject,
|
|
73
|
-
folded_from: z.array(stateSubject).default([]),
|
|
74
|
-
});
|
|
61
|
+
export const stateRecord = openapi.stateRecord;
|
|
75
62
|
/** The outcome of an `apply` (a delta batch): whether it applied + the resulting doc. */
|
|
76
|
-
export const applyResult =
|
|
77
|
-
applied: z.boolean(),
|
|
78
|
-
data: z.record(z.string(), z.unknown()).nullable().default(null),
|
|
79
|
-
seq: z.number().nullable().default(null),
|
|
80
|
-
skipped: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
81
|
-
});
|
|
63
|
+
export const applyResult = openapi.applyResult;
|
|
82
64
|
/**
|
|
83
65
|
* `GET …/template-jq/{name}` — the evaluated template jq's `name`, its `purpose`, and
|
|
84
66
|
* its `value` (the `input` jq's read). GET evaluates ONLY an `input`-purpose jq; a GET
|
|
85
67
|
* on an `update`-purpose name is refused with 422, so the result's purpose is always
|
|
86
68
|
* `input`.
|
|
87
69
|
*/
|
|
88
|
-
export const templateJqResult =
|
|
89
|
-
name: z.string(),
|
|
90
|
-
purpose: z.literal('input'),
|
|
91
|
-
value: z.unknown(),
|
|
92
|
-
});
|
|
70
|
+
export const templateJqResult = openapi.templateJqResult;
|
|
93
71
|
/**
|
|
94
72
|
* `POST …/template-jq/{name}` — the applied template jq's outcome. The jq lands an op
|
|
95
73
|
* batch through the same `apply` chokepoint as a delta, so `applied`/`data`/`seq`/`skipped`
|
|
96
74
|
* carry that outcome.
|
|
97
75
|
*/
|
|
98
|
-
export const templateJqApplyResult =
|
|
99
|
-
name: z.string(),
|
|
100
|
-
applied: z.boolean(),
|
|
101
|
-
data: z.record(z.string(), z.unknown()).nullable().default(null),
|
|
102
|
-
seq: z.number().nullable().default(null),
|
|
103
|
-
skipped: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
104
|
-
});
|
|
76
|
+
export const templateJqApplyResult = openapi.templateJqApplyResult;
|
|
105
77
|
/**
|
|
106
78
|
* One paged subject row: the addressed `subject` plus its record's last-write
|
|
107
79
|
* `updated_at` — epoch seconds (the store's `extract(epoch FROM updated_at)`), served
|
|
108
80
|
* raw (no `mode="json"` dump), and `NOT NULL` on every record, so a plain number.
|
|
109
81
|
*/
|
|
110
|
-
export const subjectRow =
|
|
111
|
-
subject: stateSubject,
|
|
112
|
-
updated_at: z.number(),
|
|
113
|
-
});
|
|
82
|
+
export const subjectRow = openapi.stateSubjectEntry;
|
|
114
83
|
/**
|
|
115
84
|
* `GET /api/states/{name}/subjects` — a keyset page of subject rows (optionally of one
|
|
116
85
|
* `kind`): the matched `subjects` plus the `next_cursor` a "Load more" carries back
|
|
117
86
|
* (`null` at the end).
|
|
118
87
|
*/
|
|
119
|
-
export const subjectPage =
|
|
120
|
-
subjects: z.array(subjectRow),
|
|
121
|
-
next_cursor: z.string().nullable().default(null),
|
|
122
|
-
});
|
|
88
|
+
export const subjectPage = openapi.stateSubjectsPage;
|
|
123
89
|
/**
|
|
124
90
|
* `POST /api/states/{name}/records/search` — a keyset page of the subject rows whose
|
|
125
91
|
* document contains the filters (a JSONB containment match). Each hit's `subject` opens
|
|
126
92
|
* the record page; `next_cursor` pages the rest.
|
|
127
93
|
*/
|
|
128
|
-
export const recordSearchPage =
|
|
129
|
-
matches: z.array(subjectRow),
|
|
130
|
-
next_cursor: z.string().nullable().default(null),
|
|
131
|
-
});
|
|
94
|
+
export const recordSearchPage = openapi.stateSearchPage;
|
|
132
95
|
/** A WriteEntry's origin completed by the platform chokepoint (mirrors CompletedOrigin). */
|
|
133
|
-
export const completedOrigin =
|
|
134
|
-
consumer: z.string().nullable().default(null),
|
|
135
|
-
// Opaque consumer-supplied provenance JSON the platform stores as is.
|
|
136
|
-
meta: z.record(z.string(), z.unknown()).nullable().default(null),
|
|
137
|
-
run_id: z.string().nullable().default(null),
|
|
138
|
-
op_id: z.string().nullable().default(null),
|
|
139
|
-
door: z.string(),
|
|
140
|
-
actor: z.string().nullable().default(null),
|
|
141
|
-
turn_id: z.string().nullable().default(null),
|
|
142
|
-
inbound_id: z.string().nullable().default(null),
|
|
143
|
-
});
|
|
96
|
+
export const completedOrigin = openapi.completedOrigin;
|
|
144
97
|
/** One row of a subject's audit trail (mirrors WriteEntry). `paths` are absolute. */
|
|
145
|
-
export const writeEntry =
|
|
146
|
-
seq: z.number(),
|
|
147
|
-
at: z.string(),
|
|
148
|
-
origin: completedOrigin,
|
|
149
|
-
paths: z.array(z.array(z.union([z.string(), z.number()]))).default([]),
|
|
150
|
-
});
|
|
98
|
+
export const writeEntry = openapi.writeEntry;
|
|
151
99
|
/** `GET /api/states/{name}/records/.../writes` — a keyset page of the audit trail. */
|
|
152
|
-
export const writesPage =
|
|
153
|
-
items: z.array(writeEntry),
|
|
154
|
-
next_cursor: z.string().nullable().default(null),
|
|
155
|
-
});
|
|
100
|
+
export const writesPage = openapi.writesPage;
|
|
156
101
|
/** Where the Studio opens a consumer (mirrors ConsumerLink): a token+search OR plugin path. */
|
|
157
|
-
export const consumerLink =
|
|
158
|
-
token: z.string().nullable().default(null),
|
|
159
|
-
plugin_path: z.string().nullable().default(null),
|
|
160
|
-
search: z.record(z.string(), z.unknown()).nullable().default(null),
|
|
161
|
-
});
|
|
102
|
+
export const consumerLink = openapi.consumerLink;
|
|
162
103
|
/**
|
|
163
104
|
* One thing that binds a state (mirrors ConsumerRow): its `kind` (flow / hook / schedule
|
|
164
105
|
* / agent), `name`, human `detail` and optional `link`. `unavailable` marks a consumer
|
|
165
106
|
* family that cannot be listed on this deployment (e.g. no scheduling backend), surfaced
|
|
166
107
|
* as a muted line — never swallowed.
|
|
167
108
|
*/
|
|
168
|
-
export const consumerRow =
|
|
169
|
-
kind: z.string(),
|
|
170
|
-
name: z.string().nullable().default(null),
|
|
171
|
-
detail: z.string().nullable().default(null),
|
|
172
|
-
link: consumerLink.nullable().default(null),
|
|
173
|
-
unavailable: z.string().nullable().default(null),
|
|
174
|
-
});
|
|
109
|
+
export const consumerRow = openapi.consumerRow;
|
|
175
110
|
/** `GET /api/states/{name}/consumers` — the union of every registered lister's rows. */
|
|
176
|
-
export const stateConsumers =
|
|
111
|
+
export const stateConsumers = openapi.stateConsumerList;
|
|
177
112
|
/** `DELETE /api/states/{name}` — the removed state. */
|
|
178
|
-
export const stateDeleted =
|
|
113
|
+
export const stateDeleted = openapi.stateDeleteResult;
|
|
179
114
|
/** `PUT /api/states/{name}/attachments/{template}` — the template now attached to the state. */
|
|
180
|
-
export const stateAttached =
|
|
181
|
-
attached: z.literal(true),
|
|
182
|
-
state: z.string(),
|
|
183
|
-
template: z.string(),
|
|
184
|
-
});
|
|
115
|
+
export const stateAttached = openapi.attachAck;
|
|
185
116
|
/** `PATCH /api/states/{name}/attachments/{template}` — the attachment whose declarations were rewritten. */
|
|
186
|
-
export const stateAttachmentUpdated =
|
|
187
|
-
updated: z.literal(true),
|
|
188
|
-
state: z.string(),
|
|
189
|
-
template: z.string(),
|
|
190
|
-
});
|
|
117
|
+
export const stateAttachmentUpdated = openapi.attachUpdateAck;
|
|
191
118
|
/** `DELETE /api/states/{name}/attachments/{template}` — the template detached from the state. */
|
|
192
|
-
export const stateDetached =
|
|
193
|
-
detached: z.literal(true),
|
|
194
|
-
state: z.string(),
|
|
195
|
-
template: z.string(),
|
|
196
|
-
});
|
|
119
|
+
export const stateDetached = openapi.detachAck;
|
|
197
120
|
/**
|
|
198
121
|
* `POST /api/states/{name}/records/.../fold` — the fold report: the `mode`, the
|
|
199
122
|
* `{kind, key}` of the folded `from` and surviving `into` subjects, whether the fold
|
|
200
|
-
* was `already` in place,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
from: z.object({ kind: z.string(), key: z.string() }),
|
|
205
|
-
into: z.object({ kind: z.string(), key: z.string() }),
|
|
206
|
-
already: z.boolean(),
|
|
207
|
-
flattened: z.number().default(0),
|
|
208
|
-
});
|
|
123
|
+
* was `already` in place, how many records were `flattened` into the survivor, and
|
|
124
|
+
* (a `merge` fold only) the survivor's newly-filled `merged_members`.
|
|
125
|
+
*/
|
|
126
|
+
export const stateFoldReport = openapi.foldReport;
|
|
209
127
|
/** `DELETE /api/state-templates/{name}` — the removed template document. */
|
|
210
|
-
export const stateTemplateDeleted =
|
|
128
|
+
export const stateTemplateDeleted = openapi.stateDeleteResult;
|
|
211
129
|
/** `DELETE /api/states/{name}/records/...` — the erased record marker. */
|
|
212
|
-
export const recordErased =
|
|
130
|
+
export const recordErased = openapi.eraseAck;
|
|
213
131
|
/**
|
|
214
132
|
* `POST /api/state-retention/prune` — the retention sweep's per-state deleted counts
|
|
215
133
|
* (`{}` when nothing expired); the UI sums the values for its total.
|
|
216
134
|
*/
|
|
217
|
-
export const stateRetentionPruned =
|
|
218
|
-
|
|
219
|
-
|
|
135
|
+
export const stateRetentionPruned = openapi.pruneResult;
|
|
136
|
+
/** A pending save's lifecycle: records waiting, calls queued, a call running, or failed (held). */
|
|
137
|
+
export const pendingSaveStatus = openapi.statePendingSave.shape.status;
|
|
138
|
+
/**
|
|
139
|
+
* One outstanding pending state save (`GET /api/state-pending-saves`): what it writes and calls,
|
|
140
|
+
* never the record data or call arguments. `failed_phase` says which part failed.
|
|
141
|
+
*/
|
|
142
|
+
export const pendingSave = openapi.statePendingSave;
|
|
143
|
+
/**
|
|
144
|
+
* A page of pending saves, newest first, with the totals of every `outstanding` and every
|
|
145
|
+
* `failed` save; `next_cursor` continues the page (`null` at the end).
|
|
146
|
+
*/
|
|
147
|
+
export const pendingSavesPage = openapi.statePendingSavesPage;
|
|
148
|
+
/**
|
|
149
|
+
* `POST /api/state-pending-saves/{id}/retry` — the save's status after its records phase:
|
|
150
|
+
* `applied` (it landed whole), `pending`/`calls`/`running` (queued again), or `failed` again
|
|
151
|
+
* with its `last_error`.
|
|
152
|
+
*/
|
|
153
|
+
export const pendingSaveRetried = openapi.statePendingSaveRetried;
|
|
154
|
+
/** `DELETE /api/state-pending-saves/{id}` — the discarded save's id. */
|
|
155
|
+
export const pendingSaveDiscarded = openapi.statePendingSaveDiscarded;
|
|
220
156
|
//# sourceMappingURL=states.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"states.js","sourceRoot":"","sources":["../../src/schemas/states.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"states.js","sourceRoot":"","sources":["../../src/schemas/states.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEnE,0FAA0F;AAC1F,kFAAkF;AAClF,wFAAwF;AAExF,2FAA2F;AAC3F,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAGjD,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,eAAe,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;AAGvD,mGAAmG;AACnG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAE3D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M,CAAC;AAGvE;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAGpD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAG9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAGlE,wEAAwE;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,yBAAyB,CAAC"}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
/** Storage-provider info and resource CRUD response schemas. */
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
3
|
/** `GET /api/storage` — the storage-provider identity, or the absent sentinel
|
|
4
4
|
* (`present: false`, a 200) when no storage-provider plugin is installed. */
|
|
5
5
|
export declare const storageInfo: z.ZodObject<{
|
|
6
|
+
module: z.ZodNullable<z.ZodString>;
|
|
6
7
|
present: z.ZodBoolean;
|
|
7
8
|
provider: z.ZodNullable<z.ZodString>;
|
|
8
|
-
module: z.ZodNullable<z.ZodString>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type StorageInfo = z.infer<typeof storageInfo>;
|
|
11
11
|
/** `GET /api/storage/resources` — the full sorted resource-id list. */
|
|
12
12
|
export declare const storageResourceList: z.ZodObject<{
|
|
13
13
|
resources: z.ZodArray<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
/** `GET /api/storage/resources/{id}/stat` — an object's inferred content type
|
|
16
|
-
* `null` when the provider cannot infer one (e.g. an unknown suffix). */
|
|
15
|
+
/** `GET /api/storage/resources/{id}/stat` — an object's inferred content type. */
|
|
17
16
|
export declare const storageResourceStat: z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
17
|
content_type: z.ZodNullable<z.ZodString>;
|
|
18
|
+
id: z.ZodString;
|
|
20
19
|
}, z.core.$strip>;
|
|
21
20
|
export type StorageResourceStat = z.infer<typeof storageResourceStat>;
|
|
22
21
|
/** `POST /api/storage/resources` — the stored object's id. */
|
|
23
22
|
export declare const storageResourceStored: z.ZodObject<{
|
|
24
23
|
id: z.ZodString;
|
|
25
|
-
stored: z.
|
|
24
|
+
stored: z.ZodBoolean;
|
|
26
25
|
}, z.core.$strip>;
|
|
27
26
|
/** `DELETE /api/storage/resources/{id}` — the removed object's id. */
|
|
28
27
|
export declare const storageResourceDeleted: z.ZodObject<{
|
|
28
|
+
deleted: z.ZodBoolean;
|
|
29
29
|
id: z.ZodString;
|
|
30
|
-
deleted: z.ZodLiteral<true>;
|
|
31
30
|
}, z.core.$strip>;
|
|
32
31
|
/** `DELETE /api/storage/dirs/{path}` — the removed directory subtree. */
|
|
33
32
|
export declare const storageDirDeleted: z.ZodObject<{
|
|
33
|
+
deleted: z.ZodBoolean;
|
|
34
34
|
dir: z.ZodString;
|
|
35
|
-
deleted: z.ZodLiteral<true>;
|
|
36
35
|
}, z.core.$strip>;
|
|
37
36
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/schemas/storage.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/schemas/storage.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B;6EAC6E;AAC7E,eAAO,MAAM,WAAW;;;;iBAAsB,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,uEAAuE;AACvE,eAAO,MAAM,mBAAmB;;iBAAuB,CAAC;AAExD,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;iBAAuB,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB;;;iBAAyB,CAAC;AAE5D,sEAAsE;AACtE,eAAO,MAAM,sBAAsB;;;iBAA0B,CAAC;AAE9D,yEAAyE;AACzE,eAAO,MAAM,iBAAiB;;;iBAAqB,CAAC"}
|
package/dist/schemas/storage.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import { z } from 'zod';
|
|
1
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
3
2
|
/** `GET /api/storage` — the storage-provider identity, or the absent sentinel
|
|
4
3
|
* (`present: false`, a 200) when no storage-provider plugin is installed. */
|
|
5
|
-
export const storageInfo =
|
|
6
|
-
present: z.boolean(),
|
|
7
|
-
provider: z.string().nullable(),
|
|
8
|
-
module: z.string().nullable(),
|
|
9
|
-
});
|
|
4
|
+
export const storageInfo = openapi.storageInfo;
|
|
10
5
|
/** `GET /api/storage/resources` — the full sorted resource-id list. */
|
|
11
|
-
export const storageResourceList =
|
|
12
|
-
/** `GET /api/storage/resources/{id}/stat` — an object's inferred content type
|
|
13
|
-
|
|
14
|
-
export const storageResourceStat = z.object({
|
|
15
|
-
id: z.string(),
|
|
16
|
-
content_type: z.string().nullable(),
|
|
17
|
-
});
|
|
6
|
+
export const storageResourceList = openapi.resourceList;
|
|
7
|
+
/** `GET /api/storage/resources/{id}/stat` — an object's inferred content type. */
|
|
8
|
+
export const storageResourceStat = openapi.resourceStat;
|
|
18
9
|
/** `POST /api/storage/resources` — the stored object's id. */
|
|
19
|
-
export const storageResourceStored =
|
|
10
|
+
export const storageResourceStored = openapi.resourceStored;
|
|
20
11
|
/** `DELETE /api/storage/resources/{id}` — the removed object's id. */
|
|
21
|
-
export const storageResourceDeleted =
|
|
12
|
+
export const storageResourceDeleted = openapi.resourceDeleted;
|
|
22
13
|
/** `DELETE /api/storage/dirs/{path}` — the removed directory subtree. */
|
|
23
|
-
export const storageDirDeleted =
|
|
14
|
+
export const storageDirDeleted = openapi.dirDeleted;
|
|
24
15
|
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/schemas/storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/schemas/storage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD;6EAC6E;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAG/C,uEAAuE;AACvE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;AAExD,kFAAkF;AAClF,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;AAGxD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;AAE5D,sEAAsE;AACtE,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;AAE9D,yEAAyE;AACzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC"}
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
/** Studio front-end plugin registry response schemas. */
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
/** One installed plugin's manifest plus `mounts`: its own route items and the absolute
|
|
4
|
+
* base each is served under on this deployment (`{item: "/api/<base>"}`). */
|
|
5
|
+
export declare const studioPluginListingEntry: z.ZodObject<{
|
|
6
6
|
api_version: z.ZodNumber;
|
|
7
|
-
entry: z.ZodString;
|
|
8
|
-
integrity: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
9
7
|
contributions: z.ZodObject<{
|
|
10
|
-
|
|
8
|
+
nav_entries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
9
|
pages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
10
|
+
route_panels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
11
|
settings_tabs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13
|
-
|
|
14
|
-
}, z.core.$
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
tool_panels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
entry: z.ZodString;
|
|
15
|
+
integrity: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
16
|
+
mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
version: z.ZodString;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export declare const studioPluginRegistry: z.ZodArray<z.ZodObject<{
|
|
19
21
|
api_version: z.ZodNumber;
|
|
20
|
-
entry: z.ZodString;
|
|
21
|
-
integrity: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
22
22
|
contributions: z.ZodObject<{
|
|
23
|
-
|
|
23
|
+
nav_entries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
24
|
pages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
route_panels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
26
|
settings_tabs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
|
-
|
|
27
|
-
}, z.core.$
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
tool_panels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
entry: z.ZodString;
|
|
30
|
+
integrity: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
31
|
+
mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
version: z.ZodString;
|
|
34
|
+
}, z.core.$strict>>;
|
|
35
|
+
export type StudioPluginListingEntry = z.infer<typeof studioPluginListingEntry>;
|
|
30
36
|
//# sourceMappingURL=studio-plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"studio-plugins.d.ts","sourceRoot":"","sources":["../../src/schemas/studio-plugins.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"studio-plugins.d.ts","sourceRoot":"","sources":["../../src/schemas/studio-plugins.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B;8EAC8E;AAC9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;kBAAmC,CAAC;AACzE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;mBAA8B,CAAC;AAChE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
api_version: z.number(),
|
|
7
|
-
entry: z.string(),
|
|
8
|
-
integrity: z.record(z.string(), z.string()),
|
|
9
|
-
contributions: z.object({
|
|
10
|
-
tool_panels: z.record(z.string(), z.string()).default({}),
|
|
11
|
-
pages: z.array(z.string()).default([]),
|
|
12
|
-
settings_tabs: z.array(z.string()).default([]),
|
|
13
|
-
// Optional with a default so a manifest without the field still parses; the
|
|
14
|
-
// non-strict object would otherwise SILENTLY STRIP an undeclared field, so a
|
|
15
|
-
// server that serves `nav_entries` would never reach the UI.
|
|
16
|
-
nav_entries: z.array(z.string()).default([]),
|
|
17
|
-
}),
|
|
18
|
-
});
|
|
19
|
-
export const studioPluginRegistry = z.array(studioPluginManifest);
|
|
1
|
+
import * as openapi from '../generated/openapi-schemas';
|
|
2
|
+
/** One installed plugin's manifest plus `mounts`: its own route items and the absolute
|
|
3
|
+
* base each is served under on this deployment (`{item: "/api/<base>"}`). */
|
|
4
|
+
export const studioPluginListingEntry = openapi.studioPluginListingEntry;
|
|
5
|
+
export const studioPluginRegistry = openapi.studioPluginListing;
|
|
20
6
|
//# sourceMappingURL=studio-plugins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"studio-plugins.js","sourceRoot":"","sources":["../../src/schemas/studio-plugins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"studio-plugins.js","sourceRoot":"","sources":["../../src/schemas/studio-plugins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD;8EAC8E;AAC9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/** Sub-MCP mount registry response schemas. */
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
3
|
/**
|
|
4
|
-
* One registered sub-MCP mount as it rides the registry list
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `http`), so it is required — its absence is a drift, not a legal shape.
|
|
4
|
+
* One registered sub-MCP mount as it rides the registry list: the tools it exposes, the
|
|
5
|
+
* transport it serves on, the served `mount_url` (the URL the mount is served at and its
|
|
6
|
+
* route-table key) and the served `access_pattern` (the dynamic route pattern mapping every
|
|
7
|
+
* sub-path of the mount to that key). In `GET /api/sub-mcp` the slug is the map key, so the
|
|
8
|
+
* mount value carries no slug.
|
|
10
9
|
*/
|
|
11
10
|
export declare const subMcpMount: z.ZodObject<{
|
|
11
|
+
access_pattern: z.ZodString;
|
|
12
|
+
mount_url: z.ZodString;
|
|
12
13
|
tools: z.ZodArray<z.ZodString>;
|
|
13
14
|
transport: z.ZodString;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
export type SubMcpMount = z.infer<typeof subMcpMount>;
|
|
16
17
|
export declare const subMcpList: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
|
+
access_pattern: z.ZodString;
|
|
19
|
+
mount_url: z.ZodString;
|
|
17
20
|
tools: z.ZodArray<z.ZodString>;
|
|
18
21
|
transport: z.ZodString;
|
|
19
22
|
}, z.core.$strip>>;
|
|
@@ -23,7 +26,7 @@ export declare const subMcpCreated: z.ZodObject<{
|
|
|
23
26
|
transport: z.ZodString;
|
|
24
27
|
}, z.core.$strip>;
|
|
25
28
|
export declare const subMcpRemoved: z.ZodObject<{
|
|
29
|
+
removed: z.ZodBoolean;
|
|
26
30
|
slug: z.ZodString;
|
|
27
|
-
removed: z.ZodLiteral<true>;
|
|
28
31
|
}, z.core.$strip>;
|
|
29
32
|
//# sourceMappingURL=sub-mcp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sub-mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/sub-mcp.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sub-mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/sub-mcp.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;iBAA6B,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU;;;;;kBAA2B,CAAC;AACnD,eAAO,MAAM,aAAa;;;;iBAAmC,CAAC;AAC9D,eAAO,MAAM,aAAa;;;iBAA8B,CAAC"}
|