@blade-hq/agent-kit 1.0.25 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-7LEKQI47.js +32 -0
- package/dist/chunk-7LEKQI47.js.map +1 -0
- package/dist/{chunk-3I4ZURKH.js → chunk-BGNKHPCD.js} +223 -50
- package/dist/chunk-BGNKHPCD.js.map +1 -0
- package/dist/{chunk-4D4EXLVT.js → chunk-DQCXSPHP.js} +2 -2
- package/dist/chunk-HCQDDDOX.js +23 -0
- package/dist/chunk-HCQDDDOX.js.map +1 -0
- package/dist/{chunk-QODAKTG5.js → chunk-JCJFFJ42.js} +2 -31
- package/dist/chunk-JCJFFJ42.js.map +1 -0
- package/dist/{chunk-XCIDE3JW.js → chunk-OGHUIKCY.js} +7 -7
- package/dist/{chunk-WPLEMYL7.js → chunk-PYYDXV2A.js} +2 -2
- package/dist/{chunk-VJY6RLYU.js → chunk-TVWC3PED.js} +2 -2
- package/dist/{chunk-WVXXQ3KM.js → chunk-UWNQ4PXK.js} +134 -1201
- package/dist/chunk-UWNQ4PXK.js.map +1 -0
- package/dist/{chunk-M45K3554.js → chunk-YJ6BX3FU.js} +1382 -32
- package/dist/chunk-YJ6BX3FU.js.map +1 -0
- package/dist/client/auth.d.ts +8 -0
- package/dist/client/blade-client.d.ts +82 -0
- package/dist/client/index.d.ts +23 -15348
- package/dist/client/index.js +3 -1
- package/dist/client/resources/api-keys.d.ts +28 -0
- package/dist/client/resources/app-dev-templates.d.ts +93 -0
- package/dist/client/resources/auth.d.ts +26 -0
- package/dist/client/resources/env-buckets.d.ts +20 -0
- package/dist/client/resources/gis.d.ts +8 -0
- package/dist/client/resources/headless.d.ts +33 -0
- package/dist/client/resources/memories.d.ts +63 -0
- package/dist/client/resources/models.d.ts +26 -0
- package/dist/client/resources/published-apps.d.ts +8 -0
- package/dist/client/resources/registry.d.ts +58 -0
- package/dist/client/resources/runs.d.ts +8 -0
- package/dist/client/resources/scenarios.d.ts +49 -0
- package/dist/client/resources/sessions.d.ts +253 -0
- package/dist/client/resources/skills.d.ts +38 -0
- package/dist/client/resources/solutions.d.ts +31 -0
- package/dist/client/resources/user-preferences.d.ts +26 -0
- package/dist/client/rest.d.ts +19 -0
- package/dist/client/shared/projection/builder.d.ts +59 -0
- package/dist/client/shared/projection/helpers.d.ts +34 -0
- package/dist/client/shared/projection/history.d.ts +12 -0
- package/dist/client/shared/projection/index.d.ts +3 -0
- package/dist/client/shared/projection/state.d.ts +22 -0
- package/dist/client/socket.d.ts +9 -0
- package/dist/client/types/index.d.ts +8 -0
- package/dist/client/types/rest.d.ts +16316 -0
- package/dist/client/types/sdk-profile.d.ts +47 -0
- package/dist/client/types/socket-events.d.ts +389 -0
- package/dist/react/api/api-keys.d.ts +6 -0
- package/dist/react/api/app-dev-templates.d.ts +5 -0
- package/dist/react/api/auth.d.ts +7 -0
- package/dist/react/api/client.d.ts +8 -0
- package/dist/react/api/env-buckets.d.ts +10 -0
- package/dist/react/api/gis-api.d.ts +4 -0
- package/dist/react/api/memories.d.ts +14 -0
- package/dist/react/api/model-config.d.ts +68 -0
- package/dist/react/api/models.d.ts +13 -0
- package/dist/react/api/partner-skill.d.ts +2 -0
- package/dist/react/api/prod-solution.d.ts +456 -0
- package/dist/react/api/published-apps.d.ts +21 -0
- package/dist/react/api/published-apps.js +14 -0
- package/dist/react/api/published-apps.js.map +1 -0
- package/dist/react/api/registry.d.ts +46 -0
- package/dist/react/api/scenarios.d.ts +9 -0
- package/dist/react/api/scheduled-tasks.d.ts +24 -0
- package/dist/react/api/session-skill.d.ts +2 -0
- package/dist/react/api/sessions.d.ts +109 -0
- package/dist/react/api/sessions.js +93 -0
- package/dist/react/api/sessions.js.map +1 -0
- package/dist/react/api/skills.d.ts +27 -0
- package/dist/react/api/socket.d.ts +5 -0
- package/dist/react/api/solutions.d.ts +11 -0
- package/dist/react/api/user-preferences.d.ts +8 -0
- package/dist/react/asr/VoiceWaveform.d.ts +10 -0
- package/dist/react/asr/use-tiptap-voice-input.d.ts +29 -0
- package/dist/react/asr/use-voice-input.d.ts +17 -0
- package/dist/react/asr/voice-input-support.d.ts +5 -0
- package/dist/react/bootstrap.d.ts +4 -0
- package/dist/react/cards/register.d.ts +1 -2
- package/dist/react/cards/register.js +3 -2
- package/dist/react/cards/register.js.map +1 -1
- package/dist/react/components/ai-elements/file-tree.d.ts +26 -0
- package/dist/react/components/ai-elements/reasoning.d.ts +32 -0
- package/dist/react/components/ai-elements/shimmer.d.ts +11 -0
- package/dist/react/components/card/CardCodeBlock.d.ts +5 -0
- package/dist/react/components/card/CardContext.d.ts +7 -0
- package/dist/react/components/card/CardRenderer.d.ts +7 -0
- package/dist/react/components/card/CardStates.d.ts +8 -0
- package/dist/react/components/card/cards/attraction-card.d.ts +2 -0
- package/dist/react/components/card/cards/cite-card.d.ts +10 -0
- package/dist/react/components/card/cards/comprehensive-analysis-card.d.ts +2 -0
- package/dist/react/components/card/cards/conflict-detection-card.d.ts +4 -0
- package/dist/react/components/card/cards/counter.d.ts +2 -0
- package/dist/react/components/card/cards/damage-effect-card.d.ts +4 -0
- package/dist/react/components/card/cards/destination-card.d.ts +2 -0
- package/dist/react/components/card/cards/diff-card.d.ts +2 -0
- package/dist/react/components/card/cards/execution-order-card.d.ts +2 -0
- package/dist/react/components/card/cards/experience-card-with-options.d.ts +4 -0
- package/dist/react/components/card/cards/flight-card.d.ts +2 -0
- package/dist/react/components/card/cards/hotel-card.d.ts +2 -0
- package/dist/react/components/card/cards/kill-chain-card.d.ts +2 -0
- package/dist/react/components/card/cards/kill-chain-types.d.ts +157 -0
- package/dist/react/components/card/cards/map-card.d.ts +2 -0
- package/dist/react/components/card/cards/order-status-card.d.ts +2 -0
- package/dist/react/components/card/cards/patch-card.d.ts +15 -0
- package/dist/react/components/card/cards/product-recommendation-card.d.ts +2 -0
- package/dist/react/components/card/cards/reflection-optimization-card.d.ts +2 -0
- package/dist/react/components/card/cards/resolution-modifications-card.d.ts +2 -0
- package/dist/react/components/card/cards/resolution-summary-card.d.ts +2 -0
- package/dist/react/components/card/cards/restaurant-card.d.ts +2 -0
- package/dist/react/components/card/cards/shopping-list-card.d.ts +2 -0
- package/dist/react/components/card/cards/simulation-event-card.d.ts +4 -0
- package/dist/react/components/card/cards/survival-effect-card.d.ts +4 -0
- package/dist/react/components/card/cards/travel-itinerary-card.d.ts +2 -0
- package/dist/react/components/card/register.d.ts +1 -0
- package/dist/react/components/chat/AgentLoopBlock.d.ts +8 -0
- package/dist/react/components/chat/AskUserQuestionBlock.d.ts +32 -0
- package/dist/react/components/chat/AssistantTurnBlock.d.ts +28 -0
- package/dist/react/components/chat/AttachmentPreviewDialog.d.ts +26 -0
- package/dist/react/components/chat/BackgroundTasksPill.d.ts +3 -0
- package/dist/react/components/chat/ChatInput.d.ts +94 -0
- package/dist/react/components/chat/ChatView.d.ts +18 -0
- package/dist/react/components/chat/CompactionCard.d.ts +6 -0
- package/dist/react/components/chat/ConnectionBanner.d.ts +1 -0
- package/dist/react/components/chat/FileCompletionMenu.d.ts +13 -0
- package/dist/react/components/chat/FileSizeLimitDialog.d.ts +9 -0
- package/dist/react/components/chat/ImageLightbox.d.ts +11 -0
- package/dist/react/components/chat/MessageActions.d.ts +6 -0
- package/dist/react/components/chat/MessageContextPills.d.ts +6 -0
- package/dist/react/components/chat/MessageFileAttachmentList.d.ts +13 -0
- package/dist/react/components/chat/MessageList.d.ts +15 -0
- package/dist/react/components/chat/ProgressCircle.d.ts +12 -0
- package/dist/react/components/chat/RenderErrorBoundary.d.ts +19 -0
- package/dist/react/components/chat/ResourceIframe.d.ts +5 -0
- package/dist/react/components/chat/Shimmer.d.ts +6 -0
- package/dist/react/components/chat/SkillCompletionMenu.d.ts +9 -0
- package/dist/react/components/chat/SkillStatusBar.d.ts +8 -0
- package/dist/react/components/chat/StickyStatusBar.d.ts +10 -0
- package/dist/react/components/chat/TextAttachmentPills.d.ts +10 -0
- package/dist/react/components/chat/ThinkingToggle.d.ts +7 -0
- package/dist/react/components/chat/ToolCallBlock.d.ts +18 -0
- package/dist/react/components/chat/TurnNavRail.d.ts +11 -0
- package/dist/react/components/chat/UserMessageBubble.d.ts +20 -0
- package/dist/react/components/chat/WhatIfUserBubble.d.ts +13 -0
- package/dist/react/components/chat/customization.d.ts +82 -0
- package/dist/react/components/chat/display-utils.d.ts +35 -0
- package/dist/react/components/chat/extensions/file-mention.d.ts +12 -0
- package/dist/react/components/chat/extensions/skill-mention.d.ts +25 -0
- package/dist/react/components/chat/index.d.ts +16 -115
- package/dist/react/components/chat/index.js +8 -7
- package/dist/react/components/chat/scroll-anchor.d.ts +8 -0
- package/dist/react/components/chat/tool-renderers/BashRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/FileEditRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/FileReadRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/SearchRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/SubmitResultRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/registry.d.ts +9 -0
- package/dist/react/components/chat/tool-renderers/shared.d.ts +26 -0
- package/dist/react/components/chat/whatif-quote-context.d.ts +15 -0
- package/dist/react/components/markdown/ExternalLinkDialog.d.ts +8 -0
- package/dist/react/components/markdown/FileCardComponent.d.ts +10 -0
- package/dist/react/components/markdown/MarkdownContent.d.ts +19 -0
- package/dist/react/components/model/ModelSelector.d.ts +9 -0
- package/dist/react/components/plan/PlanSummaryCard.d.ts +8 -0
- package/dist/react/components/plan/PlanVisualization.d.ts +13 -0
- package/dist/react/components/plan/debug-log.d.ts +21 -0
- package/dist/react/components/plan/extract-plan-messages.d.ts +2 -0
- package/dist/react/components/plan/index.d.ts +6 -110
- package/dist/react/components/plan/index.js +7 -6
- package/dist/react/components/plan/index.js.map +1 -1
- package/dist/react/components/plan/parse-plan-messages.d.ts +10 -0
- package/dist/react/components/plan/parse-plan-tree.d.ts +16 -0
- package/dist/react/components/plan/phases/PlanMindMap.d.ts +8 -0
- package/dist/react/components/plan/phases/PlanStatusIcon.d.ts +5 -0
- package/dist/react/components/plan/phases/PlanTree.d.ts +8 -0
- package/dist/react/components/plan/phases/SkillAnalysis.d.ts +7 -0
- package/dist/react/components/plan/phases/SkillDiscovery.d.ts +10 -0
- package/dist/react/components/plan/types.d.ts +56 -0
- package/dist/react/components/session/SessionDetail.d.ts +8 -0
- package/dist/react/components/session/SessionList.d.ts +9 -0
- package/dist/react/components/session/SessionListItem.d.ts +8 -0
- package/dist/react/components/session/StatusBadge.d.ts +3 -0
- package/dist/react/components/session/index.d.ts +5 -53
- package/dist/react/components/session/index.js +6 -5
- package/dist/react/components/session/index.js.map +1 -1
- package/dist/react/components/session/session-utils.d.ts +19 -0
- package/dist/react/components/ui/collapsible.d.ts +5 -0
- package/dist/react/components/workspace/FileTree.d.ts +21 -0
- package/dist/react/components/workspace/WorkspaceFilesPanel.d.ts +30 -0
- package/dist/react/components/workspace/file-icon-assets.d.ts +3 -0
- package/dist/react/components/workspace/index.d.ts +2 -59
- package/dist/react/components/workspace/index.js +6 -5
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/context.d.ts +2 -0
- package/dist/react/devtools/bridge-devtools/BridgeDevtoolsFab.d.ts +1 -0
- package/dist/react/devtools/bridge-devtools/index.d.ts +3 -36
- package/dist/react/devtools/bridge-devtools/mount.d.ts +1 -0
- package/dist/react/devtools/bridge-devtools/store.d.ts +15 -0
- package/dist/react/devtools/bridge-devtools/tap.d.ts +5 -0
- package/dist/react/devtools/bridge-devtools/types.d.ts +29 -0
- package/dist/react/hooks/use-background-tasks.d.ts +7 -0
- package/dist/react/hooks/use-card-state.d.ts +1 -0
- package/dist/react/hooks/use-chat.d.ts +13 -0
- package/dist/react/hooks/use-check-skill-file.d.ts +4 -0
- package/dist/react/hooks/use-check-solution-file.d.ts +4 -0
- package/dist/react/hooks/use-context-stats.d.ts +7 -0
- package/dist/react/hooks/use-gis.d.ts +17 -0
- package/dist/react/hooks/use-global-skill-stats.d.ts +6 -0
- package/dist/react/hooks/use-input-history.d.ts +7 -0
- package/dist/react/hooks/use-model-preferences.d.ts +18 -0
- package/dist/react/hooks/use-registry.d.ts +53 -0
- package/dist/react/hooks/use-resolved-model.d.ts +6 -0
- package/dist/react/hooks/use-session.d.ts +10 -0
- package/dist/react/hooks/use-skill-stats.d.ts +7 -0
- package/dist/react/hooks/use-skills.d.ts +6 -0
- package/dist/react/hooks/use-token-pressure.d.ts +6 -0
- package/dist/react/index.d.ts +124 -2034
- package/dist/react/index.js +125 -50
- package/dist/react/index.js.map +1 -1
- package/dist/react/lib/analytics.d.ts +7 -0
- package/dist/react/lib/attachment-upload.d.ts +10 -0
- package/dist/react/lib/card-registry.d.ts +35 -0
- package/dist/react/lib/chat.d.ts +48 -0
- package/dist/react/lib/code-highlight.d.ts +9 -0
- package/dist/react/lib/html-element-selection.d.ts +140 -0
- package/dist/react/lib/html-source-locator.d.ts +16 -0
- package/dist/react/lib/open-session-file.d.ts +2 -0
- package/dist/react/lib/parent-bridge.d.ts +22 -0
- package/dist/react/lib/preview-dispatch.d.ts +24 -0
- package/dist/react/lib/resource-bridge.d.ts +11 -0
- package/dist/react/lib/session-file-preview.d.ts +8 -0
- package/dist/react/lib/step-ranges.d.ts +42 -0
- package/dist/react/lib/tool-preview.d.ts +2 -0
- package/dist/react/lib/ui-meta.d.ts +9 -0
- package/dist/react/lib/utils.d.ts +3 -0
- package/dist/react/lib/whatif-prompt.d.ts +45 -0
- package/dist/react/provider.d.ts +8 -0
- package/dist/react/routes.d.ts +1 -0
- package/dist/react/schemas/background.d.ts +16 -0
- package/dist/react/schemas/event.d.ts +51 -0
- package/dist/react/schemas/gis.d.ts +50 -0
- package/dist/{AskUserQuestionBlock---kOTouk.d.ts → react/schemas/message.d.ts} +15 -48
- package/dist/react/schemas/partner-skill.d.ts +46 -0
- package/dist/{projection-BWYEFYNn.d.ts → react/schemas/projection.d.ts} +12 -10
- package/dist/react/schemas/published-apps.d.ts +38 -0
- package/dist/react/schemas/scheduled-task.d.ts +32 -0
- package/dist/react/schemas/session.d.ts +121 -0
- package/dist/react/schemas/skill.d.ts +50 -0
- package/dist/react/schemas/studio/agent.d.ts +12 -0
- package/dist/react/schemas/studio/database.d.ts +39 -0
- package/dist/react/schemas/studio/env.d.ts +7 -0
- package/dist/react/schemas/studio/knowledge.d.ts +18 -0
- package/dist/react/schemas/studio/resource-base.d.ts +7 -0
- package/dist/react/schemas/studio/scene.d.ts +12 -0
- package/dist/react/schemas/studio/tool.d.ts +25 -0
- package/dist/react/schemas/task.d.ts +12 -0
- package/dist/react/sockets/event-bridge.d.ts +115 -0
- package/dist/react/sockets/socket-state.d.ts +4 -0
- package/dist/react/stores/answer-callback-store.d.ts +9 -0
- package/dist/react/stores/auth-store.d.ts +38 -0
- package/dist/react/stores/background-store.d.ts +13 -0
- package/dist/react/stores/card-state-store.d.ts +10 -0
- package/dist/react/stores/chat-store.d.ts +34 -0
- package/dist/react/stores/client-aware.d.ts +7 -0
- package/dist/react/stores/connection-store.d.ts +14 -0
- package/dist/react/stores/gis-store.d.ts +19 -0
- package/dist/react/stores/index.d.ts +14 -0
- package/dist/react/stores/runtime-features-store.d.ts +21 -0
- package/dist/react/stores/runtime-store.d.ts +18 -0
- package/dist/react/stores/session-store.d.ts +44 -0
- package/dist/react/stores/task-store.d.ts +9 -0
- package/dist/react/stores/ui-bridge-store.d.ts +32 -0
- package/dist/react/stores/ui-store.d.ts +69 -0
- package/dist/react/types/index.d.ts +7 -0
- package/dist/react/types/solution.d.ts +101 -0
- package/package.json +41 -11
- package/dist/SkillStatusBar-U6fbQxMu.d.ts +0 -340
- package/dist/blade-client-qTOovekU.d.ts +0 -1609
- package/dist/chunk-3I4ZURKH.js.map +0 -1
- package/dist/chunk-M45K3554.js.map +0 -1
- package/dist/chunk-QODAKTG5.js.map +0 -1
- package/dist/chunk-WVXXQ3KM.js.map +0 -1
- package/dist/session-CNnotR90.d.ts +0 -227
- package/dist/sessions-BvfLGbjw.d.ts +0 -177
- /package/dist/{chunk-4D4EXLVT.js.map → chunk-DQCXSPHP.js.map} +0 -0
- /package/dist/{chunk-XCIDE3JW.js.map → chunk-OGHUIKCY.js.map} +0 -0
- /package/dist/{chunk-WPLEMYL7.js.map → chunk-PYYDXV2A.js.map} +0 -0
- /package/dist/{chunk-VJY6RLYU.js.map → chunk-TVWC3PED.js.map} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface ExistingSolutionRef {
|
|
2
|
+
kind: "existing";
|
|
3
|
+
solutionId: string;
|
|
4
|
+
bizRoleId?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PreparedSolutionAsset {
|
|
7
|
+
kind: "prepared";
|
|
8
|
+
assetId: string;
|
|
9
|
+
bizRoleId?: string;
|
|
10
|
+
}
|
|
11
|
+
export type SolutionRef = ExistingSolutionRef | PreparedSolutionAsset;
|
|
12
|
+
export interface SessionProfile {
|
|
13
|
+
solution?: SolutionRef;
|
|
14
|
+
model?: string;
|
|
15
|
+
compactionRatio?: number;
|
|
16
|
+
enableThinking?: boolean;
|
|
17
|
+
memoryEnabled?: boolean;
|
|
18
|
+
disableTools?: string[];
|
|
19
|
+
env?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
export interface RunOptions {
|
|
22
|
+
headless?: boolean;
|
|
23
|
+
outputSchema?: Record<string, unknown>;
|
|
24
|
+
runtimeEnv?: Record<string, string>;
|
|
25
|
+
timeoutMs?: number;
|
|
26
|
+
trace?: boolean;
|
|
27
|
+
compactionRatio?: number;
|
|
28
|
+
model?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface PreparedSolution extends PreparedSolutionAsset {
|
|
31
|
+
assetId: string;
|
|
32
|
+
solutionId: string;
|
|
33
|
+
roles: string[];
|
|
34
|
+
expiresAt: string;
|
|
35
|
+
}
|
|
36
|
+
export interface RunResult {
|
|
37
|
+
sessionId: string;
|
|
38
|
+
chatRunId?: string;
|
|
39
|
+
result: unknown;
|
|
40
|
+
events: unknown[];
|
|
41
|
+
}
|
|
42
|
+
export interface RunTrace {
|
|
43
|
+
events: unknown[];
|
|
44
|
+
history: unknown[];
|
|
45
|
+
result: unknown;
|
|
46
|
+
configSnapshot: Record<string, unknown>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
export type AsrAudioPayload = ArrayBuffer | Uint8Array;
|
|
2
|
+
export declare namespace ChatSendPayloadSchema {
|
|
3
|
+
type SessionId = string;
|
|
4
|
+
type Mode = (("planning" | "executing") | null);
|
|
5
|
+
type AskuserAnswer = ({
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
} | null);
|
|
8
|
+
type Model = (string | null);
|
|
9
|
+
type ThinkingOverride = (boolean | null);
|
|
10
|
+
type Headless = boolean;
|
|
11
|
+
type OutputSchema = ({
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
} | null);
|
|
14
|
+
type FromStep = (number | string | null);
|
|
15
|
+
type Quotes = (unknown[] | null);
|
|
16
|
+
type DeprecateEntryIds = (string[] | null);
|
|
17
|
+
type ReplayDecision = (string | null);
|
|
18
|
+
type RuntimeEnv = ({
|
|
19
|
+
[k: string]: string;
|
|
20
|
+
} | null);
|
|
21
|
+
type CompactionRatio = (number | null);
|
|
22
|
+
interface ChatSendPayload {
|
|
23
|
+
session_id: SessionId;
|
|
24
|
+
message: Message;
|
|
25
|
+
mode?: Mode;
|
|
26
|
+
askuser_answer?: AskuserAnswer;
|
|
27
|
+
model?: Model;
|
|
28
|
+
thinking_override?: ThinkingOverride;
|
|
29
|
+
headless?: Headless;
|
|
30
|
+
output_schema?: OutputSchema;
|
|
31
|
+
whatif?: (WhatIfPayload | null);
|
|
32
|
+
replay_decision?: ReplayDecision;
|
|
33
|
+
runtime_env?: RuntimeEnv;
|
|
34
|
+
compaction_ratio?: CompactionRatio;
|
|
35
|
+
[k: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
interface Message {
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
interface WhatIfPayload {
|
|
41
|
+
from_step?: FromStep;
|
|
42
|
+
quotes?: Quotes;
|
|
43
|
+
deprecate_entry_ids?: DeprecateEntryIds;
|
|
44
|
+
[k: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export type ChatSendPayload = ChatSendPayloadSchema.ChatSendPayload;
|
|
48
|
+
export declare namespace ChatStopPayloadSchema {
|
|
49
|
+
type SessionId = string;
|
|
50
|
+
interface ChatStopPayload {
|
|
51
|
+
session_id: SessionId;
|
|
52
|
+
[k: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export type ChatStopPayload = ChatStopPayloadSchema.ChatStopPayload;
|
|
56
|
+
export declare namespace ChatAppendPayloadSchema {
|
|
57
|
+
type SessionId = string;
|
|
58
|
+
type Message = string;
|
|
59
|
+
interface ChatAppendPayload {
|
|
60
|
+
session_id: SessionId;
|
|
61
|
+
message: Message;
|
|
62
|
+
[k: string]: unknown;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export type ChatAppendPayload = ChatAppendPayloadSchema.ChatAppendPayload;
|
|
66
|
+
export declare namespace ChatCompactPayloadSchema {
|
|
67
|
+
type SessionId = string;
|
|
68
|
+
interface ChatCompactPayload {
|
|
69
|
+
session_id: SessionId;
|
|
70
|
+
[k: string]: unknown;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export type ChatCompactPayload = ChatCompactPayloadSchema.ChatCompactPayload;
|
|
74
|
+
export declare namespace SessionSubscribePayloadSchema {
|
|
75
|
+
type SessionId = string;
|
|
76
|
+
type Mode = string;
|
|
77
|
+
type EventFormat = "raw";
|
|
78
|
+
type AfterSequence = number;
|
|
79
|
+
type Resume = boolean;
|
|
80
|
+
interface SessionSubscribePayload {
|
|
81
|
+
session_id: SessionId;
|
|
82
|
+
mode?: Mode;
|
|
83
|
+
event_format?: EventFormat;
|
|
84
|
+
after_sequence?: AfterSequence;
|
|
85
|
+
resume?: Resume;
|
|
86
|
+
[k: string]: unknown;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export type SessionSubscribePayload = SessionSubscribePayloadSchema.SessionSubscribePayload;
|
|
90
|
+
export declare namespace SessionSubscribeBatchPayloadSchema {
|
|
91
|
+
/**
|
|
92
|
+
* @minItems 1
|
|
93
|
+
* @maxItems 200
|
|
94
|
+
*/
|
|
95
|
+
type Sessions = [SessionSubscribe, ...(SessionSubscribe)[]];
|
|
96
|
+
type SessionId = string;
|
|
97
|
+
type Mode = string;
|
|
98
|
+
type EventFormat = "raw";
|
|
99
|
+
type AfterSequence = number;
|
|
100
|
+
type Resume = boolean;
|
|
101
|
+
interface SessionSubscribeBatchPayload {
|
|
102
|
+
sessions: Sessions;
|
|
103
|
+
[k: string]: unknown;
|
|
104
|
+
}
|
|
105
|
+
interface SessionSubscribe {
|
|
106
|
+
session_id: SessionId;
|
|
107
|
+
mode?: Mode;
|
|
108
|
+
event_format?: EventFormat;
|
|
109
|
+
after_sequence?: AfterSequence;
|
|
110
|
+
resume?: Resume;
|
|
111
|
+
[k: string]: unknown;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export type SessionSubscribeBatchPayload = SessionSubscribeBatchPayloadSchema.SessionSubscribeBatchPayload;
|
|
115
|
+
export declare namespace SessionUnsubscribePayloadSchema {
|
|
116
|
+
type SessionId = string;
|
|
117
|
+
interface SessionUnsubscribePayload {
|
|
118
|
+
session_id: SessionId;
|
|
119
|
+
[k: string]: unknown;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export type SessionUnsubscribePayload = SessionUnsubscribePayloadSchema.SessionUnsubscribePayload;
|
|
123
|
+
export declare namespace AgentBoardProjectSubscribePayloadSchema {
|
|
124
|
+
type ProjectId = number;
|
|
125
|
+
interface AgentBoardProjectSubscribePayload {
|
|
126
|
+
project_id: ProjectId;
|
|
127
|
+
[k: string]: unknown;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export type AgentBoardProjectSubscribePayload = AgentBoardProjectSubscribePayloadSchema.AgentBoardProjectSubscribePayload;
|
|
131
|
+
export declare namespace AgentBoardProjectUnsubscribePayloadSchema {
|
|
132
|
+
type ProjectId = number;
|
|
133
|
+
interface AgentBoardProjectUnsubscribePayload {
|
|
134
|
+
project_id: ProjectId;
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export type AgentBoardProjectUnsubscribePayload = AgentBoardProjectUnsubscribePayloadSchema.AgentBoardProjectUnsubscribePayload;
|
|
139
|
+
export declare namespace ChatStartPayloadSchema {
|
|
140
|
+
type SessionId = (string | null);
|
|
141
|
+
interface ChatStartPayload {
|
|
142
|
+
session_id?: SessionId;
|
|
143
|
+
[k: string]: unknown;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export type ChatStartPayload = ChatStartPayloadSchema.ChatStartPayload;
|
|
147
|
+
export declare namespace ChatEndPayloadSchema {
|
|
148
|
+
type SessionId = (string | null);
|
|
149
|
+
type Status = (string | null);
|
|
150
|
+
type FinishReason = (string | null);
|
|
151
|
+
type ChatRunId = (string | null);
|
|
152
|
+
interface ChatEndPayload {
|
|
153
|
+
session_id?: SessionId;
|
|
154
|
+
status?: Status;
|
|
155
|
+
result?: unknown;
|
|
156
|
+
finish_reason?: FinishReason;
|
|
157
|
+
chat_run_id?: ChatRunId;
|
|
158
|
+
[k: string]: unknown;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export type ChatEndPayload = ChatEndPayloadSchema.ChatEndPayload;
|
|
162
|
+
export declare namespace SessionUpdatedPayloadSchema {
|
|
163
|
+
type SessionId = string;
|
|
164
|
+
type Model = (string | null);
|
|
165
|
+
type ReplayState = ({
|
|
166
|
+
[k: string]: unknown;
|
|
167
|
+
} | null);
|
|
168
|
+
type Intent = (string | null);
|
|
169
|
+
interface SessionUpdatedPayload {
|
|
170
|
+
session_id: SessionId;
|
|
171
|
+
model?: Model;
|
|
172
|
+
replay_state?: ReplayState;
|
|
173
|
+
intent?: Intent;
|
|
174
|
+
[k: string]: unknown;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export type SessionUpdatedPayload = SessionUpdatedPayloadSchema.SessionUpdatedPayload;
|
|
178
|
+
export declare namespace WorkspaceFilesChangedPayloadSchema {
|
|
179
|
+
type SessionId = string;
|
|
180
|
+
type FilePath = (string | null);
|
|
181
|
+
interface WorkspaceFilesChangedPayload {
|
|
182
|
+
session_id: SessionId;
|
|
183
|
+
file_path?: FilePath;
|
|
184
|
+
[k: string]: unknown;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
export type WorkspaceFilesChangedPayload = WorkspaceFilesChangedPayloadSchema.WorkspaceFilesChangedPayload;
|
|
188
|
+
export declare namespace SystemErrorPayloadSchema {
|
|
189
|
+
type Message = string;
|
|
190
|
+
type SessionId = (string | null);
|
|
191
|
+
type Code = (string | number | null);
|
|
192
|
+
interface SystemErrorPayload {
|
|
193
|
+
message: Message;
|
|
194
|
+
session_id?: SessionId;
|
|
195
|
+
code?: Code;
|
|
196
|
+
detail?: Detail;
|
|
197
|
+
[k: string]: unknown;
|
|
198
|
+
}
|
|
199
|
+
interface Detail {
|
|
200
|
+
[k: string]: unknown;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
export type SystemErrorPayload = SystemErrorPayloadSchema.SystemErrorPayload;
|
|
204
|
+
export declare namespace SystemNotificationPayloadSchema {
|
|
205
|
+
type SessionId = (string | null);
|
|
206
|
+
type NotificationType = string;
|
|
207
|
+
type Title = string;
|
|
208
|
+
type Detail = (string | null);
|
|
209
|
+
type Status = (string | null);
|
|
210
|
+
type Metadata = ({
|
|
211
|
+
[k: string]: unknown;
|
|
212
|
+
} | null);
|
|
213
|
+
interface SystemNotificationPayload {
|
|
214
|
+
session_id?: SessionId;
|
|
215
|
+
notification_type: NotificationType;
|
|
216
|
+
title: Title;
|
|
217
|
+
detail?: Detail;
|
|
218
|
+
status?: Status;
|
|
219
|
+
metadata?: Metadata;
|
|
220
|
+
[k: string]: unknown;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export type SystemNotificationPayload = SystemNotificationPayloadSchema.SystemNotificationPayload;
|
|
224
|
+
export declare namespace TurnEventsPayloadSchema {
|
|
225
|
+
type SessionId = string;
|
|
226
|
+
type Type = string;
|
|
227
|
+
type StreamSequence = (number | null);
|
|
228
|
+
type Events = RawWireEvent[];
|
|
229
|
+
interface TurnEventsPayload {
|
|
230
|
+
session_id: SessionId;
|
|
231
|
+
events: Events;
|
|
232
|
+
[k: string]: unknown;
|
|
233
|
+
}
|
|
234
|
+
interface RawWireEvent {
|
|
235
|
+
type: Type;
|
|
236
|
+
payload: Payload;
|
|
237
|
+
stream_sequence?: StreamSequence;
|
|
238
|
+
[k: string]: unknown;
|
|
239
|
+
}
|
|
240
|
+
interface Payload {
|
|
241
|
+
[k: string]: unknown;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
export type TurnEventsPayload = TurnEventsPayloadSchema.TurnEventsPayload;
|
|
245
|
+
export declare namespace AsrReadyPayloadSchema {
|
|
246
|
+
type RequestId = string;
|
|
247
|
+
type Provider = string;
|
|
248
|
+
interface AsrReadyPayload {
|
|
249
|
+
request_id: RequestId;
|
|
250
|
+
provider: Provider;
|
|
251
|
+
[k: string]: unknown;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
export type AsrReadyPayload = AsrReadyPayloadSchema.AsrReadyPayload;
|
|
255
|
+
export declare namespace AsrTextPayloadSchema {
|
|
256
|
+
type Text = string;
|
|
257
|
+
type RequestId = (string | null);
|
|
258
|
+
interface AsrTextPayload {
|
|
259
|
+
text: Text;
|
|
260
|
+
request_id?: RequestId;
|
|
261
|
+
[k: string]: unknown;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
export type AsrTextPayload = AsrTextPayloadSchema.AsrTextPayload;
|
|
265
|
+
export declare namespace AsrClosedPayloadSchema {
|
|
266
|
+
type RequestId = string;
|
|
267
|
+
interface AsrClosedPayload {
|
|
268
|
+
request_id: RequestId;
|
|
269
|
+
[k: string]: unknown;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export type AsrClosedPayload = AsrClosedPayloadSchema.AsrClosedPayload;
|
|
273
|
+
export declare namespace AsrErrorPayloadSchema {
|
|
274
|
+
type Message = string;
|
|
275
|
+
type RequestId = (string | null);
|
|
276
|
+
interface AsrErrorPayload {
|
|
277
|
+
message: Message;
|
|
278
|
+
request_id?: RequestId;
|
|
279
|
+
[k: string]: unknown;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
export type AsrErrorPayload = AsrErrorPayloadSchema.AsrErrorPayload;
|
|
283
|
+
export declare namespace AgentBoardBoardTaskChangedPayloadSchema {
|
|
284
|
+
type ProjectId = number;
|
|
285
|
+
type Action = ("created" | "updated" | "deleted");
|
|
286
|
+
interface AgentBoardBoardTaskChangedPayload {
|
|
287
|
+
project_id: ProjectId;
|
|
288
|
+
action: Action;
|
|
289
|
+
task: Task;
|
|
290
|
+
[k: string]: unknown;
|
|
291
|
+
}
|
|
292
|
+
interface Task {
|
|
293
|
+
[k: string]: unknown;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
export type AgentBoardBoardTaskChangedPayload = AgentBoardBoardTaskChangedPayloadSchema.AgentBoardBoardTaskChangedPayload;
|
|
297
|
+
export declare namespace AgentBoardFileOpPayloadSchema {
|
|
298
|
+
type ProjectId = number;
|
|
299
|
+
type SessionId = string;
|
|
300
|
+
type ToolCallId = (string | null);
|
|
301
|
+
type Action = string;
|
|
302
|
+
type FilePath = string;
|
|
303
|
+
type Description = (string | null);
|
|
304
|
+
type ContentPreview = (string | null);
|
|
305
|
+
type FinalContent = (string | null);
|
|
306
|
+
type ContentDelta = (boolean | null);
|
|
307
|
+
type IsFinal = (boolean | null);
|
|
308
|
+
type CreatedAt = string;
|
|
309
|
+
interface AgentBoardFileOpPayload {
|
|
310
|
+
project_id: ProjectId;
|
|
311
|
+
session_id: SessionId;
|
|
312
|
+
tool_call_id?: ToolCallId;
|
|
313
|
+
action: Action;
|
|
314
|
+
file_path: FilePath;
|
|
315
|
+
description?: Description;
|
|
316
|
+
content_preview?: ContentPreview;
|
|
317
|
+
final_content?: FinalContent;
|
|
318
|
+
content_delta?: ContentDelta;
|
|
319
|
+
is_final?: IsFinal;
|
|
320
|
+
created_at: CreatedAt;
|
|
321
|
+
[k: string]: unknown;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
export type AgentBoardFileOpPayload = AgentBoardFileOpPayloadSchema.AgentBoardFileOpPayload;
|
|
325
|
+
export declare namespace ChatStopAckSchema {
|
|
326
|
+
type Status = string;
|
|
327
|
+
type Message = (string | null);
|
|
328
|
+
type Code = (string | number | null);
|
|
329
|
+
interface ChatStopAck {
|
|
330
|
+
status: Status;
|
|
331
|
+
message?: Message;
|
|
332
|
+
code?: Code;
|
|
333
|
+
[k: string]: unknown;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
export type ChatStopAck = ChatStopAckSchema.ChatStopAck;
|
|
337
|
+
export declare namespace ChatCompactAckSchema {
|
|
338
|
+
type Status = string;
|
|
339
|
+
type Message = (string | null);
|
|
340
|
+
type Code = (string | number | null);
|
|
341
|
+
interface ChatCompactAck {
|
|
342
|
+
status: Status;
|
|
343
|
+
message?: Message;
|
|
344
|
+
code?: Code;
|
|
345
|
+
[k: string]: unknown;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
export type ChatCompactAck = ChatCompactAckSchema.ChatCompactAck;
|
|
349
|
+
export interface ClientToServerEvents {
|
|
350
|
+
"chat:send": (payload: ChatSendPayload) => void;
|
|
351
|
+
"chat:stop": (payload: ChatStopPayload, ack: (response: ChatStopAck) => void) => void;
|
|
352
|
+
"chat:append": (payload: ChatAppendPayload) => void;
|
|
353
|
+
"chat:compact": (payload: ChatCompactPayload, ack: (response: ChatCompactAck) => void) => void;
|
|
354
|
+
"session:subscribe": (payload: SessionSubscribePayload) => void;
|
|
355
|
+
"session:subscribe_batch": (payload: SessionSubscribeBatchPayload) => void;
|
|
356
|
+
"session:unsubscribe": (payload: SessionUnsubscribePayload) => void;
|
|
357
|
+
"agent-board:project:subscribe": (payload: AgentBoardProjectSubscribePayload) => void;
|
|
358
|
+
"agent-board:project:unsubscribe": (payload: AgentBoardProjectUnsubscribePayload) => void;
|
|
359
|
+
"asr:start": (payload: unknown) => void;
|
|
360
|
+
"asr:audio": (payload: AsrAudioPayload) => void;
|
|
361
|
+
"asr:stop": (payload: unknown) => void;
|
|
362
|
+
"gis.event.analysis.request": (payload: unknown, ack: (response: unknown) => void) => void;
|
|
363
|
+
}
|
|
364
|
+
export interface ServerToClientEvents {
|
|
365
|
+
"chat:start": (payload: ChatStartPayload) => void;
|
|
366
|
+
"chat:end": (payload: ChatEndPayload) => void;
|
|
367
|
+
"chat:append:ack": (payload: unknown) => void;
|
|
368
|
+
"session:updated": (payload: SessionUpdatedPayload) => void;
|
|
369
|
+
"workspace:files_changed": (payload: WorkspaceFilesChangedPayload) => void;
|
|
370
|
+
"system:error": (payload: SystemErrorPayload) => void;
|
|
371
|
+
"system:notification": (payload: SystemNotificationPayload) => void;
|
|
372
|
+
"turn:events": (payload: TurnEventsPayload) => void;
|
|
373
|
+
"task:updated": (payload: unknown) => void;
|
|
374
|
+
"task:synced": (payload: unknown) => void;
|
|
375
|
+
"artifact:created": (payload: unknown) => void;
|
|
376
|
+
"artifact:updated": (payload: unknown) => void;
|
|
377
|
+
"bg:started": (payload: unknown) => void;
|
|
378
|
+
"bg:tasks_completed": (payload: unknown) => void;
|
|
379
|
+
"skills:changed": (payload: unknown) => void;
|
|
380
|
+
"session:rewind": (payload: unknown) => void;
|
|
381
|
+
"asr:ready": (payload: AsrReadyPayload) => void;
|
|
382
|
+
"asr:partial": (payload: AsrTextPayload) => void;
|
|
383
|
+
"asr:final": (payload: AsrTextPayload) => void;
|
|
384
|
+
"asr:closed": (payload: AsrClosedPayload) => void;
|
|
385
|
+
"asr:error": (payload: AsrErrorPayload) => void;
|
|
386
|
+
"replay:input_mismatch": (payload: unknown) => void;
|
|
387
|
+
"agent-board:board-task:changed": (payload: AgentBoardBoardTaskChangedPayload) => void;
|
|
388
|
+
"agent-board:file-op": (payload: AgentBoardFileOpPayload) => void;
|
|
389
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ApiKeysResource } from "../../client/resources/api-keys.js";
|
|
2
|
+
export type * from "../../client/resources/api-keys.js";
|
|
3
|
+
export declare const listApiKeys: (...args: Parameters<ApiKeysResource["listApiKeys"]>) => Promise<import("./api-keys.js").ApiKeyPublic[]>;
|
|
4
|
+
export declare const createApiKey: (...args: Parameters<ApiKeysResource["createApiKey"]>) => Promise<import("./api-keys.js").ApiKeyCreateResponse>;
|
|
5
|
+
export declare const renameApiKey: (...args: Parameters<ApiKeysResource["renameApiKey"]>) => Promise<import("./api-keys.js").ApiKeyPublic>;
|
|
6
|
+
export declare const deleteApiKey: (...args: Parameters<ApiKeysResource["deleteApiKey"]>) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppDevTemplatesResource } from "../../client/resources/app-dev-templates.js";
|
|
2
|
+
export type * from "../../client/resources/app-dev-templates.js";
|
|
3
|
+
export declare const list: (...args: Parameters<AppDevTemplatesResource["list"]>) => Promise<import("./app-dev-templates.js").AppDevTemplateListResponse>;
|
|
4
|
+
export declare const get: (...args: Parameters<AppDevTemplatesResource["get"]>) => Promise<import("./app-dev-templates.js").AppDevTemplateDetail>;
|
|
5
|
+
export declare const getMediaUrl: (...args: Parameters<AppDevTemplatesResource["getMediaUrl"]>) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AuthResource } from "../../client/resources/auth.js";
|
|
2
|
+
export type * from "../../client/resources/auth.js";
|
|
3
|
+
export declare const getProviders: (...args: Parameters<AuthResource["getProviders"]>) => Promise<import("./auth.js").ProvidersResponse>;
|
|
4
|
+
export declare const getMe: (...args: Parameters<AuthResource["getMe"]>) => Promise<import("./auth.js").UserInfo>;
|
|
5
|
+
export declare const logout: (...args: Parameters<AuthResource["logout"]>) => Promise<{
|
|
6
|
+
logout_url: string;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BladeClient, BladeClientOptions } from "../../client/index.js";
|
|
2
|
+
export declare function getBaseUrl(): string;
|
|
3
|
+
export declare function getAuthedUrl(path: string): string;
|
|
4
|
+
export declare function apiFetch<T>(path: string, init?: RequestInit): Promise<T>;
|
|
5
|
+
export declare function apiFetchText(path: string, init?: RequestInit): Promise<string>;
|
|
6
|
+
export declare function apiFetchResponse(path: string, init?: RequestInit): Promise<Response>;
|
|
7
|
+
export declare function getClient(): BladeClient;
|
|
8
|
+
export type { BladeClientOptions };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EnvBucketsResource } from "../../client/resources/env-buckets.js";
|
|
2
|
+
export type * from "../../client/resources/env-buckets.js";
|
|
3
|
+
export declare const listEnvBuckets: (...args: Parameters<EnvBucketsResource["listEnvBuckets"]>) => Promise<import("./env-buckets.js").EnvBucket[]>;
|
|
4
|
+
export declare const getEnvBucket: (...args: Parameters<EnvBucketsResource["getEnvBucket"]>) => Promise<import("./env-buckets.js").EnvBucket>;
|
|
5
|
+
export declare const setEnvBucket: (...args: Parameters<EnvBucketsResource["setEnvBucket"]>) => Promise<import("./env-buckets.js").EnvBucket>;
|
|
6
|
+
export declare const deleteEnvBucket: (...args: Parameters<EnvBucketsResource["deleteEnvBucket"]>) => Promise<void>;
|
|
7
|
+
export declare const getPlatformEnv: (...args: Parameters<EnvBucketsResource["getPlatformEnv"]>) => Promise<import("./env-buckets.js").PlatformEnvBucket>;
|
|
8
|
+
export declare const getPlatformEnvReadonly: (...args: Parameters<EnvBucketsResource["getPlatformEnvReadonly"]>) => Promise<import("./env-buckets.js").PlatformEnvBucket>;
|
|
9
|
+
export declare const setPlatformEnv: (...args: Parameters<EnvBucketsResource["setPlatformEnv"]>) => Promise<import("./env-buckets.js").PlatformEnvBucket>;
|
|
10
|
+
export declare const deletePlatformEnv: (...args: Parameters<EnvBucketsResource["deletePlatformEnv"]>) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GisResource } from "../../client/resources/gis.js";
|
|
2
|
+
export type * from "../../client/resources/gis.js";
|
|
3
|
+
export declare const fetchGisState: (...args: Parameters<GisResource["fetchGisState"]>) => Promise<import("../index.js").GisState>;
|
|
4
|
+
export declare const fetchRuntimeConfig: (...args: Parameters<GisResource["fetchRuntimeConfig"]>) => Promise<import("../index.js").RuntimeConfig>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MemoriesResource } from "../../client/resources/memories.js";
|
|
2
|
+
export type * from "../../client/resources/memories.js";
|
|
3
|
+
export declare const createMemory: (...args: Parameters<MemoriesResource["createMemory"]>) => Promise<import("./memories.js").Memory>;
|
|
4
|
+
export declare const listMemories: (...args: Parameters<MemoriesResource["listMemories"]>) => Promise<import("./memories.js").MemoryListResponse>;
|
|
5
|
+
export declare const getMemory: (...args: Parameters<MemoriesResource["getMemory"]>) => Promise<import("./memories.js").Memory>;
|
|
6
|
+
export declare const updateMemory: (...args: Parameters<MemoriesResource["updateMemory"]>) => Promise<import("./memories.js").Memory>;
|
|
7
|
+
export declare const patchMemory: (...args: Parameters<MemoriesResource["patchMemory"]>) => Promise<import("./memories.js").Memory>;
|
|
8
|
+
export declare const deleteMemory: (...args: Parameters<MemoriesResource["deleteMemory"]>) => Promise<{
|
|
9
|
+
ok: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const batchMemories: (...args: Parameters<MemoriesResource["batchMemories"]>) => Promise<{
|
|
12
|
+
ok: boolean;
|
|
13
|
+
count: number;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type ThinkingRequestFormat = "auto" | "none" | "openai_reasoning_effort" | "openrouter_reasoning" | "deepseek_thinking" | "together_reasoning" | "zai_thinking" | "qwen_enable_thinking" | "sglang_chat_template";
|
|
2
|
+
export interface RuntimeProviderConfig {
|
|
3
|
+
name: string;
|
|
4
|
+
base_url: string;
|
|
5
|
+
api_key_configured: boolean;
|
|
6
|
+
thinking_request_format: ThinkingRequestFormat;
|
|
7
|
+
effective_thinking_request_format: Exclude<ThinkingRequestFormat, "auto">;
|
|
8
|
+
}
|
|
9
|
+
export interface RuntimeModelDetails {
|
|
10
|
+
id: string;
|
|
11
|
+
context_window: number;
|
|
12
|
+
supports_vision: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface RuntimeModelConfig {
|
|
15
|
+
id: string;
|
|
16
|
+
provider: RuntimeProviderConfig;
|
|
17
|
+
model: RuntimeModelDetails;
|
|
18
|
+
}
|
|
19
|
+
export interface RuntimeModelConfigCollection {
|
|
20
|
+
items: RuntimeModelConfig[];
|
|
21
|
+
default_config_id: string;
|
|
22
|
+
source: "saved" | "startup";
|
|
23
|
+
}
|
|
24
|
+
export interface UpdateProviderConfig {
|
|
25
|
+
base_url: string;
|
|
26
|
+
api_key?: string;
|
|
27
|
+
thinking_request_format: ThinkingRequestFormat;
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateModelDetails {
|
|
30
|
+
id: string;
|
|
31
|
+
context_window: number;
|
|
32
|
+
supports_vision: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface UpdateRuntimeModelConfig {
|
|
35
|
+
provider: UpdateProviderConfig;
|
|
36
|
+
model: UpdateModelDetails;
|
|
37
|
+
}
|
|
38
|
+
export interface ModelConfigProbe {
|
|
39
|
+
provider: UpdateProviderConfig;
|
|
40
|
+
model_id: string;
|
|
41
|
+
config_id?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ModelCandidatesRequest {
|
|
44
|
+
provider: UpdateProviderConfig;
|
|
45
|
+
config_id?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ModelCandidatesResult {
|
|
48
|
+
provider_name: string;
|
|
49
|
+
models: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface ContextWindowDetectionResult {
|
|
52
|
+
provider_name: string;
|
|
53
|
+
model_id: string;
|
|
54
|
+
context_window: number;
|
|
55
|
+
}
|
|
56
|
+
export interface ModelConfigTestResult {
|
|
57
|
+
ok: boolean;
|
|
58
|
+
provider_name: string;
|
|
59
|
+
model_id: string;
|
|
60
|
+
}
|
|
61
|
+
export declare function getRuntimeModelConfigs(): Promise<RuntimeModelConfigCollection>;
|
|
62
|
+
export declare function createRuntimeModelConfig(config: UpdateRuntimeModelConfig): Promise<RuntimeModelConfigCollection>;
|
|
63
|
+
export declare function updateRuntimeModelConfig(configId: string, config: UpdateRuntimeModelConfig): Promise<RuntimeModelConfigCollection>;
|
|
64
|
+
export declare function deleteRuntimeModelConfig(configId: string): Promise<RuntimeModelConfigCollection>;
|
|
65
|
+
export declare function setDefaultRuntimeModelConfig(configId: string): Promise<RuntimeModelConfigCollection>;
|
|
66
|
+
export declare function detectContextWindow(config: ModelConfigProbe): Promise<ContextWindowDetectionResult>;
|
|
67
|
+
export declare function listModelCandidates(config: ModelCandidatesRequest): Promise<ModelCandidatesResult>;
|
|
68
|
+
export declare function testRuntimeModelConfig(config: ModelConfigProbe): Promise<ModelConfigTestResult>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModelsResource } from "../../client/resources/models.js";
|
|
2
|
+
export * from "../../client/resources/models.js";
|
|
3
|
+
export declare const getModelsConfig: (...args: Parameters<ModelsResource["getModelsConfig"]>) => Promise<{
|
|
4
|
+
default: string;
|
|
5
|
+
thinkingAvailable?: boolean | undefined;
|
|
6
|
+
models: {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
inputModalities?: string[] | undefined;
|
|
10
|
+
supportsImage?: boolean | undefined;
|
|
11
|
+
thinkingAvailable?: boolean | undefined;
|
|
12
|
+
}[];
|
|
13
|
+
}>;
|