feat: Explicit answer/reject for inbound calls (#2504)
This commit is contained in:
committed by
dermotduffy
parent
b9f09b7c4e
commit
f397596ed1
@@ -0,0 +1,8 @@
|
||||
import { z } from 'zod';
|
||||
import { advancedCameraCardCustomActionsBaseSchema } from './base';
|
||||
|
||||
export const callAnswerActionConfigSchema =
|
||||
advancedCameraCardCustomActionsBaseSchema.extend({
|
||||
advanced_camera_card_action: z.literal('call_answer'),
|
||||
});
|
||||
export type CallAnswerActionConfig = z.infer<typeof callAnswerActionConfigSchema>;
|
||||
@@ -3,6 +3,7 @@ import { linkSchema } from '../common/link';
|
||||
import { severitySchema } from '../common/severity';
|
||||
import { statusBarItemBaseSchema } from '../common/status-bar';
|
||||
import { advancedCameraCardCustomActionsBaseSchema } from './custom/base';
|
||||
import { callAnswerActionConfigSchema } from './custom/call-answer';
|
||||
import { callEndActionConfigSchema } from './custom/call-end';
|
||||
import { callStartActionConfigSchema } from './custom/call-start';
|
||||
import { cameraSelectActionConfigSchema } from './custom/camera-select';
|
||||
@@ -61,6 +62,7 @@ export const statusBarActionConfigSchema: z.ZodSchema<StatusBarActionConfig> =
|
||||
});
|
||||
|
||||
const advancedCameraCardCustomActionSchema = z.union([
|
||||
callAnswerActionConfigSchema,
|
||||
callEndActionConfigSchema,
|
||||
callStartActionConfigSchema,
|
||||
cameraSelectActionConfigSchema,
|
||||
|
||||
Reference in New Issue
Block a user