@base44-preview/sdk 0.8.23-pr.152.92acbf4 → 0.8.23-pr.153.716511b

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.
@@ -65,7 +65,7 @@ function createEntityHandler(axios, appId, entityName, getSocket) {
65
65
  params.skip = skip;
66
66
  if (fields)
67
67
  params.fields = Array.isArray(fields) ? fields.join(",") : fields;
68
- return axios.get(baseURL, { params });
68
+ return axios.get(baseURL, { params, headers: { 'Accept-Encoding': 'identity' } });
69
69
  },
70
70
  // Filter entities based on query
71
71
  async filter(query, sort, limit, skip, fields) {
@@ -80,7 +80,7 @@ function createEntityHandler(axios, appId, entityName, getSocket) {
80
80
  params.skip = skip;
81
81
  if (fields)
82
82
  params.fields = Array.isArray(fields) ? fields.join(",") : fields;
83
- return axios.get(baseURL, { params });
83
+ return axios.get(baseURL, { params, headers: { 'Accept-Encoding': 'identity' } });
84
84
  },
85
85
  // Get entity by ID
86
86
  async get(id) {
@@ -175,13 +175,8 @@ export interface CoreIntegrations {
175
175
  /**
176
176
  * Create AI-generated images from text prompts.
177
177
  *
178
- * Images are generated as PNG files at approximately 1024px on the shorter side. The
179
- * exact dimensions vary by aspect ratio.
180
- *
181
- * Prompts that violate the AI provider's content policy will be refused.
182
- *
183
178
  * @param params - Parameters for image generation
184
- * @returns Promise resolving to an object containing the URL of the generated PNG image.
179
+ * @returns Promise resolving to the generated image URL.
185
180
  *
186
181
  * @example
187
182
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.23-pr.152.92acbf4",
3
+ "version": "0.8.23-pr.153.716511b",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",