graphlit-client 1.0.20250306001__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.
@@ -252,6 +252,7 @@ __all__ = [
252
252
  "REVISE_TEXT_GQL",
253
253
  "SCREENSHOT_PAGE_GQL",
254
254
  "SEARCH_WEB_GQL",
255
+ "SEND_NOTIFICATION_GQL",
255
256
  "SUGGEST_CONVERSATION_GQL",
256
257
  "SUMMARIZE_CONTENTS_GQL",
257
258
  "SUMMARIZE_TEXT_GQL",
@@ -285,6 +286,10 @@ __all__ = [
285
286
  "UPDATE_SPECIFICATION_GQL",
286
287
  "UPDATE_USER_GQL",
287
288
  "UPDATE_WORKFLOW_GQL",
289
+ "UPSERT_CATEGORY_GQL",
290
+ "UPSERT_LABEL_GQL",
291
+ "UPSERT_SPECIFICATION_GQL",
292
+ "UPSERT_WORKFLOW_GQL",
288
293
  ]
289
294
 
290
295
  COUNT_ALERTS_GQL = """
@@ -455,6 +460,11 @@ query GetAlert($id: ID!, $correlationId: String) {
455
460
  token
456
461
  channel
457
462
  }
463
+ email {
464
+ from
465
+ subject
466
+ to
467
+ }
458
468
  }
459
469
  publishing {
460
470
  type
@@ -575,6 +585,11 @@ query QueryAlerts($filter: AlertFilter, $correlationId: String) {
575
585
  token
576
586
  channel
577
587
  }
588
+ email {
589
+ from
590
+ subject
591
+ to
592
+ }
578
593
  }
579
594
  publishing {
580
595
  type
@@ -689,6 +704,15 @@ mutation UpdateCategory($category: CategoryUpdateInput!) {
689
704
  }
690
705
  """
691
706
 
707
+ UPSERT_CATEGORY_GQL = """
708
+ mutation UpsertCategory($category: CategoryInput!) {
709
+ upsertCategory(category: $category) {
710
+ id
711
+ name
712
+ }
713
+ }
714
+ """
715
+
692
716
  ADD_CONTENTS_TO_COLLECTIONS_GQL = """
693
717
  mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
694
718
  addContentsToCollections(contents: $contents, collections: $collections) {
@@ -1185,7 +1209,6 @@ query GetContent($id: ID!, $correlationId: String) {
1185
1209
  id
1186
1210
  name
1187
1211
  creationDate
1188
- relevance
1189
1212
  owner {
1190
1213
  id
1191
1214
  }
@@ -1977,7 +2000,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
1977
2000
  uri
1978
2001
  description
1979
2002
  identifier
1980
- markdown
1981
2003
  address {
1982
2004
  streetAddress
1983
2005
  city
@@ -2125,14 +2147,6 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2125
2147
  language {
2126
2148
  languages
2127
2149
  }
2128
- parent {
2129
- id
2130
- name
2131
- }
2132
- children {
2133
- id
2134
- name
2135
- }
2136
2150
  feed {
2137
2151
  id
2138
2152
  name
@@ -2223,336 +2237,82 @@ query QueryContents($filter: ContentFilter, $correlationId: String) {
2223
2237
  QUERY_CONTENTS_FACETS_GQL = """
2224
2238
  query QueryContentsFacets($filter: ContentFilter, $facets: [ContentFacetInput!], $correlationId: String) {
2225
2239
  contents(filter: $filter, facets: $facets, correlationId: $correlationId) {
2226
- results {
2227
- id
2228
- name
2229
- creationDate
2230
- relevance
2231
- owner {
2232
- id
2233
- }
2234
- state
2235
- originalDate
2236
- finishedDate
2237
- workflowDuration
2238
- uri
2239
- description
2240
- identifier
2241
- markdown
2242
- address {
2243
- streetAddress
2244
- city
2245
- region
2246
- country
2247
- postalCode
2248
- }
2249
- location {
2250
- latitude
2251
- longitude
2252
- }
2240
+ facets {
2241
+ facet
2242
+ count
2253
2243
  type
2254
- fileType
2255
- mimeType
2256
- fileName
2257
- fileSize
2258
- masterUri
2259
- imageUri
2260
- textUri
2261
- audioUri
2262
- transcriptUri
2263
- summary
2264
- customSummary
2265
- keywords
2266
- bullets
2267
- headlines
2268
- posts
2269
- chapters
2270
- questions
2271
- video {
2272
- width
2273
- height
2274
- duration
2275
- make
2276
- model
2277
- software
2278
- title
2279
- description
2280
- keywords
2281
- author
2282
- }
2283
- audio {
2284
- keywords
2285
- author
2286
- series
2287
- episode
2288
- episodeType
2289
- season
2290
- publisher
2291
- copyright
2292
- genre
2293
- title
2294
- description
2295
- bitrate
2296
- channels
2297
- sampleRate
2298
- bitsPerSample
2299
- duration
2300
- }
2301
- image {
2302
- width
2303
- height
2304
- resolutionX
2305
- resolutionY
2306
- bitsPerComponent
2307
- components
2308
- projectionType
2309
- orientation
2310
- description
2311
- make
2312
- model
2313
- software
2314
- lens
2315
- focalLength
2316
- exposureTime
2317
- fNumber
2318
- iso
2319
- heading
2320
- pitch
2321
- }
2322
- document {
2323
- title
2324
- subject
2325
- summary
2326
- author
2327
- publisher
2328
- description
2329
- keywords
2330
- pageCount
2331
- worksheetCount
2332
- slideCount
2333
- wordCount
2334
- lineCount
2335
- paragraphCount
2336
- isEncrypted
2337
- hasDigitalSignature
2244
+ value
2245
+ range {
2246
+ from
2247
+ to
2338
2248
  }
2339
- email {
2340
- identifier
2341
- subject
2342
- labels
2343
- sensitivity
2344
- priority
2345
- importance
2346
- from {
2347
- name
2348
- email
2349
- givenName
2350
- familyName
2351
- }
2352
- to {
2353
- name
2354
- email
2355
- givenName
2356
- familyName
2357
- }
2358
- cc {
2359
- name
2360
- email
2361
- givenName
2362
- familyName
2363
- }
2364
- bcc {
2249
+ observable {
2250
+ type
2251
+ observable {
2252
+ id
2365
2253
  name
2366
- email
2367
- givenName
2368
- familyName
2369
2254
  }
2370
2255
  }
2371
- issue {
2372
- identifier
2373
- title
2374
- project
2375
- team
2376
- status
2377
- priority
2378
- type
2379
- labels
2380
- }
2381
- package {
2382
- fileCount
2383
- folderCount
2384
- isEncrypted
2385
- }
2386
- language {
2387
- languages
2388
- }
2389
- parent {
2256
+ }
2257
+ }
2258
+ }
2259
+ """
2260
+
2261
+ QUERY_CONTENTS_GRAPH_GQL = """
2262
+ query QueryContentsGraph($filter: ContentFilter, $graph: ContentGraphInput, $correlationId: String) {
2263
+ contents(filter: $filter, graph: $graph, correlationId: $correlationId) {
2264
+ graph {
2265
+ nodes {
2390
2266
  id
2391
2267
  name
2268
+ type
2269
+ metadata
2392
2270
  }
2393
- children {
2394
- id
2395
- name
2271
+ edges {
2272
+ from
2273
+ to
2274
+ relation
2396
2275
  }
2397
- feed {
2276
+ }
2277
+ }
2278
+ }
2279
+ """
2280
+
2281
+ SCREENSHOT_PAGE_GQL = """
2282
+ mutation ScreenshotPage($uri: URL!, $maximumHeight: Int, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
2283
+ screenshotPage(
2284
+ uri: $uri
2285
+ maximumHeight: $maximumHeight
2286
+ workflow: $workflow
2287
+ collections: $collections
2288
+ isSynchronous: $isSynchronous
2289
+ correlationId: $correlationId
2290
+ ) {
2291
+ id
2292
+ name
2293
+ state
2294
+ type
2295
+ fileType
2296
+ mimeType
2297
+ uri
2298
+ collections {
2299
+ id
2300
+ name
2301
+ }
2302
+ observations {
2303
+ id
2304
+ type
2305
+ observable {
2398
2306
  id
2399
2307
  name
2400
2308
  }
2401
- collections {
2309
+ related {
2402
2310
  id
2403
2311
  name
2404
2312
  }
2405
- links {
2406
- uri
2407
- linkType
2408
- }
2409
- observations {
2410
- id
2411
- type
2412
- observable {
2413
- id
2414
- name
2415
- }
2416
- related {
2417
- id
2418
- name
2419
- }
2420
- relatedType
2421
- relation
2422
- occurrences {
2423
- type
2424
- confidence
2425
- startTime
2426
- endTime
2427
- pageIndex
2428
- boundingBox {
2429
- left
2430
- top
2431
- width
2432
- height
2433
- }
2434
- }
2435
- state
2436
- }
2437
- workflow {
2438
- id
2439
- name
2440
- }
2441
- pages {
2442
- index
2443
- text
2444
- relevance
2445
- images {
2446
- id
2447
- mimeType
2448
- data
2449
- left
2450
- right
2451
- top
2452
- bottom
2453
- }
2454
- chunks {
2455
- index
2456
- pageIndex
2457
- rowIndex
2458
- columnIndex
2459
- confidence
2460
- text
2461
- role
2462
- language
2463
- relevance
2464
- }
2465
- }
2466
- segments {
2467
- startTime
2468
- endTime
2469
- text
2470
- relevance
2471
- }
2472
- frames {
2473
- index
2474
- description
2475
- text
2476
- relevance
2477
- }
2478
- error
2479
- }
2480
- facets {
2481
- facet
2482
- count
2483
- type
2484
- value
2485
- range {
2486
- from
2487
- to
2488
- }
2489
- observable {
2490
- type
2491
- observable {
2492
- id
2493
- name
2494
- }
2495
- }
2496
- }
2497
- }
2498
- }
2499
- """
2500
-
2501
- QUERY_CONTENTS_GRAPH_GQL = """
2502
- query QueryContentsGraph($filter: ContentFilter, $graph: ContentGraphInput, $correlationId: String) {
2503
- contents(filter: $filter, graph: $graph, correlationId: $correlationId) {
2504
- graph {
2505
- nodes {
2506
- id
2507
- name
2508
- type
2509
- metadata
2510
- }
2511
- edges {
2512
- from
2513
- to
2514
- relation
2515
- }
2516
- }
2517
- }
2518
- }
2519
- """
2520
-
2521
- SCREENSHOT_PAGE_GQL = """
2522
- mutation ScreenshotPage($uri: URL!, $maximumHeight: Int, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
2523
- screenshotPage(
2524
- uri: $uri
2525
- maximumHeight: $maximumHeight
2526
- workflow: $workflow
2527
- collections: $collections
2528
- isSynchronous: $isSynchronous
2529
- correlationId: $correlationId
2530
- ) {
2531
- id
2532
- name
2533
- state
2534
- type
2535
- fileType
2536
- mimeType
2537
- uri
2538
- collections {
2539
- id
2540
- name
2541
- }
2542
- observations {
2543
- id
2544
- type
2545
- observable {
2546
- id
2547
- name
2548
- }
2549
- related {
2550
- id
2551
- name
2552
- }
2553
- relatedType
2554
- relation
2555
- occurrences {
2313
+ relatedType
2314
+ relation
2315
+ occurrences {
2556
2316
  type
2557
2317
  confidence
2558
2318
  startTime
@@ -6455,6 +6215,15 @@ mutation UpdateLabel($label: LabelUpdateInput!) {
6455
6215
  }
6456
6216
  """
6457
6217
 
6218
+ UPSERT_LABEL_GQL = """
6219
+ mutation UpsertLabel($label: LabelInput!) {
6220
+ upsertLabel(label: $label) {
6221
+ id
6222
+ name
6223
+ }
6224
+ }
6225
+ """
6226
+
6458
6227
  COUNT_MEDICAL_CONDITIONS_GQL = """
6459
6228
  query CountMedicalConditions($filter: MedicalConditionFilter, $correlationId: String) {
6460
6229
  countMedicalConditions(filter: $filter, correlationId: $correlationId) {
@@ -7470,6 +7239,14 @@ mutation UpdateMedicalTherapy($medicalTherapy: MedicalTherapyUpdateInput!) {
7470
7239
  }
7471
7240
  """
7472
7241
 
7242
+ SEND_NOTIFICATION_GQL = """
7243
+ mutation SendNotification($connector: IntegrationConnectorInput!, $text: String!, $textType: TextTypes) {
7244
+ sendNotification(connector: $connector, text: $text, textType: $textType) {
7245
+ result
7246
+ }
7247
+ }
7248
+ """
7249
+
7473
7250
  CREATE_OBSERVATION_GQL = """
7474
7251
  mutation CreateObservation($observation: ObservationInput!) {
7475
7252
  createObservation(observation: $observation) {
@@ -8015,6 +7792,7 @@ query LookupCredits($correlationId: String!) {
8015
7792
  indexingRatio
8016
7793
  preparationRatio
8017
7794
  extractionRatio
7795
+ classificationRatio
8018
7796
  enrichmentRatio
8019
7797
  publishingRatio
8020
7798
  searchRatio
@@ -8074,6 +7852,7 @@ query QueryCredits($startDate: DateTime!, $duration: TimeSpan!) {
8074
7852
  indexingRatio
8075
7853
  preparationRatio
8076
7854
  extractionRatio
7855
+ classificationRatio
8077
7856
  enrichmentRatio
8078
7857
  publishingRatio
8079
7858
  searchRatio
@@ -8939,6 +8718,18 @@ mutation UpdateSpecification($specification: SpecificationUpdateInput!) {
8939
8718
  }
8940
8719
  """
8941
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
+
8942
8733
  COUNT_USERS_GQL = """
8943
8734
  query CountUsers($filter: UserFilter, $correlationId: String) {
8944
8735
  countUsers(filter: $filter, correlationId: $correlationId) {
@@ -9023,6 +8814,11 @@ query GetUser {
9023
8814
  token
9024
8815
  channel
9025
8816
  }
8817
+ email {
8818
+ from
8819
+ subject
8820
+ to
8821
+ }
9026
8822
  }
9027
8823
  }
9028
8824
  }
@@ -9067,6 +8863,11 @@ query QueryUsers($filter: UserFilter, $correlationId: String) {
9067
8863
  token
9068
8864
  channel
9069
8865
  }
8866
+ email {
8867
+ from
8868
+ subject
8869
+ to
8870
+ }
9070
8871
  }
9071
8872
  }
9072
8873
  }
@@ -9210,6 +9011,32 @@ mutation CreateWorkflow($workflow: WorkflowInput!) {
9210
9011
  }
9211
9012
  }
9212
9013
  }
9014
+ classification {
9015
+ jobs {
9016
+ connector {
9017
+ type
9018
+ contentType
9019
+ fileType
9020
+ model {
9021
+ specification {
9022
+ id
9023
+ }
9024
+ rules {
9025
+ then
9026
+ if
9027
+ }
9028
+ }
9029
+ regex {
9030
+ rules {
9031
+ then
9032
+ type
9033
+ path
9034
+ matches
9035
+ }
9036
+ }
9037
+ }
9038
+ }
9039
+ }
9213
9040
  enrichment {
9214
9041
  link {
9215
9042
  enableCrawling
@@ -9251,6 +9078,11 @@ mutation CreateWorkflow($workflow: WorkflowInput!) {
9251
9078
  token
9252
9079
  channel
9253
9080
  }
9081
+ email {
9082
+ from
9083
+ subject
9084
+ to
9085
+ }
9254
9086
  }
9255
9087
  }
9256
9088
  }
@@ -9409,6 +9241,32 @@ query GetWorkflow($id: ID!, $correlationId: String) {
9409
9241
  }
9410
9242
  }
9411
9243
  }
9244
+ classification {
9245
+ jobs {
9246
+ connector {
9247
+ type
9248
+ contentType
9249
+ fileType
9250
+ model {
9251
+ specification {
9252
+ id
9253
+ }
9254
+ rules {
9255
+ then
9256
+ if
9257
+ }
9258
+ }
9259
+ regex {
9260
+ rules {
9261
+ then
9262
+ type
9263
+ path
9264
+ matches
9265
+ }
9266
+ }
9267
+ }
9268
+ }
9269
+ }
9412
9270
  enrichment {
9413
9271
  link {
9414
9272
  enableCrawling
@@ -9450,6 +9308,11 @@ query GetWorkflow($id: ID!, $correlationId: String) {
9450
9308
  token
9451
9309
  channel
9452
9310
  }
9311
+ email {
9312
+ from
9313
+ subject
9314
+ to
9315
+ }
9453
9316
  }
9454
9317
  }
9455
9318
  }
@@ -9578,6 +9441,32 @@ query QueryWorkflows($filter: WorkflowFilter, $correlationId: String) {
9578
9441
  }
9579
9442
  }
9580
9443
  }
9444
+ classification {
9445
+ jobs {
9446
+ connector {
9447
+ type
9448
+ contentType
9449
+ fileType
9450
+ model {
9451
+ specification {
9452
+ id
9453
+ }
9454
+ rules {
9455
+ then
9456
+ if
9457
+ }
9458
+ }
9459
+ regex {
9460
+ rules {
9461
+ then
9462
+ type
9463
+ path
9464
+ matches
9465
+ }
9466
+ }
9467
+ }
9468
+ }
9469
+ }
9581
9470
  enrichment {
9582
9471
  link {
9583
9472
  enableCrawling
@@ -9619,6 +9508,11 @@ query QueryWorkflows($filter: WorkflowFilter, $correlationId: String) {
9619
9508
  token
9620
9509
  channel
9621
9510
  }
9511
+ email {
9512
+ from
9513
+ subject
9514
+ to
9515
+ }
9622
9516
  }
9623
9517
  }
9624
9518
  }
@@ -9742,6 +9636,32 @@ mutation UpdateWorkflow($workflow: WorkflowUpdateInput!) {
9742
9636
  }
9743
9637
  }
9744
9638
  }
9639
+ classification {
9640
+ jobs {
9641
+ connector {
9642
+ type
9643
+ contentType
9644
+ fileType
9645
+ model {
9646
+ specification {
9647
+ id
9648
+ }
9649
+ rules {
9650
+ then
9651
+ if
9652
+ }
9653
+ }
9654
+ regex {
9655
+ rules {
9656
+ then
9657
+ type
9658
+ path
9659
+ matches
9660
+ }
9661
+ }
9662
+ }
9663
+ }
9664
+ }
9745
9665
  enrichment {
9746
9666
  link {
9747
9667
  enableCrawling
@@ -9783,6 +9703,205 @@ mutation UpdateWorkflow($workflow: WorkflowUpdateInput!) {
9783
9703
  token
9784
9704
  channel
9785
9705
  }
9706
+ email {
9707
+ from
9708
+ subject
9709
+ to
9710
+ }
9711
+ }
9712
+ }
9713
+ }
9714
+ }
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
+ }
9786
9905
  }
9787
9906
  }
9788
9907
  }