@squidcloud/client 1.0.215 → 1.0.216

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.
@@ -19,6 +19,7 @@ export type AiImageModelName = (typeof AI_IMAGE_MODEL_NAMES)[number];
19
19
  export type OpenAiImageModelName = (typeof OPENAI_IMAGE_MODEL_NAMES)[number];
20
20
  export type StableDiffusionModelName = (typeof STABLE_DIFFUSION_MODEL_NAMES)[number];
21
21
  export type AiGenerateImageOptions = DallEOptions | StableDiffusionCoreOptions;
22
+ export type VectorDbType = 'pinecone' | 'postgres';
22
23
  export interface BaseAiGenerateImageOptions {
23
24
  modelName: AiImageModelName;
24
25
  }
@@ -1,4 +1,4 @@
1
- import { AiChatModelName } from '../ai-chatbot.public-types';
1
+ import { AiChatModelName, AiEmbeddingsModelName, VectorDbType } from '../ai-chatbot.public-types';
2
2
  export type AiChatbotConfiguration = {
3
3
  apiKey?: string;
4
4
  };
@@ -7,6 +7,8 @@ export type AiChatbotProfileMetadata = {
7
7
  isPublic: boolean;
8
8
  strictContext: boolean;
9
9
  instructions: Record<string, string>;
10
+ embeddingModelName?: AiEmbeddingsModelName;
11
+ vectorDbType?: VectorDbType;
10
12
  };
11
13
  export type AiChatbotContextMetadata = {
12
14
  title: string;
@@ -131,7 +131,7 @@ export declare class DocumentReference<T extends DocumentData = any> {
131
131
  * @param transactionId The transaction to use for this operation. If not provided, the operation will be applied
132
132
  * immediately.
133
133
  */
134
- insert(data: T, transactionId?: TransactionId): Promise<void>;
134
+ insert(data: Omit<T, '__id'>, transactionId?: TransactionId): Promise<void>;
135
135
  /**
136
136
  * Deletes the document.
137
137
  * The `delete` will be reflected optimistically locally and will be applied to the server later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.215",
3
+ "version": "1.0.216",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",