graphlit-client 1.0.20260419002 → 1.0.20260419004

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
@@ -3119,6 +3119,20 @@ declare class Graphlit {
3119
3119
  * with `intermediateMessages` rather than a single tool-call list.
3120
3120
  */
3121
3121
  private detectTaskCompleteInMessages;
3122
+ /**
3123
+ * Extract the `final_message` argument from a task_complete invocation
3124
+ * within a list of tool calls. Handles both direct invocation and
3125
+ * meta-executor wrapping (mirrors `detectTaskComplete`).
3126
+ *
3127
+ * Returns undefined if task_complete was not called, the arg is missing,
3128
+ * or the arg is not a non-empty string.
3129
+ */
3130
+ private extractTaskCompleteFinalMessage;
3131
+ /**
3132
+ * Scan a list of messages for a task_complete invocation's `final_message`
3133
+ * arg. Convenience wrapper over `extractTaskCompleteFinalMessage`.
3134
+ */
3135
+ private extractTaskCompleteFinalMessageFromMessages;
3122
3136
  /**
3123
3137
  * Run LLM-as-judge quality assessment on a completed agent run.
3124
3138
  */
package/dist/client.js CHANGED
@@ -6981,22 +6981,32 @@ class Graphlit {
6981
6981
  }
6982
6982
  // Build tools list with task_complete prepended.
6983
6983
  //
6984
- // task_complete is a bare completion signal — it takes no arguments.
6985
- // The agent's user-facing answer MUST be in its final assistant message
6986
- // (the `fullMessage` / `finalAssistantMessage` on the turn result); this
6987
- // tool only marks the run as done.
6984
+ // task_complete's optional `final_message` parameter is the explicit
6985
+ // commitment of the agent's user-facing answer. When provided, it
6986
+ // becomes the persisted assistant message for that turn AND the run's
6987
+ // `finalMessage`, overriding any prose the model wrote around the call.
6988
6988
  //
6989
- // Earlier versions had a `summary` field. That consistently caused the
6990
- // model to stuff its answer into the tool argument and then write a
6991
- // useless prose message ("answer delivered above") — the user would see
6992
- // the empty prose, not the answer. Removing the field eliminates the
6993
- // hiding place.
6989
+ // An earlier version used a `summary` field. The name encouraged
6990
+ // truncated summarization the model would stuff a short summary into
6991
+ // the arg and emit useless prose like "answer delivered above". The
6992
+ // field name `final_message` and description below are explicit: this
6993
+ // IS the full answer, not a summary, and it replaces surrounding prose.
6994
+ //
6995
+ // If the model omits `final_message`, the SDK falls back to the last
6996
+ // turn whose assistant text was substantive AND did not itself call
6997
+ // task_complete — so a throwaway completion turn can't overwrite the
6998
+ // real answer in a prior turn.
6994
6999
  const taskCompleteTool = {
6995
7000
  name: "task_complete",
6996
- description: "Signal that you have completed the assigned task. Your full answer must already be in your assistant message BEFORE calling this that prose is what the user sees. This tool takes no arguments; it only ends the run.",
7001
+ description: "Signal that you have completed the assigned task. Provide your complete, final user-facing answer as `final_message` full prose, not a summary. That string becomes the assistant message the user sees; do not also emit the answer as plain text around this call. Calling this tool ends the run.",
6997
7002
  schema: JSON.stringify({
6998
7003
  type: "object",
6999
- properties: {},
7004
+ properties: {
7005
+ final_message: {
7006
+ type: "string",
7007
+ description: "Your complete, final answer to the user as full prose. Replaces any assistant text written around this tool call.",
7008
+ },
7009
+ },
7000
7010
  }),
7001
7011
  };
7002
7012
  const allTools = [
@@ -7254,9 +7264,39 @@ class Graphlit {
7254
7264
  finally {
7255
7265
  uiAdapter.dispose();
7256
7266
  }
7257
- // 8. Complete conversation (persist turn)
7258
- const trimmedMessage = loopResult.finalAssistantMessage;
7259
- if (trimmedMessage) {
7267
+ // 8. Detect task_complete and extract its optional `final_message`
7268
+ // arg BEFORE persistence. When provided, it replaces the turn's
7269
+ // assistant prose as the canonical answer — see the task_complete
7270
+ // tool schema above.
7271
+ const taskCompleteThisTurn = this.detectTaskCompleteInMessages(loopResult.intermediateMessages);
7272
+ const taskCompleteFinalMessage = taskCompleteThisTurn
7273
+ ? this.extractTaskCompleteFinalMessageFromMessages(loopResult.intermediateMessages)
7274
+ : undefined;
7275
+ // Resolve the assistant message to persist for this turn:
7276
+ // - task_complete({final_message}) → final_message (authoritative)
7277
+ // - task_complete() with no arg, prior substantive answer exists →
7278
+ // drop the turn's prose so throwaway text like "delivered above"
7279
+ // doesn't pollute chat history
7280
+ // - task_complete() with no arg, no prior answer → keep the prose
7281
+ // (single-shot completion case)
7282
+ // - normal turn → keep the prose
7283
+ let assistantMessageToPersist;
7284
+ if (taskCompleteThisTurn) {
7285
+ if (taskCompleteFinalMessage) {
7286
+ assistantMessageToPersist = taskCompleteFinalMessage;
7287
+ }
7288
+ else if (finalMessage) {
7289
+ assistantMessageToPersist = "";
7290
+ }
7291
+ else {
7292
+ assistantMessageToPersist = loopResult.finalAssistantMessage;
7293
+ }
7294
+ }
7295
+ else {
7296
+ assistantMessageToPersist = loopResult.finalAssistantMessage;
7297
+ }
7298
+ // 8b. Complete conversation (persist turn)
7299
+ if (assistantMessageToPersist) {
7260
7300
  const completionTime = uiAdapter.getCompletionTime();
7261
7301
  const ttft = uiAdapter.getTTFT();
7262
7302
  const throughput = uiAdapter.getThroughput();
@@ -7271,7 +7311,7 @@ class Graphlit {
7271
7311
  if (loopResult.lastRoundReasoning) {
7272
7312
  const completionInput = {
7273
7313
  role: Types.ConversationRoleTypes.Assistant,
7274
- message: trimmedMessage,
7314
+ message: assistantMessageToPersist,
7275
7315
  timestamp: new Date().toISOString(),
7276
7316
  thinkingContent: loopResult.lastRoundReasoning.content,
7277
7317
  };
@@ -7284,7 +7324,7 @@ class Graphlit {
7284
7324
  completionInput,
7285
7325
  ];
7286
7326
  }
7287
- await this.completeConversation(trimmedMessage, conversationId, millisecondsToTimeSpan(completionTime), millisecondsToTimeSpan(ttft), throughput, undefined, turnMessageInputs, options?.correlationId);
7327
+ await this.completeConversation(assistantMessageToPersist, conversationId, millisecondsToTimeSpan(completionTime), millisecondsToTimeSpan(ttft), throughput, undefined, turnMessageInputs, options?.correlationId);
7288
7328
  // Emit completion event
7289
7329
  uiAdapter.handleEvent({
7290
7330
  type: "complete",
@@ -7293,12 +7333,11 @@ class Graphlit {
7293
7333
  }
7294
7334
  // 9. Build TurnResult
7295
7335
  const turnDuration = Date.now() - turnStart;
7296
- const taskCompleteThisTurn = this.detectTaskCompleteInMessages(loopResult.intermediateMessages);
7297
7336
  const turnToolNames = [...new Set(loopResult.toolCallNames)].sort();
7298
7337
  const turnResult = {
7299
7338
  turnNumber: turn,
7300
7339
  prompt: currentPrompt,
7301
- responseText: loopResult.fullMessage,
7340
+ responseText: taskCompleteFinalMessage || loopResult.fullMessage,
7302
7341
  toolCalls: turnToolNames,
7303
7342
  toolCallCount: loopResult.toolCallCount,
7304
7343
  durationMs: turnDuration,
@@ -7314,7 +7353,25 @@ class Graphlit {
7314
7353
  lastTurnUsage = undefined;
7315
7354
  turnResults.push(turnResult);
7316
7355
  totalToolCalls += loopResult.toolCallCount;
7317
- finalMessage = loopResult.finalAssistantMessage || loopResult.fullMessage;
7356
+ // Update finalMessage with priority:
7357
+ // - task_complete({final_message}) → authoritative
7358
+ // - task_complete() without arg → keep prior finalMessage (avoids
7359
+ // throwaway completion-turn prose overwriting a real answer)
7360
+ // - normal turn → this turn's assistant text
7361
+ if (taskCompleteThisTurn) {
7362
+ if (taskCompleteFinalMessage) {
7363
+ finalMessage = taskCompleteFinalMessage;
7364
+ }
7365
+ else if (!finalMessage) {
7366
+ // No prior answer — this turn's prose is all we have
7367
+ finalMessage =
7368
+ loopResult.finalAssistantMessage || loopResult.fullMessage;
7369
+ }
7370
+ }
7371
+ else {
7372
+ finalMessage =
7373
+ loopResult.finalAssistantMessage || loopResult.fullMessage;
7374
+ }
7318
7375
  lastContextWindow = loopResult.contextWindow;
7319
7376
  // 10. Notify callback
7320
7377
  options?.onTurnComplete?.(turnResult);
@@ -7564,6 +7621,56 @@ class Graphlit {
7564
7621
  }
7565
7622
  return false;
7566
7623
  }
7624
+ /**
7625
+ * Extract the `final_message` argument from a task_complete invocation
7626
+ * within a list of tool calls. Handles both direct invocation and
7627
+ * meta-executor wrapping (mirrors `detectTaskComplete`).
7628
+ *
7629
+ * Returns undefined if task_complete was not called, the arg is missing,
7630
+ * or the arg is not a non-empty string.
7631
+ */
7632
+ extractTaskCompleteFinalMessage(toolCalls) {
7633
+ if (!toolCalls)
7634
+ return undefined;
7635
+ for (const tc of toolCalls) {
7636
+ if (!tc?.arguments)
7637
+ continue;
7638
+ let args;
7639
+ try {
7640
+ args = JSON.parse(tc.arguments);
7641
+ }
7642
+ catch {
7643
+ continue;
7644
+ }
7645
+ // Direct invocation: args ARE the task_complete params
7646
+ if (tc.name === "task_complete") {
7647
+ const fm = args.final_message;
7648
+ if (typeof fm === "string" && fm.trim().length > 0)
7649
+ return fm;
7650
+ continue;
7651
+ }
7652
+ // Meta-executor wrapping: { tool: "task_complete", parameters: {...} }
7653
+ if (args.tool === "task_complete") {
7654
+ const params = args.parameters;
7655
+ const fm = params?.final_message;
7656
+ if (typeof fm === "string" && fm.trim().length > 0)
7657
+ return fm;
7658
+ }
7659
+ }
7660
+ return undefined;
7661
+ }
7662
+ /**
7663
+ * Scan a list of messages for a task_complete invocation's `final_message`
7664
+ * arg. Convenience wrapper over `extractTaskCompleteFinalMessage`.
7665
+ */
7666
+ extractTaskCompleteFinalMessageFromMessages(messages) {
7667
+ for (const msg of messages) {
7668
+ const fm = this.extractTaskCompleteFinalMessage(msg.toolCalls);
7669
+ if (fm)
7670
+ return fm;
7671
+ }
7672
+ return undefined;
7673
+ }
7567
7674
  /**
7568
7675
  * Run LLM-as-judge quality assessment on a completed agent run.
7569
7676
  */
@@ -1898,6 +1898,7 @@ export const GetConnector = gql `
1898
1898
  clientId
1899
1899
  clientSecret
1900
1900
  refreshToken
1901
+ accessToken
1901
1902
  redirectUri
1902
1903
  metadata
1903
1904
  }
@@ -1998,6 +1999,7 @@ export const QueryConnectors = gql `
1998
1999
  clientId
1999
2000
  clientSecret
2000
2001
  refreshToken
2002
+ accessToken
2001
2003
  redirectUri
2002
2004
  metadata
2003
2005
  }
@@ -10891,6 +10893,17 @@ export const GetFeed = gql `
10891
10893
  identifiers
10892
10894
  type
10893
10895
  }
10896
+ evernote {
10897
+ readLimit
10898
+ type
10899
+ connector {
10900
+ id
10901
+ }
10902
+ query
10903
+ tagGuids
10904
+ includeResources
10905
+ includeInactive
10906
+ }
10894
10907
  confluence {
10895
10908
  readLimit
10896
10909
  authenticationType
@@ -11983,6 +11996,17 @@ export const QueryFeeds = gql `
11983
11996
  identifiers
11984
11997
  type
11985
11998
  }
11999
+ evernote {
12000
+ readLimit
12001
+ type
12002
+ connector {
12003
+ id
12004
+ }
12005
+ query
12006
+ tagGuids
12007
+ includeResources
12008
+ includeInactive
12009
+ }
11986
12010
  confluence {
11987
12011
  readLimit
11988
12012
  authenticationType
@@ -18001,6 +18025,7 @@ export const CreateReplica = gql `
18001
18025
  clientId
18002
18026
  clientSecret
18003
18027
  refreshToken
18028
+ accessToken
18004
18029
  redirectUri
18005
18030
  metadata
18006
18031
  }
@@ -18304,6 +18329,7 @@ export const GetReplica = gql `
18304
18329
  clientId
18305
18330
  clientSecret
18306
18331
  refreshToken
18332
+ accessToken
18307
18333
  redirectUri
18308
18334
  metadata
18309
18335
  }
@@ -18562,6 +18588,7 @@ export const QueryReplicas = gql `
18562
18588
  clientId
18563
18589
  clientSecret
18564
18590
  refreshToken
18591
+ accessToken
18565
18592
  redirectUri
18566
18593
  metadata
18567
18594
  }
@@ -18829,6 +18856,7 @@ export const UpdateReplica = gql `
18829
18856
  clientId
18830
18857
  clientSecret
18831
18858
  refreshToken
18859
+ accessToken
18832
18860
  redirectUri
18833
18861
  metadata
18834
18862
  }
@@ -19080,6 +19108,7 @@ export const UpsertReplica = gql `
19080
19108
  clientId
19081
19109
  clientSecret
19082
19110
  refreshToken
19111
+ accessToken
19083
19112
  redirectUri
19084
19113
  metadata
19085
19114
  }
@@ -20624,6 +20653,7 @@ export const GetUser = gql `
20624
20653
  clientId
20625
20654
  clientSecret
20626
20655
  refreshToken
20656
+ accessToken
20627
20657
  redirectUri
20628
20658
  metadata
20629
20659
  }
@@ -20753,6 +20783,7 @@ export const GetUserByIdentifier = gql `
20753
20783
  clientId
20754
20784
  clientSecret
20755
20785
  refreshToken
20786
+ accessToken
20756
20787
  redirectUri
20757
20788
  metadata
20758
20789
  }
@@ -20883,6 +20914,7 @@ export const QueryUsers = gql `
20883
20914
  clientId
20884
20915
  clientSecret
20885
20916
  refreshToken
20917
+ accessToken
20886
20918
  redirectUri
20887
20919
  metadata
20888
20920
  }
@@ -7357,6 +7357,108 @@ export type EventUpdateInput = {
7357
7357
  /** The event URI. */
7358
7358
  uri?: InputMaybe<Scalars['URL']['input']>;
7359
7359
  };
7360
+ /** Represents Evernote authorized notebook discovery properties. */
7361
+ export type EvernoteAuthorizedNotebookInput = {
7362
+ /** Evernote App Notebook authentication connector reference. */
7363
+ connector: EntityReferenceInput;
7364
+ };
7365
+ /** Represents Evernote feed properties. */
7366
+ export type EvernoteFeedProperties = {
7367
+ __typename?: 'EvernoteFeedProperties';
7368
+ /** Evernote App Notebook authentication connector reference. */
7369
+ connector?: Maybe<EntityReference>;
7370
+ /** Should the feed include inactive notes. */
7371
+ includeInactive?: Maybe<Scalars['Boolean']['output']>;
7372
+ /** Should the feed include note resources. */
7373
+ includeResources?: Maybe<Scalars['Boolean']['output']>;
7374
+ /** Evernote search query within the authorized notebook. */
7375
+ query?: Maybe<Scalars['String']['output']>;
7376
+ /** The limit of items to be read from feed, defaults to 100. */
7377
+ readLimit?: Maybe<Scalars['Int']['output']>;
7378
+ /** Evernote tag GUIDs within the authorized notebook. */
7379
+ tagGuids?: Maybe<Array<Scalars['String']['output']>>;
7380
+ /** Feed listing type, i.e. past or new notes. */
7381
+ type?: Maybe<FeedListingTypes>;
7382
+ };
7383
+ /** Represents Evernote feed properties. */
7384
+ export type EvernoteFeedPropertiesInput = {
7385
+ /** Evernote App Notebook authentication connector reference. */
7386
+ connector: EntityReferenceInput;
7387
+ /** Should the feed include inactive notes. */
7388
+ includeInactive?: InputMaybe<Scalars['Boolean']['input']>;
7389
+ /** Should the feed include note resources. */
7390
+ includeResources?: InputMaybe<Scalars['Boolean']['input']>;
7391
+ /** Evernote search query within the authorized notebook. */
7392
+ query?: InputMaybe<Scalars['String']['input']>;
7393
+ /** The limit of items to be read from feed, defaults to 100. */
7394
+ readLimit?: InputMaybe<Scalars['Int']['input']>;
7395
+ /** Evernote tag GUIDs within the authorized notebook. */
7396
+ tagGuids?: InputMaybe<Array<Scalars['String']['input']>>;
7397
+ /** Feed listing type, i.e. past or new notes. */
7398
+ type?: InputMaybe<FeedListingTypes>;
7399
+ };
7400
+ /** Represents Evernote feed properties. */
7401
+ export type EvernoteFeedPropertiesUpdateInput = {
7402
+ /** Evernote App Notebook authentication connector reference. */
7403
+ connector?: InputMaybe<EntityReferenceInput>;
7404
+ /** Should the feed include inactive notes. */
7405
+ includeInactive?: InputMaybe<Scalars['Boolean']['input']>;
7406
+ /** Should the feed include note resources. */
7407
+ includeResources?: InputMaybe<Scalars['Boolean']['input']>;
7408
+ /** Evernote search query within the authorized notebook. */
7409
+ query?: InputMaybe<Scalars['String']['input']>;
7410
+ /** The limit of items to be read from feed, defaults to 100. */
7411
+ readLimit?: InputMaybe<Scalars['Int']['input']>;
7412
+ /** Evernote tag GUIDs. */
7413
+ tagGuids?: InputMaybe<Array<Scalars['String']['input']>>;
7414
+ /** Feed listing type, i.e. past or new notes. */
7415
+ type?: InputMaybe<FeedListingTypes>;
7416
+ };
7417
+ /** Represents an Evernote notebook. */
7418
+ export type EvernoteNotebookResult = {
7419
+ __typename?: 'EvernoteNotebookResult';
7420
+ /** The notebook creation date. */
7421
+ createdDate?: Maybe<Scalars['DateTime']['output']>;
7422
+ /** The Evernote notebook GUID. */
7423
+ identifier?: Maybe<Scalars['ID']['output']>;
7424
+ /** Whether this is the default notebook. */
7425
+ isDefault?: Maybe<Scalars['Boolean']['output']>;
7426
+ /** The notebook modification date. */
7427
+ modifiedDate?: Maybe<Scalars['DateTime']['output']>;
7428
+ /** The Evernote notebook name. */
7429
+ name?: Maybe<Scalars['String']['output']>;
7430
+ /** The Evernote notebook stack. */
7431
+ stack?: Maybe<Scalars['String']['output']>;
7432
+ };
7433
+ /** Represents the authorized Evernote App Notebook. */
7434
+ export type EvernoteNotebookResults = {
7435
+ __typename?: 'EvernoteNotebookResults';
7436
+ /** The zero-or-one Evernote App Notebook authorized by the connector. */
7437
+ results?: Maybe<Array<Maybe<EvernoteNotebookResult>>>;
7438
+ };
7439
+ /** Represents an Evernote tag. */
7440
+ export type EvernoteTagResult = {
7441
+ __typename?: 'EvernoteTagResult';
7442
+ /** The Evernote tag GUID. */
7443
+ identifier?: Maybe<Scalars['ID']['output']>;
7444
+ /** The tag modification date. */
7445
+ modifiedDate?: Maybe<Scalars['DateTime']['output']>;
7446
+ /** The Evernote tag name. */
7447
+ name?: Maybe<Scalars['String']['output']>;
7448
+ /** The Evernote parent tag GUID. */
7449
+ parentIdentifier?: Maybe<Scalars['ID']['output']>;
7450
+ };
7451
+ /** Represents Evernote tags. */
7452
+ export type EvernoteTagResults = {
7453
+ __typename?: 'EvernoteTagResults';
7454
+ /** The Evernote tags. */
7455
+ results?: Maybe<Array<Maybe<EvernoteTagResult>>>;
7456
+ };
7457
+ /** Represents Evernote tag discovery properties. */
7458
+ export type EvernoteTagsInput = {
7459
+ /** Evernote App Notebook authentication connector reference. */
7460
+ connector: EntityReferenceInput;
7461
+ };
7360
7462
  /** Represents Exa search properties. */
7361
7463
  export type ExaSearchProperties = {
7362
7464
  __typename?: 'ExaSearchProperties';
@@ -7745,6 +7847,8 @@ export type Feed = {
7745
7847
  entity?: Maybe<EntityFeedProperties>;
7746
7848
  /** If feed failed, the error message. */
7747
7849
  error?: Maybe<Scalars['String']['output']>;
7850
+ /** The Evernote feed properties. */
7851
+ evernote?: Maybe<EvernoteFeedProperties>;
7748
7852
  /** The HRIS feed properties. */
7749
7853
  hris?: Maybe<HrisFeedProperties>;
7750
7854
  /** The HubSpot Conversations feed properties. */
@@ -7947,6 +8051,8 @@ export type FeedInput = {
7947
8051
  email?: InputMaybe<EmailFeedPropertiesInput>;
7948
8052
  /** The Entity discovery feed properties. */
7949
8053
  entity?: InputMaybe<EntityFeedPropertiesInput>;
8054
+ /** The Evernote feed properties. */
8055
+ evernote?: InputMaybe<EvernoteFeedPropertiesInput>;
7950
8056
  /** The HRIS feed properties. */
7951
8057
  hris?: InputMaybe<HrisFeedPropertiesInput>;
7952
8058
  /** The HubSpot Conversations feed properties. */
@@ -8031,6 +8137,8 @@ export type FeedPreviewInput = {
8031
8137
  email?: InputMaybe<EmailFeedPropertiesInput>;
8032
8138
  /** The Entity discovery feed properties. */
8033
8139
  entity?: InputMaybe<EntityFeedPropertiesInput>;
8140
+ /** The Evernote feed properties. */
8141
+ evernote?: InputMaybe<EvernoteFeedPropertiesInput>;
8034
8142
  /** The HRIS feed properties. */
8035
8143
  hris?: InputMaybe<HrisFeedPropertiesInput>;
8036
8144
  /** The HubSpot Conversations feed properties. */
@@ -8281,6 +8389,8 @@ export declare enum FeedTypes {
8281
8389
  Email = "EMAIL",
8282
8390
  /** Entity discovery feed */
8283
8391
  Entity = "ENTITY",
8392
+ /** Evernote feed */
8393
+ Evernote = "EVERNOTE",
8284
8394
  /** HRIS feed */
8285
8395
  Hris = "HRIS",
8286
8396
  /** HubSpot feed */
@@ -8350,6 +8460,8 @@ export type FeedUpdateInput = {
8350
8460
  email?: InputMaybe<EmailFeedPropertiesUpdateInput>;
8351
8461
  /** The Entity discovery feed properties. */
8352
8462
  entity?: InputMaybe<EntityFeedPropertiesUpdateInput>;
8463
+ /** The Evernote feed properties. */
8464
+ evernote?: InputMaybe<EvernoteFeedPropertiesUpdateInput>;
8353
8465
  /** The HRIS feed properties. */
8354
8466
  hris?: InputMaybe<HrisFeedPropertiesUpdateInput>;
8355
8467
  /** The HubSpot Conversations feed properties. */
@@ -18412,6 +18524,8 @@ export declare enum NotionTypes {
18412
18524
  /** Represents OAuth authentication properties. */
18413
18525
  export type OAuthAuthenticationProperties = {
18414
18526
  __typename?: 'OAuthAuthenticationProperties';
18527
+ /** OAuth access token. */
18528
+ accessToken?: Maybe<Scalars['String']['output']>;
18415
18529
  /** OAuth client identifier. */
18416
18530
  clientId: Scalars['String']['output'];
18417
18531
  /** OAuth client secret. */
@@ -18423,10 +18537,12 @@ export type OAuthAuthenticationProperties = {
18423
18537
  /** OAuth redirect URI. */
18424
18538
  redirectUri?: Maybe<Scalars['String']['output']>;
18425
18539
  /** OAuth refresh token. */
18426
- refreshToken: Scalars['String']['output'];
18540
+ refreshToken?: Maybe<Scalars['String']['output']>;
18427
18541
  };
18428
18542
  /** Represents OAuth authentication properties. */
18429
18543
  export type OAuthAuthenticationPropertiesInput = {
18544
+ /** OAuth access token. */
18545
+ accessToken?: InputMaybe<Scalars['String']['input']>;
18430
18546
  /** OAuth client identifier. */
18431
18547
  clientId: Scalars['String']['input'];
18432
18548
  /** OAuth client secret. */
@@ -18438,7 +18554,7 @@ export type OAuthAuthenticationPropertiesInput = {
18438
18554
  /** OAuth redirect URI. */
18439
18555
  redirectUri?: InputMaybe<Scalars['String']['input']>;
18440
18556
  /** OAuth refresh token. */
18441
- refreshToken: Scalars['String']['input'];
18557
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
18442
18558
  };
18443
18559
  /** OAuth authentication providers */
18444
18560
  export declare enum OAuthProviders {
@@ -18450,6 +18566,8 @@ export declare enum OAuthProviders {
18450
18566
  Box = "BOX",
18451
18567
  /** Dropbox authentication provider */
18452
18568
  Dropbox = "DROPBOX",
18569
+ /** Evernote authentication provider */
18570
+ Evernote = "EVERNOTE",
18453
18571
  /** GitHub authentication provider */
18454
18572
  GitHub = "GIT_HUB",
18455
18573
  /** GitLab authentication provider */
@@ -21507,6 +21625,10 @@ export type Query = {
21507
21625
  event?: Maybe<Event>;
21508
21626
  /** Retrieves events based on the provided filter criteria. */
21509
21627
  events?: Maybe<EventResults>;
21628
+ /** Retrieves the authorized Evernote App Notebook. */
21629
+ evernoteAuthorizedNotebook?: Maybe<EvernoteNotebookResults>;
21630
+ /** Retrieves available Evernote tags. */
21631
+ evernoteTags?: Maybe<EvernoteTagResults>;
21510
21632
  /** Lookup a fact given its ID. */
21511
21633
  fact?: Maybe<Fact>;
21512
21634
  /** Retrieves facts based on the provided filter criteria. */
@@ -22018,6 +22140,12 @@ export type QueryEventsArgs = {
22018
22140
  facets?: InputMaybe<Array<EventFacetInput>>;
22019
22141
  filter?: InputMaybe<EventFilter>;
22020
22142
  };
22143
+ export type QueryEvernoteAuthorizedNotebookArgs = {
22144
+ properties: EvernoteAuthorizedNotebookInput;
22145
+ };
22146
+ export type QueryEvernoteTagsArgs = {
22147
+ properties: EvernoteTagsInput;
22148
+ };
22021
22149
  export type QueryFactArgs = {
22022
22150
  correlationId?: InputMaybe<Scalars['String']['input']>;
22023
22151
  id: Scalars['ID']['input'];
@@ -22908,6 +23036,10 @@ export type ReplicaGitPropertiesInput = {
22908
23036
  branch?: InputMaybe<Scalars['String']['input']>;
22909
23037
  /** The Git branch selection behavior. */
22910
23038
  branchType?: InputMaybe<ReplicaBranchTypes>;
23039
+ /** Whether Graphlit should create the Git destination if it does not exist. */
23040
+ createIfMissing?: InputMaybe<Scalars['Boolean']['input']>;
23041
+ /** The GitLab project name to create. */
23042
+ projectName?: InputMaybe<Scalars['String']['input']>;
22911
23043
  /** The GitLab project path. */
22912
23044
  projectPath?: InputMaybe<Scalars['String']['input']>;
22913
23045
  /** The GitHub repository name. */
@@ -28888,7 +29020,8 @@ export type GetConnectorQuery = {
28888
29020
  provider: OAuthProviders;
28889
29021
  clientId: string;
28890
29022
  clientSecret: string;
28891
- refreshToken: string;
29023
+ refreshToken?: string | null;
29024
+ accessToken?: string | null;
28892
29025
  redirectUri?: string | null;
28893
29026
  metadata?: string | null;
28894
29027
  } | null;
@@ -29011,7 +29144,8 @@ export type QueryConnectorsQuery = {
29011
29144
  provider: OAuthProviders;
29012
29145
  clientId: string;
29013
29146
  clientSecret: string;
29014
- refreshToken: string;
29147
+ refreshToken?: string | null;
29148
+ accessToken?: string | null;
29015
29149
  redirectUri?: string | null;
29016
29150
  metadata?: string | null;
29017
29151
  } | null;
@@ -39183,6 +39317,19 @@ export type GetFeedQuery = {
39183
39317
  id: string;
39184
39318
  } | null;
39185
39319
  } | null;
39320
+ evernote?: {
39321
+ __typename?: 'EvernoteFeedProperties';
39322
+ readLimit?: number | null;
39323
+ type?: FeedListingTypes | null;
39324
+ query?: string | null;
39325
+ tagGuids?: Array<string> | null;
39326
+ includeResources?: boolean | null;
39327
+ includeInactive?: boolean | null;
39328
+ connector?: {
39329
+ __typename?: 'EntityReference';
39330
+ id: string;
39331
+ } | null;
39332
+ } | null;
39186
39333
  confluence?: {
39187
39334
  __typename?: 'ConfluenceFeedProperties';
39188
39335
  readLimit?: number | null;
@@ -40489,6 +40636,19 @@ export type QueryFeedsQuery = {
40489
40636
  id: string;
40490
40637
  } | null;
40491
40638
  } | null;
40639
+ evernote?: {
40640
+ __typename?: 'EvernoteFeedProperties';
40641
+ readLimit?: number | null;
40642
+ type?: FeedListingTypes | null;
40643
+ query?: string | null;
40644
+ tagGuids?: Array<string> | null;
40645
+ includeResources?: boolean | null;
40646
+ includeInactive?: boolean | null;
40647
+ connector?: {
40648
+ __typename?: 'EntityReference';
40649
+ id: string;
40650
+ } | null;
40651
+ } | null;
40492
40652
  confluence?: {
40493
40653
  __typename?: 'ConfluenceFeedProperties';
40494
40654
  readLimit?: number | null;
@@ -47817,7 +47977,8 @@ export type CreateReplicaMutation = {
47817
47977
  provider: OAuthProviders;
47818
47978
  clientId: string;
47819
47979
  clientSecret: string;
47820
- refreshToken: string;
47980
+ refreshToken?: string | null;
47981
+ accessToken?: string | null;
47821
47982
  redirectUri?: string | null;
47822
47983
  metadata?: string | null;
47823
47984
  } | null;
@@ -48195,7 +48356,8 @@ export type GetReplicaQuery = {
48195
48356
  provider: OAuthProviders;
48196
48357
  clientId: string;
48197
48358
  clientSecret: string;
48198
- refreshToken: string;
48359
+ refreshToken?: string | null;
48360
+ accessToken?: string | null;
48199
48361
  redirectUri?: string | null;
48200
48362
  metadata?: string | null;
48201
48363
  } | null;
@@ -48514,7 +48676,8 @@ export type QueryReplicasQuery = {
48514
48676
  provider: OAuthProviders;
48515
48677
  clientId: string;
48516
48678
  clientSecret: string;
48517
- refreshToken: string;
48679
+ refreshToken?: string | null;
48680
+ accessToken?: string | null;
48518
48681
  redirectUri?: string | null;
48519
48682
  metadata?: string | null;
48520
48683
  } | null;
@@ -48846,7 +49009,8 @@ export type UpdateReplicaMutation = {
48846
49009
  provider: OAuthProviders;
48847
49010
  clientId: string;
48848
49011
  clientSecret: string;
48849
- refreshToken: string;
49012
+ refreshToken?: string | null;
49013
+ accessToken?: string | null;
48850
49014
  redirectUri?: string | null;
48851
49015
  metadata?: string | null;
48852
49016
  } | null;
@@ -49155,7 +49319,8 @@ export type UpsertReplicaMutation = {
49155
49319
  provider: OAuthProviders;
49156
49320
  clientId: string;
49157
49321
  clientSecret: string;
49158
- refreshToken: string;
49322
+ refreshToken?: string | null;
49323
+ accessToken?: string | null;
49159
49324
  redirectUri?: string | null;
49160
49325
  metadata?: string | null;
49161
49326
  } | null;
@@ -50989,7 +51154,8 @@ export type GetUserQuery = {
50989
51154
  provider: OAuthProviders;
50990
51155
  clientId: string;
50991
51156
  clientSecret: string;
50992
- refreshToken: string;
51157
+ refreshToken?: string | null;
51158
+ accessToken?: string | null;
50993
51159
  redirectUri?: string | null;
50994
51160
  metadata?: string | null;
50995
51161
  } | null;
@@ -51143,7 +51309,8 @@ export type GetUserByIdentifierQuery = {
51143
51309
  provider: OAuthProviders;
51144
51310
  clientId: string;
51145
51311
  clientSecret: string;
51146
- refreshToken: string;
51312
+ refreshToken?: string | null;
51313
+ accessToken?: string | null;
51147
51314
  redirectUri?: string | null;
51148
51315
  metadata?: string | null;
51149
51316
  } | null;
@@ -51300,7 +51467,8 @@ export type QueryUsersQuery = {
51300
51467
  provider: OAuthProviders;
51301
51468
  clientId: string;
51302
51469
  clientSecret: string;
51303
- refreshToken: string;
51470
+ refreshToken?: string | null;
51471
+ accessToken?: string | null;
51304
51472
  redirectUri?: string | null;
51305
51473
  metadata?: string | null;
51306
51474
  } | null;
@@ -1554,6 +1554,8 @@ export var FeedTypes;
1554
1554
  FeedTypes["Email"] = "EMAIL";
1555
1555
  /** Entity discovery feed */
1556
1556
  FeedTypes["Entity"] = "ENTITY";
1557
+ /** Evernote feed */
1558
+ FeedTypes["Evernote"] = "EVERNOTE";
1557
1559
  /** HRIS feed */
1558
1560
  FeedTypes["Hris"] = "HRIS";
1559
1561
  /** HubSpot feed */
@@ -2488,6 +2490,8 @@ export var OAuthProviders;
2488
2490
  OAuthProviders["Box"] = "BOX";
2489
2491
  /** Dropbox authentication provider */
2490
2492
  OAuthProviders["Dropbox"] = "DROPBOX";
2493
+ /** Evernote authentication provider */
2494
+ OAuthProviders["Evernote"] = "EVERNOTE";
2491
2495
  /** GitHub authentication provider */
2492
2496
  OAuthProviders["GitHub"] = "GIT_HUB";
2493
2497
  /** GitLab authentication provider */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260419002",
3
+ "version": "1.0.20260419004",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",