@squidcloud/client 1.0.273 → 1.0.275

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,11 +1,11 @@
1
1
  import { FunctionName } from './bundle-data.public-types';
2
2
  import { IntegrationId } from './communication.public-types';
3
3
  /** The supported OpenAI models */
4
- export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4o-mini", "gpt-4o-2024-08-06", "gpt-4-turbo"];
5
- export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-pro"];
4
+ export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4o-mini", "gpt-4o-2024-08-06", "o1-preview", "o1-mini", "gpt-4-turbo"];
5
+ export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-pro", "gemini-1.5-pro", "gemini-1.5-flash"];
6
6
  export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-3-5-sonnet-20240620"];
7
7
  /** The supported AI model names. */
8
- export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4o-mini", "gpt-4o-2024-08-06", "gpt-4-turbo", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-3-5-sonnet-20240620", "gemini-pro"];
8
+ export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4o-mini", "gpt-4o-2024-08-06", "o1-preview", "o1-mini", "gpt-4-turbo", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-3-5-sonnet-20240620", "gemini-pro", "gemini-1.5-pro", "gemini-1.5-flash"];
9
9
  export declare const OPENAI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
10
10
  export declare const AI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
11
11
  /** The supported AI image generation model names. */
@@ -90,8 +90,9 @@ export declare class AiChatbotProfileReference {
90
90
  * Adds a new profile to the chatbot. This will result in an error if a profile already exists with the same id.
91
91
  *
92
92
  * @param data An object containing options for creating the profile.
93
- * @param data.modelName - The name of the OpenAI model (`gpt-3.5, `gpt-4`, `claude-3-opus-20240229`,
94
- * `claude-3-sonnet-20240229`, `claude-3-5-sonnet-20240620` or `claude-3-haiku-20240307`, `gemini-pro`).
93
+ * @param data.modelName - The name of the AI model (`gpt-3.5, `gpt-4`, `claude-3-opus-20240229`,
94
+ * `claude-3-sonnet-20240229`, `claude-3-5-sonnet-20240620` or `claude-3-haiku-20240307`, `gemini-pro`,
95
+ * `gemini-1.5-pro` `gemini-1.5-flash`).
95
96
  * @param data.isPublic - Whether the chat functionality of the profile can be accessed without security rules.
96
97
  * @returns A promise that resolves when the profile is successfully created.
97
98
  */
@@ -102,7 +103,8 @@ export declare class AiChatbotProfileReference {
102
103
  *
103
104
  * @param data An object containing options for updating the profile.
104
105
  * @param data.modelName - The name of the OpenAI model (`gpt-3.5, `gpt-4`, `claude-3-opus-20240229`,
105
- * `claude-3-sonnet-20240229`, `claude-3-5-sonnet-20240620` or `claude-3-haiku-20240307`, `gemini-pro`).
106
+ * `claude-3-sonnet-20240229`, `claude-3-5-sonnet-20240620` or `claude-3-haiku-20240307`, `gemini-pro`,
107
+ * `gemini-1.5-pro` `gemini-1.5-flash`).
106
108
  * @param data.isPublic - Whether the chat functionality of the profile can be accessed without security rules.
107
109
  * @returns A promise that resolves when the profile is successfully updated.
108
110
  */
@@ -19,7 +19,7 @@ export declare class PersonalStorageClient {
19
19
  * @param identifier - A user-provided identifier (usually a user ID) that will be associated with the token.
20
20
  * @returns A promise that resolves with the access token and expiration time.
21
21
  */
22
- saveToken(authCode: string, identifier: string): Promise<PsGetAccessTokenResponse>;
22
+ saveAuthCode(authCode: string, identifier: string): Promise<PsGetAccessTokenResponse>;
23
23
  /**
24
24
  * Retrieves an access token for the personal storage service.
25
25
  *
@@ -1 +1 @@
1
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.273";
1
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.275";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.273",
3
+ "version": "1.0.275",
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",