@squidcloud/client 1.0.422 → 1.0.424

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.
@@ -33,3 +33,15 @@ export interface AiAgentApiIntegrationOptions {
33
33
  /** If provided, this agent will be used to generate API calls. */
34
34
  generateApiCallAgentId?: AiAgentId;
35
35
  }
36
+ /**
37
+ * Configuration options for AI agent MCP integration.
38
+ */
39
+ export interface AiAgentMcpIntegrationOptions {
40
+ /**
41
+ * A list of MCP tool names that the AI agent can use.
42
+ *
43
+ * When this list is not provided (i.e., it is `undefined`) or is empty,
44
+ * the AI agent has access to all tools.
45
+ */
46
+ toolsToUse?: string[];
47
+ }
@@ -585,6 +585,10 @@ export interface AiStatusMessage {
585
585
  chatId?: string;
586
586
  /** The title or summary of the status message. */
587
587
  title: string;
588
+ /** Markdown body content for the status update. */
589
+ body: string;
590
+ /** ID of the parent status update for nested display. */
591
+ parentStatusUpdateId?: string;
588
592
  /** The Job ID associated with the status message. */
589
593
  jobId: JobId;
590
594
  /** Optional tags providing additional metadata about the status. */
@@ -611,14 +615,6 @@ export interface AiChatMessage {
611
615
  /** Time the entry is created. Unix time millis. */
612
616
  timestamp: number;
613
617
  }
614
- /**
615
- * Name of the tag that contains ID of the parent message.
616
- * When the tag is present, the current message should be considered in the context of the parent message.
617
- * Example: the message can contain a function call result.
618
- */
619
- export declare const AI_STATUS_MESSAGE_PARENT_MESSAGE_ID_TAG = "parent";
620
- /** The tag contains a response of the AI tool call. */
621
- export declare const AI_STATUS_MESSAGE_RESULT_TAG = "result";
622
618
  /**
623
619
  * A single chunk of data returned from an AI search operation.
624
620
  * @category AI
@@ -120,7 +120,7 @@ export interface AiKnowledgeBaseChatOptions {
120
120
  includeMetadata?: boolean;
121
121
  /** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
122
122
  rerankProvider?: AiRerankProvider;
123
- /** The maximum number of results to return */
123
+ /** The maximum number of results to return. Defaults to 30 */
124
124
  limit?: number;
125
125
  /** How many chunks to look over. Defaults to 100 */
126
126
  chunkLimit?: number;
@@ -37,7 +37,6 @@ export * from './mutation/mutation-sender';
37
37
  export * from './native-query-manager';
38
38
  export * from './notification-client';
39
39
  export * from './observability-client';
40
- export * from './personal-storage-client';
41
40
  export * from './public-types';
42
41
  export * from './public-utils';
43
42
  export * from './query-utils';
@@ -10,7 +10,6 @@ import { ExtractionClient } from './extraction-client';
10
10
  import { JobClient } from './job-client';
11
11
  import { NotificationClient } from './notification-client';
12
12
  import { ObservabilityClient } from './observability-client';
13
- import { PersonalStorageClient } from './personal-storage-client';
14
13
  import { ApiKey, AppId, CollectionName, DocumentData, EnvironmentId, IntegrationId, SquidDeveloperId, SquidRegion } from './public-types';
15
14
  import { QueueManager } from './queue.manager';
16
15
  import { SchedulerClient } from './scheduler-client';
@@ -325,12 +324,6 @@ export declare class Squid {
325
324
  * @param integrationId The storage integration ID (default is 'built_in_storage').
326
325
  */
327
326
  storage(integrationId?: IntegrationId): StorageClient;
328
- /**
329
- * Returns a client for accessing personal (user-specific) file storage.
330
- *
331
- * @param integrationId The storage integration ID to use.
332
- */
333
- personalStorage(integrationId: IntegrationId): PersonalStorageClient;
334
327
  /**
335
328
  * Returns a client for managing external oauth tokens for integrations.
336
329
  * Use this to save authorization codes and retrieve access tokens.
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.422";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.424";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.422",
3
+ "version": "1.0.424",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,85 +0,0 @@
1
- import { AiContextMetadata } from './public-types';
2
- /**
3
- * Response to a request to get the access token for a personal storage service.
4
- * @category Personal Storage
5
- */
6
- export interface PsGetAccessTokenResponse {
7
- /** The access token for the personal storage service. */
8
- accessToken: string;
9
- /** The expiration time of the access token. */
10
- expirationTime: Date;
11
- }
12
- /**
13
- * The type of a document in personal storage.
14
- * @category Personal Storage
15
- */
16
- export type PsDocumentType = 'file' | 'folder';
17
- /**
18
- * A document indexed for AI processing (as part of the personal storage connector).
19
- * @category Personal Storage
20
- */
21
- export interface PsIndexedDocument {
22
- /** The ID of the document. */
23
- id: string;
24
- /** The name of the document. */
25
- name: string;
26
- /** The type of the document (file or folder). */
27
- type: PsDocumentType;
28
- /** Metadata stored about the document */
29
- metadata: AiContextMetadata;
30
- /** The ID of the parent folder of the document. */
31
- folderDocumentId?: string;
32
- }
33
- /**
34
- * Client to handle personal storage integrations such as Google Drive or Microsoft OneDrive.
35
- * Provides methods for saving authentication tokens, indexing documents or folders for AI processing,
36
- * and unindexing documents from AI processing.
37
- * @category Personal Storage
38
- */
39
- export declare class PersonalStorageClient {
40
- private readonly integrationId;
41
- private readonly rpcManager;
42
- /**
43
- * Saves an authentication token for the personal storage service.
44
- *
45
- * @param authCode - The authorization code obtained from the OAuth flow for the personal storage service.
46
- * @param identifier - A user-provided identifier (usually a user ID) that will be associated with the token.
47
- * @returns A promise that resolves with the access token and expiration time.
48
- */
49
- saveAuthCode(authCode: string, identifier: string): Promise<PsGetAccessTokenResponse>;
50
- /**
51
- * Retrieves an access token for the personal storage service.
52
- *
53
- * @param identifier - A user-provided identifier (usually a user ID) that is associated with the token.
54
- * @returns A promise that resolves with the access token and expiration time.
55
- */
56
- getAccessToken(identifier: string): Promise<PsGetAccessTokenResponse>;
57
- /**
58
- * Indexes a document or folder for AI processing.
59
- *
60
- * @param documentOrFolderId - The ID of the document or folder to be indexed.
61
- * @param identifier - A user-provided identifier (usually a user ID) that will be associated with the document.
62
- * @param agentId - The agent ID for the AI processing configuration.
63
- * @param metadata - Metadata to include with the index
64
- * @returns A promise that resolves when the document or folder is successfully indexed.
65
- */
66
- indexDocumentOrFolder(documentOrFolderId: string, identifier: string, agentId: string, metadata?: AiContextMetadata): Promise<void>;
67
- /**
68
- * Lists all documents or folders that have been indexed for AI processing.
69
- *
70
- * @param identifier - A user-provided identifier (usually a user ID) associated with the indexed documents.
71
- * @param agentId - The AI agent ID used when indexing the documents.
72
- * @param type - (Optional) The type of items to list: `'file'` or `'folder'`. If omitted, returns both.
73
- * @returns A promise that resolves with an array of indexed documents or folders.
74
- */
75
- listIndexedDocuments(identifier: string, agentId: string, type?: PsDocumentType): Promise<Array<PsIndexedDocument>>;
76
- /**
77
- * Unindexes a previously indexed document, removing it from AI processing.
78
- *
79
- * @param documentId - The ID of the document to be unindexed.
80
- * @param identifier - A user-provided identifier (usually a user ID) that was associated with the document.
81
- * @param agentId - The agent ID for the AI processing configuration.
82
- * @returns A promise that resolves when the document is successfully unindexed.
83
- */
84
- unindexDocument(documentId: string, identifier: string, agentId: string): Promise<void>;
85
- }