graphlit-client 1.0.20240516001 → 1.0.20240519001

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
  }
@@ -1250,6 +1250,8 @@ export declare enum ContentFacetTypes {
1250
1250
  }
1251
1251
  /** Represents a filter for contents. */
1252
1252
  export type ContentFilter = {
1253
+ /** List of additional content filters using conjunctive conditions, i.e. 'and' semantics. */
1254
+ and?: InputMaybe<Array<InputMaybe<ContentFilterLevel>>>;
1253
1255
  /** Filter by geo-boundaries, as GeoJSON Feature with Polygon geometry. */
1254
1256
  boundaries?: InputMaybe<Array<InputMaybe<Scalars['JSON']['input']>>>;
1255
1257
  /** Filter by collections. */
@@ -1286,6 +1288,8 @@ export type ContentFilter = {
1286
1288
  observations?: InputMaybe<Array<ObservationReferenceFilter>>;
1287
1289
  /** Skip the specified number of content(s) from the beginning of the result set. */
1288
1290
  offset?: InputMaybe<Scalars['Int']['input']>;
1291
+ /** List of additional content filters using disjunctive conditions, i.e. 'or' semantics. */
1292
+ or?: InputMaybe<Array<InputMaybe<ContentFilterLevel>>>;
1289
1293
  /** The sort order for query results. */
1290
1294
  orderBy?: InputMaybe<OrderByTypes>;
1291
1295
  /** Filter by original date range. */
@@ -1305,6 +1309,17 @@ export type ContentFilter = {
1305
1309
  /** Filter by workflows. */
1306
1310
  workflows?: InputMaybe<Array<EntityReferenceFilter>>;
1307
1311
  };
1312
+ /** Represents a filter level for contents. */
1313
+ export type ContentFilterLevel = {
1314
+ /** Filter by collections. */
1315
+ collections?: InputMaybe<Array<EntityReferenceFilter>>;
1316
+ /** Filter by feeds. */
1317
+ feeds?: InputMaybe<Array<EntityReferenceFilter>>;
1318
+ /** Filter by observations. */
1319
+ observations?: InputMaybe<Array<ObservationReferenceFilter>>;
1320
+ /** Filter by workflows. */
1321
+ workflows?: InputMaybe<Array<EntityReferenceFilter>>;
1322
+ };
1308
1323
  /** Represents the configuration for retrieving the knowledge graph. */
1309
1324
  export type ContentGraphInput = {
1310
1325
  /** The observable types. */
@@ -3799,6 +3814,8 @@ export declare enum LinkTypes {
3799
3814
  Wikimedia = "WIKIMEDIA",
3800
3815
  /** Wikipedia link */
3801
3816
  Wikipedia = "WIKIPEDIA",
3817
+ /** X link */
3818
+ X = "X",
3802
3819
  /** YouTube link */
3803
3820
  YouTube = "YOU_TUBE"
3804
3821
  }
@@ -4932,6 +4949,8 @@ export type Observation = {
4932
4949
  owner: Owner;
4933
4950
  /** The related entity, optional. */
4934
4951
  related?: Maybe<NamedEntityReference>;
4952
+ /** The related entity type, optional. */
4953
+ relatedType?: Maybe<ObservableTypes>;
4935
4954
  /** The relationship between the observed entity and related entity, optional. */
4936
4955
  relation?: Maybe<Scalars['String']['output']>;
4937
4956
  /** The state of the observation (i.e. created, finished). */
@@ -4968,6 +4987,8 @@ export type ObservationInput = {
4968
4987
  occurrences: Array<ObservationOccurrenceInput>;
4969
4988
  /** The related entity, optional. */
4970
4989
  related?: InputMaybe<NamedEntityReferenceInput>;
4990
+ /** The related entity type. */
4991
+ relatedType?: InputMaybe<ObservableTypes>;
4971
4992
  /** The relationship between the observed entity and related entity, optional. */
4972
4993
  relation?: InputMaybe<Scalars['String']['input']>;
4973
4994
  /** The observed entity type. */
@@ -5023,6 +5044,8 @@ export type ObservationUpdateInput = {
5023
5044
  occurrences?: InputMaybe<Array<ObservationOccurrenceInput>>;
5024
5045
  /** The related entity, optional. */
5025
5046
  related?: InputMaybe<NamedEntityReferenceInput>;
5047
+ /** The related entity type. */
5048
+ relatedType?: InputMaybe<ObservableTypes>;
5026
5049
  /** The relationship between the observed entity and related entity, optional. */
5027
5050
  relation?: InputMaybe<Scalars['String']['input']>;
5028
5051
  /** The observed entity type. */
@@ -6692,6 +6715,8 @@ export type QueryCountWorkflowsArgs = {
6692
6715
  };
6693
6716
  export type QueryCreditsArgs = {
6694
6717
  duration: Scalars['TimeSpan']['input'];
6718
+ limit?: InputMaybe<Scalars['Int']['input']>;
6719
+ offset?: InputMaybe<Scalars['Int']['input']>;
6695
6720
  startDate: Scalars['DateTime']['input'];
6696
6721
  };
6697
6722
  export type QueryEventArgs = {
@@ -6835,6 +6860,8 @@ export type QuerySpecificationsArgs = {
6835
6860
  };
6836
6861
  export type QueryUsageArgs = {
6837
6862
  duration: Scalars['TimeSpan']['input'];
6863
+ limit?: InputMaybe<Scalars['Int']['input']>;
6864
+ offset?: InputMaybe<Scalars['Int']['input']>;
6838
6865
  startDate: Scalars['DateTime']['input'];
6839
6866
  };
6840
6867
  export type QueryWorkflowArgs = {
@@ -9140,6 +9167,7 @@ export type GetContentQuery = {
9140
9167
  __typename?: 'Observation';
9141
9168
  id: string;
9142
9169
  type: ObservableTypes;
9170
+ relatedType?: ObservableTypes | null;
9143
9171
  relation?: string | null;
9144
9172
  state: EntityState;
9145
9173
  observable: {
@@ -9557,6 +9585,7 @@ export type QueryContentsQuery = {
9557
9585
  __typename?: 'Observation';
9558
9586
  id: string;
9559
9587
  type: ObservableTypes;
9588
+ relatedType?: ObservableTypes | null;
9560
9589
  relation?: string | null;
9561
9590
  state: EntityState;
9562
9591
  observable: {
@@ -9819,6 +9848,7 @@ export type QueryContentsFacetsQuery = {
9819
9848
  __typename?: 'Observation';
9820
9849
  id: string;
9821
9850
  type: ObservableTypes;
9851
+ relatedType?: ObservableTypes | null;
9822
9852
  relation?: string | null;
9823
9853
  state: EntityState;
9824
9854
  observable: {
@@ -10226,6 +10256,7 @@ export type PromptConversationMutation = {
10226
10256
  nodes?: Array<{
10227
10257
  __typename?: 'GraphNode';
10228
10258
  id: string;
10259
+ name: string;
10229
10260
  type: EntityTypes;
10230
10261
  metadata?: string | null;
10231
10262
  } | null> | null;
@@ -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.20240519001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",