@awarevue/api-types 2.0.46 → 2.0.48

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.
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ export declare const sAddCameraRq: z.ZodObject<{
3
+ displayName: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ displayName: string;
6
+ }, {
7
+ displayName: string;
8
+ }>;
9
+ export declare const sAddCameraRs: z.ZodObject<{
10
+ id: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ }, {
14
+ id: string;
15
+ }>;
16
+ export declare const sAddCameraStreamRq: z.ZodObject<{
17
+ cameraId: z.ZodString;
18
+ displayName: z.ZodString;
19
+ rtspUrl: z.ZodNullable<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ displayName: string;
22
+ rtspUrl: string | null;
23
+ cameraId: string;
24
+ }, {
25
+ displayName: string;
26
+ rtspUrl: string | null;
27
+ cameraId: string;
28
+ }>;
29
+ export declare const sAddCameraStreamRs: z.ZodObject<{
30
+ id: z.ZodString;
31
+ ffmpegCommandTemplate: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ ffmpegCommandTemplate: string;
35
+ }, {
36
+ id: string;
37
+ ffmpegCommandTemplate: string;
38
+ }>;
39
+ export declare const sDeleteCameraStreamRq: z.ZodObject<{
40
+ cameraId: z.ZodString;
41
+ streamId: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ streamId: string;
44
+ cameraId: string;
45
+ }, {
46
+ streamId: string;
47
+ cameraId: string;
48
+ }>;
49
+ export declare const sDeleteCameraStreamRs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
50
+ export type AddCameraRq = z.infer<typeof sAddCameraRq>;
51
+ export type AddCameraRs = z.infer<typeof sAddCameraRs>;
52
+ export type AddCameraStreamRq = z.infer<typeof sAddCameraStreamRq>;
53
+ export type AddCameraStreamRs = z.infer<typeof sAddCameraStreamRs>;
54
+ export type DeleteCameraStreamRq = z.infer<typeof sDeleteCameraStreamRq>;
55
+ export type DeleteCameraStreamRs = z.infer<typeof sDeleteCameraStreamRs>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sAddCameraRq = zod_1.z.object({
6
+ displayName: zod_1.z.string().nonempty(),
7
+ });
8
+ exports.sAddCameraRs = zod_1.z.object({
9
+ id: zod_1.z.string().nonempty(),
10
+ });
11
+ exports.sAddCameraStreamRq = zod_1.z.object({
12
+ cameraId: zod_1.z.string().nonempty(),
13
+ displayName: zod_1.z.string().nonempty(),
14
+ rtspUrl: zod_1.z.string().nonempty().nullable(),
15
+ });
16
+ exports.sAddCameraStreamRs = zod_1.z.object({
17
+ id: zod_1.z.string().nonempty(),
18
+ ffmpegCommandTemplate: zod_1.z.string().nonempty(),
19
+ });
20
+ exports.sDeleteCameraStreamRq = zod_1.z.object({
21
+ cameraId: zod_1.z.string().nonempty(),
22
+ streamId: zod_1.z.string().nonempty(),
23
+ });
24
+ exports.sDeleteCameraStreamRs = zod_1.z.object({});
@@ -33,3 +33,4 @@ export * from './view';
33
33
  export * from './webrtc-playback';
34
34
  export * from './io-device';
35
35
  export * from './device';
36
+ export * from './camera';
@@ -49,3 +49,4 @@ __exportStar(require("./view"), exports);
49
49
  __exportStar(require("./webrtc-playback"), exports);
50
50
  __exportStar(require("./io-device"), exports);
51
51
  __exportStar(require("./device"), exports);
52
+ __exportStar(require("./camera"), exports);
@@ -340,7 +340,7 @@ export declare const sWebRtcReleaseSessionPayload: z.ZodObject<{
340
340
  }>;
341
341
  export type WebRtcReleaseSessionPayload = z.infer<typeof sWebRtcReleaseSessionPayload>;
342
342
  export declare const sWebRtcErrorPayload: z.ZodObject<{
343
- requesId: z.ZodOptional<z.ZodString>;
343
+ requestId: z.ZodOptional<z.ZodString>;
344
344
  sessionId: z.ZodOptional<z.ZodString>;
345
345
  error: z.ZodObject<{
346
346
  code: z.ZodString;
@@ -357,15 +357,15 @@ export declare const sWebRtcErrorPayload: z.ZodObject<{
357
357
  code: string;
358
358
  message: string;
359
359
  };
360
+ requestId?: string | undefined;
360
361
  sessionId?: string | undefined;
361
- requesId?: string | undefined;
362
362
  }, {
363
363
  error: {
364
364
  code: string;
365
365
  message: string;
366
366
  };
367
+ requestId?: string | undefined;
367
368
  sessionId?: string | undefined;
368
- requesId?: string | undefined;
369
369
  }>;
370
370
  export type WebRtcErrorPayload = z.infer<typeof sWebRtcErrorPayload>;
371
371
  interface WebRtcEventMap {
@@ -73,7 +73,7 @@ exports.sWebRtcReleaseSessionPayload = zod_1.default.object({
73
73
  from: zod_1.default.string().optional(),
74
74
  });
75
75
  exports.sWebRtcErrorPayload = zod_1.default.object({
76
- requesId: zod_1.default.string().nonempty().optional(),
76
+ requestId: zod_1.default.string().nonempty().optional(),
77
77
  sessionId: zod_1.default.string().nonempty().optional(),
78
78
  error: zod_1.default.object({
79
79
  code: zod_1.default.string().nonempty(),
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",