graphlit-client 1.0.20260131001__py3-none-any.whl → 1.0.20260205001__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 +78 -48
- graphlit_api/client.py +147 -0
- graphlit_api/count_emotions.py +21 -0
- graphlit_api/create_emotion.py +22 -0
- graphlit_api/create_workflow.py +5 -0
- graphlit_api/delete_all_emotions.py +23 -0
- graphlit_api/delete_emotion.py +23 -0
- graphlit_api/delete_emotions.py +23 -0
- graphlit_api/enums.py +26 -0
- graphlit_api/extract_observables.py +6 -0
- graphlit_api/get_content.py +0 -55
- graphlit_api/get_conversation.py +0 -57
- graphlit_api/get_emotion.py +29 -0
- graphlit_api/get_fact.py +2 -1
- graphlit_api/get_feed.py +2 -0
- graphlit_api/get_specification.py +2 -0
- graphlit_api/get_workflow.py +5 -0
- graphlit_api/input_types.py +76 -0
- graphlit_api/lookup_contents.py +0 -63
- graphlit_api/operations.py +132 -103
- graphlit_api/query_emotions.py +35 -0
- graphlit_api/query_facts.py +2 -1
- graphlit_api/query_facts_clusters.py +2 -1
- graphlit_api/query_feeds.py +2 -0
- graphlit_api/query_specifications.py +2 -0
- graphlit_api/query_workflows.py +5 -0
- graphlit_api/retrieve_facts.py +8 -1
- graphlit_api/update_emotion.py +22 -0
- graphlit_api/update_workflow.py +5 -0
- graphlit_api/upsert_workflow.py +5 -0
- {graphlit_client-1.0.20260131001.dist-info → graphlit_client-1.0.20260205001.dist-info}/METADATA +1 -1
- {graphlit_client-1.0.20260131001.dist-info → graphlit_client-1.0.20260205001.dist-info}/RECORD +35 -27
- {graphlit_client-1.0.20260131001.dist-info → graphlit_client-1.0.20260205001.dist-info}/WHEEL +0 -0
- {graphlit_client-1.0.20260131001.dist-info → graphlit_client-1.0.20260205001.dist-info}/licenses/LICENSE +0 -0
- {graphlit_client-1.0.20260131001.dist-info → graphlit_client-1.0.20260205001.dist-info}/top_level.txt +0 -0
graphlit_api/client.py
CHANGED
|
@@ -19,6 +19,7 @@ from .count_collections import CountCollections
|
|
|
19
19
|
from .count_connectors import CountConnectors
|
|
20
20
|
from .count_contents import CountContents
|
|
21
21
|
from .count_conversations import CountConversations
|
|
22
|
+
from .count_emotions import CountEmotions
|
|
22
23
|
from .count_events import CountEvents
|
|
23
24
|
from .count_facts import CountFacts
|
|
24
25
|
from .count_feeds import CountFeeds
|
|
@@ -51,6 +52,7 @@ from .create_category import CreateCategory
|
|
|
51
52
|
from .create_collection import CreateCollection
|
|
52
53
|
from .create_connector import CreateConnector
|
|
53
54
|
from .create_conversation import CreateConversation
|
|
55
|
+
from .create_emotion import CreateEmotion
|
|
54
56
|
from .create_event import CreateEvent
|
|
55
57
|
from .create_fact import CreateFact
|
|
56
58
|
from .create_feed import CreateFeed
|
|
@@ -86,6 +88,7 @@ from .delete_all_categories import DeleteAllCategories
|
|
|
86
88
|
from .delete_all_collections import DeleteAllCollections
|
|
87
89
|
from .delete_all_contents import DeleteAllContents
|
|
88
90
|
from .delete_all_conversations import DeleteAllConversations
|
|
91
|
+
from .delete_all_emotions import DeleteAllEmotions
|
|
89
92
|
from .delete_all_events import DeleteAllEvents
|
|
90
93
|
from .delete_all_facts import DeleteAllFacts
|
|
91
94
|
from .delete_all_feeds import DeleteAllFeeds
|
|
@@ -121,6 +124,8 @@ from .delete_content import DeleteContent
|
|
|
121
124
|
from .delete_contents import DeleteContents
|
|
122
125
|
from .delete_conversation import DeleteConversation
|
|
123
126
|
from .delete_conversations import DeleteConversations
|
|
127
|
+
from .delete_emotion import DeleteEmotion
|
|
128
|
+
from .delete_emotions import DeleteEmotions
|
|
124
129
|
from .delete_event import DeleteEvent
|
|
125
130
|
from .delete_events import DeleteEvents
|
|
126
131
|
from .delete_fact import DeleteFact
|
|
@@ -206,6 +211,7 @@ from .get_collection import GetCollection
|
|
|
206
211
|
from .get_connector import GetConnector
|
|
207
212
|
from .get_content import GetContent
|
|
208
213
|
from .get_conversation import GetConversation
|
|
214
|
+
from .get_emotion import GetEmotion
|
|
209
215
|
from .get_event import GetEvent
|
|
210
216
|
from .get_fact import GetFact
|
|
211
217
|
from .get_feed import GetFeed
|
|
@@ -275,6 +281,9 @@ from .input_types import (
|
|
|
275
281
|
DiscordChannelsInput,
|
|
276
282
|
DiscordGuildsInput,
|
|
277
283
|
DropboxFoldersInput,
|
|
284
|
+
EmotionFilter,
|
|
285
|
+
EmotionInput,
|
|
286
|
+
EmotionUpdateInput,
|
|
278
287
|
EntityClustersInput,
|
|
279
288
|
EntityEnrichmentConnectorInput,
|
|
280
289
|
EntityReferenceInput,
|
|
@@ -415,6 +424,7 @@ from .operations import (
|
|
|
415
424
|
COUNT_CONNECTORS_GQL,
|
|
416
425
|
COUNT_CONTENTS_GQL,
|
|
417
426
|
COUNT_CONVERSATIONS_GQL,
|
|
427
|
+
COUNT_EMOTIONS_GQL,
|
|
418
428
|
COUNT_EVENTS_GQL,
|
|
419
429
|
COUNT_FACTS_GQL,
|
|
420
430
|
COUNT_FEEDS_GQL,
|
|
@@ -447,6 +457,7 @@ from .operations import (
|
|
|
447
457
|
CREATE_COLLECTION_GQL,
|
|
448
458
|
CREATE_CONNECTOR_GQL,
|
|
449
459
|
CREATE_CONVERSATION_GQL,
|
|
460
|
+
CREATE_EMOTION_GQL,
|
|
450
461
|
CREATE_EVENT_GQL,
|
|
451
462
|
CREATE_FACT_GQL,
|
|
452
463
|
CREATE_FEED_GQL,
|
|
@@ -482,6 +493,7 @@ from .operations import (
|
|
|
482
493
|
DELETE_ALL_COLLECTIONS_GQL,
|
|
483
494
|
DELETE_ALL_CONTENTS_GQL,
|
|
484
495
|
DELETE_ALL_CONVERSATIONS_GQL,
|
|
496
|
+
DELETE_ALL_EMOTIONS_GQL,
|
|
485
497
|
DELETE_ALL_EVENTS_GQL,
|
|
486
498
|
DELETE_ALL_FACTS_GQL,
|
|
487
499
|
DELETE_ALL_FEEDS_GQL,
|
|
@@ -517,6 +529,8 @@ from .operations import (
|
|
|
517
529
|
DELETE_CONTENTS_GQL,
|
|
518
530
|
DELETE_CONVERSATION_GQL,
|
|
519
531
|
DELETE_CONVERSATIONS_GQL,
|
|
532
|
+
DELETE_EMOTION_GQL,
|
|
533
|
+
DELETE_EMOTIONS_GQL,
|
|
520
534
|
DELETE_EVENT_GQL,
|
|
521
535
|
DELETE_EVENTS_GQL,
|
|
522
536
|
DELETE_FACT_GQL,
|
|
@@ -594,6 +608,7 @@ from .operations import (
|
|
|
594
608
|
GET_CONNECTOR_GQL,
|
|
595
609
|
GET_CONTENT_GQL,
|
|
596
610
|
GET_CONVERSATION_GQL,
|
|
611
|
+
GET_EMOTION_GQL,
|
|
597
612
|
GET_EVENT_GQL,
|
|
598
613
|
GET_FACT_GQL,
|
|
599
614
|
GET_FEED_GQL,
|
|
@@ -668,6 +683,7 @@ from .operations import (
|
|
|
668
683
|
QUERY_DISCORD_CHANNELS_GQL,
|
|
669
684
|
QUERY_DISCORD_GUILDS_GQL,
|
|
670
685
|
QUERY_DROPBOX_FOLDERS_GQL,
|
|
686
|
+
QUERY_EMOTIONS_GQL,
|
|
671
687
|
QUERY_EVENTS_CLUSTERS_GQL,
|
|
672
688
|
QUERY_EVENTS_GQL,
|
|
673
689
|
QUERY_FACTS_CLUSTERS_GQL,
|
|
@@ -771,6 +787,7 @@ from .operations import (
|
|
|
771
787
|
UPDATE_CONNECTOR_GQL,
|
|
772
788
|
UPDATE_CONTENT_GQL,
|
|
773
789
|
UPDATE_CONVERSATION_GQL,
|
|
790
|
+
UPDATE_EMOTION_GQL,
|
|
774
791
|
UPDATE_EVENT_GQL,
|
|
775
792
|
UPDATE_FACT_GQL,
|
|
776
793
|
UPDATE_FEED_GQL,
|
|
@@ -838,6 +855,7 @@ from .query_credits import QueryCredits
|
|
|
838
855
|
from .query_discord_channels import QueryDiscordChannels
|
|
839
856
|
from .query_discord_guilds import QueryDiscordGuilds
|
|
840
857
|
from .query_dropbox_folders import QueryDropboxFolders
|
|
858
|
+
from .query_emotions import QueryEmotions
|
|
841
859
|
from .query_events import QueryEvents
|
|
842
860
|
from .query_events_clusters import QueryEventsClusters
|
|
843
861
|
from .query_facts import QueryFacts
|
|
@@ -943,6 +961,7 @@ from .update_collection import UpdateCollection
|
|
|
943
961
|
from .update_connector import UpdateConnector
|
|
944
962
|
from .update_content import UpdateContent
|
|
945
963
|
from .update_conversation import UpdateConversation
|
|
964
|
+
from .update_emotion import UpdateEmotion
|
|
946
965
|
from .update_event import UpdateEvent
|
|
947
966
|
from .update_fact import UpdateFact
|
|
948
967
|
from .update_feed import UpdateFeed
|
|
@@ -2989,6 +3008,134 @@ class Client(AsyncBaseClient):
|
|
|
2989
3008
|
data = self.get_data(response)
|
|
2990
3009
|
return UpdateConversation.model_validate(data)
|
|
2991
3010
|
|
|
3011
|
+
async def count_emotions(
|
|
3012
|
+
self,
|
|
3013
|
+
filter: Union[Optional[EmotionFilter], UnsetType] = UNSET,
|
|
3014
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
|
3015
|
+
**kwargs: Any
|
|
3016
|
+
) -> CountEmotions:
|
|
3017
|
+
variables: dict[str, object] = {
|
|
3018
|
+
"filter": filter,
|
|
3019
|
+
"correlationId": correlation_id,
|
|
3020
|
+
}
|
|
3021
|
+
response = await self.execute(
|
|
3022
|
+
query=COUNT_EMOTIONS_GQL,
|
|
3023
|
+
operation_name="CountEmotions",
|
|
3024
|
+
variables=variables,
|
|
3025
|
+
**kwargs
|
|
3026
|
+
)
|
|
3027
|
+
data = self.get_data(response)
|
|
3028
|
+
return CountEmotions.model_validate(data)
|
|
3029
|
+
|
|
3030
|
+
async def create_emotion(
|
|
3031
|
+
self, emotion: EmotionInput, **kwargs: Any
|
|
3032
|
+
) -> CreateEmotion:
|
|
3033
|
+
variables: dict[str, object] = {"emotion": emotion}
|
|
3034
|
+
response = await self.execute(
|
|
3035
|
+
query=CREATE_EMOTION_GQL,
|
|
3036
|
+
operation_name="CreateEmotion",
|
|
3037
|
+
variables=variables,
|
|
3038
|
+
**kwargs
|
|
3039
|
+
)
|
|
3040
|
+
data = self.get_data(response)
|
|
3041
|
+
return CreateEmotion.model_validate(data)
|
|
3042
|
+
|
|
3043
|
+
async def delete_all_emotions(
|
|
3044
|
+
self,
|
|
3045
|
+
filter: Union[Optional[EmotionFilter], UnsetType] = UNSET,
|
|
3046
|
+
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
|
|
3047
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
|
3048
|
+
**kwargs: Any
|
|
3049
|
+
) -> DeleteAllEmotions:
|
|
3050
|
+
variables: dict[str, object] = {
|
|
3051
|
+
"filter": filter,
|
|
3052
|
+
"isSynchronous": is_synchronous,
|
|
3053
|
+
"correlationId": correlation_id,
|
|
3054
|
+
}
|
|
3055
|
+
response = await self.execute(
|
|
3056
|
+
query=DELETE_ALL_EMOTIONS_GQL,
|
|
3057
|
+
operation_name="DeleteAllEmotions",
|
|
3058
|
+
variables=variables,
|
|
3059
|
+
**kwargs
|
|
3060
|
+
)
|
|
3061
|
+
data = self.get_data(response)
|
|
3062
|
+
return DeleteAllEmotions.model_validate(data)
|
|
3063
|
+
|
|
3064
|
+
async def delete_emotion(self, id: str, **kwargs: Any) -> DeleteEmotion:
|
|
3065
|
+
variables: dict[str, object] = {"id": id}
|
|
3066
|
+
response = await self.execute(
|
|
3067
|
+
query=DELETE_EMOTION_GQL,
|
|
3068
|
+
operation_name="DeleteEmotion",
|
|
3069
|
+
variables=variables,
|
|
3070
|
+
**kwargs
|
|
3071
|
+
)
|
|
3072
|
+
data = self.get_data(response)
|
|
3073
|
+
return DeleteEmotion.model_validate(data)
|
|
3074
|
+
|
|
3075
|
+
async def delete_emotions(
|
|
3076
|
+
self,
|
|
3077
|
+
ids: list[str],
|
|
3078
|
+
is_synchronous: Union[Optional[bool], UnsetType] = UNSET,
|
|
3079
|
+
**kwargs: Any
|
|
3080
|
+
) -> DeleteEmotions:
|
|
3081
|
+
variables: dict[str, object] = {"ids": ids, "isSynchronous": is_synchronous}
|
|
3082
|
+
response = await self.execute(
|
|
3083
|
+
query=DELETE_EMOTIONS_GQL,
|
|
3084
|
+
operation_name="DeleteEmotions",
|
|
3085
|
+
variables=variables,
|
|
3086
|
+
**kwargs
|
|
3087
|
+
)
|
|
3088
|
+
data = self.get_data(response)
|
|
3089
|
+
return DeleteEmotions.model_validate(data)
|
|
3090
|
+
|
|
3091
|
+
async def get_emotion(
|
|
3092
|
+
self,
|
|
3093
|
+
id: str,
|
|
3094
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
|
3095
|
+
**kwargs: Any
|
|
3096
|
+
) -> GetEmotion:
|
|
3097
|
+
variables: dict[str, object] = {"id": id, "correlationId": correlation_id}
|
|
3098
|
+
response = await self.execute(
|
|
3099
|
+
query=GET_EMOTION_GQL,
|
|
3100
|
+
operation_name="GetEmotion",
|
|
3101
|
+
variables=variables,
|
|
3102
|
+
**kwargs
|
|
3103
|
+
)
|
|
3104
|
+
data = self.get_data(response)
|
|
3105
|
+
return GetEmotion.model_validate(data)
|
|
3106
|
+
|
|
3107
|
+
async def query_emotions(
|
|
3108
|
+
self,
|
|
3109
|
+
filter: Union[Optional[EmotionFilter], UnsetType] = UNSET,
|
|
3110
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
|
3111
|
+
**kwargs: Any
|
|
3112
|
+
) -> QueryEmotions:
|
|
3113
|
+
variables: dict[str, object] = {
|
|
3114
|
+
"filter": filter,
|
|
3115
|
+
"correlationId": correlation_id,
|
|
3116
|
+
}
|
|
3117
|
+
response = await self.execute(
|
|
3118
|
+
query=QUERY_EMOTIONS_GQL,
|
|
3119
|
+
operation_name="QueryEmotions",
|
|
3120
|
+
variables=variables,
|
|
3121
|
+
**kwargs
|
|
3122
|
+
)
|
|
3123
|
+
data = self.get_data(response)
|
|
3124
|
+
return QueryEmotions.model_validate(data)
|
|
3125
|
+
|
|
3126
|
+
async def update_emotion(
|
|
3127
|
+
self, emotion: EmotionUpdateInput, **kwargs: Any
|
|
3128
|
+
) -> UpdateEmotion:
|
|
3129
|
+
variables: dict[str, object] = {"emotion": emotion}
|
|
3130
|
+
response = await self.execute(
|
|
3131
|
+
query=UPDATE_EMOTION_GQL,
|
|
3132
|
+
operation_name="UpdateEmotion",
|
|
3133
|
+
variables=variables,
|
|
3134
|
+
**kwargs
|
|
3135
|
+
)
|
|
3136
|
+
data = self.get_data(response)
|
|
3137
|
+
return UpdateEmotion.model_validate(data)
|
|
3138
|
+
|
|
2992
3139
|
async def count_events(
|
|
2993
3140
|
self,
|
|
2994
3141
|
filter: Union[Optional[EventFilter], 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 CountEmotions(BaseModel):
|
|
12
|
+
count_emotions: Optional["CountEmotionsCountEmotions"] = Field(
|
|
13
|
+
alias="countEmotions"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CountEmotionsCountEmotions(BaseModel):
|
|
18
|
+
count: Optional[Any]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
CountEmotions.model_rebuild()
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
|
|
10
|
+
|
|
11
|
+
class CreateEmotion(BaseModel):
|
|
12
|
+
create_emotion: Optional["CreateEmotionCreateEmotion"] = Field(
|
|
13
|
+
alias="createEmotion"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateEmotionCreateEmotion(BaseModel):
|
|
18
|
+
id: str
|
|
19
|
+
name: str
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
CreateEmotion.model_rebuild()
|
graphlit_api/create_workflow.py
CHANGED
|
@@ -257,6 +257,7 @@ class CreateWorkflowCreateWorkflowExtractionJobsConnector(BaseModel):
|
|
|
257
257
|
model_text: Optional[
|
|
258
258
|
"CreateWorkflowCreateWorkflowExtractionJobsConnectorModelText"
|
|
259
259
|
] = Field(alias="modelText")
|
|
260
|
+
hume: Optional["CreateWorkflowCreateWorkflowExtractionJobsConnectorHume"]
|
|
260
261
|
|
|
261
262
|
|
|
262
263
|
class CreateWorkflowCreateWorkflowExtractionJobsConnectorAzureText(BaseModel):
|
|
@@ -296,6 +297,10 @@ class CreateWorkflowCreateWorkflowExtractionJobsConnectorModelTextSpecification(
|
|
|
296
297
|
id: str
|
|
297
298
|
|
|
298
299
|
|
|
300
|
+
class CreateWorkflowCreateWorkflowExtractionJobsConnectorHume(BaseModel):
|
|
301
|
+
confidence_threshold: Optional[float] = Field(alias="confidenceThreshold")
|
|
302
|
+
|
|
303
|
+
|
|
299
304
|
class CreateWorkflowCreateWorkflowClassification(BaseModel):
|
|
300
305
|
jobs: Optional[list[Optional["CreateWorkflowCreateWorkflowClassificationJobs"]]]
|
|
301
306
|
|
|
@@ -0,0 +1,23 @@
|
|
|
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 EntityState
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteAllEmotions(BaseModel):
|
|
13
|
+
delete_all_emotions: Optional[
|
|
14
|
+
list[Optional["DeleteAllEmotionsDeleteAllEmotions"]]
|
|
15
|
+
] = Field(alias="deleteAllEmotions")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeleteAllEmotionsDeleteAllEmotions(BaseModel):
|
|
19
|
+
id: str
|
|
20
|
+
state: EntityState
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DeleteAllEmotions.model_rebuild()
|
|
@@ -0,0 +1,23 @@
|
|
|
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 EntityState
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteEmotion(BaseModel):
|
|
13
|
+
delete_emotion: Optional["DeleteEmotionDeleteEmotion"] = Field(
|
|
14
|
+
alias="deleteEmotion"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeleteEmotionDeleteEmotion(BaseModel):
|
|
19
|
+
id: str
|
|
20
|
+
state: EntityState
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DeleteEmotion.model_rebuild()
|
|
@@ -0,0 +1,23 @@
|
|
|
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 EntityState
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteEmotions(BaseModel):
|
|
13
|
+
delete_emotions: Optional[list[Optional["DeleteEmotionsDeleteEmotions"]]] = Field(
|
|
14
|
+
alias="deleteEmotions"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeleteEmotionsDeleteEmotions(BaseModel):
|
|
19
|
+
id: str
|
|
20
|
+
state: EntityState
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DeleteEmotions.model_rebuild()
|
graphlit_api/enums.py
CHANGED
|
@@ -193,6 +193,7 @@ class SourceTypes(str, Enum):
|
|
|
193
193
|
class ObservableTypes(str, Enum):
|
|
194
194
|
CATEGORY = "CATEGORY"
|
|
195
195
|
LABEL = "LABEL"
|
|
196
|
+
EMOTION = "EMOTION"
|
|
196
197
|
EVENT = "EVENT"
|
|
197
198
|
INVESTMENT = "INVESTMENT"
|
|
198
199
|
INVESTMENT_FUND = "INVESTMENT_FUND"
|
|
@@ -215,6 +216,10 @@ class ObservableTypes(str, Enum):
|
|
|
215
216
|
MEDICAL_PROCEDURE = "MEDICAL_PROCEDURE"
|
|
216
217
|
|
|
217
218
|
|
|
219
|
+
class EmotionFacetTypes(str, Enum):
|
|
220
|
+
CREATION_DATE = "CREATION_DATE"
|
|
221
|
+
|
|
222
|
+
|
|
218
223
|
class LinkTypes(str, Enum):
|
|
219
224
|
DROPBOX = "DROPBOX"
|
|
220
225
|
TYPE_FORM = "TYPE_FORM"
|
|
@@ -379,6 +384,7 @@ class FileTypes(str, Enum):
|
|
|
379
384
|
POINT_CLOUD = "POINT_CLOUD"
|
|
380
385
|
GEOMETRY = "GEOMETRY"
|
|
381
386
|
DRAWING = "DRAWING"
|
|
387
|
+
SUBTITLES = "SUBTITLES"
|
|
382
388
|
MANIFEST = "MANIFEST"
|
|
383
389
|
UNKNOWN = "UNKNOWN"
|
|
384
390
|
|
|
@@ -502,6 +508,7 @@ class EntityExtractionServiceTypes(str, Enum):
|
|
|
502
508
|
OPEN_AI_IMAGE = "OPEN_AI_IMAGE"
|
|
503
509
|
AZURE_COGNITIVE_SERVICES_IMAGE = "AZURE_COGNITIVE_SERVICES_IMAGE"
|
|
504
510
|
AZURE_COGNITIVE_SERVICES_TEXT = "AZURE_COGNITIVE_SERVICES_TEXT"
|
|
511
|
+
HUME_EMOTION = "HUME_EMOTION"
|
|
505
512
|
|
|
506
513
|
|
|
507
514
|
class CalendarReminderMethod(str, Enum):
|
|
@@ -727,6 +734,10 @@ class AnthropicModels(str, Enum):
|
|
|
727
734
|
CLAUDE_4_5_SONNET_20250929 = "CLAUDE_4_5_SONNET_20250929"
|
|
728
735
|
CLAUDE_4_5_OPUS = "CLAUDE_4_5_OPUS"
|
|
729
736
|
CLAUDE_4_5_OPUS_20251101 = "CLAUDE_4_5_OPUS_20251101"
|
|
737
|
+
CLAUDE_4_6_OPUS = "CLAUDE_4_6_OPUS"
|
|
738
|
+
CLAUDE_4_6_OPUS_20260205 = "CLAUDE_4_6_OPUS_20260205"
|
|
739
|
+
CLAUDE_4_6_OPUS_1_M = "CLAUDE_4_6_OPUS_1_M"
|
|
740
|
+
CLAUDE_4_6_OPUS_1_M_20260205 = "CLAUDE_4_6_OPUS_1_M_20260205"
|
|
730
741
|
CLAUDE_4_OPUS = "CLAUDE_4_OPUS"
|
|
731
742
|
CLAUDE_4_OPUS_20250514 = "CLAUDE_4_OPUS_20250514"
|
|
732
743
|
CLAUDE_4_1_OPUS = "CLAUDE_4_1_OPUS"
|
|
@@ -921,6 +932,13 @@ class EntityResolutionStrategyTypes(str, Enum):
|
|
|
921
932
|
AUTOMATIC = "AUTOMATIC"
|
|
922
933
|
|
|
923
934
|
|
|
935
|
+
class AnthropicEffortLevels(str, Enum):
|
|
936
|
+
LOW = "LOW"
|
|
937
|
+
MEDIUM = "MEDIUM"
|
|
938
|
+
HIGH = "HIGH"
|
|
939
|
+
MAX = "MAX"
|
|
940
|
+
|
|
941
|
+
|
|
924
942
|
class StoragePolicyTypes(str, Enum):
|
|
925
943
|
ARCHIVE = "ARCHIVE"
|
|
926
944
|
MINIMIZE = "MINIMIZE"
|
|
@@ -1192,6 +1210,12 @@ class OneDriveAuthenticationTypes(str, Enum):
|
|
|
1192
1210
|
CONNECTOR = "CONNECTOR"
|
|
1193
1211
|
|
|
1194
1212
|
|
|
1213
|
+
class MeetingContentTypes(str, Enum):
|
|
1214
|
+
TRANSCRIPT = "TRANSCRIPT"
|
|
1215
|
+
RECORDING = "RECORDING"
|
|
1216
|
+
PREFERRED = "PREFERRED"
|
|
1217
|
+
|
|
1218
|
+
|
|
1195
1219
|
class EmbeddingTypes(str, Enum):
|
|
1196
1220
|
TEXT = "TEXT"
|
|
1197
1221
|
IMAGE = "IMAGE"
|
|
@@ -1465,6 +1489,7 @@ class EntityTypes(str, Enum):
|
|
|
1465
1489
|
INVESTMENT_FUND = "INVESTMENT_FUND"
|
|
1466
1490
|
JOB = "JOB"
|
|
1467
1491
|
LABEL = "LABEL"
|
|
1492
|
+
EMOTION = "EMOTION"
|
|
1468
1493
|
METADATA = "METADATA"
|
|
1469
1494
|
MEDICAL_STUDY = "MEDICAL_STUDY"
|
|
1470
1495
|
MEDICAL_CONDITION = "MEDICAL_CONDITION"
|
|
@@ -1586,6 +1611,7 @@ class AsanaAuthenticationTypes(str, Enum):
|
|
|
1586
1611
|
|
|
1587
1612
|
|
|
1588
1613
|
class OpenAIReasoningEffortLevels(str, Enum):
|
|
1614
|
+
MINIMAL = "MINIMAL"
|
|
1589
1615
|
LOW = "LOW"
|
|
1590
1616
|
MEDIUM = "MEDIUM"
|
|
1591
1617
|
HIGH = "HIGH"
|
|
@@ -19,6 +19,7 @@ class ExtractObservablesExtractObservables(BaseModel):
|
|
|
19
19
|
categories: Optional[
|
|
20
20
|
list[Optional["ExtractObservablesExtractObservablesCategories"]]
|
|
21
21
|
]
|
|
22
|
+
emotions: Optional[list[Optional["ExtractObservablesExtractObservablesEmotions"]]]
|
|
22
23
|
persons: Optional[list[Optional["ExtractObservablesExtractObservablesPersons"]]]
|
|
23
24
|
organizations: Optional[
|
|
24
25
|
list[Optional["ExtractObservablesExtractObservablesOrganizations"]]
|
|
@@ -79,6 +80,11 @@ class ExtractObservablesExtractObservablesCategories(BaseModel):
|
|
|
79
80
|
metadata: Optional[str]
|
|
80
81
|
|
|
81
82
|
|
|
83
|
+
class ExtractObservablesExtractObservablesEmotions(BaseModel):
|
|
84
|
+
name: Optional[str]
|
|
85
|
+
metadata: Optional[str]
|
|
86
|
+
|
|
87
|
+
|
|
82
88
|
class ExtractObservablesExtractObservablesPersons(BaseModel):
|
|
83
89
|
name: Optional[str]
|
|
84
90
|
metadata: Optional[str]
|
graphlit_api/get_content.py
CHANGED
|
@@ -24,7 +24,6 @@ from .enums import (
|
|
|
24
24
|
ObservableTypes,
|
|
25
25
|
OccurrenceTypes,
|
|
26
26
|
OrientationTypes,
|
|
27
|
-
SourceTypes,
|
|
28
27
|
TextRoles,
|
|
29
28
|
)
|
|
30
29
|
|
|
@@ -560,60 +559,10 @@ class GetContentContentFacts(BaseModel):
|
|
|
560
559
|
valid_at: Optional[Any] = Field(alias="validAt")
|
|
561
560
|
invalid_at: Optional[Any] = Field(alias="invalidAt")
|
|
562
561
|
state: EntityState
|
|
563
|
-
mentions: Optional[list[Optional["GetContentContentFactsMentions"]]]
|
|
564
|
-
assertions: Optional[list[Optional["GetContentContentFactsAssertions"]]]
|
|
565
|
-
feeds: Optional[list[Optional["GetContentContentFactsFeeds"]]]
|
|
566
|
-
content: Optional["GetContentContentFactsContent"]
|
|
567
|
-
conversation: Optional["GetContentContentFactsConversation"]
|
|
568
|
-
source_type: Optional[SourceTypes] = Field(alias="sourceType")
|
|
569
562
|
category: Optional[FactCategory]
|
|
570
563
|
confidence: Optional[float]
|
|
571
564
|
|
|
572
565
|
|
|
573
|
-
class GetContentContentFactsMentions(BaseModel):
|
|
574
|
-
type: Optional[ObservableTypes]
|
|
575
|
-
observable: Optional["GetContentContentFactsMentionsObservable"]
|
|
576
|
-
start: Optional[int]
|
|
577
|
-
end: Optional[int]
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
class GetContentContentFactsMentionsObservable(BaseModel):
|
|
581
|
-
id: str
|
|
582
|
-
name: Optional[str]
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
class GetContentContentFactsAssertions(BaseModel):
|
|
586
|
-
text: str
|
|
587
|
-
mentions: Optional[list[Optional["GetContentContentFactsAssertionsMentions"]]]
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
class GetContentContentFactsAssertionsMentions(BaseModel):
|
|
591
|
-
type: Optional[ObservableTypes]
|
|
592
|
-
observable: Optional["GetContentContentFactsAssertionsMentionsObservable"]
|
|
593
|
-
start: Optional[int]
|
|
594
|
-
end: Optional[int]
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
class GetContentContentFactsAssertionsMentionsObservable(BaseModel):
|
|
598
|
-
id: str
|
|
599
|
-
name: Optional[str]
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
class GetContentContentFactsFeeds(BaseModel):
|
|
603
|
-
id: str
|
|
604
|
-
name: str
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
class GetContentContentFactsContent(BaseModel):
|
|
608
|
-
id: str
|
|
609
|
-
name: str
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
class GetContentContentFactsConversation(BaseModel):
|
|
613
|
-
id: str
|
|
614
|
-
name: str
|
|
615
|
-
|
|
616
|
-
|
|
617
566
|
class GetContentContentWorkflow(BaseModel):
|
|
618
567
|
id: str
|
|
619
568
|
name: str
|
|
@@ -674,8 +623,4 @@ GetContentContentPost.model_rebuild()
|
|
|
674
623
|
GetContentContentMeeting.model_rebuild()
|
|
675
624
|
GetContentContentObservations.model_rebuild()
|
|
676
625
|
GetContentContentObservationsOccurrences.model_rebuild()
|
|
677
|
-
GetContentContentFacts.model_rebuild()
|
|
678
|
-
GetContentContentFactsMentions.model_rebuild()
|
|
679
|
-
GetContentContentFactsAssertions.model_rebuild()
|
|
680
|
-
GetContentContentFactsAssertionsMentions.model_rebuild()
|
|
681
626
|
GetContentContentPages.model_rebuild()
|
graphlit_api/get_conversation.py
CHANGED
|
@@ -19,7 +19,6 @@ from .enums import (
|
|
|
19
19
|
ObservableTypes,
|
|
20
20
|
OccurrenceTypes,
|
|
21
21
|
OrientationTypes,
|
|
22
|
-
SourceTypes,
|
|
23
22
|
)
|
|
24
23
|
|
|
25
24
|
|
|
@@ -596,62 +595,10 @@ class GetConversationConversationFacts(BaseModel):
|
|
|
596
595
|
valid_at: Optional[Any] = Field(alias="validAt")
|
|
597
596
|
invalid_at: Optional[Any] = Field(alias="invalidAt")
|
|
598
597
|
state: EntityState
|
|
599
|
-
mentions: Optional[list[Optional["GetConversationConversationFactsMentions"]]]
|
|
600
|
-
assertions: Optional[list[Optional["GetConversationConversationFactsAssertions"]]]
|
|
601
|
-
feeds: Optional[list[Optional["GetConversationConversationFactsFeeds"]]]
|
|
602
|
-
content: Optional["GetConversationConversationFactsContent"]
|
|
603
|
-
conversation: Optional["GetConversationConversationFactsConversation"]
|
|
604
|
-
source_type: Optional[SourceTypes] = Field(alias="sourceType")
|
|
605
598
|
category: Optional[FactCategory]
|
|
606
599
|
confidence: Optional[float]
|
|
607
600
|
|
|
608
601
|
|
|
609
|
-
class GetConversationConversationFactsMentions(BaseModel):
|
|
610
|
-
type: Optional[ObservableTypes]
|
|
611
|
-
observable: Optional["GetConversationConversationFactsMentionsObservable"]
|
|
612
|
-
start: Optional[int]
|
|
613
|
-
end: Optional[int]
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
class GetConversationConversationFactsMentionsObservable(BaseModel):
|
|
617
|
-
id: str
|
|
618
|
-
name: Optional[str]
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
class GetConversationConversationFactsAssertions(BaseModel):
|
|
622
|
-
text: str
|
|
623
|
-
mentions: Optional[
|
|
624
|
-
list[Optional["GetConversationConversationFactsAssertionsMentions"]]
|
|
625
|
-
]
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
class GetConversationConversationFactsAssertionsMentions(BaseModel):
|
|
629
|
-
type: Optional[ObservableTypes]
|
|
630
|
-
observable: Optional["GetConversationConversationFactsAssertionsMentionsObservable"]
|
|
631
|
-
start: Optional[int]
|
|
632
|
-
end: Optional[int]
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
class GetConversationConversationFactsAssertionsMentionsObservable(BaseModel):
|
|
636
|
-
id: str
|
|
637
|
-
name: Optional[str]
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
class GetConversationConversationFactsFeeds(BaseModel):
|
|
641
|
-
id: str
|
|
642
|
-
name: str
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
class GetConversationConversationFactsContent(BaseModel):
|
|
646
|
-
id: str
|
|
647
|
-
name: str
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
class GetConversationConversationFactsConversation(BaseModel):
|
|
651
|
-
id: str
|
|
652
|
-
name: str
|
|
653
|
-
|
|
654
|
-
|
|
655
602
|
GetConversation.model_rebuild()
|
|
656
603
|
GetConversationConversation.model_rebuild()
|
|
657
604
|
GetConversationConversationMessages.model_rebuild()
|
|
@@ -672,7 +619,3 @@ GetConversationConversationAugmentedFilterAnd.model_rebuild()
|
|
|
672
619
|
GetConversationConversationAugmentedFilterAndObservations.model_rebuild()
|
|
673
620
|
GetConversationConversationObservations.model_rebuild()
|
|
674
621
|
GetConversationConversationObservationsOccurrences.model_rebuild()
|
|
675
|
-
GetConversationConversationFacts.model_rebuild()
|
|
676
|
-
GetConversationConversationFactsMentions.model_rebuild()
|
|
677
|
-
GetConversationConversationFactsAssertions.model_rebuild()
|
|
678
|
-
GetConversationConversationFactsAssertionsMentions.model_rebuild()
|
|
@@ -0,0 +1,29 @@
|
|
|
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 GetEmotion(BaseModel):
|
|
12
|
+
emotion: Optional["GetEmotionEmotion"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetEmotionEmotion(BaseModel):
|
|
16
|
+
id: str
|
|
17
|
+
name: str
|
|
18
|
+
description: Optional[str]
|
|
19
|
+
creation_date: Any = Field(alias="creationDate")
|
|
20
|
+
feeds: Optional[list[Optional["GetEmotionEmotionFeeds"]]]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetEmotionEmotionFeeds(BaseModel):
|
|
24
|
+
id: str
|
|
25
|
+
name: str
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
GetEmotion.model_rebuild()
|
|
29
|
+
GetEmotionEmotion.model_rebuild()
|
graphlit_api/get_fact.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Any, Optional
|
|
|
6
6
|
from pydantic import Field
|
|
7
7
|
|
|
8
8
|
from .base_model import BaseModel
|
|
9
|
-
from .enums import FactCategory, ObservableTypes, SourceTypes
|
|
9
|
+
from .enums import EntityState, FactCategory, ObservableTypes, SourceTypes
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class GetFact(BaseModel):
|
|
@@ -17,6 +17,7 @@ class GetFactFact(BaseModel):
|
|
|
17
17
|
id: str
|
|
18
18
|
creation_date: Any = Field(alias="creationDate")
|
|
19
19
|
owner: "GetFactFactOwner"
|
|
20
|
+
state: EntityState
|
|
20
21
|
text: str
|
|
21
22
|
valid_at: Optional[Any] = Field(alias="validAt")
|
|
22
23
|
invalid_at: Optional[Any] = Field(alias="invalidAt")
|