feat: Explicit answer/reject for inbound calls (#2504)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent b9f09b7c4e
commit f397596ed1
26 changed files with 503 additions and 362 deletions
@@ -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>;
+2
View File
@@ -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,