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
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
//! `conversation-ai` data models for GoHighLevel API V3 (28 types).
//!
//! Generated from HighLevel's official OpenAPI spec for the
//! **Conversation Ai** module. Every endpoint that uses these types, with its
//! parameters, required scopes and enum values, is documented in the
//! [`conversation-ai` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/conversation-ai.md).
//!
//! Enable with `features = ["conversation-ai"]`.
// @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};
/// `ActionDataDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct ActionDataDTO {
/// Unique identifier for the action
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Name of the action
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Type of the action
/// Allowed values: `triggerWorkflow`, `updateContactField`, `appointmentBooking`,
/// `stopBot`, `humanHandOver`, `advancedFollowup`, `transferBot`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
/// Agent ID where the action belongs
#[serde(rename = "agentId", default, skip_serializing_if = "Option::is_none")]
pub agent_id: Option<String>,
/// Action-specific details. The structure depends on the action type. For TRIGGER_WORKFLOW
/// use triggerWorkflowDto, for UPDATE_CONTACT_FIELD use updateContactFieldDto, for
/// APPOINTMENT_BOOKING use appointmentBookingDto, for STOP_BOT use stopBotDto, for
/// HUMAN_HAND_OVER use humanHandOverDto, for ADVANCED_FOLLOWUP use advancedFollowupDto, and
/// for TRANSFER_BOT use transferBotDto.
/// Multiple possible shapes in the spec; raw JSON.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub details: Option<serde_json::Value>,
}
/// `ActionsIdDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct ActionsIdDto {
/// Unique identifier for the action.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// type of action.
/// Allowed values: `triggerWorkflow`, `updateContactField`, `appointmentBooking`,
/// `stopBot`, `humanHandOver`, `advancedFollowup`, `transferBot`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
/// `CreateActionDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateActionDTO {
/// Allowed values: `triggerWorkflow`, `updateContactField`, `appointmentBooking`,
/// `stopBot`, `humanHandOver`, `advancedFollowup`, `transferBot`.
/// Required by the API.
#[serde(rename = "type")]
pub type_: String,
/// Required by the API.
pub name: String,
/// Action-specific details. The structure depends on the action type. For TRIGGER_WORKFLOW
/// use triggerWorkflowDto, for UPDATE_CONTACT_FIELD use updateContactFieldDto, for
/// APPOINTMENT_BOOKING use appointmentBookingDto, for STOP_BOT use stopBotDto, for
/// HUMAN_HAND_OVER use humanHandOverDto, for ADVANCED_FOLLOWUP use advancedFollowupDto, and
/// for TRANSFER_BOT use transferBotDto.
/// Multiple possible shapes in the spec; raw JSON.
/// Required by the API.
pub details: serde_json::Value,
}
/// `CreateEmployeeDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateEmployeeDto {
/// Name of the agent.
/// Required by the API.
pub name: String,
/// Name of the business the agent represents.
#[serde(
rename = "businessName",
default,
skip_serializing_if = "Option::is_none"
)]
pub business_name: Option<String>,
/// Mode of operation - OFF, SUGGESTIVE, or AUTO_PILOT
/// Allowed values: `off`, `suggestive`, `auto-pilot`.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
/// Communication channels the agent can operate on
/// Allowed values: `IG`, `FB`, `SMS`, `WebChat`, `WhatsApp`, `Live_Chat`.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub channels: Vec<String>,
/// Indicates if this agent is a primary agent.
#[serde(rename = "isPrimary", default, skip_serializing_if = "Option::is_none")]
pub is_primary: Option<bool>,
/// Wait time before agent responds (max 5 for minutes, 300 for seconds)
#[serde(rename = "waitTime", default, skip_serializing_if = "Option::is_none")]
pub wait_time: Option<f64>,
/// Unit for wait time - SECONDS or MINUTES
/// Allowed values: `minutes`, `seconds`.
#[serde(
rename = "waitTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub wait_time_unit: Option<String>,
/// Indicates if sleep functionality is enabled.
#[serde(
rename = "sleepEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_enabled: Option<bool>,
/// Duration of sleep period (required if sleepEnabled is true). Set to null for indefinite
/// sleep. (max 2880 for minutes, 172800 for seconds, 48 for hours)
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Unit of sleep time - HOURS, MINUTES, or SECONDS (required if sleepEnabled is true). Set
/// to null for indefinite sleep.
/// Allowed values: `hours`, `minutes`, `seconds`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// Personality traits of the agent.
/// Required by the API.
pub personality: String,
/// The goal of the agent.
/// Required by the API.
pub goal: String,
/// Instructions for the agent.
/// Required by the API.
pub instructions: String,
/// Maximum number of messages in auto-pilot mode before requiring human intervention. (max:
/// 100, min: 1)
#[serde(
rename = "autoPilotMaxMessages",
default,
skip_serializing_if = "Option::is_none"
)]
pub auto_pilot_max_messages: Option<f64>,
/// Array of knowledge base IDs associated with this agent.
#[serde(
rename = "knowledgeBaseIds",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub knowledge_base_ids: Vec<String>,
/// Allow agent to respond to images
#[serde(
rename = "respondToImages",
default,
skip_serializing_if = "Option::is_none"
)]
pub respond_to_images: Option<bool>,
/// Allow agent to respond to audio
#[serde(
rename = "respondToAudio",
default,
skip_serializing_if = "Option::is_none"
)]
pub respond_to_audio: Option<bool>,
/// Enable sleep when a manual outbound message is sent.
#[serde(
rename = "sleepOnManualMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_manual_message: Option<bool>,
/// Enable sleep when a workflow outbound message is sent.
#[serde(
rename = "sleepOnWorkflowMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_workflow_message: Option<bool>,
}
/// `DeleteActionDataDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteActionDataDTO {
/// ID of the deleted action
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
}
/// `DeleteEmployeeResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteEmployeeResponseDTO {
/// Indicates if the agent was deleted successfully.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
/// Unique identifier of the deleted agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
}
/// `EmployeeListItemDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct EmployeeListItemDTO {
/// Unique identifier for the agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Name of the agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Name of the business the agent represents.
#[serde(
rename = "businessName",
default,
skip_serializing_if = "Option::is_none"
)]
pub business_name: Option<String>,
/// Current operating mode of the agent.
/// Allowed values: `off`, `suggestive`, `auto-pilot`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
/// Communication channels the agent operates on.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub channels: Vec<String>,
/// Wait time before agent responds.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "waitTime", default, skip_serializing_if = "Option::is_none")]
pub wait_time: Option<f64>,
/// Unit for wait time.
/// Allowed values: `minutes`, `seconds`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "waitTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub wait_time_unit: Option<String>,
/// Indicates if sleep functionality is enabled.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "sleepEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_enabled: Option<bool>,
/// Duration of sleep period.
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Unit of sleep time.
/// Allowed values: `hours`, `minutes`, `seconds`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// List of actions associated with this agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub actions: Vec<serde_json::Value>,
/// Indicates if this agent is a primary agent. (First agent created for a location is
/// primary by default)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "isPrimary", default, skip_serializing_if = "Option::is_none")]
pub is_primary: Option<bool>,
/// Maximum number of messages in auto-pilot mode before requiring human intervention.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "autoPilotMaxMessages",
default,
skip_serializing_if = "Option::is_none"
)]
pub auto_pilot_max_messages: Option<f64>,
/// Goal configuration for the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub goal: Option<serde_json::Value>,
/// Array of knowledge base IDs associated with this agent.
#[serde(
rename = "knowledgeBaseIds",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub knowledge_base_ids: Vec<String>,
/// Timestamp when the agent was created.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
/// Timestamp when the agent was last updated.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
/// Whether the bot sleeps on manual outbound messages.
#[serde(
rename = "sleepOnManualMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_manual_message: Option<bool>,
/// Whether the bot sleeps on workflow outbound messages.
#[serde(
rename = "sleepOnWorkflowMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_workflow_message: Option<bool>,
}
/// `EmployeeResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct EmployeeResponseDTO {
/// Unique identifier for the agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Name of the agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Name of the business the agent represents.
#[serde(
rename = "businessName",
default,
skip_serializing_if = "Option::is_none"
)]
pub business_name: Option<String>,
/// Current operating mode of the agent.
/// Allowed values: `off`, `suggestive`, `auto-pilot`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
/// Communication channels the agent operates on.
/// Allowed values: `IG`, `FB`, `SMS`, `WebChat`, `WhatsApp`, `Live_Chat`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub channels: Vec<String>,
/// Wait time before agent responds.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "waitTime", default, skip_serializing_if = "Option::is_none")]
pub wait_time: Option<f64>,
/// Unit for wait time.
/// Allowed values: `minutes`, `seconds`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "waitTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub wait_time_unit: Option<String>,
/// Indicates if sleep functionality is enabled.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "sleepEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_enabled: Option<bool>,
/// Duration of sleep period.
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Unit of sleep time.
/// Allowed values: `hours`, `minutes`, `seconds`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// List of actions associated with this agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub actions: Vec<ActionsIdDto>,
/// Indicates if this agent is a primary agent.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "isPrimary", default, skip_serializing_if = "Option::is_none")]
pub is_primary: Option<bool>,
/// Maximum number of messages in auto-pilot mode before requiring human intervention.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "autoPilotMaxMessages",
default,
skip_serializing_if = "Option::is_none"
)]
pub auto_pilot_max_messages: Option<f64>,
/// The goal of the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub goal: Option<String>,
/// Personality traits of the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub personality: Option<String>,
/// Instructions for the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub instructions: Option<String>,
/// Array of knowledge base IDs associated with this agent.
#[serde(
rename = "knowledgeBaseIds",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub knowledge_base_ids: Vec<String>,
/// Whether the bot sleeps on manual outbound messages.
#[serde(
rename = "sleepOnManualMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_manual_message: Option<bool>,
/// Whether the bot sleeps on workflow outbound messages.
#[serde(
rename = "sleepOnWorkflowMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_workflow_message: Option<bool>,
}
/// `FetchAIResponseDetailsResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FetchAIResponseDetailsResponseDTO {
/// The complete prompt used for the AI response.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub prompt: Option<String>,
/// The intent/goal extracted from location prompt.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub intent: Option<String>,
/// The response message generated by the AI.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "responseMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub response_message: Option<String>,
/// FAQ chunks used in generating the response from fine-tuned data.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub faqs: Vec<serde_json::Value>,
/// Website content chunks used in generating the response.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub website: Vec<serde_json::Value>,
/// ID of the employee/agent that generated the response.
#[serde(rename = "agentId", default, skip_serializing_if = "Option::is_none")]
pub agent_id: Option<String>,
/// The original input message that triggered this response.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub input: Option<String>,
/// List of actions taken during this interaction.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "actionLogs", default, skip_serializing_if = "Vec::is_empty")]
pub action_logs: Vec<serde_json::Value>,
/// Conversation history leading up to this response.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub history: Vec<serde_json::Value>,
/// Mode of operation during this interaction.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
}
/// `FollowupSequence` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FollowupSequence {
/// Unique identifier for this followup step
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<f64>,
/// Time unit for followup delay
/// Allowed values: `days`, `hours`, `minutes`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "followupTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub followup_time_unit: Option<String>,
/// Time duration before followup (max: 60 minutes, 24 hours, or 180 days depending on unit)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "followupTime",
default,
skip_serializing_if = "Option::is_none"
)]
pub followup_time: Option<f64>,
/// Whether to use AI to generate the followup message
#[serde(
rename = "aiEnabledMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub ai_enabled_message: Option<bool>,
/// Whether to trigger a workflow during this followup
#[serde(
rename = "triggerWorkflow",
default,
skip_serializing_if = "Option::is_none"
)]
pub trigger_workflow: Option<bool>,
/// Custom message to send (when aiEnabledMessage is false)
#[serde(
rename = "customMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub custom_message: Option<String>,
/// Workflow ID to trigger (when triggerWorkflow is true)
#[serde(
rename = "workflowId",
default,
skip_serializing_if = "Option::is_none"
)]
pub workflow_id: Option<String>,
/// Whether contact was requested in this followup
#[serde(
rename = "contactRequested",
default,
skip_serializing_if = "Option::is_none"
)]
pub contact_requested: Option<bool>,
}
/// `FollowupSettings` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FollowupSettings {
/// Whether to dynamically switch channels for followups
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "dynamicChannelSwitching",
default,
skip_serializing_if = "Option::is_none"
)]
pub dynamic_channel_switching: Option<bool>,
/// Whether to respect working hours for followups
#[serde(
rename = "followUpHours",
default,
skip_serializing_if = "Option::is_none"
)]
pub follow_up_hours: Option<bool>,
/// Working hours configuration for followups
#[serde(
rename = "workingHours",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub working_hours: Vec<WorkingHours>,
/// Timezone to use for followups, contact or location
/// Allowed values: `contact`, `business`.
#[serde(
rename = "timezoneToUse",
default,
skip_serializing_if = "Option::is_none"
)]
pub timezone_to_use: Option<String>,
}
/// `Interval` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct Interval {
/// Start hour (24-hour format)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "startHour", default, skip_serializing_if = "Option::is_none")]
pub start_hour: Option<f64>,
/// Start minute
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "startMinute",
default,
skip_serializing_if = "Option::is_none"
)]
pub start_minute: Option<f64>,
/// End hour (24-hour format)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "endHour", default, skip_serializing_if = "Option::is_none")]
pub end_hour: Option<f64>,
/// End minute
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "endMinute", default, skip_serializing_if = "Option::is_none")]
pub end_minute: Option<f64>,
}
/// `SearchEmployeeResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SearchEmployeeResponseDTO {
/// List of agents matching the search criteria.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub agents: Vec<EmployeeListItemDTO>,
/// Total number of agents in the location (unfiltered count).
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "totalCount",
default,
skip_serializing_if = "Option::is_none"
)]
pub total_count: Option<f64>,
/// Number of agents in the current response (filtered/paginated count).
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub count: Option<f64>,
}
/// `UpdateEmployeeDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateEmployeeDto {
/// Name of the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Name of the business the agent represents.
#[serde(
rename = "businessName",
default,
skip_serializing_if = "Option::is_none"
)]
pub business_name: Option<String>,
/// Mode of operation for the agent, required if primary is enabled.
/// Allowed values: `off`, `suggestive`, `auto-pilot`.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
/// Channels the agent can use.
/// Allowed values: `IG`, `FB`, `SMS`, `WebChat`, `WhatsApp`, `Live_Chat`.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub channels: Vec<String>,
/// Indicates if this agent is a primary agent.
#[serde(rename = "isPrimary", default, skip_serializing_if = "Option::is_none")]
pub is_primary: Option<bool>,
/// Wait time before agent responds (max 5 for minutes, 300 for seconds).
#[serde(rename = "waitTime", default, skip_serializing_if = "Option::is_none")]
pub wait_time: Option<f64>,
/// Unit for wait time - SECONDS or MINUTES
/// Allowed values: `minutes`, `seconds`.
#[serde(
rename = "waitTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub wait_time_unit: Option<String>,
/// Indicates if sleep functionality is enabled.
#[serde(
rename = "sleepEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_enabled: Option<bool>,
/// Duration of sleep period (required if sleepEnabled is true). Set to null for indefinite
/// sleep. (max 2880 for minutes, 172800 for seconds, 48 for hours)
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Unit of sleep time - HOURS, MINUTES, or SECONDS (required if sleepEnabled is true). Set
/// to null for indefinite sleep.
/// Allowed values: `hours`, `minutes`, `seconds`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// Personality traits of the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub personality: Option<String>,
/// The goal of the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub goal: Option<String>,
/// Instructions for the agent.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub instructions: Option<String>,
/// Maximum number of messages in auto-pilot mode before requiring human intervention. (max:
/// 100, min: 1)
/// Required by the API.
#[serde(rename = "autoPilotMaxMessages")]
pub auto_pilot_max_messages: f64,
/// Array of knowledge base IDs associated with this agent.
#[serde(
rename = "knowledgeBaseIds",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub knowledge_base_ids: Vec<String>,
/// Allow agent to respond to images
#[serde(
rename = "respondToImages",
default,
skip_serializing_if = "Option::is_none"
)]
pub respond_to_images: Option<bool>,
/// Allow agent to respond to audio
#[serde(
rename = "respondToAudio",
default,
skip_serializing_if = "Option::is_none"
)]
pub respond_to_audio: Option<bool>,
/// Enable sleep when a manual outbound message is sent.
#[serde(
rename = "sleepOnManualMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_manual_message: Option<bool>,
/// Enable sleep when a workflow outbound message is sent.
#[serde(
rename = "sleepOnWorkflowMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_on_workflow_message: Option<bool>,
}
/// `UpdateFollowupSettingsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateFollowupSettingsDTO {
/// Required by the API.
#[serde(rename = "actionIds", default, skip_serializing_if = "Vec::is_empty")]
pub action_ids: Vec<String>,
/// Required by the API.
#[serde(rename = "followupSettings")]
pub followup_settings: FollowupSettings,
}
/// `WorkingHours` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct WorkingHours {
/// Day of the week (0=Sunday, 1=Monday, etc.)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "dayOfTheWeek",
default,
skip_serializing_if = "Option::is_none"
)]
pub day_of_the_week: Option<f64>,
/// Time intervals for this day
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub intervals: Vec<Interval>,
}
/// `advancedFollowupDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AdvancedFollowupDto {
/// Whether advanced followup is enabled
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// ID of the followup scenario
/// Allowed values: `contactStoppedReplying`, `contactIsBusy`, `contactRequested`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "scenarioId",
default,
skip_serializing_if = "Option::is_none"
)]
pub scenario_id: Option<String>,
/// Sequence of followup actions to perform
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "followupSequence",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub followup_sequence: Vec<FollowupSequence>,
/// Additional settings for followup behavior
#[serde(
rename = "followupSettings",
default,
skip_serializing_if = "Option::is_none"
)]
pub followup_settings: Option<FollowupSettings>,
}
/// `appointmentBookingDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AppointmentBookingDto {
/// Optional action ID reference
#[serde(rename = "actionId", default, skip_serializing_if = "Option::is_none")]
pub action_id: Option<String>,
/// Calendar ID for appointment booking
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "calendarId",
default,
skip_serializing_if = "Option::is_none"
)]
pub calendar_id: Option<String>,
/// If true, only sends the appointment link without booking
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "onlySendLink",
default,
skip_serializing_if = "Option::is_none"
)]
pub only_send_link: Option<bool>,
/// Whether to trigger a workflow after booking (cannot be true when onlySendLink is true)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "triggerWorkflow",
default,
skip_serializing_if = "Option::is_none"
)]
pub trigger_workflow: Option<bool>,
/// Workflow IDs to trigger after booking (required when triggerWorkflow is true)
#[serde(rename = "workflowIds", default, skip_serializing_if = "Vec::is_empty")]
pub workflow_ids: Vec<String>,
/// Whether to put the agent to sleep after booking (cannot be true when onlySendLink is
/// true)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "sleepAfterBooking",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_after_booking: Option<bool>,
/// Unit for sleep time (required when sleepAfterBooking is true)
/// Allowed values: `days`, `hours`, `minutes`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// Sleep duration (required when sleepAfterBooking is true)
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Whether to transfer to another agent after booking (cannot be true when onlySendLink is
/// true)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "transferBot",
default,
skip_serializing_if = "Option::is_none"
)]
pub transfer_bot: Option<bool>,
/// Agent ID to transfer to (required when transferBot is true)
#[serde(
rename = "transferAgent",
default,
skip_serializing_if = "Option::is_none"
)]
pub transfer_agent: Option<String>,
/// Whether to allow appointment rescheduling (cannot be true when onlySendLink is true)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "rescheduleEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub reschedule_enabled: Option<bool>,
/// Whether to allow appointment cancellation (cannot be true when onlySendLink is true)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "cancelEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub cancel_enabled: Option<bool>,
}
/// `createActionResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateActionResponseDTO {
/// Created action details
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub data: Option<ActionDataDTO>,
/// Success status of the request
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
}
/// `deleteActionResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteActionResponseDTO {
/// Deleted action information
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub data: Option<DeleteActionDataDTO>,
/// Success status of the request
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
}
/// `fetchActionDetailsResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FetchActionDetailsResponseDTO {
/// Action details
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub data: Option<ActionDataDTO>,
/// Success status of the request
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
}
/// `fetchActionsForEmployeeResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FetchActionsForEmployeeResponseDTO {
/// Grouped actions by type
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub data: Vec<ActionDataDTO>,
/// Success status of the request
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
}
/// `humanHandOverDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct HumanHandOverDto {
/// Whether human handover action is enabled
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Condition that triggers human handover
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "triggerCondition",
default,
skip_serializing_if = "Option::is_none"
)]
pub trigger_condition: Option<String>,
/// Example phrases that trigger human handover (required when handoverType is custom or
/// contactRequest)
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub examples: Vec<String>,
/// ID of the user to assign the conversation to
#[serde(
rename = "assignToUserId",
default,
skip_serializing_if = "Option::is_none"
)]
pub assign_to_user_id: Option<String>,
/// Whether to skip assigning to a specific user
#[serde(
rename = "skipAssignToUser",
default,
skip_serializing_if = "Option::is_none"
)]
pub skip_assign_to_user: Option<bool>,
/// Whether to create a task when handing over
#[serde(
rename = "createTask",
default,
skip_serializing_if = "Option::is_none"
)]
pub create_task: Option<bool>,
/// Whether the agent can be reactivated after handover
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "reactivateEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub reactivate_enabled: Option<bool>,
/// Time unit for reactivation delay (required when reactivateEnabled is true)
/// Allowed values: `days`, `hours`, `minutes`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// Time duration before reactivation (required when reactivateEnabled is true)
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Final message sent when handing over to human
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "finalMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub final_message: Option<String>,
/// Tags to apply during handover
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub tags: Vec<String>,
/// Type of human handover detection
/// Allowed values: `contactRequest`, `lackOfInformation`, `failedToResolveIssue`, `custom`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "handoverType",
default,
skip_serializing_if = "Option::is_none"
)]
pub handover_type: Option<String>,
}
/// `stopBotDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct StopBotDto {
/// Type of stop bot detection - Goodbye or Custom
/// Allowed values: `Goodbye`, `Custom`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "stopBotDetectionType",
default,
skip_serializing_if = "Option::is_none"
)]
pub stop_bot_detection_type: Option<String>,
/// Condition that triggers stopping the bot
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "stopBotTriggerCondition",
default,
skip_serializing_if = "Option::is_none"
)]
pub stop_bot_trigger_condition: Option<String>,
/// Whether the bot can be reactivated after being stopped
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "reactivateEnabled",
default,
skip_serializing_if = "Option::is_none"
)]
pub reactivate_enabled: Option<bool>,
/// Time unit for reactivation delay (required when reactivateEnabled is true)
/// Allowed values: `days`, `hours`, `minutes`.
#[serde(
rename = "sleepTimeUnit",
default,
skip_serializing_if = "Option::is_none"
)]
pub sleep_time_unit: Option<String>,
/// Time duration before reactivation (required when reactivateEnabled is true)
#[serde(rename = "sleepTime", default, skip_serializing_if = "Option::is_none")]
pub sleep_time: Option<f64>,
/// Whether this action is enabled for the agent
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Example phrases that trigger stop bot action (minimum 2 required)
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "stopBotExamples",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub stop_bot_examples: Vec<String>,
/// Final message sent when stopping the bot
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "finalMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub final_message: Option<String>,
/// Tags to apply when stopping the bot
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub tags: Vec<String>,
}
/// `transferBotDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TransferBotDto {
/// Type of transfer - Default or Custom
/// Allowed values: `Default`, `Custom`.
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "transferBotType",
default,
skip_serializing_if = "Option::is_none"
)]
pub transfer_bot_type: Option<String>,
/// ID of the bot/agent to transfer to
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "transferToBot",
default,
skip_serializing_if = "Option::is_none"
)]
pub transfer_to_bot: Option<String>,
/// Whether this transfer action is enabled
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Condition that triggers the transfer (required for Custom type)
#[serde(
rename = "transferBotTriggerCondition",
default,
skip_serializing_if = "Option::is_none"
)]
pub transfer_bot_trigger_condition: Option<String>,
/// Example phrases that trigger transfer (required for Custom type, minimum 2)
#[serde(
rename = "transferBotExamples",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub transfer_bot_examples: Vec<String>,
}
/// `triggerWorkflowDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TriggerWorkflowDto {
/// Array of workflow IDs to trigger
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(rename = "workflowIds", default, skip_serializing_if = "Vec::is_empty")]
pub workflow_ids: Vec<String>,
/// Condition that triggers the workflow
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "triggerCondition",
default,
skip_serializing_if = "Option::is_none"
)]
pub trigger_condition: Option<String>,
/// Optional message to send when triggering the workflow
#[serde(
rename = "triggerMessage",
default,
skip_serializing_if = "Option::is_none"
)]
pub trigger_message: Option<String>,
}
/// `updateActionResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateActionResponseDTO {
/// Updated action details
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub data: Option<ActionDataDTO>,
/// Success status of the request
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub success: Option<bool>,
}
/// `updateContactFieldDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateContactFieldDto {
/// ID of the contact field in Contacts Table
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(
rename = "contactFieldId",
default,
skip_serializing_if = "Option::is_none"
)]
pub contact_field_id: Option<String>,
/// Description of the contact field in Contacts Table
/// Required by the API.
/// (Optional here so responses that omit it still parse.)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Contact update examples in Contacts Table. Not required when using standard fields,
/// Monetory or Date Custom fields.
#[serde(
rename = "contactUpdateExamples",
default,
skip_serializing_if = "Vec::is_empty"
)]
pub contact_update_examples: Vec<String>,
}