@caido/sdk-frontend 0.57.1-beta.9 → 0.57.2-beta.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.
@@ -1,3 +1,5 @@
1
+ import type { DefineComponent } from "vue";
2
+ import type { HTTPQLEditorProps } from "./types/httpqlEditor";
1
3
  export { FooterSlot, type FooterSlotContent } from "./types/footer";
2
4
  export type { DialogOptions, DialogComponent } from "./types/window";
3
5
  export type { _AnalyticsSDK } from "./private/analytics";
@@ -23,7 +25,7 @@ export { SettingsSlot, type SettingsSlotContent, type SettingsPluginSlotContent,
23
25
  export type { EnvironmentVariable } from "./types/environment";
24
26
  export type { Workflow, WorkflowKind, OnCreatedWorkflowCallback, OnUpdatedWorkflowCallback, OnDeletedWorkflowCallback, } from "./types/workflows";
25
27
  export type { ListenerHandle, AddIndicatorOptions, Indicator, ComponentProps, ComponentPropsWithSdk, } from "./types/utils";
26
- export type { AIProvider, AILanguageModelSettings, AIReasoningSettings, AIUpstreamProvider, AIUpstreamProviderId, AIUpstreamProviderStatus, } from "./types/ai";
28
+ export type { AIProvider, AILanguageModelSettings, AIReasoningSettings, AIUpstreamProvider, AIUpstreamProviderApi, AIUpstreamProviderId, } from "./types/ai";
27
29
  export type { SelectedProjectChangeEvent } from "./types/projects";
28
30
  export type { CommandPaletteViewProps, CommandPaletteViewPropsInternal, } from "./types/commandPalette";
29
31
  export type { CommandPaletteView } from "./sdks/commandPalette";
@@ -48,3 +50,7 @@ export type { SearchPageContext } from "./types/search";
48
50
  export type { SitemapPageContext } from "./types/sitemap";
49
51
  export type { MatchReplacePageContext } from "./types/matchReplace";
50
52
  export type { WorkflowsPageContext } from "./types/workflows";
53
+ export type { HTTPQLEditorProps };
54
+ export declare const HTTPQLEditor: DefineComponent<HTTPQLEditorProps & {
55
+ modelValue?: string;
56
+ }>;
@@ -10,8 +10,8 @@ export type AiSDK = {
10
10
  */
11
11
  createProvider: () => AIProvider;
12
12
  /**
13
- * Gets the list of upstream AI providers with their configuration status.
14
- * @returns An array of AI upstream providers with their configuration status.
13
+ * Gets the list of configured upstream AI providers.
14
+ * @returns An array of configured AI upstream providers.
15
15
  */
16
16
  getUpstreamProviders: () => AIUpstreamProvider[];
17
17
  };
@@ -4,6 +4,7 @@ import type { RequestViewModeOptions, RequestWritableViewModeProps } from "../ty
4
4
  import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
5
5
  import { type DefineAddToSlotFn } from "../types/slots";
6
6
  import type { ID, Indicator, ListenerHandle } from "../types/utils";
7
+ import type { MessageViewModeOptions, MessageViewModeProps } from "../types/websocket";
7
8
  /**
8
9
  * Utilities to interact with Replay.
9
10
  * @category Replay
@@ -165,6 +166,11 @@ export type ReplaySDK = {
165
166
  * @param options The view mode options.
166
167
  */
167
168
  addResponseViewMode: (options: ResponseViewModeOptions<ResponseViewModeProps>) => void;
169
+ /**
170
+ * Add a custom WebSocket message view mode.
171
+ * @param options The view mode options.
172
+ */
173
+ addWebsocketMessageViewMode: (options: MessageViewModeOptions<MessageViewModeProps>) => void;
168
174
  /**
169
175
  * Send a request to the Replay backend.
170
176
  * @param request The request to send.
@@ -26,19 +26,18 @@ export type AIProvider = ProviderV3 & ((modelId: string, settings?: AILanguageMo
26
26
  * AI upstream provider ID.
27
27
  * @category AI
28
28
  */
29
- export type AIUpstreamProviderId = "anthropic" | "google" | "openai" | "openrouter";
29
+ export type AIUpstreamProviderId = string;
30
+ /**
31
+ * The response API a provider speaks.
32
+ * @category AI
33
+ */
34
+ export type AIUpstreamProviderApi = "ANTHROPIC" | "GEMINI" | "OPENAI_COMPLETION" | "OPENAI_RESPONSE" | "OPENROUTER";
30
35
  /**
31
36
  * AI upstream provider information.
37
+ * Only configured providers are returned.
32
38
  * @category AI
33
39
  */
34
40
  export type AIUpstreamProvider = {
35
41
  id: AIUpstreamProviderId;
36
- status: AIUpstreamProviderStatus;
42
+ api: AIUpstreamProviderApi;
37
43
  };
38
- /**
39
- * AI upstream provider status.
40
- * Ready: The upstream provider is ready to use.
41
- * Missing: The upstream provider is not configured.
42
- * @category AI
43
- */
44
- export type AIUpstreamProviderStatus = "Ready" | "Missing";
@@ -0,0 +1,3 @@
1
+ export type HTTPQLEditorProps = {
2
+ isReadOnly?: boolean;
3
+ };