graphlit-client 1.0.20260130002 → 1.0.20260202001

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
@@ -780,6 +780,21 @@ declare class Graphlit {
780
780
  * @returns The conversations.
781
781
  */
782
782
  queryConversations(filter?: Types.ConversationFilter): Promise<Types.QueryConversationsQuery>;
783
+ /**
784
+ * Retrieves Conversations as a knowledge graph.
785
+ * @param filter - The filter criteria to apply when retrieving Conversations, optional.
786
+ * @param correlationId - The tenant correlation identifier, optional.
787
+ * @returns The Conversations graph with nodes and edges.
788
+ */
789
+ queryConversationsGraph(filter?: Types.ConversationFilter, correlationId?: string): Promise<Types.QueryConversationsGraphQuery>;
790
+ /**
791
+ * Retrieves Conversations with clustering.
792
+ * @param filter - The filter criteria to apply when retrieving Conversations, optional.
793
+ * @param clusters - The clustering input parameters, optional.
794
+ * @param correlationId - The tenant correlation identifier, optional.
795
+ * @returns The Conversations with clusters.
796
+ */
797
+ queryConversationsClusters(filter?: Types.ConversationFilter, clusters?: Types.EntityClustersInput, correlationId?: string): Promise<Types.QueryConversationsClustersQuery>;
783
798
  /**
784
799
  * Counts conversations based on the provided filter criteria.
785
800
  * @param filter - The filter criteria to apply when counting conversations.
@@ -1847,6 +1862,60 @@ declare class Graphlit {
1847
1862
  * @returns The enrichment result.
1848
1863
  */
1849
1864
  enrichPlaces(connector: Types.EntityEnrichmentConnectorInput, filter?: Types.PlaceFilter, correlationId?: string): Promise<Types.EnrichPlacesMutation>;
1865
+ /**
1866
+ * Creates an emotion entity.
1867
+ * @param emotion - The emotion to create.
1868
+ * @returns The created emotion.
1869
+ */
1870
+ createEmotion(emotion: Types.EmotionInput): Promise<Types.CreateEmotionMutation>;
1871
+ /**
1872
+ * Updates an emotion entity.
1873
+ * @param emotion - The emotion to update.
1874
+ * @returns The updated emotion.
1875
+ */
1876
+ updateEmotion(emotion: Types.EmotionUpdateInput): Promise<Types.UpdateEmotionMutation>;
1877
+ /**
1878
+ * Deletes an emotion entity.
1879
+ * @param id - The ID of the emotion to delete.
1880
+ * @returns The deleted emotion.
1881
+ */
1882
+ deleteEmotion(id: string): Promise<Types.DeleteEmotionMutation>;
1883
+ /**
1884
+ * Deletes multiple emotion entities.
1885
+ * @param ids - The IDs of the emotions to delete.
1886
+ * @param isSynchronous - Whether this mutation is synchronous.
1887
+ * @returns The deleted emotions.
1888
+ */
1889
+ deleteEmotions(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteEmotionsMutation>;
1890
+ /**
1891
+ * Deletes all emotions based on the provided filter criteria.
1892
+ * @param filter - The filter criteria to apply when deleting emotions.
1893
+ * @param isSynchronous - Whether this mutation is synchronous.
1894
+ * @param correlationId - The tenant correlation identifier, optional.
1895
+ * @returns The result of the deletion.
1896
+ */
1897
+ deleteAllEmotions(filter?: Types.EmotionFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllEmotionsMutation>;
1898
+ /**
1899
+ * Lookup an emotion given its ID.
1900
+ * @param id - ID of the emotion.
1901
+ * @param correlationId - The tenant correlation identifier, optional.
1902
+ * @returns The emotion.
1903
+ */
1904
+ getEmotion(id: string, correlationId?: string): Promise<Types.GetEmotionQuery>;
1905
+ /**
1906
+ * Retrieves emotions based on the provided filter criteria.
1907
+ * @param filter - The filter criteria to apply when retrieving emotions.
1908
+ * @param correlationId - The tenant correlation identifier, optional.
1909
+ * @returns The emotions.
1910
+ */
1911
+ queryEmotions(filter?: Types.EmotionFilter, correlationId?: string): Promise<Types.QueryEmotionsQuery>;
1912
+ /**
1913
+ * Counts emotions based on the provided filter criteria.
1914
+ * @param filter - The filter criteria to apply when counting emotions.
1915
+ * @param correlationId - The tenant correlation identifier, optional.
1916
+ * @returns The count of emotions.
1917
+ */
1918
+ countEmotions(filter?: Types.EmotionFilter, correlationId?: string): Promise<Types.CountEmotionsQuery>;
1850
1919
  /**
1851
1920
  * Creates an event entity.
1852
1921
  * @param event - The event to create.
package/dist/client.js CHANGED
@@ -1491,6 +1491,35 @@ class Graphlit {
1491
1491
  async queryConversations(filter) {
1492
1492
  return this.queryAndCheckError(Documents.QueryConversations, { filter: filter });
1493
1493
  }
1494
+ /**
1495
+ * Retrieves Conversations as a knowledge graph.
1496
+ * @param filter - The filter criteria to apply when retrieving Conversations, optional.
1497
+ * @param correlationId - The tenant correlation identifier, optional.
1498
+ * @returns The Conversations graph with nodes and edges.
1499
+ */
1500
+ async queryConversationsGraph(filter, correlationId) {
1501
+ return this.queryAndCheckError(Documents.QueryConversationsGraph, {
1502
+ filter: filter,
1503
+ graph: {
1504
+ /* return everything */
1505
+ },
1506
+ correlationId: correlationId,
1507
+ });
1508
+ }
1509
+ /**
1510
+ * Retrieves Conversations with clustering.
1511
+ * @param filter - The filter criteria to apply when retrieving Conversations, optional.
1512
+ * @param clusters - The clustering input parameters, optional.
1513
+ * @param correlationId - The tenant correlation identifier, optional.
1514
+ * @returns The Conversations with clusters.
1515
+ */
1516
+ async queryConversationsClusters(filter, clusters, correlationId) {
1517
+ return this.queryAndCheckError(Documents.QueryConversationsClusters, {
1518
+ filter: filter,
1519
+ clusters: clusters,
1520
+ correlationId: correlationId,
1521
+ });
1522
+ }
1494
1523
  /**
1495
1524
  * Counts conversations based on the provided filter criteria.
1496
1525
  * @param filter - The filter criteria to apply when counting conversations.
@@ -3139,6 +3168,83 @@ class Graphlit {
3139
3168
  correlationId: correlationId,
3140
3169
  });
3141
3170
  }
3171
+ /**
3172
+ * Creates an emotion entity.
3173
+ * @param emotion - The emotion to create.
3174
+ * @returns The created emotion.
3175
+ */
3176
+ async createEmotion(emotion) {
3177
+ return this.mutateAndCheckError(Documents.CreateEmotion, { emotion: emotion });
3178
+ }
3179
+ /**
3180
+ * Updates an emotion entity.
3181
+ * @param emotion - The emotion to update.
3182
+ * @returns The updated emotion.
3183
+ */
3184
+ async updateEmotion(emotion) {
3185
+ return this.mutateAndCheckError(Documents.UpdateEmotion, { emotion: emotion });
3186
+ }
3187
+ /**
3188
+ * Deletes an emotion entity.
3189
+ * @param id - The ID of the emotion to delete.
3190
+ * @returns The deleted emotion.
3191
+ */
3192
+ async deleteEmotion(id) {
3193
+ return this.mutateAndCheckError(Documents.DeleteEmotion, { id: id });
3194
+ }
3195
+ /**
3196
+ * Deletes multiple emotion entities.
3197
+ * @param ids - The IDs of the emotions to delete.
3198
+ * @param isSynchronous - Whether this mutation is synchronous.
3199
+ * @returns The deleted emotions.
3200
+ */
3201
+ async deleteEmotions(ids, isSynchronous) {
3202
+ return this.mutateAndCheckError(Documents.DeleteEmotions, { ids: ids, isSynchronous: isSynchronous });
3203
+ }
3204
+ /**
3205
+ * Deletes all emotions based on the provided filter criteria.
3206
+ * @param filter - The filter criteria to apply when deleting emotions.
3207
+ * @param isSynchronous - Whether this mutation is synchronous.
3208
+ * @param correlationId - The tenant correlation identifier, optional.
3209
+ * @returns The result of the deletion.
3210
+ */
3211
+ async deleteAllEmotions(filter, isSynchronous, correlationId) {
3212
+ return this.mutateAndCheckError(Documents.DeleteAllEmotions, {
3213
+ filter: filter,
3214
+ isSynchronous: isSynchronous,
3215
+ correlationId: correlationId,
3216
+ });
3217
+ }
3218
+ /**
3219
+ * Lookup an emotion given its ID.
3220
+ * @param id - ID of the emotion.
3221
+ * @param correlationId - The tenant correlation identifier, optional.
3222
+ * @returns The emotion.
3223
+ */
3224
+ async getEmotion(id, correlationId) {
3225
+ return this.queryAndCheckError(Documents.GetEmotion, { id: id, correlationId: correlationId });
3226
+ }
3227
+ /**
3228
+ * Retrieves emotions based on the provided filter criteria.
3229
+ * @param filter - The filter criteria to apply when retrieving emotions.
3230
+ * @param correlationId - The tenant correlation identifier, optional.
3231
+ * @returns The emotions.
3232
+ */
3233
+ async queryEmotions(filter, correlationId) {
3234
+ return this.queryAndCheckError(Documents.QueryEmotions, { filter: filter, correlationId: correlationId });
3235
+ }
3236
+ /**
3237
+ * Counts emotions based on the provided filter criteria.
3238
+ * @param filter - The filter criteria to apply when counting emotions.
3239
+ * @param correlationId - The tenant correlation identifier, optional.
3240
+ * @returns The count of emotions.
3241
+ */
3242
+ async countEmotions(filter, correlationId) {
3243
+ return this.queryAndCheckError(Documents.CountEmotions, {
3244
+ filter: filter,
3245
+ correlationId: correlationId,
3246
+ });
3247
+ }
3142
3248
  /**
3143
3249
  * Creates an event entity.
3144
3250
  * @param event - The event to create.
@@ -87,6 +87,7 @@ export declare const Prompt: import("graphql").DocumentNode;
87
87
  export declare const PromptConversation: import("graphql").DocumentNode;
88
88
  export declare const PublishConversation: import("graphql").DocumentNode;
89
89
  export declare const QueryConversations: import("graphql").DocumentNode;
90
+ export declare const QueryConversationsClusters: import("graphql").DocumentNode;
90
91
  export declare const QueryConversationsGraph: import("graphql").DocumentNode;
91
92
  export declare const RetrieveEntities: import("graphql").DocumentNode;
92
93
  export declare const RetrieveFacts: import("graphql").DocumentNode;
@@ -98,6 +99,14 @@ export declare const ReviseImage: import("graphql").DocumentNode;
98
99
  export declare const ReviseText: import("graphql").DocumentNode;
99
100
  export declare const SuggestConversation: import("graphql").DocumentNode;
100
101
  export declare const UpdateConversation: import("graphql").DocumentNode;
102
+ export declare const CountEmotions: import("graphql").DocumentNode;
103
+ export declare const CreateEmotion: import("graphql").DocumentNode;
104
+ export declare const DeleteAllEmotions: import("graphql").DocumentNode;
105
+ export declare const DeleteEmotion: import("graphql").DocumentNode;
106
+ export declare const DeleteEmotions: import("graphql").DocumentNode;
107
+ export declare const GetEmotion: import("graphql").DocumentNode;
108
+ export declare const QueryEmotions: import("graphql").DocumentNode;
109
+ export declare const UpdateEmotion: import("graphql").DocumentNode;
101
110
  export declare const CountEvents: import("graphql").DocumentNode;
102
111
  export declare const CreateEvent: import("graphql").DocumentNode;
103
112
  export declare const DeleteAllEvents: import("graphql").DocumentNode;