graphlit-client 1.0.20251129002 → 1.0.20251201001

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
@@ -168,6 +168,7 @@ declare class Graphlit {
168
168
  queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
169
169
  queryContentsGraph(filter?: Types.ContentFilter): Promise<Types.QueryContentsGraphQuery>;
170
170
  queryGraph(filter?: Types.GraphFilter, graph?: Types.GraphInput, correlationId?: string): Promise<Types.QueryGraphQuery>;
171
+ lookupEntity(filter: Types.EntityRelationshipsFilter, correlationId?: string): Promise<Types.LookupEntityQuery>;
171
172
  countContents(filter?: Types.ContentFilter): Promise<Types.CountContentsQuery>;
172
173
  isContentDone(id: string): Promise<Types.IsContentDoneQuery>;
173
174
  createConversation(conversation: Types.ConversationInput, correlationId?: string): Promise<Types.CreateConversationMutation>;
package/dist/client.js CHANGED
@@ -783,6 +783,12 @@ class Graphlit {
783
783
  correlationId: correlationId,
784
784
  });
785
785
  }
786
+ async lookupEntity(filter, correlationId) {
787
+ return this.queryAndCheckError(Documents.LookupEntity, {
788
+ filter: filter,
789
+ correlationId: correlationId,
790
+ });
791
+ }
786
792
  async countContents(filter) {
787
793
  return this.queryAndCheckError(Documents.CountContents, { filter: filter });
788
794
  }
@@ -53,6 +53,7 @@ export declare const IngestTextBatch: import("graphql").DocumentNode;
53
53
  export declare const IngestUri: import("graphql").DocumentNode;
54
54
  export declare const IsContentDone: import("graphql").DocumentNode;
55
55
  export declare const LookupContents: import("graphql").DocumentNode;
56
+ export declare const LookupEntity: import("graphql").DocumentNode;
56
57
  export declare const PublishContents: import("graphql").DocumentNode;
57
58
  export declare const PublishText: import("graphql").DocumentNode;
58
59
  export declare const QueryContents: import("graphql").DocumentNode;
@@ -2545,6 +2545,29 @@ export const LookupContents = gql `
2545
2545
  }
2546
2546
  }
2547
2547
  `;
2548
+ export const LookupEntity = gql `
2549
+ query LookupEntity($filter: EntityRelationshipsFilter!, $correlationId: String) {
2550
+ lookupEntity(filter: $filter, correlationId: $correlationId) {
2551
+ entity {
2552
+ id
2553
+ name
2554
+ type
2555
+ metadata
2556
+ }
2557
+ relationships {
2558
+ relation
2559
+ direction
2560
+ entity {
2561
+ id
2562
+ name
2563
+ type
2564
+ metadata
2565
+ }
2566
+ }
2567
+ totalCount
2568
+ }
2569
+ }
2570
+ `;
2548
2571
  export const PublishContents = gql `
2549
2572
  mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $includeDetails: Boolean, $isSynchronous: Boolean, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput) {
2550
2573
  publishContents(
@@ -8530,6 +8553,14 @@ export const QueryInvestmentsClusters = gql `
8530
8553
  currentPricePerShare
8531
8554
  discountPercent
8532
8555
  proRataRights
8556
+ investor {
8557
+ id
8558
+ name
8559
+ }
8560
+ organization {
8561
+ id
8562
+ name
8563
+ }
8533
8564
  }
8534
8565
  clusters {
8535
8566
  clusters {
@@ -8876,6 +8907,22 @@ export const QueryInvestmentFundsClusters = gql `
8876
8907
  vintage
8877
8908
  targetSize
8878
8909
  targetSizeCurrency
8910
+ organizations {
8911
+ id
8912
+ name
8913
+ }
8914
+ investments {
8915
+ id
8916
+ name
8917
+ }
8918
+ parentFund {
8919
+ id
8920
+ name
8921
+ }
8922
+ childFunds {
8923
+ id
8924
+ name
8925
+ }
8879
8926
  }
8880
8927
  clusters {
8881
8928
  clusters {
@@ -12053,6 +12100,42 @@ export const QueryOrganizationsClusters = gql `
12053
12100
  revenueCurrency
12054
12101
  investment
12055
12102
  investmentCurrency
12103
+ founders {
12104
+ id
12105
+ name
12106
+ }
12107
+ employees {
12108
+ id
12109
+ name
12110
+ }
12111
+ members {
12112
+ id
12113
+ name
12114
+ }
12115
+ parentOrganization {
12116
+ id
12117
+ name
12118
+ }
12119
+ memberOf {
12120
+ id
12121
+ name
12122
+ }
12123
+ subOrganizations {
12124
+ id
12125
+ name
12126
+ }
12127
+ locations {
12128
+ id
12129
+ name
12130
+ }
12131
+ investmentsReceived {
12132
+ id
12133
+ name
12134
+ }
12135
+ investorFunds {
12136
+ id
12137
+ name
12138
+ }
12056
12139
  }
12057
12140
  clusters {
12058
12141
  clusters {
@@ -12479,6 +12562,38 @@ export const QueryPersonsClusters = gql `
12479
12562
  title
12480
12563
  occupation
12481
12564
  education
12565
+ worksFor {
12566
+ id
12567
+ name
12568
+ }
12569
+ affiliation {
12570
+ id
12571
+ name
12572
+ }
12573
+ memberOf {
12574
+ id
12575
+ name
12576
+ }
12577
+ alumniOf {
12578
+ id
12579
+ name
12580
+ }
12581
+ birthPlace {
12582
+ id
12583
+ name
12584
+ }
12585
+ deathPlace {
12586
+ id
12587
+ name
12588
+ }
12589
+ homeLocation {
12590
+ id
12591
+ name
12592
+ }
12593
+ workLocation {
12594
+ id
12595
+ name
12596
+ }
12482
12597
  }
12483
12598
  clusters {
12484
12599
  clusters {
@@ -4151,6 +4151,39 @@ export type EntityReferenceInput = {
4151
4151
  /** The ID of the entity. */
4152
4152
  id: Scalars['ID']['input'];
4153
4153
  };
4154
+ /** Represents a relationship to another entity. */
4155
+ export type EntityRelationship = {
4156
+ __typename?: 'EntityRelationship';
4157
+ /** The relationship direction relative to the source entity. */
4158
+ direction: RelationshipDirections;
4159
+ /** The related entity. */
4160
+ entity: GraphNode;
4161
+ /** The relationship type (edge label). */
4162
+ relation: Scalars['String']['output'];
4163
+ };
4164
+ /** Filter for looking up entity relationships. */
4165
+ export type EntityRelationshipsFilter = {
4166
+ /** Disable project inheritance, only return user-scoped entities. Defaults to false. */
4167
+ disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
4168
+ /** The ID of the entity to lookup relationships for. */
4169
+ id: Scalars['ID']['input'];
4170
+ /** Whether to include full entity metadata (JSON-LD). Defaults to false. */
4171
+ includeMetadata?: InputMaybe<Scalars['Boolean']['input']>;
4172
+ /** Maximum number of relationships to return. Defaults to 100. */
4173
+ limit?: InputMaybe<Scalars['Int']['input']>;
4174
+ /** Filter by specific relationship types (edge labels). */
4175
+ relationshipTypes?: InputMaybe<Array<Scalars['String']['input']>>;
4176
+ };
4177
+ /** Represents the result of an entity relationship lookup. */
4178
+ export type EntityRelationshipsResult = {
4179
+ __typename?: 'EntityRelationshipsResult';
4180
+ /** The source entity. */
4181
+ entity?: Maybe<GraphNode>;
4182
+ /** The related entities with their relationship info. */
4183
+ relationships?: Maybe<Array<EntityRelationship>>;
4184
+ /** The total count of relationships returned. */
4185
+ totalCount: Scalars['Int']['output'];
4186
+ };
4154
4187
  /** Represents the entity resolution strategy for automatic duplicate detection and merging. */
4155
4188
  export type EntityResolutionStrategy = {
4156
4189
  __typename?: 'EntityResolutionStrategy';
@@ -14547,6 +14580,8 @@ export type Query = {
14547
14580
  lookupContents?: Maybe<LookupContentsResults>;
14548
14581
  /** Lookup credit usage given tenant correlation identifier. */
14549
14582
  lookupCredits?: Maybe<ProjectCredits>;
14583
+ /** Lookup entity relationships via direct Gremlin traversal. */
14584
+ lookupEntity?: Maybe<EntityRelationshipsResult>;
14550
14585
  /** Lookup usage records given tenant correlation identifier. */
14551
14586
  lookupUsage?: Maybe<Array<Maybe<ProjectUsageRecord>>>;
14552
14587
  /** Enumerates the web pages at or beneath the provided URL using web sitemap. */
@@ -14964,6 +14999,10 @@ export type QueryLookupCreditsArgs = {
14964
14999
  duration?: InputMaybe<Scalars['TimeSpan']['input']>;
14965
15000
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
14966
15001
  };
15002
+ export type QueryLookupEntityArgs = {
15003
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15004
+ filter: EntityRelationshipsFilter;
15005
+ };
14967
15006
  export type QueryLookupUsageArgs = {
14968
15007
  correlationId: Scalars['String']['input'];
14969
15008
  duration?: InputMaybe<Scalars['TimeSpan']['input']>;
@@ -15412,6 +15451,13 @@ export declare enum RegexSourceTypes {
15412
15451
  /** Content metadata */
15413
15452
  Metadata = "METADATA"
15414
15453
  }
15454
+ /** Relationship direction */
15455
+ export declare enum RelationshipDirections {
15456
+ /** Incoming relationship (edge points to this entity) */
15457
+ Incoming = "INCOMING",
15458
+ /** Outgoing relationship (edge points from this entity) */
15459
+ Outgoing = "OUTGOING"
15460
+ }
15415
15461
  /** Represents a rendition. */
15416
15462
  export type Rendition = {
15417
15463
  __typename?: 'Rendition';
@@ -20868,6 +20914,36 @@ export type LookupContentsQuery = {
20868
20914
  } | null> | null;
20869
20915
  } | null;
20870
20916
  };
20917
+ export type LookupEntityQueryVariables = Exact<{
20918
+ filter: EntityRelationshipsFilter;
20919
+ correlationId?: InputMaybe<Scalars['String']['input']>;
20920
+ }>;
20921
+ export type LookupEntityQuery = {
20922
+ __typename?: 'Query';
20923
+ lookupEntity?: {
20924
+ __typename?: 'EntityRelationshipsResult';
20925
+ totalCount: number;
20926
+ entity?: {
20927
+ __typename?: 'GraphNode';
20928
+ id: string;
20929
+ name: string;
20930
+ type: EntityTypes;
20931
+ metadata?: string | null;
20932
+ } | null;
20933
+ relationships?: Array<{
20934
+ __typename?: 'EntityRelationship';
20935
+ relation: string;
20936
+ direction: RelationshipDirections;
20937
+ entity: {
20938
+ __typename?: 'GraphNode';
20939
+ id: string;
20940
+ name: string;
20941
+ type: EntityTypes;
20942
+ metadata?: string | null;
20943
+ };
20944
+ }> | null;
20945
+ } | null;
20946
+ };
20871
20947
  export type PublishContentsMutationVariables = Exact<{
20872
20948
  summaryPrompt?: InputMaybe<Scalars['String']['input']>;
20873
20949
  publishPrompt: Scalars['String']['input'];
@@ -27689,6 +27765,16 @@ export type QueryInvestmentsClustersQuery = {
27689
27765
  h3r14?: string | null;
27690
27766
  h3r15?: string | null;
27691
27767
  } | null;
27768
+ investor?: {
27769
+ __typename?: 'InvestmentFund';
27770
+ id: string;
27771
+ name: string;
27772
+ } | null;
27773
+ organization?: {
27774
+ __typename?: 'Organization';
27775
+ id: string;
27776
+ name: string;
27777
+ } | null;
27692
27778
  } | null> | null;
27693
27779
  clusters?: {
27694
27780
  __typename?: 'EntityClusters';
@@ -28102,6 +28188,26 @@ export type QueryInvestmentFundsClustersQuery = {
28102
28188
  h3r14?: string | null;
28103
28189
  h3r15?: string | null;
28104
28190
  } | null;
28191
+ organizations?: Array<{
28192
+ __typename?: 'Organization';
28193
+ id: string;
28194
+ name: string;
28195
+ } | null> | null;
28196
+ investments?: Array<{
28197
+ __typename?: 'Investment';
28198
+ id: string;
28199
+ name: string;
28200
+ } | null> | null;
28201
+ parentFund?: {
28202
+ __typename?: 'InvestmentFund';
28203
+ id: string;
28204
+ name: string;
28205
+ } | null;
28206
+ childFunds?: Array<{
28207
+ __typename?: 'InvestmentFund';
28208
+ id: string;
28209
+ name: string;
28210
+ } | null> | null;
28105
28211
  } | null> | null;
28106
28212
  clusters?: {
28107
28213
  __typename?: 'EntityClusters';
@@ -31969,6 +32075,51 @@ export type QueryOrganizationsClustersQuery = {
31969
32075
  country?: string | null;
31970
32076
  postalCode?: string | null;
31971
32077
  } | null;
32078
+ founders?: Array<{
32079
+ __typename?: 'Person';
32080
+ id: string;
32081
+ name: string;
32082
+ } | null> | null;
32083
+ employees?: Array<{
32084
+ __typename?: 'Person';
32085
+ id: string;
32086
+ name: string;
32087
+ } | null> | null;
32088
+ members?: Array<{
32089
+ __typename?: 'Person';
32090
+ id: string;
32091
+ name: string;
32092
+ } | null> | null;
32093
+ parentOrganization?: {
32094
+ __typename?: 'Organization';
32095
+ id: string;
32096
+ name: string;
32097
+ } | null;
32098
+ memberOf?: Array<{
32099
+ __typename?: 'Organization';
32100
+ id: string;
32101
+ name: string;
32102
+ } | null> | null;
32103
+ subOrganizations?: Array<{
32104
+ __typename?: 'Organization';
32105
+ id: string;
32106
+ name: string;
32107
+ } | null> | null;
32108
+ locations?: Array<{
32109
+ __typename?: 'Place';
32110
+ id: string;
32111
+ name: string;
32112
+ } | null> | null;
32113
+ investmentsReceived?: Array<{
32114
+ __typename?: 'Investment';
32115
+ id: string;
32116
+ name: string;
32117
+ } | null> | null;
32118
+ investorFunds?: Array<{
32119
+ __typename?: 'InvestmentFund';
32120
+ id: string;
32121
+ name: string;
32122
+ } | null> | null;
31972
32123
  } | null> | null;
31973
32124
  clusters?: {
31974
32125
  __typename?: 'EntityClusters';
@@ -32482,6 +32633,46 @@ export type QueryPersonsClustersQuery = {
32482
32633
  country?: string | null;
32483
32634
  postalCode?: string | null;
32484
32635
  } | null;
32636
+ worksFor?: Array<{
32637
+ __typename?: 'Organization';
32638
+ id: string;
32639
+ name: string;
32640
+ } | null> | null;
32641
+ affiliation?: Array<{
32642
+ __typename?: 'Organization';
32643
+ id: string;
32644
+ name: string;
32645
+ } | null> | null;
32646
+ memberOf?: Array<{
32647
+ __typename?: 'Organization';
32648
+ id: string;
32649
+ name: string;
32650
+ } | null> | null;
32651
+ alumniOf?: Array<{
32652
+ __typename?: 'Organization';
32653
+ id: string;
32654
+ name: string;
32655
+ } | null> | null;
32656
+ birthPlace?: {
32657
+ __typename?: 'Place';
32658
+ id: string;
32659
+ name: string;
32660
+ } | null;
32661
+ deathPlace?: {
32662
+ __typename?: 'Place';
32663
+ id: string;
32664
+ name: string;
32665
+ } | null;
32666
+ homeLocation?: Array<{
32667
+ __typename?: 'Place';
32668
+ id: string;
32669
+ name: string;
32670
+ } | null> | null;
32671
+ workLocation?: Array<{
32672
+ __typename?: 'Place';
32673
+ id: string;
32674
+ name: string;
32675
+ } | null> | null;
32485
32676
  } | null> | null;
32486
32677
  clusters?: {
32487
32678
  __typename?: 'EntityClusters';
@@ -2130,6 +2130,14 @@ export var RegexSourceTypes;
2130
2130
  /** Content metadata */
2131
2131
  RegexSourceTypes["Metadata"] = "METADATA";
2132
2132
  })(RegexSourceTypes || (RegexSourceTypes = {}));
2133
+ /** Relationship direction */
2134
+ export var RelationshipDirections;
2135
+ (function (RelationshipDirections) {
2136
+ /** Incoming relationship (edge points to this entity) */
2137
+ RelationshipDirections["Incoming"] = "INCOMING";
2138
+ /** Outgoing relationship (edge points from this entity) */
2139
+ RelationshipDirections["Outgoing"] = "OUTGOING";
2140
+ })(RelationshipDirections || (RelationshipDirections = {}));
2133
2141
  /** Rendition type */
2134
2142
  export var RenditionTypes;
2135
2143
  (function (RenditionTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20251129002",
3
+ "version": "1.0.20251201001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",