graphlit-client 1.0.20251129003 → 1.0.20251204001

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;
@@ -168,6 +168,8 @@ export const GetAlert = gql `
168
168
  hasFeeds
169
169
  hasCollections
170
170
  hasWorkflows
171
+ collectionMode
172
+ observationMode
171
173
  }
172
174
  integration {
173
175
  type
@@ -350,6 +352,8 @@ export const QueryAlerts = gql `
350
352
  hasFeeds
351
353
  hasCollections
352
354
  hasWorkflows
355
+ collectionMode
356
+ observationMode
353
357
  }
354
358
  integration {
355
359
  type
@@ -2545,6 +2549,29 @@ export const LookupContents = gql `
2545
2549
  }
2546
2550
  }
2547
2551
  `;
2552
+ export const LookupEntity = gql `
2553
+ query LookupEntity($filter: EntityRelationshipsFilter!, $correlationId: String) {
2554
+ lookupEntity(filter: $filter, correlationId: $correlationId) {
2555
+ entity {
2556
+ id
2557
+ name
2558
+ type
2559
+ metadata
2560
+ }
2561
+ relationships {
2562
+ relation
2563
+ direction
2564
+ entity {
2565
+ id
2566
+ name
2567
+ type
2568
+ metadata
2569
+ }
2570
+ }
2571
+ totalCount
2572
+ }
2573
+ }
2574
+ `;
2548
2575
  export const PublishContents = gql `
2549
2576
  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
2577
  publishContents(
@@ -5254,6 +5281,8 @@ export const GetConversation = gql `
5254
5281
  hasFeeds
5255
5282
  hasCollections
5256
5283
  hasWorkflows
5284
+ collectionMode
5285
+ observationMode
5257
5286
  }
5258
5287
  augmentedFilter {
5259
5288
  dateRange {
@@ -5345,6 +5374,8 @@ export const GetConversation = gql `
5345
5374
  hasFeeds
5346
5375
  hasCollections
5347
5376
  hasWorkflows
5377
+ collectionMode
5378
+ observationMode
5348
5379
  }
5349
5380
  }
5350
5381
  }
@@ -6209,6 +6240,8 @@ export const QueryConversations = gql `
6209
6240
  hasFeeds
6210
6241
  hasCollections
6211
6242
  hasWorkflows
6243
+ collectionMode
6244
+ observationMode
6212
6245
  }
6213
6246
  augmentedFilter {
6214
6247
  dateRange {
@@ -6300,6 +6333,8 @@ export const QueryConversations = gql `
6300
6333
  hasFeeds
6301
6334
  hasCollections
6302
6335
  hasWorkflows
6336
+ collectionMode
6337
+ observationMode
6303
6338
  }
6304
6339
  }
6305
6340
  }
@@ -7363,6 +7398,7 @@ export const GetFeed = gql `
7363
7398
  accountName
7364
7399
  containerName
7365
7400
  prefix
7401
+ listType
7366
7402
  }
7367
7403
  azureFile {
7368
7404
  storageAccessKey
@@ -7780,6 +7816,7 @@ export const QueryFeeds = gql `
7780
7816
  accountName
7781
7817
  containerName
7782
7818
  prefix
7819
+ listType
7783
7820
  }
7784
7821
  azureFile {
7785
7822
  storageAccessKey
@@ -14972,6 +15009,8 @@ export const CreateView = gql `
14972
15009
  hasFeeds
14973
15010
  hasCollections
14974
15011
  hasWorkflows
15012
+ collectionMode
15013
+ observationMode
14975
15014
  }
14976
15015
  augmentedFilter {
14977
15016
  dateRange {
@@ -15063,6 +15102,8 @@ export const CreateView = gql `
15063
15102
  hasFeeds
15064
15103
  hasCollections
15065
15104
  hasWorkflows
15105
+ collectionMode
15106
+ observationMode
15066
15107
  }
15067
15108
  }
15068
15109
  }
@@ -15197,6 +15238,8 @@ export const GetView = gql `
15197
15238
  hasFeeds
15198
15239
  hasCollections
15199
15240
  hasWorkflows
15241
+ collectionMode
15242
+ observationMode
15200
15243
  }
15201
15244
  augmentedFilter {
15202
15245
  dateRange {
@@ -15288,6 +15331,8 @@ export const GetView = gql `
15288
15331
  hasFeeds
15289
15332
  hasCollections
15290
15333
  hasWorkflows
15334
+ collectionMode
15335
+ observationMode
15291
15336
  }
15292
15337
  }
15293
15338
  }
@@ -15396,6 +15441,8 @@ export const QueryViews = gql `
15396
15441
  hasFeeds
15397
15442
  hasCollections
15398
15443
  hasWorkflows
15444
+ collectionMode
15445
+ observationMode
15399
15446
  }
15400
15447
  augmentedFilter {
15401
15448
  dateRange {
@@ -15487,6 +15534,8 @@ export const QueryViews = gql `
15487
15534
  hasFeeds
15488
15535
  hasCollections
15489
15536
  hasWorkflows
15537
+ collectionMode
15538
+ observationMode
15490
15539
  }
15491
15540
  }
15492
15541
  }
@@ -15589,6 +15638,8 @@ export const UpdateView = gql `
15589
15638
  hasFeeds
15590
15639
  hasCollections
15591
15640
  hasWorkflows
15641
+ collectionMode
15642
+ observationMode
15592
15643
  }
15593
15644
  augmentedFilter {
15594
15645
  dateRange {
@@ -15680,6 +15731,8 @@ export const UpdateView = gql `
15680
15731
  hasFeeds
15681
15732
  hasCollections
15682
15733
  hasWorkflows
15734
+ collectionMode
15735
+ observationMode
15683
15736
  }
15684
15737
  }
15685
15738
  }
@@ -15781,6 +15834,8 @@ export const UpsertView = gql `
15781
15834
  hasFeeds
15782
15835
  hasCollections
15783
15836
  hasWorkflows
15837
+ collectionMode
15838
+ observationMode
15784
15839
  }
15785
15840
  augmentedFilter {
15786
15841
  dateRange {
@@ -15872,6 +15927,8 @@ export const UpsertView = gql `
15872
15927
  hasFeeds
15873
15928
  hasCollections
15874
15929
  hasWorkflows
15930
+ collectionMode
15931
+ observationMode
15875
15932
  }
15876
15933
  }
15877
15934
  }
@@ -800,6 +800,8 @@ export type AzureBlobFeedProperties = {
800
800
  accountName?: Maybe<Scalars['String']['output']>;
801
801
  /** Azure storage container name. */
802
802
  containerName?: Maybe<Scalars['String']['output']>;
803
+ /** Listing type: PAST for full listing, NEW for change feed. */
804
+ listType?: Maybe<BlobListingTypes>;
803
805
  /** Azure storage container prefix. */
804
806
  prefix?: Maybe<Scalars['String']['output']>;
805
807
  /** Azure storage access key. */
@@ -811,6 +813,8 @@ export type AzureBlobFeedPropertiesInput = {
811
813
  accountName: Scalars['String']['input'];
812
814
  /** Azure storage container name. */
813
815
  containerName: Scalars['String']['input'];
816
+ /** Listing type: PAST for full listing (default), NEW for change feed. */
817
+ listType?: InputMaybe<BlobListingTypes>;
814
818
  /** Azure storage container prefix. */
815
819
  prefix?: InputMaybe<Scalars['String']['input']>;
816
820
  /** Azure storage access key. */
@@ -822,6 +826,8 @@ export type AzureBlobFeedPropertiesUpdateInput = {
822
826
  accountName?: InputMaybe<Scalars['String']['input']>;
823
827
  /** Azure storage container name. */
824
828
  containerName?: InputMaybe<Scalars['String']['input']>;
829
+ /** Listing type: PAST for full listing (default), NEW for change feed. */
830
+ listType?: InputMaybe<BlobListingTypes>;
825
831
  /** Azure storage container prefix. */
826
832
  prefix?: InputMaybe<Scalars['String']['input']>;
827
833
  /** Azure storage access key. */
@@ -1144,6 +1150,13 @@ export declare enum BillableMetrics {
1144
1150
  Tokens = "TOKENS",
1145
1151
  Units = "UNITS"
1146
1152
  }
1153
+ /** Blob listing type */
1154
+ export declare enum BlobListingTypes {
1155
+ /** Read new/changed blobs via change feed */
1156
+ New = "NEW",
1157
+ /** Read all blobs (full listing) */
1158
+ Past = "PAST"
1159
+ }
1147
1160
  /** Represents a boolean result. */
1148
1161
  export type BooleanResult = {
1149
1162
  __typename?: 'BooleanResult';
@@ -2247,6 +2260,8 @@ export type ContentCriteria = {
2247
2260
  __typename?: 'ContentCriteria';
2248
2261
  /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics between each filter in list. */
2249
2262
  and?: Maybe<Array<ContentCriteriaLevel>>;
2263
+ /** Filter mode for collections. Any: match if in any listed collection. All: must be in all listed collections. Only: must be in listed collections and no others. Defaults to Any. */
2264
+ collectionMode?: Maybe<FilterMode>;
2250
2265
  /** Filter by collections. */
2251
2266
  collections?: Maybe<Array<EntityReference>>;
2252
2267
  /** Filter by contents. */
@@ -2277,6 +2292,8 @@ export type ContentCriteria = {
2277
2292
  hasWorkflows?: Maybe<Scalars['Boolean']['output']>;
2278
2293
  /** Filter by original date recent timespan. For example, a timespan of one day will return content authored in the last 24 hours. */
2279
2294
  inLast?: Maybe<Scalars['TimeSpan']['output']>;
2295
+ /** Filter mode for observations. Any: match if any observation matches. All: must have all listed observations. Only: must have only the listed observations. Defaults to All. */
2296
+ observationMode?: Maybe<FilterMode>;
2280
2297
  /** Filter by observations. */
2281
2298
  observations?: Maybe<Array<ObservationCriteria>>;
2282
2299
  /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics between each filter in list. */
@@ -2294,6 +2311,8 @@ export type ContentCriteria = {
2294
2311
  export type ContentCriteriaInput = {
2295
2312
  /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics between each filter in list. */
2296
2313
  and?: InputMaybe<Array<ContentCriteriaLevelInput>>;
2314
+ /** Filter mode for collections. Any: match if in any listed collection. All: must be in all listed collections. Only: must be in listed collections and no others. Defaults to Any. */
2315
+ collectionMode?: InputMaybe<FilterMode>;
2297
2316
  /** Filter by collections. */
2298
2317
  collections?: InputMaybe<Array<EntityReferenceInput>>;
2299
2318
  /** Filter by contents. */
@@ -2324,6 +2343,8 @@ export type ContentCriteriaInput = {
2324
2343
  hasWorkflows?: InputMaybe<Scalars['Boolean']['input']>;
2325
2344
  /** Filter by original date recent timespan. For example, a timespan of one day will return content authored in the last 24 hours. */
2326
2345
  inLast?: InputMaybe<Scalars['TimeSpan']['input']>;
2346
+ /** Filter mode for observations. Any: match if any observation matches. All: must have all listed observations. Only: must have only the listed observations. Defaults to All. */
2347
+ observationMode?: InputMaybe<FilterMode>;
2327
2348
  /** Filter by observations. */
2328
2349
  observations?: InputMaybe<Array<ObservationCriteriaInput>>;
2329
2350
  /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics between each filter in list. */
@@ -2456,6 +2477,8 @@ export type ContentFilter = {
2456
2477
  boundaries?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
2457
2478
  /** Filter by content C4ID hash. */
2458
2479
  c4id?: InputMaybe<Scalars['String']['input']>;
2480
+ /** Filter mode for collections. Any: match if in any listed collection. All: must be in all listed collections. Only: must be in listed collections and no others. Defaults to Any. */
2481
+ collectionMode?: InputMaybe<FilterMode>;
2459
2482
  /** Filter by collections. */
2460
2483
  collections?: InputMaybe<Array<EntityReferenceFilter>>;
2461
2484
  /** Filter by contents. */
@@ -2510,6 +2533,8 @@ export type ContentFilter = {
2510
2533
  name?: InputMaybe<Scalars['String']['input']>;
2511
2534
  /** When using similarity search, the number of similar items to be returned. Defaults to 100. */
2512
2535
  numberSimilar?: InputMaybe<Scalars['Int']['input']>;
2536
+ /** Filter mode for observations. Any: match if any observation matches. All: must have all listed observations. Only: must have only the listed observations. Defaults to All. */
2537
+ observationMode?: InputMaybe<FilterMode>;
2513
2538
  /** Filter by observations. */
2514
2539
  observations?: InputMaybe<Array<ObservationReferenceFilter>>;
2515
2540
  /** Skip the specified number of content(s) from the beginning of the result set. Only supported on keyword search. */
@@ -4151,6 +4176,39 @@ export type EntityReferenceInput = {
4151
4176
  /** The ID of the entity. */
4152
4177
  id: Scalars['ID']['input'];
4153
4178
  };
4179
+ /** Represents a relationship to another entity. */
4180
+ export type EntityRelationship = {
4181
+ __typename?: 'EntityRelationship';
4182
+ /** The relationship direction relative to the source entity. */
4183
+ direction: RelationshipDirections;
4184
+ /** The related entity. */
4185
+ entity: GraphNode;
4186
+ /** The relationship type (edge label). */
4187
+ relation: Scalars['String']['output'];
4188
+ };
4189
+ /** Filter for looking up entity relationships. */
4190
+ export type EntityRelationshipsFilter = {
4191
+ /** Disable project inheritance, only return user-scoped entities. Defaults to false. */
4192
+ disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
4193
+ /** The ID of the entity to lookup relationships for. */
4194
+ id: Scalars['ID']['input'];
4195
+ /** Whether to include full entity metadata (JSON-LD). Defaults to false. */
4196
+ includeMetadata?: InputMaybe<Scalars['Boolean']['input']>;
4197
+ /** Maximum number of relationships to return. Defaults to 100. */
4198
+ limit?: InputMaybe<Scalars['Int']['input']>;
4199
+ /** Filter by specific relationship types (edge labels). */
4200
+ relationshipTypes?: InputMaybe<Array<Scalars['String']['input']>>;
4201
+ };
4202
+ /** Represents the result of an entity relationship lookup. */
4203
+ export type EntityRelationshipsResult = {
4204
+ __typename?: 'EntityRelationshipsResult';
4205
+ /** The source entity. */
4206
+ entity?: Maybe<GraphNode>;
4207
+ /** The related entities with their relationship info. */
4208
+ relationships?: Maybe<Array<EntityRelationship>>;
4209
+ /** The total count of relationships returned. */
4210
+ totalCount: Scalars['Int']['output'];
4211
+ };
4154
4212
  /** Represents the entity resolution strategy for automatic duplicate detection and merging. */
4155
4213
  export type EntityResolutionStrategy = {
4156
4214
  __typename?: 'EntityResolutionStrategy';
@@ -4446,6 +4504,8 @@ export type EventFilter = {
4446
4504
  endDateRange?: InputMaybe<DateRangeFilter>;
4447
4505
  /** Filter by events. */
4448
4506
  events?: InputMaybe<Array<EntityReferenceFilter>>;
4507
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
4508
+ feedMode?: InputMaybe<FilterMode>;
4449
4509
  /** Filter by feed identifiers that created these observable entities. */
4450
4510
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
4451
4511
  /** Filter by observable H3 index. */
@@ -5274,6 +5334,15 @@ export declare enum FileTypes {
5274
5334
  /** Video file */
5275
5335
  Video = "VIDEO"
5276
5336
  }
5337
+ /** Filter matching mode for array fields */
5338
+ export declare enum FilterMode {
5339
+ /** Match only if the entity has ALL of the specified items (AND semantics). Entity can have additional items not in the filter list. */
5340
+ All = "ALL",
5341
+ /** Match if ANY of the specified items match (OR semantics). Entity can have additional items not in the filter list. */
5342
+ Any = "ANY",
5343
+ /** Match only if ALL items the entity has are within the specified list. Entity cannot have items outside the filter list. */
5344
+ Only = "ONLY"
5345
+ }
5277
5346
  /** Represents geometry metadata. */
5278
5347
  export type GeometryMetadata = {
5279
5348
  __typename?: 'GeometryMetadata';
@@ -6861,6 +6930,8 @@ export type InvestmentFilter = {
6861
6930
  direction?: InputMaybe<OrderDirectionTypes>;
6862
6931
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
6863
6932
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
6933
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
6934
+ feedMode?: InputMaybe<FilterMode>;
6864
6935
  /** Filter by feed identifiers that created these observable entities. */
6865
6936
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
6866
6937
  /** Filter by observable H3 index. */
@@ -7002,6 +7073,8 @@ export type InvestmentFundFilter = {
7002
7073
  direction?: InputMaybe<OrderDirectionTypes>;
7003
7074
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
7004
7075
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
7076
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
7077
+ feedMode?: InputMaybe<FilterMode>;
7005
7078
  /** Filter by feed identifiers that created these observable entities. */
7006
7079
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
7007
7080
  /** Filter by observable H3 index. */
@@ -7854,6 +7927,8 @@ export type MedicalConditionFilter = {
7854
7927
  direction?: InputMaybe<OrderDirectionTypes>;
7855
7928
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
7856
7929
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
7930
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
7931
+ feedMode?: InputMaybe<FilterMode>;
7857
7932
  /** Filter by feed identifiers that created these observable entities. */
7858
7933
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
7859
7934
  /** Filter by observable H3 index. */
@@ -8019,6 +8094,8 @@ export type MedicalContraindicationFilter = {
8019
8094
  direction?: InputMaybe<OrderDirectionTypes>;
8020
8095
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8021
8096
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8097
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8098
+ feedMode?: InputMaybe<FilterMode>;
8022
8099
  /** Filter by feed identifiers that created these observable entities. */
8023
8100
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8024
8101
  /** Filter by observable H3 index. */
@@ -8184,6 +8261,8 @@ export type MedicalDeviceFilter = {
8184
8261
  direction?: InputMaybe<OrderDirectionTypes>;
8185
8262
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8186
8263
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8264
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8265
+ feedMode?: InputMaybe<FilterMode>;
8187
8266
  /** Filter by feed identifiers that created these observable entities. */
8188
8267
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8189
8268
  /** Filter by observable H3 index. */
@@ -8393,6 +8472,8 @@ export type MedicalDrugClassFilter = {
8393
8472
  direction?: InputMaybe<OrderDirectionTypes>;
8394
8473
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8395
8474
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8475
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8476
+ feedMode?: InputMaybe<FilterMode>;
8396
8477
  /** Filter by feed identifiers that created these observable entities. */
8397
8478
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8398
8479
  /** Filter by observable H3 index. */
@@ -8514,6 +8595,8 @@ export type MedicalDrugFilter = {
8514
8595
  direction?: InputMaybe<OrderDirectionTypes>;
8515
8596
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8516
8597
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8598
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8599
+ feedMode?: InputMaybe<FilterMode>;
8517
8600
  /** Filter by feed identifiers that created these observable entities. */
8518
8601
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8519
8602
  /** Filter by observable H3 index. */
@@ -8679,6 +8762,8 @@ export type MedicalGuidelineFilter = {
8679
8762
  direction?: InputMaybe<OrderDirectionTypes>;
8680
8763
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8681
8764
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8765
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8766
+ feedMode?: InputMaybe<FilterMode>;
8682
8767
  /** Filter by feed identifiers that created these observable entities. */
8683
8768
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8684
8769
  /** Filter by observable H3 index. */
@@ -8844,6 +8929,8 @@ export type MedicalIndicationFilter = {
8844
8929
  direction?: InputMaybe<OrderDirectionTypes>;
8845
8930
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
8846
8931
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
8932
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
8933
+ feedMode?: InputMaybe<FilterMode>;
8847
8934
  /** Filter by feed identifiers that created these observable entities. */
8848
8935
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
8849
8936
  /** Filter by observable H3 index. */
@@ -9009,6 +9096,8 @@ export type MedicalProcedureFilter = {
9009
9096
  direction?: InputMaybe<OrderDirectionTypes>;
9010
9097
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
9011
9098
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
9099
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
9100
+ feedMode?: InputMaybe<FilterMode>;
9012
9101
  /** Filter by feed identifiers that created these observable entities. */
9013
9102
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
9014
9103
  /** Filter by observable H3 index. */
@@ -9176,6 +9265,8 @@ export type MedicalStudyFilter = {
9176
9265
  direction?: InputMaybe<OrderDirectionTypes>;
9177
9266
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
9178
9267
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
9268
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
9269
+ feedMode?: InputMaybe<FilterMode>;
9179
9270
  /** Filter by feed identifiers that created these observable entities. */
9180
9271
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
9181
9272
  /** Filter by observable H3 index. */
@@ -9345,6 +9436,8 @@ export type MedicalTestFilter = {
9345
9436
  direction?: InputMaybe<OrderDirectionTypes>;
9346
9437
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
9347
9438
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
9439
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
9440
+ feedMode?: InputMaybe<FilterMode>;
9348
9441
  /** Filter by feed identifiers that created these observable entities. */
9349
9442
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
9350
9443
  /** Filter by observable H3 index. */
@@ -9510,6 +9603,8 @@ export type MedicalTherapyFilter = {
9510
9603
  direction?: InputMaybe<OrderDirectionTypes>;
9511
9604
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
9512
9605
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
9606
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
9607
+ feedMode?: InputMaybe<FilterMode>;
9513
9608
  /** Filter by feed identifiers that created these observable entities. */
9514
9609
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
9515
9610
  /** Filter by observable H3 index. */
@@ -12752,6 +12847,8 @@ export type OrganizationFilter = {
12752
12847
  direction?: InputMaybe<OrderDirectionTypes>;
12753
12848
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
12754
12849
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
12850
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
12851
+ feedMode?: InputMaybe<FilterMode>;
12755
12852
  /** Filter by feed identifiers that created these observable entities. */
12756
12853
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
12757
12854
  /** Filter by observable H3 index. */
@@ -13140,6 +13237,8 @@ export type PersonFilter = {
13140
13237
  email?: InputMaybe<Scalars['String']['input']>;
13141
13238
  /** Filter by the family name of the person. */
13142
13239
  familyName?: InputMaybe<Scalars['String']['input']>;
13240
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
13241
+ feedMode?: InputMaybe<FilterMode>;
13143
13242
  /** Filter by feed identifiers that created these observable entities. */
13144
13243
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
13145
13244
  /** Filter by the given name of the person. */
@@ -13378,6 +13477,8 @@ export type PlaceFilter = {
13378
13477
  direction?: InputMaybe<OrderDirectionTypes>;
13379
13478
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
13380
13479
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
13480
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
13481
+ feedMode?: InputMaybe<FilterMode>;
13381
13482
  /** Filter by feed identifiers that created these observable entities. */
13382
13483
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
13383
13484
  /** Filter by observable H3 index. */
@@ -13711,6 +13812,8 @@ export type ProductFilter = {
13711
13812
  direction?: InputMaybe<OrderDirectionTypes>;
13712
13813
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
13713
13814
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
13815
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
13816
+ feedMode?: InputMaybe<FilterMode>;
13714
13817
  /** Filter by feed identifiers that created these observable entities. */
13715
13818
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
13716
13819
  /** Filter by observable H3 index. */
@@ -14547,6 +14650,8 @@ export type Query = {
14547
14650
  lookupContents?: Maybe<LookupContentsResults>;
14548
14651
  /** Lookup credit usage given tenant correlation identifier. */
14549
14652
  lookupCredits?: Maybe<ProjectCredits>;
14653
+ /** Lookup entity relationships via direct Gremlin traversal. */
14654
+ lookupEntity?: Maybe<EntityRelationshipsResult>;
14550
14655
  /** Lookup usage records given tenant correlation identifier. */
14551
14656
  lookupUsage?: Maybe<Array<Maybe<ProjectUsageRecord>>>;
14552
14657
  /** Enumerates the web pages at or beneath the provided URL using web sitemap. */
@@ -14964,6 +15069,10 @@ export type QueryLookupCreditsArgs = {
14964
15069
  duration?: InputMaybe<Scalars['TimeSpan']['input']>;
14965
15070
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
14966
15071
  };
15072
+ export type QueryLookupEntityArgs = {
15073
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15074
+ filter: EntityRelationshipsFilter;
15075
+ };
14967
15076
  export type QueryLookupUsageArgs = {
14968
15077
  correlationId: Scalars['String']['input'];
14969
15078
  duration?: InputMaybe<Scalars['TimeSpan']['input']>;
@@ -15412,6 +15521,13 @@ export declare enum RegexSourceTypes {
15412
15521
  /** Content metadata */
15413
15522
  Metadata = "METADATA"
15414
15523
  }
15524
+ /** Relationship direction */
15525
+ export declare enum RelationshipDirections {
15526
+ /** Incoming relationship (edge points to this entity) */
15527
+ Incoming = "INCOMING",
15528
+ /** Outgoing relationship (edge points from this entity) */
15529
+ Outgoing = "OUTGOING"
15530
+ }
15415
15531
  /** Represents a rendition. */
15416
15532
  export type Rendition = {
15417
15533
  __typename?: 'Rendition';
@@ -15628,6 +15744,8 @@ export type RepoFilter = {
15628
15744
  direction?: InputMaybe<OrderDirectionTypes>;
15629
15745
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
15630
15746
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
15747
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
15748
+ feedMode?: InputMaybe<FilterMode>;
15631
15749
  /** Filter by feed identifiers that created these observable entities. */
15632
15750
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
15633
15751
  /** Filter by observable H3 index. */
@@ -16384,6 +16502,8 @@ export type SoftwareFilter = {
16384
16502
  direction?: InputMaybe<OrderDirectionTypes>;
16385
16503
  /** Whether to disable inheritance from project to owner, upon observable entity retrieval. Defaults to False. */
16386
16504
  disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
16505
+ /** Filter mode for feeds. Any: match if from any listed feed. All: must be from all listed feeds. Only: must be from listed feeds and no others. Defaults to Any. */
16506
+ feedMode?: InputMaybe<FilterMode>;
16387
16507
  /** Filter by feed identifiers that created these observable entities. */
16388
16508
  feeds?: InputMaybe<Array<EntityReferenceFilter>>;
16389
16509
  /** Filter by observable H3 index. */
@@ -17986,6 +18106,8 @@ export type GetAlertQuery = {
17986
18106
  hasFeeds?: boolean | null;
17987
18107
  hasCollections?: boolean | null;
17988
18108
  hasWorkflows?: boolean | null;
18109
+ collectionMode?: FilterMode | null;
18110
+ observationMode?: FilterMode | null;
17989
18111
  dateRange?: {
17990
18112
  __typename?: 'DateRange';
17991
18113
  from?: any | null;
@@ -18218,6 +18340,8 @@ export type QueryAlertsQuery = {
18218
18340
  hasFeeds?: boolean | null;
18219
18341
  hasCollections?: boolean | null;
18220
18342
  hasWorkflows?: boolean | null;
18343
+ collectionMode?: FilterMode | null;
18344
+ observationMode?: FilterMode | null;
18221
18345
  dateRange?: {
18222
18346
  __typename?: 'DateRange';
18223
18347
  from?: any | null;
@@ -20868,6 +20992,36 @@ export type LookupContentsQuery = {
20868
20992
  } | null> | null;
20869
20993
  } | null;
20870
20994
  };
20995
+ export type LookupEntityQueryVariables = Exact<{
20996
+ filter: EntityRelationshipsFilter;
20997
+ correlationId?: InputMaybe<Scalars['String']['input']>;
20998
+ }>;
20999
+ export type LookupEntityQuery = {
21000
+ __typename?: 'Query';
21001
+ lookupEntity?: {
21002
+ __typename?: 'EntityRelationshipsResult';
21003
+ totalCount: number;
21004
+ entity?: {
21005
+ __typename?: 'GraphNode';
21006
+ id: string;
21007
+ name: string;
21008
+ type: EntityTypes;
21009
+ metadata?: string | null;
21010
+ } | null;
21011
+ relationships?: Array<{
21012
+ __typename?: 'EntityRelationship';
21013
+ relation: string;
21014
+ direction: RelationshipDirections;
21015
+ entity: {
21016
+ __typename?: 'GraphNode';
21017
+ id: string;
21018
+ name: string;
21019
+ type: EntityTypes;
21020
+ metadata?: string | null;
21021
+ };
21022
+ }> | null;
21023
+ } | null;
21024
+ };
20871
21025
  export type PublishContentsMutationVariables = Exact<{
20872
21026
  summaryPrompt?: InputMaybe<Scalars['String']['input']>;
20873
21027
  publishPrompt: Scalars['String']['input'];
@@ -23790,6 +23944,8 @@ export type GetConversationQuery = {
23790
23944
  hasFeeds?: boolean | null;
23791
23945
  hasCollections?: boolean | null;
23792
23946
  hasWorkflows?: boolean | null;
23947
+ collectionMode?: FilterMode | null;
23948
+ observationMode?: FilterMode | null;
23793
23949
  dateRange?: {
23794
23950
  __typename?: 'DateRange';
23795
23951
  from?: any | null;
@@ -23907,6 +24063,8 @@ export type GetConversationQuery = {
23907
24063
  hasFeeds?: boolean | null;
23908
24064
  hasCollections?: boolean | null;
23909
24065
  hasWorkflows?: boolean | null;
24066
+ collectionMode?: FilterMode | null;
24067
+ observationMode?: FilterMode | null;
23910
24068
  dateRange?: {
23911
24069
  __typename?: 'DateRange';
23912
24070
  from?: any | null;
@@ -24857,6 +25015,8 @@ export type QueryConversationsQuery = {
24857
25015
  hasFeeds?: boolean | null;
24858
25016
  hasCollections?: boolean | null;
24859
25017
  hasWorkflows?: boolean | null;
25018
+ collectionMode?: FilterMode | null;
25019
+ observationMode?: FilterMode | null;
24860
25020
  dateRange?: {
24861
25021
  __typename?: 'DateRange';
24862
25022
  from?: any | null;
@@ -24974,6 +25134,8 @@ export type QueryConversationsQuery = {
24974
25134
  hasFeeds?: boolean | null;
24975
25135
  hasCollections?: boolean | null;
24976
25136
  hasWorkflows?: boolean | null;
25137
+ collectionMode?: FilterMode | null;
25138
+ observationMode?: FilterMode | null;
24977
25139
  dateRange?: {
24978
25140
  __typename?: 'DateRange';
24979
25141
  from?: any | null;
@@ -26287,6 +26449,7 @@ export type GetFeedQuery = {
26287
26449
  accountName?: string | null;
26288
26450
  containerName?: string | null;
26289
26451
  prefix?: string | null;
26452
+ listType?: BlobListingTypes | null;
26290
26453
  } | null;
26291
26454
  azureFile?: {
26292
26455
  __typename?: 'AzureFileFeedProperties';
@@ -26786,6 +26949,7 @@ export type QueryFeedsQuery = {
26786
26949
  accountName?: string | null;
26787
26950
  containerName?: string | null;
26788
26951
  prefix?: string | null;
26952
+ listType?: BlobListingTypes | null;
26789
26953
  } | null;
26790
26954
  azureFile?: {
26791
26955
  __typename?: 'AzureFileFeedProperties';
@@ -35366,6 +35530,8 @@ export type CreateViewMutation = {
35366
35530
  hasFeeds?: boolean | null;
35367
35531
  hasCollections?: boolean | null;
35368
35532
  hasWorkflows?: boolean | null;
35533
+ collectionMode?: FilterMode | null;
35534
+ observationMode?: FilterMode | null;
35369
35535
  dateRange?: {
35370
35536
  __typename?: 'DateRange';
35371
35537
  from?: any | null;
@@ -35483,6 +35649,8 @@ export type CreateViewMutation = {
35483
35649
  hasFeeds?: boolean | null;
35484
35650
  hasCollections?: boolean | null;
35485
35651
  hasWorkflows?: boolean | null;
35652
+ collectionMode?: FilterMode | null;
35653
+ observationMode?: FilterMode | null;
35486
35654
  dateRange?: {
35487
35655
  __typename?: 'DateRange';
35488
35656
  from?: any | null;
@@ -35656,6 +35824,8 @@ export type GetViewQuery = {
35656
35824
  hasFeeds?: boolean | null;
35657
35825
  hasCollections?: boolean | null;
35658
35826
  hasWorkflows?: boolean | null;
35827
+ collectionMode?: FilterMode | null;
35828
+ observationMode?: FilterMode | null;
35659
35829
  dateRange?: {
35660
35830
  __typename?: 'DateRange';
35661
35831
  from?: any | null;
@@ -35773,6 +35943,8 @@ export type GetViewQuery = {
35773
35943
  hasFeeds?: boolean | null;
35774
35944
  hasCollections?: boolean | null;
35775
35945
  hasWorkflows?: boolean | null;
35946
+ collectionMode?: FilterMode | null;
35947
+ observationMode?: FilterMode | null;
35776
35948
  dateRange?: {
35777
35949
  __typename?: 'DateRange';
35778
35950
  from?: any | null;
@@ -35913,6 +36085,8 @@ export type QueryViewsQuery = {
35913
36085
  hasFeeds?: boolean | null;
35914
36086
  hasCollections?: boolean | null;
35915
36087
  hasWorkflows?: boolean | null;
36088
+ collectionMode?: FilterMode | null;
36089
+ observationMode?: FilterMode | null;
35916
36090
  dateRange?: {
35917
36091
  __typename?: 'DateRange';
35918
36092
  from?: any | null;
@@ -36030,6 +36204,8 @@ export type QueryViewsQuery = {
36030
36204
  hasFeeds?: boolean | null;
36031
36205
  hasCollections?: boolean | null;
36032
36206
  hasWorkflows?: boolean | null;
36207
+ collectionMode?: FilterMode | null;
36208
+ observationMode?: FilterMode | null;
36033
36209
  dateRange?: {
36034
36210
  __typename?: 'DateRange';
36035
36211
  from?: any | null;
@@ -36161,6 +36337,8 @@ export type UpdateViewMutation = {
36161
36337
  hasFeeds?: boolean | null;
36162
36338
  hasCollections?: boolean | null;
36163
36339
  hasWorkflows?: boolean | null;
36340
+ collectionMode?: FilterMode | null;
36341
+ observationMode?: FilterMode | null;
36164
36342
  dateRange?: {
36165
36343
  __typename?: 'DateRange';
36166
36344
  from?: any | null;
@@ -36278,6 +36456,8 @@ export type UpdateViewMutation = {
36278
36456
  hasFeeds?: boolean | null;
36279
36457
  hasCollections?: boolean | null;
36280
36458
  hasWorkflows?: boolean | null;
36459
+ collectionMode?: FilterMode | null;
36460
+ observationMode?: FilterMode | null;
36281
36461
  dateRange?: {
36282
36462
  __typename?: 'DateRange';
36283
36463
  from?: any | null;
@@ -36408,6 +36588,8 @@ export type UpsertViewMutation = {
36408
36588
  hasFeeds?: boolean | null;
36409
36589
  hasCollections?: boolean | null;
36410
36590
  hasWorkflows?: boolean | null;
36591
+ collectionMode?: FilterMode | null;
36592
+ observationMode?: FilterMode | null;
36411
36593
  dateRange?: {
36412
36594
  __typename?: 'DateRange';
36413
36595
  from?: any | null;
@@ -36525,6 +36707,8 @@ export type UpsertViewMutation = {
36525
36707
  hasFeeds?: boolean | null;
36526
36708
  hasCollections?: boolean | null;
36527
36709
  hasWorkflows?: boolean | null;
36710
+ collectionMode?: FilterMode | null;
36711
+ observationMode?: FilterMode | null;
36528
36712
  dateRange?: {
36529
36713
  __typename?: 'DateRange';
36530
36714
  from?: any | null;
@@ -223,6 +223,14 @@ export var BillableMetrics;
223
223
  BillableMetrics["Tokens"] = "TOKENS";
224
224
  BillableMetrics["Units"] = "UNITS";
225
225
  })(BillableMetrics || (BillableMetrics = {}));
226
+ /** Blob listing type */
227
+ export var BlobListingTypes;
228
+ (function (BlobListingTypes) {
229
+ /** Read new/changed blobs via change feed */
230
+ BlobListingTypes["New"] = "NEW";
231
+ /** Read all blobs (full listing) */
232
+ BlobListingTypes["Past"] = "PAST";
233
+ })(BlobListingTypes || (BlobListingTypes = {}));
226
234
  /** Box authentication type */
227
235
  export var BoxAuthenticationTypes;
228
236
  (function (BoxAuthenticationTypes) {
@@ -1108,6 +1116,16 @@ export var FileTypes;
1108
1116
  /** Video file */
1109
1117
  FileTypes["Video"] = "VIDEO";
1110
1118
  })(FileTypes || (FileTypes = {}));
1119
+ /** Filter matching mode for array fields */
1120
+ export var FilterMode;
1121
+ (function (FilterMode) {
1122
+ /** Match only if the entity has ALL of the specified items (AND semantics). Entity can have additional items not in the filter list. */
1123
+ FilterMode["All"] = "ALL";
1124
+ /** Match if ANY of the specified items match (OR semantics). Entity can have additional items not in the filter list. */
1125
+ FilterMode["Any"] = "ANY";
1126
+ /** Match only if ALL items the entity has are within the specified list. Entity cannot have items outside the filter list. */
1127
+ FilterMode["Only"] = "ONLY";
1128
+ })(FilterMode || (FilterMode = {}));
1111
1129
  /** GitHub authentication type */
1112
1130
  export var GitHubAuthenticationTypes;
1113
1131
  (function (GitHubAuthenticationTypes) {
@@ -2130,6 +2148,14 @@ export var RegexSourceTypes;
2130
2148
  /** Content metadata */
2131
2149
  RegexSourceTypes["Metadata"] = "METADATA";
2132
2150
  })(RegexSourceTypes || (RegexSourceTypes = {}));
2151
+ /** Relationship direction */
2152
+ export var RelationshipDirections;
2153
+ (function (RelationshipDirections) {
2154
+ /** Incoming relationship (edge points to this entity) */
2155
+ RelationshipDirections["Incoming"] = "INCOMING";
2156
+ /** Outgoing relationship (edge points from this entity) */
2157
+ RelationshipDirections["Outgoing"] = "OUTGOING";
2158
+ })(RelationshipDirections || (RelationshipDirections = {}));
2133
2159
  /** Rendition type */
2134
2160
  export var RenditionTypes;
2135
2161
  (function (RenditionTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20251129003",
3
+ "version": "1.0.20251204001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",