@squidcloud/client 1.0.198 → 1.0.200

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.
package/dist/cjs/index.js CHANGED
@@ -11032,15 +11032,13 @@ class AiChatbotClientFactory {
11032
11032
  ;// CONCATENATED MODULE: ./src/ai-image-client.ts
11033
11033
  class AiImageClient {
11034
11034
  /** @internal */
11035
- constructor(rpcManager, integrationId) {
11035
+ constructor(rpcManager) {
11036
11036
  this.rpcManager = rpcManager;
11037
- this.integrationId = integrationId;
11038
11037
  }
11039
11038
  async generate(prompt, options) {
11040
11039
  const request = {
11041
11040
  prompt,
11042
11041
  options,
11043
- integrationId: this.integrationId,
11044
11042
  };
11045
11043
  return this.rpcManager.post('ai/image/generate', request);
11046
11044
  }
@@ -11078,10 +11076,9 @@ class AiClient {
11078
11076
  }
11079
11077
  /**
11080
11078
  * Retrieves an AI image client for a specific AI integration.
11081
- * @param integrationId - The identifier for the AI integration.
11082
11079
  */
11083
- image(integrationId) {
11084
- return new AiImageClient(this.rpcManager, integrationId);
11080
+ image() {
11081
+ return new AiImageClient(this.rpcManager);
11085
11082
  }
11086
11083
  /**
11087
11084
  * Executes an AI query using a specific DB integration, sending a prompt to the AI and returning its response.
@@ -11,7 +11,7 @@ export interface BaseAiGenerateImageOptions {
11
11
  export interface DallEOptions extends BaseAiGenerateImageOptions {
12
12
  modelName: 'dall-e-3';
13
13
  quality?: 'hd' | 'standard';
14
- size?: '256x256' | '512x512' | '1024x1024' | '1792x1024' | '1024x1792';
14
+ size?: '1024x1024' | '1792x1024' | '1024x1792';
15
15
  numberOfImagesToGenerate?: 1;
16
16
  }
17
17
  /** The possible sources for the LLM provider API key. */
@@ -1,6 +1,5 @@
1
1
  import { AiGenerateImageOptions } from './public-types';
2
2
  export declare class AiImageClient {
3
3
  private readonly rpcManager;
4
- private readonly integrationId;
5
4
  generate(prompt: string, options: AiGenerateImageOptions): Promise<string>;
6
5
  }
@@ -35,9 +35,8 @@ export declare class AiClient {
35
35
  assistant(): AiAssistantClient;
36
36
  /**
37
37
  * Retrieves an AI image client for a specific AI integration.
38
- * @param integrationId - The identifier for the AI integration.
39
38
  */
40
- image(integrationId: IntegrationId): AiImageClient;
39
+ image(): AiImageClient;
41
40
  /**
42
41
  * Executes an AI query using a specific DB integration, sending a prompt to the AI and returning its response.
43
42
  * This function allows for direct interaction with the AI's capabilities by sending text prompts and receiving
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
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",