@depup/base44__sdk 0.8.23-depup.0 → 0.8.24-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 +3 -3
- package/changes.json +2 -2
- package/dist/modules/agents.js +12 -0
- package/dist/modules/agents.types.d.ts +20 -0
- package/package.json +5 -5
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.
|
|
17
|
-
| Processed | 2026-03-
|
|
16
|
+
| Original | [@base44/sdk](https://www.npmjs.com/package/@base44/sdk) @ 0.8.24 |
|
|
17
|
+
| Processed | 2026-03-30 |
|
|
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.
|
|
25
|
+
| axios | ^1.6.2 | ^1.14.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.
|
|
5
|
+
"to": "^1.14.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-
|
|
12
|
+
"timestamp": "2026-03-30T12:25:44.787Z",
|
|
13
13
|
"totalUpdated": 2
|
|
14
14
|
}
|
package/dist/modules/agents.js
CHANGED
|
@@ -65,6 +65,17 @@ export function createAgentsModule({ axios, getSocket, appId, serverUrl, token,
|
|
|
65
65
|
return baseUrl;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
const getTelegramConnectURL = (agentName) => {
|
|
69
|
+
const baseUrl = `${serverUrl}/api/apps/${appId}/agents/${encodeURIComponent(agentName)}/telegram`;
|
|
70
|
+
const accessToken = token !== null && token !== void 0 ? token : getAccessToken();
|
|
71
|
+
if (accessToken) {
|
|
72
|
+
return `${baseUrl}?token=${accessToken}`;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
// No token - URL will redirect to login automatically
|
|
76
|
+
return baseUrl;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
68
79
|
return {
|
|
69
80
|
getConversations,
|
|
70
81
|
getConversation,
|
|
@@ -73,5 +84,6 @@ export function createAgentsModule({ axios, getSocket, appId, serverUrl, token,
|
|
|
73
84
|
addMessage,
|
|
74
85
|
subscribeToConversation,
|
|
75
86
|
getWhatsAppConnectURL,
|
|
87
|
+
getTelegramConnectURL,
|
|
76
88
|
};
|
|
77
89
|
}
|
|
@@ -374,4 +374,24 @@ export interface AgentsModule {
|
|
|
374
374
|
* ```
|
|
375
375
|
*/
|
|
376
376
|
getWhatsAppConnectURL(agentName: AgentName): string;
|
|
377
|
+
/**
|
|
378
|
+
* Gets Telegram connection URL for an agent.
|
|
379
|
+
*
|
|
380
|
+
* Generates a URL that users can use to connect with the agent through Telegram.
|
|
381
|
+
* The URL includes authentication if a token is available. When the user opens
|
|
382
|
+
* this URL, they are redirected to the agent's Telegram bot with an activation
|
|
383
|
+
* code that securely links their account.
|
|
384
|
+
*
|
|
385
|
+
* @param agentName - The name of the agent.
|
|
386
|
+
* @returns Telegram connection URL.
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* ```typescript
|
|
390
|
+
* // Get Telegram connection URL
|
|
391
|
+
* const telegramUrl = base44.agents.getTelegramConnectURL('support-agent');
|
|
392
|
+
* console.log(`Connect through Telegram: ${telegramUrl}`);
|
|
393
|
+
* // User can open this URL to start a Telegram conversation
|
|
394
|
+
* ```
|
|
395
|
+
*/
|
|
396
|
+
getTelegramConnectURL(agentName: AgentName): string;
|
|
377
397
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/base44__sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.24-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.
|
|
29
|
+
"axios": "^1.14.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.
|
|
76
|
+
"to": "^1.14.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.
|
|
86
|
-
"processedAt": "2026-03-
|
|
85
|
+
"originalVersion": "0.8.24",
|
|
86
|
+
"processedAt": "2026-03-30T12:25:59.038Z",
|
|
87
87
|
"smokeTest": "passed"
|
|
88
88
|
}
|
|
89
89
|
}
|