graphlit-client 1.0.20260303003 → 1.0.20260305001

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
@@ -1337,6 +1337,12 @@ declare class Graphlit {
1337
1337
  * @returns The disabled feed.
1338
1338
  */
1339
1339
  disableFeed(id: string): Promise<Types.DisableFeedMutation>;
1340
+ /**
1341
+ * Previews a feed, estimating item count, bytes, and tokens without ingesting.
1342
+ * @param feed - The feed preview input.
1343
+ * @returns The feed preview result.
1344
+ */
1345
+ previewFeed(feed: Types.FeedPreviewInput): Promise<Types.PreviewFeedMutation>;
1340
1346
  /**
1341
1347
  * Lookup a feed given its ID.
1342
1348
  * @param id - ID of the feed.
package/dist/client.js CHANGED
@@ -2381,6 +2381,14 @@ class Graphlit {
2381
2381
  async disableFeed(id) {
2382
2382
  return this.mutateAndCheckError(Documents.DisableFeed, { id: id });
2383
2383
  }
2384
+ /**
2385
+ * Previews a feed, estimating item count, bytes, and tokens without ingesting.
2386
+ * @param feed - The feed preview input.
2387
+ * @returns The feed preview result.
2388
+ */
2389
+ async previewFeed(feed) {
2390
+ return this.mutateAndCheckError(Documents.PreviewFeed, { feed: feed });
2391
+ }
2384
2392
  /**
2385
2393
  * Lookup a feed given its ID.
2386
2394
  * @param id - ID of the feed.
@@ -155,6 +155,7 @@ export declare const GetSharePointConsentUri: import("graphql").DocumentNode;
155
155
  export declare const IsFeedDone: import("graphql").DocumentNode;
156
156
  export declare const LookupCompanies: import("graphql").DocumentNode;
157
157
  export declare const LookupPersons: import("graphql").DocumentNode;
158
+ export declare const PreviewFeed: import("graphql").DocumentNode;
158
159
  export declare const QueryAsanaProjects: import("graphql").DocumentNode;
159
160
  export declare const QueryAsanaWorkspaces: import("graphql").DocumentNode;
160
161
  export declare const QueryAtlassianSites: import("graphql").DocumentNode;
@@ -9859,6 +9859,23 @@ export const LookupPersons = gql `
9859
9859
  }
9860
9860
  }
9861
9861
  `;
9862
+ export const PreviewFeed = gql `
9863
+ mutation PreviewFeed($feed: FeedPreviewInput!) {
9864
+ previewFeed(feed: $feed) {
9865
+ isComplete
9866
+ itemCount
9867
+ estimatedBytes
9868
+ estimatedTokens
9869
+ contentTypeSummary {
9870
+ contentType
9871
+ fileType
9872
+ itemCount
9873
+ totalBytes
9874
+ }
9875
+ warnings
9876
+ }
9877
+ }
9878
+ `;
9862
9879
  export const QueryAsanaProjects = gql `
9863
9880
  query QueryAsanaProjects($properties: AsanaProjectsInput!) {
9864
9881
  asanaProjects(properties: $properties) {
@@ -16082,6 +16099,7 @@ export const GetProject = gql `
16082
16099
  feeds
16083
16100
  posts
16084
16101
  conversations
16102
+ userCredits
16085
16103
  }
16086
16104
  callbackUri
16087
16105
  }
@@ -17693,6 +17711,12 @@ export const GetUser = gql `
17693
17711
  text
17694
17712
  }
17695
17713
  }
17714
+ quota {
17715
+ credits
17716
+ }
17717
+ credits
17718
+ lastCreditsDate
17719
+ accumulatedCredits
17696
17720
  }
17697
17721
  }
17698
17722
  `;
@@ -17782,6 +17806,12 @@ export const GetUserByIdentifier = gql `
17782
17806
  text
17783
17807
  }
17784
17808
  }
17809
+ quota {
17810
+ credits
17811
+ }
17812
+ credits
17813
+ lastCreditsDate
17814
+ accumulatedCredits
17785
17815
  }
17786
17816
  }
17787
17817
  `;
@@ -17872,6 +17902,12 @@ export const QueryUsers = gql `
17872
17902
  text
17873
17903
  }
17874
17904
  }
17905
+ quota {
17906
+ credits
17907
+ }
17908
+ credits
17909
+ lastCreditsDate
17910
+ accumulatedCredits
17875
17911
  }
17876
17912
  }
17877
17913
  }
@@ -141,6 +141,8 @@ export type Agent = {
141
141
  timeout?: Maybe<Scalars['TimeSpan']['output']>;
142
142
  /** The agent type. */
143
143
  type: AgentTypes;
144
+ /** The user that created the entity. */
145
+ user?: Maybe<EntityReference>;
144
146
  };
145
147
  /** Represents a filter for agents. */
146
148
  export type AgentFilter = {
@@ -286,6 +288,8 @@ export type Alert = {
286
288
  summarySpecification?: Maybe<EntityReference>;
287
289
  /** The alert type. */
288
290
  type: AlertTypes;
291
+ /** The user that created the entity. */
292
+ user?: Maybe<EntityReference>;
289
293
  /** The saved view, optional. */
290
294
  view?: Maybe<EntityReference>;
291
295
  };
@@ -2117,6 +2121,8 @@ export type Category = {
2117
2121
  relevance?: Maybe<Scalars['Float']['output']>;
2118
2122
  /** The state of the category (i.e. created, enabled). */
2119
2123
  state: EntityState;
2124
+ /** The user that created the entity. */
2125
+ user?: Maybe<EntityReference>;
2120
2126
  };
2121
2127
  /** Represents a category facet. */
2122
2128
  export type CategoryFacet = {
@@ -2417,6 +2423,8 @@ export type Collection = {
2417
2423
  state: EntityState;
2418
2424
  /** The collection type. */
2419
2425
  type?: Maybe<CollectionTypes>;
2426
+ /** The user that created the entity. */
2427
+ user?: Maybe<EntityReference>;
2420
2428
  };
2421
2429
  /** Represents a filter for collections. */
2422
2430
  export type CollectionFilter = {
@@ -2767,6 +2775,8 @@ export type Connector = {
2767
2775
  state: EntityState;
2768
2776
  /** The connector type. */
2769
2777
  type?: Maybe<ConnectorTypes>;
2778
+ /** The user that created the entity. */
2779
+ user?: Maybe<EntityReference>;
2770
2780
  };
2771
2781
  /** Represents a filter for connectors. */
2772
2782
  export type ConnectorFilter = {
@@ -3010,6 +3020,8 @@ export type Content = {
3010
3020
  type?: Maybe<ContentTypes>;
3011
3021
  /** The content URI. */
3012
3022
  uri?: Maybe<Scalars['URL']['output']>;
3023
+ /** The user that created the entity. */
3024
+ user?: Maybe<EntityReference>;
3013
3025
  /** The content video metadata. */
3014
3026
  video?: Maybe<VideoMetadata>;
3015
3027
  workflow?: Maybe<Workflow>;
@@ -3584,6 +3596,18 @@ export declare enum ContentSourceTypes {
3584
3596
  Frame = "FRAME",
3585
3597
  Transcript = "TRANSCRIPT"
3586
3598
  }
3599
+ /** Represents a content type summary. */
3600
+ export type ContentTypeSummary = {
3601
+ __typename?: 'ContentTypeSummary';
3602
+ /** The content type. */
3603
+ contentType: ContentTypes;
3604
+ /** The file type. */
3605
+ fileType?: Maybe<FileTypes>;
3606
+ /** The item count. */
3607
+ itemCount: Scalars['Long']['output'];
3608
+ /** The total size in bytes. */
3609
+ totalBytes?: Maybe<Scalars['Long']['output']>;
3610
+ };
3587
3611
  /** Content type */
3588
3612
  export declare enum ContentTypes {
3589
3613
  /** Commit (i.e. GitHub, GitLab, Bitbucket) */
@@ -3729,6 +3753,8 @@ export type Conversation = {
3729
3753
  turns?: Maybe<Array<Maybe<ConversationTurn>>>;
3730
3754
  /** The conversation type. */
3731
3755
  type?: Maybe<ConversationTypes>;
3756
+ /** The user that created the entity. */
3757
+ user?: Maybe<EntityReference>;
3732
3758
  };
3733
3759
  /** Represents a conversation citation. */
3734
3760
  export type ConversationCitation = {
@@ -5834,6 +5860,8 @@ export declare enum EntityState {
5834
5860
  Ingested = "INGESTED",
5835
5861
  /** Initialized */
5836
5862
  Initialized = "INITIALIZED",
5863
+ /** Limited */
5864
+ Limited = "LIMITED",
5837
5865
  /** Opened */
5838
5866
  Opened = "OPENED",
5839
5867
  /** Paused */
@@ -6026,6 +6054,8 @@ export type Event = {
6026
6054
  typicalAgeRange?: Maybe<Scalars['String']['output']>;
6027
6055
  /** The event URI. */
6028
6056
  uri?: Maybe<Scalars['URL']['output']>;
6057
+ /** The user that created the entity. */
6058
+ user?: Maybe<EntityReference>;
6029
6059
  /** The workflow associated with this event. */
6030
6060
  workflow?: Maybe<Workflow>;
6031
6061
  };
@@ -6755,6 +6785,8 @@ export type Feed = {
6755
6785
  twitter?: Maybe<TwitterFeedProperties>;
6756
6786
  /** The feed type. */
6757
6787
  type: FeedTypes;
6788
+ /** The user that created the entity. */
6789
+ user?: Maybe<EntityReference>;
6758
6790
  /** The web feed properties. */
6759
6791
  web?: Maybe<WebFeedProperties>;
6760
6792
  workflow?: Maybe<Workflow>;
@@ -6945,6 +6977,89 @@ export declare enum FeedListingTypes {
6945
6977
  /** Read past items */
6946
6978
  Past = "PAST"
6947
6979
  }
6980
+ /** Represents a feed to preview. */
6981
+ export type FeedPreviewInput = {
6982
+ /** The Attio feed properties. */
6983
+ attio?: InputMaybe<AttioFeedPropertiesInput>;
6984
+ /** The calendar feed properties. */
6985
+ calendar?: InputMaybe<CalendarFeedPropertiesInput>;
6986
+ /** The commit feed properties. */
6987
+ commit?: InputMaybe<CommitFeedPropertiesInput>;
6988
+ /** The Confluence feed properties. */
6989
+ confluence?: InputMaybe<ConfluenceFeedPropertiesInput>;
6990
+ /** The CRM feed properties. */
6991
+ crm?: InputMaybe<CrmFeedPropertiesInput>;
6992
+ /** The Discord feed properties. */
6993
+ discord?: InputMaybe<DiscordFeedPropertiesInput>;
6994
+ /** The email feed properties. */
6995
+ email?: InputMaybe<EmailFeedPropertiesInput>;
6996
+ /** The Entity discovery feed properties. */
6997
+ entity?: InputMaybe<EntityFeedPropertiesInput>;
6998
+ /** The HRIS feed properties. */
6999
+ hris?: InputMaybe<HrisFeedPropertiesInput>;
7000
+ /** The HubSpot Conversations feed properties. */
7001
+ hubSpotConversations?: InputMaybe<HubSpotConversationsFeedPropertiesInput>;
7002
+ /** The Intercom feed properties. */
7003
+ intercom?: InputMaybe<IntercomFeedPropertiesInput>;
7004
+ /** The Intercom Conversations feed properties. */
7005
+ intercomConversations?: InputMaybe<IntercomConversationsFeedPropertiesInput>;
7006
+ /** The issue feed properties. */
7007
+ issue?: InputMaybe<IssueFeedPropertiesInput>;
7008
+ /** The LinkedIn feed properties. */
7009
+ linkedIn?: InputMaybe<LinkedInFeedPropertiesInput>;
7010
+ /** The Meeting transcript feed properties. */
7011
+ meeting?: InputMaybe<MeetingFeedPropertiesInput>;
7012
+ /** The Microsoft Teams feed properties. */
7013
+ microsoftTeams?: InputMaybe<MicrosoftTeamsFeedPropertiesInput>;
7014
+ /** The name of the feed. */
7015
+ name?: InputMaybe<Scalars['String']['input']>;
7016
+ /** The Notion feed properties. */
7017
+ notion?: InputMaybe<NotionFeedPropertiesInput>;
7018
+ /** The pull request feed properties. */
7019
+ pullRequest?: InputMaybe<PullRequestFeedPropertiesInput>;
7020
+ /** The Reddit feed properties. */
7021
+ reddit?: InputMaybe<RedditFeedPropertiesInput>;
7022
+ /** The Research feed properties. */
7023
+ research?: InputMaybe<ResearchFeedPropertiesInput>;
7024
+ /** The RSS feed properties. */
7025
+ rss?: InputMaybe<RssFeedPropertiesInput>;
7026
+ /** The Salesforce feed properties. */
7027
+ salesforce?: InputMaybe<SalesforceFeedPropertiesInput>;
7028
+ /** The web search feed properties. */
7029
+ search?: InputMaybe<SearchFeedPropertiesInput>;
7030
+ /** The site feed properties. */
7031
+ site?: InputMaybe<SiteFeedPropertiesInput>;
7032
+ /** The Slack feed properties. */
7033
+ slack?: InputMaybe<SlackFeedPropertiesInput>;
7034
+ /** The Twitter feed properties. */
7035
+ twitter?: InputMaybe<TwitterFeedPropertiesInput>;
7036
+ /** The feed type. */
7037
+ type: FeedTypes;
7038
+ /** The web feed properties. */
7039
+ web?: InputMaybe<WebFeedPropertiesInput>;
7040
+ /** The content workflow applied to the feed. */
7041
+ workflow?: InputMaybe<EntityReferenceInput>;
7042
+ /** The YouTube feed properties. */
7043
+ youtube?: InputMaybe<YouTubeFeedPropertiesInput>;
7044
+ /** The Zendesk feed properties. */
7045
+ zendesk?: InputMaybe<ZendeskFeedPropertiesInput>;
7046
+ };
7047
+ /** Represents a feed preview result. */
7048
+ export type FeedPreviewResult = {
7049
+ __typename?: 'FeedPreviewResult';
7050
+ /** The content type histogram. */
7051
+ contentTypeSummary?: Maybe<Array<ContentTypeSummary>>;
7052
+ /** The estimated total size in bytes. */
7053
+ estimatedBytes?: Maybe<Scalars['Long']['output']>;
7054
+ /** The estimated total token count. */
7055
+ estimatedTokens?: Maybe<Scalars['Long']['output']>;
7056
+ /** Whether the preview scan completed within the limit. */
7057
+ isComplete: Scalars['Boolean']['output'];
7058
+ /** The total number of items found. */
7059
+ itemCount: Scalars['Long']['output'];
7060
+ /** Any warnings generated during the preview scan. */
7061
+ warnings?: Maybe<Array<Scalars['String']['output']>>;
7062
+ };
6948
7063
  /** Represents feed query results. */
6949
7064
  export type FeedResults = {
6950
7065
  __typename?: 'FeedResults';
@@ -8017,7 +8132,7 @@ export type GoogleDriveFeedProperties = {
8017
8132
  clientSecret?: Maybe<Scalars['String']['output']>;
8018
8133
  /** Authentication connector reference. */
8019
8134
  connector?: Maybe<EntityReference>;
8020
- /** Google Drive shared drive identifier. */
8135
+ /** Google Drive shared drive identifier. If not provided, defaults to the user's My Drive. */
8021
8136
  driveId?: Maybe<Scalars['ID']['output']>;
8022
8137
  /** Google Drive file identifiers. Takes precedence over folder identifier. */
8023
8138
  files?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
@@ -8038,7 +8153,7 @@ export type GoogleDriveFeedPropertiesInput = {
8038
8153
  clientSecret?: InputMaybe<Scalars['String']['input']>;
8039
8154
  /** The authentication connector reference. */
8040
8155
  connector?: InputMaybe<EntityReferenceInput>;
8041
- /** Google Drive shared drive identifier. */
8156
+ /** Google Drive shared drive identifier. If not provided, defaults to the user's My Drive. */
8042
8157
  driveId?: InputMaybe<Scalars['ID']['input']>;
8043
8158
  /** Google Drive file identifiers. Takes precedence over folder identifier. */
8044
8159
  files?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
@@ -8059,7 +8174,7 @@ export type GoogleDriveFeedPropertiesUpdateInput = {
8059
8174
  clientSecret?: InputMaybe<Scalars['String']['input']>;
8060
8175
  /** The authentication connector reference. */
8061
8176
  connector?: InputMaybe<EntityReferenceInput>;
8062
- /** Google Drive shared drive identifier. */
8177
+ /** Google Drive shared drive identifier. If not provided, defaults to the user's My Drive. */
8063
8178
  driveId?: InputMaybe<Scalars['ID']['input']>;
8064
8179
  /** Google Drive file identifiers. Takes precedence over folder identifier. */
8065
8180
  files?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
@@ -9797,6 +9912,8 @@ export type Investment = {
9797
9912
  thing?: Maybe<Scalars['String']['output']>;
9798
9913
  /** The investment URI. */
9799
9914
  uri?: Maybe<Scalars['URL']['output']>;
9915
+ /** The user that created the entity. */
9916
+ user?: Maybe<EntityReference>;
9800
9917
  /** The investment vehicle type. */
9801
9918
  vehicle?: Maybe<Scalars['String']['output']>;
9802
9919
  /** The workflow associated with this investment. */
@@ -9942,6 +10059,8 @@ export type InvestmentFund = {
9942
10059
  thing?: Maybe<Scalars['String']['output']>;
9943
10060
  /** The investmentfund URI. */
9944
10061
  uri?: Maybe<Scalars['URL']['output']>;
10062
+ /** The user that created the entity. */
10063
+ user?: Maybe<EntityReference>;
9945
10064
  /** The fund vintage year. */
9946
10065
  vintage?: Maybe<Scalars['Int']['output']>;
9947
10066
  /** The workflow associated with this investment fund. */
@@ -10489,6 +10608,8 @@ export type Label = {
10489
10608
  relevance?: Maybe<Scalars['Float']['output']>;
10490
10609
  /** The state of the label (i.e. created, enabled). */
10491
10610
  state: EntityState;
10611
+ /** The user that created the entity. */
10612
+ user?: Maybe<EntityReference>;
10492
10613
  };
10493
10614
  /** Represents a label facet. */
10494
10615
  export type LabelFacet = {
@@ -11065,6 +11186,8 @@ export type MedicalCondition = {
11065
11186
  thing?: Maybe<Scalars['String']['output']>;
11066
11187
  /** The medicalcondition URI. */
11067
11188
  uri?: Maybe<Scalars['URL']['output']>;
11189
+ /** The user that created the entity. */
11190
+ user?: Maybe<EntityReference>;
11068
11191
  /** The workflow associated with this medical condition. */
11069
11192
  workflow?: Maybe<Workflow>;
11070
11193
  };
@@ -11234,6 +11357,8 @@ export type MedicalContraindication = {
11234
11357
  thing?: Maybe<Scalars['String']['output']>;
11235
11358
  /** The medicalcontraindication URI. */
11236
11359
  uri?: Maybe<Scalars['URL']['output']>;
11360
+ /** The user that created the entity. */
11361
+ user?: Maybe<EntityReference>;
11237
11362
  /** The workflow associated with this medical contraindication. */
11238
11363
  workflow?: Maybe<Workflow>;
11239
11364
  };
@@ -11403,6 +11528,8 @@ export type MedicalDevice = {
11403
11528
  thing?: Maybe<Scalars['String']['output']>;
11404
11529
  /** The medicaldevice URI. */
11405
11530
  uri?: Maybe<Scalars['URL']['output']>;
11531
+ /** The user that created the entity. */
11532
+ user?: Maybe<EntityReference>;
11406
11533
  /** The workflow associated with this medical device. */
11407
11534
  workflow?: Maybe<Workflow>;
11408
11535
  };
@@ -11572,6 +11699,8 @@ export type MedicalDrug = {
11572
11699
  thing?: Maybe<Scalars['String']['output']>;
11573
11700
  /** The medicaldrug URI. */
11574
11701
  uri?: Maybe<Scalars['URL']['output']>;
11702
+ /** The user that created the entity. */
11703
+ user?: Maybe<EntityReference>;
11575
11704
  /** The workflow associated with this medical drug. */
11576
11705
  workflow?: Maybe<Workflow>;
11577
11706
  };
@@ -11616,6 +11745,8 @@ export type MedicalDrugClass = {
11616
11745
  thing?: Maybe<Scalars['String']['output']>;
11617
11746
  /** The medicaldrugclass URI. */
11618
11747
  uri?: Maybe<Scalars['URL']['output']>;
11748
+ /** The user that created the entity. */
11749
+ user?: Maybe<EntityReference>;
11619
11750
  /** The workflow associated with this medical drug class. */
11620
11751
  workflow?: Maybe<Workflow>;
11621
11752
  };
@@ -11910,6 +12041,8 @@ export type MedicalGuideline = {
11910
12041
  thing?: Maybe<Scalars['String']['output']>;
11911
12042
  /** The medicalguideline URI. */
11912
12043
  uri?: Maybe<Scalars['URL']['output']>;
12044
+ /** The user that created the entity. */
12045
+ user?: Maybe<EntityReference>;
11913
12046
  /** The workflow associated with this medical guideline. */
11914
12047
  workflow?: Maybe<Workflow>;
11915
12048
  };
@@ -12079,6 +12212,8 @@ export type MedicalIndication = {
12079
12212
  thing?: Maybe<Scalars['String']['output']>;
12080
12213
  /** The medicalindication URI. */
12081
12214
  uri?: Maybe<Scalars['URL']['output']>;
12215
+ /** The user that created the entity. */
12216
+ user?: Maybe<EntityReference>;
12082
12217
  /** The workflow associated with this medical indication. */
12083
12218
  workflow?: Maybe<Workflow>;
12084
12219
  };
@@ -12248,6 +12383,8 @@ export type MedicalProcedure = {
12248
12383
  thing?: Maybe<Scalars['String']['output']>;
12249
12384
  /** The medicalprocedure URI. */
12250
12385
  uri?: Maybe<Scalars['URL']['output']>;
12386
+ /** The user that created the entity. */
12387
+ user?: Maybe<EntityReference>;
12251
12388
  /** The workflow associated with this medical procedure. */
12252
12389
  workflow?: Maybe<Workflow>;
12253
12390
  };
@@ -12419,6 +12556,8 @@ export type MedicalStudy = {
12419
12556
  thing?: Maybe<Scalars['String']['output']>;
12420
12557
  /** The medicalstudy URI. */
12421
12558
  uri?: Maybe<Scalars['URL']['output']>;
12559
+ /** The user that created the entity. */
12560
+ user?: Maybe<EntityReference>;
12422
12561
  /** The workflow associated with this medical study. */
12423
12562
  workflow?: Maybe<Workflow>;
12424
12563
  };
@@ -12592,6 +12731,8 @@ export type MedicalTest = {
12592
12731
  thing?: Maybe<Scalars['String']['output']>;
12593
12732
  /** The medicaltest URI. */
12594
12733
  uri?: Maybe<Scalars['URL']['output']>;
12734
+ /** The user that created the entity. */
12735
+ user?: Maybe<EntityReference>;
12595
12736
  /** The workflow associated with this medical test. */
12596
12737
  workflow?: Maybe<Workflow>;
12597
12738
  };
@@ -12761,6 +12902,8 @@ export type MedicalTherapy = {
12761
12902
  thing?: Maybe<Scalars['String']['output']>;
12762
12903
  /** The medicaltherapy URI. */
12763
12904
  uri?: Maybe<Scalars['URL']['output']>;
12905
+ /** The user that created the entity. */
12906
+ user?: Maybe<EntityReference>;
12764
12907
  /** The workflow associated with this medical therapy. */
12765
12908
  workflow?: Maybe<Workflow>;
12766
12909
  };
@@ -13078,6 +13221,8 @@ export type Metadata = {
13078
13221
  state: EntityState;
13079
13222
  /** The metadata type. */
13080
13223
  type?: Maybe<MetadataTypes>;
13224
+ /** The user that created the entity. */
13225
+ user?: Maybe<EntityReference>;
13081
13226
  /** The metadata value. */
13082
13227
  value?: Maybe<Scalars['String']['output']>;
13083
13228
  /** The metadata value type. */
@@ -14284,6 +14429,8 @@ export type Mutation = {
14284
14429
  openCollection?: Maybe<Collection>;
14285
14430
  /** Opens an existing conversation. */
14286
14431
  openConversation?: Maybe<Conversation>;
14432
+ /** Previews a feed to estimate item counts and content types before ingestion. */
14433
+ previewFeed?: Maybe<FeedPreviewResult>;
14287
14434
  /** Prompts LLM without content retrieval. You can provide a list of conversation messages to be completed, an LLM user prompt and optional Base64-encoded image, or both. If both are provided, the LLM prompt (and optional image) will be appended as an additional User message to the conversation. */
14288
14435
  prompt?: Maybe<PromptCompletion>;
14289
14436
  /** Prompts a conversation. */
@@ -14311,6 +14458,10 @@ export type Mutation = {
14311
14458
  removeSkillsFromCollection?: Maybe<Collection>;
14312
14459
  /** Research contents via web research based on provided filter criteria. */
14313
14460
  researchContents?: Maybe<StringResult>;
14461
+ /** Resets project credits and re-enables limited entities. */
14462
+ resetProjectCredits?: Maybe<Project>;
14463
+ /** Resets user credits and re-enables limited entities for the user. */
14464
+ resetUserCredits?: Maybe<User>;
14314
14465
  /** Resolves duplicate entities into a single primary entity using LLM reasoning. Returns clusters of suggested groupings if resolution is not executed. */
14315
14466
  resolveEntities?: Maybe<ResolveEntitiesResult>;
14316
14467
  /** Resolves a source entity into a target entity using LLM-driven metadata merging. The target is always the primary/canonical entity. */
@@ -15256,6 +15407,9 @@ export type MutationOpenCollectionArgs = {
15256
15407
  export type MutationOpenConversationArgs = {
15257
15408
  id: Scalars['ID']['input'];
15258
15409
  };
15410
+ export type MutationPreviewFeedArgs = {
15411
+ feed: FeedPreviewInput;
15412
+ };
15259
15413
  export type MutationPromptArgs = {
15260
15414
  correlationId?: InputMaybe<Scalars['String']['input']>;
15261
15415
  data?: InputMaybe<Scalars['String']['input']>;
@@ -15353,6 +15507,9 @@ export type MutationResearchContentsArgs = {
15353
15507
  summarySpecification?: InputMaybe<EntityReferenceInput>;
15354
15508
  workflow?: InputMaybe<EntityReferenceInput>;
15355
15509
  };
15510
+ export type MutationResetUserCreditsArgs = {
15511
+ id: Scalars['ID']['input'];
15512
+ };
15356
15513
  export type MutationResolveEntitiesArgs = {
15357
15514
  correlationId?: InputMaybe<Scalars['String']['input']>;
15358
15515
  entities: Array<EntityReferenceInput>;
@@ -16461,6 +16618,10 @@ export declare enum OpenAiModels {
16461
16618
  Gpt52_400K = "GPT52_400K",
16462
16619
  /** GPT 5.2 400k (2025-12-11 version) */
16463
16620
  Gpt52_400K_20251211 = "GPT52_400K_20251211",
16621
+ /** GPT 5.4 1024k (Latest) */
16622
+ Gpt54_1024K = "GPT54_1024K",
16623
+ /** GPT 5.4 1024k (2026-03-05 version) */
16624
+ Gpt54_1024K_20260305 = "GPT54_1024K_20260305",
16464
16625
  /** o1 200k (Latest) */
16465
16626
  O1_200K = "O1_200K",
16466
16627
  /** o1 200k (2024-12-17 version) */
@@ -16645,6 +16806,8 @@ export type Organization = {
16645
16806
  thing?: Maybe<Scalars['String']['output']>;
16646
16807
  /** The organization URI. */
16647
16808
  uri?: Maybe<Scalars['URL']['output']>;
16809
+ /** The user that created the entity. */
16810
+ user?: Maybe<EntityReference>;
16648
16811
  /** The workflow associated with this organization. */
16649
16812
  workflow?: Maybe<Workflow>;
16650
16813
  };
@@ -17057,6 +17220,8 @@ export type Person = {
17057
17220
  title?: Maybe<Scalars['String']['output']>;
17058
17221
  /** The person URI. */
17059
17222
  uri?: Maybe<Scalars['URL']['output']>;
17223
+ /** The user that created the entity. */
17224
+ user?: Maybe<EntityReference>;
17060
17225
  /** The place(s) where the person works. */
17061
17226
  workLocation?: Maybe<Array<Maybe<Place>>>;
17062
17227
  /** The workflow associated with this person. */
@@ -17321,6 +17486,8 @@ export type Persona = {
17321
17486
  state: EntityState;
17322
17487
  /** The IANA timezone of the persona. */
17323
17488
  timezone?: Maybe<Scalars['String']['output']>;
17489
+ /** The user that created the entity. */
17490
+ user?: Maybe<EntityReference>;
17324
17491
  };
17325
17492
  /** Represents a filter for personas. */
17326
17493
  export type PersonaFilter = {
@@ -17444,6 +17611,8 @@ export type Place = {
17444
17611
  thing?: Maybe<Scalars['String']['output']>;
17445
17612
  /** The place URI. */
17446
17613
  uri?: Maybe<Scalars['URL']['output']>;
17614
+ /** The user that created the entity. */
17615
+ user?: Maybe<EntityReference>;
17447
17616
  /** The workflow associated with this place. */
17448
17617
  workflow?: Maybe<Workflow>;
17449
17618
  };
@@ -17779,6 +17948,8 @@ export type Product = {
17779
17948
  upc?: Maybe<Scalars['String']['output']>;
17780
17949
  /** The product URI. */
17781
17950
  uri?: Maybe<Scalars['URL']['output']>;
17951
+ /** The user that created the entity. */
17952
+ user?: Maybe<EntityReference>;
17782
17953
  /** The workflow associated with this product. */
17783
17954
  workflow?: Maybe<Workflow>;
17784
17955
  };
@@ -18100,6 +18271,8 @@ export type ProjectQuota = {
18100
18271
  posts?: Maybe<Scalars['Int']['output']>;
18101
18272
  /** The storage quota, in bytes. */
18102
18273
  storage?: Maybe<Scalars['Long']['output']>;
18274
+ /** The maximum number of credits which can be accrued per user. */
18275
+ userCredits?: Maybe<Scalars['Int']['output']>;
18103
18276
  };
18104
18277
  /** Represents the project quota. */
18105
18278
  export type ProjectQuotaInput = {
@@ -18113,6 +18286,8 @@ export type ProjectQuotaInput = {
18113
18286
  posts?: InputMaybe<Scalars['Int']['input']>;
18114
18287
  /** The storage quota, in bytes. */
18115
18288
  storage?: InputMaybe<Scalars['Long']['input']>;
18289
+ /** The maximum number of credits which can be accrued per user. */
18290
+ userCredits?: InputMaybe<Scalars['Int']['input']>;
18116
18291
  };
18117
18292
  /** Represents project query results. */
18118
18293
  export type ProjectResults = {
@@ -18680,7 +18855,7 @@ export type Query = {
18680
18855
  gitHubRepositories?: Maybe<GitHubRepositoryResults>;
18681
18856
  /** Retrieves available Google calendars. */
18682
18857
  googleCalendars?: Maybe<CalendarResults>;
18683
- /** Retrieves available Google Drive shared drives. */
18858
+ /** Retrieves available Google Drive shared drives. Does not include the user's My Drive, which is the default when no drive identifier is specified. */
18684
18859
  googleDriveDrives?: Maybe<GoogleDriveDriveResults>;
18685
18860
  /** Retrieves available Google Drive folders. */
18686
18861
  googleDriveFolders?: Maybe<GoogleDriveFolderResults>;
@@ -19811,6 +19986,8 @@ export type Rendition = {
19811
19986
  type?: Maybe<RenditionTypes>;
19812
19987
  /** The rendition URI. */
19813
19988
  uri?: Maybe<Scalars['URL']['output']>;
19989
+ /** The user that created the entity. */
19990
+ user?: Maybe<EntityReference>;
19814
19991
  };
19815
19992
  /** Rendition type */
19816
19993
  export declare enum RenditionTypes {
@@ -19933,6 +20110,8 @@ export type Repo = {
19933
20110
  thing?: Maybe<Scalars['String']['output']>;
19934
20111
  /** The repo URI. */
19935
20112
  uri?: Maybe<Scalars['URL']['output']>;
20113
+ /** The user that created the entity. */
20114
+ user?: Maybe<EntityReference>;
19936
20115
  /** The workflow associated with this repo. */
19937
20116
  workflow?: Maybe<Workflow>;
19938
20117
  };
@@ -20860,6 +21039,8 @@ export type Skill = {
20860
21039
  state: EntityState;
20861
21040
  /** The Markdown text body of the skill. */
20862
21041
  text: Scalars['String']['output'];
21042
+ /** The user that created the entity. */
21043
+ user?: Maybe<EntityReference>;
20863
21044
  };
20864
21045
  /** Represents a filter for skills. */
20865
21046
  export type SkillFilter = {
@@ -21088,6 +21269,8 @@ export type Software = {
21088
21269
  thing?: Maybe<Scalars['String']['output']>;
21089
21270
  /** The software URI. */
21090
21271
  uri?: Maybe<Scalars['URL']['output']>;
21272
+ /** The user that created the entity. */
21273
+ user?: Maybe<EntityReference>;
21091
21274
  /** The workflow associated with this software. */
21092
21275
  workflow?: Maybe<Workflow>;
21093
21276
  };
@@ -21306,6 +21489,8 @@ export type Specification = {
21306
21489
  twelveLabs?: Maybe<TwelveLabsModelProperties>;
21307
21490
  /** The specification type. */
21308
21491
  type?: Maybe<SpecificationTypes>;
21492
+ /** The user that created the entity. */
21493
+ user?: Maybe<EntityReference>;
21309
21494
  /** The Voyage model properties. */
21310
21495
  voyage?: Maybe<VoyageModelProperties>;
21311
21496
  /** The xAI model properties. */
@@ -22189,16 +22374,22 @@ export type UriResults = {
22189
22374
  /** Represents a user. */
22190
22375
  export type User = {
22191
22376
  __typename?: 'User';
22377
+ /** The accumulated credits cost for the user. */
22378
+ accumulatedCredits?: Maybe<Scalars['Decimal']['output']>;
22192
22379
  /** The reference to the connectors that the user has created. */
22193
22380
  connectors?: Maybe<Array<Maybe<Connector>>>;
22194
22381
  /** The creation date of the user. */
22195
22382
  creationDate: Scalars['DateTime']['output'];
22383
+ /** The accumulated credits for the user. */
22384
+ credits?: Maybe<Scalars['Long']['output']>;
22196
22385
  /** The description of the user. */
22197
22386
  description?: Maybe<Scalars['String']['output']>;
22198
22387
  /** The ID of the user. */
22199
22388
  id: Scalars['ID']['output'];
22200
22389
  /** The external identifier of the user. */
22201
22390
  identifier: Scalars['String']['output'];
22391
+ /** The date of the last credits sync. */
22392
+ lastCreditsDate?: Maybe<Scalars['DateTime']['output']>;
22202
22393
  /** The modified date of the user. */
22203
22394
  modifiedDate?: Maybe<Scalars['DateTime']['output']>;
22204
22395
  /** The name of the user. */
@@ -22207,12 +22398,16 @@ export type User = {
22207
22398
  owner: Owner;
22208
22399
  /** The personas assigned to this user. */
22209
22400
  personas?: Maybe<Array<Maybe<Persona>>>;
22401
+ /** The user quota. */
22402
+ quota?: Maybe<UserQuota>;
22210
22403
  /** The relevance score of the user. */
22211
22404
  relevance?: Maybe<Scalars['Float']['output']>;
22212
22405
  /** The state of the user (i.e. created, finished). */
22213
22406
  state: EntityState;
22214
22407
  /** The user type, i.e. human or agent. */
22215
22408
  type?: Maybe<UserTypes>;
22409
+ /** The user that created the entity. */
22410
+ user?: Maybe<EntityReference>;
22216
22411
  };
22217
22412
  /** Represents a filter for users. */
22218
22413
  export type UserFilter = {
@@ -22256,6 +22451,17 @@ export type UserInput = {
22256
22451
  /** The user type, i.e. human or agent. */
22257
22452
  type?: InputMaybe<UserTypes>;
22258
22453
  };
22454
+ /** Represents the user quota. */
22455
+ export type UserQuota = {
22456
+ __typename?: 'UserQuota';
22457
+ /** The maximum number of credits which can be accrued by the user. */
22458
+ credits?: Maybe<Scalars['Int']['output']>;
22459
+ };
22460
+ /** Represents the user quota. */
22461
+ export type UserQuotaInput = {
22462
+ /** The maximum number of credits which can be accrued by the user. */
22463
+ credits?: InputMaybe<Scalars['Int']['input']>;
22464
+ };
22259
22465
  /** Represents user query results. */
22260
22466
  export type UserResults = {
22261
22467
  __typename?: 'UserResults';
@@ -22279,6 +22485,8 @@ export type UserUpdateInput = {
22279
22485
  identifier?: InputMaybe<Scalars['String']['input']>;
22280
22486
  /** The name of the user. */
22281
22487
  name?: InputMaybe<Scalars['String']['input']>;
22488
+ /** The user quota. */
22489
+ quota?: InputMaybe<UserQuotaInput>;
22282
22490
  /** The user type, i.e. human or agent. */
22283
22491
  type?: InputMaybe<UserTypes>;
22284
22492
  };
@@ -22368,6 +22576,8 @@ export type View = {
22368
22576
  state: EntityState;
22369
22577
  /** Type of view. */
22370
22578
  type?: Maybe<ViewTypes>;
22579
+ /** The user that created the entity. */
22580
+ user?: Maybe<EntityReference>;
22371
22581
  };
22372
22582
  /** Represents a filter for views. */
22373
22583
  export type ViewFilter = {
@@ -22581,6 +22791,8 @@ export type Workflow = {
22581
22791
  state: EntityState;
22582
22792
  /** The storage stage of the content workflow. */
22583
22793
  storage?: Maybe<StorageWorkflowStage>;
22794
+ /** The user that created the entity. */
22795
+ user?: Maybe<EntityReference>;
22584
22796
  };
22585
22797
  /** Represents the workflow action. */
22586
22798
  export type WorkflowAction = {
@@ -34343,6 +34555,27 @@ export type LookupPersonsQuery = {
34343
34555
  } | null> | null;
34344
34556
  } | null;
34345
34557
  };
34558
+ export type PreviewFeedMutationVariables = Exact<{
34559
+ feed: FeedPreviewInput;
34560
+ }>;
34561
+ export type PreviewFeedMutation = {
34562
+ __typename?: 'Mutation';
34563
+ previewFeed?: {
34564
+ __typename?: 'FeedPreviewResult';
34565
+ isComplete: boolean;
34566
+ itemCount: any;
34567
+ estimatedBytes?: any | null;
34568
+ estimatedTokens?: any | null;
34569
+ warnings?: Array<string> | null;
34570
+ contentTypeSummary?: Array<{
34571
+ __typename?: 'ContentTypeSummary';
34572
+ contentType: ContentTypes;
34573
+ fileType?: FileTypes | null;
34574
+ itemCount: any;
34575
+ totalBytes?: any | null;
34576
+ }> | null;
34577
+ } | null;
34578
+ };
34346
34579
  export type QueryAsanaProjectsQueryVariables = Exact<{
34347
34580
  properties: AsanaProjectsInput;
34348
34581
  }>;
@@ -41916,6 +42149,7 @@ export type GetProjectQuery = {
41916
42149
  feeds?: number | null;
41917
42150
  posts?: number | null;
41918
42151
  conversations?: number | null;
42152
+ userCredits?: number | null;
41919
42153
  } | null;
41920
42154
  } | null;
41921
42155
  };
@@ -43739,6 +43973,9 @@ export type GetUserQuery = {
43739
43973
  type?: UserTypes | null;
43740
43974
  identifier: string;
43741
43975
  description?: string | null;
43976
+ credits?: any | null;
43977
+ lastCreditsDate?: any | null;
43978
+ accumulatedCredits?: any | null;
43742
43979
  owner: {
43743
43980
  __typename?: 'Owner';
43744
43981
  id: string;
@@ -43827,6 +44064,10 @@ export type GetUserQuery = {
43827
44064
  text?: string | null;
43828
44065
  }> | null;
43829
44066
  } | null> | null;
44067
+ quota?: {
44068
+ __typename?: 'UserQuota';
44069
+ credits?: number | null;
44070
+ } | null;
43830
44071
  } | null;
43831
44072
  };
43832
44073
  export type GetUserByIdentifierQueryVariables = Exact<{
@@ -43845,6 +44086,9 @@ export type GetUserByIdentifierQuery = {
43845
44086
  type?: UserTypes | null;
43846
44087
  identifier: string;
43847
44088
  description?: string | null;
44089
+ credits?: any | null;
44090
+ lastCreditsDate?: any | null;
44091
+ accumulatedCredits?: any | null;
43848
44092
  owner: {
43849
44093
  __typename?: 'Owner';
43850
44094
  id: string;
@@ -43933,6 +44177,10 @@ export type GetUserByIdentifierQuery = {
43933
44177
  text?: string | null;
43934
44178
  }> | null;
43935
44179
  } | null> | null;
44180
+ quota?: {
44181
+ __typename?: 'UserQuota';
44182
+ credits?: number | null;
44183
+ } | null;
43936
44184
  } | null;
43937
44185
  };
43938
44186
  export type QueryUsersQueryVariables = Exact<{
@@ -43954,6 +44202,9 @@ export type QueryUsersQuery = {
43954
44202
  type?: UserTypes | null;
43955
44203
  identifier: string;
43956
44204
  description?: string | null;
44205
+ credits?: any | null;
44206
+ lastCreditsDate?: any | null;
44207
+ accumulatedCredits?: any | null;
43957
44208
  owner: {
43958
44209
  __typename?: 'Owner';
43959
44210
  id: string;
@@ -44042,6 +44293,10 @@ export type QueryUsersQuery = {
44042
44293
  text?: string | null;
44043
44294
  }> | null;
44044
44295
  } | null> | null;
44296
+ quota?: {
44297
+ __typename?: 'UserQuota';
44298
+ credits?: number | null;
44299
+ } | null;
44045
44300
  }> | null;
44046
44301
  } | null;
44047
44302
  };
@@ -970,6 +970,8 @@ export var EntityState;
970
970
  EntityState["Ingested"] = "INGESTED";
971
971
  /** Initialized */
972
972
  EntityState["Initialized"] = "INITIALIZED";
973
+ /** Limited */
974
+ EntityState["Limited"] = "LIMITED";
973
975
  /** Opened */
974
976
  EntityState["Opened"] = "OPENED";
975
977
  /** Paused */
@@ -2527,6 +2529,10 @@ export var OpenAiModels;
2527
2529
  OpenAiModels["Gpt52_400K"] = "GPT52_400K";
2528
2530
  /** GPT 5.2 400k (2025-12-11 version) */
2529
2531
  OpenAiModels["Gpt52_400K_20251211"] = "GPT52_400K_20251211";
2532
+ /** GPT 5.4 1024k (Latest) */
2533
+ OpenAiModels["Gpt54_1024K"] = "GPT54_1024K";
2534
+ /** GPT 5.4 1024k (2026-03-05 version) */
2535
+ OpenAiModels["Gpt54_1024K_20260305"] = "GPT54_1024K_20260305";
2530
2536
  /** o1 200k (Latest) */
2531
2537
  OpenAiModels["O1_200K"] = "O1_200K";
2532
2538
  /** o1 200k (2024-12-17 version) */
@@ -43,6 +43,9 @@ const OPENAI_MODEL_MAP = {
43
43
  // GPT-5.2 models
44
44
  [Types.OpenAiModels.Gpt52_400K]: "gpt-5.2",
45
45
  [Types.OpenAiModels.Gpt52_400K_20251211]: "gpt-5.2-2025-12-11",
46
+ // GPT-5.4 models
47
+ [Types.OpenAiModels.Gpt54_1024K]: "gpt-5.4",
48
+ [Types.OpenAiModels.Gpt54_1024K_20260305]: "gpt-5.4-2026-03-05",
46
49
  // O1 models
47
50
  [Types.OpenAiModels.O1_200K]: "o1",
48
51
  [Types.OpenAiModels.O1_200K_20241217]: "o1-2024-12-17",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260303003",
3
+ "version": "1.0.20260305001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",