graphlit-client 1.0.20250622001 → 1.0.20250622003

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.
package/dist/client.d.ts CHANGED
@@ -154,6 +154,7 @@ declare class Graphlit {
154
154
  getContent(id: string): Promise<Types.GetContentQuery>;
155
155
  lookupContents(ids: string[]): Promise<Types.LookupContentsResults>;
156
156
  queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
157
+ queryContentsObservations(filter?: Types.ContentFilter): Promise<Types.QueryContentsObservationsQuery>;
157
158
  queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
158
159
  queryContentsGraph(filter?: Types.ContentFilter): Promise<Types.QueryContentsGraphQuery>;
159
160
  countContents(filter?: Types.ContentFilter): Promise<Types.CountContentsQuery>;
package/dist/client.js CHANGED
@@ -677,6 +677,9 @@ class Graphlit {
677
677
  async queryContents(filter) {
678
678
  return this.queryAndCheckError(Documents.QueryContents, { filter: filter });
679
679
  }
680
+ async queryContentsObservations(filter) {
681
+ return this.queryAndCheckError(Documents.QueryContents, { filter: filter });
682
+ }
680
683
  async queryContentsFacets(filter) {
681
684
  return this.queryAndCheckError(Documents.QueryContentsFacets, { filter: filter });
682
685
  }
@@ -50,6 +50,7 @@ export declare const PublishText: import("graphql").DocumentNode;
50
50
  export declare const QueryContents: import("graphql").DocumentNode;
51
51
  export declare const QueryContentsFacets: import("graphql").DocumentNode;
52
52
  export declare const QueryContentsGraph: import("graphql").DocumentNode;
53
+ export declare const QueryContentsObservations: import("graphql").DocumentNode;
53
54
  export declare const ScreenshotPage: import("graphql").DocumentNode;
54
55
  export declare const SummarizeContents: import("graphql").DocumentNode;
55
56
  export declare const SummarizeText: import("graphql").DocumentNode;
@@ -2391,6 +2391,259 @@ export const QueryContentsGraph = gql `
2391
2391
  }
2392
2392
  }
2393
2393
  `;
2394
+ export const QueryContentsObservations = gql `
2395
+ query QueryContentsObservations($filter: ContentFilter, $correlationId: String) {
2396
+ contents(filter: $filter, correlationId: $correlationId) {
2397
+ results {
2398
+ id
2399
+ name
2400
+ creationDate
2401
+ relevance
2402
+ owner {
2403
+ id
2404
+ }
2405
+ state
2406
+ originalDate
2407
+ finishedDate
2408
+ workflowDuration
2409
+ uri
2410
+ description
2411
+ identifier
2412
+ address {
2413
+ streetAddress
2414
+ city
2415
+ region
2416
+ country
2417
+ postalCode
2418
+ }
2419
+ location {
2420
+ latitude
2421
+ longitude
2422
+ }
2423
+ type
2424
+ fileType
2425
+ mimeType
2426
+ format
2427
+ formatName
2428
+ fileExtension
2429
+ fileName
2430
+ fileSize
2431
+ masterUri
2432
+ imageUri
2433
+ textUri
2434
+ audioUri
2435
+ transcriptUri
2436
+ summary
2437
+ customSummary
2438
+ keywords
2439
+ bullets
2440
+ headlines
2441
+ posts
2442
+ chapters
2443
+ questions
2444
+ quotes
2445
+ video {
2446
+ width
2447
+ height
2448
+ duration
2449
+ make
2450
+ model
2451
+ software
2452
+ title
2453
+ description
2454
+ keywords
2455
+ author
2456
+ }
2457
+ audio {
2458
+ keywords
2459
+ author
2460
+ series
2461
+ episode
2462
+ episodeType
2463
+ season
2464
+ publisher
2465
+ copyright
2466
+ genre
2467
+ title
2468
+ description
2469
+ bitrate
2470
+ channels
2471
+ sampleRate
2472
+ bitsPerSample
2473
+ duration
2474
+ }
2475
+ image {
2476
+ width
2477
+ height
2478
+ resolutionX
2479
+ resolutionY
2480
+ bitsPerComponent
2481
+ components
2482
+ projectionType
2483
+ orientation
2484
+ description
2485
+ make
2486
+ model
2487
+ software
2488
+ lens
2489
+ focalLength
2490
+ exposureTime
2491
+ fNumber
2492
+ iso
2493
+ heading
2494
+ pitch
2495
+ }
2496
+ document {
2497
+ title
2498
+ subject
2499
+ summary
2500
+ author
2501
+ publisher
2502
+ description
2503
+ keywords
2504
+ pageCount
2505
+ worksheetCount
2506
+ slideCount
2507
+ wordCount
2508
+ lineCount
2509
+ paragraphCount
2510
+ isEncrypted
2511
+ hasDigitalSignature
2512
+ }
2513
+ email {
2514
+ identifier
2515
+ threadIdentifier
2516
+ subject
2517
+ labels
2518
+ sensitivity
2519
+ priority
2520
+ importance
2521
+ from {
2522
+ name
2523
+ email
2524
+ givenName
2525
+ familyName
2526
+ }
2527
+ to {
2528
+ name
2529
+ email
2530
+ givenName
2531
+ familyName
2532
+ }
2533
+ cc {
2534
+ name
2535
+ email
2536
+ givenName
2537
+ familyName
2538
+ }
2539
+ bcc {
2540
+ name
2541
+ email
2542
+ givenName
2543
+ familyName
2544
+ }
2545
+ }
2546
+ issue {
2547
+ identifier
2548
+ title
2549
+ project
2550
+ team
2551
+ status
2552
+ priority
2553
+ type
2554
+ labels
2555
+ }
2556
+ package {
2557
+ fileCount
2558
+ folderCount
2559
+ isEncrypted
2560
+ }
2561
+ language {
2562
+ languages
2563
+ }
2564
+ feed {
2565
+ id
2566
+ name
2567
+ }
2568
+ links {
2569
+ uri
2570
+ linkType
2571
+ }
2572
+ workflow {
2573
+ id
2574
+ name
2575
+ }
2576
+ pages {
2577
+ index
2578
+ text
2579
+ relevance
2580
+ images {
2581
+ id
2582
+ mimeType
2583
+ data
2584
+ left
2585
+ right
2586
+ top
2587
+ bottom
2588
+ }
2589
+ chunks {
2590
+ index
2591
+ pageIndex
2592
+ rowIndex
2593
+ columnIndex
2594
+ confidence
2595
+ text
2596
+ role
2597
+ language
2598
+ relevance
2599
+ }
2600
+ }
2601
+ segments {
2602
+ startTime
2603
+ endTime
2604
+ text
2605
+ relevance
2606
+ }
2607
+ frames {
2608
+ index
2609
+ description
2610
+ text
2611
+ relevance
2612
+ }
2613
+ error
2614
+ markdown
2615
+ observations {
2616
+ id
2617
+ type
2618
+ observable {
2619
+ id
2620
+ name
2621
+ }
2622
+ related {
2623
+ id
2624
+ name
2625
+ }
2626
+ relatedType
2627
+ relation
2628
+ occurrences {
2629
+ type
2630
+ confidence
2631
+ startTime
2632
+ endTime
2633
+ pageIndex
2634
+ boundingBox {
2635
+ left
2636
+ top
2637
+ width
2638
+ height
2639
+ }
2640
+ }
2641
+ state
2642
+ }
2643
+ }
2644
+ }
2645
+ }
2646
+ `;
2394
2647
  export const ScreenshotPage = gql `
2395
2648
  mutation ScreenshotPage($uri: URL!, $maximumHeight: Int, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
2396
2649
  screenshotPage(
@@ -16736,6 +16736,292 @@ export type QueryContentsGraphQuery = {
16736
16736
  } | null;
16737
16737
  } | null;
16738
16738
  };
16739
+ export type QueryContentsObservationsQueryVariables = Exact<{
16740
+ filter?: InputMaybe<ContentFilter>;
16741
+ correlationId?: InputMaybe<Scalars['String']['input']>;
16742
+ }>;
16743
+ export type QueryContentsObservationsQuery = {
16744
+ __typename?: 'Query';
16745
+ contents?: {
16746
+ __typename?: 'ContentResults';
16747
+ results?: Array<{
16748
+ __typename?: 'Content';
16749
+ id: string;
16750
+ name: string;
16751
+ creationDate: any;
16752
+ relevance?: number | null;
16753
+ state: EntityState;
16754
+ originalDate?: any | null;
16755
+ finishedDate?: any | null;
16756
+ workflowDuration?: any | null;
16757
+ uri?: any | null;
16758
+ description?: string | null;
16759
+ identifier?: string | null;
16760
+ type?: ContentTypes | null;
16761
+ fileType?: FileTypes | null;
16762
+ mimeType?: string | null;
16763
+ format?: string | null;
16764
+ formatName?: string | null;
16765
+ fileExtension?: string | null;
16766
+ fileName?: string | null;
16767
+ fileSize?: any | null;
16768
+ masterUri?: any | null;
16769
+ imageUri?: any | null;
16770
+ textUri?: any | null;
16771
+ audioUri?: any | null;
16772
+ transcriptUri?: any | null;
16773
+ summary?: string | null;
16774
+ customSummary?: string | null;
16775
+ keywords?: Array<string> | null;
16776
+ bullets?: Array<string> | null;
16777
+ headlines?: Array<string> | null;
16778
+ posts?: Array<string> | null;
16779
+ chapters?: Array<string> | null;
16780
+ questions?: Array<string> | null;
16781
+ quotes?: Array<string> | null;
16782
+ error?: string | null;
16783
+ markdown?: string | null;
16784
+ owner: {
16785
+ __typename?: 'Owner';
16786
+ id: string;
16787
+ };
16788
+ address?: {
16789
+ __typename?: 'Address';
16790
+ streetAddress?: string | null;
16791
+ city?: string | null;
16792
+ region?: string | null;
16793
+ country?: string | null;
16794
+ postalCode?: string | null;
16795
+ } | null;
16796
+ location?: {
16797
+ __typename?: 'Point';
16798
+ latitude?: number | null;
16799
+ longitude?: number | null;
16800
+ } | null;
16801
+ video?: {
16802
+ __typename?: 'VideoMetadata';
16803
+ width?: number | null;
16804
+ height?: number | null;
16805
+ duration?: any | null;
16806
+ make?: string | null;
16807
+ model?: string | null;
16808
+ software?: string | null;
16809
+ title?: string | null;
16810
+ description?: string | null;
16811
+ keywords?: Array<string | null> | null;
16812
+ author?: string | null;
16813
+ } | null;
16814
+ audio?: {
16815
+ __typename?: 'AudioMetadata';
16816
+ keywords?: Array<string | null> | null;
16817
+ author?: string | null;
16818
+ series?: string | null;
16819
+ episode?: string | null;
16820
+ episodeType?: string | null;
16821
+ season?: string | null;
16822
+ publisher?: string | null;
16823
+ copyright?: string | null;
16824
+ genre?: string | null;
16825
+ title?: string | null;
16826
+ description?: string | null;
16827
+ bitrate?: number | null;
16828
+ channels?: number | null;
16829
+ sampleRate?: number | null;
16830
+ bitsPerSample?: number | null;
16831
+ duration?: any | null;
16832
+ } | null;
16833
+ image?: {
16834
+ __typename?: 'ImageMetadata';
16835
+ width?: number | null;
16836
+ height?: number | null;
16837
+ resolutionX?: number | null;
16838
+ resolutionY?: number | null;
16839
+ bitsPerComponent?: number | null;
16840
+ components?: number | null;
16841
+ projectionType?: ImageProjectionTypes | null;
16842
+ orientation?: OrientationTypes | null;
16843
+ description?: string | null;
16844
+ make?: string | null;
16845
+ model?: string | null;
16846
+ software?: string | null;
16847
+ lens?: string | null;
16848
+ focalLength?: number | null;
16849
+ exposureTime?: string | null;
16850
+ fNumber?: string | null;
16851
+ iso?: string | null;
16852
+ heading?: number | null;
16853
+ pitch?: number | null;
16854
+ } | null;
16855
+ document?: {
16856
+ __typename?: 'DocumentMetadata';
16857
+ title?: string | null;
16858
+ subject?: string | null;
16859
+ summary?: string | null;
16860
+ author?: string | null;
16861
+ publisher?: string | null;
16862
+ description?: string | null;
16863
+ keywords?: Array<string | null> | null;
16864
+ pageCount?: number | null;
16865
+ worksheetCount?: number | null;
16866
+ slideCount?: number | null;
16867
+ wordCount?: number | null;
16868
+ lineCount?: number | null;
16869
+ paragraphCount?: number | null;
16870
+ isEncrypted?: boolean | null;
16871
+ hasDigitalSignature?: boolean | null;
16872
+ } | null;
16873
+ email?: {
16874
+ __typename?: 'EmailMetadata';
16875
+ identifier?: string | null;
16876
+ threadIdentifier?: string | null;
16877
+ subject?: string | null;
16878
+ labels?: Array<string | null> | null;
16879
+ sensitivity?: MailSensitivity | null;
16880
+ priority?: MailPriority | null;
16881
+ importance?: MailImportance | null;
16882
+ from?: Array<{
16883
+ __typename?: 'PersonReference';
16884
+ name?: string | null;
16885
+ email?: string | null;
16886
+ givenName?: string | null;
16887
+ familyName?: string | null;
16888
+ } | null> | null;
16889
+ to?: Array<{
16890
+ __typename?: 'PersonReference';
16891
+ name?: string | null;
16892
+ email?: string | null;
16893
+ givenName?: string | null;
16894
+ familyName?: string | null;
16895
+ } | null> | null;
16896
+ cc?: Array<{
16897
+ __typename?: 'PersonReference';
16898
+ name?: string | null;
16899
+ email?: string | null;
16900
+ givenName?: string | null;
16901
+ familyName?: string | null;
16902
+ } | null> | null;
16903
+ bcc?: Array<{
16904
+ __typename?: 'PersonReference';
16905
+ name?: string | null;
16906
+ email?: string | null;
16907
+ givenName?: string | null;
16908
+ familyName?: string | null;
16909
+ } | null> | null;
16910
+ } | null;
16911
+ issue?: {
16912
+ __typename?: 'IssueMetadata';
16913
+ identifier?: string | null;
16914
+ title?: string | null;
16915
+ project?: string | null;
16916
+ team?: string | null;
16917
+ status?: string | null;
16918
+ priority?: string | null;
16919
+ type?: string | null;
16920
+ labels?: Array<string | null> | null;
16921
+ } | null;
16922
+ package?: {
16923
+ __typename?: 'PackageMetadata';
16924
+ fileCount?: number | null;
16925
+ folderCount?: number | null;
16926
+ isEncrypted?: boolean | null;
16927
+ } | null;
16928
+ language?: {
16929
+ __typename?: 'LanguageMetadata';
16930
+ languages?: Array<string | null> | null;
16931
+ } | null;
16932
+ feed?: {
16933
+ __typename?: 'Feed';
16934
+ id: string;
16935
+ name: string;
16936
+ } | null;
16937
+ links?: Array<{
16938
+ __typename?: 'LinkReference';
16939
+ uri?: any | null;
16940
+ linkType?: LinkTypes | null;
16941
+ }> | null;
16942
+ workflow?: {
16943
+ __typename?: 'Workflow';
16944
+ id: string;
16945
+ name: string;
16946
+ } | null;
16947
+ pages?: Array<{
16948
+ __typename?: 'TextPage';
16949
+ index?: number | null;
16950
+ text?: string | null;
16951
+ relevance?: number | null;
16952
+ images?: Array<{
16953
+ __typename?: 'ImageChunk';
16954
+ id?: string | null;
16955
+ mimeType?: string | null;
16956
+ data?: string | null;
16957
+ left?: number | null;
16958
+ right?: number | null;
16959
+ top?: number | null;
16960
+ bottom?: number | null;
16961
+ } | null> | null;
16962
+ chunks?: Array<{
16963
+ __typename?: 'TextChunk';
16964
+ index?: number | null;
16965
+ pageIndex?: number | null;
16966
+ rowIndex?: number | null;
16967
+ columnIndex?: number | null;
16968
+ confidence?: number | null;
16969
+ text?: string | null;
16970
+ role?: TextRoles | null;
16971
+ language?: string | null;
16972
+ relevance?: number | null;
16973
+ } | null> | null;
16974
+ }> | null;
16975
+ segments?: Array<{
16976
+ __typename?: 'TextSegment';
16977
+ startTime?: any | null;
16978
+ endTime?: any | null;
16979
+ text?: string | null;
16980
+ relevance?: number | null;
16981
+ }> | null;
16982
+ frames?: Array<{
16983
+ __typename?: 'TextFrame';
16984
+ index?: number | null;
16985
+ description?: string | null;
16986
+ text?: string | null;
16987
+ relevance?: number | null;
16988
+ }> | null;
16989
+ observations?: Array<{
16990
+ __typename?: 'Observation';
16991
+ id: string;
16992
+ type: ObservableTypes;
16993
+ relatedType?: ObservableTypes | null;
16994
+ relation?: string | null;
16995
+ state: EntityState;
16996
+ observable: {
16997
+ __typename?: 'NamedEntityReference';
16998
+ id: string;
16999
+ name?: string | null;
17000
+ };
17001
+ related?: {
17002
+ __typename?: 'NamedEntityReference';
17003
+ id: string;
17004
+ name?: string | null;
17005
+ } | null;
17006
+ occurrences?: Array<{
17007
+ __typename?: 'ObservationOccurrence';
17008
+ type?: OccurrenceTypes | null;
17009
+ confidence?: number | null;
17010
+ startTime?: any | null;
17011
+ endTime?: any | null;
17012
+ pageIndex?: number | null;
17013
+ boundingBox?: {
17014
+ __typename?: 'BoundingBox';
17015
+ left?: number | null;
17016
+ top?: number | null;
17017
+ width?: number | null;
17018
+ height?: number | null;
17019
+ } | null;
17020
+ } | null> | null;
17021
+ } | null> | null;
17022
+ } | null> | null;
17023
+ } | null;
17024
+ };
16739
17025
  export type ScreenshotPageMutationVariables = Exact<{
16740
17026
  uri: Scalars['URL']['input'];
16741
17027
  maximumHeight?: InputMaybe<Scalars['Int']['input']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250622001",
3
+ "version": "1.0.20250622003",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",