graphlit-client 1.0.20250625001__py3-none-any.whl → 1.0.20250627002__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.
- graphlit_api/__init__.py +571 -0
- graphlit_api/client.py +267 -0
- graphlit_api/count_connectors.py +21 -0
- graphlit_api/count_views.py +19 -0
- graphlit_api/create_connector.py +25 -0
- graphlit_api/create_view.py +316 -0
- graphlit_api/create_workflow.py +6 -0
- graphlit_api/delete_all_views.py +23 -0
- graphlit_api/delete_connector.py +23 -0
- graphlit_api/delete_view.py +21 -0
- graphlit_api/delete_views.py +23 -0
- graphlit_api/enums.py +46 -0
- graphlit_api/get_connector.py +88 -0
- graphlit_api/get_feed.py +32 -1
- graphlit_api/get_user.py +5 -0
- graphlit_api/get_user_by_identifier.py +7 -0
- graphlit_api/get_view.py +321 -0
- graphlit_api/get_workflow.py +6 -0
- graphlit_api/input_types.py +143 -21
- graphlit_api/operations.py +970 -0
- graphlit_api/query_connectors.py +93 -0
- graphlit_api/query_feeds.py +32 -1
- graphlit_api/query_users.py +5 -0
- graphlit_api/query_views.py +330 -0
- graphlit_api/query_workflows.py +6 -0
- graphlit_api/update_connector.py +25 -0
- graphlit_api/update_view.py +316 -0
- graphlit_api/update_workflow.py +6 -0
- graphlit_api/upsert_workflow.py +6 -0
- graphlit_api/view_exists.py +19 -0
- {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627002.dist-info}/METADATA +1 -1
- {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627002.dist-info}/RECORD +35 -20
- {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627002.dist-info}/WHEEL +0 -0
- {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627002.dist-info}/licenses/LICENSE +0 -0
- {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627002.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
|
@@ -96,11 +100,13 @@ from .delete_all_products import DeleteAllProducts
|
|
96
100
|
from .delete_all_repos import DeleteAllRepos
|
97
101
|
from .delete_all_softwares import DeleteAllSoftwares
|
98
102
|
from .delete_all_specifications import DeleteAllSpecifications
|
103
|
+
from .delete_all_views import DeleteAllViews
|
99
104
|
from .delete_all_workflows import DeleteAllWorkflows
|
100
105
|
from .delete_categories import DeleteCategories
|
101
106
|
from .delete_category import DeleteCategory
|
102
107
|
from .delete_collection import DeleteCollection
|
103
108
|
from .delete_collections import DeleteCollections
|
109
|
+
from .delete_connector import DeleteConnector
|
104
110
|
from .delete_content import DeleteContent
|
105
111
|
from .delete_contents import DeleteContents
|
106
112
|
from .delete_conversation import DeleteConversation
|
@@ -149,6 +155,8 @@ from .delete_softwares import DeleteSoftwares
|
|
149
155
|
from .delete_specification import DeleteSpecification
|
150
156
|
from .delete_specifications import DeleteSpecifications
|
151
157
|
from .delete_user import DeleteUser
|
158
|
+
from .delete_view import DeleteView
|
159
|
+
from .delete_views import DeleteViews
|
152
160
|
from .delete_workflow import DeleteWorkflow
|
153
161
|
from .delete_workflows import DeleteWorkflows
|
154
162
|
from .describe_encoded_image import DescribeEncodedImage
|
@@ -167,6 +175,7 @@ from .format_conversation import FormatConversation
|
|
167
175
|
from .get_alert import GetAlert
|
168
176
|
from .get_category import GetCategory
|
169
177
|
from .get_collection import GetCollection
|
178
|
+
from .get_connector import GetConnector
|
170
179
|
from .get_content import GetContent
|
171
180
|
from .get_conversation import GetConversation
|
172
181
|
from .get_event import GetEvent
|
@@ -194,6 +203,7 @@ from .get_software import GetSoftware
|
|
194
203
|
from .get_specification import GetSpecification
|
195
204
|
from .get_user import GetUser
|
196
205
|
from .get_user_by_identifier import GetUserByIdentifier
|
206
|
+
from .get_view import GetView
|
197
207
|
from .get_workflow import GetWorkflow
|
198
208
|
from .ingest_batch import IngestBatch
|
199
209
|
from .ingest_encoded_file import IngestEncodedFile
|
@@ -213,6 +223,9 @@ from .input_types import (
|
|
213
223
|
CollectionFilter,
|
214
224
|
CollectionInput,
|
215
225
|
CollectionUpdateInput,
|
226
|
+
ConnectorFilter,
|
227
|
+
ConnectorInput,
|
228
|
+
ConnectorUpdateInput,
|
216
229
|
ContentFacetInput,
|
217
230
|
ContentFilter,
|
218
231
|
ContentGraphInput,
|
@@ -314,6 +327,9 @@ from .input_types import (
|
|
314
327
|
UserFilter,
|
315
328
|
UserInput,
|
316
329
|
UserUpdateInput,
|
330
|
+
ViewFilter,
|
331
|
+
ViewInput,
|
332
|
+
ViewUpdateInput,
|
317
333
|
WorkflowFilter,
|
318
334
|
WorkflowInput,
|
319
335
|
WorkflowUpdateInput,
|
@@ -335,6 +351,7 @@ from .operations import (
|
|
335
351
|
COUNT_ALERTS_GQL,
|
336
352
|
COUNT_CATEGORIES_GQL,
|
337
353
|
COUNT_COLLECTIONS_GQL,
|
354
|
+
COUNT_CONNECTORS_GQL,
|
338
355
|
COUNT_CONTENTS_GQL,
|
339
356
|
COUNT_CONVERSATIONS_GQL,
|
340
357
|
COUNT_EVENTS_GQL,
|
@@ -359,10 +376,12 @@ from .operations import (
|
|
359
376
|
COUNT_SOFTWARES_GQL,
|
360
377
|
COUNT_SPECIFICATIONS_GQL,
|
361
378
|
COUNT_USERS_GQL,
|
379
|
+
COUNT_VIEWS_GQL,
|
362
380
|
COUNT_WORKFLOWS_GQL,
|
363
381
|
CREATE_ALERT_GQL,
|
364
382
|
CREATE_CATEGORY_GQL,
|
365
383
|
CREATE_COLLECTION_GQL,
|
384
|
+
CREATE_CONNECTOR_GQL,
|
366
385
|
CREATE_CONVERSATION_GQL,
|
367
386
|
CREATE_EVENT_GQL,
|
368
387
|
CREATE_FEED_GQL,
|
@@ -387,6 +406,7 @@ from .operations import (
|
|
387
406
|
CREATE_SOFTWARE_GQL,
|
388
407
|
CREATE_SPECIFICATION_GQL,
|
389
408
|
CREATE_USER_GQL,
|
409
|
+
CREATE_VIEW_GQL,
|
390
410
|
CREATE_WORKFLOW_GQL,
|
391
411
|
DELETE_ALERT_GQL,
|
392
412
|
DELETE_ALERTS_GQL,
|
@@ -416,11 +436,13 @@ from .operations import (
|
|
416
436
|
DELETE_ALL_REPOS_GQL,
|
417
437
|
DELETE_ALL_SOFTWARES_GQL,
|
418
438
|
DELETE_ALL_SPECIFICATIONS_GQL,
|
439
|
+
DELETE_ALL_VIEWS_GQL,
|
419
440
|
DELETE_ALL_WORKFLOWS_GQL,
|
420
441
|
DELETE_CATEGORIES_GQL,
|
421
442
|
DELETE_CATEGORY_GQL,
|
422
443
|
DELETE_COLLECTION_GQL,
|
423
444
|
DELETE_COLLECTIONS_GQL,
|
445
|
+
DELETE_CONNECTOR_GQL,
|
424
446
|
DELETE_CONTENT_GQL,
|
425
447
|
DELETE_CONTENTS_GQL,
|
426
448
|
DELETE_CONVERSATION_GQL,
|
@@ -469,6 +491,8 @@ from .operations import (
|
|
469
491
|
DELETE_SPECIFICATION_GQL,
|
470
492
|
DELETE_SPECIFICATIONS_GQL,
|
471
493
|
DELETE_USER_GQL,
|
494
|
+
DELETE_VIEW_GQL,
|
495
|
+
DELETE_VIEWS_GQL,
|
472
496
|
DELETE_WORKFLOW_GQL,
|
473
497
|
DELETE_WORKFLOWS_GQL,
|
474
498
|
DESCRIBE_ENCODED_IMAGE_GQL,
|
@@ -486,6 +510,7 @@ from .operations import (
|
|
486
510
|
GET_ALERT_GQL,
|
487
511
|
GET_CATEGORY_GQL,
|
488
512
|
GET_COLLECTION_GQL,
|
513
|
+
GET_CONNECTOR_GQL,
|
489
514
|
GET_CONTENT_GQL,
|
490
515
|
GET_CONVERSATION_GQL,
|
491
516
|
GET_EVENT_GQL,
|
@@ -513,6 +538,7 @@ from .operations import (
|
|
513
538
|
GET_SPECIFICATION_GQL,
|
514
539
|
GET_USER_BY_IDENTIFIER_GQL,
|
515
540
|
GET_USER_GQL,
|
541
|
+
GET_VIEW_GQL,
|
516
542
|
GET_WORKFLOW_GQL,
|
517
543
|
INGEST_BATCH_GQL,
|
518
544
|
INGEST_ENCODED_FILE_GQL,
|
@@ -537,6 +563,7 @@ from .operations import (
|
|
537
563
|
QUERY_BOX_FOLDERS_GQL,
|
538
564
|
QUERY_CATEGORIES_GQL,
|
539
565
|
QUERY_COLLECTIONS_GQL,
|
566
|
+
QUERY_CONNECTORS_GQL,
|
540
567
|
QUERY_CONTENTS_FACETS_GQL,
|
541
568
|
QUERY_CONTENTS_GQL,
|
542
569
|
QUERY_CONTENTS_GRAPH_GQL,
|
@@ -581,6 +608,7 @@ from .operations import (
|
|
581
608
|
QUERY_TOKENS_GQL,
|
582
609
|
QUERY_USAGE_GQL,
|
583
610
|
QUERY_USERS_GQL,
|
611
|
+
QUERY_VIEWS_GQL,
|
584
612
|
QUERY_WORKFLOWS_GQL,
|
585
613
|
REMOVE_CONTENTS_FROM_COLLECTION_GQL,
|
586
614
|
RETRIEVE_SOURCES_GQL,
|
@@ -598,6 +626,7 @@ from .operations import (
|
|
598
626
|
UPDATE_ALERT_GQL,
|
599
627
|
UPDATE_CATEGORY_GQL,
|
600
628
|
UPDATE_COLLECTION_GQL,
|
629
|
+
UPDATE_CONNECTOR_GQL,
|
601
630
|
UPDATE_CONTENT_GQL,
|
602
631
|
UPDATE_CONVERSATION_GQL,
|
603
632
|
UPDATE_EVENT_GQL,
|
@@ -624,11 +653,13 @@ from .operations import (
|
|
624
653
|
UPDATE_SOFTWARE_GQL,
|
625
654
|
UPDATE_SPECIFICATION_GQL,
|
626
655
|
UPDATE_USER_GQL,
|
656
|
+
UPDATE_VIEW_GQL,
|
627
657
|
UPDATE_WORKFLOW_GQL,
|
628
658
|
UPSERT_CATEGORY_GQL,
|
629
659
|
UPSERT_LABEL_GQL,
|
630
660
|
UPSERT_SPECIFICATION_GQL,
|
631
661
|
UPSERT_WORKFLOW_GQL,
|
662
|
+
VIEW_EXISTS_GQL,
|
632
663
|
WORKFLOW_EXISTS_GQL,
|
633
664
|
)
|
634
665
|
from .prompt import Prompt
|
@@ -641,6 +672,7 @@ from .query_alerts import QueryAlerts
|
|
641
672
|
from .query_box_folders import QueryBoxFolders
|
642
673
|
from .query_categories import QueryCategories
|
643
674
|
from .query_collections import QueryCollections
|
675
|
+
from .query_connectors import QueryConnectors
|
644
676
|
from .query_contents import QueryContents
|
645
677
|
from .query_contents_facets import QueryContentsFacets
|
646
678
|
from .query_contents_graph import QueryContentsGraph
|
@@ -685,6 +717,7 @@ from .query_specifications import QuerySpecifications
|
|
685
717
|
from .query_tokens import QueryTokens
|
686
718
|
from .query_usage import QueryUsage
|
687
719
|
from .query_users import QueryUsers
|
720
|
+
from .query_views import QueryViews
|
688
721
|
from .query_workflows import QueryWorkflows
|
689
722
|
from .remove_contents_from_collection import RemoveContentsFromCollection
|
690
723
|
from .retrieve_sources import RetrieveSources
|
@@ -702,6 +735,7 @@ from .summarize_text import SummarizeText
|
|
702
735
|
from .update_alert import UpdateAlert
|
703
736
|
from .update_category import UpdateCategory
|
704
737
|
from .update_collection import UpdateCollection
|
738
|
+
from .update_connector import UpdateConnector
|
705
739
|
from .update_content import UpdateContent
|
706
740
|
from .update_conversation import UpdateConversation
|
707
741
|
from .update_event import UpdateEvent
|
@@ -728,11 +762,13 @@ from .update_repo import UpdateRepo
|
|
728
762
|
from .update_software import UpdateSoftware
|
729
763
|
from .update_specification import UpdateSpecification
|
730
764
|
from .update_user import UpdateUser
|
765
|
+
from .update_view import UpdateView
|
731
766
|
from .update_workflow import UpdateWorkflow
|
732
767
|
from .upsert_category import UpsertCategory
|
733
768
|
from .upsert_label import UpsertLabel
|
734
769
|
from .upsert_specification import UpsertSpecification
|
735
770
|
from .upsert_workflow import UpsertWorkflow
|
771
|
+
from .view_exists import ViewExists
|
736
772
|
from .workflow_exists import WorkflowExists
|
737
773
|
|
738
774
|
|
@@ -1196,6 +1232,97 @@ class Client(AsyncBaseClient):
|
|
1196
1232
|
data = self.get_data(response)
|
1197
1233
|
return UpdateCollection.model_validate(data)
|
1198
1234
|
|
1235
|
+
async def count_connectors(
|
1236
|
+
self,
|
1237
|
+
filter: Union[Optional[ConnectorFilter], UnsetType] = UNSET,
|
1238
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
1239
|
+
**kwargs: Any
|
1240
|
+
) -> CountConnectors:
|
1241
|
+
variables: Dict[str, object] = {
|
1242
|
+
"filter": filter,
|
1243
|
+
"correlationId": correlation_id,
|
1244
|
+
}
|
1245
|
+
response = await self.execute(
|
1246
|
+
query=COUNT_CONNECTORS_GQL,
|
1247
|
+
operation_name="CountConnectors",
|
1248
|
+
variables=variables,
|
1249
|
+
**kwargs
|
1250
|
+
)
|
1251
|
+
data = self.get_data(response)
|
1252
|
+
return CountConnectors.model_validate(data)
|
1253
|
+
|
1254
|
+
async def create_connector(
|
1255
|
+
self, connector: ConnectorInput, **kwargs: Any
|
1256
|
+
) -> CreateConnector:
|
1257
|
+
variables: Dict[str, object] = {"connector": connector}
|
1258
|
+
response = await self.execute(
|
1259
|
+
query=CREATE_CONNECTOR_GQL,
|
1260
|
+
operation_name="CreateConnector",
|
1261
|
+
variables=variables,
|
1262
|
+
**kwargs
|
1263
|
+
)
|
1264
|
+
data = self.get_data(response)
|
1265
|
+
return CreateConnector.model_validate(data)
|
1266
|
+
|
1267
|
+
async def delete_connector(self, id: str, **kwargs: Any) -> DeleteConnector:
|
1268
|
+
variables: Dict[str, object] = {"id": id}
|
1269
|
+
response = await self.execute(
|
1270
|
+
query=DELETE_CONNECTOR_GQL,
|
1271
|
+
operation_name="DeleteConnector",
|
1272
|
+
variables=variables,
|
1273
|
+
**kwargs
|
1274
|
+
)
|
1275
|
+
data = self.get_data(response)
|
1276
|
+
return DeleteConnector.model_validate(data)
|
1277
|
+
|
1278
|
+
async def get_connector(
|
1279
|
+
self,
|
1280
|
+
id: str,
|
1281
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
1282
|
+
**kwargs: Any
|
1283
|
+
) -> GetConnector:
|
1284
|
+
variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
|
1285
|
+
response = await self.execute(
|
1286
|
+
query=GET_CONNECTOR_GQL,
|
1287
|
+
operation_name="GetConnector",
|
1288
|
+
variables=variables,
|
1289
|
+
**kwargs
|
1290
|
+
)
|
1291
|
+
data = self.get_data(response)
|
1292
|
+
return GetConnector.model_validate(data)
|
1293
|
+
|
1294
|
+
async def query_connectors(
|
1295
|
+
self,
|
1296
|
+
filter: Union[Optional[ConnectorFilter], UnsetType] = UNSET,
|
1297
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
1298
|
+
**kwargs: Any
|
1299
|
+
) -> QueryConnectors:
|
1300
|
+
variables: Dict[str, object] = {
|
1301
|
+
"filter": filter,
|
1302
|
+
"correlationId": correlation_id,
|
1303
|
+
}
|
1304
|
+
response = await self.execute(
|
1305
|
+
query=QUERY_CONNECTORS_GQL,
|
1306
|
+
operation_name="QueryConnectors",
|
1307
|
+
variables=variables,
|
1308
|
+
**kwargs
|
1309
|
+
)
|
1310
|
+
data = self.get_data(response)
|
1311
|
+
return QueryConnectors.model_validate(data)
|
1312
|
+
|
1313
|
+
async def update_connector(
|
1314
|
+
self, connector: ConnectorUpdateInput, **kwargs: Any
|
1315
|
+
) -> UpdateConnector:
|
1316
|
+
variables: Dict[str, object] = {"connector": connector}
|
1317
|
+
response = await self.execute(
|
1318
|
+
query=UPDATE_CONNECTOR_GQL,
|
1319
|
+
operation_name="UpdateConnector",
|
1320
|
+
variables=variables,
|
1321
|
+
**kwargs
|
1322
|
+
)
|
1323
|
+
data = self.get_data(response)
|
1324
|
+
return UpdateConnector.model_validate(data)
|
1325
|
+
|
1199
1326
|
async def count_contents(
|
1200
1327
|
self,
|
1201
1328
|
filter: Union[Optional[ContentFilter], UnsetType] = UNSET,
|
@@ -5725,6 +5852,146 @@ class Client(AsyncBaseClient):
|
|
5725
5852
|
data = self.get_data(response)
|
5726
5853
|
return UpdateUser.model_validate(data)
|
5727
5854
|
|
5855
|
+
async def count_views(
|
5856
|
+
self,
|
5857
|
+
filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
|
5858
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
5859
|
+
**kwargs: Any
|
5860
|
+
) -> CountViews:
|
5861
|
+
variables: Dict[str, object] = {
|
5862
|
+
"filter": filter,
|
5863
|
+
"correlationId": correlation_id,
|
5864
|
+
}
|
5865
|
+
response = await self.execute(
|
5866
|
+
query=COUNT_VIEWS_GQL,
|
5867
|
+
operation_name="CountViews",
|
5868
|
+
variables=variables,
|
5869
|
+
**kwargs
|
5870
|
+
)
|
5871
|
+
data = self.get_data(response)
|
5872
|
+
return CountViews.model_validate(data)
|
5873
|
+
|
5874
|
+
async def create_view(self, view: ViewInput, **kwargs: Any) -> CreateView:
|
5875
|
+
variables: Dict[str, object] = {"view": view}
|
5876
|
+
response = await self.execute(
|
5877
|
+
query=CREATE_VIEW_GQL,
|
5878
|
+
operation_name="CreateView",
|
5879
|
+
variables=variables,
|
5880
|
+
**kwargs
|
5881
|
+
)
|
5882
|
+
data = self.get_data(response)
|
5883
|
+
return CreateView.model_validate(data)
|
5884
|
+
|
5885
|
+
async def delete_all_views(
|
5886
|
+
self,
|
5887
|
+
filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
|
5888
|
+
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
|
5889
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
5890
|
+
**kwargs: Any
|
5891
|
+
) -> DeleteAllViews:
|
5892
|
+
variables: Dict[str, object] = {
|
5893
|
+
"filter": filter,
|
5894
|
+
"isSynchronous": is_synchronous,
|
5895
|
+
"correlationId": correlation_id,
|
5896
|
+
}
|
5897
|
+
response = await self.execute(
|
5898
|
+
query=DELETE_ALL_VIEWS_GQL,
|
5899
|
+
operation_name="DeleteAllViews",
|
5900
|
+
variables=variables,
|
5901
|
+
**kwargs
|
5902
|
+
)
|
5903
|
+
data = self.get_data(response)
|
5904
|
+
return DeleteAllViews.model_validate(data)
|
5905
|
+
|
5906
|
+
async def delete_view(self, id: str, **kwargs: Any) -> DeleteView:
|
5907
|
+
variables: Dict[str, object] = {"id": id}
|
5908
|
+
response = await self.execute(
|
5909
|
+
query=DELETE_VIEW_GQL,
|
5910
|
+
operation_name="DeleteView",
|
5911
|
+
variables=variables,
|
5912
|
+
**kwargs
|
5913
|
+
)
|
5914
|
+
data = self.get_data(response)
|
5915
|
+
return DeleteView.model_validate(data)
|
5916
|
+
|
5917
|
+
async def delete_views(
|
5918
|
+
self,
|
5919
|
+
ids: List[str],
|
5920
|
+
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
|
5921
|
+
**kwargs: Any
|
5922
|
+
) -> DeleteViews:
|
5923
|
+
variables: Dict[str, object] = {"ids": ids, "isSynchronous": is_synchronous}
|
5924
|
+
response = await self.execute(
|
5925
|
+
query=DELETE_VIEWS_GQL,
|
5926
|
+
operation_name="DeleteViews",
|
5927
|
+
variables=variables,
|
5928
|
+
**kwargs
|
5929
|
+
)
|
5930
|
+
data = self.get_data(response)
|
5931
|
+
return DeleteViews.model_validate(data)
|
5932
|
+
|
5933
|
+
async def get_view(
|
5934
|
+
self,
|
5935
|
+
id: str,
|
5936
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
5937
|
+
**kwargs: Any
|
5938
|
+
) -> GetView:
|
5939
|
+
variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
|
5940
|
+
response = await self.execute(
|
5941
|
+
query=GET_VIEW_GQL, operation_name="GetView", variables=variables, **kwargs
|
5942
|
+
)
|
5943
|
+
data = self.get_data(response)
|
5944
|
+
return GetView.model_validate(data)
|
5945
|
+
|
5946
|
+
async def query_views(
|
5947
|
+
self,
|
5948
|
+
filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
|
5949
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
5950
|
+
**kwargs: Any
|
5951
|
+
) -> QueryViews:
|
5952
|
+
variables: Dict[str, object] = {
|
5953
|
+
"filter": filter,
|
5954
|
+
"correlationId": correlation_id,
|
5955
|
+
}
|
5956
|
+
response = await self.execute(
|
5957
|
+
query=QUERY_VIEWS_GQL,
|
5958
|
+
operation_name="QueryViews",
|
5959
|
+
variables=variables,
|
5960
|
+
**kwargs
|
5961
|
+
)
|
5962
|
+
data = self.get_data(response)
|
5963
|
+
return QueryViews.model_validate(data)
|
5964
|
+
|
5965
|
+
async def update_view(self, view: ViewUpdateInput, **kwargs: Any) -> UpdateView:
|
5966
|
+
variables: Dict[str, object] = {"view": view}
|
5967
|
+
response = await self.execute(
|
5968
|
+
query=UPDATE_VIEW_GQL,
|
5969
|
+
operation_name="UpdateView",
|
5970
|
+
variables=variables,
|
5971
|
+
**kwargs
|
5972
|
+
)
|
5973
|
+
data = self.get_data(response)
|
5974
|
+
return UpdateView.model_validate(data)
|
5975
|
+
|
5976
|
+
async def view_exists(
|
5977
|
+
self,
|
5978
|
+
filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
|
5979
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
5980
|
+
**kwargs: Any
|
5981
|
+
) -> ViewExists:
|
5982
|
+
variables: Dict[str, object] = {
|
5983
|
+
"filter": filter,
|
5984
|
+
"correlationId": correlation_id,
|
5985
|
+
}
|
5986
|
+
response = await self.execute(
|
5987
|
+
query=VIEW_EXISTS_GQL,
|
5988
|
+
operation_name="ViewExists",
|
5989
|
+
variables=variables,
|
5990
|
+
**kwargs
|
5991
|
+
)
|
5992
|
+
data = self.get_data(response)
|
5993
|
+
return ViewExists.model_validate(data)
|
5994
|
+
|
5728
5995
|
async def count_workflows(
|
5729
5996
|
self,
|
5730
5997
|
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()
|