@proteos/sdk 0.21.0 → 0.22.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/dist/{chunk-OUVD2XJX.js → chunk-OOAHNKPP.js} +92 -3
- package/dist/chunk-OOAHNKPP.js.map +1 -0
- package/dist/{chunk-DD6H5PIF.cjs → chunk-V5X4QWIO.cjs} +92 -2
- package/dist/chunk-V5X4QWIO.cjs.map +1 -0
- package/dist/index.cjs +188 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +246 -210
- package/dist/index.d.ts +246 -210
- package/dist/index.js +104 -64
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +54 -50
- 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-PzImL4QI.d.cts → types-DT29DVEj.d.cts} +180 -1
- package/dist/{types-PzImL4QI.d.ts → types-DT29DVEj.d.ts} +180 -1
- package/package.json +1 -1
- package/src/auth/platform-entities.ts +4 -0
- package/src/data/records.ts +60 -0
- package/src/index.ts +29 -21
- package/src/meta/design-references.ts +127 -0
- package/src/meta/entities.ts +17 -0
- package/src/meta/index.ts +15 -0
- package/src/meta/types.ts +94 -0
- package/src/storage/files.ts +31 -0
- package/src/storage/types.ts +10 -0
- package/dist/chunk-DD6H5PIF.cjs.map +0 -1
- package/dist/chunk-OUVD2XJX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV5X4QWIO_cjs = require('./chunk-V5X4QWIO.cjs');
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
var fetchEventSource = require('@microsoft/fetch-event-source');
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var AgentServiceImpl = class {
|
|
|
12
12
|
}
|
|
13
13
|
client;
|
|
14
14
|
list(options = {}) {
|
|
15
|
-
return new
|
|
15
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
16
16
|
}
|
|
17
17
|
async listPage(options = {}) {
|
|
18
18
|
return this.client.requestWithQuery("GET", AGENTS_BASE_PATH, options);
|
|
@@ -39,7 +39,7 @@ var McpServerServiceImpl = class {
|
|
|
39
39
|
}
|
|
40
40
|
client;
|
|
41
41
|
list(options = {}) {
|
|
42
|
-
return new
|
|
42
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
43
43
|
}
|
|
44
44
|
async listPage(options = {}) {
|
|
45
45
|
return this.client.requestWithQuery(
|
|
@@ -93,7 +93,7 @@ var PromptServiceImpl = class {
|
|
|
93
93
|
}
|
|
94
94
|
client;
|
|
95
95
|
list(options = {}) {
|
|
96
|
-
return new
|
|
96
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
97
97
|
}
|
|
98
98
|
async listPage(options = {}) {
|
|
99
99
|
return this.client.requestWithQuery("GET", PROMPTS_BASE_PATH, options);
|
|
@@ -133,7 +133,7 @@ var SessionServiceImpl = class {
|
|
|
133
133
|
}
|
|
134
134
|
client;
|
|
135
135
|
list(options = {}) {
|
|
136
|
-
return new
|
|
136
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
137
137
|
}
|
|
138
138
|
async listPage(options = {}) {
|
|
139
139
|
return this.client.requestWithQuery("GET", SESSIONS_BASE_PATH, options);
|
|
@@ -223,7 +223,7 @@ var SkillServiceImpl = class {
|
|
|
223
223
|
}
|
|
224
224
|
client;
|
|
225
225
|
list(options = {}) {
|
|
226
|
-
return new
|
|
226
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
227
227
|
}
|
|
228
228
|
async listPage(options = {}) {
|
|
229
229
|
return this.client.requestWithQuery("GET", SKILLS_BASE_PATH, options);
|
|
@@ -266,7 +266,7 @@ var ToolServiceImpl = class {
|
|
|
266
266
|
}
|
|
267
267
|
client;
|
|
268
268
|
list(options = {}) {
|
|
269
|
-
return new
|
|
269
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
270
270
|
}
|
|
271
271
|
async listPage(options = {}) {
|
|
272
272
|
return this.client.requestWithQuery("GET", TOOLS_BASE_PATH, options);
|
|
@@ -341,7 +341,7 @@ var OrganizationServiceImpl = class {
|
|
|
341
341
|
}
|
|
342
342
|
client;
|
|
343
343
|
list(options = {}) {
|
|
344
|
-
return new
|
|
344
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
345
345
|
}
|
|
346
346
|
async listPage(options = {}) {
|
|
347
347
|
return this.client.requestWithQuery(
|
|
@@ -372,7 +372,7 @@ var RoleServiceImpl = class {
|
|
|
372
372
|
}
|
|
373
373
|
client;
|
|
374
374
|
list(options = {}) {
|
|
375
|
-
return new
|
|
375
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
376
376
|
}
|
|
377
377
|
async listPage(options = {}) {
|
|
378
378
|
return this.client.requestWithQuery("GET", ROLES_BASE_PATH, options);
|
|
@@ -393,7 +393,7 @@ var RoleServiceImpl = class {
|
|
|
393
393
|
await this.client.request("DELETE", `${ROLES_BASE_PATH}/${slug}`);
|
|
394
394
|
}
|
|
395
395
|
getPermissions(roleSlug, options = {}) {
|
|
396
|
-
return new
|
|
396
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.fetchPermissionsPage(roleSlug, opts), options);
|
|
397
397
|
}
|
|
398
398
|
async assignPermission(roleSlug, request) {
|
|
399
399
|
return this.client.request(
|
|
@@ -425,7 +425,7 @@ var UserServiceImpl = class {
|
|
|
425
425
|
}
|
|
426
426
|
client;
|
|
427
427
|
list(options = {}) {
|
|
428
|
-
return new
|
|
428
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
429
429
|
}
|
|
430
430
|
async listPage(options = {}) {
|
|
431
431
|
return this.client.requestWithQuery("GET", USERS_BASE_PATH, options);
|
|
@@ -440,7 +440,7 @@ var UserServiceImpl = class {
|
|
|
440
440
|
return this.client.request("PATCH", `${USERS_BASE_PATH}/${id}`, request);
|
|
441
441
|
}
|
|
442
442
|
getRoles(userId, options = {}) {
|
|
443
|
-
return new
|
|
443
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.fetchRolesPage(userId, opts), options);
|
|
444
444
|
}
|
|
445
445
|
async assignRole(userId, request) {
|
|
446
446
|
return this.client.request(
|
|
@@ -494,6 +494,7 @@ var PLATFORM_ENTITIES = [
|
|
|
494
494
|
{ slug: "components", name: "Components" },
|
|
495
495
|
{ slug: "lists", name: "Lists" },
|
|
496
496
|
{ slug: "list-views", name: "List Views" },
|
|
497
|
+
{ slug: "design-references", name: "Design References" },
|
|
497
498
|
// System (metadata-service)
|
|
498
499
|
{ slug: "modules", name: "Modules" },
|
|
499
500
|
{ slug: "variables", name: "Variables" },
|
|
@@ -503,6 +504,9 @@ var PLATFORM_ENTITIES = [
|
|
|
503
504
|
// Automation (function-service)
|
|
504
505
|
{ slug: "hooks", name: "Hooks" },
|
|
505
506
|
{ slug: "actions", name: "Actions" },
|
|
507
|
+
// Workflows (workflow-service)
|
|
508
|
+
{ slug: "workflows", name: "Workflows" },
|
|
509
|
+
{ slug: "workflow-executions", name: "Workflow Executions" },
|
|
506
510
|
// Knowledge (knowledge-service)
|
|
507
511
|
{ slug: "knowledge-nodes", name: "Knowledge Nodes" },
|
|
508
512
|
{ slug: "knowledge-links", name: "Knowledge Links" },
|
|
@@ -537,19 +541,19 @@ var PLATFORM_ENTITY_SLUGS = PLATFORM_ENTITIES.map(
|
|
|
537
541
|
function isPlatformEntity(slug) {
|
|
538
542
|
return PLATFORM_ENTITY_SLUGS.includes(slug);
|
|
539
543
|
}
|
|
540
|
-
var RoleEntityPermissionSchema =
|
|
544
|
+
var RoleEntityPermissionSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
541
545
|
id: zod.z.string(),
|
|
542
546
|
role_slug: zod.z.string(),
|
|
543
547
|
entity_slug: zod.z.string(),
|
|
544
548
|
permission: zod.z.enum(["read", "write", "delete"])
|
|
545
549
|
});
|
|
546
|
-
var UserRoleAssignmentSchema =
|
|
550
|
+
var UserRoleAssignmentSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
547
551
|
id: zod.z.string(),
|
|
548
552
|
user_id: zod.z.string(),
|
|
549
553
|
role_slug: zod.z.string(),
|
|
550
554
|
org_id: zod.z.string()
|
|
551
555
|
});
|
|
552
|
-
var UserSchema =
|
|
556
|
+
var UserSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
553
557
|
id: zod.z.string(),
|
|
554
558
|
email: zod.z.string(),
|
|
555
559
|
given_name: zod.z.string(),
|
|
@@ -557,7 +561,7 @@ var UserSchema = chunkDD6H5PIF_cjs.AuditFieldsSchema.extend({
|
|
|
557
561
|
external_id: zod.z.string(),
|
|
558
562
|
default_org_id: zod.z.string()
|
|
559
563
|
});
|
|
560
|
-
|
|
564
|
+
chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
561
565
|
id: zod.z.string(),
|
|
562
566
|
user_id: zod.z.string(),
|
|
563
567
|
org_id: zod.z.string(),
|
|
@@ -567,13 +571,13 @@ chunkDD6H5PIF_cjs.AuditFieldsSchema.extend({
|
|
|
567
571
|
expires_at: zod.z.string().nullable(),
|
|
568
572
|
last_used_at: zod.z.string().nullable()
|
|
569
573
|
});
|
|
570
|
-
var RoleSchema =
|
|
574
|
+
var RoleSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
571
575
|
slug: zod.z.string(),
|
|
572
576
|
name: zod.z.string(),
|
|
573
577
|
org_id: zod.z.string(),
|
|
574
578
|
description: zod.z.string()
|
|
575
579
|
});
|
|
576
|
-
var OrganizationSchema =
|
|
580
|
+
var OrganizationSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
577
581
|
id: zod.z.string(),
|
|
578
582
|
name: zod.z.string(),
|
|
579
583
|
description: zod.z.string()
|
|
@@ -1090,6 +1094,68 @@ var ProteosClient = class {
|
|
|
1090
1094
|
}
|
|
1091
1095
|
};
|
|
1092
1096
|
|
|
1097
|
+
// src/connector/index.ts
|
|
1098
|
+
var CONNECTOR_BASE_PATH = "/connectors/v1";
|
|
1099
|
+
var ConnectorClient = class {
|
|
1100
|
+
connectors;
|
|
1101
|
+
connections;
|
|
1102
|
+
constructor(client) {
|
|
1103
|
+
this.connectors = new ConnectorCatalogServiceImpl(client);
|
|
1104
|
+
this.connections = new ConnectorConnectionServiceImpl(client);
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
var ConnectorCatalogServiceImpl = class {
|
|
1108
|
+
constructor(client) {
|
|
1109
|
+
this.client = client;
|
|
1110
|
+
}
|
|
1111
|
+
client;
|
|
1112
|
+
list(query = {}) {
|
|
1113
|
+
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connectors`, query);
|
|
1114
|
+
}
|
|
1115
|
+
get(key) {
|
|
1116
|
+
return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connectors/${encodeURIComponent(key)}`);
|
|
1117
|
+
}
|
|
1118
|
+
async listMethods(key) {
|
|
1119
|
+
const connector = await this.get(key);
|
|
1120
|
+
return connector.methods ?? [];
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
var ConnectorConnectionServiceImpl = class {
|
|
1124
|
+
constructor(client) {
|
|
1125
|
+
this.client = client;
|
|
1126
|
+
}
|
|
1127
|
+
client;
|
|
1128
|
+
list(query = {}) {
|
|
1129
|
+
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connections`, query);
|
|
1130
|
+
}
|
|
1131
|
+
get(id) {
|
|
1132
|
+
return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
|
|
1133
|
+
}
|
|
1134
|
+
create(request) {
|
|
1135
|
+
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections`, request);
|
|
1136
|
+
}
|
|
1137
|
+
update(id, request) {
|
|
1138
|
+
return this.client.request("PATCH", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`, request);
|
|
1139
|
+
}
|
|
1140
|
+
async delete(id) {
|
|
1141
|
+
await this.client.request("DELETE", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
|
|
1142
|
+
}
|
|
1143
|
+
install(id) {
|
|
1144
|
+
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/install`);
|
|
1145
|
+
}
|
|
1146
|
+
token(id) {
|
|
1147
|
+
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/token`);
|
|
1148
|
+
}
|
|
1149
|
+
async invokeMethod(id, method, params = {}) {
|
|
1150
|
+
const response = await this.client.request(
|
|
1151
|
+
"POST",
|
|
1152
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/methods/${encodeURIComponent(method)}/invoke`,
|
|
1153
|
+
params
|
|
1154
|
+
);
|
|
1155
|
+
return response.result;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1093
1159
|
// src/conversation/voice.ts
|
|
1094
1160
|
var VOICE_BASE_PATH = "/conversations/v1/voice";
|
|
1095
1161
|
var VoiceServiceImpl = class {
|
|
@@ -1337,68 +1403,6 @@ var TranscriptionServiceImpl = class {
|
|
|
1337
1403
|
}
|
|
1338
1404
|
};
|
|
1339
1405
|
|
|
1340
|
-
// src/connector/index.ts
|
|
1341
|
-
var CONNECTOR_BASE_PATH = "/connectors/v1";
|
|
1342
|
-
var ConnectorClient = class {
|
|
1343
|
-
connectors;
|
|
1344
|
-
connections;
|
|
1345
|
-
constructor(client) {
|
|
1346
|
-
this.connectors = new ConnectorCatalogServiceImpl(client);
|
|
1347
|
-
this.connections = new ConnectorConnectionServiceImpl(client);
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
var ConnectorCatalogServiceImpl = class {
|
|
1351
|
-
constructor(client) {
|
|
1352
|
-
this.client = client;
|
|
1353
|
-
}
|
|
1354
|
-
client;
|
|
1355
|
-
list(query = {}) {
|
|
1356
|
-
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connectors`, query);
|
|
1357
|
-
}
|
|
1358
|
-
get(key) {
|
|
1359
|
-
return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connectors/${encodeURIComponent(key)}`);
|
|
1360
|
-
}
|
|
1361
|
-
async listMethods(key) {
|
|
1362
|
-
const connector = await this.get(key);
|
|
1363
|
-
return connector.methods ?? [];
|
|
1364
|
-
}
|
|
1365
|
-
};
|
|
1366
|
-
var ConnectorConnectionServiceImpl = class {
|
|
1367
|
-
constructor(client) {
|
|
1368
|
-
this.client = client;
|
|
1369
|
-
}
|
|
1370
|
-
client;
|
|
1371
|
-
list(query = {}) {
|
|
1372
|
-
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connections`, query);
|
|
1373
|
-
}
|
|
1374
|
-
get(id) {
|
|
1375
|
-
return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
|
|
1376
|
-
}
|
|
1377
|
-
create(request) {
|
|
1378
|
-
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections`, request);
|
|
1379
|
-
}
|
|
1380
|
-
update(id, request) {
|
|
1381
|
-
return this.client.request("PATCH", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`, request);
|
|
1382
|
-
}
|
|
1383
|
-
async delete(id) {
|
|
1384
|
-
await this.client.request("DELETE", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
|
|
1385
|
-
}
|
|
1386
|
-
install(id) {
|
|
1387
|
-
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/install`);
|
|
1388
|
-
}
|
|
1389
|
-
token(id) {
|
|
1390
|
-
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/token`);
|
|
1391
|
-
}
|
|
1392
|
-
async invokeMethod(id, method, params = {}) {
|
|
1393
|
-
const response = await this.client.request(
|
|
1394
|
-
"POST",
|
|
1395
|
-
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/methods/${encodeURIComponent(method)}/invoke`,
|
|
1396
|
-
params
|
|
1397
|
-
);
|
|
1398
|
-
return response.result;
|
|
1399
|
-
}
|
|
1400
|
-
};
|
|
1401
|
-
|
|
1402
1406
|
// src/data/queries.ts
|
|
1403
1407
|
var QUERY_BASE_PATH = "/data/v1/query";
|
|
1404
1408
|
var QueryServiceImpl = class {
|
|
@@ -1419,13 +1423,14 @@ var QueryServiceImpl = class {
|
|
|
1419
1423
|
// src/data/records.ts
|
|
1420
1424
|
var RECORDS_BASE_PATH = "/data/v1/records";
|
|
1421
1425
|
var BATCH_RECORDS_BASE_PATH = "/data/v1/batch/records";
|
|
1426
|
+
var PUBLIC_RECORDS_BASE_PATH = "/data/v1/public/orgs";
|
|
1422
1427
|
var RecordServiceImpl = class {
|
|
1423
1428
|
constructor(client) {
|
|
1424
1429
|
this.client = client;
|
|
1425
1430
|
}
|
|
1426
1431
|
client;
|
|
1427
1432
|
list(entitySlug, options = {}) {
|
|
1428
|
-
return new
|
|
1433
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(entitySlug, opts), options);
|
|
1429
1434
|
}
|
|
1430
1435
|
async listPage(entitySlug, options = {}) {
|
|
1431
1436
|
return this.client.requestWithQuery(
|
|
@@ -1457,6 +1462,26 @@ var RecordServiceImpl = class {
|
|
|
1457
1462
|
transactions
|
|
1458
1463
|
);
|
|
1459
1464
|
}
|
|
1465
|
+
listPublic(orgId, entitySlug, options = {}) {
|
|
1466
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPublicPage(orgId, entitySlug, opts), options);
|
|
1467
|
+
}
|
|
1468
|
+
async listPublicPage(orgId, entitySlug, options = {}) {
|
|
1469
|
+
return this.client.requestWithQuery(
|
|
1470
|
+
"GET",
|
|
1471
|
+
`${PUBLIC_RECORDS_BASE_PATH}/${encodeURIComponent(orgId)}/records/${encodeURIComponent(entitySlug)}`,
|
|
1472
|
+
options,
|
|
1473
|
+
void 0,
|
|
1474
|
+
{ skipAuth: true }
|
|
1475
|
+
);
|
|
1476
|
+
}
|
|
1477
|
+
async getPublic(orgId, entitySlug, id) {
|
|
1478
|
+
return this.client.request(
|
|
1479
|
+
"GET",
|
|
1480
|
+
`${PUBLIC_RECORDS_BASE_PATH}/${encodeURIComponent(orgId)}/records/${encodeURIComponent(entitySlug)}/${encodeURIComponent(id)}`,
|
|
1481
|
+
void 0,
|
|
1482
|
+
{ skipAuth: true }
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1460
1485
|
};
|
|
1461
1486
|
var BatchUpsertTransactionSchema = zod.z.object({
|
|
1462
1487
|
transaction_id: zod.z.string(),
|
|
@@ -1597,7 +1622,7 @@ var ActionServiceImpl = class {
|
|
|
1597
1622
|
}
|
|
1598
1623
|
client;
|
|
1599
1624
|
list(options = {}) {
|
|
1600
|
-
return new
|
|
1625
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
1601
1626
|
}
|
|
1602
1627
|
async listPage(options = {}) {
|
|
1603
1628
|
return this.client.requestWithQuery("GET", ACTIONS_BASE_PATH, options);
|
|
@@ -1632,7 +1657,7 @@ var ActionServiceImpl = class {
|
|
|
1632
1657
|
}
|
|
1633
1658
|
};
|
|
1634
1659
|
var ActionScopeSchema = zod.z.enum(["entity", "global"]);
|
|
1635
|
-
var ActionSchema =
|
|
1660
|
+
var ActionSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
|
|
1636
1661
|
slug: zod.z.string(),
|
|
1637
1662
|
org_id: zod.z.string(),
|
|
1638
1663
|
module_slug: zod.z.string(),
|
|
@@ -1641,8 +1666,8 @@ var ActionSchema = chunkDD6H5PIF_cjs.AuditFieldsSchema.extend({
|
|
|
1641
1666
|
name: zod.z.string(),
|
|
1642
1667
|
is_active: zod.z.boolean(),
|
|
1643
1668
|
file_id: zod.z.string(),
|
|
1644
|
-
params: zod.z.array(
|
|
1645
|
-
returns: zod.z.array(
|
|
1669
|
+
params: zod.z.array(chunkV5X4QWIO_cjs.AttributeSchema),
|
|
1670
|
+
returns: zod.z.array(chunkV5X4QWIO_cjs.AttributeSchema)
|
|
1646
1671
|
});
|
|
1647
1672
|
|
|
1648
1673
|
// src/functions/index.ts
|
|
@@ -1677,7 +1702,7 @@ var LabelServiceImpl = class {
|
|
|
1677
1702
|
}
|
|
1678
1703
|
client;
|
|
1679
1704
|
list(options = {}) {
|
|
1680
|
-
return new
|
|
1705
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
1681
1706
|
}
|
|
1682
1707
|
async listPage(options = {}) {
|
|
1683
1708
|
return this.client.requestWithQuery(
|
|
@@ -1708,7 +1733,7 @@ var LinkServiceImpl = class {
|
|
|
1708
1733
|
}
|
|
1709
1734
|
client;
|
|
1710
1735
|
list(options = {}) {
|
|
1711
|
-
return new
|
|
1736
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
1712
1737
|
}
|
|
1713
1738
|
async listPage(options = {}) {
|
|
1714
1739
|
return this.client.requestWithQuery("GET", LINKS_BASE_PATH, options);
|
|
@@ -1735,7 +1760,7 @@ var NodeServiceImpl = class {
|
|
|
1735
1760
|
}
|
|
1736
1761
|
client;
|
|
1737
1762
|
list(options = {}) {
|
|
1738
|
-
return new
|
|
1763
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
1739
1764
|
}
|
|
1740
1765
|
async listPage(options = {}) {
|
|
1741
1766
|
const { label_ids, ...rest } = options;
|
|
@@ -1829,7 +1854,7 @@ var RecordLinkServiceImpl = class {
|
|
|
1829
1854
|
}
|
|
1830
1855
|
client;
|
|
1831
1856
|
list(options = {}) {
|
|
1832
|
-
return new
|
|
1857
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
1833
1858
|
}
|
|
1834
1859
|
async listPage(options = {}) {
|
|
1835
1860
|
return this.client.requestWithQuery(
|
|
@@ -1861,7 +1886,7 @@ var KnowledgeNodeMetadataSchema = zod.z.object({
|
|
|
1861
1886
|
summary: zod.z.string().nullish(),
|
|
1862
1887
|
valid_from: zod.z.string().nullish(),
|
|
1863
1888
|
valid_until: zod.z.string().nullish()
|
|
1864
|
-
}).merge(
|
|
1889
|
+
}).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
|
|
1865
1890
|
var KnowledgeNodeSchema = KnowledgeNodeMetadataSchema.extend({
|
|
1866
1891
|
content: zod.z.string()
|
|
1867
1892
|
});
|
|
@@ -1885,7 +1910,7 @@ var KnowledgeLinkSchema = zod.z.object({
|
|
|
1885
1910
|
"superseded_by"
|
|
1886
1911
|
]),
|
|
1887
1912
|
description: zod.z.string().nullish()
|
|
1888
|
-
}).merge(
|
|
1913
|
+
}).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
|
|
1889
1914
|
var KnowledgeRecordLinkSchema = zod.z.object({
|
|
1890
1915
|
id: zod.z.string(),
|
|
1891
1916
|
org_id: zod.z.string(),
|
|
@@ -1893,7 +1918,7 @@ var KnowledgeRecordLinkSchema = zod.z.object({
|
|
|
1893
1918
|
entity_slug: zod.z.string(),
|
|
1894
1919
|
record_id: zod.z.string(),
|
|
1895
1920
|
created_at: zod.z.string(),
|
|
1896
|
-
created_by:
|
|
1921
|
+
created_by: chunkV5X4QWIO_cjs.UserRefSchema
|
|
1897
1922
|
});
|
|
1898
1923
|
var KnowledgeLabelSchema = zod.z.object({
|
|
1899
1924
|
id: zod.z.string(),
|
|
@@ -1903,13 +1928,13 @@ var KnowledgeLabelSchema = zod.z.object({
|
|
|
1903
1928
|
description: zod.z.string().nullish(),
|
|
1904
1929
|
color: zod.z.string().nullish(),
|
|
1905
1930
|
icon: zod.z.string().nullish()
|
|
1906
|
-
}).merge(
|
|
1931
|
+
}).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
|
|
1907
1932
|
var KnowledgeNodeLabelSchema = zod.z.object({
|
|
1908
1933
|
org_id: zod.z.string(),
|
|
1909
1934
|
node_id: zod.z.string(),
|
|
1910
1935
|
label_id: zod.z.string(),
|
|
1911
1936
|
created_at: zod.z.string(),
|
|
1912
|
-
created_by:
|
|
1937
|
+
created_by: chunkV5X4QWIO_cjs.UserRefSchema
|
|
1913
1938
|
});
|
|
1914
1939
|
var NodeNeighborhoodSchema = zod.z.object({
|
|
1915
1940
|
nodes: zod.z.array(
|
|
@@ -2034,6 +2059,21 @@ var FileServiceImpl = class {
|
|
|
2034
2059
|
const { response } = await this.client.requestRaw("GET", `${FILES_BASE_PATH}/${id}/download`);
|
|
2035
2060
|
return await response.blob();
|
|
2036
2061
|
}
|
|
2062
|
+
async downloadPublic(orgId, id) {
|
|
2063
|
+
const { response } = await this.client.requestRaw(
|
|
2064
|
+
"GET",
|
|
2065
|
+
this.publicDownloadPath(orgId, id),
|
|
2066
|
+
void 0,
|
|
2067
|
+
{ skipAuth: true }
|
|
2068
|
+
);
|
|
2069
|
+
return await response.blob();
|
|
2070
|
+
}
|
|
2071
|
+
publicDownloadUrl(orgId, id) {
|
|
2072
|
+
return `${this.client.baseUrl}${this.publicDownloadPath(orgId, id)}`;
|
|
2073
|
+
}
|
|
2074
|
+
publicDownloadPath(orgId, id) {
|
|
2075
|
+
return `/storage/v1/public/orgs/${encodeURIComponent(orgId)}/files/${encodeURIComponent(id)}/download`;
|
|
2076
|
+
}
|
|
2037
2077
|
};
|
|
2038
2078
|
|
|
2039
2079
|
// src/storage/index.ts
|
|
@@ -2053,7 +2093,7 @@ var ExecutionServiceImpl = class {
|
|
|
2053
2093
|
}
|
|
2054
2094
|
client;
|
|
2055
2095
|
list(options = {}) {
|
|
2056
|
-
return new
|
|
2096
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2057
2097
|
}
|
|
2058
2098
|
async listPage(options = {}) {
|
|
2059
2099
|
return this.client.requestWithQuery(
|
|
@@ -2112,7 +2152,7 @@ var WorkflowServiceImpl = class {
|
|
|
2112
2152
|
}
|
|
2113
2153
|
client;
|
|
2114
2154
|
list(options = {}) {
|
|
2115
|
-
return new
|
|
2155
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2116
2156
|
}
|
|
2117
2157
|
async listPage(options = {}) {
|
|
2118
2158
|
return this.client.requestWithQuery("GET", WORKFLOWS_BASE_PATH2, options);
|
|
@@ -2150,7 +2190,7 @@ var WorkflowServiceImpl = class {
|
|
|
2150
2190
|
return this.client.request("POST", `${WORKFLOWS_BASE_PATH2}/${key}/unpause`, {});
|
|
2151
2191
|
}
|
|
2152
2192
|
listVersions(key, options = {}) {
|
|
2153
|
-
return new
|
|
2193
|
+
return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listVersionsPage(key, opts), options);
|
|
2154
2194
|
}
|
|
2155
2195
|
async listVersionsPage(key, options = {}) {
|
|
2156
2196
|
return this.client.requestWithQuery(
|
|
@@ -2195,191 +2235,195 @@ var WorkflowClient = class {
|
|
|
2195
2235
|
|
|
2196
2236
|
Object.defineProperty(exports, "AppSchema", {
|
|
2197
2237
|
enumerable: true,
|
|
2198
|
-
get: function () { return
|
|
2238
|
+
get: function () { return chunkV5X4QWIO_cjs.AppSchema; }
|
|
2199
2239
|
});
|
|
2200
2240
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
2201
2241
|
enumerable: true,
|
|
2202
|
-
get: function () { return
|
|
2242
|
+
get: function () { return chunkV5X4QWIO_cjs.AttributeSchema; }
|
|
2203
2243
|
});
|
|
2204
2244
|
Object.defineProperty(exports, "AuditFieldsSchema", {
|
|
2205
2245
|
enumerable: true,
|
|
2206
|
-
get: function () { return
|
|
2246
|
+
get: function () { return chunkV5X4QWIO_cjs.AuditFieldsSchema; }
|
|
2207
2247
|
});
|
|
2208
2248
|
Object.defineProperty(exports, "ColumnSchema", {
|
|
2209
2249
|
enumerable: true,
|
|
2210
|
-
get: function () { return
|
|
2250
|
+
get: function () { return chunkV5X4QWIO_cjs.ColumnSchema; }
|
|
2211
2251
|
});
|
|
2212
2252
|
Object.defineProperty(exports, "ComponentSchema", {
|
|
2213
2253
|
enumerable: true,
|
|
2214
|
-
get: function () { return
|
|
2254
|
+
get: function () { return chunkV5X4QWIO_cjs.ComponentSchema; }
|
|
2215
2255
|
});
|
|
2216
2256
|
Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
|
|
2217
2257
|
enumerable: true,
|
|
2218
|
-
get: function () { return
|
|
2258
|
+
get: function () { return chunkV5X4QWIO_cjs.CurrencyAttributeMetaSchema; }
|
|
2219
2259
|
});
|
|
2220
2260
|
Object.defineProperty(exports, "DEFAULT_PAGE_SIZE", {
|
|
2221
2261
|
enumerable: true,
|
|
2222
|
-
get: function () { return
|
|
2262
|
+
get: function () { return chunkV5X4QWIO_cjs.DEFAULT_PAGE_SIZE; }
|
|
2223
2263
|
});
|
|
2224
2264
|
Object.defineProperty(exports, "DONE", {
|
|
2225
2265
|
enumerable: true,
|
|
2226
|
-
get: function () { return
|
|
2266
|
+
get: function () { return chunkV5X4QWIO_cjs.DONE; }
|
|
2267
|
+
});
|
|
2268
|
+
Object.defineProperty(exports, "DesignReferenceSchema", {
|
|
2269
|
+
enumerable: true,
|
|
2270
|
+
get: function () { return chunkV5X4QWIO_cjs.DesignReferenceSchema; }
|
|
2227
2271
|
});
|
|
2228
2272
|
Object.defineProperty(exports, "EntitySchema", {
|
|
2229
2273
|
enumerable: true,
|
|
2230
|
-
get: function () { return
|
|
2274
|
+
get: function () { return chunkV5X4QWIO_cjs.EntitySchema; }
|
|
2231
2275
|
});
|
|
2232
2276
|
Object.defineProperty(exports, "EntityWithSchemaSchema", {
|
|
2233
2277
|
enumerable: true,
|
|
2234
|
-
get: function () { return
|
|
2278
|
+
get: function () { return chunkV5X4QWIO_cjs.EntityWithSchemaSchema; }
|
|
2235
2279
|
});
|
|
2236
2280
|
Object.defineProperty(exports, "FileRefSchema", {
|
|
2237
2281
|
enumerable: true,
|
|
2238
|
-
get: function () { return
|
|
2282
|
+
get: function () { return chunkV5X4QWIO_cjs.FileRefSchema; }
|
|
2239
2283
|
});
|
|
2240
2284
|
Object.defineProperty(exports, "FilterElementSchema", {
|
|
2241
2285
|
enumerable: true,
|
|
2242
|
-
get: function () { return
|
|
2286
|
+
get: function () { return chunkV5X4QWIO_cjs.FilterElementSchema; }
|
|
2243
2287
|
});
|
|
2244
2288
|
Object.defineProperty(exports, "FilterGroupSchema", {
|
|
2245
2289
|
enumerable: true,
|
|
2246
|
-
get: function () { return
|
|
2290
|
+
get: function () { return chunkV5X4QWIO_cjs.FilterGroupSchema; }
|
|
2247
2291
|
});
|
|
2248
2292
|
Object.defineProperty(exports, "ListSchema", {
|
|
2249
2293
|
enumerable: true,
|
|
2250
|
-
get: function () { return
|
|
2294
|
+
get: function () { return chunkV5X4QWIO_cjs.ListSchema; }
|
|
2251
2295
|
});
|
|
2252
2296
|
Object.defineProperty(exports, "ListViewSchema", {
|
|
2253
2297
|
enumerable: true,
|
|
2254
|
-
get: function () { return
|
|
2298
|
+
get: function () { return chunkV5X4QWIO_cjs.ListViewSchema; }
|
|
2255
2299
|
});
|
|
2256
2300
|
Object.defineProperty(exports, "MenuConfigurationSchema", {
|
|
2257
2301
|
enumerable: true,
|
|
2258
|
-
get: function () { return
|
|
2302
|
+
get: function () { return chunkV5X4QWIO_cjs.MenuConfigurationSchema; }
|
|
2259
2303
|
});
|
|
2260
2304
|
Object.defineProperty(exports, "MenuItemSchema", {
|
|
2261
2305
|
enumerable: true,
|
|
2262
|
-
get: function () { return
|
|
2306
|
+
get: function () { return chunkV5X4QWIO_cjs.MenuItemSchema; }
|
|
2263
2307
|
});
|
|
2264
2308
|
Object.defineProperty(exports, "MenuItemType", {
|
|
2265
2309
|
enumerable: true,
|
|
2266
|
-
get: function () { return
|
|
2310
|
+
get: function () { return chunkV5X4QWIO_cjs.MenuItemType; }
|
|
2267
2311
|
});
|
|
2268
2312
|
Object.defineProperty(exports, "MetaClient", {
|
|
2269
2313
|
enumerable: true,
|
|
2270
|
-
get: function () { return
|
|
2314
|
+
get: function () { return chunkV5X4QWIO_cjs.MetaClient; }
|
|
2271
2315
|
});
|
|
2272
2316
|
Object.defineProperty(exports, "ModuleSchema", {
|
|
2273
2317
|
enumerable: true,
|
|
2274
|
-
get: function () { return
|
|
2318
|
+
get: function () { return chunkV5X4QWIO_cjs.ModuleSchema; }
|
|
2275
2319
|
});
|
|
2276
2320
|
Object.defineProperty(exports, "OnDeleteActionSchema", {
|
|
2277
2321
|
enumerable: true,
|
|
2278
|
-
get: function () { return
|
|
2322
|
+
get: function () { return chunkV5X4QWIO_cjs.OnDeleteActionSchema; }
|
|
2279
2323
|
});
|
|
2280
2324
|
Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
|
|
2281
2325
|
enumerable: true,
|
|
2282
|
-
get: function () { return
|
|
2326
|
+
get: function () { return chunkV5X4QWIO_cjs.PLATFORM_ATTRIBUTE_NAMES; }
|
|
2283
2327
|
});
|
|
2284
2328
|
Object.defineProperty(exports, "PLATFORM_USER_ID", {
|
|
2285
2329
|
enumerable: true,
|
|
2286
|
-
get: function () { return
|
|
2330
|
+
get: function () { return chunkV5X4QWIO_cjs.PLATFORM_USER_ID; }
|
|
2287
2331
|
});
|
|
2288
2332
|
Object.defineProperty(exports, "PageActionSchema", {
|
|
2289
2333
|
enumerable: true,
|
|
2290
|
-
get: function () { return
|
|
2334
|
+
get: function () { return chunkV5X4QWIO_cjs.PageActionSchema; }
|
|
2291
2335
|
});
|
|
2292
2336
|
Object.defineProperty(exports, "PageIterator", {
|
|
2293
2337
|
enumerable: true,
|
|
2294
|
-
get: function () { return
|
|
2338
|
+
get: function () { return chunkV5X4QWIO_cjs.PageIterator; }
|
|
2295
2339
|
});
|
|
2296
2340
|
Object.defineProperty(exports, "PageLayoutSchema", {
|
|
2297
2341
|
enumerable: true,
|
|
2298
|
-
get: function () { return
|
|
2342
|
+
get: function () { return chunkV5X4QWIO_cjs.PageLayoutSchema; }
|
|
2299
2343
|
});
|
|
2300
2344
|
Object.defineProperty(exports, "PageSchema", {
|
|
2301
2345
|
enumerable: true,
|
|
2302
|
-
get: function () { return
|
|
2346
|
+
get: function () { return chunkV5X4QWIO_cjs.PageSchema; }
|
|
2303
2347
|
});
|
|
2304
2348
|
Object.defineProperty(exports, "RelationAttributeMetaSchema", {
|
|
2305
2349
|
enumerable: true,
|
|
2306
|
-
get: function () { return
|
|
2350
|
+
get: function () { return chunkV5X4QWIO_cjs.RelationAttributeMetaSchema; }
|
|
2307
2351
|
});
|
|
2308
2352
|
Object.defineProperty(exports, "ResponseMetaSchema", {
|
|
2309
2353
|
enumerable: true,
|
|
2310
|
-
get: function () { return
|
|
2354
|
+
get: function () { return chunkV5X4QWIO_cjs.ResponseMetaSchema; }
|
|
2311
2355
|
});
|
|
2312
2356
|
Object.defineProperty(exports, "SortConfigSchema", {
|
|
2313
2357
|
enumerable: true,
|
|
2314
|
-
get: function () { return
|
|
2358
|
+
get: function () { return chunkV5X4QWIO_cjs.SortConfigSchema; }
|
|
2315
2359
|
});
|
|
2316
2360
|
Object.defineProperty(exports, "UserRefSchema", {
|
|
2317
2361
|
enumerable: true,
|
|
2318
|
-
get: function () { return
|
|
2362
|
+
get: function () { return chunkV5X4QWIO_cjs.UserRefSchema; }
|
|
2319
2363
|
});
|
|
2320
2364
|
Object.defineProperty(exports, "VariableSchema", {
|
|
2321
2365
|
enumerable: true,
|
|
2322
|
-
get: function () { return
|
|
2366
|
+
get: function () { return chunkV5X4QWIO_cjs.VariableSchema; }
|
|
2323
2367
|
});
|
|
2324
2368
|
Object.defineProperty(exports, "allCurrencyCodes", {
|
|
2325
2369
|
enumerable: true,
|
|
2326
|
-
get: function () { return
|
|
2370
|
+
get: function () { return chunkV5X4QWIO_cjs.allCurrencyCodes; }
|
|
2327
2371
|
});
|
|
2328
2372
|
Object.defineProperty(exports, "createIterator", {
|
|
2329
2373
|
enumerable: true,
|
|
2330
|
-
get: function () { return
|
|
2374
|
+
get: function () { return chunkV5X4QWIO_cjs.createIterator; }
|
|
2331
2375
|
});
|
|
2332
2376
|
Object.defineProperty(exports, "createListResultSchema", {
|
|
2333
2377
|
enumerable: true,
|
|
2334
|
-
get: function () { return
|
|
2378
|
+
get: function () { return chunkV5X4QWIO_cjs.createListResultSchema; }
|
|
2335
2379
|
});
|
|
2336
2380
|
Object.defineProperty(exports, "currencyLabel", {
|
|
2337
2381
|
enumerable: true,
|
|
2338
|
-
get: function () { return
|
|
2382
|
+
get: function () { return chunkV5X4QWIO_cjs.currencyLabel; }
|
|
2339
2383
|
});
|
|
2340
2384
|
Object.defineProperty(exports, "currencySymbol", {
|
|
2341
2385
|
enumerable: true,
|
|
2342
|
-
get: function () { return
|
|
2386
|
+
get: function () { return chunkV5X4QWIO_cjs.currencySymbol; }
|
|
2343
2387
|
});
|
|
2344
2388
|
Object.defineProperty(exports, "currencySymbolSide", {
|
|
2345
2389
|
enumerable: true,
|
|
2346
|
-
get: function () { return
|
|
2390
|
+
get: function () { return chunkV5X4QWIO_cjs.currencySymbolSide; }
|
|
2347
2391
|
});
|
|
2348
2392
|
Object.defineProperty(exports, "formatAmount", {
|
|
2349
2393
|
enumerable: true,
|
|
2350
|
-
get: function () { return
|
|
2394
|
+
get: function () { return chunkV5X4QWIO_cjs.formatAmount; }
|
|
2351
2395
|
});
|
|
2352
2396
|
Object.defineProperty(exports, "formatMoney", {
|
|
2353
2397
|
enumerable: true,
|
|
2354
|
-
get: function () { return
|
|
2398
|
+
get: function () { return chunkV5X4QWIO_cjs.formatMoney; }
|
|
2355
2399
|
});
|
|
2356
2400
|
Object.defineProperty(exports, "isPlatformAttributeName", {
|
|
2357
2401
|
enumerable: true,
|
|
2358
|
-
get: function () { return
|
|
2402
|
+
get: function () { return chunkV5X4QWIO_cjs.isPlatformAttributeName; }
|
|
2359
2403
|
});
|
|
2360
2404
|
Object.defineProperty(exports, "localeNumberSeparators", {
|
|
2361
2405
|
enumerable: true,
|
|
2362
|
-
get: function () { return
|
|
2406
|
+
get: function () { return chunkV5X4QWIO_cjs.localeNumberSeparators; }
|
|
2363
2407
|
});
|
|
2364
2408
|
Object.defineProperty(exports, "parseAmount", {
|
|
2365
2409
|
enumerable: true,
|
|
2366
|
-
get: function () { return
|
|
2410
|
+
get: function () { return chunkV5X4QWIO_cjs.parseAmount; }
|
|
2367
2411
|
});
|
|
2368
2412
|
Object.defineProperty(exports, "parseCurrencyMeta", {
|
|
2369
2413
|
enumerable: true,
|
|
2370
|
-
get: function () { return
|
|
2414
|
+
get: function () { return chunkV5X4QWIO_cjs.parseCurrencyMeta; }
|
|
2371
2415
|
});
|
|
2372
2416
|
Object.defineProperty(exports, "parseFileMeta", {
|
|
2373
2417
|
enumerable: true,
|
|
2374
|
-
get: function () { return
|
|
2418
|
+
get: function () { return chunkV5X4QWIO_cjs.parseFileMeta; }
|
|
2375
2419
|
});
|
|
2376
2420
|
Object.defineProperty(exports, "parseRelationMeta", {
|
|
2377
2421
|
enumerable: true,
|
|
2378
|
-
get: function () { return
|
|
2422
|
+
get: function () { return chunkV5X4QWIO_cjs.parseRelationMeta; }
|
|
2379
2423
|
});
|
|
2380
2424
|
Object.defineProperty(exports, "platformAttributes", {
|
|
2381
2425
|
enumerable: true,
|
|
2382
|
-
get: function () { return
|
|
2426
|
+
get: function () { return chunkV5X4QWIO_cjs.platformAttributes; }
|
|
2383
2427
|
});
|
|
2384
2428
|
exports.AccountClient = AccountClient;
|
|
2385
2429
|
exports.ActionSchema = ActionSchema;
|