@squidcloud/client 1.0.411 → 1.0.412

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.
@@ -57,6 +57,8 @@ export interface ListAiKnowledgeBasesResponse {
57
57
  export interface ListAiKnowledgeBaseContextsRequest {
58
58
  /** The id of the AiKnowledgeBase */
59
59
  id: string;
60
+ /** The number of characters after which text is truncated. Optional */
61
+ truncateTextAfter?: number;
60
62
  }
61
63
  /**
62
64
  * Response structure to list AiKnowledgeBaseContexts
@@ -104,6 +106,8 @@ export interface GetAiKnowledgeBaseContextsRequest {
104
106
  appId: AppId;
105
107
  /** The id of the AiKnowledgeBase */
106
108
  knowledgeBaseId: AiKnowledgeBaseId;
109
+ /** The number of characters after which text is truncated. Optional */
110
+ truncateTextAfter?: number;
107
111
  }
108
112
  /**
109
113
  * Response structure for getting an AiKnowledgeBaseContext
@@ -36,7 +36,7 @@ export declare class AiKnowledgeBaseReference {
36
36
  /**
37
37
  * Lists all contexts associated with the knowledge base.
38
38
  */
39
- listContexts(): Promise<Array<AiKnowledgeBaseContext>>;
39
+ listContexts(truncateTextAfter?: number): Promise<Array<AiKnowledgeBaseContext>>;
40
40
  /**
41
41
  * Lists the ids for all contexts associated with the knowledge base.
42
42
  */
@@ -27,7 +27,15 @@ export declare class IntegrationClient {
27
27
  * @param integrationId - The ID of the integration to retrieve.
28
28
  * @returns A promise that resolves with the integration schema, or `undefined` if not found.
29
29
  */
30
- getIntegrationSchema<ConfigurationType = Record<string, any>>(integrationId: IntegrationId): Promise<IntegrationInfo<ConfigurationType> | undefined>;
30
+ getIntegrationSchema<SchemaType = Record<string, any>>(integrationId: IntegrationId): Promise<SchemaType | undefined>;
31
+ /**
32
+ * Sets the integration's schema by its ID.
33
+ *
34
+ * @param integrationId - The ID of the integration to update.
35
+ * @param schema - The schema to set for the integration.
36
+ * @returns A promise that resolves when the schema has been updated.
37
+ */
38
+ setIntegrationSchema<SchemaType = Record<string, any>>(integrationId: IntegrationId, schema: SchemaType): Promise<void>;
31
39
  /**
32
40
  * Deletes the integration with the given ID.
33
41
  *
@@ -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.411";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.412";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.411",
3
+ "version": "1.0.412",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",