graphlit-client 1.0.20250519001 → 1.0.20250522001
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
@@ -30,6 +30,7 @@ declare class Graphlit {
|
|
30
30
|
disableAlert(id: string): Promise<Types.DisableAlertMutation>;
|
31
31
|
getAlert(id: string): Promise<Types.GetAlertQuery>;
|
32
32
|
queryAlerts(filter?: Types.AlertFilter): Promise<Types.QueryAlertsQuery>;
|
33
|
+
countAlerts(filter?: Types.AlertFilter): Promise<Types.CountAlertsQuery>;
|
33
34
|
createCollection(collection: Types.CollectionInput): Promise<Types.CreateCollectionMutation>;
|
34
35
|
updateCollection(collection: Types.CollectionUpdateInput): Promise<Types.UpdateCollectionMutation>;
|
35
36
|
deleteCollection(id: string): Promise<Types.DeleteCollectionMutation>;
|
@@ -39,6 +40,7 @@ declare class Graphlit {
|
|
39
40
|
removeContentsFromCollection(contents: Types.EntityReferenceInput[], collection: Types.EntityReferenceInput): Promise<Types.RemoveContentsFromCollectionMutation>;
|
40
41
|
getCollection(id: string): Promise<Types.GetCollectionQuery>;
|
41
42
|
queryCollections(filter?: Types.CollectionFilter): Promise<Types.QueryCollectionsQuery>;
|
43
|
+
countCollections(filter?: Types.CollectionFilter): Promise<Types.CountCollectionsQuery>;
|
42
44
|
describeImage(prompt: string, uri: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.DescribeImageMutation>;
|
43
45
|
describeEncodedImage(prompt: string, mimeType: string, data: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.DescribeEncodedImageMutation>;
|
44
46
|
screenshotPage(uri: string, maximumHeight?: number, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], correlationId?: string): Promise<Types.ScreenshotPageMutation>;
|
@@ -62,6 +64,7 @@ declare class Graphlit {
|
|
62
64
|
queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
|
63
65
|
queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
|
64
66
|
queryContentsGraph(filter?: Types.ContentFilter): Promise<Types.QueryContentsGraphQuery>;
|
67
|
+
countContents(filter?: Types.ContentFilter): Promise<Types.CountContentsQuery>;
|
65
68
|
isContentDone(id: string): Promise<Types.IsContentDoneQuery>;
|
66
69
|
createConversation(conversation: Types.ConversationInput, correlationId?: string): Promise<Types.CreateConversationMutation>;
|
67
70
|
updateConversation(conversation: Types.ConversationUpdateInput): Promise<Types.UpdateConversationMutation>;
|
@@ -72,6 +75,7 @@ declare class Graphlit {
|
|
72
75
|
closeConversation(id: string): Promise<Types.CloseConversationMutation>;
|
73
76
|
getConversation(id: string): Promise<Types.GetConversationQuery>;
|
74
77
|
queryConversations(filter?: Types.ConversationFilter): Promise<Types.QueryConversationsQuery>;
|
78
|
+
countConversations(filter?: Types.ConversationFilter): Promise<Types.CountConversationsQuery>;
|
75
79
|
reviseImage(prompt: string, uri: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseImageMutation>;
|
76
80
|
reviseEncodedImage(prompt: string, mimeType: string, data: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseEncodedImageMutation>;
|
77
81
|
reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
|
@@ -103,6 +107,7 @@ declare class Graphlit {
|
|
103
107
|
disableFeed(id: string): Promise<Types.DeleteFeedMutation>;
|
104
108
|
getFeed(id: string): Promise<Types.GetFeedQuery>;
|
105
109
|
queryFeeds(filter?: Types.FeedFilter): Promise<Types.QueryFeedsQuery>;
|
110
|
+
countFeeds(filter?: Types.FeedFilter): Promise<Types.CountFeedsQuery>;
|
106
111
|
feedExists(filter?: Types.FeedFilter): Promise<Types.FeedExistsQuery>;
|
107
112
|
isFeedDone(id: string): Promise<Types.IsFeedDoneQuery>;
|
108
113
|
promptSpecifications(prompt: string, ids: [string]): Promise<Types.PromptSpecificationsMutation>;
|
@@ -114,6 +119,7 @@ declare class Graphlit {
|
|
114
119
|
deleteAllSpecifications(filter?: Types.SpecificationFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllSpecificationsMutation>;
|
115
120
|
getSpecification(id: string): Promise<Types.GetSpecificationQuery>;
|
116
121
|
querySpecifications(filter?: Types.SpecificationFilter): Promise<Types.QuerySpecificationsQuery>;
|
122
|
+
countSpecifications(filter?: Types.SpecificationFilter): Promise<Types.CountSpecificationsQuery>;
|
117
123
|
specificationExists(filter?: Types.SpecificationFilter): Promise<Types.SpecificationExistsQuery>;
|
118
124
|
queryModels(filter?: Types.ModelFilter): Promise<Types.QueryModelsQuery>;
|
119
125
|
createWorkflow(workflow: Types.WorkflowInput): Promise<Types.CreateWorkflowMutation>;
|
@@ -124,12 +130,14 @@ declare class Graphlit {
|
|
124
130
|
deleteAllWorkflows(filter?: Types.WorkflowFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllWorkflowsMutation>;
|
125
131
|
getWorkflow(id: string): Promise<Types.GetWorkflowQuery>;
|
126
132
|
queryWorkflows(filter?: Types.WorkflowFilter): Promise<Types.QueryWorkflowsQuery>;
|
133
|
+
countWorkflows(filter?: Types.WorkflowFilter): Promise<Types.CountWorkflowsQuery>;
|
127
134
|
workflowExists(filter?: Types.WorkflowFilter): Promise<Types.WorkflowExistsQuery>;
|
128
135
|
createUser(user: Types.UserInput): Promise<Types.CreateUserMutation>;
|
129
136
|
updateUser(user: Types.UserUpdateInput): Promise<Types.UpdateUserMutation>;
|
130
137
|
deleteUser(id: string): Promise<Types.DeleteUserMutation>;
|
131
138
|
getUser(): Promise<Types.GetUserQuery>;
|
132
139
|
queryUsers(filter?: Types.UserFilter): Promise<Types.QueryUsersQuery>;
|
140
|
+
countUsers(filter?: Types.UserFilter): Promise<Types.CountUsersQuery>;
|
133
141
|
enableUser(id: string): Promise<Types.EnableUserMutation>;
|
134
142
|
disableUser(id: string): Promise<Types.DeleteUserMutation>;
|
135
143
|
createCategory(category: Types.CategoryInput): Promise<Types.CreateCategoryMutation>;
|
package/dist/client.js
CHANGED
@@ -218,6 +218,11 @@ class Graphlit {
|
|
218
218
|
return this.queryAndCheckError(Documents.QueryAlerts, { filter: filter });
|
219
219
|
});
|
220
220
|
}
|
221
|
+
countAlerts(filter) {
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
223
|
+
return this.queryAndCheckError(Documents.CountAlerts, { filter: filter });
|
224
|
+
});
|
225
|
+
}
|
221
226
|
createCollection(collection) {
|
222
227
|
return __awaiter(this, void 0, void 0, function* () {
|
223
228
|
return this.mutateAndCheckError(Documents.CreateCollection, { collection: collection });
|
@@ -263,6 +268,11 @@ class Graphlit {
|
|
263
268
|
return this.queryAndCheckError(Documents.QueryCollections, { filter: filter });
|
264
269
|
});
|
265
270
|
}
|
271
|
+
countCollections(filter) {
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
273
|
+
return this.queryAndCheckError(Documents.CountCollections, { filter: filter });
|
274
|
+
});
|
275
|
+
}
|
266
276
|
describeImage(prompt, uri, specification, correlationId) {
|
267
277
|
return __awaiter(this, void 0, void 0, function* () {
|
268
278
|
return this.mutateAndCheckError(Documents.DescribeImage, { prompt: prompt, uri: uri, specification: specification, correlationId: correlationId });
|
@@ -378,6 +388,11 @@ class Graphlit {
|
|
378
388
|
return this.queryAndCheckError(Documents.QueryContentsGraph, { filter: filter });
|
379
389
|
});
|
380
390
|
}
|
391
|
+
countContents(filter) {
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
393
|
+
return this.queryAndCheckError(Documents.CountContents, { filter: filter });
|
394
|
+
});
|
395
|
+
}
|
381
396
|
isContentDone(id) {
|
382
397
|
return __awaiter(this, void 0, void 0, function* () {
|
383
398
|
return this.queryAndCheckError(Documents.IsContentDone, { id: id });
|
@@ -428,6 +443,11 @@ class Graphlit {
|
|
428
443
|
return this.queryAndCheckError(Documents.QueryConversations, { filter: filter });
|
429
444
|
});
|
430
445
|
}
|
446
|
+
countConversations(filter) {
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
448
|
+
return this.queryAndCheckError(Documents.CountConversations, { filter: filter });
|
449
|
+
});
|
450
|
+
}
|
431
451
|
reviseImage(prompt, uri, id, specification, correlationId) {
|
432
452
|
return __awaiter(this, void 0, void 0, function* () {
|
433
453
|
return this.mutateAndCheckError(Documents.ReviseImage, { prompt: prompt, uri: uri, id: id, specification: specification, correlationId: correlationId });
|
@@ -583,6 +603,11 @@ class Graphlit {
|
|
583
603
|
return this.queryAndCheckError(Documents.QueryFeeds, { filter: filter });
|
584
604
|
});
|
585
605
|
}
|
606
|
+
countFeeds(filter) {
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
608
|
+
return this.queryAndCheckError(Documents.CountFeeds, { filter: filter });
|
609
|
+
});
|
610
|
+
}
|
586
611
|
feedExists(filter) {
|
587
612
|
return __awaiter(this, void 0, void 0, function* () {
|
588
613
|
return this.queryAndCheckError(Documents.FeedExists, { filter: filter });
|
@@ -638,6 +663,11 @@ class Graphlit {
|
|
638
663
|
return this.queryAndCheckError(Documents.QuerySpecifications, { filter: filter });
|
639
664
|
});
|
640
665
|
}
|
666
|
+
countSpecifications(filter) {
|
667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
668
|
+
return this.queryAndCheckError(Documents.CountSpecifications, { filter: filter });
|
669
|
+
});
|
670
|
+
}
|
641
671
|
specificationExists(filter) {
|
642
672
|
return __awaiter(this, void 0, void 0, function* () {
|
643
673
|
return this.queryAndCheckError(Documents.SpecificationExists, { filter: filter });
|
@@ -688,6 +718,11 @@ class Graphlit {
|
|
688
718
|
return this.queryAndCheckError(Documents.QueryWorkflows, { filter: filter });
|
689
719
|
});
|
690
720
|
}
|
721
|
+
countWorkflows(filter) {
|
722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
723
|
+
return this.queryAndCheckError(Documents.CountWorkflows, { filter: filter });
|
724
|
+
});
|
725
|
+
}
|
691
726
|
workflowExists(filter) {
|
692
727
|
return __awaiter(this, void 0, void 0, function* () {
|
693
728
|
return this.queryAndCheckError(Documents.WorkflowExists, { filter: filter });
|
@@ -718,6 +753,11 @@ class Graphlit {
|
|
718
753
|
return this.queryAndCheckError(Documents.QueryUsers, { filter: filter });
|
719
754
|
});
|
720
755
|
}
|
756
|
+
countUsers(filter) {
|
757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
758
|
+
return this.queryAndCheckError(Documents.CountUsers, { filter: filter });
|
759
|
+
});
|
760
|
+
}
|
721
761
|
enableUser(id) {
|
722
762
|
return __awaiter(this, void 0, void 0, function* () {
|
723
763
|
return this.mutateAndCheckError(Documents.EnableUser, { id: id });
|
@@ -407,6 +407,14 @@ export declare enum AnthropicModels {
|
|
407
407
|
Claude_3Sonnet = "CLAUDE_3_SONNET",
|
408
408
|
/** Claude 3 Sonnet (02-29-2024 version) */
|
409
409
|
Claude_3Sonnet_20240229 = "CLAUDE_3_SONNET_20240229",
|
410
|
+
/** Claude 4 Opus (Latest) */
|
411
|
+
Claude_4Opus = "CLAUDE_4_OPUS",
|
412
|
+
/** Claude 4 Opus (05-14-2025 version) */
|
413
|
+
Claude_4Opus_20250514 = "CLAUDE_4_OPUS_20250514",
|
414
|
+
/** Claude 4 Sonnet (Latest) */
|
415
|
+
Claude_4Sonnet = "CLAUDE_4_SONNET",
|
416
|
+
/** Claude 4 Sonnet (05-14-2025 version) */
|
417
|
+
Claude_4Sonnet_20250514 = "CLAUDE_4_SONNET_20250514",
|
410
418
|
/** @deprecated Use Claude 3.5 Haiku instead. */
|
411
419
|
ClaudeInstant_1 = "CLAUDE_INSTANT_1",
|
412
420
|
/** @deprecated Use Claude 3.5 Haiku instead. */
|
@@ -44,6 +44,14 @@ var AnthropicModels;
|
|
44
44
|
AnthropicModels["Claude_3Sonnet"] = "CLAUDE_3_SONNET";
|
45
45
|
/** Claude 3 Sonnet (02-29-2024 version) */
|
46
46
|
AnthropicModels["Claude_3Sonnet_20240229"] = "CLAUDE_3_SONNET_20240229";
|
47
|
+
/** Claude 4 Opus (Latest) */
|
48
|
+
AnthropicModels["Claude_4Opus"] = "CLAUDE_4_OPUS";
|
49
|
+
/** Claude 4 Opus (05-14-2025 version) */
|
50
|
+
AnthropicModels["Claude_4Opus_20250514"] = "CLAUDE_4_OPUS_20250514";
|
51
|
+
/** Claude 4 Sonnet (Latest) */
|
52
|
+
AnthropicModels["Claude_4Sonnet"] = "CLAUDE_4_SONNET";
|
53
|
+
/** Claude 4 Sonnet (05-14-2025 version) */
|
54
|
+
AnthropicModels["Claude_4Sonnet_20250514"] = "CLAUDE_4_SONNET_20250514";
|
47
55
|
/** @deprecated Use Claude 3.5 Haiku instead. */
|
48
56
|
AnthropicModels["ClaudeInstant_1"] = "CLAUDE_INSTANT_1";
|
49
57
|
/** @deprecated Use Claude 3.5 Haiku instead. */
|