graphlit-client 1.0.20240423001 → 1.0.20240424001

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) {
@@ -529,13 +529,14 @@ exports.GetContent = (0, graphql_tag_1.default) `
529
529
  }
530
530
  `;
531
531
  exports.IngestEncodedFile = (0, graphql_tag_1.default) `
532
- mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
532
+ mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
533
533
  ingestEncodedFile(
534
534
  name: $name
535
535
  data: $data
536
536
  mimeType: $mimeType
537
537
  id: $id
538
538
  isSynchronous: $isSynchronous
539
+ collections: $collections
539
540
  workflow: $workflow
540
541
  correlationId: $correlationId
541
542
  ) {
@@ -550,7 +551,7 @@ exports.IngestEncodedFile = (0, graphql_tag_1.default) `
550
551
  }
551
552
  `;
552
553
  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) {
554
+ mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
554
555
  ingestText(
555
556
  name: $name
556
557
  text: $text
@@ -558,6 +559,7 @@ exports.IngestText = (0, graphql_tag_1.default) `
558
559
  uri: $uri
559
560
  id: $id
560
561
  isSynchronous: $isSynchronous
562
+ collections: $collections
561
563
  workflow: $workflow
562
564
  correlationId: $correlationId
563
565
  ) {
@@ -572,11 +574,12 @@ exports.IngestText = (0, graphql_tag_1.default) `
572
574
  }
573
575
  `;
574
576
  exports.IngestUri = (0, graphql_tag_1.default) `
575
- mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $correlationId: String) {
577
+ mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) {
576
578
  ingestUri(
577
579
  name: $name
578
580
  uri: $uri
579
581
  id: $id
582
+ collections: $collections
580
583
  workflow: $workflow
581
584
  isSynchronous: $isSynchronous
582
585
  correlationId: $correlationId
@@ -599,7 +602,7 @@ exports.IsContentDone = (0, graphql_tag_1.default) `
599
602
  }
600
603
  `;
601
604
  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) {
605
+ mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput, $isSynchronous: Boolean!) {
603
606
  publishContents(
604
607
  summaryPrompt: $summaryPrompt
605
608
  publishPrompt: $publishPrompt
@@ -610,6 +613,31 @@ exports.PublishContents = (0, graphql_tag_1.default) `
610
613
  summarySpecification: $summarySpecification
611
614
  publishSpecification: $publishSpecification
612
615
  workflow: $workflow
616
+ isSynchronous: $isSynchronous
617
+ ) {
618
+ id
619
+ name
620
+ state
621
+ type
622
+ fileType
623
+ mimeType
624
+ uri
625
+ textUri
626
+ audioUri
627
+ markdown
628
+ }
629
+ }
630
+ `;
631
+ exports.PublishText = (0, graphql_tag_1.default) `
632
+ mutation PublishText($text: String!, $textType: TextTypes, $connector: ContentPublishingConnectorInput!, $correlationId: String, $name: String, $workflow: EntityReferenceInput, $isSynchronous: Boolean!) {
633
+ publishText(
634
+ text: $text
635
+ textType: $textType
636
+ connector: $connector
637
+ correlationId: $correlationId
638
+ name: $name
639
+ workflow: $workflow
640
+ isSynchronous: $isSynchronous
613
641
  ) {
614
642
  id
615
643
  name
@@ -983,6 +1011,7 @@ exports.PromptConversation = (0, graphql_tag_1.default) `
983
1011
  citations {
984
1012
  content {
985
1013
  id
1014
+ name
986
1015
  type
987
1016
  fileType
988
1017
  fileName
@@ -1513,6 +1542,36 @@ exports.Credits = (0, graphql_tag_1.default) `
1513
1542
  }
1514
1543
  }
1515
1544
  `;
1545
+ exports.GetProject = (0, graphql_tag_1.default) `
1546
+ query GetProject {
1547
+ project {
1548
+ id
1549
+ name
1550
+ creationDate
1551
+ modifiedDate
1552
+ state
1553
+ environmentType
1554
+ platform
1555
+ region
1556
+ workflow {
1557
+ id
1558
+ name
1559
+ }
1560
+ specification {
1561
+ id
1562
+ name
1563
+ }
1564
+ quota {
1565
+ storage
1566
+ contents
1567
+ feeds
1568
+ posts
1569
+ conversations
1570
+ }
1571
+ callbackUri
1572
+ }
1573
+ }
1574
+ `;
1516
1575
  exports.LookupCredits = (0, graphql_tag_1.default) `
1517
1576
  query LookupCredits($correlationId: String!) {
1518
1577
  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
  };
@@ -8212,6 +8228,7 @@ export type IngestEncodedFileMutationVariables = Exact<{
8212
8228
  mimeType: Scalars['String']['input'];
8213
8229
  id?: InputMaybe<Scalars['ID']['input']>;
8214
8230
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8231
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8215
8232
  workflow?: InputMaybe<EntityReferenceInput>;
8216
8233
  correlationId?: InputMaybe<Scalars['String']['input']>;
8217
8234
  }>;
@@ -8235,6 +8252,7 @@ export type IngestTextMutationVariables = Exact<{
8235
8252
  uri?: InputMaybe<Scalars['URL']['input']>;
8236
8253
  id?: InputMaybe<Scalars['ID']['input']>;
8237
8254
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8255
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8238
8256
  workflow?: InputMaybe<EntityReferenceInput>;
8239
8257
  correlationId?: InputMaybe<Scalars['String']['input']>;
8240
8258
  }>;
@@ -8256,6 +8274,7 @@ export type IngestUriMutationVariables = Exact<{
8256
8274
  uri: Scalars['URL']['input'];
8257
8275
  id?: InputMaybe<Scalars['ID']['input']>;
8258
8276
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
8277
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
8259
8278
  workflow?: InputMaybe<EntityReferenceInput>;
8260
8279
  correlationId?: InputMaybe<Scalars['String']['input']>;
8261
8280
  }>;
@@ -8292,6 +8311,7 @@ export type PublishContentsMutationVariables = Exact<{
8292
8311
  summarySpecification?: InputMaybe<EntityReferenceInput>;
8293
8312
  publishSpecification?: InputMaybe<EntityReferenceInput>;
8294
8313
  workflow?: InputMaybe<EntityReferenceInput>;
8314
+ isSynchronous: Scalars['Boolean']['input'];
8295
8315
  }>;
8296
8316
  export type PublishContentsMutation = {
8297
8317
  __typename?: 'Mutation';
@@ -8309,6 +8329,31 @@ export type PublishContentsMutation = {
8309
8329
  markdown?: string | null;
8310
8330
  } | null;
8311
8331
  };
8332
+ export type PublishTextMutationVariables = Exact<{
8333
+ text: Scalars['String']['input'];
8334
+ textType?: InputMaybe<TextTypes>;
8335
+ connector: ContentPublishingConnectorInput;
8336
+ correlationId?: InputMaybe<Scalars['String']['input']>;
8337
+ name?: InputMaybe<Scalars['String']['input']>;
8338
+ workflow?: InputMaybe<EntityReferenceInput>;
8339
+ isSynchronous: Scalars['Boolean']['input'];
8340
+ }>;
8341
+ export type PublishTextMutation = {
8342
+ __typename?: 'Mutation';
8343
+ publishText?: {
8344
+ __typename?: 'Content';
8345
+ id: string;
8346
+ name: string;
8347
+ state: EntityState;
8348
+ type?: ContentTypes | null;
8349
+ fileType?: FileTypes | null;
8350
+ mimeType?: string | null;
8351
+ uri?: any | null;
8352
+ textUri?: any | null;
8353
+ audioUri?: any | null;
8354
+ markdown?: string | null;
8355
+ } | null;
8356
+ };
8312
8357
  export type QueryContentFacetsQueryVariables = Exact<{
8313
8358
  filter?: InputMaybe<ContentFilter>;
8314
8359
  facets?: InputMaybe<Array<ContentFacetInput> | ContentFacetInput>;
@@ -8766,6 +8811,7 @@ export type PromptConversationMutation = {
8766
8811
  content?: {
8767
8812
  __typename?: 'Content';
8768
8813
  id: string;
8814
+ name: string;
8769
8815
  type?: ContentTypes | null;
8770
8816
  fileType?: FileTypes | null;
8771
8817
  fileName?: string | null;
@@ -9399,6 +9445,42 @@ export type CreditsQuery = {
9399
9445
  conversationRatio?: any | null;
9400
9446
  } | null> | null;
9401
9447
  };
9448
+ export type GetProjectQueryVariables = Exact<{
9449
+ [key: string]: never;
9450
+ }>;
9451
+ export type GetProjectQuery = {
9452
+ __typename?: 'Query';
9453
+ project?: {
9454
+ __typename?: 'Project';
9455
+ id: string;
9456
+ name: string;
9457
+ creationDate: any;
9458
+ modifiedDate?: any | null;
9459
+ state: EntityState;
9460
+ environmentType?: EnvironmentTypes | null;
9461
+ platform?: ResourceConnectorTypes | null;
9462
+ region?: string | null;
9463
+ callbackUri?: any | null;
9464
+ workflow?: {
9465
+ __typename?: 'Workflow';
9466
+ id: string;
9467
+ name: string;
9468
+ } | null;
9469
+ specification?: {
9470
+ __typename?: 'Specification';
9471
+ id: string;
9472
+ name: string;
9473
+ } | null;
9474
+ quota?: {
9475
+ __typename?: 'ProjectQuota';
9476
+ storage?: number | null;
9477
+ contents?: number | null;
9478
+ feeds?: number | null;
9479
+ posts?: number | null;
9480
+ conversations?: number | null;
9481
+ } | null;
9482
+ } | null;
9483
+ };
9402
9484
  export type LookupCreditsQueryVariables = Exact<{
9403
9485
  correlationId: Scalars['String']['input'];
9404
9486
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240423001",
3
+ "version": "1.0.20240424001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",