Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 55 additions & 4 deletions specs/asyncapi/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ channels:
name: calendar_event.updated
payload:
$ref: '#/components/schemas/CalendarEventUpdatedPayload'
canvas_template.applied:
subscribe:
summary: Sent when a canvas template is applied to a canvas
operationId: onCanvasTemplateApplied
message:
name: canvas_template.applied
payload:
$ref: '#/components/schemas/CanvasTemplateAppliedPayload'
meeting.completed:
subscribe:
summary: Sent when a meeting ends and notes/summary are available
Expand Down Expand Up @@ -676,6 +684,46 @@ components:
event_type:
const: calendar_event.updated
type: object
CanvasTemplateAppliedData:
type: object
required:
- applied_at
- applied_by_user_id
- applied_items
- canvas_id
- template_id
- template_name
properties:
applied_at:
type: string
format: date-time
applied_by_user_id:
type: string
format: uuid
applied_items:
type: object
required:
- collaborators
properties:
collaborators:
type: integer
canvas_id:
type: string
format: uuid
template_id:
type: string
format: uuid
template_name:
type: string
CanvasTemplateAppliedPayload:
allOf:
- $ref: '#/components/schemas/WebhookPayloadBase'
- properties:
data:
$ref: '#/components/schemas/CanvasTemplateAppliedData'
event_type:
const: canvas_template.applied
type: object
MeetingCompletedData:
type: object
required:
Expand Down Expand Up @@ -933,14 +981,19 @@ components:
NextStepCompletedData:
type: object
required:
- context_id
- context_type
- executed_at
- executed_by
- execution_mode
- meeting_id
- next_step_id
- next_step_name
- result_id
properties:
context_id:
type: string
format: uuid
context_type:
type: string
executed_at:
type: string
format: date-time
Expand All @@ -950,15 +1003,13 @@ components:
type: string
meeting_id:
type: string
format: uuid
next_step_id:
type: string
format: uuid
next_step_name:
type: string
result_id:
type: string
format: uuid
NextStepCompletedPayload:
allOf:
- $ref: '#/components/schemas/WebhookPayloadBase'
Expand Down
46 changes: 37 additions & 9 deletions src/generated/webhook-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Source: specs/asyncapi/webhooks.yaml
* Spec version: 1.8.0
* Generated: 2026-06-22T11:02:37.855Z
* Generated: 2026-07-06T10:38:21.054Z
*
* Regenerate: npm run gen-webhook-types
*/
Expand Down Expand Up @@ -238,6 +238,31 @@ export interface CalendarEventUpdatedData {
'additionalProperties'?: Record<string, unknown>;
}

export interface CanvasTemplateAppliedPayload {
'data': CanvasTemplateAppliedData;
'event_id': string;
'event_type': 'canvas_template.applied';
'for_user'?: WebhookUserContext;
'partner_app_id': string;
'timestamp': string;
'additionalProperties'?: Record<string, unknown>;
}

export interface CanvasTemplateAppliedData {
'applied_at': string;
'applied_by_user_id': string;
'applied_items': AnonymousSchema_98;
'canvas_id': string;
'template_id': string;
'template_name': string;
'additionalProperties'?: Record<string, unknown>;
}

export interface AnonymousSchema_98 {
'collaborators': number;
'additionalProperties'?: Record<string, unknown>;
}

export interface MeetingCompletedPayload {
'data': MeetingCompletedData;
'event_id': string;
Expand Down Expand Up @@ -307,20 +332,20 @@ export interface MeetingContextProcessedData {
'context_id': string;
'meeting_id': string;
'processed_at': string;
'sanitization_report': AnonymousSchema_118;
'sanitization_report': AnonymousSchema_127;
'workspace_id': string;
'additionalProperties'?: Record<string, unknown>;
}

export interface AnonymousSchema_118 {
export interface AnonymousSchema_127 {
'formula_escaped': boolean;
'pii_detected': boolean;
'redactions'?: AnonymousSchema_122[];
'redactions'?: AnonymousSchema_131[];
'secrets_detected': boolean;
'additionalProperties'?: Record<string, unknown>;
}

export interface AnonymousSchema_122 {
export interface AnonymousSchema_131 {
'count': number;
'type': string;
'additionalProperties'?: Record<string, unknown>;
Expand Down Expand Up @@ -377,14 +402,14 @@ export interface MeetingTemplateAppliedPayload {
export interface MeetingTemplateAppliedData {
'applied_at': string;
'applied_by_user_id': string;
'applied_items': AnonymousSchema_145;
'applied_items': AnonymousSchema_154;
'meeting_id': string;
'template_id': string;
'template_name': string;
'additionalProperties'?: Record<string, unknown>;
}

export interface AnonymousSchema_145 {
export interface AnonymousSchema_154 {
'agenda_items': number;
'documents': number;
'participants': number;
Expand All @@ -402,13 +427,15 @@ export interface NextStepCompletedPayload {
}

export interface NextStepCompletedData {
'context_id': string;
'context_type': string;
'executed_at': string;
'executed_by': string;
'execution_mode': string;
'meeting_id': string;
'meeting_id'?: string;
'next_step_id': string;
'next_step_name': string;
'result_id': string;
'result_id'?: string;
'additionalProperties'?: Record<string, unknown>;
}

Expand Down Expand Up @@ -676,6 +703,7 @@ export const WEBHOOK_EVENT_TYPES = [
'calendar_event.created',
'calendar_event.deleted',
'calendar_event.updated',
'canvas_template.applied',
'meeting.completed',
'meeting.context.created',
'meeting.context.deleted',
Expand Down
5 changes: 5 additions & 0 deletions src/webhooks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type {
CalendarEventCreatedPayload,
CalendarEventDeletedPayload,
CalendarEventUpdatedPayload,
CanvasTemplateAppliedPayload,
MeetingCompletedPayload,
MeetingContextCreatedPayload,
MeetingContextDeletedPayload,
Expand Down Expand Up @@ -55,6 +56,7 @@ export type {
CalendarEventCreatedData,
CalendarEventDeletedData,
CalendarEventUpdatedData,
CanvasTemplateAppliedData,
MeetingCompletedData,
MeetingContextCreatedData,
MeetingContextDeletedData,
Expand Down Expand Up @@ -97,6 +99,7 @@ import type {
CalendarEventCreatedPayload,
CalendarEventDeletedPayload,
CalendarEventUpdatedPayload,
CanvasTemplateAppliedPayload,
MeetingCompletedPayload,
MeetingContextCreatedPayload,
MeetingContextDeletedPayload,
Expand Down Expand Up @@ -134,6 +137,7 @@ export type ContioWebhookEvent =
| CalendarEventCreatedPayload
| CalendarEventDeletedPayload
| CalendarEventUpdatedPayload
| CanvasTemplateAppliedPayload
| MeetingCompletedPayload
| MeetingContextCreatedPayload
| MeetingContextDeletedPayload
Expand Down Expand Up @@ -171,6 +175,7 @@ export const WEBHOOK_EVENTS = {
CALENDAR_EVENT_CREATED: 'calendar_event.created',
CALENDAR_EVENT_DELETED: 'calendar_event.deleted',
CALENDAR_EVENT_UPDATED: 'calendar_event.updated',
CANVAS_TEMPLATE_APPLIED: 'canvas_template.applied',
MEETING_COMPLETED: 'meeting.completed',
MEETING_CONTEXT_CREATED: 'meeting.context.created',
MEETING_CONTEXT_DELETED: 'meeting.context.deleted',
Expand Down