graphlit-client 1.0.20250313001__py3-none-any.whl → 1.0.20250315001__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.
@@ -286,6 +286,10 @@ __all__ = [
286
286
  "UPDATE_SPECIFICATION_GQL",
287
287
  "UPDATE_USER_GQL",
288
288
  "UPDATE_WORKFLOW_GQL",
289
+ "UPSERT_CATEGORY_GQL",
290
+ "UPSERT_LABEL_GQL",
291
+ "UPSERT_SPECIFICATION_GQL",
292
+ "UPSERT_WORKFLOW_GQL",
289
293
  ]
290
294
 
291
295
  COUNT_ALERTS_GQL = """
@@ -700,6 +704,15 @@ mutation UpdateCategory($category: CategoryUpdateInput!) {
700
704
  }
701
705
  """
702
706
 
707
+ UPSERT_CATEGORY_GQL = """
708
+ mutation UpsertCategory($category: CategoryInput!) {
709
+ upsertCategory(category: $category) {
710
+ id
711
+ name
712
+ }
713
+ }
714
+ """
715
+
703
716
  ADD_CONTENTS_TO_COLLECTIONS_GQL = """
704
717
  mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
705
718
  addContentsToCollections(contents: $contents, collections: $collections) {
@@ -1196,7 +1209,6 @@ query GetContent($id: ID!, $correlationId: String) {
1196
1209
  id
1197
1210
  name
1198
1211
  creationDate
1199
- relevance
1200
1212
  owner {
1201
1213
  id
1202
1214
  }
@@ -1988,7 +2000,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
1988
2000
  uri
1989
2001
  description
1990
2002
  identifier
1991
- markdown
1992
2003
  address {
1993
2004
  streetAddress
1994
2005
  city
@@ -2136,14 +2147,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2136
2147
  language {
2137
2148
  languages
2138
2149
  }
2139
- parent {
2140
- id
2141
- name
2142
- }
2143
- children {
2144
- id
2145
- name
2146
- }
2147
2150
  feed {
2148
2151
  id
2149
2152
  name
@@ -2234,260 +2237,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2234
2237
  QUERY_CONTENTS_FACETS_GQL = """
2235
2238
  query QueryContentsFacets($filter: ContentFilter, $facets: [ContentFacetInput!], $correlationId: String) {
2236
2239
  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
2240
  facets {
2492
2241
  facet
2493
2242
  count
@@ -6466,6 +6215,15 @@ mutation UpdateLabel($label: LabelUpdateInput!) {
6466
6215
  }
6467
6216
  """
6468
6217
 
6218
+ UPSERT_LABEL_GQL = """
6219
+ mutation UpsertLabel($label: LabelInput!) {
6220
+ upsertLabel(label: $label) {
6221
+ id
6222
+ name
6223
+ }
6224
+ }
6225
+ """
6226
+
6469
6227
  COUNT_MEDICAL_CONDITIONS_GQL = """
6470
6228
  query CountMedicalConditions($filter: MedicalConditionFilter, $correlationId: String) {
6471
6229
  countMedicalConditions(filter: $filter, correlationId: $correlationId) {
@@ -8960,6 +8718,18 @@ mutation UpdateSpecification($specification: SpecificationUpdateInput!) {
8960
8718
  }
8961
8719
  """
8962
8720
 
8721
+ UPSERT_SPECIFICATION_GQL = """
8722
+ mutation UpsertSpecification($specification: SpecificationInput!) {
8723
+ upsertSpecification(specification: $specification) {
8724
+ id
8725
+ name
8726
+ state
8727
+ type
8728
+ serviceType
8729
+ }
8730
+ }
8731
+ """
8732
+
8963
8733
  COUNT_USERS_GQL = """
8964
8734
  query CountUsers($filter: UserFilter, $correlationId: String) {
8965
8735
  countUsers(filter: $filter, correlationId: $correlationId) {
@@ -9943,3 +9713,197 @@ mutation UpdateWorkflow($workflow: WorkflowUpdateInput!) {
9943
9713
  }
9944
9714
  }
9945
9715
  """
9716
+
9717
+ UPSERT_WORKFLOW_GQL = """
9718
+ mutation UpsertWorkflow($workflow: WorkflowInput!) {
9719
+ upsertWorkflow(workflow: $workflow) {
9720
+ id
9721
+ name
9722
+ state
9723
+ ingestion {
9724
+ if {
9725
+ types
9726
+ fileTypes
9727
+ allowedPaths
9728
+ excludedPaths
9729
+ }
9730
+ collections {
9731
+ id
9732
+ }
9733
+ observations {
9734
+ type
9735
+ observable {
9736
+ id
9737
+ name
9738
+ }
9739
+ }
9740
+ }
9741
+ indexing {
9742
+ jobs {
9743
+ connector {
9744
+ type
9745
+ contentType
9746
+ fileType
9747
+ }
9748
+ }
9749
+ }
9750
+ preparation {
9751
+ enableUnblockedCapture
9752
+ disableSmartCapture
9753
+ summarizations {
9754
+ type
9755
+ specification {
9756
+ id
9757
+ }
9758
+ tokens
9759
+ items
9760
+ prompt
9761
+ }
9762
+ jobs {
9763
+ connector {
9764
+ type
9765
+ fileTypes
9766
+ azureDocument {
9767
+ version
9768
+ model
9769
+ endpoint
9770
+ key
9771
+ }
9772
+ deepgram {
9773
+ model
9774
+ key
9775
+ enableRedaction
9776
+ enableSpeakerDiarization
9777
+ detectLanguage
9778
+ language
9779
+ }
9780
+ assemblyAI {
9781
+ model
9782
+ key
9783
+ enableRedaction
9784
+ enableSpeakerDiarization
9785
+ detectLanguage
9786
+ language
9787
+ }
9788
+ document {
9789
+ includeImages
9790
+ }
9791
+ email {
9792
+ includeAttachments
9793
+ }
9794
+ modelDocument {
9795
+ specification {
9796
+ id
9797
+ }
9798
+ }
9799
+ mistral {
9800
+ key
9801
+ }
9802
+ }
9803
+ }
9804
+ }
9805
+ extraction {
9806
+ jobs {
9807
+ connector {
9808
+ type
9809
+ contentTypes
9810
+ fileTypes
9811
+ extractedTypes
9812
+ extractedCount
9813
+ azureText {
9814
+ confidenceThreshold
9815
+ enablePII
9816
+ }
9817
+ azureImage {
9818
+ confidenceThreshold
9819
+ }
9820
+ modelImage {
9821
+ specification {
9822
+ id
9823
+ }
9824
+ }
9825
+ modelText {
9826
+ specification {
9827
+ id
9828
+ }
9829
+ }
9830
+ }
9831
+ }
9832
+ }
9833
+ classification {
9834
+ jobs {
9835
+ connector {
9836
+ type
9837
+ contentType
9838
+ fileType
9839
+ model {
9840
+ specification {
9841
+ id
9842
+ }
9843
+ rules {
9844
+ then
9845
+ if
9846
+ }
9847
+ }
9848
+ regex {
9849
+ rules {
9850
+ then
9851
+ type
9852
+ path
9853
+ matches
9854
+ }
9855
+ }
9856
+ }
9857
+ }
9858
+ }
9859
+ enrichment {
9860
+ link {
9861
+ enableCrawling
9862
+ allowedDomains
9863
+ excludedDomains
9864
+ allowedPaths
9865
+ excludedPaths
9866
+ allowedLinks
9867
+ excludedLinks
9868
+ allowedFiles
9869
+ excludedFiles
9870
+ allowContentDomain
9871
+ maximumLinks
9872
+ }
9873
+ jobs {
9874
+ connector {
9875
+ type
9876
+ enrichedTypes
9877
+ fhir {
9878
+ endpoint
9879
+ }
9880
+ diffbot {
9881
+ key
9882
+ }
9883
+ }
9884
+ }
9885
+ }
9886
+ storage {
9887
+ policy {
9888
+ type
9889
+ allowDuplicates
9890
+ }
9891
+ }
9892
+ actions {
9893
+ connector {
9894
+ type
9895
+ uri
9896
+ slack {
9897
+ token
9898
+ channel
9899
+ }
9900
+ email {
9901
+ from
9902
+ subject
9903
+ to
9904
+ }
9905
+ }
9906
+ }
9907
+ }
9908
+ }
9909
+ """
@@ -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