graphlit-client 1.0.20250306001__py3-none-any.whl → 1.0.20250315001__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 +231 -68
- graphlit_api/client.py +82 -0
- graphlit_api/create_workflow.py +72 -0
- graphlit_api/enums.py +18 -1
- graphlit_api/get_alert.py +7 -0
- graphlit_api/get_content.py +0 -1
- graphlit_api/get_user.py +7 -0
- graphlit_api/get_workflow.py +62 -0
- graphlit_api/input_types.py +55 -0
- graphlit_api/lookup_credits.py +1 -0
- graphlit_api/operations.py +444 -325
- graphlit_api/query_alerts.py +7 -0
- graphlit_api/query_contents.py +0 -13
- graphlit_api/query_contents_facets.py +1 -349
- graphlit_api/query_credits.py +1 -0
- graphlit_api/query_users.py +7 -0
- graphlit_api/query_workflows.py +72 -0
- graphlit_api/send_notification.py +21 -0
- graphlit_api/update_workflow.py +72 -0
- graphlit_api/upsert_category.py +22 -0
- graphlit_api/upsert_label.py +20 -0
- graphlit_api/upsert_specification.py +26 -0
- graphlit_api/upsert_workflow.py +405 -0
- {graphlit_client-1.0.20250306001.dist-info → graphlit_client-1.0.20250315001.dist-info}/METADATA +1 -1
- {graphlit_client-1.0.20250306001.dist-info → graphlit_client-1.0.20250315001.dist-info}/RECORD +28 -23
- {graphlit_client-1.0.20250306001.dist-info → graphlit_client-1.0.20250315001.dist-info}/WHEEL +1 -1
- {graphlit_client-1.0.20250306001.dist-info → graphlit_client-1.0.20250315001.dist-info}/LICENSE +0 -0
- {graphlit_client-1.0.20250306001.dist-info → graphlit_client-1.0.20250315001.dist-info}/top_level.txt +0 -0
graphlit_api/client.py
CHANGED
@@ -224,6 +224,7 @@ from .input_types import (
|
|
224
224
|
FeedFilter,
|
225
225
|
FeedInput,
|
226
226
|
FeedUpdateInput,
|
227
|
+
IntegrationConnectorInput,
|
227
228
|
LabelFilter,
|
228
229
|
LabelInput,
|
229
230
|
LabelUpdateInput,
|
@@ -561,6 +562,7 @@ from .operations import (
|
|
561
562
|
REVISE_TEXT_GQL,
|
562
563
|
SCREENSHOT_PAGE_GQL,
|
563
564
|
SEARCH_WEB_GQL,
|
565
|
+
SEND_NOTIFICATION_GQL,
|
564
566
|
SUGGEST_CONVERSATION_GQL,
|
565
567
|
SUMMARIZE_CONTENTS_GQL,
|
566
568
|
SUMMARIZE_TEXT_GQL,
|
@@ -594,6 +596,10 @@ from .operations import (
|
|
594
596
|
UPDATE_SPECIFICATION_GQL,
|
595
597
|
UPDATE_USER_GQL,
|
596
598
|
UPDATE_WORKFLOW_GQL,
|
599
|
+
UPSERT_CATEGORY_GQL,
|
600
|
+
UPSERT_LABEL_GQL,
|
601
|
+
UPSERT_SPECIFICATION_GQL,
|
602
|
+
UPSERT_WORKFLOW_GQL,
|
597
603
|
)
|
598
604
|
from .prompt import Prompt
|
599
605
|
from .prompt_conversation import PromptConversation
|
@@ -649,6 +655,7 @@ from .revise_image import ReviseImage
|
|
649
655
|
from .revise_text import ReviseText
|
650
656
|
from .screenshot_page import ScreenshotPage
|
651
657
|
from .search_web import SearchWeb
|
658
|
+
from .send_notification import SendNotification
|
652
659
|
from .suggest_conversation import SuggestConversation
|
653
660
|
from .summarize_contents import SummarizeContents
|
654
661
|
from .summarize_text import SummarizeText
|
@@ -682,6 +689,10 @@ from .update_software import UpdateSoftware
|
|
682
689
|
from .update_specification import UpdateSpecification
|
683
690
|
from .update_user import UpdateUser
|
684
691
|
from .update_workflow import UpdateWorkflow
|
692
|
+
from .upsert_category import UpsertCategory
|
693
|
+
from .upsert_label import UpsertLabel
|
694
|
+
from .upsert_specification import UpsertSpecification
|
695
|
+
from .upsert_workflow import UpsertWorkflow
|
685
696
|
|
686
697
|
|
687
698
|
def gql(q: str) -> str:
|
@@ -968,6 +979,19 @@ class Client(AsyncBaseClient):
|
|
968
979
|
data = self.get_data(response)
|
969
980
|
return UpdateCategory.model_validate(data)
|
970
981
|
|
982
|
+
async def upsert_category(
|
983
|
+
self, category: CategoryInput, **kwargs: Any
|
984
|
+
) -> UpsertCategory:
|
985
|
+
variables: Dict[str, object] = {"category": category}
|
986
|
+
response = await self.execute(
|
987
|
+
query=UPSERT_CATEGORY_GQL,
|
988
|
+
operation_name="UpsertCategory",
|
989
|
+
variables=variables,
|
990
|
+
**kwargs
|
991
|
+
)
|
992
|
+
data = self.get_data(response)
|
993
|
+
return UpsertCategory.model_validate(data)
|
994
|
+
|
971
995
|
async def add_contents_to_collections(
|
972
996
|
self,
|
973
997
|
contents: List[EntityReferenceInput],
|
@@ -2699,6 +2723,17 @@ class Client(AsyncBaseClient):
|
|
2699
2723
|
data = self.get_data(response)
|
2700
2724
|
return UpdateLabel.model_validate(data)
|
2701
2725
|
|
2726
|
+
async def upsert_label(self, label: LabelInput, **kwargs: Any) -> UpsertLabel:
|
2727
|
+
variables: Dict[str, object] = {"label": label}
|
2728
|
+
response = await self.execute(
|
2729
|
+
query=UPSERT_LABEL_GQL,
|
2730
|
+
operation_name="UpsertLabel",
|
2731
|
+
variables=variables,
|
2732
|
+
**kwargs
|
2733
|
+
)
|
2734
|
+
data = self.get_data(response)
|
2735
|
+
return UpsertLabel.model_validate(data)
|
2736
|
+
|
2702
2737
|
async def count_medical_conditions(
|
2703
2738
|
self,
|
2704
2739
|
filter: Union[Optional[MedicalConditionFilter], UnsetType] = UNSET,
|
@@ -4125,6 +4160,27 @@ class Client(AsyncBaseClient):
|
|
4125
4160
|
data = self.get_data(response)
|
4126
4161
|
return UpdateMedicalTherapy.model_validate(data)
|
4127
4162
|
|
4163
|
+
async def send_notification(
|
4164
|
+
self,
|
4165
|
+
connector: IntegrationConnectorInput,
|
4166
|
+
text: str,
|
4167
|
+
text_type: Union[Optional[TextTypes], UnsetType] = UNSET,
|
4168
|
+
**kwargs: Any
|
4169
|
+
) -> SendNotification:
|
4170
|
+
variables: Dict[str, object] = {
|
4171
|
+
"connector": connector,
|
4172
|
+
"text": text,
|
4173
|
+
"textType": text_type,
|
4174
|
+
}
|
4175
|
+
response = await self.execute(
|
4176
|
+
query=SEND_NOTIFICATION_GQL,
|
4177
|
+
operation_name="SendNotification",
|
4178
|
+
variables=variables,
|
4179
|
+
**kwargs
|
4180
|
+
)
|
4181
|
+
data = self.get_data(response)
|
4182
|
+
return SendNotification.model_validate(data)
|
4183
|
+
|
4128
4184
|
async def create_observation(
|
4129
4185
|
self, observation: ObservationInput, **kwargs: Any
|
4130
4186
|
) -> CreateObservation:
|
@@ -5198,6 +5254,19 @@ class Client(AsyncBaseClient):
|
|
5198
5254
|
data = self.get_data(response)
|
5199
5255
|
return UpdateSpecification.model_validate(data)
|
5200
5256
|
|
5257
|
+
async def upsert_specification(
|
5258
|
+
self, specification: SpecificationInput, **kwargs: Any
|
5259
|
+
) -> UpsertSpecification:
|
5260
|
+
variables: Dict[str, object] = {"specification": specification}
|
5261
|
+
response = await self.execute(
|
5262
|
+
query=UPSERT_SPECIFICATION_GQL,
|
5263
|
+
operation_name="UpsertSpecification",
|
5264
|
+
variables=variables,
|
5265
|
+
**kwargs
|
5266
|
+
)
|
5267
|
+
data = self.get_data(response)
|
5268
|
+
return UpsertSpecification.model_validate(data)
|
5269
|
+
|
5201
5270
|
async def count_users(
|
5202
5271
|
self,
|
5203
5272
|
filter: Union[Optional[UserFilter], UnsetType] = UNSET,
|
@@ -5426,3 +5495,16 @@ class Client(AsyncBaseClient):
|
|
5426
5495
|
)
|
5427
5496
|
data = self.get_data(response)
|
5428
5497
|
return UpdateWorkflow.model_validate(data)
|
5498
|
+
|
5499
|
+
async def upsert_workflow(
|
5500
|
+
self, workflow: WorkflowInput, **kwargs: Any
|
5501
|
+
) -> UpsertWorkflow:
|
5502
|
+
variables: Dict[str, object] = {"workflow": workflow}
|
5503
|
+
response = await self.execute(
|
5504
|
+
query=UPSERT_WORKFLOW_GQL,
|
5505
|
+
operation_name="UpsertWorkflow",
|
5506
|
+
variables=variables,
|
5507
|
+
**kwargs
|
5508
|
+
)
|
5509
|
+
data = self.get_data(response)
|
5510
|
+
return UpsertWorkflow.model_validate(data)
|
graphlit_api/create_workflow.py
CHANGED
@@ -10,6 +10,7 @@ from .enums import (
|
|
10
10
|
AssemblyAIModels,
|
11
11
|
AzureDocumentIntelligenceModels,
|
12
12
|
AzureDocumentIntelligenceVersions,
|
13
|
+
ContentClassificationServiceTypes,
|
13
14
|
ContentIndexingServiceTypes,
|
14
15
|
ContentTypes,
|
15
16
|
DeepgramModels,
|
@@ -21,6 +22,7 @@ from .enums import (
|
|
21
22
|
IntegrationServiceTypes,
|
22
23
|
LinkTypes,
|
23
24
|
ObservableTypes,
|
25
|
+
RegexSourceTypes,
|
24
26
|
StoragePolicyTypes,
|
25
27
|
SummarizationTypes,
|
26
28
|
)
|
@@ -40,6 +42,7 @@ class CreateWorkflowCreateWorkflow(BaseModel):
|
|
40
42
|
indexing: Optional["CreateWorkflowCreateWorkflowIndexing"]
|
41
43
|
preparation: Optional["CreateWorkflowCreateWorkflowPreparation"]
|
42
44
|
extraction: Optional["CreateWorkflowCreateWorkflowExtraction"]
|
45
|
+
classification: Optional["CreateWorkflowCreateWorkflowClassification"]
|
43
46
|
enrichment: Optional["CreateWorkflowCreateWorkflowEnrichment"]
|
44
47
|
storage: Optional["CreateWorkflowCreateWorkflowStorage"]
|
45
48
|
actions: Optional[List[Optional["CreateWorkflowCreateWorkflowActions"]]]
|
@@ -245,6 +248,63 @@ class CreateWorkflowCreateWorkflowExtractionJobsConnectorModelTextSpecification(
|
|
245
248
|
id: str
|
246
249
|
|
247
250
|
|
251
|
+
class CreateWorkflowCreateWorkflowClassification(BaseModel):
|
252
|
+
jobs: Optional[List[Optional["CreateWorkflowCreateWorkflowClassificationJobs"]]]
|
253
|
+
|
254
|
+
|
255
|
+
class CreateWorkflowCreateWorkflowClassificationJobs(BaseModel):
|
256
|
+
connector: Optional["CreateWorkflowCreateWorkflowClassificationJobsConnector"]
|
257
|
+
|
258
|
+
|
259
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnector(BaseModel):
|
260
|
+
type: ContentClassificationServiceTypes
|
261
|
+
content_type: Optional[ContentTypes] = Field(alias="contentType")
|
262
|
+
file_type: Optional[FileTypes] = Field(alias="fileType")
|
263
|
+
model: Optional["CreateWorkflowCreateWorkflowClassificationJobsConnectorModel"]
|
264
|
+
regex: Optional["CreateWorkflowCreateWorkflowClassificationJobsConnectorRegex"]
|
265
|
+
|
266
|
+
|
267
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnectorModel(BaseModel):
|
268
|
+
specification: Optional[
|
269
|
+
"CreateWorkflowCreateWorkflowClassificationJobsConnectorModelSpecification"
|
270
|
+
]
|
271
|
+
rules: Optional[
|
272
|
+
List[
|
273
|
+
Optional[
|
274
|
+
"CreateWorkflowCreateWorkflowClassificationJobsConnectorModelRules"
|
275
|
+
]
|
276
|
+
]
|
277
|
+
]
|
278
|
+
|
279
|
+
|
280
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnectorModelSpecification(
|
281
|
+
BaseModel
|
282
|
+
):
|
283
|
+
id: str
|
284
|
+
|
285
|
+
|
286
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnectorModelRules(BaseModel):
|
287
|
+
then: Optional[str]
|
288
|
+
if_: Optional[str] = Field(alias="if")
|
289
|
+
|
290
|
+
|
291
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnectorRegex(BaseModel):
|
292
|
+
rules: Optional[
|
293
|
+
List[
|
294
|
+
Optional[
|
295
|
+
"CreateWorkflowCreateWorkflowClassificationJobsConnectorRegexRules"
|
296
|
+
]
|
297
|
+
]
|
298
|
+
]
|
299
|
+
|
300
|
+
|
301
|
+
class CreateWorkflowCreateWorkflowClassificationJobsConnectorRegexRules(BaseModel):
|
302
|
+
then: Optional[str]
|
303
|
+
type: Optional[RegexSourceTypes]
|
304
|
+
path: Optional[str]
|
305
|
+
matches: Optional[str]
|
306
|
+
|
307
|
+
|
248
308
|
class CreateWorkflowCreateWorkflowEnrichment(BaseModel):
|
249
309
|
link: Optional["CreateWorkflowCreateWorkflowEnrichmentLink"]
|
250
310
|
jobs: Optional[List[Optional["CreateWorkflowCreateWorkflowEnrichmentJobs"]]]
|
@@ -302,6 +362,7 @@ class CreateWorkflowCreateWorkflowActionsConnector(BaseModel):
|
|
302
362
|
type: IntegrationServiceTypes
|
303
363
|
uri: Optional[str]
|
304
364
|
slack: Optional["CreateWorkflowCreateWorkflowActionsConnectorSlack"]
|
365
|
+
email: Optional["CreateWorkflowCreateWorkflowActionsConnectorEmail"]
|
305
366
|
|
306
367
|
|
307
368
|
class CreateWorkflowCreateWorkflowActionsConnectorSlack(BaseModel):
|
@@ -309,6 +370,12 @@ class CreateWorkflowCreateWorkflowActionsConnectorSlack(BaseModel):
|
|
309
370
|
channel: str
|
310
371
|
|
311
372
|
|
373
|
+
class CreateWorkflowCreateWorkflowActionsConnectorEmail(BaseModel):
|
374
|
+
from_: str = Field(alias="from")
|
375
|
+
subject: str
|
376
|
+
to: List[str]
|
377
|
+
|
378
|
+
|
312
379
|
CreateWorkflow.model_rebuild()
|
313
380
|
CreateWorkflowCreateWorkflow.model_rebuild()
|
314
381
|
CreateWorkflowCreateWorkflowIngestion.model_rebuild()
|
@@ -325,6 +392,11 @@ CreateWorkflowCreateWorkflowExtractionJobs.model_rebuild()
|
|
325
392
|
CreateWorkflowCreateWorkflowExtractionJobsConnector.model_rebuild()
|
326
393
|
CreateWorkflowCreateWorkflowExtractionJobsConnectorModelImage.model_rebuild()
|
327
394
|
CreateWorkflowCreateWorkflowExtractionJobsConnectorModelText.model_rebuild()
|
395
|
+
CreateWorkflowCreateWorkflowClassification.model_rebuild()
|
396
|
+
CreateWorkflowCreateWorkflowClassificationJobs.model_rebuild()
|
397
|
+
CreateWorkflowCreateWorkflowClassificationJobsConnector.model_rebuild()
|
398
|
+
CreateWorkflowCreateWorkflowClassificationJobsConnectorModel.model_rebuild()
|
399
|
+
CreateWorkflowCreateWorkflowClassificationJobsConnectorRegex.model_rebuild()
|
328
400
|
CreateWorkflowCreateWorkflowEnrichment.model_rebuild()
|
329
401
|
CreateWorkflowCreateWorkflowEnrichmentJobs.model_rebuild()
|
330
402
|
CreateWorkflowCreateWorkflowEnrichmentJobsConnector.model_rebuild()
|
graphlit_api/enums.py
CHANGED
@@ -84,6 +84,7 @@ class EntityState(str, Enum):
|
|
84
84
|
SANITIZED = "SANITIZED"
|
85
85
|
EXTRACTED = "EXTRACTED"
|
86
86
|
ENRICHED = "ENRICHED"
|
87
|
+
CLASSIFIED = "CLASSIFIED"
|
87
88
|
CHANGED = "CHANGED"
|
88
89
|
ARCHIVED = "ARCHIVED"
|
89
90
|
APPROVED = "APPROVED"
|
@@ -261,6 +262,7 @@ class SearchQueryTypes(str, Enum):
|
|
261
262
|
class IntegrationServiceTypes(str, Enum):
|
262
263
|
SLACK = "SLACK"
|
263
264
|
WEB_HOOK = "WEB_HOOK"
|
265
|
+
EMAIL = "EMAIL"
|
264
266
|
|
265
267
|
|
266
268
|
class LinkTypes(str, Enum):
|
@@ -341,6 +343,7 @@ class SpecificationTypes(str, Enum):
|
|
341
343
|
TEXT_EMBEDDING = "TEXT_EMBEDDING"
|
342
344
|
IMAGE_EMBEDDING = "IMAGE_EMBEDDING"
|
343
345
|
EXTRACTION = "EXTRACTION"
|
346
|
+
CLASSIFICATION = "CLASSIFICATION"
|
344
347
|
PREPARATION = "PREPARATION"
|
345
348
|
|
346
349
|
|
@@ -498,6 +501,8 @@ class ElevenLabsModels(str, Enum):
|
|
498
501
|
MULTILINGUAL_V1 = "MULTILINGUAL_V1"
|
499
502
|
MULTILINGUAL_V2 = "MULTILINGUAL_V2"
|
500
503
|
ENGLISH_V1 = "ENGLISH_V1"
|
504
|
+
FLASH_V2 = "FLASH_V2"
|
505
|
+
FLASH_V2_5 = "FLASH_V2_5"
|
501
506
|
TURBO_V2 = "TURBO_V2"
|
502
507
|
TURBO_V2_5 = "TURBO_V2_5"
|
503
508
|
|
@@ -685,6 +690,7 @@ class DeepseekModels(str, Enum):
|
|
685
690
|
class SearchServiceTypes(str, Enum):
|
686
691
|
TAVILY = "TAVILY"
|
687
692
|
EXA = "EXA"
|
693
|
+
PODSCAN = "PODSCAN"
|
688
694
|
|
689
695
|
|
690
696
|
class MedicalContraindicationFacetTypes(str, Enum):
|
@@ -773,6 +779,11 @@ class FilePreparationServiceTypes(str, Enum):
|
|
773
779
|
MISTRAL_DOCUMENT = "MISTRAL_DOCUMENT"
|
774
780
|
|
775
781
|
|
782
|
+
class RegexSourceTypes(str, Enum):
|
783
|
+
MARKDOWN = "MARKDOWN"
|
784
|
+
METADATA = "METADATA"
|
785
|
+
|
786
|
+
|
776
787
|
class FacetValueTypes(str, Enum):
|
777
788
|
VALUE = "VALUE"
|
778
789
|
RANGE = "RANGE"
|
@@ -800,6 +811,8 @@ class CohereModels(str, Enum):
|
|
800
811
|
COMMAND_R_PLUS_202404 = "COMMAND_R_PLUS_202404"
|
801
812
|
COMMAND_R_PLUS_202408 = "COMMAND_R_PLUS_202408"
|
802
813
|
COMMAND_R7_B_202412 = "COMMAND_R7_B_202412"
|
814
|
+
COMMAND_A = "COMMAND_A"
|
815
|
+
COMMAND_A_202503 = "COMMAND_A_202503"
|
803
816
|
CUSTOM = "CUSTOM"
|
804
817
|
|
805
818
|
|
@@ -937,7 +950,6 @@ class UserTypes(str, Enum):
|
|
937
950
|
|
938
951
|
|
939
952
|
class EntityExtractionServiceTypes(str, Enum):
|
940
|
-
ROBOFLOW_IMAGE = "ROBOFLOW_IMAGE"
|
941
953
|
MODEL_TEXT = "MODEL_TEXT"
|
942
954
|
MODEL_IMAGE = "MODEL_IMAGE"
|
943
955
|
OPEN_AI_IMAGE = "OPEN_AI_IMAGE"
|
@@ -1030,6 +1042,11 @@ class OrderByTypes(str, Enum):
|
|
1030
1042
|
RELEVANCE = "RELEVANCE"
|
1031
1043
|
|
1032
1044
|
|
1045
|
+
class ContentClassificationServiceTypes(str, Enum):
|
1046
|
+
REGEX = "REGEX"
|
1047
|
+
MODEL = "MODEL"
|
1048
|
+
|
1049
|
+
|
1033
1050
|
class AuthenticationServiceTypes(str, Enum):
|
1034
1051
|
AUTH0 = "AUTH0"
|
1035
1052
|
MICROSOFT_GRAPH = "MICROSOFT_GRAPH"
|
graphlit_api/get_alert.py
CHANGED
@@ -180,6 +180,7 @@ class GetAlertAlertIntegration(BaseModel):
|
|
180
180
|
type: IntegrationServiceTypes
|
181
181
|
uri: Optional[str]
|
182
182
|
slack: Optional["GetAlertAlertIntegrationSlack"]
|
183
|
+
email: Optional["GetAlertAlertIntegrationEmail"]
|
183
184
|
|
184
185
|
|
185
186
|
class GetAlertAlertIntegrationSlack(BaseModel):
|
@@ -187,6 +188,12 @@ class GetAlertAlertIntegrationSlack(BaseModel):
|
|
187
188
|
channel: str
|
188
189
|
|
189
190
|
|
191
|
+
class GetAlertAlertIntegrationEmail(BaseModel):
|
192
|
+
from_: str = Field(alias="from")
|
193
|
+
subject: str
|
194
|
+
to: List[str]
|
195
|
+
|
196
|
+
|
190
197
|
class GetAlertAlertPublishing(BaseModel):
|
191
198
|
type: ContentPublishingServiceTypes
|
192
199
|
eleven_labs: Optional["GetAlertAlertPublishingElevenLabs"] = Field(
|
graphlit_api/get_content.py
CHANGED
graphlit_api/get_user.py
CHANGED
@@ -65,6 +65,7 @@ class GetUserUserConnectorsIntegration(BaseModel):
|
|
65
65
|
type: IntegrationServiceTypes
|
66
66
|
uri: Optional[str]
|
67
67
|
slack: Optional["GetUserUserConnectorsIntegrationSlack"]
|
68
|
+
email: Optional["GetUserUserConnectorsIntegrationEmail"]
|
68
69
|
|
69
70
|
|
70
71
|
class GetUserUserConnectorsIntegrationSlack(BaseModel):
|
@@ -72,6 +73,12 @@ class GetUserUserConnectorsIntegrationSlack(BaseModel):
|
|
72
73
|
channel: str
|
73
74
|
|
74
75
|
|
76
|
+
class GetUserUserConnectorsIntegrationEmail(BaseModel):
|
77
|
+
from_: str = Field(alias="from")
|
78
|
+
subject: str
|
79
|
+
to: List[str]
|
80
|
+
|
81
|
+
|
75
82
|
GetUser.model_rebuild()
|
76
83
|
GetUserUser.model_rebuild()
|
77
84
|
GetUserUserConnectors.model_rebuild()
|
graphlit_api/get_workflow.py
CHANGED
@@ -10,6 +10,7 @@ from .enums import (
|
|
10
10
|
AssemblyAIModels,
|
11
11
|
AzureDocumentIntelligenceModels,
|
12
12
|
AzureDocumentIntelligenceVersions,
|
13
|
+
ContentClassificationServiceTypes,
|
13
14
|
ContentIndexingServiceTypes,
|
14
15
|
ContentTypes,
|
15
16
|
DeepgramModels,
|
@@ -21,6 +22,7 @@ from .enums import (
|
|
21
22
|
IntegrationServiceTypes,
|
22
23
|
LinkTypes,
|
23
24
|
ObservableTypes,
|
25
|
+
RegexSourceTypes,
|
24
26
|
StoragePolicyTypes,
|
25
27
|
SummarizationTypes,
|
26
28
|
)
|
@@ -41,6 +43,7 @@ class GetWorkflowWorkflow(BaseModel):
|
|
41
43
|
indexing: Optional["GetWorkflowWorkflowIndexing"]
|
42
44
|
preparation: Optional["GetWorkflowWorkflowPreparation"]
|
43
45
|
extraction: Optional["GetWorkflowWorkflowExtraction"]
|
46
|
+
classification: Optional["GetWorkflowWorkflowClassification"]
|
44
47
|
enrichment: Optional["GetWorkflowWorkflowEnrichment"]
|
45
48
|
storage: Optional["GetWorkflowWorkflowStorage"]
|
46
49
|
actions: Optional[List[Optional["GetWorkflowWorkflowActions"]]]
|
@@ -238,6 +241,53 @@ class GetWorkflowWorkflowExtractionJobsConnectorModelTextSpecification(BaseModel
|
|
238
241
|
id: str
|
239
242
|
|
240
243
|
|
244
|
+
class GetWorkflowWorkflowClassification(BaseModel):
|
245
|
+
jobs: Optional[List[Optional["GetWorkflowWorkflowClassificationJobs"]]]
|
246
|
+
|
247
|
+
|
248
|
+
class GetWorkflowWorkflowClassificationJobs(BaseModel):
|
249
|
+
connector: Optional["GetWorkflowWorkflowClassificationJobsConnector"]
|
250
|
+
|
251
|
+
|
252
|
+
class GetWorkflowWorkflowClassificationJobsConnector(BaseModel):
|
253
|
+
type: ContentClassificationServiceTypes
|
254
|
+
content_type: Optional[ContentTypes] = Field(alias="contentType")
|
255
|
+
file_type: Optional[FileTypes] = Field(alias="fileType")
|
256
|
+
model: Optional["GetWorkflowWorkflowClassificationJobsConnectorModel"]
|
257
|
+
regex: Optional["GetWorkflowWorkflowClassificationJobsConnectorRegex"]
|
258
|
+
|
259
|
+
|
260
|
+
class GetWorkflowWorkflowClassificationJobsConnectorModel(BaseModel):
|
261
|
+
specification: Optional[
|
262
|
+
"GetWorkflowWorkflowClassificationJobsConnectorModelSpecification"
|
263
|
+
]
|
264
|
+
rules: Optional[
|
265
|
+
List[Optional["GetWorkflowWorkflowClassificationJobsConnectorModelRules"]]
|
266
|
+
]
|
267
|
+
|
268
|
+
|
269
|
+
class GetWorkflowWorkflowClassificationJobsConnectorModelSpecification(BaseModel):
|
270
|
+
id: str
|
271
|
+
|
272
|
+
|
273
|
+
class GetWorkflowWorkflowClassificationJobsConnectorModelRules(BaseModel):
|
274
|
+
then: Optional[str]
|
275
|
+
if_: Optional[str] = Field(alias="if")
|
276
|
+
|
277
|
+
|
278
|
+
class GetWorkflowWorkflowClassificationJobsConnectorRegex(BaseModel):
|
279
|
+
rules: Optional[
|
280
|
+
List[Optional["GetWorkflowWorkflowClassificationJobsConnectorRegexRules"]]
|
281
|
+
]
|
282
|
+
|
283
|
+
|
284
|
+
class GetWorkflowWorkflowClassificationJobsConnectorRegexRules(BaseModel):
|
285
|
+
then: Optional[str]
|
286
|
+
type: Optional[RegexSourceTypes]
|
287
|
+
path: Optional[str]
|
288
|
+
matches: Optional[str]
|
289
|
+
|
290
|
+
|
241
291
|
class GetWorkflowWorkflowEnrichment(BaseModel):
|
242
292
|
link: Optional["GetWorkflowWorkflowEnrichmentLink"]
|
243
293
|
jobs: Optional[List[Optional["GetWorkflowWorkflowEnrichmentJobs"]]]
|
@@ -295,6 +345,7 @@ class GetWorkflowWorkflowActionsConnector(BaseModel):
|
|
295
345
|
type: IntegrationServiceTypes
|
296
346
|
uri: Optional[str]
|
297
347
|
slack: Optional["GetWorkflowWorkflowActionsConnectorSlack"]
|
348
|
+
email: Optional["GetWorkflowWorkflowActionsConnectorEmail"]
|
298
349
|
|
299
350
|
|
300
351
|
class GetWorkflowWorkflowActionsConnectorSlack(BaseModel):
|
@@ -302,6 +353,12 @@ class GetWorkflowWorkflowActionsConnectorSlack(BaseModel):
|
|
302
353
|
channel: str
|
303
354
|
|
304
355
|
|
356
|
+
class GetWorkflowWorkflowActionsConnectorEmail(BaseModel):
|
357
|
+
from_: str = Field(alias="from")
|
358
|
+
subject: str
|
359
|
+
to: List[str]
|
360
|
+
|
361
|
+
|
305
362
|
GetWorkflow.model_rebuild()
|
306
363
|
GetWorkflowWorkflow.model_rebuild()
|
307
364
|
GetWorkflowWorkflowIngestion.model_rebuild()
|
@@ -318,6 +375,11 @@ GetWorkflowWorkflowExtractionJobs.model_rebuild()
|
|
318
375
|
GetWorkflowWorkflowExtractionJobsConnector.model_rebuild()
|
319
376
|
GetWorkflowWorkflowExtractionJobsConnectorModelImage.model_rebuild()
|
320
377
|
GetWorkflowWorkflowExtractionJobsConnectorModelText.model_rebuild()
|
378
|
+
GetWorkflowWorkflowClassification.model_rebuild()
|
379
|
+
GetWorkflowWorkflowClassificationJobs.model_rebuild()
|
380
|
+
GetWorkflowWorkflowClassificationJobsConnector.model_rebuild()
|
381
|
+
GetWorkflowWorkflowClassificationJobsConnectorModel.model_rebuild()
|
382
|
+
GetWorkflowWorkflowClassificationJobsConnectorRegex.model_rebuild()
|
321
383
|
GetWorkflowWorkflowEnrichment.model_rebuild()
|
322
384
|
GetWorkflowWorkflowEnrichmentJobs.model_rebuild()
|
323
385
|
GetWorkflowWorkflowEnrichmentJobsConnector.model_rebuild()
|
graphlit_api/input_types.py
CHANGED
@@ -19,6 +19,7 @@ from .enums import (
|
|
19
19
|
CohereModels,
|
20
20
|
CollectionTypes,
|
21
21
|
ConnectorTypes,
|
22
|
+
ContentClassificationServiceTypes,
|
22
23
|
ContentFacetTypes,
|
23
24
|
ContentIndexingServiceTypes,
|
24
25
|
ContentPublishingFormats,
|
@@ -84,6 +85,7 @@ from .enums import (
|
|
84
85
|
PolicyTimeTypes,
|
85
86
|
ProductFacetTypes,
|
86
87
|
PromptStrategyTypes,
|
88
|
+
RegexSourceTypes,
|
87
89
|
ReplicateModels,
|
88
90
|
RepoFacetTypes,
|
89
91
|
RerankingModelServiceTypes,
|
@@ -359,6 +361,10 @@ class MedicalTherapyFacetInput(BaseModel):
|
|
359
361
|
facet: Optional[MedicalTherapyFacetTypes] = None
|
360
362
|
|
361
363
|
|
364
|
+
class RegexContentClassificationPropertiesInput(BaseModel):
|
365
|
+
rules: Optional[List[Optional["RegexClassificationRuleInput"]]] = None
|
366
|
+
|
367
|
+
|
362
368
|
class ProductFilter(BaseModel):
|
363
369
|
search: Optional[str] = None
|
364
370
|
order_by: Optional[OrderByTypes] = Field(alias="orderBy", default=None)
|
@@ -766,6 +772,10 @@ class H3IndexFilter(BaseModel):
|
|
766
772
|
key: Optional[str] = None
|
767
773
|
|
768
774
|
|
775
|
+
class ClassificationWorkflowJobInput(BaseModel):
|
776
|
+
connector: Optional["ContentClassificationConnectorInput"] = None
|
777
|
+
|
778
|
+
|
769
779
|
class ModelFilter(BaseModel):
|
770
780
|
types: Optional[List[Optional[ModelTypes]]] = None
|
771
781
|
service_types: Optional[List[Optional[ModelServiceTypes]]] = Field(
|
@@ -986,6 +996,7 @@ class GoogleDriveFeedPropertiesInput(BaseModel):
|
|
986
996
|
class IntegrationConnectorUpdateInput(BaseModel):
|
987
997
|
uri: Optional[str] = None
|
988
998
|
slack: Optional["SlackIntegrationPropertiesInput"] = None
|
999
|
+
email: Optional["EmailIntegrationPropertiesInput"] = None
|
989
1000
|
|
990
1001
|
|
991
1002
|
class MedicalDeviceFilter(BaseModel):
|
@@ -1051,6 +1062,11 @@ class AzureFileFeedPropertiesUpdateInput(BaseModel):
|
|
1051
1062
|
prefix: Optional[str] = None
|
1052
1063
|
|
1053
1064
|
|
1065
|
+
class PromptClassificationRuleInput(BaseModel):
|
1066
|
+
if_: Optional[str] = Field(alias="if", default=None)
|
1067
|
+
then: Optional[str] = None
|
1068
|
+
|
1069
|
+
|
1054
1070
|
class ProjectInput(BaseModel):
|
1055
1071
|
name: str
|
1056
1072
|
environment_type: EnvironmentTypes = Field(alias="environmentType")
|
@@ -1155,6 +1171,7 @@ class IntegrationConnectorInput(BaseModel):
|
|
1155
1171
|
type: IntegrationServiceTypes
|
1156
1172
|
uri: Optional[str] = None
|
1157
1173
|
slack: Optional["SlackIntegrationPropertiesInput"] = None
|
1174
|
+
email: Optional["EmailIntegrationPropertiesInput"] = None
|
1158
1175
|
|
1159
1176
|
|
1160
1177
|
class SummarizationStrategyInput(BaseModel):
|
@@ -1266,6 +1283,13 @@ class PointInput(BaseModel):
|
|
1266
1283
|
distance: Optional[float] = None
|
1267
1284
|
|
1268
1285
|
|
1286
|
+
class RegexClassificationRuleInput(BaseModel):
|
1287
|
+
type: Optional[RegexSourceTypes] = None
|
1288
|
+
path: Optional[str] = None
|
1289
|
+
matches: Optional[str] = None
|
1290
|
+
then: Optional[str] = None
|
1291
|
+
|
1292
|
+
|
1269
1293
|
class ContentPublishingConnectorInput(BaseModel):
|
1270
1294
|
type: ContentPublishingServiceTypes
|
1271
1295
|
format: ContentPublishingFormats
|
@@ -1464,6 +1488,10 @@ class EventFilter(BaseModel):
|
|
1464
1488
|
events: Optional[List["EntityReferenceFilter"]] = None
|
1465
1489
|
|
1466
1490
|
|
1491
|
+
class ClassificationWorkflowStageInput(BaseModel):
|
1492
|
+
jobs: Optional[List[Optional["ClassificationWorkflowJobInput"]]] = None
|
1493
|
+
|
1494
|
+
|
1467
1495
|
class RepoInput(BaseModel):
|
1468
1496
|
name: str
|
1469
1497
|
uri: Optional[Any] = None
|
@@ -1756,6 +1784,7 @@ class ContentFilter(BaseModel):
|
|
1756
1784
|
search_type: Optional[SearchTypes] = Field(alias="searchType", default=None)
|
1757
1785
|
query_type: Optional[SearchQueryTypes] = Field(alias="queryType", default=None)
|
1758
1786
|
number_similar: Optional[int] = Field(alias="numberSimilar", default=None)
|
1787
|
+
image: Optional[str] = None
|
1759
1788
|
disable_inheritance: Optional[bool] = Field(
|
1760
1789
|
alias="disableInheritance", default=None
|
1761
1790
|
)
|
@@ -2162,6 +2191,11 @@ class SiteFeedPropertiesInput(BaseModel):
|
|
2162
2191
|
read_limit: Optional[int] = Field(alias="readLimit", default=None)
|
2163
2192
|
|
2164
2193
|
|
2194
|
+
class ModelContentClassificationPropertiesInput(BaseModel):
|
2195
|
+
specification: Optional["EntityReferenceInput"] = None
|
2196
|
+
rules: Optional[List[Optional["PromptClassificationRuleInput"]]] = None
|
2197
|
+
|
2198
|
+
|
2165
2199
|
class DropboxFeedPropertiesUpdateInput(BaseModel):
|
2166
2200
|
path: Optional[str] = None
|
2167
2201
|
app_key: Optional[str] = Field(alias="appKey", default=None)
|
@@ -2178,6 +2212,14 @@ class RepoFacetInput(BaseModel):
|
|
2178
2212
|
facet: Optional[RepoFacetTypes] = None
|
2179
2213
|
|
2180
2214
|
|
2215
|
+
class ContentClassificationConnectorInput(BaseModel):
|
2216
|
+
type: Optional[ContentClassificationServiceTypes] = None
|
2217
|
+
content_type: Optional[ContentTypes] = Field(alias="contentType", default=None)
|
2218
|
+
file_type: Optional[FileTypes] = Field(alias="fileType", default=None)
|
2219
|
+
model: Optional["ModelContentClassificationPropertiesInput"] = None
|
2220
|
+
regex: Optional["RegexContentClassificationPropertiesInput"] = None
|
2221
|
+
|
2222
|
+
|
2181
2223
|
class EnrichmentWorkflowStageInput(BaseModel):
|
2182
2224
|
link: Optional["LinkStrategyInput"] = None
|
2183
2225
|
jobs: Optional[List[Optional["EnrichmentWorkflowJobInput"]]] = None
|
@@ -2623,6 +2665,12 @@ class RevisionStrategyInput(BaseModel):
|
|
2623
2665
|
count: Optional[int] = None
|
2624
2666
|
|
2625
2667
|
|
2668
|
+
class EmailIntegrationPropertiesInput(BaseModel):
|
2669
|
+
subject: str
|
2670
|
+
from_: str = Field(alias="from")
|
2671
|
+
to: List[str]
|
2672
|
+
|
2673
|
+
|
2626
2674
|
class ConversationUpdateInput(BaseModel):
|
2627
2675
|
id: str
|
2628
2676
|
name: Optional[str] = None
|
@@ -2667,6 +2715,7 @@ class WorkflowUpdateInput(BaseModel):
|
|
2667
2715
|
preparation: Optional["PreparationWorkflowStageInput"] = None
|
2668
2716
|
extraction: Optional["ExtractionWorkflowStageInput"] = None
|
2669
2717
|
enrichment: Optional["EnrichmentWorkflowStageInput"] = None
|
2718
|
+
classification: Optional["ClassificationWorkflowStageInput"] = None
|
2670
2719
|
storage: Optional["StorageWorkflowStageInput"] = None
|
2671
2720
|
actions: Optional[List[Optional["WorkflowActionInput"]]] = None
|
2672
2721
|
|
@@ -2876,6 +2925,7 @@ class WorkflowInput(BaseModel):
|
|
2876
2925
|
preparation: Optional["PreparationWorkflowStageInput"] = None
|
2877
2926
|
extraction: Optional["ExtractionWorkflowStageInput"] = None
|
2878
2927
|
enrichment: Optional["EnrichmentWorkflowStageInput"] = None
|
2928
|
+
classification: Optional["ClassificationWorkflowStageInput"] = None
|
2879
2929
|
storage: Optional["StorageWorkflowStageInput"] = None
|
2880
2930
|
actions: Optional[List[Optional["WorkflowActionInput"]]] = None
|
2881
2931
|
|
@@ -3459,6 +3509,7 @@ StorageWorkflowStageInput.model_rebuild()
|
|
3459
3509
|
WorkflowFilter.model_rebuild()
|
3460
3510
|
MedicalIndicationInput.model_rebuild()
|
3461
3511
|
UserFilter.model_rebuild()
|
3512
|
+
RegexContentClassificationPropertiesInput.model_rebuild()
|
3462
3513
|
ProductFilter.model_rebuild()
|
3463
3514
|
EnrichmentWorkflowJobInput.model_rebuild()
|
3464
3515
|
ContentUpdateInput.model_rebuild()
|
@@ -3472,6 +3523,7 @@ EmbeddingsStrategyInput.model_rebuild()
|
|
3472
3523
|
ConnectorFilter.model_rebuild()
|
3473
3524
|
ProjectUpdateInput.model_rebuild()
|
3474
3525
|
MedicalStudyFilter.model_rebuild()
|
3526
|
+
ClassificationWorkflowJobInput.model_rebuild()
|
3475
3527
|
CollectionUpdateInput.model_rebuild()
|
3476
3528
|
SpecificationInput.model_rebuild()
|
3477
3529
|
PackageMetadataInput.model_rebuild()
|
@@ -3503,6 +3555,7 @@ AudioMetadataInput.model_rebuild()
|
|
3503
3555
|
SpecificationUpdateInput.model_rebuild()
|
3504
3556
|
ContentPublishingConnectorUpdateInput.model_rebuild()
|
3505
3557
|
EventFilter.model_rebuild()
|
3558
|
+
ClassificationWorkflowStageInput.model_rebuild()
|
3506
3559
|
ObservationReferenceFilter.model_rebuild()
|
3507
3560
|
MedicalGuidelineFilter.model_rebuild()
|
3508
3561
|
EmailFeedPropertiesInput.model_rebuild()
|
@@ -3531,6 +3584,8 @@ MedicalDrugUpdateInput.model_rebuild()
|
|
3531
3584
|
PersonInput.model_rebuild()
|
3532
3585
|
SoftwareFilter.model_rebuild()
|
3533
3586
|
SiteFeedPropertiesInput.model_rebuild()
|
3587
|
+
ModelContentClassificationPropertiesInput.model_rebuild()
|
3588
|
+
ContentClassificationConnectorInput.model_rebuild()
|
3534
3589
|
EnrichmentWorkflowStageInput.model_rebuild()
|
3535
3590
|
PersonFilter.model_rebuild()
|
3536
3591
|
FeedFilter.model_rebuild()
|
graphlit_api/lookup_credits.py
CHANGED
@@ -26,6 +26,7 @@ class LookupCreditsLookupCredits(BaseModel):
|
|
26
26
|
indexing_ratio: Optional[Any] = Field(alias="indexingRatio")
|
27
27
|
preparation_ratio: Optional[Any] = Field(alias="preparationRatio")
|
28
28
|
extraction_ratio: Optional[Any] = Field(alias="extractionRatio")
|
29
|
+
classification_ratio: Optional[Any] = Field(alias="classificationRatio")
|
29
30
|
enrichment_ratio: Optional[Any] = Field(alias="enrichmentRatio")
|
30
31
|
publishing_ratio: Optional[Any] = Field(alias="publishingRatio")
|
31
32
|
search_ratio: Optional[Any] = Field(alias="searchRatio")
|