graphlit-client 1.0.20250625001__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 (32) hide show
  1. graphlit_api/__init__.py +556 -0
  2. graphlit_api/client.py +205 -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 +46 -0
  11. graphlit_api/get_connector.py +88 -0
  12. graphlit_api/get_feed.py +32 -1
  13. graphlit_api/get_user.py +5 -0
  14. graphlit_api/get_user_by_identifier.py +7 -0
  15. graphlit_api/get_view.py +321 -0
  16. graphlit_api/get_workflow.py +6 -0
  17. graphlit_api/input_types.py +143 -21
  18. graphlit_api/operations.py +937 -0
  19. graphlit_api/query_connectors.py +93 -0
  20. graphlit_api/query_feeds.py +32 -1
  21. graphlit_api/query_users.py +5 -0
  22. graphlit_api/query_views.py +330 -0
  23. graphlit_api/query_workflows.py +6 -0
  24. graphlit_api/update_connector.py +25 -0
  25. graphlit_api/update_view.py +316 -0
  26. graphlit_api/update_workflow.py +6 -0
  27. graphlit_api/upsert_workflow.py +6 -0
  28. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/METADATA +1 -1
  29. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/RECORD +32 -20
  30. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/WHEEL +0 -0
  31. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/licenses/LICENSE +0 -0
  32. {graphlit_client-1.0.20250625001.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
@@ -213,6 +221,9 @@ from .input_types import (
213
221
  CollectionFilter,
214
222
  CollectionInput,
215
223
  CollectionUpdateInput,
224
+ ConnectorFilter,
225
+ ConnectorInput,
226
+ ConnectorUpdateInput,
216
227
  ContentFacetInput,
217
228
  ContentFilter,
218
229
  ContentGraphInput,
@@ -314,6 +325,9 @@ from .input_types import (
314
325
  UserFilter,
315
326
  UserInput,
316
327
  UserUpdateInput,
328
+ ViewFilter,
329
+ ViewInput,
330
+ ViewUpdateInput,
317
331
  WorkflowFilter,
318
332
  WorkflowInput,
319
333
  WorkflowUpdateInput,
@@ -335,6 +349,7 @@ from .operations import (
335
349
  COUNT_ALERTS_GQL,
336
350
  COUNT_CATEGORIES_GQL,
337
351
  COUNT_COLLECTIONS_GQL,
352
+ COUNT_CONNECTORS_GQL,
338
353
  COUNT_CONTENTS_GQL,
339
354
  COUNT_CONVERSATIONS_GQL,
340
355
  COUNT_EVENTS_GQL,
@@ -359,10 +374,12 @@ from .operations import (
359
374
  COUNT_SOFTWARES_GQL,
360
375
  COUNT_SPECIFICATIONS_GQL,
361
376
  COUNT_USERS_GQL,
377
+ COUNT_VIEWS_GQL,
362
378
  COUNT_WORKFLOWS_GQL,
363
379
  CREATE_ALERT_GQL,
364
380
  CREATE_CATEGORY_GQL,
365
381
  CREATE_COLLECTION_GQL,
382
+ CREATE_CONNECTOR_GQL,
366
383
  CREATE_CONVERSATION_GQL,
367
384
  CREATE_EVENT_GQL,
368
385
  CREATE_FEED_GQL,
@@ -387,6 +404,7 @@ from .operations import (
387
404
  CREATE_SOFTWARE_GQL,
388
405
  CREATE_SPECIFICATION_GQL,
389
406
  CREATE_USER_GQL,
407
+ CREATE_VIEW_GQL,
390
408
  CREATE_WORKFLOW_GQL,
391
409
  DELETE_ALERT_GQL,
392
410
  DELETE_ALERTS_GQL,
@@ -421,6 +439,7 @@ from .operations import (
421
439
  DELETE_CATEGORY_GQL,
422
440
  DELETE_COLLECTION_GQL,
423
441
  DELETE_COLLECTIONS_GQL,
442
+ DELETE_CONNECTOR_GQL,
424
443
  DELETE_CONTENT_GQL,
425
444
  DELETE_CONTENTS_GQL,
426
445
  DELETE_CONVERSATION_GQL,
@@ -469,6 +488,7 @@ from .operations import (
469
488
  DELETE_SPECIFICATION_GQL,
470
489
  DELETE_SPECIFICATIONS_GQL,
471
490
  DELETE_USER_GQL,
491
+ DELETE_VIEW_GQL,
472
492
  DELETE_WORKFLOW_GQL,
473
493
  DELETE_WORKFLOWS_GQL,
474
494
  DESCRIBE_ENCODED_IMAGE_GQL,
@@ -486,6 +506,7 @@ from .operations import (
486
506
  GET_ALERT_GQL,
487
507
  GET_CATEGORY_GQL,
488
508
  GET_COLLECTION_GQL,
509
+ GET_CONNECTOR_GQL,
489
510
  GET_CONTENT_GQL,
490
511
  GET_CONVERSATION_GQL,
491
512
  GET_EVENT_GQL,
@@ -513,6 +534,7 @@ from .operations import (
513
534
  GET_SPECIFICATION_GQL,
514
535
  GET_USER_BY_IDENTIFIER_GQL,
515
536
  GET_USER_GQL,
537
+ GET_VIEW_GQL,
516
538
  GET_WORKFLOW_GQL,
517
539
  INGEST_BATCH_GQL,
518
540
  INGEST_ENCODED_FILE_GQL,
@@ -537,6 +559,7 @@ from .operations import (
537
559
  QUERY_BOX_FOLDERS_GQL,
538
560
  QUERY_CATEGORIES_GQL,
539
561
  QUERY_COLLECTIONS_GQL,
562
+ QUERY_CONNECTORS_GQL,
540
563
  QUERY_CONTENTS_FACETS_GQL,
541
564
  QUERY_CONTENTS_GQL,
542
565
  QUERY_CONTENTS_GRAPH_GQL,
@@ -581,6 +604,7 @@ from .operations import (
581
604
  QUERY_TOKENS_GQL,
582
605
  QUERY_USAGE_GQL,
583
606
  QUERY_USERS_GQL,
607
+ QUERY_VIEWS_GQL,
584
608
  QUERY_WORKFLOWS_GQL,
585
609
  REMOVE_CONTENTS_FROM_COLLECTION_GQL,
586
610
  RETRIEVE_SOURCES_GQL,
@@ -598,6 +622,7 @@ from .operations import (
598
622
  UPDATE_ALERT_GQL,
599
623
  UPDATE_CATEGORY_GQL,
600
624
  UPDATE_COLLECTION_GQL,
625
+ UPDATE_CONNECTOR_GQL,
601
626
  UPDATE_CONTENT_GQL,
602
627
  UPDATE_CONVERSATION_GQL,
603
628
  UPDATE_EVENT_GQL,
@@ -624,6 +649,7 @@ from .operations import (
624
649
  UPDATE_SOFTWARE_GQL,
625
650
  UPDATE_SPECIFICATION_GQL,
626
651
  UPDATE_USER_GQL,
652
+ UPDATE_VIEW_GQL,
627
653
  UPDATE_WORKFLOW_GQL,
628
654
  UPSERT_CATEGORY_GQL,
629
655
  UPSERT_LABEL_GQL,
@@ -641,6 +667,7 @@ from .query_alerts import QueryAlerts
641
667
  from .query_box_folders import QueryBoxFolders
642
668
  from .query_categories import QueryCategories
643
669
  from .query_collections import QueryCollections
670
+ from .query_connectors import QueryConnectors
644
671
  from .query_contents import QueryContents
645
672
  from .query_contents_facets import QueryContentsFacets
646
673
  from .query_contents_graph import QueryContentsGraph
@@ -685,6 +712,7 @@ from .query_specifications import QuerySpecifications
685
712
  from .query_tokens import QueryTokens
686
713
  from .query_usage import QueryUsage
687
714
  from .query_users import QueryUsers
715
+ from .query_views import QueryViews
688
716
  from .query_workflows import QueryWorkflows
689
717
  from .remove_contents_from_collection import RemoveContentsFromCollection
690
718
  from .retrieve_sources import RetrieveSources
@@ -702,6 +730,7 @@ from .summarize_text import SummarizeText
702
730
  from .update_alert import UpdateAlert
703
731
  from .update_category import UpdateCategory
704
732
  from .update_collection import UpdateCollection
733
+ from .update_connector import UpdateConnector
705
734
  from .update_content import UpdateContent
706
735
  from .update_conversation import UpdateConversation
707
736
  from .update_event import UpdateEvent
@@ -728,6 +757,7 @@ from .update_repo import UpdateRepo
728
757
  from .update_software import UpdateSoftware
729
758
  from .update_specification import UpdateSpecification
730
759
  from .update_user import UpdateUser
760
+ from .update_view import UpdateView
731
761
  from .update_workflow import UpdateWorkflow
732
762
  from .upsert_category import UpsertCategory
733
763
  from .upsert_label import UpsertLabel
@@ -1196,6 +1226,97 @@ class Client(AsyncBaseClient):
1196
1226
  data = self.get_data(response)
1197
1227
  return UpdateCollection.model_validate(data)
1198
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
+
1199
1320
  async def count_contents(
1200
1321
  self,
1201
1322
  filter: Union[Optional[ContentFilter], UnsetType] = UNSET,
@@ -5725,6 +5846,90 @@ class Client(AsyncBaseClient):
5725
5846
  data = self.get_data(response)
5726
5847
  return UpdateUser.model_validate(data)
5727
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
+
5728
5933
  async def count_workflows(
5729
5934
  self,
5730
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()