graphlit-client 1.0.20240516001 → 1.0.20240528001

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.
@@ -656,6 +656,7 @@ exports.GetContent = (0, graphql_tag_1.default) `
656
656
  id
657
657
  name
658
658
  }
659
+ relatedType
659
660
  relation
660
661
  occurrences {
661
662
  type
@@ -1028,6 +1029,7 @@ exports.QueryContents = (0, graphql_tag_1.default) `
1028
1029
  id
1029
1030
  name
1030
1031
  }
1032
+ relatedType
1031
1033
  relation
1032
1034
  occurrences {
1033
1035
  type
@@ -1257,6 +1259,7 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
1257
1259
  id
1258
1260
  name
1259
1261
  }
1262
+ relatedType
1260
1263
  relation
1261
1264
  occurrences {
1262
1265
  type
@@ -1577,6 +1580,7 @@ exports.PromptConversation = (0, graphql_tag_1.default) `
1577
1580
  graph {
1578
1581
  nodes {
1579
1582
  id
1583
+ name
1580
1584
  type
1581
1585
  metadata
1582
1586
  }
@@ -1120,6 +1120,8 @@ export type Content = {
1120
1120
  /** Represents a content filter. */
1121
1121
  export type ContentCriteria = {
1122
1122
  __typename?: 'ContentCriteria';
1123
+ /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics between each filter in list. */
1124
+ and?: Maybe<Array<ContentCriteriaLevel>>;
1123
1125
  /** Filter by collections. */
1124
1126
  collections?: Maybe<Array<EntityReference>>;
1125
1127
  /** Filter by similar contents. */
@@ -1134,6 +1136,8 @@ export type ContentCriteria = {
1134
1136
  fileTypes?: Maybe<Array<Maybe<FileTypes>>>;
1135
1137
  /** Filter by observations. */
1136
1138
  observations?: Maybe<Array<ObservationCriteria>>;
1139
+ /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics between each filter in list. */
1140
+ or?: Maybe<Array<ContentCriteriaLevel>>;
1137
1141
  /** Filter by content types. */
1138
1142
  types?: Maybe<Array<ContentTypes>>;
1139
1143
  /** Filter by workflows. */
@@ -1141,6 +1145,8 @@ export type ContentCriteria = {
1141
1145
  };
1142
1146
  /** Represents a content filter. */
1143
1147
  export type ContentCriteriaInput = {
1148
+ /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics between each filter in list. */
1149
+ and?: InputMaybe<Array<ContentCriteriaLevelInput>>;
1144
1150
  /** Filter by collections. */
1145
1151
  collections?: InputMaybe<Array<EntityReferenceInput>>;
1146
1152
  /** Filter by similar contents. */
@@ -1155,11 +1161,36 @@ export type ContentCriteriaInput = {
1155
1161
  fileTypes?: InputMaybe<Array<FileTypes>>;
1156
1162
  /** Filter by observations. */
1157
1163
  observations?: InputMaybe<Array<ObservationCriteriaInput>>;
1164
+ /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics between each filter in list. */
1165
+ or?: InputMaybe<Array<ContentCriteriaLevelInput>>;
1158
1166
  /** Filter by content types. */
1159
1167
  types?: InputMaybe<Array<ContentTypes>>;
1160
1168
  /** Filter by workflows. */
1161
1169
  workflows?: InputMaybe<Array<EntityReferenceInput>>;
1162
1170
  };
1171
+ /** Represents a filter level for contents. */
1172
+ export type ContentCriteriaLevel = {
1173
+ __typename?: 'ContentCriteriaLevel';
1174
+ /** Filter by collections. */
1175
+ collections?: Maybe<Array<EntityReference>>;
1176
+ /** Filter by feeds. */
1177
+ feeds?: Maybe<Array<EntityReference>>;
1178
+ /** Filter by observations. */
1179
+ observations?: Maybe<Array<ObservationCriteria>>;
1180
+ /** Filter by workflows. */
1181
+ workflows?: Maybe<Array<EntityReference>>;
1182
+ };
1183
+ /** Represents a filter level for contents. */
1184
+ export type ContentCriteriaLevelInput = {
1185
+ /** Filter by collections. */
1186
+ collections?: InputMaybe<Array<EntityReferenceInput>>;
1187
+ /** Filter by feeds. */
1188
+ feeds?: InputMaybe<Array<EntityReferenceInput>>;
1189
+ /** Filter by observations. */
1190
+ observations?: InputMaybe<Array<ObservationCriteriaInput>>;
1191
+ /** Filter by workflows. */
1192
+ workflows?: InputMaybe<Array<EntityReferenceInput>>;
1193
+ };
1163
1194
  /** Represents a content facet. */
1164
1195
  export type ContentFacet = {
1165
1196
  __typename?: 'ContentFacet';
@@ -1250,6 +1281,8 @@ export declare enum ContentFacetTypes {
1250
1281
  }
1251
1282
  /** Represents a filter for contents. */
1252
1283
  export type ContentFilter = {
1284
+ /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics between each filter in list. */
1285
+ and?: InputMaybe<Array<InputMaybe<ContentFilterLevel>>>;
1253
1286
  /** Filter by geo-boundaries, as GeoJSON Feature with Polygon geometry. */
1254
1287
  boundaries?: InputMaybe<Array<InputMaybe<Scalars['JSON']['input']>>>;
1255
1288
  /** Filter by collections. */
@@ -1286,6 +1319,8 @@ export type ContentFilter = {
1286
1319
  observations?: InputMaybe<Array<ObservationReferenceFilter>>;
1287
1320
  /** Skip the specified number of content(s) from the beginning of the result set. */
1288
1321
  offset?: InputMaybe<Scalars['Int']['input']>;
1322
+ /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics between each filter in list. */
1323
+ or?: InputMaybe<Array<InputMaybe<ContentFilterLevel>>>;
1289
1324
  /** The sort order for query results. */
1290
1325
  orderBy?: InputMaybe<OrderByTypes>;
1291
1326
  /** Filter by original date range. */
@@ -1305,6 +1340,17 @@ export type ContentFilter = {
1305
1340
  /** Filter by workflows. */
1306
1341
  workflows?: InputMaybe<Array<EntityReferenceFilter>>;
1307
1342
  };
1343
+ /** Represents a filter level for contents. */
1344
+ export type ContentFilterLevel = {
1345
+ /** Filter by collections. */
1346
+ collections?: InputMaybe<Array<EntityReferenceFilter>>;
1347
+ /** Filter by feeds. */
1348
+ feeds?: InputMaybe<Array<EntityReferenceFilter>>;
1349
+ /** Filter by observations. */
1350
+ observations?: InputMaybe<Array<ObservationReferenceFilter>>;
1351
+ /** Filter by workflows. */
1352
+ workflows?: InputMaybe<Array<EntityReferenceFilter>>;
1353
+ };
1308
1354
  /** Represents the configuration for retrieving the knowledge graph. */
1309
1355
  export type ContentGraphInput = {
1310
1356
  /** The observable types. */
@@ -3385,17 +3431,25 @@ export declare enum ImageProjectionTypes {
3385
3431
  /** Represents an ingestion content filter. */
3386
3432
  export type IngestionContentFilter = {
3387
3433
  __typename?: 'IngestionContentFilter';
3434
+ /** The list of regular expressions for allowed URL paths, i.e. "^/public/blogs/.*". */
3435
+ allowedPaths?: Maybe<Array<Scalars['String']['output']>>;
3436
+ /** The list of regular expressions for excluded URL paths, i.e. "^/internal/private/.*". */
3437
+ excludedPaths?: Maybe<Array<Scalars['String']['output']>>;
3388
3438
  /** Filter by file types. */
3389
- fileTypes?: Maybe<Array<Maybe<FileTypes>>>;
3439
+ fileTypes?: Maybe<Array<FileTypes>>;
3390
3440
  /** Filter by content types. */
3391
- types?: Maybe<Array<Maybe<ContentTypes>>>;
3441
+ types?: Maybe<Array<ContentTypes>>;
3392
3442
  };
3393
3443
  /** Represents an ingestion content filter. */
3394
3444
  export type IngestionContentFilterInput = {
3445
+ /** The list of regular expressions for allowed URL paths, i.e. "^/public/blogs/.*". */
3446
+ allowedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
3447
+ /** The list of regular expressions for excluded URL paths, i.e. "^/internal/private/.*". */
3448
+ excludedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
3395
3449
  /** Filter by file types. */
3396
- fileTypes?: InputMaybe<Array<InputMaybe<FileTypes>>>;
3450
+ fileTypes?: InputMaybe<Array<FileTypes>>;
3397
3451
  /** Filter by content types. */
3398
- types?: InputMaybe<Array<InputMaybe<ContentTypes>>>;
3452
+ types?: InputMaybe<Array<ContentTypes>>;
3399
3453
  };
3400
3454
  /** Represents the ingestion workflow stage. */
3401
3455
  export type IngestionWorkflowStage = {
@@ -3683,6 +3737,8 @@ export type LinkStrategy = {
3683
3737
  allowedFiles?: Maybe<Array<FileTypes>>;
3684
3738
  /** The allowed link types. */
3685
3739
  allowedLinks?: Maybe<Array<LinkTypes>>;
3740
+ /** The list of regular expressions for URL paths to be crawled, i.e. "^/public/blogs/.*". */
3741
+ allowedPaths?: Maybe<Array<Scalars['String']['output']>>;
3686
3742
  /** Whether link crawling is enabled. */
3687
3743
  enableCrawling?: Maybe<Scalars['Boolean']['output']>;
3688
3744
  /** The list of DNS domains to not be crawled, i.e. example.com. */
@@ -3691,6 +3747,8 @@ export type LinkStrategy = {
3691
3747
  excludedFiles?: Maybe<Array<FileTypes>>;
3692
3748
  /** The excluded link types. */
3693
3749
  excludedLinks?: Maybe<Array<LinkTypes>>;
3750
+ /** The list of regular expressions for URL paths to not be crawled, i.e. "^/internal/private/.*". */
3751
+ excludedPaths?: Maybe<Array<Scalars['String']['output']>>;
3694
3752
  /** The maximum number of links to be crawled. */
3695
3753
  maximumLinks?: Maybe<Scalars['Int']['output']>;
3696
3754
  };
@@ -3704,6 +3762,8 @@ export type LinkStrategyInput = {
3704
3762
  allowedFiles?: InputMaybe<Array<FileTypes>>;
3705
3763
  /** The allowed link types. */
3706
3764
  allowedLinks?: InputMaybe<Array<LinkTypes>>;
3765
+ /** The list of regular expressions for URL paths to be crawled, i.e. "^/public/blogs/.*". */
3766
+ allowedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
3707
3767
  /** Whether link crawling is enabled. */
3708
3768
  enableCrawling?: InputMaybe<Scalars['Boolean']['input']>;
3709
3769
  /** The list of DNS domains to not be crawled, i.e. example.com. */
@@ -3712,6 +3772,8 @@ export type LinkStrategyInput = {
3712
3772
  excludedFiles?: InputMaybe<Array<FileTypes>>;
3713
3773
  /** The excluded link types. */
3714
3774
  excludedLinks?: InputMaybe<Array<LinkTypes>>;
3775
+ /** The list of regular expressions for URL paths to not be crawled, i.e. "^/internal/private/.*". */
3776
+ excludedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
3715
3777
  /** The maximum number of links to be crawled. */
3716
3778
  maximumLinks?: InputMaybe<Scalars['Int']['input']>;
3717
3779
  };
@@ -3799,6 +3861,8 @@ export declare enum LinkTypes {
3799
3861
  Wikimedia = "WIKIMEDIA",
3800
3862
  /** Wikipedia link */
3801
3863
  Wikipedia = "WIKIPEDIA",
3864
+ /** X link */
3865
+ X = "X",
3802
3866
  /** YouTube link */
3803
3867
  YouTube = "YOU_TUBE"
3804
3868
  }
@@ -4932,6 +4996,8 @@ export type Observation = {
4932
4996
  owner: Owner;
4933
4997
  /** The related entity, optional. */
4934
4998
  related?: Maybe<NamedEntityReference>;
4999
+ /** The related entity type, optional. */
5000
+ relatedType?: Maybe<ObservableTypes>;
4935
5001
  /** The relationship between the observed entity and related entity, optional. */
4936
5002
  relation?: Maybe<Scalars['String']['output']>;
4937
5003
  /** The state of the observation (i.e. created, finished). */
@@ -4968,6 +5034,8 @@ export type ObservationInput = {
4968
5034
  occurrences: Array<ObservationOccurrenceInput>;
4969
5035
  /** The related entity, optional. */
4970
5036
  related?: InputMaybe<NamedEntityReferenceInput>;
5037
+ /** The related entity type. */
5038
+ relatedType?: InputMaybe<ObservableTypes>;
4971
5039
  /** The relationship between the observed entity and related entity, optional. */
4972
5040
  relation?: InputMaybe<Scalars['String']['input']>;
4973
5041
  /** The observed entity type. */
@@ -5023,6 +5091,8 @@ export type ObservationUpdateInput = {
5023
5091
  occurrences?: InputMaybe<Array<ObservationOccurrenceInput>>;
5024
5092
  /** The related entity, optional. */
5025
5093
  related?: InputMaybe<NamedEntityReferenceInput>;
5094
+ /** The related entity type. */
5095
+ relatedType?: InputMaybe<ObservableTypes>;
5026
5096
  /** The relationship between the observed entity and related entity, optional. */
5027
5097
  relation?: InputMaybe<Scalars['String']['input']>;
5028
5098
  /** The observed entity type. */
@@ -6692,6 +6762,8 @@ export type QueryCountWorkflowsArgs = {
6692
6762
  };
6693
6763
  export type QueryCreditsArgs = {
6694
6764
  duration: Scalars['TimeSpan']['input'];
6765
+ limit?: InputMaybe<Scalars['Int']['input']>;
6766
+ offset?: InputMaybe<Scalars['Int']['input']>;
6695
6767
  startDate: Scalars['DateTime']['input'];
6696
6768
  };
6697
6769
  export type QueryEventArgs = {
@@ -6835,6 +6907,8 @@ export type QuerySpecificationsArgs = {
6835
6907
  };
6836
6908
  export type QueryUsageArgs = {
6837
6909
  duration: Scalars['TimeSpan']['input'];
6910
+ limit?: InputMaybe<Scalars['Int']['input']>;
6911
+ offset?: InputMaybe<Scalars['Int']['input']>;
6838
6912
  startDate: Scalars['DateTime']['input'];
6839
6913
  };
6840
6914
  export type QueryWorkflowArgs = {
@@ -8159,6 +8233,10 @@ export type VideoMetadataInput = {
8159
8233
  /** Represents web feed properties. */
8160
8234
  export type WebFeedProperties = {
8161
8235
  __typename?: 'WebFeedProperties';
8236
+ /** The list of regular expressions for URL paths to be crawled, i.e. "^/public/blogs/.*". */
8237
+ allowedPaths?: Maybe<Array<Scalars['String']['output']>>;
8238
+ /** The list of regular expressions for URL paths to not be crawled, i.e. "^/internal/private/.*". */
8239
+ excludedPaths?: Maybe<Array<Scalars['String']['output']>>;
8162
8240
  /** Whether to include files referenced by the web sitemap, defaults to false. */
8163
8241
  includeFiles?: Maybe<Scalars['Boolean']['output']>;
8164
8242
  /** The limit of items to be read from feed, defaults to 100. */
@@ -8168,6 +8246,10 @@ export type WebFeedProperties = {
8168
8246
  };
8169
8247
  /** Represents web feed properties. */
8170
8248
  export type WebFeedPropertiesInput = {
8249
+ /** The list of regular expressions for URL paths to be crawled, i.e. "^/public/blogs/.*". */
8250
+ allowedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
8251
+ /** The list of regular expressions for URL paths to not be crawled, i.e. "^/internal/private/.*". */
8252
+ excludedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
8171
8253
  /** Whether to include files referenced by the web sitemap, defaults to false. */
8172
8254
  includeFiles?: InputMaybe<Scalars['Boolean']['input']>;
8173
8255
  /** The limit of items to be read from feed, defaults to 100. */
@@ -8177,6 +8259,10 @@ export type WebFeedPropertiesInput = {
8177
8259
  };
8178
8260
  /** Represents web feed properties. */
8179
8261
  export type WebFeedPropertiesUpdateInput = {
8262
+ /** The list of regular expressions for URL paths to be crawled, i.e. "^/public/blogs/.*". */
8263
+ allowedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
8264
+ /** The list of regular expressions for URL paths to not be crawled, i.e. "^/internal/private/.*". */
8265
+ excludedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
8180
8266
  /** Whether to include files referenced by the web sitemap, defaults to false. */
8181
8267
  includeFiles?: InputMaybe<Scalars['Boolean']['input']>;
8182
8268
  /** The limit of items to be read from feed, defaults to 100. */
@@ -9140,6 +9226,7 @@ export type GetContentQuery = {
9140
9226
  __typename?: 'Observation';
9141
9227
  id: string;
9142
9228
  type: ObservableTypes;
9229
+ relatedType?: ObservableTypes | null;
9143
9230
  relation?: string | null;
9144
9231
  state: EntityState;
9145
9232
  observable: {
@@ -9557,6 +9644,7 @@ export type QueryContentsQuery = {
9557
9644
  __typename?: 'Observation';
9558
9645
  id: string;
9559
9646
  type: ObservableTypes;
9647
+ relatedType?: ObservableTypes | null;
9560
9648
  relation?: string | null;
9561
9649
  state: EntityState;
9562
9650
  observable: {
@@ -9819,6 +9907,7 @@ export type QueryContentsFacetsQuery = {
9819
9907
  __typename?: 'Observation';
9820
9908
  id: string;
9821
9909
  type: ObservableTypes;
9910
+ relatedType?: ObservableTypes | null;
9822
9911
  relation?: string | null;
9823
9912
  state: EntityState;
9824
9913
  observable: {
@@ -10226,6 +10315,7 @@ export type PromptConversationMutation = {
10226
10315
  nodes?: Array<{
10227
10316
  __typename?: 'GraphNode';
10228
10317
  id: string;
10318
+ name: string;
10229
10319
  type: EntityTypes;
10230
10320
  metadata?: string | null;
10231
10321
  } | null> | null;
@@ -12433,8 +12523,8 @@ export type CreateWorkflowMutation = {
12433
12523
  __typename?: 'IngestionWorkflowStage';
12434
12524
  if?: {
12435
12525
  __typename?: 'IngestionContentFilter';
12436
- types?: Array<ContentTypes | null> | null;
12437
- fileTypes?: Array<FileTypes | null> | null;
12526
+ types?: Array<ContentTypes> | null;
12527
+ fileTypes?: Array<FileTypes> | null;
12438
12528
  } | null;
12439
12529
  collections?: Array<{
12440
12530
  __typename?: 'EntityReference';
@@ -12611,8 +12701,8 @@ export type GetWorkflowQuery = {
12611
12701
  __typename?: 'IngestionWorkflowStage';
12612
12702
  if?: {
12613
12703
  __typename?: 'IngestionContentFilter';
12614
- types?: Array<ContentTypes | null> | null;
12615
- fileTypes?: Array<FileTypes | null> | null;
12704
+ types?: Array<ContentTypes> | null;
12705
+ fileTypes?: Array<FileTypes> | null;
12616
12706
  } | null;
12617
12707
  collections?: Array<{
12618
12708
  __typename?: 'EntityReference';
@@ -12755,8 +12845,8 @@ export type QueryWorkflowsQuery = {
12755
12845
  __typename?: 'IngestionWorkflowStage';
12756
12846
  if?: {
12757
12847
  __typename?: 'IngestionContentFilter';
12758
- types?: Array<ContentTypes | null> | null;
12759
- fileTypes?: Array<FileTypes | null> | null;
12848
+ types?: Array<ContentTypes> | null;
12849
+ fileTypes?: Array<FileTypes> | null;
12760
12850
  } | null;
12761
12851
  collections?: Array<{
12762
12852
  __typename?: 'EntityReference';
@@ -12893,8 +12983,8 @@ export type UpdateWorkflowMutation = {
12893
12983
  __typename?: 'IngestionWorkflowStage';
12894
12984
  if?: {
12895
12985
  __typename?: 'IngestionContentFilter';
12896
- types?: Array<ContentTypes | null> | null;
12897
- fileTypes?: Array<FileTypes | null> | null;
12986
+ types?: Array<ContentTypes> | null;
12987
+ fileTypes?: Array<FileTypes> | null;
12898
12988
  } | null;
12899
12989
  collections?: Array<{
12900
12990
  __typename?: 'EntityReference';
@@ -779,6 +779,8 @@ var LinkTypes;
779
779
  LinkTypes["Wikimedia"] = "WIKIMEDIA";
780
780
  /** Wikipedia link */
781
781
  LinkTypes["Wikipedia"] = "WIKIPEDIA";
782
+ /** X link */
783
+ LinkTypes["X"] = "X";
782
784
  /** YouTube link */
783
785
  LinkTypes["YouTube"] = "YOU_TUBE";
784
786
  })(LinkTypes || (exports.LinkTypes = LinkTypes = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240516001",
3
+ "version": "1.0.20240528001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",