graphlit-client 1.0.20250313001__py3-none-any.whl → 1.0.20250315002__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.
@@ -157,6 +157,7 @@ __all__ = [
157
157
  "ENABLE_USER_GQL",
158
158
  "EXTRACT_CONTENTS_GQL",
159
159
  "EXTRACT_TEXT_GQL",
160
+ "FEED_EXISTS_GQL",
160
161
  "FORMAT_CONVERSATION_GQL",
161
162
  "GET_ALERT_GQL",
162
163
  "GET_CATEGORY_GQL",
@@ -253,6 +254,7 @@ __all__ = [
253
254
  "SCREENSHOT_PAGE_GQL",
254
255
  "SEARCH_WEB_GQL",
255
256
  "SEND_NOTIFICATION_GQL",
257
+ "SPECIFICATION_EXISTS_GQL",
256
258
  "SUGGEST_CONVERSATION_GQL",
257
259
  "SUMMARIZE_CONTENTS_GQL",
258
260
  "SUMMARIZE_TEXT_GQL",
@@ -286,6 +288,11 @@ __all__ = [
286
288
  "UPDATE_SPECIFICATION_GQL",
287
289
  "UPDATE_USER_GQL",
288
290
  "UPDATE_WORKFLOW_GQL",
291
+ "UPSERT_CATEGORY_GQL",
292
+ "UPSERT_LABEL_GQL",
293
+ "UPSERT_SPECIFICATION_GQL",
294
+ "UPSERT_WORKFLOW_GQL",
295
+ "WORKFLOW_EXISTS_GQL",
289
296
  ]
290
297
 
291
298
  COUNT_ALERTS_GQL = """
@@ -700,6 +707,15 @@ mutation UpdateCategory($category: CategoryUpdateInput!) {
700
707
  }
701
708
  """
702
709
 
710
+ UPSERT_CATEGORY_GQL = """
711
+ mutation UpsertCategory($category: CategoryInput!) {
712
+ upsertCategory(category: $category) {
713
+ id
714
+ name
715
+ }
716
+ }
717
+ """
718
+
703
719
  ADD_CONTENTS_TO_COLLECTIONS_GQL = """
704
720
  mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
705
721
  addContentsToCollections(contents: $contents, collections: $collections) {
@@ -1196,7 +1212,6 @@ query GetContent($id: ID!, $correlationId: String) {
1196
1212
  id
1197
1213
  name
1198
1214
  creationDate
1199
- relevance
1200
1215
  owner {
1201
1216
  id
1202
1217
  }
@@ -1988,7 +2003,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
1988
2003
  uri
1989
2004
  description
1990
2005
  identifier
1991
- markdown
1992
2006
  address {
1993
2007
  streetAddress
1994
2008
  city
@@ -2136,14 +2150,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2136
2150
  language {
2137
2151
  languages
2138
2152
  }
2139
- parent {
2140
- id
2141
- name
2142
- }
2143
- children {
2144
- id
2145
- name
2146
- }
2147
2153
  feed {
2148
2154
  id
2149
2155
  name
@@ -2234,260 +2240,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2234
2240
  QUERY_CONTENTS_FACETS_GQL = """
2235
2241
  query QueryContentsFacets($filter: ContentFilter, $facets: [ContentFacetInput!], $correlationId: String) {
2236
2242
  contents(filter: $filter, facets: $facets, correlationId: $correlationId) {
2237
- results {
2238
- id
2239
- name
2240
- creationDate
2241
- relevance
2242
- owner {
2243
- id
2244
- }
2245
- state
2246
- originalDate
2247
- finishedDate
2248
- workflowDuration
2249
- uri
2250
- description
2251
- identifier
2252
- markdown
2253
- address {
2254
- streetAddress
2255
- city
2256
- region
2257
- country
2258
- postalCode
2259
- }
2260
- location {
2261
- latitude
2262
- longitude
2263
- }
2264
- type
2265
- fileType
2266
- mimeType
2267
- fileName
2268
- fileSize
2269
- masterUri
2270
- imageUri
2271
- textUri
2272
- audioUri
2273
- transcriptUri
2274
- summary
2275
- customSummary
2276
- keywords
2277
- bullets
2278
- headlines
2279
- posts
2280
- chapters
2281
- questions
2282
- video {
2283
- width
2284
- height
2285
- duration
2286
- make
2287
- model
2288
- software
2289
- title
2290
- description
2291
- keywords
2292
- author
2293
- }
2294
- audio {
2295
- keywords
2296
- author
2297
- series
2298
- episode
2299
- episodeType
2300
- season
2301
- publisher
2302
- copyright
2303
- genre
2304
- title
2305
- description
2306
- bitrate
2307
- channels
2308
- sampleRate
2309
- bitsPerSample
2310
- duration
2311
- }
2312
- image {
2313
- width
2314
- height
2315
- resolutionX
2316
- resolutionY
2317
- bitsPerComponent
2318
- components
2319
- projectionType
2320
- orientation
2321
- description
2322
- make
2323
- model
2324
- software
2325
- lens
2326
- focalLength
2327
- exposureTime
2328
- fNumber
2329
- iso
2330
- heading
2331
- pitch
2332
- }
2333
- document {
2334
- title
2335
- subject
2336
- summary
2337
- author
2338
- publisher
2339
- description
2340
- keywords
2341
- pageCount
2342
- worksheetCount
2343
- slideCount
2344
- wordCount
2345
- lineCount
2346
- paragraphCount
2347
- isEncrypted
2348
- hasDigitalSignature
2349
- }
2350
- email {
2351
- identifier
2352
- subject
2353
- labels
2354
- sensitivity
2355
- priority
2356
- importance
2357
- from {
2358
- name
2359
- email
2360
- givenName
2361
- familyName
2362
- }
2363
- to {
2364
- name
2365
- email
2366
- givenName
2367
- familyName
2368
- }
2369
- cc {
2370
- name
2371
- email
2372
- givenName
2373
- familyName
2374
- }
2375
- bcc {
2376
- name
2377
- email
2378
- givenName
2379
- familyName
2380
- }
2381
- }
2382
- issue {
2383
- identifier
2384
- title
2385
- project
2386
- team
2387
- status
2388
- priority
2389
- type
2390
- labels
2391
- }
2392
- package {
2393
- fileCount
2394
- folderCount
2395
- isEncrypted
2396
- }
2397
- language {
2398
- languages
2399
- }
2400
- parent {
2401
- id
2402
- name
2403
- }
2404
- children {
2405
- id
2406
- name
2407
- }
2408
- feed {
2409
- id
2410
- name
2411
- }
2412
- collections {
2413
- id
2414
- name
2415
- }
2416
- links {
2417
- uri
2418
- linkType
2419
- }
2420
- observations {
2421
- id
2422
- type
2423
- observable {
2424
- id
2425
- name
2426
- }
2427
- related {
2428
- id
2429
- name
2430
- }
2431
- relatedType
2432
- relation
2433
- occurrences {
2434
- type
2435
- confidence
2436
- startTime
2437
- endTime
2438
- pageIndex
2439
- boundingBox {
2440
- left
2441
- top
2442
- width
2443
- height
2444
- }
2445
- }
2446
- state
2447
- }
2448
- workflow {
2449
- id
2450
- name
2451
- }
2452
- pages {
2453
- index
2454
- text
2455
- relevance
2456
- images {
2457
- id
2458
- mimeType
2459
- data
2460
- left
2461
- right
2462
- top
2463
- bottom
2464
- }
2465
- chunks {
2466
- index
2467
- pageIndex
2468
- rowIndex
2469
- columnIndex
2470
- confidence
2471
- text
2472
- role
2473
- language
2474
- relevance
2475
- }
2476
- }
2477
- segments {
2478
- startTime
2479
- endTime
2480
- text
2481
- relevance
2482
- }
2483
- frames {
2484
- index
2485
- description
2486
- text
2487
- relevance
2488
- }
2489
- error
2490
- }
2491
2243
  facets {
2492
2244
  facet
2493
2245
  count
@@ -5813,6 +5565,14 @@ mutation EnableFeed($id: ID!) {
5813
5565
  }
5814
5566
  """
5815
5567
 
5568
+ FEED_EXISTS_GQL = """
5569
+ query FeedExists($filter: FeedFilter, $correlationId: String) {
5570
+ feedExists(filter: $filter, correlationId: $correlationId) {
5571
+ result
5572
+ }
5573
+ }
5574
+ """
5575
+
5816
5576
  GET_FEED_GQL = """
5817
5577
  query GetFeed($id: ID!, $correlationId: String) {
5818
5578
  feed(id: $id, correlationId: $correlationId) {
@@ -6466,6 +6226,15 @@ mutation UpdateLabel($label: LabelUpdateInput!) {
6466
6226
  }
6467
6227
  """
6468
6228
 
6229
+ UPSERT_LABEL_GQL = """
6230
+ mutation UpsertLabel($label: LabelInput!) {
6231
+ upsertLabel(label: $label) {
6232
+ id
6233
+ name
6234
+ }
6235
+ }
6236
+ """
6237
+
6469
6238
  COUNT_MEDICAL_CONDITIONS_GQL = """
6470
6239
  query CountMedicalConditions($filter: MedicalConditionFilter, $correlationId: String) {
6471
6240
  countMedicalConditions(filter: $filter, correlationId: $correlationId) {
@@ -8948,6 +8717,14 @@ query QuerySpecifications($filter: SpecificationFilter, $correlationId: String)
8948
8717
  }
8949
8718
  """
8950
8719
 
8720
+ SPECIFICATION_EXISTS_GQL = """
8721
+ query SpecificationExists($filter: SpecificationFilter, $correlationId: String) {
8722
+ specificationExists(filter: $filter, correlationId: $correlationId) {
8723
+ result
8724
+ }
8725
+ }
8726
+ """
8727
+
8951
8728
  UPDATE_SPECIFICATION_GQL = """
8952
8729
  mutation UpdateSpecification($specification: SpecificationUpdateInput!) {
8953
8730
  updateSpecification(specification: $specification) {
@@ -8960,6 +8737,18 @@ mutation UpdateSpecification($specification: SpecificationUpdateInput!) {
8960
8737
  }
8961
8738
  """
8962
8739
 
8740
+ UPSERT_SPECIFICATION_GQL = """
8741
+ mutation UpsertSpecification($specification: SpecificationInput!) {
8742
+ upsertSpecification(specification: $specification) {
8743
+ id
8744
+ name
8745
+ state
8746
+ type
8747
+ serviceType
8748
+ }
8749
+ }
8750
+ """
8751
+
8963
8752
  COUNT_USERS_GQL = """
8964
8753
  query CountUsers($filter: UserFilter, $correlationId: String) {
8965
8754
  countUsers(filter: $filter, correlationId: $correlationId) {
@@ -9943,3 +9732,205 @@ mutation UpdateWorkflow($workflow: WorkflowUpdateInput!) {
9943
9732
  }
9944
9733
  }
9945
9734
  """
9735
+
9736
+ UPSERT_WORKFLOW_GQL = """
9737
+ mutation UpsertWorkflow($workflow: WorkflowInput!) {
9738
+ upsertWorkflow(workflow: $workflow) {
9739
+ id
9740
+ name
9741
+ state
9742
+ ingestion {
9743
+ if {
9744
+ types
9745
+ fileTypes
9746
+ allowedPaths
9747
+ excludedPaths
9748
+ }
9749
+ collections {
9750
+ id
9751
+ }
9752
+ observations {
9753
+ type
9754
+ observable {
9755
+ id
9756
+ name
9757
+ }
9758
+ }
9759
+ }
9760
+ indexing {
9761
+ jobs {
9762
+ connector {
9763
+ type
9764
+ contentType
9765
+ fileType
9766
+ }
9767
+ }
9768
+ }
9769
+ preparation {
9770
+ enableUnblockedCapture
9771
+ disableSmartCapture
9772
+ summarizations {
9773
+ type
9774
+ specification {
9775
+ id
9776
+ }
9777
+ tokens
9778
+ items
9779
+ prompt
9780
+ }
9781
+ jobs {
9782
+ connector {
9783
+ type
9784
+ fileTypes
9785
+ azureDocument {
9786
+ version
9787
+ model
9788
+ endpoint
9789
+ key
9790
+ }
9791
+ deepgram {
9792
+ model
9793
+ key
9794
+ enableRedaction
9795
+ enableSpeakerDiarization
9796
+ detectLanguage
9797
+ language
9798
+ }
9799
+ assemblyAI {
9800
+ model
9801
+ key
9802
+ enableRedaction
9803
+ enableSpeakerDiarization
9804
+ detectLanguage
9805
+ language
9806
+ }
9807
+ document {
9808
+ includeImages
9809
+ }
9810
+ email {
9811
+ includeAttachments
9812
+ }
9813
+ modelDocument {
9814
+ specification {
9815
+ id
9816
+ }
9817
+ }
9818
+ mistral {
9819
+ key
9820
+ }
9821
+ }
9822
+ }
9823
+ }
9824
+ extraction {
9825
+ jobs {
9826
+ connector {
9827
+ type
9828
+ contentTypes
9829
+ fileTypes
9830
+ extractedTypes
9831
+ extractedCount
9832
+ azureText {
9833
+ confidenceThreshold
9834
+ enablePII
9835
+ }
9836
+ azureImage {
9837
+ confidenceThreshold
9838
+ }
9839
+ modelImage {
9840
+ specification {
9841
+ id
9842
+ }
9843
+ }
9844
+ modelText {
9845
+ specification {
9846
+ id
9847
+ }
9848
+ }
9849
+ }
9850
+ }
9851
+ }
9852
+ classification {
9853
+ jobs {
9854
+ connector {
9855
+ type
9856
+ contentType
9857
+ fileType
9858
+ model {
9859
+ specification {
9860
+ id
9861
+ }
9862
+ rules {
9863
+ then
9864
+ if
9865
+ }
9866
+ }
9867
+ regex {
9868
+ rules {
9869
+ then
9870
+ type
9871
+ path
9872
+ matches
9873
+ }
9874
+ }
9875
+ }
9876
+ }
9877
+ }
9878
+ enrichment {
9879
+ link {
9880
+ enableCrawling
9881
+ allowedDomains
9882
+ excludedDomains
9883
+ allowedPaths
9884
+ excludedPaths
9885
+ allowedLinks
9886
+ excludedLinks
9887
+ allowedFiles
9888
+ excludedFiles
9889
+ allowContentDomain
9890
+ maximumLinks
9891
+ }
9892
+ jobs {
9893
+ connector {
9894
+ type
9895
+ enrichedTypes
9896
+ fhir {
9897
+ endpoint
9898
+ }
9899
+ diffbot {
9900
+ key
9901
+ }
9902
+ }
9903
+ }
9904
+ }
9905
+ storage {
9906
+ policy {
9907
+ type
9908
+ allowDuplicates
9909
+ }
9910
+ }
9911
+ actions {
9912
+ connector {
9913
+ type
9914
+ uri
9915
+ slack {
9916
+ token
9917
+ channel
9918
+ }
9919
+ email {
9920
+ from
9921
+ subject
9922
+ to
9923
+ }
9924
+ }
9925
+ }
9926
+ }
9927
+ }
9928
+ """
9929
+
9930
+ WORKFLOW_EXISTS_GQL = """
9931
+ query WorkflowExists($filter: WorkflowFilter, $correlationId: String) {
9932
+ workflowExists(filter: $filter, correlationId: $correlationId) {
9933
+ result
9934
+ }
9935
+ }
9936
+ """
@@ -43,7 +43,6 @@ class QueryContentsContentsResults(BaseModel):
43
43
  uri: Optional[Any]
44
44
  description: Optional[str]
45
45
  identifier: Optional[str]
46
- markdown: Optional[str]
47
46
  address: Optional["QueryContentsContentsResultsAddress"]
48
47
  location: Optional["QueryContentsContentsResultsLocation"]
49
48
  type: Optional[ContentTypes]
@@ -72,8 +71,6 @@ class QueryContentsContentsResults(BaseModel):
72
71
  issue: Optional["QueryContentsContentsResultsIssue"]
73
72
  package: Optional["QueryContentsContentsResultsPackage"]
74
73
  language: Optional["QueryContentsContentsResultsLanguage"]
75
- parent: Optional["QueryContentsContentsResultsParent"]
76
- children: Optional[List[Optional["QueryContentsContentsResultsChildren"]]]
77
74
  feed: Optional["QueryContentsContentsResultsFeed"]
78
75
  collections: Optional[List[Optional["QueryContentsContentsResultsCollections"]]]
79
76
  links: Optional[List["QueryContentsContentsResultsLinks"]]
@@ -238,16 +235,6 @@ class QueryContentsContentsResultsLanguage(BaseModel):
238
235
  languages: Optional[List[Optional[str]]]
239
236
 
240
237
 
241
- class QueryContentsContentsResultsParent(BaseModel):
242
- id: str
243
- name: str
244
-
245
-
246
- class QueryContentsContentsResultsChildren(BaseModel):
247
- id: str
248
- name: str
249
-
250
-
251
238
  class QueryContentsContentsResultsFeed(BaseModel):
252
239
  id: str
253
240
  name: str