graphlit-client 1.0.20251129003 → 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(
|
|
@@ -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'];
|
|
@@ -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) {
|