graphlit-client 1.0.20240417001

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.
@@ -0,0 +1,2302 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GetFeed = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.UpdateConversation = exports.SuggestConversation = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.GetConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CloseConversation = exports.ClearConversation = exports.UpdateContent = exports.SummarizeContents = exports.QueryContents = exports.QueryContentFacets = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestText = exports.IngestEncodedFile = exports.GetContent = exports.ExtractContents = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.CreateCollection = exports.AddContentsToCollections = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = void 0;
7
+ exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecification = exports.CreateSpecification = exports.Usage = exports.UpdateProject = exports.Project = exports.LookupUsage = exports.LookupCredits = exports.Credits = exports.UpdateFeed = exports.QueryFeeds = exports.IsFeedDone = void 0;
8
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
9
+ exports.CreateAlert = (0, graphql_tag_1.default) `
10
+ mutation CreateAlert($alert: AlertInput!, $correlationId: String) {
11
+ createAlert(alert: $alert, correlationId: $correlationId) {
12
+ id
13
+ name
14
+ state
15
+ type
16
+ }
17
+ }
18
+ `;
19
+ exports.DeleteAlert = (0, graphql_tag_1.default) `
20
+ mutation DeleteAlert($id: ID!) {
21
+ deleteAlert(id: $id) {
22
+ id
23
+ state
24
+ }
25
+ }
26
+ `;
27
+ exports.DeleteAlerts = (0, graphql_tag_1.default) `
28
+ mutation DeleteAlerts($ids: [ID!]!) {
29
+ deleteAlerts(ids: $ids) {
30
+ id
31
+ state
32
+ }
33
+ }
34
+ `;
35
+ exports.DeleteAllAlerts = (0, graphql_tag_1.default) `
36
+ mutation DeleteAllAlerts {
37
+ deleteAllAlerts {
38
+ id
39
+ state
40
+ }
41
+ }
42
+ `;
43
+ exports.DisableAlert = (0, graphql_tag_1.default) `
44
+ mutation DisableAlert($id: ID!) {
45
+ disableAlert(id: $id) {
46
+ id
47
+ state
48
+ }
49
+ }
50
+ `;
51
+ exports.EnableAlert = (0, graphql_tag_1.default) `
52
+ mutation EnableAlert($id: ID!) {
53
+ enableAlert(id: $id) {
54
+ id
55
+ state
56
+ }
57
+ }
58
+ `;
59
+ exports.GetAlert = (0, graphql_tag_1.default) `
60
+ query GetAlert($id: ID!) {
61
+ alert(id: $id) {
62
+ id
63
+ name
64
+ creationDate
65
+ owner {
66
+ id
67
+ }
68
+ state
69
+ correlationId
70
+ type
71
+ summaryPrompt
72
+ publishPrompt
73
+ filter {
74
+ dateRange {
75
+ from
76
+ to
77
+ }
78
+ creationDateRange {
79
+ from
80
+ to
81
+ }
82
+ types
83
+ fileTypes
84
+ contents {
85
+ id
86
+ }
87
+ feeds {
88
+ id
89
+ }
90
+ workflows {
91
+ id
92
+ }
93
+ collections {
94
+ id
95
+ }
96
+ observations {
97
+ type
98
+ observable {
99
+ id
100
+ }
101
+ states
102
+ }
103
+ }
104
+ integration {
105
+ type
106
+ uri
107
+ slack {
108
+ token
109
+ channel
110
+ }
111
+ }
112
+ publishing {
113
+ type
114
+ elevenLabs {
115
+ model
116
+ voice
117
+ }
118
+ }
119
+ summarySpecification {
120
+ id
121
+ }
122
+ publishSpecification {
123
+ id
124
+ }
125
+ lastAlertDate
126
+ }
127
+ }
128
+ `;
129
+ exports.QueryAlerts = (0, graphql_tag_1.default) `
130
+ query QueryAlerts($filter: AlertFilter) {
131
+ alerts(filter: $filter) {
132
+ results {
133
+ id
134
+ name
135
+ creationDate
136
+ owner {
137
+ id
138
+ }
139
+ state
140
+ correlationId
141
+ type
142
+ summaryPrompt
143
+ publishPrompt
144
+ filter {
145
+ dateRange {
146
+ from
147
+ to
148
+ }
149
+ creationDateRange {
150
+ from
151
+ to
152
+ }
153
+ types
154
+ fileTypes
155
+ contents {
156
+ id
157
+ }
158
+ feeds {
159
+ id
160
+ }
161
+ workflows {
162
+ id
163
+ }
164
+ collections {
165
+ id
166
+ }
167
+ observations {
168
+ type
169
+ observable {
170
+ id
171
+ }
172
+ states
173
+ }
174
+ }
175
+ integration {
176
+ type
177
+ uri
178
+ slack {
179
+ token
180
+ channel
181
+ }
182
+ }
183
+ publishing {
184
+ type
185
+ elevenLabs {
186
+ model
187
+ voice
188
+ }
189
+ }
190
+ summarySpecification {
191
+ id
192
+ }
193
+ publishSpecification {
194
+ id
195
+ }
196
+ lastAlertDate
197
+ }
198
+ }
199
+ }
200
+ `;
201
+ exports.UpdateAlert = (0, graphql_tag_1.default) `
202
+ mutation UpdateAlert($alert: AlertUpdateInput!) {
203
+ updateAlert(alert: $alert) {
204
+ id
205
+ name
206
+ state
207
+ type
208
+ }
209
+ }
210
+ `;
211
+ exports.AddContentsToCollections = (0, graphql_tag_1.default) `
212
+ mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
213
+ addContentsToCollections(contents: $contents, collections: $collections) {
214
+ id
215
+ name
216
+ state
217
+ type
218
+ contents {
219
+ id
220
+ name
221
+ }
222
+ }
223
+ }
224
+ `;
225
+ exports.CreateCollection = (0, graphql_tag_1.default) `
226
+ mutation CreateCollection($collection: CollectionInput!) {
227
+ createCollection(collection: $collection) {
228
+ id
229
+ name
230
+ state
231
+ type
232
+ }
233
+ }
234
+ `;
235
+ exports.DeleteCollection = (0, graphql_tag_1.default) `
236
+ mutation DeleteCollection($id: ID!) {
237
+ deleteCollection(id: $id) {
238
+ id
239
+ state
240
+ }
241
+ }
242
+ `;
243
+ exports.DeleteCollections = (0, graphql_tag_1.default) `
244
+ mutation DeleteCollections($ids: [ID!]!) {
245
+ deleteCollections(ids: $ids) {
246
+ id
247
+ state
248
+ }
249
+ }
250
+ `;
251
+ exports.GetCollection = (0, graphql_tag_1.default) `
252
+ query GetCollection($id: ID!) {
253
+ collection(id: $id) {
254
+ id
255
+ name
256
+ creationDate
257
+ owner {
258
+ id
259
+ }
260
+ state
261
+ type
262
+ contents {
263
+ id
264
+ name
265
+ }
266
+ }
267
+ }
268
+ `;
269
+ exports.QueryCollections = (0, graphql_tag_1.default) `
270
+ query QueryCollections($filter: CollectionFilter) {
271
+ collections(filter: $filter) {
272
+ results {
273
+ id
274
+ name
275
+ creationDate
276
+ owner {
277
+ id
278
+ }
279
+ state
280
+ type
281
+ contents {
282
+ id
283
+ name
284
+ }
285
+ }
286
+ }
287
+ }
288
+ `;
289
+ exports.RemoveContentsFromCollection = (0, graphql_tag_1.default) `
290
+ mutation RemoveContentsFromCollection($contents: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
291
+ removeContentsFromCollection(contents: $contents, collection: $collection) {
292
+ id
293
+ name
294
+ state
295
+ type
296
+ contents {
297
+ id
298
+ name
299
+ }
300
+ }
301
+ }
302
+ `;
303
+ exports.UpdateCollection = (0, graphql_tag_1.default) `
304
+ mutation UpdateCollection($collection: CollectionUpdateInput!) {
305
+ updateCollection(collection: $collection) {
306
+ id
307
+ name
308
+ state
309
+ type
310
+ }
311
+ }
312
+ `;
313
+ exports.DeleteAllContents = (0, graphql_tag_1.default) `
314
+ mutation DeleteAllContents {
315
+ deleteAllContents {
316
+ id
317
+ state
318
+ }
319
+ }
320
+ `;
321
+ exports.DeleteContent = (0, graphql_tag_1.default) `
322
+ mutation DeleteContent($id: ID!) {
323
+ deleteContent(id: $id) {
324
+ id
325
+ state
326
+ }
327
+ }
328
+ `;
329
+ exports.DeleteContents = (0, graphql_tag_1.default) `
330
+ mutation DeleteContents($ids: [ID!]!) {
331
+ deleteContents(ids: $ids) {
332
+ id
333
+ state
334
+ }
335
+ }
336
+ `;
337
+ exports.ExtractContents = (0, graphql_tag_1.default) `
338
+ mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput!, $correlationId: String) {
339
+ extractContents(
340
+ prompt: $prompt
341
+ filter: $filter
342
+ specification: $specification
343
+ correlationId: $correlationId
344
+ ) {
345
+ specification {
346
+ id
347
+ }
348
+ content {
349
+ id
350
+ }
351
+ value
352
+ startTime
353
+ endTime
354
+ pageNumber
355
+ error
356
+ }
357
+ }
358
+ `;
359
+ exports.GetContent = (0, graphql_tag_1.default) `
360
+ query GetContent($id: ID!) {
361
+ content(id: $id) {
362
+ id
363
+ name
364
+ creationDate
365
+ owner {
366
+ id
367
+ }
368
+ state
369
+ originalDate
370
+ finishedDate
371
+ workflowDuration
372
+ uri
373
+ type
374
+ fileType
375
+ mimeType
376
+ fileName
377
+ fileSize
378
+ masterUri
379
+ imageUri
380
+ textUri
381
+ audioUri
382
+ transcriptUri
383
+ video {
384
+ width
385
+ height
386
+ duration
387
+ software
388
+ make
389
+ model
390
+ }
391
+ audio {
392
+ keywords
393
+ author
394
+ series
395
+ episode
396
+ episodeType
397
+ season
398
+ publisher
399
+ copyright
400
+ language
401
+ genre
402
+ title
403
+ bitrate
404
+ channels
405
+ sampleRate
406
+ bitsPerSample
407
+ duration
408
+ }
409
+ image {
410
+ width
411
+ height
412
+ description
413
+ software
414
+ identifier
415
+ make
416
+ model
417
+ }
418
+ document {
419
+ title
420
+ subject
421
+ author
422
+ software
423
+ publisher
424
+ description
425
+ summary
426
+ keywords
427
+ pageCount
428
+ worksheetCount
429
+ slideCount
430
+ wordCount
431
+ lineCount
432
+ paragraphCount
433
+ characterCount
434
+ isEncrypted
435
+ hasDigitalSignature
436
+ }
437
+ email {
438
+ subject
439
+ identifier
440
+ sensitivity
441
+ priority
442
+ importance
443
+ labels
444
+ from {
445
+ name
446
+ familyName
447
+ givenName
448
+ email
449
+ }
450
+ to {
451
+ name
452
+ familyName
453
+ givenName
454
+ email
455
+ }
456
+ cc {
457
+ name
458
+ familyName
459
+ givenName
460
+ email
461
+ }
462
+ bcc {
463
+ name
464
+ familyName
465
+ givenName
466
+ email
467
+ }
468
+ }
469
+ issue {
470
+ title
471
+ project
472
+ team
473
+ status
474
+ priority
475
+ type
476
+ identifier
477
+ labels
478
+ }
479
+ observations {
480
+ type
481
+ observable {
482
+ id
483
+ name
484
+ }
485
+ occurrences {
486
+ type
487
+ confidence
488
+ boundingBox {
489
+ left
490
+ top
491
+ width
492
+ height
493
+ }
494
+ pageIndex
495
+ startTime
496
+ endTime
497
+ }
498
+ }
499
+ parent {
500
+ id
501
+ }
502
+ children {
503
+ id
504
+ }
505
+ collections {
506
+ id
507
+ }
508
+ feed {
509
+ id
510
+ }
511
+ workflow {
512
+ id
513
+ }
514
+ markdown
515
+ links {
516
+ uri
517
+ linkType
518
+ }
519
+ error
520
+ }
521
+ }
522
+ `;
523
+ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
524
+ mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
525
+ ingestEncodedFile(
526
+ name: $name
527
+ data: $data
528
+ mimeType: $mimeType
529
+ id: $id
530
+ isSynchronous: $isSynchronous
531
+ workflow: $workflow
532
+ correlationId: $correlationId
533
+ ) {
534
+ id
535
+ name
536
+ state
537
+ type
538
+ fileType
539
+ mimeType
540
+ uri
541
+ }
542
+ }
543
+ `;
544
+ exports.IngestText = (0, graphql_tag_1.default) `
545
+ mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
546
+ ingestText(
547
+ name: $name
548
+ text: $text
549
+ textType: $textType
550
+ uri: $uri
551
+ id: $id
552
+ isSynchronous: $isSynchronous
553
+ workflow: $workflow
554
+ correlationId: $correlationId
555
+ ) {
556
+ id
557
+ name
558
+ state
559
+ type
560
+ fileType
561
+ mimeType
562
+ uri
563
+ }
564
+ }
565
+ `;
566
+ exports.IngestUri = (0, graphql_tag_1.default) `
567
+ mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
568
+ ingestUri(
569
+ name: $name
570
+ uri: $uri
571
+ id: $id
572
+ workflow: $workflow
573
+ isSynchronous: $isSynchronous
574
+ correlationId: $correlationId
575
+ ) {
576
+ id
577
+ name
578
+ state
579
+ type
580
+ fileType
581
+ mimeType
582
+ uri
583
+ }
584
+ }
585
+ `;
586
+ exports.IsContentDone = (0, graphql_tag_1.default) `
587
+ query IsContentDone($id: ID!) {
588
+ isContentDone(id: $id) {
589
+ result
590
+ }
591
+ }
592
+ `;
593
+ exports.PublishContents = (0, graphql_tag_1.default) `
594
+ mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput) {
595
+ publishContents(
596
+ summaryPrompt: $summaryPrompt
597
+ publishPrompt: $publishPrompt
598
+ connector: $connector
599
+ filter: $filter
600
+ correlationId: $correlationId
601
+ name: $name
602
+ summarySpecification: $summarySpecification
603
+ publishSpecification: $publishSpecification
604
+ workflow: $workflow
605
+ ) {
606
+ id
607
+ name
608
+ state
609
+ type
610
+ fileType
611
+ mimeType
612
+ uri
613
+ textUri
614
+ audioUri
615
+ markdown
616
+ }
617
+ }
618
+ `;
619
+ exports.QueryContentFacets = (0, graphql_tag_1.default) `
620
+ query QueryContentFacets($filter: ContentFilter, $facets: [ContentFacetInput!]) {
621
+ contents(filter: $filter, facets: $facets) {
622
+ facets {
623
+ facet
624
+ type
625
+ observable {
626
+ type
627
+ observable {
628
+ id
629
+ name
630
+ }
631
+ }
632
+ count
633
+ }
634
+ }
635
+ }
636
+ `;
637
+ exports.QueryContents = (0, graphql_tag_1.default) `
638
+ query QueryContents($filter: ContentFilter) {
639
+ contents(filter: $filter) {
640
+ results {
641
+ id
642
+ name
643
+ creationDate
644
+ owner {
645
+ id
646
+ }
647
+ state
648
+ originalDate
649
+ finishedDate
650
+ workflowDuration
651
+ uri
652
+ type
653
+ fileType
654
+ mimeType
655
+ fileName
656
+ fileSize
657
+ masterUri
658
+ imageUri
659
+ textUri
660
+ audioUri
661
+ transcriptUri
662
+ video {
663
+ width
664
+ height
665
+ duration
666
+ software
667
+ make
668
+ model
669
+ }
670
+ audio {
671
+ keywords
672
+ author
673
+ series
674
+ episode
675
+ episodeType
676
+ season
677
+ publisher
678
+ copyright
679
+ language
680
+ genre
681
+ title
682
+ bitrate
683
+ channels
684
+ sampleRate
685
+ bitsPerSample
686
+ duration
687
+ }
688
+ image {
689
+ width
690
+ height
691
+ description
692
+ software
693
+ identifier
694
+ make
695
+ model
696
+ }
697
+ document {
698
+ title
699
+ subject
700
+ author
701
+ software
702
+ publisher
703
+ description
704
+ summary
705
+ keywords
706
+ pageCount
707
+ worksheetCount
708
+ slideCount
709
+ wordCount
710
+ lineCount
711
+ paragraphCount
712
+ characterCount
713
+ isEncrypted
714
+ hasDigitalSignature
715
+ }
716
+ email {
717
+ subject
718
+ identifier
719
+ sensitivity
720
+ priority
721
+ importance
722
+ labels
723
+ from {
724
+ name
725
+ familyName
726
+ givenName
727
+ email
728
+ }
729
+ to {
730
+ name
731
+ familyName
732
+ givenName
733
+ email
734
+ }
735
+ cc {
736
+ name
737
+ familyName
738
+ givenName
739
+ email
740
+ }
741
+ bcc {
742
+ name
743
+ familyName
744
+ givenName
745
+ email
746
+ }
747
+ }
748
+ issue {
749
+ title
750
+ project
751
+ team
752
+ status
753
+ priority
754
+ type
755
+ identifier
756
+ labels
757
+ }
758
+ observations {
759
+ type
760
+ observable {
761
+ id
762
+ name
763
+ }
764
+ occurrences {
765
+ type
766
+ confidence
767
+ boundingBox {
768
+ left
769
+ top
770
+ width
771
+ height
772
+ }
773
+ pageIndex
774
+ startTime
775
+ endTime
776
+ }
777
+ }
778
+ parent {
779
+ id
780
+ }
781
+ children {
782
+ id
783
+ }
784
+ collections {
785
+ id
786
+ }
787
+ feed {
788
+ id
789
+ }
790
+ workflow {
791
+ id
792
+ }
793
+ markdown
794
+ links {
795
+ uri
796
+ linkType
797
+ }
798
+ error
799
+ }
800
+ }
801
+ }
802
+ `;
803
+ exports.SummarizeContents = (0, graphql_tag_1.default) `
804
+ mutation SummarizeContents($summarizations: [SummarizationStrategyInput!]!, $filter: ContentFilter, $correlationId: String) {
805
+ summarizeContents(
806
+ summarizations: $summarizations
807
+ filter: $filter
808
+ correlationId: $correlationId
809
+ ) {
810
+ specification {
811
+ id
812
+ }
813
+ content {
814
+ id
815
+ }
816
+ type
817
+ items {
818
+ text
819
+ tokens
820
+ summarizationTime
821
+ }
822
+ error
823
+ }
824
+ }
825
+ `;
826
+ exports.UpdateContent = (0, graphql_tag_1.default) `
827
+ mutation UpdateContent($content: ContentUpdateInput!) {
828
+ updateContent(content: $content) {
829
+ id
830
+ name
831
+ state
832
+ type
833
+ fileType
834
+ mimeType
835
+ uri
836
+ }
837
+ }
838
+ `;
839
+ exports.ClearConversation = (0, graphql_tag_1.default) `
840
+ mutation ClearConversation($id: ID!) {
841
+ clearConversation(id: $id) {
842
+ id
843
+ name
844
+ state
845
+ type
846
+ }
847
+ }
848
+ `;
849
+ exports.CloseConversation = (0, graphql_tag_1.default) `
850
+ mutation CloseConversation($id: ID!) {
851
+ closeConversation(id: $id) {
852
+ id
853
+ name
854
+ state
855
+ type
856
+ }
857
+ }
858
+ `;
859
+ exports.CreateConversation = (0, graphql_tag_1.default) `
860
+ mutation CreateConversation($conversation: ConversationInput!, $correlationId: String) {
861
+ createConversation(conversation: $conversation, correlationId: $correlationId) {
862
+ id
863
+ name
864
+ state
865
+ type
866
+ }
867
+ }
868
+ `;
869
+ exports.DeleteAllConversations = (0, graphql_tag_1.default) `
870
+ mutation DeleteAllConversations {
871
+ deleteAllConversations {
872
+ id
873
+ state
874
+ }
875
+ }
876
+ `;
877
+ exports.DeleteConversation = (0, graphql_tag_1.default) `
878
+ mutation DeleteConversation($id: ID!) {
879
+ deleteConversation(id: $id) {
880
+ id
881
+ state
882
+ }
883
+ }
884
+ `;
885
+ exports.DeleteConversations = (0, graphql_tag_1.default) `
886
+ mutation DeleteConversations($ids: [ID!]!) {
887
+ deleteConversations(ids: $ids) {
888
+ id
889
+ state
890
+ }
891
+ }
892
+ `;
893
+ exports.GetConversation = (0, graphql_tag_1.default) `
894
+ query GetConversation($id: ID!) {
895
+ conversation(id: $id) {
896
+ id
897
+ name
898
+ creationDate
899
+ owner {
900
+ id
901
+ }
902
+ state
903
+ correlationId
904
+ type
905
+ messages {
906
+ role
907
+ author
908
+ message
909
+ citations {
910
+ content {
911
+ id
912
+ }
913
+ index
914
+ text
915
+ startTime
916
+ endTime
917
+ pageNumber
918
+ frameNumber
919
+ }
920
+ tokens
921
+ throughput
922
+ completionTime
923
+ timestamp
924
+ modelService
925
+ model
926
+ }
927
+ specification {
928
+ id
929
+ name
930
+ }
931
+ filter {
932
+ dateRange {
933
+ from
934
+ to
935
+ }
936
+ creationDateRange {
937
+ from
938
+ to
939
+ }
940
+ types
941
+ fileTypes
942
+ contents {
943
+ id
944
+ }
945
+ feeds {
946
+ id
947
+ }
948
+ workflows {
949
+ id
950
+ }
951
+ collections {
952
+ id
953
+ }
954
+ observations {
955
+ type
956
+ observable {
957
+ id
958
+ }
959
+ states
960
+ }
961
+ }
962
+ }
963
+ }
964
+ `;
965
+ exports.PromptConversation = (0, graphql_tag_1.default) `
966
+ mutation PromptConversation($prompt: String!, $id: ID, $correlationId: String) {
967
+ promptConversation(prompt: $prompt, id: $id, correlationId: $correlationId) {
968
+ conversation {
969
+ id
970
+ }
971
+ message {
972
+ role
973
+ author
974
+ message
975
+ citations {
976
+ content {
977
+ id
978
+ type
979
+ fileType
980
+ fileName
981
+ }
982
+ index
983
+ text
984
+ startTime
985
+ endTime
986
+ pageNumber
987
+ frameNumber
988
+ }
989
+ tokens
990
+ throughput
991
+ completionTime
992
+ timestamp
993
+ modelService
994
+ model
995
+ }
996
+ messageCount
997
+ facets {
998
+ type
999
+ value
1000
+ range {
1001
+ from
1002
+ to
1003
+ }
1004
+ count
1005
+ facet
1006
+ observable {
1007
+ type
1008
+ observable {
1009
+ id
1010
+ name
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ }
1016
+ `;
1017
+ exports.PublishConversation = (0, graphql_tag_1.default) `
1018
+ mutation PublishConversation($id: ID!, $connector: ContentPublishingConnectorInput!, $name: String, $workflow: EntityReferenceInput, $correlationId: String) {
1019
+ publishConversation(
1020
+ id: $id
1021
+ connector: $connector
1022
+ name: $name
1023
+ workflow: $workflow
1024
+ correlationId: $correlationId
1025
+ ) {
1026
+ id
1027
+ name
1028
+ state
1029
+ type
1030
+ fileType
1031
+ mimeType
1032
+ uri
1033
+ textUri
1034
+ audioUri
1035
+ markdown
1036
+ }
1037
+ }
1038
+ `;
1039
+ exports.QueryConversations = (0, graphql_tag_1.default) `
1040
+ query QueryConversations($filter: ConversationFilter) {
1041
+ conversations(filter: $filter) {
1042
+ results {
1043
+ id
1044
+ name
1045
+ creationDate
1046
+ owner {
1047
+ id
1048
+ }
1049
+ state
1050
+ correlationId
1051
+ type
1052
+ messages {
1053
+ role
1054
+ author
1055
+ message
1056
+ citations {
1057
+ content {
1058
+ id
1059
+ }
1060
+ index
1061
+ text
1062
+ startTime
1063
+ endTime
1064
+ pageNumber
1065
+ frameNumber
1066
+ }
1067
+ tokens
1068
+ throughput
1069
+ completionTime
1070
+ timestamp
1071
+ modelService
1072
+ model
1073
+ }
1074
+ specification {
1075
+ id
1076
+ name
1077
+ }
1078
+ filter {
1079
+ dateRange {
1080
+ from
1081
+ to
1082
+ }
1083
+ creationDateRange {
1084
+ from
1085
+ to
1086
+ }
1087
+ types
1088
+ fileTypes
1089
+ contents {
1090
+ id
1091
+ }
1092
+ feeds {
1093
+ id
1094
+ }
1095
+ workflows {
1096
+ id
1097
+ }
1098
+ collections {
1099
+ id
1100
+ }
1101
+ observations {
1102
+ type
1103
+ observable {
1104
+ id
1105
+ }
1106
+ states
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ `;
1113
+ exports.SuggestConversation = (0, graphql_tag_1.default) `
1114
+ mutation SuggestConversation($id: ID!, $count: Int, $correlationId: String) {
1115
+ suggestConversation(id: $id, count: $count, correlationId: $correlationId) {
1116
+ prompts
1117
+ }
1118
+ }
1119
+ `;
1120
+ exports.UpdateConversation = (0, graphql_tag_1.default) `
1121
+ mutation UpdateConversation($conversation: ConversationUpdateInput!) {
1122
+ updateConversation(conversation: $conversation) {
1123
+ id
1124
+ name
1125
+ state
1126
+ type
1127
+ }
1128
+ }
1129
+ `;
1130
+ exports.CreateFeed = (0, graphql_tag_1.default) `
1131
+ mutation CreateFeed($feed: FeedInput!, $correlationId: String) {
1132
+ createFeed(feed: $feed, correlationId: $correlationId) {
1133
+ id
1134
+ name
1135
+ state
1136
+ type
1137
+ }
1138
+ }
1139
+ `;
1140
+ exports.DeleteAllFeeds = (0, graphql_tag_1.default) `
1141
+ mutation DeleteAllFeeds {
1142
+ deleteAllFeeds {
1143
+ id
1144
+ state
1145
+ }
1146
+ }
1147
+ `;
1148
+ exports.DeleteFeed = (0, graphql_tag_1.default) `
1149
+ mutation DeleteFeed($id: ID!) {
1150
+ deleteFeed(id: $id) {
1151
+ id
1152
+ state
1153
+ }
1154
+ }
1155
+ `;
1156
+ exports.DeleteFeeds = (0, graphql_tag_1.default) `
1157
+ mutation DeleteFeeds($ids: [ID!]!) {
1158
+ deleteFeeds(ids: $ids) {
1159
+ id
1160
+ state
1161
+ }
1162
+ }
1163
+ `;
1164
+ exports.DisableFeed = (0, graphql_tag_1.default) `
1165
+ mutation DisableFeed($id: ID!) {
1166
+ disableFeed(id: $id) {
1167
+ id
1168
+ state
1169
+ }
1170
+ }
1171
+ `;
1172
+ exports.EnableFeed = (0, graphql_tag_1.default) `
1173
+ mutation EnableFeed($id: ID!) {
1174
+ enableFeed(id: $id) {
1175
+ id
1176
+ state
1177
+ }
1178
+ }
1179
+ `;
1180
+ exports.GetFeed = (0, graphql_tag_1.default) `
1181
+ query GetFeed($id: ID!) {
1182
+ feed(id: $id) {
1183
+ id
1184
+ name
1185
+ creationDate
1186
+ owner {
1187
+ id
1188
+ }
1189
+ state
1190
+ correlationId
1191
+ type
1192
+ site {
1193
+ siteType
1194
+ type
1195
+ isRecursive
1196
+ s3 {
1197
+ accessKey
1198
+ secretAccessKey
1199
+ bucketName
1200
+ prefix
1201
+ region
1202
+ }
1203
+ azureBlob {
1204
+ storageAccessKey
1205
+ accountName
1206
+ containerName
1207
+ prefix
1208
+ }
1209
+ azureFile {
1210
+ storageAccessKey
1211
+ accountName
1212
+ shareName
1213
+ prefix
1214
+ }
1215
+ google {
1216
+ credentials
1217
+ containerName
1218
+ prefix
1219
+ }
1220
+ sharePoint {
1221
+ authenticationType
1222
+ accountName
1223
+ libraryId
1224
+ tenantId
1225
+ refreshToken
1226
+ }
1227
+ oneDrive {
1228
+ folderId
1229
+ refreshToken
1230
+ }
1231
+ googleDrive {
1232
+ folderId
1233
+ refreshToken
1234
+ }
1235
+ }
1236
+ email {
1237
+ type
1238
+ includeAttachments
1239
+ google {
1240
+ type
1241
+ refreshToken
1242
+ }
1243
+ microsoft {
1244
+ type
1245
+ tenantId
1246
+ refreshToken
1247
+ }
1248
+ }
1249
+ issue {
1250
+ type
1251
+ includeAttachments
1252
+ jira {
1253
+ uri
1254
+ project
1255
+ email
1256
+ token
1257
+ }
1258
+ linear {
1259
+ key
1260
+ project
1261
+ }
1262
+ github {
1263
+ uri
1264
+ repositoryOwner
1265
+ repositoryName
1266
+ refreshToken
1267
+ personalAccessToken
1268
+ }
1269
+ }
1270
+ rss {
1271
+ readLimit
1272
+ uri
1273
+ }
1274
+ web {
1275
+ readLimit
1276
+ uri
1277
+ includeFiles
1278
+ }
1279
+ reddit {
1280
+ readLimit
1281
+ subredditName
1282
+ }
1283
+ notion {
1284
+ readLimit
1285
+ token
1286
+ identifiers
1287
+ type
1288
+ }
1289
+ youtube {
1290
+ readLimit
1291
+ type
1292
+ videoName
1293
+ videoIdentifiers
1294
+ channelIdentifier
1295
+ playlistIdentifier
1296
+ }
1297
+ slack {
1298
+ readLimit
1299
+ type
1300
+ token
1301
+ channel
1302
+ includeAttachments
1303
+ }
1304
+ discord {
1305
+ readLimit
1306
+ type
1307
+ token
1308
+ channel
1309
+ includeAttachments
1310
+ }
1311
+ error
1312
+ lastPostDate
1313
+ lastReadDate
1314
+ readCount
1315
+ workflow {
1316
+ id
1317
+ name
1318
+ }
1319
+ schedulePolicy {
1320
+ recurrenceType
1321
+ repeatInterval
1322
+ }
1323
+ }
1324
+ }
1325
+ `;
1326
+ exports.IsFeedDone = (0, graphql_tag_1.default) `
1327
+ query IsFeedDone($id: ID!) {
1328
+ isFeedDone(id: $id) {
1329
+ result
1330
+ }
1331
+ }
1332
+ `;
1333
+ exports.QueryFeeds = (0, graphql_tag_1.default) `
1334
+ query QueryFeeds($filter: FeedFilter) {
1335
+ feeds(filter: $filter) {
1336
+ results {
1337
+ id
1338
+ name
1339
+ creationDate
1340
+ owner {
1341
+ id
1342
+ }
1343
+ state
1344
+ correlationId
1345
+ type
1346
+ site {
1347
+ siteType
1348
+ type
1349
+ isRecursive
1350
+ s3 {
1351
+ accessKey
1352
+ secretAccessKey
1353
+ bucketName
1354
+ prefix
1355
+ region
1356
+ }
1357
+ azureBlob {
1358
+ storageAccessKey
1359
+ accountName
1360
+ containerName
1361
+ prefix
1362
+ }
1363
+ azureFile {
1364
+ storageAccessKey
1365
+ accountName
1366
+ shareName
1367
+ prefix
1368
+ }
1369
+ google {
1370
+ credentials
1371
+ containerName
1372
+ prefix
1373
+ }
1374
+ sharePoint {
1375
+ authenticationType
1376
+ accountName
1377
+ libraryId
1378
+ tenantId
1379
+ refreshToken
1380
+ }
1381
+ oneDrive {
1382
+ folderId
1383
+ refreshToken
1384
+ }
1385
+ googleDrive {
1386
+ folderId
1387
+ refreshToken
1388
+ }
1389
+ }
1390
+ email {
1391
+ type
1392
+ includeAttachments
1393
+ google {
1394
+ type
1395
+ refreshToken
1396
+ }
1397
+ microsoft {
1398
+ type
1399
+ tenantId
1400
+ refreshToken
1401
+ }
1402
+ }
1403
+ issue {
1404
+ type
1405
+ includeAttachments
1406
+ jira {
1407
+ uri
1408
+ project
1409
+ email
1410
+ token
1411
+ }
1412
+ linear {
1413
+ key
1414
+ project
1415
+ }
1416
+ github {
1417
+ uri
1418
+ repositoryOwner
1419
+ repositoryName
1420
+ refreshToken
1421
+ personalAccessToken
1422
+ }
1423
+ }
1424
+ rss {
1425
+ readLimit
1426
+ uri
1427
+ }
1428
+ web {
1429
+ readLimit
1430
+ uri
1431
+ includeFiles
1432
+ }
1433
+ reddit {
1434
+ readLimit
1435
+ subredditName
1436
+ }
1437
+ notion {
1438
+ readLimit
1439
+ token
1440
+ identifiers
1441
+ type
1442
+ }
1443
+ youtube {
1444
+ readLimit
1445
+ type
1446
+ videoName
1447
+ videoIdentifiers
1448
+ channelIdentifier
1449
+ playlistIdentifier
1450
+ }
1451
+ slack {
1452
+ readLimit
1453
+ type
1454
+ token
1455
+ channel
1456
+ includeAttachments
1457
+ }
1458
+ discord {
1459
+ readLimit
1460
+ type
1461
+ token
1462
+ channel
1463
+ includeAttachments
1464
+ }
1465
+ error
1466
+ lastPostDate
1467
+ lastReadDate
1468
+ readCount
1469
+ workflow {
1470
+ id
1471
+ name
1472
+ }
1473
+ schedulePolicy {
1474
+ recurrenceType
1475
+ repeatInterval
1476
+ }
1477
+ }
1478
+ }
1479
+ }
1480
+ `;
1481
+ exports.UpdateFeed = (0, graphql_tag_1.default) `
1482
+ mutation UpdateFeed($feed: FeedUpdateInput!) {
1483
+ updateFeed(feed: $feed) {
1484
+ id
1485
+ name
1486
+ state
1487
+ type
1488
+ }
1489
+ }
1490
+ `;
1491
+ exports.Credits = (0, graphql_tag_1.default) `
1492
+ query Credits($startDate: DateTime!, $duration: TimeSpan!) {
1493
+ credits(startDate: $startDate, duration: $duration) {
1494
+ correlationId
1495
+ ownerId
1496
+ credits
1497
+ storageRatio
1498
+ computeRatio
1499
+ preparationRatio
1500
+ extractionRatio
1501
+ enrichmentRatio
1502
+ publishingRatio
1503
+ searchRatio
1504
+ conversationRatio
1505
+ }
1506
+ }
1507
+ `;
1508
+ exports.LookupCredits = (0, graphql_tag_1.default) `
1509
+ query LookupCredits($correlationId: String!) {
1510
+ lookupCredits(correlationId: $correlationId) {
1511
+ correlationId
1512
+ ownerId
1513
+ credits
1514
+ storageRatio
1515
+ computeRatio
1516
+ preparationRatio
1517
+ extractionRatio
1518
+ enrichmentRatio
1519
+ publishingRatio
1520
+ searchRatio
1521
+ conversationRatio
1522
+ }
1523
+ }
1524
+ `;
1525
+ exports.LookupUsage = (0, graphql_tag_1.default) `
1526
+ query LookupUsage($correlationId: String!) {
1527
+ lookupUsage(correlationId: $correlationId) {
1528
+ correlationId
1529
+ date
1530
+ credits
1531
+ name
1532
+ metric
1533
+ workflow
1534
+ entityType
1535
+ entityId
1536
+ projectId
1537
+ ownerId
1538
+ uri
1539
+ duration
1540
+ throughput
1541
+ contentType
1542
+ fileType
1543
+ modelService
1544
+ modelName
1545
+ processorName
1546
+ prompt
1547
+ promptTokens
1548
+ completion
1549
+ completionTokens
1550
+ tokens
1551
+ count
1552
+ request
1553
+ variables
1554
+ response
1555
+ }
1556
+ }
1557
+ `;
1558
+ exports.Project = (0, graphql_tag_1.default) `
1559
+ query Project {
1560
+ project {
1561
+ id
1562
+ name
1563
+ creationDate
1564
+ modifiedDate
1565
+ state
1566
+ environmentType
1567
+ platform
1568
+ region
1569
+ workflow {
1570
+ id
1571
+ name
1572
+ }
1573
+ specification {
1574
+ id
1575
+ name
1576
+ }
1577
+ quota {
1578
+ storage
1579
+ contents
1580
+ feeds
1581
+ posts
1582
+ conversations
1583
+ }
1584
+ callbackUri
1585
+ }
1586
+ }
1587
+ `;
1588
+ exports.UpdateProject = (0, graphql_tag_1.default) `
1589
+ mutation UpdateProject($project: ProjectUpdateInput!) {
1590
+ updateProject(project: $project) {
1591
+ id
1592
+ name
1593
+ }
1594
+ }
1595
+ `;
1596
+ exports.Usage = (0, graphql_tag_1.default) `
1597
+ query Usage($startDate: DateTime!, $duration: TimeSpan!) {
1598
+ usage(startDate: $startDate, duration: $duration) {
1599
+ correlationId
1600
+ date
1601
+ credits
1602
+ name
1603
+ metric
1604
+ workflow
1605
+ entityType
1606
+ entityId
1607
+ projectId
1608
+ ownerId
1609
+ uri
1610
+ duration
1611
+ throughput
1612
+ contentType
1613
+ fileType
1614
+ modelService
1615
+ modelName
1616
+ processorName
1617
+ prompt
1618
+ promptTokens
1619
+ completion
1620
+ completionTokens
1621
+ tokens
1622
+ count
1623
+ request
1624
+ variables
1625
+ response
1626
+ }
1627
+ }
1628
+ `;
1629
+ exports.CreateSpecification = (0, graphql_tag_1.default) `
1630
+ mutation CreateSpecification($specification: SpecificationInput!) {
1631
+ createSpecification(specification: $specification) {
1632
+ id
1633
+ name
1634
+ state
1635
+ type
1636
+ serviceType
1637
+ }
1638
+ }
1639
+ `;
1640
+ exports.DeleteSpecification = (0, graphql_tag_1.default) `
1641
+ mutation DeleteSpecification($id: ID!) {
1642
+ deleteSpecification(id: $id) {
1643
+ id
1644
+ state
1645
+ }
1646
+ }
1647
+ `;
1648
+ exports.GetSpecification = (0, graphql_tag_1.default) `
1649
+ query GetSpecification($id: ID!) {
1650
+ specification(id: $id) {
1651
+ id
1652
+ name
1653
+ creationDate
1654
+ owner {
1655
+ id
1656
+ }
1657
+ state
1658
+ type
1659
+ serviceType
1660
+ systemPrompt
1661
+ customGuidance
1662
+ strategy {
1663
+ type
1664
+ messageLimit
1665
+ embedCitations
1666
+ enableFacets
1667
+ messagesWeight
1668
+ contentsWeight
1669
+ }
1670
+ promptStrategy {
1671
+ type
1672
+ }
1673
+ retrievalStrategy {
1674
+ type
1675
+ contentLimit
1676
+ }
1677
+ rerankingStrategy {
1678
+ serviceType
1679
+ }
1680
+ openAI {
1681
+ tokenLimit
1682
+ completionTokenLimit
1683
+ model
1684
+ key
1685
+ modelName
1686
+ temperature
1687
+ probability
1688
+ }
1689
+ azureOpenAI {
1690
+ tokenLimit
1691
+ completionTokenLimit
1692
+ model
1693
+ key
1694
+ endpoint
1695
+ deploymentName
1696
+ temperature
1697
+ probability
1698
+ }
1699
+ anthropic {
1700
+ tokenLimit
1701
+ completionTokenLimit
1702
+ model
1703
+ key
1704
+ modelName
1705
+ temperature
1706
+ probability
1707
+ }
1708
+ replicate {
1709
+ tokenLimit
1710
+ completionTokenLimit
1711
+ model
1712
+ key
1713
+ modelName
1714
+ temperature
1715
+ probability
1716
+ }
1717
+ tools {
1718
+ name
1719
+ description
1720
+ schema
1721
+ uri
1722
+ }
1723
+ }
1724
+ }
1725
+ `;
1726
+ exports.PromptSpecifications = (0, graphql_tag_1.default) `
1727
+ mutation PromptSpecifications($prompt: String!, $ids: [ID!]!) {
1728
+ promptSpecifications(prompt: $prompt, ids: $ids) {
1729
+ specification {
1730
+ id
1731
+ }
1732
+ messages {
1733
+ role
1734
+ author
1735
+ message
1736
+ citations {
1737
+ content {
1738
+ id
1739
+ }
1740
+ index
1741
+ text
1742
+ startTime
1743
+ endTime
1744
+ pageNumber
1745
+ frameNumber
1746
+ }
1747
+ tokens
1748
+ throughput
1749
+ completionTime
1750
+ timestamp
1751
+ modelService
1752
+ model
1753
+ }
1754
+ error
1755
+ }
1756
+ }
1757
+ `;
1758
+ exports.QuerySpecifications = (0, graphql_tag_1.default) `
1759
+ query QuerySpecifications($filter: SpecificationFilter) {
1760
+ specifications(filter: $filter) {
1761
+ results {
1762
+ id
1763
+ name
1764
+ creationDate
1765
+ owner {
1766
+ id
1767
+ }
1768
+ state
1769
+ type
1770
+ serviceType
1771
+ systemPrompt
1772
+ customGuidance
1773
+ strategy {
1774
+ type
1775
+ messageLimit
1776
+ embedCitations
1777
+ enableFacets
1778
+ messagesWeight
1779
+ contentsWeight
1780
+ }
1781
+ promptStrategy {
1782
+ type
1783
+ }
1784
+ retrievalStrategy {
1785
+ type
1786
+ contentLimit
1787
+ }
1788
+ rerankingStrategy {
1789
+ serviceType
1790
+ }
1791
+ openAI {
1792
+ tokenLimit
1793
+ completionTokenLimit
1794
+ model
1795
+ key
1796
+ modelName
1797
+ temperature
1798
+ probability
1799
+ }
1800
+ azureOpenAI {
1801
+ tokenLimit
1802
+ completionTokenLimit
1803
+ model
1804
+ key
1805
+ endpoint
1806
+ deploymentName
1807
+ temperature
1808
+ probability
1809
+ }
1810
+ anthropic {
1811
+ tokenLimit
1812
+ completionTokenLimit
1813
+ model
1814
+ key
1815
+ modelName
1816
+ temperature
1817
+ probability
1818
+ }
1819
+ replicate {
1820
+ tokenLimit
1821
+ completionTokenLimit
1822
+ model
1823
+ key
1824
+ modelName
1825
+ temperature
1826
+ probability
1827
+ }
1828
+ tools {
1829
+ name
1830
+ description
1831
+ schema
1832
+ uri
1833
+ }
1834
+ }
1835
+ }
1836
+ }
1837
+ `;
1838
+ exports.UpdateSpecification = (0, graphql_tag_1.default) `
1839
+ mutation UpdateSpecification($specification: SpecificationUpdateInput!) {
1840
+ updateSpecification(specification: $specification) {
1841
+ id
1842
+ name
1843
+ state
1844
+ type
1845
+ serviceType
1846
+ }
1847
+ }
1848
+ `;
1849
+ exports.CreateWorkflow = (0, graphql_tag_1.default) `
1850
+ mutation CreateWorkflow($workflow: WorkflowInput!) {
1851
+ createWorkflow(workflow: $workflow) {
1852
+ id
1853
+ name
1854
+ state
1855
+ ingestion {
1856
+ if {
1857
+ types
1858
+ fileTypes
1859
+ }
1860
+ collections {
1861
+ id
1862
+ }
1863
+ }
1864
+ preparation {
1865
+ disableSmartCapture
1866
+ summarizations {
1867
+ type
1868
+ specification {
1869
+ id
1870
+ }
1871
+ tokens
1872
+ items
1873
+ }
1874
+ jobs {
1875
+ connector {
1876
+ type
1877
+ fileTypes
1878
+ azureDocument {
1879
+ model
1880
+ }
1881
+ deepgram {
1882
+ model
1883
+ key
1884
+ enableRedaction
1885
+ enableSpeakerDiarization
1886
+ }
1887
+ document {
1888
+ includeImages
1889
+ }
1890
+ email {
1891
+ includeAttachments
1892
+ }
1893
+ }
1894
+ }
1895
+ }
1896
+ extraction {
1897
+ jobs {
1898
+ connector {
1899
+ type
1900
+ contentTypes
1901
+ fileTypes
1902
+ extractedTypes
1903
+ azureText {
1904
+ confidenceThreshold
1905
+ enablePII
1906
+ }
1907
+ azureImage {
1908
+ confidenceThreshold
1909
+ }
1910
+ openAIImage {
1911
+ confidenceThreshold
1912
+ detailLevel
1913
+ }
1914
+ modelText {
1915
+ specification {
1916
+ id
1917
+ }
1918
+ }
1919
+ }
1920
+ }
1921
+ }
1922
+ enrichment {
1923
+ link {
1924
+ enableCrawling
1925
+ allowedDomains
1926
+ excludedDomains
1927
+ allowedLinks
1928
+ excludedLinks
1929
+ allowedFiles
1930
+ excludedFiles
1931
+ allowContentDomain
1932
+ maximumLinks
1933
+ }
1934
+ jobs {
1935
+ connector {
1936
+ type
1937
+ enrichedTypes
1938
+ }
1939
+ }
1940
+ }
1941
+ actions {
1942
+ connector {
1943
+ type
1944
+ uri
1945
+ slack {
1946
+ token
1947
+ channel
1948
+ }
1949
+ }
1950
+ }
1951
+ }
1952
+ }
1953
+ `;
1954
+ exports.DeleteAllWorkflows = (0, graphql_tag_1.default) `
1955
+ mutation DeleteAllWorkflows {
1956
+ deleteAllWorkflows {
1957
+ id
1958
+ state
1959
+ }
1960
+ }
1961
+ `;
1962
+ exports.DeleteWorkflow = (0, graphql_tag_1.default) `
1963
+ mutation DeleteWorkflow($id: ID!) {
1964
+ deleteWorkflow(id: $id) {
1965
+ id
1966
+ state
1967
+ }
1968
+ }
1969
+ `;
1970
+ exports.DeleteWorkflows = (0, graphql_tag_1.default) `
1971
+ mutation DeleteWorkflows($ids: [ID!]!) {
1972
+ deleteWorkflows(ids: $ids) {
1973
+ id
1974
+ state
1975
+ }
1976
+ }
1977
+ `;
1978
+ exports.GetWorkflow = (0, graphql_tag_1.default) `
1979
+ query GetWorkflow($id: ID!) {
1980
+ workflow(id: $id) {
1981
+ id
1982
+ name
1983
+ creationDate
1984
+ owner {
1985
+ id
1986
+ }
1987
+ state
1988
+ ingestion {
1989
+ if {
1990
+ types
1991
+ fileTypes
1992
+ }
1993
+ collections {
1994
+ id
1995
+ }
1996
+ }
1997
+ preparation {
1998
+ disableSmartCapture
1999
+ summarizations {
2000
+ type
2001
+ specification {
2002
+ id
2003
+ }
2004
+ tokens
2005
+ items
2006
+ }
2007
+ jobs {
2008
+ connector {
2009
+ type
2010
+ fileTypes
2011
+ azureDocument {
2012
+ model
2013
+ }
2014
+ deepgram {
2015
+ model
2016
+ key
2017
+ enableRedaction
2018
+ enableSpeakerDiarization
2019
+ }
2020
+ document {
2021
+ includeImages
2022
+ }
2023
+ email {
2024
+ includeAttachments
2025
+ }
2026
+ }
2027
+ }
2028
+ }
2029
+ extraction {
2030
+ jobs {
2031
+ connector {
2032
+ type
2033
+ contentTypes
2034
+ fileTypes
2035
+ extractedTypes
2036
+ azureText {
2037
+ confidenceThreshold
2038
+ enablePII
2039
+ }
2040
+ azureImage {
2041
+ confidenceThreshold
2042
+ }
2043
+ openAIImage {
2044
+ confidenceThreshold
2045
+ detailLevel
2046
+ }
2047
+ modelText {
2048
+ specification {
2049
+ id
2050
+ }
2051
+ }
2052
+ }
2053
+ }
2054
+ }
2055
+ enrichment {
2056
+ link {
2057
+ enableCrawling
2058
+ allowedDomains
2059
+ excludedDomains
2060
+ allowedLinks
2061
+ excludedLinks
2062
+ allowedFiles
2063
+ excludedFiles
2064
+ allowContentDomain
2065
+ maximumLinks
2066
+ }
2067
+ jobs {
2068
+ connector {
2069
+ type
2070
+ enrichedTypes
2071
+ }
2072
+ }
2073
+ }
2074
+ actions {
2075
+ connector {
2076
+ type
2077
+ uri
2078
+ slack {
2079
+ token
2080
+ channel
2081
+ }
2082
+ }
2083
+ }
2084
+ }
2085
+ }
2086
+ `;
2087
+ exports.QueryWorkflows = (0, graphql_tag_1.default) `
2088
+ query QueryWorkflows($filter: WorkflowFilter) {
2089
+ workflows(filter: $filter) {
2090
+ results {
2091
+ id
2092
+ name
2093
+ creationDate
2094
+ owner {
2095
+ id
2096
+ }
2097
+ state
2098
+ ingestion {
2099
+ if {
2100
+ types
2101
+ fileTypes
2102
+ }
2103
+ collections {
2104
+ id
2105
+ }
2106
+ }
2107
+ preparation {
2108
+ disableSmartCapture
2109
+ summarizations {
2110
+ type
2111
+ specification {
2112
+ id
2113
+ }
2114
+ tokens
2115
+ items
2116
+ }
2117
+ jobs {
2118
+ connector {
2119
+ type
2120
+ fileTypes
2121
+ azureDocument {
2122
+ model
2123
+ }
2124
+ deepgram {
2125
+ model
2126
+ key
2127
+ enableRedaction
2128
+ enableSpeakerDiarization
2129
+ }
2130
+ document {
2131
+ includeImages
2132
+ }
2133
+ email {
2134
+ includeAttachments
2135
+ }
2136
+ }
2137
+ }
2138
+ }
2139
+ extraction {
2140
+ jobs {
2141
+ connector {
2142
+ type
2143
+ contentTypes
2144
+ fileTypes
2145
+ extractedTypes
2146
+ azureText {
2147
+ confidenceThreshold
2148
+ enablePII
2149
+ }
2150
+ azureImage {
2151
+ confidenceThreshold
2152
+ }
2153
+ openAIImage {
2154
+ confidenceThreshold
2155
+ detailLevel
2156
+ }
2157
+ modelText {
2158
+ specification {
2159
+ id
2160
+ }
2161
+ }
2162
+ }
2163
+ }
2164
+ }
2165
+ enrichment {
2166
+ link {
2167
+ enableCrawling
2168
+ allowedDomains
2169
+ excludedDomains
2170
+ allowedLinks
2171
+ excludedLinks
2172
+ allowedFiles
2173
+ excludedFiles
2174
+ allowContentDomain
2175
+ maximumLinks
2176
+ }
2177
+ jobs {
2178
+ connector {
2179
+ type
2180
+ enrichedTypes
2181
+ }
2182
+ }
2183
+ }
2184
+ actions {
2185
+ connector {
2186
+ type
2187
+ uri
2188
+ slack {
2189
+ token
2190
+ channel
2191
+ }
2192
+ }
2193
+ }
2194
+ }
2195
+ }
2196
+ }
2197
+ `;
2198
+ exports.UpdateWorkflow = (0, graphql_tag_1.default) `
2199
+ mutation UpdateWorkflow($workflow: WorkflowUpdateInput!) {
2200
+ updateWorkflow(workflow: $workflow) {
2201
+ id
2202
+ name
2203
+ state
2204
+ ingestion {
2205
+ if {
2206
+ types
2207
+ fileTypes
2208
+ }
2209
+ collections {
2210
+ id
2211
+ }
2212
+ }
2213
+ preparation {
2214
+ disableSmartCapture
2215
+ summarizations {
2216
+ type
2217
+ specification {
2218
+ id
2219
+ }
2220
+ tokens
2221
+ items
2222
+ }
2223
+ jobs {
2224
+ connector {
2225
+ type
2226
+ fileTypes
2227
+ azureDocument {
2228
+ model
2229
+ }
2230
+ deepgram {
2231
+ model
2232
+ key
2233
+ enableRedaction
2234
+ enableSpeakerDiarization
2235
+ }
2236
+ document {
2237
+ includeImages
2238
+ }
2239
+ email {
2240
+ includeAttachments
2241
+ }
2242
+ }
2243
+ }
2244
+ }
2245
+ extraction {
2246
+ jobs {
2247
+ connector {
2248
+ type
2249
+ contentTypes
2250
+ fileTypes
2251
+ extractedTypes
2252
+ azureText {
2253
+ confidenceThreshold
2254
+ enablePII
2255
+ }
2256
+ azureImage {
2257
+ confidenceThreshold
2258
+ }
2259
+ openAIImage {
2260
+ confidenceThreshold
2261
+ detailLevel
2262
+ }
2263
+ modelText {
2264
+ specification {
2265
+ id
2266
+ }
2267
+ }
2268
+ }
2269
+ }
2270
+ }
2271
+ enrichment {
2272
+ link {
2273
+ enableCrawling
2274
+ allowedDomains
2275
+ excludedDomains
2276
+ allowedLinks
2277
+ excludedLinks
2278
+ allowedFiles
2279
+ excludedFiles
2280
+ allowContentDomain
2281
+ maximumLinks
2282
+ }
2283
+ jobs {
2284
+ connector {
2285
+ type
2286
+ enrichedTypes
2287
+ }
2288
+ }
2289
+ }
2290
+ actions {
2291
+ connector {
2292
+ type
2293
+ uri
2294
+ slack {
2295
+ token
2296
+ channel
2297
+ }
2298
+ }
2299
+ }
2300
+ }
2301
+ }
2302
+ `;