graphlit-client 1.0.20250627002__py3-none-any.whl → 1.0.20250627004__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 CHANGED
@@ -1931,6 +1931,7 @@ from .operations import (
1931
1931
  QUERY_WORKFLOWS_GQL,
1932
1932
  REMOVE_CONTENTS_FROM_COLLECTION_GQL,
1933
1933
  RETRIEVE_SOURCES_GQL,
1934
+ RETRIEVE_VIEW_GQL,
1934
1935
  REVISE_CONTENT_GQL,
1935
1936
  REVISE_ENCODED_IMAGE_GQL,
1936
1937
  REVISE_IMAGE_GQL,
@@ -1977,6 +1978,7 @@ from .operations import (
1977
1978
  UPSERT_CATEGORY_GQL,
1978
1979
  UPSERT_LABEL_GQL,
1979
1980
  UPSERT_SPECIFICATION_GQL,
1981
+ UPSERT_VIEW_GQL,
1980
1982
  UPSERT_WORKFLOW_GQL,
1981
1983
  VIEW_EXISTS_GQL,
1982
1984
  WORKFLOW_EXISTS_GQL,
@@ -2666,6 +2668,12 @@ from .retrieve_sources import (
2666
2668
  RetrieveSourcesRetrieveSourcesResults,
2667
2669
  RetrieveSourcesRetrieveSourcesResultsContent,
2668
2670
  )
2671
+ from .retrieve_view import (
2672
+ RetrieveView,
2673
+ RetrieveViewRetrieveView,
2674
+ RetrieveViewRetrieveViewResults,
2675
+ RetrieveViewRetrieveViewResultsContent,
2676
+ )
2669
2677
  from .revise_content import (
2670
2678
  ReviseContent,
2671
2679
  ReviseContentReviseContent,
@@ -2944,6 +2952,60 @@ from .upsert_specification import (
2944
2952
  UpsertSpecification,
2945
2953
  UpsertSpecificationUpsertSpecification,
2946
2954
  )
2955
+ from .upsert_view import (
2956
+ UpsertView,
2957
+ UpsertViewUpsertView,
2958
+ UpsertViewUpsertViewAugmentedFilter,
2959
+ UpsertViewUpsertViewAugmentedFilterAnd,
2960
+ UpsertViewUpsertViewAugmentedFilterAndCollections,
2961
+ UpsertViewUpsertViewAugmentedFilterAndFeeds,
2962
+ UpsertViewUpsertViewAugmentedFilterAndObservations,
2963
+ UpsertViewUpsertViewAugmentedFilterAndObservationsObservable,
2964
+ UpsertViewUpsertViewAugmentedFilterAndUsers,
2965
+ UpsertViewUpsertViewAugmentedFilterAndWorkflows,
2966
+ UpsertViewUpsertViewAugmentedFilterCollections,
2967
+ UpsertViewUpsertViewAugmentedFilterContents,
2968
+ UpsertViewUpsertViewAugmentedFilterCreationDateRange,
2969
+ UpsertViewUpsertViewAugmentedFilterDateRange,
2970
+ UpsertViewUpsertViewAugmentedFilterFeeds,
2971
+ UpsertViewUpsertViewAugmentedFilterObservations,
2972
+ UpsertViewUpsertViewAugmentedFilterObservationsObservable,
2973
+ UpsertViewUpsertViewAugmentedFilterOr,
2974
+ UpsertViewUpsertViewAugmentedFilterOrCollections,
2975
+ UpsertViewUpsertViewAugmentedFilterOrFeeds,
2976
+ UpsertViewUpsertViewAugmentedFilterOrObservations,
2977
+ UpsertViewUpsertViewAugmentedFilterOrObservationsObservable,
2978
+ UpsertViewUpsertViewAugmentedFilterOrUsers,
2979
+ UpsertViewUpsertViewAugmentedFilterOrWorkflows,
2980
+ UpsertViewUpsertViewAugmentedFilterSimilarContents,
2981
+ UpsertViewUpsertViewAugmentedFilterUsers,
2982
+ UpsertViewUpsertViewAugmentedFilterWorkflows,
2983
+ UpsertViewUpsertViewFilter,
2984
+ UpsertViewUpsertViewFilterAnd,
2985
+ UpsertViewUpsertViewFilterAndCollections,
2986
+ UpsertViewUpsertViewFilterAndFeeds,
2987
+ UpsertViewUpsertViewFilterAndObservations,
2988
+ UpsertViewUpsertViewFilterAndObservationsObservable,
2989
+ UpsertViewUpsertViewFilterAndUsers,
2990
+ UpsertViewUpsertViewFilterAndWorkflows,
2991
+ UpsertViewUpsertViewFilterCollections,
2992
+ UpsertViewUpsertViewFilterContents,
2993
+ UpsertViewUpsertViewFilterCreationDateRange,
2994
+ UpsertViewUpsertViewFilterDateRange,
2995
+ UpsertViewUpsertViewFilterFeeds,
2996
+ UpsertViewUpsertViewFilterObservations,
2997
+ UpsertViewUpsertViewFilterObservationsObservable,
2998
+ UpsertViewUpsertViewFilterOr,
2999
+ UpsertViewUpsertViewFilterOrCollections,
3000
+ UpsertViewUpsertViewFilterOrFeeds,
3001
+ UpsertViewUpsertViewFilterOrObservations,
3002
+ UpsertViewUpsertViewFilterOrObservationsObservable,
3003
+ UpsertViewUpsertViewFilterOrUsers,
3004
+ UpsertViewUpsertViewFilterOrWorkflows,
3005
+ UpsertViewUpsertViewFilterSimilarContents,
3006
+ UpsertViewUpsertViewFilterUsers,
3007
+ UpsertViewUpsertViewFilterWorkflows,
3008
+ )
2947
3009
  from .upsert_workflow import (
2948
3010
  UpsertWorkflow,
2949
3011
  UpsertWorkflowUpsertWorkflow,
@@ -5295,6 +5357,7 @@ __all__ = [
5295
5357
  "QueryWorkflowsWorkflowsResultsStoragePolicy",
5296
5358
  "REMOVE_CONTENTS_FROM_COLLECTION_GQL",
5297
5359
  "RETRIEVE_SOURCES_GQL",
5360
+ "RETRIEVE_VIEW_GQL",
5298
5361
  "REVISE_CONTENT_GQL",
5299
5362
  "REVISE_ENCODED_IMAGE_GQL",
5300
5363
  "REVISE_IMAGE_GQL",
@@ -5334,6 +5397,10 @@ __all__ = [
5334
5397
  "RetrieveSourcesRetrieveSources",
5335
5398
  "RetrieveSourcesRetrieveSourcesResults",
5336
5399
  "RetrieveSourcesRetrieveSourcesResultsContent",
5400
+ "RetrieveView",
5401
+ "RetrieveViewRetrieveView",
5402
+ "RetrieveViewRetrieveViewResults",
5403
+ "RetrieveViewRetrieveViewResultsContent",
5337
5404
  "ReviseContent",
5338
5405
  "ReviseContentReviseContent",
5339
5406
  "ReviseContentReviseContentConversation",
@@ -5496,6 +5563,7 @@ __all__ = [
5496
5563
  "UPSERT_CATEGORY_GQL",
5497
5564
  "UPSERT_LABEL_GQL",
5498
5565
  "UPSERT_SPECIFICATION_GQL",
5566
+ "UPSERT_VIEW_GQL",
5499
5567
  "UPSERT_WORKFLOW_GQL",
5500
5568
  "UnitTypes",
5501
5569
  "UpdateAlert",
@@ -5678,6 +5746,58 @@ __all__ = [
5678
5746
  "UpsertLabelUpsertLabel",
5679
5747
  "UpsertSpecification",
5680
5748
  "UpsertSpecificationUpsertSpecification",
5749
+ "UpsertView",
5750
+ "UpsertViewUpsertView",
5751
+ "UpsertViewUpsertViewAugmentedFilter",
5752
+ "UpsertViewUpsertViewAugmentedFilterAnd",
5753
+ "UpsertViewUpsertViewAugmentedFilterAndCollections",
5754
+ "UpsertViewUpsertViewAugmentedFilterAndFeeds",
5755
+ "UpsertViewUpsertViewAugmentedFilterAndObservations",
5756
+ "UpsertViewUpsertViewAugmentedFilterAndObservationsObservable",
5757
+ "UpsertViewUpsertViewAugmentedFilterAndUsers",
5758
+ "UpsertViewUpsertViewAugmentedFilterAndWorkflows",
5759
+ "UpsertViewUpsertViewAugmentedFilterCollections",
5760
+ "UpsertViewUpsertViewAugmentedFilterContents",
5761
+ "UpsertViewUpsertViewAugmentedFilterCreationDateRange",
5762
+ "UpsertViewUpsertViewAugmentedFilterDateRange",
5763
+ "UpsertViewUpsertViewAugmentedFilterFeeds",
5764
+ "UpsertViewUpsertViewAugmentedFilterObservations",
5765
+ "UpsertViewUpsertViewAugmentedFilterObservationsObservable",
5766
+ "UpsertViewUpsertViewAugmentedFilterOr",
5767
+ "UpsertViewUpsertViewAugmentedFilterOrCollections",
5768
+ "UpsertViewUpsertViewAugmentedFilterOrFeeds",
5769
+ "UpsertViewUpsertViewAugmentedFilterOrObservations",
5770
+ "UpsertViewUpsertViewAugmentedFilterOrObservationsObservable",
5771
+ "UpsertViewUpsertViewAugmentedFilterOrUsers",
5772
+ "UpsertViewUpsertViewAugmentedFilterOrWorkflows",
5773
+ "UpsertViewUpsertViewAugmentedFilterSimilarContents",
5774
+ "UpsertViewUpsertViewAugmentedFilterUsers",
5775
+ "UpsertViewUpsertViewAugmentedFilterWorkflows",
5776
+ "UpsertViewUpsertViewFilter",
5777
+ "UpsertViewUpsertViewFilterAnd",
5778
+ "UpsertViewUpsertViewFilterAndCollections",
5779
+ "UpsertViewUpsertViewFilterAndFeeds",
5780
+ "UpsertViewUpsertViewFilterAndObservations",
5781
+ "UpsertViewUpsertViewFilterAndObservationsObservable",
5782
+ "UpsertViewUpsertViewFilterAndUsers",
5783
+ "UpsertViewUpsertViewFilterAndWorkflows",
5784
+ "UpsertViewUpsertViewFilterCollections",
5785
+ "UpsertViewUpsertViewFilterContents",
5786
+ "UpsertViewUpsertViewFilterCreationDateRange",
5787
+ "UpsertViewUpsertViewFilterDateRange",
5788
+ "UpsertViewUpsertViewFilterFeeds",
5789
+ "UpsertViewUpsertViewFilterObservations",
5790
+ "UpsertViewUpsertViewFilterObservationsObservable",
5791
+ "UpsertViewUpsertViewFilterOr",
5792
+ "UpsertViewUpsertViewFilterOrCollections",
5793
+ "UpsertViewUpsertViewFilterOrFeeds",
5794
+ "UpsertViewUpsertViewFilterOrObservations",
5795
+ "UpsertViewUpsertViewFilterOrObservationsObservable",
5796
+ "UpsertViewUpsertViewFilterOrUsers",
5797
+ "UpsertViewUpsertViewFilterOrWorkflows",
5798
+ "UpsertViewUpsertViewFilterSimilarContents",
5799
+ "UpsertViewUpsertViewFilterUsers",
5800
+ "UpsertViewUpsertViewFilterWorkflows",
5681
5801
  "UpsertWorkflow",
5682
5802
  "UpsertWorkflowUpsertWorkflow",
5683
5803
  "UpsertWorkflowUpsertWorkflowActions",
graphlit_api/client.py CHANGED
@@ -612,6 +612,7 @@ from .operations import (
612
612
  QUERY_WORKFLOWS_GQL,
613
613
  REMOVE_CONTENTS_FROM_COLLECTION_GQL,
614
614
  RETRIEVE_SOURCES_GQL,
615
+ RETRIEVE_VIEW_GQL,
615
616
  REVISE_CONTENT_GQL,
616
617
  REVISE_ENCODED_IMAGE_GQL,
617
618
  REVISE_IMAGE_GQL,
@@ -658,6 +659,7 @@ from .operations import (
658
659
  UPSERT_CATEGORY_GQL,
659
660
  UPSERT_LABEL_GQL,
660
661
  UPSERT_SPECIFICATION_GQL,
662
+ UPSERT_VIEW_GQL,
661
663
  UPSERT_WORKFLOW_GQL,
662
664
  VIEW_EXISTS_GQL,
663
665
  WORKFLOW_EXISTS_GQL,
@@ -721,6 +723,7 @@ from .query_views import QueryViews
721
723
  from .query_workflows import QueryWorkflows
722
724
  from .remove_contents_from_collection import RemoveContentsFromCollection
723
725
  from .retrieve_sources import RetrieveSources
726
+ from .retrieve_view import RetrieveView
724
727
  from .revise_content import ReviseContent
725
728
  from .revise_encoded_image import ReviseEncodedImage
726
729
  from .revise_image import ReviseImage
@@ -767,6 +770,7 @@ from .update_workflow import UpdateWorkflow
767
770
  from .upsert_category import UpsertCategory
768
771
  from .upsert_label import UpsertLabel
769
772
  from .upsert_specification import UpsertSpecification
773
+ from .upsert_view import UpsertView
770
774
  from .upsert_workflow import UpsertWorkflow
771
775
  from .view_exists import ViewExists
772
776
  from .workflow_exists import WorkflowExists
@@ -2355,6 +2359,31 @@ class Client(AsyncBaseClient):
2355
2359
  data = self.get_data(response)
2356
2360
  return RetrieveSources.model_validate(data)
2357
2361
 
2362
+ async def retrieve_view(
2363
+ self,
2364
+ prompt: str,
2365
+ id: str,
2366
+ retrieval_strategy: Union[Optional[RetrievalStrategyInput], UnsetType] = UNSET,
2367
+ reranking_strategy: Union[Optional[RerankingStrategyInput], UnsetType] = UNSET,
2368
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
2369
+ **kwargs: Any
2370
+ ) -> RetrieveView:
2371
+ variables: Dict[str, object] = {
2372
+ "prompt": prompt,
2373
+ "id": id,
2374
+ "retrievalStrategy": retrieval_strategy,
2375
+ "rerankingStrategy": reranking_strategy,
2376
+ "correlationId": correlation_id,
2377
+ }
2378
+ response = await self.execute(
2379
+ query=RETRIEVE_VIEW_GQL,
2380
+ operation_name="RetrieveView",
2381
+ variables=variables,
2382
+ **kwargs
2383
+ )
2384
+ data = self.get_data(response)
2385
+ return RetrieveView.model_validate(data)
2386
+
2358
2387
  async def revise_content(
2359
2388
  self,
2360
2389
  prompt: str,
@@ -5973,6 +6002,17 @@ class Client(AsyncBaseClient):
5973
6002
  data = self.get_data(response)
5974
6003
  return UpdateView.model_validate(data)
5975
6004
 
6005
+ async def upsert_view(self, view: ViewInput, **kwargs: Any) -> UpsertView:
6006
+ variables: Dict[str, object] = {"view": view}
6007
+ response = await self.execute(
6008
+ query=UPSERT_VIEW_GQL,
6009
+ operation_name="UpsertView",
6010
+ variables=variables,
6011
+ **kwargs
6012
+ )
6013
+ data = self.get_data(response)
6014
+ return UpsertView.model_validate(data)
6015
+
5976
6016
  async def view_exists(
5977
6017
  self,
5978
6018
  filter: Union[Optional[ViewFilter], UnsetType] = UNSET,
@@ -273,6 +273,7 @@ __all__ = [
273
273
  "QUERY_WORKFLOWS_GQL",
274
274
  "REMOVE_CONTENTS_FROM_COLLECTION_GQL",
275
275
  "RETRIEVE_SOURCES_GQL",
276
+ "RETRIEVE_VIEW_GQL",
276
277
  "REVISE_CONTENT_GQL",
277
278
  "REVISE_ENCODED_IMAGE_GQL",
278
279
  "REVISE_IMAGE_GQL",
@@ -319,6 +320,7 @@ __all__ = [
319
320
  "UPSERT_CATEGORY_GQL",
320
321
  "UPSERT_LABEL_GQL",
321
322
  "UPSERT_SPECIFICATION_GQL",
323
+ "UPSERT_VIEW_GQL",
322
324
  "UPSERT_WORKFLOW_GQL",
323
325
  "VIEW_EXISTS_GQL",
324
326
  "WORKFLOW_EXISTS_GQL",
@@ -5941,6 +5943,32 @@ mutation RetrieveSources($prompt: String!, $filter: ContentFilter, $augmentedFil
5941
5943
  }
5942
5944
  """
5943
5945
 
5946
+ RETRIEVE_VIEW_GQL = """
5947
+ mutation RetrieveView($prompt: String!, $id: ID!, $retrievalStrategy: RetrievalStrategyInput, $rerankingStrategy: RerankingStrategyInput, $correlationId: String) {
5948
+ retrieveView(
5949
+ prompt: $prompt
5950
+ id: $id
5951
+ retrievalStrategy: $retrievalStrategy
5952
+ rerankingStrategy: $rerankingStrategy
5953
+ correlationId: $correlationId
5954
+ ) {
5955
+ results {
5956
+ type
5957
+ content {
5958
+ id
5959
+ }
5960
+ text
5961
+ metadata
5962
+ relevance
5963
+ startTime
5964
+ endTime
5965
+ pageNumber
5966
+ frameNumber
5967
+ }
5968
+ }
5969
+ }
5970
+ """
5971
+
5944
5972
  REVISE_CONTENT_GQL = """
5945
5973
  mutation ReviseContent($prompt: String!, $content: EntityReferenceInput!, $id: ID, $specification: EntityReferenceInput, $correlationId: String) {
5946
5974
  reviseContent(
@@ -11145,6 +11173,183 @@ mutation UpdateView($view: ViewUpdateInput!) {
11145
11173
  }
11146
11174
  """
11147
11175
 
11176
+ UPSERT_VIEW_GQL = """
11177
+ mutation UpsertView($view: ViewInput!) {
11178
+ upsertView(view: $view) {
11179
+ id
11180
+ name
11181
+ state
11182
+ type
11183
+ filter {
11184
+ dateRange {
11185
+ from
11186
+ to
11187
+ }
11188
+ inLast
11189
+ creationDateRange {
11190
+ from
11191
+ to
11192
+ }
11193
+ createdInLast
11194
+ types
11195
+ fileTypes
11196
+ formats
11197
+ fileExtensions
11198
+ similarContents {
11199
+ id
11200
+ }
11201
+ contents {
11202
+ id
11203
+ }
11204
+ feeds {
11205
+ id
11206
+ }
11207
+ workflows {
11208
+ id
11209
+ }
11210
+ collections {
11211
+ id
11212
+ }
11213
+ users {
11214
+ id
11215
+ }
11216
+ observations {
11217
+ type
11218
+ observable {
11219
+ id
11220
+ }
11221
+ states
11222
+ }
11223
+ or {
11224
+ feeds {
11225
+ id
11226
+ }
11227
+ workflows {
11228
+ id
11229
+ }
11230
+ collections {
11231
+ id
11232
+ }
11233
+ users {
11234
+ id
11235
+ }
11236
+ observations {
11237
+ type
11238
+ observable {
11239
+ id
11240
+ }
11241
+ states
11242
+ }
11243
+ }
11244
+ and {
11245
+ feeds {
11246
+ id
11247
+ }
11248
+ workflows {
11249
+ id
11250
+ }
11251
+ collections {
11252
+ id
11253
+ }
11254
+ users {
11255
+ id
11256
+ }
11257
+ observations {
11258
+ type
11259
+ observable {
11260
+ id
11261
+ }
11262
+ states
11263
+ }
11264
+ }
11265
+ }
11266
+ augmentedFilter {
11267
+ dateRange {
11268
+ from
11269
+ to
11270
+ }
11271
+ inLast
11272
+ creationDateRange {
11273
+ from
11274
+ to
11275
+ }
11276
+ createdInLast
11277
+ types
11278
+ fileTypes
11279
+ formats
11280
+ fileExtensions
11281
+ similarContents {
11282
+ id
11283
+ }
11284
+ contents {
11285
+ id
11286
+ }
11287
+ feeds {
11288
+ id
11289
+ }
11290
+ workflows {
11291
+ id
11292
+ }
11293
+ collections {
11294
+ id
11295
+ }
11296
+ users {
11297
+ id
11298
+ }
11299
+ observations {
11300
+ type
11301
+ observable {
11302
+ id
11303
+ }
11304
+ states
11305
+ }
11306
+ or {
11307
+ feeds {
11308
+ id
11309
+ }
11310
+ workflows {
11311
+ id
11312
+ }
11313
+ collections {
11314
+ id
11315
+ }
11316
+ users {
11317
+ id
11318
+ }
11319
+ observations {
11320
+ type
11321
+ observable {
11322
+ id
11323
+ }
11324
+ states
11325
+ }
11326
+ }
11327
+ and {
11328
+ feeds {
11329
+ id
11330
+ }
11331
+ workflows {
11332
+ id
11333
+ }
11334
+ collections {
11335
+ id
11336
+ }
11337
+ users {
11338
+ id
11339
+ }
11340
+ observations {
11341
+ type
11342
+ observable {
11343
+ id
11344
+ }
11345
+ states
11346
+ }
11347
+ }
11348
+ }
11349
+ }
11350
+ }
11351
+ """
11352
+
11148
11353
  VIEW_EXISTS_GQL = """
11149
11354
  query ViewExists($filter: ViewFilter, $correlationId: String) {
11150
11355
  viewExists(filter: $filter, correlationId: $correlationId) {
@@ -0,0 +1,38 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, List, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import ContentSourceTypes
10
+
11
+
12
+ class RetrieveView(BaseModel):
13
+ retrieve_view: Optional["RetrieveViewRetrieveView"] = Field(alias="retrieveView")
14
+
15
+
16
+ class RetrieveViewRetrieveView(BaseModel):
17
+ results: Optional[List[Optional["RetrieveViewRetrieveViewResults"]]]
18
+
19
+
20
+ class RetrieveViewRetrieveViewResults(BaseModel):
21
+ type: Optional[ContentSourceTypes]
22
+ content: "RetrieveViewRetrieveViewResultsContent"
23
+ text: str
24
+ metadata: Optional[str]
25
+ relevance: float
26
+ start_time: Optional[Any] = Field(alias="startTime")
27
+ end_time: Optional[Any] = Field(alias="endTime")
28
+ page_number: Optional[int] = Field(alias="pageNumber")
29
+ frame_number: Optional[int] = Field(alias="frameNumber")
30
+
31
+
32
+ class RetrieveViewRetrieveViewResultsContent(BaseModel):
33
+ id: str
34
+
35
+
36
+ RetrieveView.model_rebuild()
37
+ RetrieveViewRetrieveView.model_rebuild()
38
+ RetrieveViewRetrieveViewResults.model_rebuild()
@@ -0,0 +1,316 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, List, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import ContentTypes, EntityState, FileTypes, ObservableTypes, ViewTypes
10
+
11
+
12
+ class UpsertView(BaseModel):
13
+ upsert_view: Optional["UpsertViewUpsertView"] = Field(alias="upsertView")
14
+
15
+
16
+ class UpsertViewUpsertView(BaseModel):
17
+ id: str
18
+ name: str
19
+ state: EntityState
20
+ type: Optional[ViewTypes]
21
+ filter: Optional["UpsertViewUpsertViewFilter"]
22
+ augmented_filter: Optional["UpsertViewUpsertViewAugmentedFilter"] = Field(
23
+ alias="augmentedFilter"
24
+ )
25
+
26
+
27
+ class UpsertViewUpsertViewFilter(BaseModel):
28
+ date_range: Optional["UpsertViewUpsertViewFilterDateRange"] = Field(
29
+ alias="dateRange"
30
+ )
31
+ in_last: Optional[Any] = Field(alias="inLast")
32
+ creation_date_range: Optional["UpsertViewUpsertViewFilterCreationDateRange"] = (
33
+ Field(alias="creationDateRange")
34
+ )
35
+ created_in_last: Optional[Any] = Field(alias="createdInLast")
36
+ types: Optional[List[ContentTypes]]
37
+ file_types: Optional[List[Optional[FileTypes]]] = Field(alias="fileTypes")
38
+ formats: Optional[List[Optional[str]]]
39
+ file_extensions: Optional[List[str]] = Field(alias="fileExtensions")
40
+ similar_contents: Optional[List["UpsertViewUpsertViewFilterSimilarContents"]] = (
41
+ Field(alias="similarContents")
42
+ )
43
+ contents: Optional[List["UpsertViewUpsertViewFilterContents"]]
44
+ feeds: Optional[List["UpsertViewUpsertViewFilterFeeds"]]
45
+ workflows: Optional[List["UpsertViewUpsertViewFilterWorkflows"]]
46
+ collections: Optional[List["UpsertViewUpsertViewFilterCollections"]]
47
+ users: Optional[List["UpsertViewUpsertViewFilterUsers"]]
48
+ observations: Optional[List["UpsertViewUpsertViewFilterObservations"]]
49
+ or_: Optional[List["UpsertViewUpsertViewFilterOr"]] = Field(alias="or")
50
+ and_: Optional[List["UpsertViewUpsertViewFilterAnd"]] = Field(alias="and")
51
+
52
+
53
+ class UpsertViewUpsertViewFilterDateRange(BaseModel):
54
+ from_: Optional[Any] = Field(alias="from")
55
+ to: Optional[Any]
56
+
57
+
58
+ class UpsertViewUpsertViewFilterCreationDateRange(BaseModel):
59
+ from_: Optional[Any] = Field(alias="from")
60
+ to: Optional[Any]
61
+
62
+
63
+ class UpsertViewUpsertViewFilterSimilarContents(BaseModel):
64
+ id: str
65
+
66
+
67
+ class UpsertViewUpsertViewFilterContents(BaseModel):
68
+ id: str
69
+
70
+
71
+ class UpsertViewUpsertViewFilterFeeds(BaseModel):
72
+ id: str
73
+
74
+
75
+ class UpsertViewUpsertViewFilterWorkflows(BaseModel):
76
+ id: str
77
+
78
+
79
+ class UpsertViewUpsertViewFilterCollections(BaseModel):
80
+ id: str
81
+
82
+
83
+ class UpsertViewUpsertViewFilterUsers(BaseModel):
84
+ id: str
85
+
86
+
87
+ class UpsertViewUpsertViewFilterObservations(BaseModel):
88
+ type: ObservableTypes
89
+ observable: "UpsertViewUpsertViewFilterObservationsObservable"
90
+ states: Optional[List[Optional[EntityState]]]
91
+
92
+
93
+ class UpsertViewUpsertViewFilterObservationsObservable(BaseModel):
94
+ id: str
95
+
96
+
97
+ class UpsertViewUpsertViewFilterOr(BaseModel):
98
+ feeds: Optional[List["UpsertViewUpsertViewFilterOrFeeds"]]
99
+ workflows: Optional[List["UpsertViewUpsertViewFilterOrWorkflows"]]
100
+ collections: Optional[List["UpsertViewUpsertViewFilterOrCollections"]]
101
+ users: Optional[List["UpsertViewUpsertViewFilterOrUsers"]]
102
+ observations: Optional[List["UpsertViewUpsertViewFilterOrObservations"]]
103
+
104
+
105
+ class UpsertViewUpsertViewFilterOrFeeds(BaseModel):
106
+ id: str
107
+
108
+
109
+ class UpsertViewUpsertViewFilterOrWorkflows(BaseModel):
110
+ id: str
111
+
112
+
113
+ class UpsertViewUpsertViewFilterOrCollections(BaseModel):
114
+ id: str
115
+
116
+
117
+ class UpsertViewUpsertViewFilterOrUsers(BaseModel):
118
+ id: str
119
+
120
+
121
+ class UpsertViewUpsertViewFilterOrObservations(BaseModel):
122
+ type: ObservableTypes
123
+ observable: "UpsertViewUpsertViewFilterOrObservationsObservable"
124
+ states: Optional[List[Optional[EntityState]]]
125
+
126
+
127
+ class UpsertViewUpsertViewFilterOrObservationsObservable(BaseModel):
128
+ id: str
129
+
130
+
131
+ class UpsertViewUpsertViewFilterAnd(BaseModel):
132
+ feeds: Optional[List["UpsertViewUpsertViewFilterAndFeeds"]]
133
+ workflows: Optional[List["UpsertViewUpsertViewFilterAndWorkflows"]]
134
+ collections: Optional[List["UpsertViewUpsertViewFilterAndCollections"]]
135
+ users: Optional[List["UpsertViewUpsertViewFilterAndUsers"]]
136
+ observations: Optional[List["UpsertViewUpsertViewFilterAndObservations"]]
137
+
138
+
139
+ class UpsertViewUpsertViewFilterAndFeeds(BaseModel):
140
+ id: str
141
+
142
+
143
+ class UpsertViewUpsertViewFilterAndWorkflows(BaseModel):
144
+ id: str
145
+
146
+
147
+ class UpsertViewUpsertViewFilterAndCollections(BaseModel):
148
+ id: str
149
+
150
+
151
+ class UpsertViewUpsertViewFilterAndUsers(BaseModel):
152
+ id: str
153
+
154
+
155
+ class UpsertViewUpsertViewFilterAndObservations(BaseModel):
156
+ type: ObservableTypes
157
+ observable: "UpsertViewUpsertViewFilterAndObservationsObservable"
158
+ states: Optional[List[Optional[EntityState]]]
159
+
160
+
161
+ class UpsertViewUpsertViewFilterAndObservationsObservable(BaseModel):
162
+ id: str
163
+
164
+
165
+ class UpsertViewUpsertViewAugmentedFilter(BaseModel):
166
+ date_range: Optional["UpsertViewUpsertViewAugmentedFilterDateRange"] = Field(
167
+ alias="dateRange"
168
+ )
169
+ in_last: Optional[Any] = Field(alias="inLast")
170
+ creation_date_range: Optional[
171
+ "UpsertViewUpsertViewAugmentedFilterCreationDateRange"
172
+ ] = Field(alias="creationDateRange")
173
+ created_in_last: Optional[Any] = Field(alias="createdInLast")
174
+ types: Optional[List[ContentTypes]]
175
+ file_types: Optional[List[Optional[FileTypes]]] = Field(alias="fileTypes")
176
+ formats: Optional[List[Optional[str]]]
177
+ file_extensions: Optional[List[str]] = Field(alias="fileExtensions")
178
+ similar_contents: Optional[
179
+ List["UpsertViewUpsertViewAugmentedFilterSimilarContents"]
180
+ ] = Field(alias="similarContents")
181
+ contents: Optional[List["UpsertViewUpsertViewAugmentedFilterContents"]]
182
+ feeds: Optional[List["UpsertViewUpsertViewAugmentedFilterFeeds"]]
183
+ workflows: Optional[List["UpsertViewUpsertViewAugmentedFilterWorkflows"]]
184
+ collections: Optional[List["UpsertViewUpsertViewAugmentedFilterCollections"]]
185
+ users: Optional[List["UpsertViewUpsertViewAugmentedFilterUsers"]]
186
+ observations: Optional[List["UpsertViewUpsertViewAugmentedFilterObservations"]]
187
+ or_: Optional[List["UpsertViewUpsertViewAugmentedFilterOr"]] = Field(alias="or")
188
+ and_: Optional[List["UpsertViewUpsertViewAugmentedFilterAnd"]] = Field(alias="and")
189
+
190
+
191
+ class UpsertViewUpsertViewAugmentedFilterDateRange(BaseModel):
192
+ from_: Optional[Any] = Field(alias="from")
193
+ to: Optional[Any]
194
+
195
+
196
+ class UpsertViewUpsertViewAugmentedFilterCreationDateRange(BaseModel):
197
+ from_: Optional[Any] = Field(alias="from")
198
+ to: Optional[Any]
199
+
200
+
201
+ class UpsertViewUpsertViewAugmentedFilterSimilarContents(BaseModel):
202
+ id: str
203
+
204
+
205
+ class UpsertViewUpsertViewAugmentedFilterContents(BaseModel):
206
+ id: str
207
+
208
+
209
+ class UpsertViewUpsertViewAugmentedFilterFeeds(BaseModel):
210
+ id: str
211
+
212
+
213
+ class UpsertViewUpsertViewAugmentedFilterWorkflows(BaseModel):
214
+ id: str
215
+
216
+
217
+ class UpsertViewUpsertViewAugmentedFilterCollections(BaseModel):
218
+ id: str
219
+
220
+
221
+ class UpsertViewUpsertViewAugmentedFilterUsers(BaseModel):
222
+ id: str
223
+
224
+
225
+ class UpsertViewUpsertViewAugmentedFilterObservations(BaseModel):
226
+ type: ObservableTypes
227
+ observable: "UpsertViewUpsertViewAugmentedFilterObservationsObservable"
228
+ states: Optional[List[Optional[EntityState]]]
229
+
230
+
231
+ class UpsertViewUpsertViewAugmentedFilterObservationsObservable(BaseModel):
232
+ id: str
233
+
234
+
235
+ class UpsertViewUpsertViewAugmentedFilterOr(BaseModel):
236
+ feeds: Optional[List["UpsertViewUpsertViewAugmentedFilterOrFeeds"]]
237
+ workflows: Optional[List["UpsertViewUpsertViewAugmentedFilterOrWorkflows"]]
238
+ collections: Optional[List["UpsertViewUpsertViewAugmentedFilterOrCollections"]]
239
+ users: Optional[List["UpsertViewUpsertViewAugmentedFilterOrUsers"]]
240
+ observations: Optional[List["UpsertViewUpsertViewAugmentedFilterOrObservations"]]
241
+
242
+
243
+ class UpsertViewUpsertViewAugmentedFilterOrFeeds(BaseModel):
244
+ id: str
245
+
246
+
247
+ class UpsertViewUpsertViewAugmentedFilterOrWorkflows(BaseModel):
248
+ id: str
249
+
250
+
251
+ class UpsertViewUpsertViewAugmentedFilterOrCollections(BaseModel):
252
+ id: str
253
+
254
+
255
+ class UpsertViewUpsertViewAugmentedFilterOrUsers(BaseModel):
256
+ id: str
257
+
258
+
259
+ class UpsertViewUpsertViewAugmentedFilterOrObservations(BaseModel):
260
+ type: ObservableTypes
261
+ observable: "UpsertViewUpsertViewAugmentedFilterOrObservationsObservable"
262
+ states: Optional[List[Optional[EntityState]]]
263
+
264
+
265
+ class UpsertViewUpsertViewAugmentedFilterOrObservationsObservable(BaseModel):
266
+ id: str
267
+
268
+
269
+ class UpsertViewUpsertViewAugmentedFilterAnd(BaseModel):
270
+ feeds: Optional[List["UpsertViewUpsertViewAugmentedFilterAndFeeds"]]
271
+ workflows: Optional[List["UpsertViewUpsertViewAugmentedFilterAndWorkflows"]]
272
+ collections: Optional[List["UpsertViewUpsertViewAugmentedFilterAndCollections"]]
273
+ users: Optional[List["UpsertViewUpsertViewAugmentedFilterAndUsers"]]
274
+ observations: Optional[List["UpsertViewUpsertViewAugmentedFilterAndObservations"]]
275
+
276
+
277
+ class UpsertViewUpsertViewAugmentedFilterAndFeeds(BaseModel):
278
+ id: str
279
+
280
+
281
+ class UpsertViewUpsertViewAugmentedFilterAndWorkflows(BaseModel):
282
+ id: str
283
+
284
+
285
+ class UpsertViewUpsertViewAugmentedFilterAndCollections(BaseModel):
286
+ id: str
287
+
288
+
289
+ class UpsertViewUpsertViewAugmentedFilterAndUsers(BaseModel):
290
+ id: str
291
+
292
+
293
+ class UpsertViewUpsertViewAugmentedFilterAndObservations(BaseModel):
294
+ type: ObservableTypes
295
+ observable: "UpsertViewUpsertViewAugmentedFilterAndObservationsObservable"
296
+ states: Optional[List[Optional[EntityState]]]
297
+
298
+
299
+ class UpsertViewUpsertViewAugmentedFilterAndObservationsObservable(BaseModel):
300
+ id: str
301
+
302
+
303
+ UpsertView.model_rebuild()
304
+ UpsertViewUpsertView.model_rebuild()
305
+ UpsertViewUpsertViewFilter.model_rebuild()
306
+ UpsertViewUpsertViewFilterObservations.model_rebuild()
307
+ UpsertViewUpsertViewFilterOr.model_rebuild()
308
+ UpsertViewUpsertViewFilterOrObservations.model_rebuild()
309
+ UpsertViewUpsertViewFilterAnd.model_rebuild()
310
+ UpsertViewUpsertViewFilterAndObservations.model_rebuild()
311
+ UpsertViewUpsertViewAugmentedFilter.model_rebuild()
312
+ UpsertViewUpsertViewAugmentedFilterObservations.model_rebuild()
313
+ UpsertViewUpsertViewAugmentedFilterOr.model_rebuild()
314
+ UpsertViewUpsertViewAugmentedFilterOrObservations.model_rebuild()
315
+ UpsertViewUpsertViewAugmentedFilterAnd.model_rebuild()
316
+ UpsertViewUpsertViewAugmentedFilterAndObservations.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphlit-client
3
- Version: 1.0.20250627002
3
+ Version: 1.0.20250627004
4
4
  Summary: Graphlit API Python Client
5
5
  Home-page: https://github.com/graphlit/graphlit-client-python
6
6
  Author: Unstruk Data Inc.
@@ -1,13 +1,13 @@
1
1
  graphlit/__init__.py,sha256=4AyigTlFQWP40lnaaQ1H1iRT_B1hIXW9bgPanbwmTvs,32
2
2
  graphlit/graphlit.py,sha256=g2znIWEb6fIwMKGm5G_BY4VHdaZi6hLO4Y6FdBjNesM,2389
3
- graphlit_api/__init__.py,sha256=xAZqDQS2xgG4i82ldRwhwdQRPC4ZlkN5QwTExPKeT3Y,230979
3
+ graphlit_api/__init__.py,sha256=-dQunL4AlD7sqgLs6TPy1qqOQRAmqQ2K8L5iBSXV7yU,236339
4
4
  graphlit_api/add_contents_to_collections.py,sha256=K7tNpLn8-lRVaVT39iKr-VtCKRWVONyL_h6cC0L606Y,888
5
5
  graphlit_api/ask_graphlit.py,sha256=U2grdqvzeFMjTzM5ACTEXV2Rk-R_WAwdslzWAtZb6i8,6489
6
6
  graphlit_api/async_base_client.py,sha256=v0KUVwe2_RIQa8Mn7l_yD5McUe7B03vhclJ9SP4XGgw,12578
7
7
  graphlit_api/base_model.py,sha256=o2d-DixASFCGztr3rTiGX0AwgFu7Awr7EgD70FI8a-I,620
8
8
  graphlit_api/branch_conversation.py,sha256=iU3IsoM526AHUHjX0ODAyOPTpyS9N5RqSdytoAOmKbU,539
9
9
  graphlit_api/clear_conversation.py,sha256=5GOmc2wfupV-7EHWyi3v6LA0pSVLtFNCzxPJm42Dp6Y,531
10
- graphlit_api/client.py,sha256=obbaeXykXw7rJ_OxvlChK0z2YHKrjM3viGK1pTJ6VSU,219059
10
+ graphlit_api/client.py,sha256=aNCF1vFpcVto9aACCb4cXAdMGsmzPEMRr36mPiS9H2A,220471
11
11
  graphlit_api/close_conversation.py,sha256=HcIUUiNf7hnuLZ7Fy6IcgfuHMSyWyJ7uOEy1EEETy_4,531
12
12
  graphlit_api/complete_conversation.py,sha256=39v86YLrm9IGQVcsRHUyxoTkiT1sNoVPQZzim5FxSZo,16844
13
13
  graphlit_api/continue_conversation.py,sha256=Ba_ufN-4Ji6ZjznlilvS85xxkdV5JGpnuEQUU-qGXBk,16844
@@ -219,7 +219,7 @@ graphlit_api/lookup_contents.py,sha256=_s9tmHSm6WNIEKQ4J2JEdSsGg30HKhf3CxoiPMwZJ
219
219
  graphlit_api/lookup_credits.py,sha256=WsV7fGbg29WWOjPRIaL2bnhISGsb0SqUlQxL7rBfNTo,1464
220
220
  graphlit_api/lookup_usage.py,sha256=D_cbO0KmXDqRYqQIhNwWXNFGjwNLEy2_5aVa-SYgRzw,1711
221
221
  graphlit_api/map_web.py,sha256=2rp4jFD1vDqcQ98mCVTeC0RzPqQxmmcRvHNRl8HJfFA,346
222
- graphlit_api/operations.py,sha256=M1yqV4bK1ah35hV8VVP7Yt8dhcQt_U3fmh0oGFuUp2s,221381
222
+ graphlit_api/operations.py,sha256=BWZp0weuHczyL3Ht0c-fgM98jhfC2BvWko-WbmYn36w,224411
223
223
  graphlit_api/prompt.py,sha256=jBlM3ywGnbVPYSBHMDPAy5ZlDDtndRsHnV7twcwLX1g,6203
224
224
  graphlit_api/prompt_conversation.py,sha256=JMiDfxFaixz63wXcT-h948c5x2Uc6PgB3D7wORltkhU,16458
225
225
  graphlit_api/prompt_specifications.py,sha256=GFLRlyp5pISfB0PVMw3RPCwGvqkA3qI5M2NiXXu2aT0,7090
@@ -279,6 +279,7 @@ graphlit_api/query_views.py,sha256=nqT3g0SnkMHAYLS8h51qRyXdn_XSCvgouvx2KrJ-IM8,1
279
279
  graphlit_api/query_workflows.py,sha256=xAj1xe75F9j1cf1Xkof2XF2CkCIV9QKcQSojXP6i9Qc,17360
280
280
  graphlit_api/remove_contents_from_collection.py,sha256=LnUL43UNNIPY-DBn-vg0Jx89tfuEBpctGgdQ5U75UlU,950
281
281
  graphlit_api/retrieve_sources.py,sha256=MLtgZ7_jKNGjf5LKFqJy-KyQESo_KvNeV_gjsfyV2XQ,1134
282
+ graphlit_api/retrieve_view.py,sha256=1-0bM2mLCfBAtNYGrujDSJLsGyiiau7jbCz1SYzZBPQ,1060
282
283
  graphlit_api/revise_content.py,sha256=sy-x1P_oMY2BVOJafB2X9ApPXKPjFS25nrwRJtzWMo8,6605
283
284
  graphlit_api/revise_encoded_image.py,sha256=HvA0N23IL_6kUGTtdlm575Nh-AWZzYQUV9fkPHzM23Q,6894
284
285
  graphlit_api/revise_image.py,sha256=WWLTnKXDNJ9rZHV3PKw4c2C_TRCTrQzKU0ZEJFNQrew,6489
@@ -325,11 +326,12 @@ graphlit_api/update_workflow.py,sha256=7yo3c5v4ScPdfOkPtnqyq-0hRTIkdjuHuCXDnsj8J
325
326
  graphlit_api/upsert_category.py,sha256=Q60eV1hfyx9xV6fWNW9bhadTqWFfY4-u8V-vGMUO7Vs,396
326
327
  graphlit_api/upsert_label.py,sha256=_bVWrISvyt4G4IcjAKqu8c5P6FDgaODdIGtSToJfNOY,358
327
328
  graphlit_api/upsert_specification.py,sha256=23eLTL8OLAYE-j_nhjT5NgaCrSUs9Q40rGW_VhDrDoM,643
329
+ graphlit_api/upsert_view.py,sha256=heJie4ClpyUbADUdtHvZn94Vppsf4xLmfHk9dVPLzi0,10224
328
330
  graphlit_api/upsert_workflow.py,sha256=BWzMvOF7kQWs-uLuet5jCletHq8KGD7XK-ZwWpHM5MU,16804
329
331
  graphlit_api/view_exists.py,sha256=OSYvGogCDHxbHfIjcjgKBSmCoIE4gOEjnPgiS5xX_yE,351
330
332
  graphlit_api/workflow_exists.py,sha256=1XVcqCW_KZ3BwUFx08lwqQdf1ZpJ6Vmi8jBqcrMqYRI,397
331
- graphlit_client-1.0.20250627002.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
332
- graphlit_client-1.0.20250627002.dist-info/METADATA,sha256=Uf_Uw0EJotN4iDrZ1yElclNNobBHYzNdgQFftsDLTOo,3408
333
- graphlit_client-1.0.20250627002.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
334
- graphlit_client-1.0.20250627002.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
335
- graphlit_client-1.0.20250627002.dist-info/RECORD,,
333
+ graphlit_client-1.0.20250627004.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
334
+ graphlit_client-1.0.20250627004.dist-info/METADATA,sha256=7HpjQxf7DieuJOpyGrYlU-yi2sJIfnvquhRmAKW_z-U,3408
335
+ graphlit_client-1.0.20250627004.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
336
+ graphlit_client-1.0.20250627004.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
337
+ graphlit_client-1.0.20250627004.dist-info/RECORD,,