@tai42/api-client 20.0.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 +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 +150 -127
- 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 +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 +44 -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 +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 +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
package/dist/client/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Composition root: assembles the per-resource sub-clients into the client. */
|
|
2
2
|
import type { ApiConfig } from '../http';
|
|
3
3
|
export type { AddUrlToScopeBody, ApiKeyBody, ClaimLinkBody, PinRoutePublicBody, RoleCreateBody, RoleUpdateBody, } from './auth-client';
|
|
4
|
-
export type { StartConnectArgs } from './connectors-client';
|
|
4
|
+
export type { AddServerArgs, DiscoverServerTarget, SetProviderClientArgs, StartConnectArgs, } from './connectors-client';
|
|
5
5
|
export type { ConversationMessageSearchQuery, ConversationThreadFilters, ConversationThreadMessageBody, ConversationTranscriptQuery, } from './conversations-client';
|
|
6
6
|
export type { TopicVerifierBody } from './hooks-client';
|
|
7
7
|
export { isSafeApiPath } from './login-client';
|
|
@@ -15,15 +15,14 @@ export type { StorageUploadBody } from './storage-client';
|
|
|
15
15
|
export type { ToolMetaPatch } from './tool-meta-client';
|
|
16
16
|
export type { RunToolArgs, ToolAdminArgs } from './tools-client';
|
|
17
17
|
export type { TriggerLinkCreateBody } from './trigger-links-client';
|
|
18
|
-
export type { WebEntryCodeMintBody } from './web-entry-gate-client';
|
|
19
18
|
export declare function createApiClient(config: ApiConfig): {
|
|
20
19
|
readonly streamInteractions: (signal?: AbortSignal, lastEventId?: string) => Promise<AsyncGenerator<import("..").SseFrame, any, any>>;
|
|
21
20
|
readonly getHealth: (signal?: AbortSignal) => Promise<string>;
|
|
22
21
|
readonly getSystemKinds: (signal?: AbortSignal) => Promise<{
|
|
22
|
+
detail: string;
|
|
23
23
|
kind: string;
|
|
24
|
-
state: "default" | "active" | "off";
|
|
25
24
|
plugin: string | null;
|
|
26
|
-
|
|
25
|
+
state: "default" | "active" | "off";
|
|
27
26
|
}[]>;
|
|
28
27
|
readonly searchMarketplace: (query?: import("./marketplace-client").MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
|
|
29
28
|
listings: {
|
|
@@ -87,7 +86,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
87
86
|
base: string;
|
|
88
87
|
paths: {
|
|
89
88
|
path: string;
|
|
90
|
-
methods: ("GET" | "
|
|
89
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
91
90
|
public: boolean;
|
|
92
91
|
}[];
|
|
93
92
|
} | null | undefined;
|
|
@@ -111,70 +110,120 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
111
110
|
readonly listMarketplaceKinds: (signal?: AbortSignal) => Promise<string[]>;
|
|
112
111
|
readonly listInstalledMarketplacePlugins: (signal?: AbortSignal) => Promise<{
|
|
113
112
|
installed: {
|
|
114
|
-
ref: string;
|
|
115
|
-
version: string;
|
|
116
|
-
source: string;
|
|
117
|
-
delivery: "package" | "descriptor";
|
|
118
|
-
installed_at: string;
|
|
119
|
-
latest: string | null;
|
|
120
|
-
update_available: boolean;
|
|
121
|
-
incompatible_newer: string | null;
|
|
122
|
-
missing_upstream: boolean;
|
|
123
113
|
compat: {
|
|
124
|
-
status: "unknown" | "compatible" | "incompatible";
|
|
125
114
|
reason: string | null;
|
|
115
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
126
116
|
};
|
|
117
|
+
delivery: "package" | "descriptor";
|
|
118
|
+
incompatible_newer: string | null;
|
|
119
|
+
installed_at: string;
|
|
127
120
|
items: {
|
|
128
|
-
name: string;
|
|
129
121
|
kind: string;
|
|
122
|
+
name: string;
|
|
130
123
|
}[];
|
|
124
|
+
latest: string | null;
|
|
125
|
+
missing_upstream: boolean;
|
|
126
|
+
ref: string;
|
|
131
127
|
route_mounts: Record<string, string>;
|
|
128
|
+
source: string;
|
|
129
|
+
update_available: boolean;
|
|
130
|
+
version: string;
|
|
132
131
|
}[];
|
|
133
132
|
}>;
|
|
134
133
|
readonly previewMarketplaceInstall: (body: import("./marketplace-client").MarketplaceInstallPreviewBody, signal?: AbortSignal) => Promise<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
collisions: {
|
|
135
|
+
conflict_owner: string;
|
|
136
|
+
conflict_path: string;
|
|
137
|
+
full_path: string;
|
|
138
138
|
item: string;
|
|
139
|
-
|
|
139
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
140
|
+
}[];
|
|
141
|
+
delivery: "package" | "descriptor";
|
|
142
|
+
items: {
|
|
140
143
|
base: string;
|
|
141
144
|
default_base: string;
|
|
145
|
+
item: string;
|
|
146
|
+
kind: string;
|
|
142
147
|
routes: {
|
|
143
|
-
path: string;
|
|
144
148
|
full_path: string;
|
|
145
|
-
methods: ("GET" | "
|
|
149
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
150
|
+
path: string;
|
|
146
151
|
public: boolean;
|
|
147
152
|
}[];
|
|
148
153
|
}[];
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
missing_env: string[];
|
|
155
|
+
new_public_routes: {
|
|
151
156
|
full_path: string;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
conflict_path: string;
|
|
157
|
+
item: string;
|
|
158
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
155
159
|
}[];
|
|
156
160
|
public_routes: {
|
|
157
|
-
item: string;
|
|
158
161
|
full_path: string;
|
|
159
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
160
|
-
}[];
|
|
161
|
-
new_public_routes: {
|
|
162
162
|
item: string;
|
|
163
|
-
|
|
164
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
163
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
165
164
|
}[];
|
|
166
|
-
|
|
165
|
+
ref: string;
|
|
167
166
|
required_env: {
|
|
168
167
|
name: string;
|
|
169
168
|
secret: boolean;
|
|
170
169
|
}[];
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
requires_public_acceptance: boolean;
|
|
171
|
+
version: string;
|
|
173
172
|
}>;
|
|
174
173
|
readonly installMarketplacePlugin: (body: import("./marketplace-client").MarketplaceInstallBody) => Promise<{
|
|
174
|
+
notes: string[];
|
|
175
|
+
package: string | null;
|
|
176
|
+
pip_output: string | null;
|
|
175
177
|
ref: string;
|
|
178
|
+
reload: {
|
|
179
|
+
awaiting_respawn: {
|
|
180
|
+
keys: string[];
|
|
181
|
+
name: string;
|
|
182
|
+
}[];
|
|
183
|
+
env_keys: number;
|
|
184
|
+
fanout: {
|
|
185
|
+
error: string | null;
|
|
186
|
+
local_only: boolean | null;
|
|
187
|
+
mode: string;
|
|
188
|
+
note: string | null;
|
|
189
|
+
op: string | null;
|
|
190
|
+
reachable: boolean | null;
|
|
191
|
+
results: {
|
|
192
|
+
detail: string | null;
|
|
193
|
+
error: string | null;
|
|
194
|
+
name: string;
|
|
195
|
+
outcome: string;
|
|
196
|
+
payload: unknown;
|
|
197
|
+
}[] | null;
|
|
198
|
+
};
|
|
199
|
+
recycle: {
|
|
200
|
+
fresh: {
|
|
201
|
+
generation: number;
|
|
202
|
+
kind: string;
|
|
203
|
+
name: string;
|
|
204
|
+
}[];
|
|
205
|
+
recycle: {
|
|
206
|
+
detail: string | null;
|
|
207
|
+
generation_before: number;
|
|
208
|
+
kind: string;
|
|
209
|
+
name: string;
|
|
210
|
+
status: string;
|
|
211
|
+
}[];
|
|
212
|
+
recycle_stopped: {
|
|
213
|
+
detail: string;
|
|
214
|
+
kind: string;
|
|
215
|
+
name: string | null;
|
|
216
|
+
} | null;
|
|
217
|
+
} | null;
|
|
218
|
+
status: string;
|
|
219
|
+
};
|
|
220
|
+
routes: {
|
|
221
|
+
full_path: string;
|
|
222
|
+
item: string;
|
|
223
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
224
|
+
public: boolean;
|
|
225
|
+
}[];
|
|
176
226
|
version: string;
|
|
177
|
-
notes: string[];
|
|
178
227
|
advisories: {
|
|
179
228
|
id: number;
|
|
180
229
|
listing: string;
|
|
@@ -184,22 +233,108 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
184
233
|
created_at: string;
|
|
185
234
|
withdrawn_at: string | null;
|
|
186
235
|
}[];
|
|
187
|
-
routes: {
|
|
188
|
-
item: string;
|
|
189
|
-
full_path: string;
|
|
190
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
191
|
-
public: boolean;
|
|
192
|
-
}[];
|
|
193
236
|
}>;
|
|
194
237
|
readonly uninstallMarketplacePlugin: (body: import("./marketplace-client").MarketplaceUninstallBody) => Promise<{
|
|
195
|
-
ref: string;
|
|
196
|
-
uninstalled: true;
|
|
197
238
|
notes: string[];
|
|
239
|
+
ref: string;
|
|
240
|
+
reload: {
|
|
241
|
+
awaiting_respawn: {
|
|
242
|
+
keys: string[];
|
|
243
|
+
name: string;
|
|
244
|
+
}[];
|
|
245
|
+
env_keys: number;
|
|
246
|
+
fanout: {
|
|
247
|
+
error: string | null;
|
|
248
|
+
local_only: boolean | null;
|
|
249
|
+
mode: string;
|
|
250
|
+
note: string | null;
|
|
251
|
+
op: string | null;
|
|
252
|
+
reachable: boolean | null;
|
|
253
|
+
results: {
|
|
254
|
+
detail: string | null;
|
|
255
|
+
error: string | null;
|
|
256
|
+
name: string;
|
|
257
|
+
outcome: string;
|
|
258
|
+
payload: unknown;
|
|
259
|
+
}[] | null;
|
|
260
|
+
};
|
|
261
|
+
recycle: {
|
|
262
|
+
fresh: {
|
|
263
|
+
generation: number;
|
|
264
|
+
kind: string;
|
|
265
|
+
name: string;
|
|
266
|
+
}[];
|
|
267
|
+
recycle: {
|
|
268
|
+
detail: string | null;
|
|
269
|
+
generation_before: number;
|
|
270
|
+
kind: string;
|
|
271
|
+
name: string;
|
|
272
|
+
status: string;
|
|
273
|
+
}[];
|
|
274
|
+
recycle_stopped: {
|
|
275
|
+
detail: string;
|
|
276
|
+
kind: string;
|
|
277
|
+
name: string | null;
|
|
278
|
+
} | null;
|
|
279
|
+
} | null;
|
|
280
|
+
status: string;
|
|
281
|
+
} | null;
|
|
282
|
+
uninstalled: boolean;
|
|
198
283
|
}>;
|
|
199
284
|
readonly updateMarketplacePlugin: (body: import("./marketplace-client").MarketplaceInstallBody) => Promise<{
|
|
285
|
+
notes: string[];
|
|
286
|
+
package: string | null;
|
|
287
|
+
pip_output: string | null;
|
|
200
288
|
ref: string;
|
|
289
|
+
reload: {
|
|
290
|
+
awaiting_respawn: {
|
|
291
|
+
keys: string[];
|
|
292
|
+
name: string;
|
|
293
|
+
}[];
|
|
294
|
+
env_keys: number;
|
|
295
|
+
fanout: {
|
|
296
|
+
error: string | null;
|
|
297
|
+
local_only: boolean | null;
|
|
298
|
+
mode: string;
|
|
299
|
+
note: string | null;
|
|
300
|
+
op: string | null;
|
|
301
|
+
reachable: boolean | null;
|
|
302
|
+
results: {
|
|
303
|
+
detail: string | null;
|
|
304
|
+
error: string | null;
|
|
305
|
+
name: string;
|
|
306
|
+
outcome: string;
|
|
307
|
+
payload: unknown;
|
|
308
|
+
}[] | null;
|
|
309
|
+
};
|
|
310
|
+
recycle: {
|
|
311
|
+
fresh: {
|
|
312
|
+
generation: number;
|
|
313
|
+
kind: string;
|
|
314
|
+
name: string;
|
|
315
|
+
}[];
|
|
316
|
+
recycle: {
|
|
317
|
+
detail: string | null;
|
|
318
|
+
generation_before: number;
|
|
319
|
+
kind: string;
|
|
320
|
+
name: string;
|
|
321
|
+
status: string;
|
|
322
|
+
}[];
|
|
323
|
+
recycle_stopped: {
|
|
324
|
+
detail: string;
|
|
325
|
+
kind: string;
|
|
326
|
+
name: string | null;
|
|
327
|
+
} | null;
|
|
328
|
+
} | null;
|
|
329
|
+
status: string;
|
|
330
|
+
};
|
|
331
|
+
routes: {
|
|
332
|
+
full_path: string;
|
|
333
|
+
item: string;
|
|
334
|
+
methods: ("GET" | "DELETE" | "PATCH" | "POST" | "PUT")[];
|
|
335
|
+
public: boolean;
|
|
336
|
+
}[];
|
|
201
337
|
version: string;
|
|
202
|
-
notes: string[];
|
|
203
338
|
advisories: {
|
|
204
339
|
id: number;
|
|
205
340
|
listing: string;
|
|
@@ -209,21 +344,16 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
209
344
|
created_at: string;
|
|
210
345
|
withdrawn_at: string | null;
|
|
211
346
|
}[];
|
|
212
|
-
routes: {
|
|
213
|
-
item: string;
|
|
214
|
-
full_path: string;
|
|
215
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
216
|
-
public: boolean;
|
|
217
|
-
}[];
|
|
218
347
|
}>;
|
|
219
348
|
readonly upgradeAllMarketplacePlugins: () => Promise<{
|
|
220
349
|
results: {
|
|
221
|
-
ref: string;
|
|
222
|
-
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
223
350
|
detail: string;
|
|
351
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
352
|
+
ref: string;
|
|
224
353
|
}[];
|
|
225
354
|
}>;
|
|
226
355
|
readonly getMarketplaceAdvisories: (signal?: AbortSignal) => Promise<{
|
|
356
|
+
fetched_at: string;
|
|
227
357
|
advisories: {
|
|
228
358
|
id: number;
|
|
229
359
|
listing: string;
|
|
@@ -233,89 +363,142 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
233
363
|
created_at: string;
|
|
234
364
|
withdrawn_at: string | null;
|
|
235
365
|
}[];
|
|
236
|
-
fetched_at: string;
|
|
237
366
|
}>;
|
|
238
367
|
readonly getObservabilityMetrics: (params?: import("./observability-client").MetricsQuery, signal?: AbortSignal) => Promise<{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
368
|
+
byModel: {
|
|
369
|
+
avgLatencyMs: number;
|
|
370
|
+
calls: number;
|
|
371
|
+
cost: number;
|
|
372
|
+
model: string;
|
|
242
373
|
totalTokens: number;
|
|
374
|
+
}[];
|
|
375
|
+
byModelAvailable: boolean;
|
|
376
|
+
granularity: "hour" | "day" | "week";
|
|
377
|
+
summary: {
|
|
243
378
|
averageLatencyMs: number;
|
|
244
379
|
avgCostPerRun: number;
|
|
245
380
|
avgTokensPerRun: number;
|
|
246
381
|
timeToFirstTokenMs: number | null;
|
|
382
|
+
totalCost: number;
|
|
383
|
+
totalRuns: number;
|
|
384
|
+
totalTokens: number;
|
|
247
385
|
};
|
|
248
386
|
timeSeries: {
|
|
249
|
-
bucket: string | null;
|
|
250
|
-
runs: number;
|
|
251
|
-
cost: number;
|
|
252
387
|
avgLatencyMs: number;
|
|
253
|
-
|
|
254
|
-
}[];
|
|
255
|
-
byModel: {
|
|
256
|
-
model: string;
|
|
257
|
-
calls: number;
|
|
388
|
+
bucket: string | null;
|
|
258
389
|
cost: number;
|
|
390
|
+
runs: number;
|
|
259
391
|
totalTokens: number;
|
|
260
|
-
avgLatencyMs: number;
|
|
261
392
|
}[];
|
|
262
|
-
byModelAvailable: boolean;
|
|
263
|
-
granularity: "hour" | "day" | "week";
|
|
264
393
|
}>;
|
|
265
394
|
readonly listRuns: (params?: import("./observability-client").RunsQuery, signal?: AbortSignal) => Promise<{
|
|
266
395
|
items: {
|
|
267
|
-
id: string;
|
|
268
|
-
traceId: string;
|
|
269
|
-
createdAt: string | null;
|
|
270
|
-
tags: string[];
|
|
271
|
-
status: "error" | "success";
|
|
272
396
|
cost: number | null;
|
|
273
|
-
|
|
274
|
-
|
|
397
|
+
createdAt: string | null;
|
|
398
|
+
id: string;
|
|
275
399
|
inputPreview: unknown;
|
|
400
|
+
latencyMs: number | null;
|
|
276
401
|
outputPreview: unknown;
|
|
402
|
+
status: "error" | "success";
|
|
403
|
+
tags: string[];
|
|
404
|
+
totalTokens: number | null;
|
|
405
|
+
traceId: string;
|
|
277
406
|
}[];
|
|
278
|
-
page: number;
|
|
279
407
|
nextPage: number | null;
|
|
408
|
+
page: number;
|
|
409
|
+
}>;
|
|
410
|
+
readonly getObservabilityCapabilities: (signal?: AbortSignal) => Promise<{
|
|
411
|
+
incompatibleFilters: Record<string, string[]>;
|
|
412
|
+
metrics: {
|
|
413
|
+
dimensions: string[];
|
|
414
|
+
measures: string[];
|
|
415
|
+
};
|
|
416
|
+
pageSizeMax: number;
|
|
417
|
+
sortKeys: ("totalTokens" | "cost" | "createdAt" | "latencyMs")[];
|
|
280
418
|
}>;
|
|
281
419
|
readonly getRunTrace: (traceId: string, signal?: AbortSignal) => Promise<{
|
|
282
|
-
traceId: string;
|
|
283
|
-
timestamp: string | null;
|
|
284
|
-
tags: string[];
|
|
285
|
-
totalCost: number | null;
|
|
286
420
|
input: unknown;
|
|
287
|
-
output: unknown;
|
|
288
421
|
metadata: unknown;
|
|
422
|
+
output: unknown;
|
|
289
423
|
spans: {
|
|
424
|
+
end: string | null;
|
|
290
425
|
id: string;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
type: string | null;
|
|
426
|
+
input: unknown;
|
|
427
|
+
inputTokens: number | null;
|
|
428
|
+
kind: "LLM" | "TOOL" | "CHAIN" | "EVENT" | null;
|
|
295
429
|
level: string | null;
|
|
296
|
-
|
|
430
|
+
metadata: unknown;
|
|
431
|
+
model: string | null;
|
|
432
|
+
name: string | null;
|
|
433
|
+
output: unknown;
|
|
434
|
+
outputTokens: number | null;
|
|
435
|
+
parentId: string | null;
|
|
297
436
|
start: string | null;
|
|
437
|
+
statusMessage: string | null;
|
|
438
|
+
totalTokens: number | null;
|
|
439
|
+
traceId: string | null;
|
|
440
|
+
}[];
|
|
441
|
+
tags: string[];
|
|
442
|
+
timestamp: string | null;
|
|
443
|
+
totalCost: number | null;
|
|
444
|
+
traceId: string;
|
|
445
|
+
}>;
|
|
446
|
+
readonly getRunTraceOutline: (traceId: string, signal?: AbortSignal) => Promise<{
|
|
447
|
+
spans: {
|
|
298
448
|
end: string | null;
|
|
299
|
-
|
|
300
|
-
|
|
449
|
+
id: string;
|
|
450
|
+
inputTokens: number | null;
|
|
451
|
+
kind: "LLM" | "TOOL" | "CHAIN" | "EVENT" | null;
|
|
452
|
+
level: string | null;
|
|
301
453
|
metadata: unknown;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
454
|
+
model: string | null;
|
|
455
|
+
name: string | null;
|
|
456
|
+
outputTokens: number | null;
|
|
457
|
+
parentId: string | null;
|
|
458
|
+
start: string | null;
|
|
459
|
+
statusMessage: string | null;
|
|
460
|
+
totalTokens: number | null;
|
|
461
|
+
traceId: string | null;
|
|
305
462
|
}[];
|
|
463
|
+
traceId: string;
|
|
306
464
|
}>;
|
|
307
|
-
readonly
|
|
465
|
+
readonly getResolvedSpanValue: (traceId: string, spanId: string, field: "input" | "output", options?: {
|
|
466
|
+
readonly pointer?: string;
|
|
467
|
+
}, signal?: AbortSignal) => Promise<{
|
|
468
|
+
field: "output" | "input";
|
|
469
|
+
pointer: string;
|
|
470
|
+
spanId: string;
|
|
471
|
+
traceId: string;
|
|
472
|
+
value: unknown;
|
|
473
|
+
}>;
|
|
474
|
+
readonly exportTrace: (traceId: string, options?: {
|
|
475
|
+
readonly resolve?: boolean;
|
|
476
|
+
}, signal?: AbortSignal) => Promise<Blob>;
|
|
308
477
|
readonly exportRuns: (params: import("./observability-client").RunsQuery & {
|
|
309
478
|
format: "csv" | "json";
|
|
310
479
|
}, signal?: AbortSignal) => Promise<Blob>;
|
|
311
480
|
readonly listSchedules: (signal?: AbortSignal) => Promise<{
|
|
312
|
-
|
|
481
|
+
cadence: {
|
|
482
|
+
day_of_month: string;
|
|
483
|
+
day_of_week: string;
|
|
484
|
+
hour: string;
|
|
485
|
+
kind: "crontab";
|
|
486
|
+
minute: string;
|
|
487
|
+
month_of_year: string;
|
|
488
|
+
} | {
|
|
489
|
+
every: number;
|
|
490
|
+
kind: "interval";
|
|
491
|
+
relative: boolean;
|
|
492
|
+
};
|
|
493
|
+
enabled: boolean;
|
|
494
|
+
error: {
|
|
495
|
+
at_iso: string | null;
|
|
496
|
+
message: string;
|
|
497
|
+
} | null;
|
|
313
498
|
name: string;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
args?: unknown[] | undefined;
|
|
318
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
499
|
+
next_run_at_iso: string | null;
|
|
500
|
+
next_run_at_ts: number | null;
|
|
501
|
+
tool: string;
|
|
319
502
|
}[]>;
|
|
320
503
|
readonly getServerDateTime: (signal?: AbortSignal) => Promise<{
|
|
321
504
|
[x: string]: unknown;
|
|
@@ -323,17 +506,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
323
506
|
local?: unknown;
|
|
324
507
|
system?: unknown;
|
|
325
508
|
}>;
|
|
326
|
-
readonly addSchedule: (body:
|
|
327
|
-
tool_name: string;
|
|
328
|
-
tool_kwargs: Record<string, unknown>;
|
|
329
|
-
schedule_kwargs: Record<string, unknown>;
|
|
330
|
-
execution_key?: string | null;
|
|
331
|
-
state_binding?: import("..").StateBinding | null;
|
|
332
|
-
start_expr?: import("..").TemplatedText | null;
|
|
333
|
-
cancel_expr?: import("..").TemplatedText | null;
|
|
334
|
-
resume_expr?: import("..").TemplatedText | null;
|
|
335
|
-
extras_expr?: import("..").TemplatedText | null;
|
|
336
|
-
}) => Promise<unknown>;
|
|
509
|
+
readonly addSchedule: (body: import("..").ScheduleCreate) => Promise<unknown>;
|
|
337
510
|
readonly deleteSchedule: (name: string) => Promise<unknown>;
|
|
338
511
|
readonly listBackupSections: (signal?: AbortSignal) => Promise<{
|
|
339
512
|
name: string;
|
|
@@ -346,45 +519,71 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
346
519
|
}) => Promise<{
|
|
347
520
|
ok: boolean;
|
|
348
521
|
sections: Record<string, {
|
|
522
|
+
awaiting_respawn: {
|
|
523
|
+
keys: string[];
|
|
524
|
+
name: string;
|
|
525
|
+
}[];
|
|
349
526
|
created: number;
|
|
350
|
-
updated: number;
|
|
351
|
-
skipped: number;
|
|
352
527
|
errors: string[];
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}[] | undefined;
|
|
358
|
-
fanout?: {
|
|
359
|
-
mode: "local-only";
|
|
360
|
-
note: string;
|
|
361
|
-
} | {
|
|
362
|
-
op: string;
|
|
363
|
-
reachable: boolean;
|
|
364
|
-
local_only: boolean;
|
|
365
|
-
results: {
|
|
528
|
+
recycle: {
|
|
529
|
+
fresh: {
|
|
530
|
+
generation: number;
|
|
531
|
+
kind: string;
|
|
366
532
|
name: string;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
error: string | null;
|
|
533
|
+
}[];
|
|
534
|
+
recycle: {
|
|
370
535
|
detail: string | null;
|
|
536
|
+
generation_before: number;
|
|
537
|
+
kind: string;
|
|
538
|
+
name: string;
|
|
539
|
+
status: string;
|
|
371
540
|
}[];
|
|
541
|
+
recycle_stopped: {
|
|
542
|
+
detail: string;
|
|
543
|
+
kind: string;
|
|
544
|
+
name: string | null;
|
|
545
|
+
} | null;
|
|
546
|
+
} | null;
|
|
547
|
+
skipped: number;
|
|
548
|
+
updated: number;
|
|
549
|
+
fanout: {
|
|
550
|
+
mode: "local-only";
|
|
551
|
+
note: string;
|
|
552
|
+
} | {
|
|
372
553
|
error: string | null;
|
|
554
|
+
local_only: boolean;
|
|
555
|
+
op: string;
|
|
556
|
+
reachable: boolean;
|
|
557
|
+
results: {
|
|
558
|
+
detail: string | null;
|
|
559
|
+
error: string | null;
|
|
560
|
+
name: string;
|
|
561
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
562
|
+
payload: unknown;
|
|
563
|
+
}[];
|
|
373
564
|
mode: "fleet";
|
|
374
565
|
} | {
|
|
566
|
+
error: string | null;
|
|
567
|
+
local_only: boolean;
|
|
375
568
|
op: string;
|
|
376
569
|
reachable: boolean;
|
|
377
|
-
local_only: boolean;
|
|
378
570
|
results: {
|
|
571
|
+
detail: string | null;
|
|
572
|
+
error: string | null;
|
|
379
573
|
name: string;
|
|
380
|
-
outcome: "
|
|
574
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
381
575
|
payload: unknown;
|
|
382
|
-
error: string | null;
|
|
383
|
-
detail: string | null;
|
|
384
576
|
}[];
|
|
385
|
-
error: string | null;
|
|
386
577
|
mode: "unreachable";
|
|
387
|
-
} |
|
|
578
|
+
} | null;
|
|
579
|
+
details: {
|
|
580
|
+
[x: string]: unknown;
|
|
581
|
+
new_api_keys?: {
|
|
582
|
+
user_id: string;
|
|
583
|
+
description: string;
|
|
584
|
+
api_key: string;
|
|
585
|
+
}[] | undefined;
|
|
586
|
+
};
|
|
388
587
|
}>;
|
|
389
588
|
}>;
|
|
390
589
|
readonly validateCondition: (body: import("./policy-client").ValidateConditionBody) => Promise<{
|
|
@@ -392,6 +591,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
392
591
|
result: boolean | null;
|
|
393
592
|
}>;
|
|
394
593
|
readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
|
|
594
|
+
created_at: string;
|
|
595
|
+
is_current: boolean;
|
|
596
|
+
tags: string[];
|
|
395
597
|
version: number;
|
|
396
598
|
body: {
|
|
397
599
|
condition: {
|
|
@@ -402,13 +604,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
402
604
|
policy_data: Record<string, unknown>;
|
|
403
605
|
scopes: string[];
|
|
404
606
|
};
|
|
405
|
-
tags: string[];
|
|
406
|
-
created_at: string;
|
|
407
|
-
is_current: boolean;
|
|
408
607
|
}[]>;
|
|
409
608
|
readonly rollbackPolicy: (userId: string, version: number) => Promise<{
|
|
410
|
-
user_id: string;
|
|
411
609
|
active_version: number;
|
|
610
|
+
user_id: string;
|
|
412
611
|
}>;
|
|
413
612
|
readonly logout: () => Promise<{
|
|
414
613
|
revoked: boolean;
|
|
@@ -416,36 +615,37 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
416
615
|
readonly getAuthCapabilities: (signal?: AbortSignal) => Promise<{
|
|
417
616
|
mintable: boolean;
|
|
418
617
|
providers: {
|
|
419
|
-
name: string;
|
|
420
618
|
mintable: boolean;
|
|
619
|
+
name: string;
|
|
421
620
|
}[];
|
|
422
621
|
}>;
|
|
423
622
|
readonly getLoginMethods: (options?: {
|
|
424
623
|
signal?: AbortSignal;
|
|
425
624
|
}) => Promise<{
|
|
625
|
+
claim_fragment_key: string;
|
|
426
626
|
methods: ({
|
|
427
|
-
|
|
627
|
+
href: string;
|
|
628
|
+
icon: string | null;
|
|
428
629
|
id: string;
|
|
429
|
-
|
|
430
|
-
|
|
630
|
+
label: string;
|
|
631
|
+
shape: "button";
|
|
632
|
+
} | {
|
|
431
633
|
fields: {
|
|
432
|
-
|
|
634
|
+
autocomplete: string | null;
|
|
433
635
|
label: string;
|
|
636
|
+
name: string;
|
|
434
637
|
secret: boolean;
|
|
435
|
-
autocomplete?: string | undefined;
|
|
436
638
|
}[];
|
|
437
|
-
submit_path: string;
|
|
438
|
-
} | {
|
|
439
|
-
shape: "button";
|
|
440
639
|
id: string;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
640
|
+
purpose: "login" | "invite";
|
|
641
|
+
shape: "form";
|
|
642
|
+
submit_path: string;
|
|
643
|
+
title: string;
|
|
444
644
|
})[];
|
|
445
645
|
needs_setup: boolean;
|
|
446
|
-
setup_login
|
|
646
|
+
setup_login: {
|
|
447
647
|
kinds: ("invite" | "password")[];
|
|
448
|
-
} | null
|
|
648
|
+
} | null;
|
|
449
649
|
}>;
|
|
450
650
|
readonly submitLoginForm: (path: string, values: Record<string, string>) => Promise<{
|
|
451
651
|
token: string;
|
|
@@ -462,69 +662,149 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
462
662
|
user_id: string;
|
|
463
663
|
}>;
|
|
464
664
|
readonly submitSetup: (body: import("..").SetupBody) => Promise<{
|
|
465
|
-
owner_user_id: string;
|
|
466
|
-
key_user_id: string;
|
|
467
665
|
api_key: string;
|
|
666
|
+
invite_token: string | null;
|
|
468
667
|
key_fingerprint: string;
|
|
668
|
+
key_user_id: string;
|
|
469
669
|
login_attached: boolean;
|
|
470
|
-
|
|
471
|
-
|
|
670
|
+
login_path: string | null;
|
|
671
|
+
owner_user_id: string;
|
|
472
672
|
}>;
|
|
473
673
|
readonly getMe: (signal?: AbortSignal) => Promise<{
|
|
474
|
-
user_id: string;
|
|
475
|
-
owner_user_id: string | null;
|
|
476
674
|
admin: boolean;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
675
|
+
agents: string[];
|
|
676
|
+
mintable: boolean;
|
|
677
|
+
owner_user_id: string | null;
|
|
678
|
+
principal: {
|
|
679
|
+
display_name: string;
|
|
680
|
+
kind: "human" | "service";
|
|
681
|
+
user_id: string;
|
|
682
|
+
} | null;
|
|
683
|
+
public_resource_id: string;
|
|
482
684
|
route_patterns: {
|
|
685
|
+
open_prefix: string | null;
|
|
483
686
|
pattern: string;
|
|
484
687
|
scope_id: string;
|
|
485
688
|
}[];
|
|
689
|
+
routes: {
|
|
690
|
+
methods: string[];
|
|
691
|
+
path: string;
|
|
692
|
+
}[];
|
|
693
|
+
scopes: string[];
|
|
486
694
|
sub_mcp: {
|
|
695
|
+
access_pattern: string;
|
|
696
|
+
mount_url: string;
|
|
697
|
+
slug: string;
|
|
487
698
|
tools: string[];
|
|
488
699
|
transport: string;
|
|
489
|
-
slug: string;
|
|
490
700
|
}[];
|
|
491
701
|
tools: string[];
|
|
492
|
-
|
|
493
|
-
mintable: boolean;
|
|
494
|
-
principal?: {
|
|
495
|
-
user_id: string;
|
|
496
|
-
kind: "human" | "service";
|
|
497
|
-
display_name: string;
|
|
498
|
-
} | null | undefined;
|
|
702
|
+
user_id: string;
|
|
499
703
|
}>;
|
|
500
|
-
readonly
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
704
|
+
readonly listPrincipals: (signal?: AbortSignal) => Promise<{
|
|
705
|
+
created_at: string;
|
|
706
|
+
created_by: string | null;
|
|
707
|
+
disabled: boolean;
|
|
708
|
+
display_name: string;
|
|
709
|
+
kind: "human" | "service";
|
|
710
|
+
user_id: string;
|
|
711
|
+
}[]>;
|
|
712
|
+
readonly createPrincipal: (body: {
|
|
713
|
+
user_id?: string;
|
|
714
|
+
kind: import("..").PrincipalKind;
|
|
715
|
+
display_name: string;
|
|
716
|
+
role: string;
|
|
717
|
+
}) => Promise<{
|
|
718
|
+
created_at: string;
|
|
719
|
+
created_by: string | null;
|
|
720
|
+
disabled: boolean;
|
|
721
|
+
display_name: string;
|
|
722
|
+
kind: "human" | "service";
|
|
723
|
+
user_id: string;
|
|
504
724
|
}>;
|
|
505
|
-
readonly
|
|
506
|
-
|
|
725
|
+
readonly updatePrincipal: (userId: string, body: {
|
|
726
|
+
display_name?: string;
|
|
727
|
+
disabled?: boolean;
|
|
507
728
|
}) => Promise<{
|
|
508
|
-
|
|
729
|
+
created_at: string;
|
|
730
|
+
created_by: string | null;
|
|
731
|
+
disabled: boolean;
|
|
732
|
+
display_name: string;
|
|
733
|
+
kind: "human" | "service";
|
|
734
|
+
user_id: string;
|
|
509
735
|
}>;
|
|
510
|
-
readonly
|
|
511
|
-
|
|
512
|
-
|
|
736
|
+
readonly deletePrincipal: (userId: string) => Promise<{
|
|
737
|
+
deleted: boolean;
|
|
738
|
+
user_id: string;
|
|
513
739
|
}>;
|
|
514
|
-
readonly
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
740
|
+
readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
|
|
741
|
+
condition: {
|
|
742
|
+
content?: string | undefined;
|
|
743
|
+
id?: string | undefined;
|
|
744
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
745
|
+
} | null;
|
|
746
|
+
description: string;
|
|
747
|
+
orphaned: boolean;
|
|
748
|
+
policy_data: Record<string, unknown> | null;
|
|
749
|
+
principal: {
|
|
750
|
+
display_name: string;
|
|
751
|
+
kind: "human" | "service";
|
|
752
|
+
user_id: string;
|
|
753
|
+
} | null;
|
|
754
|
+
scopes: string[] | null;
|
|
755
|
+
user_id: string;
|
|
521
756
|
}[]>;
|
|
522
|
-
readonly
|
|
523
|
-
readonly
|
|
524
|
-
|
|
757
|
+
readonly createApiKey: (body: import("./auth-client").ApiKeyBody) => Promise<string>;
|
|
758
|
+
readonly editApiKey: (userId: string, body: Omit<import("./auth-client").ApiKeyBody, "user_id">) => Promise<{
|
|
759
|
+
updated: boolean;
|
|
760
|
+
user_id: string;
|
|
525
761
|
}>;
|
|
526
|
-
readonly
|
|
527
|
-
|
|
762
|
+
readonly revokeApiKey: (userId: string) => Promise<{
|
|
763
|
+
revoked: boolean;
|
|
764
|
+
user_id: string;
|
|
765
|
+
}>;
|
|
766
|
+
readonly createClaimLink: (body: import("./auth-client").ClaimLinkBody) => Promise<{
|
|
767
|
+
claim_path: string;
|
|
768
|
+
expires_at: string;
|
|
769
|
+
token: string;
|
|
770
|
+
}>;
|
|
771
|
+
readonly listMembers: (signal?: AbortSignal) => Promise<{
|
|
772
|
+
invites: {
|
|
773
|
+
action_keys: string[];
|
|
774
|
+
created_at: string;
|
|
775
|
+
email: string;
|
|
776
|
+
expires_at: string;
|
|
777
|
+
handle: string;
|
|
778
|
+
id: string;
|
|
779
|
+
role: string | null;
|
|
780
|
+
}[];
|
|
781
|
+
members: {
|
|
782
|
+
action_keys: string[];
|
|
783
|
+
created_at: string;
|
|
784
|
+
disabled: boolean;
|
|
785
|
+
email: string;
|
|
786
|
+
handle: string;
|
|
787
|
+
id: string;
|
|
788
|
+
principals: {
|
|
789
|
+
disabled: boolean;
|
|
790
|
+
role: string | null;
|
|
791
|
+
user_id: string;
|
|
792
|
+
}[];
|
|
793
|
+
role: string | null;
|
|
794
|
+
}[];
|
|
795
|
+
}>;
|
|
796
|
+
readonly listMemberActions: (signal?: AbortSignal) => Promise<{
|
|
797
|
+
actions: {
|
|
798
|
+
destructive: boolean;
|
|
799
|
+
input_schema: Record<string, unknown>;
|
|
800
|
+
key: string;
|
|
801
|
+
label: string;
|
|
802
|
+
result_schema: Record<string, unknown>;
|
|
803
|
+
scope: "page" | "member_row" | "invite_row";
|
|
804
|
+
}[];
|
|
805
|
+
}>;
|
|
806
|
+
readonly invokeMemberAction: (body: import("./auth-client").InvokeMemberActionBody) => Promise<{
|
|
807
|
+
result: Record<string, unknown>;
|
|
528
808
|
}>;
|
|
529
809
|
readonly listRoles: (signal?: AbortSignal) => Promise<{
|
|
530
810
|
allow_all: boolean;
|
|
@@ -566,163 +846,89 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
566
846
|
scopes: string[];
|
|
567
847
|
}>;
|
|
568
848
|
readonly deleteRole: (name: string) => Promise<{
|
|
569
|
-
name: string;
|
|
570
849
|
deleted: boolean;
|
|
850
|
+
name: string;
|
|
571
851
|
}>;
|
|
572
852
|
readonly listRoleVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
573
853
|
versions: {
|
|
574
|
-
version: number;
|
|
575
|
-
body: {
|
|
576
|
-
allow_all: boolean;
|
|
577
|
-
base_tier: string | null;
|
|
578
|
-
condition: {
|
|
579
|
-
content?: string | undefined;
|
|
580
|
-
id?: string | undefined;
|
|
581
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
582
|
-
} | null;
|
|
583
|
-
description: string;
|
|
584
|
-
grants: Record<string, "none" | "read" | "write">;
|
|
585
|
-
name: string;
|
|
586
|
-
scopes: string[];
|
|
587
|
-
};
|
|
588
|
-
tags: string[];
|
|
589
854
|
created_at: string;
|
|
590
855
|
is_current: boolean;
|
|
591
|
-
|
|
592
|
-
audit: {
|
|
856
|
+
tags: string[];
|
|
593
857
|
version: number;
|
|
594
858
|
body: {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
base_tier: string | null;
|
|
608
|
-
condition: {
|
|
609
|
-
content?: string | undefined;
|
|
610
|
-
id?: string | undefined;
|
|
611
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
612
|
-
} | null;
|
|
613
|
-
description: string;
|
|
614
|
-
grants: Record<string, "none" | "read" | "write">;
|
|
615
|
-
name: string;
|
|
616
|
-
scopes: string[];
|
|
617
|
-
}>;
|
|
618
|
-
readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
|
|
619
|
-
user_id: string;
|
|
620
|
-
description: string;
|
|
621
|
-
scopes: string[];
|
|
622
|
-
policy_data: unknown;
|
|
623
|
-
condition?: {
|
|
624
|
-
content?: string | undefined;
|
|
625
|
-
id?: string | undefined;
|
|
626
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
627
|
-
} | null | undefined;
|
|
628
|
-
principal?: {
|
|
629
|
-
user_id: string;
|
|
630
|
-
kind: "human" | "service";
|
|
631
|
-
display_name: string;
|
|
632
|
-
} | null | undefined;
|
|
633
|
-
orphaned?: boolean | undefined;
|
|
634
|
-
}[]>;
|
|
635
|
-
readonly createApiKey: (body: import("./auth-client").ApiKeyBody) => Promise<string>;
|
|
636
|
-
readonly editApiKey: (userId: string, body: Omit<import("./auth-client").ApiKeyBody, "user_id">) => Promise<{
|
|
637
|
-
user_id: string;
|
|
638
|
-
updated: boolean;
|
|
639
|
-
}>;
|
|
640
|
-
readonly revokeApiKey: (userId: string) => Promise<{
|
|
641
|
-
user_id: string;
|
|
642
|
-
revoked: boolean;
|
|
643
|
-
}>;
|
|
644
|
-
readonly createClaimLink: (body: import("./auth-client").ClaimLinkBody) => Promise<{
|
|
645
|
-
claim_path: string;
|
|
646
|
-
token: string;
|
|
647
|
-
expires_at: string;
|
|
648
|
-
}>;
|
|
649
|
-
readonly listMembers: (signal?: AbortSignal) => Promise<{
|
|
650
|
-
members: {
|
|
651
|
-
id: string;
|
|
652
|
-
email: string;
|
|
653
|
-
role: string;
|
|
654
|
-
created_at: string;
|
|
655
|
-
principals: {
|
|
656
|
-
user_id: string;
|
|
657
|
-
disabled: boolean;
|
|
658
|
-
}[];
|
|
659
|
-
disabled: boolean;
|
|
660
|
-
handle: string;
|
|
661
|
-
action_keys: string[];
|
|
859
|
+
allow_all: boolean;
|
|
860
|
+
base_tier: string | null;
|
|
861
|
+
condition: {
|
|
862
|
+
content?: string | undefined;
|
|
863
|
+
id?: string | undefined;
|
|
864
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
865
|
+
} | null;
|
|
866
|
+
description: string;
|
|
867
|
+
grants: Record<string, "none" | "read" | "write">;
|
|
868
|
+
name: string;
|
|
869
|
+
scopes: string[];
|
|
870
|
+
};
|
|
662
871
|
}[];
|
|
663
|
-
|
|
664
|
-
id: string;
|
|
665
|
-
email: string;
|
|
666
|
-
role: string;
|
|
872
|
+
audit: {
|
|
667
873
|
created_at: string;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
874
|
+
is_current: boolean;
|
|
875
|
+
tags: string[];
|
|
876
|
+
version: number;
|
|
877
|
+
body: {
|
|
878
|
+
action: string;
|
|
879
|
+
actor: string | null;
|
|
880
|
+
before: unknown;
|
|
881
|
+
after: unknown;
|
|
882
|
+
};
|
|
671
883
|
}[];
|
|
672
884
|
}>;
|
|
673
|
-
readonly
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
885
|
+
readonly rollbackRole: (name: string, version: number) => Promise<{
|
|
886
|
+
allow_all: boolean;
|
|
887
|
+
base_tier: string | null;
|
|
888
|
+
condition: {
|
|
889
|
+
content?: string | undefined;
|
|
890
|
+
id?: string | undefined;
|
|
891
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
892
|
+
} | null;
|
|
893
|
+
description: string;
|
|
894
|
+
grants: Record<string, "none" | "read" | "write">;
|
|
895
|
+
name: string;
|
|
896
|
+
scopes: string[];
|
|
682
897
|
}>;
|
|
683
|
-
readonly
|
|
684
|
-
|
|
898
|
+
readonly listScopes: (signal?: AbortSignal) => Promise<Record<string, string>>;
|
|
899
|
+
readonly addUrlToScope: (body: import("./auth-client").AddUrlToScopeBody) => Promise<{
|
|
900
|
+
scope_id: string;
|
|
901
|
+
url: string;
|
|
685
902
|
}>;
|
|
686
|
-
readonly
|
|
687
|
-
|
|
688
|
-
kind: "human" | "service";
|
|
689
|
-
display_name: string;
|
|
690
|
-
created_by: string | null;
|
|
691
|
-
disabled: boolean;
|
|
692
|
-
created_at: string;
|
|
693
|
-
}[]>;
|
|
694
|
-
readonly createPrincipal: (body: {
|
|
695
|
-
user_id?: string;
|
|
696
|
-
kind: "human" | "service";
|
|
697
|
-
display_name: string;
|
|
698
|
-
role: string;
|
|
903
|
+
readonly removeUrlFromScope: (body: {
|
|
904
|
+
url: string;
|
|
699
905
|
}) => Promise<{
|
|
700
|
-
|
|
701
|
-
kind: "human" | "service";
|
|
702
|
-
display_name: string;
|
|
703
|
-
created_by: string | null;
|
|
704
|
-
disabled: boolean;
|
|
705
|
-
created_at: string;
|
|
906
|
+
url: string;
|
|
706
907
|
}>;
|
|
707
|
-
readonly
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}) => Promise<{
|
|
711
|
-
user_id: string;
|
|
712
|
-
kind: "human" | "service";
|
|
713
|
-
display_name: string;
|
|
714
|
-
created_by: string | null;
|
|
715
|
-
disabled: boolean;
|
|
716
|
-
created_at: string;
|
|
908
|
+
readonly removeScope: (scopeId: string) => Promise<{
|
|
909
|
+
deleted_keys: number;
|
|
910
|
+
scope_id: string;
|
|
717
911
|
}>;
|
|
718
|
-
readonly
|
|
719
|
-
|
|
720
|
-
|
|
912
|
+
readonly listAuthRoutes: (signal?: AbortSignal) => Promise<{
|
|
913
|
+
action: "read" | "write" | "secret" | "fenced" | null;
|
|
914
|
+
declared_public: boolean;
|
|
915
|
+
mapped: string | null;
|
|
916
|
+
methods: string[];
|
|
917
|
+
path: string;
|
|
918
|
+
summary: string;
|
|
919
|
+
tags: string[];
|
|
920
|
+
}[]>;
|
|
921
|
+
readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
|
|
922
|
+
readonly pinRoutePublic: (body: import("./auth-client").PinRoutePublicBody) => Promise<{
|
|
923
|
+
url: string;
|
|
924
|
+
}>;
|
|
925
|
+
readonly unpinPublicRoute: (url: string) => Promise<{
|
|
926
|
+
url: string;
|
|
721
927
|
}>;
|
|
722
928
|
readonly getSettingsSchema: (signal?: AbortSignal) => Promise<{
|
|
723
929
|
groups: {
|
|
724
|
-
name: string;
|
|
725
930
|
module: string;
|
|
931
|
+
name: string;
|
|
726
932
|
qualname: string;
|
|
727
933
|
fields: {
|
|
728
934
|
name: string;
|
|
@@ -740,29 +946,31 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
740
946
|
}>;
|
|
741
947
|
readonly getMcpConfigSchema: (signal?: AbortSignal) => Promise<Record<string, unknown>>;
|
|
742
948
|
readonly createTriggerLink: (body: import("./trigger-links-client").TriggerLinkCreateBody) => Promise<{
|
|
949
|
+
expires_at: string | null;
|
|
743
950
|
name: string;
|
|
744
|
-
trigger_path: string;
|
|
745
951
|
token: string;
|
|
746
952
|
topic: string;
|
|
747
|
-
|
|
953
|
+
trigger_path: string;
|
|
748
954
|
}>;
|
|
749
955
|
readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
|
|
750
956
|
items: {
|
|
751
|
-
name: string;
|
|
752
|
-
topic: string;
|
|
753
|
-
execution_key: string;
|
|
754
|
-
trigger_auth: "token" | "public" | "verifier" | "token+api_key" | "out-of-service";
|
|
755
|
-
tool_kwargs: Record<string, unknown> | null;
|
|
756
|
-
created_by: string | null;
|
|
757
957
|
created_at: string;
|
|
958
|
+
created_by: string | null;
|
|
959
|
+
execution_key: string;
|
|
960
|
+
execution_key_fingerprint: string;
|
|
758
961
|
expires_at: string | null;
|
|
962
|
+
name: string;
|
|
963
|
+
require_api_key: boolean;
|
|
759
964
|
token_hash_prefix: string;
|
|
965
|
+
tool_kwargs: Record<string, unknown> | null;
|
|
966
|
+
topic: string;
|
|
967
|
+
trigger_auth: "token" | "public" | "verifier" | "token+api_key" | "out-of-service";
|
|
760
968
|
}[];
|
|
761
969
|
total: number;
|
|
762
970
|
}>;
|
|
763
971
|
readonly deleteTriggerLink: (name: string) => Promise<{
|
|
764
|
-
removed: boolean;
|
|
765
972
|
name: string;
|
|
973
|
+
removed: boolean;
|
|
766
974
|
}>;
|
|
767
975
|
readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
|
|
768
976
|
items: {
|
|
@@ -852,19 +1060,19 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
852
1060
|
topic: string;
|
|
853
1061
|
}[];
|
|
854
1062
|
total: number;
|
|
1063
|
+
trigger_auth: Record<string, "token" | "public" | "verifier" | "token+api_key" | "out-of-service">;
|
|
855
1064
|
topic_verifiers: Record<string, {
|
|
856
1065
|
verifier: string;
|
|
857
1066
|
config: Record<string, unknown>;
|
|
858
1067
|
}>;
|
|
859
|
-
trigger_auth: Record<string, "token" | "public" | "verifier" | "token+api_key" | "out-of-service">;
|
|
860
1068
|
}>;
|
|
861
1069
|
readonly registerHook: (params: import("..").HookRegister) => Promise<{
|
|
862
|
-
registered: boolean;
|
|
863
1070
|
name: string;
|
|
1071
|
+
registered: boolean;
|
|
864
1072
|
}>;
|
|
865
1073
|
readonly unregisterHook: (name: string) => Promise<{
|
|
866
|
-
removed: boolean;
|
|
867
1074
|
name: string;
|
|
1075
|
+
removed: boolean;
|
|
868
1076
|
}>;
|
|
869
1077
|
readonly listHookVerifiers: (signal?: AbortSignal) => Promise<string[]>;
|
|
870
1078
|
readonly setTopicVerifier: (topic: string, body: import("./hooks-client").TopicVerifierBody) => Promise<{
|
|
@@ -899,51 +1107,67 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
899
1107
|
readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("..").ParsedAgentEvent, any, any>>;
|
|
900
1108
|
readonly listNotifications: (signal?: AbortSignal) => Promise<{
|
|
901
1109
|
notifications: {
|
|
1110
|
+
audience: string | null;
|
|
1111
|
+
created_at: string;
|
|
1112
|
+
footer: string | null;
|
|
1113
|
+
header: {
|
|
1114
|
+
caption: string | null;
|
|
1115
|
+
filename: string | null;
|
|
1116
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1117
|
+
url: string;
|
|
1118
|
+
} | null;
|
|
902
1119
|
id: string;
|
|
1120
|
+
location: {
|
|
1121
|
+
address: string | null;
|
|
1122
|
+
latitude: number;
|
|
1123
|
+
longitude: number;
|
|
1124
|
+
name: string | null;
|
|
1125
|
+
} | null;
|
|
1126
|
+
media: {
|
|
1127
|
+
caption: string | null;
|
|
1128
|
+
filename: string | null;
|
|
1129
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1130
|
+
url: string;
|
|
1131
|
+
}[] | null;
|
|
903
1132
|
message: string;
|
|
1133
|
+
options: ({
|
|
1134
|
+
kind: "link";
|
|
1135
|
+
label: string;
|
|
1136
|
+
url: string;
|
|
1137
|
+
} | {
|
|
1138
|
+
description: string | null;
|
|
1139
|
+
id: string | null;
|
|
1140
|
+
kind: "reply";
|
|
1141
|
+
text: string;
|
|
1142
|
+
})[] | null;
|
|
904
1143
|
recipient: string | null;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
1144
|
+
schema: unknown;
|
|
1145
|
+
sections: {
|
|
1146
|
+
rows: {
|
|
1147
|
+
description: string | null;
|
|
1148
|
+
id: string | null;
|
|
1149
|
+
kind: "reply";
|
|
1150
|
+
text: string;
|
|
1151
|
+
}[];
|
|
1152
|
+
title: string;
|
|
1153
|
+
}[] | null;
|
|
1154
|
+
template: {
|
|
909
1155
|
language: string;
|
|
910
1156
|
name: string;
|
|
911
1157
|
parameters: Record<string, unknown> | null;
|
|
912
|
-
} | null
|
|
913
|
-
options?: string[] | null | undefined;
|
|
914
|
-
}[];
|
|
915
|
-
}>;
|
|
916
|
-
readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
|
|
917
|
-
enabled: boolean;
|
|
918
|
-
codes: {
|
|
919
|
-
code_id: string;
|
|
920
|
-
label: string | null;
|
|
921
|
-
created_at: string;
|
|
922
|
-
expires_at: string | null;
|
|
1158
|
+
} | null;
|
|
923
1159
|
}[];
|
|
924
1160
|
}>;
|
|
925
|
-
readonly setWebEntryGate: (identity: string, enabled: boolean) => Promise<{
|
|
926
|
-
enabled: boolean;
|
|
927
|
-
}>;
|
|
928
|
-
readonly mintWebEntryCode: (identity: string, body: import("./web-entry-gate-client").WebEntryCodeMintBody) => Promise<{
|
|
929
|
-
code: string;
|
|
930
|
-
code_id: string;
|
|
931
|
-
expires_at: string | null;
|
|
932
|
-
}>;
|
|
933
|
-
readonly revokeWebEntryCode: (identity: string, codeId: string) => Promise<{
|
|
934
|
-
status: "revoked";
|
|
935
|
-
}>;
|
|
936
1161
|
readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
|
|
937
|
-
items: {
|
|
938
|
-
callback_secret: string | null;
|
|
1162
|
+
items: ({
|
|
939
1163
|
callback_url: string | null;
|
|
940
1164
|
cancel_expr: {
|
|
941
1165
|
content?: string | undefined;
|
|
942
1166
|
id?: string | undefined;
|
|
943
1167
|
kwargs?: Record<string, unknown> | undefined;
|
|
944
1168
|
} | null;
|
|
945
|
-
channel:
|
|
946
|
-
door: "
|
|
1169
|
+
channel: null;
|
|
1170
|
+
door: "api";
|
|
947
1171
|
error_reply_text: string | null;
|
|
948
1172
|
execution_key: string;
|
|
949
1173
|
execution_key_fingerprint: string;
|
|
@@ -954,7 +1178,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
954
1178
|
} | null;
|
|
955
1179
|
initial_mode: "agent" | "manual";
|
|
956
1180
|
locale: string | null;
|
|
957
|
-
our_identity:
|
|
1181
|
+
our_identity: null;
|
|
958
1182
|
overlap: {
|
|
959
1183
|
deliver: "one" | "all";
|
|
960
1184
|
running: "continue" | "cancel";
|
|
@@ -979,22 +1203,66 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
979
1203
|
target_kind: "tool" | "agent";
|
|
980
1204
|
target_name: string;
|
|
981
1205
|
turns_per_hour_override: number | null;
|
|
982
|
-
}
|
|
1206
|
+
} | {
|
|
1207
|
+
callback_url: null;
|
|
1208
|
+
cancel_expr: {
|
|
1209
|
+
content?: string | undefined;
|
|
1210
|
+
id?: string | undefined;
|
|
1211
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1212
|
+
} | null;
|
|
1213
|
+
channel: string;
|
|
1214
|
+
door: "channel";
|
|
1215
|
+
error_reply_text: string | null;
|
|
1216
|
+
execution_key: string;
|
|
1217
|
+
execution_key_fingerprint: string;
|
|
1218
|
+
extras_expr: {
|
|
1219
|
+
content?: string | undefined;
|
|
1220
|
+
id?: string | undefined;
|
|
1221
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1222
|
+
} | null;
|
|
1223
|
+
initial_mode: "agent" | "manual";
|
|
1224
|
+
locale: string | null;
|
|
1225
|
+
our_identity: string;
|
|
1226
|
+
overlap: {
|
|
1227
|
+
deliver: "one" | "all";
|
|
1228
|
+
running: "continue" | "cancel";
|
|
1229
|
+
settle_seconds: number;
|
|
1230
|
+
};
|
|
1231
|
+
reply_expr: {
|
|
1232
|
+
content?: string | undefined;
|
|
1233
|
+
id?: string | undefined;
|
|
1234
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1235
|
+
} | null;
|
|
1236
|
+
resume_expr: {
|
|
1237
|
+
content?: string | undefined;
|
|
1238
|
+
id?: string | undefined;
|
|
1239
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1240
|
+
} | null;
|
|
1241
|
+
route_name: string;
|
|
1242
|
+
start_expr: {
|
|
1243
|
+
content?: string | undefined;
|
|
1244
|
+
id?: string | undefined;
|
|
1245
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1246
|
+
} | null;
|
|
1247
|
+
target_kind: "tool" | "agent";
|
|
1248
|
+
target_name: string;
|
|
1249
|
+
turns_per_hour_override: number | null;
|
|
1250
|
+
})[];
|
|
983
1251
|
total: number;
|
|
1252
|
+
unreadable: number;
|
|
984
1253
|
}>;
|
|
985
1254
|
readonly createOrReplaceConversationRoute: (route: import("..").ConversationRouteCreate) => Promise<{
|
|
1255
|
+
callback_secret: string | null;
|
|
986
1256
|
created: boolean;
|
|
987
|
-
route_name: string;
|
|
988
1257
|
route: {
|
|
989
|
-
callback_secret: string | null;
|
|
990
1258
|
callback_url: string | null;
|
|
991
1259
|
cancel_expr: {
|
|
992
1260
|
content?: string | undefined;
|
|
993
1261
|
id?: string | undefined;
|
|
994
1262
|
kwargs?: Record<string, unknown> | undefined;
|
|
995
1263
|
} | null;
|
|
996
|
-
channel:
|
|
997
|
-
door: "
|
|
1264
|
+
channel: null;
|
|
1265
|
+
door: "api";
|
|
998
1266
|
error_reply_text: string | null;
|
|
999
1267
|
execution_key: string;
|
|
1000
1268
|
execution_key_fingerprint: string;
|
|
@@ -1005,7 +1273,51 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1005
1273
|
} | null;
|
|
1006
1274
|
initial_mode: "agent" | "manual";
|
|
1007
1275
|
locale: string | null;
|
|
1008
|
-
our_identity:
|
|
1276
|
+
our_identity: null;
|
|
1277
|
+
overlap: {
|
|
1278
|
+
deliver: "one" | "all";
|
|
1279
|
+
running: "continue" | "cancel";
|
|
1280
|
+
settle_seconds: number;
|
|
1281
|
+
};
|
|
1282
|
+
reply_expr: {
|
|
1283
|
+
content?: string | undefined;
|
|
1284
|
+
id?: string | undefined;
|
|
1285
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1286
|
+
} | null;
|
|
1287
|
+
resume_expr: {
|
|
1288
|
+
content?: string | undefined;
|
|
1289
|
+
id?: string | undefined;
|
|
1290
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1291
|
+
} | null;
|
|
1292
|
+
route_name: string;
|
|
1293
|
+
start_expr: {
|
|
1294
|
+
content?: string | undefined;
|
|
1295
|
+
id?: string | undefined;
|
|
1296
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1297
|
+
} | null;
|
|
1298
|
+
target_kind: "tool" | "agent";
|
|
1299
|
+
target_name: string;
|
|
1300
|
+
turns_per_hour_override: number | null;
|
|
1301
|
+
} | {
|
|
1302
|
+
callback_url: null;
|
|
1303
|
+
cancel_expr: {
|
|
1304
|
+
content?: string | undefined;
|
|
1305
|
+
id?: string | undefined;
|
|
1306
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1307
|
+
} | null;
|
|
1308
|
+
channel: string;
|
|
1309
|
+
door: "channel";
|
|
1310
|
+
error_reply_text: string | null;
|
|
1311
|
+
execution_key: string;
|
|
1312
|
+
execution_key_fingerprint: string;
|
|
1313
|
+
extras_expr: {
|
|
1314
|
+
content?: string | undefined;
|
|
1315
|
+
id?: string | undefined;
|
|
1316
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1317
|
+
} | null;
|
|
1318
|
+
initial_mode: "agent" | "manual";
|
|
1319
|
+
locale: string | null;
|
|
1320
|
+
our_identity: string;
|
|
1009
1321
|
overlap: {
|
|
1010
1322
|
deliver: "one" | "all";
|
|
1011
1323
|
running: "continue" | "cancel";
|
|
@@ -1031,88 +1343,266 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1031
1343
|
target_name: string;
|
|
1032
1344
|
turns_per_hour_override: number | null;
|
|
1033
1345
|
};
|
|
1034
|
-
|
|
1346
|
+
route_name: string;
|
|
1035
1347
|
}>;
|
|
1036
1348
|
readonly deleteConversationRoute: (routeName: string) => Promise<{
|
|
1037
1349
|
removed: boolean;
|
|
1038
1350
|
route_name: string;
|
|
1039
1351
|
}>;
|
|
1040
1352
|
readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: import("./conversations-client").ConversationThreadFilters, signal?: AbortSignal) => Promise<{
|
|
1041
|
-
total: number;
|
|
1042
|
-
page: number;
|
|
1043
|
-
page_size: number;
|
|
1044
|
-
next_page: number | null;
|
|
1045
|
-
truncated: boolean;
|
|
1046
1353
|
items: {
|
|
1047
|
-
thread_id: string;
|
|
1048
1354
|
client_address: string;
|
|
1049
1355
|
last_activity_at: number;
|
|
1356
|
+
last_delivery_status: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed";
|
|
1050
1357
|
message_count: number;
|
|
1051
|
-
|
|
1358
|
+
thread_id: string;
|
|
1052
1359
|
}[];
|
|
1053
|
-
|
|
1054
|
-
readonly readConversationTranscript: (query: import("./conversations-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
|
|
1055
|
-
order: "asc" | "desc";
|
|
1056
|
-
total: number;
|
|
1360
|
+
next_page: number | null;
|
|
1057
1361
|
page: number;
|
|
1058
1362
|
page_size: number;
|
|
1059
|
-
|
|
1363
|
+
total: number;
|
|
1060
1364
|
truncated: boolean;
|
|
1365
|
+
unreadable: number;
|
|
1366
|
+
}>;
|
|
1367
|
+
readonly readConversationTranscript: (query: import("./conversations-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
|
|
1061
1368
|
items: {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1369
|
+
answer: string | null;
|
|
1370
|
+
answer_parts: {
|
|
1371
|
+
data: {
|
|
1372
|
+
options: Record<string, {
|
|
1373
|
+
label: string | null;
|
|
1374
|
+
value: string;
|
|
1375
|
+
}[]>;
|
|
1376
|
+
values: Record<string, unknown>;
|
|
1377
|
+
} | null;
|
|
1378
|
+
footer: string | null;
|
|
1379
|
+
form_tag: string | null;
|
|
1380
|
+
header: {
|
|
1381
|
+
caption: string | null;
|
|
1382
|
+
filename: string | null;
|
|
1383
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1384
|
+
url: string;
|
|
1385
|
+
} | null;
|
|
1386
|
+
location: {
|
|
1387
|
+
address: string | null;
|
|
1388
|
+
latitude: number;
|
|
1389
|
+
longitude: number;
|
|
1390
|
+
name: string | null;
|
|
1391
|
+
} | null;
|
|
1392
|
+
media: {
|
|
1393
|
+
caption: string | null;
|
|
1394
|
+
filename: string | null;
|
|
1395
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1396
|
+
url: string;
|
|
1397
|
+
}[] | null;
|
|
1398
|
+
message: string;
|
|
1399
|
+
options: ({
|
|
1400
|
+
kind: "link";
|
|
1401
|
+
label: string;
|
|
1402
|
+
url: string;
|
|
1403
|
+
} | {
|
|
1404
|
+
description: string | null;
|
|
1405
|
+
id: string | null;
|
|
1406
|
+
kind: "reply";
|
|
1407
|
+
text: string;
|
|
1408
|
+
})[] | null;
|
|
1409
|
+
pages: {
|
|
1410
|
+
display: {
|
|
1411
|
+
alt: string | null;
|
|
1412
|
+
kind: "heading" | "body" | "image";
|
|
1413
|
+
slot: string | null;
|
|
1414
|
+
src: string | null;
|
|
1415
|
+
text: string | null;
|
|
1416
|
+
}[];
|
|
1417
|
+
fields: string[];
|
|
1418
|
+
kind: "input" | "review";
|
|
1419
|
+
title: string;
|
|
1420
|
+
}[] | null;
|
|
1421
|
+
schema: Record<string, unknown> | null;
|
|
1422
|
+
sections: {
|
|
1423
|
+
rows: {
|
|
1424
|
+
description: string | null;
|
|
1425
|
+
id: string | null;
|
|
1426
|
+
kind: "reply";
|
|
1427
|
+
text: string;
|
|
1428
|
+
}[];
|
|
1429
|
+
title: string;
|
|
1430
|
+
}[] | null;
|
|
1431
|
+
template: {
|
|
1432
|
+
language: string;
|
|
1433
|
+
name: string;
|
|
1434
|
+
parameters: Record<string, unknown> | null;
|
|
1435
|
+
} | null;
|
|
1436
|
+
}[] | null;
|
|
1437
|
+
answer_status: "error" | "superseded" | "answered" | "silent" | "merged" | null;
|
|
1438
|
+
attempts: number | null;
|
|
1439
|
+
callback_url: string | null;
|
|
1067
1440
|
caller_principal: string | null;
|
|
1441
|
+
channel: string | null;
|
|
1442
|
+
client_address: string;
|
|
1443
|
+
created_at: number;
|
|
1444
|
+
delivery_status: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed";
|
|
1445
|
+
door: "channel" | "api";
|
|
1446
|
+
error: string | null;
|
|
1447
|
+
inbound_attachments: {
|
|
1448
|
+
caption: string | null;
|
|
1449
|
+
filename: string | null;
|
|
1450
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1451
|
+
url: string;
|
|
1452
|
+
}[] | null;
|
|
1453
|
+
inbound_event: Record<string, unknown> | null;
|
|
1454
|
+
inbound_form: Record<string, unknown> | null;
|
|
1455
|
+
inbound_form_tag: string | null;
|
|
1456
|
+
inbound_kind: "message" | "event";
|
|
1457
|
+
inbound_locale: string | null;
|
|
1458
|
+
inbound_location: {
|
|
1459
|
+
address: string | null;
|
|
1460
|
+
latitude: number;
|
|
1461
|
+
longitude: number;
|
|
1462
|
+
name: string | null;
|
|
1463
|
+
} | null;
|
|
1068
1464
|
inbound_text: string;
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1465
|
+
message_id: string;
|
|
1466
|
+
operator_send: boolean;
|
|
1467
|
+
origin: "operator" | "client";
|
|
1468
|
+
our_identity: string | null;
|
|
1469
|
+
outbound_message_ids: string[] | null;
|
|
1470
|
+
pending_receipt: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | null;
|
|
1471
|
+
provider_message_id: string | null;
|
|
1472
|
+
route_missing: boolean;
|
|
1473
|
+
route_name: string;
|
|
1474
|
+
submitted_by: string | null;
|
|
1072
1475
|
successor_id: string | null;
|
|
1073
|
-
|
|
1074
|
-
delivery_status: "accepted" | "pending_delivery" | "provisional" | "delivered" | "failed" | "shed" | "silent" | "merged" | "superseded";
|
|
1075
|
-
created_at: number;
|
|
1476
|
+
thread_id: string;
|
|
1076
1477
|
updated_at: number;
|
|
1077
|
-
channel?: string | null | undefined;
|
|
1078
|
-
our_identity?: string | null | undefined;
|
|
1079
|
-
provider_message_id?: string | null | undefined;
|
|
1080
|
-
callback_url?: string | null | undefined;
|
|
1081
|
-
error?: string | null | undefined;
|
|
1082
|
-
outbound_message_ids?: string[] | undefined;
|
|
1083
|
-
attempts?: number | undefined;
|
|
1084
1478
|
}[];
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
total: number;
|
|
1479
|
+
next_page: number | null;
|
|
1480
|
+
order: "asc" | "desc";
|
|
1088
1481
|
page: number;
|
|
1089
1482
|
page_size: number;
|
|
1090
|
-
|
|
1483
|
+
person_id: string | null;
|
|
1484
|
+
total: number;
|
|
1091
1485
|
truncated: boolean;
|
|
1486
|
+
unreadable: number;
|
|
1487
|
+
}>;
|
|
1488
|
+
readonly searchConversationMessages: (query: import("./conversations-client").ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
|
|
1092
1489
|
items: {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1490
|
+
answer: string | null;
|
|
1491
|
+
answer_parts: {
|
|
1492
|
+
data: {
|
|
1493
|
+
options: Record<string, {
|
|
1494
|
+
label: string | null;
|
|
1495
|
+
value: string;
|
|
1496
|
+
}[]>;
|
|
1497
|
+
values: Record<string, unknown>;
|
|
1498
|
+
} | null;
|
|
1499
|
+
footer: string | null;
|
|
1500
|
+
form_tag: string | null;
|
|
1501
|
+
header: {
|
|
1502
|
+
caption: string | null;
|
|
1503
|
+
filename: string | null;
|
|
1504
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1505
|
+
url: string;
|
|
1506
|
+
} | null;
|
|
1507
|
+
location: {
|
|
1508
|
+
address: string | null;
|
|
1509
|
+
latitude: number;
|
|
1510
|
+
longitude: number;
|
|
1511
|
+
name: string | null;
|
|
1512
|
+
} | null;
|
|
1513
|
+
media: {
|
|
1514
|
+
caption: string | null;
|
|
1515
|
+
filename: string | null;
|
|
1516
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1517
|
+
url: string;
|
|
1518
|
+
}[] | null;
|
|
1519
|
+
message: string;
|
|
1520
|
+
options: ({
|
|
1521
|
+
kind: "link";
|
|
1522
|
+
label: string;
|
|
1523
|
+
url: string;
|
|
1524
|
+
} | {
|
|
1525
|
+
description: string | null;
|
|
1526
|
+
id: string | null;
|
|
1527
|
+
kind: "reply";
|
|
1528
|
+
text: string;
|
|
1529
|
+
})[] | null;
|
|
1530
|
+
pages: {
|
|
1531
|
+
display: {
|
|
1532
|
+
alt: string | null;
|
|
1533
|
+
kind: "heading" | "body" | "image";
|
|
1534
|
+
slot: string | null;
|
|
1535
|
+
src: string | null;
|
|
1536
|
+
text: string | null;
|
|
1537
|
+
}[];
|
|
1538
|
+
fields: string[];
|
|
1539
|
+
kind: "input" | "review";
|
|
1540
|
+
title: string;
|
|
1541
|
+
}[] | null;
|
|
1542
|
+
schema: Record<string, unknown> | null;
|
|
1543
|
+
sections: {
|
|
1544
|
+
rows: {
|
|
1545
|
+
description: string | null;
|
|
1546
|
+
id: string | null;
|
|
1547
|
+
kind: "reply";
|
|
1548
|
+
text: string;
|
|
1549
|
+
}[];
|
|
1550
|
+
title: string;
|
|
1551
|
+
}[] | null;
|
|
1552
|
+
template: {
|
|
1553
|
+
language: string;
|
|
1554
|
+
name: string;
|
|
1555
|
+
parameters: Record<string, unknown> | null;
|
|
1556
|
+
} | null;
|
|
1557
|
+
}[] | null;
|
|
1558
|
+
answer_status: "error" | "superseded" | "answered" | "silent" | "merged" | null;
|
|
1559
|
+
attempts: number | null;
|
|
1560
|
+
callback_url: string | null;
|
|
1098
1561
|
caller_principal: string | null;
|
|
1562
|
+
channel: string | null;
|
|
1563
|
+
client_address: string;
|
|
1564
|
+
created_at: number;
|
|
1565
|
+
delivery_status: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed";
|
|
1566
|
+
door: "channel" | "api";
|
|
1567
|
+
error: string | null;
|
|
1568
|
+
inbound_attachments: {
|
|
1569
|
+
caption: string | null;
|
|
1570
|
+
filename: string | null;
|
|
1571
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1572
|
+
url: string;
|
|
1573
|
+
}[] | null;
|
|
1574
|
+
inbound_event: Record<string, unknown> | null;
|
|
1575
|
+
inbound_form: Record<string, unknown> | null;
|
|
1576
|
+
inbound_form_tag: string | null;
|
|
1577
|
+
inbound_kind: "message" | "event";
|
|
1578
|
+
inbound_locale: string | null;
|
|
1579
|
+
inbound_location: {
|
|
1580
|
+
address: string | null;
|
|
1581
|
+
latitude: number;
|
|
1582
|
+
longitude: number;
|
|
1583
|
+
name: string | null;
|
|
1584
|
+
} | null;
|
|
1099
1585
|
inbound_text: string;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1586
|
+
message_id: string;
|
|
1587
|
+
operator_send: boolean;
|
|
1588
|
+
origin: "operator" | "client";
|
|
1589
|
+
our_identity: string | null;
|
|
1590
|
+
outbound_message_ids: string[] | null;
|
|
1591
|
+
pending_receipt: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | null;
|
|
1592
|
+
provider_message_id: string | null;
|
|
1593
|
+
route_missing: boolean;
|
|
1594
|
+
route_name: string;
|
|
1595
|
+
submitted_by: string | null;
|
|
1103
1596
|
successor_id: string | null;
|
|
1104
|
-
|
|
1105
|
-
delivery_status: "accepted" | "pending_delivery" | "provisional" | "delivered" | "failed" | "shed" | "silent" | "merged" | "superseded";
|
|
1106
|
-
created_at: number;
|
|
1597
|
+
thread_id: string;
|
|
1107
1598
|
updated_at: number;
|
|
1108
|
-
channel?: string | null | undefined;
|
|
1109
|
-
our_identity?: string | null | undefined;
|
|
1110
|
-
provider_message_id?: string | null | undefined;
|
|
1111
|
-
callback_url?: string | null | undefined;
|
|
1112
|
-
error?: string | null | undefined;
|
|
1113
|
-
outbound_message_ids?: string[] | undefined;
|
|
1114
|
-
attempts?: number | undefined;
|
|
1115
1599
|
}[];
|
|
1600
|
+
next_page: number | null;
|
|
1601
|
+
page: number;
|
|
1602
|
+
page_size: number;
|
|
1603
|
+
total: number;
|
|
1604
|
+
truncated: boolean;
|
|
1605
|
+
unreadable: number;
|
|
1116
1606
|
}>;
|
|
1117
1607
|
readonly sendConversationThreadMessage: (routeName: string, body: import("./conversations-client").ConversationThreadMessageBody) => Promise<{
|
|
1118
1608
|
message_id: string;
|
|
@@ -1177,6 +1667,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1177
1667
|
target_name: string;
|
|
1178
1668
|
}[];
|
|
1179
1669
|
total: number;
|
|
1670
|
+
unreadable: number;
|
|
1180
1671
|
}>;
|
|
1181
1672
|
readonly getConversationConfig: (targetKind: import("..").ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
|
|
1182
1673
|
greeting_template: string | null;
|
|
@@ -1228,9 +1719,6 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1228
1719
|
target_name: string;
|
|
1229
1720
|
}>;
|
|
1230
1721
|
readonly setConversationConfig: (config: import("..").TargetConversationConfig) => Promise<{
|
|
1231
|
-
created: boolean;
|
|
1232
|
-
target_kind: "tool" | "agent";
|
|
1233
|
-
target_name: string;
|
|
1234
1722
|
config: {
|
|
1235
1723
|
greeting_template: string | null;
|
|
1236
1724
|
multichannel: boolean;
|
|
@@ -1280,6 +1768,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1280
1768
|
target_kind: "tool" | "agent";
|
|
1281
1769
|
target_name: string;
|
|
1282
1770
|
};
|
|
1771
|
+
created: boolean;
|
|
1772
|
+
target_kind: "tool" | "agent";
|
|
1773
|
+
target_name: string;
|
|
1283
1774
|
}>;
|
|
1284
1775
|
readonly deleteConversationConfig: (targetKind: import("..").ConversationTargetKind, targetName: string) => Promise<{
|
|
1285
1776
|
removed: boolean;
|
|
@@ -1288,30 +1779,118 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1288
1779
|
}>;
|
|
1289
1780
|
readonly listFailedConversationMessages: (signal?: AbortSignal) => Promise<{
|
|
1290
1781
|
items: {
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1782
|
+
answer: string | null;
|
|
1783
|
+
answer_parts: {
|
|
1784
|
+
data: {
|
|
1785
|
+
options: Record<string, {
|
|
1786
|
+
label: string | null;
|
|
1787
|
+
value: string;
|
|
1788
|
+
}[]>;
|
|
1789
|
+
values: Record<string, unknown>;
|
|
1790
|
+
} | null;
|
|
1791
|
+
footer: string | null;
|
|
1792
|
+
form_tag: string | null;
|
|
1793
|
+
header: {
|
|
1794
|
+
caption: string | null;
|
|
1795
|
+
filename: string | null;
|
|
1796
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1797
|
+
url: string;
|
|
1798
|
+
} | null;
|
|
1799
|
+
location: {
|
|
1800
|
+
address: string | null;
|
|
1801
|
+
latitude: number;
|
|
1802
|
+
longitude: number;
|
|
1803
|
+
name: string | null;
|
|
1804
|
+
} | null;
|
|
1805
|
+
media: {
|
|
1806
|
+
caption: string | null;
|
|
1807
|
+
filename: string | null;
|
|
1808
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1809
|
+
url: string;
|
|
1810
|
+
}[] | null;
|
|
1811
|
+
message: string;
|
|
1812
|
+
options: ({
|
|
1813
|
+
kind: "link";
|
|
1814
|
+
label: string;
|
|
1815
|
+
url: string;
|
|
1816
|
+
} | {
|
|
1817
|
+
description: string | null;
|
|
1818
|
+
id: string | null;
|
|
1819
|
+
kind: "reply";
|
|
1820
|
+
text: string;
|
|
1821
|
+
})[] | null;
|
|
1822
|
+
pages: {
|
|
1823
|
+
display: {
|
|
1824
|
+
alt: string | null;
|
|
1825
|
+
kind: "heading" | "body" | "image";
|
|
1826
|
+
slot: string | null;
|
|
1827
|
+
src: string | null;
|
|
1828
|
+
text: string | null;
|
|
1829
|
+
}[];
|
|
1830
|
+
fields: string[];
|
|
1831
|
+
kind: "input" | "review";
|
|
1832
|
+
title: string;
|
|
1833
|
+
}[] | null;
|
|
1834
|
+
schema: Record<string, unknown> | null;
|
|
1835
|
+
sections: {
|
|
1836
|
+
rows: {
|
|
1837
|
+
description: string | null;
|
|
1838
|
+
id: string | null;
|
|
1839
|
+
kind: "reply";
|
|
1840
|
+
text: string;
|
|
1841
|
+
}[];
|
|
1842
|
+
title: string;
|
|
1843
|
+
}[] | null;
|
|
1844
|
+
template: {
|
|
1845
|
+
language: string;
|
|
1846
|
+
name: string;
|
|
1847
|
+
parameters: Record<string, unknown> | null;
|
|
1848
|
+
} | null;
|
|
1849
|
+
}[] | null;
|
|
1850
|
+
answer_status: "error" | "superseded" | "answered" | "silent" | "merged" | null;
|
|
1851
|
+
attempts: number | null;
|
|
1852
|
+
callback_url: string | null;
|
|
1296
1853
|
caller_principal: string | null;
|
|
1854
|
+
channel: string | null;
|
|
1855
|
+
client_address: string;
|
|
1856
|
+
created_at: number;
|
|
1857
|
+
delivery_status: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed";
|
|
1858
|
+
door: "channel" | "api";
|
|
1859
|
+
error: string | null;
|
|
1860
|
+
inbound_attachments: {
|
|
1861
|
+
caption: string | null;
|
|
1862
|
+
filename: string | null;
|
|
1863
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1864
|
+
url: string;
|
|
1865
|
+
}[] | null;
|
|
1866
|
+
inbound_event: Record<string, unknown> | null;
|
|
1867
|
+
inbound_form: Record<string, unknown> | null;
|
|
1868
|
+
inbound_form_tag: string | null;
|
|
1869
|
+
inbound_kind: "message" | "event";
|
|
1870
|
+
inbound_locale: string | null;
|
|
1871
|
+
inbound_location: {
|
|
1872
|
+
address: string | null;
|
|
1873
|
+
latitude: number;
|
|
1874
|
+
longitude: number;
|
|
1875
|
+
name: string | null;
|
|
1876
|
+
} | null;
|
|
1297
1877
|
inbound_text: string;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1878
|
+
message_id: string;
|
|
1879
|
+
operator_send: boolean;
|
|
1880
|
+
origin: "operator" | "client";
|
|
1881
|
+
our_identity: string | null;
|
|
1882
|
+
outbound_message_ids: string[] | null;
|
|
1883
|
+
pending_receipt: "superseded" | "failed" | "silent" | "merged" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | null;
|
|
1884
|
+
provider_message_id: string | null;
|
|
1885
|
+
route_missing: boolean;
|
|
1886
|
+
route_name: string;
|
|
1887
|
+
submitted_by: string | null;
|
|
1301
1888
|
successor_id: string | null;
|
|
1302
|
-
|
|
1303
|
-
delivery_status: "accepted" | "pending_delivery" | "provisional" | "delivered" | "failed" | "shed" | "silent" | "merged" | "superseded";
|
|
1304
|
-
created_at: number;
|
|
1889
|
+
thread_id: string;
|
|
1305
1890
|
updated_at: number;
|
|
1306
|
-
channel?: string | null | undefined;
|
|
1307
|
-
our_identity?: string | null | undefined;
|
|
1308
|
-
provider_message_id?: string | null | undefined;
|
|
1309
|
-
callback_url?: string | null | undefined;
|
|
1310
|
-
error?: string | null | undefined;
|
|
1311
|
-
outbound_message_ids?: string[] | undefined;
|
|
1312
|
-
attempts?: number | undefined;
|
|
1313
1891
|
}[];
|
|
1314
1892
|
total: number;
|
|
1893
|
+
unreadable: number;
|
|
1315
1894
|
}>;
|
|
1316
1895
|
readonly deleteConversationThread: (routeName: string, threadId: string) => Promise<{
|
|
1317
1896
|
removed: number;
|
|
@@ -1319,34 +1898,39 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1319
1898
|
thread_id: string;
|
|
1320
1899
|
}>;
|
|
1321
1900
|
readonly deleteConversationPerson: (personId: string) => Promise<{
|
|
1901
|
+
erased: boolean;
|
|
1322
1902
|
person_id: string;
|
|
1323
1903
|
removed: number;
|
|
1324
|
-
erased: boolean;
|
|
1325
1904
|
}>;
|
|
1326
1905
|
readonly listChannels: (signal?: AbortSignal) => Promise<{
|
|
1327
1906
|
channels: string[];
|
|
1328
1907
|
}>;
|
|
1329
1908
|
readonly listInteractions: (page: number, pageSize: number, signal?: AbortSignal) => Promise<{
|
|
1330
|
-
|
|
1909
|
+
next_page: number | null;
|
|
1331
1910
|
page: number;
|
|
1332
1911
|
page_size: number;
|
|
1333
|
-
|
|
1912
|
+
total: number;
|
|
1334
1913
|
truncated: boolean;
|
|
1335
1914
|
items: {
|
|
1336
|
-
|
|
1915
|
+
answer_format: "text" | "free" | "confirm" | "form" | "select" | "external";
|
|
1916
|
+
audience: string | null;
|
|
1917
|
+
channel: string | null;
|
|
1918
|
+
created_at: string;
|
|
1337
1919
|
group_id: string;
|
|
1920
|
+
interaction_id: string;
|
|
1921
|
+
media: {
|
|
1922
|
+
caption: string | null;
|
|
1923
|
+
filename: string | null;
|
|
1924
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
1925
|
+
url: string;
|
|
1926
|
+
}[] | null;
|
|
1927
|
+
origin: string | null;
|
|
1338
1928
|
question: string;
|
|
1339
|
-
|
|
1340
|
-
format_payload: Record<string, unknown>;
|
|
1341
|
-
created_at: string;
|
|
1342
|
-
timeout_at: string;
|
|
1929
|
+
recipient: string | null;
|
|
1343
1930
|
sensitive: boolean;
|
|
1344
|
-
server_verified
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
origin?: string | undefined;
|
|
1348
|
-
audience?: string | undefined;
|
|
1349
|
-
media?: unknown[] | undefined;
|
|
1931
|
+
server_verified: boolean | null;
|
|
1932
|
+
timeout_at: string;
|
|
1933
|
+
format_payload: Record<string, unknown>;
|
|
1350
1934
|
}[];
|
|
1351
1935
|
}>;
|
|
1352
1936
|
readonly answerInteraction: (interactionId: string, answer: unknown) => Promise<{
|
|
@@ -1356,8 +1940,8 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1356
1940
|
readonly reactInteraction: (interactionId: string, event: import("..").ReactionEvent, values: unknown) => Promise<{
|
|
1357
1941
|
values: Record<string, unknown>;
|
|
1358
1942
|
options: Record<string, {
|
|
1943
|
+
label: string | null;
|
|
1359
1944
|
value: string;
|
|
1360
|
-
label?: string | null | undefined;
|
|
1361
1945
|
}[]>;
|
|
1362
1946
|
errors: Record<string, string>;
|
|
1363
1947
|
display: Record<string, unknown>;
|
|
@@ -1367,267 +1951,459 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1367
1951
|
status: string;
|
|
1368
1952
|
}>;
|
|
1369
1953
|
readonly listStudioPlugins: (signal?: AbortSignal) => Promise<{
|
|
1370
|
-
name: string;
|
|
1371
|
-
version: string;
|
|
1372
1954
|
api_version: number;
|
|
1373
|
-
entry: string;
|
|
1374
|
-
integrity: Record<string, string>;
|
|
1375
1955
|
contributions: {
|
|
1376
|
-
|
|
1956
|
+
nav_entries: string[];
|
|
1377
1957
|
pages: string[];
|
|
1958
|
+
route_panels: string[];
|
|
1378
1959
|
settings_tabs: string[];
|
|
1379
|
-
|
|
1960
|
+
tool_panels: Record<string, string>;
|
|
1380
1961
|
};
|
|
1962
|
+
entry: string;
|
|
1963
|
+
integrity: Record<string, string>;
|
|
1964
|
+
mounts: Record<string, string>;
|
|
1965
|
+
name: string;
|
|
1966
|
+
version: string;
|
|
1381
1967
|
}[]>;
|
|
1968
|
+
readonly discoverServer: (target: import("./connectors-client").DiscoverServerTarget) => Promise<{
|
|
1969
|
+
authorization_servers: string[];
|
|
1970
|
+
automatic_client: boolean;
|
|
1971
|
+
client_issuer: string | null;
|
|
1972
|
+
issuer: string;
|
|
1973
|
+
redirect_uri: string | null;
|
|
1974
|
+
registration_supported: boolean;
|
|
1975
|
+
resource: string;
|
|
1976
|
+
resource_name: string | null;
|
|
1977
|
+
scopes_supported: string[];
|
|
1978
|
+
suggested_display_name: string;
|
|
1979
|
+
suggested_id: string;
|
|
1980
|
+
url: string;
|
|
1981
|
+
}>;
|
|
1982
|
+
readonly addServer: (args: import("./connectors-client").AddServerArgs) => Promise<{
|
|
1983
|
+
provider: {
|
|
1984
|
+
category: string;
|
|
1985
|
+
client_source: "manual" | "env" | "dynamic" | "unset" | null;
|
|
1986
|
+
config_fields: {
|
|
1987
|
+
key: string;
|
|
1988
|
+
label: string;
|
|
1989
|
+
required: boolean;
|
|
1990
|
+
secret: boolean;
|
|
1991
|
+
target: "header" | "env";
|
|
1992
|
+
}[];
|
|
1993
|
+
description: string;
|
|
1994
|
+
display_name: string;
|
|
1995
|
+
icon_url: string | null;
|
|
1996
|
+
id: string;
|
|
1997
|
+
kind: "none" | "oauth";
|
|
1998
|
+
origin: "system" | "community";
|
|
1999
|
+
removable: boolean;
|
|
2000
|
+
sub_services: {
|
|
2001
|
+
description: string;
|
|
2002
|
+
display_name: string;
|
|
2003
|
+
id: string;
|
|
2004
|
+
scopes: string[];
|
|
2005
|
+
}[];
|
|
2006
|
+
};
|
|
2007
|
+
fanout: {
|
|
2008
|
+
mode: "local-only";
|
|
2009
|
+
note: string;
|
|
2010
|
+
} | {
|
|
2011
|
+
error: string | null;
|
|
2012
|
+
local_only: boolean;
|
|
2013
|
+
op: string;
|
|
2014
|
+
reachable: boolean;
|
|
2015
|
+
results: {
|
|
2016
|
+
detail: string | null;
|
|
2017
|
+
error: string | null;
|
|
2018
|
+
name: string;
|
|
2019
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2020
|
+
payload: unknown;
|
|
2021
|
+
}[];
|
|
2022
|
+
mode: "fleet";
|
|
2023
|
+
} | {
|
|
2024
|
+
error: string | null;
|
|
2025
|
+
local_only: boolean;
|
|
2026
|
+
op: string;
|
|
2027
|
+
reachable: boolean;
|
|
2028
|
+
results: {
|
|
2029
|
+
detail: string | null;
|
|
2030
|
+
error: string | null;
|
|
2031
|
+
name: string;
|
|
2032
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2033
|
+
payload: unknown;
|
|
2034
|
+
}[];
|
|
2035
|
+
mode: "unreachable";
|
|
2036
|
+
} | null;
|
|
2037
|
+
}>;
|
|
2038
|
+
readonly removeProvider: (id: string) => Promise<{
|
|
2039
|
+
provider_id: string;
|
|
2040
|
+
removed_clients: number;
|
|
2041
|
+
fanout: {
|
|
2042
|
+
mode: "local-only";
|
|
2043
|
+
note: string;
|
|
2044
|
+
} | {
|
|
2045
|
+
error: string | null;
|
|
2046
|
+
local_only: boolean;
|
|
2047
|
+
op: string;
|
|
2048
|
+
reachable: boolean;
|
|
2049
|
+
results: {
|
|
2050
|
+
detail: string | null;
|
|
2051
|
+
error: string | null;
|
|
2052
|
+
name: string;
|
|
2053
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2054
|
+
payload: unknown;
|
|
2055
|
+
}[];
|
|
2056
|
+
mode: "fleet";
|
|
2057
|
+
} | {
|
|
2058
|
+
error: string | null;
|
|
2059
|
+
local_only: boolean;
|
|
2060
|
+
op: string;
|
|
2061
|
+
reachable: boolean;
|
|
2062
|
+
results: {
|
|
2063
|
+
detail: string | null;
|
|
2064
|
+
error: string | null;
|
|
2065
|
+
name: string;
|
|
2066
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2067
|
+
payload: unknown;
|
|
2068
|
+
}[];
|
|
2069
|
+
mode: "unreachable";
|
|
2070
|
+
} | null;
|
|
2071
|
+
}>;
|
|
2072
|
+
readonly setProviderClient: (id: string, args: import("./connectors-client").SetProviderClientArgs) => Promise<{
|
|
2073
|
+
provider: {
|
|
2074
|
+
category: string;
|
|
2075
|
+
client_source: "manual" | "env" | "dynamic" | "unset" | null;
|
|
2076
|
+
config_fields: {
|
|
2077
|
+
key: string;
|
|
2078
|
+
label: string;
|
|
2079
|
+
required: boolean;
|
|
2080
|
+
secret: boolean;
|
|
2081
|
+
target: "header" | "env";
|
|
2082
|
+
}[];
|
|
2083
|
+
description: string;
|
|
2084
|
+
display_name: string;
|
|
2085
|
+
icon_url: string | null;
|
|
2086
|
+
id: string;
|
|
2087
|
+
kind: "none" | "oauth";
|
|
2088
|
+
origin: "system" | "community";
|
|
2089
|
+
removable: boolean;
|
|
2090
|
+
sub_services: {
|
|
2091
|
+
description: string;
|
|
2092
|
+
display_name: string;
|
|
2093
|
+
id: string;
|
|
2094
|
+
scopes: string[];
|
|
2095
|
+
}[];
|
|
2096
|
+
};
|
|
2097
|
+
fanout: {
|
|
2098
|
+
mode: "local-only";
|
|
2099
|
+
note: string;
|
|
2100
|
+
} | {
|
|
2101
|
+
error: string | null;
|
|
2102
|
+
local_only: boolean;
|
|
2103
|
+
op: string;
|
|
2104
|
+
reachable: boolean;
|
|
2105
|
+
results: {
|
|
2106
|
+
detail: string | null;
|
|
2107
|
+
error: string | null;
|
|
2108
|
+
name: string;
|
|
2109
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2110
|
+
payload: unknown;
|
|
2111
|
+
}[];
|
|
2112
|
+
mode: "fleet";
|
|
2113
|
+
} | {
|
|
2114
|
+
error: string | null;
|
|
2115
|
+
local_only: boolean;
|
|
2116
|
+
op: string;
|
|
2117
|
+
reachable: boolean;
|
|
2118
|
+
results: {
|
|
2119
|
+
detail: string | null;
|
|
2120
|
+
error: string | null;
|
|
2121
|
+
name: string;
|
|
2122
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2123
|
+
payload: unknown;
|
|
2124
|
+
}[];
|
|
2125
|
+
mode: "unreachable";
|
|
2126
|
+
} | null;
|
|
2127
|
+
}>;
|
|
1382
2128
|
readonly listProviders: (signal?: AbortSignal) => Promise<{
|
|
1383
|
-
|
|
1384
|
-
id: string;
|
|
2129
|
+
categories: {
|
|
1385
2130
|
display_name: string;
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
2131
|
+
id: string;
|
|
2132
|
+
sort_order: number;
|
|
2133
|
+
}[];
|
|
2134
|
+
providers: {
|
|
1390
2135
|
category: string;
|
|
1391
|
-
|
|
1392
|
-
id: string;
|
|
1393
|
-
display_name: string;
|
|
1394
|
-
description: string;
|
|
1395
|
-
scopes: string[];
|
|
1396
|
-
}[];
|
|
2136
|
+
client_source: "manual" | "env" | "dynamic" | "unset" | null;
|
|
1397
2137
|
config_fields: {
|
|
1398
2138
|
key: string;
|
|
1399
2139
|
label: string;
|
|
1400
|
-
target: "env" | "header";
|
|
1401
2140
|
required: boolean;
|
|
1402
2141
|
secret: boolean;
|
|
2142
|
+
target: "header" | "env";
|
|
1403
2143
|
}[];
|
|
1404
|
-
|
|
1405
|
-
categories: {
|
|
1406
|
-
id: string;
|
|
2144
|
+
description: string;
|
|
1407
2145
|
display_name: string;
|
|
1408
|
-
|
|
2146
|
+
icon_url: string | null;
|
|
2147
|
+
id: string;
|
|
2148
|
+
kind: "none" | "oauth";
|
|
2149
|
+
origin: "system" | "community";
|
|
2150
|
+
removable: boolean;
|
|
2151
|
+
sub_services: {
|
|
2152
|
+
description: string;
|
|
2153
|
+
display_name: string;
|
|
2154
|
+
id: string;
|
|
2155
|
+
scopes: string[];
|
|
2156
|
+
}[];
|
|
1409
2157
|
}[];
|
|
1410
2158
|
}>;
|
|
1411
2159
|
readonly listConnections: (signal?: AbortSignal) => Promise<{
|
|
1412
2160
|
items: {
|
|
1413
|
-
connection_id: string;
|
|
1414
|
-
provider_id: string;
|
|
1415
|
-
alias: string;
|
|
1416
|
-
kind: "none" | "oauth";
|
|
1417
2161
|
account_identity: string | null;
|
|
2162
|
+
alias: string;
|
|
2163
|
+
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
2164
|
+
connection_id: string;
|
|
2165
|
+
created_at: string;
|
|
1418
2166
|
enabled_sub_services: string[];
|
|
1419
2167
|
granted_scopes: string[];
|
|
2168
|
+
kind: "none" | "oauth";
|
|
2169
|
+
provider_id: string;
|
|
2170
|
+
scopes_wanted: string[];
|
|
1420
2171
|
unreachable_sub_services: string[];
|
|
1421
|
-
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
1422
|
-
created_at: string;
|
|
1423
2172
|
}[];
|
|
1424
2173
|
total: number;
|
|
1425
|
-
unhealthy
|
|
2174
|
+
unhealthy: number;
|
|
1426
2175
|
}>;
|
|
1427
2176
|
readonly getConnection: (id: string, signal?: AbortSignal) => Promise<{
|
|
1428
|
-
connection_id: string;
|
|
1429
|
-
provider_id: string;
|
|
1430
|
-
alias: string;
|
|
1431
|
-
kind: "none" | "oauth";
|
|
1432
2177
|
account_identity: string | null;
|
|
2178
|
+
alias: string;
|
|
2179
|
+
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
2180
|
+
connection_id: string;
|
|
2181
|
+
created_at: string;
|
|
1433
2182
|
enabled_sub_services: string[];
|
|
1434
2183
|
granted_scopes: string[];
|
|
2184
|
+
kind: "none" | "oauth";
|
|
2185
|
+
provider_id: string;
|
|
2186
|
+
scopes_wanted: string[];
|
|
1435
2187
|
unreachable_sub_services: string[];
|
|
1436
|
-
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
1437
|
-
created_at: string;
|
|
1438
2188
|
}>;
|
|
1439
2189
|
readonly startConnect: (args: import("./connectors-client").StartConnectArgs) => Promise<{
|
|
1440
|
-
flow_id: string;
|
|
1441
2190
|
authorize_url: string;
|
|
2191
|
+
flow_id: string;
|
|
1442
2192
|
} | {
|
|
1443
|
-
connection_id: string;
|
|
1444
2193
|
added_manifest_entries: string[];
|
|
2194
|
+
connection_id: string;
|
|
1445
2195
|
fanout: {
|
|
1446
2196
|
mode: "local-only";
|
|
1447
2197
|
note: string;
|
|
1448
2198
|
} | {
|
|
2199
|
+
error: string | null;
|
|
2200
|
+
local_only: boolean;
|
|
1449
2201
|
op: string;
|
|
1450
2202
|
reachable: boolean;
|
|
1451
|
-
local_only: boolean;
|
|
1452
2203
|
results: {
|
|
2204
|
+
detail: string | null;
|
|
2205
|
+
error: string | null;
|
|
1453
2206
|
name: string;
|
|
1454
|
-
outcome: "
|
|
2207
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1455
2208
|
payload: unknown;
|
|
1456
|
-
error: string | null;
|
|
1457
|
-
detail: string | null;
|
|
1458
2209
|
}[];
|
|
1459
|
-
error: string | null;
|
|
1460
2210
|
mode: "fleet";
|
|
1461
2211
|
} | {
|
|
2212
|
+
error: string | null;
|
|
2213
|
+
local_only: boolean;
|
|
1462
2214
|
op: string;
|
|
1463
2215
|
reachable: boolean;
|
|
1464
|
-
local_only: boolean;
|
|
1465
2216
|
results: {
|
|
2217
|
+
detail: string | null;
|
|
2218
|
+
error: string | null;
|
|
1466
2219
|
name: string;
|
|
1467
|
-
outcome: "
|
|
2220
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1468
2221
|
payload: unknown;
|
|
1469
|
-
error: string | null;
|
|
1470
|
-
detail: string | null;
|
|
1471
2222
|
}[];
|
|
1472
|
-
error: string | null;
|
|
1473
2223
|
mode: "unreachable";
|
|
1474
2224
|
} | null;
|
|
1475
2225
|
}>;
|
|
1476
2226
|
readonly disconnect: (id: string) => Promise<{
|
|
1477
2227
|
connection_id: string;
|
|
1478
|
-
upstream_revoke_outcome: "success" | "failed" | "skipped";
|
|
1479
|
-
upstream_revoke_status: number | null;
|
|
1480
2228
|
removed_manifest_entries: string[];
|
|
2229
|
+
upstream_revoke_outcome: "success" | "skipped" | "failed";
|
|
2230
|
+
upstream_revoke_status: number | null;
|
|
1481
2231
|
fanout: {
|
|
1482
2232
|
mode: "local-only";
|
|
1483
2233
|
note: string;
|
|
1484
2234
|
} | {
|
|
2235
|
+
error: string | null;
|
|
2236
|
+
local_only: boolean;
|
|
1485
2237
|
op: string;
|
|
1486
2238
|
reachable: boolean;
|
|
1487
|
-
local_only: boolean;
|
|
1488
2239
|
results: {
|
|
2240
|
+
detail: string | null;
|
|
2241
|
+
error: string | null;
|
|
1489
2242
|
name: string;
|
|
1490
|
-
outcome: "
|
|
2243
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1491
2244
|
payload: unknown;
|
|
1492
|
-
error: string | null;
|
|
1493
|
-
detail: string | null;
|
|
1494
2245
|
}[];
|
|
1495
|
-
error: string | null;
|
|
1496
2246
|
mode: "fleet";
|
|
1497
2247
|
} | {
|
|
2248
|
+
error: string | null;
|
|
2249
|
+
local_only: boolean;
|
|
1498
2250
|
op: string;
|
|
1499
2251
|
reachable: boolean;
|
|
1500
|
-
local_only: boolean;
|
|
1501
2252
|
results: {
|
|
2253
|
+
detail: string | null;
|
|
2254
|
+
error: string | null;
|
|
1502
2255
|
name: string;
|
|
1503
|
-
outcome: "
|
|
2256
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1504
2257
|
payload: unknown;
|
|
1505
|
-
error: string | null;
|
|
1506
|
-
detail: string | null;
|
|
1507
2258
|
}[];
|
|
1508
|
-
error: string | null;
|
|
1509
2259
|
mode: "unreachable";
|
|
1510
2260
|
} | null;
|
|
1511
2261
|
}>;
|
|
1512
2262
|
readonly reconnect: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
|
|
1513
|
-
flow_id: string;
|
|
1514
2263
|
authorize_url: string;
|
|
2264
|
+
flow_id: string;
|
|
1515
2265
|
}>;
|
|
1516
2266
|
readonly patchSubServices: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
|
|
2267
|
+
added_manifest_entries: string[];
|
|
2268
|
+
authorize_url: string | null;
|
|
1517
2269
|
connection_id: string;
|
|
1518
|
-
enabled_sub_services: string[];
|
|
1519
2270
|
consent_required: boolean;
|
|
2271
|
+
enabled_sub_services: string[];
|
|
1520
2272
|
flow_id: string | null;
|
|
1521
|
-
authorize_url: string | null;
|
|
1522
|
-
added_manifest_entries: string[];
|
|
1523
2273
|
removed_manifest_entries: string[];
|
|
1524
2274
|
fanout: {
|
|
1525
2275
|
mode: "local-only";
|
|
1526
2276
|
note: string;
|
|
1527
2277
|
} | {
|
|
2278
|
+
error: string | null;
|
|
2279
|
+
local_only: boolean;
|
|
1528
2280
|
op: string;
|
|
1529
2281
|
reachable: boolean;
|
|
1530
|
-
local_only: boolean;
|
|
1531
2282
|
results: {
|
|
2283
|
+
detail: string | null;
|
|
2284
|
+
error: string | null;
|
|
1532
2285
|
name: string;
|
|
1533
|
-
outcome: "
|
|
2286
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1534
2287
|
payload: unknown;
|
|
1535
|
-
error: string | null;
|
|
1536
|
-
detail: string | null;
|
|
1537
2288
|
}[];
|
|
1538
|
-
error: string | null;
|
|
1539
2289
|
mode: "fleet";
|
|
1540
2290
|
} | {
|
|
2291
|
+
error: string | null;
|
|
2292
|
+
local_only: boolean;
|
|
1541
2293
|
op: string;
|
|
1542
2294
|
reachable: boolean;
|
|
1543
|
-
local_only: boolean;
|
|
1544
2295
|
results: {
|
|
2296
|
+
detail: string | null;
|
|
2297
|
+
error: string | null;
|
|
1545
2298
|
name: string;
|
|
1546
|
-
outcome: "
|
|
2299
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1547
2300
|
payload: unknown;
|
|
1548
|
-
error: string | null;
|
|
1549
|
-
detail: string | null;
|
|
1550
2301
|
}[];
|
|
1551
|
-
error: string | null;
|
|
1552
2302
|
mode: "unreachable";
|
|
1553
2303
|
} | null;
|
|
1554
2304
|
}>;
|
|
1555
|
-
readonly completeOAuth: (state: string, code: string, error?: string) => Promise<{
|
|
1556
|
-
kind: "
|
|
2305
|
+
readonly completeOAuth: (state: string, code: string, error?: string, iss?: string) => Promise<{
|
|
2306
|
+
kind: "cancelled";
|
|
2307
|
+
message: string;
|
|
2308
|
+
} | {
|
|
2309
|
+
kind: "failed";
|
|
2310
|
+
reason: string;
|
|
2311
|
+
} | {
|
|
2312
|
+
kind: "not_configured";
|
|
2313
|
+
} | {
|
|
1557
2314
|
connection_id: string;
|
|
2315
|
+
kind: "success";
|
|
1558
2316
|
return_url: string;
|
|
1559
2317
|
fanout: {
|
|
1560
2318
|
mode: "local-only";
|
|
1561
2319
|
note: string;
|
|
1562
2320
|
} | {
|
|
2321
|
+
error: string | null;
|
|
2322
|
+
local_only: boolean;
|
|
1563
2323
|
op: string;
|
|
1564
2324
|
reachable: boolean;
|
|
1565
|
-
local_only: boolean;
|
|
1566
2325
|
results: {
|
|
2326
|
+
detail: string | null;
|
|
2327
|
+
error: string | null;
|
|
1567
2328
|
name: string;
|
|
1568
|
-
outcome: "
|
|
2329
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1569
2330
|
payload: unknown;
|
|
1570
|
-
error: string | null;
|
|
1571
|
-
detail: string | null;
|
|
1572
2331
|
}[];
|
|
1573
|
-
error: string | null;
|
|
1574
2332
|
mode: "fleet";
|
|
1575
2333
|
} | {
|
|
2334
|
+
error: string | null;
|
|
2335
|
+
local_only: boolean;
|
|
1576
2336
|
op: string;
|
|
1577
2337
|
reachable: boolean;
|
|
1578
|
-
local_only: boolean;
|
|
1579
2338
|
results: {
|
|
2339
|
+
detail: string | null;
|
|
2340
|
+
error: string | null;
|
|
1580
2341
|
name: string;
|
|
1581
|
-
outcome: "
|
|
2342
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1582
2343
|
payload: unknown;
|
|
1583
|
-
error: string | null;
|
|
1584
|
-
detail: string | null;
|
|
1585
2344
|
}[];
|
|
1586
|
-
error: string | null;
|
|
1587
2345
|
mode: "unreachable";
|
|
1588
|
-
}
|
|
1589
|
-
} | {
|
|
1590
|
-
kind: "failed";
|
|
1591
|
-
reason: string;
|
|
1592
|
-
} | {
|
|
1593
|
-
kind: "cancelled";
|
|
1594
|
-
message: string;
|
|
2346
|
+
};
|
|
1595
2347
|
}>;
|
|
1596
2348
|
readonly setMcpSecretEnv: (body: import("./manifest-client").SetMcpSecretEnvBody) => Promise<{
|
|
1597
|
-
|
|
2349
|
+
awaiting_respawn: {
|
|
2350
|
+
keys: string[];
|
|
2351
|
+
name: string;
|
|
2352
|
+
}[];
|
|
1598
2353
|
env_keys: number;
|
|
2354
|
+
recycle: {
|
|
2355
|
+
fresh: {
|
|
2356
|
+
generation: number;
|
|
2357
|
+
kind: string;
|
|
2358
|
+
name: string;
|
|
2359
|
+
}[];
|
|
2360
|
+
recycle: {
|
|
2361
|
+
detail: string | null;
|
|
2362
|
+
generation_before: number;
|
|
2363
|
+
kind: string;
|
|
2364
|
+
name: string;
|
|
2365
|
+
status: string;
|
|
2366
|
+
}[];
|
|
2367
|
+
recycle_stopped: {
|
|
2368
|
+
detail: string;
|
|
2369
|
+
kind: string;
|
|
2370
|
+
name: string | null;
|
|
2371
|
+
} | null;
|
|
2372
|
+
} | null;
|
|
2373
|
+
status: string;
|
|
1599
2374
|
fanout: {
|
|
1600
2375
|
mode: "local-only";
|
|
1601
2376
|
note: string;
|
|
1602
2377
|
} | {
|
|
2378
|
+
error: string | null;
|
|
2379
|
+
local_only: boolean;
|
|
1603
2380
|
op: string;
|
|
1604
2381
|
reachable: boolean;
|
|
1605
|
-
local_only: boolean;
|
|
1606
2382
|
results: {
|
|
2383
|
+
detail: string | null;
|
|
2384
|
+
error: string | null;
|
|
1607
2385
|
name: string;
|
|
1608
|
-
outcome: "
|
|
2386
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1609
2387
|
payload: unknown;
|
|
1610
|
-
error: string | null;
|
|
1611
|
-
detail: string | null;
|
|
1612
2388
|
}[];
|
|
1613
|
-
error: string | null;
|
|
1614
2389
|
mode: "fleet";
|
|
1615
2390
|
} | {
|
|
2391
|
+
error: string | null;
|
|
2392
|
+
local_only: boolean;
|
|
1616
2393
|
op: string;
|
|
1617
2394
|
reachable: boolean;
|
|
1618
|
-
local_only: boolean;
|
|
1619
2395
|
results: {
|
|
2396
|
+
detail: string | null;
|
|
2397
|
+
error: string | null;
|
|
1620
2398
|
name: string;
|
|
1621
|
-
outcome: "
|
|
2399
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1622
2400
|
payload: unknown;
|
|
1623
|
-
error: string | null;
|
|
1624
|
-
detail: string | null;
|
|
1625
2401
|
}[];
|
|
1626
|
-
error: string | null;
|
|
1627
2402
|
mode: "unreachable";
|
|
1628
2403
|
};
|
|
1629
2404
|
}>;
|
|
1630
2405
|
readonly getManifestPreserved: (signal?: AbortSignal) => Promise<{
|
|
2406
|
+
user_tools: string[];
|
|
1631
2407
|
mcp: {
|
|
1632
2408
|
[x: string]: unknown;
|
|
1633
2409
|
managed?: {
|
|
@@ -1636,17 +2412,16 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1636
2412
|
sub_service: string;
|
|
1637
2413
|
} | null | undefined;
|
|
1638
2414
|
}[];
|
|
1639
|
-
user_tools: string[];
|
|
1640
2415
|
}>;
|
|
1641
2416
|
readonly getMcpEnvRefs: (signal?: AbortSignal) => Promise<{
|
|
1642
|
-
var: string;
|
|
1643
|
-
pointer: string;
|
|
1644
2417
|
has_default: boolean;
|
|
2418
|
+
pointer: string;
|
|
1645
2419
|
set: boolean;
|
|
2420
|
+
var: string;
|
|
1646
2421
|
}[]>;
|
|
1647
2422
|
readonly listSettingsProfiles: (signal?: AbortSignal) => Promise<{
|
|
1648
|
-
name: string;
|
|
1649
2423
|
description: string;
|
|
2424
|
+
name: string;
|
|
1650
2425
|
}[]>;
|
|
1651
2426
|
readonly getSettingsProfile: (name: string, signal?: AbortSignal) => Promise<{
|
|
1652
2427
|
description: string;
|
|
@@ -1654,127 +2429,160 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1654
2429
|
secret_keys: string[];
|
|
1655
2430
|
}>;
|
|
1656
2431
|
readonly putSettingsProfile: (name: string, body: import("../schemas").SettingsProfileBody) => Promise<{
|
|
1657
|
-
ok:
|
|
1658
|
-
version
|
|
2432
|
+
ok: boolean;
|
|
2433
|
+
version: number;
|
|
1659
2434
|
}>;
|
|
1660
2435
|
readonly deleteSettingsProfile: (name: string) => Promise<{
|
|
1661
|
-
ok:
|
|
2436
|
+
ok: boolean;
|
|
1662
2437
|
}>;
|
|
1663
2438
|
readonly diffSettingsProfile: (name: string) => Promise<{
|
|
1664
2439
|
added: string[];
|
|
1665
|
-
removed: string[];
|
|
1666
2440
|
changed: {
|
|
1667
2441
|
key: string;
|
|
1668
|
-
old: string;
|
|
1669
2442
|
new: string;
|
|
2443
|
+
old: string;
|
|
1670
2444
|
}[];
|
|
1671
2445
|
recycle_keys: string[];
|
|
1672
2446
|
refused_keys: string[];
|
|
2447
|
+
removed: string[];
|
|
1673
2448
|
}>;
|
|
1674
2449
|
readonly applySettingsProfile: (name: string) => Promise<{
|
|
1675
|
-
|
|
1676
|
-
|
|
2450
|
+
awaiting_respawn: {
|
|
2451
|
+
keys: string[];
|
|
1677
2452
|
name: string;
|
|
1678
|
-
kind: string;
|
|
1679
|
-
status: string;
|
|
1680
|
-
generation_before: number;
|
|
1681
2453
|
}[];
|
|
1682
2454
|
fresh: {
|
|
1683
|
-
name: string;
|
|
1684
|
-
kind: string;
|
|
1685
2455
|
generation: number;
|
|
2456
|
+
kind: string;
|
|
2457
|
+
name: string;
|
|
1686
2458
|
}[];
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
2459
|
+
hot: string[];
|
|
2460
|
+
recycle: {
|
|
2461
|
+
detail: string | null;
|
|
2462
|
+
generation_before: number;
|
|
2463
|
+
kind: string;
|
|
2464
|
+
name: string;
|
|
2465
|
+
status: string;
|
|
1690
2466
|
}[];
|
|
2467
|
+
recycle_stopped: {
|
|
2468
|
+
detail: string;
|
|
2469
|
+
kind: string;
|
|
2470
|
+
name: string | null;
|
|
2471
|
+
} | null;
|
|
2472
|
+
refused: string[];
|
|
1691
2473
|
fanout: {
|
|
1692
2474
|
mode: "local-only";
|
|
1693
2475
|
note: string;
|
|
1694
2476
|
} | {
|
|
2477
|
+
error: string | null;
|
|
2478
|
+
local_only: boolean;
|
|
1695
2479
|
op: string;
|
|
1696
2480
|
reachable: boolean;
|
|
1697
|
-
local_only: boolean;
|
|
1698
2481
|
results: {
|
|
2482
|
+
detail: string | null;
|
|
2483
|
+
error: string | null;
|
|
1699
2484
|
name: string;
|
|
1700
|
-
outcome: "
|
|
2485
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1701
2486
|
payload: unknown;
|
|
1702
|
-
error: string | null;
|
|
1703
|
-
detail: string | null;
|
|
1704
2487
|
}[];
|
|
1705
|
-
error: string | null;
|
|
1706
2488
|
mode: "fleet";
|
|
1707
2489
|
} | {
|
|
2490
|
+
error: string | null;
|
|
2491
|
+
local_only: boolean;
|
|
1708
2492
|
op: string;
|
|
1709
2493
|
reachable: boolean;
|
|
1710
|
-
local_only: boolean;
|
|
1711
2494
|
results: {
|
|
2495
|
+
detail: string | null;
|
|
2496
|
+
error: string | null;
|
|
1712
2497
|
name: string;
|
|
1713
|
-
outcome: "
|
|
2498
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1714
2499
|
payload: unknown;
|
|
1715
|
-
error: string | null;
|
|
1716
|
-
detail: string | null;
|
|
1717
2500
|
}[];
|
|
1718
|
-
error: string | null;
|
|
1719
2501
|
mode: "unreachable";
|
|
1720
2502
|
};
|
|
1721
2503
|
}>;
|
|
1722
2504
|
readonly listSettingsProfileVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
1723
|
-
version: number;
|
|
1724
|
-
tags: string[];
|
|
1725
2505
|
created_at: string;
|
|
1726
2506
|
is_current: boolean;
|
|
2507
|
+
tags: string[];
|
|
2508
|
+
version: number;
|
|
1727
2509
|
}[]>;
|
|
1728
2510
|
readonly getSettingsProfileVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
|
|
1729
|
-
version: number;
|
|
1730
|
-
tags: string[];
|
|
1731
|
-
created_at: string;
|
|
1732
|
-
is_current: boolean;
|
|
1733
2511
|
body: {
|
|
1734
2512
|
description: string;
|
|
1735
2513
|
env: Record<string, string>;
|
|
1736
2514
|
secret_keys: string[];
|
|
1737
2515
|
};
|
|
2516
|
+
created_at: string;
|
|
2517
|
+
is_current: boolean;
|
|
2518
|
+
tags: string[];
|
|
2519
|
+
version: number;
|
|
1738
2520
|
}>;
|
|
1739
2521
|
readonly rollbackSettingsProfile: (name: string, version: number) => Promise<{
|
|
1740
|
-
ok:
|
|
2522
|
+
ok: boolean;
|
|
1741
2523
|
version: number;
|
|
1742
2524
|
}>;
|
|
1743
2525
|
readonly getEnvConfig: (signal?: AbortSignal) => Promise<{
|
|
1744
2526
|
env: Record<string, string>;
|
|
1745
2527
|
secret_keys: string[];
|
|
1746
2528
|
}>;
|
|
1747
|
-
readonly setEnvConfig: (
|
|
1748
|
-
|
|
2529
|
+
readonly setEnvConfig: (body: {
|
|
2530
|
+
env: Record<string, string>;
|
|
2531
|
+
secret_keys?: string[] | null;
|
|
2532
|
+
}) => Promise<{
|
|
2533
|
+
awaiting_respawn: {
|
|
2534
|
+
keys: string[];
|
|
2535
|
+
name: string;
|
|
2536
|
+
}[];
|
|
1749
2537
|
env_keys: number;
|
|
2538
|
+
recycle: {
|
|
2539
|
+
fresh: {
|
|
2540
|
+
generation: number;
|
|
2541
|
+
kind: string;
|
|
2542
|
+
name: string;
|
|
2543
|
+
}[];
|
|
2544
|
+
recycle: {
|
|
2545
|
+
detail: string | null;
|
|
2546
|
+
generation_before: number;
|
|
2547
|
+
kind: string;
|
|
2548
|
+
name: string;
|
|
2549
|
+
status: string;
|
|
2550
|
+
}[];
|
|
2551
|
+
recycle_stopped: {
|
|
2552
|
+
detail: string;
|
|
2553
|
+
kind: string;
|
|
2554
|
+
name: string | null;
|
|
2555
|
+
} | null;
|
|
2556
|
+
} | null;
|
|
2557
|
+
status: string;
|
|
1750
2558
|
fanout: {
|
|
1751
2559
|
mode: "local-only";
|
|
1752
2560
|
note: string;
|
|
1753
2561
|
} | {
|
|
2562
|
+
error: string | null;
|
|
2563
|
+
local_only: boolean;
|
|
1754
2564
|
op: string;
|
|
1755
2565
|
reachable: boolean;
|
|
1756
|
-
local_only: boolean;
|
|
1757
2566
|
results: {
|
|
2567
|
+
detail: string | null;
|
|
2568
|
+
error: string | null;
|
|
1758
2569
|
name: string;
|
|
1759
|
-
outcome: "
|
|
2570
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1760
2571
|
payload: unknown;
|
|
1761
|
-
error: string | null;
|
|
1762
|
-
detail: string | null;
|
|
1763
2572
|
}[];
|
|
1764
|
-
error: string | null;
|
|
1765
2573
|
mode: "fleet";
|
|
1766
2574
|
} | {
|
|
2575
|
+
error: string | null;
|
|
2576
|
+
local_only: boolean;
|
|
1767
2577
|
op: string;
|
|
1768
2578
|
reachable: boolean;
|
|
1769
|
-
local_only: boolean;
|
|
1770
2579
|
results: {
|
|
2580
|
+
detail: string | null;
|
|
2581
|
+
error: string | null;
|
|
1771
2582
|
name: string;
|
|
1772
|
-
outcome: "
|
|
2583
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1773
2584
|
payload: unknown;
|
|
1774
|
-
error: string | null;
|
|
1775
|
-
detail: string | null;
|
|
1776
2585
|
}[];
|
|
1777
|
-
error: string | null;
|
|
1778
2586
|
mode: "unreachable";
|
|
1779
2587
|
};
|
|
1780
2588
|
}>;
|
|
@@ -1783,19 +2591,22 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1783
2591
|
read_only: boolean;
|
|
1784
2592
|
}>;
|
|
1785
2593
|
readonly reloadConfig: (targets?: string[] | null) => Promise<{
|
|
2594
|
+
error: string | null;
|
|
2595
|
+
local_only: boolean;
|
|
2596
|
+
ok: boolean;
|
|
1786
2597
|
op: string;
|
|
1787
2598
|
reachable: boolean;
|
|
1788
|
-
local_only: boolean;
|
|
1789
2599
|
results: {
|
|
2600
|
+
detail: string | null;
|
|
2601
|
+
error: string | null;
|
|
1790
2602
|
name: string;
|
|
1791
|
-
outcome: "
|
|
2603
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1792
2604
|
payload: unknown;
|
|
1793
|
-
error: string | null;
|
|
1794
|
-
detail: string | null;
|
|
1795
2605
|
}[];
|
|
1796
|
-
error: string | null;
|
|
1797
2606
|
}>;
|
|
1798
2607
|
readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
|
|
2608
|
+
access_pattern: string;
|
|
2609
|
+
mount_url: string;
|
|
1799
2610
|
tools: string[];
|
|
1800
2611
|
transport: string;
|
|
1801
2612
|
}>>;
|
|
@@ -1805,10 +2616,11 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1805
2616
|
transport: string;
|
|
1806
2617
|
}>;
|
|
1807
2618
|
readonly deleteSubMcp: (slug: string) => Promise<{
|
|
2619
|
+
removed: boolean;
|
|
1808
2620
|
slug: string;
|
|
1809
|
-
removed: true;
|
|
1810
2621
|
}>;
|
|
1811
2622
|
readonly getManifest: (signal?: AbortSignal) => Promise<{
|
|
2623
|
+
user_tools: string[];
|
|
1812
2624
|
mcp: {
|
|
1813
2625
|
[x: string]: unknown;
|
|
1814
2626
|
managed?: {
|
|
@@ -1817,404 +2629,637 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1817
2629
|
sub_service: string;
|
|
1818
2630
|
} | null | undefined;
|
|
1819
2631
|
}[];
|
|
1820
|
-
user_tools: string[];
|
|
1821
2632
|
}>;
|
|
1822
2633
|
readonly setMcpConfig: (mcp: unknown[]) => Promise<{
|
|
1823
|
-
|
|
2634
|
+
awaiting_respawn: {
|
|
2635
|
+
keys: string[];
|
|
2636
|
+
name: string;
|
|
2637
|
+
}[];
|
|
1824
2638
|
env_keys: number;
|
|
2639
|
+
recycle: {
|
|
2640
|
+
fresh: {
|
|
2641
|
+
generation: number;
|
|
2642
|
+
kind: string;
|
|
2643
|
+
name: string;
|
|
2644
|
+
}[];
|
|
2645
|
+
recycle: {
|
|
2646
|
+
detail: string | null;
|
|
2647
|
+
generation_before: number;
|
|
2648
|
+
kind: string;
|
|
2649
|
+
name: string;
|
|
2650
|
+
status: string;
|
|
2651
|
+
}[];
|
|
2652
|
+
recycle_stopped: {
|
|
2653
|
+
detail: string;
|
|
2654
|
+
kind: string;
|
|
2655
|
+
name: string | null;
|
|
2656
|
+
} | null;
|
|
2657
|
+
} | null;
|
|
2658
|
+
status: string;
|
|
1825
2659
|
fanout: {
|
|
1826
2660
|
mode: "local-only";
|
|
1827
2661
|
note: string;
|
|
1828
2662
|
} | {
|
|
2663
|
+
error: string | null;
|
|
2664
|
+
local_only: boolean;
|
|
1829
2665
|
op: string;
|
|
1830
2666
|
reachable: boolean;
|
|
1831
|
-
local_only: boolean;
|
|
1832
2667
|
results: {
|
|
2668
|
+
detail: string | null;
|
|
2669
|
+
error: string | null;
|
|
1833
2670
|
name: string;
|
|
1834
|
-
outcome: "
|
|
2671
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1835
2672
|
payload: unknown;
|
|
1836
|
-
error: string | null;
|
|
1837
|
-
detail: string | null;
|
|
1838
2673
|
}[];
|
|
1839
|
-
error: string | null;
|
|
1840
2674
|
mode: "fleet";
|
|
1841
2675
|
} | {
|
|
2676
|
+
error: string | null;
|
|
2677
|
+
local_only: boolean;
|
|
1842
2678
|
op: string;
|
|
1843
2679
|
reachable: boolean;
|
|
1844
|
-
local_only: boolean;
|
|
1845
2680
|
results: {
|
|
2681
|
+
detail: string | null;
|
|
2682
|
+
error: string | null;
|
|
1846
2683
|
name: string;
|
|
1847
|
-
outcome: "
|
|
2684
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1848
2685
|
payload: unknown;
|
|
1849
|
-
error: string | null;
|
|
1850
|
-
detail: string | null;
|
|
1851
2686
|
}[];
|
|
1852
|
-
error: string | null;
|
|
1853
2687
|
mode: "unreachable";
|
|
1854
2688
|
};
|
|
1855
2689
|
}>;
|
|
1856
2690
|
readonly getMcpStatus: (signal?: AbortSignal) => Promise<{
|
|
1857
2691
|
bound: Record<string, string[]>;
|
|
1858
2692
|
failed: {
|
|
1859
|
-
|
|
2693
|
+
category: string;
|
|
2694
|
+
http_status: number | null;
|
|
2695
|
+
message: string;
|
|
1860
2696
|
status: string;
|
|
1861
|
-
|
|
1862
|
-
message?: string | undefined;
|
|
1863
|
-
http_status?: number | null | undefined;
|
|
2697
|
+
title: string;
|
|
1864
2698
|
}[];
|
|
2699
|
+
health: Record<string, {
|
|
2700
|
+
consecutive_failures: number;
|
|
2701
|
+
failing_since: string | null;
|
|
2702
|
+
last_error: Record<string, string> | null;
|
|
2703
|
+
last_success: string | null;
|
|
2704
|
+
}>;
|
|
1865
2705
|
}>;
|
|
1866
2706
|
readonly reloadMcp: (title: string) => Promise<{
|
|
2707
|
+
error: string | null;
|
|
2708
|
+
local_only: boolean;
|
|
2709
|
+
ok: boolean;
|
|
1867
2710
|
op: string;
|
|
1868
2711
|
reachable: boolean;
|
|
1869
|
-
local_only: boolean;
|
|
1870
2712
|
results: {
|
|
2713
|
+
detail: string | null;
|
|
2714
|
+
error: string | null;
|
|
1871
2715
|
name: string;
|
|
1872
|
-
outcome: "
|
|
2716
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1873
2717
|
payload: unknown;
|
|
1874
|
-
error: string | null;
|
|
1875
|
-
detail: string | null;
|
|
1876
2718
|
}[];
|
|
1877
|
-
error: string | null;
|
|
1878
2719
|
}>;
|
|
1879
2720
|
readonly addToolsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
|
|
1880
|
-
|
|
2721
|
+
awaiting_respawn: {
|
|
2722
|
+
keys: string[];
|
|
2723
|
+
name: string;
|
|
2724
|
+
}[];
|
|
1881
2725
|
env_keys: number;
|
|
2726
|
+
recycle: {
|
|
2727
|
+
fresh: {
|
|
2728
|
+
generation: number;
|
|
2729
|
+
kind: string;
|
|
2730
|
+
name: string;
|
|
2731
|
+
}[];
|
|
2732
|
+
recycle: {
|
|
2733
|
+
detail: string | null;
|
|
2734
|
+
generation_before: number;
|
|
2735
|
+
kind: string;
|
|
2736
|
+
name: string;
|
|
2737
|
+
status: string;
|
|
2738
|
+
}[];
|
|
2739
|
+
recycle_stopped: {
|
|
2740
|
+
detail: string;
|
|
2741
|
+
kind: string;
|
|
2742
|
+
name: string | null;
|
|
2743
|
+
} | null;
|
|
2744
|
+
} | null;
|
|
2745
|
+
status: string;
|
|
1882
2746
|
fanout: {
|
|
1883
2747
|
mode: "local-only";
|
|
1884
2748
|
note: string;
|
|
1885
2749
|
} | {
|
|
2750
|
+
error: string | null;
|
|
2751
|
+
local_only: boolean;
|
|
1886
2752
|
op: string;
|
|
1887
2753
|
reachable: boolean;
|
|
1888
|
-
local_only: boolean;
|
|
1889
2754
|
results: {
|
|
2755
|
+
detail: string | null;
|
|
2756
|
+
error: string | null;
|
|
1890
2757
|
name: string;
|
|
1891
|
-
outcome: "
|
|
2758
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1892
2759
|
payload: unknown;
|
|
1893
|
-
error: string | null;
|
|
1894
|
-
detail: string | null;
|
|
1895
2760
|
}[];
|
|
1896
|
-
error: string | null;
|
|
1897
2761
|
mode: "fleet";
|
|
1898
2762
|
} | {
|
|
2763
|
+
error: string | null;
|
|
2764
|
+
local_only: boolean;
|
|
1899
2765
|
op: string;
|
|
1900
2766
|
reachable: boolean;
|
|
1901
|
-
local_only: boolean;
|
|
1902
2767
|
results: {
|
|
2768
|
+
detail: string | null;
|
|
2769
|
+
error: string | null;
|
|
1903
2770
|
name: string;
|
|
1904
|
-
outcome: "
|
|
2771
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1905
2772
|
payload: unknown;
|
|
1906
|
-
error: string | null;
|
|
1907
|
-
detail: string | null;
|
|
1908
2773
|
}[];
|
|
1909
|
-
error: string | null;
|
|
1910
2774
|
mode: "unreachable";
|
|
1911
2775
|
};
|
|
1912
2776
|
}>;
|
|
1913
2777
|
readonly removeToolsEntry: (title: string) => Promise<{
|
|
1914
|
-
|
|
2778
|
+
awaiting_respawn: {
|
|
2779
|
+
keys: string[];
|
|
2780
|
+
name: string;
|
|
2781
|
+
}[];
|
|
1915
2782
|
env_keys: number;
|
|
2783
|
+
recycle: {
|
|
2784
|
+
fresh: {
|
|
2785
|
+
generation: number;
|
|
2786
|
+
kind: string;
|
|
2787
|
+
name: string;
|
|
2788
|
+
}[];
|
|
2789
|
+
recycle: {
|
|
2790
|
+
detail: string | null;
|
|
2791
|
+
generation_before: number;
|
|
2792
|
+
kind: string;
|
|
2793
|
+
name: string;
|
|
2794
|
+
status: string;
|
|
2795
|
+
}[];
|
|
2796
|
+
recycle_stopped: {
|
|
2797
|
+
detail: string;
|
|
2798
|
+
kind: string;
|
|
2799
|
+
name: string | null;
|
|
2800
|
+
} | null;
|
|
2801
|
+
} | null;
|
|
2802
|
+
status: string;
|
|
1916
2803
|
fanout: {
|
|
1917
2804
|
mode: "local-only";
|
|
1918
2805
|
note: string;
|
|
1919
2806
|
} | {
|
|
2807
|
+
error: string | null;
|
|
2808
|
+
local_only: boolean;
|
|
1920
2809
|
op: string;
|
|
1921
2810
|
reachable: boolean;
|
|
1922
|
-
local_only: boolean;
|
|
1923
2811
|
results: {
|
|
2812
|
+
detail: string | null;
|
|
2813
|
+
error: string | null;
|
|
1924
2814
|
name: string;
|
|
1925
|
-
outcome: "
|
|
2815
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1926
2816
|
payload: unknown;
|
|
1927
|
-
error: string | null;
|
|
1928
|
-
detail: string | null;
|
|
1929
2817
|
}[];
|
|
1930
|
-
error: string | null;
|
|
1931
2818
|
mode: "fleet";
|
|
1932
2819
|
} | {
|
|
2820
|
+
error: string | null;
|
|
2821
|
+
local_only: boolean;
|
|
1933
2822
|
op: string;
|
|
1934
2823
|
reachable: boolean;
|
|
1935
|
-
local_only: boolean;
|
|
1936
2824
|
results: {
|
|
2825
|
+
detail: string | null;
|
|
2826
|
+
error: string | null;
|
|
1937
2827
|
name: string;
|
|
1938
|
-
outcome: "
|
|
2828
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1939
2829
|
payload: unknown;
|
|
1940
|
-
error: string | null;
|
|
1941
|
-
detail: string | null;
|
|
1942
2830
|
}[];
|
|
1943
|
-
error: string | null;
|
|
1944
2831
|
mode: "unreachable";
|
|
1945
2832
|
};
|
|
1946
2833
|
}>;
|
|
1947
2834
|
readonly addAgentsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
|
|
1948
|
-
|
|
2835
|
+
awaiting_respawn: {
|
|
2836
|
+
keys: string[];
|
|
2837
|
+
name: string;
|
|
2838
|
+
}[];
|
|
1949
2839
|
env_keys: number;
|
|
2840
|
+
recycle: {
|
|
2841
|
+
fresh: {
|
|
2842
|
+
generation: number;
|
|
2843
|
+
kind: string;
|
|
2844
|
+
name: string;
|
|
2845
|
+
}[];
|
|
2846
|
+
recycle: {
|
|
2847
|
+
detail: string | null;
|
|
2848
|
+
generation_before: number;
|
|
2849
|
+
kind: string;
|
|
2850
|
+
name: string;
|
|
2851
|
+
status: string;
|
|
2852
|
+
}[];
|
|
2853
|
+
recycle_stopped: {
|
|
2854
|
+
detail: string;
|
|
2855
|
+
kind: string;
|
|
2856
|
+
name: string | null;
|
|
2857
|
+
} | null;
|
|
2858
|
+
} | null;
|
|
2859
|
+
status: string;
|
|
1950
2860
|
fanout: {
|
|
1951
2861
|
mode: "local-only";
|
|
1952
2862
|
note: string;
|
|
1953
2863
|
} | {
|
|
2864
|
+
error: string | null;
|
|
2865
|
+
local_only: boolean;
|
|
1954
2866
|
op: string;
|
|
1955
2867
|
reachable: boolean;
|
|
1956
|
-
local_only: boolean;
|
|
1957
2868
|
results: {
|
|
2869
|
+
detail: string | null;
|
|
2870
|
+
error: string | null;
|
|
1958
2871
|
name: string;
|
|
1959
|
-
outcome: "
|
|
2872
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1960
2873
|
payload: unknown;
|
|
1961
|
-
error: string | null;
|
|
1962
|
-
detail: string | null;
|
|
1963
2874
|
}[];
|
|
1964
|
-
error: string | null;
|
|
1965
2875
|
mode: "fleet";
|
|
1966
2876
|
} | {
|
|
2877
|
+
error: string | null;
|
|
2878
|
+
local_only: boolean;
|
|
1967
2879
|
op: string;
|
|
1968
2880
|
reachable: boolean;
|
|
1969
|
-
local_only: boolean;
|
|
1970
2881
|
results: {
|
|
2882
|
+
detail: string | null;
|
|
2883
|
+
error: string | null;
|
|
1971
2884
|
name: string;
|
|
1972
|
-
outcome: "
|
|
2885
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1973
2886
|
payload: unknown;
|
|
1974
|
-
error: string | null;
|
|
1975
|
-
detail: string | null;
|
|
1976
2887
|
}[];
|
|
1977
|
-
error: string | null;
|
|
1978
2888
|
mode: "unreachable";
|
|
1979
2889
|
};
|
|
1980
2890
|
}>;
|
|
1981
2891
|
readonly removeAgentsEntry: (title: string) => Promise<{
|
|
1982
|
-
|
|
2892
|
+
awaiting_respawn: {
|
|
2893
|
+
keys: string[];
|
|
2894
|
+
name: string;
|
|
2895
|
+
}[];
|
|
1983
2896
|
env_keys: number;
|
|
2897
|
+
recycle: {
|
|
2898
|
+
fresh: {
|
|
2899
|
+
generation: number;
|
|
2900
|
+
kind: string;
|
|
2901
|
+
name: string;
|
|
2902
|
+
}[];
|
|
2903
|
+
recycle: {
|
|
2904
|
+
detail: string | null;
|
|
2905
|
+
generation_before: number;
|
|
2906
|
+
kind: string;
|
|
2907
|
+
name: string;
|
|
2908
|
+
status: string;
|
|
2909
|
+
}[];
|
|
2910
|
+
recycle_stopped: {
|
|
2911
|
+
detail: string;
|
|
2912
|
+
kind: string;
|
|
2913
|
+
name: string | null;
|
|
2914
|
+
} | null;
|
|
2915
|
+
} | null;
|
|
2916
|
+
status: string;
|
|
1984
2917
|
fanout: {
|
|
1985
2918
|
mode: "local-only";
|
|
1986
2919
|
note: string;
|
|
1987
2920
|
} | {
|
|
2921
|
+
error: string | null;
|
|
2922
|
+
local_only: boolean;
|
|
1988
2923
|
op: string;
|
|
1989
2924
|
reachable: boolean;
|
|
1990
|
-
local_only: boolean;
|
|
1991
2925
|
results: {
|
|
2926
|
+
detail: string | null;
|
|
2927
|
+
error: string | null;
|
|
1992
2928
|
name: string;
|
|
1993
|
-
outcome: "
|
|
2929
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
1994
2930
|
payload: unknown;
|
|
1995
|
-
error: string | null;
|
|
1996
|
-
detail: string | null;
|
|
1997
2931
|
}[];
|
|
1998
|
-
error: string | null;
|
|
1999
2932
|
mode: "fleet";
|
|
2000
2933
|
} | {
|
|
2934
|
+
error: string | null;
|
|
2935
|
+
local_only: boolean;
|
|
2001
2936
|
op: string;
|
|
2002
2937
|
reachable: boolean;
|
|
2003
|
-
local_only: boolean;
|
|
2004
2938
|
results: {
|
|
2939
|
+
detail: string | null;
|
|
2940
|
+
error: string | null;
|
|
2005
2941
|
name: string;
|
|
2006
|
-
outcome: "
|
|
2942
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2007
2943
|
payload: unknown;
|
|
2008
|
-
error: string | null;
|
|
2009
|
-
detail: string | null;
|
|
2010
2944
|
}[];
|
|
2011
|
-
error: string | null;
|
|
2012
2945
|
mode: "unreachable";
|
|
2013
2946
|
};
|
|
2014
2947
|
}>;
|
|
2015
2948
|
readonly updateApiTools: (body: import("./manifest-client").ApiToolsListsBody) => Promise<{
|
|
2016
|
-
|
|
2949
|
+
awaiting_respawn: {
|
|
2950
|
+
keys: string[];
|
|
2951
|
+
name: string;
|
|
2952
|
+
}[];
|
|
2017
2953
|
env_keys: number;
|
|
2954
|
+
recycle: {
|
|
2955
|
+
fresh: {
|
|
2956
|
+
generation: number;
|
|
2957
|
+
kind: string;
|
|
2958
|
+
name: string;
|
|
2959
|
+
}[];
|
|
2960
|
+
recycle: {
|
|
2961
|
+
detail: string | null;
|
|
2962
|
+
generation_before: number;
|
|
2963
|
+
kind: string;
|
|
2964
|
+
name: string;
|
|
2965
|
+
status: string;
|
|
2966
|
+
}[];
|
|
2967
|
+
recycle_stopped: {
|
|
2968
|
+
detail: string;
|
|
2969
|
+
kind: string;
|
|
2970
|
+
name: string | null;
|
|
2971
|
+
} | null;
|
|
2972
|
+
} | null;
|
|
2973
|
+
status: string;
|
|
2018
2974
|
fanout: {
|
|
2019
2975
|
mode: "local-only";
|
|
2020
2976
|
note: string;
|
|
2021
2977
|
} | {
|
|
2978
|
+
error: string | null;
|
|
2979
|
+
local_only: boolean;
|
|
2022
2980
|
op: string;
|
|
2023
2981
|
reachable: boolean;
|
|
2024
|
-
local_only: boolean;
|
|
2025
2982
|
results: {
|
|
2983
|
+
detail: string | null;
|
|
2984
|
+
error: string | null;
|
|
2026
2985
|
name: string;
|
|
2027
|
-
outcome: "
|
|
2986
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2028
2987
|
payload: unknown;
|
|
2029
|
-
error: string | null;
|
|
2030
|
-
detail: string | null;
|
|
2031
2988
|
}[];
|
|
2032
|
-
error: string | null;
|
|
2033
2989
|
mode: "fleet";
|
|
2034
2990
|
} | {
|
|
2991
|
+
error: string | null;
|
|
2992
|
+
local_only: boolean;
|
|
2035
2993
|
op: string;
|
|
2036
2994
|
reachable: boolean;
|
|
2037
|
-
local_only: boolean;
|
|
2038
2995
|
results: {
|
|
2996
|
+
detail: string | null;
|
|
2997
|
+
error: string | null;
|
|
2039
2998
|
name: string;
|
|
2040
|
-
outcome: "
|
|
2999
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2041
3000
|
payload: unknown;
|
|
2042
|
-
error: string | null;
|
|
2043
|
-
detail: string | null;
|
|
2044
3001
|
}[];
|
|
2045
|
-
error: string | null;
|
|
2046
3002
|
mode: "unreachable";
|
|
2047
3003
|
};
|
|
2048
3004
|
}>;
|
|
2049
3005
|
readonly listFailedMcps: (signal?: AbortSignal) => Promise<{
|
|
3006
|
+
error: string | null;
|
|
3007
|
+
local_only: boolean;
|
|
3008
|
+
ok: boolean;
|
|
2050
3009
|
op: string;
|
|
2051
3010
|
reachable: boolean;
|
|
2052
|
-
local_only: boolean;
|
|
2053
3011
|
results: {
|
|
3012
|
+
detail: string | null;
|
|
3013
|
+
error: string | null;
|
|
2054
3014
|
name: string;
|
|
2055
|
-
outcome: "
|
|
3015
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2056
3016
|
payload: unknown;
|
|
2057
|
-
error: string | null;
|
|
2058
|
-
detail: string | null;
|
|
2059
3017
|
}[];
|
|
2060
|
-
error: string | null;
|
|
2061
3018
|
}>;
|
|
2062
3019
|
readonly reloadFailedMcps: () => Promise<{
|
|
3020
|
+
error: string | null;
|
|
3021
|
+
local_only: boolean;
|
|
3022
|
+
ok: boolean;
|
|
2063
3023
|
op: string;
|
|
2064
3024
|
reachable: boolean;
|
|
2065
|
-
local_only: boolean;
|
|
2066
3025
|
results: {
|
|
3026
|
+
detail: string | null;
|
|
3027
|
+
error: string | null;
|
|
2067
3028
|
name: string;
|
|
2068
|
-
outcome: "
|
|
3029
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2069
3030
|
payload: unknown;
|
|
2070
|
-
error: string | null;
|
|
2071
|
-
detail: string | null;
|
|
2072
3031
|
}[];
|
|
2073
|
-
error: string | null;
|
|
2074
3032
|
}>;
|
|
2075
3033
|
readonly deregisterMcp: (title: string) => Promise<{
|
|
3034
|
+
error: string | null;
|
|
3035
|
+
local_only: boolean;
|
|
3036
|
+
ok: boolean;
|
|
2076
3037
|
op: string;
|
|
2077
3038
|
reachable: boolean;
|
|
2078
|
-
local_only: boolean;
|
|
2079
3039
|
results: {
|
|
3040
|
+
detail: string | null;
|
|
3041
|
+
error: string | null;
|
|
2080
3042
|
name: string;
|
|
2081
|
-
outcome: "
|
|
3043
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2082
3044
|
payload: unknown;
|
|
2083
|
-
error: string | null;
|
|
2084
|
-
detail: string | null;
|
|
2085
3045
|
}[];
|
|
2086
|
-
error: string | null;
|
|
2087
3046
|
}>;
|
|
2088
3047
|
readonly listTemplates: (signal?: AbortSignal) => Promise<string[]>;
|
|
2089
3048
|
readonly getTemplate: (templateId: string) => Promise<{
|
|
2090
|
-
template: string;
|
|
2091
3049
|
schema: Record<string, unknown>;
|
|
3050
|
+
template: string;
|
|
2092
3051
|
}>;
|
|
2093
3052
|
readonly uploadTemplate: (path: string, content: string) => Promise<{
|
|
3053
|
+
fanout: {
|
|
3054
|
+
error: string | null;
|
|
3055
|
+
local_only: boolean | null;
|
|
3056
|
+
mode: string;
|
|
3057
|
+
note: string | null;
|
|
3058
|
+
op: string | null;
|
|
3059
|
+
reachable: boolean | null;
|
|
3060
|
+
results: {
|
|
3061
|
+
detail: string | null;
|
|
3062
|
+
error: string | null;
|
|
3063
|
+
name: string;
|
|
3064
|
+
outcome: string;
|
|
3065
|
+
payload: unknown;
|
|
3066
|
+
}[] | null;
|
|
3067
|
+
};
|
|
2094
3068
|
path: string;
|
|
2095
|
-
uploaded:
|
|
3069
|
+
uploaded: boolean;
|
|
2096
3070
|
}>;
|
|
2097
3071
|
readonly deleteTemplate: (path: string) => Promise<{
|
|
3072
|
+
deleted: boolean;
|
|
3073
|
+
fanout: {
|
|
3074
|
+
error: string | null;
|
|
3075
|
+
local_only: boolean | null;
|
|
3076
|
+
mode: string;
|
|
3077
|
+
note: string | null;
|
|
3078
|
+
op: string | null;
|
|
3079
|
+
reachable: boolean | null;
|
|
3080
|
+
results: {
|
|
3081
|
+
detail: string | null;
|
|
3082
|
+
error: string | null;
|
|
3083
|
+
name: string;
|
|
3084
|
+
outcome: string;
|
|
3085
|
+
payload: unknown;
|
|
3086
|
+
}[] | null;
|
|
3087
|
+
};
|
|
2098
3088
|
path: string;
|
|
2099
|
-
deleted: true;
|
|
2100
3089
|
}>;
|
|
2101
3090
|
readonly deleteTemplateDir: (path: string) => Promise<{
|
|
3091
|
+
deleted: boolean;
|
|
3092
|
+
fanout: {
|
|
3093
|
+
error: string | null;
|
|
3094
|
+
local_only: boolean | null;
|
|
3095
|
+
mode: string;
|
|
3096
|
+
note: string | null;
|
|
3097
|
+
op: string | null;
|
|
3098
|
+
reachable: boolean | null;
|
|
3099
|
+
results: {
|
|
3100
|
+
detail: string | null;
|
|
3101
|
+
error: string | null;
|
|
3102
|
+
name: string;
|
|
3103
|
+
outcome: string;
|
|
3104
|
+
payload: unknown;
|
|
3105
|
+
}[] | null;
|
|
3106
|
+
};
|
|
2102
3107
|
path: string;
|
|
2103
|
-
deleted: true;
|
|
2104
3108
|
}>;
|
|
2105
3109
|
readonly renderTemplate: (text: import("..").TemplatedText) => Promise<{
|
|
2106
3110
|
rendered: string;
|
|
2107
3111
|
}>;
|
|
2108
3112
|
readonly clearTemplatesCache: () => Promise<{
|
|
2109
|
-
cleared:
|
|
3113
|
+
cleared: boolean;
|
|
3114
|
+
fanout: {
|
|
3115
|
+
error: string | null;
|
|
3116
|
+
local_only: boolean | null;
|
|
3117
|
+
mode: string;
|
|
3118
|
+
note: string | null;
|
|
3119
|
+
op: string | null;
|
|
3120
|
+
reachable: boolean | null;
|
|
3121
|
+
results: {
|
|
3122
|
+
detail: string | null;
|
|
3123
|
+
error: string | null;
|
|
3124
|
+
name: string;
|
|
3125
|
+
outcome: string;
|
|
3126
|
+
payload: unknown;
|
|
3127
|
+
}[] | null;
|
|
3128
|
+
};
|
|
2110
3129
|
}>;
|
|
2111
3130
|
readonly listExtensions: (signal?: AbortSignal) => Promise<{
|
|
2112
|
-
name: string;
|
|
2113
3131
|
kind: string;
|
|
3132
|
+
multiple: boolean;
|
|
3133
|
+
name: string;
|
|
2114
3134
|
}[]>;
|
|
2115
3135
|
readonly getToolExtensions: (name: string, signal?: AbortSignal) => Promise<{
|
|
3136
|
+
available: {
|
|
3137
|
+
kind: string;
|
|
3138
|
+
multiple: boolean;
|
|
3139
|
+
name: string;
|
|
3140
|
+
}[];
|
|
2116
3141
|
combos: (string | {
|
|
2117
3142
|
name: string;
|
|
2118
3143
|
config: Record<string, unknown>;
|
|
2119
3144
|
})[][];
|
|
2120
|
-
available: {
|
|
2121
|
-
name: string;
|
|
2122
|
-
kind: string;
|
|
2123
|
-
}[];
|
|
2124
3145
|
}>;
|
|
2125
3146
|
readonly setToolExtensions: (name: string, combos: readonly import("..").PresetExtensionElement[][]) => Promise<{
|
|
2126
|
-
|
|
3147
|
+
awaiting_respawn: {
|
|
3148
|
+
keys: string[];
|
|
3149
|
+
name: string;
|
|
3150
|
+
}[];
|
|
2127
3151
|
env_keys: number;
|
|
3152
|
+
recycle: {
|
|
3153
|
+
fresh: {
|
|
3154
|
+
generation: number;
|
|
3155
|
+
kind: string;
|
|
3156
|
+
name: string;
|
|
3157
|
+
}[];
|
|
3158
|
+
recycle: {
|
|
3159
|
+
detail: string | null;
|
|
3160
|
+
generation_before: number;
|
|
3161
|
+
kind: string;
|
|
3162
|
+
name: string;
|
|
3163
|
+
status: string;
|
|
3164
|
+
}[];
|
|
3165
|
+
recycle_stopped: {
|
|
3166
|
+
detail: string;
|
|
3167
|
+
kind: string;
|
|
3168
|
+
name: string | null;
|
|
3169
|
+
} | null;
|
|
3170
|
+
} | null;
|
|
3171
|
+
status: string;
|
|
2128
3172
|
fanout: {
|
|
2129
3173
|
mode: "local-only";
|
|
2130
3174
|
note: string;
|
|
2131
3175
|
} | {
|
|
3176
|
+
error: string | null;
|
|
3177
|
+
local_only: boolean;
|
|
2132
3178
|
op: string;
|
|
2133
3179
|
reachable: boolean;
|
|
2134
|
-
local_only: boolean;
|
|
2135
3180
|
results: {
|
|
3181
|
+
detail: string | null;
|
|
3182
|
+
error: string | null;
|
|
2136
3183
|
name: string;
|
|
2137
|
-
outcome: "
|
|
3184
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2138
3185
|
payload: unknown;
|
|
2139
|
-
error: string | null;
|
|
2140
|
-
detail: string | null;
|
|
2141
3186
|
}[];
|
|
2142
|
-
error: string | null;
|
|
2143
3187
|
mode: "fleet";
|
|
2144
3188
|
} | {
|
|
3189
|
+
error: string | null;
|
|
3190
|
+
local_only: boolean;
|
|
2145
3191
|
op: string;
|
|
2146
3192
|
reachable: boolean;
|
|
2147
|
-
local_only: boolean;
|
|
2148
3193
|
results: {
|
|
3194
|
+
detail: string | null;
|
|
3195
|
+
error: string | null;
|
|
2149
3196
|
name: string;
|
|
2150
|
-
outcome: "
|
|
3197
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2151
3198
|
payload: unknown;
|
|
2152
|
-
error: string | null;
|
|
2153
|
-
detail: string | null;
|
|
2154
3199
|
}[];
|
|
2155
|
-
error: string | null;
|
|
2156
3200
|
mode: "unreachable";
|
|
2157
3201
|
};
|
|
2158
3202
|
}>;
|
|
2159
3203
|
readonly getBackendInfo: (signal?: AbortSignal) => Promise<{
|
|
2160
|
-
present: boolean;
|
|
2161
3204
|
backend: string | null;
|
|
2162
3205
|
module: string | null;
|
|
3206
|
+
present: boolean;
|
|
2163
3207
|
}>;
|
|
2164
3208
|
readonly listFleetWorkers: (signal?: AbortSignal) => Promise<{
|
|
2165
3209
|
workers: {
|
|
2166
|
-
|
|
2167
|
-
kind: "backend" | "serve";
|
|
2168
|
-
pid: number;
|
|
3210
|
+
beat_at: string;
|
|
2169
3211
|
generation: number;
|
|
2170
3212
|
joined_at: string;
|
|
2171
|
-
|
|
2172
|
-
state: "ready" | "resyncing" | "recycling";
|
|
2173
|
-
stale: boolean;
|
|
3213
|
+
kind: "backend" | "serve";
|
|
2174
3214
|
last_op: {
|
|
3215
|
+
at: string;
|
|
2175
3216
|
op: string;
|
|
2176
3217
|
outcome: string;
|
|
2177
|
-
at: string;
|
|
2178
3218
|
} | null;
|
|
3219
|
+
name: string;
|
|
3220
|
+
pid: number;
|
|
3221
|
+
stale: boolean;
|
|
3222
|
+
state: "resyncing" | "recycling" | "ready";
|
|
2179
3223
|
}[];
|
|
2180
3224
|
}>;
|
|
2181
3225
|
readonly reloadFleetConfig: (targets: string[] | null) => Promise<{
|
|
3226
|
+
error: string | null;
|
|
3227
|
+
local_only: boolean;
|
|
3228
|
+
ok: boolean;
|
|
2182
3229
|
op: string;
|
|
2183
3230
|
reachable: boolean;
|
|
2184
|
-
local_only: boolean;
|
|
2185
3231
|
results: {
|
|
3232
|
+
detail: string | null;
|
|
3233
|
+
error: string | null;
|
|
2186
3234
|
name: string;
|
|
2187
|
-
outcome: "
|
|
3235
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2188
3236
|
payload: unknown;
|
|
2189
|
-
error: string | null;
|
|
2190
|
-
detail: string | null;
|
|
2191
3237
|
}[];
|
|
2192
|
-
error: string | null;
|
|
2193
3238
|
}>;
|
|
2194
3239
|
readonly getStorageInfo: (signal?: AbortSignal) => Promise<{
|
|
3240
|
+
module: string | null;
|
|
2195
3241
|
present: boolean;
|
|
2196
3242
|
provider: string | null;
|
|
2197
|
-
module: string | null;
|
|
2198
3243
|
}>;
|
|
2199
3244
|
readonly listStorageResources: (signal?: AbortSignal) => Promise<{
|
|
2200
3245
|
resources: string[];
|
|
2201
3246
|
}>;
|
|
2202
3247
|
readonly statStorageResource: (id: string, signal?: AbortSignal) => Promise<{
|
|
2203
|
-
id: string;
|
|
2204
3248
|
content_type: string | null;
|
|
3249
|
+
id: string;
|
|
2205
3250
|
}>;
|
|
2206
3251
|
readonly downloadStorageResource: (id: string, signal?: AbortSignal) => Promise<Blob>;
|
|
2207
3252
|
readonly uploadStorageResource: (body: import("./storage-client").StorageUploadBody) => Promise<{
|
|
2208
3253
|
id: string;
|
|
2209
|
-
stored:
|
|
3254
|
+
stored: boolean;
|
|
2210
3255
|
}>;
|
|
2211
3256
|
readonly deleteStorageResource: (id: string) => Promise<{
|
|
3257
|
+
deleted: boolean;
|
|
2212
3258
|
id: string;
|
|
2213
|
-
deleted: true;
|
|
2214
3259
|
}>;
|
|
2215
3260
|
readonly deleteStorageDir: (path: string) => Promise<{
|
|
3261
|
+
deleted: boolean;
|
|
2216
3262
|
dir: string;
|
|
2217
|
-
deleted: true;
|
|
2218
3263
|
}>;
|
|
2219
3264
|
readonly listToolMeta: (signal?: AbortSignal) => Promise<{
|
|
2220
3265
|
folders: {
|
|
@@ -2223,25 +3268,25 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2223
3268
|
parent_id: string | null;
|
|
2224
3269
|
}[];
|
|
2225
3270
|
meta: {
|
|
2226
|
-
|
|
3271
|
+
badges: string[];
|
|
2227
3272
|
display_name: string | null;
|
|
2228
3273
|
folder_id: string | null;
|
|
2229
|
-
tags: string[];
|
|
2230
|
-
badges: string[];
|
|
2231
3274
|
hidden: boolean | null;
|
|
3275
|
+
tags: string[];
|
|
3276
|
+
tool_name: string;
|
|
2232
3277
|
}[];
|
|
2233
3278
|
}>;
|
|
2234
3279
|
readonly upsertToolMeta: (toolName: string, patch: import("./tool-meta-client").ToolMetaPatch) => Promise<{
|
|
2235
|
-
|
|
3280
|
+
badges: string[];
|
|
2236
3281
|
display_name: string | null;
|
|
2237
3282
|
folder_id: string | null;
|
|
2238
|
-
tags: string[];
|
|
2239
|
-
badges: string[];
|
|
2240
3283
|
hidden: boolean | null;
|
|
3284
|
+
tags: string[];
|
|
3285
|
+
tool_name: string;
|
|
2241
3286
|
}>;
|
|
2242
3287
|
readonly deleteToolMeta: (toolName: string) => Promise<{
|
|
3288
|
+
deleted: boolean;
|
|
2243
3289
|
tool_name: string;
|
|
2244
|
-
deleted: true;
|
|
2245
3290
|
}>;
|
|
2246
3291
|
readonly createFolder: (name: string, parentId?: string | null) => Promise<{
|
|
2247
3292
|
id: string;
|
|
@@ -2259,15 +3304,18 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2259
3304
|
parent_id: string | null;
|
|
2260
3305
|
}>;
|
|
2261
3306
|
readonly deleteFolder: (folderId: string) => Promise<{
|
|
3307
|
+
deleted: boolean;
|
|
2262
3308
|
folder_id: string;
|
|
2263
|
-
deleted: true;
|
|
2264
3309
|
}>;
|
|
2265
3310
|
readonly listStates: (signal?: AbortSignal) => Promise<{
|
|
2266
3311
|
default_subject_kind: string;
|
|
2267
3312
|
description: string;
|
|
2268
3313
|
effective_schema: Record<string, unknown> | null;
|
|
2269
3314
|
name: string;
|
|
2270
|
-
regimes:
|
|
3315
|
+
regimes: {
|
|
3316
|
+
path: string[];
|
|
3317
|
+
regime: "single" | "composing" | "free";
|
|
3318
|
+
}[] | null;
|
|
2271
3319
|
retention_days: number | null;
|
|
2272
3320
|
subject_kinds: string[];
|
|
2273
3321
|
updated_at: string | null;
|
|
@@ -2282,15 +3330,18 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2282
3330
|
description: string;
|
|
2283
3331
|
effective_schema: Record<string, unknown> | null;
|
|
2284
3332
|
name: string;
|
|
2285
|
-
regimes:
|
|
3333
|
+
regimes: {
|
|
3334
|
+
path: string[];
|
|
3335
|
+
regime: "single" | "composing" | "free";
|
|
3336
|
+
}[] | null;
|
|
2286
3337
|
retention_days: number | null;
|
|
2287
3338
|
subject_kinds: string[];
|
|
2288
3339
|
updated_at: string | null;
|
|
2289
3340
|
attachments: {
|
|
2290
|
-
template: string;
|
|
2291
|
-
path: string[];
|
|
2292
|
-
parameters: Record<string, unknown>;
|
|
2293
3341
|
declarations: Record<string, unknown>;
|
|
3342
|
+
parameters: Record<string, unknown>;
|
|
3343
|
+
path: string[];
|
|
3344
|
+
template: string;
|
|
2294
3345
|
}[];
|
|
2295
3346
|
schema?: Record<string, unknown> | {
|
|
2296
3347
|
content?: string | undefined;
|
|
@@ -2303,16 +3354,23 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2303
3354
|
description: string;
|
|
2304
3355
|
effective_schema: Record<string, unknown> | null;
|
|
2305
3356
|
name: string;
|
|
2306
|
-
regimes:
|
|
3357
|
+
regimes: {
|
|
3358
|
+
path: string[];
|
|
3359
|
+
regime: "single" | "composing" | "free";
|
|
3360
|
+
}[] | null;
|
|
2307
3361
|
retention_days: number | null;
|
|
2308
3362
|
subject_kinds: string[];
|
|
2309
3363
|
updated_at: string | null;
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
3364
|
+
held?: {
|
|
3365
|
+
held_by: string;
|
|
3366
|
+
save_id: string;
|
|
3367
|
+
subjects: {
|
|
3368
|
+
key: string;
|
|
3369
|
+
kind: string;
|
|
3370
|
+
target_kind: "tool" | "agent";
|
|
3371
|
+
target_name: string;
|
|
3372
|
+
}[];
|
|
3373
|
+
}[] | undefined;
|
|
2316
3374
|
schema?: Record<string, unknown> | {
|
|
2317
3375
|
content?: string | undefined;
|
|
2318
3376
|
id?: string | undefined;
|
|
@@ -2320,138 +3378,179 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2320
3378
|
} | undefined;
|
|
2321
3379
|
}>;
|
|
2322
3380
|
readonly deleteState: (name: string) => Promise<{
|
|
3381
|
+
deleted: boolean;
|
|
2323
3382
|
name: string;
|
|
2324
|
-
deleted: true;
|
|
2325
3383
|
}>;
|
|
2326
3384
|
readonly getStateStats: (name: string, signal?: AbortSignal) => Promise<{
|
|
2327
|
-
|
|
3385
|
+
consumers: number;
|
|
2328
3386
|
per_field: Record<string, number>;
|
|
2329
3387
|
per_kind: Record<string, number>;
|
|
2330
|
-
|
|
3388
|
+
records: number;
|
|
3389
|
+
held?: {
|
|
3390
|
+
held_by: string;
|
|
3391
|
+
save_id: string;
|
|
3392
|
+
subjects: {
|
|
3393
|
+
key: string;
|
|
3394
|
+
kind: string;
|
|
3395
|
+
target_kind: "tool" | "agent";
|
|
3396
|
+
target_name: string;
|
|
3397
|
+
}[];
|
|
3398
|
+
}[] | undefined;
|
|
2331
3399
|
}>;
|
|
2332
3400
|
readonly listStateAttachments: (name: string, signal?: AbortSignal) => Promise<{
|
|
2333
|
-
template: string;
|
|
2334
|
-
path: string[];
|
|
2335
|
-
parameters: Record<string, unknown>;
|
|
2336
3401
|
declarations: Record<string, unknown>;
|
|
3402
|
+
parameters: Record<string, unknown>;
|
|
3403
|
+
path: string[];
|
|
3404
|
+
state: string;
|
|
3405
|
+
template: string;
|
|
2337
3406
|
}[]>;
|
|
2338
3407
|
readonly getStateAttachment: (name: string, template: string, signal?: AbortSignal) => Promise<{
|
|
2339
|
-
template: string;
|
|
2340
|
-
path: string[];
|
|
2341
|
-
parameters: Record<string, unknown>;
|
|
2342
3408
|
declarations: Record<string, unknown>;
|
|
3409
|
+
parameters: Record<string, unknown>;
|
|
3410
|
+
path: string[];
|
|
3411
|
+
template: string;
|
|
2343
3412
|
}>;
|
|
2344
3413
|
readonly attachStateTemplate: (name: string, template: string, body: import("./states-client").StateAttachmentBody) => Promise<{
|
|
2345
|
-
attached:
|
|
3414
|
+
attached: boolean;
|
|
2346
3415
|
state: string;
|
|
2347
3416
|
template: string;
|
|
3417
|
+
held?: {
|
|
3418
|
+
held_by: string;
|
|
3419
|
+
save_id: string;
|
|
3420
|
+
subjects: {
|
|
3421
|
+
key: string;
|
|
3422
|
+
kind: string;
|
|
3423
|
+
target_kind: "tool" | "agent";
|
|
3424
|
+
target_name: string;
|
|
3425
|
+
}[];
|
|
3426
|
+
}[] | undefined;
|
|
2348
3427
|
}>;
|
|
2349
3428
|
readonly patchStateAttachment: (name: string, template: string, body: import("./states-client").StateAttachmentBody) => Promise<{
|
|
2350
|
-
updated: true;
|
|
2351
3429
|
state: string;
|
|
2352
3430
|
template: string;
|
|
3431
|
+
updated: boolean;
|
|
2353
3432
|
}>;
|
|
2354
3433
|
readonly detachStateTemplate: (name: string, template: string) => Promise<{
|
|
2355
|
-
detached:
|
|
3434
|
+
detached: boolean;
|
|
2356
3435
|
state: string;
|
|
2357
3436
|
template: string;
|
|
2358
3437
|
}>;
|
|
2359
3438
|
readonly listStateSubjects: (name: string, params: {
|
|
2360
3439
|
kind?: string;
|
|
2361
3440
|
} & import("./states-client").StatePageQuery, signal?: AbortSignal) => Promise<{
|
|
3441
|
+
next_cursor: string | null;
|
|
2362
3442
|
subjects: {
|
|
2363
3443
|
subject: {
|
|
3444
|
+
key: string;
|
|
3445
|
+
kind: string;
|
|
2364
3446
|
target_kind: "tool" | "agent";
|
|
2365
3447
|
target_name: string;
|
|
2366
|
-
kind: string;
|
|
2367
|
-
key: string;
|
|
2368
3448
|
};
|
|
2369
3449
|
updated_at: number;
|
|
2370
3450
|
}[];
|
|
2371
|
-
|
|
3451
|
+
held?: {
|
|
3452
|
+
held_by: string;
|
|
3453
|
+
save_id: string;
|
|
3454
|
+
subjects: {
|
|
3455
|
+
key: string;
|
|
3456
|
+
kind: string;
|
|
3457
|
+
target_kind: "tool" | "agent";
|
|
3458
|
+
target_name: string;
|
|
3459
|
+
}[];
|
|
3460
|
+
}[] | undefined;
|
|
2372
3461
|
}>;
|
|
2373
3462
|
readonly searchStateRecords: (name: string, body: {
|
|
2374
3463
|
filters: Record<string, unknown>;
|
|
2375
3464
|
} & import("./states-client").StatePageQuery, signal?: AbortSignal) => Promise<{
|
|
2376
3465
|
matches: {
|
|
2377
3466
|
subject: {
|
|
3467
|
+
key: string;
|
|
3468
|
+
kind: string;
|
|
2378
3469
|
target_kind: "tool" | "agent";
|
|
2379
3470
|
target_name: string;
|
|
2380
|
-
kind: string;
|
|
2381
|
-
key: string;
|
|
2382
3471
|
};
|
|
2383
3472
|
updated_at: number;
|
|
2384
3473
|
}[];
|
|
2385
3474
|
next_cursor: string | null;
|
|
3475
|
+
held?: {
|
|
3476
|
+
held_by: string;
|
|
3477
|
+
save_id: string;
|
|
3478
|
+
subjects: {
|
|
3479
|
+
key: string;
|
|
3480
|
+
kind: string;
|
|
3481
|
+
target_kind: "tool" | "agent";
|
|
3482
|
+
target_name: string;
|
|
3483
|
+
}[];
|
|
3484
|
+
}[] | undefined;
|
|
2386
3485
|
}>;
|
|
2387
3486
|
readonly getStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, signal?: AbortSignal) => Promise<{
|
|
2388
|
-
state: string;
|
|
2389
|
-
subject: {
|
|
2390
|
-
target_kind: "tool" | "agent";
|
|
2391
|
-
target_name: string;
|
|
2392
|
-
kind: string;
|
|
2393
|
-
key: string;
|
|
2394
|
-
};
|
|
2395
|
-
data: Record<string, unknown>;
|
|
2396
|
-
seq: number;
|
|
2397
3487
|
canonical_subject: {
|
|
3488
|
+
key: string;
|
|
3489
|
+
kind: string;
|
|
2398
3490
|
target_kind: "tool" | "agent";
|
|
2399
3491
|
target_name: string;
|
|
2400
|
-
kind: string;
|
|
2401
|
-
key: string;
|
|
2402
3492
|
};
|
|
3493
|
+
data: Record<string, unknown>;
|
|
2403
3494
|
folded_from: {
|
|
3495
|
+
key: string;
|
|
3496
|
+
kind: string;
|
|
2404
3497
|
target_kind: "tool" | "agent";
|
|
2405
3498
|
target_name: string;
|
|
2406
|
-
kind: string;
|
|
2407
|
-
key: string;
|
|
2408
3499
|
}[];
|
|
2409
|
-
|
|
2410
|
-
readonly putStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
|
|
3500
|
+
seq: number;
|
|
2411
3501
|
state: string;
|
|
2412
3502
|
subject: {
|
|
3503
|
+
key: string;
|
|
3504
|
+
kind: string;
|
|
2413
3505
|
target_kind: "tool" | "agent";
|
|
2414
3506
|
target_name: string;
|
|
2415
|
-
kind: string;
|
|
2416
|
-
key: string;
|
|
2417
3507
|
};
|
|
2418
|
-
|
|
2419
|
-
|
|
3508
|
+
} | null>;
|
|
3509
|
+
readonly putStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
|
|
2420
3510
|
canonical_subject: {
|
|
3511
|
+
key: string;
|
|
3512
|
+
kind: string;
|
|
2421
3513
|
target_kind: "tool" | "agent";
|
|
2422
3514
|
target_name: string;
|
|
2423
|
-
kind: string;
|
|
2424
|
-
key: string;
|
|
2425
3515
|
};
|
|
3516
|
+
data: Record<string, unknown>;
|
|
2426
3517
|
folded_from: {
|
|
3518
|
+
key: string;
|
|
3519
|
+
kind: string;
|
|
2427
3520
|
target_kind: "tool" | "agent";
|
|
2428
3521
|
target_name: string;
|
|
2429
|
-
kind: string;
|
|
2430
|
-
key: string;
|
|
2431
3522
|
}[];
|
|
2432
|
-
|
|
2433
|
-
readonly patchStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
|
|
3523
|
+
seq: number;
|
|
2434
3524
|
state: string;
|
|
2435
3525
|
subject: {
|
|
3526
|
+
key: string;
|
|
3527
|
+
kind: string;
|
|
3528
|
+
target_kind: "tool" | "agent";
|
|
3529
|
+
target_name: string;
|
|
3530
|
+
};
|
|
3531
|
+
}>;
|
|
3532
|
+
readonly patchStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
|
|
3533
|
+
canonical_subject: {
|
|
3534
|
+
key: string;
|
|
3535
|
+
kind: string;
|
|
2436
3536
|
target_kind: "tool" | "agent";
|
|
2437
3537
|
target_name: string;
|
|
2438
|
-
kind: string;
|
|
2439
|
-
key: string;
|
|
2440
3538
|
};
|
|
2441
3539
|
data: Record<string, unknown>;
|
|
2442
|
-
|
|
2443
|
-
|
|
3540
|
+
folded_from: {
|
|
3541
|
+
key: string;
|
|
3542
|
+
kind: string;
|
|
2444
3543
|
target_kind: "tool" | "agent";
|
|
2445
3544
|
target_name: string;
|
|
2446
|
-
|
|
3545
|
+
}[];
|
|
3546
|
+
seq: number;
|
|
3547
|
+
state: string;
|
|
3548
|
+
subject: {
|
|
2447
3549
|
key: string;
|
|
2448
|
-
|
|
2449
|
-
folded_from: {
|
|
3550
|
+
kind: string;
|
|
2450
3551
|
target_kind: "tool" | "agent";
|
|
2451
3552
|
target_name: string;
|
|
2452
|
-
|
|
2453
|
-
key: string;
|
|
2454
|
-
}[];
|
|
3553
|
+
};
|
|
2455
3554
|
}>;
|
|
2456
3555
|
readonly applyStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, ops: readonly Record<string, unknown>[]) => Promise<{
|
|
2457
3556
|
applied: boolean;
|
|
@@ -2468,55 +3567,56 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2468
3567
|
input?: unknown;
|
|
2469
3568
|
op_id?: string;
|
|
2470
3569
|
}) => Promise<{
|
|
2471
|
-
name: string;
|
|
2472
3570
|
applied: boolean;
|
|
2473
3571
|
data: Record<string, unknown> | null;
|
|
3572
|
+
name: string;
|
|
2474
3573
|
seq: number | null;
|
|
2475
3574
|
skipped: Record<string, unknown>[];
|
|
2476
3575
|
}>;
|
|
2477
3576
|
readonly deleteStateRecord: (name: string, subject: import("./states-client").StateSubjectRef) => Promise<{
|
|
2478
|
-
erased:
|
|
3577
|
+
erased: boolean;
|
|
2479
3578
|
}>;
|
|
2480
3579
|
readonly foldStateRecord: (name: string, subject: import("./states-client").StateSubjectRef, into: import("./states-client").StateSubjectRef, mode: "switch" | "merge") => Promise<{
|
|
2481
|
-
|
|
3580
|
+
already: boolean;
|
|
3581
|
+
flattened: number;
|
|
2482
3582
|
from: {
|
|
2483
|
-
kind: string;
|
|
2484
3583
|
key: string;
|
|
3584
|
+
kind: string;
|
|
2485
3585
|
};
|
|
2486
3586
|
into: {
|
|
2487
|
-
kind: string;
|
|
2488
3587
|
key: string;
|
|
3588
|
+
kind: string;
|
|
2489
3589
|
};
|
|
2490
|
-
|
|
2491
|
-
|
|
3590
|
+
merged_members: string[] | null;
|
|
3591
|
+
mode: "switch" | "merge";
|
|
2492
3592
|
}>;
|
|
2493
3593
|
readonly listStateWrites: (name: string, subject: import("./states-client").StateSubjectRef, params?: import("./states-client").StatePageQuery, signal?: AbortSignal) => Promise<{
|
|
2494
3594
|
items: {
|
|
2495
|
-
seq: number;
|
|
2496
3595
|
at: string;
|
|
2497
3596
|
origin: {
|
|
3597
|
+
actor: string | null;
|
|
2498
3598
|
consumer: string | null;
|
|
3599
|
+
door: "tool" | "api" | "conversation" | "hook" | "schedule" | "operator";
|
|
3600
|
+
inbound_id: string | null;
|
|
2499
3601
|
meta: Record<string, unknown> | null;
|
|
2500
|
-
run_id: string | null;
|
|
2501
3602
|
op_id: string | null;
|
|
2502
|
-
|
|
2503
|
-
actor: string | null;
|
|
3603
|
+
run_id: string | null;
|
|
2504
3604
|
turn_id: string | null;
|
|
2505
|
-
inbound_id: string | null;
|
|
2506
3605
|
};
|
|
2507
3606
|
paths: (string | number)[][];
|
|
3607
|
+
seq: number;
|
|
2508
3608
|
}[];
|
|
2509
3609
|
next_cursor: string | null;
|
|
2510
3610
|
}>;
|
|
2511
3611
|
readonly stateConsumers: (name: string, signal?: AbortSignal) => Promise<{
|
|
2512
|
-
kind: string;
|
|
2513
|
-
name: string | null;
|
|
2514
3612
|
detail: string | null;
|
|
3613
|
+
kind: string;
|
|
2515
3614
|
link: {
|
|
2516
|
-
token: string | null;
|
|
2517
3615
|
plugin_path: string | null;
|
|
2518
3616
|
search: Record<string, unknown> | null;
|
|
3617
|
+
token: string | null;
|
|
2519
3618
|
} | null;
|
|
3619
|
+
name: string | null;
|
|
2520
3620
|
unavailable: string | null;
|
|
2521
3621
|
}[]>;
|
|
2522
3622
|
readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
|
|
@@ -2531,7 +3631,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2531
3631
|
description: string;
|
|
2532
3632
|
kind: "state-template";
|
|
2533
3633
|
name: string;
|
|
2534
|
-
parameters: Record<string,
|
|
3634
|
+
parameters: Record<string, {
|
|
3635
|
+
schema: Record<string, unknown>;
|
|
3636
|
+
default?: unknown;
|
|
3637
|
+
}>;
|
|
2535
3638
|
reconcile: {
|
|
2536
3639
|
close: {
|
|
2537
3640
|
content?: string | undefined;
|
|
@@ -2549,7 +3652,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2549
3652
|
kwargs?: Record<string, unknown> | undefined;
|
|
2550
3653
|
};
|
|
2551
3654
|
} | null;
|
|
2552
|
-
regimes:
|
|
3655
|
+
regimes: {
|
|
3656
|
+
path: string[];
|
|
3657
|
+
regime: "single" | "composing" | "free";
|
|
3658
|
+
}[];
|
|
2553
3659
|
template_jq: Record<string, {
|
|
2554
3660
|
description: string;
|
|
2555
3661
|
jq: {
|
|
@@ -2562,7 +3668,6 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2562
3668
|
reads: string[][];
|
|
2563
3669
|
writes: string[][];
|
|
2564
3670
|
}> | null;
|
|
2565
|
-
trace: Record<string, unknown>;
|
|
2566
3671
|
attached_to: number;
|
|
2567
3672
|
shipped_default: boolean;
|
|
2568
3673
|
schema?: Record<string, unknown> | {
|
|
@@ -2570,6 +3675,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2570
3675
|
id?: string | undefined;
|
|
2571
3676
|
kwargs?: Record<string, unknown> | undefined;
|
|
2572
3677
|
} | undefined;
|
|
3678
|
+
trace?: {
|
|
3679
|
+
enabled: boolean;
|
|
3680
|
+
} | undefined;
|
|
2573
3681
|
}[]>;
|
|
2574
3682
|
readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
|
|
2575
3683
|
declarations: {
|
|
@@ -2583,7 +3691,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2583
3691
|
description: string;
|
|
2584
3692
|
kind: "state-template";
|
|
2585
3693
|
name: string;
|
|
2586
|
-
parameters: Record<string,
|
|
3694
|
+
parameters: Record<string, {
|
|
3695
|
+
schema: Record<string, unknown>;
|
|
3696
|
+
default?: unknown;
|
|
3697
|
+
}>;
|
|
2587
3698
|
reconcile: {
|
|
2588
3699
|
close: {
|
|
2589
3700
|
content?: string | undefined;
|
|
@@ -2601,7 +3712,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2601
3712
|
kwargs?: Record<string, unknown> | undefined;
|
|
2602
3713
|
};
|
|
2603
3714
|
} | null;
|
|
2604
|
-
regimes:
|
|
3715
|
+
regimes: {
|
|
3716
|
+
path: string[];
|
|
3717
|
+
regime: "single" | "composing" | "free";
|
|
3718
|
+
}[];
|
|
2605
3719
|
template_jq: Record<string, {
|
|
2606
3720
|
description: string;
|
|
2607
3721
|
jq: {
|
|
@@ -2614,12 +3728,14 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2614
3728
|
reads: string[][];
|
|
2615
3729
|
writes: string[][];
|
|
2616
3730
|
}> | null;
|
|
2617
|
-
trace: Record<string, unknown>;
|
|
2618
3731
|
schema?: Record<string, unknown> | {
|
|
2619
3732
|
content?: string | undefined;
|
|
2620
3733
|
id?: string | undefined;
|
|
2621
3734
|
kwargs?: Record<string, unknown> | undefined;
|
|
2622
3735
|
} | undefined;
|
|
3736
|
+
trace?: {
|
|
3737
|
+
enabled: boolean;
|
|
3738
|
+
} | undefined;
|
|
2623
3739
|
}>;
|
|
2624
3740
|
readonly putStateTemplate: (name: string, body: import("./states-client").StateTemplateBody, replace?: boolean) => Promise<{
|
|
2625
3741
|
declarations: {
|
|
@@ -2633,7 +3749,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2633
3749
|
description: string;
|
|
2634
3750
|
kind: "state-template";
|
|
2635
3751
|
name: string;
|
|
2636
|
-
parameters: Record<string,
|
|
3752
|
+
parameters: Record<string, {
|
|
3753
|
+
schema: Record<string, unknown>;
|
|
3754
|
+
default?: unknown;
|
|
3755
|
+
}>;
|
|
2637
3756
|
reconcile: {
|
|
2638
3757
|
close: {
|
|
2639
3758
|
content?: string | undefined;
|
|
@@ -2651,7 +3770,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2651
3770
|
kwargs?: Record<string, unknown> | undefined;
|
|
2652
3771
|
};
|
|
2653
3772
|
} | null;
|
|
2654
|
-
regimes:
|
|
3773
|
+
regimes: {
|
|
3774
|
+
path: string[];
|
|
3775
|
+
regime: "single" | "composing" | "free";
|
|
3776
|
+
}[];
|
|
2655
3777
|
template_jq: Record<string, {
|
|
2656
3778
|
description: string;
|
|
2657
3779
|
jq: {
|
|
@@ -2664,70 +3786,124 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2664
3786
|
reads: string[][];
|
|
2665
3787
|
writes: string[][];
|
|
2666
3788
|
}> | null;
|
|
2667
|
-
trace: Record<string, unknown>;
|
|
2668
3789
|
schema?: Record<string, unknown> | {
|
|
2669
3790
|
content?: string | undefined;
|
|
2670
3791
|
id?: string | undefined;
|
|
2671
3792
|
kwargs?: Record<string, unknown> | undefined;
|
|
2672
3793
|
} | undefined;
|
|
3794
|
+
trace?: {
|
|
3795
|
+
enabled: boolean;
|
|
3796
|
+
} | undefined;
|
|
2673
3797
|
}>;
|
|
2674
3798
|
readonly deleteStateTemplate: (name: string) => Promise<{
|
|
3799
|
+
deleted: boolean;
|
|
2675
3800
|
name: string;
|
|
2676
|
-
deleted: true;
|
|
2677
3801
|
}>;
|
|
2678
3802
|
readonly pruneStateRetention: () => Promise<{
|
|
2679
3803
|
pruned: Record<string, number>;
|
|
3804
|
+
held?: {
|
|
3805
|
+
held_by: string;
|
|
3806
|
+
save_id: string;
|
|
3807
|
+
subjects: {
|
|
3808
|
+
key: string;
|
|
3809
|
+
kind: string;
|
|
3810
|
+
target_kind: "tool" | "agent";
|
|
3811
|
+
target_name: string;
|
|
3812
|
+
}[];
|
|
3813
|
+
}[] | undefined;
|
|
3814
|
+
}>;
|
|
3815
|
+
readonly listPendingSaves: (params: {
|
|
3816
|
+
status?: "outstanding" | "failed";
|
|
3817
|
+
} & import("./states-client").StatePageQuery, signal?: AbortSignal) => Promise<{
|
|
3818
|
+
failed: number;
|
|
3819
|
+
items: {
|
|
3820
|
+
attempts: number;
|
|
3821
|
+
calls: {
|
|
3822
|
+
kind: string;
|
|
3823
|
+
target: string;
|
|
3824
|
+
}[];
|
|
3825
|
+
created_at: string;
|
|
3826
|
+
failed_at: string | null;
|
|
3827
|
+
failed_phase: "calls" | "records" | null;
|
|
3828
|
+
id: string;
|
|
3829
|
+
last_error: string | null;
|
|
3830
|
+
run_id: string | null;
|
|
3831
|
+
states: string[];
|
|
3832
|
+
status: "running" | "failed" | "calls" | "pending";
|
|
3833
|
+
subjects: {
|
|
3834
|
+
state: string;
|
|
3835
|
+
subject: {
|
|
3836
|
+
key: string;
|
|
3837
|
+
kind: string;
|
|
3838
|
+
target_kind: "tool" | "agent";
|
|
3839
|
+
target_name: string;
|
|
3840
|
+
};
|
|
3841
|
+
}[];
|
|
3842
|
+
}[];
|
|
3843
|
+
next_cursor: string | null;
|
|
3844
|
+
outstanding: number;
|
|
3845
|
+
}>;
|
|
3846
|
+
readonly retryPendingSave: (id: string) => Promise<{
|
|
3847
|
+
id: string;
|
|
3848
|
+
last_error: string | null;
|
|
3849
|
+
status: "running" | "applied" | "failed" | "calls" | "pending";
|
|
3850
|
+
}>;
|
|
3851
|
+
readonly discardPendingSave: (id: string) => Promise<{
|
|
3852
|
+
discarded: string;
|
|
2680
3853
|
}>;
|
|
2681
3854
|
readonly listPresets: (signal?: AbortSignal) => Promise<{
|
|
2682
|
-
|
|
3855
|
+
active_version: number;
|
|
2683
3856
|
base_tool: string;
|
|
3857
|
+
conflicted: boolean;
|
|
3858
|
+
conflicted_reason: string | null;
|
|
2684
3859
|
description: string;
|
|
2685
|
-
|
|
3860
|
+
input_schema: Record<string, unknown> | null;
|
|
3861
|
+
name: string;
|
|
3862
|
+
output_schema: Record<string, unknown> | null;
|
|
3863
|
+
used_by: string[];
|
|
3864
|
+
uses: string[];
|
|
2686
3865
|
extensions: (string | {
|
|
2687
3866
|
name: string;
|
|
2688
3867
|
config: Record<string, unknown>;
|
|
2689
3868
|
})[][];
|
|
2690
|
-
output_schema: Record<string, unknown> | null;
|
|
2691
|
-
input_schema: Record<string, unknown> | null;
|
|
2692
|
-
conflicted: boolean;
|
|
2693
|
-
conflicted_reason: string | null;
|
|
2694
|
-
uses: string[];
|
|
2695
|
-
used_by: string[];
|
|
2696
3869
|
}[]>;
|
|
2697
3870
|
readonly createPreset: (body: import("./presets-client").CreatePresetBody) => Promise<{
|
|
2698
|
-
|
|
3871
|
+
active_version: number;
|
|
2699
3872
|
base_tool: string;
|
|
3873
|
+
conflicted: boolean;
|
|
3874
|
+
conflicted_reason: string | null;
|
|
2700
3875
|
description: string;
|
|
2701
|
-
|
|
3876
|
+
input_schema: Record<string, unknown> | null;
|
|
3877
|
+
name: string;
|
|
3878
|
+
output_schema: Record<string, unknown> | null;
|
|
3879
|
+
used_by: string[];
|
|
3880
|
+
uses: string[];
|
|
2702
3881
|
extensions: (string | {
|
|
2703
3882
|
name: string;
|
|
2704
3883
|
config: Record<string, unknown>;
|
|
2705
3884
|
})[][];
|
|
2706
|
-
output_schema: Record<string, unknown> | null;
|
|
2707
|
-
input_schema: Record<string, unknown> | null;
|
|
2708
|
-
conflicted: boolean;
|
|
2709
|
-
conflicted_reason: string | null;
|
|
2710
|
-
uses: string[];
|
|
2711
|
-
used_by: string[];
|
|
2712
3885
|
}>;
|
|
2713
3886
|
readonly getPreset: (name: string, signal?: AbortSignal) => Promise<{
|
|
2714
|
-
|
|
3887
|
+
active_version: number;
|
|
2715
3888
|
base_tool: string;
|
|
3889
|
+
conflicted: boolean;
|
|
3890
|
+
conflicted_reason: string | null;
|
|
2716
3891
|
description: string;
|
|
2717
|
-
|
|
3892
|
+
fixed_kwargs: Record<string, unknown>;
|
|
3893
|
+
input_schema: Record<string, unknown> | null;
|
|
3894
|
+
name: string;
|
|
3895
|
+
output_schema: Record<string, unknown> | null;
|
|
3896
|
+
used_by: string[];
|
|
3897
|
+
uses: string[];
|
|
2718
3898
|
extensions: (string | {
|
|
2719
3899
|
name: string;
|
|
2720
3900
|
config: Record<string, unknown>;
|
|
2721
3901
|
})[][];
|
|
2722
|
-
output_schema: Record<string, unknown> | null;
|
|
2723
|
-
input_schema: Record<string, unknown> | null;
|
|
2724
|
-
conflicted: boolean;
|
|
2725
|
-
conflicted_reason: string | null;
|
|
2726
|
-
uses: string[];
|
|
2727
|
-
used_by: string[];
|
|
2728
|
-
fixed_kwargs: Record<string, unknown>;
|
|
2729
3902
|
}>;
|
|
2730
3903
|
readonly listPresetVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
3904
|
+
created_at: string;
|
|
3905
|
+
is_current: boolean;
|
|
3906
|
+
tags: string[];
|
|
2731
3907
|
version: number;
|
|
2732
3908
|
body: {
|
|
2733
3909
|
base_tool: string;
|
|
@@ -2788,11 +3964,11 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2788
3964
|
}[];
|
|
2789
3965
|
} | null;
|
|
2790
3966
|
};
|
|
2791
|
-
tags: string[];
|
|
2792
|
-
created_at: string;
|
|
2793
|
-
is_current: boolean;
|
|
2794
3967
|
}[]>;
|
|
2795
3968
|
readonly getPresetVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
|
|
3969
|
+
created_at: string;
|
|
3970
|
+
is_current: boolean;
|
|
3971
|
+
tags: string[];
|
|
2796
3972
|
version: number;
|
|
2797
3973
|
body: {
|
|
2798
3974
|
base_tool: string;
|
|
@@ -2853,11 +4029,11 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2853
4029
|
}[];
|
|
2854
4030
|
} | null;
|
|
2855
4031
|
};
|
|
2856
|
-
tags: string[];
|
|
2857
|
-
created_at: string;
|
|
2858
|
-
is_current: boolean;
|
|
2859
4032
|
}>;
|
|
2860
4033
|
readonly savePresetVersion: (name: string, body: import("./presets-client").SavePresetVersionBody) => Promise<{
|
|
4034
|
+
created_at: string;
|
|
4035
|
+
is_current: boolean;
|
|
4036
|
+
tags: string[];
|
|
2861
4037
|
version: number;
|
|
2862
4038
|
body: {
|
|
2863
4039
|
base_tool: string;
|
|
@@ -2918,101 +4094,283 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2918
4094
|
}[];
|
|
2919
4095
|
} | null;
|
|
2920
4096
|
};
|
|
2921
|
-
tags: string[];
|
|
2922
|
-
created_at: string;
|
|
2923
|
-
is_current: boolean;
|
|
2924
4097
|
}>;
|
|
2925
4098
|
readonly rollbackPreset: (name: string, version: number) => Promise<{
|
|
2926
|
-
name: string;
|
|
2927
4099
|
active_version: number;
|
|
4100
|
+
fanout: {
|
|
4101
|
+
error: string | null;
|
|
4102
|
+
local_only: boolean | null;
|
|
4103
|
+
mode: string;
|
|
4104
|
+
note: string | null;
|
|
4105
|
+
op: string | null;
|
|
4106
|
+
reachable: boolean | null;
|
|
4107
|
+
results: {
|
|
4108
|
+
detail: string | null;
|
|
4109
|
+
error: string | null;
|
|
4110
|
+
name: string;
|
|
4111
|
+
outcome: string;
|
|
4112
|
+
payload: unknown;
|
|
4113
|
+
}[] | null;
|
|
4114
|
+
};
|
|
4115
|
+
name: string;
|
|
2928
4116
|
}>;
|
|
2929
4117
|
readonly deletePreset: (name: string) => Promise<{
|
|
4118
|
+
deleted: boolean;
|
|
4119
|
+
fanout: {
|
|
4120
|
+
error: string | null;
|
|
4121
|
+
local_only: boolean | null;
|
|
4122
|
+
mode: string;
|
|
4123
|
+
note: string | null;
|
|
4124
|
+
op: string | null;
|
|
4125
|
+
reachable: boolean | null;
|
|
4126
|
+
results: {
|
|
4127
|
+
detail: string | null;
|
|
4128
|
+
error: string | null;
|
|
4129
|
+
name: string;
|
|
4130
|
+
outcome: string;
|
|
4131
|
+
payload: unknown;
|
|
4132
|
+
}[] | null;
|
|
4133
|
+
};
|
|
2930
4134
|
name: string;
|
|
2931
|
-
deleted: true;
|
|
2932
4135
|
}>;
|
|
2933
4136
|
readonly renamePreset: (name: string, newName: string) => Promise<{
|
|
4137
|
+
active_version: number;
|
|
4138
|
+
fanout: {
|
|
4139
|
+
error: string | null;
|
|
4140
|
+
local_only: boolean | null;
|
|
4141
|
+
mode: string;
|
|
4142
|
+
note: string | null;
|
|
4143
|
+
op: string | null;
|
|
4144
|
+
reachable: boolean | null;
|
|
4145
|
+
results: {
|
|
4146
|
+
detail: string | null;
|
|
4147
|
+
error: string | null;
|
|
4148
|
+
name: string;
|
|
4149
|
+
outcome: string;
|
|
4150
|
+
payload: unknown;
|
|
4151
|
+
}[] | null;
|
|
4152
|
+
};
|
|
2934
4153
|
name: string;
|
|
2935
4154
|
renamed_from: string;
|
|
2936
|
-
active_version: number;
|
|
2937
4155
|
}>;
|
|
2938
4156
|
readonly getPresetReferees: (name: string, signal?: AbortSignal) => Promise<{
|
|
2939
4157
|
name: string;
|
|
2940
4158
|
referees: string[];
|
|
2941
4159
|
}>;
|
|
2942
4160
|
readonly validatePreset: (body: import("./presets-client").ValidatePresetBody) => Promise<{
|
|
2943
|
-
valid: boolean;
|
|
2944
4161
|
error: string | null;
|
|
4162
|
+
valid: boolean;
|
|
2945
4163
|
}>;
|
|
2946
4164
|
readonly setPresetVersionTags: (name: string, version: number, tags: readonly string[]) => Promise<{
|
|
2947
4165
|
name: string;
|
|
2948
|
-
version: number;
|
|
2949
4166
|
tags: string[];
|
|
4167
|
+
version: number;
|
|
2950
4168
|
}>;
|
|
2951
4169
|
readonly listTools: (signal?: AbortSignal) => Promise<string[]>;
|
|
2952
4170
|
readonly getToolSchema: (name: string, signal?: AbortSignal) => Promise<{
|
|
4171
|
+
description: string | null;
|
|
2953
4172
|
input: Record<string, unknown>;
|
|
2954
4173
|
output: Record<string, unknown> | null;
|
|
2955
|
-
description: string | null;
|
|
2956
4174
|
}>;
|
|
2957
4175
|
readonly getAllToolSchemas: (signal?: AbortSignal) => Promise<Record<string, {
|
|
4176
|
+
description: string | null;
|
|
2958
4177
|
input: Record<string, unknown>;
|
|
2959
4178
|
output: Record<string, unknown> | null;
|
|
2960
|
-
description: string | null;
|
|
2961
4179
|
}>>;
|
|
2962
|
-
readonly runTool: (args: import("./tools-client").RunToolArgs, signal?: AbortSignal) => Promise<
|
|
4180
|
+
readonly runTool: (args: import("./tools-client").RunToolArgs, signal?: AbortSignal) => Promise<{
|
|
4181
|
+
asks: {
|
|
4182
|
+
answer_format: string | null;
|
|
4183
|
+
asked_by: string[] | null;
|
|
4184
|
+
audience: string | null;
|
|
4185
|
+
channel: string | null;
|
|
4186
|
+
created_at: string | null;
|
|
4187
|
+
error: unknown;
|
|
4188
|
+
expiry_at: string | null;
|
|
4189
|
+
format_payload: Record<string, unknown> | null;
|
|
4190
|
+
group_id: string | null;
|
|
4191
|
+
id: string;
|
|
4192
|
+
media: Record<string, unknown>[] | null;
|
|
4193
|
+
on_expiry: "kill" | "resume" | null;
|
|
4194
|
+
payload: Record<string, unknown> | null;
|
|
4195
|
+
question: string | null;
|
|
4196
|
+
recipient: string | null;
|
|
4197
|
+
result: unknown;
|
|
4198
|
+
status: "running" | "asking" | "failed" | "finished";
|
|
4199
|
+
thread_id: string | null;
|
|
4200
|
+
to: "caller" | "user" | null;
|
|
4201
|
+
}[];
|
|
4202
|
+
kind: "asks";
|
|
4203
|
+
suspended: {
|
|
4204
|
+
caller_interaction_ids: string[];
|
|
4205
|
+
expiry_at: string | null;
|
|
4206
|
+
interaction_id: string;
|
|
4207
|
+
interaction_ids: string[];
|
|
4208
|
+
resume_owner: string | null;
|
|
4209
|
+
};
|
|
4210
|
+
} | {
|
|
4211
|
+
kind: "none";
|
|
4212
|
+
} | {
|
|
4213
|
+
kind: "parked";
|
|
4214
|
+
suspended: {
|
|
4215
|
+
caller_interaction_ids: string[];
|
|
4216
|
+
expiry_at: string | null;
|
|
4217
|
+
interaction_id: string;
|
|
4218
|
+
interaction_ids: string[];
|
|
4219
|
+
resume_owner: string | null;
|
|
4220
|
+
};
|
|
4221
|
+
} | {
|
|
4222
|
+
kind: "result";
|
|
4223
|
+
result: unknown;
|
|
4224
|
+
}>;
|
|
2963
4225
|
readonly reloadTool: (args: import("./tools-client").ToolAdminArgs) => Promise<{
|
|
4226
|
+
error: string | null;
|
|
4227
|
+
local_only: boolean;
|
|
4228
|
+
ok: boolean;
|
|
2964
4229
|
op: string;
|
|
2965
4230
|
reachable: boolean;
|
|
2966
|
-
local_only: boolean;
|
|
2967
4231
|
results: {
|
|
4232
|
+
detail: string | null;
|
|
4233
|
+
error: string | null;
|
|
2968
4234
|
name: string;
|
|
2969
|
-
outcome: "
|
|
4235
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2970
4236
|
payload: unknown;
|
|
2971
|
-
error: string | null;
|
|
2972
|
-
detail: string | null;
|
|
2973
4237
|
}[];
|
|
2974
|
-
error: string | null;
|
|
2975
4238
|
}>;
|
|
2976
4239
|
readonly removeTool: (args: import("./tools-client").ToolAdminArgs) => Promise<{
|
|
4240
|
+
error: string | null;
|
|
4241
|
+
local_only: boolean;
|
|
4242
|
+
ok: boolean;
|
|
2977
4243
|
op: string;
|
|
2978
4244
|
reachable: boolean;
|
|
2979
|
-
local_only: boolean;
|
|
2980
4245
|
results: {
|
|
4246
|
+
detail: string | null;
|
|
4247
|
+
error: string | null;
|
|
2981
4248
|
name: string;
|
|
2982
|
-
outcome: "
|
|
4249
|
+
outcome: "applied" | "failed" | "missing" | "departed" | "timed_out" | "resyncing" | "recycling" | "stale";
|
|
2983
4250
|
payload: unknown;
|
|
2984
|
-
error: string | null;
|
|
2985
|
-
detail: string | null;
|
|
2986
4251
|
}[];
|
|
2987
|
-
error: string | null;
|
|
2988
4252
|
}>;
|
|
2989
4253
|
readonly submitToolRun: (args: import("..").SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
|
|
2990
4254
|
run_id: string;
|
|
2991
4255
|
}>;
|
|
2992
4256
|
readonly getToolRun: (runId: string, signal?: AbortSignal) => Promise<{
|
|
4257
|
+
error: string | null;
|
|
4258
|
+
finished_at: string | null;
|
|
4259
|
+
outcome: unknown;
|
|
4260
|
+
result: unknown;
|
|
4261
|
+
resumed_interactions: string[] | null;
|
|
2993
4262
|
run_id: string;
|
|
4263
|
+
started_at: string;
|
|
4264
|
+
tool_name: string;
|
|
4265
|
+
status: "running";
|
|
4266
|
+
} | {
|
|
4267
|
+
error: string | null;
|
|
4268
|
+
finished_at: string | null;
|
|
4269
|
+
outcome: unknown;
|
|
4270
|
+
result: unknown;
|
|
4271
|
+
resumed_interactions: string[] | null;
|
|
4272
|
+
run_id: string;
|
|
4273
|
+
started_at: string;
|
|
4274
|
+
tool_name: string;
|
|
4275
|
+
status: "succeeded";
|
|
4276
|
+
} | {
|
|
4277
|
+
error: string | null;
|
|
4278
|
+
finished_at: string | null;
|
|
4279
|
+
outcome: unknown;
|
|
4280
|
+
result: unknown;
|
|
4281
|
+
resumed_interactions: string[] | null;
|
|
4282
|
+
run_id: string;
|
|
4283
|
+
started_at: string;
|
|
4284
|
+
tool_name: string;
|
|
4285
|
+
status: "failed";
|
|
4286
|
+
} | {
|
|
4287
|
+
error: string | null;
|
|
4288
|
+
finished_at: string | null;
|
|
4289
|
+
outcome: unknown;
|
|
4290
|
+
result: unknown;
|
|
4291
|
+
resumed_interactions: string[] | null;
|
|
4292
|
+
run_id: string;
|
|
4293
|
+
started_at: string;
|
|
2994
4294
|
tool_name: string;
|
|
2995
|
-
status: "
|
|
4295
|
+
status: "lost";
|
|
4296
|
+
} | {
|
|
4297
|
+
error: string | null;
|
|
4298
|
+
finished_at: string | null;
|
|
4299
|
+
outcome: unknown;
|
|
4300
|
+
resumed_interactions: string[] | null;
|
|
4301
|
+
run_id: string;
|
|
2996
4302
|
started_at: string;
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
4303
|
+
tool_name: string;
|
|
4304
|
+
status: "parked";
|
|
4305
|
+
result: {
|
|
4306
|
+
asks: {
|
|
4307
|
+
answer_format: string | null;
|
|
4308
|
+
asked_by: string[] | null;
|
|
4309
|
+
audience: string | null;
|
|
4310
|
+
channel: string | null;
|
|
4311
|
+
created_at: string | null;
|
|
4312
|
+
error: unknown;
|
|
4313
|
+
expiry_at: string | null;
|
|
4314
|
+
format_payload: Record<string, unknown> | null;
|
|
4315
|
+
group_id: string | null;
|
|
4316
|
+
id: string;
|
|
4317
|
+
media: Record<string, unknown>[] | null;
|
|
4318
|
+
on_expiry: "kill" | "resume" | null;
|
|
4319
|
+
payload: Record<string, unknown> | null;
|
|
4320
|
+
question: string | null;
|
|
4321
|
+
recipient: string | null;
|
|
4322
|
+
result: unknown;
|
|
4323
|
+
status: "running" | "asking" | "failed" | "finished";
|
|
4324
|
+
thread_id: string | null;
|
|
4325
|
+
to: "caller" | "user" | null;
|
|
4326
|
+
}[];
|
|
4327
|
+
kind: "asks";
|
|
4328
|
+
suspended: {
|
|
4329
|
+
caller_interaction_ids: string[];
|
|
4330
|
+
expiry_at: string | null;
|
|
4331
|
+
interaction_id: string;
|
|
4332
|
+
interaction_ids: string[];
|
|
4333
|
+
resume_owner: string | null;
|
|
4334
|
+
};
|
|
4335
|
+
} | {
|
|
4336
|
+
kind: "parked";
|
|
4337
|
+
suspended: {
|
|
4338
|
+
caller_interaction_ids: string[];
|
|
4339
|
+
expiry_at: string | null;
|
|
4340
|
+
interaction_id: string;
|
|
4341
|
+
interaction_ids: string[];
|
|
4342
|
+
resume_owner: string | null;
|
|
4343
|
+
};
|
|
4344
|
+
};
|
|
3001
4345
|
}>;
|
|
3002
4346
|
readonly listToolRuns: (toolName: string, signal?: AbortSignal) => Promise<{
|
|
4347
|
+
finished_at: string | null;
|
|
3003
4348
|
run_id: string;
|
|
3004
|
-
tool_name: string;
|
|
3005
|
-
status: "running" | "failed" | "parked" | "succeeded" | "lost";
|
|
3006
4349
|
started_at: string;
|
|
3007
|
-
|
|
4350
|
+
tool_name: string;
|
|
4351
|
+
status: "running" | "parked" | "failed" | "succeeded" | "lost";
|
|
3008
4352
|
}[]>;
|
|
3009
4353
|
readonly listToolTags: (signal?: AbortSignal) => Promise<{
|
|
3010
|
-
name: string;
|
|
3011
|
-
tags: string[];
|
|
3012
4354
|
badges: string[];
|
|
3013
4355
|
hidden: boolean;
|
|
4356
|
+
name: string;
|
|
4357
|
+
schedulable: boolean;
|
|
4358
|
+
tags: string[];
|
|
3014
4359
|
}[]>;
|
|
3015
4360
|
readonly baseUrl: string;
|
|
4361
|
+
/**
|
|
4362
|
+
* The platform constants the contract serves, read instead of re-spelled (`PERSON_KIND`,
|
|
4363
|
+
* `MEDIA_ROUTE_PREFIX`, `MEDIA_ID_PATTERN`).
|
|
4364
|
+
*/
|
|
4365
|
+
readonly constants: {
|
|
4366
|
+
readonly MEDIA_ID_PATTERN: "[A-Za-z0-9_-]{43}";
|
|
4367
|
+
readonly MEDIA_ROUTE_PREFIX: "/api/interactions/media/";
|
|
4368
|
+
readonly PERSON_KIND: "person";
|
|
4369
|
+
};
|
|
4370
|
+
/** The host's authenticated request for a plugin's own routes: the same auth header,
|
|
4371
|
+
* 401 handling, error classes and `{ data }` unwrap as every core call. Core routes
|
|
4372
|
+
* use the named methods. */
|
|
4373
|
+
readonly request: <S extends Parameters<typeof import("..").apiRequest>[2]>(path: string, schema: S, options?: Parameters<typeof import("..").apiRequest>[3]) => Promise<import("zod").infer<S>>;
|
|
3016
4374
|
};
|
|
3017
4375
|
export type ApiClient = ReturnType<typeof createApiClient>;
|
|
3018
4376
|
//# sourceMappingURL=index.d.ts.map
|