@awarevue/api-types 1.0.98 → 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.
@@ -130,8 +130,10 @@ export declare const sCallStateChanged: z.ZodObject<{
130
130
  peer: z.ZodOptional<z.ZodString>;
131
131
  sipAccount: z.ZodOptional<z.ZodString>;
132
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
139
  userId?: string | undefined;
@@ -140,6 +142,7 @@ export declare const sCallStateChanged: z.ZodObject<{
140
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
148
  userId?: string | undefined;
@@ -156,8 +159,10 @@ export declare const intercomTerminalEventSchemaByKind: {
156
159
  peer: z.ZodOptional<z.ZodString>;
157
160
  sipAccount: z.ZodOptional<z.ZodString>;
158
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
168
  userId?: string | undefined;
@@ -166,6 +171,7 @@ export declare const intercomTerminalEventSchemaByKind: {
166
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
177
  userId?: string | undefined;
@@ -23,6 +23,7 @@ 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
28
  callState: exports.sCallState.nullable(),
28
29
  connected: zod_1.z.boolean(),
@@ -47,6 +48,7 @@ exports.sCallStateChanged = zod_1.z.object({
47
48
  peer: zod_1.z.string().optional(),
48
49
  sipAccount: zod_1.z.string().optional(),
49
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'),
@@ -139,8 +139,10 @@ export declare const eventSchemaByKind: {
139
139
  peer: z.ZodOptional<z.ZodString>;
140
140
  sipAccount: z.ZodOptional<z.ZodString>;
141
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
148
  userId?: string | undefined;
@@ -149,6 +151,7 @@ export declare const eventSchemaByKind: {
149
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
157
  userId?: string | undefined;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",