graphlit-client 1.0.20250622004__py3-none-any.whl → 1.0.20250627001__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.
Files changed (41) hide show
  1. graphlit_api/__init__.py +700 -0
  2. graphlit_api/client.py +297 -0
  3. graphlit_api/count_connectors.py +21 -0
  4. graphlit_api/count_views.py +19 -0
  5. graphlit_api/create_connector.py +25 -0
  6. graphlit_api/create_view.py +316 -0
  7. graphlit_api/create_workflow.py +6 -0
  8. graphlit_api/delete_connector.py +23 -0
  9. graphlit_api/delete_view.py +21 -0
  10. graphlit_api/enums.py +903 -818
  11. graphlit_api/get_connector.py +88 -0
  12. graphlit_api/get_content.py +62 -0
  13. graphlit_api/get_feed.py +60 -1
  14. graphlit_api/get_user.py +5 -0
  15. graphlit_api/get_user_by_identifier.py +7 -0
  16. graphlit_api/get_view.py +321 -0
  17. graphlit_api/get_workflow.py +6 -0
  18. graphlit_api/input_types.py +2902 -2632
  19. graphlit_api/lookup_contents.py +66 -0
  20. graphlit_api/operations.py +1209 -0
  21. graphlit_api/query_box_folders.py +25 -0
  22. graphlit_api/query_connectors.py +93 -0
  23. graphlit_api/query_contents.py +63 -0
  24. graphlit_api/query_contents_observations.py +67 -0
  25. graphlit_api/query_dropbox_folders.py +27 -0
  26. graphlit_api/query_feeds.py +60 -1
  27. graphlit_api/query_google_calendars.py +27 -0
  28. graphlit_api/query_google_drive_folders.py +29 -0
  29. graphlit_api/query_microsoft_calendars.py +29 -0
  30. graphlit_api/query_users.py +5 -0
  31. graphlit_api/query_views.py +330 -0
  32. graphlit_api/query_workflows.py +6 -0
  33. graphlit_api/update_connector.py +25 -0
  34. graphlit_api/update_view.py +316 -0
  35. graphlit_api/update_workflow.py +6 -0
  36. graphlit_api/upsert_workflow.py +6 -0
  37. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/METADATA +1 -1
  38. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/RECORD +41 -24
  39. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/WHEEL +0 -0
  40. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/licenses/LICENSE +0 -0
  41. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/top_level.txt +0 -0
graphlit_api/client.py CHANGED
@@ -15,6 +15,7 @@ from .continue_conversation import ContinueConversation
15
15
  from .count_alerts import CountAlerts
16
16
  from .count_categories import CountCategories
17
17
  from .count_collections import CountCollections
18
+ from .count_connectors import CountConnectors
18
19
  from .count_contents import CountContents
19
20
  from .count_conversations import CountConversations
20
21
  from .count_events import CountEvents
@@ -39,10 +40,12 @@ from .count_repos import CountRepos
39
40
  from .count_softwares import CountSoftwares
40
41
  from .count_specifications import CountSpecifications
41
42
  from .count_users import CountUsers
43
+ from .count_views import CountViews
42
44
  from .count_workflows import CountWorkflows
43
45
  from .create_alert import CreateAlert
44
46
  from .create_category import CreateCategory
45
47
  from .create_collection import CreateCollection
48
+ from .create_connector import CreateConnector
46
49
  from .create_conversation import CreateConversation
47
50
  from .create_event import CreateEvent
48
51
  from .create_feed import CreateFeed
@@ -67,6 +70,7 @@ from .create_repo import CreateRepo
67
70
  from .create_software import CreateSoftware
68
71
  from .create_specification import CreateSpecification
69
72
  from .create_user import CreateUser
73
+ from .create_view import CreateView
70
74
  from .create_workflow import CreateWorkflow
71
75
  from .delete_alert import DeleteAlert
72
76
  from .delete_alerts import DeleteAlerts
@@ -101,6 +105,7 @@ from .delete_categories import DeleteCategories
101
105
  from .delete_category import DeleteCategory
102
106
  from .delete_collection import DeleteCollection
103
107
  from .delete_collections import DeleteCollections
108
+ from .delete_connector import DeleteConnector
104
109
  from .delete_content import DeleteContent
105
110
  from .delete_contents import DeleteContents
106
111
  from .delete_conversation import DeleteConversation
@@ -149,6 +154,7 @@ from .delete_softwares import DeleteSoftwares
149
154
  from .delete_specification import DeleteSpecification
150
155
  from .delete_specifications import DeleteSpecifications
151
156
  from .delete_user import DeleteUser
157
+ from .delete_view import DeleteView
152
158
  from .delete_workflow import DeleteWorkflow
153
159
  from .delete_workflows import DeleteWorkflows
154
160
  from .describe_encoded_image import DescribeEncodedImage
@@ -167,6 +173,7 @@ from .format_conversation import FormatConversation
167
173
  from .get_alert import GetAlert
168
174
  from .get_category import GetCategory
169
175
  from .get_collection import GetCollection
176
+ from .get_connector import GetConnector
170
177
  from .get_content import GetContent
171
178
  from .get_conversation import GetConversation
172
179
  from .get_event import GetEvent
@@ -194,6 +201,7 @@ from .get_software import GetSoftware
194
201
  from .get_specification import GetSpecification
195
202
  from .get_user import GetUser
196
203
  from .get_user_by_identifier import GetUserByIdentifier
204
+ from .get_view import GetView
197
205
  from .get_workflow import GetWorkflow
198
206
  from .ingest_batch import IngestBatch
199
207
  from .ingest_encoded_file import IngestEncodedFile
@@ -206,12 +214,16 @@ from .input_types import (
206
214
  AlertFilter,
207
215
  AlertInput,
208
216
  AlertUpdateInput,
217
+ BoxFoldersInput,
209
218
  CategoryFilter,
210
219
  CategoryInput,
211
220
  CategoryUpdateInput,
212
221
  CollectionFilter,
213
222
  CollectionInput,
214
223
  CollectionUpdateInput,
224
+ ConnectorFilter,
225
+ ConnectorInput,
226
+ ConnectorUpdateInput,
215
227
  ContentFacetInput,
216
228
  ContentFilter,
217
229
  ContentGraphInput,
@@ -222,6 +234,7 @@ from .input_types import (
222
234
  ConversationMessageInput,
223
235
  ConversationToolResponseInput,
224
236
  ConversationUpdateInput,
237
+ DropboxFoldersInput,
225
238
  EntityReferenceInput,
226
239
  EventFilter,
227
240
  EventInput,
@@ -229,6 +242,8 @@ from .input_types import (
229
242
  FeedFilter,
230
243
  FeedInput,
231
244
  FeedUpdateInput,
245
+ GoogleCalendarsInput,
246
+ GoogleDriveFoldersInput,
232
247
  IntegrationConnectorInput,
233
248
  LabelFilter,
234
249
  LabelInput,
@@ -267,6 +282,7 @@ from .input_types import (
267
282
  MedicalTherapyFilter,
268
283
  MedicalTherapyInput,
269
284
  MedicalTherapyUpdateInput,
285
+ MicrosoftCalendarsInput,
270
286
  MicrosoftTeamsChannelsInput,
271
287
  MicrosoftTeamsTeamsInput,
272
288
  ModelFilter,
@@ -309,6 +325,9 @@ from .input_types import (
309
325
  UserFilter,
310
326
  UserInput,
311
327
  UserUpdateInput,
328
+ ViewFilter,
329
+ ViewInput,
330
+ ViewUpdateInput,
312
331
  WorkflowFilter,
313
332
  WorkflowInput,
314
333
  WorkflowUpdateInput,
@@ -330,6 +349,7 @@ from .operations import (
330
349
  COUNT_ALERTS_GQL,
331
350
  COUNT_CATEGORIES_GQL,
332
351
  COUNT_COLLECTIONS_GQL,
352
+ COUNT_CONNECTORS_GQL,
333
353
  COUNT_CONTENTS_GQL,
334
354
  COUNT_CONVERSATIONS_GQL,
335
355
  COUNT_EVENTS_GQL,
@@ -354,10 +374,12 @@ from .operations import (
354
374
  COUNT_SOFTWARES_GQL,
355
375
  COUNT_SPECIFICATIONS_GQL,
356
376
  COUNT_USERS_GQL,
377
+ COUNT_VIEWS_GQL,
357
378
  COUNT_WORKFLOWS_GQL,
358
379
  CREATE_ALERT_GQL,
359
380
  CREATE_CATEGORY_GQL,
360
381
  CREATE_COLLECTION_GQL,
382
+ CREATE_CONNECTOR_GQL,
361
383
  CREATE_CONVERSATION_GQL,
362
384
  CREATE_EVENT_GQL,
363
385
  CREATE_FEED_GQL,
@@ -382,6 +404,7 @@ from .operations import (
382
404
  CREATE_SOFTWARE_GQL,
383
405
  CREATE_SPECIFICATION_GQL,
384
406
  CREATE_USER_GQL,
407
+ CREATE_VIEW_GQL,
385
408
  CREATE_WORKFLOW_GQL,
386
409
  DELETE_ALERT_GQL,
387
410
  DELETE_ALERTS_GQL,
@@ -416,6 +439,7 @@ from .operations import (
416
439
  DELETE_CATEGORY_GQL,
417
440
  DELETE_COLLECTION_GQL,
418
441
  DELETE_COLLECTIONS_GQL,
442
+ DELETE_CONNECTOR_GQL,
419
443
  DELETE_CONTENT_GQL,
420
444
  DELETE_CONTENTS_GQL,
421
445
  DELETE_CONVERSATION_GQL,
@@ -464,6 +488,7 @@ from .operations import (
464
488
  DELETE_SPECIFICATION_GQL,
465
489
  DELETE_SPECIFICATIONS_GQL,
466
490
  DELETE_USER_GQL,
491
+ DELETE_VIEW_GQL,
467
492
  DELETE_WORKFLOW_GQL,
468
493
  DELETE_WORKFLOWS_GQL,
469
494
  DESCRIBE_ENCODED_IMAGE_GQL,
@@ -481,6 +506,7 @@ from .operations import (
481
506
  GET_ALERT_GQL,
482
507
  GET_CATEGORY_GQL,
483
508
  GET_COLLECTION_GQL,
509
+ GET_CONNECTOR_GQL,
484
510
  GET_CONTENT_GQL,
485
511
  GET_CONVERSATION_GQL,
486
512
  GET_EVENT_GQL,
@@ -508,6 +534,7 @@ from .operations import (
508
534
  GET_SPECIFICATION_GQL,
509
535
  GET_USER_BY_IDENTIFIER_GQL,
510
536
  GET_USER_GQL,
537
+ GET_VIEW_GQL,
511
538
  GET_WORKFLOW_GQL,
512
539
  INGEST_BATCH_GQL,
513
540
  INGEST_ENCODED_FILE_GQL,
@@ -529,16 +556,21 @@ from .operations import (
529
556
  PUBLISH_CONVERSATION_GQL,
530
557
  PUBLISH_TEXT_GQL,
531
558
  QUERY_ALERTS_GQL,
559
+ QUERY_BOX_FOLDERS_GQL,
532
560
  QUERY_CATEGORIES_GQL,
533
561
  QUERY_COLLECTIONS_GQL,
562
+ QUERY_CONNECTORS_GQL,
534
563
  QUERY_CONTENTS_FACETS_GQL,
535
564
  QUERY_CONTENTS_GQL,
536
565
  QUERY_CONTENTS_GRAPH_GQL,
537
566
  QUERY_CONTENTS_OBSERVATIONS_GQL,
538
567
  QUERY_CONVERSATIONS_GQL,
539
568
  QUERY_CREDITS_GQL,
569
+ QUERY_DROPBOX_FOLDERS_GQL,
540
570
  QUERY_EVENTS_GQL,
541
571
  QUERY_FEEDS_GQL,
572
+ QUERY_GOOGLE_CALENDARS_GQL,
573
+ QUERY_GOOGLE_DRIVE_FOLDERS_GQL,
542
574
  QUERY_LABELS_GQL,
543
575
  QUERY_LINEAR_PROJECTS_GQL,
544
576
  QUERY_MEDICAL_CONDITIONS_GQL,
@@ -552,6 +584,7 @@ from .operations import (
552
584
  QUERY_MEDICAL_STUDIES_GQL,
553
585
  QUERY_MEDICAL_TESTS_GQL,
554
586
  QUERY_MEDICAL_THERAPIES_GQL,
587
+ QUERY_MICROSOFT_CALENDARS_GQL,
555
588
  QUERY_MICROSOFT_TEAMS_CHANNELS_GQL,
556
589
  QUERY_MICROSOFT_TEAMS_TEAMS_GQL,
557
590
  QUERY_MODELS_GQL,
@@ -571,6 +604,7 @@ from .operations import (
571
604
  QUERY_TOKENS_GQL,
572
605
  QUERY_USAGE_GQL,
573
606
  QUERY_USERS_GQL,
607
+ QUERY_VIEWS_GQL,
574
608
  QUERY_WORKFLOWS_GQL,
575
609
  REMOVE_CONTENTS_FROM_COLLECTION_GQL,
576
610
  RETRIEVE_SOURCES_GQL,
@@ -588,6 +622,7 @@ from .operations import (
588
622
  UPDATE_ALERT_GQL,
589
623
  UPDATE_CATEGORY_GQL,
590
624
  UPDATE_COLLECTION_GQL,
625
+ UPDATE_CONNECTOR_GQL,
591
626
  UPDATE_CONTENT_GQL,
592
627
  UPDATE_CONVERSATION_GQL,
593
628
  UPDATE_EVENT_GQL,
@@ -614,6 +649,7 @@ from .operations import (
614
649
  UPDATE_SOFTWARE_GQL,
615
650
  UPDATE_SPECIFICATION_GQL,
616
651
  UPDATE_USER_GQL,
652
+ UPDATE_VIEW_GQL,
617
653
  UPDATE_WORKFLOW_GQL,
618
654
  UPSERT_CATEGORY_GQL,
619
655
  UPSERT_LABEL_GQL,
@@ -628,16 +664,21 @@ from .publish_contents import PublishContents
628
664
  from .publish_conversation import PublishConversation
629
665
  from .publish_text import PublishText
630
666
  from .query_alerts import QueryAlerts
667
+ from .query_box_folders import QueryBoxFolders
631
668
  from .query_categories import QueryCategories
632
669
  from .query_collections import QueryCollections
670
+ from .query_connectors import QueryConnectors
633
671
  from .query_contents import QueryContents
634
672
  from .query_contents_facets import QueryContentsFacets
635
673
  from .query_contents_graph import QueryContentsGraph
636
674
  from .query_contents_observations import QueryContentsObservations
637
675
  from .query_conversations import QueryConversations
638
676
  from .query_credits import QueryCredits
677
+ from .query_dropbox_folders import QueryDropboxFolders
639
678
  from .query_events import QueryEvents
640
679
  from .query_feeds import QueryFeeds
680
+ from .query_google_calendars import QueryGoogleCalendars
681
+ from .query_google_drive_folders import QueryGoogleDriveFolders
641
682
  from .query_labels import QueryLabels
642
683
  from .query_linear_projects import QueryLinearProjects
643
684
  from .query_medical_conditions import QueryMedicalConditions
@@ -651,6 +692,7 @@ from .query_medical_procedures import QueryMedicalProcedures
651
692
  from .query_medical_studies import QueryMedicalStudies
652
693
  from .query_medical_tests import QueryMedicalTests
653
694
  from .query_medical_therapies import QueryMedicalTherapies
695
+ from .query_microsoft_calendars import QueryMicrosoftCalendars
654
696
  from .query_microsoft_teams_channels import QueryMicrosoftTeamsChannels
655
697
  from .query_microsoft_teams_teams import QueryMicrosoftTeamsTeams
656
698
  from .query_models import QueryModels
@@ -670,6 +712,7 @@ from .query_specifications import QuerySpecifications
670
712
  from .query_tokens import QueryTokens
671
713
  from .query_usage import QueryUsage
672
714
  from .query_users import QueryUsers
715
+ from .query_views import QueryViews
673
716
  from .query_workflows import QueryWorkflows
674
717
  from .remove_contents_from_collection import RemoveContentsFromCollection
675
718
  from .retrieve_sources import RetrieveSources
@@ -687,6 +730,7 @@ from .summarize_text import SummarizeText
687
730
  from .update_alert import UpdateAlert
688
731
  from .update_category import UpdateCategory
689
732
  from .update_collection import UpdateCollection
733
+ from .update_connector import UpdateConnector
690
734
  from .update_content import UpdateContent
691
735
  from .update_conversation import UpdateConversation
692
736
  from .update_event import UpdateEvent
@@ -713,6 +757,7 @@ from .update_repo import UpdateRepo
713
757
  from .update_software import UpdateSoftware
714
758
  from .update_specification import UpdateSpecification
715
759
  from .update_user import UpdateUser
760
+ from .update_view import UpdateView
716
761
  from .update_workflow import UpdateWorkflow
717
762
  from .upsert_category import UpsertCategory
718
763
  from .upsert_label import UpsertLabel
@@ -1181,6 +1226,97 @@ class Client(AsyncBaseClient):
1181
1226
  data = self.get_data(response)
1182
1227
  return UpdateCollection.model_validate(data)
1183
1228
 
1229
+ async def count_connectors(
1230
+ self,
1231
+ filter: Union[Optional[ConnectorFilter], UnsetType] = UNSET,
1232
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
1233
+ **kwargs: Any
1234
+ ) -> CountConnectors:
1235
+ variables: Dict[str, object] = {
1236
+ "filter": filter,
1237
+ "correlationId": correlation_id,
1238
+ }
1239
+ response = await self.execute(
1240
+ query=COUNT_CONNECTORS_GQL,
1241
+ operation_name="CountConnectors",
1242
+ variables=variables,
1243
+ **kwargs
1244
+ )
1245
+ data = self.get_data(response)
1246
+ return CountConnectors.model_validate(data)
1247
+
1248
+ async def create_connector(
1249
+ self, connector: ConnectorInput, **kwargs: Any
1250
+ ) -> CreateConnector:
1251
+ variables: Dict[str, object] = {"connector": connector}
1252
+ response = await self.execute(
1253
+ query=CREATE_CONNECTOR_GQL,
1254
+ operation_name="CreateConnector",
1255
+ variables=variables,
1256
+ **kwargs
1257
+ )
1258
+ data = self.get_data(response)
1259
+ return CreateConnector.model_validate(data)
1260
+
1261
+ async def delete_connector(self, id: str, **kwargs: Any) -> DeleteConnector:
1262
+ variables: Dict[str, object] = {"id": id}
1263
+ response = await self.execute(
1264
+ query=DELETE_CONNECTOR_GQL,
1265
+ operation_name="DeleteConnector",
1266
+ variables=variables,
1267
+ **kwargs
1268
+ )
1269
+ data = self.get_data(response)
1270
+ return DeleteConnector.model_validate(data)
1271
+
1272
+ async def get_connector(
1273
+ self,
1274
+ id: str,
1275
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
1276
+ **kwargs: Any
1277
+ ) -> GetConnector:
1278
+ variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
1279
+ response = await self.execute(
1280
+ query=GET_CONNECTOR_GQL,
1281
+ operation_name="GetConnector",
1282
+ variables=variables,
1283
+ **kwargs
1284
+ )
1285
+ data = self.get_data(response)
1286
+ return GetConnector.model_validate(data)
1287
+
1288
+ async def query_connectors(
1289
+ self,
1290
+ filter: Union[Optional[ConnectorFilter], UnsetType] = UNSET,
1291
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
1292
+ **kwargs: Any
1293
+ ) -> QueryConnectors:
1294
+ variables: Dict[str, object] = {
1295
+ "filter": filter,
1296
+ "correlationId": correlation_id,
1297
+ }
1298
+ response = await self.execute(
1299
+ query=QUERY_CONNECTORS_GQL,
1300
+ operation_name="QueryConnectors",
1301
+ variables=variables,
1302
+ **kwargs
1303
+ )
1304
+ data = self.get_data(response)
1305
+ return QueryConnectors.model_validate(data)
1306
+
1307
+ async def update_connector(
1308
+ self, connector: ConnectorUpdateInput, **kwargs: Any
1309
+ ) -> UpdateConnector:
1310
+ variables: Dict[str, object] = {"connector": connector}
1311
+ response = await self.execute(
1312
+ query=UPDATE_CONNECTOR_GQL,
1313
+ operation_name="UpdateConnector",
1314
+ variables=variables,
1315
+ **kwargs
1316
+ )
1317
+ data = self.get_data(response)
1318
+ return UpdateConnector.model_validate(data)
1319
+
1184
1320
  async def count_contents(
1185
1321
  self,
1186
1322
  filter: Union[Optional[ContentFilter], UnsetType] = UNSET,
@@ -2636,6 +2772,41 @@ class Client(AsyncBaseClient):
2636
2772
  data = self.get_data(response)
2637
2773
  return IsFeedDone.model_validate(data)
2638
2774
 
2775
+ async def query_box_folders(
2776
+ self,
2777
+ properties: BoxFoldersInput,
2778
+ folder_id: Union[Optional[str], UnsetType] = UNSET,
2779
+ **kwargs: Any
2780
+ ) -> QueryBoxFolders:
2781
+ variables: Dict[str, object] = {"properties": properties, "folderId": folder_id}
2782
+ response = await self.execute(
2783
+ query=QUERY_BOX_FOLDERS_GQL,
2784
+ operation_name="QueryBoxFolders",
2785
+ variables=variables,
2786
+ **kwargs
2787
+ )
2788
+ data = self.get_data(response)
2789
+ return QueryBoxFolders.model_validate(data)
2790
+
2791
+ async def query_dropbox_folders(
2792
+ self,
2793
+ properties: DropboxFoldersInput,
2794
+ folder_path: Union[Optional[str], UnsetType] = UNSET,
2795
+ **kwargs: Any
2796
+ ) -> QueryDropboxFolders:
2797
+ variables: Dict[str, object] = {
2798
+ "properties": properties,
2799
+ "folderPath": folder_path,
2800
+ }
2801
+ response = await self.execute(
2802
+ query=QUERY_DROPBOX_FOLDERS_GQL,
2803
+ operation_name="QueryDropboxFolders",
2804
+ variables=variables,
2805
+ **kwargs
2806
+ )
2807
+ data = self.get_data(response)
2808
+ return QueryDropboxFolders.model_validate(data)
2809
+
2639
2810
  async def query_feeds(
2640
2811
  self,
2641
2812
  filter: Union[Optional[FeedFilter], UnsetType] = UNSET,
@@ -2655,6 +2826,35 @@ class Client(AsyncBaseClient):
2655
2826
  data = self.get_data(response)
2656
2827
  return QueryFeeds.model_validate(data)
2657
2828
 
2829
+ async def query_google_calendars(
2830
+ self, properties: GoogleCalendarsInput, **kwargs: Any
2831
+ ) -> QueryGoogleCalendars:
2832
+ variables: Dict[str, object] = {"properties": properties}
2833
+ response = await self.execute(
2834
+ query=QUERY_GOOGLE_CALENDARS_GQL,
2835
+ operation_name="QueryGoogleCalendars",
2836
+ variables=variables,
2837
+ **kwargs
2838
+ )
2839
+ data = self.get_data(response)
2840
+ return QueryGoogleCalendars.model_validate(data)
2841
+
2842
+ async def query_google_drive_folders(
2843
+ self,
2844
+ properties: GoogleDriveFoldersInput,
2845
+ folder_id: Union[Optional[str], UnsetType] = UNSET,
2846
+ **kwargs: Any
2847
+ ) -> QueryGoogleDriveFolders:
2848
+ variables: Dict[str, object] = {"properties": properties, "folderId": folder_id}
2849
+ response = await self.execute(
2850
+ query=QUERY_GOOGLE_DRIVE_FOLDERS_GQL,
2851
+ operation_name="QueryGoogleDriveFolders",
2852
+ variables=variables,
2853
+ **kwargs
2854
+ )
2855
+ data = self.get_data(response)
2856
+ return QueryGoogleDriveFolders.model_validate(data)
2857
+
2658
2858
  async def query_linear_projects(
2659
2859
  self, properties: LinearProjectsInput, **kwargs: Any
2660
2860
  ) -> QueryLinearProjects:
@@ -2668,6 +2868,19 @@ class Client(AsyncBaseClient):
2668
2868
  data = self.get_data(response)
2669
2869
  return QueryLinearProjects.model_validate(data)
2670
2870
 
2871
+ async def query_microsoft_calendars(
2872
+ self, properties: MicrosoftCalendarsInput, **kwargs: Any
2873
+ ) -> QueryMicrosoftCalendars:
2874
+ variables: Dict[str, object] = {"properties": properties}
2875
+ response = await self.execute(
2876
+ query=QUERY_MICROSOFT_CALENDARS_GQL,
2877
+ operation_name="QueryMicrosoftCalendars",
2878
+ variables=variables,
2879
+ **kwargs
2880
+ )
2881
+ data = self.get_data(response)
2882
+ return QueryMicrosoftCalendars.model_validate(data)
2883
+
2671
2884
  async def query_microsoft_teams_channels(
2672
2885
  self, properties: MicrosoftTeamsChannelsInput, team_id: str, **kwargs: Any
2673
2886
  ) -> QueryMicrosoftTeamsChannels:
@@ -5633,6 +5846,90 @@ class Client(AsyncBaseClient):
5633
5846
  data = self.get_data(response)
5634
5847
  return UpdateUser.model_validate(data)
5635
5848
 
5849
+ async def count_views(
5850
+ self,
5851
+ filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
5852
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
5853
+ **kwargs: Any
5854
+ ) -> CountViews:
5855
+ variables: Dict[str, object] = {
5856
+ "filter": filter,
5857
+ "correlationId": correlation_id,
5858
+ }
5859
+ response = await self.execute(
5860
+ query=COUNT_VIEWS_GQL,
5861
+ operation_name="CountViews",
5862
+ variables=variables,
5863
+ **kwargs
5864
+ )
5865
+ data = self.get_data(response)
5866
+ return CountViews.model_validate(data)
5867
+
5868
+ async def create_view(self, view: ViewInput, **kwargs: Any) -> CreateView:
5869
+ variables: Dict[str, object] = {"view": view}
5870
+ response = await self.execute(
5871
+ query=CREATE_VIEW_GQL,
5872
+ operation_name="CreateView",
5873
+ variables=variables,
5874
+ **kwargs
5875
+ )
5876
+ data = self.get_data(response)
5877
+ return CreateView.model_validate(data)
5878
+
5879
+ async def delete_view(self, id: str, **kwargs: Any) -> DeleteView:
5880
+ variables: Dict[str, object] = {"id": id}
5881
+ response = await self.execute(
5882
+ query=DELETE_VIEW_GQL,
5883
+ operation_name="DeleteView",
5884
+ variables=variables,
5885
+ **kwargs
5886
+ )
5887
+ data = self.get_data(response)
5888
+ return DeleteView.model_validate(data)
5889
+
5890
+ async def get_view(
5891
+ self,
5892
+ id: str,
5893
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
5894
+ **kwargs: Any
5895
+ ) -> GetView:
5896
+ variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
5897
+ response = await self.execute(
5898
+ query=GET_VIEW_GQL, operation_name="GetView", variables=variables, **kwargs
5899
+ )
5900
+ data = self.get_data(response)
5901
+ return GetView.model_validate(data)
5902
+
5903
+ async def query_views(
5904
+ self,
5905
+ filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
5906
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
5907
+ **kwargs: Any
5908
+ ) -> QueryViews:
5909
+ variables: Dict[str, object] = {
5910
+ "filter": filter,
5911
+ "correlationId": correlation_id,
5912
+ }
5913
+ response = await self.execute(
5914
+ query=QUERY_VIEWS_GQL,
5915
+ operation_name="QueryViews",
5916
+ variables=variables,
5917
+ **kwargs
5918
+ )
5919
+ data = self.get_data(response)
5920
+ return QueryViews.model_validate(data)
5921
+
5922
+ async def update_view(self, view: ViewUpdateInput, **kwargs: Any) -> UpdateView:
5923
+ variables: Dict[str, object] = {"view": view}
5924
+ response = await self.execute(
5925
+ query=UPDATE_VIEW_GQL,
5926
+ operation_name="UpdateView",
5927
+ variables=variables,
5928
+ **kwargs
5929
+ )
5930
+ data = self.get_data(response)
5931
+ return UpdateView.model_validate(data)
5932
+
5636
5933
  async def count_workflows(
5637
5934
  self,
5638
5935
  filter: Union[Optional[WorkflowFilter], UnsetType] = UNSET,
@@ -0,0 +1,21 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+
10
+
11
+ class CountConnectors(BaseModel):
12
+ count_connectors: Optional["CountConnectorsCountConnectors"] = Field(
13
+ alias="countConnectors"
14
+ )
15
+
16
+
17
+ class CountConnectorsCountConnectors(BaseModel):
18
+ count: Optional[Any]
19
+
20
+
21
+ CountConnectors.model_rebuild()
@@ -0,0 +1,19 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+
10
+
11
+ class CountViews(BaseModel):
12
+ count_views: Optional["CountViewsCountViews"] = Field(alias="countViews")
13
+
14
+
15
+ class CountViewsCountViews(BaseModel):
16
+ count: Optional[Any]
17
+
18
+
19
+ CountViews.model_rebuild()
@@ -0,0 +1,25 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import ConnectorTypes, EntityState
10
+
11
+
12
+ class CreateConnector(BaseModel):
13
+ create_connector: Optional["CreateConnectorCreateConnector"] = Field(
14
+ alias="createConnector"
15
+ )
16
+
17
+
18
+ class CreateConnectorCreateConnector(BaseModel):
19
+ id: str
20
+ name: str
21
+ state: EntityState
22
+ type: Optional[ConnectorTypes]
23
+
24
+
25
+ CreateConnector.model_rebuild()