@camera.ui/browser 0.0.111 → 0.0.113

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.
Files changed (51) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -1
  3. package/dist/index.d.ts +1269 -0
  4. package/dist/index.js +4179 -0
  5. package/package.json +55 -39
  6. package/CHANGELOG.md +0 -8
  7. package/dist/bundle.js +0 -2
  8. package/dist/bundle.js.LICENSE.txt +0 -14
  9. package/dist/types/packages/client/browser/src/api.d.ts +0 -8
  10. package/dist/types/packages/client/browser/src/client.d.ts +0 -21
  11. package/dist/types/packages/client/browser/src/index.d.ts +0 -2
  12. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +0 -26
  13. package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +0 -14
  14. package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +0 -16
  15. package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -3
  16. package/dist/types/packages/client/browser/src/proxy.d.ts +0 -7
  17. package/dist/types/packages/client/browser/src/streaming/config.d.ts +0 -21
  18. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +0 -286
  19. package/dist/types/packages/client/browser/src/streaming/types.d.ts +0 -38
  20. package/dist/types/packages/client/browser/src/types.d.ts +0 -56
  21. package/dist/types/packages/client/browser/src/utils.d.ts +0 -12
  22. package/dist/types/packages/common/src/utils/subscribed.d.ts +0 -18
  23. package/dist/types/packages/types/src/index.d.ts +0 -812
  24. package/dist/types/server/src/api/database/types.d.ts +0 -80
  25. package/dist/types/server/src/api/go2rtc/types.d.ts +0 -147
  26. package/dist/types/server/src/api/schemas/backup.schema.d.ts +0 -211
  27. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +0 -1864
  28. package/dist/types/server/src/api/schemas/config.schema.d.ts +0 -102
  29. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +0 -735
  30. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +0 -72
  31. package/dist/types/server/src/api/schemas/storage.schema.d.ts +0 -22
  32. package/dist/types/server/src/api/schemas/system.schema.d.ts +0 -185
  33. package/dist/types/server/src/api/schemas/users.schema.d.ts +0 -857
  34. package/dist/types/server/src/api/types/index.d.ts +0 -612
  35. package/dist/types/server/src/api/websocket/types.d.ts +0 -43
  36. package/dist/types/server/src/camera/classes.d.ts +0 -2
  37. package/dist/types/server/src/camera/index.d.ts +0 -92
  38. package/dist/types/server/src/camera/interfaces.d.ts +0 -17
  39. package/dist/types/server/src/camera/iou.d.ts +0 -2
  40. package/dist/types/server/src/camera/polygon.d.ts +0 -4
  41. package/dist/types/server/src/camera/types.d.ts +0 -17
  42. package/dist/types/server/src/go2rtc/types.d.ts +0 -15
  43. package/dist/types/server/src/manager/types.d.ts +0 -15
  44. package/dist/types/server/src/plugins/schema.d.ts +0 -27
  45. package/dist/types/server/src/plugins/types.d.ts +0 -49
  46. package/dist/types/server/src/rpc/namespaces.d.ts +0 -35
  47. package/dist/types/server/src/rpc/types.d.ts +0 -111
  48. package/dist/types/server/src/services/config/defaults.d.ts +0 -12
  49. package/dist/types/server/src/services/config/types.d.ts +0 -162
  50. package/dist/types/server/src/types.d.ts +0 -34
  51. package/dist/types/shared/types/index.d.ts +0 -22
@@ -1,72 +0,0 @@
1
- import * as zod from 'zod';
2
- import type { AudioMetadata, ImageMetadata } from '@camera.ui/types';
3
- import type { MultipartFile } from '@fastify/multipart';
4
- export declare const ACCEPTED_OBJECT_IMAGE_TYPES: string[];
5
- export declare const MAX_OBJECT_FILE_SIZE: number;
6
- export declare const ACCEPTED_MOTION_VIDEO_TYPES: string[];
7
- export declare const MAX_MOTION_FILE_SIZE: number;
8
- export declare const ACCEPTED_AUDIO_TYPES: string[];
9
- export declare const MAX_AUDIO_FILE_SIZE: number;
10
- export declare const installPluginSchema: zod.ZodObject<{
11
- pluginname: zod.ZodEffects<zod.ZodString, string, string>;
12
- pluginversion: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
13
- }, "strict", zod.ZodTypeAny, {
14
- pluginname: string;
15
- pluginversion: string;
16
- }, {
17
- pluginname: string;
18
- pluginversion?: string | undefined;
19
- }>;
20
- export declare const actionPluginSchema: zod.ZodObject<{
21
- actionId: zod.ZodString;
22
- payload: zod.ZodAny;
23
- }, "strict", zod.ZodTypeAny, {
24
- actionId: string;
25
- payload?: any;
26
- }, {
27
- actionId: string;
28
- payload?: any;
29
- }>;
30
- export declare const patchPluginConfigJsonSchema: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
31
- export declare const detectObjectSchema: zod.ZodObject<{
32
- upload: zod.ZodType<MultipartFile>;
33
- metadata: zod.ZodType<ImageMetadata>;
34
- config: zod.ZodType<Record<string, any>>;
35
- }, "strip", zod.ZodTypeAny, {
36
- config: Record<string, any>;
37
- upload: MultipartFile;
38
- metadata: ImageMetadata;
39
- }, {
40
- config: Record<string, any>;
41
- upload: MultipartFile;
42
- metadata: ImageMetadata;
43
- }>;
44
- export declare const detectAudioSchema: zod.ZodObject<{
45
- upload: zod.ZodType<MultipartFile>;
46
- metadata: zod.ZodType<AudioMetadata>;
47
- config: zod.ZodType<Record<string, any>>;
48
- }, "strip", zod.ZodTypeAny, {
49
- config: Record<string, any>;
50
- upload: MultipartFile;
51
- metadata: AudioMetadata;
52
- }, {
53
- config: Record<string, any>;
54
- upload: MultipartFile;
55
- metadata: AudioMetadata;
56
- }>;
57
- export declare const detectMotionSchema: zod.ZodObject<{
58
- upload: zod.ZodType<MultipartFile>;
59
- config: zod.ZodType<Record<string, any>>;
60
- }, "strip", zod.ZodTypeAny, {
61
- config: Record<string, any>;
62
- upload: MultipartFile;
63
- }, {
64
- config: Record<string, any>;
65
- upload: MultipartFile;
66
- }>;
67
- export type InstallPluginInput = zod.TypeOf<typeof installPluginSchema>;
68
- export type ActionPluginInput = zod.TypeOf<typeof actionPluginSchema>;
69
- export type PatchPluginConfigJsonInput = zod.TypeOf<typeof patchPluginConfigJsonSchema>;
70
- export type DetectObjectInput = zod.TypeOf<typeof detectObjectSchema>;
71
- export type DetectMotionInput = zod.TypeOf<typeof detectMotionSchema>;
72
- export type DetectAudioInput = zod.TypeOf<typeof detectAudioSchema>;
@@ -1,22 +0,0 @@
1
- import * as zod from 'zod';
2
- export declare const patchStorageSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
3
- export declare const setStorageSchema: zod.ZodObject<{
4
- key: zod.ZodString;
5
- }, "strict", zod.ZodTypeAny, {
6
- key: string;
7
- }, {
8
- key: string;
9
- }>;
10
- export declare const submitStorageSchema: zod.ZodObject<{
11
- key: zod.ZodString;
12
- payload: zod.ZodAny;
13
- }, "strict", zod.ZodTypeAny, {
14
- key: string;
15
- payload?: any;
16
- }, {
17
- key: string;
18
- payload?: any;
19
- }>;
20
- export type PatchStorateInput = zod.TypeOf<typeof patchStorageSchema>;
21
- export type SetStorageInput = zod.TypeOf<typeof setStorageSchema>;
22
- export type SubmitStorageInput = zod.TypeOf<typeof submitStorageSchema>;
@@ -1,185 +0,0 @@
1
- import * as zod from 'zod';
2
- export declare const updateServerSchema: zod.ZodObject<{
3
- version: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
4
- }, "strict", zod.ZodTypeAny, {
5
- version: string;
6
- }, {
7
- version?: string | undefined;
8
- }>;
9
- export declare const remoteAccessSchema: zod.ZodObject<{
10
- mode: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"disabled">, zod.ZodLiteral<"port-forward">, zod.ZodLiteral<"router-forward">, zod.ZodLiteral<"cloudflare">, zod.ZodLiteral<"custom-domain">]>>;
11
- cloudflare: zod.ZodObject<{
12
- tunnelToken: zod.ZodOptional<zod.ZodString>;
13
- customDomain: zod.ZodOptional<zod.ZodString>;
14
- tunnelUrl: zod.ZodOptional<zod.ZodString>;
15
- tunnelCredentials: zod.ZodOptional<zod.ZodObject<{
16
- username: zod.ZodOptional<zod.ZodString>;
17
- password: zod.ZodOptional<zod.ZodString>;
18
- }, "strip", zod.ZodTypeAny, {
19
- password?: string | undefined;
20
- username?: string | undefined;
21
- }, {
22
- password?: string | undefined;
23
- username?: string | undefined;
24
- }>>;
25
- }, "strict", zod.ZodTypeAny, {
26
- tunnelToken?: string | undefined;
27
- customDomain?: string | undefined;
28
- tunnelUrl?: string | undefined;
29
- tunnelCredentials?: {
30
- password?: string | undefined;
31
- username?: string | undefined;
32
- } | undefined;
33
- }, {
34
- tunnelToken?: string | undefined;
35
- customDomain?: string | undefined;
36
- tunnelUrl?: string | undefined;
37
- tunnelCredentials?: {
38
- password?: string | undefined;
39
- username?: string | undefined;
40
- } | undefined;
41
- }>;
42
- customDomain: zod.ZodObject<{
43
- url: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
44
- }, "strict", zod.ZodTypeAny, {
45
- url?: string | undefined;
46
- }, {
47
- url?: string | undefined;
48
- }>;
49
- }, "strict", zod.ZodTypeAny, {
50
- cloudflare: {
51
- tunnelToken?: string | undefined;
52
- customDomain?: string | undefined;
53
- tunnelUrl?: string | undefined;
54
- tunnelCredentials?: {
55
- password?: string | undefined;
56
- username?: string | undefined;
57
- } | undefined;
58
- };
59
- mode: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain";
60
- customDomain: {
61
- url?: string | undefined;
62
- };
63
- }, {
64
- cloudflare: {
65
- tunnelToken?: string | undefined;
66
- customDomain?: string | undefined;
67
- tunnelUrl?: string | undefined;
68
- tunnelCredentials?: {
69
- password?: string | undefined;
70
- username?: string | undefined;
71
- } | undefined;
72
- };
73
- customDomain: {
74
- url?: string | undefined;
75
- };
76
- mode?: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain" | undefined;
77
- }>;
78
- export declare const patchSystemSchema: zod.ZodObject<{
79
- serverAddresses: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
80
- remoteAccess: zod.ZodObject<{
81
- mode: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"disabled">, zod.ZodLiteral<"port-forward">, zod.ZodLiteral<"router-forward">, zod.ZodLiteral<"cloudflare">, zod.ZodLiteral<"custom-domain">]>>;
82
- cloudflare: zod.ZodObject<{
83
- tunnelToken: zod.ZodOptional<zod.ZodString>;
84
- customDomain: zod.ZodOptional<zod.ZodString>;
85
- tunnelUrl: zod.ZodOptional<zod.ZodString>;
86
- tunnelCredentials: zod.ZodOptional<zod.ZodObject<{
87
- username: zod.ZodOptional<zod.ZodString>;
88
- password: zod.ZodOptional<zod.ZodString>;
89
- }, "strip", zod.ZodTypeAny, {
90
- password?: string | undefined;
91
- username?: string | undefined;
92
- }, {
93
- password?: string | undefined;
94
- username?: string | undefined;
95
- }>>;
96
- }, "strict", zod.ZodTypeAny, {
97
- tunnelToken?: string | undefined;
98
- customDomain?: string | undefined;
99
- tunnelUrl?: string | undefined;
100
- tunnelCredentials?: {
101
- password?: string | undefined;
102
- username?: string | undefined;
103
- } | undefined;
104
- }, {
105
- tunnelToken?: string | undefined;
106
- customDomain?: string | undefined;
107
- tunnelUrl?: string | undefined;
108
- tunnelCredentials?: {
109
- password?: string | undefined;
110
- username?: string | undefined;
111
- } | undefined;
112
- }>;
113
- customDomain: zod.ZodObject<{
114
- url: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
115
- }, "strict", zod.ZodTypeAny, {
116
- url?: string | undefined;
117
- }, {
118
- url?: string | undefined;
119
- }>;
120
- }, "strict", zod.ZodTypeAny, {
121
- cloudflare: {
122
- tunnelToken?: string | undefined;
123
- customDomain?: string | undefined;
124
- tunnelUrl?: string | undefined;
125
- tunnelCredentials?: {
126
- password?: string | undefined;
127
- username?: string | undefined;
128
- } | undefined;
129
- };
130
- mode: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain";
131
- customDomain: {
132
- url?: string | undefined;
133
- };
134
- }, {
135
- cloudflare: {
136
- tunnelToken?: string | undefined;
137
- customDomain?: string | undefined;
138
- tunnelUrl?: string | undefined;
139
- tunnelCredentials?: {
140
- password?: string | undefined;
141
- username?: string | undefined;
142
- } | undefined;
143
- };
144
- customDomain: {
145
- url?: string | undefined;
146
- };
147
- mode?: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain" | undefined;
148
- }>;
149
- }, "strict", zod.ZodTypeAny, {
150
- serverAddresses: string[];
151
- remoteAccess: {
152
- cloudflare: {
153
- tunnelToken?: string | undefined;
154
- customDomain?: string | undefined;
155
- tunnelUrl?: string | undefined;
156
- tunnelCredentials?: {
157
- password?: string | undefined;
158
- username?: string | undefined;
159
- } | undefined;
160
- };
161
- mode: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain";
162
- customDomain: {
163
- url?: string | undefined;
164
- };
165
- };
166
- }, {
167
- remoteAccess: {
168
- cloudflare: {
169
- tunnelToken?: string | undefined;
170
- customDomain?: string | undefined;
171
- tunnelUrl?: string | undefined;
172
- tunnelCredentials?: {
173
- password?: string | undefined;
174
- username?: string | undefined;
175
- } | undefined;
176
- };
177
- customDomain: {
178
- url?: string | undefined;
179
- };
180
- mode?: "disabled" | "port-forward" | "router-forward" | "cloudflare" | "custom-domain" | undefined;
181
- };
182
- serverAddresses?: string[] | undefined;
183
- }>;
184
- export type PatchSystemInput = zod.TypeOf<typeof patchSystemSchema>;
185
- export type UpdateServerInput = zod.TypeOf<typeof updateServerSchema>;