Skip to main content

wellfriend/generated/
events.rs

1// Generated by scripts/sdk/generate-rust.mjs. Do not edit.
2//! Typed webhook event payloads, one per event type.
3
4use serde::{Deserialize, Serialize};
5
6#[allow(unused_imports)]
7use crate::generated::models::*;
8use crate::Object;
9
10/// The data of a `com.wellfriend.document.version.created.v2` event.
11#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
12pub struct DocumentVersionCreatedV2Data {
13    /// The `documentId` field.
14    #[serde(rename = "documentId", default)]
15    pub document_id: String,
16    /// The `versionId` field.
17    #[serde(rename = "versionId", default, skip_serializing_if = "Option::is_none")]
18    pub version_id: Option<String>,
19    /// The `environment` field.
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub environment: Option<String>,
22    /// The `mimeType` field.
23    #[serde(rename = "mimeType", default, skip_serializing_if = "Option::is_none")]
24    pub mime_type: Option<String>,
25    /// The `sizeBytes` field.
26    #[serde(rename = "sizeBytes", default, skip_serializing_if = "Option::is_none")]
27    pub size_bytes: Option<i64>,
28    /// The `sha256` field.
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub sha256: Option<String>,
31    /// Fields this SDK version does not model.
32    #[serde(flatten)]
33    pub extra: Object,
34}
35
36/// The data of a `com.wellfriend.document-operation.completed.v2` event.
37#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
38pub struct DocumentOperationCompletedV2Data {
39    /// The `operationId` field.
40    #[serde(rename = "operationId", default)]
41    pub operation_id: String,
42    /// The `tool` field.
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub tool: Option<String>,
45    /// The `state` field.
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub state: Option<String>,
48    /// The `environment` field.
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub environment: Option<String>,
51    /// The `chainId` field.
52    #[serde(rename = "chainId", default, skip_serializing_if = "Option::is_none")]
53    pub chain_id: Option<String>,
54    /// The `step` field.
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub step: Option<String>,
57    /// The `documentId` field.
58    #[serde(
59        rename = "documentId",
60        default,
61        skip_serializing_if = "Option::is_none"
62    )]
63    pub document_id: Option<String>,
64    /// The `outputDocumentId` field.
65    #[serde(
66        rename = "outputDocumentId",
67        default,
68        skip_serializing_if = "Option::is_none"
69    )]
70    pub output_document_id: Option<String>,
71    /// The `outputVersionId` field.
72    #[serde(
73        rename = "outputVersionId",
74        default,
75        skip_serializing_if = "Option::is_none"
76    )]
77    pub output_version_id: Option<String>,
78    /// Fields this SDK version does not model.
79    #[serde(flatten)]
80    pub extra: Object,
81}
82
83/// Provider detail, checked by the payload policy before delivery.
84#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
85pub struct DocumentOperationFailedV2DataError {
86    /// The `code` field.
87    #[serde(default, skip_serializing_if = "Option::is_none")]
88    pub code: Option<String>,
89    /// Fields this SDK version does not model.
90    #[serde(flatten)]
91    pub extra: Object,
92}
93
94/// The data of a `com.wellfriend.document-operation.failed.v2` event.
95#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
96pub struct DocumentOperationFailedV2Data {
97    /// The `operationId` field.
98    #[serde(rename = "operationId", default)]
99    pub operation_id: String,
100    /// The `tool` field.
101    #[serde(default, skip_serializing_if = "Option::is_none")]
102    pub tool: Option<String>,
103    /// The `state` field.
104    #[serde(default, skip_serializing_if = "Option::is_none")]
105    pub state: Option<String>,
106    /// The `environment` field.
107    #[serde(default, skip_serializing_if = "Option::is_none")]
108    pub environment: Option<String>,
109    /// The `chainId` field.
110    #[serde(rename = "chainId", default, skip_serializing_if = "Option::is_none")]
111    pub chain_id: Option<String>,
112    /// The `step` field.
113    #[serde(default, skip_serializing_if = "Option::is_none")]
114    pub step: Option<String>,
115    /// The `documentId` field.
116    #[serde(
117        rename = "documentId",
118        default,
119        skip_serializing_if = "Option::is_none"
120    )]
121    pub document_id: Option<String>,
122    /// Provider detail, checked by the payload policy before delivery.
123    #[serde(default, skip_serializing_if = "Option::is_none")]
124    pub error: Option<DocumentOperationFailedV2DataError>,
125    /// Fields this SDK version does not model.
126    #[serde(flatten)]
127    pub extra: Object,
128}
129
130/// The data of a `com.wellfriend.document-operation.canceled.v2` event.
131#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
132pub struct DocumentOperationCanceledV2Data {
133    /// The `operationId` field.
134    #[serde(rename = "operationId", default)]
135    pub operation_id: String,
136    /// The `tool` field.
137    #[serde(default, skip_serializing_if = "Option::is_none")]
138    pub tool: Option<String>,
139    /// The `state` field.
140    #[serde(default, skip_serializing_if = "Option::is_none")]
141    pub state: Option<String>,
142    /// The `environment` field.
143    #[serde(default, skip_serializing_if = "Option::is_none")]
144    pub environment: Option<String>,
145    /// The `chainId` field.
146    #[serde(rename = "chainId", default, skip_serializing_if = "Option::is_none")]
147    pub chain_id: Option<String>,
148    /// The `step` field.
149    #[serde(default, skip_serializing_if = "Option::is_none")]
150    pub step: Option<String>,
151    /// The `documentId` field.
152    #[serde(
153        rename = "documentId",
154        default,
155        skip_serializing_if = "Option::is_none"
156    )]
157    pub document_id: Option<String>,
158    /// Provider detail, checked by the payload policy before delivery.
159    #[serde(default, skip_serializing_if = "Option::is_none")]
160    pub error: Option<DocumentOperationFailedV2DataError>,
161    /// Fields this SDK version does not model.
162    #[serde(flatten)]
163    pub extra: Object,
164}
165
166/// The data of a `com.wellfriend.document-chain.completed.v2` event.
167#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
168pub struct DocumentChainCompletedV2Data {
169    /// The `chainId` field.
170    #[serde(rename = "chainId", default)]
171    pub chain_id: String,
172    /// The `state` field.
173    #[serde(default, skip_serializing_if = "Option::is_none")]
174    pub state: Option<String>,
175    /// The `environment` field.
176    #[serde(default, skip_serializing_if = "Option::is_none")]
177    pub environment: Option<String>,
178    /// Fields this SDK version does not model.
179    #[serde(flatten)]
180    pub extra: Object,
181}
182
183/// The data of a `com.wellfriend.document-chain.failed.v2` event.
184#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
185pub struct DocumentChainFailedV2Data {
186    /// The `chainId` field.
187    #[serde(rename = "chainId", default)]
188    pub chain_id: String,
189    /// The `state` field.
190    #[serde(default, skip_serializing_if = "Option::is_none")]
191    pub state: Option<String>,
192    /// The `environment` field.
193    #[serde(default, skip_serializing_if = "Option::is_none")]
194    pub environment: Option<String>,
195    /// The `failedStep` field.
196    #[serde(
197        rename = "failedStep",
198        default,
199        skip_serializing_if = "Option::is_none"
200    )]
201    pub failed_step: Option<String>,
202    /// Provider detail, checked by the payload policy before delivery.
203    #[serde(default, skip_serializing_if = "Option::is_none")]
204    pub error: Option<DocumentOperationFailedV2DataError>,
205    /// Fields this SDK version does not model.
206    #[serde(flatten)]
207    pub extra: Object,
208}
209
210/// The data of a `com.wellfriend.document-chain.canceled.v2` event.
211#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
212pub struct DocumentChainCanceledV2Data {
213    /// The `chainId` field.
214    #[serde(rename = "chainId", default)]
215    pub chain_id: String,
216    /// The `state` field.
217    #[serde(default, skip_serializing_if = "Option::is_none")]
218    pub state: Option<String>,
219    /// The `environment` field.
220    #[serde(default, skip_serializing_if = "Option::is_none")]
221    pub environment: Option<String>,
222    /// Fields this SDK version does not model.
223    #[serde(flatten)]
224    pub extra: Object,
225}
226
227/// The data of a `com.wellfriend.secure-link.created.v2` event.
228#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
229pub struct SecureLinkCreatedV2Data {
230    /// The `linkId` field.
231    #[serde(rename = "linkId", default)]
232    pub link_id: String,
233    /// The `documentId` field.
234    #[serde(
235        rename = "documentId",
236        default,
237        skip_serializing_if = "Option::is_none"
238    )]
239    pub document_id: Option<String>,
240    /// The `versionId` field.
241    #[serde(rename = "versionId", default, skip_serializing_if = "Option::is_none")]
242    pub version_id: Option<String>,
243    /// The `environment` field.
244    #[serde(default, skip_serializing_if = "Option::is_none")]
245    pub environment: Option<String>,
246    /// Fields this SDK version does not model.
247    #[serde(flatten)]
248    pub extra: Object,
249}
250
251/// The data of a `com.wellfriend.secure-link.revoked.v2` event.
252#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
253pub struct SecureLinkRevokedV2Data {
254    /// The `linkId` field.
255    #[serde(rename = "linkId", default)]
256    pub link_id: String,
257    /// The `environment` field.
258    #[serde(default, skip_serializing_if = "Option::is_none")]
259    pub environment: Option<String>,
260    /// Fields this SDK version does not model.
261    #[serde(flatten)]
262    pub extra: Object,
263}
264
265/// The data of a `com.wellfriend.workflow.published.v2` event.
266#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
267pub struct WorkflowPublishedV2Data {
268    /// The `workflowId` field.
269    #[serde(rename = "workflowId", default)]
270    pub workflow_id: String,
271    /// The `workflowVersionId` field.
272    #[serde(
273        rename = "workflowVersionId",
274        default,
275        skip_serializing_if = "Option::is_none"
276    )]
277    pub workflow_version_id: Option<String>,
278    /// The `version` field.
279    #[serde(default, skip_serializing_if = "Option::is_none")]
280    pub version: Option<i64>,
281    /// The `environment` field.
282    #[serde(default, skip_serializing_if = "Option::is_none")]
283    pub environment: Option<String>,
284    /// Fields this SDK version does not model.
285    #[serde(flatten)]
286    pub extra: Object,
287}
288
289/// The data of a `com.wellfriend.workflow-run.started.v2` event.
290#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
291pub struct WorkflowRunStartedV2Data {
292    /// The `workflowId` field.
293    #[serde(
294        rename = "workflowId",
295        default,
296        skip_serializing_if = "Option::is_none"
297    )]
298    pub workflow_id: Option<String>,
299    /// The `workflowVersionId` field.
300    #[serde(
301        rename = "workflowVersionId",
302        default,
303        skip_serializing_if = "Option::is_none"
304    )]
305    pub workflow_version_id: Option<String>,
306    /// The `runId` field.
307    #[serde(rename = "runId", default)]
308    pub run_id: String,
309    /// The `environment` field.
310    #[serde(default, skip_serializing_if = "Option::is_none")]
311    pub environment: Option<String>,
312    /// Fields this SDK version does not model.
313    #[serde(flatten)]
314    pub extra: Object,
315}
316
317/// The data of a `com.wellfriend.workflow-run.completed.v2` event.
318#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
319pub struct WorkflowRunCompletedV2Data {
320    /// The `runId` field.
321    #[serde(rename = "runId", default)]
322    pub run_id: String,
323    /// The `state` field.
324    #[serde(default, skip_serializing_if = "Option::is_none")]
325    pub state: Option<String>,
326    /// The `environment` field.
327    #[serde(default, skip_serializing_if = "Option::is_none")]
328    pub environment: Option<String>,
329    /// Fields this SDK version does not model.
330    #[serde(flatten)]
331    pub extra: Object,
332}
333
334/// The data of a `com.wellfriend.workflow-run.failed.v2` event.
335#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
336pub struct WorkflowRunFailedV2Data {
337    /// The `runId` field.
338    #[serde(rename = "runId", default)]
339    pub run_id: String,
340    /// The `state` field.
341    #[serde(default, skip_serializing_if = "Option::is_none")]
342    pub state: Option<String>,
343    /// Provider detail, checked by the payload policy before delivery.
344    #[serde(default, skip_serializing_if = "Option::is_none")]
345    pub error: Option<DocumentOperationFailedV2DataError>,
346    /// The `environment` field.
347    #[serde(default, skip_serializing_if = "Option::is_none")]
348    pub environment: Option<String>,
349    /// Fields this SDK version does not model.
350    #[serde(flatten)]
351    pub extra: Object,
352}
353
354/// The data of a `com.wellfriend.workflow-run.cancelled.v2` event.
355#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
356pub struct WorkflowRunCancelledV2Data {
357    /// The `runId` field.
358    #[serde(rename = "runId", default)]
359    pub run_id: String,
360    /// The `environment` field.
361    #[serde(default, skip_serializing_if = "Option::is_none")]
362    pub environment: Option<String>,
363    /// Fields this SDK version does not model.
364    #[serde(flatten)]
365    pub extra: Object,
366}
367
368/// The data of a `com.wellfriend.workflow-approval.decided.v2` event.
369#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
370pub struct WorkflowApprovalDecidedV2Data {
371    /// The `approvalId` field.
372    #[serde(
373        rename = "approvalId",
374        default,
375        skip_serializing_if = "Option::is_none"
376    )]
377    pub approval_id: Option<String>,
378    /// The `runId` field.
379    #[serde(rename = "runId", default)]
380    pub run_id: String,
381    /// The `decision` field.
382    #[serde(default, skip_serializing_if = "Option::is_none")]
383    pub decision: Option<String>,
384    /// The `reason` field.
385    #[serde(default, skip_serializing_if = "Option::is_none")]
386    pub reason: Option<String>,
387    /// The `environment` field.
388    #[serde(default, skip_serializing_if = "Option::is_none")]
389    pub environment: Option<String>,
390    /// Fields this SDK version does not model.
391    #[serde(flatten)]
392    pub extra: Object,
393}
394
395/// Provider detail, checked by the payload policy before delivery.
396#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
397pub struct ConnectorOperationStartedV2DataResult {
398    /// The `documentId` field.
399    #[serde(
400        rename = "documentId",
401        default,
402        skip_serializing_if = "Option::is_none"
403    )]
404    pub document_id: Option<String>,
405    /// The `folderId` field.
406    #[serde(rename = "folderId", default, skip_serializing_if = "Option::is_none")]
407    pub folder_id: Option<String>,
408    /// Fields this SDK version does not model.
409    #[serde(flatten)]
410    pub extra: Object,
411}
412
413/// The data of a `com.wellfriend.connector.operation.started.v2` event.
414#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
415pub struct ConnectorOperationStartedV2Data {
416    /// The `connectorAccountId` field.
417    #[serde(
418        rename = "connectorAccountId",
419        default,
420        skip_serializing_if = "Option::is_none"
421    )]
422    pub connector_account_id: Option<String>,
423    /// The `connectorOperationId` field.
424    #[serde(rename = "connectorOperationId", default)]
425    pub connector_operation_id: String,
426    /// The `provider` field.
427    #[serde(default, skip_serializing_if = "Option::is_none")]
428    pub provider: Option<String>,
429    /// Provider detail, checked by the payload policy before delivery.
430    #[serde(default, skip_serializing_if = "Option::is_none")]
431    pub result: Option<ConnectorOperationStartedV2DataResult>,
432    /// Fields this SDK version does not model.
433    #[serde(flatten)]
434    pub extra: Object,
435}
436
437/// Provider detail, checked by the payload policy before delivery.
438#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
439pub struct ConnectorOperationCompletedV2DataResult {
440    /// The `externalId` field.
441    #[serde(
442        rename = "externalId",
443        default,
444        skip_serializing_if = "Option::is_none"
445    )]
446    pub external_id: Option<String>,
447    /// Fields this SDK version does not model.
448    #[serde(flatten)]
449    pub extra: Object,
450}
451
452/// The data of a `com.wellfriend.connector.operation.completed.v2` event.
453#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
454pub struct ConnectorOperationCompletedV2Data {
455    /// The `connectorAccountId` field.
456    #[serde(
457        rename = "connectorAccountId",
458        default,
459        skip_serializing_if = "Option::is_none"
460    )]
461    pub connector_account_id: Option<String>,
462    /// The `connectorOperationId` field.
463    #[serde(rename = "connectorOperationId", default)]
464    pub connector_operation_id: String,
465    /// The `provider` field.
466    #[serde(default, skip_serializing_if = "Option::is_none")]
467    pub provider: Option<String>,
468    /// Provider detail, checked by the payload policy before delivery.
469    #[serde(default, skip_serializing_if = "Option::is_none")]
470    pub result: Option<ConnectorOperationCompletedV2DataResult>,
471    /// Fields this SDK version does not model.
472    #[serde(flatten)]
473    pub extra: Object,
474}
475
476/// The data of a `com.wellfriend.connector.operation.failed.v2` event.
477#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
478pub struct ConnectorOperationFailedV2Data {
479    /// The `connectorAccountId` field.
480    #[serde(
481        rename = "connectorAccountId",
482        default,
483        skip_serializing_if = "Option::is_none"
484    )]
485    pub connector_account_id: Option<String>,
486    /// The `connectorOperationId` field.
487    #[serde(rename = "connectorOperationId", default)]
488    pub connector_operation_id: String,
489    /// The `provider` field.
490    #[serde(default, skip_serializing_if = "Option::is_none")]
491    pub provider: Option<String>,
492    /// Provider detail, checked by the payload policy before delivery.
493    #[serde(default, skip_serializing_if = "Option::is_none")]
494    pub result: Option<serde_json::Value>,
495    /// Fields this SDK version does not model.
496    #[serde(flatten)]
497    pub extra: Object,
498}
499
500/// Your own trigger data, passed through as sent.
501#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
502pub struct GenericHttpReceivedV2DataData {
503    /// The `orderId` field.
504    #[serde(rename = "orderId", default, skip_serializing_if = "Option::is_none")]
505    pub order_id: Option<String>,
506    /// The `status` field.
507    #[serde(default, skip_serializing_if = "Option::is_none")]
508    pub status: Option<String>,
509    /// Fields this SDK version does not model.
510    #[serde(flatten)]
511    pub extra: Object,
512}
513
514/// The data of a `com.wellfriend.generic-http.received.v2` event.
515#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
516pub struct GenericHttpReceivedV2Data {
517    /// The `connectorAccountId` field.
518    #[serde(rename = "connectorAccountId", default)]
519    pub connector_account_id: String,
520    /// The `environment` field.
521    #[serde(default, skip_serializing_if = "Option::is_none")]
522    pub environment: Option<String>,
523    /// Your own trigger data, passed through as sent.
524    #[serde(default, skip_serializing_if = "Option::is_none")]
525    pub data: Option<GenericHttpReceivedV2DataData>,
526    /// Fields this SDK version does not model.
527    #[serde(flatten)]
528    pub extra: Object,
529}
530
531/// The data of a `com.wellfriend.webhook.test.v2` event.
532#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
533pub struct WebhookTestV2Data {
534    /// The `endpointId` field.
535    #[serde(rename = "endpointId", default)]
536    pub endpoint_id: String,
537    /// The `test` field.
538    #[serde(default, skip_serializing_if = "Option::is_none")]
539    pub test: Option<bool>,
540    /// The `environment` field.
541    #[serde(default, skip_serializing_if = "Option::is_none")]
542    pub environment: Option<String>,
543    /// Fields this SDK version does not model.
544    #[serde(flatten)]
545    pub extra: Object,
546}
547
548/// The data of a `com.wellfriend.webhook.endpoint.failing.v2` event.
549#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
550pub struct WebhookEndpointFailingV2Data {
551    /// The `endpointId` field.
552    #[serde(rename = "endpointId", default)]
553    pub endpoint_id: String,
554    /// The `environment` field.
555    #[serde(default, skip_serializing_if = "Option::is_none")]
556    pub environment: Option<String>,
557    /// The `failingSince` field.
558    #[serde(
559        rename = "failingSince",
560        default,
561        skip_serializing_if = "Option::is_none"
562    )]
563    pub failing_since: Option<String>,
564    /// The `warningHours` field.
565    #[serde(
566        rename = "warningHours",
567        default,
568        skip_serializing_if = "Option::is_none"
569    )]
570    pub warning_hours: Option<i64>,
571    /// The `lastFailureCode` field.
572    #[serde(
573        rename = "lastFailureCode",
574        default,
575        skip_serializing_if = "Option::is_none"
576    )]
577    pub last_failure_code: Option<String>,
578    /// The `consecutiveFailures` field.
579    #[serde(
580        rename = "consecutiveFailures",
581        default,
582        skip_serializing_if = "Option::is_none"
583    )]
584    pub consecutive_failures: Option<i64>,
585    /// Fields this SDK version does not model.
586    #[serde(flatten)]
587    pub extra: Object,
588}
589
590/// The data of a `com.wellfriend.webhook.endpoint.disabled.v2` event.
591#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
592pub struct WebhookEndpointDisabledV2Data {
593    /// The `endpointId` field.
594    #[serde(rename = "endpointId", default)]
595    pub endpoint_id: String,
596    /// The `environment` field.
597    #[serde(default, skip_serializing_if = "Option::is_none")]
598    pub environment: Option<String>,
599    /// The `reason` field.
600    #[serde(default, skip_serializing_if = "Option::is_none")]
601    pub reason: Option<String>,
602    /// The `failingSince` field.
603    #[serde(
604        rename = "failingSince",
605        default,
606        skip_serializing_if = "Option::is_none"
607    )]
608    pub failing_since: Option<String>,
609    /// The `lastFailureCode` field.
610    #[serde(
611        rename = "lastFailureCode",
612        default,
613        skip_serializing_if = "Option::is_none"
614    )]
615    pub last_failure_code: Option<String>,
616    /// The `consecutiveFailures` field.
617    #[serde(
618        rename = "consecutiveFailures",
619        default,
620        skip_serializing_if = "Option::is_none"
621    )]
622    pub consecutive_failures: Option<i64>,
623    /// Fields this SDK version does not model.
624    #[serde(flatten)]
625    pub extra: Object,
626}
627
628/// The data of a `com.wellfriend.document.ai_operation.completed.v1` event.
629#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
630pub struct DocumentAiOperationCompletedV1Data {
631    /// The `operationId` field.
632    #[serde(rename = "operationId", default)]
633    pub operation_id: String,
634    /// The `task` field.
635    #[serde(default, skip_serializing_if = "Option::is_none")]
636    pub task: Option<String>,
637    /// The `status` field.
638    #[serde(default, skip_serializing_if = "Option::is_none")]
639    pub status: Option<String>,
640    /// The `documentId` field.
641    #[serde(
642        rename = "documentId",
643        default,
644        skip_serializing_if = "Option::is_none"
645    )]
646    pub document_id: Option<String>,
647    /// The `documentVersionId` field.
648    #[serde(
649        rename = "documentVersionId",
650        default,
651        skip_serializing_if = "Option::is_none"
652    )]
653    pub document_version_id: Option<String>,
654    /// The `subjectType` field.
655    #[serde(
656        rename = "subjectType",
657        default,
658        skip_serializing_if = "Option::is_none"
659    )]
660    pub subject_type: Option<String>,
661    /// The `subjectId` field.
662    #[serde(rename = "subjectId", default, skip_serializing_if = "Option::is_none")]
663    pub subject_id: Option<String>,
664    /// The `roomId` field.
665    #[serde(rename = "roomId", default, skip_serializing_if = "Option::is_none")]
666    pub room_id: Option<serde_json::Value>,
667    /// The `credits` field.
668    #[serde(default, skip_serializing_if = "Option::is_none")]
669    pub credits: Option<i64>,
670    /// The `appliedResourceType` field.
671    #[serde(
672        rename = "appliedResourceType",
673        default,
674        skip_serializing_if = "Option::is_none"
675    )]
676    pub applied_resource_type: Option<serde_json::Value>,
677    /// The `appliedResourceId` field.
678    #[serde(
679        rename = "appliedResourceId",
680        default,
681        skip_serializing_if = "Option::is_none"
682    )]
683    pub applied_resource_id: Option<serde_json::Value>,
684    /// Fields this SDK version does not model.
685    #[serde(flatten)]
686    pub extra: Object,
687}
688
689/// The data of a `com.wellfriend.document.ai_operation.failed.v1` event.
690#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
691pub struct DocumentAiOperationFailedV1Data {
692    /// The `operationId` field.
693    #[serde(rename = "operationId", default)]
694    pub operation_id: String,
695    /// The `task` field.
696    #[serde(default, skip_serializing_if = "Option::is_none")]
697    pub task: Option<String>,
698    /// The `status` field.
699    #[serde(default, skip_serializing_if = "Option::is_none")]
700    pub status: Option<String>,
701    /// The `documentId` field.
702    #[serde(
703        rename = "documentId",
704        default,
705        skip_serializing_if = "Option::is_none"
706    )]
707    pub document_id: Option<String>,
708    /// The `documentVersionId` field.
709    #[serde(
710        rename = "documentVersionId",
711        default,
712        skip_serializing_if = "Option::is_none"
713    )]
714    pub document_version_id: Option<String>,
715    /// The `subjectType` field.
716    #[serde(
717        rename = "subjectType",
718        default,
719        skip_serializing_if = "Option::is_none"
720    )]
721    pub subject_type: Option<String>,
722    /// The `subjectId` field.
723    #[serde(rename = "subjectId", default, skip_serializing_if = "Option::is_none")]
724    pub subject_id: Option<String>,
725    /// The `roomId` field.
726    #[serde(rename = "roomId", default, skip_serializing_if = "Option::is_none")]
727    pub room_id: Option<serde_json::Value>,
728    /// The `credits` field.
729    #[serde(default, skip_serializing_if = "Option::is_none")]
730    pub credits: Option<i64>,
731    /// The `failureCode` field.
732    #[serde(
733        rename = "failureCode",
734        default,
735        skip_serializing_if = "Option::is_none"
736    )]
737    pub failure_code: Option<String>,
738    /// Fields this SDK version does not model.
739    #[serde(flatten)]
740    pub extra: Object,
741}
742
743/// The data of a `com.wellfriend.room.task.created.v1` event.
744#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
745pub struct RoomTaskCreatedV1Data {
746    /// The `roomId` field.
747    #[serde(rename = "roomId", default)]
748    pub room_id: String,
749    /// The `resourceId` field.
750    #[serde(
751        rename = "resourceId",
752        default,
753        skip_serializing_if = "Option::is_none"
754    )]
755    pub resource_id: Option<String>,
756    /// Fields this SDK version does not model.
757    #[serde(flatten)]
758    pub extra: Object,
759}
760
761/// The data of a `com.wellfriend.room.task.completed.v1` event.
762#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
763pub struct RoomTaskCompletedV1Data {
764    /// The `roomId` field.
765    #[serde(rename = "roomId", default)]
766    pub room_id: String,
767    /// The `resourceId` field.
768    #[serde(
769        rename = "resourceId",
770        default,
771        skip_serializing_if = "Option::is_none"
772    )]
773    pub resource_id: Option<String>,
774    /// Fields this SDK version does not model.
775    #[serde(flatten)]
776    pub extra: Object,
777}
778
779/// The data of a `com.wellfriend.room.request.created.v1` event.
780#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
781pub struct RoomRequestCreatedV1Data {
782    /// The `roomId` field.
783    #[serde(rename = "roomId", default)]
784    pub room_id: String,
785    /// The `resourceId` field.
786    #[serde(
787        rename = "resourceId",
788        default,
789        skip_serializing_if = "Option::is_none"
790    )]
791    pub resource_id: Option<String>,
792    /// Fields this SDK version does not model.
793    #[serde(flatten)]
794    pub extra: Object,
795}
796
797/// The data of a `com.wellfriend.room.request.submitted.v1` event.
798#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
799pub struct RoomRequestSubmittedV1Data {
800    /// The `roomId` field.
801    #[serde(rename = "roomId", default)]
802    pub room_id: String,
803    /// The `resourceId` field.
804    #[serde(
805        rename = "resourceId",
806        default,
807        skip_serializing_if = "Option::is_none"
808    )]
809    pub resource_id: Option<String>,
810    /// Fields this SDK version does not model.
811    #[serde(flatten)]
812    pub extra: Object,
813}
814
815/// The data of a `com.wellfriend.room.request.satisfied.v1` event.
816#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
817pub struct RoomRequestSatisfiedV1Data {
818    /// The `roomId` field.
819    #[serde(rename = "roomId", default)]
820    pub room_id: String,
821    /// The `resourceId` field.
822    #[serde(
823        rename = "resourceId",
824        default,
825        skip_serializing_if = "Option::is_none"
826    )]
827    pub resource_id: Option<String>,
828    /// Fields this SDK version does not model.
829    #[serde(flatten)]
830    pub extra: Object,
831}
832
833/// The data of a `com.wellfriend.room.request.reopened.v1` event.
834#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
835pub struct RoomRequestReopenedV1Data {
836    /// The `roomId` field.
837    #[serde(rename = "roomId", default)]
838    pub room_id: String,
839    /// The `resourceId` field.
840    #[serde(
841        rename = "resourceId",
842        default,
843        skip_serializing_if = "Option::is_none"
844    )]
845    pub resource_id: Option<String>,
846    /// Fields this SDK version does not model.
847    #[serde(flatten)]
848    pub extra: Object,
849}
850
851/// The data of a `com.wellfriend.room.question.created.v1` event.
852#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
853pub struct RoomQuestionCreatedV1Data {
854    /// The `roomId` field.
855    #[serde(rename = "roomId", default)]
856    pub room_id: String,
857    /// The `resourceId` field.
858    #[serde(
859        rename = "resourceId",
860        default,
861        skip_serializing_if = "Option::is_none"
862    )]
863    pub resource_id: Option<String>,
864    /// Fields this SDK version does not model.
865    #[serde(flatten)]
866    pub extra: Object,
867}
868
869/// The data of a `com.wellfriend.room.question.assigned.v1` event.
870#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
871pub struct RoomQuestionAssignedV1Data {
872    /// The `roomId` field.
873    #[serde(rename = "roomId", default)]
874    pub room_id: String,
875    /// The `resourceId` field.
876    #[serde(
877        rename = "resourceId",
878        default,
879        skip_serializing_if = "Option::is_none"
880    )]
881    pub resource_id: Option<String>,
882    /// Fields this SDK version does not model.
883    #[serde(flatten)]
884    pub extra: Object,
885}
886
887/// The data of a `com.wellfriend.room.question.answered.v1` event.
888#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
889pub struct RoomQuestionAnsweredV1Data {
890    /// The `roomId` field.
891    #[serde(rename = "roomId", default)]
892    pub room_id: String,
893    /// The `resourceId` field.
894    #[serde(
895        rename = "resourceId",
896        default,
897        skip_serializing_if = "Option::is_none"
898    )]
899    pub resource_id: Option<String>,
900    /// Fields this SDK version does not model.
901    #[serde(flatten)]
902    pub extra: Object,
903}
904
905/// The data of a `com.wellfriend.room.question.closed.v1` event.
906#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
907pub struct RoomQuestionClosedV1Data {
908    /// The `roomId` field.
909    #[serde(rename = "roomId", default)]
910    pub room_id: String,
911    /// The `resourceId` field.
912    #[serde(
913        rename = "resourceId",
914        default,
915        skip_serializing_if = "Option::is_none"
916    )]
917    pub resource_id: Option<String>,
918    /// Fields this SDK version does not model.
919    #[serde(flatten)]
920    pub extra: Object,
921}
922
923/// The data of a `com.wellfriend.portal.published.v1` event.
924#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
925pub struct PortalPublishedV1Data {
926    /// The `portalId` field.
927    #[serde(rename = "portalId", default)]
928    pub portal_id: String,
929    /// Fields this SDK version does not model.
930    #[serde(flatten)]
931    pub extra: Object,
932}
933
934/// The data of a `com.wellfriend.portal.announcement.created.v1` event.
935#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
936pub struct PortalAnnouncementCreatedV1Data {
937    /// The `portalId` field.
938    #[serde(rename = "portalId", default)]
939    pub portal_id: String,
940    /// The `announcementId` field.
941    #[serde(
942        rename = "announcementId",
943        default,
944        skip_serializing_if = "Option::is_none"
945    )]
946    pub announcement_id: Option<String>,
947    /// Fields this SDK version does not model.
948    #[serde(flatten)]
949    pub extra: Object,
950}
951
952/// The data of a `com.wellfriend.template.created.v2` event.
953#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
954pub struct TemplateCreatedV2Data {
955    /// The `resourceId` field.
956    #[serde(rename = "resourceId", default)]
957    pub resource_id: String,
958    /// The `kind` field.
959    #[serde(default, skip_serializing_if = "Option::is_none")]
960    pub kind: Option<String>,
961    /// The `revision` field.
962    #[serde(default, skip_serializing_if = "Option::is_none")]
963    pub revision: Option<i64>,
964    /// The `status` field.
965    #[serde(default, skip_serializing_if = "Option::is_none")]
966    pub status: Option<String>,
967    /// Fields this SDK version does not model.
968    #[serde(flatten)]
969    pub extra: Object,
970}
971
972/// The data of a `com.wellfriend.template.updated.v2` event.
973#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
974pub struct TemplateUpdatedV2Data {
975    /// The `resourceId` field.
976    #[serde(rename = "resourceId", default)]
977    pub resource_id: String,
978    /// The `kind` field.
979    #[serde(default, skip_serializing_if = "Option::is_none")]
980    pub kind: Option<String>,
981    /// The `revision` field.
982    #[serde(default, skip_serializing_if = "Option::is_none")]
983    pub revision: Option<i64>,
984    /// The `status` field.
985    #[serde(default, skip_serializing_if = "Option::is_none")]
986    pub status: Option<String>,
987    /// Fields this SDK version does not model.
988    #[serde(flatten)]
989    pub extra: Object,
990}
991
992/// The data of a `com.wellfriend.template.publish.v2` event.
993#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
994pub struct TemplatePublishV2Data {
995    /// The `resourceId` field.
996    #[serde(rename = "resourceId", default)]
997    pub resource_id: String,
998    /// The `kind` field.
999    #[serde(default, skip_serializing_if = "Option::is_none")]
1000    pub kind: Option<String>,
1001    /// The `revision` field.
1002    #[serde(default, skip_serializing_if = "Option::is_none")]
1003    pub revision: Option<i64>,
1004    /// The `status` field.
1005    #[serde(default, skip_serializing_if = "Option::is_none")]
1006    pub status: Option<String>,
1007    /// The `reason` field.
1008    #[serde(default, skip_serializing_if = "Option::is_none")]
1009    pub reason: Option<String>,
1010    /// Fields this SDK version does not model.
1011    #[serde(flatten)]
1012    pub extra: Object,
1013}
1014
1015/// The data of a `com.wellfriend.template.archive.v2` event.
1016#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1017pub struct TemplateArchiveV2Data {
1018    /// The `resourceId` field.
1019    #[serde(rename = "resourceId", default)]
1020    pub resource_id: String,
1021    /// The `kind` field.
1022    #[serde(default, skip_serializing_if = "Option::is_none")]
1023    pub kind: Option<String>,
1024    /// The `revision` field.
1025    #[serde(default, skip_serializing_if = "Option::is_none")]
1026    pub revision: Option<i64>,
1027    /// The `status` field.
1028    #[serde(default, skip_serializing_if = "Option::is_none")]
1029    pub status: Option<String>,
1030    /// The `reason` field.
1031    #[serde(default, skip_serializing_if = "Option::is_none")]
1032    pub reason: Option<String>,
1033    /// Fields this SDK version does not model.
1034    #[serde(flatten)]
1035    pub extra: Object,
1036}
1037
1038/// The data of a `com.wellfriend.signature_request.created.v2` event.
1039#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1040pub struct SignatureRequestCreatedV2Data {
1041    /// The `resourceId` field.
1042    #[serde(rename = "resourceId", default)]
1043    pub resource_id: String,
1044    /// The `kind` field.
1045    #[serde(default, skip_serializing_if = "Option::is_none")]
1046    pub kind: Option<String>,
1047    /// The `revision` field.
1048    #[serde(default, skip_serializing_if = "Option::is_none")]
1049    pub revision: Option<i64>,
1050    /// The `status` field.
1051    #[serde(default, skip_serializing_if = "Option::is_none")]
1052    pub status: Option<String>,
1053    /// Fields this SDK version does not model.
1054    #[serde(flatten)]
1055    pub extra: Object,
1056}
1057
1058/// The data of a `com.wellfriend.signature_request.updated.v2` event.
1059#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1060pub struct SignatureRequestUpdatedV2Data {
1061    /// The `resourceId` field.
1062    #[serde(rename = "resourceId", default)]
1063    pub resource_id: String,
1064    /// The `kind` field.
1065    #[serde(default, skip_serializing_if = "Option::is_none")]
1066    pub kind: Option<String>,
1067    /// The `revision` field.
1068    #[serde(default, skip_serializing_if = "Option::is_none")]
1069    pub revision: Option<i64>,
1070    /// The `status` field.
1071    #[serde(default, skip_serializing_if = "Option::is_none")]
1072    pub status: Option<String>,
1073    /// Fields this SDK version does not model.
1074    #[serde(flatten)]
1075    pub extra: Object,
1076}
1077
1078/// The data of a `com.wellfriend.signature_request.activate.v2` event.
1079#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1080pub struct SignatureRequestActivateV2Data {
1081    /// The `resourceId` field.
1082    #[serde(rename = "resourceId", default)]
1083    pub resource_id: String,
1084    /// The `kind` field.
1085    #[serde(default, skip_serializing_if = "Option::is_none")]
1086    pub kind: Option<String>,
1087    /// The `revision` field.
1088    #[serde(default, skip_serializing_if = "Option::is_none")]
1089    pub revision: Option<i64>,
1090    /// The `status` field.
1091    #[serde(default, skip_serializing_if = "Option::is_none")]
1092    pub status: Option<String>,
1093    /// The `reason` field.
1094    #[serde(default, skip_serializing_if = "Option::is_none")]
1095    pub reason: Option<String>,
1096    /// Fields this SDK version does not model.
1097    #[serde(flatten)]
1098    pub extra: Object,
1099}
1100
1101/// The data of a `com.wellfriend.signature_request.complete.v2` event.
1102#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1103pub struct SignatureRequestCompleteV2Data {
1104    /// The `resourceId` field.
1105    #[serde(rename = "resourceId", default)]
1106    pub resource_id: String,
1107    /// The `kind` field.
1108    #[serde(default, skip_serializing_if = "Option::is_none")]
1109    pub kind: Option<String>,
1110    /// The `revision` field.
1111    #[serde(default, skip_serializing_if = "Option::is_none")]
1112    pub revision: Option<i64>,
1113    /// The `status` field.
1114    #[serde(default, skip_serializing_if = "Option::is_none")]
1115    pub status: Option<String>,
1116    /// The `reason` field.
1117    #[serde(default, skip_serializing_if = "Option::is_none")]
1118    pub reason: Option<String>,
1119    /// Fields this SDK version does not model.
1120    #[serde(flatten)]
1121    pub extra: Object,
1122}
1123
1124/// The data of a `com.wellfriend.signature_request.cancel.v2` event.
1125#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1126pub struct SignatureRequestCancelV2Data {
1127    /// The `resourceId` field.
1128    #[serde(rename = "resourceId", default)]
1129    pub resource_id: String,
1130    /// The `kind` field.
1131    #[serde(default, skip_serializing_if = "Option::is_none")]
1132    pub kind: Option<String>,
1133    /// The `revision` field.
1134    #[serde(default, skip_serializing_if = "Option::is_none")]
1135    pub revision: Option<i64>,
1136    /// The `status` field.
1137    #[serde(default, skip_serializing_if = "Option::is_none")]
1138    pub status: Option<String>,
1139    /// The `reason` field.
1140    #[serde(default, skip_serializing_if = "Option::is_none")]
1141    pub reason: Option<String>,
1142    /// Fields this SDK version does not model.
1143    #[serde(flatten)]
1144    pub extra: Object,
1145}
1146
1147/// The data of a `com.wellfriend.annotation.created.v2` event.
1148#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1149pub struct AnnotationCreatedV2Data {
1150    /// The `resourceId` field.
1151    #[serde(rename = "resourceId", default)]
1152    pub resource_id: String,
1153    /// The `kind` field.
1154    #[serde(default, skip_serializing_if = "Option::is_none")]
1155    pub kind: Option<String>,
1156    /// The `revision` field.
1157    #[serde(default, skip_serializing_if = "Option::is_none")]
1158    pub revision: Option<i64>,
1159    /// The `status` field.
1160    #[serde(default, skip_serializing_if = "Option::is_none")]
1161    pub status: Option<String>,
1162    /// Fields this SDK version does not model.
1163    #[serde(flatten)]
1164    pub extra: Object,
1165}
1166
1167/// The data of a `com.wellfriend.annotation.updated.v2` event.
1168#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1169pub struct AnnotationUpdatedV2Data {
1170    /// The `resourceId` field.
1171    #[serde(rename = "resourceId", default)]
1172    pub resource_id: String,
1173    /// The `kind` field.
1174    #[serde(default, skip_serializing_if = "Option::is_none")]
1175    pub kind: Option<String>,
1176    /// The `revision` field.
1177    #[serde(default, skip_serializing_if = "Option::is_none")]
1178    pub revision: Option<i64>,
1179    /// The `status` field.
1180    #[serde(default, skip_serializing_if = "Option::is_none")]
1181    pub status: Option<String>,
1182    /// Fields this SDK version does not model.
1183    #[serde(flatten)]
1184    pub extra: Object,
1185}
1186
1187/// The data of a `com.wellfriend.annotation.resolve.v2` event.
1188#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1189pub struct AnnotationResolveV2Data {
1190    /// The `resourceId` field.
1191    #[serde(rename = "resourceId", default)]
1192    pub resource_id: String,
1193    /// The `kind` field.
1194    #[serde(default, skip_serializing_if = "Option::is_none")]
1195    pub kind: Option<String>,
1196    /// The `revision` field.
1197    #[serde(default, skip_serializing_if = "Option::is_none")]
1198    pub revision: Option<i64>,
1199    /// The `status` field.
1200    #[serde(default, skip_serializing_if = "Option::is_none")]
1201    pub status: Option<String>,
1202    /// The `reason` field.
1203    #[serde(default, skip_serializing_if = "Option::is_none")]
1204    pub reason: Option<String>,
1205    /// Fields this SDK version does not model.
1206    #[serde(flatten)]
1207    pub extra: Object,
1208}
1209
1210/// The data of a `com.wellfriend.annotation.reopen.v2` event.
1211#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1212pub struct AnnotationReopenV2Data {
1213    /// The `resourceId` field.
1214    #[serde(rename = "resourceId", default)]
1215    pub resource_id: String,
1216    /// The `kind` field.
1217    #[serde(default, skip_serializing_if = "Option::is_none")]
1218    pub kind: Option<String>,
1219    /// The `revision` field.
1220    #[serde(default, skip_serializing_if = "Option::is_none")]
1221    pub revision: Option<i64>,
1222    /// The `status` field.
1223    #[serde(default, skip_serializing_if = "Option::is_none")]
1224    pub status: Option<String>,
1225    /// The `reason` field.
1226    #[serde(default, skip_serializing_if = "Option::is_none")]
1227    pub reason: Option<String>,
1228    /// Fields this SDK version does not model.
1229    #[serde(flatten)]
1230    pub extra: Object,
1231}
1232
1233/// The data of a `com.wellfriend.annotation.archive.v2` event.
1234#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1235pub struct AnnotationArchiveV2Data {
1236    /// The `resourceId` field.
1237    #[serde(rename = "resourceId", default)]
1238    pub resource_id: String,
1239    /// The `kind` field.
1240    #[serde(default, skip_serializing_if = "Option::is_none")]
1241    pub kind: Option<String>,
1242    /// The `revision` field.
1243    #[serde(default, skip_serializing_if = "Option::is_none")]
1244    pub revision: Option<i64>,
1245    /// The `status` field.
1246    #[serde(default, skip_serializing_if = "Option::is_none")]
1247    pub status: Option<String>,
1248    /// The `reason` field.
1249    #[serde(default, skip_serializing_if = "Option::is_none")]
1250    pub reason: Option<String>,
1251    /// Fields this SDK version does not model.
1252    #[serde(flatten)]
1253    pub extra: Object,
1254}
1255
1256/// The data of a `com.wellfriend.form.created.v2` event.
1257#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1258pub struct FormCreatedV2Data {
1259    /// The `resourceId` field.
1260    #[serde(rename = "resourceId", default)]
1261    pub resource_id: String,
1262    /// The `kind` field.
1263    #[serde(default, skip_serializing_if = "Option::is_none")]
1264    pub kind: Option<String>,
1265    /// The `revision` field.
1266    #[serde(default, skip_serializing_if = "Option::is_none")]
1267    pub revision: Option<i64>,
1268    /// The `status` field.
1269    #[serde(default, skip_serializing_if = "Option::is_none")]
1270    pub status: Option<String>,
1271    /// Fields this SDK version does not model.
1272    #[serde(flatten)]
1273    pub extra: Object,
1274}
1275
1276/// The data of a `com.wellfriend.form.updated.v2` event.
1277#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1278pub struct FormUpdatedV2Data {
1279    /// The `resourceId` field.
1280    #[serde(rename = "resourceId", default)]
1281    pub resource_id: String,
1282    /// The `kind` field.
1283    #[serde(default, skip_serializing_if = "Option::is_none")]
1284    pub kind: Option<String>,
1285    /// The `revision` field.
1286    #[serde(default, skip_serializing_if = "Option::is_none")]
1287    pub revision: Option<i64>,
1288    /// The `status` field.
1289    #[serde(default, skip_serializing_if = "Option::is_none")]
1290    pub status: Option<String>,
1291    /// Fields this SDK version does not model.
1292    #[serde(flatten)]
1293    pub extra: Object,
1294}
1295
1296/// The data of a `com.wellfriend.form.publish.v2` event.
1297#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1298pub struct FormPublishV2Data {
1299    /// The `resourceId` field.
1300    #[serde(rename = "resourceId", default)]
1301    pub resource_id: String,
1302    /// The `kind` field.
1303    #[serde(default, skip_serializing_if = "Option::is_none")]
1304    pub kind: Option<String>,
1305    /// The `revision` field.
1306    #[serde(default, skip_serializing_if = "Option::is_none")]
1307    pub revision: Option<i64>,
1308    /// The `status` field.
1309    #[serde(default, skip_serializing_if = "Option::is_none")]
1310    pub status: Option<String>,
1311    /// The `reason` field.
1312    #[serde(default, skip_serializing_if = "Option::is_none")]
1313    pub reason: Option<String>,
1314    /// Fields this SDK version does not model.
1315    #[serde(flatten)]
1316    pub extra: Object,
1317}
1318
1319/// The data of a `com.wellfriend.form.close.v2` event.
1320#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1321pub struct FormCloseV2Data {
1322    /// The `resourceId` field.
1323    #[serde(rename = "resourceId", default)]
1324    pub resource_id: String,
1325    /// The `kind` field.
1326    #[serde(default, skip_serializing_if = "Option::is_none")]
1327    pub kind: Option<String>,
1328    /// The `revision` field.
1329    #[serde(default, skip_serializing_if = "Option::is_none")]
1330    pub revision: Option<i64>,
1331    /// The `status` field.
1332    #[serde(default, skip_serializing_if = "Option::is_none")]
1333    pub status: Option<String>,
1334    /// The `reason` field.
1335    #[serde(default, skip_serializing_if = "Option::is_none")]
1336    pub reason: Option<String>,
1337    /// Fields this SDK version does not model.
1338    #[serde(flatten)]
1339    pub extra: Object,
1340}
1341
1342/// The data of a `com.wellfriend.form.archive.v2` event.
1343#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1344pub struct FormArchiveV2Data {
1345    /// The `resourceId` field.
1346    #[serde(rename = "resourceId", default)]
1347    pub resource_id: String,
1348    /// The `kind` field.
1349    #[serde(default, skip_serializing_if = "Option::is_none")]
1350    pub kind: Option<String>,
1351    /// The `revision` field.
1352    #[serde(default, skip_serializing_if = "Option::is_none")]
1353    pub revision: Option<i64>,
1354    /// The `status` field.
1355    #[serde(default, skip_serializing_if = "Option::is_none")]
1356    pub status: Option<String>,
1357    /// The `reason` field.
1358    #[serde(default, skip_serializing_if = "Option::is_none")]
1359    pub reason: Option<String>,
1360    /// Fields this SDK version does not model.
1361    #[serde(flatten)]
1362    pub extra: Object,
1363}
1364
1365/// The data of a `com.wellfriend.deal_room.created.v2` event.
1366#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1367pub struct DealRoomCreatedV2Data {
1368    /// The `resourceId` field.
1369    #[serde(rename = "resourceId", default)]
1370    pub resource_id: String,
1371    /// The `kind` field.
1372    #[serde(default, skip_serializing_if = "Option::is_none")]
1373    pub kind: Option<String>,
1374    /// The `revision` field.
1375    #[serde(default, skip_serializing_if = "Option::is_none")]
1376    pub revision: Option<i64>,
1377    /// The `status` field.
1378    #[serde(default, skip_serializing_if = "Option::is_none")]
1379    pub status: Option<String>,
1380    /// Fields this SDK version does not model.
1381    #[serde(flatten)]
1382    pub extra: Object,
1383}
1384
1385/// The data of a `com.wellfriend.deal_room.updated.v2` event.
1386#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1387pub struct DealRoomUpdatedV2Data {
1388    /// The `resourceId` field.
1389    #[serde(rename = "resourceId", default)]
1390    pub resource_id: String,
1391    /// The `kind` field.
1392    #[serde(default, skip_serializing_if = "Option::is_none")]
1393    pub kind: Option<String>,
1394    /// The `revision` field.
1395    #[serde(default, skip_serializing_if = "Option::is_none")]
1396    pub revision: Option<i64>,
1397    /// The `status` field.
1398    #[serde(default, skip_serializing_if = "Option::is_none")]
1399    pub status: Option<String>,
1400    /// Fields this SDK version does not model.
1401    #[serde(flatten)]
1402    pub extra: Object,
1403}
1404
1405/// The data of a `com.wellfriend.deal_room.activate.v2` event.
1406#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1407pub struct DealRoomActivateV2Data {
1408    /// The `resourceId` field.
1409    #[serde(rename = "resourceId", default)]
1410    pub resource_id: String,
1411    /// The `kind` field.
1412    #[serde(default, skip_serializing_if = "Option::is_none")]
1413    pub kind: Option<String>,
1414    /// The `revision` field.
1415    #[serde(default, skip_serializing_if = "Option::is_none")]
1416    pub revision: Option<i64>,
1417    /// The `status` field.
1418    #[serde(default, skip_serializing_if = "Option::is_none")]
1419    pub status: Option<String>,
1420    /// The `reason` field.
1421    #[serde(default, skip_serializing_if = "Option::is_none")]
1422    pub reason: Option<String>,
1423    /// Fields this SDK version does not model.
1424    #[serde(flatten)]
1425    pub extra: Object,
1426}
1427
1428/// The data of a `com.wellfriend.deal_room.archive.v2` event.
1429#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1430pub struct DealRoomArchiveV2Data {
1431    /// The `resourceId` field.
1432    #[serde(rename = "resourceId", default)]
1433    pub resource_id: String,
1434    /// The `kind` field.
1435    #[serde(default, skip_serializing_if = "Option::is_none")]
1436    pub kind: Option<String>,
1437    /// The `revision` field.
1438    #[serde(default, skip_serializing_if = "Option::is_none")]
1439    pub revision: Option<i64>,
1440    /// The `status` field.
1441    #[serde(default, skip_serializing_if = "Option::is_none")]
1442    pub status: Option<String>,
1443    /// The `reason` field.
1444    #[serde(default, skip_serializing_if = "Option::is_none")]
1445    pub reason: Option<String>,
1446    /// Fields this SDK version does not model.
1447    #[serde(flatten)]
1448    pub extra: Object,
1449}
1450
1451/// The data of a `com.wellfriend.portal.created.v2` event.
1452#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1453pub struct PortalCreatedV2Data {
1454    /// The `resourceId` field.
1455    #[serde(rename = "resourceId", default)]
1456    pub resource_id: String,
1457    /// The `kind` field.
1458    #[serde(default, skip_serializing_if = "Option::is_none")]
1459    pub kind: Option<String>,
1460    /// The `revision` field.
1461    #[serde(default, skip_serializing_if = "Option::is_none")]
1462    pub revision: Option<i64>,
1463    /// The `status` field.
1464    #[serde(default, skip_serializing_if = "Option::is_none")]
1465    pub status: Option<String>,
1466    /// Fields this SDK version does not model.
1467    #[serde(flatten)]
1468    pub extra: Object,
1469}
1470
1471/// The data of a `com.wellfriend.portal.updated.v2` event.
1472#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1473pub struct PortalUpdatedV2Data {
1474    /// The `resourceId` field.
1475    #[serde(rename = "resourceId", default)]
1476    pub resource_id: String,
1477    /// The `kind` field.
1478    #[serde(default, skip_serializing_if = "Option::is_none")]
1479    pub kind: Option<String>,
1480    /// The `revision` field.
1481    #[serde(default, skip_serializing_if = "Option::is_none")]
1482    pub revision: Option<i64>,
1483    /// The `status` field.
1484    #[serde(default, skip_serializing_if = "Option::is_none")]
1485    pub status: Option<String>,
1486    /// Fields this SDK version does not model.
1487    #[serde(flatten)]
1488    pub extra: Object,
1489}
1490
1491/// The data of a `com.wellfriend.portal.publish.v2` event.
1492#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1493pub struct PortalPublishV2Data {
1494    /// The `resourceId` field.
1495    #[serde(rename = "resourceId", default)]
1496    pub resource_id: String,
1497    /// The `kind` field.
1498    #[serde(default, skip_serializing_if = "Option::is_none")]
1499    pub kind: Option<String>,
1500    /// The `revision` field.
1501    #[serde(default, skip_serializing_if = "Option::is_none")]
1502    pub revision: Option<i64>,
1503    /// The `status` field.
1504    #[serde(default, skip_serializing_if = "Option::is_none")]
1505    pub status: Option<String>,
1506    /// The `reason` field.
1507    #[serde(default, skip_serializing_if = "Option::is_none")]
1508    pub reason: Option<String>,
1509    /// Fields this SDK version does not model.
1510    #[serde(flatten)]
1511    pub extra: Object,
1512}
1513
1514/// The data of a `com.wellfriend.portal.archive.v2` event.
1515#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1516pub struct PortalArchiveV2Data {
1517    /// The `resourceId` field.
1518    #[serde(rename = "resourceId", default)]
1519    pub resource_id: String,
1520    /// The `kind` field.
1521    #[serde(default, skip_serializing_if = "Option::is_none")]
1522    pub kind: Option<String>,
1523    /// The `revision` field.
1524    #[serde(default, skip_serializing_if = "Option::is_none")]
1525    pub revision: Option<i64>,
1526    /// The `status` field.
1527    #[serde(default, skip_serializing_if = "Option::is_none")]
1528    pub status: Option<String>,
1529    /// The `reason` field.
1530    #[serde(default, skip_serializing_if = "Option::is_none")]
1531    pub reason: Option<String>,
1532    /// Fields this SDK version does not model.
1533    #[serde(flatten)]
1534    pub extra: Object,
1535}
1536
1537/// The data of a `com.wellfriend.embed.created.v2` event.
1538#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1539pub struct EmbedCreatedV2Data {
1540    /// The `resourceId` field.
1541    #[serde(rename = "resourceId", default)]
1542    pub resource_id: String,
1543    /// The `kind` field.
1544    #[serde(default, skip_serializing_if = "Option::is_none")]
1545    pub kind: Option<String>,
1546    /// The `revision` field.
1547    #[serde(default, skip_serializing_if = "Option::is_none")]
1548    pub revision: Option<i64>,
1549    /// The `status` field.
1550    #[serde(default, skip_serializing_if = "Option::is_none")]
1551    pub status: Option<String>,
1552    /// Fields this SDK version does not model.
1553    #[serde(flatten)]
1554    pub extra: Object,
1555}
1556
1557/// The data of a `com.wellfriend.embed.updated.v2` event.
1558#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1559pub struct EmbedUpdatedV2Data {
1560    /// The `resourceId` field.
1561    #[serde(rename = "resourceId", default)]
1562    pub resource_id: String,
1563    /// The `kind` field.
1564    #[serde(default, skip_serializing_if = "Option::is_none")]
1565    pub kind: Option<String>,
1566    /// The `revision` field.
1567    #[serde(default, skip_serializing_if = "Option::is_none")]
1568    pub revision: Option<i64>,
1569    /// The `status` field.
1570    #[serde(default, skip_serializing_if = "Option::is_none")]
1571    pub status: Option<String>,
1572    /// Fields this SDK version does not model.
1573    #[serde(flatten)]
1574    pub extra: Object,
1575}
1576
1577/// The data of a `com.wellfriend.embed.activate.v2` event.
1578#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1579pub struct EmbedActivateV2Data {
1580    /// The `resourceId` field.
1581    #[serde(rename = "resourceId", default)]
1582    pub resource_id: String,
1583    /// The `kind` field.
1584    #[serde(default, skip_serializing_if = "Option::is_none")]
1585    pub kind: Option<String>,
1586    /// The `revision` field.
1587    #[serde(default, skip_serializing_if = "Option::is_none")]
1588    pub revision: Option<i64>,
1589    /// The `status` field.
1590    #[serde(default, skip_serializing_if = "Option::is_none")]
1591    pub status: Option<String>,
1592    /// The `reason` field.
1593    #[serde(default, skip_serializing_if = "Option::is_none")]
1594    pub reason: Option<String>,
1595    /// Fields this SDK version does not model.
1596    #[serde(flatten)]
1597    pub extra: Object,
1598}
1599
1600/// The data of a `com.wellfriend.embed.revoke.v2` event.
1601#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1602pub struct EmbedRevokeV2Data {
1603    /// The `resourceId` field.
1604    #[serde(rename = "resourceId", default)]
1605    pub resource_id: String,
1606    /// The `kind` field.
1607    #[serde(default, skip_serializing_if = "Option::is_none")]
1608    pub kind: Option<String>,
1609    /// The `revision` field.
1610    #[serde(default, skip_serializing_if = "Option::is_none")]
1611    pub revision: Option<i64>,
1612    /// The `status` field.
1613    #[serde(default, skip_serializing_if = "Option::is_none")]
1614    pub status: Option<String>,
1615    /// The `reason` field.
1616    #[serde(default, skip_serializing_if = "Option::is_none")]
1617    pub reason: Option<String>,
1618    /// Fields this SDK version does not model.
1619    #[serde(flatten)]
1620    pub extra: Object,
1621}
1622
1623/// The data of a `com.wellfriend.secure_link.created.v1` event.
1624#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1625pub struct SecureLinkCreatedV1Data {
1626    /// The `linkId` field.
1627    #[serde(rename = "linkId", default)]
1628    pub link_id: String,
1629    /// The `versionId` field.
1630    #[serde(rename = "versionId", default, skip_serializing_if = "Option::is_none")]
1631    pub version_id: Option<String>,
1632    /// The `authenticationMode` field.
1633    #[serde(
1634        rename = "authenticationMode",
1635        default,
1636        skip_serializing_if = "Option::is_none"
1637    )]
1638    pub authentication_mode: Option<String>,
1639    /// The `maximumViews` field.
1640    #[serde(
1641        rename = "maximumViews",
1642        default,
1643        skip_serializing_if = "Option::is_none"
1644    )]
1645    pub maximum_views: Option<i64>,
1646    /// Fields this SDK version does not model.
1647    #[serde(flatten)]
1648    pub extra: Object,
1649}
1650
1651/// The data of a `com.wellfriend.secure_link.revoked.v1` event.
1652#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1653pub struct SecureLinkRevokedV1Data {
1654    /// The `reason` field.
1655    #[serde(default, skip_serializing_if = "Option::is_none")]
1656    pub reason: Option<String>,
1657    /// The `revokedAt` field.
1658    #[serde(rename = "revokedAt", default, skip_serializing_if = "Option::is_none")]
1659    pub revoked_at: Option<String>,
1660    /// Fields this SDK version does not model.
1661    #[serde(flatten)]
1662    pub extra: Object,
1663}
1664
1665/// The data of a `com.wellfriend.secure_link.recipients_added.v1` event.
1666#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1667pub struct SecureLinkRecipientsAddedV1Data {
1668    /// The `count` field.
1669    #[serde(default, skip_serializing_if = "Option::is_none")]
1670    pub count: Option<i64>,
1671    /// The `policyRevision` field.
1672    #[serde(
1673        rename = "policyRevision",
1674        default,
1675        skip_serializing_if = "Option::is_none"
1676    )]
1677    pub policy_revision: Option<i64>,
1678    /// Fields this SDK version does not model.
1679    #[serde(flatten)]
1680    pub extra: Object,
1681}
1682
1683/// The data of a `com.wellfriend.secure_link.version_updated.v1` event.
1684#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1685pub struct SecureLinkVersionUpdatedV1Data {
1686    /// The `versionId` field.
1687    #[serde(rename = "versionId", default, skip_serializing_if = "Option::is_none")]
1688    pub version_id: Option<String>,
1689    /// The `revision` field.
1690    #[serde(default, skip_serializing_if = "Option::is_none")]
1691    pub revision: Option<i64>,
1692    /// The `reauthenticate` field.
1693    #[serde(default, skip_serializing_if = "Option::is_none")]
1694    pub reauthenticate: Option<bool>,
1695    /// Fields this SDK version does not model.
1696    #[serde(flatten)]
1697    pub extra: Object,
1698}
1699
1700/// The data of a `com.wellfriend.secure_link.password_rotated.v1` event.
1701#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1702pub struct SecureLinkPasswordRotatedV1Data {
1703    /// The `revokeSessions` field.
1704    #[serde(
1705        rename = "revokeSessions",
1706        default,
1707        skip_serializing_if = "Option::is_none"
1708    )]
1709    pub revoke_sessions: Option<bool>,
1710    /// The `policyRevision` field.
1711    #[serde(
1712        rename = "policyRevision",
1713        default,
1714        skip_serializing_if = "Option::is_none"
1715    )]
1716    pub policy_revision: Option<i64>,
1717    /// Fields this SDK version does not model.
1718    #[serde(flatten)]
1719    pub extra: Object,
1720}
1721
1722/// The data of a `com.wellfriend.workflow.created.v1` event.
1723#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1724pub struct WorkflowCreatedV1Data {
1725    /// The `workflowId` field.
1726    #[serde(rename = "workflowId", default)]
1727    pub workflow_id: String,
1728    /// The `status` field.
1729    #[serde(default, skip_serializing_if = "Option::is_none")]
1730    pub status: Option<String>,
1731    /// The `version` field.
1732    #[serde(default, skip_serializing_if = "Option::is_none")]
1733    pub version: Option<i64>,
1734    /// Fields this SDK version does not model.
1735    #[serde(flatten)]
1736    pub extra: Object,
1737}
1738
1739/// The data of a `com.wellfriend.workflow.draft.updated.v1` event.
1740#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1741pub struct WorkflowDraftUpdatedV1Data {
1742    /// The `workflowId` field.
1743    #[serde(rename = "workflowId", default)]
1744    pub workflow_id: String,
1745    /// The `version` field.
1746    #[serde(default, skip_serializing_if = "Option::is_none")]
1747    pub version: Option<i64>,
1748    /// Fields this SDK version does not model.
1749    #[serde(flatten)]
1750    pub extra: Object,
1751}
1752
1753/// The data of a `com.wellfriend.workflow.published.v1` event.
1754#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1755pub struct WorkflowPublishedV1Data {
1756    /// The `workflowId` field.
1757    #[serde(rename = "workflowId", default)]
1758    pub workflow_id: String,
1759    /// The `workflowVersionId` field.
1760    #[serde(
1761        rename = "workflowVersionId",
1762        default,
1763        skip_serializing_if = "Option::is_none"
1764    )]
1765    pub workflow_version_id: Option<String>,
1766    /// The `version` field.
1767    #[serde(default, skip_serializing_if = "Option::is_none")]
1768    pub version: Option<i64>,
1769    /// The `contentSha256` field.
1770    #[serde(
1771        rename = "contentSha256",
1772        default,
1773        skip_serializing_if = "Option::is_none"
1774    )]
1775    pub content_sha256: Option<String>,
1776    /// Fields this SDK version does not model.
1777    #[serde(flatten)]
1778    pub extra: Object,
1779}
1780
1781/// The data of a `com.wellfriend.workflow.run.started.v1` event.
1782#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1783pub struct WorkflowRunStartedV1Data {
1784    /// The `workflowId` field.
1785    #[serde(
1786        rename = "workflowId",
1787        default,
1788        skip_serializing_if = "Option::is_none"
1789    )]
1790    pub workflow_id: Option<String>,
1791    /// The `workflowVersionId` field.
1792    #[serde(
1793        rename = "workflowVersionId",
1794        default,
1795        skip_serializing_if = "Option::is_none"
1796    )]
1797    pub workflow_version_id: Option<String>,
1798    /// The `workflowRunId` field.
1799    #[serde(rename = "workflowRunId", default)]
1800    pub workflow_run_id: String,
1801    /// The `triggerEventId` field.
1802    #[serde(
1803        rename = "triggerEventId",
1804        default,
1805        skip_serializing_if = "Option::is_none"
1806    )]
1807    pub trigger_event_id: Option<String>,
1808    /// The `replayMode` field.
1809    #[serde(
1810        rename = "replayMode",
1811        default,
1812        skip_serializing_if = "Option::is_none"
1813    )]
1814    pub replay_mode: Option<serde_json::Value>,
1815    /// Fields this SDK version does not model.
1816    #[serde(flatten)]
1817    pub extra: Object,
1818}
1819
1820/// The data of a `com.wellfriend.workflow.run.succeeded.v1` event.
1821#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1822pub struct WorkflowRunSucceededV1Data {
1823    /// The `workflowRunId` field.
1824    #[serde(rename = "workflowRunId", default)]
1825    pub workflow_run_id: String,
1826    /// Fields this SDK version does not model.
1827    #[serde(flatten)]
1828    pub extra: Object,
1829}
1830
1831/// The data of a `com.wellfriend.workflow.run.failed.v1` event.
1832#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1833pub struct WorkflowRunFailedV1Data {
1834    /// The `workflowRunId` field.
1835    #[serde(rename = "workflowRunId", default)]
1836    pub workflow_run_id: String,
1837    /// The `stepId` field.
1838    #[serde(rename = "stepId", default, skip_serializing_if = "Option::is_none")]
1839    pub step_id: Option<String>,
1840    /// The `code` field.
1841    #[serde(default, skip_serializing_if = "Option::is_none")]
1842    pub code: Option<String>,
1843    /// The `retryAt` field.
1844    #[serde(rename = "retryAt", default, skip_serializing_if = "Option::is_none")]
1845    pub retry_at: Option<serde_json::Value>,
1846    /// Fields this SDK version does not model.
1847    #[serde(flatten)]
1848    pub extra: Object,
1849}
1850
1851/// The data of a `com.wellfriend.workflow.run.cancelled.v1` event.
1852#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1853pub struct WorkflowRunCancelledV1Data {
1854    /// The `workflowRunId` field.
1855    #[serde(rename = "workflowRunId", default)]
1856    pub workflow_run_id: String,
1857    /// The `reason` field.
1858    #[serde(default, skip_serializing_if = "Option::is_none")]
1859    pub reason: Option<String>,
1860    /// The `irreversibleEffectsReversed` field.
1861    #[serde(
1862        rename = "irreversibleEffectsReversed",
1863        default,
1864        skip_serializing_if = "Option::is_none"
1865    )]
1866    pub irreversible_effects_reversed: Option<bool>,
1867    /// Fields this SDK version does not model.
1868    #[serde(flatten)]
1869    pub extra: Object,
1870}
1871
1872/// The data of a `com.wellfriend.workflow.step.completed.v1` event.
1873#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1874pub struct WorkflowStepCompletedV1Data {
1875    /// The `workflowRunId` field.
1876    #[serde(rename = "workflowRunId", default)]
1877    pub workflow_run_id: String,
1878    /// The `stepId` field.
1879    #[serde(rename = "stepId", default, skip_serializing_if = "Option::is_none")]
1880    pub step_id: Option<String>,
1881    /// The `nodeId` field.
1882    #[serde(rename = "nodeId", default, skip_serializing_if = "Option::is_none")]
1883    pub node_id: Option<String>,
1884    /// The `attempt` field.
1885    #[serde(default, skip_serializing_if = "Option::is_none")]
1886    pub attempt: Option<i64>,
1887    /// Fields this SDK version does not model.
1888    #[serde(flatten)]
1889    pub extra: Object,
1890}
1891
1892/// The data of a `com.wellfriend.workflow.step.retry.scheduled.v1` event.
1893#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1894pub struct WorkflowStepRetryScheduledV1Data {
1895    /// The `workflowRunId` field.
1896    #[serde(rename = "workflowRunId", default)]
1897    pub workflow_run_id: String,
1898    /// The `stepId` field.
1899    #[serde(rename = "stepId", default, skip_serializing_if = "Option::is_none")]
1900    pub step_id: Option<String>,
1901    /// The `code` field.
1902    #[serde(default, skip_serializing_if = "Option::is_none")]
1903    pub code: Option<String>,
1904    /// The `retryAt` field.
1905    #[serde(rename = "retryAt", default, skip_serializing_if = "Option::is_none")]
1906    pub retry_at: Option<String>,
1907    /// Fields this SDK version does not model.
1908    #[serde(flatten)]
1909    pub extra: Object,
1910}
1911
1912/// The data of a `com.wellfriend.workflow.approval.approve.v1` event.
1913#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1914pub struct WorkflowApprovalApproveV1Data {
1915    /// The `approvalId` field.
1916    #[serde(rename = "approvalId", default)]
1917    pub approval_id: String,
1918    /// The `workflowRunId` field.
1919    #[serde(
1920        rename = "workflowRunId",
1921        default,
1922        skip_serializing_if = "Option::is_none"
1923    )]
1924    pub workflow_run_id: Option<String>,
1925    /// The `state` field.
1926    #[serde(default, skip_serializing_if = "Option::is_none")]
1927    pub state: Option<String>,
1928    /// Fields this SDK version does not model.
1929    #[serde(flatten)]
1930    pub extra: Object,
1931}
1932
1933/// The data of a `com.wellfriend.workflow.approval.reject.v1` event.
1934#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1935pub struct WorkflowApprovalRejectV1Data {
1936    /// The `approvalId` field.
1937    #[serde(rename = "approvalId", default)]
1938    pub approval_id: String,
1939    /// The `workflowRunId` field.
1940    #[serde(
1941        rename = "workflowRunId",
1942        default,
1943        skip_serializing_if = "Option::is_none"
1944    )]
1945    pub workflow_run_id: Option<String>,
1946    /// The `state` field.
1947    #[serde(default, skip_serializing_if = "Option::is_none")]
1948    pub state: Option<String>,
1949    /// Fields this SDK version does not model.
1950    #[serde(flatten)]
1951    pub extra: Object,
1952}
1953
1954/// The data of a `com.wellfriend.form.created.v1` event.
1955#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1956pub struct FormCreatedV1Data {
1957    /// The `formId` field.
1958    #[serde(rename = "formId", default)]
1959    pub form_id: String,
1960    /// The `schemaVersion` field.
1961    #[serde(
1962        rename = "schemaVersion",
1963        default,
1964        skip_serializing_if = "Option::is_none"
1965    )]
1966    pub schema_version: Option<i64>,
1967    /// The `documentVersionId` field.
1968    #[serde(
1969        rename = "documentVersionId",
1970        default,
1971        skip_serializing_if = "Option::is_none"
1972    )]
1973    pub document_version_id: Option<String>,
1974    /// The `fieldCount` field.
1975    #[serde(
1976        rename = "fieldCount",
1977        default,
1978        skip_serializing_if = "Option::is_none"
1979    )]
1980    pub field_count: Option<i64>,
1981    /// The `status` field.
1982    #[serde(default, skip_serializing_if = "Option::is_none")]
1983    pub status: Option<String>,
1984    /// Fields this SDK version does not model.
1985    #[serde(flatten)]
1986    pub extra: Object,
1987}
1988
1989/// The data of a `com.wellfriend.form.published.v1` event.
1990#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
1991pub struct FormPublishedV1Data {
1992    /// The `formId` field.
1993    #[serde(rename = "formId", default)]
1994    pub form_id: String,
1995    /// The `schemaVersion` field.
1996    #[serde(
1997        rename = "schemaVersion",
1998        default,
1999        skip_serializing_if = "Option::is_none"
2000    )]
2001    pub schema_version: Option<i64>,
2002    /// The `rowVersion` field.
2003    #[serde(
2004        rename = "rowVersion",
2005        default,
2006        skip_serializing_if = "Option::is_none"
2007    )]
2008    pub row_version: Option<i64>,
2009    /// The `fieldCount` field.
2010    #[serde(
2011        rename = "fieldCount",
2012        default,
2013        skip_serializing_if = "Option::is_none"
2014    )]
2015    pub field_count: Option<i64>,
2016    /// Fields this SDK version does not model.
2017    #[serde(flatten)]
2018    pub extra: Object,
2019}
2020
2021/// The data of a `com.wellfriend.form.started.v1` event.
2022#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2023pub struct FormStartedV1Data {
2024    /// The `formId` field.
2025    #[serde(rename = "formId", default)]
2026    pub form_id: String,
2027    /// The `submissionId` field.
2028    #[serde(
2029        rename = "submissionId",
2030        default,
2031        skip_serializing_if = "Option::is_none"
2032    )]
2033    pub submission_id: Option<String>,
2034    /// The `schemaVersion` field.
2035    #[serde(
2036        rename = "schemaVersion",
2037        default,
2038        skip_serializing_if = "Option::is_none"
2039    )]
2040    pub schema_version: Option<i64>,
2041    /// The `rowVersion` field.
2042    #[serde(
2043        rename = "rowVersion",
2044        default,
2045        skip_serializing_if = "Option::is_none"
2046    )]
2047    pub row_version: Option<i64>,
2048    /// The `attachmentCount` field.
2049    #[serde(
2050        rename = "attachmentCount",
2051        default,
2052        skip_serializing_if = "Option::is_none"
2053    )]
2054    pub attachment_count: Option<i64>,
2055    /// Fields this SDK version does not model.
2056    #[serde(flatten)]
2057    pub extra: Object,
2058}
2059
2060/// Provider detail, checked by the payload policy before delivery.
2061#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2062pub struct FormSubmittedV1DataRecipient {
2063    /// The `principalType` field.
2064    #[serde(
2065        rename = "principalType",
2066        default,
2067        skip_serializing_if = "Option::is_none"
2068    )]
2069    pub principal_type: Option<String>,
2070    /// Fields this SDK version does not model.
2071    #[serde(flatten)]
2072    pub extra: Object,
2073}
2074
2075/// The `FormSubmittedV1DataAttachmentHashesItem` object.
2076#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2077pub struct FormSubmittedV1DataAttachmentHashesItem {
2078    /// The `field` field.
2079    #[serde(default, skip_serializing_if = "Option::is_none")]
2080    pub field: Option<String>,
2081    /// The `sha256` field.
2082    #[serde(default, skip_serializing_if = "Option::is_none")]
2083    pub sha256: Option<String>,
2084    /// The `storageObjectId` field.
2085    #[serde(
2086        rename = "storageObjectId",
2087        default,
2088        skip_serializing_if = "Option::is_none"
2089    )]
2090    pub storage_object_id: Option<String>,
2091    /// Fields this SDK version does not model.
2092    #[serde(flatten)]
2093    pub extra: Object,
2094}
2095
2096/// Provider detail, checked by the payload policy before delivery.
2097#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2098pub struct FormSubmittedV1DataConsent {
2099    /// The `accepted` field.
2100    #[serde(default, skip_serializing_if = "Option::is_none")]
2101    pub accepted: Option<bool>,
2102    /// The `version` field.
2103    #[serde(default, skip_serializing_if = "Option::is_none")]
2104    pub version: Option<String>,
2105    /// The `acceptedAt` field.
2106    #[serde(
2107        rename = "acceptedAt",
2108        default,
2109        skip_serializing_if = "Option::is_none"
2110    )]
2111    pub accepted_at: Option<String>,
2112    /// Fields this SDK version does not model.
2113    #[serde(flatten)]
2114    pub extra: Object,
2115}
2116
2117/// Provider detail, checked by the payload policy before delivery.
2118#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2119pub struct FormSubmittedV1DataValidation {
2120    /// The `valid` field.
2121    #[serde(default, skip_serializing_if = "Option::is_none")]
2122    pub valid: Option<bool>,
2123    /// The `errorCount` field.
2124    #[serde(
2125        rename = "errorCount",
2126        default,
2127        skip_serializing_if = "Option::is_none"
2128    )]
2129    pub error_count: Option<i64>,
2130    /// Fields this SDK version does not model.
2131    #[serde(flatten)]
2132    pub extra: Object,
2133}
2134
2135/// The data of a `com.wellfriend.form.submitted.v1` event.
2136#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2137pub struct FormSubmittedV1Data {
2138    /// The `formId` field.
2139    #[serde(rename = "formId", default)]
2140    pub form_id: String,
2141    /// The `submissionId` field.
2142    #[serde(
2143        rename = "submissionId",
2144        default,
2145        skip_serializing_if = "Option::is_none"
2146    )]
2147    pub submission_id: Option<String>,
2148    /// The `schemaVersion` field.
2149    #[serde(
2150        rename = "schemaVersion",
2151        default,
2152        skip_serializing_if = "Option::is_none"
2153    )]
2154    pub schema_version: Option<i64>,
2155    /// The `documentVersionId` field.
2156    #[serde(
2157        rename = "documentVersionId",
2158        default,
2159        skip_serializing_if = "Option::is_none"
2160    )]
2161    pub document_version_id: Option<String>,
2162    /// The `viewerSessionId` field.
2163    #[serde(
2164        rename = "viewerSessionId",
2165        default,
2166        skip_serializing_if = "Option::is_none"
2167    )]
2168    pub viewer_session_id: Option<String>,
2169    /// Provider detail, checked by the payload policy before delivery.
2170    #[serde(default, skip_serializing_if = "Option::is_none")]
2171    pub recipient: Option<FormSubmittedV1DataRecipient>,
2172    /// Provider detail, checked by the payload policy before delivery.
2173    #[serde(
2174        rename = "attachmentHashes",
2175        default,
2176        skip_serializing_if = "Option::is_none"
2177    )]
2178    pub attachment_hashes: Option<Vec<FormSubmittedV1DataAttachmentHashesItem>>,
2179    /// Provider detail, checked by the payload policy before delivery.
2180    #[serde(default, skip_serializing_if = "Option::is_none")]
2181    pub consent: Option<FormSubmittedV1DataConsent>,
2182    /// Provider detail, checked by the payload policy before delivery.
2183    #[serde(default, skip_serializing_if = "Option::is_none")]
2184    pub validation: Option<FormSubmittedV1DataValidation>,
2185    /// The `policyDecisionId` field.
2186    #[serde(
2187        rename = "policyDecisionId",
2188        default,
2189        skip_serializing_if = "Option::is_none"
2190    )]
2191    pub policy_decision_id: Option<String>,
2192    /// The `submittedAt` field.
2193    #[serde(
2194        rename = "submittedAt",
2195        default,
2196        skip_serializing_if = "Option::is_none"
2197    )]
2198    pub submitted_at: Option<String>,
2199    /// Fields this SDK version does not model.
2200    #[serde(flatten)]
2201    pub extra: Object,
2202}
2203
2204/// The data of a `com.wellfriend.form.accepted.v1` event.
2205#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2206pub struct FormAcceptedV1Data {
2207    /// The `formId` field.
2208    #[serde(rename = "formId", default)]
2209    pub form_id: String,
2210    /// The `submissionId` field.
2211    #[serde(
2212        rename = "submissionId",
2213        default,
2214        skip_serializing_if = "Option::is_none"
2215    )]
2216    pub submission_id: Option<String>,
2217    /// The `state` field.
2218    #[serde(default, skip_serializing_if = "Option::is_none")]
2219    pub state: Option<String>,
2220    /// The `validationRun` field.
2221    #[serde(
2222        rename = "validationRun",
2223        default,
2224        skip_serializing_if = "Option::is_none"
2225    )]
2226    pub validation_run: Option<i64>,
2227    /// The `acceptedAt` field.
2228    #[serde(
2229        rename = "acceptedAt",
2230        default,
2231        skip_serializing_if = "Option::is_none"
2232    )]
2233    pub accepted_at: Option<String>,
2234    /// The `rejectedAt` field.
2235    #[serde(
2236        rename = "rejectedAt",
2237        default,
2238        skip_serializing_if = "Option::is_none"
2239    )]
2240    pub rejected_at: Option<serde_json::Value>,
2241    /// Fields this SDK version does not model.
2242    #[serde(flatten)]
2243    pub extra: Object,
2244}
2245
2246/// The data of a `com.wellfriend.form.rejected.v1` event.
2247#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2248pub struct FormRejectedV1Data {
2249    /// The `formId` field.
2250    #[serde(rename = "formId", default)]
2251    pub form_id: String,
2252    /// The `submissionId` field.
2253    #[serde(
2254        rename = "submissionId",
2255        default,
2256        skip_serializing_if = "Option::is_none"
2257    )]
2258    pub submission_id: Option<String>,
2259    /// The `state` field.
2260    #[serde(default, skip_serializing_if = "Option::is_none")]
2261    pub state: Option<String>,
2262    /// The `validationRun` field.
2263    #[serde(
2264        rename = "validationRun",
2265        default,
2266        skip_serializing_if = "Option::is_none"
2267    )]
2268    pub validation_run: Option<i64>,
2269    /// The `acceptedAt` field.
2270    #[serde(
2271        rename = "acceptedAt",
2272        default,
2273        skip_serializing_if = "Option::is_none"
2274    )]
2275    pub accepted_at: Option<serde_json::Value>,
2276    /// The `rejectedAt` field.
2277    #[serde(
2278        rename = "rejectedAt",
2279        default,
2280        skip_serializing_if = "Option::is_none"
2281    )]
2282    pub rejected_at: Option<String>,
2283    /// Fields this SDK version does not model.
2284    #[serde(flatten)]
2285    pub extra: Object,
2286}
2287
2288/// The data of a `com.wellfriend.form.export.queued.v1` event.
2289#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2290pub struct FormExportQueuedV1Data {
2291    /// The `exportId` field.
2292    #[serde(rename = "exportId", default)]
2293    pub export_id: String,
2294    /// The `submissionId` field.
2295    #[serde(
2296        rename = "submissionId",
2297        default,
2298        skip_serializing_if = "Option::is_none"
2299    )]
2300    pub submission_id: Option<String>,
2301    /// The `toolJobId` field.
2302    #[serde(rename = "toolJobId", default, skip_serializing_if = "Option::is_none")]
2303    pub tool_job_id: Option<String>,
2304    /// The `flattenPolicy` field.
2305    #[serde(
2306        rename = "flattenPolicy",
2307        default,
2308        skip_serializing_if = "Option::is_none"
2309    )]
2310    pub flatten_policy: Option<String>,
2311    /// The `signatureImpact` field.
2312    #[serde(
2313        rename = "signatureImpact",
2314        default,
2315        skip_serializing_if = "Option::is_none"
2316    )]
2317    pub signature_impact: Option<String>,
2318    /// Fields this SDK version does not model.
2319    #[serde(flatten)]
2320    pub extra: Object,
2321}
2322
2323/// The data of a `com.wellfriend.form.export.completed.v1` event.
2324#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2325pub struct FormExportCompletedV1Data {
2326    /// The `exportId` field.
2327    #[serde(rename = "exportId", default)]
2328    pub export_id: String,
2329    /// The `formId` field.
2330    #[serde(rename = "formId", default, skip_serializing_if = "Option::is_none")]
2331    pub form_id: Option<String>,
2332    /// The `submissionId` field.
2333    #[serde(
2334        rename = "submissionId",
2335        default,
2336        skip_serializing_if = "Option::is_none"
2337    )]
2338    pub submission_id: Option<String>,
2339    /// The `outputVersionId` field.
2340    #[serde(
2341        rename = "outputVersionId",
2342        default,
2343        skip_serializing_if = "Option::is_none"
2344    )]
2345    pub output_version_id: Option<String>,
2346    /// The `outputSha256` field.
2347    #[serde(
2348        rename = "outputSha256",
2349        default,
2350        skip_serializing_if = "Option::is_none"
2351    )]
2352    pub output_sha256: Option<String>,
2353    /// The `signatureImpact` field.
2354    #[serde(
2355        rename = "signatureImpact",
2356        default,
2357        skip_serializing_if = "Option::is_none"
2358    )]
2359    pub signature_impact: Option<String>,
2360    /// Fields this SDK version does not model.
2361    #[serde(flatten)]
2362    pub extra: Object,
2363}
2364
2365/// The data of a `com.wellfriend.form.export.failed.v1` event.
2366#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2367pub struct FormExportFailedV1Data {
2368    /// The `exportId` field.
2369    #[serde(rename = "exportId", default)]
2370    pub export_id: String,
2371    /// The `failureCode` field.
2372    #[serde(
2373        rename = "failureCode",
2374        default,
2375        skip_serializing_if = "Option::is_none"
2376    )]
2377    pub failure_code: Option<String>,
2378    /// The `toolJobId` field.
2379    #[serde(rename = "toolJobId", default, skip_serializing_if = "Option::is_none")]
2380    pub tool_job_id: Option<String>,
2381    /// Fields this SDK version does not model.
2382    #[serde(flatten)]
2383    pub extra: Object,
2384}
2385
2386/// The data of a `com.wellfriend.annotation.created.v1` event.
2387#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2388pub struct AnnotationCreatedV1Data {
2389    /// The `annotationId` field.
2390    #[serde(rename = "annotationId", default)]
2391    pub annotation_id: String,
2392    /// The `annotationType` field.
2393    #[serde(
2394        rename = "annotationType",
2395        default,
2396        skip_serializing_if = "Option::is_none"
2397    )]
2398    pub annotation_type: Option<String>,
2399    /// The `pageNumber` field.
2400    #[serde(
2401        rename = "pageNumber",
2402        default,
2403        skip_serializing_if = "Option::is_none"
2404    )]
2405    pub page_number: Option<i64>,
2406    /// The `visibility` field.
2407    #[serde(default, skip_serializing_if = "Option::is_none")]
2408    pub visibility: Option<String>,
2409    /// The `rowVersion` field.
2410    #[serde(
2411        rename = "rowVersion",
2412        default,
2413        skip_serializing_if = "Option::is_none"
2414    )]
2415    pub row_version: Option<i64>,
2416    /// Fields this SDK version does not model.
2417    #[serde(flatten)]
2418    pub extra: Object,
2419}
2420
2421/// The data of a `com.wellfriend.annotation.updated.v1` event.
2422#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2423pub struct AnnotationUpdatedV1Data {
2424    /// The `annotationId` field.
2425    #[serde(rename = "annotationId", default)]
2426    pub annotation_id: String,
2427    /// The `previousVersion` field.
2428    #[serde(
2429        rename = "previousVersion",
2430        default,
2431        skip_serializing_if = "Option::is_none"
2432    )]
2433    pub previous_version: Option<i64>,
2434    /// The `rowVersion` field.
2435    #[serde(
2436        rename = "rowVersion",
2437        default,
2438        skip_serializing_if = "Option::is_none"
2439    )]
2440    pub row_version: Option<i64>,
2441    /// Provider detail, checked by the payload policy before delivery.
2442    #[serde(
2443        rename = "changedFields",
2444        default,
2445        skip_serializing_if = "Option::is_none"
2446    )]
2447    pub changed_fields: Option<Vec<String>>,
2448    /// Fields this SDK version does not model.
2449    #[serde(flatten)]
2450    pub extra: Object,
2451}
2452
2453/// The data of a `com.wellfriend.annotation.reply.created.v1` event.
2454#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2455pub struct AnnotationReplyCreatedV1Data {
2456    /// The `annotationId` field.
2457    #[serde(rename = "annotationId", default)]
2458    pub annotation_id: String,
2459    /// The `replyId` field.
2460    #[serde(rename = "replyId", default, skip_serializing_if = "Option::is_none")]
2461    pub reply_id: Option<String>,
2462    /// The `parentReplyId` field.
2463    #[serde(
2464        rename = "parentReplyId",
2465        default,
2466        skip_serializing_if = "Option::is_none"
2467    )]
2468    pub parent_reply_id: Option<serde_json::Value>,
2469    /// Provider detail, checked by the payload policy before delivery.
2470    #[serde(default, skip_serializing_if = "Option::is_none")]
2471    pub mentions: Option<Vec<FormSubmittedV1DataRecipient>>,
2472    /// Fields this SDK version does not model.
2473    #[serde(flatten)]
2474    pub extra: Object,
2475}
2476
2477/// The data of a `com.wellfriend.annotation.resolved.v1` event.
2478#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2479pub struct AnnotationResolvedV1Data {
2480    /// The `annotationId` field.
2481    #[serde(rename = "annotationId", default)]
2482    pub annotation_id: String,
2483    /// The `previousVersion` field.
2484    #[serde(
2485        rename = "previousVersion",
2486        default,
2487        skip_serializing_if = "Option::is_none"
2488    )]
2489    pub previous_version: Option<i64>,
2490    /// The `rowVersion` field.
2491    #[serde(
2492        rename = "rowVersion",
2493        default,
2494        skip_serializing_if = "Option::is_none"
2495    )]
2496    pub row_version: Option<i64>,
2497    /// Fields this SDK version does not model.
2498    #[serde(flatten)]
2499    pub extra: Object,
2500}
2501
2502/// The data of a `com.wellfriend.annotation.reopened.v1` event.
2503#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2504pub struct AnnotationReopenedV1Data {
2505    /// The `annotationId` field.
2506    #[serde(rename = "annotationId", default)]
2507    pub annotation_id: String,
2508    /// The `previousVersion` field.
2509    #[serde(
2510        rename = "previousVersion",
2511        default,
2512        skip_serializing_if = "Option::is_none"
2513    )]
2514    pub previous_version: Option<i64>,
2515    /// The `rowVersion` field.
2516    #[serde(
2517        rename = "rowVersion",
2518        default,
2519        skip_serializing_if = "Option::is_none"
2520    )]
2521    pub row_version: Option<i64>,
2522    /// Fields this SDK version does not model.
2523    #[serde(flatten)]
2524    pub extra: Object,
2525}
2526
2527/// The data of a `com.wellfriend.annotation.migration.proposed.v1` event.
2528#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2529pub struct AnnotationMigrationProposedV1Data {
2530    /// The `annotationId` field.
2531    #[serde(rename = "annotationId", default)]
2532    pub annotation_id: String,
2533    /// The `migrationId` field.
2534    #[serde(
2535        rename = "migrationId",
2536        default,
2537        skip_serializing_if = "Option::is_none"
2538    )]
2539    pub migration_id: Option<String>,
2540    /// The `targetVersionId` field.
2541    #[serde(
2542        rename = "targetVersionId",
2543        default,
2544        skip_serializing_if = "Option::is_none"
2545    )]
2546    pub target_version_id: Option<String>,
2547    /// The `confidenceBasisPoints` field.
2548    #[serde(
2549        rename = "confidenceBasisPoints",
2550        default,
2551        skip_serializing_if = "Option::is_none"
2552    )]
2553    pub confidence_basis_points: Option<i64>,
2554    /// The `status` field.
2555    #[serde(default, skip_serializing_if = "Option::is_none")]
2556    pub status: Option<String>,
2557    /// Fields this SDK version does not model.
2558    #[serde(flatten)]
2559    pub extra: Object,
2560}
2561
2562/// The data of a `com.wellfriend.annotation.migration.reviewed.v1` event.
2563#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2564pub struct AnnotationMigrationReviewedV1Data {
2565    /// The `annotationId` field.
2566    #[serde(rename = "annotationId", default)]
2567    pub annotation_id: String,
2568    /// The `migrationId` field.
2569    #[serde(
2570        rename = "migrationId",
2571        default,
2572        skip_serializing_if = "Option::is_none"
2573    )]
2574    pub migration_id: Option<String>,
2575    /// The `decision` field.
2576    #[serde(default, skip_serializing_if = "Option::is_none")]
2577    pub decision: Option<String>,
2578    /// The `targetAnnotationId` field.
2579    #[serde(
2580        rename = "targetAnnotationId",
2581        default,
2582        skip_serializing_if = "Option::is_none"
2583    )]
2584    pub target_annotation_id: Option<String>,
2585    /// The `targetVersionId` field.
2586    #[serde(
2587        rename = "targetVersionId",
2588        default,
2589        skip_serializing_if = "Option::is_none"
2590    )]
2591    pub target_version_id: Option<String>,
2592    /// Fields this SDK version does not model.
2593    #[serde(flatten)]
2594    pub extra: Object,
2595}
2596
2597/// The data of a `com.wellfriend.annotation.export.queued.v1` event.
2598#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2599pub struct AnnotationExportQueuedV1Data {
2600    /// The `exportId` field.
2601    #[serde(rename = "exportId", default)]
2602    pub export_id: String,
2603    /// The `annotationCount` field.
2604    #[serde(
2605        rename = "annotationCount",
2606        default,
2607        skip_serializing_if = "Option::is_none"
2608    )]
2609    pub annotation_count: Option<i64>,
2610    /// The `toolJobId` field.
2611    #[serde(rename = "toolJobId", default, skip_serializing_if = "Option::is_none")]
2612    pub tool_job_id: Option<String>,
2613    /// The `flattenPolicy` field.
2614    #[serde(
2615        rename = "flattenPolicy",
2616        default,
2617        skip_serializing_if = "Option::is_none"
2618    )]
2619    pub flatten_policy: Option<String>,
2620    /// The `signatureImpact` field.
2621    #[serde(
2622        rename = "signatureImpact",
2623        default,
2624        skip_serializing_if = "Option::is_none"
2625    )]
2626    pub signature_impact: Option<String>,
2627    /// Fields this SDK version does not model.
2628    #[serde(flatten)]
2629    pub extra: Object,
2630}
2631
2632/// The data of a `com.wellfriend.annotation.export.completed.v1` event.
2633#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2634pub struct AnnotationExportCompletedV1Data {
2635    /// The `exportId` field.
2636    #[serde(rename = "exportId", default)]
2637    pub export_id: String,
2638    /// The `outputVersionId` field.
2639    #[serde(
2640        rename = "outputVersionId",
2641        default,
2642        skip_serializing_if = "Option::is_none"
2643    )]
2644    pub output_version_id: Option<String>,
2645    /// The `outputSha256` field.
2646    #[serde(
2647        rename = "outputSha256",
2648        default,
2649        skip_serializing_if = "Option::is_none"
2650    )]
2651    pub output_sha256: Option<String>,
2652    /// The `annotationCount` field.
2653    #[serde(
2654        rename = "annotationCount",
2655        default,
2656        skip_serializing_if = "Option::is_none"
2657    )]
2658    pub annotation_count: Option<i64>,
2659    /// The `signatureImpact` field.
2660    #[serde(
2661        rename = "signatureImpact",
2662        default,
2663        skip_serializing_if = "Option::is_none"
2664    )]
2665    pub signature_impact: Option<String>,
2666    /// Fields this SDK version does not model.
2667    #[serde(flatten)]
2668    pub extra: Object,
2669}
2670
2671/// The data of a `com.wellfriend.annotation.export.failed.v1` event.
2672#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2673pub struct AnnotationExportFailedV1Data {
2674    /// The `exportId` field.
2675    #[serde(rename = "exportId", default)]
2676    pub export_id: String,
2677    /// The `failureCode` field.
2678    #[serde(
2679        rename = "failureCode",
2680        default,
2681        skip_serializing_if = "Option::is_none"
2682    )]
2683    pub failure_code: Option<String>,
2684    /// The `toolJobId` field.
2685    #[serde(rename = "toolJobId", default, skip_serializing_if = "Option::is_none")]
2686    pub tool_job_id: Option<String>,
2687    /// Fields this SDK version does not model.
2688    #[serde(flatten)]
2689    pub extra: Object,
2690}
2691
2692/// The data of a `com.wellfriend.signature.request.created.v1` event.
2693#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2694pub struct SignatureRequestCreatedV1Data {
2695    /// The `signatureRequestId` field.
2696    #[serde(rename = "signatureRequestId", default)]
2697    pub signature_request_id: String,
2698    /// The `documentId` field.
2699    #[serde(
2700        rename = "documentId",
2701        default,
2702        skip_serializing_if = "Option::is_none"
2703    )]
2704    pub document_id: Option<String>,
2705    /// The `documentVersionId` field.
2706    #[serde(
2707        rename = "documentVersionId",
2708        default,
2709        skip_serializing_if = "Option::is_none"
2710    )]
2711    pub document_version_id: Option<String>,
2712    /// The `sourceSha256` field.
2713    #[serde(
2714        rename = "sourceSha256",
2715        default,
2716        skip_serializing_if = "Option::is_none"
2717    )]
2718    pub source_sha256: Option<String>,
2719    /// The `signingOrder` field.
2720    #[serde(
2721        rename = "signingOrder",
2722        default,
2723        skip_serializing_if = "Option::is_none"
2724    )]
2725    pub signing_order: Option<String>,
2726    /// Provider detail, checked by the payload policy before delivery.
2727    #[serde(
2728        rename = "authenticationMethods",
2729        default,
2730        skip_serializing_if = "Option::is_none"
2731    )]
2732    pub authentication_methods: Option<Vec<String>>,
2733    /// The `recipientCount` field.
2734    #[serde(
2735        rename = "recipientCount",
2736        default,
2737        skip_serializing_if = "Option::is_none"
2738    )]
2739    pub recipient_count: Option<i64>,
2740    /// The `fieldCount` field.
2741    #[serde(
2742        rename = "fieldCount",
2743        default,
2744        skip_serializing_if = "Option::is_none"
2745    )]
2746    pub field_count: Option<i64>,
2747    /// The `consentVersion` field.
2748    #[serde(
2749        rename = "consentVersion",
2750        default,
2751        skip_serializing_if = "Option::is_none"
2752    )]
2753    pub consent_version: Option<String>,
2754    /// The `expiresAt` field.
2755    #[serde(rename = "expiresAt", default, skip_serializing_if = "Option::is_none")]
2756    pub expires_at: Option<String>,
2757    /// The `provider` field.
2758    #[serde(default, skip_serializing_if = "Option::is_none")]
2759    pub provider: Option<String>,
2760    /// Fields this SDK version does not model.
2761    #[serde(flatten)]
2762    pub extra: Object,
2763}
2764
2765/// The data of a `com.wellfriend.signature.request.cancelled.v1` event.
2766#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2767pub struct SignatureRequestCancelledV1Data {
2768    /// The `signatureRequestId` field.
2769    #[serde(rename = "signatureRequestId", default)]
2770    pub signature_request_id: String,
2771    /// Fields this SDK version does not model.
2772    #[serde(flatten)]
2773    pub extra: Object,
2774}
2775
2776/// The data of a `com.wellfriend.signature.request.evidence_finalized.v1` event.
2777#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2778pub struct SignatureRequestEvidenceFinalizedV1Data {
2779    /// The `signatureRequestId` field.
2780    #[serde(rename = "signatureRequestId", default)]
2781    pub signature_request_id: String,
2782    /// The `evidenceStorageObjectId` field.
2783    #[serde(
2784        rename = "evidenceStorageObjectId",
2785        default,
2786        skip_serializing_if = "Option::is_none"
2787    )]
2788    pub evidence_storage_object_id: Option<String>,
2789    /// The `evidenceSha256` field.
2790    #[serde(
2791        rename = "evidenceSha256",
2792        default,
2793        skip_serializing_if = "Option::is_none"
2794    )]
2795    pub evidence_sha256: Option<String>,
2796    /// Fields this SDK version does not model.
2797    #[serde(flatten)]
2798    pub extra: Object,
2799}
2800
2801/// The data of a `com.wellfriend.signature.recipient.viewed.v1` event.
2802#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2803pub struct SignatureRecipientViewedV1Data {
2804    /// The `recipientId` field.
2805    #[serde(rename = "recipientId", default)]
2806    pub recipient_id: String,
2807    /// Fields this SDK version does not model.
2808    #[serde(flatten)]
2809    pub extra: Object,
2810}
2811
2812/// Provider detail, checked by the payload policy before delivery.
2813#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2814pub struct SignatureRecipientChallengeSentV1DataAuthentication {
2815    /// The `method` field.
2816    #[serde(default, skip_serializing_if = "Option::is_none")]
2817    pub method: Option<String>,
2818    /// The `strength` field.
2819    #[serde(default, skip_serializing_if = "Option::is_none")]
2820    pub strength: Option<String>,
2821    /// Fields this SDK version does not model.
2822    #[serde(flatten)]
2823    pub extra: Object,
2824}
2825
2826/// The data of a `com.wellfriend.signature.recipient.challenge_sent.v1` event.
2827#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2828pub struct SignatureRecipientChallengeSentV1Data {
2829    /// The `recipientId` field.
2830    #[serde(rename = "recipientId", default)]
2831    pub recipient_id: String,
2832    /// Provider detail, checked by the payload policy before delivery.
2833    #[serde(default, skip_serializing_if = "Option::is_none")]
2834    pub authentication: Option<SignatureRecipientChallengeSentV1DataAuthentication>,
2835    /// Fields this SDK version does not model.
2836    #[serde(flatten)]
2837    pub extra: Object,
2838}
2839
2840/// The data of a `com.wellfriend.signature.recipient.verified.v1` event.
2841#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2842pub struct SignatureRecipientVerifiedV1Data {
2843    /// The `recipientId` field.
2844    #[serde(rename = "recipientId", default)]
2845    pub recipient_id: String,
2846    /// Provider detail, checked by the payload policy before delivery.
2847    #[serde(default, skip_serializing_if = "Option::is_none")]
2848    pub authentication: Option<SignatureRecipientChallengeSentV1DataAuthentication>,
2849    /// Fields this SDK version does not model.
2850    #[serde(flatten)]
2851    pub extra: Object,
2852}
2853
2854/// The data of a `com.wellfriend.signature.recipient.signing_failed.v1` event.
2855#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2856pub struct SignatureRecipientSigningFailedV1Data {
2857    /// The `recipientId` field.
2858    #[serde(rename = "recipientId", default)]
2859    pub recipient_id: String,
2860    /// The `failureCode` field.
2861    #[serde(
2862        rename = "failureCode",
2863        default,
2864        skip_serializing_if = "Option::is_none"
2865    )]
2866    pub failure_code: Option<String>,
2867    /// Fields this SDK version does not model.
2868    #[serde(flatten)]
2869    pub extra: Object,
2870}
2871
2872/// The data of a `com.wellfriend.signature.recipient.signed.v1` event.
2873#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2874pub struct SignatureRecipientSignedV1Data {
2875    /// The `recipientId` field.
2876    #[serde(rename = "recipientId", default)]
2877    pub recipient_id: String,
2878    /// The `documentVersionId` field.
2879    #[serde(
2880        rename = "documentVersionId",
2881        default,
2882        skip_serializing_if = "Option::is_none"
2883    )]
2884    pub document_version_id: Option<String>,
2885    /// The `signedSha256` field.
2886    #[serde(
2887        rename = "signedSha256",
2888        default,
2889        skip_serializing_if = "Option::is_none"
2890    )]
2891    pub signed_sha256: Option<String>,
2892    /// The `signatureFieldName` field.
2893    #[serde(
2894        rename = "signatureFieldName",
2895        default,
2896        skip_serializing_if = "Option::is_none"
2897    )]
2898    pub signature_field_name: Option<String>,
2899    /// The `provider` field.
2900    #[serde(default, skip_serializing_if = "Option::is_none")]
2901    pub provider: Option<String>,
2902    /// Provider detail, checked by the payload policy before delivery.
2903    #[serde(default, skip_serializing_if = "Option::is_none")]
2904    pub authentication: Option<SignatureRecipientChallengeSentV1DataAuthentication>,
2905    /// The `consentVersion` field.
2906    #[serde(
2907        rename = "consentVersion",
2908        default,
2909        skip_serializing_if = "Option::is_none"
2910    )]
2911    pub consent_version: Option<String>,
2912    /// The `completed` field.
2913    #[serde(default, skip_serializing_if = "Option::is_none")]
2914    pub completed: Option<bool>,
2915    /// Fields this SDK version does not model.
2916    #[serde(flatten)]
2917    pub extra: Object,
2918}
2919
2920/// The data of a `com.wellfriend.signature.recipient.signature_validated.v1` event.
2921#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2922pub struct SignatureRecipientSignatureValidatedV1Data {
2923    /// The `recipientId` field.
2924    #[serde(rename = "recipientId", default)]
2925    pub recipient_id: String,
2926    /// The `validationId` field.
2927    #[serde(
2928        rename = "validationId",
2929        default,
2930        skip_serializing_if = "Option::is_none"
2931    )]
2932    pub validation_id: Option<String>,
2933    /// The `overallState` field.
2934    #[serde(
2935        rename = "overallState",
2936        default,
2937        skip_serializing_if = "Option::is_none"
2938    )]
2939    pub overall_state: Option<String>,
2940    /// The `evidenceSha256` field.
2941    #[serde(
2942        rename = "evidenceSha256",
2943        default,
2944        skip_serializing_if = "Option::is_none"
2945    )]
2946    pub evidence_sha256: Option<String>,
2947    /// Fields this SDK version does not model.
2948    #[serde(flatten)]
2949    pub extra: Object,
2950}
2951
2952/// The data of a `com.wellfriend.signature.validation.requested.v1` event.
2953#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2954pub struct SignatureValidationRequestedV1Data {
2955    /// The `validationId` field.
2956    #[serde(rename = "validationId", default)]
2957    pub validation_id: String,
2958    /// The `documentId` field.
2959    #[serde(
2960        rename = "documentId",
2961        default,
2962        skip_serializing_if = "Option::is_none"
2963    )]
2964    pub document_id: Option<String>,
2965    /// The `documentVersionId` field.
2966    #[serde(
2967        rename = "documentVersionId",
2968        default,
2969        skip_serializing_if = "Option::is_none"
2970    )]
2971    pub document_version_id: Option<String>,
2972    /// The `inputSha256` field.
2973    #[serde(
2974        rename = "inputSha256",
2975        default,
2976        skip_serializing_if = "Option::is_none"
2977    )]
2978    pub input_sha256: Option<String>,
2979    /// Fields this SDK version does not model.
2980    #[serde(flatten)]
2981    pub extra: Object,
2982}
2983
2984/// The data of a `com.wellfriend.signature.validation.failed.v1` event.
2985#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
2986pub struct SignatureValidationFailedV1Data {
2987    /// The `validationId` field.
2988    #[serde(rename = "validationId", default)]
2989    pub validation_id: String,
2990    /// The `failureCode` field.
2991    #[serde(
2992        rename = "failureCode",
2993        default,
2994        skip_serializing_if = "Option::is_none"
2995    )]
2996    pub failure_code: Option<String>,
2997    /// Fields this SDK version does not model.
2998    #[serde(flatten)]
2999    pub extra: Object,
3000}
3001
3002/// Provider detail, checked by the payload policy before delivery.
3003#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3004pub struct SignatureValidationCompletedV1DataTrustPolicy {
3005    /// The `profile` field.
3006    #[serde(default, skip_serializing_if = "Option::is_none")]
3007    pub profile: Option<String>,
3008    /// The `revocationChecks` field.
3009    #[serde(
3010        rename = "revocationChecks",
3011        default,
3012        skip_serializing_if = "Option::is_none"
3013    )]
3014    pub revocation_checks: Option<bool>,
3015    /// Fields this SDK version does not model.
3016    #[serde(flatten)]
3017    pub extra: Object,
3018}
3019
3020/// The data of a `com.wellfriend.signature.validation.completed.v1` event.
3021#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3022pub struct SignatureValidationCompletedV1Data {
3023    /// The `validationId` field.
3024    #[serde(rename = "validationId", default)]
3025    pub validation_id: String,
3026    /// The `overallState` field.
3027    #[serde(
3028        rename = "overallState",
3029        default,
3030        skip_serializing_if = "Option::is_none"
3031    )]
3032    pub overall_state: Option<String>,
3033    /// The `signatureCount` field.
3034    #[serde(
3035        rename = "signatureCount",
3036        default,
3037        skip_serializing_if = "Option::is_none"
3038    )]
3039    pub signature_count: Option<i64>,
3040    /// The `validator` field.
3041    #[serde(default, skip_serializing_if = "Option::is_none")]
3042    pub validator: Option<String>,
3043    /// The `validatorVersion` field.
3044    #[serde(
3045        rename = "validatorVersion",
3046        default,
3047        skip_serializing_if = "Option::is_none"
3048    )]
3049    pub validator_version: Option<String>,
3050    /// The `inputSha256` field.
3051    #[serde(
3052        rename = "inputSha256",
3053        default,
3054        skip_serializing_if = "Option::is_none"
3055    )]
3056    pub input_sha256: Option<String>,
3057    /// The `evidenceSha256` field.
3058    #[serde(
3059        rename = "evidenceSha256",
3060        default,
3061        skip_serializing_if = "Option::is_none"
3062    )]
3063    pub evidence_sha256: Option<String>,
3064    /// Provider detail, checked by the payload policy before delivery.
3065    #[serde(
3066        rename = "trustPolicy",
3067        default,
3068        skip_serializing_if = "Option::is_none"
3069    )]
3070    pub trust_policy: Option<SignatureValidationCompletedV1DataTrustPolicy>,
3071    /// Fields this SDK version does not model.
3072    #[serde(flatten)]
3073    pub extra: Object,
3074}
3075
3076/// The data of a `com.wellfriend.signature.provider_credential.created.v1` event.
3077#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3078pub struct SignatureProviderCredentialCreatedV1Data {
3079    /// The `provider` field.
3080    #[serde(default, skip_serializing_if = "Option::is_none")]
3081    pub provider: Option<String>,
3082    /// The `label` field.
3083    #[serde(default, skip_serializing_if = "Option::is_none")]
3084    pub label: Option<String>,
3085    /// The `certificateSha256` field.
3086    #[serde(
3087        rename = "certificateSha256",
3088        default,
3089        skip_serializing_if = "Option::is_none"
3090    )]
3091    pub certificate_sha256: Option<String>,
3092    /// Fields this SDK version does not model.
3093    #[serde(flatten)]
3094    pub extra: Object,
3095}
3096
3097/// The data of a `com.wellfriend.document.template.published.v1` event.
3098#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3099pub struct DocumentTemplatePublishedV1Data {
3100    /// The `templateId` field.
3101    #[serde(rename = "templateId", default)]
3102    pub template_id: String,
3103    /// The `templateVersionId` field.
3104    #[serde(
3105        rename = "templateVersionId",
3106        default,
3107        skip_serializing_if = "Option::is_none"
3108    )]
3109    pub template_version_id: Option<String>,
3110    /// The `versionNumber` field.
3111    #[serde(
3112        rename = "versionNumber",
3113        default,
3114        skip_serializing_if = "Option::is_none"
3115    )]
3116    pub version_number: Option<i64>,
3117    /// The `contentSha256` field.
3118    #[serde(
3119        rename = "contentSha256",
3120        default,
3121        skip_serializing_if = "Option::is_none"
3122    )]
3123    pub content_sha256: Option<String>,
3124    /// Fields this SDK version does not model.
3125    #[serde(flatten)]
3126    pub extra: Object,
3127}
3128
3129/// The data of a `com.wellfriend.document.template.archived.v1` event.
3130#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3131pub struct DocumentTemplateArchivedV1Data {
3132    /// The `templateId` field.
3133    #[serde(rename = "templateId", default)]
3134    pub template_id: String,
3135    /// The `archivedAt` field.
3136    #[serde(
3137        rename = "archivedAt",
3138        default,
3139        skip_serializing_if = "Option::is_none"
3140    )]
3141    pub archived_at: Option<String>,
3142    /// Fields this SDK version does not model.
3143    #[serde(flatten)]
3144    pub extra: Object,
3145}
3146
3147/// The data of a `com.wellfriend.document.editor.published.v1` event.
3148#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3149pub struct DocumentEditorPublishedV1Data {
3150    /// The `draftId` field.
3151    #[serde(rename = "draftId", default)]
3152    pub draft_id: String,
3153    /// The `revision` field.
3154    #[serde(default, skip_serializing_if = "Option::is_none")]
3155    pub revision: Option<String>,
3156    /// The `versionId` field.
3157    #[serde(rename = "versionId", default, skip_serializing_if = "Option::is_none")]
3158    pub version_id: Option<String>,
3159    /// The `versionNumber` field.
3160    #[serde(
3161        rename = "versionNumber",
3162        default,
3163        skip_serializing_if = "Option::is_none"
3164    )]
3165    pub version_number: Option<i64>,
3166    /// The `contentSha256` field.
3167    #[serde(
3168        rename = "contentSha256",
3169        default,
3170        skip_serializing_if = "Option::is_none"
3171    )]
3172    pub content_sha256: Option<String>,
3173    /// The `outputSha256` field.
3174    #[serde(
3175        rename = "outputSha256",
3176        default,
3177        skip_serializing_if = "Option::is_none"
3178    )]
3179    pub output_sha256: Option<String>,
3180    /// The `pageCount` field.
3181    #[serde(rename = "pageCount", default, skip_serializing_if = "Option::is_none")]
3182    pub page_count: Option<i64>,
3183    /// The `outputFormat` field.
3184    #[serde(
3185        rename = "outputFormat",
3186        default,
3187        skip_serializing_if = "Option::is_none"
3188    )]
3189    pub output_format: Option<String>,
3190    /// The `mimeType` field.
3191    #[serde(rename = "mimeType", default, skip_serializing_if = "Option::is_none")]
3192    pub mime_type: Option<String>,
3193    /// Fields this SDK version does not model.
3194    #[serde(flatten)]
3195    pub extra: Object,
3196}
3197
3198/// The `DocumentEditorPdfTransactionAppliedV1DataChangedObjectsItem` object.
3199#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3200pub struct DocumentEditorPdfTransactionAppliedV1DataChangedObjectsItem {
3201    /// The `number` field.
3202    #[serde(default, skip_serializing_if = "Option::is_none")]
3203    pub number: Option<i64>,
3204    /// The `generation` field.
3205    #[serde(default, skip_serializing_if = "Option::is_none")]
3206    pub generation: Option<i64>,
3207    /// Fields this SDK version does not model.
3208    #[serde(flatten)]
3209    pub extra: Object,
3210}
3211
3212/// Provider detail, checked by the payload policy before delivery.
3213#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3214pub struct DocumentEditorPdfTransactionAppliedV1DataValidation {
3215    /// The `reparsed` field.
3216    #[serde(default, skip_serializing_if = "Option::is_none")]
3217    pub reparsed: Option<bool>,
3218    /// The `pageCountPreserved` field.
3219    #[serde(
3220        rename = "pageCountPreserved",
3221        default,
3222        skip_serializing_if = "Option::is_none"
3223    )]
3224    pub page_count_preserved: Option<bool>,
3225    /// Fields this SDK version does not model.
3226    #[serde(flatten)]
3227    pub extra: Object,
3228}
3229
3230/// The data of a `com.wellfriend.document.editor.pdf.transaction.applied.v1` event.
3231#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3232pub struct DocumentEditorPdfTransactionAppliedV1Data {
3233    /// The `transactionId` field.
3234    #[serde(rename = "transactionId", default)]
3235    pub transaction_id: String,
3236    /// The `sessionId` field.
3237    #[serde(rename = "sessionId", default, skip_serializing_if = "Option::is_none")]
3238    pub session_id: Option<String>,
3239    /// The `sourceVersionId` field.
3240    #[serde(
3241        rename = "sourceVersionId",
3242        default,
3243        skip_serializing_if = "Option::is_none"
3244    )]
3245    pub source_version_id: Option<String>,
3246    /// The `resultVersionId` field.
3247    #[serde(
3248        rename = "resultVersionId",
3249        default,
3250        skip_serializing_if = "Option::is_none"
3251    )]
3252    pub result_version_id: Option<String>,
3253    /// The `capability` field.
3254    #[serde(default, skip_serializing_if = "Option::is_none")]
3255    pub capability: Option<String>,
3256    /// The `signatureEffect` field.
3257    #[serde(
3258        rename = "signatureEffect",
3259        default,
3260        skip_serializing_if = "Option::is_none"
3261    )]
3262    pub signature_effect: Option<String>,
3263    /// The `inputSha256` field.
3264    #[serde(
3265        rename = "inputSha256",
3266        default,
3267        skip_serializing_if = "Option::is_none"
3268    )]
3269    pub input_sha256: Option<String>,
3270    /// The `outputSha256` field.
3271    #[serde(
3272        rename = "outputSha256",
3273        default,
3274        skip_serializing_if = "Option::is_none"
3275    )]
3276    pub output_sha256: Option<String>,
3277    /// Provider detail, checked by the payload policy before delivery.
3278    #[serde(
3279        rename = "changedObjects",
3280        default,
3281        skip_serializing_if = "Option::is_none"
3282    )]
3283    pub changed_objects: Option<Vec<DocumentEditorPdfTransactionAppliedV1DataChangedObjectsItem>>,
3284    /// Provider detail, checked by the payload policy before delivery.
3285    #[serde(default, skip_serializing_if = "Option::is_none")]
3286    pub validation: Option<DocumentEditorPdfTransactionAppliedV1DataValidation>,
3287    /// Fields this SDK version does not model.
3288    #[serde(flatten)]
3289    pub extra: Object,
3290}
3291
3292/// The data of a `com.wellfriend.mcp.invocation.v1` event.
3293#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3294pub struct McpInvocationV1Data {
3295    /// The `schemaVersion` field.
3296    #[serde(
3297        rename = "schemaVersion",
3298        default,
3299        skip_serializing_if = "Option::is_none"
3300    )]
3301    pub schema_version: Option<String>,
3302    /// The `grantId` field.
3303    #[serde(rename = "grantId", default)]
3304    pub grant_id: String,
3305    /// The `method` field.
3306    #[serde(default, skip_serializing_if = "Option::is_none")]
3307    pub method: Option<String>,
3308    /// The `name` field.
3309    #[serde(default, skip_serializing_if = "Option::is_none")]
3310    pub name: Option<String>,
3311    /// The `ok` field.
3312    #[serde(default, skip_serializing_if = "Option::is_none")]
3313    pub ok: Option<bool>,
3314    /// The `latencyMs` field.
3315    #[serde(rename = "latencyMs", default, skip_serializing_if = "Option::is_none")]
3316    pub latency_ms: Option<i64>,
3317    /// The `commitment` field.
3318    #[serde(default, skip_serializing_if = "Option::is_none")]
3319    pub commitment: Option<String>,
3320    /// Fields this SDK version does not model.
3321    #[serde(flatten)]
3322    pub extra: Object,
3323}
3324
3325/// The data of a `com.wellfriend.connector.account.disconnected.v1` event.
3326#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3327pub struct ConnectorAccountDisconnectedV1Data {
3328    /// The `provider` field.
3329    #[serde(default, skip_serializing_if = "Option::is_none")]
3330    pub provider: Option<String>,
3331    /// The `effect` field.
3332    #[serde(default, skip_serializing_if = "Option::is_none")]
3333    pub effect: Option<String>,
3334    /// The `providerConsentRevoked` field.
3335    #[serde(
3336        rename = "providerConsentRevoked",
3337        default,
3338        skip_serializing_if = "Option::is_none"
3339    )]
3340    pub provider_consent_revoked: Option<bool>,
3341    /// The `reason` field.
3342    #[serde(default, skip_serializing_if = "Option::is_none")]
3343    pub reason: Option<String>,
3344    /// The `connectorEventHash` field.
3345    #[serde(
3346        rename = "connectorEventHash",
3347        default,
3348        skip_serializing_if = "Option::is_none"
3349    )]
3350    pub connector_event_hash: Option<String>,
3351    /// Fields this SDK version does not model.
3352    #[serde(flatten)]
3353    pub extra: Object,
3354}
3355
3356/// The data of a `com.wellfriend.connector.operation.started.v1` event.
3357#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3358pub struct ConnectorOperationStartedV1Data {
3359    /// The `operationId` field.
3360    #[serde(rename = "operationId", default)]
3361    pub operation_id: String,
3362    /// The `operation` field.
3363    #[serde(default, skip_serializing_if = "Option::is_none")]
3364    pub operation: Option<String>,
3365    /// The `providerResourceId` field.
3366    #[serde(
3367        rename = "providerResourceId",
3368        default,
3369        skip_serializing_if = "Option::is_none"
3370    )]
3371    pub provider_resource_id: Option<String>,
3372    /// The `provider` field.
3373    #[serde(default, skip_serializing_if = "Option::is_none")]
3374    pub provider: Option<String>,
3375    /// The `connectorEventHash` field.
3376    #[serde(
3377        rename = "connectorEventHash",
3378        default,
3379        skip_serializing_if = "Option::is_none"
3380    )]
3381    pub connector_event_hash: Option<String>,
3382    /// Fields this SDK version does not model.
3383    #[serde(flatten)]
3384    pub extra: Object,
3385}
3386
3387/// The data of a `com.wellfriend.connector.operation.completed.v1` event.
3388#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3389pub struct ConnectorOperationCompletedV1Data {
3390    /// The `operationId` field.
3391    #[serde(rename = "operationId", default)]
3392    pub operation_id: String,
3393    /// The `operation` field.
3394    #[serde(default, skip_serializing_if = "Option::is_none")]
3395    pub operation: Option<String>,
3396    /// The `documentId` field.
3397    #[serde(
3398        rename = "documentId",
3399        default,
3400        skip_serializing_if = "Option::is_none"
3401    )]
3402    pub document_id: Option<String>,
3403    /// The `documentVersionId` field.
3404    #[serde(
3405        rename = "documentVersionId",
3406        default,
3407        skip_serializing_if = "Option::is_none"
3408    )]
3409    pub document_version_id: Option<String>,
3410    /// The `sha256` field.
3411    #[serde(default, skip_serializing_if = "Option::is_none")]
3412    pub sha256: Option<String>,
3413    /// The `sizeBytes` field.
3414    #[serde(rename = "sizeBytes", default, skip_serializing_if = "Option::is_none")]
3415    pub size_bytes: Option<i64>,
3416    /// The `secureIngestion` field.
3417    #[serde(
3418        rename = "secureIngestion",
3419        default,
3420        skip_serializing_if = "Option::is_none"
3421    )]
3422    pub secure_ingestion: Option<String>,
3423    /// The `providerMessageId` field.
3424    #[serde(
3425        rename = "providerMessageId",
3426        default,
3427        skip_serializing_if = "Option::is_none"
3428    )]
3429    pub provider_message_id: Option<serde_json::Value>,
3430    /// The `secureLinkId` field.
3431    #[serde(
3432        rename = "secureLinkId",
3433        default,
3434        skip_serializing_if = "Option::is_none"
3435    )]
3436    pub secure_link_id: Option<serde_json::Value>,
3437    /// The `sentAt` field.
3438    #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")]
3439    pub sent_at: Option<serde_json::Value>,
3440    /// The `deliveryProof` field.
3441    #[serde(
3442        rename = "deliveryProof",
3443        default,
3444        skip_serializing_if = "Option::is_none"
3445    )]
3446    pub delivery_proof: Option<serde_json::Value>,
3447    /// The `providerResourceId` field.
3448    #[serde(
3449        rename = "providerResourceId",
3450        default,
3451        skip_serializing_if = "Option::is_none"
3452    )]
3453    pub provider_resource_id: Option<String>,
3454    /// The `providerVersion` field.
3455    #[serde(
3456        rename = "providerVersion",
3457        default,
3458        skip_serializing_if = "Option::is_none"
3459    )]
3460    pub provider_version: Option<serde_json::Value>,
3461    /// The `sourceVersionId` field.
3462    #[serde(
3463        rename = "sourceVersionId",
3464        default,
3465        skip_serializing_if = "Option::is_none"
3466    )]
3467    pub source_version_id: Option<serde_json::Value>,
3468    /// The `sourceSha256` field.
3469    #[serde(
3470        rename = "sourceSha256",
3471        default,
3472        skip_serializing_if = "Option::is_none"
3473    )]
3474    pub source_sha256: Option<serde_json::Value>,
3475    /// The `exportedAt` field.
3476    #[serde(
3477        rename = "exportedAt",
3478        default,
3479        skip_serializing_if = "Option::is_none"
3480    )]
3481    pub exported_at: Option<serde_json::Value>,
3482    /// The `replaced` field.
3483    #[serde(default, skip_serializing_if = "Option::is_none")]
3484    pub replaced: Option<serde_json::Value>,
3485    /// The `provider` field.
3486    #[serde(default, skip_serializing_if = "Option::is_none")]
3487    pub provider: Option<String>,
3488    /// The `connectorEventHash` field.
3489    #[serde(
3490        rename = "connectorEventHash",
3491        default,
3492        skip_serializing_if = "Option::is_none"
3493    )]
3494    pub connector_event_hash: Option<String>,
3495    /// Fields this SDK version does not model.
3496    #[serde(flatten)]
3497    pub extra: Object,
3498}
3499
3500/// The data of a `com.wellfriend.connector.operation.failed.v1` event.
3501#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3502pub struct ConnectorOperationFailedV1Data {
3503    /// The `operationId` field.
3504    #[serde(rename = "operationId", default)]
3505    pub operation_id: String,
3506    /// The `operation` field.
3507    #[serde(default, skip_serializing_if = "Option::is_none")]
3508    pub operation: Option<String>,
3509    /// The `errorCode` field.
3510    #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")]
3511    pub error_code: Option<String>,
3512    /// The `provider` field.
3513    #[serde(default, skip_serializing_if = "Option::is_none")]
3514    pub provider: Option<String>,
3515    /// The `connectorEventHash` field.
3516    #[serde(
3517        rename = "connectorEventHash",
3518        default,
3519        skip_serializing_if = "Option::is_none"
3520    )]
3521    pub connector_event_hash: Option<String>,
3522    /// Fields this SDK version does not model.
3523    #[serde(flatten)]
3524    pub extra: Object,
3525}
3526
3527/// The data of a `com.wellfriend.connector.operation.outcome_uncertain.v1` event.
3528#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3529pub struct ConnectorOperationOutcomeUncertainV1Data {
3530    /// The `operationId` field.
3531    #[serde(rename = "operationId", default)]
3532    pub operation_id: String,
3533    /// The `operation` field.
3534    #[serde(default, skip_serializing_if = "Option::is_none")]
3535    pub operation: Option<String>,
3536    /// The `errorCode` field.
3537    #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")]
3538    pub error_code: Option<String>,
3539    /// The `provider` field.
3540    #[serde(default, skip_serializing_if = "Option::is_none")]
3541    pub provider: Option<String>,
3542    /// The `connectorEventHash` field.
3543    #[serde(
3544        rename = "connectorEventHash",
3545        default,
3546        skip_serializing_if = "Option::is_none"
3547    )]
3548    pub connector_event_hash: Option<String>,
3549    /// Fields this SDK version does not model.
3550    #[serde(flatten)]
3551    pub extra: Object,
3552}
3553
3554/// Provider detail, checked by the payload policy before delivery.
3555#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3556pub struct AgentIdentityCreatedV1DataApprovalPolicy {
3557    /// The `requireForTools` field.
3558    #[serde(
3559        rename = "requireForTools",
3560        default,
3561        skip_serializing_if = "Option::is_none"
3562    )]
3563    pub require_for_tools: Option<Vec<serde_json::Value>>,
3564    /// The `requireForClasses` field.
3565    #[serde(
3566        rename = "requireForClasses",
3567        default,
3568        skip_serializing_if = "Option::is_none"
3569    )]
3570    pub require_for_classes: Option<Vec<String>>,
3571    /// Fields this SDK version does not model.
3572    #[serde(flatten)]
3573    pub extra: Object,
3574}
3575
3576/// Provider detail, checked by the payload policy before delivery.
3577#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3578pub struct AgentIdentityCreatedV1DataBudget {
3579    /// The `tokenLimit` field.
3580    #[serde(
3581        rename = "tokenLimit",
3582        default,
3583        skip_serializing_if = "Option::is_none"
3584    )]
3585    pub token_limit: Option<i64>,
3586    /// The `currencyLimitMinor` field.
3587    #[serde(
3588        rename = "currencyLimitMinor",
3589        default,
3590        skip_serializing_if = "Option::is_none"
3591    )]
3592    pub currency_limit_minor: Option<i64>,
3593    /// The `toolCallLimit` field.
3594    #[serde(
3595        rename = "toolCallLimit",
3596        default,
3597        skip_serializing_if = "Option::is_none"
3598    )]
3599    pub tool_call_limit: Option<i64>,
3600    /// The `pageLimit` field.
3601    #[serde(rename = "pageLimit", default, skip_serializing_if = "Option::is_none")]
3602    pub page_limit: Option<i64>,
3603    /// The `jobLimit` field.
3604    #[serde(rename = "jobLimit", default, skip_serializing_if = "Option::is_none")]
3605    pub job_limit: Option<i64>,
3606    /// The `runtimeSeconds` field.
3607    #[serde(
3608        rename = "runtimeSeconds",
3609        default,
3610        skip_serializing_if = "Option::is_none"
3611    )]
3612    pub runtime_seconds: Option<i64>,
3613    /// The `recipientCount` field.
3614    #[serde(
3615        rename = "recipientCount",
3616        default,
3617        skip_serializing_if = "Option::is_none"
3618    )]
3619    pub recipient_count: Option<i64>,
3620    /// Fields this SDK version does not model.
3621    #[serde(flatten)]
3622    pub extra: Object,
3623}
3624
3625/// The data of a `com.wellfriend.agent.identity.created.v1` event.
3626#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3627pub struct AgentIdentityCreatedV1Data {
3628    /// The `agentType` field.
3629    #[serde(rename = "agentType", default, skip_serializing_if = "Option::is_none")]
3630    pub agent_type: Option<String>,
3631    /// Provider detail, checked by the payload policy before delivery.
3632    #[serde(
3633        rename = "allowedTools",
3634        default,
3635        skip_serializing_if = "Option::is_none"
3636    )]
3637    pub allowed_tools: Option<Vec<String>>,
3638    /// Provider detail, checked by the payload policy before delivery.
3639    #[serde(
3640        rename = "allowedResources",
3641        default,
3642        skip_serializing_if = "Option::is_none"
3643    )]
3644    pub allowed_resources: Option<Vec<String>>,
3645    /// Provider detail, checked by the payload policy before delivery.
3646    #[serde(
3647        rename = "approvalPolicy",
3648        default,
3649        skip_serializing_if = "Option::is_none"
3650    )]
3651    pub approval_policy: Option<AgentIdentityCreatedV1DataApprovalPolicy>,
3652    /// Provider detail, checked by the payload policy before delivery.
3653    #[serde(default, skip_serializing_if = "Option::is_none")]
3654    pub budget: Option<AgentIdentityCreatedV1DataBudget>,
3655    /// The `policyDecisionId` field.
3656    #[serde(
3657        rename = "policyDecisionId",
3658        default,
3659        skip_serializing_if = "Option::is_none"
3660    )]
3661    pub policy_decision_id: Option<String>,
3662    /// The `commitment` field.
3663    #[serde(default, skip_serializing_if = "Option::is_none")]
3664    pub commitment: Option<String>,
3665    /// Fields this SDK version does not model.
3666    #[serde(flatten)]
3667    pub extra: Object,
3668}
3669
3670/// The data of a `com.wellfriend.agent.identity.revoked.v1` event.
3671#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3672pub struct AgentIdentityRevokedV1Data {
3673    /// The `policyDecisionId` field.
3674    #[serde(
3675        rename = "policyDecisionId",
3676        default,
3677        skip_serializing_if = "Option::is_none"
3678    )]
3679    pub policy_decision_id: Option<String>,
3680    /// The `commitment` field.
3681    #[serde(default, skip_serializing_if = "Option::is_none")]
3682    pub commitment: Option<String>,
3683    /// Fields this SDK version does not model.
3684    #[serde(flatten)]
3685    pub extra: Object,
3686}
3687
3688/// The data of a `com.wellfriend.agent.run.created.v1` event.
3689#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3690pub struct AgentRunCreatedV1Data {
3691    /// The `agentId` field.
3692    #[serde(rename = "agentId", default, skip_serializing_if = "Option::is_none")]
3693    pub agent_id: Option<String>,
3694    /// The `toolName` field.
3695    #[serde(rename = "toolName", default, skip_serializing_if = "Option::is_none")]
3696    pub tool_name: Option<String>,
3697    /// The `sideEffectClass` field.
3698    #[serde(
3699        rename = "sideEffectClass",
3700        default,
3701        skip_serializing_if = "Option::is_none"
3702    )]
3703    pub side_effect_class: Option<String>,
3704    /// The `inputCommitment` field.
3705    #[serde(
3706        rename = "inputCommitment",
3707        default,
3708        skip_serializing_if = "Option::is_none"
3709    )]
3710    pub input_commitment: Option<String>,
3711    /// The `status` field.
3712    #[serde(default, skip_serializing_if = "Option::is_none")]
3713    pub status: Option<String>,
3714    /// The `commitment` field.
3715    #[serde(default, skip_serializing_if = "Option::is_none")]
3716    pub commitment: Option<String>,
3717    /// Fields this SDK version does not model.
3718    #[serde(flatten)]
3719    pub extra: Object,
3720}
3721
3722/// The data of a `com.wellfriend.agent.run.dry_run_completed.v1` event.
3723#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3724pub struct AgentRunDryRunCompletedV1Data {
3725    /// The `agentId` field.
3726    #[serde(rename = "agentId", default, skip_serializing_if = "Option::is_none")]
3727    pub agent_id: Option<String>,
3728    /// The `toolName` field.
3729    #[serde(rename = "toolName", default, skip_serializing_if = "Option::is_none")]
3730    pub tool_name: Option<String>,
3731    /// The `sideEffectClass` field.
3732    #[serde(
3733        rename = "sideEffectClass",
3734        default,
3735        skip_serializing_if = "Option::is_none"
3736    )]
3737    pub side_effect_class: Option<String>,
3738    /// The `inputCommitment` field.
3739    #[serde(
3740        rename = "inputCommitment",
3741        default,
3742        skip_serializing_if = "Option::is_none"
3743    )]
3744    pub input_commitment: Option<String>,
3745    /// The `status` field.
3746    #[serde(default, skip_serializing_if = "Option::is_none")]
3747    pub status: Option<String>,
3748    /// The `commitment` field.
3749    #[serde(default, skip_serializing_if = "Option::is_none")]
3750    pub commitment: Option<String>,
3751    /// Fields this SDK version does not model.
3752    #[serde(flatten)]
3753    pub extra: Object,
3754}
3755
3756/// The data of a `com.wellfriend.agent.approval.approved.v1` event.
3757#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3758pub struct AgentApprovalApprovedV1Data {
3759    /// The `runId` field.
3760    #[serde(rename = "runId", default)]
3761    pub run_id: String,
3762    /// The `toolCallId` field.
3763    #[serde(
3764        rename = "toolCallId",
3765        default,
3766        skip_serializing_if = "Option::is_none"
3767    )]
3768    pub tool_call_id: Option<String>,
3769    /// The `inputCommitment` field.
3770    #[serde(
3771        rename = "inputCommitment",
3772        default,
3773        skip_serializing_if = "Option::is_none"
3774    )]
3775    pub input_commitment: Option<String>,
3776    /// The `reason` field.
3777    #[serde(default, skip_serializing_if = "Option::is_none")]
3778    pub reason: Option<String>,
3779    /// The `policyDecisionId` field.
3780    #[serde(
3781        rename = "policyDecisionId",
3782        default,
3783        skip_serializing_if = "Option::is_none"
3784    )]
3785    pub policy_decision_id: Option<String>,
3786    /// The `commitment` field.
3787    #[serde(default, skip_serializing_if = "Option::is_none")]
3788    pub commitment: Option<String>,
3789    /// Fields this SDK version does not model.
3790    #[serde(flatten)]
3791    pub extra: Object,
3792}
3793
3794/// The data of a `com.wellfriend.agent.approval.rejected.v1` event.
3795#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3796pub struct AgentApprovalRejectedV1Data {
3797    /// The `runId` field.
3798    #[serde(rename = "runId", default)]
3799    pub run_id: String,
3800    /// The `toolCallId` field.
3801    #[serde(
3802        rename = "toolCallId",
3803        default,
3804        skip_serializing_if = "Option::is_none"
3805    )]
3806    pub tool_call_id: Option<String>,
3807    /// The `inputCommitment` field.
3808    #[serde(
3809        rename = "inputCommitment",
3810        default,
3811        skip_serializing_if = "Option::is_none"
3812    )]
3813    pub input_commitment: Option<String>,
3814    /// The `reason` field.
3815    #[serde(default, skip_serializing_if = "Option::is_none")]
3816    pub reason: Option<String>,
3817    /// The `policyDecisionId` field.
3818    #[serde(
3819        rename = "policyDecisionId",
3820        default,
3821        skip_serializing_if = "Option::is_none"
3822    )]
3823    pub policy_decision_id: Option<String>,
3824    /// The `commitment` field.
3825    #[serde(default, skip_serializing_if = "Option::is_none")]
3826    pub commitment: Option<String>,
3827    /// Fields this SDK version does not model.
3828    #[serde(flatten)]
3829    pub extra: Object,
3830}
3831
3832/// Provider detail, checked by the payload policy before delivery.
3833#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3834pub struct AgentToolCompletedV1DataUsage {
3835    /// The `tokenCount` field.
3836    #[serde(
3837        rename = "tokenCount",
3838        default,
3839        skip_serializing_if = "Option::is_none"
3840    )]
3841    pub token_count: Option<i64>,
3842    /// The `currencyMinor` field.
3843    #[serde(
3844        rename = "currencyMinor",
3845        default,
3846        skip_serializing_if = "Option::is_none"
3847    )]
3848    pub currency_minor: Option<i64>,
3849    /// The `toolCalls` field.
3850    #[serde(rename = "toolCalls", default, skip_serializing_if = "Option::is_none")]
3851    pub tool_calls: Option<i64>,
3852    /// The `pages` field.
3853    #[serde(default, skip_serializing_if = "Option::is_none")]
3854    pub pages: Option<i64>,
3855    /// The `jobs` field.
3856    #[serde(default, skip_serializing_if = "Option::is_none")]
3857    pub jobs: Option<i64>,
3858    /// The `recipients` field.
3859    #[serde(default, skip_serializing_if = "Option::is_none")]
3860    pub recipients: Option<i64>,
3861    /// Fields this SDK version does not model.
3862    #[serde(flatten)]
3863    pub extra: Object,
3864}
3865
3866/// The data of a `com.wellfriend.agent.tool.completed.v1` event.
3867#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3868pub struct AgentToolCompletedV1Data {
3869    /// The `toolCallId` field.
3870    #[serde(rename = "toolCallId", default)]
3871    pub tool_call_id: String,
3872    /// The `toolName` field.
3873    #[serde(rename = "toolName", default, skip_serializing_if = "Option::is_none")]
3874    pub tool_name: Option<String>,
3875    /// The `inputCommitment` field.
3876    #[serde(
3877        rename = "inputCommitment",
3878        default,
3879        skip_serializing_if = "Option::is_none"
3880    )]
3881    pub input_commitment: Option<String>,
3882    /// The `outputCommitment` field.
3883    #[serde(
3884        rename = "outputCommitment",
3885        default,
3886        skip_serializing_if = "Option::is_none"
3887    )]
3888    pub output_commitment: Option<String>,
3889    /// Provider detail, checked by the payload policy before delivery.
3890    #[serde(default, skip_serializing_if = "Option::is_none")]
3891    pub usage: Option<AgentToolCompletedV1DataUsage>,
3892    /// The `commitment` field.
3893    #[serde(default, skip_serializing_if = "Option::is_none")]
3894    pub commitment: Option<String>,
3895    /// Fields this SDK version does not model.
3896    #[serde(flatten)]
3897    pub extra: Object,
3898}
3899
3900/// The data of a `com.wellfriend.agent.tool.failed.v1` event.
3901#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3902pub struct AgentToolFailedV1Data {
3903    /// The `toolCallId` field.
3904    #[serde(rename = "toolCallId", default)]
3905    pub tool_call_id: String,
3906    /// The `toolName` field.
3907    #[serde(rename = "toolName", default, skip_serializing_if = "Option::is_none")]
3908    pub tool_name: Option<String>,
3909    /// The `inputCommitment` field.
3910    #[serde(
3911        rename = "inputCommitment",
3912        default,
3913        skip_serializing_if = "Option::is_none"
3914    )]
3915    pub input_commitment: Option<String>,
3916    /// The `errorCode` field.
3917    #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")]
3918    pub error_code: Option<String>,
3919    /// The `commitment` field.
3920    #[serde(default, skip_serializing_if = "Option::is_none")]
3921    pub commitment: Option<String>,
3922    /// Fields this SDK version does not model.
3923    #[serde(flatten)]
3924    pub extra: Object,
3925}
3926
3927/// The data of a `com.wellfriend.intelligence.extraction_schema.published.v1` event.
3928#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3929pub struct IntelligenceExtractionSchemaPublishedV1Data {
3930    /// The `schemaId` field.
3931    #[serde(rename = "schemaId", default)]
3932    pub schema_id: String,
3933    /// The `schemaVersionId` field.
3934    #[serde(
3935        rename = "schemaVersionId",
3936        default,
3937        skip_serializing_if = "Option::is_none"
3938    )]
3939    pub schema_version_id: Option<String>,
3940    /// The `version` field.
3941    #[serde(default, skip_serializing_if = "Option::is_none")]
3942    pub version: Option<i64>,
3943    /// The `contentSha256` field.
3944    #[serde(
3945        rename = "contentSha256",
3946        default,
3947        skip_serializing_if = "Option::is_none"
3948    )]
3949    pub content_sha256: Option<String>,
3950    /// Fields this SDK version does not model.
3951    #[serde(flatten)]
3952    pub extra: Object,
3953}
3954
3955/// The data of a `com.wellfriend.intelligence.assembly_template.published.v1` event.
3956#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3957pub struct IntelligenceAssemblyTemplatePublishedV1Data {
3958    /// The `templateId` field.
3959    #[serde(rename = "templateId", default)]
3960    pub template_id: String,
3961    /// The `templateVersionId` field.
3962    #[serde(
3963        rename = "templateVersionId",
3964        default,
3965        skip_serializing_if = "Option::is_none"
3966    )]
3967    pub template_version_id: Option<String>,
3968    /// The `version` field.
3969    #[serde(default, skip_serializing_if = "Option::is_none")]
3970    pub version: Option<i64>,
3971    /// The `contentSha256` field.
3972    #[serde(
3973        rename = "contentSha256",
3974        default,
3975        skip_serializing_if = "Option::is_none"
3976    )]
3977    pub content_sha256: Option<String>,
3978    /// Fields this SDK version does not model.
3979    #[serde(flatten)]
3980    pub extra: Object,
3981}
3982
3983/// The data of a `com.wellfriend.intelligence.translation_glossary.published.v1` event.
3984#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
3985pub struct IntelligenceTranslationGlossaryPublishedV1Data {
3986    /// The `glossaryId` field.
3987    #[serde(rename = "glossaryId", default)]
3988    pub glossary_id: String,
3989    /// The `glossaryVersionId` field.
3990    #[serde(
3991        rename = "glossaryVersionId",
3992        default,
3993        skip_serializing_if = "Option::is_none"
3994    )]
3995    pub glossary_version_id: Option<String>,
3996    /// The `version` field.
3997    #[serde(default, skip_serializing_if = "Option::is_none")]
3998    pub version: Option<i64>,
3999    /// The `contentSha256` field.
4000    #[serde(
4001        rename = "contentSha256",
4002        default,
4003        skip_serializing_if = "Option::is_none"
4004    )]
4005    pub content_sha256: Option<String>,
4006    /// Fields this SDK version does not model.
4007    #[serde(flatten)]
4008    pub extra: Object,
4009}
4010
4011/// The data of a `com.wellfriend.intelligence.case_file.created.v1` event.
4012#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4013pub struct IntelligenceCaseFileCreatedV1Data {
4014    /// The `caseFileId` field.
4015    #[serde(rename = "caseFileId", default)]
4016    pub case_file_id: String,
4017    /// Provider detail, checked by the payload policy before delivery.
4018    #[serde(
4019        rename = "documentVersionIds",
4020        default,
4021        skip_serializing_if = "Option::is_none"
4022    )]
4023    pub document_version_ids: Option<Vec<String>>,
4024    /// Fields this SDK version does not model.
4025    #[serde(flatten)]
4026    pub extra: Object,
4027}
4028
4029/// The data of a `com.wellfriend.intelligence.run.cancelled.v1` event.
4030#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4031pub struct IntelligenceRunCancelledV1Data {
4032    /// The `runId` field.
4033    #[serde(rename = "runId", default)]
4034    pub run_id: String,
4035    /// The `operationType` field.
4036    #[serde(
4037        rename = "operationType",
4038        default,
4039        skip_serializing_if = "Option::is_none"
4040    )]
4041    pub operation_type: Option<String>,
4042    /// The `reason` field.
4043    #[serde(default, skip_serializing_if = "Option::is_none")]
4044    pub reason: Option<String>,
4045    /// Fields this SDK version does not model.
4046    #[serde(flatten)]
4047    pub extra: Object,
4048}
4049
4050/// The data of a `com.wellfriend.intelligence.review.completed.v1` event.
4051#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4052pub struct IntelligenceReviewCompletedV1Data {
4053    /// The `runId` field.
4054    #[serde(rename = "runId", default)]
4055    pub run_id: String,
4056    /// The `operationType` field.
4057    #[serde(
4058        rename = "operationType",
4059        default,
4060        skip_serializing_if = "Option::is_none"
4061    )]
4062    pub operation_type: Option<String>,
4063    /// The `reviewItemId` field.
4064    #[serde(
4065        rename = "reviewItemId",
4066        default,
4067        skip_serializing_if = "Option::is_none"
4068    )]
4069    pub review_item_id: Option<String>,
4070    /// The `reviewDecisionId` field.
4071    #[serde(
4072        rename = "reviewDecisionId",
4073        default,
4074        skip_serializing_if = "Option::is_none"
4075    )]
4076    pub review_decision_id: Option<String>,
4077    /// The `decision` field.
4078    #[serde(default, skip_serializing_if = "Option::is_none")]
4079    pub decision: Option<String>,
4080    /// The `reason` field.
4081    #[serde(default, skip_serializing_if = "Option::is_none")]
4082    pub reason: Option<serde_json::Value>,
4083    /// Fields this SDK version does not model.
4084    #[serde(flatten)]
4085    pub extra: Object,
4086}
4087
4088/// The data of a `com.wellfriend.intelligence.normalisation.completed.v1` event.
4089#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4090pub struct IntelligenceNormalisationCompletedV1Data {
4091    /// The `runId` field.
4092    #[serde(rename = "runId", default)]
4093    pub run_id: String,
4094    /// The `operationType` field.
4095    #[serde(
4096        rename = "operationType",
4097        default,
4098        skip_serializing_if = "Option::is_none"
4099    )]
4100    pub operation_type: Option<String>,
4101    /// The `reviewState` field.
4102    #[serde(
4103        rename = "reviewState",
4104        default,
4105        skip_serializing_if = "Option::is_none"
4106    )]
4107    pub review_state: Option<String>,
4108    /// The `findingCount` field.
4109    #[serde(
4110        rename = "findingCount",
4111        default,
4112        skip_serializing_if = "Option::is_none"
4113    )]
4114    pub finding_count: Option<i64>,
4115    /// Fields this SDK version does not model.
4116    #[serde(flatten)]
4117    pub extra: Object,
4118}
4119
4120/// The data of a `com.wellfriend.intelligence.intake.completed.v1` event.
4121#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4122pub struct IntelligenceIntakeCompletedV1Data {
4123    /// The `runId` field.
4124    #[serde(rename = "runId", default)]
4125    pub run_id: String,
4126    /// The `operationType` field.
4127    #[serde(
4128        rename = "operationType",
4129        default,
4130        skip_serializing_if = "Option::is_none"
4131    )]
4132    pub operation_type: Option<String>,
4133    /// The `reviewState` field.
4134    #[serde(
4135        rename = "reviewState",
4136        default,
4137        skip_serializing_if = "Option::is_none"
4138    )]
4139    pub review_state: Option<String>,
4140    /// The `findingCount` field.
4141    #[serde(
4142        rename = "findingCount",
4143        default,
4144        skip_serializing_if = "Option::is_none"
4145    )]
4146    pub finding_count: Option<i64>,
4147    /// Fields this SDK version does not model.
4148    #[serde(flatten)]
4149    pub extra: Object,
4150}
4151
4152/// The data of a `com.wellfriend.intelligence.extraction.completed.v1` event.
4153#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4154pub struct IntelligenceExtractionCompletedV1Data {
4155    /// The `runId` field.
4156    #[serde(rename = "runId", default)]
4157    pub run_id: String,
4158    /// The `operationType` field.
4159    #[serde(
4160        rename = "operationType",
4161        default,
4162        skip_serializing_if = "Option::is_none"
4163    )]
4164    pub operation_type: Option<String>,
4165    /// The `reviewState` field.
4166    #[serde(
4167        rename = "reviewState",
4168        default,
4169        skip_serializing_if = "Option::is_none"
4170    )]
4171    pub review_state: Option<String>,
4172    /// The `findingCount` field.
4173    #[serde(
4174        rename = "findingCount",
4175        default,
4176        skip_serializing_if = "Option::is_none"
4177    )]
4178    pub finding_count: Option<i64>,
4179    /// Fields this SDK version does not model.
4180    #[serde(flatten)]
4181    pub extra: Object,
4182}
4183
4184/// The data of a `com.wellfriend.intelligence.comparison.completed.v1` event.
4185#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4186pub struct IntelligenceComparisonCompletedV1Data {
4187    /// The `runId` field.
4188    #[serde(rename = "runId", default)]
4189    pub run_id: String,
4190    /// The `operationType` field.
4191    #[serde(
4192        rename = "operationType",
4193        default,
4194        skip_serializing_if = "Option::is_none"
4195    )]
4196    pub operation_type: Option<String>,
4197    /// The `reviewState` field.
4198    #[serde(
4199        rename = "reviewState",
4200        default,
4201        skip_serializing_if = "Option::is_none"
4202    )]
4203    pub review_state: Option<String>,
4204    /// The `findingCount` field.
4205    #[serde(
4206        rename = "findingCount",
4207        default,
4208        skip_serializing_if = "Option::is_none"
4209    )]
4210    pub finding_count: Option<i64>,
4211    /// Fields this SDK version does not model.
4212    #[serde(flatten)]
4213    pub extra: Object,
4214}
4215
4216/// The data of a `com.wellfriend.intelligence.reconciliation.completed.v1` event.
4217#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4218pub struct IntelligenceReconciliationCompletedV1Data {
4219    /// The `runId` field.
4220    #[serde(rename = "runId", default)]
4221    pub run_id: String,
4222    /// The `operationType` field.
4223    #[serde(
4224        rename = "operationType",
4225        default,
4226        skip_serializing_if = "Option::is_none"
4227    )]
4228    pub operation_type: Option<String>,
4229    /// The `reviewState` field.
4230    #[serde(
4231        rename = "reviewState",
4232        default,
4233        skip_serializing_if = "Option::is_none"
4234    )]
4235    pub review_state: Option<String>,
4236    /// The `findingCount` field.
4237    #[serde(
4238        rename = "findingCount",
4239        default,
4240        skip_serializing_if = "Option::is_none"
4241    )]
4242    pub finding_count: Option<i64>,
4243    /// Fields this SDK version does not model.
4244    #[serde(flatten)]
4245    pub extra: Object,
4246}
4247
4248/// The data of a `com.wellfriend.intelligence.completeness.completed.v1` event.
4249#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4250pub struct IntelligenceCompletenessCompletedV1Data {
4251    /// The `runId` field.
4252    #[serde(rename = "runId", default)]
4253    pub run_id: String,
4254    /// The `operationType` field.
4255    #[serde(
4256        rename = "operationType",
4257        default,
4258        skip_serializing_if = "Option::is_none"
4259    )]
4260    pub operation_type: Option<String>,
4261    /// The `reviewState` field.
4262    #[serde(
4263        rename = "reviewState",
4264        default,
4265        skip_serializing_if = "Option::is_none"
4266    )]
4267    pub review_state: Option<String>,
4268    /// The `findingCount` field.
4269    #[serde(
4270        rename = "findingCount",
4271        default,
4272        skip_serializing_if = "Option::is_none"
4273    )]
4274    pub finding_count: Option<i64>,
4275    /// Fields this SDK version does not model.
4276    #[serde(flatten)]
4277    pub extra: Object,
4278}
4279
4280/// The data of a `com.wellfriend.intelligence.qa.completed.v1` event.
4281#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4282pub struct IntelligenceQaCompletedV1Data {
4283    /// The `runId` field.
4284    #[serde(rename = "runId", default)]
4285    pub run_id: String,
4286    /// The `operationType` field.
4287    #[serde(
4288        rename = "operationType",
4289        default,
4290        skip_serializing_if = "Option::is_none"
4291    )]
4292    pub operation_type: Option<String>,
4293    /// The `reviewState` field.
4294    #[serde(
4295        rename = "reviewState",
4296        default,
4297        skip_serializing_if = "Option::is_none"
4298    )]
4299    pub review_state: Option<String>,
4300    /// The `findingCount` field.
4301    #[serde(
4302        rename = "findingCount",
4303        default,
4304        skip_serializing_if = "Option::is_none"
4305    )]
4306    pub finding_count: Option<i64>,
4307    /// Fields this SDK version does not model.
4308    #[serde(flatten)]
4309    pub extra: Object,
4310}
4311
4312/// The data of a `com.wellfriend.intelligence.redaction.completed.v1` event.
4313#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4314pub struct IntelligenceRedactionCompletedV1Data {
4315    /// The `runId` field.
4316    #[serde(rename = "runId", default)]
4317    pub run_id: String,
4318    /// The `operationType` field.
4319    #[serde(
4320        rename = "operationType",
4321        default,
4322        skip_serializing_if = "Option::is_none"
4323    )]
4324    pub operation_type: Option<String>,
4325    /// The `reviewState` field.
4326    #[serde(
4327        rename = "reviewState",
4328        default,
4329        skip_serializing_if = "Option::is_none"
4330    )]
4331    pub review_state: Option<String>,
4332    /// The `findingCount` field.
4333    #[serde(
4334        rename = "findingCount",
4335        default,
4336        skip_serializing_if = "Option::is_none"
4337    )]
4338    pub finding_count: Option<i64>,
4339    /// Fields this SDK version does not model.
4340    #[serde(flatten)]
4341    pub extra: Object,
4342}
4343
4344/// The data of a `com.wellfriend.intelligence.risk.completed.v1` event.
4345#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4346pub struct IntelligenceRiskCompletedV1Data {
4347    /// The `runId` field.
4348    #[serde(rename = "runId", default)]
4349    pub run_id: String,
4350    /// The `operationType` field.
4351    #[serde(
4352        rename = "operationType",
4353        default,
4354        skip_serializing_if = "Option::is_none"
4355    )]
4356    pub operation_type: Option<String>,
4357    /// The `reviewState` field.
4358    #[serde(
4359        rename = "reviewState",
4360        default,
4361        skip_serializing_if = "Option::is_none"
4362    )]
4363    pub review_state: Option<String>,
4364    /// The `findingCount` field.
4365    #[serde(
4366        rename = "findingCount",
4367        default,
4368        skip_serializing_if = "Option::is_none"
4369    )]
4370    pub finding_count: Option<i64>,
4371    /// Fields this SDK version does not model.
4372    #[serde(flatten)]
4373    pub extra: Object,
4374}
4375
4376/// The data of a `com.wellfriend.intelligence.assembly.completed.v1` event.
4377#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4378pub struct IntelligenceAssemblyCompletedV1Data {
4379    /// The `runId` field.
4380    #[serde(rename = "runId", default)]
4381    pub run_id: String,
4382    /// The `operationType` field.
4383    #[serde(
4384        rename = "operationType",
4385        default,
4386        skip_serializing_if = "Option::is_none"
4387    )]
4388    pub operation_type: Option<String>,
4389    /// The `reviewState` field.
4390    #[serde(
4391        rename = "reviewState",
4392        default,
4393        skip_serializing_if = "Option::is_none"
4394    )]
4395    pub review_state: Option<String>,
4396    /// The `findingCount` field.
4397    #[serde(
4398        rename = "findingCount",
4399        default,
4400        skip_serializing_if = "Option::is_none"
4401    )]
4402    pub finding_count: Option<i64>,
4403    /// Fields this SDK version does not model.
4404    #[serde(flatten)]
4405    pub extra: Object,
4406}
4407
4408/// The data of a `com.wellfriend.intelligence.translation.completed.v1` event.
4409#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4410pub struct IntelligenceTranslationCompletedV1Data {
4411    /// The `runId` field.
4412    #[serde(rename = "runId", default)]
4413    pub run_id: String,
4414    /// The `operationType` field.
4415    #[serde(
4416        rename = "operationType",
4417        default,
4418        skip_serializing_if = "Option::is_none"
4419    )]
4420    pub operation_type: Option<String>,
4421    /// The `reviewState` field.
4422    #[serde(
4423        rename = "reviewState",
4424        default,
4425        skip_serializing_if = "Option::is_none"
4426    )]
4427    pub review_state: Option<String>,
4428    /// The `findingCount` field.
4429    #[serde(
4430        rename = "findingCount",
4431        default,
4432        skip_serializing_if = "Option::is_none"
4433    )]
4434    pub finding_count: Option<i64>,
4435    /// Fields this SDK version does not model.
4436    #[serde(flatten)]
4437    pub extra: Object,
4438}
4439
4440/// The data of a `com.wellfriend.intelligence.case_analysis.completed.v1` event.
4441#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4442pub struct IntelligenceCaseAnalysisCompletedV1Data {
4443    /// The `runId` field.
4444    #[serde(rename = "runId", default)]
4445    pub run_id: String,
4446    /// The `operationType` field.
4447    #[serde(
4448        rename = "operationType",
4449        default,
4450        skip_serializing_if = "Option::is_none"
4451    )]
4452    pub operation_type: Option<String>,
4453    /// The `reviewState` field.
4454    #[serde(
4455        rename = "reviewState",
4456        default,
4457        skip_serializing_if = "Option::is_none"
4458    )]
4459    pub review_state: Option<String>,
4460    /// The `findingCount` field.
4461    #[serde(
4462        rename = "findingCount",
4463        default,
4464        skip_serializing_if = "Option::is_none"
4465    )]
4466    pub finding_count: Option<i64>,
4467    /// Fields this SDK version does not model.
4468    #[serde(flatten)]
4469    pub extra: Object,
4470}
4471
4472/// The data of a `com.wellfriend.intelligence.indexing.completed.v1` event.
4473#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4474pub struct IntelligenceIndexingCompletedV1Data {
4475    /// The `runId` field.
4476    #[serde(rename = "runId", default)]
4477    pub run_id: String,
4478    /// The `operationType` field.
4479    #[serde(
4480        rename = "operationType",
4481        default,
4482        skip_serializing_if = "Option::is_none"
4483    )]
4484    pub operation_type: Option<String>,
4485    /// The `reviewState` field.
4486    #[serde(
4487        rename = "reviewState",
4488        default,
4489        skip_serializing_if = "Option::is_none"
4490    )]
4491    pub review_state: Option<String>,
4492    /// The `findingCount` field.
4493    #[serde(
4494        rename = "findingCount",
4495        default,
4496        skip_serializing_if = "Option::is_none"
4497    )]
4498    pub finding_count: Option<i64>,
4499    /// Fields this SDK version does not model.
4500    #[serde(flatten)]
4501    pub extra: Object,
4502}
4503
4504/// The data of a `com.wellfriend.intelligence.document.classified.v1` event.
4505#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4506pub struct IntelligenceDocumentClassifiedV1Data {
4507    /// The `runId` field.
4508    #[serde(rename = "runId", default)]
4509    pub run_id: String,
4510    /// The `operationType` field.
4511    #[serde(
4512        rename = "operationType",
4513        default,
4514        skip_serializing_if = "Option::is_none"
4515    )]
4516    pub operation_type: Option<String>,
4517    /// The `reviewState` field.
4518    #[serde(
4519        rename = "reviewState",
4520        default,
4521        skip_serializing_if = "Option::is_none"
4522    )]
4523    pub review_state: Option<String>,
4524    /// The `findingCount` field.
4525    #[serde(
4526        rename = "findingCount",
4527        default,
4528        skip_serializing_if = "Option::is_none"
4529    )]
4530    pub finding_count: Option<i64>,
4531    /// Fields this SDK version does not model.
4532    #[serde(flatten)]
4533    pub extra: Object,
4534}
4535
4536/// The data of a `com.wellfriend.intelligence.extraction.review_required.v1` event.
4537#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4538pub struct IntelligenceExtractionReviewRequiredV1Data {
4539    /// The `runId` field.
4540    #[serde(rename = "runId", default)]
4541    pub run_id: String,
4542    /// The `operationType` field.
4543    #[serde(
4544        rename = "operationType",
4545        default,
4546        skip_serializing_if = "Option::is_none"
4547    )]
4548    pub operation_type: Option<String>,
4549    /// The `reviewState` field.
4550    #[serde(
4551        rename = "reviewState",
4552        default,
4553        skip_serializing_if = "Option::is_none"
4554    )]
4555    pub review_state: Option<String>,
4556    /// The `findingCount` field.
4557    #[serde(
4558        rename = "findingCount",
4559        default,
4560        skip_serializing_if = "Option::is_none"
4561    )]
4562    pub finding_count: Option<i64>,
4563    /// Fields this SDK version does not model.
4564    #[serde(flatten)]
4565    pub extra: Object,
4566}
4567
4568/// The data of a `com.wellfriend.intelligence.comparison.material_change.v1` event.
4569#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4570pub struct IntelligenceComparisonMaterialChangeV1Data {
4571    /// The `runId` field.
4572    #[serde(rename = "runId", default)]
4573    pub run_id: String,
4574    /// The `operationType` field.
4575    #[serde(
4576        rename = "operationType",
4577        default,
4578        skip_serializing_if = "Option::is_none"
4579    )]
4580    pub operation_type: Option<String>,
4581    /// The `reviewState` field.
4582    #[serde(
4583        rename = "reviewState",
4584        default,
4585        skip_serializing_if = "Option::is_none"
4586    )]
4587    pub review_state: Option<String>,
4588    /// The `findingCount` field.
4589    #[serde(
4590        rename = "findingCount",
4591        default,
4592        skip_serializing_if = "Option::is_none"
4593    )]
4594    pub finding_count: Option<i64>,
4595    /// Fields this SDK version does not model.
4596    #[serde(flatten)]
4597    pub extra: Object,
4598}
4599
4600/// The data of a `com.wellfriend.intelligence.reconciliation.exception.v1` event.
4601#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4602pub struct IntelligenceReconciliationExceptionV1Data {
4603    /// The `runId` field.
4604    #[serde(rename = "runId", default)]
4605    pub run_id: String,
4606    /// The `operationType` field.
4607    #[serde(
4608        rename = "operationType",
4609        default,
4610        skip_serializing_if = "Option::is_none"
4611    )]
4612    pub operation_type: Option<String>,
4613    /// The `reviewState` field.
4614    #[serde(
4615        rename = "reviewState",
4616        default,
4617        skip_serializing_if = "Option::is_none"
4618    )]
4619    pub review_state: Option<String>,
4620    /// The `findingCount` field.
4621    #[serde(
4622        rename = "findingCount",
4623        default,
4624        skip_serializing_if = "Option::is_none"
4625    )]
4626    pub finding_count: Option<i64>,
4627    /// Fields this SDK version does not model.
4628    #[serde(flatten)]
4629    pub extra: Object,
4630}
4631
4632/// The data of a `com.wellfriend.intelligence.reconciliation.exception_found.v1` event.
4633#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4634pub struct IntelligenceReconciliationExceptionFoundV1Data {
4635    /// The `runId` field.
4636    #[serde(rename = "runId", default)]
4637    pub run_id: String,
4638    /// The `operationType` field.
4639    #[serde(
4640        rename = "operationType",
4641        default,
4642        skip_serializing_if = "Option::is_none"
4643    )]
4644    pub operation_type: Option<String>,
4645    /// The `reviewState` field.
4646    #[serde(
4647        rename = "reviewState",
4648        default,
4649        skip_serializing_if = "Option::is_none"
4650    )]
4651    pub review_state: Option<String>,
4652    /// The `findingCount` field.
4653    #[serde(
4654        rename = "findingCount",
4655        default,
4656        skip_serializing_if = "Option::is_none"
4657    )]
4658    pub finding_count: Option<i64>,
4659    /// Fields this SDK version does not model.
4660    #[serde(flatten)]
4661    pub extra: Object,
4662}
4663
4664/// The data of a `com.wellfriend.intelligence.completeness.failed.v1` event.
4665#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4666pub struct IntelligenceCompletenessFailedV1Data {
4667    /// The `runId` field.
4668    #[serde(rename = "runId", default)]
4669    pub run_id: String,
4670    /// The `operationType` field.
4671    #[serde(
4672        rename = "operationType",
4673        default,
4674        skip_serializing_if = "Option::is_none"
4675    )]
4676    pub operation_type: Option<String>,
4677    /// The `reviewState` field.
4678    #[serde(
4679        rename = "reviewState",
4680        default,
4681        skip_serializing_if = "Option::is_none"
4682    )]
4683    pub review_state: Option<String>,
4684    /// The `findingCount` field.
4685    #[serde(
4686        rename = "findingCount",
4687        default,
4688        skip_serializing_if = "Option::is_none"
4689    )]
4690    pub finding_count: Option<i64>,
4691    /// Fields this SDK version does not model.
4692    #[serde(flatten)]
4693    pub extra: Object,
4694}
4695
4696/// The data of a `com.wellfriend.intelligence.risk.finding.v1` event.
4697#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4698pub struct IntelligenceRiskFindingV1Data {
4699    /// The `runId` field.
4700    #[serde(rename = "runId", default)]
4701    pub run_id: String,
4702    /// The `operationType` field.
4703    #[serde(
4704        rename = "operationType",
4705        default,
4706        skip_serializing_if = "Option::is_none"
4707    )]
4708    pub operation_type: Option<String>,
4709    /// The `reviewState` field.
4710    #[serde(
4711        rename = "reviewState",
4712        default,
4713        skip_serializing_if = "Option::is_none"
4714    )]
4715    pub review_state: Option<String>,
4716    /// The `findingCount` field.
4717    #[serde(
4718        rename = "findingCount",
4719        default,
4720        skip_serializing_if = "Option::is_none"
4721    )]
4722    pub finding_count: Option<i64>,
4723    /// Fields this SDK version does not model.
4724    #[serde(flatten)]
4725    pub extra: Object,
4726}
4727
4728/// The data of a `com.wellfriend.intelligence.redaction.ready_for_review.v1` event.
4729#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4730pub struct IntelligenceRedactionReadyForReviewV1Data {
4731    /// The `runId` field.
4732    #[serde(rename = "runId", default)]
4733    pub run_id: String,
4734    /// The `operationType` field.
4735    #[serde(
4736        rename = "operationType",
4737        default,
4738        skip_serializing_if = "Option::is_none"
4739    )]
4740    pub operation_type: Option<String>,
4741    /// The `reviewState` field.
4742    #[serde(
4743        rename = "reviewState",
4744        default,
4745        skip_serializing_if = "Option::is_none"
4746    )]
4747    pub review_state: Option<String>,
4748    /// The `findingCount` field.
4749    #[serde(
4750        rename = "findingCount",
4751        default,
4752        skip_serializing_if = "Option::is_none"
4753    )]
4754    pub finding_count: Option<i64>,
4755    /// Fields this SDK version does not model.
4756    #[serde(flatten)]
4757    pub extra: Object,
4758}
4759
4760/// The data of a `com.wellfriend.room.created.v1` event.
4761#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4762pub struct RoomCreatedV1Data {
4763    /// The `roomId` field.
4764    #[serde(rename = "roomId", default)]
4765    pub room_id: String,
4766    /// The `resourceId` field.
4767    #[serde(
4768        rename = "resourceId",
4769        default,
4770        skip_serializing_if = "Option::is_none"
4771    )]
4772    pub resource_id: Option<serde_json::Value>,
4773    /// Fields this SDK version does not model.
4774    #[serde(flatten)]
4775    pub extra: Object,
4776}
4777
4778/// The data of a `com.wellfriend.room.internal_review_requested.v1` event.
4779#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4780pub struct RoomInternalReviewRequestedV1Data {
4781    /// The `roomId` field.
4782    #[serde(rename = "roomId", default)]
4783    pub room_id: String,
4784    /// The `resourceId` field.
4785    #[serde(
4786        rename = "resourceId",
4787        default,
4788        skip_serializing_if = "Option::is_none"
4789    )]
4790    pub resource_id: Option<serde_json::Value>,
4791    /// Fields this SDK version does not model.
4792    #[serde(flatten)]
4793    pub extra: Object,
4794}
4795
4796/// The data of a `com.wellfriend.room.open.v1` event.
4797#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4798pub struct RoomOpenV1Data {
4799    /// The `roomId` field.
4800    #[serde(rename = "roomId", default)]
4801    pub room_id: String,
4802    /// The `resourceId` field.
4803    #[serde(
4804        rename = "resourceId",
4805        default,
4806        skip_serializing_if = "Option::is_none"
4807    )]
4808    pub resource_id: Option<serde_json::Value>,
4809    /// Fields this SDK version does not model.
4810    #[serde(flatten)]
4811    pub extra: Object,
4812}
4813
4814/// The data of a `com.wellfriend.room.paused.v1` event.
4815#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4816pub struct RoomPausedV1Data {
4817    /// The `roomId` field.
4818    #[serde(rename = "roomId", default)]
4819    pub room_id: String,
4820    /// The `resourceId` field.
4821    #[serde(
4822        rename = "resourceId",
4823        default,
4824        skip_serializing_if = "Option::is_none"
4825    )]
4826    pub resource_id: Option<serde_json::Value>,
4827    /// Fields this SDK version does not model.
4828    #[serde(flatten)]
4829    pub extra: Object,
4830}
4831
4832/// The data of a `com.wellfriend.room.closed.v1` event.
4833#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4834pub struct RoomClosedV1Data {
4835    /// The `roomId` field.
4836    #[serde(rename = "roomId", default)]
4837    pub room_id: String,
4838    /// The `resourceId` field.
4839    #[serde(
4840        rename = "resourceId",
4841        default,
4842        skip_serializing_if = "Option::is_none"
4843    )]
4844    pub resource_id: Option<serde_json::Value>,
4845    /// Fields this SDK version does not model.
4846    #[serde(flatten)]
4847    pub extra: Object,
4848}
4849
4850/// The data of a `com.wellfriend.room.archived.v1` event.
4851#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4852pub struct RoomArchivedV1Data {
4853    /// The `roomId` field.
4854    #[serde(rename = "roomId", default)]
4855    pub room_id: String,
4856    /// The `resourceId` field.
4857    #[serde(
4858        rename = "resourceId",
4859        default,
4860        skip_serializing_if = "Option::is_none"
4861    )]
4862    pub resource_id: Option<serde_json::Value>,
4863    /// Fields this SDK version does not model.
4864    #[serde(flatten)]
4865    pub extra: Object,
4866}
4867
4868/// The data of a `com.wellfriend.room.archive.created.v1` event.
4869#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4870pub struct RoomArchiveCreatedV1Data {
4871    /// The `roomId` field.
4872    #[serde(rename = "roomId", default)]
4873    pub room_id: String,
4874    /// The `resourceId` field.
4875    #[serde(
4876        rename = "resourceId",
4877        default,
4878        skip_serializing_if = "Option::is_none"
4879    )]
4880    pub resource_id: Option<String>,
4881    /// Fields this SDK version does not model.
4882    #[serde(flatten)]
4883    pub extra: Object,
4884}
4885
4886/// The data of a `com.wellfriend.room.folder.created.v1` event.
4887#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4888pub struct RoomFolderCreatedV1Data {
4889    /// The `roomId` field.
4890    #[serde(rename = "roomId", default)]
4891    pub room_id: String,
4892    /// The `resourceId` field.
4893    #[serde(
4894        rename = "resourceId",
4895        default,
4896        skip_serializing_if = "Option::is_none"
4897    )]
4898    pub resource_id: Option<String>,
4899    /// Fields this SDK version does not model.
4900    #[serde(flatten)]
4901    pub extra: Object,
4902}
4903
4904/// The data of a `com.wellfriend.room.folder.updated.v1` event.
4905#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4906pub struct RoomFolderUpdatedV1Data {
4907    /// The `roomId` field.
4908    #[serde(rename = "roomId", default)]
4909    pub room_id: String,
4910    /// The `resourceId` field.
4911    #[serde(
4912        rename = "resourceId",
4913        default,
4914        skip_serializing_if = "Option::is_none"
4915    )]
4916    pub resource_id: Option<String>,
4917    /// Fields this SDK version does not model.
4918    #[serde(flatten)]
4919    pub extra: Object,
4920}
4921
4922/// The data of a `com.wellfriend.room.document.added.v1` event.
4923#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4924pub struct RoomDocumentAddedV1Data {
4925    /// The `roomId` field.
4926    #[serde(rename = "roomId", default)]
4927    pub room_id: String,
4928    /// The `resourceId` field.
4929    #[serde(
4930        rename = "resourceId",
4931        default,
4932        skip_serializing_if = "Option::is_none"
4933    )]
4934    pub resource_id: Option<String>,
4935    /// Fields this SDK version does not model.
4936    #[serde(flatten)]
4937    pub extra: Object,
4938}
4939
4940/// The data of a `com.wellfriend.room.document.updated.v1` event.
4941#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4942pub struct RoomDocumentUpdatedV1Data {
4943    /// The `roomId` field.
4944    #[serde(rename = "roomId", default)]
4945    pub room_id: String,
4946    /// The `resourceId` field.
4947    #[serde(
4948        rename = "resourceId",
4949        default,
4950        skip_serializing_if = "Option::is_none"
4951    )]
4952    pub resource_id: Option<String>,
4953    /// Fields this SDK version does not model.
4954    #[serde(flatten)]
4955    pub extra: Object,
4956}
4957
4958/// The data of a `com.wellfriend.room.group.created.v1` event.
4959#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4960pub struct RoomGroupCreatedV1Data {
4961    /// The `roomId` field.
4962    #[serde(rename = "roomId", default)]
4963    pub room_id: String,
4964    /// The `resourceId` field.
4965    #[serde(
4966        rename = "resourceId",
4967        default,
4968        skip_serializing_if = "Option::is_none"
4969    )]
4970    pub resource_id: Option<String>,
4971    /// Fields this SDK version does not model.
4972    #[serde(flatten)]
4973    pub extra: Object,
4974}
4975
4976/// The data of a `com.wellfriend.room.action_plan.created.v1` event.
4977#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4978pub struct RoomActionPlanCreatedV1Data {
4979    /// The `roomId` field.
4980    #[serde(rename = "roomId", default)]
4981    pub room_id: String,
4982    /// The `resourceId` field.
4983    #[serde(
4984        rename = "resourceId",
4985        default,
4986        skip_serializing_if = "Option::is_none"
4987    )]
4988    pub resource_id: Option<String>,
4989    /// Fields this SDK version does not model.
4990    #[serde(flatten)]
4991    pub extra: Object,
4992}
4993
4994/// The data of a `com.wellfriend.room.task.updated.v1` event.
4995#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
4996pub struct RoomTaskUpdatedV1Data {
4997    /// The `roomId` field.
4998    #[serde(rename = "roomId", default)]
4999    pub room_id: String,
5000    /// The `resourceId` field.
5001    #[serde(
5002        rename = "resourceId",
5003        default,
5004        skip_serializing_if = "Option::is_none"
5005    )]
5006    pub resource_id: Option<String>,
5007    /// Fields this SDK version does not model.
5008    #[serde(flatten)]
5009    pub extra: Object,
5010}
5011
5012/// The data of a `com.wellfriend.room.task.dependency_added.v1` event.
5013#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5014pub struct RoomTaskDependencyAddedV1Data {
5015    /// The `roomId` field.
5016    #[serde(rename = "roomId", default)]
5017    pub room_id: String,
5018    /// The `resourceId` field.
5019    #[serde(
5020        rename = "resourceId",
5021        default,
5022        skip_serializing_if = "Option::is_none"
5023    )]
5024    pub resource_id: Option<String>,
5025    /// Fields this SDK version does not model.
5026    #[serde(flatten)]
5027    pub extra: Object,
5028}
5029
5030/// The data of a `com.wellfriend.room.task.dependency_removed.v1` event.
5031#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5032pub struct RoomTaskDependencyRemovedV1Data {
5033    /// The `roomId` field.
5034    #[serde(rename = "roomId", default)]
5035    pub room_id: String,
5036    /// The `resourceId` field.
5037    #[serde(
5038        rename = "resourceId",
5039        default,
5040        skip_serializing_if = "Option::is_none"
5041    )]
5042    pub resource_id: Option<String>,
5043    /// Fields this SDK version does not model.
5044    #[serde(flatten)]
5045    pub extra: Object,
5046}
5047
5048/// The data of a `com.wellfriend.room.question.reopened.v1` event.
5049#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5050pub struct RoomQuestionReopenedV1Data {
5051    /// The `roomId` field.
5052    #[serde(rename = "roomId", default)]
5053    pub room_id: String,
5054    /// The `resourceId` field.
5055    #[serde(
5056        rename = "resourceId",
5057        default,
5058        skip_serializing_if = "Option::is_none"
5059    )]
5060    pub resource_id: Option<String>,
5061    /// Fields this SDK version does not model.
5062    #[serde(flatten)]
5063    pub extra: Object,
5064}
5065
5066/// The data of a `com.wellfriend.room.question.updated.v1` event.
5067#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5068pub struct RoomQuestionUpdatedV1Data {
5069    /// The `roomId` field.
5070    #[serde(rename = "roomId", default)]
5071    pub room_id: String,
5072    /// The `resourceId` field.
5073    #[serde(
5074        rename = "resourceId",
5075        default,
5076        skip_serializing_if = "Option::is_none"
5077    )]
5078    pub resource_id: Option<String>,
5079    /// Fields this SDK version does not model.
5080    #[serde(flatten)]
5081    pub extra: Object,
5082}
5083
5084/// The data of a `com.wellfriend.room.request.updated.v1` event.
5085#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5086pub struct RoomRequestUpdatedV1Data {
5087    /// The `roomId` field.
5088    #[serde(rename = "roomId", default)]
5089    pub room_id: String,
5090    /// The `resourceId` field.
5091    #[serde(
5092        rename = "resourceId",
5093        default,
5094        skip_serializing_if = "Option::is_none"
5095    )]
5096    pub resource_id: Option<String>,
5097    /// Fields this SDK version does not model.
5098    #[serde(flatten)]
5099    pub extra: Object,
5100}
5101
5102/// The data of a `com.wellfriend.room.request.evidence_rejected.v1` event.
5103#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5104pub struct RoomRequestEvidenceRejectedV1Data {
5105    /// The `roomId` field.
5106    #[serde(rename = "roomId", default)]
5107    pub room_id: String,
5108    /// The `resourceId` field.
5109    #[serde(
5110        rename = "resourceId",
5111        default,
5112        skip_serializing_if = "Option::is_none"
5113    )]
5114    pub resource_id: Option<String>,
5115    /// Fields this SDK version does not model.
5116    #[serde(flatten)]
5117    pub extra: Object,
5118}
5119
5120/// The data of a `com.wellfriend.portal.created.v1` event.
5121#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5122pub struct PortalCreatedV1Data {
5123    /// The `portalId` field.
5124    #[serde(rename = "portalId", default)]
5125    pub portal_id: String,
5126    /// Fields this SDK version does not model.
5127    #[serde(flatten)]
5128    pub extra: Object,
5129}
5130
5131/// The data of a `com.wellfriend.portal.updated.v1` event.
5132#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5133pub struct PortalUpdatedV1Data {
5134    /// The `portalId` field.
5135    #[serde(rename = "portalId", default)]
5136    pub portal_id: String,
5137    /// Fields this SDK version does not model.
5138    #[serde(flatten)]
5139    pub extra: Object,
5140}
5141
5142/// The data of a `com.wellfriend.portal.room.added.v1` event.
5143#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5144pub struct PortalRoomAddedV1Data {
5145    /// The `portalId` field.
5146    #[serde(rename = "portalId", default)]
5147    pub portal_id: String,
5148    /// The `roomId` field.
5149    #[serde(rename = "roomId", default, skip_serializing_if = "Option::is_none")]
5150    pub room_id: Option<String>,
5151    /// Fields this SDK version does not model.
5152    #[serde(flatten)]
5153    pub extra: Object,
5154}
5155
5156/// The data of a `com.wellfriend.portal.resource.created.v1` event.
5157#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5158pub struct PortalResourceCreatedV1Data {
5159    /// The `portalId` field.
5160    #[serde(rename = "portalId", default)]
5161    pub portal_id: String,
5162    /// The `resourceId` field.
5163    #[serde(
5164        rename = "resourceId",
5165        default,
5166        skip_serializing_if = "Option::is_none"
5167    )]
5168    pub resource_id: Option<String>,
5169    /// Fields this SDK version does not model.
5170    #[serde(flatten)]
5171    pub extra: Object,
5172}
5173
5174/// The data of a `com.wellfriend.webhook.test.v1` event.
5175#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5176pub struct WebhookTestV1Data {
5177    /// The `endpointId` field.
5178    #[serde(rename = "endpointId", default)]
5179    pub endpoint_id: String,
5180    /// The `test` field.
5181    #[serde(default, skip_serializing_if = "Option::is_none")]
5182    pub test: Option<bool>,
5183    /// Fields this SDK version does not model.
5184    #[serde(flatten)]
5185    pub extra: Object,
5186}
5187
5188/// The payload of a webhook event, by event type.
5189#[derive(Debug, Clone, PartialEq)]
5190#[non_exhaustive]
5191pub enum WebhookEventData {
5192    /// `com.wellfriend.document.version.created.v2`
5193    DocumentVersionCreatedV2(DocumentVersionCreatedV2Data),
5194    /// `com.wellfriend.document-operation.completed.v2`
5195    DocumentOperationCompletedV2(DocumentOperationCompletedV2Data),
5196    /// `com.wellfriend.document-operation.failed.v2`
5197    DocumentOperationFailedV2(DocumentOperationFailedV2Data),
5198    /// `com.wellfriend.document-operation.canceled.v2`
5199    DocumentOperationCanceledV2(DocumentOperationCanceledV2Data),
5200    /// `com.wellfriend.document-chain.completed.v2`
5201    DocumentChainCompletedV2(DocumentChainCompletedV2Data),
5202    /// `com.wellfriend.document-chain.failed.v2`
5203    DocumentChainFailedV2(DocumentChainFailedV2Data),
5204    /// `com.wellfriend.document-chain.canceled.v2`
5205    DocumentChainCanceledV2(DocumentChainCanceledV2Data),
5206    /// `com.wellfriend.secure-link.created.v2`
5207    SecureLinkCreatedV2(SecureLinkCreatedV2Data),
5208    /// `com.wellfriend.secure-link.revoked.v2`
5209    SecureLinkRevokedV2(SecureLinkRevokedV2Data),
5210    /// `com.wellfriend.workflow.published.v2`
5211    WorkflowPublishedV2(WorkflowPublishedV2Data),
5212    /// `com.wellfriend.workflow-run.started.v2`
5213    WorkflowRunStartedV2(WorkflowRunStartedV2Data),
5214    /// `com.wellfriend.workflow-run.completed.v2`
5215    WorkflowRunCompletedV2(WorkflowRunCompletedV2Data),
5216    /// `com.wellfriend.workflow-run.failed.v2`
5217    WorkflowRunFailedV2(WorkflowRunFailedV2Data),
5218    /// `com.wellfriend.workflow-run.cancelled.v2`
5219    WorkflowRunCancelledV2(WorkflowRunCancelledV2Data),
5220    /// `com.wellfriend.workflow-approval.decided.v2`
5221    WorkflowApprovalDecidedV2(WorkflowApprovalDecidedV2Data),
5222    /// `com.wellfriend.connector.operation.started.v2`
5223    ConnectorOperationStartedV2(ConnectorOperationStartedV2Data),
5224    /// `com.wellfriend.connector.operation.completed.v2`
5225    ConnectorOperationCompletedV2(ConnectorOperationCompletedV2Data),
5226    /// `com.wellfriend.connector.operation.failed.v2`
5227    ConnectorOperationFailedV2(ConnectorOperationFailedV2Data),
5228    /// `com.wellfriend.generic-http.received.v2`
5229    GenericHttpReceivedV2(GenericHttpReceivedV2Data),
5230    /// `com.wellfriend.webhook.test.v2`
5231    WebhookTestV2(WebhookTestV2Data),
5232    /// `com.wellfriend.webhook.endpoint.failing.v2`
5233    WebhookEndpointFailingV2(WebhookEndpointFailingV2Data),
5234    /// `com.wellfriend.webhook.endpoint.disabled.v2`
5235    WebhookEndpointDisabledV2(WebhookEndpointDisabledV2Data),
5236    /// `com.wellfriend.document.ai_operation.completed.v1`
5237    DocumentAiOperationCompletedV1(DocumentAiOperationCompletedV1Data),
5238    /// `com.wellfriend.document.ai_operation.failed.v1`
5239    DocumentAiOperationFailedV1(DocumentAiOperationFailedV1Data),
5240    /// `com.wellfriend.room.task.created.v1`
5241    RoomTaskCreatedV1(RoomTaskCreatedV1Data),
5242    /// `com.wellfriend.room.task.completed.v1`
5243    RoomTaskCompletedV1(RoomTaskCompletedV1Data),
5244    /// `com.wellfriend.room.request.created.v1`
5245    RoomRequestCreatedV1(RoomRequestCreatedV1Data),
5246    /// `com.wellfriend.room.request.submitted.v1`
5247    RoomRequestSubmittedV1(RoomRequestSubmittedV1Data),
5248    /// `com.wellfriend.room.request.satisfied.v1`
5249    RoomRequestSatisfiedV1(RoomRequestSatisfiedV1Data),
5250    /// `com.wellfriend.room.request.reopened.v1`
5251    RoomRequestReopenedV1(RoomRequestReopenedV1Data),
5252    /// `com.wellfriend.room.question.created.v1`
5253    RoomQuestionCreatedV1(RoomQuestionCreatedV1Data),
5254    /// `com.wellfriend.room.question.assigned.v1`
5255    RoomQuestionAssignedV1(RoomQuestionAssignedV1Data),
5256    /// `com.wellfriend.room.question.answered.v1`
5257    RoomQuestionAnsweredV1(RoomQuestionAnsweredV1Data),
5258    /// `com.wellfriend.room.question.closed.v1`
5259    RoomQuestionClosedV1(RoomQuestionClosedV1Data),
5260    /// `com.wellfriend.portal.published.v1`
5261    PortalPublishedV1(PortalPublishedV1Data),
5262    /// `com.wellfriend.portal.announcement.created.v1`
5263    PortalAnnouncementCreatedV1(PortalAnnouncementCreatedV1Data),
5264    /// `com.wellfriend.template.created.v2`
5265    TemplateCreatedV2(TemplateCreatedV2Data),
5266    /// `com.wellfriend.template.updated.v2`
5267    TemplateUpdatedV2(TemplateUpdatedV2Data),
5268    /// `com.wellfriend.template.publish.v2`
5269    TemplatePublishV2(TemplatePublishV2Data),
5270    /// `com.wellfriend.template.archive.v2`
5271    TemplateArchiveV2(TemplateArchiveV2Data),
5272    /// `com.wellfriend.signature_request.created.v2`
5273    SignatureRequestCreatedV2(SignatureRequestCreatedV2Data),
5274    /// `com.wellfriend.signature_request.updated.v2`
5275    SignatureRequestUpdatedV2(SignatureRequestUpdatedV2Data),
5276    /// `com.wellfriend.signature_request.activate.v2`
5277    SignatureRequestActivateV2(SignatureRequestActivateV2Data),
5278    /// `com.wellfriend.signature_request.complete.v2`
5279    SignatureRequestCompleteV2(SignatureRequestCompleteV2Data),
5280    /// `com.wellfriend.signature_request.cancel.v2`
5281    SignatureRequestCancelV2(SignatureRequestCancelV2Data),
5282    /// `com.wellfriend.annotation.created.v2`
5283    AnnotationCreatedV2(AnnotationCreatedV2Data),
5284    /// `com.wellfriend.annotation.updated.v2`
5285    AnnotationUpdatedV2(AnnotationUpdatedV2Data),
5286    /// `com.wellfriend.annotation.resolve.v2`
5287    AnnotationResolveV2(AnnotationResolveV2Data),
5288    /// `com.wellfriend.annotation.reopen.v2`
5289    AnnotationReopenV2(AnnotationReopenV2Data),
5290    /// `com.wellfriend.annotation.archive.v2`
5291    AnnotationArchiveV2(AnnotationArchiveV2Data),
5292    /// `com.wellfriend.form.created.v2`
5293    FormCreatedV2(FormCreatedV2Data),
5294    /// `com.wellfriend.form.updated.v2`
5295    FormUpdatedV2(FormUpdatedV2Data),
5296    /// `com.wellfriend.form.publish.v2`
5297    FormPublishV2(FormPublishV2Data),
5298    /// `com.wellfriend.form.close.v2`
5299    FormCloseV2(FormCloseV2Data),
5300    /// `com.wellfriend.form.archive.v2`
5301    FormArchiveV2(FormArchiveV2Data),
5302    /// `com.wellfriend.deal_room.created.v2`
5303    DealRoomCreatedV2(DealRoomCreatedV2Data),
5304    /// `com.wellfriend.deal_room.updated.v2`
5305    DealRoomUpdatedV2(DealRoomUpdatedV2Data),
5306    /// `com.wellfriend.deal_room.activate.v2`
5307    DealRoomActivateV2(DealRoomActivateV2Data),
5308    /// `com.wellfriend.deal_room.archive.v2`
5309    DealRoomArchiveV2(DealRoomArchiveV2Data),
5310    /// `com.wellfriend.portal.created.v2`
5311    PortalCreatedV2(PortalCreatedV2Data),
5312    /// `com.wellfriend.portal.updated.v2`
5313    PortalUpdatedV2(PortalUpdatedV2Data),
5314    /// `com.wellfriend.portal.publish.v2`
5315    PortalPublishV2(PortalPublishV2Data),
5316    /// `com.wellfriend.portal.archive.v2`
5317    PortalArchiveV2(PortalArchiveV2Data),
5318    /// `com.wellfriend.embed.created.v2`
5319    EmbedCreatedV2(EmbedCreatedV2Data),
5320    /// `com.wellfriend.embed.updated.v2`
5321    EmbedUpdatedV2(EmbedUpdatedV2Data),
5322    /// `com.wellfriend.embed.activate.v2`
5323    EmbedActivateV2(EmbedActivateV2Data),
5324    /// `com.wellfriend.embed.revoke.v2`
5325    EmbedRevokeV2(EmbedRevokeV2Data),
5326    /// `com.wellfriend.secure_link.created.v1`
5327    SecureLinkCreatedV1(SecureLinkCreatedV1Data),
5328    /// `com.wellfriend.secure_link.revoked.v1`
5329    SecureLinkRevokedV1(SecureLinkRevokedV1Data),
5330    /// `com.wellfriend.secure_link.recipients_added.v1`
5331    SecureLinkRecipientsAddedV1(SecureLinkRecipientsAddedV1Data),
5332    /// `com.wellfriend.secure_link.version_updated.v1`
5333    SecureLinkVersionUpdatedV1(SecureLinkVersionUpdatedV1Data),
5334    /// `com.wellfriend.secure_link.password_rotated.v1`
5335    SecureLinkPasswordRotatedV1(SecureLinkPasswordRotatedV1Data),
5336    /// `com.wellfriend.workflow.created.v1`
5337    WorkflowCreatedV1(WorkflowCreatedV1Data),
5338    /// `com.wellfriend.workflow.draft.updated.v1`
5339    WorkflowDraftUpdatedV1(WorkflowDraftUpdatedV1Data),
5340    /// `com.wellfriend.workflow.published.v1`
5341    WorkflowPublishedV1(WorkflowPublishedV1Data),
5342    /// `com.wellfriend.workflow.run.started.v1`
5343    WorkflowRunStartedV1(WorkflowRunStartedV1Data),
5344    /// `com.wellfriend.workflow.run.succeeded.v1`
5345    WorkflowRunSucceededV1(WorkflowRunSucceededV1Data),
5346    /// `com.wellfriend.workflow.run.failed.v1`
5347    WorkflowRunFailedV1(WorkflowRunFailedV1Data),
5348    /// `com.wellfriend.workflow.run.cancelled.v1`
5349    WorkflowRunCancelledV1(WorkflowRunCancelledV1Data),
5350    /// `com.wellfriend.workflow.step.completed.v1`
5351    WorkflowStepCompletedV1(WorkflowStepCompletedV1Data),
5352    /// `com.wellfriend.workflow.step.retry.scheduled.v1`
5353    WorkflowStepRetryScheduledV1(WorkflowStepRetryScheduledV1Data),
5354    /// `com.wellfriend.workflow.approval.approve.v1`
5355    WorkflowApprovalApproveV1(WorkflowApprovalApproveV1Data),
5356    /// `com.wellfriend.workflow.approval.reject.v1`
5357    WorkflowApprovalRejectV1(WorkflowApprovalRejectV1Data),
5358    /// `com.wellfriend.form.created.v1`
5359    FormCreatedV1(FormCreatedV1Data),
5360    /// `com.wellfriend.form.published.v1`
5361    FormPublishedV1(FormPublishedV1Data),
5362    /// `com.wellfriend.form.started.v1`
5363    FormStartedV1(FormStartedV1Data),
5364    /// `com.wellfriend.form.submitted.v1`
5365    FormSubmittedV1(FormSubmittedV1Data),
5366    /// `com.wellfriend.form.accepted.v1`
5367    FormAcceptedV1(FormAcceptedV1Data),
5368    /// `com.wellfriend.form.rejected.v1`
5369    FormRejectedV1(FormRejectedV1Data),
5370    /// `com.wellfriend.form.export.queued.v1`
5371    FormExportQueuedV1(FormExportQueuedV1Data),
5372    /// `com.wellfriend.form.export.completed.v1`
5373    FormExportCompletedV1(FormExportCompletedV1Data),
5374    /// `com.wellfriend.form.export.failed.v1`
5375    FormExportFailedV1(FormExportFailedV1Data),
5376    /// `com.wellfriend.annotation.created.v1`
5377    AnnotationCreatedV1(AnnotationCreatedV1Data),
5378    /// `com.wellfriend.annotation.updated.v1`
5379    AnnotationUpdatedV1(AnnotationUpdatedV1Data),
5380    /// `com.wellfriend.annotation.reply.created.v1`
5381    AnnotationReplyCreatedV1(AnnotationReplyCreatedV1Data),
5382    /// `com.wellfriend.annotation.resolved.v1`
5383    AnnotationResolvedV1(AnnotationResolvedV1Data),
5384    /// `com.wellfriend.annotation.reopened.v1`
5385    AnnotationReopenedV1(AnnotationReopenedV1Data),
5386    /// `com.wellfriend.annotation.migration.proposed.v1`
5387    AnnotationMigrationProposedV1(AnnotationMigrationProposedV1Data),
5388    /// `com.wellfriend.annotation.migration.reviewed.v1`
5389    AnnotationMigrationReviewedV1(AnnotationMigrationReviewedV1Data),
5390    /// `com.wellfriend.annotation.export.queued.v1`
5391    AnnotationExportQueuedV1(AnnotationExportQueuedV1Data),
5392    /// `com.wellfriend.annotation.export.completed.v1`
5393    AnnotationExportCompletedV1(AnnotationExportCompletedV1Data),
5394    /// `com.wellfriend.annotation.export.failed.v1`
5395    AnnotationExportFailedV1(AnnotationExportFailedV1Data),
5396    /// `com.wellfriend.signature.request.created.v1`
5397    SignatureRequestCreatedV1(SignatureRequestCreatedV1Data),
5398    /// `com.wellfriend.signature.request.cancelled.v1`
5399    SignatureRequestCancelledV1(SignatureRequestCancelledV1Data),
5400    /// `com.wellfriend.signature.request.evidence_finalized.v1`
5401    SignatureRequestEvidenceFinalizedV1(SignatureRequestEvidenceFinalizedV1Data),
5402    /// `com.wellfriend.signature.recipient.viewed.v1`
5403    SignatureRecipientViewedV1(SignatureRecipientViewedV1Data),
5404    /// `com.wellfriend.signature.recipient.challenge_sent.v1`
5405    SignatureRecipientChallengeSentV1(SignatureRecipientChallengeSentV1Data),
5406    /// `com.wellfriend.signature.recipient.verified.v1`
5407    SignatureRecipientVerifiedV1(SignatureRecipientVerifiedV1Data),
5408    /// `com.wellfriend.signature.recipient.signing_failed.v1`
5409    SignatureRecipientSigningFailedV1(SignatureRecipientSigningFailedV1Data),
5410    /// `com.wellfriend.signature.recipient.signed.v1`
5411    SignatureRecipientSignedV1(SignatureRecipientSignedV1Data),
5412    /// `com.wellfriend.signature.recipient.signature_validated.v1`
5413    SignatureRecipientSignatureValidatedV1(SignatureRecipientSignatureValidatedV1Data),
5414    /// `com.wellfriend.signature.validation.requested.v1`
5415    SignatureValidationRequestedV1(SignatureValidationRequestedV1Data),
5416    /// `com.wellfriend.signature.validation.failed.v1`
5417    SignatureValidationFailedV1(SignatureValidationFailedV1Data),
5418    /// `com.wellfriend.signature.validation.completed.v1`
5419    SignatureValidationCompletedV1(SignatureValidationCompletedV1Data),
5420    /// `com.wellfriend.signature.provider_credential.created.v1`
5421    SignatureProviderCredentialCreatedV1(SignatureProviderCredentialCreatedV1Data),
5422    /// `com.wellfriend.document.template.published.v1`
5423    DocumentTemplatePublishedV1(DocumentTemplatePublishedV1Data),
5424    /// `com.wellfriend.document.template.archived.v1`
5425    DocumentTemplateArchivedV1(DocumentTemplateArchivedV1Data),
5426    /// `com.wellfriend.document.editor.published.v1`
5427    DocumentEditorPublishedV1(DocumentEditorPublishedV1Data),
5428    /// `com.wellfriend.document.editor.pdf.transaction.applied.v1`
5429    DocumentEditorPdfTransactionAppliedV1(DocumentEditorPdfTransactionAppliedV1Data),
5430    /// `com.wellfriend.mcp.invocation.v1`
5431    McpInvocationV1(McpInvocationV1Data),
5432    /// `com.wellfriend.connector.account.disconnected.v1`
5433    ConnectorAccountDisconnectedV1(ConnectorAccountDisconnectedV1Data),
5434    /// `com.wellfriend.connector.operation.started.v1`
5435    ConnectorOperationStartedV1(ConnectorOperationStartedV1Data),
5436    /// `com.wellfriend.connector.operation.completed.v1`
5437    ConnectorOperationCompletedV1(ConnectorOperationCompletedV1Data),
5438    /// `com.wellfriend.connector.operation.failed.v1`
5439    ConnectorOperationFailedV1(ConnectorOperationFailedV1Data),
5440    /// `com.wellfriend.connector.operation.outcome_uncertain.v1`
5441    ConnectorOperationOutcomeUncertainV1(ConnectorOperationOutcomeUncertainV1Data),
5442    /// `com.wellfriend.agent.identity.created.v1`
5443    AgentIdentityCreatedV1(AgentIdentityCreatedV1Data),
5444    /// `com.wellfriend.agent.identity.revoked.v1`
5445    AgentIdentityRevokedV1(AgentIdentityRevokedV1Data),
5446    /// `com.wellfriend.agent.run.created.v1`
5447    AgentRunCreatedV1(AgentRunCreatedV1Data),
5448    /// `com.wellfriend.agent.run.dry_run_completed.v1`
5449    AgentRunDryRunCompletedV1(AgentRunDryRunCompletedV1Data),
5450    /// `com.wellfriend.agent.approval.approved.v1`
5451    AgentApprovalApprovedV1(AgentApprovalApprovedV1Data),
5452    /// `com.wellfriend.agent.approval.rejected.v1`
5453    AgentApprovalRejectedV1(AgentApprovalRejectedV1Data),
5454    /// `com.wellfriend.agent.tool.completed.v1`
5455    AgentToolCompletedV1(AgentToolCompletedV1Data),
5456    /// `com.wellfriend.agent.tool.failed.v1`
5457    AgentToolFailedV1(AgentToolFailedV1Data),
5458    /// `com.wellfriend.intelligence.extraction_schema.published.v1`
5459    IntelligenceExtractionSchemaPublishedV1(IntelligenceExtractionSchemaPublishedV1Data),
5460    /// `com.wellfriend.intelligence.assembly_template.published.v1`
5461    IntelligenceAssemblyTemplatePublishedV1(IntelligenceAssemblyTemplatePublishedV1Data),
5462    /// `com.wellfriend.intelligence.translation_glossary.published.v1`
5463    IntelligenceTranslationGlossaryPublishedV1(IntelligenceTranslationGlossaryPublishedV1Data),
5464    /// `com.wellfriend.intelligence.case_file.created.v1`
5465    IntelligenceCaseFileCreatedV1(IntelligenceCaseFileCreatedV1Data),
5466    /// `com.wellfriend.intelligence.run.cancelled.v1`
5467    IntelligenceRunCancelledV1(IntelligenceRunCancelledV1Data),
5468    /// `com.wellfriend.intelligence.review.completed.v1`
5469    IntelligenceReviewCompletedV1(IntelligenceReviewCompletedV1Data),
5470    /// `com.wellfriend.intelligence.normalisation.completed.v1`
5471    IntelligenceNormalisationCompletedV1(IntelligenceNormalisationCompletedV1Data),
5472    /// `com.wellfriend.intelligence.intake.completed.v1`
5473    IntelligenceIntakeCompletedV1(IntelligenceIntakeCompletedV1Data),
5474    /// `com.wellfriend.intelligence.extraction.completed.v1`
5475    IntelligenceExtractionCompletedV1(IntelligenceExtractionCompletedV1Data),
5476    /// `com.wellfriend.intelligence.comparison.completed.v1`
5477    IntelligenceComparisonCompletedV1(IntelligenceComparisonCompletedV1Data),
5478    /// `com.wellfriend.intelligence.reconciliation.completed.v1`
5479    IntelligenceReconciliationCompletedV1(IntelligenceReconciliationCompletedV1Data),
5480    /// `com.wellfriend.intelligence.completeness.completed.v1`
5481    IntelligenceCompletenessCompletedV1(IntelligenceCompletenessCompletedV1Data),
5482    /// `com.wellfriend.intelligence.qa.completed.v1`
5483    IntelligenceQaCompletedV1(IntelligenceQaCompletedV1Data),
5484    /// `com.wellfriend.intelligence.redaction.completed.v1`
5485    IntelligenceRedactionCompletedV1(IntelligenceRedactionCompletedV1Data),
5486    /// `com.wellfriend.intelligence.risk.completed.v1`
5487    IntelligenceRiskCompletedV1(IntelligenceRiskCompletedV1Data),
5488    /// `com.wellfriend.intelligence.assembly.completed.v1`
5489    IntelligenceAssemblyCompletedV1(IntelligenceAssemblyCompletedV1Data),
5490    /// `com.wellfriend.intelligence.translation.completed.v1`
5491    IntelligenceTranslationCompletedV1(IntelligenceTranslationCompletedV1Data),
5492    /// `com.wellfriend.intelligence.case_analysis.completed.v1`
5493    IntelligenceCaseAnalysisCompletedV1(IntelligenceCaseAnalysisCompletedV1Data),
5494    /// `com.wellfriend.intelligence.indexing.completed.v1`
5495    IntelligenceIndexingCompletedV1(IntelligenceIndexingCompletedV1Data),
5496    /// `com.wellfriend.intelligence.document.classified.v1`
5497    IntelligenceDocumentClassifiedV1(IntelligenceDocumentClassifiedV1Data),
5498    /// `com.wellfriend.intelligence.extraction.review_required.v1`
5499    IntelligenceExtractionReviewRequiredV1(IntelligenceExtractionReviewRequiredV1Data),
5500    /// `com.wellfriend.intelligence.comparison.material_change.v1`
5501    IntelligenceComparisonMaterialChangeV1(IntelligenceComparisonMaterialChangeV1Data),
5502    /// `com.wellfriend.intelligence.reconciliation.exception.v1`
5503    IntelligenceReconciliationExceptionV1(IntelligenceReconciliationExceptionV1Data),
5504    /// `com.wellfriend.intelligence.reconciliation.exception_found.v1`
5505    IntelligenceReconciliationExceptionFoundV1(IntelligenceReconciliationExceptionFoundV1Data),
5506    /// `com.wellfriend.intelligence.completeness.failed.v1`
5507    IntelligenceCompletenessFailedV1(IntelligenceCompletenessFailedV1Data),
5508    /// `com.wellfriend.intelligence.risk.finding.v1`
5509    IntelligenceRiskFindingV1(IntelligenceRiskFindingV1Data),
5510    /// `com.wellfriend.intelligence.redaction.ready_for_review.v1`
5511    IntelligenceRedactionReadyForReviewV1(IntelligenceRedactionReadyForReviewV1Data),
5512    /// `com.wellfriend.room.created.v1`
5513    RoomCreatedV1(RoomCreatedV1Data),
5514    /// `com.wellfriend.room.internal_review_requested.v1`
5515    RoomInternalReviewRequestedV1(RoomInternalReviewRequestedV1Data),
5516    /// `com.wellfriend.room.open.v1`
5517    RoomOpenV1(RoomOpenV1Data),
5518    /// `com.wellfriend.room.paused.v1`
5519    RoomPausedV1(RoomPausedV1Data),
5520    /// `com.wellfriend.room.closed.v1`
5521    RoomClosedV1(RoomClosedV1Data),
5522    /// `com.wellfriend.room.archived.v1`
5523    RoomArchivedV1(RoomArchivedV1Data),
5524    /// `com.wellfriend.room.archive.created.v1`
5525    RoomArchiveCreatedV1(RoomArchiveCreatedV1Data),
5526    /// `com.wellfriend.room.folder.created.v1`
5527    RoomFolderCreatedV1(RoomFolderCreatedV1Data),
5528    /// `com.wellfriend.room.folder.updated.v1`
5529    RoomFolderUpdatedV1(RoomFolderUpdatedV1Data),
5530    /// `com.wellfriend.room.document.added.v1`
5531    RoomDocumentAddedV1(RoomDocumentAddedV1Data),
5532    /// `com.wellfriend.room.document.updated.v1`
5533    RoomDocumentUpdatedV1(RoomDocumentUpdatedV1Data),
5534    /// `com.wellfriend.room.group.created.v1`
5535    RoomGroupCreatedV1(RoomGroupCreatedV1Data),
5536    /// `com.wellfriend.room.action_plan.created.v1`
5537    RoomActionPlanCreatedV1(RoomActionPlanCreatedV1Data),
5538    /// `com.wellfriend.room.task.updated.v1`
5539    RoomTaskUpdatedV1(RoomTaskUpdatedV1Data),
5540    /// `com.wellfriend.room.task.dependency_added.v1`
5541    RoomTaskDependencyAddedV1(RoomTaskDependencyAddedV1Data),
5542    /// `com.wellfriend.room.task.dependency_removed.v1`
5543    RoomTaskDependencyRemovedV1(RoomTaskDependencyRemovedV1Data),
5544    /// `com.wellfriend.room.question.reopened.v1`
5545    RoomQuestionReopenedV1(RoomQuestionReopenedV1Data),
5546    /// `com.wellfriend.room.question.updated.v1`
5547    RoomQuestionUpdatedV1(RoomQuestionUpdatedV1Data),
5548    /// `com.wellfriend.room.request.updated.v1`
5549    RoomRequestUpdatedV1(RoomRequestUpdatedV1Data),
5550    /// `com.wellfriend.room.request.evidence_rejected.v1`
5551    RoomRequestEvidenceRejectedV1(RoomRequestEvidenceRejectedV1Data),
5552    /// `com.wellfriend.portal.created.v1`
5553    PortalCreatedV1(PortalCreatedV1Data),
5554    /// `com.wellfriend.portal.updated.v1`
5555    PortalUpdatedV1(PortalUpdatedV1Data),
5556    /// `com.wellfriend.portal.room.added.v1`
5557    PortalRoomAddedV1(PortalRoomAddedV1Data),
5558    /// `com.wellfriend.portal.resource.created.v1`
5559    PortalResourceCreatedV1(PortalResourceCreatedV1Data),
5560    /// `com.wellfriend.webhook.test.v1`
5561    WebhookTestV1(WebhookTestV1Data),
5562    /// An event type this SDK version does not know, or a payload that does not match its type.
5563    Unknown(serde_json::Value),
5564}
5565
5566impl Default for WebhookEventData {
5567    fn default() -> Self {
5568        WebhookEventData::Unknown(serde_json::Value::Null)
5569    }
5570}
5571
5572impl WebhookEventData {
5573    /// Every event type this SDK version knows.
5574    pub const EVENT_TYPES: &'static [&'static str] = &[
5575        "com.wellfriend.document.version.created.v2",
5576        "com.wellfriend.document-operation.completed.v2",
5577        "com.wellfriend.document-operation.failed.v2",
5578        "com.wellfriend.document-operation.canceled.v2",
5579        "com.wellfriend.document-chain.completed.v2",
5580        "com.wellfriend.document-chain.failed.v2",
5581        "com.wellfriend.document-chain.canceled.v2",
5582        "com.wellfriend.secure-link.created.v2",
5583        "com.wellfriend.secure-link.revoked.v2",
5584        "com.wellfriend.workflow.published.v2",
5585        "com.wellfriend.workflow-run.started.v2",
5586        "com.wellfriend.workflow-run.completed.v2",
5587        "com.wellfriend.workflow-run.failed.v2",
5588        "com.wellfriend.workflow-run.cancelled.v2",
5589        "com.wellfriend.workflow-approval.decided.v2",
5590        "com.wellfriend.connector.operation.started.v2",
5591        "com.wellfriend.connector.operation.completed.v2",
5592        "com.wellfriend.connector.operation.failed.v2",
5593        "com.wellfriend.generic-http.received.v2",
5594        "com.wellfriend.webhook.test.v2",
5595        "com.wellfriend.webhook.endpoint.failing.v2",
5596        "com.wellfriend.webhook.endpoint.disabled.v2",
5597        "com.wellfriend.document.ai_operation.completed.v1",
5598        "com.wellfriend.document.ai_operation.failed.v1",
5599        "com.wellfriend.room.task.created.v1",
5600        "com.wellfriend.room.task.completed.v1",
5601        "com.wellfriend.room.request.created.v1",
5602        "com.wellfriend.room.request.submitted.v1",
5603        "com.wellfriend.room.request.satisfied.v1",
5604        "com.wellfriend.room.request.reopened.v1",
5605        "com.wellfriend.room.question.created.v1",
5606        "com.wellfriend.room.question.assigned.v1",
5607        "com.wellfriend.room.question.answered.v1",
5608        "com.wellfriend.room.question.closed.v1",
5609        "com.wellfriend.portal.published.v1",
5610        "com.wellfriend.portal.announcement.created.v1",
5611        "com.wellfriend.template.created.v2",
5612        "com.wellfriend.template.updated.v2",
5613        "com.wellfriend.template.publish.v2",
5614        "com.wellfriend.template.archive.v2",
5615        "com.wellfriend.signature_request.created.v2",
5616        "com.wellfriend.signature_request.updated.v2",
5617        "com.wellfriend.signature_request.activate.v2",
5618        "com.wellfriend.signature_request.complete.v2",
5619        "com.wellfriend.signature_request.cancel.v2",
5620        "com.wellfriend.annotation.created.v2",
5621        "com.wellfriend.annotation.updated.v2",
5622        "com.wellfriend.annotation.resolve.v2",
5623        "com.wellfriend.annotation.reopen.v2",
5624        "com.wellfriend.annotation.archive.v2",
5625        "com.wellfriend.form.created.v2",
5626        "com.wellfriend.form.updated.v2",
5627        "com.wellfriend.form.publish.v2",
5628        "com.wellfriend.form.close.v2",
5629        "com.wellfriend.form.archive.v2",
5630        "com.wellfriend.deal_room.created.v2",
5631        "com.wellfriend.deal_room.updated.v2",
5632        "com.wellfriend.deal_room.activate.v2",
5633        "com.wellfriend.deal_room.archive.v2",
5634        "com.wellfriend.portal.created.v2",
5635        "com.wellfriend.portal.updated.v2",
5636        "com.wellfriend.portal.publish.v2",
5637        "com.wellfriend.portal.archive.v2",
5638        "com.wellfriend.embed.created.v2",
5639        "com.wellfriend.embed.updated.v2",
5640        "com.wellfriend.embed.activate.v2",
5641        "com.wellfriend.embed.revoke.v2",
5642        "com.wellfriend.secure_link.created.v1",
5643        "com.wellfriend.secure_link.revoked.v1",
5644        "com.wellfriend.secure_link.recipients_added.v1",
5645        "com.wellfriend.secure_link.version_updated.v1",
5646        "com.wellfriend.secure_link.password_rotated.v1",
5647        "com.wellfriend.workflow.created.v1",
5648        "com.wellfriend.workflow.draft.updated.v1",
5649        "com.wellfriend.workflow.published.v1",
5650        "com.wellfriend.workflow.run.started.v1",
5651        "com.wellfriend.workflow.run.succeeded.v1",
5652        "com.wellfriend.workflow.run.failed.v1",
5653        "com.wellfriend.workflow.run.cancelled.v1",
5654        "com.wellfriend.workflow.step.completed.v1",
5655        "com.wellfriend.workflow.step.retry.scheduled.v1",
5656        "com.wellfriend.workflow.approval.approve.v1",
5657        "com.wellfriend.workflow.approval.reject.v1",
5658        "com.wellfriend.form.created.v1",
5659        "com.wellfriend.form.published.v1",
5660        "com.wellfriend.form.started.v1",
5661        "com.wellfriend.form.submitted.v1",
5662        "com.wellfriend.form.accepted.v1",
5663        "com.wellfriend.form.rejected.v1",
5664        "com.wellfriend.form.export.queued.v1",
5665        "com.wellfriend.form.export.completed.v1",
5666        "com.wellfriend.form.export.failed.v1",
5667        "com.wellfriend.annotation.created.v1",
5668        "com.wellfriend.annotation.updated.v1",
5669        "com.wellfriend.annotation.reply.created.v1",
5670        "com.wellfriend.annotation.resolved.v1",
5671        "com.wellfriend.annotation.reopened.v1",
5672        "com.wellfriend.annotation.migration.proposed.v1",
5673        "com.wellfriend.annotation.migration.reviewed.v1",
5674        "com.wellfriend.annotation.export.queued.v1",
5675        "com.wellfriend.annotation.export.completed.v1",
5676        "com.wellfriend.annotation.export.failed.v1",
5677        "com.wellfriend.signature.request.created.v1",
5678        "com.wellfriend.signature.request.cancelled.v1",
5679        "com.wellfriend.signature.request.evidence_finalized.v1",
5680        "com.wellfriend.signature.recipient.viewed.v1",
5681        "com.wellfriend.signature.recipient.challenge_sent.v1",
5682        "com.wellfriend.signature.recipient.verified.v1",
5683        "com.wellfriend.signature.recipient.signing_failed.v1",
5684        "com.wellfriend.signature.recipient.signed.v1",
5685        "com.wellfriend.signature.recipient.signature_validated.v1",
5686        "com.wellfriend.signature.validation.requested.v1",
5687        "com.wellfriend.signature.validation.failed.v1",
5688        "com.wellfriend.signature.validation.completed.v1",
5689        "com.wellfriend.signature.provider_credential.created.v1",
5690        "com.wellfriend.document.template.published.v1",
5691        "com.wellfriend.document.template.archived.v1",
5692        "com.wellfriend.document.editor.published.v1",
5693        "com.wellfriend.document.editor.pdf.transaction.applied.v1",
5694        "com.wellfriend.mcp.invocation.v1",
5695        "com.wellfriend.connector.account.disconnected.v1",
5696        "com.wellfriend.connector.operation.started.v1",
5697        "com.wellfriend.connector.operation.completed.v1",
5698        "com.wellfriend.connector.operation.failed.v1",
5699        "com.wellfriend.connector.operation.outcome_uncertain.v1",
5700        "com.wellfriend.agent.identity.created.v1",
5701        "com.wellfriend.agent.identity.revoked.v1",
5702        "com.wellfriend.agent.run.created.v1",
5703        "com.wellfriend.agent.run.dry_run_completed.v1",
5704        "com.wellfriend.agent.approval.approved.v1",
5705        "com.wellfriend.agent.approval.rejected.v1",
5706        "com.wellfriend.agent.tool.completed.v1",
5707        "com.wellfriend.agent.tool.failed.v1",
5708        "com.wellfriend.intelligence.extraction_schema.published.v1",
5709        "com.wellfriend.intelligence.assembly_template.published.v1",
5710        "com.wellfriend.intelligence.translation_glossary.published.v1",
5711        "com.wellfriend.intelligence.case_file.created.v1",
5712        "com.wellfriend.intelligence.run.cancelled.v1",
5713        "com.wellfriend.intelligence.review.completed.v1",
5714        "com.wellfriend.intelligence.normalisation.completed.v1",
5715        "com.wellfriend.intelligence.intake.completed.v1",
5716        "com.wellfriend.intelligence.extraction.completed.v1",
5717        "com.wellfriend.intelligence.comparison.completed.v1",
5718        "com.wellfriend.intelligence.reconciliation.completed.v1",
5719        "com.wellfriend.intelligence.completeness.completed.v1",
5720        "com.wellfriend.intelligence.qa.completed.v1",
5721        "com.wellfriend.intelligence.redaction.completed.v1",
5722        "com.wellfriend.intelligence.risk.completed.v1",
5723        "com.wellfriend.intelligence.assembly.completed.v1",
5724        "com.wellfriend.intelligence.translation.completed.v1",
5725        "com.wellfriend.intelligence.case_analysis.completed.v1",
5726        "com.wellfriend.intelligence.indexing.completed.v1",
5727        "com.wellfriend.intelligence.document.classified.v1",
5728        "com.wellfriend.intelligence.extraction.review_required.v1",
5729        "com.wellfriend.intelligence.comparison.material_change.v1",
5730        "com.wellfriend.intelligence.reconciliation.exception.v1",
5731        "com.wellfriend.intelligence.reconciliation.exception_found.v1",
5732        "com.wellfriend.intelligence.completeness.failed.v1",
5733        "com.wellfriend.intelligence.risk.finding.v1",
5734        "com.wellfriend.intelligence.redaction.ready_for_review.v1",
5735        "com.wellfriend.room.created.v1",
5736        "com.wellfriend.room.internal_review_requested.v1",
5737        "com.wellfriend.room.open.v1",
5738        "com.wellfriend.room.paused.v1",
5739        "com.wellfriend.room.closed.v1",
5740        "com.wellfriend.room.archived.v1",
5741        "com.wellfriend.room.archive.created.v1",
5742        "com.wellfriend.room.folder.created.v1",
5743        "com.wellfriend.room.folder.updated.v1",
5744        "com.wellfriend.room.document.added.v1",
5745        "com.wellfriend.room.document.updated.v1",
5746        "com.wellfriend.room.group.created.v1",
5747        "com.wellfriend.room.action_plan.created.v1",
5748        "com.wellfriend.room.task.updated.v1",
5749        "com.wellfriend.room.task.dependency_added.v1",
5750        "com.wellfriend.room.task.dependency_removed.v1",
5751        "com.wellfriend.room.question.reopened.v1",
5752        "com.wellfriend.room.question.updated.v1",
5753        "com.wellfriend.room.request.updated.v1",
5754        "com.wellfriend.room.request.evidence_rejected.v1",
5755        "com.wellfriend.portal.created.v1",
5756        "com.wellfriend.portal.updated.v1",
5757        "com.wellfriend.portal.room.added.v1",
5758        "com.wellfriend.portal.resource.created.v1",
5759        "com.wellfriend.webhook.test.v1",
5760    ];
5761
5762    /// Types the payload of an event; anything that does not fit stays `Unknown`.
5763    pub fn parse(event_type: &str, data: serde_json::Value) -> Self {
5764        let typed = match event_type {
5765            "com.wellfriend.document.version.created.v2" => {
5766                serde_json::from_value(data.clone()).map(WebhookEventData::DocumentVersionCreatedV2)
5767            }
5768            "com.wellfriend.document-operation.completed.v2" => {
5769                serde_json::from_value(data.clone())
5770                    .map(WebhookEventData::DocumentOperationCompletedV2)
5771            }
5772            "com.wellfriend.document-operation.failed.v2" => serde_json::from_value(data.clone())
5773                .map(WebhookEventData::DocumentOperationFailedV2),
5774            "com.wellfriend.document-operation.canceled.v2" => serde_json::from_value(data.clone())
5775                .map(WebhookEventData::DocumentOperationCanceledV2),
5776            "com.wellfriend.document-chain.completed.v2" => {
5777                serde_json::from_value(data.clone()).map(WebhookEventData::DocumentChainCompletedV2)
5778            }
5779            "com.wellfriend.document-chain.failed.v2" => {
5780                serde_json::from_value(data.clone()).map(WebhookEventData::DocumentChainFailedV2)
5781            }
5782            "com.wellfriend.document-chain.canceled.v2" => {
5783                serde_json::from_value(data.clone()).map(WebhookEventData::DocumentChainCanceledV2)
5784            }
5785            "com.wellfriend.secure-link.created.v2" => {
5786                serde_json::from_value(data.clone()).map(WebhookEventData::SecureLinkCreatedV2)
5787            }
5788            "com.wellfriend.secure-link.revoked.v2" => {
5789                serde_json::from_value(data.clone()).map(WebhookEventData::SecureLinkRevokedV2)
5790            }
5791            "com.wellfriend.workflow.published.v2" => {
5792                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowPublishedV2)
5793            }
5794            "com.wellfriend.workflow-run.started.v2" => {
5795                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunStartedV2)
5796            }
5797            "com.wellfriend.workflow-run.completed.v2" => {
5798                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunCompletedV2)
5799            }
5800            "com.wellfriend.workflow-run.failed.v2" => {
5801                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunFailedV2)
5802            }
5803            "com.wellfriend.workflow-run.cancelled.v2" => {
5804                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunCancelledV2)
5805            }
5806            "com.wellfriend.workflow-approval.decided.v2" => serde_json::from_value(data.clone())
5807                .map(WebhookEventData::WorkflowApprovalDecidedV2),
5808            "com.wellfriend.connector.operation.started.v2" => serde_json::from_value(data.clone())
5809                .map(WebhookEventData::ConnectorOperationStartedV2),
5810            "com.wellfriend.connector.operation.completed.v2" => {
5811                serde_json::from_value(data.clone())
5812                    .map(WebhookEventData::ConnectorOperationCompletedV2)
5813            }
5814            "com.wellfriend.connector.operation.failed.v2" => serde_json::from_value(data.clone())
5815                .map(WebhookEventData::ConnectorOperationFailedV2),
5816            "com.wellfriend.generic-http.received.v2" => {
5817                serde_json::from_value(data.clone()).map(WebhookEventData::GenericHttpReceivedV2)
5818            }
5819            "com.wellfriend.webhook.test.v2" => {
5820                serde_json::from_value(data.clone()).map(WebhookEventData::WebhookTestV2)
5821            }
5822            "com.wellfriend.webhook.endpoint.failing.v2" => {
5823                serde_json::from_value(data.clone()).map(WebhookEventData::WebhookEndpointFailingV2)
5824            }
5825            "com.wellfriend.webhook.endpoint.disabled.v2" => serde_json::from_value(data.clone())
5826                .map(WebhookEventData::WebhookEndpointDisabledV2),
5827            "com.wellfriend.document.ai_operation.completed.v1" => {
5828                serde_json::from_value(data.clone())
5829                    .map(WebhookEventData::DocumentAiOperationCompletedV1)
5830            }
5831            "com.wellfriend.document.ai_operation.failed.v1" => {
5832                serde_json::from_value(data.clone())
5833                    .map(WebhookEventData::DocumentAiOperationFailedV1)
5834            }
5835            "com.wellfriend.room.task.created.v1" => {
5836                serde_json::from_value(data.clone()).map(WebhookEventData::RoomTaskCreatedV1)
5837            }
5838            "com.wellfriend.room.task.completed.v1" => {
5839                serde_json::from_value(data.clone()).map(WebhookEventData::RoomTaskCompletedV1)
5840            }
5841            "com.wellfriend.room.request.created.v1" => {
5842                serde_json::from_value(data.clone()).map(WebhookEventData::RoomRequestCreatedV1)
5843            }
5844            "com.wellfriend.room.request.submitted.v1" => {
5845                serde_json::from_value(data.clone()).map(WebhookEventData::RoomRequestSubmittedV1)
5846            }
5847            "com.wellfriend.room.request.satisfied.v1" => {
5848                serde_json::from_value(data.clone()).map(WebhookEventData::RoomRequestSatisfiedV1)
5849            }
5850            "com.wellfriend.room.request.reopened.v1" => {
5851                serde_json::from_value(data.clone()).map(WebhookEventData::RoomRequestReopenedV1)
5852            }
5853            "com.wellfriend.room.question.created.v1" => {
5854                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionCreatedV1)
5855            }
5856            "com.wellfriend.room.question.assigned.v1" => {
5857                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionAssignedV1)
5858            }
5859            "com.wellfriend.room.question.answered.v1" => {
5860                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionAnsweredV1)
5861            }
5862            "com.wellfriend.room.question.closed.v1" => {
5863                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionClosedV1)
5864            }
5865            "com.wellfriend.portal.published.v1" => {
5866                serde_json::from_value(data.clone()).map(WebhookEventData::PortalPublishedV1)
5867            }
5868            "com.wellfriend.portal.announcement.created.v1" => serde_json::from_value(data.clone())
5869                .map(WebhookEventData::PortalAnnouncementCreatedV1),
5870            "com.wellfriend.template.created.v2" => {
5871                serde_json::from_value(data.clone()).map(WebhookEventData::TemplateCreatedV2)
5872            }
5873            "com.wellfriend.template.updated.v2" => {
5874                serde_json::from_value(data.clone()).map(WebhookEventData::TemplateUpdatedV2)
5875            }
5876            "com.wellfriend.template.publish.v2" => {
5877                serde_json::from_value(data.clone()).map(WebhookEventData::TemplatePublishV2)
5878            }
5879            "com.wellfriend.template.archive.v2" => {
5880                serde_json::from_value(data.clone()).map(WebhookEventData::TemplateArchiveV2)
5881            }
5882            "com.wellfriend.signature_request.created.v2" => serde_json::from_value(data.clone())
5883                .map(WebhookEventData::SignatureRequestCreatedV2),
5884            "com.wellfriend.signature_request.updated.v2" => serde_json::from_value(data.clone())
5885                .map(WebhookEventData::SignatureRequestUpdatedV2),
5886            "com.wellfriend.signature_request.activate.v2" => serde_json::from_value(data.clone())
5887                .map(WebhookEventData::SignatureRequestActivateV2),
5888            "com.wellfriend.signature_request.complete.v2" => serde_json::from_value(data.clone())
5889                .map(WebhookEventData::SignatureRequestCompleteV2),
5890            "com.wellfriend.signature_request.cancel.v2" => {
5891                serde_json::from_value(data.clone()).map(WebhookEventData::SignatureRequestCancelV2)
5892            }
5893            "com.wellfriend.annotation.created.v2" => {
5894                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationCreatedV2)
5895            }
5896            "com.wellfriend.annotation.updated.v2" => {
5897                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationUpdatedV2)
5898            }
5899            "com.wellfriend.annotation.resolve.v2" => {
5900                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationResolveV2)
5901            }
5902            "com.wellfriend.annotation.reopen.v2" => {
5903                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationReopenV2)
5904            }
5905            "com.wellfriend.annotation.archive.v2" => {
5906                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationArchiveV2)
5907            }
5908            "com.wellfriend.form.created.v2" => {
5909                serde_json::from_value(data.clone()).map(WebhookEventData::FormCreatedV2)
5910            }
5911            "com.wellfriend.form.updated.v2" => {
5912                serde_json::from_value(data.clone()).map(WebhookEventData::FormUpdatedV2)
5913            }
5914            "com.wellfriend.form.publish.v2" => {
5915                serde_json::from_value(data.clone()).map(WebhookEventData::FormPublishV2)
5916            }
5917            "com.wellfriend.form.close.v2" => {
5918                serde_json::from_value(data.clone()).map(WebhookEventData::FormCloseV2)
5919            }
5920            "com.wellfriend.form.archive.v2" => {
5921                serde_json::from_value(data.clone()).map(WebhookEventData::FormArchiveV2)
5922            }
5923            "com.wellfriend.deal_room.created.v2" => {
5924                serde_json::from_value(data.clone()).map(WebhookEventData::DealRoomCreatedV2)
5925            }
5926            "com.wellfriend.deal_room.updated.v2" => {
5927                serde_json::from_value(data.clone()).map(WebhookEventData::DealRoomUpdatedV2)
5928            }
5929            "com.wellfriend.deal_room.activate.v2" => {
5930                serde_json::from_value(data.clone()).map(WebhookEventData::DealRoomActivateV2)
5931            }
5932            "com.wellfriend.deal_room.archive.v2" => {
5933                serde_json::from_value(data.clone()).map(WebhookEventData::DealRoomArchiveV2)
5934            }
5935            "com.wellfriend.portal.created.v2" => {
5936                serde_json::from_value(data.clone()).map(WebhookEventData::PortalCreatedV2)
5937            }
5938            "com.wellfriend.portal.updated.v2" => {
5939                serde_json::from_value(data.clone()).map(WebhookEventData::PortalUpdatedV2)
5940            }
5941            "com.wellfriend.portal.publish.v2" => {
5942                serde_json::from_value(data.clone()).map(WebhookEventData::PortalPublishV2)
5943            }
5944            "com.wellfriend.portal.archive.v2" => {
5945                serde_json::from_value(data.clone()).map(WebhookEventData::PortalArchiveV2)
5946            }
5947            "com.wellfriend.embed.created.v2" => {
5948                serde_json::from_value(data.clone()).map(WebhookEventData::EmbedCreatedV2)
5949            }
5950            "com.wellfriend.embed.updated.v2" => {
5951                serde_json::from_value(data.clone()).map(WebhookEventData::EmbedUpdatedV2)
5952            }
5953            "com.wellfriend.embed.activate.v2" => {
5954                serde_json::from_value(data.clone()).map(WebhookEventData::EmbedActivateV2)
5955            }
5956            "com.wellfriend.embed.revoke.v2" => {
5957                serde_json::from_value(data.clone()).map(WebhookEventData::EmbedRevokeV2)
5958            }
5959            "com.wellfriend.secure_link.created.v1" => {
5960                serde_json::from_value(data.clone()).map(WebhookEventData::SecureLinkCreatedV1)
5961            }
5962            "com.wellfriend.secure_link.revoked.v1" => {
5963                serde_json::from_value(data.clone()).map(WebhookEventData::SecureLinkRevokedV1)
5964            }
5965            "com.wellfriend.secure_link.recipients_added.v1" => {
5966                serde_json::from_value(data.clone())
5967                    .map(WebhookEventData::SecureLinkRecipientsAddedV1)
5968            }
5969            "com.wellfriend.secure_link.version_updated.v1" => serde_json::from_value(data.clone())
5970                .map(WebhookEventData::SecureLinkVersionUpdatedV1),
5971            "com.wellfriend.secure_link.password_rotated.v1" => {
5972                serde_json::from_value(data.clone())
5973                    .map(WebhookEventData::SecureLinkPasswordRotatedV1)
5974            }
5975            "com.wellfriend.workflow.created.v1" => {
5976                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowCreatedV1)
5977            }
5978            "com.wellfriend.workflow.draft.updated.v1" => {
5979                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowDraftUpdatedV1)
5980            }
5981            "com.wellfriend.workflow.published.v1" => {
5982                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowPublishedV1)
5983            }
5984            "com.wellfriend.workflow.run.started.v1" => {
5985                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunStartedV1)
5986            }
5987            "com.wellfriend.workflow.run.succeeded.v1" => {
5988                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunSucceededV1)
5989            }
5990            "com.wellfriend.workflow.run.failed.v1" => {
5991                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunFailedV1)
5992            }
5993            "com.wellfriend.workflow.run.cancelled.v1" => {
5994                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowRunCancelledV1)
5995            }
5996            "com.wellfriend.workflow.step.completed.v1" => {
5997                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowStepCompletedV1)
5998            }
5999            "com.wellfriend.workflow.step.retry.scheduled.v1" => {
6000                serde_json::from_value(data.clone())
6001                    .map(WebhookEventData::WorkflowStepRetryScheduledV1)
6002            }
6003            "com.wellfriend.workflow.approval.approve.v1" => serde_json::from_value(data.clone())
6004                .map(WebhookEventData::WorkflowApprovalApproveV1),
6005            "com.wellfriend.workflow.approval.reject.v1" => {
6006                serde_json::from_value(data.clone()).map(WebhookEventData::WorkflowApprovalRejectV1)
6007            }
6008            "com.wellfriend.form.created.v1" => {
6009                serde_json::from_value(data.clone()).map(WebhookEventData::FormCreatedV1)
6010            }
6011            "com.wellfriend.form.published.v1" => {
6012                serde_json::from_value(data.clone()).map(WebhookEventData::FormPublishedV1)
6013            }
6014            "com.wellfriend.form.started.v1" => {
6015                serde_json::from_value(data.clone()).map(WebhookEventData::FormStartedV1)
6016            }
6017            "com.wellfriend.form.submitted.v1" => {
6018                serde_json::from_value(data.clone()).map(WebhookEventData::FormSubmittedV1)
6019            }
6020            "com.wellfriend.form.accepted.v1" => {
6021                serde_json::from_value(data.clone()).map(WebhookEventData::FormAcceptedV1)
6022            }
6023            "com.wellfriend.form.rejected.v1" => {
6024                serde_json::from_value(data.clone()).map(WebhookEventData::FormRejectedV1)
6025            }
6026            "com.wellfriend.form.export.queued.v1" => {
6027                serde_json::from_value(data.clone()).map(WebhookEventData::FormExportQueuedV1)
6028            }
6029            "com.wellfriend.form.export.completed.v1" => {
6030                serde_json::from_value(data.clone()).map(WebhookEventData::FormExportCompletedV1)
6031            }
6032            "com.wellfriend.form.export.failed.v1" => {
6033                serde_json::from_value(data.clone()).map(WebhookEventData::FormExportFailedV1)
6034            }
6035            "com.wellfriend.annotation.created.v1" => {
6036                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationCreatedV1)
6037            }
6038            "com.wellfriend.annotation.updated.v1" => {
6039                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationUpdatedV1)
6040            }
6041            "com.wellfriend.annotation.reply.created.v1" => {
6042                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationReplyCreatedV1)
6043            }
6044            "com.wellfriend.annotation.resolved.v1" => {
6045                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationResolvedV1)
6046            }
6047            "com.wellfriend.annotation.reopened.v1" => {
6048                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationReopenedV1)
6049            }
6050            "com.wellfriend.annotation.migration.proposed.v1" => {
6051                serde_json::from_value(data.clone())
6052                    .map(WebhookEventData::AnnotationMigrationProposedV1)
6053            }
6054            "com.wellfriend.annotation.migration.reviewed.v1" => {
6055                serde_json::from_value(data.clone())
6056                    .map(WebhookEventData::AnnotationMigrationReviewedV1)
6057            }
6058            "com.wellfriend.annotation.export.queued.v1" => {
6059                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationExportQueuedV1)
6060            }
6061            "com.wellfriend.annotation.export.completed.v1" => serde_json::from_value(data.clone())
6062                .map(WebhookEventData::AnnotationExportCompletedV1),
6063            "com.wellfriend.annotation.export.failed.v1" => {
6064                serde_json::from_value(data.clone()).map(WebhookEventData::AnnotationExportFailedV1)
6065            }
6066            "com.wellfriend.signature.request.created.v1" => serde_json::from_value(data.clone())
6067                .map(WebhookEventData::SignatureRequestCreatedV1),
6068            "com.wellfriend.signature.request.cancelled.v1" => serde_json::from_value(data.clone())
6069                .map(WebhookEventData::SignatureRequestCancelledV1),
6070            "com.wellfriend.signature.request.evidence_finalized.v1" => {
6071                serde_json::from_value(data.clone())
6072                    .map(WebhookEventData::SignatureRequestEvidenceFinalizedV1)
6073            }
6074            "com.wellfriend.signature.recipient.viewed.v1" => serde_json::from_value(data.clone())
6075                .map(WebhookEventData::SignatureRecipientViewedV1),
6076            "com.wellfriend.signature.recipient.challenge_sent.v1" => {
6077                serde_json::from_value(data.clone())
6078                    .map(WebhookEventData::SignatureRecipientChallengeSentV1)
6079            }
6080            "com.wellfriend.signature.recipient.verified.v1" => {
6081                serde_json::from_value(data.clone())
6082                    .map(WebhookEventData::SignatureRecipientVerifiedV1)
6083            }
6084            "com.wellfriend.signature.recipient.signing_failed.v1" => {
6085                serde_json::from_value(data.clone())
6086                    .map(WebhookEventData::SignatureRecipientSigningFailedV1)
6087            }
6088            "com.wellfriend.signature.recipient.signed.v1" => serde_json::from_value(data.clone())
6089                .map(WebhookEventData::SignatureRecipientSignedV1),
6090            "com.wellfriend.signature.recipient.signature_validated.v1" => {
6091                serde_json::from_value(data.clone())
6092                    .map(WebhookEventData::SignatureRecipientSignatureValidatedV1)
6093            }
6094            "com.wellfriend.signature.validation.requested.v1" => {
6095                serde_json::from_value(data.clone())
6096                    .map(WebhookEventData::SignatureValidationRequestedV1)
6097            }
6098            "com.wellfriend.signature.validation.failed.v1" => serde_json::from_value(data.clone())
6099                .map(WebhookEventData::SignatureValidationFailedV1),
6100            "com.wellfriend.signature.validation.completed.v1" => {
6101                serde_json::from_value(data.clone())
6102                    .map(WebhookEventData::SignatureValidationCompletedV1)
6103            }
6104            "com.wellfriend.signature.provider_credential.created.v1" => {
6105                serde_json::from_value(data.clone())
6106                    .map(WebhookEventData::SignatureProviderCredentialCreatedV1)
6107            }
6108            "com.wellfriend.document.template.published.v1" => serde_json::from_value(data.clone())
6109                .map(WebhookEventData::DocumentTemplatePublishedV1),
6110            "com.wellfriend.document.template.archived.v1" => serde_json::from_value(data.clone())
6111                .map(WebhookEventData::DocumentTemplateArchivedV1),
6112            "com.wellfriend.document.editor.published.v1" => serde_json::from_value(data.clone())
6113                .map(WebhookEventData::DocumentEditorPublishedV1),
6114            "com.wellfriend.document.editor.pdf.transaction.applied.v1" => {
6115                serde_json::from_value(data.clone())
6116                    .map(WebhookEventData::DocumentEditorPdfTransactionAppliedV1)
6117            }
6118            "com.wellfriend.mcp.invocation.v1" => {
6119                serde_json::from_value(data.clone()).map(WebhookEventData::McpInvocationV1)
6120            }
6121            "com.wellfriend.connector.account.disconnected.v1" => {
6122                serde_json::from_value(data.clone())
6123                    .map(WebhookEventData::ConnectorAccountDisconnectedV1)
6124            }
6125            "com.wellfriend.connector.operation.started.v1" => serde_json::from_value(data.clone())
6126                .map(WebhookEventData::ConnectorOperationStartedV1),
6127            "com.wellfriend.connector.operation.completed.v1" => {
6128                serde_json::from_value(data.clone())
6129                    .map(WebhookEventData::ConnectorOperationCompletedV1)
6130            }
6131            "com.wellfriend.connector.operation.failed.v1" => serde_json::from_value(data.clone())
6132                .map(WebhookEventData::ConnectorOperationFailedV1),
6133            "com.wellfriend.connector.operation.outcome_uncertain.v1" => {
6134                serde_json::from_value(data.clone())
6135                    .map(WebhookEventData::ConnectorOperationOutcomeUncertainV1)
6136            }
6137            "com.wellfriend.agent.identity.created.v1" => {
6138                serde_json::from_value(data.clone()).map(WebhookEventData::AgentIdentityCreatedV1)
6139            }
6140            "com.wellfriend.agent.identity.revoked.v1" => {
6141                serde_json::from_value(data.clone()).map(WebhookEventData::AgentIdentityRevokedV1)
6142            }
6143            "com.wellfriend.agent.run.created.v1" => {
6144                serde_json::from_value(data.clone()).map(WebhookEventData::AgentRunCreatedV1)
6145            }
6146            "com.wellfriend.agent.run.dry_run_completed.v1" => serde_json::from_value(data.clone())
6147                .map(WebhookEventData::AgentRunDryRunCompletedV1),
6148            "com.wellfriend.agent.approval.approved.v1" => {
6149                serde_json::from_value(data.clone()).map(WebhookEventData::AgentApprovalApprovedV1)
6150            }
6151            "com.wellfriend.agent.approval.rejected.v1" => {
6152                serde_json::from_value(data.clone()).map(WebhookEventData::AgentApprovalRejectedV1)
6153            }
6154            "com.wellfriend.agent.tool.completed.v1" => {
6155                serde_json::from_value(data.clone()).map(WebhookEventData::AgentToolCompletedV1)
6156            }
6157            "com.wellfriend.agent.tool.failed.v1" => {
6158                serde_json::from_value(data.clone()).map(WebhookEventData::AgentToolFailedV1)
6159            }
6160            "com.wellfriend.intelligence.extraction_schema.published.v1" => {
6161                serde_json::from_value(data.clone())
6162                    .map(WebhookEventData::IntelligenceExtractionSchemaPublishedV1)
6163            }
6164            "com.wellfriend.intelligence.assembly_template.published.v1" => {
6165                serde_json::from_value(data.clone())
6166                    .map(WebhookEventData::IntelligenceAssemblyTemplatePublishedV1)
6167            }
6168            "com.wellfriend.intelligence.translation_glossary.published.v1" => {
6169                serde_json::from_value(data.clone())
6170                    .map(WebhookEventData::IntelligenceTranslationGlossaryPublishedV1)
6171            }
6172            "com.wellfriend.intelligence.case_file.created.v1" => {
6173                serde_json::from_value(data.clone())
6174                    .map(WebhookEventData::IntelligenceCaseFileCreatedV1)
6175            }
6176            "com.wellfriend.intelligence.run.cancelled.v1" => serde_json::from_value(data.clone())
6177                .map(WebhookEventData::IntelligenceRunCancelledV1),
6178            "com.wellfriend.intelligence.review.completed.v1" => {
6179                serde_json::from_value(data.clone())
6180                    .map(WebhookEventData::IntelligenceReviewCompletedV1)
6181            }
6182            "com.wellfriend.intelligence.normalisation.completed.v1" => {
6183                serde_json::from_value(data.clone())
6184                    .map(WebhookEventData::IntelligenceNormalisationCompletedV1)
6185            }
6186            "com.wellfriend.intelligence.intake.completed.v1" => {
6187                serde_json::from_value(data.clone())
6188                    .map(WebhookEventData::IntelligenceIntakeCompletedV1)
6189            }
6190            "com.wellfriend.intelligence.extraction.completed.v1" => {
6191                serde_json::from_value(data.clone())
6192                    .map(WebhookEventData::IntelligenceExtractionCompletedV1)
6193            }
6194            "com.wellfriend.intelligence.comparison.completed.v1" => {
6195                serde_json::from_value(data.clone())
6196                    .map(WebhookEventData::IntelligenceComparisonCompletedV1)
6197            }
6198            "com.wellfriend.intelligence.reconciliation.completed.v1" => {
6199                serde_json::from_value(data.clone())
6200                    .map(WebhookEventData::IntelligenceReconciliationCompletedV1)
6201            }
6202            "com.wellfriend.intelligence.completeness.completed.v1" => {
6203                serde_json::from_value(data.clone())
6204                    .map(WebhookEventData::IntelligenceCompletenessCompletedV1)
6205            }
6206            "com.wellfriend.intelligence.qa.completed.v1" => serde_json::from_value(data.clone())
6207                .map(WebhookEventData::IntelligenceQaCompletedV1),
6208            "com.wellfriend.intelligence.redaction.completed.v1" => {
6209                serde_json::from_value(data.clone())
6210                    .map(WebhookEventData::IntelligenceRedactionCompletedV1)
6211            }
6212            "com.wellfriend.intelligence.risk.completed.v1" => serde_json::from_value(data.clone())
6213                .map(WebhookEventData::IntelligenceRiskCompletedV1),
6214            "com.wellfriend.intelligence.assembly.completed.v1" => {
6215                serde_json::from_value(data.clone())
6216                    .map(WebhookEventData::IntelligenceAssemblyCompletedV1)
6217            }
6218            "com.wellfriend.intelligence.translation.completed.v1" => {
6219                serde_json::from_value(data.clone())
6220                    .map(WebhookEventData::IntelligenceTranslationCompletedV1)
6221            }
6222            "com.wellfriend.intelligence.case_analysis.completed.v1" => {
6223                serde_json::from_value(data.clone())
6224                    .map(WebhookEventData::IntelligenceCaseAnalysisCompletedV1)
6225            }
6226            "com.wellfriend.intelligence.indexing.completed.v1" => {
6227                serde_json::from_value(data.clone())
6228                    .map(WebhookEventData::IntelligenceIndexingCompletedV1)
6229            }
6230            "com.wellfriend.intelligence.document.classified.v1" => {
6231                serde_json::from_value(data.clone())
6232                    .map(WebhookEventData::IntelligenceDocumentClassifiedV1)
6233            }
6234            "com.wellfriend.intelligence.extraction.review_required.v1" => {
6235                serde_json::from_value(data.clone())
6236                    .map(WebhookEventData::IntelligenceExtractionReviewRequiredV1)
6237            }
6238            "com.wellfriend.intelligence.comparison.material_change.v1" => {
6239                serde_json::from_value(data.clone())
6240                    .map(WebhookEventData::IntelligenceComparisonMaterialChangeV1)
6241            }
6242            "com.wellfriend.intelligence.reconciliation.exception.v1" => {
6243                serde_json::from_value(data.clone())
6244                    .map(WebhookEventData::IntelligenceReconciliationExceptionV1)
6245            }
6246            "com.wellfriend.intelligence.reconciliation.exception_found.v1" => {
6247                serde_json::from_value(data.clone())
6248                    .map(WebhookEventData::IntelligenceReconciliationExceptionFoundV1)
6249            }
6250            "com.wellfriend.intelligence.completeness.failed.v1" => {
6251                serde_json::from_value(data.clone())
6252                    .map(WebhookEventData::IntelligenceCompletenessFailedV1)
6253            }
6254            "com.wellfriend.intelligence.risk.finding.v1" => serde_json::from_value(data.clone())
6255                .map(WebhookEventData::IntelligenceRiskFindingV1),
6256            "com.wellfriend.intelligence.redaction.ready_for_review.v1" => {
6257                serde_json::from_value(data.clone())
6258                    .map(WebhookEventData::IntelligenceRedactionReadyForReviewV1)
6259            }
6260            "com.wellfriend.room.created.v1" => {
6261                serde_json::from_value(data.clone()).map(WebhookEventData::RoomCreatedV1)
6262            }
6263            "com.wellfriend.room.internal_review_requested.v1" => {
6264                serde_json::from_value(data.clone())
6265                    .map(WebhookEventData::RoomInternalReviewRequestedV1)
6266            }
6267            "com.wellfriend.room.open.v1" => {
6268                serde_json::from_value(data.clone()).map(WebhookEventData::RoomOpenV1)
6269            }
6270            "com.wellfriend.room.paused.v1" => {
6271                serde_json::from_value(data.clone()).map(WebhookEventData::RoomPausedV1)
6272            }
6273            "com.wellfriend.room.closed.v1" => {
6274                serde_json::from_value(data.clone()).map(WebhookEventData::RoomClosedV1)
6275            }
6276            "com.wellfriend.room.archived.v1" => {
6277                serde_json::from_value(data.clone()).map(WebhookEventData::RoomArchivedV1)
6278            }
6279            "com.wellfriend.room.archive.created.v1" => {
6280                serde_json::from_value(data.clone()).map(WebhookEventData::RoomArchiveCreatedV1)
6281            }
6282            "com.wellfriend.room.folder.created.v1" => {
6283                serde_json::from_value(data.clone()).map(WebhookEventData::RoomFolderCreatedV1)
6284            }
6285            "com.wellfriend.room.folder.updated.v1" => {
6286                serde_json::from_value(data.clone()).map(WebhookEventData::RoomFolderUpdatedV1)
6287            }
6288            "com.wellfriend.room.document.added.v1" => {
6289                serde_json::from_value(data.clone()).map(WebhookEventData::RoomDocumentAddedV1)
6290            }
6291            "com.wellfriend.room.document.updated.v1" => {
6292                serde_json::from_value(data.clone()).map(WebhookEventData::RoomDocumentUpdatedV1)
6293            }
6294            "com.wellfriend.room.group.created.v1" => {
6295                serde_json::from_value(data.clone()).map(WebhookEventData::RoomGroupCreatedV1)
6296            }
6297            "com.wellfriend.room.action_plan.created.v1" => {
6298                serde_json::from_value(data.clone()).map(WebhookEventData::RoomActionPlanCreatedV1)
6299            }
6300            "com.wellfriend.room.task.updated.v1" => {
6301                serde_json::from_value(data.clone()).map(WebhookEventData::RoomTaskUpdatedV1)
6302            }
6303            "com.wellfriend.room.task.dependency_added.v1" => serde_json::from_value(data.clone())
6304                .map(WebhookEventData::RoomTaskDependencyAddedV1),
6305            "com.wellfriend.room.task.dependency_removed.v1" => {
6306                serde_json::from_value(data.clone())
6307                    .map(WebhookEventData::RoomTaskDependencyRemovedV1)
6308            }
6309            "com.wellfriend.room.question.reopened.v1" => {
6310                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionReopenedV1)
6311            }
6312            "com.wellfriend.room.question.updated.v1" => {
6313                serde_json::from_value(data.clone()).map(WebhookEventData::RoomQuestionUpdatedV1)
6314            }
6315            "com.wellfriend.room.request.updated.v1" => {
6316                serde_json::from_value(data.clone()).map(WebhookEventData::RoomRequestUpdatedV1)
6317            }
6318            "com.wellfriend.room.request.evidence_rejected.v1" => {
6319                serde_json::from_value(data.clone())
6320                    .map(WebhookEventData::RoomRequestEvidenceRejectedV1)
6321            }
6322            "com.wellfriend.portal.created.v1" => {
6323                serde_json::from_value(data.clone()).map(WebhookEventData::PortalCreatedV1)
6324            }
6325            "com.wellfriend.portal.updated.v1" => {
6326                serde_json::from_value(data.clone()).map(WebhookEventData::PortalUpdatedV1)
6327            }
6328            "com.wellfriend.portal.room.added.v1" => {
6329                serde_json::from_value(data.clone()).map(WebhookEventData::PortalRoomAddedV1)
6330            }
6331            "com.wellfriend.portal.resource.created.v1" => {
6332                serde_json::from_value(data.clone()).map(WebhookEventData::PortalResourceCreatedV1)
6333            }
6334            "com.wellfriend.webhook.test.v1" => {
6335                serde_json::from_value(data.clone()).map(WebhookEventData::WebhookTestV1)
6336            }
6337            _ => return WebhookEventData::Unknown(data),
6338        };
6339        typed.unwrap_or(WebhookEventData::Unknown(data))
6340    }
6341
6342    /// The event type of a typed payload.
6343    pub fn event_type(&self) -> Option<&'static str> {
6344        match self {
6345            WebhookEventData::DocumentVersionCreatedV2(_) => {
6346                Some("com.wellfriend.document.version.created.v2")
6347            }
6348            WebhookEventData::DocumentOperationCompletedV2(_) => {
6349                Some("com.wellfriend.document-operation.completed.v2")
6350            }
6351            WebhookEventData::DocumentOperationFailedV2(_) => {
6352                Some("com.wellfriend.document-operation.failed.v2")
6353            }
6354            WebhookEventData::DocumentOperationCanceledV2(_) => {
6355                Some("com.wellfriend.document-operation.canceled.v2")
6356            }
6357            WebhookEventData::DocumentChainCompletedV2(_) => {
6358                Some("com.wellfriend.document-chain.completed.v2")
6359            }
6360            WebhookEventData::DocumentChainFailedV2(_) => {
6361                Some("com.wellfriend.document-chain.failed.v2")
6362            }
6363            WebhookEventData::DocumentChainCanceledV2(_) => {
6364                Some("com.wellfriend.document-chain.canceled.v2")
6365            }
6366            WebhookEventData::SecureLinkCreatedV2(_) => {
6367                Some("com.wellfriend.secure-link.created.v2")
6368            }
6369            WebhookEventData::SecureLinkRevokedV2(_) => {
6370                Some("com.wellfriend.secure-link.revoked.v2")
6371            }
6372            WebhookEventData::WorkflowPublishedV2(_) => {
6373                Some("com.wellfriend.workflow.published.v2")
6374            }
6375            WebhookEventData::WorkflowRunStartedV2(_) => {
6376                Some("com.wellfriend.workflow-run.started.v2")
6377            }
6378            WebhookEventData::WorkflowRunCompletedV2(_) => {
6379                Some("com.wellfriend.workflow-run.completed.v2")
6380            }
6381            WebhookEventData::WorkflowRunFailedV2(_) => {
6382                Some("com.wellfriend.workflow-run.failed.v2")
6383            }
6384            WebhookEventData::WorkflowRunCancelledV2(_) => {
6385                Some("com.wellfriend.workflow-run.cancelled.v2")
6386            }
6387            WebhookEventData::WorkflowApprovalDecidedV2(_) => {
6388                Some("com.wellfriend.workflow-approval.decided.v2")
6389            }
6390            WebhookEventData::ConnectorOperationStartedV2(_) => {
6391                Some("com.wellfriend.connector.operation.started.v2")
6392            }
6393            WebhookEventData::ConnectorOperationCompletedV2(_) => {
6394                Some("com.wellfriend.connector.operation.completed.v2")
6395            }
6396            WebhookEventData::ConnectorOperationFailedV2(_) => {
6397                Some("com.wellfriend.connector.operation.failed.v2")
6398            }
6399            WebhookEventData::GenericHttpReceivedV2(_) => {
6400                Some("com.wellfriend.generic-http.received.v2")
6401            }
6402            WebhookEventData::WebhookTestV2(_) => Some("com.wellfriend.webhook.test.v2"),
6403            WebhookEventData::WebhookEndpointFailingV2(_) => {
6404                Some("com.wellfriend.webhook.endpoint.failing.v2")
6405            }
6406            WebhookEventData::WebhookEndpointDisabledV2(_) => {
6407                Some("com.wellfriend.webhook.endpoint.disabled.v2")
6408            }
6409            WebhookEventData::DocumentAiOperationCompletedV1(_) => {
6410                Some("com.wellfriend.document.ai_operation.completed.v1")
6411            }
6412            WebhookEventData::DocumentAiOperationFailedV1(_) => {
6413                Some("com.wellfriend.document.ai_operation.failed.v1")
6414            }
6415            WebhookEventData::RoomTaskCreatedV1(_) => Some("com.wellfriend.room.task.created.v1"),
6416            WebhookEventData::RoomTaskCompletedV1(_) => {
6417                Some("com.wellfriend.room.task.completed.v1")
6418            }
6419            WebhookEventData::RoomRequestCreatedV1(_) => {
6420                Some("com.wellfriend.room.request.created.v1")
6421            }
6422            WebhookEventData::RoomRequestSubmittedV1(_) => {
6423                Some("com.wellfriend.room.request.submitted.v1")
6424            }
6425            WebhookEventData::RoomRequestSatisfiedV1(_) => {
6426                Some("com.wellfriend.room.request.satisfied.v1")
6427            }
6428            WebhookEventData::RoomRequestReopenedV1(_) => {
6429                Some("com.wellfriend.room.request.reopened.v1")
6430            }
6431            WebhookEventData::RoomQuestionCreatedV1(_) => {
6432                Some("com.wellfriend.room.question.created.v1")
6433            }
6434            WebhookEventData::RoomQuestionAssignedV1(_) => {
6435                Some("com.wellfriend.room.question.assigned.v1")
6436            }
6437            WebhookEventData::RoomQuestionAnsweredV1(_) => {
6438                Some("com.wellfriend.room.question.answered.v1")
6439            }
6440            WebhookEventData::RoomQuestionClosedV1(_) => {
6441                Some("com.wellfriend.room.question.closed.v1")
6442            }
6443            WebhookEventData::PortalPublishedV1(_) => Some("com.wellfriend.portal.published.v1"),
6444            WebhookEventData::PortalAnnouncementCreatedV1(_) => {
6445                Some("com.wellfriend.portal.announcement.created.v1")
6446            }
6447            WebhookEventData::TemplateCreatedV2(_) => Some("com.wellfriend.template.created.v2"),
6448            WebhookEventData::TemplateUpdatedV2(_) => Some("com.wellfriend.template.updated.v2"),
6449            WebhookEventData::TemplatePublishV2(_) => Some("com.wellfriend.template.publish.v2"),
6450            WebhookEventData::TemplateArchiveV2(_) => Some("com.wellfriend.template.archive.v2"),
6451            WebhookEventData::SignatureRequestCreatedV2(_) => {
6452                Some("com.wellfriend.signature_request.created.v2")
6453            }
6454            WebhookEventData::SignatureRequestUpdatedV2(_) => {
6455                Some("com.wellfriend.signature_request.updated.v2")
6456            }
6457            WebhookEventData::SignatureRequestActivateV2(_) => {
6458                Some("com.wellfriend.signature_request.activate.v2")
6459            }
6460            WebhookEventData::SignatureRequestCompleteV2(_) => {
6461                Some("com.wellfriend.signature_request.complete.v2")
6462            }
6463            WebhookEventData::SignatureRequestCancelV2(_) => {
6464                Some("com.wellfriend.signature_request.cancel.v2")
6465            }
6466            WebhookEventData::AnnotationCreatedV2(_) => {
6467                Some("com.wellfriend.annotation.created.v2")
6468            }
6469            WebhookEventData::AnnotationUpdatedV2(_) => {
6470                Some("com.wellfriend.annotation.updated.v2")
6471            }
6472            WebhookEventData::AnnotationResolveV2(_) => {
6473                Some("com.wellfriend.annotation.resolve.v2")
6474            }
6475            WebhookEventData::AnnotationReopenV2(_) => Some("com.wellfriend.annotation.reopen.v2"),
6476            WebhookEventData::AnnotationArchiveV2(_) => {
6477                Some("com.wellfriend.annotation.archive.v2")
6478            }
6479            WebhookEventData::FormCreatedV2(_) => Some("com.wellfriend.form.created.v2"),
6480            WebhookEventData::FormUpdatedV2(_) => Some("com.wellfriend.form.updated.v2"),
6481            WebhookEventData::FormPublishV2(_) => Some("com.wellfriend.form.publish.v2"),
6482            WebhookEventData::FormCloseV2(_) => Some("com.wellfriend.form.close.v2"),
6483            WebhookEventData::FormArchiveV2(_) => Some("com.wellfriend.form.archive.v2"),
6484            WebhookEventData::DealRoomCreatedV2(_) => Some("com.wellfriend.deal_room.created.v2"),
6485            WebhookEventData::DealRoomUpdatedV2(_) => Some("com.wellfriend.deal_room.updated.v2"),
6486            WebhookEventData::DealRoomActivateV2(_) => Some("com.wellfriend.deal_room.activate.v2"),
6487            WebhookEventData::DealRoomArchiveV2(_) => Some("com.wellfriend.deal_room.archive.v2"),
6488            WebhookEventData::PortalCreatedV2(_) => Some("com.wellfriend.portal.created.v2"),
6489            WebhookEventData::PortalUpdatedV2(_) => Some("com.wellfriend.portal.updated.v2"),
6490            WebhookEventData::PortalPublishV2(_) => Some("com.wellfriend.portal.publish.v2"),
6491            WebhookEventData::PortalArchiveV2(_) => Some("com.wellfriend.portal.archive.v2"),
6492            WebhookEventData::EmbedCreatedV2(_) => Some("com.wellfriend.embed.created.v2"),
6493            WebhookEventData::EmbedUpdatedV2(_) => Some("com.wellfriend.embed.updated.v2"),
6494            WebhookEventData::EmbedActivateV2(_) => Some("com.wellfriend.embed.activate.v2"),
6495            WebhookEventData::EmbedRevokeV2(_) => Some("com.wellfriend.embed.revoke.v2"),
6496            WebhookEventData::SecureLinkCreatedV1(_) => {
6497                Some("com.wellfriend.secure_link.created.v1")
6498            }
6499            WebhookEventData::SecureLinkRevokedV1(_) => {
6500                Some("com.wellfriend.secure_link.revoked.v1")
6501            }
6502            WebhookEventData::SecureLinkRecipientsAddedV1(_) => {
6503                Some("com.wellfriend.secure_link.recipients_added.v1")
6504            }
6505            WebhookEventData::SecureLinkVersionUpdatedV1(_) => {
6506                Some("com.wellfriend.secure_link.version_updated.v1")
6507            }
6508            WebhookEventData::SecureLinkPasswordRotatedV1(_) => {
6509                Some("com.wellfriend.secure_link.password_rotated.v1")
6510            }
6511            WebhookEventData::WorkflowCreatedV1(_) => Some("com.wellfriend.workflow.created.v1"),
6512            WebhookEventData::WorkflowDraftUpdatedV1(_) => {
6513                Some("com.wellfriend.workflow.draft.updated.v1")
6514            }
6515            WebhookEventData::WorkflowPublishedV1(_) => {
6516                Some("com.wellfriend.workflow.published.v1")
6517            }
6518            WebhookEventData::WorkflowRunStartedV1(_) => {
6519                Some("com.wellfriend.workflow.run.started.v1")
6520            }
6521            WebhookEventData::WorkflowRunSucceededV1(_) => {
6522                Some("com.wellfriend.workflow.run.succeeded.v1")
6523            }
6524            WebhookEventData::WorkflowRunFailedV1(_) => {
6525                Some("com.wellfriend.workflow.run.failed.v1")
6526            }
6527            WebhookEventData::WorkflowRunCancelledV1(_) => {
6528                Some("com.wellfriend.workflow.run.cancelled.v1")
6529            }
6530            WebhookEventData::WorkflowStepCompletedV1(_) => {
6531                Some("com.wellfriend.workflow.step.completed.v1")
6532            }
6533            WebhookEventData::WorkflowStepRetryScheduledV1(_) => {
6534                Some("com.wellfriend.workflow.step.retry.scheduled.v1")
6535            }
6536            WebhookEventData::WorkflowApprovalApproveV1(_) => {
6537                Some("com.wellfriend.workflow.approval.approve.v1")
6538            }
6539            WebhookEventData::WorkflowApprovalRejectV1(_) => {
6540                Some("com.wellfriend.workflow.approval.reject.v1")
6541            }
6542            WebhookEventData::FormCreatedV1(_) => Some("com.wellfriend.form.created.v1"),
6543            WebhookEventData::FormPublishedV1(_) => Some("com.wellfriend.form.published.v1"),
6544            WebhookEventData::FormStartedV1(_) => Some("com.wellfriend.form.started.v1"),
6545            WebhookEventData::FormSubmittedV1(_) => Some("com.wellfriend.form.submitted.v1"),
6546            WebhookEventData::FormAcceptedV1(_) => Some("com.wellfriend.form.accepted.v1"),
6547            WebhookEventData::FormRejectedV1(_) => Some("com.wellfriend.form.rejected.v1"),
6548            WebhookEventData::FormExportQueuedV1(_) => Some("com.wellfriend.form.export.queued.v1"),
6549            WebhookEventData::FormExportCompletedV1(_) => {
6550                Some("com.wellfriend.form.export.completed.v1")
6551            }
6552            WebhookEventData::FormExportFailedV1(_) => Some("com.wellfriend.form.export.failed.v1"),
6553            WebhookEventData::AnnotationCreatedV1(_) => {
6554                Some("com.wellfriend.annotation.created.v1")
6555            }
6556            WebhookEventData::AnnotationUpdatedV1(_) => {
6557                Some("com.wellfriend.annotation.updated.v1")
6558            }
6559            WebhookEventData::AnnotationReplyCreatedV1(_) => {
6560                Some("com.wellfriend.annotation.reply.created.v1")
6561            }
6562            WebhookEventData::AnnotationResolvedV1(_) => {
6563                Some("com.wellfriend.annotation.resolved.v1")
6564            }
6565            WebhookEventData::AnnotationReopenedV1(_) => {
6566                Some("com.wellfriend.annotation.reopened.v1")
6567            }
6568            WebhookEventData::AnnotationMigrationProposedV1(_) => {
6569                Some("com.wellfriend.annotation.migration.proposed.v1")
6570            }
6571            WebhookEventData::AnnotationMigrationReviewedV1(_) => {
6572                Some("com.wellfriend.annotation.migration.reviewed.v1")
6573            }
6574            WebhookEventData::AnnotationExportQueuedV1(_) => {
6575                Some("com.wellfriend.annotation.export.queued.v1")
6576            }
6577            WebhookEventData::AnnotationExportCompletedV1(_) => {
6578                Some("com.wellfriend.annotation.export.completed.v1")
6579            }
6580            WebhookEventData::AnnotationExportFailedV1(_) => {
6581                Some("com.wellfriend.annotation.export.failed.v1")
6582            }
6583            WebhookEventData::SignatureRequestCreatedV1(_) => {
6584                Some("com.wellfriend.signature.request.created.v1")
6585            }
6586            WebhookEventData::SignatureRequestCancelledV1(_) => {
6587                Some("com.wellfriend.signature.request.cancelled.v1")
6588            }
6589            WebhookEventData::SignatureRequestEvidenceFinalizedV1(_) => {
6590                Some("com.wellfriend.signature.request.evidence_finalized.v1")
6591            }
6592            WebhookEventData::SignatureRecipientViewedV1(_) => {
6593                Some("com.wellfriend.signature.recipient.viewed.v1")
6594            }
6595            WebhookEventData::SignatureRecipientChallengeSentV1(_) => {
6596                Some("com.wellfriend.signature.recipient.challenge_sent.v1")
6597            }
6598            WebhookEventData::SignatureRecipientVerifiedV1(_) => {
6599                Some("com.wellfriend.signature.recipient.verified.v1")
6600            }
6601            WebhookEventData::SignatureRecipientSigningFailedV1(_) => {
6602                Some("com.wellfriend.signature.recipient.signing_failed.v1")
6603            }
6604            WebhookEventData::SignatureRecipientSignedV1(_) => {
6605                Some("com.wellfriend.signature.recipient.signed.v1")
6606            }
6607            WebhookEventData::SignatureRecipientSignatureValidatedV1(_) => {
6608                Some("com.wellfriend.signature.recipient.signature_validated.v1")
6609            }
6610            WebhookEventData::SignatureValidationRequestedV1(_) => {
6611                Some("com.wellfriend.signature.validation.requested.v1")
6612            }
6613            WebhookEventData::SignatureValidationFailedV1(_) => {
6614                Some("com.wellfriend.signature.validation.failed.v1")
6615            }
6616            WebhookEventData::SignatureValidationCompletedV1(_) => {
6617                Some("com.wellfriend.signature.validation.completed.v1")
6618            }
6619            WebhookEventData::SignatureProviderCredentialCreatedV1(_) => {
6620                Some("com.wellfriend.signature.provider_credential.created.v1")
6621            }
6622            WebhookEventData::DocumentTemplatePublishedV1(_) => {
6623                Some("com.wellfriend.document.template.published.v1")
6624            }
6625            WebhookEventData::DocumentTemplateArchivedV1(_) => {
6626                Some("com.wellfriend.document.template.archived.v1")
6627            }
6628            WebhookEventData::DocumentEditorPublishedV1(_) => {
6629                Some("com.wellfriend.document.editor.published.v1")
6630            }
6631            WebhookEventData::DocumentEditorPdfTransactionAppliedV1(_) => {
6632                Some("com.wellfriend.document.editor.pdf.transaction.applied.v1")
6633            }
6634            WebhookEventData::McpInvocationV1(_) => Some("com.wellfriend.mcp.invocation.v1"),
6635            WebhookEventData::ConnectorAccountDisconnectedV1(_) => {
6636                Some("com.wellfriend.connector.account.disconnected.v1")
6637            }
6638            WebhookEventData::ConnectorOperationStartedV1(_) => {
6639                Some("com.wellfriend.connector.operation.started.v1")
6640            }
6641            WebhookEventData::ConnectorOperationCompletedV1(_) => {
6642                Some("com.wellfriend.connector.operation.completed.v1")
6643            }
6644            WebhookEventData::ConnectorOperationFailedV1(_) => {
6645                Some("com.wellfriend.connector.operation.failed.v1")
6646            }
6647            WebhookEventData::ConnectorOperationOutcomeUncertainV1(_) => {
6648                Some("com.wellfriend.connector.operation.outcome_uncertain.v1")
6649            }
6650            WebhookEventData::AgentIdentityCreatedV1(_) => {
6651                Some("com.wellfriend.agent.identity.created.v1")
6652            }
6653            WebhookEventData::AgentIdentityRevokedV1(_) => {
6654                Some("com.wellfriend.agent.identity.revoked.v1")
6655            }
6656            WebhookEventData::AgentRunCreatedV1(_) => Some("com.wellfriend.agent.run.created.v1"),
6657            WebhookEventData::AgentRunDryRunCompletedV1(_) => {
6658                Some("com.wellfriend.agent.run.dry_run_completed.v1")
6659            }
6660            WebhookEventData::AgentApprovalApprovedV1(_) => {
6661                Some("com.wellfriend.agent.approval.approved.v1")
6662            }
6663            WebhookEventData::AgentApprovalRejectedV1(_) => {
6664                Some("com.wellfriend.agent.approval.rejected.v1")
6665            }
6666            WebhookEventData::AgentToolCompletedV1(_) => {
6667                Some("com.wellfriend.agent.tool.completed.v1")
6668            }
6669            WebhookEventData::AgentToolFailedV1(_) => Some("com.wellfriend.agent.tool.failed.v1"),
6670            WebhookEventData::IntelligenceExtractionSchemaPublishedV1(_) => {
6671                Some("com.wellfriend.intelligence.extraction_schema.published.v1")
6672            }
6673            WebhookEventData::IntelligenceAssemblyTemplatePublishedV1(_) => {
6674                Some("com.wellfriend.intelligence.assembly_template.published.v1")
6675            }
6676            WebhookEventData::IntelligenceTranslationGlossaryPublishedV1(_) => {
6677                Some("com.wellfriend.intelligence.translation_glossary.published.v1")
6678            }
6679            WebhookEventData::IntelligenceCaseFileCreatedV1(_) => {
6680                Some("com.wellfriend.intelligence.case_file.created.v1")
6681            }
6682            WebhookEventData::IntelligenceRunCancelledV1(_) => {
6683                Some("com.wellfriend.intelligence.run.cancelled.v1")
6684            }
6685            WebhookEventData::IntelligenceReviewCompletedV1(_) => {
6686                Some("com.wellfriend.intelligence.review.completed.v1")
6687            }
6688            WebhookEventData::IntelligenceNormalisationCompletedV1(_) => {
6689                Some("com.wellfriend.intelligence.normalisation.completed.v1")
6690            }
6691            WebhookEventData::IntelligenceIntakeCompletedV1(_) => {
6692                Some("com.wellfriend.intelligence.intake.completed.v1")
6693            }
6694            WebhookEventData::IntelligenceExtractionCompletedV1(_) => {
6695                Some("com.wellfriend.intelligence.extraction.completed.v1")
6696            }
6697            WebhookEventData::IntelligenceComparisonCompletedV1(_) => {
6698                Some("com.wellfriend.intelligence.comparison.completed.v1")
6699            }
6700            WebhookEventData::IntelligenceReconciliationCompletedV1(_) => {
6701                Some("com.wellfriend.intelligence.reconciliation.completed.v1")
6702            }
6703            WebhookEventData::IntelligenceCompletenessCompletedV1(_) => {
6704                Some("com.wellfriend.intelligence.completeness.completed.v1")
6705            }
6706            WebhookEventData::IntelligenceQaCompletedV1(_) => {
6707                Some("com.wellfriend.intelligence.qa.completed.v1")
6708            }
6709            WebhookEventData::IntelligenceRedactionCompletedV1(_) => {
6710                Some("com.wellfriend.intelligence.redaction.completed.v1")
6711            }
6712            WebhookEventData::IntelligenceRiskCompletedV1(_) => {
6713                Some("com.wellfriend.intelligence.risk.completed.v1")
6714            }
6715            WebhookEventData::IntelligenceAssemblyCompletedV1(_) => {
6716                Some("com.wellfriend.intelligence.assembly.completed.v1")
6717            }
6718            WebhookEventData::IntelligenceTranslationCompletedV1(_) => {
6719                Some("com.wellfriend.intelligence.translation.completed.v1")
6720            }
6721            WebhookEventData::IntelligenceCaseAnalysisCompletedV1(_) => {
6722                Some("com.wellfriend.intelligence.case_analysis.completed.v1")
6723            }
6724            WebhookEventData::IntelligenceIndexingCompletedV1(_) => {
6725                Some("com.wellfriend.intelligence.indexing.completed.v1")
6726            }
6727            WebhookEventData::IntelligenceDocumentClassifiedV1(_) => {
6728                Some("com.wellfriend.intelligence.document.classified.v1")
6729            }
6730            WebhookEventData::IntelligenceExtractionReviewRequiredV1(_) => {
6731                Some("com.wellfriend.intelligence.extraction.review_required.v1")
6732            }
6733            WebhookEventData::IntelligenceComparisonMaterialChangeV1(_) => {
6734                Some("com.wellfriend.intelligence.comparison.material_change.v1")
6735            }
6736            WebhookEventData::IntelligenceReconciliationExceptionV1(_) => {
6737                Some("com.wellfriend.intelligence.reconciliation.exception.v1")
6738            }
6739            WebhookEventData::IntelligenceReconciliationExceptionFoundV1(_) => {
6740                Some("com.wellfriend.intelligence.reconciliation.exception_found.v1")
6741            }
6742            WebhookEventData::IntelligenceCompletenessFailedV1(_) => {
6743                Some("com.wellfriend.intelligence.completeness.failed.v1")
6744            }
6745            WebhookEventData::IntelligenceRiskFindingV1(_) => {
6746                Some("com.wellfriend.intelligence.risk.finding.v1")
6747            }
6748            WebhookEventData::IntelligenceRedactionReadyForReviewV1(_) => {
6749                Some("com.wellfriend.intelligence.redaction.ready_for_review.v1")
6750            }
6751            WebhookEventData::RoomCreatedV1(_) => Some("com.wellfriend.room.created.v1"),
6752            WebhookEventData::RoomInternalReviewRequestedV1(_) => {
6753                Some("com.wellfriend.room.internal_review_requested.v1")
6754            }
6755            WebhookEventData::RoomOpenV1(_) => Some("com.wellfriend.room.open.v1"),
6756            WebhookEventData::RoomPausedV1(_) => Some("com.wellfriend.room.paused.v1"),
6757            WebhookEventData::RoomClosedV1(_) => Some("com.wellfriend.room.closed.v1"),
6758            WebhookEventData::RoomArchivedV1(_) => Some("com.wellfriend.room.archived.v1"),
6759            WebhookEventData::RoomArchiveCreatedV1(_) => {
6760                Some("com.wellfriend.room.archive.created.v1")
6761            }
6762            WebhookEventData::RoomFolderCreatedV1(_) => {
6763                Some("com.wellfriend.room.folder.created.v1")
6764            }
6765            WebhookEventData::RoomFolderUpdatedV1(_) => {
6766                Some("com.wellfriend.room.folder.updated.v1")
6767            }
6768            WebhookEventData::RoomDocumentAddedV1(_) => {
6769                Some("com.wellfriend.room.document.added.v1")
6770            }
6771            WebhookEventData::RoomDocumentUpdatedV1(_) => {
6772                Some("com.wellfriend.room.document.updated.v1")
6773            }
6774            WebhookEventData::RoomGroupCreatedV1(_) => Some("com.wellfriend.room.group.created.v1"),
6775            WebhookEventData::RoomActionPlanCreatedV1(_) => {
6776                Some("com.wellfriend.room.action_plan.created.v1")
6777            }
6778            WebhookEventData::RoomTaskUpdatedV1(_) => Some("com.wellfriend.room.task.updated.v1"),
6779            WebhookEventData::RoomTaskDependencyAddedV1(_) => {
6780                Some("com.wellfriend.room.task.dependency_added.v1")
6781            }
6782            WebhookEventData::RoomTaskDependencyRemovedV1(_) => {
6783                Some("com.wellfriend.room.task.dependency_removed.v1")
6784            }
6785            WebhookEventData::RoomQuestionReopenedV1(_) => {
6786                Some("com.wellfriend.room.question.reopened.v1")
6787            }
6788            WebhookEventData::RoomQuestionUpdatedV1(_) => {
6789                Some("com.wellfriend.room.question.updated.v1")
6790            }
6791            WebhookEventData::RoomRequestUpdatedV1(_) => {
6792                Some("com.wellfriend.room.request.updated.v1")
6793            }
6794            WebhookEventData::RoomRequestEvidenceRejectedV1(_) => {
6795                Some("com.wellfriend.room.request.evidence_rejected.v1")
6796            }
6797            WebhookEventData::PortalCreatedV1(_) => Some("com.wellfriend.portal.created.v1"),
6798            WebhookEventData::PortalUpdatedV1(_) => Some("com.wellfriend.portal.updated.v1"),
6799            WebhookEventData::PortalRoomAddedV1(_) => Some("com.wellfriend.portal.room.added.v1"),
6800            WebhookEventData::PortalResourceCreatedV1(_) => {
6801                Some("com.wellfriend.portal.resource.created.v1")
6802            }
6803            WebhookEventData::WebhookTestV1(_) => Some("com.wellfriend.webhook.test.v1"),
6804            WebhookEventData::Unknown(_) => None,
6805        }
6806    }
6807}