graphlit-client 1.0.20240423001 → 1.0.20240424002

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.
@@ -26,6 +26,7 @@ export declare const IngestText: import("graphql").DocumentNode;
26
26
  export declare const IngestUri: import("graphql").DocumentNode;
27
27
  export declare const IsContentDone: import("graphql").DocumentNode;
28
28
  export declare const PublishContents: import("graphql").DocumentNode;
29
+ export declare const PublishText: import("graphql").DocumentNode;
29
30
  export declare const QueryContentFacets: import("graphql").DocumentNode;
30
31
  export declare const QueryContents: import("graphql").DocumentNode;
31
32
  export declare const SummarizeContents: import("graphql").DocumentNode;
@@ -53,6 +54,7 @@ export declare const IsFeedDone: import("graphql").DocumentNode;
53
54
  export declare const QueryFeeds: import("graphql").DocumentNode;
54
55
  export declare const UpdateFeed: import("graphql").DocumentNode;
55
56
  export declare const Credits: import("graphql").DocumentNode;
57
+ export declare const GetProject: import("graphql").DocumentNode;
56
58
  export declare const LookupCredits: import("graphql").DocumentNode;
57
59
  export declare const LookupUsage: import("graphql").DocumentNode;
58
60
  export declare const Project: import("graphql").DocumentNode;
@@ -3,8 +3,8 @@ 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.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.UpdateConversation = exports.SuggestConversation = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.GetConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CloseConversation = exports.ClearConversation = exports.UpdateContent = exports.SummarizeContents = exports.QueryContents = exports.QueryContentFacets = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestText = exports.IngestEncodedFile = exports.GetContent = exports.ExtractContents = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.AddContentsToCollections = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = void 0;
7
- exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecification = exports.CreateSpecification = exports.Usage = exports.UpdateProject = exports.Project = exports.LookupUsage = exports.LookupCredits = exports.Credits = exports.UpdateFeed = exports.QueryFeeds = exports.IsFeedDone = exports.GetFeed = void 0;
6
+ exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.UpdateConversation = exports.SuggestConversation = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.GetConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CloseConversation = exports.ClearConversation = exports.UpdateContent = exports.SummarizeContents = exports.QueryContents = exports.QueryContentFacets = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestText = exports.IngestEncodedFile = exports.GetContent = exports.ExtractContents = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.AddContentsToCollections = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = void 0;
7
+ exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecification = exports.CreateSpecification = exports.Usage = exports.UpdateProject = exports.Project = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.Credits = exports.UpdateFeed = exports.QueryFeeds = exports.IsFeedDone = exports.GetFeed = exports.EnableFeed = void 0;
8
8
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
9
9
  exports.CreateAlert = (0, graphql_tag_1.default) `
10
10
  mutation CreateAlert($alert: AlertInput!, $correlationId: String) {
@@ -369,6 +369,7 @@ exports.GetContent = (0, graphql_tag_1.default) `
369
369
  content(id: $id) {
370
370
  id
371
371
  name
372
+ description
372
373
  creationDate
373
374
  owner {
374
375
  id
@@ -529,13 +530,14 @@ exports.GetContent = (0, graphql_tag_1.default) `
529
530
  }
530
531
  `;
531
532
  exports.IngestEncodedFile = (0, graphql_tag_1.default) `
532
- mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
533
+ mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
533
534
  ingestEncodedFile(
534
535
  name: $name
535
536
  data: $data
536
537
  mimeType: $mimeType
537
538
  id: $id
538
539
  isSynchronous: $isSynchronous
540
+ collections: $collections
539
541
  workflow: $workflow
540
542
  correlationId: $correlationId
541
543
  ) {
@@ -550,7 +552,7 @@ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
550
552
  }
551
553
  `;
552
554
  exports.IngestText = (0, graphql_tag_1.default) `
553
- mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
555
+ mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
554
556
  ingestText(
555
557
  name: $name
556
558
  text: $text
@@ -558,6 +560,7 @@ exports.IngestText = (0, graphql_tag_1.default) `
558
560
  uri: $uri
559
561
  id: $id
560
562
  isSynchronous: $isSynchronous
563
+ collections: $collections
561
564
  workflow: $workflow
562
565
  correlationId: $correlationId
563
566
  ) {
@@ -572,11 +575,12 @@ exports.IngestText = (0, graphql_tag_1.default) `
572
575
  }
573
576
  `;
574
577
  exports.IngestUri = (0, graphql_tag_1.default) `
575
- mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
578
+ mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
576
579
  ingestUri(
577
580
  name: $name
578
581
  uri: $uri
579
582
  id: $id
583
+ collections: $collections
580
584
  workflow: $workflow
581
585
  isSynchronous: $isSynchronous
582
586
  correlationId: $correlationId
@@ -599,7 +603,7 @@ exports.IsContentDone = (0, graphql_tag_1.default) `
599
603
  }
600
604
  `;
601
605
  exports.PublishContents = (0, graphql_tag_1.default) `
602
- mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput) {
606
+ mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput, $isSynchronous: Boolean!) {
603
607
  publishContents(
604
608
  summaryPrompt: $summaryPrompt
605
609
  publishPrompt: $publishPrompt
@@ -610,6 +614,31 @@ exports.PublishContents = (0, graphql_tag_1.default) `
610
614
  summarySpecification: $summarySpecification
611
615
  publishSpecification: $publishSpecification
612
616
  workflow: $workflow
617
+ isSynchronous: $isSynchronous
618
+ ) {
619
+ id
620
+ name
621
+ state
622
+ type
623
+ fileType
624
+ mimeType
625
+ uri
626
+ textUri
627
+ audioUri
628
+ markdown
629
+ }
630
+ }
631
+ `;
632
+ exports.PublishText = (0, graphql_tag_1.default) `
633
+ mutation PublishText($text: String!, $textType: TextTypes, $connector: ContentPublishingConnectorInput!, $correlationId: String, $name: String, $workflow: EntityReferenceInput, $isSynchronous: Boolean!) {
634
+ publishText(
635
+ text: $text
636
+ textType: $textType
637
+ connector: $connector
638
+ correlationId: $correlationId
639
+ name: $name
640
+ workflow: $workflow
641
+ isSynchronous: $isSynchronous
613
642
  ) {
614
643
  id
615
644
  name
@@ -983,6 +1012,7 @@ exports.PromptConversation = (0, graphql_tag_1.default) `
983
1012
  citations {
984
1013
  content {
985
1014
  id
1015
+ name
986
1016
  type
987
1017
  fileType
988
1018
  fileName
@@ -1513,6 +1543,36 @@ exports.Credits = (0, graphql_tag_1.default) `
1513
1543
  }
1514
1544
  }
1515
1545
  `;
1546
+ exports.GetProject = (0, graphql_tag_1.default) `
1547
+ query GetProject {
1548
+ project {
1549
+ id
1550
+ name
1551
+ creationDate
1552
+ modifiedDate
1553
+ state
1554
+ environmentType
1555
+ platform
1556
+ region
1557
+ workflow {
1558
+ id
1559
+ name
1560
+ }
1561
+ specification {
1562
+ id
1563
+ name
1564
+ }
1565
+ quota {
1566
+ storage
1567
+ contents
1568
+ feeds
1569
+ posts
1570
+ conversations
1571
+ }
1572
+ callbackUri
1573
+ }
1574
+ }
1575
+ `;
1516
1576
  exports.LookupCredits = (0, graphql_tag_1.default) `
1517
1577
  query LookupCredits($correlationId: String!) {
1518
1578
  lookupCredits(correlationId: $correlationId) {
@@ -3884,10 +3884,12 @@ export type Mutation = {
3884
3884
  promptConversation?: Maybe<PromptConversation>;
3885
3885
  /** Prompts one or more LLM specifications, 10 maximum. */
3886
3886
  promptSpecifications?: Maybe<Array<Maybe<PromptCompletion>>>;
3887
- /** Publish contents based on the provided filter criteria. */
3887
+ /** Publish contents based on the provided filter criteria into different content format. */
3888
3888
  publishContents?: Maybe<Content>;
3889
3889
  /** Publish conversation. */
3890
3890
  publishConversation?: Maybe<Content>;
3891
+ /** Publish text into different content format. */
3892
+ publishText?: Maybe<Content>;
3891
3893
  /**
3892
3894
  * Removes contents from a collection.
3893
3895
  * @deprecated Use removeContentsFromCollection instead.
@@ -4214,6 +4216,7 @@ export type MutationPublishContentsArgs = {
4214
4216
  connector: ContentPublishingConnectorInput;
4215
4217
  correlationId?: InputMaybe<Scalars['String']['input']>;
4216
4218
  filter?: InputMaybe<ContentFilter>;
4219
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
4217
4220
  name?: InputMaybe<Scalars['String']['input']>;
4218
4221
  publishPrompt: Scalars['String']['input'];
4219
4222
  publishSpecification?: InputMaybe<EntityReferenceInput>;
@@ -4228,6 +4231,15 @@ export type MutationPublishConversationArgs = {
4228
4231
  name?: InputMaybe<Scalars['String']['input']>;
4229
4232
  workflow?: InputMaybe<EntityReferenceInput>;
4230
4233
  };
4234
+ export type MutationPublishTextArgs = {
4235
+ connector: ContentPublishingConnectorInput;
4236
+ correlationId?: InputMaybe<Scalars['String']['input']>;
4237
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
4238
+ name?: InputMaybe<Scalars['String']['input']>;
4239
+ text: Scalars['String']['input'];
4240
+ textType?: InputMaybe<TextTypes>;
4241
+ workflow?: InputMaybe<EntityReferenceInput>;
4242
+ };
4231
4243
  export type MutationRemoveCollectionContentsArgs = {
4232
4244
  contents: Array<EntityReferenceInput>;
4233
4245
  id: Scalars['ID']['input'];
@@ -4535,6 +4547,8 @@ export type OpenAiImageExtractionProperties = {
4535
4547
  __typename?: 'OpenAIImageExtractionProperties';
4536
4548
  /** The confidence threshold for entity extraction. */
4537
4549
  confidenceThreshold?: Maybe<Scalars['Float']['output']>;
4550
+ /** Custom instructions which are injected into the LLM prompt. */
4551
+ customInstructions?: Maybe<Scalars['String']['output']>;
4538
4552
  /** The OpenAI vision detail mode. */
4539
4553
  detailLevel?: Maybe<OpenAiVisionDetailLevels>;
4540
4554
  };
@@ -4542,6 +4556,8 @@ export type OpenAiImageExtractionProperties = {
4542
4556
  export type OpenAiImageExtractionPropertiesInput = {
4543
4557
  /** The confidence threshold for entity extraction. */
4544
4558
  confidenceThreshold?: InputMaybe<Scalars['Float']['input']>;
4559
+ /** Custom instructions which are injected into the LLM prompt. */
4560
+ customInstructions?: InputMaybe<Scalars['String']['input']>;
4545
4561
  /** The OpenAI vision detail mode. */
4546
4562
  detailLevel?: InputMaybe<OpenAiVisionDetailLevels>;
4547
4563
  };
@@ -8027,6 +8043,7 @@ export type GetContentQuery = {
8027
8043
  __typename?: 'Content';
8028
8044
  id: string;
8029
8045
  name: string;
8046
+ description?: string | null;
8030
8047
  creationDate: any;
8031
8048
  state: EntityState;
8032
8049
  originalDate?: any | null;
@@ -8212,6 +8229,7 @@ export type IngestEncodedFileMutationVariables = Exact<{
8212
8229
  mimeType: Scalars['String']['input'];
8213
8230
  id?: InputMaybe<Scalars['ID']['input']>;
8214
8231
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8232
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8215
8233
  workflow?: InputMaybe<EntityReferenceInput>;
8216
8234
  correlationId?: InputMaybe<Scalars['String']['input']>;
8217
8235
  }>;
@@ -8235,6 +8253,7 @@ export type IngestTextMutationVariables = Exact<{
8235
8253
  uri?: InputMaybe<Scalars['URL']['input']>;
8236
8254
  id?: InputMaybe<Scalars['ID']['input']>;
8237
8255
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8256
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8238
8257
  workflow?: InputMaybe<EntityReferenceInput>;
8239
8258
  correlationId?: InputMaybe<Scalars['String']['input']>;
8240
8259
  }>;
@@ -8256,6 +8275,7 @@ export type IngestUriMutationVariables = Exact<{
8256
8275
  uri: Scalars['URL']['input'];
8257
8276
  id?: InputMaybe<Scalars['ID']['input']>;
8258
8277
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8278
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8259
8279
  workflow?: InputMaybe<EntityReferenceInput>;
8260
8280
  correlationId?: InputMaybe<Scalars['String']['input']>;
8261
8281
  }>;
@@ -8292,6 +8312,7 @@ export type PublishContentsMutationVariables = Exact<{
8292
8312
  summarySpecification?: InputMaybe<EntityReferenceInput>;
8293
8313
  publishSpecification?: InputMaybe<EntityReferenceInput>;
8294
8314
  workflow?: InputMaybe<EntityReferenceInput>;
8315
+ isSynchronous: Scalars['Boolean']['input'];
8295
8316
  }>;
8296
8317
  export type PublishContentsMutation = {
8297
8318
  __typename?: 'Mutation';
@@ -8309,6 +8330,31 @@ export type PublishContentsMutation = {
8309
8330
  markdown?: string | null;
8310
8331
  } | null;
8311
8332
  };
8333
+ export type PublishTextMutationVariables = Exact<{
8334
+ text: Scalars['String']['input'];
8335
+ textType?: InputMaybe<TextTypes>;
8336
+ connector: ContentPublishingConnectorInput;
8337
+ correlationId?: InputMaybe<Scalars['String']['input']>;
8338
+ name?: InputMaybe<Scalars['String']['input']>;
8339
+ workflow?: InputMaybe<EntityReferenceInput>;
8340
+ isSynchronous: Scalars['Boolean']['input'];
8341
+ }>;
8342
+ export type PublishTextMutation = {
8343
+ __typename?: 'Mutation';
8344
+ publishText?: {
8345
+ __typename?: 'Content';
8346
+ id: string;
8347
+ name: string;
8348
+ state: EntityState;
8349
+ type?: ContentTypes | null;
8350
+ fileType?: FileTypes | null;
8351
+ mimeType?: string | null;
8352
+ uri?: any | null;
8353
+ textUri?: any | null;
8354
+ audioUri?: any | null;
8355
+ markdown?: string | null;
8356
+ } | null;
8357
+ };
8312
8358
  export type QueryContentFacetsQueryVariables = Exact<{
8313
8359
  filter?: InputMaybe<ContentFilter>;
8314
8360
  facets?: InputMaybe<Array<ContentFacetInput> | ContentFacetInput>;
@@ -8766,6 +8812,7 @@ export type PromptConversationMutation = {
8766
8812
  content?: {
8767
8813
  __typename?: 'Content';
8768
8814
  id: string;
8815
+ name: string;
8769
8816
  type?: ContentTypes | null;
8770
8817
  fileType?: FileTypes | null;
8771
8818
  fileName?: string | null;
@@ -9399,6 +9446,42 @@ export type CreditsQuery = {
9399
9446
  conversationRatio?: any | null;
9400
9447
  } | null> | null;
9401
9448
  };
9449
+ export type GetProjectQueryVariables = Exact<{
9450
+ [key: string]: never;
9451
+ }>;
9452
+ export type GetProjectQuery = {
9453
+ __typename?: 'Query';
9454
+ project?: {
9455
+ __typename?: 'Project';
9456
+ id: string;
9457
+ name: string;
9458
+ creationDate: any;
9459
+ modifiedDate?: any | null;
9460
+ state: EntityState;
9461
+ environmentType?: EnvironmentTypes | null;
9462
+ platform?: ResourceConnectorTypes | null;
9463
+ region?: string | null;
9464
+ callbackUri?: any | null;
9465
+ workflow?: {
9466
+ __typename?: 'Workflow';
9467
+ id: string;
9468
+ name: string;
9469
+ } | null;
9470
+ specification?: {
9471
+ __typename?: 'Specification';
9472
+ id: string;
9473
+ name: string;
9474
+ } | null;
9475
+ quota?: {
9476
+ __typename?: 'ProjectQuota';
9477
+ storage?: number | null;
9478
+ contents?: number | null;
9479
+ feeds?: number | null;
9480
+ posts?: number | null;
9481
+ conversations?: number | null;
9482
+ } | null;
9483
+ } | null;
9484
+ };
9402
9485
  export type LookupCreditsQueryVariables = Exact<{
9403
9486
  correlationId: Scalars['String']['input'];
9404
9487
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240423001",
3
+ "version": "1.0.20240424002",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",