graphlit-client 1.0.20250407002 → 1.0.20250412001

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
@@ -44,7 +44,8 @@ declare class Graphlit {
44
44
  ingestTextBatch(batch: [Types.TextContentInput], textType: Types.TextTypes, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestTextBatchMutation>;
45
45
  ingestBatch(uris: [string], workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestBatchMutation>;
46
46
  ingestUri(uri: string, name?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestUriMutation>;
47
- 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
+ ingestText(text: string, name?: string, textType?: Types.TextTypes, uri?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: [Types.EntityReferenceInput], observations?: [Types.ObservationReferenceInput], correlationId?: string): Promise<Types.IngestTextMutation>;
48
+ ingestMemory(text: string, name?: string, textType?: Types.TextTypes, collections?: [Types.EntityReferenceInput], correlationId?: string): Promise<Types.IngestMemoryMutation>;
48
49
  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>;
49
50
  updateContent(content: Types.ContentUpdateInput): Promise<Types.UpdateContentMutation>;
50
51
  deleteContent(id: string): Promise<Types.DeleteContentMutation>;
package/dist/client.js CHANGED
@@ -288,11 +288,16 @@ class Graphlit {
288
288
  return this.mutateAndCheckError(Documents.IngestUri, { uri: uri, name: name, id: id, isSynchronous: isSynchronous, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
289
289
  });
290
290
  }
291
- ingestText(name, text, textType, uri, id, isSynchronous, workflow, collections, observations, correlationId) {
291
+ ingestText(text, name, textType, uri, id, isSynchronous, workflow, collections, observations, correlationId) {
292
292
  return __awaiter(this, void 0, void 0, function* () {
293
293
  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 });
294
294
  });
295
295
  }
296
+ ingestMemory(text, name, textType, collections, correlationId) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ return this.mutateAndCheckError(Documents.IngestMemory, { name: name, text: text, textType: textType, collections: collections, correlationId: correlationId });
299
+ });
300
+ }
296
301
  ingestEncodedFile(name, data, mimeType, id, isSynchronous, workflow, collections, observations, correlationId) {
297
302
  return __awaiter(this, void 0, void 0, function* () {
298
303
  return this.mutateAndCheckError(Documents.IngestEncodedFile, { name: name, data: data, mimeType: mimeType, id: id, isSynchronous: isSynchronous, workflow: workflow, collections: collections, observations: observations, correlationId: correlationId });
@@ -38,6 +38,7 @@ export declare const ExtractText: import("graphql").DocumentNode;
38
38
  export declare const GetContent: import("graphql").DocumentNode;
39
39
  export declare const IngestBatch: import("graphql").DocumentNode;
40
40
  export declare const IngestEncodedFile: import("graphql").DocumentNode;
41
+ export declare const IngestMemory: import("graphql").DocumentNode;
41
42
  export declare const IngestText: import("graphql").DocumentNode;
42
43
  export declare const IngestTextBatch: import("graphql").DocumentNode;
43
44
  export declare const IngestUri: import("graphql").DocumentNode;
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ScreenshotPage = exports.QueryContentsGraph = exports.QueryContentsFacets = exports.QueryContents = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestTextBatch = exports.IngestText = exports.IngestEncodedFile = exports.IngestBatch = exports.GetContent = exports.ExtractText = exports.ExtractContents = exports.DescribeImage = exports.DescribeEncodedImage = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.CountContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.CountCollections = exports.AddContentsToCollections = exports.UpsertCategory = exports.UpdateCategory = exports.QueryCategories = exports.GetCategory = exports.DeleteCategory = exports.DeleteCategories = exports.DeleteAllCategories = exports.CreateCategory = exports.CountCategories = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = exports.CountAlerts = void 0;
7
- exports.QueryNotionDatabases = exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryLinearProjects = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.FeedExists = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.RetrieveSources = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.FormatConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CompleteConversation = exports.CloseConversation = exports.ClearConversation = exports.AskGraphlit = exports.UpdateContent = exports.SummarizeText = exports.SummarizeContents = void 0;
8
- exports.DeleteAllMedicalDrugClasses = exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpsertLabel = exports.UpdateLabel = exports.QueryLabels = exports.GetLabel = exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySlackChannels = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryNotionPages = void 0;
9
- exports.DeleteMedicalTherapy = exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = exports.CountMedicalIndications = exports.UpdateMedicalGuideline = exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = void 0;
10
- exports.DeleteRepos = exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = exports.UpdateOrganization = exports.QueryOrganizations = exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.SendNotification = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = void 0;
11
- exports.WorkflowExists = exports.UpsertWorkflow = exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateUser = exports.QueryUsers = exports.GetUser = exports.EnableUser = exports.DisableUser = exports.DeleteUser = exports.CreateUser = exports.CountUsers = exports.UpsertSpecification = exports.UpdateSpecification = exports.SpecificationExists = exports.QuerySpecifications = exports.QueryModels = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.MapWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = void 0;
6
+ exports.QueryContentsGraph = exports.QueryContentsFacets = exports.QueryContents = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestTextBatch = exports.IngestText = exports.IngestMemory = exports.IngestEncodedFile = exports.IngestBatch = exports.GetContent = exports.ExtractText = exports.ExtractContents = exports.DescribeImage = exports.DescribeEncodedImage = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.CountContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.CountCollections = exports.AddContentsToCollections = exports.UpsertCategory = exports.UpdateCategory = exports.QueryCategories = exports.GetCategory = exports.DeleteCategory = exports.DeleteCategories = exports.DeleteAllCategories = exports.CreateCategory = exports.CountCategories = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = exports.CountAlerts = void 0;
7
+ exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryLinearProjects = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.FeedExists = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.RetrieveSources = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.FormatConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CompleteConversation = exports.CloseConversation = exports.ClearConversation = exports.AskGraphlit = exports.UpdateContent = exports.SummarizeText = exports.SummarizeContents = exports.ScreenshotPage = void 0;
8
+ exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpsertLabel = exports.UpdateLabel = exports.QueryLabels = exports.GetLabel = exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySlackChannels = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryNotionPages = exports.QueryNotionDatabases = void 0;
9
+ exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = exports.CountMedicalIndications = exports.UpdateMedicalGuideline = exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = exports.DeleteAllMedicalDrugClasses = void 0;
10
+ exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = exports.UpdateOrganization = exports.QueryOrganizations = exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.SendNotification = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = exports.DeleteMedicalTherapy = void 0;
11
+ exports.WorkflowExists = exports.UpsertWorkflow = exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateUser = exports.QueryUsers = exports.GetUser = exports.EnableUser = exports.DisableUser = exports.DeleteUser = exports.CreateUser = exports.CountUsers = exports.UpsertSpecification = exports.UpdateSpecification = exports.SpecificationExists = exports.QuerySpecifications = exports.QueryModels = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.MapWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = exports.DeleteRepos = void 0;
12
12
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
13
13
  exports.CountAlerts = (0, graphql_tag_1.default) `
14
14
  query CountAlerts($filter: AlertFilter, $correlationId: String) {
@@ -1264,8 +1264,59 @@ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
1264
1264
  }
1265
1265
  }
1266
1266
  `;
1267
+ exports.IngestMemory = (0, graphql_tag_1.default) `
1268
+ mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $collections: [EntityReferenceInput!], $correlationId: String) {
1269
+ ingestMemory(
1270
+ name: $name
1271
+ text: $text
1272
+ textType: $textType
1273
+ collections: $collections
1274
+ correlationId: $correlationId
1275
+ ) {
1276
+ id
1277
+ name
1278
+ state
1279
+ type
1280
+ fileType
1281
+ mimeType
1282
+ uri
1283
+ collections {
1284
+ id
1285
+ name
1286
+ }
1287
+ observations {
1288
+ id
1289
+ type
1290
+ observable {
1291
+ id
1292
+ name
1293
+ }
1294
+ related {
1295
+ id
1296
+ name
1297
+ }
1298
+ relatedType
1299
+ relation
1300
+ occurrences {
1301
+ type
1302
+ confidence
1303
+ startTime
1304
+ endTime
1305
+ pageIndex
1306
+ boundingBox {
1307
+ left
1308
+ top
1309
+ width
1310
+ height
1311
+ }
1312
+ }
1313
+ state
1314
+ }
1315
+ }
1316
+ }
1317
+ `;
1267
1318
  exports.IngestText = (0, graphql_tag_1.default) `
1268
- mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
1319
+ mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
1269
1320
  ingestText(
1270
1321
  name: $name
1271
1322
  text: $text
@@ -5281,11 +5332,13 @@ exports.GetFeed = (0, graphql_tag_1.default) `
5281
5332
  refreshToken
5282
5333
  }
5283
5334
  googleDrive {
5335
+ authenticationType
5284
5336
  folderId
5285
5337
  files
5286
5338
  refreshToken
5287
5339
  clientId
5288
5340
  clientSecret
5341
+ serviceAccountJson
5289
5342
  }
5290
5343
  dropbox {
5291
5344
  path
@@ -5534,11 +5587,13 @@ exports.QueryFeeds = (0, graphql_tag_1.default) `
5534
5587
  refreshToken
5535
5588
  }
5536
5589
  googleDrive {
5590
+ authenticationType
5537
5591
  folderId
5538
5592
  files
5539
5593
  refreshToken
5540
5594
  clientId
5541
5595
  clientSecret
5596
+ serviceAccountJson
5542
5597
  }
5543
5598
  dropbox {
5544
5599
  path
@@ -1859,7 +1859,7 @@ export type ContentFilter = {
1859
1859
  states?: InputMaybe<Array<EntityState>>;
1860
1860
  /** Filter by content types. */
1861
1861
  types?: InputMaybe<Array<ContentTypes>>;
1862
- /** The content URI. */
1862
+ /** Filter by content URI. */
1863
1863
  uri?: InputMaybe<Scalars['URL']['input']>;
1864
1864
  /** Filter by users. Only applies to project scope. */
1865
1865
  users?: InputMaybe<Array<EntityReferenceFilter>>;
@@ -2025,6 +2025,8 @@ export declare enum ContentTypes {
2025
2025
  File = "FILE",
2026
2026
  /** Issue (i.e. JIRA, Linear, GitHub) */
2027
2027
  Issue = "ISSUE",
2028
+ /** Memory (i.e. Agent or User memory) */
2029
+ Memory = "MEMORY",
2028
2030
  /** Message (i.e. Slack, Microsoft Teams) */
2029
2031
  Message = "MESSAGE",
2030
2032
  /** Web page */
@@ -4113,32 +4115,44 @@ export type GoogleAuthenticationPropertiesInput = {
4113
4115
  /** Google client secret. */
4114
4116
  clientSecret: Scalars['String']['input'];
4115
4117
  };
4118
+ export declare enum GoogleDriveAuthenticationTypes {
4119
+ ServiceAccount = "SERVICE_ACCOUNT",
4120
+ User = "USER"
4121
+ }
4116
4122
  /** Represents Google Drive properties. */
4117
4123
  export type GoogleDriveFeedProperties = {
4118
4124
  __typename?: 'GoogleDriveFeedProperties';
4119
- /** Google client identifier. */
4120
- clientId: Scalars['String']['output'];
4121
- /** Google client secret. */
4122
- clientSecret: Scalars['String']['output'];
4125
+ /** Google Drive authentication type, defaults to User. */
4126
+ authenticationType?: Maybe<GoogleDriveAuthenticationTypes>;
4127
+ /** Google client identifier, when using User authentication type. */
4128
+ clientId?: Maybe<Scalars['String']['output']>;
4129
+ /** Google client secret, when using User authentication type. */
4130
+ clientSecret?: Maybe<Scalars['String']['output']>;
4123
4131
  /** Google Drive file identifiers. Takes precedence over folder identifier. */
4124
4132
  files?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
4125
4133
  /** Google Drive folder identifier. */
4126
4134
  folderId?: Maybe<Scalars['String']['output']>;
4127
- /** Google refresh token. */
4128
- refreshToken: Scalars['String']['output'];
4135
+ /** Google refresh token, when using User authentication type. */
4136
+ refreshToken?: Maybe<Scalars['String']['output']>;
4137
+ /** Google service account JSON, when using ServiceAccount authentication type. */
4138
+ serviceAccountJson?: Maybe<Scalars['String']['output']>;
4129
4139
  };
4130
4140
  /** Represents Google Drive properties. */
4131
4141
  export type GoogleDriveFeedPropertiesInput = {
4132
- /** Google client identifier. */
4133
- clientId: Scalars['String']['input'];
4134
- /** Google client secret. */
4135
- clientSecret: Scalars['String']['input'];
4142
+ /** Google Drive authentication type, defaults to User. */
4143
+ authenticationType?: InputMaybe<GoogleDriveAuthenticationTypes>;
4144
+ /** Google client identifier, when using User authentication type. */
4145
+ clientId?: InputMaybe<Scalars['String']['input']>;
4146
+ /** Google client secret, when using User authentication type. */
4147
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
4136
4148
  /** Google Drive file identifiers. Takes precedence over folder identifier. */
4137
4149
  files?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4138
4150
  /** Google Drive folder identifier. */
4139
4151
  folderId?: InputMaybe<Scalars['String']['input']>;
4140
- /** Google refresh token. */
4141
- refreshToken: Scalars['String']['input'];
4152
+ /** Google refresh token, when using User authentication type. */
4153
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
4154
+ /** Google service account JSON, when using ServiceAccount authentication type. */
4155
+ serviceAccountJson?: InputMaybe<Scalars['String']['input']>;
4142
4156
  };
4143
4157
  /** Represents Google Drive properties. */
4144
4158
  export type GoogleDriveFeedPropertiesUpdateInput = {
@@ -7759,6 +7773,8 @@ export type Mutation = {
7759
7773
  * @deprecated Use ingestUri instead.
7760
7774
  */
7761
7775
  ingestFile?: Maybe<Content>;
7776
+ /** Ingests user or agent memory. */
7777
+ ingestMemory?: Maybe<Content>;
7762
7778
  /**
7763
7779
  * Ingests a webpage by URI.
7764
7780
  * @deprecated Use ingestUri instead.
@@ -8427,6 +8443,13 @@ export type MutationIngestFileArgs = {
8427
8443
  uri: Scalars['URL']['input'];
8428
8444
  workflow?: InputMaybe<EntityReferenceInput>;
8429
8445
  };
8446
+ export type MutationIngestMemoryArgs = {
8447
+ collections?: InputMaybe<Array<EntityReferenceInput>>;
8448
+ correlationId?: InputMaybe<Scalars['String']['input']>;
8449
+ name?: InputMaybe<Scalars['String']['input']>;
8450
+ text: Scalars['String']['input'];
8451
+ textType?: InputMaybe<TextTypes>;
8452
+ };
8430
8453
  export type MutationIngestPageArgs = {
8431
8454
  collections?: InputMaybe<Array<EntityReferenceInput>>;
8432
8455
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -8441,7 +8464,7 @@ export type MutationIngestTextArgs = {
8441
8464
  correlationId?: InputMaybe<Scalars['String']['input']>;
8442
8465
  id?: InputMaybe<Scalars['ID']['input']>;
8443
8466
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8444
- name: Scalars['String']['input'];
8467
+ name?: InputMaybe<Scalars['String']['input']>;
8445
8468
  observations?: InputMaybe<Array<ObservationReferenceInput>>;
8446
8469
  text: Scalars['String']['input'];
8447
8470
  textType?: InputMaybe<TextTypes>;
@@ -10355,6 +10378,8 @@ export type ProjectStorage = {
10355
10378
  file?: Maybe<ProjectStorageFileContentFacet>;
10356
10379
  /** The issue content type storage facet. */
10357
10380
  issue?: Maybe<ProjectStorageContentFacet>;
10381
+ /** The memory content type storage facet. */
10382
+ memory?: Maybe<ProjectStorageContentFacet>;
10358
10383
  /** The message content type storage facet. */
10359
10384
  message?: Maybe<ProjectStorageContentFacet>;
10360
10385
  /** The page content type storage facet. */
@@ -14982,9 +15007,67 @@ export type IngestEncodedFileMutation = {
14982
15007
  } | null> | null;
14983
15008
  } | null;
14984
15009
  };
15010
+ export type IngestMemoryMutationVariables = Exact<{
15011
+ text: Scalars['String']['input'];
15012
+ name?: InputMaybe<Scalars['String']['input']>;
15013
+ textType?: InputMaybe<TextTypes>;
15014
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
15015
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15016
+ }>;
15017
+ export type IngestMemoryMutation = {
15018
+ __typename?: 'Mutation';
15019
+ ingestMemory?: {
15020
+ __typename?: 'Content';
15021
+ id: string;
15022
+ name: string;
15023
+ state: EntityState;
15024
+ type?: ContentTypes | null;
15025
+ fileType?: FileTypes | null;
15026
+ mimeType?: string | null;
15027
+ uri?: any | null;
15028
+ collections?: Array<{
15029
+ __typename?: 'Collection';
15030
+ id: string;
15031
+ name: string;
15032
+ } | null> | null;
15033
+ observations?: Array<{
15034
+ __typename?: 'Observation';
15035
+ id: string;
15036
+ type: ObservableTypes;
15037
+ relatedType?: ObservableTypes | null;
15038
+ relation?: string | null;
15039
+ state: EntityState;
15040
+ observable: {
15041
+ __typename?: 'NamedEntityReference';
15042
+ id: string;
15043
+ name?: string | null;
15044
+ };
15045
+ related?: {
15046
+ __typename?: 'NamedEntityReference';
15047
+ id: string;
15048
+ name?: string | null;
15049
+ } | null;
15050
+ occurrences?: Array<{
15051
+ __typename?: 'ObservationOccurrence';
15052
+ type?: OccurrenceTypes | null;
15053
+ confidence?: number | null;
15054
+ startTime?: any | null;
15055
+ endTime?: any | null;
15056
+ pageIndex?: number | null;
15057
+ boundingBox?: {
15058
+ __typename?: 'BoundingBox';
15059
+ left?: number | null;
15060
+ top?: number | null;
15061
+ width?: number | null;
15062
+ height?: number | null;
15063
+ } | null;
15064
+ } | null> | null;
15065
+ } | null> | null;
15066
+ } | null;
15067
+ };
14985
15068
  export type IngestTextMutationVariables = Exact<{
14986
- name: Scalars['String']['input'];
14987
15069
  text: Scalars['String']['input'];
15070
+ name?: InputMaybe<Scalars['String']['input']>;
14988
15071
  textType?: InputMaybe<TextTypes>;
14989
15072
  uri?: InputMaybe<Scalars['URL']['input']>;
14990
15073
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -19510,11 +19593,13 @@ export type GetFeedQuery = {
19510
19593
  } | null;
19511
19594
  googleDrive?: {
19512
19595
  __typename?: 'GoogleDriveFeedProperties';
19596
+ authenticationType?: GoogleDriveAuthenticationTypes | null;
19513
19597
  folderId?: string | null;
19514
19598
  files?: Array<string | null> | null;
19515
- refreshToken: string;
19516
- clientId: string;
19517
- clientSecret: string;
19599
+ refreshToken?: string | null;
19600
+ clientId?: string | null;
19601
+ clientSecret?: string | null;
19602
+ serviceAccountJson?: string | null;
19518
19603
  } | null;
19519
19604
  dropbox?: {
19520
19605
  __typename?: 'DropboxFeedProperties';
@@ -19810,11 +19895,13 @@ export type QueryFeedsQuery = {
19810
19895
  } | null;
19811
19896
  googleDrive?: {
19812
19897
  __typename?: 'GoogleDriveFeedProperties';
19898
+ authenticationType?: GoogleDriveAuthenticationTypes | null;
19813
19899
  folderId?: string | null;
19814
19900
  files?: Array<string | null> | null;
19815
- refreshToken: string;
19816
- clientId: string;
19817
- clientSecret: string;
19901
+ refreshToken?: string | null;
19902
+ clientId?: string | null;
19903
+ clientSecret?: string | null;
19904
+ serviceAccountJson?: string | null;
19818
19905
  } | null;
19819
19906
  dropbox?: {
19820
19907
  __typename?: 'DropboxFeedProperties';
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JinaModels = exports.IntegrationServiceTypes = exports.ImageProjectionTypes = exports.H3ResolutionTypes = exports.GroqModels = exports.GraphStrategyTypes = exports.GoogleModels = exports.FileTypes = exports.FilePreparationServiceTypes = exports.FeedTypes = exports.FeedServiceTypes = exports.FeedListingTypes = exports.FeedConnectorTypes = exports.FacetValueTypes = exports.EventFacetTypes = exports.EnvironmentTypes = exports.EntityTypes = exports.EntityState = exports.EntityExtractionServiceTypes = exports.EntityEnrichmentServiceTypes = exports.EmailListingTypes = exports.ElevenLabsModels = exports.DeviceTypes = exports.DeepseekModels = exports.DeepgramModels = exports.ConversationTypes = exports.ConversationStrategyTypes = exports.ConversationSearchTypes = exports.ConversationRoleTypes = exports.ContentTypes = exports.ContentSourceTypes = exports.ContentPublishingServiceTypes = exports.ContentPublishingFormats = exports.ContentIndexingServiceTypes = exports.ContentFacetTypes = exports.ContentClassificationServiceTypes = exports.ConnectorTypes = exports.CollectionTypes = exports.CohereModels = exports.CerebrasModels = exports.CategoryFacetTypes = exports.BillableMetrics = exports.AzureOpenAiModels = exports.AzureDocumentIntelligenceVersions = exports.AzureDocumentIntelligenceModels = exports.AuthenticationServiceTypes = exports.AssemblyAiModels = exports.ApplyPolicy = exports.AnthropicModels = exports.AlertTypes = void 0;
4
- exports.SiteTypes = exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchServiceTypes = exports.SearchQueryTypes = exports.SdkTypes = exports.RevisionStrategyTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.RegexSourceTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OperationTypes = exports.OpenAiVisionDetailLevels = exports.OpenAiReasoningEffortLevels = exports.OpenAiModels = exports.OccurrenceTypes = exports.ObservableTypes = exports.NotionTypes = exports.ModelTypes = exports.ModelServiceTypes = exports.MistralModels = exports.MetadataTypes = exports.MedicalTherapyFacetTypes = exports.MedicalTestFacetTypes = exports.MedicalStudyFacetTypes = exports.MedicalProcedureFacetTypes = exports.MedicalIndicationFacetTypes = exports.MedicalGuidelineFacetTypes = exports.MedicalDrugFacetTypes = exports.MedicalDrugClassFacetTypes = exports.MedicalDeviceFacetTypes = exports.MedicalContraindicationFacetTypes = exports.MedicalConditionFacetTypes = exports.MailSensitivity = exports.MailPriority = exports.MailImportance = exports.LinkTypes = exports.LabelFacetTypes = void 0;
5
- exports.YouTubeTypes = exports.VoyageModels = exports.UserTypes = exports.UnitTypes = exports.TwitterListingTypes = exports.TrelloTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.StoragePolicyTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = void 0;
3
+ exports.IntegrationServiceTypes = exports.ImageProjectionTypes = exports.H3ResolutionTypes = exports.GroqModels = exports.GraphStrategyTypes = exports.GoogleModels = exports.GoogleDriveAuthenticationTypes = exports.FileTypes = exports.FilePreparationServiceTypes = exports.FeedTypes = exports.FeedServiceTypes = exports.FeedListingTypes = exports.FeedConnectorTypes = exports.FacetValueTypes = exports.EventFacetTypes = exports.EnvironmentTypes = exports.EntityTypes = exports.EntityState = exports.EntityExtractionServiceTypes = exports.EntityEnrichmentServiceTypes = exports.EmailListingTypes = exports.ElevenLabsModels = exports.DeviceTypes = exports.DeepseekModels = exports.DeepgramModels = exports.ConversationTypes = exports.ConversationStrategyTypes = exports.ConversationSearchTypes = exports.ConversationRoleTypes = exports.ContentTypes = exports.ContentSourceTypes = exports.ContentPublishingServiceTypes = exports.ContentPublishingFormats = exports.ContentIndexingServiceTypes = exports.ContentFacetTypes = exports.ContentClassificationServiceTypes = exports.ConnectorTypes = exports.CollectionTypes = exports.CohereModels = exports.CerebrasModels = exports.CategoryFacetTypes = exports.BillableMetrics = exports.AzureOpenAiModels = exports.AzureDocumentIntelligenceVersions = exports.AzureDocumentIntelligenceModels = exports.AuthenticationServiceTypes = exports.AssemblyAiModels = exports.ApplyPolicy = exports.AnthropicModels = exports.AlertTypes = void 0;
4
+ exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchServiceTypes = exports.SearchQueryTypes = exports.SdkTypes = exports.RevisionStrategyTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.RegexSourceTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OperationTypes = exports.OpenAiVisionDetailLevels = exports.OpenAiReasoningEffortLevels = exports.OpenAiModels = exports.OccurrenceTypes = exports.ObservableTypes = exports.NotionTypes = exports.ModelTypes = exports.ModelServiceTypes = exports.MistralModels = exports.MetadataTypes = exports.MedicalTherapyFacetTypes = exports.MedicalTestFacetTypes = exports.MedicalStudyFacetTypes = exports.MedicalProcedureFacetTypes = exports.MedicalIndicationFacetTypes = exports.MedicalGuidelineFacetTypes = exports.MedicalDrugFacetTypes = exports.MedicalDrugClassFacetTypes = exports.MedicalDeviceFacetTypes = exports.MedicalContraindicationFacetTypes = exports.MedicalConditionFacetTypes = exports.MailSensitivity = exports.MailPriority = exports.MailImportance = exports.LinkTypes = exports.LabelFacetTypes = exports.JinaModels = void 0;
5
+ exports.YouTubeTypes = exports.VoyageModels = exports.UserTypes = exports.UnitTypes = exports.TwitterListingTypes = exports.TrelloTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.StoragePolicyTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = exports.SiteTypes = void 0;
6
6
  /** Alert type */
7
7
  var AlertTypes;
8
8
  (function (AlertTypes) {
@@ -335,6 +335,8 @@ var ContentTypes;
335
335
  ContentTypes["File"] = "FILE";
336
336
  /** Issue (i.e. JIRA, Linear, GitHub) */
337
337
  ContentTypes["Issue"] = "ISSUE";
338
+ /** Memory (i.e. Agent or User memory) */
339
+ ContentTypes["Memory"] = "MEMORY";
338
340
  /** Message (i.e. Slack, Microsoft Teams) */
339
341
  ContentTypes["Message"] = "MESSAGE";
340
342
  /** Web page */
@@ -838,6 +840,11 @@ var FileTypes;
838
840
  /** Video file */
839
841
  FileTypes["Video"] = "VIDEO";
840
842
  })(FileTypes || (exports.FileTypes = FileTypes = {}));
843
+ var GoogleDriveAuthenticationTypes;
844
+ (function (GoogleDriveAuthenticationTypes) {
845
+ GoogleDriveAuthenticationTypes["ServiceAccount"] = "SERVICE_ACCOUNT";
846
+ GoogleDriveAuthenticationTypes["User"] = "USER";
847
+ })(GoogleDriveAuthenticationTypes || (exports.GoogleDriveAuthenticationTypes = GoogleDriveAuthenticationTypes = {}));
841
848
  /** Google model type */
842
849
  var GoogleModels;
843
850
  (function (GoogleModels) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250407002",
3
+ "version": "1.0.20250412001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/graphlit/graphlit-client-typescript"
9
+ "url": "git+https://github.com/graphlit/graphlit-client-typescript.git"
10
10
  },
11
11
  "contributors": [
12
12
  "Kirk Marple (https://github.com/kirk-marple)"