graphlit-client 1.0.20241224001 → 1.0.20241224002
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
@@ -40,10 +40,11 @@ declare class Graphlit {
|
|
40
40
|
describeImage(prompt: string, uri: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.DescribeImageMutation>;
|
41
41
|
describeEncodedImage(prompt: string, mimeType: string, data: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.DescribeEncodedImageMutation>;
|
42
42
|
screenshotPage(uri: string, maximumHeight?: number, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], correlationId?: string): Promise<Types.ScreenshotPageMutation>;
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
ingestTextBatch(batch: [Types.TextContentInput], textType: Types.TextTypes, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestTextBatchMutation>;
|
44
|
+
ingestBatch(uris: [string], workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestBatchMutation>;
|
45
|
+
ingestUri(uri: string, name?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestUriMutation>;
|
46
|
+
ingestText(name: string, text: string, textType?: Types.TextTypes, uri?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestTextMutation>;
|
47
|
+
ingestEncodedFile(name: string, data: string, mimeType: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestEncodedFileMutation>;
|
47
48
|
updateContent(content: Types.ContentUpdateInput): Promise<Types.UpdateContentMutation>;
|
48
49
|
deleteContent(id: string): Promise<Types.DeleteContentMutation>;
|
49
50
|
deleteContents(): Promise<Types.DeleteContentsMutation>;
|
package/dist/client.js
CHANGED
@@ -258,24 +258,29 @@ class Graphlit {
|
|
258
258
|
return this.mutateAndCheckError(Documents.ScreenshotPage, { uri: uri, maximumHeight: maximumHeight, isSynchronous: isSynchronous, workflow: workflow, collections: collections, correlationId: correlationId });
|
259
259
|
});
|
260
260
|
}
|
261
|
-
|
261
|
+
ingestTextBatch(batch, textType, collections, observations, correlationId) {
|
262
262
|
return __awaiter(this, void 0, void 0, function* () {
|
263
|
-
return this.mutateAndCheckError(Documents.
|
263
|
+
return this.mutateAndCheckError(Documents.IngestTextBatch, { batch: batch, textType: textType, collections: collections, observations: observations, correlationId: correlationId });
|
264
264
|
});
|
265
265
|
}
|
266
|
-
|
266
|
+
ingestBatch(uris, workflow, collections, observations, correlationId) {
|
267
267
|
return __awaiter(this, void 0, void 0, function* () {
|
268
|
-
return this.mutateAndCheckError(Documents.
|
268
|
+
return this.mutateAndCheckError(Documents.IngestBatch, { uris: uris, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
|
269
269
|
});
|
270
270
|
}
|
271
|
-
|
271
|
+
ingestUri(uri, name, id, isSynchronous, workflow, collections, observations, correlationId) {
|
272
272
|
return __awaiter(this, void 0, void 0, function* () {
|
273
|
-
return this.mutateAndCheckError(Documents.
|
273
|
+
return this.mutateAndCheckError(Documents.IngestUri, { uri: uri, name: name, id: id, isSynchronous: isSynchronous, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
|
274
274
|
});
|
275
275
|
}
|
276
|
-
|
276
|
+
ingestText(name, text, textType, uri, id, isSynchronous, workflow, collections, observations, correlationId) {
|
277
277
|
return __awaiter(this, void 0, void 0, function* () {
|
278
|
-
return this.mutateAndCheckError(Documents.
|
278
|
+
return this.mutateAndCheckError(Documents.IngestText, { name: name, text: text, textType: textType, uri: uri, id: id, isSynchronous: isSynchronous, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
|
279
|
+
});
|
280
|
+
}
|
281
|
+
ingestEncodedFile(name, data, mimeType, id, isSynchronous, workflow, collections, observations, correlationId) {
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
283
|
+
return this.mutateAndCheckError(Documents.IngestEncodedFile, { name: name, data: data, mimeType: mimeType, id: id, isSynchronous: isSynchronous, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
|
279
284
|
});
|
280
285
|
}
|
281
286
|
updateContent(content) {
|
@@ -1092,11 +1092,12 @@ exports.GetContent = (0, graphql_tag_1.default) `
|
|
1092
1092
|
}
|
1093
1093
|
`;
|
1094
1094
|
exports.IngestBatch = (0, graphql_tag_1.default) `
|
1095
|
-
mutation IngestBatch($uris: [URL!]!, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
|
1095
|
+
mutation IngestBatch($uris: [URL!]!, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
|
1096
1096
|
ingestBatch(
|
1097
1097
|
uris: $uris
|
1098
1098
|
workflow: $workflow
|
1099
1099
|
collections: $collections
|
1100
|
+
observations: $observations
|
1100
1101
|
correlationId: $correlationId
|
1101
1102
|
) {
|
1102
1103
|
id
|
@@ -1142,7 +1143,7 @@ exports.IngestBatch = (0, graphql_tag_1.default) `
|
|
1142
1143
|
}
|
1143
1144
|
`;
|
1144
1145
|
exports.IngestEncodedFile = (0, graphql_tag_1.default) `
|
1145
|
-
mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
|
1146
|
+
mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
|
1146
1147
|
ingestEncodedFile(
|
1147
1148
|
name: $name
|
1148
1149
|
data: $data
|
@@ -1150,6 +1151,7 @@ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
|
|
1150
1151
|
id: $id
|
1151
1152
|
isSynchronous: $isSynchronous
|
1152
1153
|
collections: $collections
|
1154
|
+
observations: $observations
|
1153
1155
|
workflow: $workflow
|
1154
1156
|
correlationId: $correlationId
|
1155
1157
|
) {
|
@@ -1196,7 +1198,7 @@ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
|
|
1196
1198
|
}
|
1197
1199
|
`;
|
1198
1200
|
exports.IngestText = (0, graphql_tag_1.default) `
|
1199
|
-
mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
|
1201
|
+
mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
|
1200
1202
|
ingestText(
|
1201
1203
|
name: $name
|
1202
1204
|
text: $text
|
@@ -1206,6 +1208,7 @@ exports.IngestText = (0, graphql_tag_1.default) `
|
|
1206
1208
|
isSynchronous: $isSynchronous
|
1207
1209
|
workflow: $workflow
|
1208
1210
|
collections: $collections
|
1211
|
+
observations: $observations
|
1209
1212
|
correlationId: $correlationId
|
1210
1213
|
) {
|
1211
1214
|
id
|
@@ -1251,12 +1254,13 @@ exports.IngestText = (0, graphql_tag_1.default) `
|
|
1251
1254
|
}
|
1252
1255
|
`;
|
1253
1256
|
exports.IngestTextBatch = (0, graphql_tag_1.default) `
|
1254
|
-
mutation IngestTextBatch($batch: [TextContentInput!]!, $textType: TextTypes, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
|
1257
|
+
mutation IngestTextBatch($batch: [TextContentInput!]!, $textType: TextTypes, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
|
1255
1258
|
ingestTextBatch(
|
1256
1259
|
batch: $batch
|
1257
1260
|
workflow: $workflow
|
1258
1261
|
textType: $textType
|
1259
1262
|
collections: $collections
|
1263
|
+
observations: $observations
|
1260
1264
|
correlationId: $correlationId
|
1261
1265
|
) {
|
1262
1266
|
id
|
@@ -1302,13 +1306,14 @@ exports.IngestTextBatch = (0, graphql_tag_1.default) `
|
|
1302
1306
|
}
|
1303
1307
|
`;
|
1304
1308
|
exports.IngestUri = (0, graphql_tag_1.default) `
|
1305
|
-
mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) {
|
1309
|
+
mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
|
1306
1310
|
ingestUri(
|
1307
1311
|
name: $name
|
1308
1312
|
uri: $uri
|
1309
1313
|
id: $id
|
1310
1314
|
workflow: $workflow
|
1311
1315
|
collections: $collections
|
1316
|
+
observations: $observations
|
1312
1317
|
isSynchronous: $isSynchronous
|
1313
1318
|
correlationId: $correlationId
|
1314
1319
|
) {
|
@@ -13541,6 +13541,7 @@ export type IngestBatchMutationVariables = Exact<{
|
|
13541
13541
|
uris: Array<Scalars['URL']['input']> | Scalars['URL']['input'];
|
13542
13542
|
workflow?: InputMaybe<EntityReferenceInput>;
|
13543
13543
|
collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
13544
|
+
observations?: InputMaybe<Array<ObservationReferenceInput> | ObservationReferenceInput>;
|
13544
13545
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
13545
13546
|
}>;
|
13546
13547
|
export type IngestBatchMutation = {
|
@@ -13601,6 +13602,7 @@ export type IngestEncodedFileMutationVariables = Exact<{
|
|
13601
13602
|
id?: InputMaybe<Scalars['ID']['input']>;
|
13602
13603
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
13603
13604
|
collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
13605
|
+
observations?: InputMaybe<Array<ObservationReferenceInput> | ObservationReferenceInput>;
|
13604
13606
|
workflow?: InputMaybe<EntityReferenceInput>;
|
13605
13607
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
13606
13608
|
}>;
|
@@ -13664,6 +13666,7 @@ export type IngestTextMutationVariables = Exact<{
|
|
13664
13666
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
13665
13667
|
workflow?: InputMaybe<EntityReferenceInput>;
|
13666
13668
|
collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
13669
|
+
observations?: InputMaybe<Array<ObservationReferenceInput> | ObservationReferenceInput>;
|
13667
13670
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
13668
13671
|
}>;
|
13669
13672
|
export type IngestTextMutation = {
|
@@ -13722,6 +13725,7 @@ export type IngestTextBatchMutationVariables = Exact<{
|
|
13722
13725
|
textType?: InputMaybe<TextTypes>;
|
13723
13726
|
workflow?: InputMaybe<EntityReferenceInput>;
|
13724
13727
|
collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
13728
|
+
observations?: InputMaybe<Array<ObservationReferenceInput> | ObservationReferenceInput>;
|
13725
13729
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
13726
13730
|
}>;
|
13727
13731
|
export type IngestTextBatchMutation = {
|
@@ -13782,6 +13786,7 @@ export type IngestUriMutationVariables = Exact<{
|
|
13782
13786
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
13783
13787
|
workflow?: InputMaybe<EntityReferenceInput>;
|
13784
13788
|
collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
13789
|
+
observations?: InputMaybe<Array<ObservationReferenceInput> | ObservationReferenceInput>;
|
13785
13790
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
13786
13791
|
}>;
|
13787
13792
|
export type IngestUriMutation = {
|