airbyte-agent-zendesk-support 0.18.41__py3-none-any.whl → 0.18.43__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  """
2
- zendesk-support connector.
2
+ Zendesk-Support connector.
3
3
  """
4
4
 
5
5
  from __future__ import annotations
@@ -63,43 +63,49 @@ from .models import (
63
63
  ZendeskSupportExecuteResult,
64
64
  ZendeskSupportExecuteResultWithMeta,
65
65
  TicketsListResult,
66
- TicketsGetResult,
67
66
  UsersListResult,
68
- UsersGetResult,
69
67
  OrganizationsListResult,
70
- OrganizationsGetResult,
71
68
  GroupsListResult,
72
- GroupsGetResult,
73
69
  TicketCommentsListResult,
74
- AttachmentsGetResult,
75
70
  TicketAuditsListResult,
76
71
  TicketAuditsListResult,
77
72
  TicketMetricsListResult,
78
73
  TicketFieldsListResult,
79
- TicketFieldsGetResult,
80
74
  BrandsListResult,
81
- BrandsGetResult,
82
75
  ViewsListResult,
83
- ViewsGetResult,
84
76
  MacrosListResult,
85
- MacrosGetResult,
86
77
  TriggersListResult,
87
- TriggersGetResult,
88
78
  AutomationsListResult,
89
- AutomationsGetResult,
90
79
  TagsListResult,
91
80
  SatisfactionRatingsListResult,
92
- SatisfactionRatingsGetResult,
93
81
  GroupMembershipsListResult,
94
82
  OrganizationMembershipsListResult,
95
83
  SlaPoliciesListResult,
96
- SlaPoliciesGetResult,
97
84
  TicketFormsListResult,
98
- TicketFormsGetResult,
99
85
  ArticlesListResult,
100
- ArticlesGetResult,
101
86
  ArticleAttachmentsListResult,
102
- ArticleAttachmentsGetResult,
87
+ Article,
88
+ ArticleAttachment,
89
+ Attachment,
90
+ Automation,
91
+ Brand,
92
+ Group,
93
+ GroupMembership,
94
+ Macro,
95
+ Organization,
96
+ OrganizationMembership,
97
+ SLAPolicy,
98
+ SatisfactionRating,
99
+ Tag,
100
+ Ticket,
101
+ TicketAudit,
102
+ TicketComment,
103
+ TicketField,
104
+ TicketForm,
105
+ TicketMetric,
106
+ Trigger,
107
+ User,
108
+ View,
103
109
  )
104
110
 
105
111
  # TypeVar for decorator type preservation
@@ -117,48 +123,48 @@ class ZendeskSupportConnector:
117
123
  connector_version = "0.1.4"
118
124
  vendored_sdk_version = "0.1.0" # Version of vendored connector-sdk
119
125
 
120
- # Map of (entity, action) -> has_extractors for envelope wrapping decision
121
- _EXTRACTOR_MAP = {
126
+ # Map of (entity, action) -> needs_envelope for envelope wrapping decision
127
+ _ENVELOPE_MAP = {
122
128
  ("tickets", "list"): True,
123
- ("tickets", "get"): True,
129
+ ("tickets", "get"): None,
124
130
  ("users", "list"): True,
125
- ("users", "get"): True,
131
+ ("users", "get"): None,
126
132
  ("organizations", "list"): True,
127
- ("organizations", "get"): True,
133
+ ("organizations", "get"): None,
128
134
  ("groups", "list"): True,
129
- ("groups", "get"): True,
135
+ ("groups", "get"): None,
130
136
  ("ticket_comments", "list"): True,
131
- ("attachments", "get"): True,
132
- ("attachments", "download"): False,
137
+ ("attachments", "get"): None,
138
+ ("attachments", "download"): None,
133
139
  ("ticket_audits", "list"): True,
134
140
  ("ticket_audits", "list"): True,
135
141
  ("ticket_metrics", "list"): True,
136
142
  ("ticket_fields", "list"): True,
137
- ("ticket_fields", "get"): True,
143
+ ("ticket_fields", "get"): None,
138
144
  ("brands", "list"): True,
139
- ("brands", "get"): True,
145
+ ("brands", "get"): None,
140
146
  ("views", "list"): True,
141
- ("views", "get"): True,
147
+ ("views", "get"): None,
142
148
  ("macros", "list"): True,
143
- ("macros", "get"): True,
149
+ ("macros", "get"): None,
144
150
  ("triggers", "list"): True,
145
- ("triggers", "get"): True,
151
+ ("triggers", "get"): None,
146
152
  ("automations", "list"): True,
147
- ("automations", "get"): True,
153
+ ("automations", "get"): None,
148
154
  ("tags", "list"): True,
149
155
  ("satisfaction_ratings", "list"): True,
150
- ("satisfaction_ratings", "get"): True,
156
+ ("satisfaction_ratings", "get"): None,
151
157
  ("group_memberships", "list"): True,
152
158
  ("organization_memberships", "list"): True,
153
159
  ("sla_policies", "list"): True,
154
- ("sla_policies", "get"): True,
160
+ ("sla_policies", "get"): None,
155
161
  ("ticket_forms", "list"): True,
156
- ("ticket_forms", "get"): True,
162
+ ("ticket_forms", "get"): None,
157
163
  ("articles", "list"): True,
158
- ("articles", "get"): True,
164
+ ("articles", "get"): None,
159
165
  ("article_attachments", "list"): True,
160
- ("article_attachments", "get"): True,
161
- ("article_attachments", "download"): False,
166
+ ("article_attachments", "get"): None,
167
+ ("article_attachments", "download"): None,
162
168
  }
163
169
 
164
170
  # Map of (entity, action) -> {python_param_name: api_param_name}
@@ -335,7 +341,7 @@ class ZendeskSupportConnector:
335
341
  entity: Literal["tickets"],
336
342
  action: Literal["get"],
337
343
  params: "TicketsGetParams"
338
- ) -> "TicketsGetResult": ...
344
+ ) -> "Ticket": ...
339
345
 
340
346
  @overload
341
347
  async def execute(
@@ -351,7 +357,7 @@ class ZendeskSupportConnector:
351
357
  entity: Literal["users"],
352
358
  action: Literal["get"],
353
359
  params: "UsersGetParams"
354
- ) -> "UsersGetResult": ...
360
+ ) -> "User": ...
355
361
 
356
362
  @overload
357
363
  async def execute(
@@ -367,7 +373,7 @@ class ZendeskSupportConnector:
367
373
  entity: Literal["organizations"],
368
374
  action: Literal["get"],
369
375
  params: "OrganizationsGetParams"
370
- ) -> "OrganizationsGetResult": ...
376
+ ) -> "Organization": ...
371
377
 
372
378
  @overload
373
379
  async def execute(
@@ -383,7 +389,7 @@ class ZendeskSupportConnector:
383
389
  entity: Literal["groups"],
384
390
  action: Literal["get"],
385
391
  params: "GroupsGetParams"
386
- ) -> "GroupsGetResult": ...
392
+ ) -> "Group": ...
387
393
 
388
394
  @overload
389
395
  async def execute(
@@ -399,7 +405,7 @@ class ZendeskSupportConnector:
399
405
  entity: Literal["attachments"],
400
406
  action: Literal["get"],
401
407
  params: "AttachmentsGetParams"
402
- ) -> "AttachmentsGetResult": ...
408
+ ) -> "Attachment": ...
403
409
 
404
410
  @overload
405
411
  async def execute(
@@ -447,7 +453,7 @@ class ZendeskSupportConnector:
447
453
  entity: Literal["ticket_fields"],
448
454
  action: Literal["get"],
449
455
  params: "TicketFieldsGetParams"
450
- ) -> "TicketFieldsGetResult": ...
456
+ ) -> "TicketField": ...
451
457
 
452
458
  @overload
453
459
  async def execute(
@@ -463,7 +469,7 @@ class ZendeskSupportConnector:
463
469
  entity: Literal["brands"],
464
470
  action: Literal["get"],
465
471
  params: "BrandsGetParams"
466
- ) -> "BrandsGetResult": ...
472
+ ) -> "Brand": ...
467
473
 
468
474
  @overload
469
475
  async def execute(
@@ -479,7 +485,7 @@ class ZendeskSupportConnector:
479
485
  entity: Literal["views"],
480
486
  action: Literal["get"],
481
487
  params: "ViewsGetParams"
482
- ) -> "ViewsGetResult": ...
488
+ ) -> "View": ...
483
489
 
484
490
  @overload
485
491
  async def execute(
@@ -495,7 +501,7 @@ class ZendeskSupportConnector:
495
501
  entity: Literal["macros"],
496
502
  action: Literal["get"],
497
503
  params: "MacrosGetParams"
498
- ) -> "MacrosGetResult": ...
504
+ ) -> "Macro": ...
499
505
 
500
506
  @overload
501
507
  async def execute(
@@ -511,7 +517,7 @@ class ZendeskSupportConnector:
511
517
  entity: Literal["triggers"],
512
518
  action: Literal["get"],
513
519
  params: "TriggersGetParams"
514
- ) -> "TriggersGetResult": ...
520
+ ) -> "Trigger": ...
515
521
 
516
522
  @overload
517
523
  async def execute(
@@ -527,7 +533,7 @@ class ZendeskSupportConnector:
527
533
  entity: Literal["automations"],
528
534
  action: Literal["get"],
529
535
  params: "AutomationsGetParams"
530
- ) -> "AutomationsGetResult": ...
536
+ ) -> "Automation": ...
531
537
 
532
538
  @overload
533
539
  async def execute(
@@ -551,7 +557,7 @@ class ZendeskSupportConnector:
551
557
  entity: Literal["satisfaction_ratings"],
552
558
  action: Literal["get"],
553
559
  params: "SatisfactionRatingsGetParams"
554
- ) -> "SatisfactionRatingsGetResult": ...
560
+ ) -> "SatisfactionRating": ...
555
561
 
556
562
  @overload
557
563
  async def execute(
@@ -583,7 +589,7 @@ class ZendeskSupportConnector:
583
589
  entity: Literal["sla_policies"],
584
590
  action: Literal["get"],
585
591
  params: "SlaPoliciesGetParams"
586
- ) -> "SlaPoliciesGetResult": ...
592
+ ) -> "SLAPolicy": ...
587
593
 
588
594
  @overload
589
595
  async def execute(
@@ -599,7 +605,7 @@ class ZendeskSupportConnector:
599
605
  entity: Literal["ticket_forms"],
600
606
  action: Literal["get"],
601
607
  params: "TicketFormsGetParams"
602
- ) -> "TicketFormsGetResult": ...
608
+ ) -> "TicketForm": ...
603
609
 
604
610
  @overload
605
611
  async def execute(
@@ -615,7 +621,7 @@ class ZendeskSupportConnector:
615
621
  entity: Literal["articles"],
616
622
  action: Literal["get"],
617
623
  params: "ArticlesGetParams"
618
- ) -> "ArticlesGetResult": ...
624
+ ) -> "Article": ...
619
625
 
620
626
  @overload
621
627
  async def execute(
@@ -631,7 +637,7 @@ class ZendeskSupportConnector:
631
637
  entity: Literal["article_attachments"],
632
638
  action: Literal["get"],
633
639
  params: "ArticleAttachmentsGetParams"
634
- ) -> "ArticleAttachmentsGetResult": ...
640
+ ) -> "ArticleAttachment": ...
635
641
 
636
642
  @overload
637
643
  async def execute(
@@ -700,7 +706,7 @@ class ZendeskSupportConnector:
700
706
  raise RuntimeError(f"Execution failed: {result.error}")
701
707
 
702
708
  # Check if this operation has extractors configured
703
- has_extractors = self._EXTRACTOR_MAP.get((entity, action), False)
709
+ has_extractors = self._ENVELOPE_MAP.get((entity, action), False)
704
710
 
705
711
  if has_extractors:
706
712
  # With extractors - return Pydantic envelope with data and meta
@@ -838,7 +844,8 @@ class TicketsQuery:
838
844
  # Cast generic envelope to concrete typed result
839
845
  return TicketsListResult(
840
846
  data=result.data,
841
- meta=result.meta )
847
+ meta=result.meta
848
+ )
842
849
 
843
850
 
844
851
 
@@ -846,7 +853,7 @@ class TicketsQuery:
846
853
  self,
847
854
  ticket_id: str,
848
855
  **kwargs
849
- ) -> TicketsGetResult:
856
+ ) -> Ticket:
850
857
  """
851
858
  Returns a ticket by its ID
852
859
 
@@ -855,7 +862,7 @@ class TicketsQuery:
855
862
  **kwargs: Additional parameters
856
863
 
857
864
  Returns:
858
- TicketsGetResult
865
+ Ticket
859
866
  """
860
867
  params = {k: v for k, v in {
861
868
  "ticket_id": ticket_id,
@@ -863,9 +870,7 @@ class TicketsQuery:
863
870
  }.items() if v is not None}
864
871
 
865
872
  result = await self._connector.execute("tickets", "get", params)
866
- # Cast generic envelope to concrete typed result
867
- return TicketsGetResult(
868
- data=result.data )
873
+ return result
869
874
 
870
875
 
871
876
 
@@ -908,7 +913,8 @@ class UsersQuery:
908
913
  # Cast generic envelope to concrete typed result
909
914
  return UsersListResult(
910
915
  data=result.data,
911
- meta=result.meta )
916
+ meta=result.meta
917
+ )
912
918
 
913
919
 
914
920
 
@@ -916,7 +922,7 @@ class UsersQuery:
916
922
  self,
917
923
  user_id: str,
918
924
  **kwargs
919
- ) -> UsersGetResult:
925
+ ) -> User:
920
926
  """
921
927
  Returns a user by their ID
922
928
 
@@ -925,7 +931,7 @@ class UsersQuery:
925
931
  **kwargs: Additional parameters
926
932
 
927
933
  Returns:
928
- UsersGetResult
934
+ User
929
935
  """
930
936
  params = {k: v for k, v in {
931
937
  "user_id": user_id,
@@ -933,9 +939,7 @@ class UsersQuery:
933
939
  }.items() if v is not None}
934
940
 
935
941
  result = await self._connector.execute("users", "get", params)
936
- # Cast generic envelope to concrete typed result
937
- return UsersGetResult(
938
- data=result.data )
942
+ return result
939
943
 
940
944
 
941
945
 
@@ -972,7 +976,8 @@ class OrganizationsQuery:
972
976
  # Cast generic envelope to concrete typed result
973
977
  return OrganizationsListResult(
974
978
  data=result.data,
975
- meta=result.meta )
979
+ meta=result.meta
980
+ )
976
981
 
977
982
 
978
983
 
@@ -980,7 +985,7 @@ class OrganizationsQuery:
980
985
  self,
981
986
  organization_id: str,
982
987
  **kwargs
983
- ) -> OrganizationsGetResult:
988
+ ) -> Organization:
984
989
  """
985
990
  Returns an organization by its ID
986
991
 
@@ -989,7 +994,7 @@ class OrganizationsQuery:
989
994
  **kwargs: Additional parameters
990
995
 
991
996
  Returns:
992
- OrganizationsGetResult
997
+ Organization
993
998
  """
994
999
  params = {k: v for k, v in {
995
1000
  "organization_id": organization_id,
@@ -997,9 +1002,7 @@ class OrganizationsQuery:
997
1002
  }.items() if v is not None}
998
1003
 
999
1004
  result = await self._connector.execute("organizations", "get", params)
1000
- # Cast generic envelope to concrete typed result
1001
- return OrganizationsGetResult(
1002
- data=result.data )
1005
+ return result
1003
1006
 
1004
1007
 
1005
1008
 
@@ -1039,7 +1042,8 @@ class GroupsQuery:
1039
1042
  # Cast generic envelope to concrete typed result
1040
1043
  return GroupsListResult(
1041
1044
  data=result.data,
1042
- meta=result.meta )
1045
+ meta=result.meta
1046
+ )
1043
1047
 
1044
1048
 
1045
1049
 
@@ -1047,7 +1051,7 @@ class GroupsQuery:
1047
1051
  self,
1048
1052
  group_id: str,
1049
1053
  **kwargs
1050
- ) -> GroupsGetResult:
1054
+ ) -> Group:
1051
1055
  """
1052
1056
  Returns a group by its ID
1053
1057
 
@@ -1056,7 +1060,7 @@ class GroupsQuery:
1056
1060
  **kwargs: Additional parameters
1057
1061
 
1058
1062
  Returns:
1059
- GroupsGetResult
1063
+ Group
1060
1064
  """
1061
1065
  params = {k: v for k, v in {
1062
1066
  "group_id": group_id,
@@ -1064,9 +1068,7 @@ class GroupsQuery:
1064
1068
  }.items() if v is not None}
1065
1069
 
1066
1070
  result = await self._connector.execute("groups", "get", params)
1067
- # Cast generic envelope to concrete typed result
1068
- return GroupsGetResult(
1069
- data=result.data )
1071
+ return result
1070
1072
 
1071
1073
 
1072
1074
 
@@ -1112,7 +1114,8 @@ class TicketCommentsQuery:
1112
1114
  # Cast generic envelope to concrete typed result
1113
1115
  return TicketCommentsListResult(
1114
1116
  data=result.data,
1115
- meta=result.meta )
1117
+ meta=result.meta
1118
+ )
1116
1119
 
1117
1120
 
1118
1121
 
@@ -1129,7 +1132,7 @@ class AttachmentsQuery:
1129
1132
  self,
1130
1133
  attachment_id: str,
1131
1134
  **kwargs
1132
- ) -> AttachmentsGetResult:
1135
+ ) -> Attachment:
1133
1136
  """
1134
1137
  Returns an attachment by its ID
1135
1138
 
@@ -1138,7 +1141,7 @@ class AttachmentsQuery:
1138
1141
  **kwargs: Additional parameters
1139
1142
 
1140
1143
  Returns:
1141
- AttachmentsGetResult
1144
+ Attachment
1142
1145
  """
1143
1146
  params = {k: v for k, v in {
1144
1147
  "attachment_id": attachment_id,
@@ -1146,9 +1149,7 @@ class AttachmentsQuery:
1146
1149
  }.items() if v is not None}
1147
1150
 
1148
1151
  result = await self._connector.execute("attachments", "get", params)
1149
- # Cast generic envelope to concrete typed result
1150
- return AttachmentsGetResult(
1151
- data=result.data )
1152
+ return result
1152
1153
 
1153
1154
 
1154
1155
 
@@ -1243,7 +1244,8 @@ class TicketAuditsQuery:
1243
1244
  # Cast generic envelope to concrete typed result
1244
1245
  return TicketAuditsListResult(
1245
1246
  data=result.data,
1246
- meta=result.meta )
1247
+ meta=result.meta
1248
+ )
1247
1249
 
1248
1250
 
1249
1251
 
@@ -1274,7 +1276,8 @@ class TicketAuditsQuery:
1274
1276
  # Cast generic envelope to concrete typed result
1275
1277
  return TicketAuditsListResult(
1276
1278
  data=result.data,
1277
- meta=result.meta )
1279
+ meta=result.meta
1280
+ )
1278
1281
 
1279
1282
 
1280
1283
 
@@ -1311,7 +1314,8 @@ class TicketMetricsQuery:
1311
1314
  # Cast generic envelope to concrete typed result
1312
1315
  return TicketMetricsListResult(
1313
1316
  data=result.data,
1314
- meta=result.meta )
1317
+ meta=result.meta
1318
+ )
1315
1319
 
1316
1320
 
1317
1321
 
@@ -1351,7 +1355,8 @@ class TicketFieldsQuery:
1351
1355
  # Cast generic envelope to concrete typed result
1352
1356
  return TicketFieldsListResult(
1353
1357
  data=result.data,
1354
- meta=result.meta )
1358
+ meta=result.meta
1359
+ )
1355
1360
 
1356
1361
 
1357
1362
 
@@ -1359,7 +1364,7 @@ class TicketFieldsQuery:
1359
1364
  self,
1360
1365
  ticket_field_id: str,
1361
1366
  **kwargs
1362
- ) -> TicketFieldsGetResult:
1367
+ ) -> TicketField:
1363
1368
  """
1364
1369
  Returns a ticket field by its ID
1365
1370
 
@@ -1368,7 +1373,7 @@ class TicketFieldsQuery:
1368
1373
  **kwargs: Additional parameters
1369
1374
 
1370
1375
  Returns:
1371
- TicketFieldsGetResult
1376
+ TicketField
1372
1377
  """
1373
1378
  params = {k: v for k, v in {
1374
1379
  "ticket_field_id": ticket_field_id,
@@ -1376,9 +1381,7 @@ class TicketFieldsQuery:
1376
1381
  }.items() if v is not None}
1377
1382
 
1378
1383
  result = await self._connector.execute("ticket_fields", "get", params)
1379
- # Cast generic envelope to concrete typed result
1380
- return TicketFieldsGetResult(
1381
- data=result.data )
1384
+ return result
1382
1385
 
1383
1386
 
1384
1387
 
@@ -1415,7 +1418,8 @@ class BrandsQuery:
1415
1418
  # Cast generic envelope to concrete typed result
1416
1419
  return BrandsListResult(
1417
1420
  data=result.data,
1418
- meta=result.meta )
1421
+ meta=result.meta
1422
+ )
1419
1423
 
1420
1424
 
1421
1425
 
@@ -1423,7 +1427,7 @@ class BrandsQuery:
1423
1427
  self,
1424
1428
  brand_id: str,
1425
1429
  **kwargs
1426
- ) -> BrandsGetResult:
1430
+ ) -> Brand:
1427
1431
  """
1428
1432
  Returns a brand by its ID
1429
1433
 
@@ -1432,7 +1436,7 @@ class BrandsQuery:
1432
1436
  **kwargs: Additional parameters
1433
1437
 
1434
1438
  Returns:
1435
- BrandsGetResult
1439
+ Brand
1436
1440
  """
1437
1441
  params = {k: v for k, v in {
1438
1442
  "brand_id": brand_id,
@@ -1440,9 +1444,7 @@ class BrandsQuery:
1440
1444
  }.items() if v is not None}
1441
1445
 
1442
1446
  result = await self._connector.execute("brands", "get", params)
1443
- # Cast generic envelope to concrete typed result
1444
- return BrandsGetResult(
1445
- data=result.data )
1447
+ return result
1446
1448
 
1447
1449
 
1448
1450
 
@@ -1494,7 +1496,8 @@ class ViewsQuery:
1494
1496
  # Cast generic envelope to concrete typed result
1495
1497
  return ViewsListResult(
1496
1498
  data=result.data,
1497
- meta=result.meta )
1499
+ meta=result.meta
1500
+ )
1498
1501
 
1499
1502
 
1500
1503
 
@@ -1502,7 +1505,7 @@ class ViewsQuery:
1502
1505
  self,
1503
1506
  view_id: str,
1504
1507
  **kwargs
1505
- ) -> ViewsGetResult:
1508
+ ) -> View:
1506
1509
  """
1507
1510
  Returns a view by its ID
1508
1511
 
@@ -1511,7 +1514,7 @@ class ViewsQuery:
1511
1514
  **kwargs: Additional parameters
1512
1515
 
1513
1516
  Returns:
1514
- ViewsGetResult
1517
+ View
1515
1518
  """
1516
1519
  params = {k: v for k, v in {
1517
1520
  "view_id": view_id,
@@ -1519,9 +1522,7 @@ class ViewsQuery:
1519
1522
  }.items() if v is not None}
1520
1523
 
1521
1524
  result = await self._connector.execute("views", "get", params)
1522
- # Cast generic envelope to concrete typed result
1523
- return ViewsGetResult(
1524
- data=result.data )
1525
+ return result
1525
1526
 
1526
1527
 
1527
1528
 
@@ -1579,7 +1580,8 @@ class MacrosQuery:
1579
1580
  # Cast generic envelope to concrete typed result
1580
1581
  return MacrosListResult(
1581
1582
  data=result.data,
1582
- meta=result.meta )
1583
+ meta=result.meta
1584
+ )
1583
1585
 
1584
1586
 
1585
1587
 
@@ -1587,7 +1589,7 @@ class MacrosQuery:
1587
1589
  self,
1588
1590
  macro_id: str,
1589
1591
  **kwargs
1590
- ) -> MacrosGetResult:
1592
+ ) -> Macro:
1591
1593
  """
1592
1594
  Returns a macro by its ID
1593
1595
 
@@ -1596,7 +1598,7 @@ class MacrosQuery:
1596
1598
  **kwargs: Additional parameters
1597
1599
 
1598
1600
  Returns:
1599
- MacrosGetResult
1601
+ Macro
1600
1602
  """
1601
1603
  params = {k: v for k, v in {
1602
1604
  "macro_id": macro_id,
@@ -1604,9 +1606,7 @@ class MacrosQuery:
1604
1606
  }.items() if v is not None}
1605
1607
 
1606
1608
  result = await self._connector.execute("macros", "get", params)
1607
- # Cast generic envelope to concrete typed result
1608
- return MacrosGetResult(
1609
- data=result.data )
1609
+ return result
1610
1610
 
1611
1611
 
1612
1612
 
@@ -1652,7 +1652,8 @@ class TriggersQuery:
1652
1652
  # Cast generic envelope to concrete typed result
1653
1653
  return TriggersListResult(
1654
1654
  data=result.data,
1655
- meta=result.meta )
1655
+ meta=result.meta
1656
+ )
1656
1657
 
1657
1658
 
1658
1659
 
@@ -1660,7 +1661,7 @@ class TriggersQuery:
1660
1661
  self,
1661
1662
  trigger_id: str,
1662
1663
  **kwargs
1663
- ) -> TriggersGetResult:
1664
+ ) -> Trigger:
1664
1665
  """
1665
1666
  Returns a trigger by its ID
1666
1667
 
@@ -1669,7 +1670,7 @@ class TriggersQuery:
1669
1670
  **kwargs: Additional parameters
1670
1671
 
1671
1672
  Returns:
1672
- TriggersGetResult
1673
+ Trigger
1673
1674
  """
1674
1675
  params = {k: v for k, v in {
1675
1676
  "trigger_id": trigger_id,
@@ -1677,9 +1678,7 @@ class TriggersQuery:
1677
1678
  }.items() if v is not None}
1678
1679
 
1679
1680
  result = await self._connector.execute("triggers", "get", params)
1680
- # Cast generic envelope to concrete typed result
1681
- return TriggersGetResult(
1682
- data=result.data )
1681
+ return result
1683
1682
 
1684
1683
 
1685
1684
 
@@ -1722,7 +1721,8 @@ class AutomationsQuery:
1722
1721
  # Cast generic envelope to concrete typed result
1723
1722
  return AutomationsListResult(
1724
1723
  data=result.data,
1725
- meta=result.meta )
1724
+ meta=result.meta
1725
+ )
1726
1726
 
1727
1727
 
1728
1728
 
@@ -1730,7 +1730,7 @@ class AutomationsQuery:
1730
1730
  self,
1731
1731
  automation_id: str,
1732
1732
  **kwargs
1733
- ) -> AutomationsGetResult:
1733
+ ) -> Automation:
1734
1734
  """
1735
1735
  Returns an automation by its ID
1736
1736
 
@@ -1739,7 +1739,7 @@ class AutomationsQuery:
1739
1739
  **kwargs: Additional parameters
1740
1740
 
1741
1741
  Returns:
1742
- AutomationsGetResult
1742
+ Automation
1743
1743
  """
1744
1744
  params = {k: v for k, v in {
1745
1745
  "automation_id": automation_id,
@@ -1747,9 +1747,7 @@ class AutomationsQuery:
1747
1747
  }.items() if v is not None}
1748
1748
 
1749
1749
  result = await self._connector.execute("automations", "get", params)
1750
- # Cast generic envelope to concrete typed result
1751
- return AutomationsGetResult(
1752
- data=result.data )
1750
+ return result
1753
1751
 
1754
1752
 
1755
1753
 
@@ -1786,7 +1784,8 @@ class TagsQuery:
1786
1784
  # Cast generic envelope to concrete typed result
1787
1785
  return TagsListResult(
1788
1786
  data=result.data,
1789
- meta=result.meta )
1787
+ meta=result.meta
1788
+ )
1790
1789
 
1791
1790
 
1792
1791
 
@@ -1832,7 +1831,8 @@ class SatisfactionRatingsQuery:
1832
1831
  # Cast generic envelope to concrete typed result
1833
1832
  return SatisfactionRatingsListResult(
1834
1833
  data=result.data,
1835
- meta=result.meta )
1834
+ meta=result.meta
1835
+ )
1836
1836
 
1837
1837
 
1838
1838
 
@@ -1840,7 +1840,7 @@ class SatisfactionRatingsQuery:
1840
1840
  self,
1841
1841
  satisfaction_rating_id: str,
1842
1842
  **kwargs
1843
- ) -> SatisfactionRatingsGetResult:
1843
+ ) -> SatisfactionRating:
1844
1844
  """
1845
1845
  Returns a satisfaction rating by its ID
1846
1846
 
@@ -1849,7 +1849,7 @@ class SatisfactionRatingsQuery:
1849
1849
  **kwargs: Additional parameters
1850
1850
 
1851
1851
  Returns:
1852
- SatisfactionRatingsGetResult
1852
+ SatisfactionRating
1853
1853
  """
1854
1854
  params = {k: v for k, v in {
1855
1855
  "satisfaction_rating_id": satisfaction_rating_id,
@@ -1857,9 +1857,7 @@ class SatisfactionRatingsQuery:
1857
1857
  }.items() if v is not None}
1858
1858
 
1859
1859
  result = await self._connector.execute("satisfaction_ratings", "get", params)
1860
- # Cast generic envelope to concrete typed result
1861
- return SatisfactionRatingsGetResult(
1862
- data=result.data )
1860
+ return result
1863
1861
 
1864
1862
 
1865
1863
 
@@ -1896,7 +1894,8 @@ class GroupMembershipsQuery:
1896
1894
  # Cast generic envelope to concrete typed result
1897
1895
  return GroupMembershipsListResult(
1898
1896
  data=result.data,
1899
- meta=result.meta )
1897
+ meta=result.meta
1898
+ )
1900
1899
 
1901
1900
 
1902
1901
 
@@ -1933,7 +1932,8 @@ class OrganizationMembershipsQuery:
1933
1932
  # Cast generic envelope to concrete typed result
1934
1933
  return OrganizationMembershipsListResult(
1935
1934
  data=result.data,
1936
- meta=result.meta )
1935
+ meta=result.meta
1936
+ )
1937
1937
 
1938
1938
 
1939
1939
 
@@ -1970,7 +1970,8 @@ class SlaPoliciesQuery:
1970
1970
  # Cast generic envelope to concrete typed result
1971
1971
  return SlaPoliciesListResult(
1972
1972
  data=result.data,
1973
- meta=result.meta )
1973
+ meta=result.meta
1974
+ )
1974
1975
 
1975
1976
 
1976
1977
 
@@ -1978,7 +1979,7 @@ class SlaPoliciesQuery:
1978
1979
  self,
1979
1980
  sla_policy_id: str,
1980
1981
  **kwargs
1981
- ) -> SlaPoliciesGetResult:
1982
+ ) -> SLAPolicy:
1982
1983
  """
1983
1984
  Returns an SLA policy by its ID
1984
1985
 
@@ -1987,7 +1988,7 @@ class SlaPoliciesQuery:
1987
1988
  **kwargs: Additional parameters
1988
1989
 
1989
1990
  Returns:
1990
- SlaPoliciesGetResult
1991
+ SLAPolicy
1991
1992
  """
1992
1993
  params = {k: v for k, v in {
1993
1994
  "sla_policy_id": sla_policy_id,
@@ -1995,9 +1996,7 @@ class SlaPoliciesQuery:
1995
1996
  }.items() if v is not None}
1996
1997
 
1997
1998
  result = await self._connector.execute("sla_policies", "get", params)
1998
- # Cast generic envelope to concrete typed result
1999
- return SlaPoliciesGetResult(
2000
- data=result.data )
1999
+ return result
2001
2000
 
2002
2001
 
2003
2002
 
@@ -2040,7 +2039,8 @@ class TicketFormsQuery:
2040
2039
  # Cast generic envelope to concrete typed result
2041
2040
  return TicketFormsListResult(
2042
2041
  data=result.data,
2043
- meta=result.meta )
2042
+ meta=result.meta
2043
+ )
2044
2044
 
2045
2045
 
2046
2046
 
@@ -2048,7 +2048,7 @@ class TicketFormsQuery:
2048
2048
  self,
2049
2049
  ticket_form_id: str,
2050
2050
  **kwargs
2051
- ) -> TicketFormsGetResult:
2051
+ ) -> TicketForm:
2052
2052
  """
2053
2053
  Returns a ticket form by its ID
2054
2054
 
@@ -2057,7 +2057,7 @@ class TicketFormsQuery:
2057
2057
  **kwargs: Additional parameters
2058
2058
 
2059
2059
  Returns:
2060
- TicketFormsGetResult
2060
+ TicketForm
2061
2061
  """
2062
2062
  params = {k: v for k, v in {
2063
2063
  "ticket_form_id": ticket_form_id,
@@ -2065,9 +2065,7 @@ class TicketFormsQuery:
2065
2065
  }.items() if v is not None}
2066
2066
 
2067
2067
  result = await self._connector.execute("ticket_forms", "get", params)
2068
- # Cast generic envelope to concrete typed result
2069
- return TicketFormsGetResult(
2070
- data=result.data )
2068
+ return result
2071
2069
 
2072
2070
 
2073
2071
 
@@ -2110,7 +2108,8 @@ class ArticlesQuery:
2110
2108
  # Cast generic envelope to concrete typed result
2111
2109
  return ArticlesListResult(
2112
2110
  data=result.data,
2113
- meta=result.meta )
2111
+ meta=result.meta
2112
+ )
2114
2113
 
2115
2114
 
2116
2115
 
@@ -2118,7 +2117,7 @@ class ArticlesQuery:
2118
2117
  self,
2119
2118
  id: str | None = None,
2120
2119
  **kwargs
2121
- ) -> ArticlesGetResult:
2120
+ ) -> Article:
2122
2121
  """
2123
2122
  Retrieves the details of a specific article
2124
2123
 
@@ -2127,7 +2126,7 @@ class ArticlesQuery:
2127
2126
  **kwargs: Additional parameters
2128
2127
 
2129
2128
  Returns:
2130
- ArticlesGetResult
2129
+ Article
2131
2130
  """
2132
2131
  params = {k: v for k, v in {
2133
2132
  "id": id,
@@ -2135,9 +2134,7 @@ class ArticlesQuery:
2135
2134
  }.items() if v is not None}
2136
2135
 
2137
2136
  result = await self._connector.execute("articles", "get", params)
2138
- # Cast generic envelope to concrete typed result
2139
- return ArticlesGetResult(
2140
- data=result.data )
2137
+ return result
2141
2138
 
2142
2139
 
2143
2140
 
@@ -2177,7 +2174,8 @@ class ArticleAttachmentsQuery:
2177
2174
  # Cast generic envelope to concrete typed result
2178
2175
  return ArticleAttachmentsListResult(
2179
2176
  data=result.data,
2180
- meta=result.meta )
2177
+ meta=result.meta
2178
+ )
2181
2179
 
2182
2180
 
2183
2181
 
@@ -2186,7 +2184,7 @@ class ArticleAttachmentsQuery:
2186
2184
  article_id: str,
2187
2185
  attachment_id: str,
2188
2186
  **kwargs
2189
- ) -> ArticleAttachmentsGetResult:
2187
+ ) -> ArticleAttachment:
2190
2188
  """
2191
2189
  Retrieves the metadata of a specific attachment for a specific article
2192
2190
 
@@ -2196,7 +2194,7 @@ class ArticleAttachmentsQuery:
2196
2194
  **kwargs: Additional parameters
2197
2195
 
2198
2196
  Returns:
2199
- ArticleAttachmentsGetResult
2197
+ ArticleAttachment
2200
2198
  """
2201
2199
  params = {k: v for k, v in {
2202
2200
  "article_id": article_id,
@@ -2205,9 +2203,7 @@ class ArticleAttachmentsQuery:
2205
2203
  }.items() if v is not None}
2206
2204
 
2207
2205
  result = await self._connector.execute("article_attachments", "get", params)
2208
- # Cast generic envelope to concrete typed result
2209
- return ArticleAttachmentsGetResult(
2210
- data=result.data )
2206
+ return result
2211
2207
 
2212
2208
 
2213
2209