@awarevue/api-types 1.0.97 → 1.0.98
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,23 @@ 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
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
134
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
135
135
|
kind: "call-state-changed";
|
|
136
136
|
callId: string;
|
|
137
|
-
sipCallId: string;
|
|
138
137
|
userId?: string | undefined;
|
|
139
138
|
peer?: string | undefined;
|
|
140
139
|
sipAccount?: string | undefined;
|
|
140
|
+
sipCallId?: string | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
143
143
|
kind: "call-state-changed";
|
|
144
144
|
callId: string;
|
|
145
|
-
sipCallId: string;
|
|
146
145
|
userId?: string | undefined;
|
|
147
146
|
peer?: string | undefined;
|
|
148
147
|
sipAccount?: string | undefined;
|
|
148
|
+
sipCallId?: string | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
export declare const intercomTerminalEventSchemaByKind: {
|
|
151
151
|
'call-state-changed': z.ZodObject<{
|
|
@@ -155,23 +155,23 @@ export declare const intercomTerminalEventSchemaByKind: {
|
|
|
155
155
|
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
156
156
|
peer: z.ZodOptional<z.ZodString>;
|
|
157
157
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
158
|
-
sipCallId: z.ZodString
|
|
158
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
161
161
|
kind: "call-state-changed";
|
|
162
162
|
callId: string;
|
|
163
|
-
sipCallId: string;
|
|
164
163
|
userId?: string | undefined;
|
|
165
164
|
peer?: string | undefined;
|
|
166
165
|
sipAccount?: string | undefined;
|
|
166
|
+
sipCallId?: string | undefined;
|
|
167
167
|
}, {
|
|
168
168
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
169
169
|
kind: "call-state-changed";
|
|
170
170
|
callId: string;
|
|
171
|
-
sipCallId: string;
|
|
172
171
|
userId?: string | undefined;
|
|
173
172
|
peer?: string | undefined;
|
|
174
173
|
sipAccount?: string | undefined;
|
|
174
|
+
sipCallId?: string | undefined;
|
|
175
175
|
}>;
|
|
176
176
|
};
|
|
177
177
|
export type CallStateChangedEvent = z.infer<typeof sCallStateChanged>;
|
|
@@ -24,7 +24,7 @@ exports.sCallState = zod_1.z.enum([
|
|
|
24
24
|
'terminated',
|
|
25
25
|
]);
|
|
26
26
|
exports.sIntercomTerminalState = zod_1.z.object({
|
|
27
|
-
callState: exports.sCallState,
|
|
27
|
+
callState: exports.sCallState.nullable(),
|
|
28
28
|
connected: zod_1.z.boolean(),
|
|
29
29
|
callId: zod_1.z.string().nullable(),
|
|
30
30
|
peer: zod_1.z.string().nullable(),
|
|
@@ -46,7 +46,7 @@ exports.sCallStateChanged = zod_1.z.object({
|
|
|
46
46
|
state: exports.sCallState,
|
|
47
47
|
peer: zod_1.z.string().optional(),
|
|
48
48
|
sipAccount: zod_1.z.string().optional(),
|
|
49
|
-
sipCallId: zod_1.z.string().
|
|
49
|
+
sipCallId: zod_1.z.string().optional(),
|
|
50
50
|
});
|
|
51
51
|
// export const sIntercomCallEvent = z.object({
|
|
52
52
|
// kind: z.literal('intercom-call'),
|
package/dist/device-event.d.ts
CHANGED
|
@@ -138,23 +138,23 @@ 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
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
143
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
144
144
|
kind: "call-state-changed";
|
|
145
145
|
callId: string;
|
|
146
|
-
sipCallId: string;
|
|
147
146
|
userId?: string | undefined;
|
|
148
147
|
peer?: string | undefined;
|
|
149
148
|
sipAccount?: string | undefined;
|
|
149
|
+
sipCallId?: string | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
152
152
|
kind: "call-state-changed";
|
|
153
153
|
callId: string;
|
|
154
|
-
sipCallId: string;
|
|
155
154
|
userId?: string | undefined;
|
|
156
155
|
peer?: string | undefined;
|
|
157
156
|
sipAccount?: string | undefined;
|
|
157
|
+
sipCallId?: string | undefined;
|
|
158
158
|
}>;
|
|
159
159
|
'door-access': z.ZodObject<{
|
|
160
160
|
kind: z.ZodLiteral<"door-access">;
|
package/dist/package.json
CHANGED