Class: Revox::Models::CampaignGetRowsResponse::Row

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/campaign_get_rows_response.rb,
sig/revox/models/campaign_get_rows_response.rbs

Defined Under Namespace

Classes: Call

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, input_data:, phone_number:, row_index:, call: nil) ⇒ Object

Some parameter documentations has been truncated, see Revox::Models::CampaignGetRowsResponse::Row for more details.

Parameters:

  • id (String)
  • input_data (Hash{Symbol=>String})
  • phone_number (String)
  • row_index (Float)
  • call (Revox::Models::CampaignGetRowsResponse::Row::Call) (defaults to: nil)

    This represent a call "order" that was requested by the user. A call order can b



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
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
# File 'lib/revox/models/campaign_get_rows_response.rb', line 15

class Row < Revox::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String]
  required :id, String

  # @!attribute input_data
  #
  #   @return [Hash{Symbol=>String}]
  required :input_data, Revox::Internal::Type::HashOf[String]

  # @!attribute phone_number
  #
  #   @return [String]
  required :phone_number, String

  # @!attribute row_index
  #
  #   @return [Float]
  required :row_index, Float

  # @!attribute call
  #   This represent a call "order" that was requested by the user. A call order can
  #   be resolved over multiple call attempts spanning up to a few days.
  #
  #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call, nil]
  optional :call, -> { Revox::Models::CampaignGetRowsResponse::Row::Call }

  # @!method initialize(id:, input_data:, phone_number:, row_index:, call: nil)
  #   Some parameter documentations has been truncated, see
  #   {Revox::Models::CampaignGetRowsResponse::Row} for more details.
  #
  #   @param id [String]
  #
  #   @param input_data [Hash{Symbol=>String}]
  #
  #   @param phone_number [String]
  #
  #   @param row_index [Float]
  #
  #   @param call [Revox::Models::CampaignGetRowsResponse::Row::Call] This represent a call "order" that was requested by the user. A call order can b

  # @see Revox::Models::CampaignGetRowsResponse::Row#call
  class Call < Revox::Internal::Type::BaseModel
    # @!attribute id
    #   The ID of the call.
    #
    #   @return [String]
    required :id, String

    # @!attribute assignee
    #   The team member responsible for following up on this call.
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assignee, nil]
    required :assignee, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assignee }, nil?: true

    # @!attribute assistant
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant, nil]
    required :assistant, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant }, nil?: true

    # @!attribute call_attempts
    #   All call attempts for this call order, ordered by most recent first.
    #
    #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt>]
    required :call_attempts,
             -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt] }

    # @!attribute call_retry_config
    #   Configuration for call retry behavior including time windows, delays, and max
    #   iterations. If not provided, defaults will be used.
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig, nil]
    required :call_retry_config,
             -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig },
             nil?: true

    # @!attribute calls_count
    #   The number of call attempts made.
    #
    #   @return [Float]
    required :calls_count, Float

    # @!attribute campaign
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Campaign, nil]
    required :campaign, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Campaign }, nil?: true

    # @!attribute contact
    #   Magic contact variables (prospect identity) extracted from the call's input data
    #   and transcript.
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Contact]
    required :contact, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Contact }

    # @!attribute created_at
    #   The time the call order was created.
    #
    #   @return [Object]
    required :created_at, Revox::Internal::Type::Unknown

    # @!attribute direction
    #   Whether the call is inbound or outbound.
    #
    #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Direction]
    required :direction, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Direction }

    # @!attribute first_sentence_delay_ms
    #   Delay in milliseconds before speaking the first sentence. Default: 400.
    #
    #   @return [Integer]
    required :first_sentence_delay_ms, Integer

    # @!attribute from_phone_number
    #   The phone number that made the call. Formatted in E.164 format. Example:
    #   +1234567890
    #
    #   @return [String]
    required :from_phone_number, String

    # @!attribute is_cancelled
    #   DEPRECATED: Whether the call has been cancelled. This is derived from `status`.
    #   Use `status` instead.
    #
    #   @return [Boolean]
    required :is_cancelled, Revox::Internal::Type::Boolean

    # @!attribute is_completed
    #   DEPRECATED: Whether the call has completed. This is derived from `status`. Use
    #   `status` instead.
    #
    #   @return [Boolean]
    required :is_completed, Revox::Internal::Type::Boolean

    # @!attribute last_call_attempt
    #   This represent a single call attempt. A call attempt is a single call made to
    #   the phone number.
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt, nil]
    required :last_call_attempt,
             -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt },
             nil?: true

    # @!attribute llm_model
    #
    #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3]
    required :llm_model, union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel }

    # @!attribute metadata
    #   Metadata stored with the call.
    #
    #   @return [Hash{Symbol=>String}, nil]
    required :metadata, Revox::Internal::Type::HashOf[String], nil?: true

    # @!attribute organization_id
    #   The ID of the organization that owns the call.
    #
    #   @return [String]
    required :organization_id, String

    # @!attribute prompt_variables
    #   Variables used to interpolate the prompt.
    #
    #   @return [Hash{Symbol=>String}, nil]
    required :prompt_variables, Revox::Internal::Type::HashOf[String], nil?: true

    # @!attribute scheduled_at
    #   The time the call order is scheduled to start.
    #
    #   @return [Object]
    required :scheduled_at, Revox::Internal::Type::Unknown

    # @!attribute status
    #   The status of the call.
    #
    #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Status]
    required :status, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Status }

    # @!attribute to_phone_number
    #   The phone number that received the call. Formatted in E.164 format. Example:
    #   +1234567890
    #
    #   @return [String]
    required :to_phone_number, String

    # @!attribute updated_at
    #   The time the call order was last updated (any state change, retry, or analysis
    #   result).
    #
    #   @return [Object]
    required :updated_at, Revox::Internal::Type::Unknown

    # @!attribute outcome
    #   Business outcome of the call. Null if not computed or no transcript.
    #
    #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Outcome, nil]
    optional :outcome, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Outcome }, nil?: true

    # @!attribute outcome_summary
    #   LLM explanation for the outcome, when outcome was computed from the transcript.
    #
    #   @return [String, nil]
    optional :outcome_summary, String, nil?: true

    # @!method initialize(id:, assignee:, assistant:, call_attempts:, call_retry_config:, calls_count:, campaign:, contact:, created_at:, direction:, first_sentence_delay_ms:, from_phone_number:, is_cancelled:, is_completed:, last_call_attempt:, llm_model:, metadata:, organization_id:, prompt_variables:, scheduled_at:, status:, to_phone_number:, updated_at:, outcome: nil, outcome_summary: nil)
    #   Some parameter documentations has been truncated, see
    #   {Revox::Models::CampaignGetRowsResponse::Row::Call} for more details.
    #
    #   This represent a call "order" that was requested by the user. A call order can
    #   be resolved over multiple call attempts spanning up to a few days.
    #
    #   @param id [String] The ID of the call.
    #
    #   @param assignee [Revox::Models::CampaignGetRowsResponse::Row::Call::Assignee, nil] The team member responsible for following up on this call.
    #
    #   @param assistant [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant, nil]
    #
    #   @param call_attempts [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt>] All call attempts for this call order, ordered by most recent first.
    #
    #   @param call_retry_config [Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig, nil] Configuration for call retry behavior including time windows, delays, and max it
    #
    #   @param calls_count [Float] The number of call attempts made.
    #
    #   @param campaign [Revox::Models::CampaignGetRowsResponse::Row::Call::Campaign, nil]
    #
    #   @param contact [Revox::Models::CampaignGetRowsResponse::Row::Call::Contact] Magic contact variables (prospect identity) extracted from the call's input data
    #
    #   @param created_at [Object] The time the call order was created.
    #
    #   @param direction [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Direction] Whether the call is inbound or outbound.
    #
    #   @param first_sentence_delay_ms [Integer] Delay in milliseconds before speaking the first sentence. Default: 400.
    #
    #   @param from_phone_number [String] The phone number that made the call. Formatted in E.164 format. Example: +123456
    #
    #   @param is_cancelled [Boolean] DEPRECATED: Whether the call has been cancelled. This is derived from `status`.
    #
    #   @param is_completed [Boolean] DEPRECATED: Whether the call has completed. This is derived from `status`. Use `
    #
    #   @param last_call_attempt [Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt, nil] This represent a single call attempt. A call attempt is a single call made to th
    #
    #   @param llm_model [Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3]
    #
    #   @param metadata [Hash{Symbol=>String}, nil] Metadata stored with the call.
    #
    #   @param organization_id [String] The ID of the organization that owns the call.
    #
    #   @param prompt_variables [Hash{Symbol=>String}, nil] Variables used to interpolate the prompt.
    #
    #   @param scheduled_at [Object] The time the call order is scheduled to start.
    #
    #   @param status [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Status] The status of the call.
    #
    #   @param to_phone_number [String] The phone number that received the call. Formatted in E.164 format. Example: +12
    #
    #   @param updated_at [Object] The time the call order was last updated (any state change, retry, or analysis r
    #
    #   @param outcome [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Outcome, nil] Business outcome of the call. Null if not computed or no transcript.
    #
    #   @param outcome_summary [String, nil] LLM explanation for the outcome, when outcome was computed from the transcript.

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#assignee
    class Assignee < Revox::Internal::Type::BaseModel
      # @!attribute id
      #   The database user id of the assignee.
      #
      #   @return [String]
      required :id, String

      # @!attribute email
      #
      #   @return [String]
      required :email, String

      # @!attribute first_name
      #
      #   @return [String, nil]
      required :first_name, String, nil?: true

      # @!attribute last_name
      #
      #   @return [String, nil]
      required :last_name, String, nil?: true

      # @!method initialize(id:, email:, first_name:, last_name:)
      #   The team member responsible for following up on this call.
      #
      #   @param id [String] The database user id of the assignee.
      #
      #   @param email [String]
      #
      #   @param first_name [String, nil]
      #
      #   @param last_name [String, nil]
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#assistant
    class Assistant < Revox::Internal::Type::BaseModel
      # @!attribute id
      #
      #   @return [String]
      required :id, String

      # @!attribute after_call_sms_outcomes
      #   Which call outcomes trigger the after-call SMS. When empty or null, no
      #   after-call SMS is sent. Use "none" when outcome is null.
      #
      #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::AfterCallSMSOutcome>, nil]
      required :after_call_sms_outcomes,
               -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::AfterCallSMSOutcome] },
               nil?: true

      # @!attribute after_call_sms_prompt
      #   Prompt / instructions for the after-call SMS. Supports {{variable}}
      #   placeholders. When null, no after-call SMS is sent.
      #
      #   @return [String, nil]
      required :after_call_sms_prompt, String, nil?: true

      # @!attribute background_sound
      #   Ambient background sound to play during the call. null disables it.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::BackgroundSound, nil]
      required :background_sound,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::BackgroundSound },
               nil?: true

      # @!attribute background_sound_volume
      #   Volume of the ambient background sound (0 = silent, 1 = max).
      #
      #   @return [Float]
      required :background_sound_volume, Float

      # @!attribute calendly
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly, nil]
      required :calendly,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly },
               nil?: true

      # @!attribute call_retry_config
      #   Configuration for call retry behavior including time windows, delays, and max
      #   iterations. If not provided, defaults will be used.
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig, nil]
      required :call_retry_config,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig },
               nil?: true

      # @!attribute cartesia_dictionary_pronunciation_id
      #   Optional Cartesia pronunciation dictionary ID linked to this assistant.
      #
      #   @return [String, nil]
      required :cartesia_dictionary_pronunciation_id, String, nil?: true

      # @!attribute created_at
      #
      #   @return [Object]
      required :created_at, Revox::Internal::Type::Unknown

      # @!attribute custom_tools
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool>, nil]
      required :custom_tools,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool] },
               nil?: true

      # @!attribute email_notification_address
      #   Email address(es) to receive notifications when a call ends with a matching
      #   outcome. Accepts a single email or a comma-separated list (e.g. "alice@x.com,
      #   bob@y.com").
      #
      #   @return [String, nil]
      required :email_notification_address, String, nil?: true

      # @!attribute email_notification_language
      #   The language used for the notification email content. One of "en" or "fr".
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationLanguage]
      required :email_notification_language,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationLanguage }

      # @!attribute email_notification_outcomes
      #   Which call outcomes trigger an email notification. E.g. ["interested",
      #   "completed", "none"]. Use "none" when outcome is null.
      #
      #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationOutcome>, nil]
      required :email_notification_outcomes,
               -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationOutcome] },
               nil?: true

      # @!attribute end_of_call_sentence
      #
      #   @return [String, nil]
      required :end_of_call_sentence, String, nil?: true

      # @!attribute first_sentence
      #
      #   @return [String, nil]
      required :first_sentence, String, nil?: true

      # @!attribute first_sentence_delay_ms
      #   Delay in milliseconds before speaking the first sentence. Default: 400.
      #
      #   @return [Integer]
      required :first_sentence_delay_ms, Integer

      # @!attribute first_sentence_mode
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FirstSentenceMode]
      required :first_sentence_mode,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FirstSentenceMode }

      # @!attribute from_phone_number
      #   Override the default outbound phone number for calls placed with this assistant.
      #   When null, the organization's default phone number is used.
      #
      #   @return [String, nil]
      required :from_phone_number, String, nil?: true

      # @!attribute human_transfer_mode
      #   Warm or cold transfer when transfer_phone_number is set; null when transfer is
      #   not configured.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::HumanTransferMode, nil]
      required :human_transfer_mode,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::HumanTransferMode },
               nil?: true

      # @!attribute ivr_navigation_enabled
      #   Enable IVR navigation tools. When enabled, the assistant can send DTMF tones and
      #   skip turns to navigate phone menus.
      #
      #   @return [Boolean]
      required :ivr_navigation_enabled, Revox::Internal::Type::Boolean

      # @!attribute llm_model
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3]
      required :llm_model, union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel }

      # @!attribute logo_url
      #   Public URL of the brand logo shown on the assistant's demo page. Null when
      #   unset.
      #
      #   @return [String, nil]
      required :logo_url, String, nil?: true

      # @!attribute max_call_duration_secs
      #   The maximum duration of the call in seconds. This is the maximum time the call
      #   will be allowed to run.
      #
      #   @return [Float]
      required :max_call_duration_secs, Float

      # @!attribute max_duration_end_message
      #   Optional message the agent will say, without being interruptible, when the call
      #   reaches its max duration. Kept short so it fits inside the farewell buffer. If
      #   null, the call ends silently.
      #
      #   @return [String, nil]
      required :max_duration_end_message, String, nil?: true

      # @!attribute name
      #
      #   @return [String]
      required :name, String

      # @!attribute organization_id
      #
      #   @return [String]
      required :organization_id, String

      # @!attribute position
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Position, nil]
      required :position,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Position },
               nil?: true

      # @!attribute prompt
      #
      #   @return [String]
      required :prompt, String

      # @!attribute prompt_flow
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow, nil]
      required :prompt_flow,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow },
               nil?: true

      # @!attribute slack
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack, nil]
      required :slack, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack }, nil?: true

      # @!attribute sms_enabled
      #   Enable SMS tool during calls. When enabled, the agent can send SMS messages to
      #   the user on the call.
      #
      #   @return [Boolean]
      required :sms_enabled, Revox::Internal::Type::Boolean

      # @!attribute sms_template
      #   Hardcoded SMS template to send during calls. When set, this exact text is sent
      #   instead of letting the agent generate the message. Supports {{variable}}
      #   placeholders.
      #
      #   @return [String, nil]
      required :sms_template, String, nil?: true

      # @!attribute structured_output_config
      #   The structured output config to use for the call. This is used to extract the
      #   data from the call (like email, name, company name, etc.).
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig>, nil]
      required :structured_output_config,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig] },
               nil?: true

      # @!attribute structured_output_prompt
      #   Custom prompt for structured data extraction. If not provided, a default prompt
      #   is used. Available variables: {{transcript}}, {{call_direction}},
      #   {{user_phone_number}}, {{agent_phone_number}}.
      #
      #   @return [String, nil]
      required :structured_output_prompt, String, nil?: true

      # @!attribute stt_context
      #   Assistant-level speech-to-text context: structured `general` key/value pairs
      #   plus a list of domain `terms`. Prompt-derived context is merged in without
      #   replacing existing entries.
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext, nil]
      required :stt_context,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext },
               nil?: true

      # @!attribute stt_model
      #   Transcriber (speech-to-text) model used for the assistant.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttModel]
      required :stt_model, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttModel }

      # @!attribute thinking_sound
      #   Audio clip to play while the agent is processing a response. One of the built-in
      #   LiveKit audio clips; null disables it.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::ThinkingSound, nil]
      required :thinking_sound,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::ThinkingSound },
               nil?: true

      # @!attribute thinking_sound_probability
      #   Probability [0..1] that the thinking sound plays on any given turn; otherwise
      #   the agent is silent while thinking.
      #
      #   @return [Float]
      required :thinking_sound_probability, Float

      # @!attribute thinking_sound_volume
      #   Volume of the thinking sound (0 = silent, 1 = max).
      #
      #   @return [Float]
      required :thinking_sound_volume, Float

      # @!attribute transfer_phone_number
      #   Phone number to transfer calls to when users request to speak to a human agent.
      #
      #   @return [String, nil]
      required :transfer_phone_number, String, nil?: true

      # @!attribute type
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Type]
      required :type, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Type }

      # @!attribute updated_at
      #
      #   @return [Object]
      required :updated_at, Revox::Internal::Type::Unknown

      # @!attribute voice
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice, nil]
      required :voice, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice }, nil?: true

      # @!attribute voicemail_message
      #   If set, when voicemail is detected the agent will speak this message then hang
      #   up; if null, hang up immediately.
      #
      #   @return [String, nil]
      required :voicemail_message, String, nil?: true

      # @!attribute voicemail_sms_prompt
      #   Prompt / instructions for the voicemail SMS. Supports {{variable}} placeholders.
      #   When null, no SMS is sent on voicemail.
      #
      #   @return [String, nil]
      required :voicemail_sms_prompt, String, nil?: true

      # @!attribute warm_transfer_summary_instructions
      #   Warm transfer only: instructions for the supervisor handoff summary; null when
      #   not configured or cold transfer.
      #
      #   @return [String, nil]
      required :warm_transfer_summary_instructions, String, nil?: true

      # @!attribute webhook_url
      #   The webhook URL to call when the call is completed.
      #
      #   @return [String, nil]
      required :webhook_url, String, nil?: true

      # @!attribute zoho
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho, nil]
      required :zoho, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho }, nil?: true

      # @!attribute created_by
      #   The user who created the assistant.
      #
      #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CreatedBy, nil]
      optional :created_by,
               -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CreatedBy },
               nil?: true

      # @!attribute faq_items
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem>, nil]
      optional :faq_items,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem] }

      # @!attribute is_realestate_assistant
      #
      #   @return [Boolean, nil]
      optional :is_realestate_assistant, Revox::Internal::Type::Boolean

      # @!attribute pending_faq_count
      #
      #   @return [Float, nil]
      optional :pending_faq_count, Float

      # @!method initialize(id:, after_call_sms_outcomes:, after_call_sms_prompt:, background_sound:, background_sound_volume:, calendly:, call_retry_config:, cartesia_dictionary_pronunciation_id:, created_at:, custom_tools:, email_notification_address:, email_notification_language:, email_notification_outcomes:, end_of_call_sentence:, first_sentence:, first_sentence_delay_ms:, first_sentence_mode:, from_phone_number:, human_transfer_mode:, ivr_navigation_enabled:, llm_model:, logo_url:, max_call_duration_secs:, max_duration_end_message:, name:, organization_id:, position:, prompt:, prompt_flow:, slack:, sms_enabled:, sms_template:, structured_output_config:, structured_output_prompt:, stt_context:, stt_model:, thinking_sound:, thinking_sound_probability:, thinking_sound_volume:, transfer_phone_number:, type:, updated_at:, voice:, voicemail_message:, voicemail_sms_prompt:, warm_transfer_summary_instructions:, webhook_url:, zoho:, created_by: nil, faq_items: nil, is_realestate_assistant: nil, pending_faq_count: nil)
      #   Some parameter documentations has been truncated, see
      #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant} for more details.
      #
      #   @param id [String]
      #
      #   @param after_call_sms_outcomes [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::AfterCallSMSOutcome>, nil] Which call outcomes trigger the after-call SMS. When empty or null, no after-cal
      #
      #   @param after_call_sms_prompt [String, nil] Prompt / instructions for the after-call SMS. Supports {{variable}} placeholders
      #
      #   @param background_sound [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::BackgroundSound, nil] Ambient background sound to play during the call. null disables it.
      #
      #   @param background_sound_volume [Float] Volume of the ambient background sound (0 = silent, 1 = max).
      #
      #   @param calendly [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly, nil]
      #
      #   @param call_retry_config [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig, nil] Configuration for call retry behavior including time windows, delays, and max it
      #
      #   @param cartesia_dictionary_pronunciation_id [String, nil] Optional Cartesia pronunciation dictionary ID linked to this assistant.
      #
      #   @param created_at [Object]
      #
      #   @param custom_tools [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool>, nil]
      #
      #   @param email_notification_address [String, nil] Email address(es) to receive notifications when a call ends with a matching outc
      #
      #   @param email_notification_language [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationLanguage] The language used for the notification email content. One of "en" or "fr".
      #
      #   @param email_notification_outcomes [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationOutcome>, nil] Which call outcomes trigger an email notification. E.g. ["interested", "complete
      #
      #   @param end_of_call_sentence [String, nil]
      #
      #   @param first_sentence [String, nil]
      #
      #   @param first_sentence_delay_ms [Integer] Delay in milliseconds before speaking the first sentence. Default: 400.
      #
      #   @param first_sentence_mode [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FirstSentenceMode]
      #
      #   @param from_phone_number [String, nil] Override the default outbound phone number for calls placed with this assistant.
      #
      #   @param human_transfer_mode [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::HumanTransferMode, nil] Warm or cold transfer when transfer_phone_number is set; null when transfer is n
      #
      #   @param ivr_navigation_enabled [Boolean] Enable IVR navigation tools. When enabled, the assistant can send DTMF tones and
      #
      #   @param llm_model [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3]
      #
      #   @param logo_url [String, nil] Public URL of the brand logo shown on the assistant's demo page. Null when unset
      #
      #   @param max_call_duration_secs [Float] The maximum duration of the call in seconds. This is the maximum time the call w
      #
      #   @param max_duration_end_message [String, nil] Optional message the agent will say, without being interruptible, when the call
      #
      #   @param name [String]
      #
      #   @param organization_id [String]
      #
      #   @param position [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Position, nil]
      #
      #   @param prompt [String]
      #
      #   @param prompt_flow [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow, nil]
      #
      #   @param slack [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack, nil]
      #
      #   @param sms_enabled [Boolean] Enable SMS tool during calls. When enabled, the agent can send SMS messages to t
      #
      #   @param sms_template [String, nil] Hardcoded SMS template to send during calls. When set, this exact text is sent i
      #
      #   @param structured_output_config [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig>, nil] The structured output config to use for the call. This is used to extract the da
      #
      #   @param structured_output_prompt [String, nil] Custom prompt for structured data extraction. If not provided, a default prompt
      #
      #   @param stt_context [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext, nil] Assistant-level speech-to-text context: structured `general` key/value pairs plu
      #
      #   @param stt_model [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttModel] Transcriber (speech-to-text) model used for the assistant.
      #
      #   @param thinking_sound [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::ThinkingSound, nil] Audio clip to play while the agent is processing a response. One of the built-in
      #
      #   @param thinking_sound_probability [Float] Probability [0..1] that the thinking sound plays on any given turn; otherwise th
      #
      #   @param thinking_sound_volume [Float] Volume of the thinking sound (0 = silent, 1 = max).
      #
      #   @param transfer_phone_number [String, nil] Phone number to transfer calls to when users request to speak to a human agent.
      #
      #   @param type [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Type]
      #
      #   @param updated_at [Object]
      #
      #   @param voice [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice, nil]
      #
      #   @param voicemail_message [String, nil] If set, when voicemail is detected the agent will speak this message then hang u
      #
      #   @param voicemail_sms_prompt [String, nil] Prompt / instructions for the voicemail SMS. Supports {{variable}} placeholders.
      #
      #   @param warm_transfer_summary_instructions [String, nil] Warm transfer only: instructions for the supervisor handoff summary; null when n
      #
      #   @param webhook_url [String, nil] The webhook URL to call when the call is completed.
      #
      #   @param zoho [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho, nil]
      #
      #   @param created_by [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CreatedBy, nil] The user who created the assistant.
      #
      #   @param faq_items [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem>]
      #
      #   @param is_realestate_assistant [Boolean]
      #
      #   @param pending_faq_count [Float]

      module AfterCallSMSOutcome
        extend Revox::Internal::Type::Enum

        NOT_INTERESTED = :not_interested
        INTERESTED = :interested
        COMPLETED = :completed
        REQUESTED_CALLBACK_LATER = :requested_callback_later
        REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
        DO_NOT_CONTACT = :do_not_contact
        AI_AVERSE = :ai_averse
        NONE = :none

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Ambient background sound to play during the call. null disables it.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#background_sound
      module BackgroundSound
        extend Revox::Internal::Type::Enum

        AUDIO_OFFICE_OGG = :"audio/office.ogg"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#calendly
      class Calendly < Revox::Internal::Type::BaseModel
        # @!attribute connection_id
        #   The connection ID representing the link between your Calendly account and Revox.
        #
        #   @return [String]
        required :connection_id, String

        # @!attribute event_type_id
        #   The event type ID representing the event type to schedule. (eg:
        #   https://api.calendly.com/event_types/b2330295-2a91-4a1d-bb73-99e7707663d5)
        #
        #   @return [String]
        required :event_type_id, String

        # @!method initialize(connection_id:, event_type_id:)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly} for
        #   more details.
        #
        #   @param connection_id [String] The connection ID representing the link between your Calendly account and Revox.
        #
        #   @param event_type_id [String] The event type ID representing the event type to schedule. (eg: https://api.cale
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#call_retry_config
      class CallRetryConfig < Revox::Internal::Type::BaseModel
        # @!attribute allowed_days
        #   Days of the week when calls are allowed, in the recipient's timezone. Default:
        #   Monday through Friday.
        #
        #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::AllowedDay>]
        required :allowed_days,
                 -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::AllowedDay] }

        # @!attribute call_twice_in_a_row
        #   If true and max_retry_attempts >= 2, attempt #2 fires immediately (skipping
        #   retry_delay_seconds) when attempt #1 didn't reach a human.
        #   Calling-window/allowed-days checks still apply. Only affects the 1→2 transition.
        #   Default: false.
        #
        #   @return [Boolean]
        required :call_twice_in_a_row, Revox::Internal::Type::Boolean

        # @!attribute calling_windows
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::CallingWindow>]
        required :calling_windows,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::CallingWindow] }

        # @!attribute max_retry_attempts
        #   Maximum number of call retry attempts. Default: 3.
        #
        #   @return [Integer]
        required :max_retry_attempts, Integer

        # @!attribute timezone
        #   Optional IANA timezone identifier to override the automatic timezone detection
        #   from phone number. If not provided, timezone is determined from the recipient's
        #   phone number country code. Examples: 'America/New_York', 'Europe/Paris'.
        #
        #   @return [String, nil]
        optional :timezone, String, nil?: true

        # @!method initialize(allowed_days:, call_twice_in_a_row:, calling_windows:, max_retry_attempts:, timezone: nil)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig}
        #   for more details.
        #
        #   Configuration for call retry behavior including time windows, delays, and max
        #   iterations. If not provided, defaults will be used.
        #
        #   @param allowed_days [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::AllowedDay>] Days of the week when calls are allowed, in the recipient's timezone. Default: M
        #
        #   @param call_twice_in_a_row [Boolean] If true and max_retry_attempts >= 2, attempt #2 fires immediately (skipping retr
        #
        #   @param calling_windows [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::CallingWindow>]
        #
        #   @param max_retry_attempts [Integer] Maximum number of call retry attempts. Default: 3.
        #
        #   @param timezone [String, nil] Optional IANA timezone identifier to override the automatic timezone detection f

        module AllowedDay
          extend Revox::Internal::Type::Enum

          MONDAY = :monday
          TUESDAY = :tuesday
          WEDNESDAY = :wednesday
          THURSDAY = :thursday
          FRIDAY = :friday
          SATURDAY = :saturday
          SUNDAY = :sunday

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        class CallingWindow < Revox::Internal::Type::BaseModel
          # @!attribute calling_window_end_time
          #   End time for the calling window in the recipient's timezone (or
          #   timezone_override if provided). Format: 'HH:mm' (24-hour) or 'H:mma' (12-hour).
          #   Examples: '17:00', '6pm'. Default: '18:00'.
          #
          #   @return [String]
          required :calling_window_end_time, String

          # @!attribute calling_window_start_time
          #   Start time for the calling window in the recipient's timezone (or
          #   timezone_override if provided). Format: 'HH:mm' (24-hour) or 'H:mma' (12-hour).
          #   Examples: '09:00', '10am'. Default: '10:00'.
          #
          #   @return [String]
          required :calling_window_start_time, String

          # @!attribute retry_delay_seconds
          #   Delay between retry attempts in seconds. Default: 7200 (2 hours).
          #
          #   @return [Integer]
          required :retry_delay_seconds, Integer

          # @!method initialize(calling_window_end_time:, calling_window_start_time:, retry_delay_seconds:)
          #   Some parameter documentations has been truncated, see
          #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig::CallingWindow}
          #   for more details.
          #
          #   @param calling_window_end_time [String] End time for the calling window in the recipient's timezone (or timezone_overrid
          #
          #   @param calling_window_start_time [String] Start time for the calling window in the recipient's timezone (or timezone_overr
          #
          #   @param retry_delay_seconds [Integer] Delay between retry attempts in seconds. Default: 7200 (2 hours).
        end
      end

      class CustomTool < Revox::Internal::Type::BaseModel
        # @!attribute body_template
        #   JSON body template for the request. Use quoted {{variable}} placeholders (e.g.
        #   "{{name}}") for dynamic values
        #
        #   @return [String, nil]
        required :body_template, String, nil?: true

        # @!attribute description
        #   Human-readable description of what the tool does, used by the LLM to decide when
        #   to call it
        #
        #   @return [String]
        required :description, String

        # @!attribute headers
        #   HTTP headers to include in the request. Values support {{variable}} placeholders
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Header>]
        required :headers,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Header] }

        # @!attribute input_schema
        #   Schema defining the parameters the LLM should extract from the conversation to
        #   pass to this tool
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema>]
        required :input_schema,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema] }

        # @!attribute method_
        #   HTTP method to use when calling the API endpoint
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Method]
        required :method_,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Method },
                 api_name: :method

        # @!attribute name
        #   Unique tool name in lowercase_snake_case (e.g. check_inventory)
        #
        #   @return [String]
        required :name, String

        # @!attribute query_params
        #   Query string parameters appended to the URL. Values support {{variable}}
        #   placeholders
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::QueryParam>]
        required :query_params,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::QueryParam] }

        # @!attribute url
        #   Full URL of the API endpoint. Supports {{variable}} placeholders for dynamic
        #   values
        #
        #   @return [String]
        required :url, String

        # @!method initialize(body_template:, description:, headers:, input_schema:, method_:, name:, query_params:, url:)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool} for
        #   more details.
        #
        #   @param body_template [String, nil] JSON body template for the request. Use quoted {{variable}} placeholders (e.g. "
        #
        #   @param description [String] Human-readable description of what the tool does, used by the LLM to decide when
        #
        #   @param headers [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Header>] HTTP headers to include in the request. Values support {{variable}} placeholders
        #
        #   @param input_schema [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema>] Schema defining the parameters the LLM should extract from the conversation to p
        #
        #   @param method_ [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::Method] HTTP method to use when calling the API endpoint
        #
        #   @param name [String] Unique tool name in lowercase_snake_case (e.g. check_inventory)
        #
        #   @param query_params [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::QueryParam>] Query string parameters appended to the URL. Values support {{variable}} placeho
        #
        #   @param url [String] Full URL of the API endpoint. Supports {{variable}} placeholders for dynamic val

        class Header < Revox::Internal::Type::BaseModel
          # @!attribute key
          #
          #   @return [String]
          required :key, String

          # @!attribute value
          #
          #   @return [String]
          required :value, String

          # @!method initialize(key:, value:)
          #   @param key [String]
          #   @param value [String]
        end

        class InputSchema < Revox::Internal::Type::BaseModel
          # @!attribute name
          #
          #   @return [String]
          required :name, String

          # @!attribute required
          #
          #   @return [Boolean]
          required :required, Revox::Internal::Type::Boolean

          # @!attribute type
          #
          #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema::Type]
          required :type,
                   enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema::Type }

          # @!attribute description
          #
          #   @return [String, nil]
          optional :description, String

          # @!attribute enum_options
          #
          #   @return [Array<String>, nil]
          optional :enum_options, Revox::Internal::Type::ArrayOf[String]

          # @!method initialize(name:, required:, type:, description: nil, enum_options: nil)
          #   @param name [String]
          #   @param required [Boolean]
          #   @param type [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema::Type]
          #   @param description [String]
          #   @param enum_options [Array<String>]

          # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool::InputSchema#type
          module Type
            extend Revox::Internal::Type::Enum

            STRING = :string
            NUMBER = :number
            BOOLEAN = :boolean
            ENUM = :enum
            DATE = :date
            DATETIME = :datetime

            # @!method self.values
            #   @return [Array<Symbol>]
          end
        end

        # HTTP method to use when calling the API endpoint
        #
        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool#method_
        module Method
          extend Revox::Internal::Type::Enum

          GET = :GET
          POST = :POST
          PUT = :PUT
          PATCH = :PATCH
          DELETE = :DELETE

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        class QueryParam < Revox::Internal::Type::BaseModel
          # @!attribute key
          #
          #   @return [String]
          required :key, String

          # @!attribute value
          #
          #   @return [String]
          required :value, String

          # @!method initialize(key:, value:)
          #   @param key [String]
          #   @param value [String]
        end
      end

      # The language used for the notification email content. One of "en" or "fr".
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#email_notification_language
      module EmailNotificationLanguage
        extend Revox::Internal::Type::Enum

        EN = :en
        FR = :fr

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      module EmailNotificationOutcome
        extend Revox::Internal::Type::Enum

        NOT_INTERESTED = :not_interested
        INTERESTED = :interested
        COMPLETED = :completed
        REQUESTED_CALLBACK_LATER = :requested_callback_later
        REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
        DO_NOT_CONTACT = :do_not_contact
        AI_AVERSE = :ai_averse
        NONE = :none

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#first_sentence_mode
      module FirstSentenceMode
        extend Revox::Internal::Type::Enum

        GENERATED = :generated
        STATIC = :static
        NONE = :none

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Warm or cold transfer when transfer_phone_number is set; null when transfer is
      # not configured.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#human_transfer_mode
      module HumanTransferMode
        extend Revox::Internal::Type::Enum

        WARM = :warm
        COLD = :cold

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#llm_model
      module LlmModel
        extend Revox::Internal::Type::Union

        variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0 }

        variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember1 }

        variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember2 }

        variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3 }

        class UnionMember0 < Revox::Internal::Type::BaseModel
          # @!attribute name
          #
          #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0::Name]
          required :name,
                   enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0::Name }

          # @!attribute type
          #
          #   @return [Symbol, :"dedicated-instance"]
          required :type, const: :"dedicated-instance"

          # @!method initialize(name:, type: :"dedicated-instance")
          #   @param name [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0::Name]
          #   @param type [Symbol, :"dedicated-instance"]

          # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0#name
          module Name
            extend Revox::Internal::Type::Enum

            GPT_4_1 = :"gpt-4.1"
            MINISTRAL_3_8B_INSTRUCT = :"ministral-3-8b-instruct"

            # @!method self.values
            #   @return [Array<Symbol>]
          end
        end

        class UnionMember1 < Revox::Internal::Type::BaseModel
          # @!attribute openrouter_model_id
          #   The model ID to use from OpenRouter. eg: openai/gpt-4.1
          #
          #   @return [String]
          required :openrouter_model_id, String

          # @!attribute openrouter_provider
          #   The provider to use from OpenRouter. eg: nebius, openai, azure, etc.
          #
          #   @return [String]
          required :openrouter_provider, String

          # @!attribute type
          #   Use a model from OpenRouter.
          #
          #   @return [Symbol, :openrouter]
          required :type, const: :openrouter

          # @!method initialize(openrouter_model_id:, openrouter_provider:, type: :openrouter)
          #   @param openrouter_model_id [String] The model ID to use from OpenRouter. eg: openai/gpt-4.1
          #
          #   @param openrouter_provider [String] The provider to use from OpenRouter. eg: nebius, openai, azure, etc.
          #
          #   @param type [Symbol, :openrouter] Use a model from OpenRouter.
        end

        class UnionMember2 < Revox::Internal::Type::BaseModel
          # @!attribute api_key
          #   API key sent as Bearer token to the custom endpoint.
          #
          #   @return [String]
          required :api_key, String

          # @!attribute api_url
          #   Base URL for the OpenAI-compatible API, e.g. https://api.together.xyz/v1
          #
          #   @return [String]
          required :api_url, String

          # @!attribute model_name
          #   Model name as expected by the provider, e.g. meta-llama/llama-3-70b
          #
          #   @return [String]
          required :model_name, String

          # @!attribute type
          #   OpenAI-compatible chat completions API (bring your own endpoint and key).
          #
          #   @return [Symbol, :custom]
          required :type, const: :custom

          # @!method initialize(api_key:, api_url:, model_name:, type: :custom)
          #   @param api_key [String] API key sent as Bearer token to the custom endpoint.
          #
          #   @param api_url [String] Base URL for the OpenAI-compatible API, e.g. https://api.together.xyz/v1
          #
          #   @param model_name [String] Model name as expected by the provider, e.g. meta-llama/llama-3-70b
          #
          #   @param type [Symbol, :custom] OpenAI-compatible chat completions API (bring your own endpoint and key).
        end

        class UnionMember3 < Revox::Internal::Type::BaseModel
          # @!attribute provider
          #   The provider to use from Realtime. eg: openai, google.
          #
          #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3::Provider]
          required :provider,
                   enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3::Provider }

          # @!attribute realtime_model_id
          #   The model ID to use from Realtime. eg: gpt-4.1
          #
          #   @return [String]
          required :realtime_model_id, String

          # @!attribute type
          #   Use a model from Realtime.
          #
          #   @return [Symbol, :realtime]
          required :type, const: :realtime

          # @!attribute realtime_voice_id
          #   Output voice for the realtime provider (e.g. OpenAI: marin; Gemini: Puck).
          #
          #   @return [String, nil]
          optional :realtime_voice_id, String

          # @!method initialize(provider:, realtime_model_id:, realtime_voice_id: nil, type: :realtime)
          #   @param provider [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3::Provider] The provider to use from Realtime. eg: openai, google.
          #
          #   @param realtime_model_id [String] The model ID to use from Realtime. eg: gpt-4.1
          #
          #   @param realtime_voice_id [String] Output voice for the realtime provider (e.g. OpenAI: marin; Gemini: Puck).
          #
          #   @param type [Symbol, :realtime] Use a model from Realtime.

          # The provider to use from Realtime. eg: openai, google.
          #
          # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3#provider
          module Provider
            extend Revox::Internal::Type::Enum

            OPENAI = :openai
            GOOGLE = :google

            # @!method self.values
            #   @return [Array<Symbol>]
          end
        end

        # @!method self.variants
        #   @return [Array(Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember3)]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#position
      class Position < Revox::Internal::Type::BaseModel
        # @!attribute x
        #
        #   @return [Float]
        required :x, Float

        # @!attribute y_
        #
        #   @return [Float]
        required :y_, Float, api_name: :y

        # @!method initialize(x:, y_:)
        #   @param x [Float]
        #   @param y_ [Float]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#prompt_flow
      class PromptFlow < Revox::Internal::Type::BaseModel
        # @!attribute edges
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Edge>]
        required :edges,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Edge] }

        # @!attribute nodes
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node>]
        required :nodes,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node] }

        # @!method initialize(edges:, nodes:)
        #   @param edges [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Edge>]
        #   @param nodes [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node>]

        class Edge < Revox::Internal::Type::BaseModel
          # @!attribute id
          #
          #   @return [String]
          required :id, String

          # @!attribute source
          #
          #   @return [String]
          required :source, String

          # @!attribute target
          #
          #   @return [String]
          required :target, String

          # @!method initialize(id:, source:, target:)
          #   @param id [String]
          #   @param source [String]
          #   @param target [String]
        end

        class Node < Revox::Internal::Type::BaseModel
          # @!attribute id
          #
          #   @return [String]
          required :id, String

          # @!attribute data
          #
          #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Data]
          required :data,
                   -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Data }

          # @!attribute position
          #
          #   @return [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Position]
          required :position,
                   -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Position }

          # @!attribute type
          #
          #   @return [Symbol, :promptBlock]
          required :type, const: :promptBlock

          # @!method initialize(id:, data:, position:, type: :promptBlock)
          #   @param id [String]
          #   @param data [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Data]
          #   @param position [Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node::Position]
          #   @param type [Symbol, :promptBlock]

          # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node#data
          class Data < Revox::Internal::Type::BaseModel
            # @!attribute body
            #
            #   @return [String]
            required :body, String

            # @!attribute title
            #
            #   @return [String]
            required :title, String

            # @!method initialize(body:, title:)
            #   @param body [String]
            #   @param title [String]
          end

          # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow::Node#position
          class Position < Revox::Internal::Type::BaseModel
            # @!attribute x
            #
            #   @return [Float]
            required :x, Float

            # @!attribute y_
            #
            #   @return [Float]
            required :y_, Float, api_name: :y

            # @!method initialize(x:, y_:)
            #   @param x [Float]
            #   @param y_ [Float]
          end
        end
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#slack
      class Slack < Revox::Internal::Type::BaseModel
        # @!attribute channel_id
        #   The Slack channel ID where the notification will be posted.
        #
        #   @return [String]
        required :channel_id, String

        # @!attribute connection_id
        #   The Nango connection ID linking the org's Slack workspace to Revox.
        #
        #   @return [String]
        required :connection_id, String

        # @!attribute outcomes
        #   Which call outcomes trigger a Slack notification (e.g. ['interested', 'none']).
        #   Use 'none' to notify when outcome is null.
        #
        #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack::Outcome>]
        required :outcomes,
                 -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack::Outcome] }

        # @!attribute channel_name
        #   Human-readable Slack channel name, cached for display in the UI.
        #
        #   @return [String, nil]
        optional :channel_name, String, nil?: true

        # @!attribute template
        #   Optional message template. Supports {{summary}}, {{outcome}}, {{phone}},
        #   {{call_url}}, {{assistant_name}}, {{campaign_name}}, {{first_name}},
        #   {{last_name}}, {{email}}, {{company}}, {{contact_name}}, {{contact_line}}, plus
        #   prompt_variables and structured_output keys. When null/empty a default template
        #   is used.
        #
        #   @return [String, nil]
        optional :template, String, nil?: true

        # @!method initialize(channel_id:, connection_id:, outcomes:, channel_name: nil, template: nil)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack} for more
        #   details.
        #
        #   @param channel_id [String] The Slack channel ID where the notification will be posted.
        #
        #   @param connection_id [String] The Nango connection ID linking the org's Slack workspace to Revox.
        #
        #   @param outcomes [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack::Outcome>] Which call outcomes trigger a Slack notification (e.g. ['interested', 'none']).
        #
        #   @param channel_name [String, nil] Human-readable Slack channel name, cached for display in the UI.
        #
        #   @param template [String, nil] Optional message template. Supports {{summary}}, {{outcome}}, {{phone}},
        #   {{call\_

        module Outcome
          extend Revox::Internal::Type::Enum

          NOT_INTERESTED = :not_interested
          INTERESTED = :interested
          COMPLETED = :completed
          REQUESTED_CALLBACK_LATER = :requested_callback_later
          REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
          DO_NOT_CONTACT = :do_not_contact
          AI_AVERSE = :ai_averse
          NONE = :none

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      class StructuredOutputConfig < Revox::Internal::Type::BaseModel
        # @!attribute name
        #
        #   @return [String]
        required :name, String

        # @!attribute required
        #
        #   @return [Boolean]
        required :required, Revox::Internal::Type::Boolean

        # @!attribute type
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig::Type]
        required :type,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig::Type }

        # @!attribute description
        #
        #   @return [String, nil]
        optional :description, String

        # @!attribute enum_options
        #
        #   @return [Array<String>, nil]
        optional :enum_options, Revox::Internal::Type::ArrayOf[String]

        # @!method initialize(name:, required:, type:, description: nil, enum_options: nil)
        #   @param name [String]
        #   @param required [Boolean]
        #   @param type [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig::Type]
        #   @param description [String]
        #   @param enum_options [Array<String>]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig#type
        module Type
          extend Revox::Internal::Type::Enum

          STRING = :string
          NUMBER = :number
          BOOLEAN = :boolean
          ENUM = :enum
          DATE = :date
          DATETIME = :datetime

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#stt_context
      class SttContext < Revox::Internal::Type::BaseModel
        # @!attribute general
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext::General>]
        required :general,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext::General] }

        # @!attribute terms
        #
        #   @return [Array<String>]
        required :terms, Revox::Internal::Type::ArrayOf[String]

        # @!method initialize(general:, terms:)
        #   Assistant-level speech-to-text context: structured `general` key/value pairs
        #   plus a list of domain `terms`. Prompt-derived context is merged in without
        #   replacing existing entries.
        #
        #   @param general [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext::General>]
        #   @param terms [Array<String>]

        class General < Revox::Internal::Type::BaseModel
          # @!attribute key
          #
          #   @return [String]
          required :key, String

          # @!attribute value
          #
          #   @return [String]
          required :value, String

          # @!method initialize(key:, value:)
          #   @param key [String]
          #   @param value [String]
        end
      end

      # Transcriber (speech-to-text) model used for the assistant.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#stt_model
      module SttModel
        extend Revox::Internal::Type::Enum

        STT_RT_V4 = :"stt-rt-v4"
        STT_RT_V5 = :"stt-rt-v5"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Audio clip to play while the agent is processing a response. One of the built-in
      # LiveKit audio clips; null disables it.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#thinking_sound
      module ThinkingSound
        extend Revox::Internal::Type::Enum

        CITY_AMBIENCE_OGG = :"city-ambience.ogg"
        FOREST_AMBIENCE_OGG = :"forest-ambience.ogg"
        OFFICE_AMBIENCE_OGG = :"office-ambience.ogg"
        CROWDED_ROOM_OGG = :"crowded-room.ogg"
        KEYBOARD_TYPING_OGG = :"keyboard-typing.ogg"
        KEYBOARD_TYPING2_OGG = :"keyboard-typing2.ogg"
        HOLD_MUSIC_OGG = :"hold_music.ogg"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#type
      module Type
        extend Revox::Internal::Type::Enum

        STANDALONE = :standalone
        MULTI_STEP = :"multi-step"
        SUB_ASSISTANT = :"sub-assistant"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#voice
      class Voice < Revox::Internal::Type::BaseModel
        # @!attribute id
        #   The ID of the voice.
        #
        #   @return [String]
        required :id, String

        # @!attribute provider
        #   The provider of the voice.
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Provider]
        required :provider,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Provider }

        # @!attribute model
        #   Cartesia TTS model (Cartesia only). Defaults to sonic-3 when omitted. Ignored
        #   for other providers.
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Model, nil]
        optional :model, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Model }

        # @!attribute speed
        #   The speed of the voice. Range depends on provider: Cartesia 0.6–1.5, ElevenLabs
        #   0.7–1.2. Default is 1.0.
        #
        #   @return [Float, nil]
        optional :speed, Float

        # @!attribute volume
        #   Volume of the voice (Cartesia only). 0.5–2.0, default 1.0. Ignored for other
        #   providers.
        #
        #   @return [Float, nil]
        optional :volume, Float

        # @!method initialize(id:, provider:, model: nil, speed: nil, volume: nil)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice} for more
        #   details.
        #
        #   @param id [String] The ID of the voice.
        #
        #   @param provider [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Provider] The provider of the voice.
        #
        #   @param model [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice::Model] Cartesia TTS model (Cartesia only). Defaults to sonic-3 when omitted. Ignored fo
        #
        #   @param speed [Float] The speed of the voice. Range depends on provider: Cartesia 0.6–1.5, ElevenLabs
        #
        #   @param volume [Float] Volume of the voice (Cartesia only). 0.5–2.0, default 1.0. Ignored for other pro

        # The provider of the voice.
        #
        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice#provider
        module Provider
          extend Revox::Internal::Type::Enum

          CARTESIA = :cartesia
          ELEVENLABS = :elevenlabs

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        # Cartesia TTS model (Cartesia only). Defaults to sonic-3 when omitted. Ignored
        # for other providers.
        #
        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice#model
        module Model
          extend Revox::Internal::Type::Enum

          SONIC_3 = :"sonic-3"
          SONIC_3_5 = :"sonic-3.5"

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#zoho
      class Zoho < Revox::Internal::Type::BaseModel
        # @!attribute connection_id
        #   The Nango connection ID linking the org's Zoho CRM account to Revox.
        #
        #   @return [String]
        required :connection_id, String

        # @!attribute field_mapping
        #   Maps extracted call fields (structured_output / prompt variables) onto Zoho
        #   field API names on the upserted record.
        #
        #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::FieldMapping>]
        required :field_mapping,
                 -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::FieldMapping] }

        # @!attribute log_call_activity
        #   When true, also log the call as a record in Zoho's Calls module (related to the
        #   upserted prospect via Who_Id).
        #
        #   @return [Boolean]
        required :log_call_activity, Revox::Internal::Type::Boolean

        # @!attribute module_
        #   Zoho module the prospect record is upserted into (e.g. 'Leads' or 'Contacts').
        #
        #   @return [String]
        required :module_, String, api_name: :module

        # @!attribute outcomes
        #   Which call outcomes trigger the Zoho push (e.g. ['interested', 'none']). Use
        #   'none' to push when outcome is null.
        #
        #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::Outcome>]
        required :outcomes,
                 -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::Outcome] }

        # @!attribute template
        #   Optional Note body template. Supports {{summary}}, {{outcome}}, {{phone}},
        #   {{call_url}}, {{assistant_name}}, {{campaign_name}}, {{transcript}}, plus
        #   prompt_variables and structured_output keys. When null/empty a default note
        #   (outcome + summary + auto-listed extracted fields) is used.
        #
        #   @return [String, nil]
        optional :template, String, nil?: true

        # @!method initialize(connection_id:, field_mapping:, log_call_activity:, module_:, outcomes:, template: nil)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho} for more
        #   details.
        #
        #   @param connection_id [String] The Nango connection ID linking the org's Zoho CRM account to Revox.
        #
        #   @param field_mapping [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::FieldMapping>] Maps extracted call fields (structured_output / prompt variables) onto Zoho fiel
        #
        #   @param log_call_activity [Boolean] When true, also log the call as a record in Zoho's Calls module (related to the
        #
        #   @param module_ [String] Zoho module the prospect record is upserted into (e.g. 'Leads' or 'Contacts').
        #
        #   @param outcomes [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::Outcome>] Which call outcomes trigger the Zoho push (e.g. ['interested', 'none']). Use 'no
        #
        #   @param template [String, nil] Optional Note body template. Supports {{summary}}, {{outcome}}, {{phone}}, {{cal

        class FieldMapping < Revox::Internal::Type::BaseModel
          # @!attribute source
          #   Source key to read from the call: a structured_output field name, falling back
          #   to a prompt variable of the same name.
          #
          #   @return [String]
          required :source, String

          # @!attribute zoho_field
          #   Destination Zoho field API name on the upserted record (e.g. 'Email', 'Company',
          #   or a custom 'Budget\_\_c').
          #
          #   @return [String]
          required :zoho_field, String

          # @!method initialize(source:, zoho_field:)
          #   Some parameter documentations has been truncated, see
          #   {Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho::FieldMapping}
          #   for more details.
          #
          #   @param source [String] Source key to read from the call: a structured_output field name, falling back t
          #
          #   @param zoho_field [String] Destination Zoho field API name on the upserted record (e.g. 'Email', 'Company',
        end

        module Outcome
          extend Revox::Internal::Type::Enum

          NOT_INTERESTED = :not_interested
          INTERESTED = :interested
          COMPLETED = :completed
          REQUESTED_CALLBACK_LATER = :requested_callback_later
          REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
          DO_NOT_CONTACT = :do_not_contact
          AI_AVERSE = :ai_averse
          NONE = :none

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant#created_by
      class CreatedBy < Revox::Internal::Type::BaseModel
        # @!attribute id
        #   The database user id of the creator.
        #
        #   @return [String]
        required :id, String

        # @!attribute email
        #
        #   @return [String]
        required :email, String

        # @!attribute first_name
        #
        #   @return [String, nil]
        required :first_name, String, nil?: true

        # @!attribute last_name
        #
        #   @return [String, nil]
        required :last_name, String, nil?: true

        # @!method initialize(id:, email:, first_name:, last_name:)
        #   The user who created the assistant.
        #
        #   @param id [String] The database user id of the creator.
        #
        #   @param email [String]
        #
        #   @param first_name [String, nil]
        #
        #   @param last_name [String, nil]
      end

      class FaqItem < Revox::Internal::Type::BaseModel
        # @!attribute answer
        #
        #   @return [String]
        required :answer, String

        # @!attribute question
        #
        #   @return [String]
        required :question, String

        # @!attribute id
        #
        #   @return [String, nil]
        optional :id, String

        # @!attribute needs_human_answer
        #
        #   @return [Boolean, nil]
        optional :needs_human_answer, Revox::Internal::Type::Boolean

        # @!attribute source
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem::Source, nil]
        optional :source,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem::Source }

        # @!method initialize(answer:, question:, id: nil, needs_human_answer: nil, source: nil)
        #   @param answer [String]
        #   @param question [String]
        #   @param id [String]
        #   @param needs_human_answer [Boolean]
        #   @param source [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem::Source]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem#source
        module Source
          extend Revox::Internal::Type::Enum

          HUMAN = :human
          AI = :ai

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end
    end

    class CallAttempt < Revox::Internal::Type::BaseModel
      # @!attribute id
      #   The ID of the call attempt.
      #
      #   @return [String]
      required :id, String

      # @!attribute answered_at
      #   The time the call was answered.
      #
      #   @return [Object]
      required :answered_at, Revox::Internal::Type::Unknown

      # @!attribute dial_error
      #   The SIP error that occurred.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::DialError, nil]
      required :dial_error,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::DialError },
               nil?: true

      # @!attribute ended_at
      #   The time the call ended.
      #
      #   @return [Object]
      required :ended_at, Revox::Internal::Type::Unknown

      # @!attribute phone_number
      #   The phone number that was called. Formatted in E.164 format. Example:
      #   +1234567890
      #
      #   @return [String]
      required :phone_number, String

      # @!attribute recording_url
      #   The URL of the audio recording of the call.
      #
      #   @return [String, nil]
      required :recording_url, String, nil?: true

      # @!attribute result
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Result, nil]
      required :result,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Result },
               nil?: true

      # @!attribute started_at
      #   The time the call started.
      #
      #   @return [Object]
      required :started_at, Revox::Internal::Type::Unknown

      # @!attribute status
      #   The status of the call attempt.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Status]
      required :status, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Status }

      # @!attribute assistants_used
      #   Assistant node ids entered during this attempt, in traversal order.
      #
      #   @return [Array<String>, nil]
      optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true

      # @!attribute end_reason
      #   Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call',
      #   'voicemail', 'transfer', 'ivr_no_navigate'.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndReason, nil]
      optional :end_reason,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndReason },
               nil?: true

      # @!attribute ended_by
      #   Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or
      #   'system' (e.g. max duration limit).
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndedBy, nil]
      optional :ended_by,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndedBy },
               nil?: true

      # @!attribute post_call_transcript
      #   Higher-quality transcript generated after the call via Soniox async STT. Null
      #   until generated or when no recording is available.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript>, nil]
      optional :post_call_transcript,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript] },
               nil?: true

      # @!attribute sms_log
      #   Automatic SMS sent after the call (voicemail and after-call), ordered oldest
      #   first. The in-call `send_sms` is excluded — it already appears in the transcript
      #   as a tool call.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog>, nil]
      optional :sms_log,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog] },
               nil?: true

      # @!attribute structured_output
      #   The data extracted from the call, using the structured output config from the
      #   parent call object.
      #
      #   @return [Hash{Symbol=>Object}, nil]
      optional :structured_output,
               Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown],
               nil?: true

      # @!attribute transcript
      #   The live transcript of the call, built in real time.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript>, nil]
      optional :transcript,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript] },
               nil?: true

      # @!method initialize(id:, answered_at:, dial_error:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, assistants_used: nil, end_reason: nil, ended_by: nil, post_call_transcript: nil, sms_log: nil, structured_output: nil, transcript: nil)
      #   Some parameter documentations has been truncated, see
      #   {Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt} for more
      #   details.
      #
      #   This represent a single call attempt. A call attempt is a single call made to
      #   the phone number.
      #
      #   @param id [String] The ID of the call attempt.
      #
      #   @param answered_at [Object] The time the call was answered.
      #
      #   @param dial_error [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::DialError, nil] The SIP error that occurred.
      #
      #   @param ended_at [Object] The time the call ended.
      #
      #   @param phone_number [String] The phone number that was called. Formatted in E.164 format. Example: +123456789
      #
      #   @param recording_url [String, nil] The URL of the audio recording of the call.
      #
      #   @param result [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Result, nil]
      #
      #   @param started_at [Object] The time the call started.
      #
      #   @param status [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Status] The status of the call attempt.
      #
      #   @param assistants_used [Array<String>, nil] Assistant node ids entered during this attempt, in traversal order.
      #
      #   @param end_reason [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndReason, nil] Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call', 'voic
      #
      #   @param ended_by [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndedBy, nil] Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'syst
      #
      #   @param post_call_transcript [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript>, nil] Higher-quality transcript generated after the call via Soniox async STT. Null un
      #
      #   @param sms_log [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog>, nil] Automatic SMS sent after the call (voicemail and after-call), ordered oldest fir
      #
      #   @param structured_output [Hash{Symbol=>Object}, nil] The data extracted from the call, using the structured output config from the pa
      #
      #   @param transcript [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript>, nil] The live transcript of the call, built in real time.

      # The SIP error that occurred.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt#dial_error
      module DialError
        extend Revox::Internal::Type::Enum

        NUMBER_NON_ATTRIBUTED = :number_non_attributed
        TOO_MANY_CALLS = :too_many_calls
        BUSY = :busy
        TEMPORARILY_UNAVAILABLE = :temporarily_unavailable
        NO_ANSWER = :no_answer
        NO_INTERNATIONAL_PERMISSION = :no_international_permission
        PRECONDITION_FAILED = :precondition_failed
        NON_CLASSIFIED_ERROR = :non_classified_error

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt#result
      module Result
        extend Revox::Internal::Type::Enum

        IVR = :IVR
        VOICEMAIL = :voicemail
        HUMAN = :human
        UNKNOWN = :unknown
        IOS_SCREENING_FILTER = :"ios-screening-filter"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # The status of the call attempt.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt#status
      module Status
        extend Revox::Internal::Type::Enum

        QUEUED = :queued
        RINGING = :ringing
        ONGOING = :ongoing
        COMPLETED = :completed
        ERROR = :error

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call',
      # 'voicemail', 'transfer', 'ivr_no_navigate'.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt#end_reason
      module EndReason
        extend Revox::Internal::Type::Enum

        CLIENT_INITIATED = :client_initiated
        CONNECTION_TIMEOUT = :connection_timeout
        HUMAN_TAKEOVER = :human_takeover
        IVR_NO_NAVIGATE = :ivr_no_navigate
        MAX_DURATION = :max_duration
        PARTICIPANT_REMOVED = :participant_removed
        TOOL_END_CALL = :tool_end_call
        TRANSFER = :transfer
        USER_INACTIVE = :user_inactive
        USER_REJECTED = :user_rejected
        USER_UNAVAILABLE = :user_unavailable
        VOICEMAIL = :voicemail
        SPEED_DIAL_ABANDONED = :speed_dial_abandoned
        SPEED_DIAL_OPERATOR_MISSED = :speed_dial_operator_missed
        SPEED_DIAL_TIMEOUT = :speed_dial_timeout
        SPEED_DIAL_HANGUP = :speed_dial_hangup

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or
      # 'system' (e.g. max duration limit).
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt#ended_by
      module EndedBy
        extend Revox::Internal::Type::Enum

        AGENT = :agent
        USER = :user
        SYSTEM = :system

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      class PostCallTranscript < Revox::Internal::Type::BaseModel
        # @!attribute content
        #
        #   @return [String]
        required :content, String

        # @!attribute role
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript::Role]
        required :role,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript::Role }

        # @!attribute tool_arguments
        #
        #   @return [Hash{Symbol=>Object}, String, nil]
        optional :tool_arguments,
                 union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript::ToolArguments }

        # @!attribute tool_is_error
        #
        #   @return [Boolean, nil]
        optional :tool_is_error, Revox::Internal::Type::Boolean

        # @!attribute tool_name
        #
        #   @return [String, nil]
        optional :tool_name, String

        # @!attribute tool_output
        #
        #   @return [String, nil]
        optional :tool_output, String

        # @!method initialize(content:, role:, tool_arguments: nil, tool_is_error: nil, tool_name: nil, tool_output: nil)
        #   @param content [String]
        #   @param role [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript::Role]
        #   @param tool_arguments [Hash{Symbol=>Object}, String]
        #   @param tool_is_error [Boolean]
        #   @param tool_name [String]
        #   @param tool_output [String]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript#role
        module Role
          extend Revox::Internal::Type::Enum

          USER = :user
          ASSISTANT = :assistant
          HUMAN_AGENT = :human_agent
          TOOL = :tool

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript#tool_arguments
        module ToolArguments
          extend Revox::Internal::Type::Union

          variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript::ToolArguments::UnionMember0Map }

          variant String

          # @!method self.variants
          #   @return [Array(Hash{Symbol=>Object}, String)]

          # @type [Revox::Internal::Type::Converter]
          UnionMember0Map = Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown]
        end
      end

      class SMSLog < Revox::Internal::Type::BaseModel
        # @!attribute id
        #
        #   @return [String]
        required :id, String

        # @!attribute created_at
        #   When the SMS was sent.
        #
        #   @return [Object]
        required :created_at, Revox::Internal::Type::Unknown

        # @!attribute message_body
        #
        #   @return [String]
        required :message_body, String

        # @!attribute to_phone_number
        #
        #   @return [String]
        required :to_phone_number, String

        # @!attribute twilio_message_sid
        #
        #   @return [String, nil]
        required :twilio_message_sid, String, nil?: true

        # @!attribute type
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog::Type]
        required :type, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog::Type }

        # @!method initialize(id:, created_at:, message_body:, to_phone_number:, twilio_message_sid:, type:)
        #   @param id [String]
        #
        #   @param created_at [Object] When the SMS was sent.
        #
        #   @param message_body [String]
        #
        #   @param to_phone_number [String]
        #
        #   @param twilio_message_sid [String, nil]
        #
        #   @param type [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog::Type]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog#type
        module Type
          extend Revox::Internal::Type::Enum

          IN_CALL = :in_call
          VOICEMAIL = :voicemail
          AFTER_CALL = :after_call

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      class Transcript < Revox::Internal::Type::BaseModel
        # @!attribute content
        #
        #   @return [String]
        required :content, String

        # @!attribute role
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript::Role]
        required :role,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript::Role }

        # @!attribute tool_arguments
        #
        #   @return [Hash{Symbol=>Object}, String, nil]
        optional :tool_arguments,
                 union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript::ToolArguments }

        # @!attribute tool_is_error
        #
        #   @return [Boolean, nil]
        optional :tool_is_error, Revox::Internal::Type::Boolean

        # @!attribute tool_name
        #
        #   @return [String, nil]
        optional :tool_name, String

        # @!attribute tool_output
        #
        #   @return [String, nil]
        optional :tool_output, String

        # @!method initialize(content:, role:, tool_arguments: nil, tool_is_error: nil, tool_name: nil, tool_output: nil)
        #   @param content [String]
        #   @param role [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript::Role]
        #   @param tool_arguments [Hash{Symbol=>Object}, String]
        #   @param tool_is_error [Boolean]
        #   @param tool_name [String]
        #   @param tool_output [String]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript#role
        module Role
          extend Revox::Internal::Type::Enum

          USER = :user
          ASSISTANT = :assistant
          HUMAN_AGENT = :human_agent
          TOOL = :tool

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript#tool_arguments
        module ToolArguments
          extend Revox::Internal::Type::Union

          variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript::ToolArguments::UnionMember0Map }

          variant String

          # @!method self.variants
          #   @return [Array(Hash{Symbol=>Object}, String)]

          # @type [Revox::Internal::Type::Converter]
          UnionMember0Map = Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown]
        end
      end
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#call_retry_config
    class CallRetryConfig < Revox::Internal::Type::BaseModel
      # @!attribute allowed_days
      #   Days of the week when calls are allowed, in the recipient's timezone. Default:
      #   Monday through Friday.
      #
      #   @return [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::AllowedDay>]
      required :allowed_days,
               -> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::AllowedDay] }

      # @!attribute call_twice_in_a_row
      #   If true and max_retry_attempts >= 2, attempt #2 fires immediately (skipping
      #   retry_delay_seconds) when attempt #1 didn't reach a human.
      #   Calling-window/allowed-days checks still apply. Only affects the 1→2 transition.
      #   Default: false.
      #
      #   @return [Boolean]
      required :call_twice_in_a_row, Revox::Internal::Type::Boolean

      # @!attribute calling_windows
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::CallingWindow>]
      required :calling_windows,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::CallingWindow] }

      # @!attribute max_retry_attempts
      #   Maximum number of call retry attempts. Default: 3.
      #
      #   @return [Integer]
      required :max_retry_attempts, Integer

      # @!attribute timezone
      #   Optional IANA timezone identifier to override the automatic timezone detection
      #   from phone number. If not provided, timezone is determined from the recipient's
      #   phone number country code. Examples: 'America/New_York', 'Europe/Paris'.
      #
      #   @return [String, nil]
      optional :timezone, String, nil?: true

      # @!method initialize(allowed_days:, call_twice_in_a_row:, calling_windows:, max_retry_attempts:, timezone: nil)
      #   Some parameter documentations has been truncated, see
      #   {Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig} for more
      #   details.
      #
      #   Configuration for call retry behavior including time windows, delays, and max
      #   iterations. If not provided, defaults will be used.
      #
      #   @param allowed_days [Array<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::AllowedDay>] Days of the week when calls are allowed, in the recipient's timezone. Default: M
      #
      #   @param call_twice_in_a_row [Boolean] If true and max_retry_attempts >= 2, attempt #2 fires immediately (skipping retr
      #
      #   @param calling_windows [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::CallingWindow>]
      #
      #   @param max_retry_attempts [Integer] Maximum number of call retry attempts. Default: 3.
      #
      #   @param timezone [String, nil] Optional IANA timezone identifier to override the automatic timezone detection f

      module AllowedDay
        extend Revox::Internal::Type::Enum

        MONDAY = :monday
        TUESDAY = :tuesday
        WEDNESDAY = :wednesday
        THURSDAY = :thursday
        FRIDAY = :friday
        SATURDAY = :saturday
        SUNDAY = :sunday

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      class CallingWindow < Revox::Internal::Type::BaseModel
        # @!attribute calling_window_end_time
        #   End time for the calling window in the recipient's timezone (or
        #   timezone_override if provided). Format: 'HH:mm' (24-hour) or 'H:mma' (12-hour).
        #   Examples: '17:00', '6pm'. Default: '18:00'.
        #
        #   @return [String]
        required :calling_window_end_time, String

        # @!attribute calling_window_start_time
        #   Start time for the calling window in the recipient's timezone (or
        #   timezone_override if provided). Format: 'HH:mm' (24-hour) or 'H:mma' (12-hour).
        #   Examples: '09:00', '10am'. Default: '10:00'.
        #
        #   @return [String]
        required :calling_window_start_time, String

        # @!attribute retry_delay_seconds
        #   Delay between retry attempts in seconds. Default: 7200 (2 hours).
        #
        #   @return [Integer]
        required :retry_delay_seconds, Integer

        # @!method initialize(calling_window_end_time:, calling_window_start_time:, retry_delay_seconds:)
        #   Some parameter documentations has been truncated, see
        #   {Revox::Models::CampaignGetRowsResponse::Row::Call::CallRetryConfig::CallingWindow}
        #   for more details.
        #
        #   @param calling_window_end_time [String] End time for the calling window in the recipient's timezone (or timezone_overrid
        #
        #   @param calling_window_start_time [String] Start time for the calling window in the recipient's timezone (or timezone_overr
        #
        #   @param retry_delay_seconds [Integer] Delay between retry attempts in seconds. Default: 7200 (2 hours).
      end
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#campaign
    class Campaign < Revox::Internal::Type::BaseModel
      # @!attribute id
      #
      #   @return [String]
      required :id, String

      # @!attribute name
      #
      #   @return [String]
      required :name, String

      # @!method initialize(id:, name:)
      #   @param id [String]
      #   @param name [String]
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#contact
    class Contact < Revox::Internal::Type::BaseModel
      # @!attribute company
      #
      #   @return [String, nil]
      required :company, String, nil?: true

      # @!attribute email
      #
      #   @return [String, nil]
      required :email, String, nil?: true

      # @!attribute first_name
      #
      #   @return [String, nil]
      required :first_name, String, nil?: true

      # @!attribute last_name
      #
      #   @return [String, nil]
      required :last_name, String, nil?: true

      # @!method initialize(company:, email:, first_name:, last_name:)
      #   Magic contact variables (prospect identity) extracted from the call's input data
      #   and transcript.
      #
      #   @param company [String, nil]
      #   @param email [String, nil]
      #   @param first_name [String, nil]
      #   @param last_name [String, nil]
    end

    # Whether the call is inbound or outbound.
    #
    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#direction
    module Direction
      extend Revox::Internal::Type::Enum

      INBOUND = :inbound
      OUTBOUND = :outbound

      # @!method self.values
      #   @return [Array<Symbol>]
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#last_call_attempt
    class LastCallAttempt < Revox::Internal::Type::BaseModel
      # @!attribute id
      #   The ID of the call attempt.
      #
      #   @return [String]
      required :id, String

      # @!attribute answered_at
      #   The time the call was answered.
      #
      #   @return [Object]
      required :answered_at, Revox::Internal::Type::Unknown

      # @!attribute dial_error
      #   The SIP error that occurred.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::DialError, nil]
      required :dial_error,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::DialError },
               nil?: true

      # @!attribute ended_at
      #   The time the call ended.
      #
      #   @return [Object]
      required :ended_at, Revox::Internal::Type::Unknown

      # @!attribute phone_number
      #   The phone number that was called. Formatted in E.164 format. Example:
      #   +1234567890
      #
      #   @return [String]
      required :phone_number, String

      # @!attribute recording_url
      #   The URL of the audio recording of the call.
      #
      #   @return [String, nil]
      required :recording_url, String, nil?: true

      # @!attribute result
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Result, nil]
      required :result,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Result },
               nil?: true

      # @!attribute started_at
      #   The time the call started.
      #
      #   @return [Object]
      required :started_at, Revox::Internal::Type::Unknown

      # @!attribute status
      #   The status of the call attempt.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Status]
      required :status, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Status }

      # @!attribute assistants_used
      #   Assistant node ids entered during this attempt, in traversal order.
      #
      #   @return [Array<String>, nil]
      optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true

      # @!attribute end_reason
      #   Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call',
      #   'voicemail', 'transfer', 'ivr_no_navigate'.
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndReason, nil]
      optional :end_reason,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndReason },
               nil?: true

      # @!attribute ended_by
      #   Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or
      #   'system' (e.g. max duration limit).
      #
      #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndedBy, nil]
      optional :ended_by,
               enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndedBy },
               nil?: true

      # @!attribute post_call_transcript
      #   Higher-quality transcript generated after the call via Soniox async STT. Null
      #   until generated or when no recording is available.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript>, nil]
      optional :post_call_transcript,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript] },
               nil?: true

      # @!attribute sms_log
      #   Automatic SMS sent after the call (voicemail and after-call), ordered oldest
      #   first. The in-call `send_sms` is excluded — it already appears in the transcript
      #   as a tool call.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog>, nil]
      optional :sms_log,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog] },
               nil?: true

      # @!attribute structured_output
      #   The data extracted from the call, using the structured output config from the
      #   parent call object.
      #
      #   @return [Hash{Symbol=>Object}, nil]
      optional :structured_output,
               Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown],
               nil?: true

      # @!attribute transcript
      #   The live transcript of the call, built in real time.
      #
      #   @return [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript>, nil]
      optional :transcript,
               -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript] },
               nil?: true

      # @!method initialize(id:, answered_at:, dial_error:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, assistants_used: nil, end_reason: nil, ended_by: nil, post_call_transcript: nil, sms_log: nil, structured_output: nil, transcript: nil)
      #   Some parameter documentations has been truncated, see
      #   {Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt} for more
      #   details.
      #
      #   This represent a single call attempt. A call attempt is a single call made to
      #   the phone number.
      #
      #   @param id [String] The ID of the call attempt.
      #
      #   @param answered_at [Object] The time the call was answered.
      #
      #   @param dial_error [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::DialError, nil] The SIP error that occurred.
      #
      #   @param ended_at [Object] The time the call ended.
      #
      #   @param phone_number [String] The phone number that was called. Formatted in E.164 format. Example: +123456789
      #
      #   @param recording_url [String, nil] The URL of the audio recording of the call.
      #
      #   @param result [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Result, nil]
      #
      #   @param started_at [Object] The time the call started.
      #
      #   @param status [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Status] The status of the call attempt.
      #
      #   @param assistants_used [Array<String>, nil] Assistant node ids entered during this attempt, in traversal order.
      #
      #   @param end_reason [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndReason, nil] Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call', 'voic
      #
      #   @param ended_by [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndedBy, nil] Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'syst
      #
      #   @param post_call_transcript [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript>, nil] Higher-quality transcript generated after the call via Soniox async STT. Null un
      #
      #   @param sms_log [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog>, nil] Automatic SMS sent after the call (voicemail and after-call), ordered oldest fir
      #
      #   @param structured_output [Hash{Symbol=>Object}, nil] The data extracted from the call, using the structured output config from the pa
      #
      #   @param transcript [Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript>, nil] The live transcript of the call, built in real time.

      # The SIP error that occurred.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt#dial_error
      module DialError
        extend Revox::Internal::Type::Enum

        NUMBER_NON_ATTRIBUTED = :number_non_attributed
        TOO_MANY_CALLS = :too_many_calls
        BUSY = :busy
        TEMPORARILY_UNAVAILABLE = :temporarily_unavailable
        NO_ANSWER = :no_answer
        NO_INTERNATIONAL_PERMISSION = :no_international_permission
        PRECONDITION_FAILED = :precondition_failed
        NON_CLASSIFIED_ERROR = :non_classified_error

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt#result
      module Result
        extend Revox::Internal::Type::Enum

        IVR = :IVR
        VOICEMAIL = :voicemail
        HUMAN = :human
        UNKNOWN = :unknown
        IOS_SCREENING_FILTER = :"ios-screening-filter"

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # The status of the call attempt.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt#status
      module Status
        extend Revox::Internal::Type::Enum

        QUEUED = :queued
        RINGING = :ringing
        ONGOING = :ongoing
        COMPLETED = :completed
        ERROR = :error

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call',
      # 'voicemail', 'transfer', 'ivr_no_navigate'.
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt#end_reason
      module EndReason
        extend Revox::Internal::Type::Enum

        CLIENT_INITIATED = :client_initiated
        CONNECTION_TIMEOUT = :connection_timeout
        HUMAN_TAKEOVER = :human_takeover
        IVR_NO_NAVIGATE = :ivr_no_navigate
        MAX_DURATION = :max_duration
        PARTICIPANT_REMOVED = :participant_removed
        TOOL_END_CALL = :tool_end_call
        TRANSFER = :transfer
        USER_INACTIVE = :user_inactive
        USER_REJECTED = :user_rejected
        USER_UNAVAILABLE = :user_unavailable
        VOICEMAIL = :voicemail
        SPEED_DIAL_ABANDONED = :speed_dial_abandoned
        SPEED_DIAL_OPERATOR_MISSED = :speed_dial_operator_missed
        SPEED_DIAL_TIMEOUT = :speed_dial_timeout
        SPEED_DIAL_HANGUP = :speed_dial_hangup

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      # Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or
      # 'system' (e.g. max duration limit).
      #
      # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt#ended_by
      module EndedBy
        extend Revox::Internal::Type::Enum

        AGENT = :agent
        USER = :user
        SYSTEM = :system

        # @!method self.values
        #   @return [Array<Symbol>]
      end

      class PostCallTranscript < Revox::Internal::Type::BaseModel
        # @!attribute content
        #
        #   @return [String]
        required :content, String

        # @!attribute role
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript::Role]
        required :role,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript::Role }

        # @!attribute tool_arguments
        #
        #   @return [Hash{Symbol=>Object}, String, nil]
        optional :tool_arguments,
                 union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript::ToolArguments }

        # @!attribute tool_is_error
        #
        #   @return [Boolean, nil]
        optional :tool_is_error, Revox::Internal::Type::Boolean

        # @!attribute tool_name
        #
        #   @return [String, nil]
        optional :tool_name, String

        # @!attribute tool_output
        #
        #   @return [String, nil]
        optional :tool_output, String

        # @!method initialize(content:, role:, tool_arguments: nil, tool_is_error: nil, tool_name: nil, tool_output: nil)
        #   @param content [String]
        #   @param role [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript::Role]
        #   @param tool_arguments [Hash{Symbol=>Object}, String]
        #   @param tool_is_error [Boolean]
        #   @param tool_name [String]
        #   @param tool_output [String]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript#role
        module Role
          extend Revox::Internal::Type::Enum

          USER = :user
          ASSISTANT = :assistant
          HUMAN_AGENT = :human_agent
          TOOL = :tool

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript#tool_arguments
        module ToolArguments
          extend Revox::Internal::Type::Union

          variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript::ToolArguments::UnionMember0Map }

          variant String

          # @!method self.variants
          #   @return [Array(Hash{Symbol=>Object}, String)]

          # @type [Revox::Internal::Type::Converter]
          UnionMember0Map = Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown]
        end
      end

      class SMSLog < Revox::Internal::Type::BaseModel
        # @!attribute id
        #
        #   @return [String]
        required :id, String

        # @!attribute created_at
        #   When the SMS was sent.
        #
        #   @return [Object]
        required :created_at, Revox::Internal::Type::Unknown

        # @!attribute message_body
        #
        #   @return [String]
        required :message_body, String

        # @!attribute to_phone_number
        #
        #   @return [String]
        required :to_phone_number, String

        # @!attribute twilio_message_sid
        #
        #   @return [String, nil]
        required :twilio_message_sid, String, nil?: true

        # @!attribute type
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog::Type]
        required :type,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog::Type }

        # @!method initialize(id:, created_at:, message_body:, to_phone_number:, twilio_message_sid:, type:)
        #   @param id [String]
        #
        #   @param created_at [Object] When the SMS was sent.
        #
        #   @param message_body [String]
        #
        #   @param to_phone_number [String]
        #
        #   @param twilio_message_sid [String, nil]
        #
        #   @param type [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog::Type]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog#type
        module Type
          extend Revox::Internal::Type::Enum

          IN_CALL = :in_call
          VOICEMAIL = :voicemail
          AFTER_CALL = :after_call

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      class Transcript < Revox::Internal::Type::BaseModel
        # @!attribute content
        #
        #   @return [String]
        required :content, String

        # @!attribute role
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript::Role]
        required :role,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript::Role }

        # @!attribute tool_arguments
        #
        #   @return [Hash{Symbol=>Object}, String, nil]
        optional :tool_arguments,
                 union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript::ToolArguments }

        # @!attribute tool_is_error
        #
        #   @return [Boolean, nil]
        optional :tool_is_error, Revox::Internal::Type::Boolean

        # @!attribute tool_name
        #
        #   @return [String, nil]
        optional :tool_name, String

        # @!attribute tool_output
        #
        #   @return [String, nil]
        optional :tool_output, String

        # @!method initialize(content:, role:, tool_arguments: nil, tool_is_error: nil, tool_name: nil, tool_output: nil)
        #   @param content [String]
        #   @param role [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript::Role]
        #   @param tool_arguments [Hash{Symbol=>Object}, String]
        #   @param tool_is_error [Boolean]
        #   @param tool_name [String]
        #   @param tool_output [String]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript#role
        module Role
          extend Revox::Internal::Type::Enum

          USER = :user
          ASSISTANT = :assistant
          HUMAN_AGENT = :human_agent
          TOOL = :tool

          # @!method self.values
          #   @return [Array<Symbol>]
        end

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript#tool_arguments
        module ToolArguments
          extend Revox::Internal::Type::Union

          variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript::ToolArguments::UnionMember0Map }

          variant String

          # @!method self.variants
          #   @return [Array(Hash{Symbol=>Object}, String)]

          # @type [Revox::Internal::Type::Converter]
          UnionMember0Map = Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown]
        end
      end
    end

    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#llm_model
    module LlmModel
      extend Revox::Internal::Type::Union

      variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0 }

      variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember1 }

      variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember2 }

      variant -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3 }

      class UnionMember0 < Revox::Internal::Type::BaseModel
        # @!attribute name
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0::Name]
        required :name,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0::Name }

        # @!attribute type
        #
        #   @return [Symbol, :"dedicated-instance"]
        required :type, const: :"dedicated-instance"

        # @!method initialize(name:, type: :"dedicated-instance")
        #   @param name [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0::Name]
        #   @param type [Symbol, :"dedicated-instance"]

        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0#name
        module Name
          extend Revox::Internal::Type::Enum

          GPT_4_1 = :"gpt-4.1"
          MINISTRAL_3_8B_INSTRUCT = :"ministral-3-8b-instruct"

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      class UnionMember1 < Revox::Internal::Type::BaseModel
        # @!attribute openrouter_model_id
        #   The model ID to use from OpenRouter. eg: openai/gpt-4.1
        #
        #   @return [String]
        required :openrouter_model_id, String

        # @!attribute openrouter_provider
        #   The provider to use from OpenRouter. eg: nebius, openai, azure, etc.
        #
        #   @return [String]
        required :openrouter_provider, String

        # @!attribute type
        #   Use a model from OpenRouter.
        #
        #   @return [Symbol, :openrouter]
        required :type, const: :openrouter

        # @!method initialize(openrouter_model_id:, openrouter_provider:, type: :openrouter)
        #   @param openrouter_model_id [String] The model ID to use from OpenRouter. eg: openai/gpt-4.1
        #
        #   @param openrouter_provider [String] The provider to use from OpenRouter. eg: nebius, openai, azure, etc.
        #
        #   @param type [Symbol, :openrouter] Use a model from OpenRouter.
      end

      class UnionMember2 < Revox::Internal::Type::BaseModel
        # @!attribute api_key
        #   API key sent as Bearer token to the custom endpoint.
        #
        #   @return [String]
        required :api_key, String

        # @!attribute api_url
        #   Base URL for the OpenAI-compatible API, e.g. https://api.together.xyz/v1
        #
        #   @return [String]
        required :api_url, String

        # @!attribute model_name
        #   Model name as expected by the provider, e.g. meta-llama/llama-3-70b
        #
        #   @return [String]
        required :model_name, String

        # @!attribute type
        #   OpenAI-compatible chat completions API (bring your own endpoint and key).
        #
        #   @return [Symbol, :custom]
        required :type, const: :custom

        # @!method initialize(api_key:, api_url:, model_name:, type: :custom)
        #   @param api_key [String] API key sent as Bearer token to the custom endpoint.
        #
        #   @param api_url [String] Base URL for the OpenAI-compatible API, e.g. https://api.together.xyz/v1
        #
        #   @param model_name [String] Model name as expected by the provider, e.g. meta-llama/llama-3-70b
        #
        #   @param type [Symbol, :custom] OpenAI-compatible chat completions API (bring your own endpoint and key).
      end

      class UnionMember3 < Revox::Internal::Type::BaseModel
        # @!attribute provider
        #   The provider to use from Realtime. eg: openai, google.
        #
        #   @return [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3::Provider]
        required :provider,
                 enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3::Provider }

        # @!attribute realtime_model_id
        #   The model ID to use from Realtime. eg: gpt-4.1
        #
        #   @return [String]
        required :realtime_model_id, String

        # @!attribute type
        #   Use a model from Realtime.
        #
        #   @return [Symbol, :realtime]
        required :type, const: :realtime

        # @!attribute realtime_voice_id
        #   Output voice for the realtime provider (e.g. OpenAI: marin; Gemini: Puck).
        #
        #   @return [String, nil]
        optional :realtime_voice_id, String

        # @!method initialize(provider:, realtime_model_id:, realtime_voice_id: nil, type: :realtime)
        #   @param provider [Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3::Provider] The provider to use from Realtime. eg: openai, google.
        #
        #   @param realtime_model_id [String] The model ID to use from Realtime. eg: gpt-4.1
        #
        #   @param realtime_voice_id [String] Output voice for the realtime provider (e.g. OpenAI: marin; Gemini: Puck).
        #
        #   @param type [Symbol, :realtime] Use a model from Realtime.

        # The provider to use from Realtime. eg: openai, google.
        #
        # @see Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3#provider
        module Provider
          extend Revox::Internal::Type::Enum

          OPENAI = :openai
          GOOGLE = :google

          # @!method self.values
          #   @return [Array<Symbol>]
        end
      end

      # @!method self.variants
      #   @return [Array(Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember0, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember1, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember2, Revox::Models::CampaignGetRowsResponse::Row::Call::LlmModel::UnionMember3)]
    end

    # The status of the call.
    #
    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#status
    module Status
      extend Revox::Internal::Type::Enum

      INITIALIZING = :initializing
      QUEUED_FOR_CALLING = :queued_for_calling
      CALLING = :calling
      POST_PROCESSING = :post_processing
      SCHEDULED = :scheduled
      PAUSED = :paused
      COMPLETED = :completed
      CANCELLED = :cancelled
      ERRORED = :errored

      # @!method self.values
      #   @return [Array<Symbol>]
    end

    # Business outcome of the call. Null if not computed or no transcript.
    #
    # @see Revox::Models::CampaignGetRowsResponse::Row::Call#outcome
    module Outcome
      extend Revox::Internal::Type::Enum

      NOT_INTERESTED = :not_interested
      INTERESTED = :interested
      COMPLETED = :completed
      REQUESTED_CALLBACK_LATER = :requested_callback_later
      REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
      DO_NOT_CONTACT = :do_not_contact
      AI_AVERSE = :ai_averse

      # @!method self.values
      #   @return [Array<Symbol>]
    end
  end
end

Instance Attribute Details

#callRevox::Models::CampaignGetRowsResponse::Row::Call?

This represent a call "order" that was requested by the user. A call order can be resolved over multiple call attempts spanning up to a few days.



41
# File 'lib/revox/models/campaign_get_rows_response.rb', line 41

optional :call, -> { Revox::Models::CampaignGetRowsResponse::Row::Call }

#idString

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/revox/models/campaign_get_rows_response.rb', line 19

required :id, String

#input_dataHash{Symbol=>String}

Parameters:

  • value (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String})


24
# File 'lib/revox/models/campaign_get_rows_response.rb', line 24

required :input_data, Revox::Internal::Type::HashOf[String]

#phone_numberString

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/revox/models/campaign_get_rows_response.rb', line 29

required :phone_number, String

#row_indexFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


34
# File 'lib/revox/models/campaign_get_rows_response.rb', line 34

required :row_index, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


49
# File 'sig/revox/models/campaign_get_rows_response.rbs', line 49

def to_hash: -> {