@proteos/sdk 0.31.0 → 0.32.1
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/{chunk-Y5RY27JB.js → chunk-JWLTUYS7.js} +4 -3
- package/dist/chunk-JWLTUYS7.js.map +1 -0
- package/dist/{chunk-3SWQRVZX.cjs → chunk-NZI4N4SK.cjs} +4 -3
- package/dist/chunk-NZI4N4SK.cjs.map +1 -0
- package/dist/index.cjs +276 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +198 -86
- package/dist/index.d.ts +198 -86
- package/dist/index.js +194 -27
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +53 -53
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-BguERkVI.d.cts → types-v9RkMuKf.d.cts} +6 -0
- package/dist/{types-BguERkVI.d.ts → types-v9RkMuKf.d.ts} +6 -0
- package/package.json +3 -3
- package/src/agent/index.ts +2 -0
- package/src/agent/mcp-servers.ts +28 -0
- package/src/agent/prompts.ts +28 -0
- package/src/agent/skills.ts +33 -1
- package/src/agent/tools.ts +34 -1
- package/src/agent/types.ts +20 -0
- package/src/conversation/index.ts +217 -58
- package/src/conversation/types.ts +40 -2
- package/src/index.ts +42 -39
- package/src/meta/layout/elements.ts +7 -0
- package/dist/chunk-3SWQRVZX.cjs.map +0 -1
- package/dist/chunk-Y5RY27JB.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
2
|
-
export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-
|
|
1
|
+
import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-JWLTUYS7.js';
|
|
2
|
+
export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-JWLTUYS7.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -82,6 +82,20 @@ var McpServerServiceImpl = class {
|
|
|
82
82
|
async disconnectOAuth(key) {
|
|
83
83
|
await this.client.request("DELETE", `${MCP_SERVERS_BASE_PATH}/${key}/oauth/connect`);
|
|
84
84
|
}
|
|
85
|
+
async listDependents(key) {
|
|
86
|
+
const response = await this.client.request(
|
|
87
|
+
"GET",
|
|
88
|
+
`${MCP_SERVERS_BASE_PATH}/${key}/dependents`
|
|
89
|
+
);
|
|
90
|
+
return response.data;
|
|
91
|
+
}
|
|
92
|
+
async syncDependents(key) {
|
|
93
|
+
const response = await this.client.request(
|
|
94
|
+
"POST",
|
|
95
|
+
`${MCP_SERVERS_BASE_PATH}/${key}/dependents/sync`
|
|
96
|
+
);
|
|
97
|
+
return response.data;
|
|
98
|
+
}
|
|
85
99
|
};
|
|
86
100
|
|
|
87
101
|
// src/agent/prompts.ts
|
|
@@ -122,6 +136,20 @@ var PromptServiceImpl = class {
|
|
|
122
136
|
`${PROMPTS_BASE_PATH}/${key}/versions/${number}`
|
|
123
137
|
);
|
|
124
138
|
}
|
|
139
|
+
async listDependents(key) {
|
|
140
|
+
const response = await this.client.request(
|
|
141
|
+
"GET",
|
|
142
|
+
`${PROMPTS_BASE_PATH}/${key}/dependents`
|
|
143
|
+
);
|
|
144
|
+
return response.data;
|
|
145
|
+
}
|
|
146
|
+
async syncDependents(key) {
|
|
147
|
+
const response = await this.client.request(
|
|
148
|
+
"POST",
|
|
149
|
+
`${PROMPTS_BASE_PATH}/${key}/dependents/sync`
|
|
150
|
+
);
|
|
151
|
+
return response.data;
|
|
152
|
+
}
|
|
125
153
|
};
|
|
126
154
|
|
|
127
155
|
// src/agent/sessions.ts
|
|
@@ -255,6 +283,20 @@ var SkillServiceImpl = class {
|
|
|
255
283
|
async getVersion(key, number) {
|
|
256
284
|
return this.client.request("GET", `${SKILLS_BASE_PATH}/${key}/versions/${number}`);
|
|
257
285
|
}
|
|
286
|
+
async listDependents(key) {
|
|
287
|
+
const response = await this.client.request(
|
|
288
|
+
"GET",
|
|
289
|
+
`${SKILLS_BASE_PATH}/${key}/dependents`
|
|
290
|
+
);
|
|
291
|
+
return response.data;
|
|
292
|
+
}
|
|
293
|
+
async syncDependents(key) {
|
|
294
|
+
const response = await this.client.request(
|
|
295
|
+
"POST",
|
|
296
|
+
`${SKILLS_BASE_PATH}/${key}/dependents/sync`
|
|
297
|
+
);
|
|
298
|
+
return response.data;
|
|
299
|
+
}
|
|
258
300
|
};
|
|
259
301
|
|
|
260
302
|
// src/agent/tools.ts
|
|
@@ -282,6 +324,20 @@ var ToolServiceImpl = class {
|
|
|
282
324
|
async delete(key) {
|
|
283
325
|
await this.client.request("DELETE", `${TOOLS_BASE_PATH}/${key}`);
|
|
284
326
|
}
|
|
327
|
+
async listDependents(key) {
|
|
328
|
+
const response = await this.client.request(
|
|
329
|
+
"GET",
|
|
330
|
+
`${TOOLS_BASE_PATH}/${key}/dependents`
|
|
331
|
+
);
|
|
332
|
+
return response.data;
|
|
333
|
+
}
|
|
334
|
+
async syncDependents(key) {
|
|
335
|
+
const response = await this.client.request(
|
|
336
|
+
"POST",
|
|
337
|
+
`${TOOLS_BASE_PATH}/${key}/dependents/sync`
|
|
338
|
+
);
|
|
339
|
+
return response.data;
|
|
340
|
+
}
|
|
285
341
|
};
|
|
286
342
|
|
|
287
343
|
// src/agent/index.ts
|
|
@@ -1240,10 +1296,16 @@ var MeetingServiceImpl = class {
|
|
|
1240
1296
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/meetings`, request);
|
|
1241
1297
|
}
|
|
1242
1298
|
remove(conversationId) {
|
|
1243
|
-
return this.client.request(
|
|
1299
|
+
return this.client.request(
|
|
1300
|
+
"DELETE",
|
|
1301
|
+
`${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`
|
|
1302
|
+
);
|
|
1244
1303
|
}
|
|
1245
1304
|
summarize(conversationId) {
|
|
1246
|
-
return this.client.request(
|
|
1305
|
+
return this.client.request(
|
|
1306
|
+
"POST",
|
|
1307
|
+
`${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}/summarize`
|
|
1308
|
+
);
|
|
1247
1309
|
}
|
|
1248
1310
|
};
|
|
1249
1311
|
var ConnectionServiceImpl = class {
|
|
@@ -1255,19 +1317,32 @@ var ConnectionServiceImpl = class {
|
|
|
1255
1317
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/connections`, query);
|
|
1256
1318
|
}
|
|
1257
1319
|
get(id) {
|
|
1258
|
-
return this.client.request(
|
|
1320
|
+
return this.client.request(
|
|
1321
|
+
"GET",
|
|
1322
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1323
|
+
);
|
|
1259
1324
|
}
|
|
1260
1325
|
create(request) {
|
|
1261
1326
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/connections`, request);
|
|
1262
1327
|
}
|
|
1263
1328
|
update(id, request) {
|
|
1264
|
-
return this.client.request(
|
|
1329
|
+
return this.client.request(
|
|
1330
|
+
"PATCH",
|
|
1331
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1332
|
+
request
|
|
1333
|
+
);
|
|
1265
1334
|
}
|
|
1266
1335
|
async delete(id) {
|
|
1267
|
-
await this.client.request(
|
|
1336
|
+
await this.client.request(
|
|
1337
|
+
"DELETE",
|
|
1338
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1339
|
+
);
|
|
1268
1340
|
}
|
|
1269
1341
|
install(id) {
|
|
1270
|
-
return this.client.request(
|
|
1342
|
+
return this.client.request(
|
|
1343
|
+
"POST",
|
|
1344
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`
|
|
1345
|
+
);
|
|
1271
1346
|
}
|
|
1272
1347
|
listContactAddresses(connectionId, query = {}) {
|
|
1273
1348
|
return this.client.requestWithQuery(
|
|
@@ -1293,10 +1368,17 @@ var ContactServiceImpl = class {
|
|
|
1293
1368
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/contacts`, query);
|
|
1294
1369
|
}
|
|
1295
1370
|
get(id) {
|
|
1296
|
-
return this.client.request(
|
|
1371
|
+
return this.client.request(
|
|
1372
|
+
"GET",
|
|
1373
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`
|
|
1374
|
+
);
|
|
1297
1375
|
}
|
|
1298
1376
|
update(id, request) {
|
|
1299
|
-
return this.client.request(
|
|
1377
|
+
return this.client.request(
|
|
1378
|
+
"PATCH",
|
|
1379
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`,
|
|
1380
|
+
request
|
|
1381
|
+
);
|
|
1300
1382
|
}
|
|
1301
1383
|
attachAddress(contactId, request) {
|
|
1302
1384
|
return this.client.request(
|
|
@@ -1352,7 +1434,11 @@ var ContactServiceImpl = class {
|
|
|
1352
1434
|
);
|
|
1353
1435
|
}
|
|
1354
1436
|
listMergeProposals(query = {}) {
|
|
1355
|
-
return this.client.requestWithQuery(
|
|
1437
|
+
return this.client.requestWithQuery(
|
|
1438
|
+
"GET",
|
|
1439
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals`,
|
|
1440
|
+
query
|
|
1441
|
+
);
|
|
1356
1442
|
}
|
|
1357
1443
|
approveMergeProposal(proposalId) {
|
|
1358
1444
|
return this.client.request(
|
|
@@ -1376,19 +1462,35 @@ var ConversationServiceImpl = class {
|
|
|
1376
1462
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversations`, query);
|
|
1377
1463
|
}
|
|
1378
1464
|
get(id) {
|
|
1379
|
-
return this.client.request(
|
|
1465
|
+
return this.client.request(
|
|
1466
|
+
"GET",
|
|
1467
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
|
|
1468
|
+
);
|
|
1380
1469
|
}
|
|
1381
1470
|
update(id, request) {
|
|
1382
|
-
return this.client.request(
|
|
1471
|
+
return this.client.request(
|
|
1472
|
+
"PATCH",
|
|
1473
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`,
|
|
1474
|
+
request
|
|
1475
|
+
);
|
|
1383
1476
|
}
|
|
1384
1477
|
end(id) {
|
|
1385
|
-
return this.client.request(
|
|
1478
|
+
return this.client.request(
|
|
1479
|
+
"POST",
|
|
1480
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
|
|
1481
|
+
);
|
|
1386
1482
|
}
|
|
1387
1483
|
markRead(id) {
|
|
1388
|
-
return this.client.request(
|
|
1484
|
+
return this.client.request(
|
|
1485
|
+
"POST",
|
|
1486
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
|
|
1487
|
+
);
|
|
1389
1488
|
}
|
|
1390
1489
|
markUnread(id) {
|
|
1391
|
-
return this.client.request(
|
|
1490
|
+
return this.client.request(
|
|
1491
|
+
"DELETE",
|
|
1492
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
|
|
1493
|
+
);
|
|
1392
1494
|
}
|
|
1393
1495
|
unreadCounts() {
|
|
1394
1496
|
return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/unread-counts`);
|
|
@@ -1406,9 +1508,37 @@ var MessageServiceImpl = class {
|
|
|
1406
1508
|
query
|
|
1407
1509
|
);
|
|
1408
1510
|
}
|
|
1511
|
+
get(messageId) {
|
|
1512
|
+
return this.client.request(
|
|
1513
|
+
"GET",
|
|
1514
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}`
|
|
1515
|
+
);
|
|
1516
|
+
}
|
|
1409
1517
|
send(request) {
|
|
1410
1518
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/send`, request);
|
|
1411
1519
|
}
|
|
1520
|
+
draft(request) {
|
|
1521
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/draft`, request);
|
|
1522
|
+
}
|
|
1523
|
+
updateDraft(messageId, request) {
|
|
1524
|
+
return this.client.request(
|
|
1525
|
+
"PUT",
|
|
1526
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/draft`,
|
|
1527
|
+
request
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1530
|
+
sendDraft(messageId) {
|
|
1531
|
+
return this.client.request(
|
|
1532
|
+
"POST",
|
|
1533
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/send`
|
|
1534
|
+
);
|
|
1535
|
+
}
|
|
1536
|
+
rejectDraft(messageId) {
|
|
1537
|
+
return this.client.request(
|
|
1538
|
+
"POST",
|
|
1539
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/reject`
|
|
1540
|
+
);
|
|
1541
|
+
}
|
|
1412
1542
|
async getReactions(messageId) {
|
|
1413
1543
|
const response = await this.client.request(
|
|
1414
1544
|
"GET",
|
|
@@ -1441,16 +1571,26 @@ var AgentListenerServiceImpl = class {
|
|
|
1441
1571
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/agent-listeners`, query);
|
|
1442
1572
|
}
|
|
1443
1573
|
get(id) {
|
|
1444
|
-
return this.client.request(
|
|
1574
|
+
return this.client.request(
|
|
1575
|
+
"GET",
|
|
1576
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
|
|
1577
|
+
);
|
|
1445
1578
|
}
|
|
1446
1579
|
create(request) {
|
|
1447
1580
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/agent-listeners`, request);
|
|
1448
1581
|
}
|
|
1449
1582
|
update(id, request) {
|
|
1450
|
-
return this.client.request(
|
|
1583
|
+
return this.client.request(
|
|
1584
|
+
"PATCH",
|
|
1585
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`,
|
|
1586
|
+
request
|
|
1587
|
+
);
|
|
1451
1588
|
}
|
|
1452
1589
|
async delete(id) {
|
|
1453
|
-
await this.client.request(
|
|
1590
|
+
await this.client.request(
|
|
1591
|
+
"DELETE",
|
|
1592
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
|
|
1593
|
+
);
|
|
1454
1594
|
}
|
|
1455
1595
|
};
|
|
1456
1596
|
var ConversationFilterServiceImpl = class {
|
|
@@ -1459,19 +1599,33 @@ var ConversationFilterServiceImpl = class {
|
|
|
1459
1599
|
}
|
|
1460
1600
|
client;
|
|
1461
1601
|
list(query = {}) {
|
|
1462
|
-
return this.client.requestWithQuery(
|
|
1602
|
+
return this.client.requestWithQuery(
|
|
1603
|
+
"GET",
|
|
1604
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters`,
|
|
1605
|
+
query
|
|
1606
|
+
);
|
|
1463
1607
|
}
|
|
1464
1608
|
get(id) {
|
|
1465
|
-
return this.client.request(
|
|
1609
|
+
return this.client.request(
|
|
1610
|
+
"GET",
|
|
1611
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
|
|
1612
|
+
);
|
|
1466
1613
|
}
|
|
1467
1614
|
create(request) {
|
|
1468
1615
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-filters`, request);
|
|
1469
1616
|
}
|
|
1470
1617
|
update(id, request) {
|
|
1471
|
-
return this.client.request(
|
|
1618
|
+
return this.client.request(
|
|
1619
|
+
"PATCH",
|
|
1620
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`,
|
|
1621
|
+
request
|
|
1622
|
+
);
|
|
1472
1623
|
}
|
|
1473
1624
|
async delete(id) {
|
|
1474
|
-
await this.client.request(
|
|
1625
|
+
await this.client.request(
|
|
1626
|
+
"DELETE",
|
|
1627
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
|
|
1628
|
+
);
|
|
1475
1629
|
}
|
|
1476
1630
|
listEvents(id, query = {}) {
|
|
1477
1631
|
return this.client.requestWithQuery(
|
|
@@ -1490,16 +1644,26 @@ var GlossaryTermServiceImpl = class {
|
|
|
1490
1644
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/glossary-terms`, query);
|
|
1491
1645
|
}
|
|
1492
1646
|
get(id) {
|
|
1493
|
-
return this.client.request(
|
|
1647
|
+
return this.client.request(
|
|
1648
|
+
"GET",
|
|
1649
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
|
|
1650
|
+
);
|
|
1494
1651
|
}
|
|
1495
1652
|
create(request) {
|
|
1496
1653
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/glossary-terms`, request);
|
|
1497
1654
|
}
|
|
1498
1655
|
update(id, request) {
|
|
1499
|
-
return this.client.request(
|
|
1656
|
+
return this.client.request(
|
|
1657
|
+
"PATCH",
|
|
1658
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`,
|
|
1659
|
+
request
|
|
1660
|
+
);
|
|
1500
1661
|
}
|
|
1501
1662
|
async delete(id) {
|
|
1502
|
-
await this.client.request(
|
|
1663
|
+
await this.client.request(
|
|
1664
|
+
"DELETE",
|
|
1665
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
|
|
1666
|
+
);
|
|
1503
1667
|
}
|
|
1504
1668
|
};
|
|
1505
1669
|
var TranscriptionServiceImpl = class {
|
|
@@ -1514,7 +1678,10 @@ var TranscriptionServiceImpl = class {
|
|
|
1514
1678
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/transcriptions`, query);
|
|
1515
1679
|
}
|
|
1516
1680
|
get(id) {
|
|
1517
|
-
return this.client.request(
|
|
1681
|
+
return this.client.request(
|
|
1682
|
+
"GET",
|
|
1683
|
+
`${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`
|
|
1684
|
+
);
|
|
1518
1685
|
}
|
|
1519
1686
|
materialize(id, request = {}) {
|
|
1520
1687
|
return this.client.request(
|