graphlit-client 1.0.20260130001__py3-none-any.whl → 1.0.20260203001__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. graphlit_api/__init__.py +232 -32
  2. graphlit_api/client.py +170 -0
  3. graphlit_api/count_emotions.py +21 -0
  4. graphlit_api/create_emotion.py +22 -0
  5. graphlit_api/create_workflow.py +5 -0
  6. graphlit_api/delete_all_emotions.py +23 -0
  7. graphlit_api/delete_emotion.py +23 -0
  8. graphlit_api/delete_emotions.py +23 -0
  9. graphlit_api/enums.py +14 -0
  10. graphlit_api/extract_observables.py +6 -0
  11. graphlit_api/get_content.py +0 -55
  12. graphlit_api/get_conversation.py +58 -0
  13. graphlit_api/get_emotion.py +29 -0
  14. graphlit_api/get_fact.py +2 -1
  15. graphlit_api/get_feed.py +2 -0
  16. graphlit_api/get_specification.py +2 -0
  17. graphlit_api/get_workflow.py +5 -0
  18. graphlit_api/input_types.py +73 -0
  19. graphlit_api/lookup_contents.py +0 -63
  20. graphlit_api/operations.py +697 -222
  21. graphlit_api/query_conversations_clusters.py +721 -0
  22. graphlit_api/query_emotions.py +35 -0
  23. graphlit_api/query_facts.py +2 -1
  24. graphlit_api/query_facts_clusters.py +2 -1
  25. graphlit_api/query_feeds.py +2 -0
  26. graphlit_api/query_specifications.py +2 -0
  27. graphlit_api/query_workflows.py +5 -0
  28. graphlit_api/retrieve_facts.py +8 -1
  29. graphlit_api/update_emotion.py +22 -0
  30. graphlit_api/update_workflow.py +5 -0
  31. graphlit_api/upsert_workflow.py +5 -0
  32. {graphlit_client-1.0.20260130001.dist-info → graphlit_client-1.0.20260203001.dist-info}/METADATA +1 -1
  33. {graphlit_client-1.0.20260130001.dist-info → graphlit_client-1.0.20260203001.dist-info}/RECORD +36 -27
  34. {graphlit_client-1.0.20260130001.dist-info → graphlit_client-1.0.20260203001.dist-info}/WHEEL +0 -0
  35. {graphlit_client-1.0.20260130001.dist-info → graphlit_client-1.0.20260203001.dist-info}/licenses/LICENSE +0 -0
  36. {graphlit_client-1.0.20260130001.dist-info → graphlit_client-1.0.20260203001.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,
@@ -661,12 +676,14 @@ from .operations import (
661
676
  QUERY_CONTENTS_GQL,
662
677
  QUERY_CONTENTS_GRAPH_GQL,
663
678
  QUERY_CONTENTS_OBSERVATIONS_GQL,
679
+ QUERY_CONVERSATIONS_CLUSTERS_GQL,
664
680
  QUERY_CONVERSATIONS_GQL,
665
681
  QUERY_CONVERSATIONS_GRAPH_GQL,
666
682
  QUERY_CREDITS_GQL,
667
683
  QUERY_DISCORD_CHANNELS_GQL,
668
684
  QUERY_DISCORD_GUILDS_GQL,
669
685
  QUERY_DROPBOX_FOLDERS_GQL,
686
+ QUERY_EMOTIONS_GQL,
670
687
  QUERY_EVENTS_CLUSTERS_GQL,
671
688
  QUERY_EVENTS_GQL,
672
689
  QUERY_FACTS_CLUSTERS_GQL,
@@ -770,6 +787,7 @@ from .operations import (
770
787
  UPDATE_CONNECTOR_GQL,
771
788
  UPDATE_CONTENT_GQL,
772
789
  UPDATE_CONVERSATION_GQL,
790
+ UPDATE_EMOTION_GQL,
773
791
  UPDATE_EVENT_GQL,
774
792
  UPDATE_FACT_GQL,
775
793
  UPDATE_FEED_GQL,
@@ -831,11 +849,13 @@ from .query_contents_facets import QueryContentsFacets
831
849
  from .query_contents_graph import QueryContentsGraph
832
850
  from .query_contents_observations import QueryContentsObservations
833
851
  from .query_conversations import QueryConversations
852
+ from .query_conversations_clusters import QueryConversationsClusters
834
853
  from .query_conversations_graph import QueryConversationsGraph
835
854
  from .query_credits import QueryCredits
836
855
  from .query_discord_channels import QueryDiscordChannels
837
856
  from .query_discord_guilds import QueryDiscordGuilds
838
857
  from .query_dropbox_folders import QueryDropboxFolders
858
+ from .query_emotions import QueryEmotions
839
859
  from .query_events import QueryEvents
840
860
  from .query_events_clusters import QueryEventsClusters
841
861
  from .query_facts import QueryFacts
@@ -941,6 +961,7 @@ from .update_collection import UpdateCollection
941
961
  from .update_connector import UpdateConnector
942
962
  from .update_content import UpdateContent
943
963
  from .update_conversation import UpdateConversation
964
+ from .update_emotion import UpdateEmotion
944
965
  from .update_event import UpdateEvent
945
966
  from .update_fact import UpdateFact
946
967
  from .update_feed import UpdateFeed
@@ -2709,6 +2730,27 @@ class Client(AsyncBaseClient):
2709
2730
  data = self.get_data(response)
2710
2731
  return QueryConversations.model_validate(data)
2711
2732
 
2733
+ async def query_conversations_clusters(
2734
+ self,
2735
+ filter: Union[Optional[ConversationFilter], UnsetType] = UNSET,
2736
+ clusters: Union[Optional[EntityClustersInput], UnsetType] = UNSET,
2737
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
2738
+ **kwargs: Any
2739
+ ) -> QueryConversationsClusters:
2740
+ variables: dict[str, object] = {
2741
+ "filter": filter,
2742
+ "clusters": clusters,
2743
+ "correlationId": correlation_id,
2744
+ }
2745
+ response = await self.execute(
2746
+ query=QUERY_CONVERSATIONS_CLUSTERS_GQL,
2747
+ operation_name="QueryConversationsClusters",
2748
+ variables=variables,
2749
+ **kwargs
2750
+ )
2751
+ data = self.get_data(response)
2752
+ return QueryConversationsClusters.model_validate(data)
2753
+
2712
2754
  async def query_conversations_graph(
2713
2755
  self,
2714
2756
  filter: Union[Optional[ConversationFilter], UnsetType] = UNSET,
@@ -2966,6 +3008,134 @@ class Client(AsyncBaseClient):
2966
3008
  data = self.get_data(response)
2967
3009
  return UpdateConversation.model_validate(data)
2968
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
+
2969
3139
  async def count_events(
2970
3140
  self,
2971
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()
@@ -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):
@@ -1192,6 +1199,12 @@ class OneDriveAuthenticationTypes(str, Enum):
1192
1199
  CONNECTOR = "CONNECTOR"
1193
1200
 
1194
1201
 
1202
+ class MeetingContentTypes(str, Enum):
1203
+ TRANSCRIPT = "TRANSCRIPT"
1204
+ RECORDING = "RECORDING"
1205
+ PREFERRED = "PREFERRED"
1206
+
1207
+
1195
1208
  class EmbeddingTypes(str, Enum):
1196
1209
  TEXT = "TEXT"
1197
1210
  IMAGE = "IMAGE"
@@ -1465,6 +1478,7 @@ class EntityTypes(str, Enum):
1465
1478
  INVESTMENT_FUND = "INVESTMENT_FUND"
1466
1479
  JOB = "JOB"
1467
1480
  LABEL = "LABEL"
1481
+ EMOTION = "EMOTION"
1468
1482
  METADATA = "METADATA"
1469
1483
  MEDICAL_STUDY = "MEDICAL_STUDY"
1470
1484
  MEDICAL_CONDITION = "MEDICAL_CONDITION"
@@ -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]
@@ -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()
@@ -11,11 +11,13 @@ from .enums import (
11
11
  ConversationRoleTypes,
12
12
  ConversationTypes,
13
13
  EntityState,
14
+ FactCategory,
14
15
  FileTypes,
15
16
  FilterMode,
16
17
  ImageProjectionTypes,
17
18
  ModelServiceTypes,
18
19
  ObservableTypes,
20
+ OccurrenceTypes,
19
21
  OrientationTypes,
20
22
  )
21
23
 
@@ -42,6 +44,8 @@ class GetConversationConversation(BaseModel):
42
44
  augmented_filter: Optional["GetConversationConversationAugmentedFilter"] = Field(
43
45
  alias="augmentedFilter"
44
46
  )
47
+ observations: Optional[list[Optional["GetConversationConversationObservations"]]]
48
+ facts: Optional[list[Optional["GetConversationConversationFacts"]]]
45
49
  summary: Optional[str]
46
50
 
47
51
 
@@ -543,6 +547,58 @@ class GetConversationConversationAugmentedFilterAndObservationsObservable(BaseMo
543
547
  id: str
544
548
 
545
549
 
550
+ class GetConversationConversationObservations(BaseModel):
551
+ id: str
552
+ type: ObservableTypes
553
+ observable: "GetConversationConversationObservationsObservable"
554
+ related: Optional["GetConversationConversationObservationsRelated"]
555
+ related_type: Optional[ObservableTypes] = Field(alias="relatedType")
556
+ relation: Optional[str]
557
+ occurrences: Optional[
558
+ list[Optional["GetConversationConversationObservationsOccurrences"]]
559
+ ]
560
+ state: EntityState
561
+
562
+
563
+ class GetConversationConversationObservationsObservable(BaseModel):
564
+ id: str
565
+ name: Optional[str]
566
+
567
+
568
+ class GetConversationConversationObservationsRelated(BaseModel):
569
+ id: str
570
+ name: Optional[str]
571
+
572
+
573
+ class GetConversationConversationObservationsOccurrences(BaseModel):
574
+ type: Optional[OccurrenceTypes]
575
+ confidence: Optional[float]
576
+ start_time: Optional[Any] = Field(alias="startTime")
577
+ end_time: Optional[Any] = Field(alias="endTime")
578
+ page_index: Optional[int] = Field(alias="pageIndex")
579
+ turn_index: Optional[int] = Field(alias="turnIndex")
580
+ bounding_box: Optional[
581
+ "GetConversationConversationObservationsOccurrencesBoundingBox"
582
+ ] = Field(alias="boundingBox")
583
+
584
+
585
+ class GetConversationConversationObservationsOccurrencesBoundingBox(BaseModel):
586
+ left: Optional[float]
587
+ top: Optional[float]
588
+ width: Optional[float]
589
+ height: Optional[float]
590
+
591
+
592
+ class GetConversationConversationFacts(BaseModel):
593
+ id: str
594
+ text: str
595
+ valid_at: Optional[Any] = Field(alias="validAt")
596
+ invalid_at: Optional[Any] = Field(alias="invalidAt")
597
+ state: EntityState
598
+ category: Optional[FactCategory]
599
+ confidence: Optional[float]
600
+
601
+
546
602
  GetConversation.model_rebuild()
547
603
  GetConversationConversation.model_rebuild()
548
604
  GetConversationConversationMessages.model_rebuild()
@@ -561,3 +617,5 @@ GetConversationConversationAugmentedFilterOr.model_rebuild()
561
617
  GetConversationConversationAugmentedFilterOrObservations.model_rebuild()
562
618
  GetConversationConversationAugmentedFilterAnd.model_rebuild()
563
619
  GetConversationConversationAugmentedFilterAndObservations.model_rebuild()
620
+ GetConversationConversationObservations.model_rebuild()
621
+ GetConversationConversationObservationsOccurrences.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()