ghl-models 0.4.0

Rust data models (DTOs) for the GoHighLevel (HighLevel) API v2 and v3, generated from the official OpenAPI specifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
//! `chat-widget` data models for GoHighLevel API V3 (15 types).
//!
//! Generated from HighLevel's official OpenAPI spec for the
//! **Chat Widget** module. Every endpoint that uses these types, with its
//! parameters, required scopes and enum values, is documented in the
//! [`chat-widget` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/chat-widget.md).
//!
//! Enable with `features = ["chat-widget"]`.
// @generated by xtask/generate_models.py — do not edit by hand.
// Source: https://github.com/GoHighLevel/highlevel-api-docs
// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
// they aren't held to rustdoc's markdown conventions.
#![allow(
    missing_docs,
    clippy::doc_lazy_continuation,
    clippy::doc_overindented_list_items
)]

use serde::{Deserialize, Serialize};

/// `A2PComplianceDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct A2PComplianceDTO {
    /// Enable A2P Compliance
    #[serde(
        rename = "enableA2PCompliance",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_a2_p_compliance: Option<bool>,
    /// A2P Opt In Form 1
    #[serde(
        rename = "a2pOptInForm1",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form1: Option<String>,
    /// Show checkbox for A2P Opt In Form 1
    #[serde(
        rename = "a2pOptInForm1ShowCheckbox",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form1_show_checkbox: Option<bool>,
    /// Pre-checked state for A2P Opt In Form 1 checkbox
    #[serde(
        rename = "a2pOptInForm1PreChecked",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form1_pre_checked: Option<bool>,
    /// Is A2P Opt In Form 2
    #[serde(
        rename = "isA2POptInForm2",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_a2_p_opt_in_form2: Option<bool>,
    /// A2P Opt In Form 2
    #[serde(
        rename = "a2pOptInForm2",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form2: Option<String>,
    /// Show checkbox for A2P Opt In Form 2
    #[serde(
        rename = "a2pOptInForm2ShowCheckbox",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form2_show_checkbox: Option<bool>,
    /// Pre-checked state for A2P Opt In Form 2 checkbox
    #[serde(
        rename = "a2pOptInForm2PreChecked",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a2p_opt_in_form2_pre_checked: Option<bool>,
    /// Privacy Policy Link
    #[serde(
        rename = "privacyPolicyLink",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub privacy_policy_link: Option<String>,
    /// Terms of Service
    #[serde(
        rename = "termsOfServiceLink",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub terms_of_service_link: Option<String>,
    /// Is A2P Opt In Form 1 enabled
    #[serde(
        rename = "isA2POptInForm1",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_a2_p_opt_in_form1: Option<bool>,
    /// Message Type
    #[serde(
        rename = "messageType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub message_type: Option<String>,
}

/// `AcknowledgementDetailsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AcknowledgementDetailsDTO {
    /// Icon
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub icon: Option<String>,
    /// Placeholder color
    #[serde(
        rename = "placeholderColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub placeholder_color: Option<String>,
    /// Icon for live chat
    #[serde(
        rename = "liveChatIcon",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_icon: Option<String>,
    /// Placeholder color for live chat
    #[serde(
        rename = "liveChatPlaceholderColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_placeholder_color: Option<String>,
}

/// `AdvanceSettingsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AdvanceSettingsDTO {
    /// Branding Title
    #[serde(
        rename = "brandingTitle",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub branding_title: Option<String>,
    /// Redirect Object
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub redirect: Option<RedirectDTO>,
    /// Boolean for showing contact form at start
    #[serde(
        rename = "enableContactForm",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_contact_form: Option<bool>,
    /// By default consent check for contact form
    #[serde(
        rename = "defaultConsentCheck",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_consent_check: Option<bool>,
    /// Business Office Hours
    #[serde(
        rename = "businessOfficeHours",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub business_office_hours: Option<BusinessOfficeHoursDTO>,
    /// Contact form field configuration
    #[serde(
        rename = "contactFormOptions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub contact_form_options: Vec<String>,
    /// Chat types included in the all-in-one widget
    /// Allowed values: `liveChat`, `waChat`, `emailChat`, `allInOneChat`, `voiceAiChat`,
    /// `facebookChat`, `instagramChat`, `webChat`.
    #[serde(
        rename = "allInOneChatTypes",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub all_in_one_chat_types: Vec<String>,
    /// All In One Initial Msg
    #[serde(
        rename = "allInOneInitialMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub all_in_one_initial_msg: Option<String>,
    /// Contact Form Intro Message
    #[serde(
        rename = "contactFormIntroMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub contact_form_intro_message: Option<String>,
    /// Contact Form System Message
    #[serde(
        rename = "contactFormSystemMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub contact_form_system_message: Option<String>,
    /// Prefilled Message Text
    #[serde(
        rename = "prefilledMessageText",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prefilled_message_text: Option<String>,
    /// Voice AI Agent
    #[serde(
        rename = "voiceAiAgent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub voice_ai_agent: Option<serde_json::Value>,
    /// Facebook Page
    #[serde(rename = "fbPage", default, skip_serializing_if = "Option::is_none")]
    pub fb_page: Option<FBPageDTO>,
    /// Instagram Page
    #[serde(
        rename = "instagramPage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub instagram_page: Option<InstagramPageDTO>,
    /// Play Notification Sound
    #[serde(
        rename = "playNotificationSound",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub play_notification_sound: Option<bool>,
    /// Voice Ai Send Action Text
    #[serde(
        rename = "voiceAiSendActionText",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub voice_ai_send_action_text: Option<String>,
    /// A2P Compliance
    #[serde(
        rename = "aTwoPCompliance",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub a_two_p_compliance: Option<A2PComplianceDTO>,
}

/// `BusinessOfficeHoursDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct BusinessOfficeHoursDTO {
    /// Enable Business Hours
    #[serde(
        rename = "enableBusinessHours",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_business_hours: Option<bool>,
    /// Open hours schedule
    #[serde(rename = "openHours", default, skip_serializing_if = "Vec::is_empty")]
    pub open_hours: Vec<String>,
    /// Time Zone
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    /// Time Zone
    #[serde(
        rename = "outsideOfficeHoursWelcomeMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub outside_office_hours_welcome_msg: Option<String>,
}

/// `CloneChatWidgetDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CloneChatWidgetDTO {
    /// locationId
    /// Required by the API.
    #[serde(rename = "locationId")]
    pub location_id: String,
    /// chat widget ID
    /// Required by the API.
    #[serde(rename = "chatWidgetId")]
    pub chat_widget_id: String,
    /// Name for the cloned widget
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

/// `CreateWidgetDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateWidgetDTO {
    /// Version
    /// Required by the API.
    pub version: f64,
    /// Chat type
    /// Allowed values: `liveChat`, `emailChat`.
    /// Required by the API.
    #[serde(rename = "chatType")]
    pub chat_type: String,
    /// Name
    /// Required by the API.
    pub name: String,
    /// Location ID
    /// Required by the API.
    #[serde(rename = "locationId")]
    pub location_id: String,
    /// Deleted
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
    /// Default
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<bool>,
    /// Settings
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<WidgetSettingsDTO>,
}

/// `FBPageDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FBPageDTO {
    /// Facebook Page ID
    #[serde(
        rename = "facebookPageId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub facebook_page_id: Option<String>,
    /// Facebook Page Name
    #[serde(
        rename = "facebookPageName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub facebook_page_name: Option<String>,
}

/// `InstagramPageDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct InstagramPageDTO {
    /// Facebook Page ID
    #[serde(
        rename = "facebookPageId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub facebook_page_id: Option<String>,
    /// Facebook Page Name
    #[serde(
        rename = "facebookPageName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub facebook_page_name: Option<String>,
    /// Instagram Page ID
    #[serde(
        rename = "instagramPageId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub instagram_page_id: Option<String>,
    /// Instagram UserName
    #[serde(
        rename = "instagramUsername",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub instagram_username: Option<String>,
}

/// `RedirectDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RedirectDTO {
    /// Redirect Action
    #[serde(
        rename = "redirectAction",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub redirect_action: Option<bool>,
    /// Redirect Website
    #[serde(
        rename = "redirectWebsite",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub redirect_website: Option<String>,
    /// Redirect Text
    #[serde(
        rename = "redirectText",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub redirect_text: Option<String>,
}

/// `UpdateWidgetDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateWidgetDTO {
    /// Version
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<f64>,
    /// Chat type
    /// Allowed values: `liveChat`, `emailChat`.
    #[serde(rename = "chatType", default, skip_serializing_if = "Option::is_none")]
    pub chat_type: Option<String>,
    /// Name
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Default
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<bool>,
    /// Settings
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<WidgetSettingsDTO>,
}

/// `WidgetSettingsCustomizationDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WidgetSettingsCustomizationDTO {
    /// Position
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub position: Option<String>,
    /// Typography Color Options
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sizes: Option<WidgetSettingsCustomizationSizeDTO>,
}

/// `WidgetSettingsCustomizationSizeDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WidgetSettingsCustomizationSizeDTO {
    /// Width
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub width: Option<f64>,
    /// Height
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub height: Option<f64>,
}

/// `WidgetSettingsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WidgetSettingsDTO {
    /// Acknowledgement Details
    #[serde(
        rename = "acknowledgementDetails",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub acknowledgement_details: Option<AcknowledgementDetailsDTO>,
    /// Name of the agency
    #[serde(
        rename = "agencyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub agency_name: Option<String>,
    /// Website URL of the agency
    #[serde(
        rename = "agencyWebsite",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub agency_website: Option<String>,
    /// Allow avatar image
    #[serde(
        rename = "allowAvatarImage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub allow_avatar_image: Option<bool>,
    /// Boolean indicating whether to automatically detect country code
    #[serde(
        rename = "autoCountryCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auto_country_code: Option<bool>,
    /// Country code
    #[serde(
        rename = "countryCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub country_code: Option<String>,
    /// Chat Type
    /// Required by the API.
    #[serde(rename = "chatType")]
    pub chat_type: String,
    /// Prompt Type
    #[serde(
        rename = "promptType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prompt_type: Option<String>,
    /// Message Chat Circle
    /// Required by the API.
    #[serde(rename = "chatIcon")]
    pub chat_icon: String,
    /// Boolean indicating whether to enable a revisit message
    #[serde(
        rename = "enableRevisitMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_revisit_message: Option<bool>,
    /// Heading text
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub heading: Option<String>,
    /// Legal message
    #[serde(rename = "legalMsg", default, skip_serializing_if = "Option::is_none")]
    pub legal_msg: Option<String>,
    /// Message acknowledging a live chat
    #[serde(
        rename = "liveChatAckMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_ack_msg: Option<String>,
    /// Message indicating the end of a live chat
    #[serde(
        rename = "liveChatEndedMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_ended_msg: Option<String>,
    /// Message asking for feedback after a live chat
    #[serde(
        rename = "liveChatFeedbackMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_feedback_msg: Option<String>,
    /// Note regarding live chat feedback
    #[serde(
        rename = "liveChatFeedbackNote",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_feedback_note: Option<String>,
    /// Introduction message for a live chat
    #[serde(
        rename = "liveChatIntroMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_intro_msg: Option<String>,
    /// Message for inactive users during a live chat
    #[serde(
        rename = "liveChatUserInactiveMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_user_inactive_msg: Option<String>,
    /// Time for considering a user inactive during a live chat
    #[serde(
        rename = "liveChatUserInactiveTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_user_inactive_time: Option<String>,
    /// Message for inactive visitors during a live chat
    #[serde(
        rename = "liveChatVisitorInactiveMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_visitor_inactive_msg: Option<String>,
    /// Time for considering a visitor inactive during a live chat
    #[serde(
        rename = "liveChatVisitorInactiveTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_chat_visitor_inactive_time: Option<String>,
    /// Locale setting
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub locale: Option<String>,
    /// Avatar for prompts
    #[serde(
        rename = "promptAvatar",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prompt_avatar: Option<String>,
    /// Prompt Avatar Alt Text
    #[serde(
        rename = "promptAvatarAltText",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prompt_avatar_alt_text: Option<String>,
    /// Avatar Image Optimization
    #[serde(
        rename = "isPromptAvatarImageOptimize",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_prompt_avatar_image_optimize: Option<bool>,
    /// Prompt message
    #[serde(rename = "promptMsg", default, skip_serializing_if = "Option::is_none")]
    pub prompt_msg: Option<String>,
    /// Message for revisiting prompts
    #[serde(
        rename = "revisitPromptMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub revisit_prompt_msg: Option<String>,
    /// Text for send action
    #[serde(
        rename = "sendActionText",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub send_action_text: Option<String>,
    /// Boolean indicating whether to show agency branding
    #[serde(
        rename = "showAgencyBranding",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub show_agency_branding: Option<bool>,
    /// Boolean indicating whether to show a consent checkbox
    #[serde(
        rename = "showConsentCheckbox",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub show_consent_checkbox: Option<bool>,
    /// Boolean indicating whether to show a welcome message for live chat
    #[serde(
        rename = "showLiveChatWelcomeMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub show_live_chat_welcome_msg: Option<bool>,
    /// Boolean indicating whether to show prompts
    #[serde(
        rename = "showPrompt",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub show_prompt: Option<bool>,
    /// Subheading text
    #[serde(
        rename = "subHeading",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sub_heading: Option<String>,
    /// Success message
    #[serde(
        rename = "successMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub success_msg: Option<String>,
    /// Contact information for support
    #[serde(
        rename = "supportContact",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub support_contact: Option<String>,
    /// Thank you message
    #[serde(
        rename = "thankYouMsg",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub thank_you_msg: Option<String>,
    /// Theme
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub theme: Option<WidgetSettingsThemeDTO>,
    /// Boolean indicating whether to use an email field
    #[serde(
        rename = "useEmailField",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_email_field: Option<bool>,
    /// WhatsApp number
    #[serde(rename = "waNumber", default, skip_serializing_if = "Option::is_none")]
    pub wa_number: Option<String>,
    /// Primary color for the widget
    #[serde(
        rename = "widgetPrimaryColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub widget_primary_color: Option<String>,
    /// Representative Assigned Message
    #[serde(
        rename = "representativeAssignedMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub representative_assigned_message: Option<String>,
    /// Customizations
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dimensions: Option<WidgetSettingsCustomizationDTO>,
    /// Advance Settings
    #[serde(
        rename = "advanceSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub advance_settings: Option<AdvanceSettingsDTO>,
    /// Location Country Code
    #[serde(
        rename = "locationCountryCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_country_code: Option<String>,
    /// Widget Id
    #[serde(rename = "widgetId", default, skip_serializing_if = "Option::is_none")]
    pub widget_id: Option<String>,
    /// Widget Placement
    #[serde(
        rename = "widgetPlacement",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub widget_placement: Option<String>,
}

/// `WidgetSettingsThemeCustomColorDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WidgetSettingsThemeCustomColorDTO {
    /// Chat Bubble Color
    #[serde(
        rename = "chatBubbleColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub chat_bubble_color: Option<String>,
    /// Background Color
    #[serde(
        rename = "backgroundColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub background_color: Option<String>,
    /// Header Color
    #[serde(
        rename = "headerColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub header_color: Option<String>,
    /// Button Color
    #[serde(
        rename = "buttonColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub button_color: Option<String>,
    /// Avatar Background Color
    #[serde(
        rename = "avatarBackgroundColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub avatar_background_color: Option<String>,
    /// Avatar Border Color
    #[serde(
        rename = "avatarBorderColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub avatar_border_color: Option<String>,
    /// Sender Message Color
    #[serde(
        rename = "senderMessageColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sender_message_color: Option<String>,
    /// Received Message Color
    #[serde(
        rename = "receivedMessageColor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub received_message_color: Option<String>,
}

/// `WidgetSettingsThemeDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WidgetSettingsThemeDTO {
    /// Theme Name
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Custom Color Options
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub colors: Option<WidgetSettingsThemeCustomColorDTO>,
}