@awarevue/api-types 2.0.82 → 2.0.83

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 (131) hide show
  1. package/dist/alarm-automation.d.ts +21 -37
  2. package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
  3. package/dist/api/agent-protocol/protocol.js +16 -12
  4. package/dist/api/commands/alarm.d.ts +40 -248
  5. package/dist/api/commands/all.d.ts +393 -4642
  6. package/dist/api/commands/camera-lift.d.ts +8 -32
  7. package/dist/api/commands/camera.d.ts +82 -373
  8. package/dist/api/commands/display.d.ts +21 -373
  9. package/dist/api/commands/door.d.ts +16 -64
  10. package/dist/api/commands/io-board.d.ts +4 -40
  11. package/dist/api/commands/nvr-exporter.d.ts +104 -1380
  12. package/dist/api/commands/nvr-recorder.d.ts +400 -5288
  13. package/dist/api/commands/pbx.d.ts +4 -56
  14. package/dist/api/commands/presence-tracker.d.ts +12 -128
  15. package/dist/api/commands/server.d.ts +114 -1382
  16. package/dist/api/commands/server.js +1 -1
  17. package/dist/api/error.d.ts +77 -443
  18. package/dist/api/error.js +1 -1
  19. package/dist/api/events/alarm.d.ts +20 -148
  20. package/dist/api/events/all.d.ts +74 -526
  21. package/dist/api/events/all.js +1 -1
  22. package/dist/api/events/camera.d.ts +46 -470
  23. package/dist/api/events/display.d.ts +1 -5
  24. package/dist/api/events/door.d.ts +34 -146
  25. package/dist/api/events/intercom-terminal.d.ts +22 -42
  26. package/dist/api/events/io-board.d.ts +2 -18
  27. package/dist/api/events/nvr-exporter.d.ts +4 -32
  28. package/dist/api/events/panic-button.d.ts +2 -10
  29. package/dist/api/events/presence-tracker.d.ts +4 -88
  30. package/dist/api/events/reader.d.ts +2 -22
  31. package/dist/api/events/server.d.ts +6 -34
  32. package/dist/api/mqtt/payloads.d.ts +4 -26
  33. package/dist/api/queries/all.d.ts +188 -1622
  34. package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
  35. package/dist/api/queries/nvr-exporter.d.ts +9 -73
  36. package/dist/api/queries/nvr-recorder.d.ts +300 -2828
  37. package/dist/api/rest/access-rule.d.ts +10 -86
  38. package/dist/api/rest/agreement.d.ts +3 -18
  39. package/dist/api/rest/api-keys.d.ts +3 -17
  40. package/dist/api/rest/app.d.ts +3 -51
  41. package/dist/api/rest/auth.d.ts +3 -19
  42. package/dist/api/rest/automation.d.ts +11 -236
  43. package/dist/api/rest/bookmarks.d.ts +8 -56
  44. package/dist/api/rest/camera.d.ts +12 -70
  45. package/dist/api/rest/cast.d.ts +1 -7
  46. package/dist/api/rest/custom-field.d.ts +21 -24
  47. package/dist/api/rest/device-group.d.ts +8 -32
  48. package/dist/api/rest/device.d.ts +104 -176
  49. package/dist/api/rest/io-device.d.ts +7 -75
  50. package/dist/api/rest/io-device.js +2 -2
  51. package/dist/api/rest/layout.d.ts +4 -102
  52. package/dist/api/rest/macros.d.ts +6 -82
  53. package/dist/api/rest/media.d.ts +17 -141
  54. package/dist/api/rest/notifications.d.ts +7 -15
  55. package/dist/api/rest/person-agreement.d.ts +1 -9
  56. package/dist/api/rest/person-presence.d.ts +8 -50
  57. package/dist/api/rest/person-type.d.ts +6 -39
  58. package/dist/api/rest/person.d.ts +18 -96
  59. package/dist/api/rest/query.d.ts +5 -15
  60. package/dist/api/rest/schedule.d.ts +78 -216
  61. package/dist/api/rest/security-level.d.ts +6 -43
  62. package/dist/api/rest/template.d.ts +10 -20
  63. package/dist/api/rest/token-conversion.d.ts +11 -28
  64. package/dist/api/rest/user.d.ts +15 -97
  65. package/dist/api/rest/view.d.ts +24 -496
  66. package/dist/api/rest/webrtc-playback.d.ts +3 -25
  67. package/dist/api/rest/zone.d.ts +5 -21
  68. package/dist/api/ws/device-communication.d.ts +10 -62
  69. package/dist/api/ws/notifications.d.ts +7 -33
  70. package/dist/api/ws/progress.d.ts +10 -72
  71. package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
  72. package/dist/objects/access-rule.d.ts +12 -132
  73. package/dist/objects/access-rule.js +1 -1
  74. package/dist/objects/agent-metadata.d.ts +38 -146
  75. package/dist/objects/agent-metadata.js +1 -1
  76. package/dist/objects/agreement.d.ts +1 -13
  77. package/dist/objects/all.d.ts +20 -1
  78. package/dist/objects/api-key.d.ts +1 -13
  79. package/dist/objects/automation-rule.d.ts +9 -168
  80. package/dist/objects/automation-rule.js +2 -2
  81. package/dist/objects/bookmark.d.ts +3 -33
  82. package/dist/objects/bookmark.js +1 -1
  83. package/dist/objects/credential.d.ts +13 -13
  84. package/dist/objects/credential.js +1 -1
  85. package/dist/objects/custom-field.d.ts +19 -15
  86. package/dist/objects/device/alarm.d.ts +1 -1
  87. package/dist/objects/device/any-device.d.ts +1333 -4451
  88. package/dist/objects/device/camera-lift.d.ts +1 -1
  89. package/dist/objects/device/camera.d.ts +29 -125
  90. package/dist/objects/device/camera.js +1 -1
  91. package/dist/objects/device/device-import.d.ts +307 -1735
  92. package/dist/objects/device/device-relation.d.ts +70 -58
  93. package/dist/objects/device/display.d.ts +1 -1
  94. package/dist/objects/device/door.d.ts +9 -14
  95. package/dist/objects/device/intercom-terminal.d.ts +10 -59
  96. package/dist/objects/device/io-board.d.ts +3 -9
  97. package/dist/objects/device/motion-sensor.d.ts +1 -1
  98. package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
  99. package/dist/objects/device/nvr-exporter.d.ts +3 -9
  100. package/dist/objects/device/nvr-recorder.d.ts +16 -68
  101. package/dist/objects/device/panic-button.d.ts +1 -1
  102. package/dist/objects/device/pbx.d.ts +1 -5
  103. package/dist/objects/device/system.d.ts +1 -1
  104. package/dist/objects/device/system.js +1 -1
  105. package/dist/objects/device-group.d.ts +2 -16
  106. package/dist/objects/layout.d.ts +3 -75
  107. package/dist/objects/macro.d.ts +3 -59
  108. package/dist/objects/macro.js +2 -2
  109. package/dist/objects/notification.d.ts +6 -24
  110. package/dist/objects/notification.js +1 -1
  111. package/dist/objects/person-agreement.d.ts +1 -13
  112. package/dist/objects/person-presence.d.ts +11 -165
  113. package/dist/objects/person-type.d.ts +2 -22
  114. package/dist/objects/person.d.ts +21 -153
  115. package/dist/objects/person.js +3 -3
  116. package/dist/objects/role.d.ts +3 -15
  117. package/dist/objects/schedule.d.ts +152 -314
  118. package/dist/objects/schedule.js +1 -1
  119. package/dist/objects/security-level.d.ts +1 -21
  120. package/dist/objects/template.d.ts +9 -13
  121. package/dist/objects/token-conversion.d.ts +8 -18
  122. package/dist/objects/user.d.ts +2 -20
  123. package/dist/objects/view.d.ts +52 -682
  124. package/dist/objects/world-object.d.ts +1 -7
  125. package/dist/objects/zone.d.ts +5 -29
  126. package/dist/objects/zone.js +1 -1
  127. package/dist/package.json +3 -3
  128. package/dist/permissions.d.ts +1 -1
  129. package/dist/primitives.d.ts +113 -551
  130. package/dist/primitives.js +1 -1
  131. package/package.json +3 -3
@@ -20,7 +20,7 @@ const sMessageWithPayload = (sPayload) => exports.sMessageHeader.and(sPayload).d
20
20
  exports.sMessageWithPayload = sMessageWithPayload;
21
21
  const sResponsePayload = (kind, sPayload) =>
22
22
  // success branch
23
- zod_1.z.object({ requestId: zod_1.z.string().nonempty(), kind }).and(sPayload);
23
+ zod_1.z.object({ requestId: zod_1.z.string().nonempty(), kind }).merge(sPayload);
24
24
  exports.sResponsePayload = sResponsePayload;
25
25
  exports.sAgentErrorCode = zod_1.z.enum(['NOT_SUPPORTED', 'TIMEOUT']);
26
26
  exports.sErrorPayload = (0, exports.sResponsePayload)(zod_1.z.literal('error-rs'), zod_1.z.object({
@@ -31,9 +31,11 @@ exports.sErrorPayload = (0, exports.sResponsePayload)(zod_1.z.literal('error-rs'
31
31
  exports.sRegisterRq = zod_1.z.object({
32
32
  kind: zod_1.z.literal('register'),
33
33
  providers: zod_1.z
34
- .record(agent_metadata_1.sProviderSpecs)
34
+ .record(zod_1.z.string(), agent_metadata_1.sProviderSpecs)
35
35
  .describe('Map of providers and their specs, ones that the agent can handle'),
36
- accessControlProviders: zod_1.z.record(agent_metadata_1.sAccessControlCapabilityReport).optional(),
36
+ accessControlProviders: zod_1.z
37
+ .record(zod_1.z.string(), agent_metadata_1.sAccessControlCapabilityReport)
38
+ .optional(),
37
39
  });
38
40
  exports.sRegisterRs = (0, exports.sResponsePayload)(zod_1.z.literal('register-rs'), zod_1.z.object({}));
39
41
  // UNREGISTER
@@ -47,7 +49,7 @@ exports.sUnregister = zod_1.z
47
49
  exports.sValidateProviderConfigRq = zod_1.z.object({
48
50
  kind: zod_1.z.literal('validate-config'),
49
51
  provider: zod_1.z.string().nonempty(),
50
- config: zod_1.z.record(zod_1.z.unknown()),
52
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
51
53
  });
52
54
  exports.sConfigurationIssue = zod_1.z
53
55
  .object({
@@ -63,7 +65,7 @@ exports.sStartServiceRq = zod_1.z
63
65
  .object({
64
66
  kind: zod_1.z.literal('start'),
65
67
  provider: zod_1.z.string().nonempty(),
66
- config: zod_1.z.record(zod_1.z.unknown()),
68
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
67
69
  lastEventForeignRef: zod_1.z
68
70
  .string()
69
71
  .nullable()
@@ -93,7 +95,7 @@ exports.sRunCommandRq = zod_1.z
93
95
  .string()
94
96
  .optional()
95
97
  .describe('Batch ID for the command of the command was part of a macro'),
96
- params: zod_1.z.record(zod_1.z.unknown()).optional(),
98
+ params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
97
99
  })
98
100
  .describe('Request to run a device command');
99
101
  exports.sRunCommandRs = (0, exports.sResponsePayload)(zod_1.z.literal('command-rs'), zod_1.z.object({})).describe('Response for running a device command');
@@ -123,7 +125,9 @@ exports.sPushFile = zod_1.z
123
125
  kind: zod_1.z.literal('push-file'),
124
126
  query: zod_1.z.string().nonempty(),
125
127
  device: primitives_1.sAgentDeviceInfo,
126
- args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
128
+ args: zod_1.z
129
+ .record(zod_1.z.string(), zod_1.z.unknown())
130
+ .describe('Query arguments, depends on the query type'),
127
131
  url: zod_1.z.string().nonempty().describe('URL to pull the file from'),
128
132
  })
129
133
  .describe('Instruction to push a file from an agent to file relay');
@@ -133,7 +137,7 @@ exports.sPushStateUpdateRq = zod_1.z
133
137
  kind: zod_1.z.literal('state'),
134
138
  foreignRef: zod_1.z.string().nonempty(),
135
139
  provider: zod_1.z.string().nonempty(),
136
- mergeProps: zod_1.z.record(zod_1.z.unknown()),
140
+ mergeProps: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
137
141
  removeProps: zod_1.z.array(zod_1.z.string().nonempty()),
138
142
  })
139
143
  .describe('Request to push a device state update');
@@ -267,10 +271,10 @@ exports.sAccessMutation = zod_1.z
267
271
  .union([exports.sObjectMerge, exports.sObjectDelete])
268
272
  .describe('Access object change description');
269
273
  exports.sDeviceMap = zod_1.z
270
- .record(zod_1.z.record(zod_1.z.unknown()))
274
+ .record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()))
271
275
  .describe('Map of devices (readers) and their stashed provider metadata');
272
276
  exports.sRefMap = zod_1.z
273
- .record(zod_1.z.record(zod_1.z.array(zod_1.z.string().nonempty())))
277
+ .record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string().nonempty())))
274
278
  .describe('Map of foreign references to object IDs');
275
279
  // A. VALIDATE ACCESS CHANGES
276
280
  exports.sValidateChangeRq = zod_1.z
@@ -380,7 +384,7 @@ exports.ReplyKindByRequestKind = {
380
384
  const getAgentMessageIssues = (message) => {
381
385
  const result = exports.sMessageHeader.safeParse(message);
382
386
  if (!result.success) {
383
- return result.error.errors.map((e) => `${e.path.map((p) => p.toString()).join('.')} - ${e.message}`);
387
+ return result.error.issues.map((e) => `${e.path.map((p) => p.toString()).join('.')} - ${e.message}`);
384
388
  }
385
389
  const { kind } = message;
386
390
  const schema = fromAgentSchemaByKind[kind];
@@ -389,7 +393,7 @@ const getAgentMessageIssues = (message) => {
389
393
  }
390
394
  const result2 = schema.safeParse(message);
391
395
  if (!result2.success) {
392
- return result2.error.errors.map((e) => `${e.path.map((p) => p.toString()).join('.')} - ${e.message}`);
396
+ return result2.error.issues.map((e) => `${e.path.map((p) => p.toString()).join('.')} - ${e.message}`);
393
397
  }
394
398
  return [];
395
399
  };
@@ -2,311 +2,103 @@ import { z } from 'zod';
2
2
  export declare const sArmCommand: z.ZodObject<{
3
3
  command: z.ZodLiteral<"alarm.arm">;
4
4
  params: z.ZodObject<{
5
- deviceIds: z.ZodArray<z.ZodString, "many">;
6
- }, "strip", z.ZodTypeAny, {
7
- deviceIds: string[];
8
- }, {
9
- deviceIds: string[];
10
- }>;
11
- }, "strip", z.ZodTypeAny, {
12
- params: {
13
- deviceIds: string[];
14
- };
15
- command: "alarm.arm";
16
- }, {
17
- params: {
18
- deviceIds: string[];
19
- };
20
- command: "alarm.arm";
21
- }>;
5
+ deviceIds: z.ZodArray<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ }, z.core.$strip>;
22
8
  export type ArmCommand = z.infer<typeof sArmCommand>;
23
9
  export declare const sDisarmCommand: z.ZodObject<{
24
10
  command: z.ZodLiteral<"alarm.disarm">;
25
11
  params: z.ZodObject<{
26
- deviceIds: z.ZodArray<z.ZodString, "many">;
12
+ deviceIds: z.ZodArray<z.ZodString>;
27
13
  duration: z.ZodOptional<z.ZodNumber>;
28
- }, "strip", z.ZodTypeAny, {
29
- deviceIds: string[];
30
- duration?: number | undefined;
31
- }, {
32
- deviceIds: string[];
33
- duration?: number | undefined;
34
- }>;
35
- }, "strip", z.ZodTypeAny, {
36
- params: {
37
- deviceIds: string[];
38
- duration?: number | undefined;
39
- };
40
- command: "alarm.disarm";
41
- }, {
42
- params: {
43
- deviceIds: string[];
44
- duration?: number | undefined;
45
- };
46
- command: "alarm.disarm";
47
- }>;
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>;
48
16
  export type DisarmCommand = z.infer<typeof sDisarmCommand>;
49
17
  export declare const sBypassCommand: z.ZodObject<{
50
18
  command: z.ZodLiteral<"alarm.bypass">;
51
19
  params: z.ZodObject<{
52
- deviceIds: z.ZodArray<z.ZodString, "many">;
53
- }, "strip", z.ZodTypeAny, {
54
- deviceIds: string[];
55
- }, {
56
- deviceIds: string[];
57
- }>;
58
- }, "strip", z.ZodTypeAny, {
59
- params: {
60
- deviceIds: string[];
61
- };
62
- command: "alarm.bypass";
63
- }, {
64
- params: {
65
- deviceIds: string[];
66
- };
67
- command: "alarm.bypass";
68
- }>;
20
+ deviceIds: z.ZodArray<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ }, z.core.$strip>;
69
23
  export type BypassCommand = z.infer<typeof sBypassCommand>;
70
24
  export declare const sUnbypassCommand: z.ZodObject<{
71
25
  command: z.ZodLiteral<"alarm.unbypass">;
72
26
  params: z.ZodObject<{
73
- deviceIds: z.ZodArray<z.ZodString, "many">;
74
- }, "strip", z.ZodTypeAny, {
75
- deviceIds: string[];
76
- }, {
77
- deviceIds: string[];
78
- }>;
79
- }, "strip", z.ZodTypeAny, {
80
- params: {
81
- deviceIds: string[];
82
- };
83
- command: "alarm.unbypass";
84
- }, {
85
- params: {
86
- deviceIds: string[];
87
- };
88
- command: "alarm.unbypass";
89
- }>;
27
+ deviceIds: z.ZodArray<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>;
90
30
  export type UnbypassCommand = z.infer<typeof sUnbypassCommand>;
91
31
  export declare const sArmAllCommand: z.ZodObject<{
92
32
  command: z.ZodLiteral<"alarm.arm-all">;
93
- params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
94
- }, "strip", z.ZodTypeAny, {
95
- params: {};
96
- command: "alarm.arm-all";
97
- }, {
98
- params: {};
99
- command: "alarm.arm-all";
100
- }>;
33
+ params: z.ZodObject<{}, z.core.$strip>;
34
+ }, z.core.$strip>;
101
35
  export type ArmAllCommand = z.infer<typeof sArmAllCommand>;
102
36
  export declare const sDisarmAllCommand: z.ZodObject<{
103
37
  command: z.ZodLiteral<"alarm.disarm-all">;
104
38
  params: z.ZodObject<{
105
39
  duration: z.ZodOptional<z.ZodNumber>;
106
- }, "strip", z.ZodTypeAny, {
107
- duration?: number | undefined;
108
- }, {
109
- duration?: number | undefined;
110
- }>;
111
- }, "strip", z.ZodTypeAny, {
112
- params: {
113
- duration?: number | undefined;
114
- };
115
- command: "alarm.disarm-all";
116
- }, {
117
- params: {
118
- duration?: number | undefined;
119
- };
120
- command: "alarm.disarm-all";
121
- }>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
122
42
  export type DisarmAllCommand = z.infer<typeof sDisarmAllCommand>;
123
43
  export declare const sAcknowledgeCommand: z.ZodObject<{
124
44
  command: z.ZodLiteral<"alarm.acknowledge">;
125
- params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
126
- }, "strip", z.ZodTypeAny, {
127
- params: {};
128
- command: "alarm.acknowledge";
129
- }, {
130
- params: {};
131
- command: "alarm.acknowledge";
132
- }>;
45
+ params: z.ZodObject<{}, z.core.$strip>;
46
+ }, z.core.$strip>;
133
47
  export type AcknowledgeCommand = z.infer<typeof sAcknowledgeCommand>;
134
48
  export declare const sSetTriggerCommand: z.ZodObject<{
135
49
  command: z.ZodLiteral<"alarm.set-trigger">;
136
50
  params: z.ZodObject<{
137
51
  event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
138
52
  onlyIfArmed: z.ZodBoolean;
139
- }, "strip", z.ZodTypeAny, {
140
- event: Record<string, unknown>;
141
- onlyIfArmed: boolean;
142
- }, {
143
- event: Record<string, unknown>;
144
- onlyIfArmed: boolean;
145
- }>;
146
- }, "strip", z.ZodTypeAny, {
147
- params: {
148
- event: Record<string, unknown>;
149
- onlyIfArmed: boolean;
150
- };
151
- command: "alarm.set-trigger";
152
- }, {
153
- params: {
154
- event: Record<string, unknown>;
155
- onlyIfArmed: boolean;
156
- };
157
- command: "alarm.set-trigger";
158
- }>;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>;
159
55
  export type SetTriggerCommand = z.infer<typeof sSetTriggerCommand>;
160
56
  export type AlarmCommand = ArmCommand | DisarmCommand | ArmAllCommand | DisarmAllCommand | AcknowledgeCommand | SetTriggerCommand | BypassCommand | UnbypassCommand;
161
57
  export declare const alarmCommandSchemas: {
162
58
  readonly 'alarm.arm': z.ZodObject<{
163
59
  command: z.ZodLiteral<"alarm.arm">;
164
60
  params: z.ZodObject<{
165
- deviceIds: z.ZodArray<z.ZodString, "many">;
166
- }, "strip", z.ZodTypeAny, {
167
- deviceIds: string[];
168
- }, {
169
- deviceIds: string[];
170
- }>;
171
- }, "strip", z.ZodTypeAny, {
172
- params: {
173
- deviceIds: string[];
174
- };
175
- command: "alarm.arm";
176
- }, {
177
- params: {
178
- deviceIds: string[];
179
- };
180
- command: "alarm.arm";
181
- }>;
61
+ deviceIds: z.ZodArray<z.ZodString>;
62
+ }, z.core.$strip>;
63
+ }, z.core.$strip>;
182
64
  readonly 'alarm.disarm': z.ZodObject<{
183
65
  command: z.ZodLiteral<"alarm.disarm">;
184
66
  params: z.ZodObject<{
185
- deviceIds: z.ZodArray<z.ZodString, "many">;
67
+ deviceIds: z.ZodArray<z.ZodString>;
186
68
  duration: z.ZodOptional<z.ZodNumber>;
187
- }, "strip", z.ZodTypeAny, {
188
- deviceIds: string[];
189
- duration?: number | undefined;
190
- }, {
191
- deviceIds: string[];
192
- duration?: number | undefined;
193
- }>;
194
- }, "strip", z.ZodTypeAny, {
195
- params: {
196
- deviceIds: string[];
197
- duration?: number | undefined;
198
- };
199
- command: "alarm.disarm";
200
- }, {
201
- params: {
202
- deviceIds: string[];
203
- duration?: number | undefined;
204
- };
205
- command: "alarm.disarm";
206
- }>;
69
+ }, z.core.$strip>;
70
+ }, z.core.$strip>;
207
71
  readonly 'alarm.arm-all': z.ZodObject<{
208
72
  command: z.ZodLiteral<"alarm.arm-all">;
209
- params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
210
- }, "strip", z.ZodTypeAny, {
211
- params: {};
212
- command: "alarm.arm-all";
213
- }, {
214
- params: {};
215
- command: "alarm.arm-all";
216
- }>;
73
+ params: z.ZodObject<{}, z.core.$strip>;
74
+ }, z.core.$strip>;
217
75
  readonly 'alarm.disarm-all': z.ZodObject<{
218
76
  command: z.ZodLiteral<"alarm.disarm-all">;
219
77
  params: z.ZodObject<{
220
78
  duration: z.ZodOptional<z.ZodNumber>;
221
- }, "strip", z.ZodTypeAny, {
222
- duration?: number | undefined;
223
- }, {
224
- duration?: number | undefined;
225
- }>;
226
- }, "strip", z.ZodTypeAny, {
227
- params: {
228
- duration?: number | undefined;
229
- };
230
- command: "alarm.disarm-all";
231
- }, {
232
- params: {
233
- duration?: number | undefined;
234
- };
235
- command: "alarm.disarm-all";
236
- }>;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>;
237
81
  readonly 'alarm.acknowledge': z.ZodObject<{
238
82
  command: z.ZodLiteral<"alarm.acknowledge">;
239
- params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
240
- }, "strip", z.ZodTypeAny, {
241
- params: {};
242
- command: "alarm.acknowledge";
243
- }, {
244
- params: {};
245
- command: "alarm.acknowledge";
246
- }>;
83
+ params: z.ZodObject<{}, z.core.$strip>;
84
+ }, z.core.$strip>;
247
85
  readonly 'alarm.set-trigger': z.ZodObject<{
248
86
  command: z.ZodLiteral<"alarm.set-trigger">;
249
87
  params: z.ZodObject<{
250
88
  event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
251
89
  onlyIfArmed: z.ZodBoolean;
252
- }, "strip", z.ZodTypeAny, {
253
- event: Record<string, unknown>;
254
- onlyIfArmed: boolean;
255
- }, {
256
- event: Record<string, unknown>;
257
- onlyIfArmed: boolean;
258
- }>;
259
- }, "strip", z.ZodTypeAny, {
260
- params: {
261
- event: Record<string, unknown>;
262
- onlyIfArmed: boolean;
263
- };
264
- command: "alarm.set-trigger";
265
- }, {
266
- params: {
267
- event: Record<string, unknown>;
268
- onlyIfArmed: boolean;
269
- };
270
- command: "alarm.set-trigger";
271
- }>;
90
+ }, z.core.$strip>;
91
+ }, z.core.$strip>;
272
92
  readonly 'alarm.bypass': z.ZodObject<{
273
93
  command: z.ZodLiteral<"alarm.bypass">;
274
94
  params: z.ZodObject<{
275
- deviceIds: z.ZodArray<z.ZodString, "many">;
276
- }, "strip", z.ZodTypeAny, {
277
- deviceIds: string[];
278
- }, {
279
- deviceIds: string[];
280
- }>;
281
- }, "strip", z.ZodTypeAny, {
282
- params: {
283
- deviceIds: string[];
284
- };
285
- command: "alarm.bypass";
286
- }, {
287
- params: {
288
- deviceIds: string[];
289
- };
290
- command: "alarm.bypass";
291
- }>;
95
+ deviceIds: z.ZodArray<z.ZodString>;
96
+ }, z.core.$strip>;
97
+ }, z.core.$strip>;
292
98
  readonly 'alarm.unbypass': z.ZodObject<{
293
99
  command: z.ZodLiteral<"alarm.unbypass">;
294
100
  params: z.ZodObject<{
295
- deviceIds: z.ZodArray<z.ZodString, "many">;
296
- }, "strip", z.ZodTypeAny, {
297
- deviceIds: string[];
298
- }, {
299
- deviceIds: string[];
300
- }>;
301
- }, "strip", z.ZodTypeAny, {
302
- params: {
303
- deviceIds: string[];
304
- };
305
- command: "alarm.unbypass";
306
- }, {
307
- params: {
308
- deviceIds: string[];
309
- };
310
- command: "alarm.unbypass";
311
- }>;
101
+ deviceIds: z.ZodArray<z.ZodString>;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>;
312
104
  };