@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
@@ -6,94 +6,42 @@ export type CommandRunPayload = CommandRun;
6
6
  export declare const sCommandSuccess: z.ZodObject<{
7
7
  timestamp: z.ZodNumber;
8
8
  requestId: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- timestamp: number;
11
- requestId: string;
12
- }, {
13
- timestamp: number;
14
- requestId: string;
15
- }>;
9
+ }, z.core.$strip>;
16
10
  export type CommandSuccessPayload = z.infer<typeof sCommandSuccess>;
17
11
  export declare const sCommandError: z.ZodObject<{
18
12
  timestamp: z.ZodNumber;
19
13
  requestId: z.ZodString;
20
- error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
21
- }, "strip", z.ZodTypeAny, {
22
- timestamp: number;
23
- error: {};
24
- requestId: string;
25
- }, {
26
- timestamp: number;
27
- error: {};
28
- requestId: string;
29
- }>;
14
+ error: z.ZodObject<{}, z.core.$strip>;
15
+ }, z.core.$strip>;
30
16
  export type CommandErrorPayload = z.infer<typeof sCommandError>;
31
17
  export declare const sStateUpdate: z.ZodObject<{
32
18
  timestamp: z.ZodNumber;
33
19
  deviceId: z.ZodString;
34
- state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
35
- }, "strip", z.ZodTypeAny, {
36
- deviceId: string;
37
- timestamp: number;
38
- state: {};
39
- }, {
40
- deviceId: string;
41
- timestamp: number;
42
- state: {};
43
- }>;
20
+ state: z.ZodObject<{}, z.core.$strip>;
21
+ }, z.core.$strip>;
44
22
  export type StateUpdatePayload = z.infer<typeof sStateUpdate>;
45
23
  export declare const sStateUnavailable: z.ZodObject<{
46
24
  timestamp: z.ZodNumber;
47
25
  deviceId: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- deviceId: string;
50
- timestamp: number;
51
- }, {
52
- deviceId: string;
53
- timestamp: number;
54
- }>;
26
+ }, z.core.$strip>;
55
27
  export type StateUnavailablePayload = z.infer<typeof sStateUnavailable>;
56
28
  export declare const sStateUpdateError: z.ZodObject<{
57
29
  timestamp: z.ZodNumber;
58
30
  deviceId: z.ZodString;
59
- error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
60
- }, "strip", z.ZodTypeAny, {
61
- deviceId: string;
62
- timestamp: number;
63
- error: {};
64
- }, {
65
- deviceId: string;
66
- timestamp: number;
67
- error: {};
68
- }>;
31
+ error: z.ZodObject<{}, z.core.$strip>;
32
+ }, z.core.$strip>;
69
33
  export type StateUpdateErrorPayload = z.infer<typeof sStateUpdateError>;
70
34
  export declare const sStateSubscribe: z.ZodObject<{
71
35
  timestamp: z.ZodNumber;
72
36
  requestId: z.ZodString;
73
37
  deviceId: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- deviceId: string;
76
- timestamp: number;
77
- requestId: string;
78
- }, {
79
- deviceId: string;
80
- timestamp: number;
81
- requestId: string;
82
- }>;
38
+ }, z.core.$strip>;
83
39
  export type StateSubscribePayload = z.infer<typeof sStateSubscribe>;
84
40
  export declare const sStateUnsubscribe: z.ZodObject<{
85
41
  timestamp: z.ZodNumber;
86
42
  requestId: z.ZodString;
87
43
  deviceId: z.ZodString;
88
- }, "strip", z.ZodTypeAny, {
89
- deviceId: string;
90
- timestamp: number;
91
- requestId: string;
92
- }, {
93
- deviceId: string;
94
- timestamp: number;
95
- requestId: string;
96
- }>;
44
+ }, z.core.$strip>;
97
45
  export type StateUnsubscribePayload = z.infer<typeof sStateUnsubscribe>;
98
46
  export type DeviceEventPayload = DeviceEvent;
99
47
  interface DeviceMessageMap {
@@ -4,50 +4,24 @@ export declare const sNotificationCreatedPayload: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  source: z.ZodString;
6
6
  message: z.ZodString;
7
- severity: z.ZodEnum<["info", "warning", "critical"]>;
7
+ severity: z.ZodEnum<{
8
+ info: "info";
9
+ warning: "warning";
10
+ critical: "critical";
11
+ }>;
8
12
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
13
  notificationRef: z.ZodNullable<z.ZodString>;
10
14
  createdOn: z.ZodNumber;
11
15
  recipientId: z.ZodNullable<z.ZodString>;
12
16
  acknowledgedBy: z.ZodNullable<z.ZodString>;
13
17
  acknowledgedOn: z.ZodNullable<z.ZodNumber>;
14
- }, "strip", z.ZodTypeAny, {
15
- message: string;
16
- id: string;
17
- createdOn: number;
18
- metadata: Record<string, unknown>;
19
- source: string;
20
- severity: "info" | "warning" | "critical";
21
- notificationRef: string | null;
22
- recipientId: string | null;
23
- acknowledgedBy: string | null;
24
- acknowledgedOn: number | null;
25
- }, {
26
- message: string;
27
- id: string;
28
- createdOn: number;
29
- metadata: Record<string, unknown>;
30
- source: string;
31
- severity: "info" | "warning" | "critical";
32
- notificationRef: string | null;
33
- recipientId: string | null;
34
- acknowledgedBy: string | null;
35
- acknowledgedOn: number | null;
36
- }>;
18
+ }, z.core.$strip>;
37
19
  export type NotificationCreatedPayload = z.infer<typeof sNotificationCreatedPayload>;
38
20
  export declare const sNotificationAcknowledgedPayload: z.ZodObject<{
39
21
  id: z.ZodString;
40
22
  acknowledgedBy: z.ZodString;
41
23
  acknowledgedOn: z.ZodNumber;
42
- }, "strip", z.ZodTypeAny, {
43
- id: string;
44
- acknowledgedBy: string;
45
- acknowledgedOn: number;
46
- }, {
47
- id: string;
48
- acknowledgedBy: string;
49
- acknowledgedOn: number;
50
- }>;
24
+ }, z.core.$strip>;
51
25
  export type NotificationAcknowledgedPayload = z.infer<typeof sNotificationAcknowledgedPayload>;
52
26
  interface NotificationEventMap {
53
27
  new: NotificationCreatedPayload;
@@ -3,16 +3,8 @@ import { WebSocketMessage } from './web-socket';
3
3
  export declare const sProgress: z.ZodObject<{
4
4
  total: z.ZodOptional<z.ZodNumber>;
5
5
  complete: z.ZodOptional<z.ZodNumber>;
6
- failed: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
7
- }, "strip", z.ZodTypeAny, {
8
- failed: {};
9
- total?: number | undefined;
10
- complete?: number | undefined;
11
- }, {
12
- total?: number | undefined;
13
- complete?: number | undefined;
14
- failed?: {} | undefined;
15
- }>;
6
+ failed: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
7
+ }, z.core.$strip>;
16
8
  export type ProgressReport = z.infer<typeof sProgress>;
17
9
  export declare const sProgressUpdatePayload: z.ZodObject<{
18
10
  timestamp: z.ZodNumber;
@@ -20,86 +12,32 @@ export declare const sProgressUpdatePayload: z.ZodObject<{
20
12
  progress: z.ZodObject<{
21
13
  total: z.ZodOptional<z.ZodNumber>;
22
14
  complete: z.ZodOptional<z.ZodNumber>;
23
- failed: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
24
- }, "strip", z.ZodTypeAny, {
25
- failed: {};
26
- total?: number | undefined;
27
- complete?: number | undefined;
28
- }, {
29
- total?: number | undefined;
30
- complete?: number | undefined;
31
- failed?: {} | undefined;
32
- }>;
33
- }, "strip", z.ZodTypeAny, {
34
- timestamp: number;
35
- progress: {
36
- failed: {};
37
- total?: number | undefined;
38
- complete?: number | undefined;
39
- };
40
- item: string;
41
- }, {
42
- timestamp: number;
43
- progress: {
44
- total?: number | undefined;
45
- complete?: number | undefined;
46
- failed?: {} | undefined;
47
- };
48
- item: string;
49
- }>;
15
+ failed: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ }, z.core.$strip>;
50
18
  export type ProgressUpdatePayload = z.infer<typeof sProgressUpdatePayload>;
51
19
  export declare const sProgressUnavailable: z.ZodObject<{
52
20
  timestamp: z.ZodNumber;
53
21
  item: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- timestamp: number;
56
- item: string;
57
- }, {
58
- timestamp: number;
59
- item: string;
60
- }>;
22
+ }, z.core.$strip>;
61
23
  export type ProgressUnavailablePayload = z.infer<typeof sProgressUnavailable>;
62
24
  export declare const sProgressUpdateError: z.ZodObject<{
63
25
  timestamp: z.ZodNumber;
64
26
  item: z.ZodString;
65
- error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
66
- }, "strip", z.ZodTypeAny, {
67
- timestamp: number;
68
- error: {};
69
- item: string;
70
- }, {
71
- timestamp: number;
72
- error: {};
73
- item: string;
74
- }>;
27
+ error: z.ZodObject<{}, z.core.$strip>;
28
+ }, z.core.$strip>;
75
29
  export type ProgressUpdateErrorPayload = z.infer<typeof sProgressUpdateError>;
76
30
  export declare const sProgressSubscribe: z.ZodObject<{
77
31
  timestamp: z.ZodNumber;
78
32
  requestId: z.ZodString;
79
33
  item: z.ZodString;
80
- }, "strip", z.ZodTypeAny, {
81
- timestamp: number;
82
- requestId: string;
83
- item: string;
84
- }, {
85
- timestamp: number;
86
- requestId: string;
87
- item: string;
88
- }>;
34
+ }, z.core.$strip>;
89
35
  export type ProgressSubscribePayload = z.infer<typeof sProgressSubscribe>;
90
36
  export declare const sProgressUnsubscribe: z.ZodObject<{
91
37
  timestamp: z.ZodNumber;
92
38
  requestId: z.ZodString;
93
39
  item: z.ZodString;
94
- }, "strip", z.ZodTypeAny, {
95
- timestamp: number;
96
- requestId: string;
97
- item: string;
98
- }, {
99
- timestamp: number;
100
- requestId: string;
101
- item: string;
102
- }>;
40
+ }, z.core.$strip>;
103
41
  export type ProgressUnsubscribePayload = z.infer<typeof sProgressUnsubscribe>;
104
42
  interface ProgressMessageMap {
105
43
  'progress-update': ProgressUpdatePayload;
@@ -3,238 +3,78 @@ import { WebSocketMessage } from './web-socket';
3
3
  export declare const sSessionDescription: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  sdp: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- type: string;
8
- sdp: string;
9
- }, {
10
- type: string;
11
- sdp: string;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  export type SessionDescription = z.infer<typeof sSessionDescription>;
14
8
  export declare const sIceCandidate: z.ZodString;
15
9
  export type IceCandidate = z.infer<typeof sIceCandidate>;
16
10
  export declare const sWebRtcLiveServiceParams: z.ZodObject<{
17
11
  deviceId: z.ZodString;
18
12
  streamId: z.ZodString;
19
- }, "strip", z.ZodTypeAny, {
20
- deviceId: string;
21
- streamId: string;
22
- }, {
23
- deviceId: string;
24
- streamId: string;
25
- }>;
13
+ }, z.core.$strip>;
26
14
  export type WebRtcLiveServiceParams = z.infer<typeof sWebRtcLiveServiceParams>;
27
15
  export declare const sWebRtcPlaybackParams: z.ZodObject<{
28
16
  controllerId: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- controllerId: string;
31
- }, {
32
- controllerId: string;
33
- }>;
17
+ }, z.core.$strip>;
34
18
  export type WebRtcPlaybackParams = z.infer<typeof sWebRtcPlaybackParams>;
35
19
  export declare const sWebRtcPlaybackTrackParams: z.ZodObject<{
36
20
  controllerId: z.ZodString;
37
21
  trackId: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- controllerId: string;
40
- trackId: string;
41
- }, {
42
- controllerId: string;
43
- trackId: string;
44
- }>;
22
+ }, z.core.$strip>;
45
23
  export type WebRtcPlaybackTrackParams = z.infer<typeof sWebRtcPlaybackTrackParams>;
46
24
  export declare const sWebRtcPlaybackControllerParams: z.ZodObject<{
47
25
  controllerId: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- controllerId: string;
50
- }, {
51
- controllerId: string;
52
- }>;
26
+ }, z.core.$strip>;
53
27
  export type WebRtcPlaybackControllerParams = z.infer<typeof sWebRtcPlaybackControllerParams>;
54
- export declare const sWebRtcServiceDescription: z.ZodUnion<[z.ZodObject<{
28
+ export declare const sWebRtcServiceDescription: z.ZodUnion<readonly [z.ZodObject<{
55
29
  service: z.ZodLiteral<"live">;
56
30
  serviceParams: z.ZodObject<{
57
31
  deviceId: z.ZodString;
58
32
  streamId: z.ZodString;
59
- }, "strip", z.ZodTypeAny, {
60
- deviceId: string;
61
- streamId: string;
62
- }, {
63
- deviceId: string;
64
- streamId: string;
65
- }>;
66
- }, "strip", z.ZodTypeAny, {
67
- service: "live";
68
- serviceParams: {
69
- deviceId: string;
70
- streamId: string;
71
- };
72
- }, {
73
- service: "live";
74
- serviceParams: {
75
- deviceId: string;
76
- streamId: string;
77
- };
78
- }>, z.ZodObject<{
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>, z.ZodObject<{
79
35
  service: z.ZodLiteral<"playback">;
80
36
  serviceParams: z.ZodObject<{
81
37
  controllerId: z.ZodString;
82
- }, "strip", z.ZodTypeAny, {
83
- controllerId: string;
84
- }, {
85
- controllerId: string;
86
- }>;
87
- }, "strip", z.ZodTypeAny, {
88
- service: "playback";
89
- serviceParams: {
90
- controllerId: string;
91
- };
92
- }, {
93
- service: "playback";
94
- serviceParams: {
95
- controllerId: string;
96
- };
97
- }>, z.ZodObject<{
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>, z.ZodObject<{
98
40
  service: z.ZodLiteral<"playback-track">;
99
41
  serviceParams: z.ZodObject<{
100
42
  controllerId: z.ZodString;
101
43
  trackId: z.ZodString;
102
- }, "strip", z.ZodTypeAny, {
103
- controllerId: string;
104
- trackId: string;
105
- }, {
106
- controllerId: string;
107
- trackId: string;
108
- }>;
109
- }, "strip", z.ZodTypeAny, {
110
- service: "playback-track";
111
- serviceParams: {
112
- controllerId: string;
113
- trackId: string;
114
- };
115
- }, {
116
- service: "playback-track";
117
- serviceParams: {
118
- controllerId: string;
119
- trackId: string;
120
- };
121
- }>, z.ZodObject<{
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>, z.ZodObject<{
122
46
  service: z.ZodLiteral<"playback-controller">;
123
47
  serviceParams: z.ZodObject<{
124
48
  controllerId: z.ZodString;
125
- }, "strip", z.ZodTypeAny, {
126
- controllerId: string;
127
- }, {
128
- controllerId: string;
129
- }>;
130
- }, "strip", z.ZodTypeAny, {
131
- service: "playback-controller";
132
- serviceParams: {
133
- controllerId: string;
134
- };
135
- }, {
136
- service: "playback-controller";
137
- serviceParams: {
138
- controllerId: string;
139
- };
140
- }>]>;
49
+ }, z.core.$strip>;
50
+ }, z.core.$strip>]>;
141
51
  export type WebRtcServiceDescription = z.infer<typeof sWebRtcServiceDescription>;
142
- export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
52
+ export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
143
53
  service: z.ZodLiteral<"live">;
144
54
  serviceParams: z.ZodObject<{
145
55
  deviceId: z.ZodString;
146
56
  streamId: z.ZodString;
147
- }, "strip", z.ZodTypeAny, {
148
- deviceId: string;
149
- streamId: string;
150
- }, {
151
- deviceId: string;
152
- streamId: string;
153
- }>;
154
- }, "strip", z.ZodTypeAny, {
155
- service: "live";
156
- serviceParams: {
157
- deviceId: string;
158
- streamId: string;
159
- };
160
- }, {
161
- service: "live";
162
- serviceParams: {
163
- deviceId: string;
164
- streamId: string;
165
- };
166
- }>, z.ZodObject<{
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>, z.ZodObject<{
167
59
  service: z.ZodLiteral<"playback">;
168
60
  serviceParams: z.ZodObject<{
169
61
  controllerId: z.ZodString;
170
- }, "strip", z.ZodTypeAny, {
171
- controllerId: string;
172
- }, {
173
- controllerId: string;
174
- }>;
175
- }, "strip", z.ZodTypeAny, {
176
- service: "playback";
177
- serviceParams: {
178
- controllerId: string;
179
- };
180
- }, {
181
- service: "playback";
182
- serviceParams: {
183
- controllerId: string;
184
- };
185
- }>, z.ZodObject<{
62
+ }, z.core.$strip>;
63
+ }, z.core.$strip>, z.ZodObject<{
186
64
  service: z.ZodLiteral<"playback-track">;
187
65
  serviceParams: z.ZodObject<{
188
66
  controllerId: z.ZodString;
189
67
  trackId: z.ZodString;
190
- }, "strip", z.ZodTypeAny, {
191
- controllerId: string;
192
- trackId: string;
193
- }, {
194
- controllerId: string;
195
- trackId: string;
196
- }>;
197
- }, "strip", z.ZodTypeAny, {
198
- service: "playback-track";
199
- serviceParams: {
200
- controllerId: string;
201
- trackId: string;
202
- };
203
- }, {
204
- service: "playback-track";
205
- serviceParams: {
206
- controllerId: string;
207
- trackId: string;
208
- };
209
- }>, z.ZodObject<{
68
+ }, z.core.$strip>;
69
+ }, z.core.$strip>, z.ZodObject<{
210
70
  service: z.ZodLiteral<"playback-controller">;
211
71
  serviceParams: z.ZodObject<{
212
72
  controllerId: z.ZodString;
213
- }, "strip", z.ZodTypeAny, {
214
- controllerId: string;
215
- }, {
216
- controllerId: string;
217
- }>;
218
- }, "strip", z.ZodTypeAny, {
219
- service: "playback-controller";
220
- serviceParams: {
221
- controllerId: string;
222
- };
223
- }, {
224
- service: "playback-controller";
225
- serviceParams: {
226
- controllerId: string;
227
- };
228
- }>]>, z.ZodObject<{
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>]>, z.ZodObject<{
229
75
  from: z.ZodOptional<z.ZodString>;
230
76
  requestId: z.ZodString;
231
- }, "strip", z.ZodTypeAny, {
232
- requestId: string;
233
- from?: string | undefined;
234
- }, {
235
- requestId: string;
236
- from?: string | undefined;
237
- }>>;
77
+ }, z.core.$strip>>;
238
78
  export type WebRtcNewSessionPayload = z.infer<typeof sWebRtcNewSessionPayload>;
239
79
  export declare const sWebRtcSessionCreatedPayload: z.ZodObject<{
240
80
  requestId: z.ZodString;
@@ -242,102 +82,36 @@ export declare const sWebRtcSessionCreatedPayload: z.ZodObject<{
242
82
  stunServer: z.ZodNullable<z.ZodString>;
243
83
  frozenStreamTimeout: z.ZodNullable<z.ZodNumber>;
244
84
  trickleIce: z.ZodBoolean;
245
- }, "strip", z.ZodTypeAny, {
246
- requestId: string;
247
- sessionId: string;
248
- stunServer: string | null;
249
- frozenStreamTimeout: number | null;
250
- trickleIce: boolean;
251
- }, {
252
- requestId: string;
253
- sessionId: string;
254
- stunServer: string | null;
255
- frozenStreamTimeout: number | null;
256
- trickleIce: boolean;
257
- }>;
85
+ }, z.core.$strip>;
258
86
  export type WebRtcSessionCreatedPayload = z.infer<typeof sWebRtcSessionCreatedPayload>;
259
87
  export declare const sWebRtcOfferPayload: z.ZodObject<{
260
88
  sessionId: z.ZodString;
261
89
  description: z.ZodObject<{
262
90
  type: z.ZodString;
263
91
  sdp: z.ZodString;
264
- }, "strip", z.ZodTypeAny, {
265
- type: string;
266
- sdp: string;
267
- }, {
268
- type: string;
269
- sdp: string;
270
- }>;
92
+ }, z.core.$strip>;
271
93
  from: z.ZodOptional<z.ZodString>;
272
- }, "strip", z.ZodTypeAny, {
273
- description: {
274
- type: string;
275
- sdp: string;
276
- };
277
- sessionId: string;
278
- from?: string | undefined;
279
- }, {
280
- description: {
281
- type: string;
282
- sdp: string;
283
- };
284
- sessionId: string;
285
- from?: string | undefined;
286
- }>;
94
+ }, z.core.$strip>;
287
95
  export type WebRtcOfferPayload = z.infer<typeof sWebRtcOfferPayload>;
288
96
  export declare const sWebRtcAnswerPayload: z.ZodObject<{
289
97
  sessionId: z.ZodString;
290
98
  description: z.ZodObject<{
291
99
  type: z.ZodString;
292
100
  sdp: z.ZodString;
293
- }, "strip", z.ZodTypeAny, {
294
- type: string;
295
- sdp: string;
296
- }, {
297
- type: string;
298
- sdp: string;
299
- }>;
101
+ }, z.core.$strip>;
300
102
  from: z.ZodOptional<z.ZodString>;
301
- }, "strip", z.ZodTypeAny, {
302
- description: {
303
- type: string;
304
- sdp: string;
305
- };
306
- sessionId: string;
307
- from?: string | undefined;
308
- }, {
309
- description: {
310
- type: string;
311
- sdp: string;
312
- };
313
- sessionId: string;
314
- from?: string | undefined;
315
- }>;
103
+ }, z.core.$strip>;
316
104
  export type WebRtcAnswerPayload = z.infer<typeof sWebRtcAnswerPayload>;
317
105
  export declare const sWebRtcIceCandidatePayload: z.ZodObject<{
318
106
  sessionId: z.ZodString;
319
107
  candidate: z.ZodString;
320
108
  from: z.ZodOptional<z.ZodString>;
321
- }, "strip", z.ZodTypeAny, {
322
- sessionId: string;
323
- candidate: string;
324
- from?: string | undefined;
325
- }, {
326
- sessionId: string;
327
- candidate: string;
328
- from?: string | undefined;
329
- }>;
109
+ }, z.core.$strip>;
330
110
  export type WebRtcIceCandidatePayload = z.infer<typeof sWebRtcIceCandidatePayload>;
331
111
  export declare const sWebRtcReleaseSessionPayload: z.ZodObject<{
332
112
  sessionId: z.ZodString;
333
113
  from: z.ZodOptional<z.ZodString>;
334
- }, "strip", z.ZodTypeAny, {
335
- sessionId: string;
336
- from?: string | undefined;
337
- }, {
338
- sessionId: string;
339
- from?: string | undefined;
340
- }>;
114
+ }, z.core.$strip>;
341
115
  export type WebRtcReleaseSessionPayload = z.infer<typeof sWebRtcReleaseSessionPayload>;
342
116
  export declare const sWebRtcErrorPayload: z.ZodObject<{
343
117
  requestId: z.ZodOptional<z.ZodString>;
@@ -345,28 +119,8 @@ export declare const sWebRtcErrorPayload: z.ZodObject<{
345
119
  error: z.ZodObject<{
346
120
  code: z.ZodString;
347
121
  message: z.ZodString;
348
- }, "strip", z.ZodTypeAny, {
349
- code: string;
350
- message: string;
351
- }, {
352
- code: string;
353
- message: string;
354
- }>;
355
- }, "strip", z.ZodTypeAny, {
356
- error: {
357
- code: string;
358
- message: string;
359
- };
360
- requestId?: string | undefined;
361
- sessionId?: string | undefined;
362
- }, {
363
- error: {
364
- code: string;
365
- message: string;
366
- };
367
- requestId?: string | undefined;
368
- sessionId?: string | undefined;
369
- }>;
122
+ }, z.core.$strip>;
123
+ }, z.core.$strip>;
370
124
  export type WebRtcErrorPayload = z.infer<typeof sWebRtcErrorPayload>;
371
125
  interface WebRtcEventMap {
372
126
  'new-session': WebRtcNewSessionPayload;