@depup/base44__sdk 0.8.24-depup.0 → 0.8.25-depup.0

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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/base44__sdk
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@base44/sdk](https://www.npmjs.com/package/@base44/sdk) @ 0.8.24 |
17
- | Processed | 2026-03-30 |
16
+ | Original | [@base44/sdk](https://www.npmjs.com/package/@base44/sdk) @ 0.8.25 |
17
+ | Processed | 2026-04-12 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 2 |
20
20
 
@@ -22,7 +22,7 @@ npm install @depup/base44__sdk
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | axios | ^1.6.2 | ^1.14.0 |
25
+ | axios | ^1.6.2 | ^1.15.0 |
26
26
  | socket.io-client | ^4.7.5 | ^4.8.3 |
27
27
 
28
28
  ---
package/changes.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "bumped": {
3
3
  "axios": {
4
4
  "from": "^1.6.2",
5
- "to": "^1.14.0"
5
+ "to": "^1.15.0"
6
6
  },
7
7
  "socket.io-client": {
8
8
  "from": "^4.7.5",
9
9
  "to": "^4.8.3"
10
10
  }
11
11
  },
12
- "timestamp": "2026-03-30T12:25:44.787Z",
12
+ "timestamp": "2026-04-12T12:17:46.370Z",
13
13
  "totalUpdated": 2
14
14
  }
@@ -33,6 +33,9 @@ export function createConnectorsModule(axios, appId) {
33
33
  connectionConfig: (_a = data.connection_config) !== null && _a !== void 0 ? _a : null,
34
34
  };
35
35
  },
36
+ /**
37
+ * @deprecated Use getCurrentAppUserConnection(connectorId) and use the returned accessToken (and connectionConfig when needed) instead.
38
+ */
36
39
  async getCurrentAppUserAccessToken(connectorId) {
37
40
  if (!connectorId || typeof connectorId !== "string") {
38
41
  throw new Error("Connector ID is required and must be a string");
@@ -41,6 +44,18 @@ export function createConnectorsModule(axios, appId) {
41
44
  const data = response;
42
45
  return data.access_token;
43
46
  },
47
+ async getCurrentAppUserConnection(connectorId) {
48
+ var _a;
49
+ if (!connectorId || typeof connectorId !== "string") {
50
+ throw new Error("Connector ID is required and must be a string");
51
+ }
52
+ const response = await axios.get(`/apps/${appId}/app-user-auth/connectors/${connectorId}/token`);
53
+ const data = response;
54
+ return {
55
+ accessToken: data.access_token,
56
+ connectionConfig: (_a = data.connection_config) !== null && _a !== void 0 ? _a : null,
57
+ };
58
+ },
44
59
  };
45
60
  }
46
61
  /**
@@ -32,6 +32,15 @@ export interface ConnectorConnectionResponse {
32
32
  /** Key-value configuration for the connection, or `null` if the connector does not provide one. */
33
33
  connectionConfig: Record<string, string> | null;
34
34
  }
35
+ /**
36
+ * Connection details for an app-user connector.
37
+ */
38
+ export interface AppUserConnectorConnectionResponse {
39
+ /** The OAuth access token for the end user's connection. */
40
+ accessToken: string;
41
+ /** Key-value configuration for the connection, or `null` if the connector does not provide one. */
42
+ connectionConfig: Record<string, string> | null;
43
+ }
35
44
  /**
36
45
  * Connectors module for managing app-scoped OAuth tokens for external services.
37
46
  *
@@ -226,6 +235,8 @@ export interface ConnectorsModule {
226
235
  /**
227
236
  * Retrieves an OAuth access token for an end user's connection to a specific connector.
228
237
  *
238
+ * @deprecated Use {@link getCurrentAppUserConnection} instead.
239
+ *
229
240
  * Returns the OAuth token string that belongs to the currently authenticated end user
230
241
  * for the specified connector.
231
242
  *
@@ -243,6 +254,27 @@ export interface ConnectorsModule {
243
254
  * ```
244
255
  */
245
256
  getCurrentAppUserAccessToken(connectorId: string): Promise<string>;
257
+ /**
258
+ * Retrieves the OAuth access token and connection configuration for an end user's
259
+ * connection to a specific connector.
260
+ *
261
+ * Returns both the OAuth token and any connection-specific configuration that
262
+ * belongs to the currently authenticated end user for the specified connector.
263
+ *
264
+ * @param connectorId - The connector ID (OrgConnector database ID).
265
+ * @returns Promise resolving to an {@link AppUserConnectorConnectionResponse} with `accessToken` and `connectionConfig`.
266
+ *
267
+ * @example
268
+ * ```typescript
269
+ * // Get the end user's connection details for a connector
270
+ * const { accessToken, connectionConfig } = await base44.asServiceRole.connectors.getCurrentAppUserConnection('abc123def');
271
+ *
272
+ * const response = await fetch('https://www.googleapis.com/calendar/v3/calendars/primary/events', {
273
+ * headers: { 'Authorization': `Bearer ${accessToken}` }
274
+ * });
275
+ * ```
276
+ */
277
+ getCurrentAppUserConnection(connectorId: string): Promise<AppUserConnectorConnectionResponse>;
246
278
  }
247
279
  /**
248
280
  * User-scoped connectors module for managing app-user OAuth connections.
@@ -43,9 +43,9 @@ export interface InvokeLLMParams {
43
43
  prompt: string;
44
44
  /** Optionally specify a model to override the app-level model setting for this specific call.
45
45
  *
46
- * Options: `"gpt_5_mini"`, `"gemini_3_flash"`, `"gpt_5"`, `"gemini_3_pro"`, `"claude_sonnet_4_6"`, `"claude_opus_4_6"`
46
+ * Options: `"gpt_5_mini"`, `"gemini_3_flash"`, `"gpt_5"`, `"gpt_5_4"`, `"gemini_3_1_pro"`, `"claude_sonnet_4_6"`, `"claude_opus_4_6"`
47
47
  */
48
- model?: 'gpt_5_mini' | 'gemini_3_flash' | 'gpt_5' | 'gemini_3_pro' | 'claude_sonnet_4_6' | 'claude_opus_4_6';
48
+ model?: 'gpt_5_mini' | 'gemini_3_flash' | 'gpt_5' | 'gpt_5_4' | 'gemini_3_1_pro' | 'claude_sonnet_4_6' | 'claude_opus_4_6';
49
49
  /** If set to `true`, the LLM will use Google Search, Maps, and News to gather real-time context before answering.
50
50
  * @default false
51
51
  */
@@ -175,8 +175,13 @@ 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
+ *
178
183
  * @param params - Parameters for image generation
179
- * @returns Promise resolving to the generated image URL.
184
+ * @returns Promise resolving to an object containing the URL of the generated PNG image.
180
185
  *
181
186
  * @example
182
187
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/base44__sdk",
3
- "version": "0.8.24-depup.0",
3
+ "version": "0.8.25-depup.0",
4
4
  "description": "JavaScript SDK for Base44 API (with updated dependencies)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "create-docs:process": "node scripts/mintlify-post-processing/file-processing/file-processing.js"
27
27
  },
28
28
  "dependencies": {
29
- "axios": "^1.14.0",
29
+ "axios": "^1.15.0",
30
30
  "socket.io-client": "^4.8.3",
31
31
  "uuid": "^13.0.0"
32
32
  },
@@ -73,7 +73,7 @@
73
73
  "changes": {
74
74
  "axios": {
75
75
  "from": "^1.6.2",
76
- "to": "^1.14.0"
76
+ "to": "^1.15.0"
77
77
  },
78
78
  "socket.io-client": {
79
79
  "from": "^4.7.5",
@@ -82,8 +82,8 @@
82
82
  },
83
83
  "depsUpdated": 2,
84
84
  "originalPackage": "@base44/sdk",
85
- "originalVersion": "0.8.24",
86
- "processedAt": "2026-03-30T12:25:59.038Z",
85
+ "originalVersion": "0.8.25",
86
+ "processedAt": "2026-04-12T12:17:57.371Z",
87
87
  "smokeTest": "passed"
88
88
  }
89
89
  }