@camstack/types 1.0.5 → 1.0.6
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/addon.d.ts +34 -0
- package/dist/addon.js +22 -0
- package/dist/addon.mjs +3 -0
- package/dist/capabilities/addons.cap.d.ts +3 -3
- package/dist/capabilities/advanced-notifier.cap.d.ts +4 -4
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/audio-codec.cap.d.ts +2 -2
- package/dist/capabilities/camera-streams.cap.d.ts +10 -10
- package/dist/capabilities/consumables.cap.d.ts +4 -4
- package/dist/capabilities/cover.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +6 -6
- package/dist/capabilities/log-destination.cap.d.ts +5 -5
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/mesh-network.cap.d.ts +3 -3
- package/dist/capabilities/metrics-provider.cap.d.ts +33 -3
- package/dist/capabilities/network-access.cap.d.ts +7 -7
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -3
- package/dist/capabilities/platform-probe.cap.d.ts +1 -1
- package/dist/capabilities/restreamer.cap.d.ts +2 -2
- package/dist/capabilities/schemas/streaming-shared.d.ts +7 -7
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/storage.cap.d.ts +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +27 -27
- package/dist/capabilities/stream-params.cap.d.ts +14 -14
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
- package/dist/capabilities/valve.cap.d.ts +4 -4
- package/dist/capabilities/webrtc-session.cap.d.ts +12 -12
- package/dist/deps/binary-downloader.d.ts +1 -1
- package/dist/deps/ffmpeg-downloader.d.ts +1 -1
- package/dist/deps/python-downloader.d.ts +1 -1
- package/dist/device/base-device-provider.d.ts +4 -1
- package/dist/encode-profile.d.ts +2 -2
- package/dist/err-msg-COpsHMw2.js +18 -0
- package/dist/err-msg-IQTHeDzc.mjs +13 -0
- package/dist/generated/addon-api.d.ts +22 -12
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/health/wiring-health.d.ts +16 -16
- package/dist/index.js +1098 -4572
- package/dist/index.mjs +156 -3629
- package/dist/interfaces/metrics-provider.d.ts +3 -1
- package/dist/node.js +3 -3
- package/dist/node.mjs +1 -1
- package/dist/schemas/auth-records.d.ts +4 -4
- package/dist/sleep-D7JeS58T.mjs +3507 -0
- package/dist/sleep-DnS0eJh_.js +3920 -0
- package/dist/storage/filesystem-storage-provider.d.ts +2 -1
- package/package.json +6 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type { CpuBreakdownSchema, MemoryInfoSchema, DiskIoSnapshotSchema, NetworkIoSnapshotSchema, MetricsGpuInfoSchema, ProcessResourceInfoSchema, PressureInfoSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema, KillProcessInputSchema, KillProcessResultSchema } from '../capabilities/metrics-provider.cap.js';
|
|
2
|
+
import type { CpuBreakdownSchema, MemoryInfoSchema, DiskIoSnapshotSchema, NetworkIoSnapshotSchema, MetricsGpuInfoSchema, ProcessResourceInfoSchema, PressureInfoSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema, KillProcessInputSchema, KillProcessResultSchema, DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema } from '../capabilities/metrics-provider.cap.js';
|
|
3
3
|
export type CpuBreakdown = z.infer<typeof CpuBreakdownSchema>;
|
|
4
4
|
export type MemoryInfo = z.infer<typeof MemoryInfoSchema>;
|
|
5
5
|
export type DiskIoSnapshot = z.infer<typeof DiskIoSnapshotSchema>;
|
|
@@ -14,3 +14,5 @@ export type AddonInstance = z.infer<typeof AddonInstanceSchema>;
|
|
|
14
14
|
export type NodeProcess = z.infer<typeof NodeProcessSchema>;
|
|
15
15
|
export type KillProcessInput = z.infer<typeof KillProcessInputSchema>;
|
|
16
16
|
export type KillProcessResult = z.infer<typeof KillProcessResultSchema>;
|
|
17
|
+
export type DumpHeapSnapshotInput = z.infer<typeof DumpHeapSnapshotInputSchema>;
|
|
18
|
+
export type DumpHeapSnapshotResult = z.infer<typeof DumpHeapSnapshotResultSchema>;
|
package/dist/node.js
CHANGED
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const
|
|
24
|
+
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
25
25
|
let node_fs = require("node:fs");
|
|
26
26
|
node_fs = __toESM(node_fs);
|
|
27
27
|
let node_path = require("node:path");
|
|
@@ -372,7 +372,7 @@ async function installPythonPackages(pythonPath, packages, logger) {
|
|
|
372
372
|
});
|
|
373
373
|
logger.info("Python packages installed successfully");
|
|
374
374
|
} catch (err) {
|
|
375
|
-
logger.error("Failed to install Python packages", { meta: { error:
|
|
375
|
+
logger.error("Failed to install Python packages", { meta: { error: require_err_msg.errMsg(err) } });
|
|
376
376
|
throw err;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -422,7 +422,7 @@ async function installPythonRequirements(pythonPath, requirementsFile, logger) {
|
|
|
422
422
|
} catch (err) {
|
|
423
423
|
logger.error("Failed to install Python requirements", { meta: {
|
|
424
424
|
requirementsFile,
|
|
425
|
-
error:
|
|
425
|
+
error: require_err_msg.errMsg(err)
|
|
426
426
|
} });
|
|
427
427
|
throw err;
|
|
428
428
|
}
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { errMsg } from "./
|
|
1
|
+
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
2
2
|
import * as fs from "node:fs";
|
|
3
3
|
import { chmodSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
4
4
|
import * as path from "node:path";
|
|
@@ -33,15 +33,15 @@ export declare const MethodAccessSchema: z.ZodEnum<{
|
|
|
33
33
|
}>;
|
|
34
34
|
export type MethodAccess = z.infer<typeof MethodAccessSchema>;
|
|
35
35
|
export declare const CapScopeSchema: z.ZodEnum<{
|
|
36
|
-
device: "device";
|
|
37
36
|
system: "system";
|
|
37
|
+
device: "device";
|
|
38
38
|
}>;
|
|
39
39
|
export type CapScope = z.infer<typeof CapScopeSchema>;
|
|
40
40
|
export declare const TokenScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
41
|
type: z.ZodLiteral<"category">;
|
|
42
42
|
target: z.ZodEnum<{
|
|
43
|
-
device: "device";
|
|
44
43
|
system: "system";
|
|
44
|
+
device: "device";
|
|
45
45
|
}>;
|
|
46
46
|
access: z.ZodArray<z.ZodEnum<{
|
|
47
47
|
view: "view";
|
|
@@ -84,8 +84,8 @@ export declare const UserRecordSchema: z.ZodObject<{
|
|
|
84
84
|
scopes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
85
85
|
type: z.ZodLiteral<"category">;
|
|
86
86
|
target: z.ZodEnum<{
|
|
87
|
-
device: "device";
|
|
88
87
|
system: "system";
|
|
88
|
+
device: "device";
|
|
89
89
|
}>;
|
|
90
90
|
access: z.ZodArray<z.ZodEnum<{
|
|
91
91
|
view: "view";
|
|
@@ -142,8 +142,8 @@ export declare const ScopedTokenSchema: z.ZodObject<{
|
|
|
142
142
|
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
143
143
|
type: z.ZodLiteral<"category">;
|
|
144
144
|
target: z.ZodEnum<{
|
|
145
|
-
device: "device";
|
|
146
145
|
system: "system";
|
|
146
|
+
device: "device";
|
|
147
147
|
}>;
|
|
148
148
|
access: z.ZodArray<z.ZodEnum<{
|
|
149
149
|
view: "view";
|