-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclient.py
5635 lines (5336 loc) · 196 KB
/
client.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Generated by ariadne-codegen
# Source: ./documents
from typing import Any, Dict, List, Optional, Union
from .add_contents_to_collections import AddContentsToCollections
from .ask_graphlit import AskGraphlit
from .async_base_client import AsyncBaseClient
from .base_model import UNSET, UnsetType
from .clear_conversation import ClearConversation
from .close_conversation import CloseConversation
from .complete_conversation import CompleteConversation
from .continue_conversation import ContinueConversation
from .count_alerts import CountAlerts
from .count_categories import CountCategories
from .count_collections import CountCollections
from .count_contents import CountContents
from .count_conversations import CountConversations
from .count_events import CountEvents
from .count_feeds import CountFeeds
from .count_labels import CountLabels
from .count_medical_conditions import CountMedicalConditions
from .count_medical_contraindications import CountMedicalContraindications
from .count_medical_devices import CountMedicalDevices
from .count_medical_drug_classes import CountMedicalDrugClasses
from .count_medical_drugs import CountMedicalDrugs
from .count_medical_guidelines import CountMedicalGuidelines
from .count_medical_indications import CountMedicalIndications
from .count_medical_procedures import CountMedicalProcedures
from .count_medical_studies import CountMedicalStudies
from .count_medical_tests import CountMedicalTests
from .count_medical_therapies import CountMedicalTherapies
from .count_organizations import CountOrganizations
from .count_persons import CountPersons
from .count_places import CountPlaces
from .count_products import CountProducts
from .count_repos import CountRepos
from .count_softwares import CountSoftwares
from .count_specifications import CountSpecifications
from .count_users import CountUsers
from .count_workflows import CountWorkflows
from .create_alert import CreateAlert
from .create_category import CreateCategory
from .create_collection import CreateCollection
from .create_conversation import CreateConversation
from .create_event import CreateEvent
from .create_feed import CreateFeed
from .create_label import CreateLabel
from .create_medical_condition import CreateMedicalCondition
from .create_medical_contraindication import CreateMedicalContraindication
from .create_medical_device import CreateMedicalDevice
from .create_medical_drug import CreateMedicalDrug
from .create_medical_drug_class import CreateMedicalDrugClass
from .create_medical_guideline import CreateMedicalGuideline
from .create_medical_indication import CreateMedicalIndication
from .create_medical_procedure import CreateMedicalProcedure
from .create_medical_study import CreateMedicalStudy
from .create_medical_test import CreateMedicalTest
from .create_medical_therapy import CreateMedicalTherapy
from .create_observation import CreateObservation
from .create_organization import CreateOrganization
from .create_person import CreatePerson
from .create_place import CreatePlace
from .create_product import CreateProduct
from .create_repo import CreateRepo
from .create_software import CreateSoftware
from .create_specification import CreateSpecification
from .create_user import CreateUser
from .create_workflow import CreateWorkflow
from .delete_alert import DeleteAlert
from .delete_alerts import DeleteAlerts
from .delete_all_alerts import DeleteAllAlerts
from .delete_all_categories import DeleteAllCategories
from .delete_all_collections import DeleteAllCollections
from .delete_all_contents import DeleteAllContents
from .delete_all_conversations import DeleteAllConversations
from .delete_all_events import DeleteAllEvents
from .delete_all_feeds import DeleteAllFeeds
from .delete_all_labels import DeleteAllLabels
from .delete_all_medical_conditions import DeleteAllMedicalConditions
from .delete_all_medical_contraindications import DeleteAllMedicalContraindications
from .delete_all_medical_devices import DeleteAllMedicalDevices
from .delete_all_medical_drug_classes import DeleteAllMedicalDrugClasses
from .delete_all_medical_drugs import DeleteAllMedicalDrugs
from .delete_all_medical_guidelines import DeleteAllMedicalGuidelines
from .delete_all_medical_indications import DeleteAllMedicalIndications
from .delete_all_medical_procedures import DeleteAllMedicalProcedures
from .delete_all_medical_studies import DeleteAllMedicalStudies
from .delete_all_medical_tests import DeleteAllMedicalTests
from .delete_all_medical_therapies import DeleteAllMedicalTherapies
from .delete_all_organizations import DeleteAllOrganizations
from .delete_all_persons import DeleteAllPersons
from .delete_all_places import DeleteAllPlaces
from .delete_all_products import DeleteAllProducts
from .delete_all_repos import DeleteAllRepos
from .delete_all_softwares import DeleteAllSoftwares
from .delete_all_specifications import DeleteAllSpecifications
from .delete_all_workflows import DeleteAllWorkflows
from .delete_categories import DeleteCategories
from .delete_category import DeleteCategory
from .delete_collection import DeleteCollection
from .delete_collections import DeleteCollections
from .delete_content import DeleteContent
from .delete_contents import DeleteContents
from .delete_conversation import DeleteConversation
from .delete_conversations import DeleteConversations
from .delete_event import DeleteEvent
from .delete_events import DeleteEvents
from .delete_feed import DeleteFeed
from .delete_feeds import DeleteFeeds
from .delete_label import DeleteLabel
from .delete_labels import DeleteLabels
from .delete_medical_condition import DeleteMedicalCondition
from .delete_medical_conditions import DeleteMedicalConditions
from .delete_medical_contraindication import DeleteMedicalContraindication
from .delete_medical_contraindications import DeleteMedicalContraindications
from .delete_medical_device import DeleteMedicalDevice
from .delete_medical_devices import DeleteMedicalDevices
from .delete_medical_drug import DeleteMedicalDrug
from .delete_medical_drug_class import DeleteMedicalDrugClass
from .delete_medical_drug_classes import DeleteMedicalDrugClasses
from .delete_medical_drugs import DeleteMedicalDrugs
from .delete_medical_guideline import DeleteMedicalGuideline
from .delete_medical_guidelines import DeleteMedicalGuidelines
from .delete_medical_indication import DeleteMedicalIndication
from .delete_medical_indications import DeleteMedicalIndications
from .delete_medical_procedure import DeleteMedicalProcedure
from .delete_medical_procedures import DeleteMedicalProcedures
from .delete_medical_studies import DeleteMedicalStudies
from .delete_medical_study import DeleteMedicalStudy
from .delete_medical_test import DeleteMedicalTest
from .delete_medical_tests import DeleteMedicalTests
from .delete_medical_therapies import DeleteMedicalTherapies
from .delete_medical_therapy import DeleteMedicalTherapy
from .delete_observation import DeleteObservation
from .delete_organization import DeleteOrganization
from .delete_organizations import DeleteOrganizations
from .delete_person import DeletePerson
from .delete_persons import DeletePersons
from .delete_place import DeletePlace
from .delete_places import DeletePlaces
from .delete_product import DeleteProduct
from .delete_products import DeleteProducts
from .delete_repo import DeleteRepo
from .delete_repos import DeleteRepos
from .delete_software import DeleteSoftware
from .delete_softwares import DeleteSoftwares
from .delete_specification import DeleteSpecification
from .delete_specifications import DeleteSpecifications
from .delete_user import DeleteUser
from .delete_workflow import DeleteWorkflow
from .delete_workflows import DeleteWorkflows
from .describe_encoded_image import DescribeEncodedImage
from .describe_image import DescribeImage
from .disable_alert import DisableAlert
from .disable_feed import DisableFeed
from .disable_user import DisableUser
from .enable_alert import EnableAlert
from .enable_feed import EnableFeed
from .enable_user import EnableUser
from .enums import SdkTypes, SearchServiceTypes, TextTypes
from .extract_contents import ExtractContents
from .extract_text import ExtractText
from .feed_exists import FeedExists
from .format_conversation import FormatConversation
from .get_alert import GetAlert
from .get_category import GetCategory
from .get_collection import GetCollection
from .get_content import GetContent
from .get_conversation import GetConversation
from .get_event import GetEvent
from .get_feed import GetFeed
from .get_label import GetLabel
from .get_medical_condition import GetMedicalCondition
from .get_medical_contraindication import GetMedicalContraindication
from .get_medical_device import GetMedicalDevice
from .get_medical_drug import GetMedicalDrug
from .get_medical_drug_class import GetMedicalDrugClass
from .get_medical_guideline import GetMedicalGuideline
from .get_medical_indication import GetMedicalIndication
from .get_medical_procedure import GetMedicalProcedure
from .get_medical_study import GetMedicalStudy
from .get_medical_test import GetMedicalTest
from .get_medical_therapy import GetMedicalTherapy
from .get_organization import GetOrganization
from .get_person import GetPerson
from .get_place import GetPlace
from .get_product import GetProduct
from .get_project import GetProject
from .get_repo import GetRepo
from .get_share_point_consent_uri import GetSharePointConsentUri
from .get_software import GetSoftware
from .get_specification import GetSpecification
from .get_user import GetUser
from .get_workflow import GetWorkflow
from .ingest_batch import IngestBatch
from .ingest_encoded_file import IngestEncodedFile
from .ingest_memory import IngestMemory
from .ingest_text import IngestText
from .ingest_text_batch import IngestTextBatch
from .ingest_uri import IngestUri
from .input_types import (
AlertFilter,
AlertInput,
AlertUpdateInput,
CategoryFilter,
CategoryInput,
CategoryUpdateInput,
CollectionFilter,
CollectionInput,
CollectionUpdateInput,
ContentFacetInput,
ContentFilter,
ContentGraphInput,
ContentPublishingConnectorInput,
ContentUpdateInput,
ConversationFilter,
ConversationInput,
ConversationMessageInput,
ConversationToolResponseInput,
ConversationUpdateInput,
EntityReferenceInput,
EventFilter,
EventInput,
EventUpdateInput,
FeedFilter,
FeedInput,
FeedUpdateInput,
IntegrationConnectorInput,
LabelFilter,
LabelInput,
LabelUpdateInput,
LinearProjectsInput,
MedicalConditionFilter,
MedicalConditionInput,
MedicalConditionUpdateInput,
MedicalContraindicationFilter,
MedicalContraindicationInput,
MedicalContraindicationUpdateInput,
MedicalDeviceFilter,
MedicalDeviceInput,
MedicalDeviceUpdateInput,
MedicalDrugClassFilter,
MedicalDrugClassInput,
MedicalDrugClassUpdateInput,
MedicalDrugFilter,
MedicalDrugInput,
MedicalDrugUpdateInput,
MedicalGuidelineFilter,
MedicalGuidelineInput,
MedicalGuidelineUpdateInput,
MedicalIndicationFilter,
MedicalIndicationInput,
MedicalIndicationUpdateInput,
MedicalProcedureFilter,
MedicalProcedureInput,
MedicalProcedureUpdateInput,
MedicalStudyFilter,
MedicalStudyInput,
MedicalStudyUpdateInput,
MedicalTestFilter,
MedicalTestInput,
MedicalTestUpdateInput,
MedicalTherapyFilter,
MedicalTherapyInput,
MedicalTherapyUpdateInput,
MicrosoftTeamsChannelsInput,
MicrosoftTeamsTeamsInput,
ModelFilter,
NotionDatabasesInput,
NotionPagesInput,
ObservationInput,
ObservationReferenceInput,
ObservationUpdateInput,
OneDriveFoldersInput,
OrganizationFilter,
OrganizationInput,
OrganizationUpdateInput,
PersonFilter,
PersonInput,
PersonUpdateInput,
PlaceFilter,
PlaceInput,
PlaceUpdateInput,
ProductFilter,
ProductInput,
ProductUpdateInput,
ProjectUpdateInput,
RepoFilter,
RepoInput,
RepoUpdateInput,
RerankingStrategyInput,
RetrievalStrategyInput,
SharePointFoldersInput,
SharePointLibrariesInput,
SlackChannelsInput,
SoftwareFilter,
SoftwareInput,
SoftwareUpdateInput,
SpecificationFilter,
SpecificationInput,
SpecificationUpdateInput,
SummarizationStrategyInput,
TextContentInput,
ToolDefinitionInput,
UserFilter,
UserInput,
UserUpdateInput,
WorkflowFilter,
WorkflowInput,
WorkflowUpdateInput,
)
from .is_content_done import IsContentDone
from .is_feed_done import IsFeedDone
from .lookup_credits import LookupCredits
from .lookup_usage import LookupUsage
from .map_web import MapWeb
from .operations import (
ADD_CONTENTS_TO_COLLECTIONS_GQL,
ASK_GRAPHLIT_GQL,
CLEAR_CONVERSATION_GQL,
CLOSE_CONVERSATION_GQL,
COMPLETE_CONVERSATION_GQL,
CONTINUE_CONVERSATION_GQL,
COUNT_ALERTS_GQL,
COUNT_CATEGORIES_GQL,
COUNT_COLLECTIONS_GQL,
COUNT_CONTENTS_GQL,
COUNT_CONVERSATIONS_GQL,
COUNT_EVENTS_GQL,
COUNT_FEEDS_GQL,
COUNT_LABELS_GQL,
COUNT_MEDICAL_CONDITIONS_GQL,
COUNT_MEDICAL_CONTRAINDICATIONS_GQL,
COUNT_MEDICAL_DEVICES_GQL,
COUNT_MEDICAL_DRUG_CLASSES_GQL,
COUNT_MEDICAL_DRUGS_GQL,
COUNT_MEDICAL_GUIDELINES_GQL,
COUNT_MEDICAL_INDICATIONS_GQL,
COUNT_MEDICAL_PROCEDURES_GQL,
COUNT_MEDICAL_STUDIES_GQL,
COUNT_MEDICAL_TESTS_GQL,
COUNT_MEDICAL_THERAPIES_GQL,
COUNT_ORGANIZATIONS_GQL,
COUNT_PERSONS_GQL,
COUNT_PLACES_GQL,
COUNT_PRODUCTS_GQL,
COUNT_REPOS_GQL,
COUNT_SOFTWARES_GQL,
COUNT_SPECIFICATIONS_GQL,
COUNT_USERS_GQL,
COUNT_WORKFLOWS_GQL,
CREATE_ALERT_GQL,
CREATE_CATEGORY_GQL,
CREATE_COLLECTION_GQL,
CREATE_CONVERSATION_GQL,
CREATE_EVENT_GQL,
CREATE_FEED_GQL,
CREATE_LABEL_GQL,
CREATE_MEDICAL_CONDITION_GQL,
CREATE_MEDICAL_CONTRAINDICATION_GQL,
CREATE_MEDICAL_DEVICE_GQL,
CREATE_MEDICAL_DRUG_CLASS_GQL,
CREATE_MEDICAL_DRUG_GQL,
CREATE_MEDICAL_GUIDELINE_GQL,
CREATE_MEDICAL_INDICATION_GQL,
CREATE_MEDICAL_PROCEDURE_GQL,
CREATE_MEDICAL_STUDY_GQL,
CREATE_MEDICAL_TEST_GQL,
CREATE_MEDICAL_THERAPY_GQL,
CREATE_OBSERVATION_GQL,
CREATE_ORGANIZATION_GQL,
CREATE_PERSON_GQL,
CREATE_PLACE_GQL,
CREATE_PRODUCT_GQL,
CREATE_REPO_GQL,
CREATE_SOFTWARE_GQL,
CREATE_SPECIFICATION_GQL,
CREATE_USER_GQL,
CREATE_WORKFLOW_GQL,
DELETE_ALERT_GQL,
DELETE_ALERTS_GQL,
DELETE_ALL_ALERTS_GQL,
DELETE_ALL_CATEGORIES_GQL,
DELETE_ALL_COLLECTIONS_GQL,
DELETE_ALL_CONTENTS_GQL,
DELETE_ALL_CONVERSATIONS_GQL,
DELETE_ALL_EVENTS_GQL,
DELETE_ALL_FEEDS_GQL,
DELETE_ALL_LABELS_GQL,
DELETE_ALL_MEDICAL_CONDITIONS_GQL,
DELETE_ALL_MEDICAL_CONTRAINDICATIONS_GQL,
DELETE_ALL_MEDICAL_DEVICES_GQL,
DELETE_ALL_MEDICAL_DRUG_CLASSES_GQL,
DELETE_ALL_MEDICAL_DRUGS_GQL,
DELETE_ALL_MEDICAL_GUIDELINES_GQL,
DELETE_ALL_MEDICAL_INDICATIONS_GQL,
DELETE_ALL_MEDICAL_PROCEDURES_GQL,
DELETE_ALL_MEDICAL_STUDIES_GQL,
DELETE_ALL_MEDICAL_TESTS_GQL,
DELETE_ALL_MEDICAL_THERAPIES_GQL,
DELETE_ALL_ORGANIZATIONS_GQL,
DELETE_ALL_PERSONS_GQL,
DELETE_ALL_PLACES_GQL,
DELETE_ALL_PRODUCTS_GQL,
DELETE_ALL_REPOS_GQL,
DELETE_ALL_SOFTWARES_GQL,
DELETE_ALL_SPECIFICATIONS_GQL,
DELETE_ALL_WORKFLOWS_GQL,
DELETE_CATEGORIES_GQL,
DELETE_CATEGORY_GQL,
DELETE_COLLECTION_GQL,
DELETE_COLLECTIONS_GQL,
DELETE_CONTENT_GQL,
DELETE_CONTENTS_GQL,
DELETE_CONVERSATION_GQL,
DELETE_CONVERSATIONS_GQL,
DELETE_EVENT_GQL,
DELETE_EVENTS_GQL,
DELETE_FEED_GQL,
DELETE_FEEDS_GQL,
DELETE_LABEL_GQL,
DELETE_LABELS_GQL,
DELETE_MEDICAL_CONDITION_GQL,
DELETE_MEDICAL_CONDITIONS_GQL,
DELETE_MEDICAL_CONTRAINDICATION_GQL,
DELETE_MEDICAL_CONTRAINDICATIONS_GQL,
DELETE_MEDICAL_DEVICE_GQL,
DELETE_MEDICAL_DEVICES_GQL,
DELETE_MEDICAL_DRUG_CLASS_GQL,
DELETE_MEDICAL_DRUG_CLASSES_GQL,
DELETE_MEDICAL_DRUG_GQL,
DELETE_MEDICAL_DRUGS_GQL,
DELETE_MEDICAL_GUIDELINE_GQL,
DELETE_MEDICAL_GUIDELINES_GQL,
DELETE_MEDICAL_INDICATION_GQL,
DELETE_MEDICAL_INDICATIONS_GQL,
DELETE_MEDICAL_PROCEDURE_GQL,
DELETE_MEDICAL_PROCEDURES_GQL,
DELETE_MEDICAL_STUDIES_GQL,
DELETE_MEDICAL_STUDY_GQL,
DELETE_MEDICAL_TEST_GQL,
DELETE_MEDICAL_TESTS_GQL,
DELETE_MEDICAL_THERAPIES_GQL,
DELETE_MEDICAL_THERAPY_GQL,
DELETE_OBSERVATION_GQL,
DELETE_ORGANIZATION_GQL,
DELETE_ORGANIZATIONS_GQL,
DELETE_PERSON_GQL,
DELETE_PERSONS_GQL,
DELETE_PLACE_GQL,
DELETE_PLACES_GQL,
DELETE_PRODUCT_GQL,
DELETE_PRODUCTS_GQL,
DELETE_REPO_GQL,
DELETE_REPOS_GQL,
DELETE_SOFTWARE_GQL,
DELETE_SOFTWARES_GQL,
DELETE_SPECIFICATION_GQL,
DELETE_SPECIFICATIONS_GQL,
DELETE_USER_GQL,
DELETE_WORKFLOW_GQL,
DELETE_WORKFLOWS_GQL,
DESCRIBE_ENCODED_IMAGE_GQL,
DESCRIBE_IMAGE_GQL,
DISABLE_ALERT_GQL,
DISABLE_FEED_GQL,
DISABLE_USER_GQL,
ENABLE_ALERT_GQL,
ENABLE_FEED_GQL,
ENABLE_USER_GQL,
EXTRACT_CONTENTS_GQL,
EXTRACT_TEXT_GQL,
FEED_EXISTS_GQL,
FORMAT_CONVERSATION_GQL,
GET_ALERT_GQL,
GET_CATEGORY_GQL,
GET_COLLECTION_GQL,
GET_CONTENT_GQL,
GET_CONVERSATION_GQL,
GET_EVENT_GQL,
GET_FEED_GQL,
GET_LABEL_GQL,
GET_MEDICAL_CONDITION_GQL,
GET_MEDICAL_CONTRAINDICATION_GQL,
GET_MEDICAL_DEVICE_GQL,
GET_MEDICAL_DRUG_CLASS_GQL,
GET_MEDICAL_DRUG_GQL,
GET_MEDICAL_GUIDELINE_GQL,
GET_MEDICAL_INDICATION_GQL,
GET_MEDICAL_PROCEDURE_GQL,
GET_MEDICAL_STUDY_GQL,
GET_MEDICAL_TEST_GQL,
GET_MEDICAL_THERAPY_GQL,
GET_ORGANIZATION_GQL,
GET_PERSON_GQL,
GET_PLACE_GQL,
GET_PRODUCT_GQL,
GET_PROJECT_GQL,
GET_REPO_GQL,
GET_SHARE_POINT_CONSENT_URI_GQL,
GET_SOFTWARE_GQL,
GET_SPECIFICATION_GQL,
GET_USER_GQL,
GET_WORKFLOW_GQL,
INGEST_BATCH_GQL,
INGEST_ENCODED_FILE_GQL,
INGEST_MEMORY_GQL,
INGEST_TEXT_BATCH_GQL,
INGEST_TEXT_GQL,
INGEST_URI_GQL,
IS_CONTENT_DONE_GQL,
IS_FEED_DONE_GQL,
LOOKUP_CREDITS_GQL,
LOOKUP_USAGE_GQL,
MAP_WEB_GQL,
PROMPT_CONVERSATION_GQL,
PROMPT_GQL,
PROMPT_SPECIFICATIONS_GQL,
PUBLISH_CONTENTS_GQL,
PUBLISH_CONVERSATION_GQL,
PUBLISH_TEXT_GQL,
QUERY_ALERTS_GQL,
QUERY_CATEGORIES_GQL,
QUERY_COLLECTIONS_GQL,
QUERY_CONTENTS_FACETS_GQL,
QUERY_CONTENTS_GQL,
QUERY_CONTENTS_GRAPH_GQL,
QUERY_CONVERSATIONS_GQL,
QUERY_CREDITS_GQL,
QUERY_EVENTS_GQL,
QUERY_FEEDS_GQL,
QUERY_LABELS_GQL,
QUERY_LINEAR_PROJECTS_GQL,
QUERY_MEDICAL_CONDITIONS_GQL,
QUERY_MEDICAL_CONTRAINDICATIONS_GQL,
QUERY_MEDICAL_DEVICES_GQL,
QUERY_MEDICAL_DRUG_CLASSES_GQL,
QUERY_MEDICAL_DRUGS_GQL,
QUERY_MEDICAL_GUIDELINES_GQL,
QUERY_MEDICAL_INDICATIONS_GQL,
QUERY_MEDICAL_PROCEDURES_GQL,
QUERY_MEDICAL_STUDIES_GQL,
QUERY_MEDICAL_TESTS_GQL,
QUERY_MEDICAL_THERAPIES_GQL,
QUERY_MICROSOFT_TEAMS_CHANNELS_GQL,
QUERY_MICROSOFT_TEAMS_TEAMS_GQL,
QUERY_MODELS_GQL,
QUERY_NOTION_DATABASES_GQL,
QUERY_NOTION_PAGES_GQL,
QUERY_ONE_DRIVE_FOLDERS_GQL,
QUERY_ORGANIZATIONS_GQL,
QUERY_PERSONS_GQL,
QUERY_PLACES_GQL,
QUERY_PRODUCTS_GQL,
QUERY_REPOS_GQL,
QUERY_SHARE_POINT_FOLDERS_GQL,
QUERY_SHARE_POINT_LIBRARIES_GQL,
QUERY_SLACK_CHANNELS_GQL,
QUERY_SOFTWARES_GQL,
QUERY_SPECIFICATIONS_GQL,
QUERY_USAGE_GQL,
QUERY_USERS_GQL,
QUERY_WORKFLOWS_GQL,
REMOVE_CONTENTS_FROM_COLLECTION_GQL,
RETRIEVE_SOURCES_GQL,
REVISE_CONTENT_GQL,
REVISE_ENCODED_IMAGE_GQL,
REVISE_IMAGE_GQL,
REVISE_TEXT_GQL,
SCREENSHOT_PAGE_GQL,
SEARCH_WEB_GQL,
SEND_NOTIFICATION_GQL,
SPECIFICATION_EXISTS_GQL,
SUGGEST_CONVERSATION_GQL,
SUMMARIZE_CONTENTS_GQL,
SUMMARIZE_TEXT_GQL,
UPDATE_ALERT_GQL,
UPDATE_CATEGORY_GQL,
UPDATE_COLLECTION_GQL,
UPDATE_CONTENT_GQL,
UPDATE_CONVERSATION_GQL,
UPDATE_EVENT_GQL,
UPDATE_FEED_GQL,
UPDATE_LABEL_GQL,
UPDATE_MEDICAL_CONDITION_GQL,
UPDATE_MEDICAL_CONTRAINDICATION_GQL,
UPDATE_MEDICAL_DEVICE_GQL,
UPDATE_MEDICAL_DRUG_CLASS_GQL,
UPDATE_MEDICAL_DRUG_GQL,
UPDATE_MEDICAL_GUIDELINE_GQL,
UPDATE_MEDICAL_INDICATION_GQL,
UPDATE_MEDICAL_PROCEDURE_GQL,
UPDATE_MEDICAL_STUDY_GQL,
UPDATE_MEDICAL_TEST_GQL,
UPDATE_MEDICAL_THERAPY_GQL,
UPDATE_OBSERVATION_GQL,
UPDATE_ORGANIZATION_GQL,
UPDATE_PERSON_GQL,
UPDATE_PLACE_GQL,
UPDATE_PRODUCT_GQL,
UPDATE_PROJECT_GQL,
UPDATE_REPO_GQL,
UPDATE_SOFTWARE_GQL,
UPDATE_SPECIFICATION_GQL,
UPDATE_USER_GQL,
UPDATE_WORKFLOW_GQL,
UPSERT_CATEGORY_GQL,
UPSERT_LABEL_GQL,
UPSERT_SPECIFICATION_GQL,
UPSERT_WORKFLOW_GQL,
WORKFLOW_EXISTS_GQL,
)
from .prompt import Prompt
from .prompt_conversation import PromptConversation
from .prompt_specifications import PromptSpecifications
from .publish_contents import PublishContents
from .publish_conversation import PublishConversation
from .publish_text import PublishText
from .query_alerts import QueryAlerts
from .query_categories import QueryCategories
from .query_collections import QueryCollections
from .query_contents import QueryContents
from .query_contents_facets import QueryContentsFacets
from .query_contents_graph import QueryContentsGraph
from .query_conversations import QueryConversations
from .query_credits import QueryCredits
from .query_events import QueryEvents
from .query_feeds import QueryFeeds
from .query_labels import QueryLabels
from .query_linear_projects import QueryLinearProjects
from .query_medical_conditions import QueryMedicalConditions
from .query_medical_contraindications import QueryMedicalContraindications
from .query_medical_devices import QueryMedicalDevices
from .query_medical_drug_classes import QueryMedicalDrugClasses
from .query_medical_drugs import QueryMedicalDrugs
from .query_medical_guidelines import QueryMedicalGuidelines
from .query_medical_indications import QueryMedicalIndications
from .query_medical_procedures import QueryMedicalProcedures
from .query_medical_studies import QueryMedicalStudies
from .query_medical_tests import QueryMedicalTests
from .query_medical_therapies import QueryMedicalTherapies
from .query_microsoft_teams_channels import QueryMicrosoftTeamsChannels
from .query_microsoft_teams_teams import QueryMicrosoftTeamsTeams
from .query_models import QueryModels
from .query_notion_databases import QueryNotionDatabases
from .query_notion_pages import QueryNotionPages
from .query_one_drive_folders import QueryOneDriveFolders
from .query_organizations import QueryOrganizations
from .query_persons import QueryPersons
from .query_places import QueryPlaces
from .query_products import QueryProducts
from .query_repos import QueryRepos
from .query_share_point_folders import QuerySharePointFolders
from .query_share_point_libraries import QuerySharePointLibraries
from .query_slack_channels import QuerySlackChannels
from .query_softwares import QuerySoftwares
from .query_specifications import QuerySpecifications
from .query_usage import QueryUsage
from .query_users import QueryUsers
from .query_workflows import QueryWorkflows
from .remove_contents_from_collection import RemoveContentsFromCollection
from .retrieve_sources import RetrieveSources
from .revise_content import ReviseContent
from .revise_encoded_image import ReviseEncodedImage
from .revise_image import ReviseImage
from .revise_text import ReviseText
from .screenshot_page import ScreenshotPage
from .search_web import SearchWeb
from .send_notification import SendNotification
from .specification_exists import SpecificationExists
from .suggest_conversation import SuggestConversation
from .summarize_contents import SummarizeContents
from .summarize_text import SummarizeText
from .update_alert import UpdateAlert
from .update_category import UpdateCategory
from .update_collection import UpdateCollection
from .update_content import UpdateContent
from .update_conversation import UpdateConversation
from .update_event import UpdateEvent
from .update_feed import UpdateFeed
from .update_label import UpdateLabel
from .update_medical_condition import UpdateMedicalCondition
from .update_medical_contraindication import UpdateMedicalContraindication
from .update_medical_device import UpdateMedicalDevice
from .update_medical_drug import UpdateMedicalDrug
from .update_medical_drug_class import UpdateMedicalDrugClass
from .update_medical_guideline import UpdateMedicalGuideline
from .update_medical_indication import UpdateMedicalIndication
from .update_medical_procedure import UpdateMedicalProcedure
from .update_medical_study import UpdateMedicalStudy
from .update_medical_test import UpdateMedicalTest
from .update_medical_therapy import UpdateMedicalTherapy
from .update_observation import UpdateObservation
from .update_organization import UpdateOrganization
from .update_person import UpdatePerson
from .update_place import UpdatePlace
from .update_product import UpdateProduct
from .update_project import UpdateProject
from .update_repo import UpdateRepo
from .update_software import UpdateSoftware
from .update_specification import UpdateSpecification
from .update_user import UpdateUser
from .update_workflow import UpdateWorkflow
from .upsert_category import UpsertCategory
from .upsert_label import UpsertLabel
from .upsert_specification import UpsertSpecification
from .upsert_workflow import UpsertWorkflow
from .workflow_exists import WorkflowExists
def gql(q: str) -> str:
return q
class Client(AsyncBaseClient):
async def count_alerts(
self,
filter: Union[Optional[AlertFilter], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> CountAlerts:
variables: Dict[str, object] = {
"filter": filter,
"correlationId": correlation_id,
}
response = await self.execute(
query=COUNT_ALERTS_GQL,
operation_name="CountAlerts",
variables=variables,
**kwargs
)
data = self.get_data(response)
return CountAlerts.model_validate(data)
async def create_alert(
self,
alert: AlertInput,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> CreateAlert:
variables: Dict[str, object] = {"alert": alert, "correlationId": correlation_id}
response = await self.execute(
query=CREATE_ALERT_GQL,
operation_name="CreateAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return CreateAlert.model_validate(data)
async def delete_alert(self, id: str, **kwargs: Any) -> DeleteAlert:
variables: Dict[str, object] = {"id": id}
response = await self.execute(
query=DELETE_ALERT_GQL,
operation_name="DeleteAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteAlert.model_validate(data)
async def delete_alerts(
self,
ids: List[str],
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
**kwargs: Any
) -> DeleteAlerts:
variables: Dict[str, object] = {"ids": ids, "isSynchronous": is_synchronous}
response = await self.execute(
query=DELETE_ALERTS_GQL,
operation_name="DeleteAlerts",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteAlerts.model_validate(data)
async def delete_all_alerts(
self,
filter: Union[Optional[AlertFilter], UnsetType] = UNSET,
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> DeleteAllAlerts:
variables: Dict[str, object] = {
"filter": filter,
"isSynchronous": is_synchronous,
"correlationId": correlation_id,
}
response = await self.execute(
query=DELETE_ALL_ALERTS_GQL,
operation_name="DeleteAllAlerts",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteAllAlerts.model_validate(data)
async def disable_alert(self, id: str, **kwargs: Any) -> DisableAlert:
variables: Dict[str, object] = {"id": id}
response = await self.execute(
query=DISABLE_ALERT_GQL,
operation_name="DisableAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DisableAlert.model_validate(data)
async def enable_alert(self, id: str, **kwargs: Any) -> EnableAlert:
variables: Dict[str, object] = {"id": id}
response = await self.execute(
query=ENABLE_ALERT_GQL,
operation_name="EnableAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return EnableAlert.model_validate(data)
async def get_alert(
self,
id: str,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> GetAlert:
variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
response = await self.execute(
query=GET_ALERT_GQL,
operation_name="GetAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return GetAlert.model_validate(data)
async def query_alerts(
self,
filter: Union[Optional[AlertFilter], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> QueryAlerts:
variables: Dict[str, object] = {
"filter": filter,
"correlationId": correlation_id,
}
response = await self.execute(
query=QUERY_ALERTS_GQL,
operation_name="QueryAlerts",
variables=variables,
**kwargs
)
data = self.get_data(response)
return QueryAlerts.model_validate(data)
async def update_alert(self, alert: AlertUpdateInput, **kwargs: Any) -> UpdateAlert:
variables: Dict[str, object] = {"alert": alert}
response = await self.execute(
query=UPDATE_ALERT_GQL,
operation_name="UpdateAlert",
variables=variables,
**kwargs
)
data = self.get_data(response)
return UpdateAlert.model_validate(data)
async def count_categories(
self,
filter: Union[Optional[CategoryFilter], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> CountCategories:
variables: Dict[str, object] = {
"filter": filter,
"correlationId": correlation_id,
}
response = await self.execute(
query=COUNT_CATEGORIES_GQL,
operation_name="CountCategories",
variables=variables,
**kwargs
)
data = self.get_data(response)
return CountCategories.model_validate(data)
async def create_category(
self, category: CategoryInput, **kwargs: Any
) -> CreateCategory:
variables: Dict[str, object] = {"category": category}
response = await self.execute(
query=CREATE_CATEGORY_GQL,
operation_name="CreateCategory",
variables=variables,
**kwargs
)
data = self.get_data(response)
return CreateCategory.model_validate(data)
async def delete_all_categories(
self,
filter: Union[Optional[CategoryFilter], UnsetType] = UNSET,
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> DeleteAllCategories:
variables: Dict[str, object] = {
"filter": filter,
"isSynchronous": is_synchronous,
"correlationId": correlation_id,
}
response = await self.execute(
query=DELETE_ALL_CATEGORIES_GQL,
operation_name="DeleteAllCategories",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteAllCategories.model_validate(data)
async def delete_categories(
self,
ids: List[str],
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
**kwargs: Any
) -> DeleteCategories:
variables: Dict[str, object] = {"ids": ids, "isSynchronous": is_synchronous}
response = await self.execute(
query=DELETE_CATEGORIES_GQL,
operation_name="DeleteCategories",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteCategories.model_validate(data)
async def delete_category(self, id: str, **kwargs: Any) -> DeleteCategory:
variables: Dict[str, object] = {"id": id}
response = await self.execute(
query=DELETE_CATEGORY_GQL,
operation_name="DeleteCategory",
variables=variables,
**kwargs
)
data = self.get_data(response)
return DeleteCategory.model_validate(data)
async def get_category(
self,
id: str,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> GetCategory:
variables: Dict[str, object] = {"id": id, "correlationId": correlation_id}
response = await self.execute(
query=GET_CATEGORY_GQL,
operation_name="GetCategory",
variables=variables,
**kwargs
)
data = self.get_data(response)
return GetCategory.model_validate(data)
async def query_categories(
self,
filter: Union[Optional[CategoryFilter], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> QueryCategories:
variables: Dict[str, object] = {
"filter": filter,
"correlationId": correlation_id,
}
response = await self.execute(
query=QUERY_CATEGORIES_GQL,
operation_name="QueryCategories",
variables=variables,
**kwargs
)
data = self.get_data(response)
return QueryCategories.model_validate(data)
async def update_category(
self, category: CategoryUpdateInput, **kwargs: Any
) -> UpdateCategory:
variables: Dict[str, object] = {"category": category}
response = await self.execute(
query=UPDATE_CATEGORY_GQL,
operation_name="UpdateCategory",
variables=variables,
**kwargs
)
data = self.get_data(response)
return UpdateCategory.model_validate(data)
async def upsert_category(
self, category: CategoryInput, **kwargs: Any
) -> UpsertCategory:
variables: Dict[str, object] = {"category": category}
response = await self.execute(