@squidcloud/client 1.0.397 → 1.0.399

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.
@@ -1,4 +1,4 @@
1
- import { UpsertContextStatusError } from './ai-agent.public-types';
1
+ import { AgentContextRequest, UpsertContextStatusError } from './ai-agent.public-types';
2
2
  import { AiChatModelName, AiEmbeddingsModelName, AiRerankProvider } from './ai-common.public-types';
3
3
  import { AiKnowledgeBaseId } from './communication.public-types';
4
4
  import { DocumentExtractionMethod } from './extraction.public-types';
@@ -109,7 +109,7 @@ export interface AiContextMetadataOrFilter {
109
109
  * The options for the AI knowledgebase search method.
110
110
  * @category AI
111
111
  */
112
- export interface AllAiKnowledgeBaseChatOptions {
112
+ export interface AiKnowledgeBaseChatOptions {
113
113
  /** A set of filters that will limit the context the AI can access. */
114
114
  contextMetadataFilter?: AiContextMetadataFilter;
115
115
  /** Whether to include references from the source context in the response. Default to false. */
@@ -154,6 +154,8 @@ export interface AiKnowledgeBaseContext {
154
154
  sizeBytes: number;
155
155
  /** Metadata associated with the context. */
156
156
  metadata: AiContextMetadata;
157
+ /** Original request configuration for how the context content was processed. */
158
+ requestConfig?: AgentContextRequest;
157
159
  }
158
160
  /**
159
161
  * @category AI
@@ -1,4 +1,4 @@
1
- import { AiKnowledgeBase, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel, AllAiKnowledgeBaseChatOptions } from '../public-types/ai-knowledge-base.public-types';
1
+ import { AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel } from '../public-types/ai-knowledge-base.public-types';
2
2
  import { AiKnowledgeBaseId, AppId } from '../public-types/communication.public-types';
3
3
  /**
4
4
  * Request structure for getting an AiKnowledgeBase
@@ -136,6 +136,22 @@ export interface AiKnowledgeBaseContextSizeRequest {
136
136
  /** The ID of the AIKnowledgeBase */
137
137
  knowledgeBaseId: AiKnowledgeBaseId;
138
138
  }
139
+ /**
140
+ * Request structure for identifying a knowledge base to reimport the context files (when possible).
141
+ */
142
+ export interface AiKnowledgeBaseReimportAllFilesRequest {
143
+ /** The ID of the AIKnowledgeBase */
144
+ knowledgeBaseId: AiKnowledgeBaseId;
145
+ }
146
+ /**
147
+ * Request structure for identifying a knowledge base to reimport the context files (when possible).
148
+ */
149
+ export interface AiKnowledgeBaseReimportFilesRequest {
150
+ /** The ID of the AIKnowledgeBase */
151
+ knowledgeBaseId: AiKnowledgeBaseId;
152
+ /** The ids of the AiKnowledgeBaseContexts to reimport */
153
+ contextIds: Array<string>;
154
+ }
139
155
  /**
140
156
  * Response structure for getting size of context
141
157
  * @category AI
@@ -147,5 +163,5 @@ export interface AiKnowledgeBaseContextSizeResponse {
147
163
  export interface AiKnowledgeBaseChatRequest {
148
164
  knowledgeBaseId: AiKnowledgeBaseId;
149
165
  prompt?: string;
150
- options?: AllAiKnowledgeBaseChatOptions;
166
+ options?: AiKnowledgeBaseChatOptions;
151
167
  }
@@ -1,4 +1,4 @@
1
- import { AiKnowledgeBase, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel, AllAiKnowledgeBaseChatOptions, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
1
+ import { AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
2
2
  /**
3
3
  * Parameters for creating or updating an AI agent.
4
4
  * Excludes the `id` field, as it is derived from the agent instance.
@@ -59,7 +59,7 @@ export declare class AiKnowledgeBaseReference {
59
59
  /**
60
60
  * Performs a semantic search in the knowledge base.
61
61
  */
62
- search(options: AllAiKnowledgeBaseChatOptions & {
62
+ search(options: AiKnowledgeBaseChatOptions & {
63
63
  prompt: string;
64
64
  }): Promise<Array<AiKnowledgeBaseSearchResultChunk>>;
65
65
  }
@@ -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.397";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.399";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.397",
3
+ "version": "1.0.399",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",