@camera.ui/browser 0.0.189 → 0.0.190
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/index.d.ts +35 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AssistantToolReference } from '@camera.ui/sdk';
|
|
1
2
|
import { AudioProperty } from '@camera.ui/sdk';
|
|
2
3
|
import { AudioSensorProperties } from '@camera.ui/sdk';
|
|
3
4
|
import type { BaseCamera } from '@camera.ui/sdk';
|
|
@@ -41,6 +42,7 @@ import { HumidityProperty } from '@camera.ui/sdk';
|
|
|
41
42
|
import { IlluminanceInfoProperties } from '@camera.ui/sdk';
|
|
42
43
|
import { IlluminanceProperty } from '@camera.ui/sdk';
|
|
43
44
|
import { InjectionKey } from 'vue';
|
|
45
|
+
import type { JSONSchema } from '@tanstack/ai';
|
|
44
46
|
import { LeakProperty } from '@camera.ui/sdk';
|
|
45
47
|
import { LeakSensorProperties } from '@camera.ui/sdk';
|
|
46
48
|
import { LicensePlateDetection } from '@camera.ui/sdk';
|
|
@@ -130,6 +132,36 @@ declare interface ActivityModeState {
|
|
|
130
132
|
readonly hasActivity: Ref<boolean>;
|
|
131
133
|
}
|
|
132
134
|
|
|
135
|
+
declare interface AssistantAccess {
|
|
136
|
+
allowed: boolean;
|
|
137
|
+
model: string | null;
|
|
138
|
+
vision: boolean | null;
|
|
139
|
+
language: string | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare interface AssistantAskRequest {
|
|
143
|
+
pluginId: string;
|
|
144
|
+
prompt: string;
|
|
145
|
+
system?: string;
|
|
146
|
+
images?: { data: Uint8Array; mimeType: string }[];
|
|
147
|
+
outputSchema?: JSONSchema;
|
|
148
|
+
timeoutMs?: number;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare type AssistantAskResult =
|
|
152
|
+
| { ok: true; text: string; json?: unknown; usage: { promptTokens: number; completionTokens: number } }
|
|
153
|
+
| { ok: false; reason: 'not_allowed' | 'unconfigured' | 'timeout' | 'error'; message: string };
|
|
154
|
+
|
|
155
|
+
declare interface AssistantPost {
|
|
156
|
+
userId: string;
|
|
157
|
+
threadId: string;
|
|
158
|
+
title?: string;
|
|
159
|
+
text: string;
|
|
160
|
+
label?: string;
|
|
161
|
+
image?: { data: string; mimeType: string };
|
|
162
|
+
references?: AssistantToolReference[];
|
|
163
|
+
}
|
|
164
|
+
|
|
133
165
|
/* Excluded from this release type: AudioProperty */
|
|
134
166
|
|
|
135
167
|
/* Excluded from this release type: AudioSensorProperties */
|
|
@@ -296,6 +328,9 @@ export declare interface CoreManagerInterface {
|
|
|
296
328
|
getPlugin(pluginName: string): Promise<HostPluginInfo | undefined>;
|
|
297
329
|
getPluginsByInterface(interfaceName: PluginInterface): Promise<HostPluginInfo[]>;
|
|
298
330
|
getFloorPlan(): Promise<FloorPlan>;
|
|
331
|
+
assistantAsk(request: AssistantAskRequest): Promise<AssistantAskResult>;
|
|
332
|
+
assistantAccess(pluginId: string): Promise<AssistantAccess>;
|
|
333
|
+
assistantPost(post: AssistantPost): Promise<boolean>;
|
|
299
334
|
}
|
|
300
335
|
|
|
301
336
|
export declare interface CoreManagerNamespaces {
|
package/dist/index.js
CHANGED
|
@@ -715,7 +715,7 @@ async function createReactiveCameraDevice(rpcOrContext, initialCamera) {
|
|
|
715
715
|
case "frameWorkerState":
|
|
716
716
|
frameWorkerConnected.value = event.data;
|
|
717
717
|
break;
|
|
718
|
-
case "snapshot:updated": setSnapshot(initialCamera._id, event.data.snapshot,
|
|
718
|
+
case "snapshot:updated": setSnapshot(initialCamera._id, event.data.snapshot, event.data.fetchedAt);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
function handleSensorEvent(event) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.190",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/cameraui/clients)",
|
|
6
6
|
"type": "module",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@camera.ui/logger": "file:../../packages/logger",
|
|
41
41
|
"@camera.ui/rpc": "^1.0.12",
|
|
42
|
-
"@camera.ui/sdk": "~1.2.
|
|
42
|
+
"@camera.ui/sdk": "~1.2.38",
|
|
43
43
|
"@camera.ui/transport": "file:../../packages/transport",
|
|
44
44
|
"@eneris/push-receiver": "^4.3.1",
|
|
45
45
|
"@microsoft/api-extractor": "^7.59.1",
|
|
46
46
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
47
47
|
"@types/webrtc": "^0.0.47",
|
|
48
48
|
"@typescript-eslint/parser": "^8.70.0",
|
|
49
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
49
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
50
50
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
51
51
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
52
52
|
"@vue/language-core": "^3.3.11",
|