@awarevue/api-types 1.0.97 → 1.0.99
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.
|
@@ -106,7 +106,7 @@ export interface IntercomHangUpCommand {
|
|
|
106
106
|
export type IntercomTerminalCommand = IntercomConnectCommand | IntercomDisconnectCommand | IntercomDialCommand | IntercomCancelCallCommand | IntercomAnswerCallCommand | IntercomHangUpCommand;
|
|
107
107
|
export declare const sCallState: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
108
108
|
export declare const sIntercomTerminalState: z.ZodObject<{
|
|
109
|
-
callState: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]
|
|
109
|
+
callState: z.ZodNullable<z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>>;
|
|
110
110
|
connected: z.ZodBoolean;
|
|
111
111
|
callId: z.ZodNullable<z.ZodString>;
|
|
112
112
|
peer: z.ZodNullable<z.ZodString>;
|
|
@@ -114,12 +114,12 @@ export declare const sIntercomTerminalState: z.ZodObject<{
|
|
|
114
114
|
connected: boolean;
|
|
115
115
|
callId: string | null;
|
|
116
116
|
peer: string | null;
|
|
117
|
-
callState: "connected" | "connecting" | "ringing" | "terminated";
|
|
117
|
+
callState: "connected" | "connecting" | "ringing" | "terminated" | null;
|
|
118
118
|
}, {
|
|
119
119
|
connected: boolean;
|
|
120
120
|
callId: string | null;
|
|
121
121
|
peer: string | null;
|
|
122
|
-
callState: "connected" | "connecting" | "ringing" | "terminated";
|
|
122
|
+
callState: "connected" | "connecting" | "ringing" | "terminated" | null;
|
|
123
123
|
}>;
|
|
124
124
|
export type IntercomTerminalStateDto = z.infer<typeof sIntercomTerminalState>;
|
|
125
125
|
export declare const sCallStateChanged: z.ZodObject<{
|
|
@@ -129,23 +129,26 @@ export declare const sCallStateChanged: z.ZodObject<{
|
|
|
129
129
|
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
130
130
|
peer: z.ZodOptional<z.ZodString>;
|
|
131
131
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
132
|
-
sipCallId: z.ZodString
|
|
132
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
direction: z.ZodEnum<["incoming", "outgoing"]>;
|
|
133
134
|
}, "strip", z.ZodTypeAny, {
|
|
134
135
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
136
|
+
direction: "incoming" | "outgoing";
|
|
135
137
|
kind: "call-state-changed";
|
|
136
138
|
callId: string;
|
|
137
|
-
sipCallId: string;
|
|
138
139
|
userId?: string | undefined;
|
|
139
140
|
peer?: string | undefined;
|
|
140
141
|
sipAccount?: string | undefined;
|
|
142
|
+
sipCallId?: string | undefined;
|
|
141
143
|
}, {
|
|
142
144
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
145
|
+
direction: "incoming" | "outgoing";
|
|
143
146
|
kind: "call-state-changed";
|
|
144
147
|
callId: string;
|
|
145
|
-
sipCallId: string;
|
|
146
148
|
userId?: string | undefined;
|
|
147
149
|
peer?: string | undefined;
|
|
148
150
|
sipAccount?: string | undefined;
|
|
151
|
+
sipCallId?: string | undefined;
|
|
149
152
|
}>;
|
|
150
153
|
export declare const intercomTerminalEventSchemaByKind: {
|
|
151
154
|
'call-state-changed': z.ZodObject<{
|
|
@@ -155,23 +158,26 @@ export declare const intercomTerminalEventSchemaByKind: {
|
|
|
155
158
|
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
156
159
|
peer: z.ZodOptional<z.ZodString>;
|
|
157
160
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
158
|
-
sipCallId: z.ZodString
|
|
161
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
direction: z.ZodEnum<["incoming", "outgoing"]>;
|
|
159
163
|
}, "strip", z.ZodTypeAny, {
|
|
160
164
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
165
|
+
direction: "incoming" | "outgoing";
|
|
161
166
|
kind: "call-state-changed";
|
|
162
167
|
callId: string;
|
|
163
|
-
sipCallId: string;
|
|
164
168
|
userId?: string | undefined;
|
|
165
169
|
peer?: string | undefined;
|
|
166
170
|
sipAccount?: string | undefined;
|
|
171
|
+
sipCallId?: string | undefined;
|
|
167
172
|
}, {
|
|
168
173
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
174
|
+
direction: "incoming" | "outgoing";
|
|
169
175
|
kind: "call-state-changed";
|
|
170
176
|
callId: string;
|
|
171
|
-
sipCallId: string;
|
|
172
177
|
userId?: string | undefined;
|
|
173
178
|
peer?: string | undefined;
|
|
174
179
|
sipAccount?: string | undefined;
|
|
180
|
+
sipCallId?: string | undefined;
|
|
175
181
|
}>;
|
|
176
182
|
};
|
|
177
183
|
export type CallStateChangedEvent = z.infer<typeof sCallStateChanged>;
|
|
@@ -23,8 +23,9 @@ exports.sCallState = zod_1.z.enum([
|
|
|
23
23
|
'ringing',
|
|
24
24
|
'terminated',
|
|
25
25
|
]);
|
|
26
|
+
const sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
|
|
26
27
|
exports.sIntercomTerminalState = zod_1.z.object({
|
|
27
|
-
callState: exports.sCallState,
|
|
28
|
+
callState: exports.sCallState.nullable(),
|
|
28
29
|
connected: zod_1.z.boolean(),
|
|
29
30
|
callId: zod_1.z.string().nullable(),
|
|
30
31
|
peer: zod_1.z.string().nullable(),
|
|
@@ -46,7 +47,8 @@ exports.sCallStateChanged = zod_1.z.object({
|
|
|
46
47
|
state: exports.sCallState,
|
|
47
48
|
peer: zod_1.z.string().optional(),
|
|
48
49
|
sipAccount: zod_1.z.string().optional(),
|
|
49
|
-
sipCallId: zod_1.z.string().
|
|
50
|
+
sipCallId: zod_1.z.string().optional(),
|
|
51
|
+
direction: sCallDirection,
|
|
50
52
|
});
|
|
51
53
|
// export const sIntercomCallEvent = z.object({
|
|
52
54
|
// kind: z.literal('intercom-call'),
|
package/dist/device-event.d.ts
CHANGED
|
@@ -138,23 +138,26 @@ export declare const eventSchemaByKind: {
|
|
|
138
138
|
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
139
139
|
peer: z.ZodOptional<z.ZodString>;
|
|
140
140
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
141
|
-
sipCallId: z.ZodString
|
|
141
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
direction: z.ZodEnum<["incoming", "outgoing"]>;
|
|
142
143
|
}, "strip", z.ZodTypeAny, {
|
|
143
144
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
145
|
+
direction: "incoming" | "outgoing";
|
|
144
146
|
kind: "call-state-changed";
|
|
145
147
|
callId: string;
|
|
146
|
-
sipCallId: string;
|
|
147
148
|
userId?: string | undefined;
|
|
148
149
|
peer?: string | undefined;
|
|
149
150
|
sipAccount?: string | undefined;
|
|
151
|
+
sipCallId?: string | undefined;
|
|
150
152
|
}, {
|
|
151
153
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
154
|
+
direction: "incoming" | "outgoing";
|
|
152
155
|
kind: "call-state-changed";
|
|
153
156
|
callId: string;
|
|
154
|
-
sipCallId: string;
|
|
155
157
|
userId?: string | undefined;
|
|
156
158
|
peer?: string | undefined;
|
|
157
159
|
sipAccount?: string | undefined;
|
|
160
|
+
sipCallId?: string | undefined;
|
|
158
161
|
}>;
|
|
159
162
|
'door-access': z.ZodObject<{
|
|
160
163
|
kind: z.ZodLiteral<"door-access">;
|
package/dist/package.json
CHANGED