@caido/sdk-frontend 0.54.2-beta.13 → 0.54.2-beta.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-frontend",
|
|
3
|
-
"version": "0.54.2-beta.
|
|
3
|
+
"version": "0.54.2-beta.15",
|
|
4
4
|
"description": "Typing for the Caido Frontend SDK",
|
|
5
5
|
"author": "Caido Labs Inc. <dev@caido.io>",
|
|
6
6
|
"repository": "https://github.com/caido/sdk-js/",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"src/*"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@ai-sdk/provider": "^
|
|
15
|
+
"@ai-sdk/provider": "^3.0.1",
|
|
16
16
|
"@codemirror/view": "^6.0.0",
|
|
17
17
|
"@codemirror/state": "^6.0.0",
|
|
18
18
|
"vue": "^3.0.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RequestViewModeOptions } from "../types/request";
|
|
2
|
+
import type { ResponseViewModeOptions } from "../types/response";
|
|
2
3
|
import type { ID } from "../types/utils";
|
|
3
4
|
/**
|
|
4
5
|
* Utilities to interact with the Intercept page.
|
|
@@ -20,4 +21,9 @@ export type InterceptSDK = {
|
|
|
20
21
|
* @param options The view mode options.
|
|
21
22
|
*/
|
|
22
23
|
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Add a custom response view mode.
|
|
26
|
+
* @param options The view mode options.
|
|
27
|
+
*/
|
|
28
|
+
addResponseViewMode: (options: ResponseViewModeOptions) => void;
|
|
23
29
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Extension } from "@codemirror/state";
|
|
2
2
|
import { type CurrentReplaySessionChangeEvent, type OpenTabOptions, type ReplayCollection, type ReplayCollectionCreatedEvent, type ReplayEntry, type ReplaySession, type ReplaySessionCreatedEvent, type ReplaySlotContent, type ReplayTab, type RequestSource, type SendRequestOptions } from "../types/replay";
|
|
3
3
|
import type { RequestViewModeOptions } from "../types/request";
|
|
4
|
+
import type { ResponseViewModeOptions } from "../types/response";
|
|
4
5
|
import { type DefineAddToSlotFn } from "../types/slots";
|
|
5
6
|
import type { AddIndicatorOptions, ID, Indicator, ListenerHandle } from "../types/utils";
|
|
6
7
|
/**
|
|
@@ -129,6 +130,11 @@ export type ReplaySDK = {
|
|
|
129
130
|
* @param options The view mode options.
|
|
130
131
|
*/
|
|
131
132
|
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
133
|
+
/**
|
|
134
|
+
* Add a custom response view mode.
|
|
135
|
+
* @param options The view mode options.
|
|
136
|
+
*/
|
|
137
|
+
addResponseViewMode: (options: ResponseViewModeOptions) => void;
|
|
132
138
|
/**
|
|
133
139
|
* Send a request to the Replay backend.
|
|
134
140
|
* @param request The request to send.
|
package/src/types/types/ai.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LanguageModelV3, type ProviderV3 } from "@ai-sdk/provider";
|
|
2
2
|
/**
|
|
3
3
|
* Settings for AI reasoning.
|
|
4
4
|
* @category AI
|
|
@@ -21,7 +21,7 @@ export type AILanguageModelSettings = {
|
|
|
21
21
|
* Official AI Provider to be used by the [ai](https://ai-sdk.dev/) library.
|
|
22
22
|
* @category AI
|
|
23
23
|
*/
|
|
24
|
-
export type AIProvider =
|
|
24
|
+
export type AIProvider = ProviderV3 & ((modelId: string, settings?: AILanguageModelSettings) => LanguageModelV3);
|
|
25
25
|
/**
|
|
26
26
|
* AI upstream provider ID.
|
|
27
27
|
* @category AI
|