graphlit-client 1.0.20250608001__py3-none-any.whl → 1.0.20250613001__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 (30) hide show
  1. graphlit_api/__init__.py +74 -0
  2. graphlit_api/ask_graphlit.py +1 -0
  3. graphlit_api/client.py +18 -0
  4. graphlit_api/complete_conversation.py +2 -0
  5. graphlit_api/continue_conversation.py +2 -0
  6. graphlit_api/describe_encoded_image.py +1 -0
  7. graphlit_api/describe_image.py +1 -0
  8. graphlit_api/enums.py +1 -0
  9. graphlit_api/format_conversation.py +2 -0
  10. graphlit_api/get_conversation.py +1 -0
  11. graphlit_api/input_types.py +2 -0
  12. graphlit_api/lookup_contents.py +397 -0
  13. graphlit_api/operations.py +312 -0
  14. graphlit_api/prompt.py +1 -0
  15. graphlit_api/prompt_conversation.py +2 -0
  16. graphlit_api/prompt_specifications.py +1 -0
  17. graphlit_api/publish_contents.py +1 -0
  18. graphlit_api/publish_conversation.py +1 -0
  19. graphlit_api/publish_text.py +1 -0
  20. graphlit_api/query_contents.py +1 -0
  21. graphlit_api/query_conversations.py +1 -0
  22. graphlit_api/revise_content.py +1 -0
  23. graphlit_api/revise_encoded_image.py +1 -0
  24. graphlit_api/revise_image.py +1 -0
  25. graphlit_api/revise_text.py +1 -0
  26. {graphlit_client-1.0.20250608001.dist-info → graphlit_client-1.0.20250613001.dist-info}/METADATA +1 -1
  27. {graphlit_client-1.0.20250608001.dist-info → graphlit_client-1.0.20250613001.dist-info}/RECORD +30 -29
  28. {graphlit_client-1.0.20250608001.dist-info → graphlit_client-1.0.20250613001.dist-info}/WHEEL +0 -0
  29. {graphlit_client-1.0.20250608001.dist-info → graphlit_client-1.0.20250613001.dist-info}/licenses/LICENSE +0 -0
  30. {graphlit_client-1.0.20250608001.dist-info → graphlit_client-1.0.20250613001.dist-info}/top_level.txt +0 -0
@@ -200,6 +200,7 @@ __all__ = [
200
200
  "INGEST_URI_GQL",
201
201
  "IS_CONTENT_DONE_GQL",
202
202
  "IS_FEED_DONE_GQL",
203
+ "LOOKUP_CONTENTS_GQL",
203
204
  "LOOKUP_CREDITS_GQL",
204
205
  "LOOKUP_USAGE_GQL",
205
206
  "MAP_WEB_GQL",
@@ -972,6 +973,7 @@ mutation DescribeEncodedImage($prompt: String!, $mimeType: String!, $data: Strin
972
973
  posts
973
974
  chapters
974
975
  questions
976
+ quotes
975
977
  video {
976
978
  width
977
979
  height
@@ -1107,6 +1109,7 @@ mutation DescribeImage($prompt: String!, $uri: URL!, $specification: EntityRefer
1107
1109
  posts
1108
1110
  chapters
1109
1111
  questions
1112
+ quotes
1110
1113
  video {
1111
1114
  width
1112
1115
  height
@@ -1930,6 +1933,294 @@ query IsContentDone($id: ID!) {
1930
1933
  }
1931
1934
  """
1932
1935
 
1936
+ LOOKUP_CONTENTS_GQL = """
1937
+ query LookupContents($ids: [ID!]!, $correlationId: String) {
1938
+ lookupContents(ids: $ids, correlationId: $correlationId) {
1939
+ results {
1940
+ id
1941
+ name
1942
+ creationDate
1943
+ owner {
1944
+ id
1945
+ }
1946
+ state
1947
+ originalDate
1948
+ finishedDate
1949
+ fileCreationDate
1950
+ fileModifiedDate
1951
+ workflowDuration
1952
+ uri
1953
+ description
1954
+ identifier
1955
+ markdown
1956
+ address {
1957
+ streetAddress
1958
+ city
1959
+ region
1960
+ country
1961
+ postalCode
1962
+ }
1963
+ location {
1964
+ latitude
1965
+ longitude
1966
+ }
1967
+ h3 {
1968
+ h3r0
1969
+ h3r1
1970
+ h3r2
1971
+ h3r3
1972
+ h3r4
1973
+ h3r5
1974
+ h3r6
1975
+ h3r7
1976
+ h3r8
1977
+ h3r9
1978
+ h3r10
1979
+ h3r11
1980
+ h3r12
1981
+ h3r13
1982
+ h3r14
1983
+ h3r15
1984
+ }
1985
+ boundary
1986
+ epsgCode
1987
+ path
1988
+ features
1989
+ c4id
1990
+ type
1991
+ fileType
1992
+ mimeType
1993
+ format
1994
+ formatName
1995
+ fileName
1996
+ fileSize
1997
+ masterUri
1998
+ imageUri
1999
+ textUri
2000
+ audioUri
2001
+ transcriptUri
2002
+ summary
2003
+ customSummary
2004
+ keywords
2005
+ bullets
2006
+ headlines
2007
+ posts
2008
+ chapters
2009
+ questions
2010
+ video {
2011
+ width
2012
+ height
2013
+ duration
2014
+ make
2015
+ model
2016
+ software
2017
+ title
2018
+ description
2019
+ keywords
2020
+ author
2021
+ }
2022
+ audio {
2023
+ keywords
2024
+ author
2025
+ series
2026
+ episode
2027
+ episodeType
2028
+ season
2029
+ publisher
2030
+ copyright
2031
+ genre
2032
+ title
2033
+ description
2034
+ bitrate
2035
+ channels
2036
+ sampleRate
2037
+ bitsPerSample
2038
+ duration
2039
+ }
2040
+ image {
2041
+ width
2042
+ height
2043
+ resolutionX
2044
+ resolutionY
2045
+ bitsPerComponent
2046
+ components
2047
+ projectionType
2048
+ orientation
2049
+ description
2050
+ make
2051
+ model
2052
+ software
2053
+ lens
2054
+ focalLength
2055
+ exposureTime
2056
+ fNumber
2057
+ iso
2058
+ heading
2059
+ pitch
2060
+ }
2061
+ document {
2062
+ title
2063
+ subject
2064
+ summary
2065
+ author
2066
+ publisher
2067
+ description
2068
+ keywords
2069
+ pageCount
2070
+ worksheetCount
2071
+ slideCount
2072
+ wordCount
2073
+ lineCount
2074
+ paragraphCount
2075
+ isEncrypted
2076
+ hasDigitalSignature
2077
+ }
2078
+ email {
2079
+ identifier
2080
+ threadIdentifier
2081
+ subject
2082
+ labels
2083
+ sensitivity
2084
+ priority
2085
+ importance
2086
+ from {
2087
+ name
2088
+ email
2089
+ givenName
2090
+ familyName
2091
+ }
2092
+ to {
2093
+ name
2094
+ email
2095
+ givenName
2096
+ familyName
2097
+ }
2098
+ cc {
2099
+ name
2100
+ email
2101
+ givenName
2102
+ familyName
2103
+ }
2104
+ bcc {
2105
+ name
2106
+ email
2107
+ givenName
2108
+ familyName
2109
+ }
2110
+ }
2111
+ issue {
2112
+ identifier
2113
+ title
2114
+ project
2115
+ team
2116
+ status
2117
+ priority
2118
+ type
2119
+ labels
2120
+ }
2121
+ package {
2122
+ fileCount
2123
+ folderCount
2124
+ isEncrypted
2125
+ }
2126
+ language {
2127
+ languages
2128
+ }
2129
+ parent {
2130
+ id
2131
+ name
2132
+ }
2133
+ children {
2134
+ id
2135
+ name
2136
+ }
2137
+ feed {
2138
+ id
2139
+ name
2140
+ }
2141
+ collections {
2142
+ id
2143
+ name
2144
+ }
2145
+ links {
2146
+ uri
2147
+ linkType
2148
+ }
2149
+ observations {
2150
+ id
2151
+ type
2152
+ observable {
2153
+ id
2154
+ name
2155
+ }
2156
+ related {
2157
+ id
2158
+ name
2159
+ }
2160
+ relatedType
2161
+ relation
2162
+ occurrences {
2163
+ type
2164
+ confidence
2165
+ startTime
2166
+ endTime
2167
+ pageIndex
2168
+ boundingBox {
2169
+ left
2170
+ top
2171
+ width
2172
+ height
2173
+ }
2174
+ }
2175
+ state
2176
+ }
2177
+ workflow {
2178
+ id
2179
+ name
2180
+ }
2181
+ pages {
2182
+ index
2183
+ text
2184
+ relevance
2185
+ images {
2186
+ id
2187
+ mimeType
2188
+ data
2189
+ left
2190
+ right
2191
+ top
2192
+ bottom
2193
+ }
2194
+ chunks {
2195
+ index
2196
+ pageIndex
2197
+ rowIndex
2198
+ columnIndex
2199
+ confidence
2200
+ text
2201
+ role
2202
+ language
2203
+ relevance
2204
+ }
2205
+ }
2206
+ segments {
2207
+ startTime
2208
+ endTime
2209
+ text
2210
+ relevance
2211
+ }
2212
+ frames {
2213
+ index
2214
+ description
2215
+ text
2216
+ relevance
2217
+ }
2218
+ error
2219
+ }
2220
+ }
2221
+ }
2222
+ """
2223
+
1933
2224
  PUBLISH_CONTENTS_GQL = """
1934
2225
  mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $includeDetails: Boolean, $isSynchronous: Boolean, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput) {
1935
2226
  publishContents(
@@ -1974,6 +2265,7 @@ mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $conne
1974
2265
  posts
1975
2266
  chapters
1976
2267
  questions
2268
+ quotes
1977
2269
  video {
1978
2270
  width
1979
2271
  height
@@ -2099,6 +2391,7 @@ mutation PublishText($text: String!, $textType: TextTypes, $connector: ContentPu
2099
2391
  posts
2100
2392
  chapters
2101
2393
  questions
2394
+ quotes
2102
2395
  video {
2103
2396
  width
2104
2397
  height
@@ -2231,6 +2524,7 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2231
2524
  posts
2232
2525
  chapters
2233
2526
  questions
2527
+ quotes
2234
2528
  video {
2235
2529
  width
2236
2530
  height
@@ -2674,6 +2968,7 @@ mutation AskGraphlit($prompt: String!, $type: SdkTypes, $id: ID, $specification:
2674
2968
  posts
2675
2969
  chapters
2676
2970
  questions
2971
+ quotes
2677
2972
  video {
2678
2973
  width
2679
2974
  height
@@ -2847,6 +3142,7 @@ mutation CompleteConversation($completion: String!, $id: ID!, $correlationId: St
2847
3142
  posts
2848
3143
  chapters
2849
3144
  questions
3145
+ quotes
2850
3146
  video {
2851
3147
  width
2852
3148
  height
@@ -3024,6 +3320,7 @@ mutation CompleteConversation($completion: String!, $id: ID!, $correlationId: St
3024
3320
  posts
3025
3321
  chapters
3026
3322
  questions
3323
+ quotes
3027
3324
  video {
3028
3325
  width
3029
3326
  height
@@ -3164,6 +3461,7 @@ mutation ContinueConversation($id: ID!, $responses: [ConversationToolResponseInp
3164
3461
  posts
3165
3462
  chapters
3166
3463
  questions
3464
+ quotes
3167
3465
  video {
3168
3466
  width
3169
3467
  height
@@ -3341,6 +3639,7 @@ mutation ContinueConversation($id: ID!, $responses: [ConversationToolResponseInp
3341
3639
  posts
3342
3640
  chapters
3343
3641
  questions
3642
+ quotes
3344
3643
  video {
3345
3644
  width
3346
3645
  height
@@ -3534,6 +3833,7 @@ mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityRef
3534
3833
  posts
3535
3834
  chapters
3536
3835
  questions
3836
+ quotes
3537
3837
  video {
3538
3838
  width
3539
3839
  height
@@ -3711,6 +4011,7 @@ mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityRef
3711
4011
  posts
3712
4012
  chapters
3713
4013
  questions
4014
+ quotes
3714
4015
  video {
3715
4016
  width
3716
4017
  height
@@ -3854,6 +4155,7 @@ query GetConversation($id: ID!, $correlationId: String) {
3854
4155
  posts
3855
4156
  chapters
3856
4157
  questions
4158
+ quotes
3857
4159
  video {
3858
4160
  width
3859
4161
  height
@@ -4170,6 +4472,7 @@ mutation Prompt($prompt: String, $mimeType: String, $data: String, $specificatio
4170
4472
  posts
4171
4473
  chapters
4172
4474
  questions
4475
+ quotes
4173
4476
  video {
4174
4477
  width
4175
4478
  height
@@ -4316,6 +4619,7 @@ mutation PromptConversation($prompt: String!, $mimeType: String, $data: String,
4316
4619
  posts
4317
4620
  chapters
4318
4621
  questions
4622
+ quotes
4319
4623
  video {
4320
4624
  width
4321
4625
  height
@@ -4493,6 +4797,7 @@ mutation PromptConversation($prompt: String!, $mimeType: String, $data: String,
4493
4797
  posts
4494
4798
  chapters
4495
4799
  questions
4800
+ quotes
4496
4801
  video {
4497
4802
  width
4498
4803
  height
@@ -4629,6 +4934,7 @@ mutation PublishConversation($id: ID!, $connector: ContentPublishingConnectorInp
4629
4934
  posts
4630
4935
  chapters
4631
4936
  questions
4937
+ quotes
4632
4938
  video {
4633
4939
  width
4634
4940
  height
@@ -4761,6 +5067,7 @@ query QueryConversations($filter: ConversationFilter, $correlationId: String) {
4761
5067
  posts
4762
5068
  chapters
4763
5069
  questions
5070
+ quotes
4764
5071
  video {
4765
5072
  width
4766
5073
  height
@@ -5104,6 +5411,7 @@ mutation ReviseContent($prompt: String!, $content: EntityReferenceInput!, $id: I
5104
5411
  posts
5105
5412
  chapters
5106
5413
  questions
5414
+ quotes
5107
5415
  video {
5108
5416
  width
5109
5417
  height
@@ -5247,6 +5555,7 @@ mutation ReviseEncodedImage($prompt: String!, $mimeType: String!, $data: String!
5247
5555
  posts
5248
5556
  chapters
5249
5557
  questions
5558
+ quotes
5250
5559
  video {
5251
5560
  width
5252
5561
  height
@@ -5389,6 +5698,7 @@ mutation ReviseImage($prompt: String!, $uri: URL!, $id: ID, $specification: Enti
5389
5698
  posts
5390
5699
  chapters
5391
5700
  questions
5701
+ quotes
5392
5702
  video {
5393
5703
  width
5394
5704
  height
@@ -5531,6 +5841,7 @@ mutation ReviseText($prompt: String!, $text: String!, $id: ID, $specification: E
5531
5841
  posts
5532
5842
  chapters
5533
5843
  questions
5844
+ quotes
5534
5845
  video {
5535
5846
  width
5536
5847
  height
@@ -8763,6 +9074,7 @@ mutation PromptSpecifications($prompt: String!, $ids: [ID!]!) {
8763
9074
  posts
8764
9075
  chapters
8765
9076
  questions
9077
+ quotes
8766
9078
  video {
8767
9079
  width
8768
9080
  height
graphlit_api/prompt.py CHANGED
@@ -89,6 +89,7 @@ class PromptPromptMessagesCitationsContent(BaseModel):
89
89
  posts: Optional[List[str]]
90
90
  chapters: Optional[List[str]]
91
91
  questions: Optional[List[str]]
92
+ quotes: Optional[List[str]]
92
93
  video: Optional["PromptPromptMessagesCitationsContentVideo"]
93
94
  audio: Optional["PromptPromptMessagesCitationsContentAudio"]
94
95
  image: Optional["PromptPromptMessagesCitationsContentImage"]
@@ -100,6 +100,7 @@ class PromptConversationPromptConversationMessageCitationsContent(BaseModel):
100
100
  posts: Optional[List[str]]
101
101
  chapters: Optional[List[str]]
102
102
  questions: Optional[List[str]]
103
+ quotes: Optional[List[str]]
103
104
  video: Optional["PromptConversationPromptConversationMessageCitationsContentVideo"]
104
105
  audio: Optional["PromptConversationPromptConversationMessageCitationsContentAudio"]
105
106
  image: Optional["PromptConversationPromptConversationMessageCitationsContentImage"]
@@ -318,6 +319,7 @@ class PromptConversationPromptConversationDetailsMessagesCitationsContent(BaseMo
318
319
  posts: Optional[List[str]]
319
320
  chapters: Optional[List[str]]
320
321
  questions: Optional[List[str]]
322
+ quotes: Optional[List[str]]
321
323
  video: Optional[
322
324
  "PromptConversationPromptConversationDetailsMessagesCitationsContentVideo"
323
325
  ]
@@ -97,6 +97,7 @@ class PromptSpecificationsPromptSpecificationsMessagesCitationsContent(BaseModel
97
97
  posts: Optional[List[str]]
98
98
  chapters: Optional[List[str]]
99
99
  questions: Optional[List[str]]
100
+ quotes: Optional[List[str]]
100
101
  video: Optional[
101
102
  "PromptSpecificationsPromptSpecificationsMessagesCitationsContentVideo"
102
103
  ]
@@ -56,6 +56,7 @@ class PublishContentsPublishContentsContents(BaseModel):
56
56
  posts: Optional[List[str]]
57
57
  chapters: Optional[List[str]]
58
58
  questions: Optional[List[str]]
59
+ quotes: Optional[List[str]]
59
60
  video: Optional["PublishContentsPublishContentsContentsVideo"]
60
61
  audio: Optional["PublishContentsPublishContentsContentsAudio"]
61
62
  image: Optional["PublishContentsPublishContentsContentsImage"]
@@ -56,6 +56,7 @@ class PublishConversationPublishConversationContents(BaseModel):
56
56
  posts: Optional[List[str]]
57
57
  chapters: Optional[List[str]]
58
58
  questions: Optional[List[str]]
59
+ quotes: Optional[List[str]]
59
60
  video: Optional["PublishConversationPublishConversationContentsVideo"]
60
61
  audio: Optional["PublishConversationPublishConversationContentsAudio"]
61
62
  image: Optional["PublishConversationPublishConversationContentsImage"]
@@ -54,6 +54,7 @@ class PublishTextPublishTextContents(BaseModel):
54
54
  posts: Optional[List[str]]
55
55
  chapters: Optional[List[str]]
56
56
  questions: Optional[List[str]]
57
+ quotes: Optional[List[str]]
57
58
  video: Optional["PublishTextPublishTextContentsVideo"]
58
59
  audio: Optional["PublishTextPublishTextContentsAudio"]
59
60
  image: Optional["PublishTextPublishTextContentsImage"]
@@ -63,6 +63,7 @@ class QueryContentsContentsResults(BaseModel):
63
63
  posts: Optional[List[str]]
64
64
  chapters: Optional[List[str]]
65
65
  questions: Optional[List[str]]
66
+ quotes: Optional[List[str]]
66
67
  video: Optional["QueryContentsContentsResultsVideo"]
67
68
  audio: Optional["QueryContentsContentsResultsAudio"]
68
69
  image: Optional["QueryContentsContentsResultsImage"]
@@ -111,6 +111,7 @@ class QueryConversationsConversationsResultsMessagesCitationsContent(BaseModel):
111
111
  posts: Optional[List[str]]
112
112
  chapters: Optional[List[str]]
113
113
  questions: Optional[List[str]]
114
+ quotes: Optional[List[str]]
114
115
  video: Optional[
115
116
  "QueryConversationsConversationsResultsMessagesCitationsContentVideo"
116
117
  ]
@@ -91,6 +91,7 @@ class ReviseContentReviseContentMessageCitationsContent(BaseModel):
91
91
  posts: Optional[List[str]]
92
92
  chapters: Optional[List[str]]
93
93
  questions: Optional[List[str]]
94
+ quotes: Optional[List[str]]
94
95
  video: Optional["ReviseContentReviseContentMessageCitationsContentVideo"]
95
96
  audio: Optional["ReviseContentReviseContentMessageCitationsContentAudio"]
96
97
  image: Optional["ReviseContentReviseContentMessageCitationsContentImage"]
@@ -93,6 +93,7 @@ class ReviseEncodedImageReviseEncodedImageMessageCitationsContent(BaseModel):
93
93
  posts: Optional[List[str]]
94
94
  chapters: Optional[List[str]]
95
95
  questions: Optional[List[str]]
96
+ quotes: Optional[List[str]]
96
97
  video: Optional["ReviseEncodedImageReviseEncodedImageMessageCitationsContentVideo"]
97
98
  audio: Optional["ReviseEncodedImageReviseEncodedImageMessageCitationsContentAudio"]
98
99
  image: Optional["ReviseEncodedImageReviseEncodedImageMessageCitationsContentImage"]
@@ -89,6 +89,7 @@ class ReviseImageReviseImageMessageCitationsContent(BaseModel):
89
89
  posts: Optional[List[str]]
90
90
  chapters: Optional[List[str]]
91
91
  questions: Optional[List[str]]
92
+ quotes: Optional[List[str]]
92
93
  video: Optional["ReviseImageReviseImageMessageCitationsContentVideo"]
93
94
  audio: Optional["ReviseImageReviseImageMessageCitationsContentAudio"]
94
95
  image: Optional["ReviseImageReviseImageMessageCitationsContentImage"]
@@ -89,6 +89,7 @@ class ReviseTextReviseTextMessageCitationsContent(BaseModel):
89
89
  posts: Optional[List[str]]
90
90
  chapters: Optional[List[str]]
91
91
  questions: Optional[List[str]]
92
+ quotes: Optional[List[str]]
92
93
  video: Optional["ReviseTextReviseTextMessageCitationsContentVideo"]
93
94
  audio: Optional["ReviseTextReviseTextMessageCitationsContentAudio"]
94
95
  image: Optional["ReviseTextReviseTextMessageCitationsContentImage"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphlit-client
3
- Version: 1.0.20250608001
3
+ Version: 1.0.20250613001
4
4
  Summary: Graphlit API Python Client
5
5
  Home-page: https://github.com/graphlit/graphlit-client-python
6
6
  Author: Unstruk Data Inc.