@proteos/sdk 0.20.5 → 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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7RGN4E22_cjs = require('./chunk-7RGN4E22.cjs');
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.fetchPermissionsPage(roleSlug, opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
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 chunk7RGN4E22_cjs.PageIterator((opts) => this.fetchRolesPage(userId, opts), options);
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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
557
561
  external_id: zod.z.string(),
558
562
  default_org_id: zod.z.string()
559
563
  });
560
- chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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 @@ chunk7RGN4E22_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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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 = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
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()
@@ -817,9 +821,11 @@ var ProteosClient = class {
817
821
  ...this.options.headers,
818
822
  ...requestOptions?.headers
819
823
  });
820
- const token = await this.getToken();
821
- if (token) {
822
- headers.set("Authorization", `Bearer ${token}`);
824
+ if (!requestOptions?.skipAuth) {
825
+ const token = await this.getToken();
826
+ if (token) {
827
+ headers.set("Authorization", `Bearer ${token}`);
828
+ }
823
829
  }
824
830
  return headers;
825
831
  }
@@ -1088,6 +1094,68 @@ var ProteosClient = class {
1088
1094
  }
1089
1095
  };
1090
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
+
1091
1159
  // src/conversation/voice.ts
1092
1160
  var VOICE_BASE_PATH = "/conversations/v1/voice";
1093
1161
  var VoiceServiceImpl = class {
@@ -1335,68 +1403,6 @@ var TranscriptionServiceImpl = class {
1335
1403
  }
1336
1404
  };
1337
1405
 
1338
- // src/connector/index.ts
1339
- var CONNECTOR_BASE_PATH = "/connectors/v1";
1340
- var ConnectorClient = class {
1341
- connectors;
1342
- connections;
1343
- constructor(client) {
1344
- this.connectors = new ConnectorCatalogServiceImpl(client);
1345
- this.connections = new ConnectorConnectionServiceImpl(client);
1346
- }
1347
- };
1348
- var ConnectorCatalogServiceImpl = class {
1349
- constructor(client) {
1350
- this.client = client;
1351
- }
1352
- client;
1353
- list(query = {}) {
1354
- return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connectors`, query);
1355
- }
1356
- get(key) {
1357
- return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connectors/${encodeURIComponent(key)}`);
1358
- }
1359
- async listMethods(key) {
1360
- const connector = await this.get(key);
1361
- return connector.methods ?? [];
1362
- }
1363
- };
1364
- var ConnectorConnectionServiceImpl = class {
1365
- constructor(client) {
1366
- this.client = client;
1367
- }
1368
- client;
1369
- list(query = {}) {
1370
- return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connections`, query);
1371
- }
1372
- get(id) {
1373
- return this.client.request("GET", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
1374
- }
1375
- create(request) {
1376
- return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections`, request);
1377
- }
1378
- update(id, request) {
1379
- return this.client.request("PATCH", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`, request);
1380
- }
1381
- async delete(id) {
1382
- await this.client.request("DELETE", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`);
1383
- }
1384
- install(id) {
1385
- return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/install`);
1386
- }
1387
- token(id) {
1388
- return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/token`);
1389
- }
1390
- async invokeMethod(id, method, params = {}) {
1391
- const response = await this.client.request(
1392
- "POST",
1393
- `${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/methods/${encodeURIComponent(method)}/invoke`,
1394
- params
1395
- );
1396
- return response.result;
1397
- }
1398
- };
1399
-
1400
1406
  // src/data/queries.ts
1401
1407
  var QUERY_BASE_PATH = "/data/v1/query";
1402
1408
  var QueryServiceImpl = class {
@@ -1417,13 +1423,14 @@ var QueryServiceImpl = class {
1417
1423
  // src/data/records.ts
1418
1424
  var RECORDS_BASE_PATH = "/data/v1/records";
1419
1425
  var BATCH_RECORDS_BASE_PATH = "/data/v1/batch/records";
1426
+ var PUBLIC_RECORDS_BASE_PATH = "/data/v1/public/orgs";
1420
1427
  var RecordServiceImpl = class {
1421
1428
  constructor(client) {
1422
1429
  this.client = client;
1423
1430
  }
1424
1431
  client;
1425
1432
  list(entitySlug, options = {}) {
1426
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(entitySlug, opts), options);
1433
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(entitySlug, opts), options);
1427
1434
  }
1428
1435
  async listPage(entitySlug, options = {}) {
1429
1436
  return this.client.requestWithQuery(
@@ -1455,6 +1462,26 @@ var RecordServiceImpl = class {
1455
1462
  transactions
1456
1463
  );
1457
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
+ }
1458
1485
  };
1459
1486
  var BatchUpsertTransactionSchema = zod.z.object({
1460
1487
  transaction_id: zod.z.string(),
@@ -1595,7 +1622,7 @@ var ActionServiceImpl = class {
1595
1622
  }
1596
1623
  client;
1597
1624
  list(options = {}) {
1598
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
1625
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
1599
1626
  }
1600
1627
  async listPage(options = {}) {
1601
1628
  return this.client.requestWithQuery("GET", ACTIONS_BASE_PATH, options);
@@ -1611,6 +1638,15 @@ var ActionServiceImpl = class {
1611
1638
  );
1612
1639
  return response.result;
1613
1640
  }
1641
+ async invokePublic(orgId, slug, params) {
1642
+ const response = await this.client.request(
1643
+ "POST",
1644
+ `/functions/v1/public/orgs/${encodeURIComponent(orgId)}/actions/${encodeURIComponent(slug)}/invoke`,
1645
+ params,
1646
+ { skipAuth: true }
1647
+ );
1648
+ return response.result;
1649
+ }
1614
1650
  async invokeEntity(entitySlug, recordId, slug, params) {
1615
1651
  const response = await this.client.request(
1616
1652
  "POST",
@@ -1621,7 +1657,7 @@ var ActionServiceImpl = class {
1621
1657
  }
1622
1658
  };
1623
1659
  var ActionScopeSchema = zod.z.enum(["entity", "global"]);
1624
- var ActionSchema = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
1660
+ var ActionSchema = chunkV5X4QWIO_cjs.AuditFieldsSchema.extend({
1625
1661
  slug: zod.z.string(),
1626
1662
  org_id: zod.z.string(),
1627
1663
  module_slug: zod.z.string(),
@@ -1630,8 +1666,8 @@ var ActionSchema = chunk7RGN4E22_cjs.AuditFieldsSchema.extend({
1630
1666
  name: zod.z.string(),
1631
1667
  is_active: zod.z.boolean(),
1632
1668
  file_id: zod.z.string(),
1633
- params: zod.z.array(chunk7RGN4E22_cjs.AttributeSchema),
1634
- returns: zod.z.array(chunk7RGN4E22_cjs.AttributeSchema)
1669
+ params: zod.z.array(chunkV5X4QWIO_cjs.AttributeSchema),
1670
+ returns: zod.z.array(chunkV5X4QWIO_cjs.AttributeSchema)
1635
1671
  });
1636
1672
 
1637
1673
  // src/functions/index.ts
@@ -1666,7 +1702,7 @@ var LabelServiceImpl = class {
1666
1702
  }
1667
1703
  client;
1668
1704
  list(options = {}) {
1669
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
1705
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
1670
1706
  }
1671
1707
  async listPage(options = {}) {
1672
1708
  return this.client.requestWithQuery(
@@ -1697,7 +1733,7 @@ var LinkServiceImpl = class {
1697
1733
  }
1698
1734
  client;
1699
1735
  list(options = {}) {
1700
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
1736
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
1701
1737
  }
1702
1738
  async listPage(options = {}) {
1703
1739
  return this.client.requestWithQuery("GET", LINKS_BASE_PATH, options);
@@ -1724,7 +1760,7 @@ var NodeServiceImpl = class {
1724
1760
  }
1725
1761
  client;
1726
1762
  list(options = {}) {
1727
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
1763
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
1728
1764
  }
1729
1765
  async listPage(options = {}) {
1730
1766
  const { label_ids, ...rest } = options;
@@ -1818,7 +1854,7 @@ var RecordLinkServiceImpl = class {
1818
1854
  }
1819
1855
  client;
1820
1856
  list(options = {}) {
1821
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
1857
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
1822
1858
  }
1823
1859
  async listPage(options = {}) {
1824
1860
  return this.client.requestWithQuery(
@@ -1850,7 +1886,7 @@ var KnowledgeNodeMetadataSchema = zod.z.object({
1850
1886
  summary: zod.z.string().nullish(),
1851
1887
  valid_from: zod.z.string().nullish(),
1852
1888
  valid_until: zod.z.string().nullish()
1853
- }).merge(chunk7RGN4E22_cjs.AuditFieldsSchema);
1889
+ }).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
1854
1890
  var KnowledgeNodeSchema = KnowledgeNodeMetadataSchema.extend({
1855
1891
  content: zod.z.string()
1856
1892
  });
@@ -1874,7 +1910,7 @@ var KnowledgeLinkSchema = zod.z.object({
1874
1910
  "superseded_by"
1875
1911
  ]),
1876
1912
  description: zod.z.string().nullish()
1877
- }).merge(chunk7RGN4E22_cjs.AuditFieldsSchema);
1913
+ }).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
1878
1914
  var KnowledgeRecordLinkSchema = zod.z.object({
1879
1915
  id: zod.z.string(),
1880
1916
  org_id: zod.z.string(),
@@ -1882,7 +1918,7 @@ var KnowledgeRecordLinkSchema = zod.z.object({
1882
1918
  entity_slug: zod.z.string(),
1883
1919
  record_id: zod.z.string(),
1884
1920
  created_at: zod.z.string(),
1885
- created_by: chunk7RGN4E22_cjs.UserRefSchema
1921
+ created_by: chunkV5X4QWIO_cjs.UserRefSchema
1886
1922
  });
1887
1923
  var KnowledgeLabelSchema = zod.z.object({
1888
1924
  id: zod.z.string(),
@@ -1892,13 +1928,13 @@ var KnowledgeLabelSchema = zod.z.object({
1892
1928
  description: zod.z.string().nullish(),
1893
1929
  color: zod.z.string().nullish(),
1894
1930
  icon: zod.z.string().nullish()
1895
- }).merge(chunk7RGN4E22_cjs.AuditFieldsSchema);
1931
+ }).merge(chunkV5X4QWIO_cjs.AuditFieldsSchema);
1896
1932
  var KnowledgeNodeLabelSchema = zod.z.object({
1897
1933
  org_id: zod.z.string(),
1898
1934
  node_id: zod.z.string(),
1899
1935
  label_id: zod.z.string(),
1900
1936
  created_at: zod.z.string(),
1901
- created_by: chunk7RGN4E22_cjs.UserRefSchema
1937
+ created_by: chunkV5X4QWIO_cjs.UserRefSchema
1902
1938
  });
1903
1939
  var NodeNeighborhoodSchema = zod.z.object({
1904
1940
  nodes: zod.z.array(
@@ -2023,6 +2059,21 @@ var FileServiceImpl = class {
2023
2059
  const { response } = await this.client.requestRaw("GET", `${FILES_BASE_PATH}/${id}/download`);
2024
2060
  return await response.blob();
2025
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
+ }
2026
2077
  };
2027
2078
 
2028
2079
  // src/storage/index.ts
@@ -2042,7 +2093,7 @@ var ExecutionServiceImpl = class {
2042
2093
  }
2043
2094
  client;
2044
2095
  list(options = {}) {
2045
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
2096
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
2046
2097
  }
2047
2098
  async listPage(options = {}) {
2048
2099
  return this.client.requestWithQuery(
@@ -2101,7 +2152,7 @@ var WorkflowServiceImpl = class {
2101
2152
  }
2102
2153
  client;
2103
2154
  list(options = {}) {
2104
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listPage(opts), options);
2155
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listPage(opts), options);
2105
2156
  }
2106
2157
  async listPage(options = {}) {
2107
2158
  return this.client.requestWithQuery("GET", WORKFLOWS_BASE_PATH2, options);
@@ -2139,7 +2190,7 @@ var WorkflowServiceImpl = class {
2139
2190
  return this.client.request("POST", `${WORKFLOWS_BASE_PATH2}/${key}/unpause`, {});
2140
2191
  }
2141
2192
  listVersions(key, options = {}) {
2142
- return new chunk7RGN4E22_cjs.PageIterator((opts) => this.listVersionsPage(key, opts), options);
2193
+ return new chunkV5X4QWIO_cjs.PageIterator((opts) => this.listVersionsPage(key, opts), options);
2143
2194
  }
2144
2195
  async listVersionsPage(key, options = {}) {
2145
2196
  return this.client.requestWithQuery(
@@ -2184,191 +2235,195 @@ var WorkflowClient = class {
2184
2235
 
2185
2236
  Object.defineProperty(exports, "AppSchema", {
2186
2237
  enumerable: true,
2187
- get: function () { return chunk7RGN4E22_cjs.AppSchema; }
2238
+ get: function () { return chunkV5X4QWIO_cjs.AppSchema; }
2188
2239
  });
2189
2240
  Object.defineProperty(exports, "AttributeSchema", {
2190
2241
  enumerable: true,
2191
- get: function () { return chunk7RGN4E22_cjs.AttributeSchema; }
2242
+ get: function () { return chunkV5X4QWIO_cjs.AttributeSchema; }
2192
2243
  });
2193
2244
  Object.defineProperty(exports, "AuditFieldsSchema", {
2194
2245
  enumerable: true,
2195
- get: function () { return chunk7RGN4E22_cjs.AuditFieldsSchema; }
2246
+ get: function () { return chunkV5X4QWIO_cjs.AuditFieldsSchema; }
2196
2247
  });
2197
2248
  Object.defineProperty(exports, "ColumnSchema", {
2198
2249
  enumerable: true,
2199
- get: function () { return chunk7RGN4E22_cjs.ColumnSchema; }
2250
+ get: function () { return chunkV5X4QWIO_cjs.ColumnSchema; }
2200
2251
  });
2201
2252
  Object.defineProperty(exports, "ComponentSchema", {
2202
2253
  enumerable: true,
2203
- get: function () { return chunk7RGN4E22_cjs.ComponentSchema; }
2254
+ get: function () { return chunkV5X4QWIO_cjs.ComponentSchema; }
2204
2255
  });
2205
2256
  Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
2206
2257
  enumerable: true,
2207
- get: function () { return chunk7RGN4E22_cjs.CurrencyAttributeMetaSchema; }
2258
+ get: function () { return chunkV5X4QWIO_cjs.CurrencyAttributeMetaSchema; }
2208
2259
  });
2209
2260
  Object.defineProperty(exports, "DEFAULT_PAGE_SIZE", {
2210
2261
  enumerable: true,
2211
- get: function () { return chunk7RGN4E22_cjs.DEFAULT_PAGE_SIZE; }
2262
+ get: function () { return chunkV5X4QWIO_cjs.DEFAULT_PAGE_SIZE; }
2212
2263
  });
2213
2264
  Object.defineProperty(exports, "DONE", {
2214
2265
  enumerable: true,
2215
- get: function () { return chunk7RGN4E22_cjs.DONE; }
2266
+ get: function () { return chunkV5X4QWIO_cjs.DONE; }
2267
+ });
2268
+ Object.defineProperty(exports, "DesignReferenceSchema", {
2269
+ enumerable: true,
2270
+ get: function () { return chunkV5X4QWIO_cjs.DesignReferenceSchema; }
2216
2271
  });
2217
2272
  Object.defineProperty(exports, "EntitySchema", {
2218
2273
  enumerable: true,
2219
- get: function () { return chunk7RGN4E22_cjs.EntitySchema; }
2274
+ get: function () { return chunkV5X4QWIO_cjs.EntitySchema; }
2220
2275
  });
2221
2276
  Object.defineProperty(exports, "EntityWithSchemaSchema", {
2222
2277
  enumerable: true,
2223
- get: function () { return chunk7RGN4E22_cjs.EntityWithSchemaSchema; }
2278
+ get: function () { return chunkV5X4QWIO_cjs.EntityWithSchemaSchema; }
2224
2279
  });
2225
2280
  Object.defineProperty(exports, "FileRefSchema", {
2226
2281
  enumerable: true,
2227
- get: function () { return chunk7RGN4E22_cjs.FileRefSchema; }
2282
+ get: function () { return chunkV5X4QWIO_cjs.FileRefSchema; }
2228
2283
  });
2229
2284
  Object.defineProperty(exports, "FilterElementSchema", {
2230
2285
  enumerable: true,
2231
- get: function () { return chunk7RGN4E22_cjs.FilterElementSchema; }
2286
+ get: function () { return chunkV5X4QWIO_cjs.FilterElementSchema; }
2232
2287
  });
2233
2288
  Object.defineProperty(exports, "FilterGroupSchema", {
2234
2289
  enumerable: true,
2235
- get: function () { return chunk7RGN4E22_cjs.FilterGroupSchema; }
2290
+ get: function () { return chunkV5X4QWIO_cjs.FilterGroupSchema; }
2236
2291
  });
2237
2292
  Object.defineProperty(exports, "ListSchema", {
2238
2293
  enumerable: true,
2239
- get: function () { return chunk7RGN4E22_cjs.ListSchema; }
2294
+ get: function () { return chunkV5X4QWIO_cjs.ListSchema; }
2240
2295
  });
2241
2296
  Object.defineProperty(exports, "ListViewSchema", {
2242
2297
  enumerable: true,
2243
- get: function () { return chunk7RGN4E22_cjs.ListViewSchema; }
2298
+ get: function () { return chunkV5X4QWIO_cjs.ListViewSchema; }
2244
2299
  });
2245
2300
  Object.defineProperty(exports, "MenuConfigurationSchema", {
2246
2301
  enumerable: true,
2247
- get: function () { return chunk7RGN4E22_cjs.MenuConfigurationSchema; }
2302
+ get: function () { return chunkV5X4QWIO_cjs.MenuConfigurationSchema; }
2248
2303
  });
2249
2304
  Object.defineProperty(exports, "MenuItemSchema", {
2250
2305
  enumerable: true,
2251
- get: function () { return chunk7RGN4E22_cjs.MenuItemSchema; }
2306
+ get: function () { return chunkV5X4QWIO_cjs.MenuItemSchema; }
2252
2307
  });
2253
2308
  Object.defineProperty(exports, "MenuItemType", {
2254
2309
  enumerable: true,
2255
- get: function () { return chunk7RGN4E22_cjs.MenuItemType; }
2310
+ get: function () { return chunkV5X4QWIO_cjs.MenuItemType; }
2256
2311
  });
2257
2312
  Object.defineProperty(exports, "MetaClient", {
2258
2313
  enumerable: true,
2259
- get: function () { return chunk7RGN4E22_cjs.MetaClient; }
2314
+ get: function () { return chunkV5X4QWIO_cjs.MetaClient; }
2260
2315
  });
2261
2316
  Object.defineProperty(exports, "ModuleSchema", {
2262
2317
  enumerable: true,
2263
- get: function () { return chunk7RGN4E22_cjs.ModuleSchema; }
2318
+ get: function () { return chunkV5X4QWIO_cjs.ModuleSchema; }
2264
2319
  });
2265
2320
  Object.defineProperty(exports, "OnDeleteActionSchema", {
2266
2321
  enumerable: true,
2267
- get: function () { return chunk7RGN4E22_cjs.OnDeleteActionSchema; }
2322
+ get: function () { return chunkV5X4QWIO_cjs.OnDeleteActionSchema; }
2268
2323
  });
2269
2324
  Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
2270
2325
  enumerable: true,
2271
- get: function () { return chunk7RGN4E22_cjs.PLATFORM_ATTRIBUTE_NAMES; }
2326
+ get: function () { return chunkV5X4QWIO_cjs.PLATFORM_ATTRIBUTE_NAMES; }
2272
2327
  });
2273
2328
  Object.defineProperty(exports, "PLATFORM_USER_ID", {
2274
2329
  enumerable: true,
2275
- get: function () { return chunk7RGN4E22_cjs.PLATFORM_USER_ID; }
2330
+ get: function () { return chunkV5X4QWIO_cjs.PLATFORM_USER_ID; }
2276
2331
  });
2277
2332
  Object.defineProperty(exports, "PageActionSchema", {
2278
2333
  enumerable: true,
2279
- get: function () { return chunk7RGN4E22_cjs.PageActionSchema; }
2334
+ get: function () { return chunkV5X4QWIO_cjs.PageActionSchema; }
2280
2335
  });
2281
2336
  Object.defineProperty(exports, "PageIterator", {
2282
2337
  enumerable: true,
2283
- get: function () { return chunk7RGN4E22_cjs.PageIterator; }
2338
+ get: function () { return chunkV5X4QWIO_cjs.PageIterator; }
2284
2339
  });
2285
2340
  Object.defineProperty(exports, "PageLayoutSchema", {
2286
2341
  enumerable: true,
2287
- get: function () { return chunk7RGN4E22_cjs.PageLayoutSchema; }
2342
+ get: function () { return chunkV5X4QWIO_cjs.PageLayoutSchema; }
2288
2343
  });
2289
2344
  Object.defineProperty(exports, "PageSchema", {
2290
2345
  enumerable: true,
2291
- get: function () { return chunk7RGN4E22_cjs.PageSchema; }
2346
+ get: function () { return chunkV5X4QWIO_cjs.PageSchema; }
2292
2347
  });
2293
2348
  Object.defineProperty(exports, "RelationAttributeMetaSchema", {
2294
2349
  enumerable: true,
2295
- get: function () { return chunk7RGN4E22_cjs.RelationAttributeMetaSchema; }
2350
+ get: function () { return chunkV5X4QWIO_cjs.RelationAttributeMetaSchema; }
2296
2351
  });
2297
2352
  Object.defineProperty(exports, "ResponseMetaSchema", {
2298
2353
  enumerable: true,
2299
- get: function () { return chunk7RGN4E22_cjs.ResponseMetaSchema; }
2354
+ get: function () { return chunkV5X4QWIO_cjs.ResponseMetaSchema; }
2300
2355
  });
2301
2356
  Object.defineProperty(exports, "SortConfigSchema", {
2302
2357
  enumerable: true,
2303
- get: function () { return chunk7RGN4E22_cjs.SortConfigSchema; }
2358
+ get: function () { return chunkV5X4QWIO_cjs.SortConfigSchema; }
2304
2359
  });
2305
2360
  Object.defineProperty(exports, "UserRefSchema", {
2306
2361
  enumerable: true,
2307
- get: function () { return chunk7RGN4E22_cjs.UserRefSchema; }
2362
+ get: function () { return chunkV5X4QWIO_cjs.UserRefSchema; }
2308
2363
  });
2309
2364
  Object.defineProperty(exports, "VariableSchema", {
2310
2365
  enumerable: true,
2311
- get: function () { return chunk7RGN4E22_cjs.VariableSchema; }
2366
+ get: function () { return chunkV5X4QWIO_cjs.VariableSchema; }
2312
2367
  });
2313
2368
  Object.defineProperty(exports, "allCurrencyCodes", {
2314
2369
  enumerable: true,
2315
- get: function () { return chunk7RGN4E22_cjs.allCurrencyCodes; }
2370
+ get: function () { return chunkV5X4QWIO_cjs.allCurrencyCodes; }
2316
2371
  });
2317
2372
  Object.defineProperty(exports, "createIterator", {
2318
2373
  enumerable: true,
2319
- get: function () { return chunk7RGN4E22_cjs.createIterator; }
2374
+ get: function () { return chunkV5X4QWIO_cjs.createIterator; }
2320
2375
  });
2321
2376
  Object.defineProperty(exports, "createListResultSchema", {
2322
2377
  enumerable: true,
2323
- get: function () { return chunk7RGN4E22_cjs.createListResultSchema; }
2378
+ get: function () { return chunkV5X4QWIO_cjs.createListResultSchema; }
2324
2379
  });
2325
2380
  Object.defineProperty(exports, "currencyLabel", {
2326
2381
  enumerable: true,
2327
- get: function () { return chunk7RGN4E22_cjs.currencyLabel; }
2382
+ get: function () { return chunkV5X4QWIO_cjs.currencyLabel; }
2328
2383
  });
2329
2384
  Object.defineProperty(exports, "currencySymbol", {
2330
2385
  enumerable: true,
2331
- get: function () { return chunk7RGN4E22_cjs.currencySymbol; }
2386
+ get: function () { return chunkV5X4QWIO_cjs.currencySymbol; }
2332
2387
  });
2333
2388
  Object.defineProperty(exports, "currencySymbolSide", {
2334
2389
  enumerable: true,
2335
- get: function () { return chunk7RGN4E22_cjs.currencySymbolSide; }
2390
+ get: function () { return chunkV5X4QWIO_cjs.currencySymbolSide; }
2336
2391
  });
2337
2392
  Object.defineProperty(exports, "formatAmount", {
2338
2393
  enumerable: true,
2339
- get: function () { return chunk7RGN4E22_cjs.formatAmount; }
2394
+ get: function () { return chunkV5X4QWIO_cjs.formatAmount; }
2340
2395
  });
2341
2396
  Object.defineProperty(exports, "formatMoney", {
2342
2397
  enumerable: true,
2343
- get: function () { return chunk7RGN4E22_cjs.formatMoney; }
2398
+ get: function () { return chunkV5X4QWIO_cjs.formatMoney; }
2344
2399
  });
2345
2400
  Object.defineProperty(exports, "isPlatformAttributeName", {
2346
2401
  enumerable: true,
2347
- get: function () { return chunk7RGN4E22_cjs.isPlatformAttributeName; }
2402
+ get: function () { return chunkV5X4QWIO_cjs.isPlatformAttributeName; }
2348
2403
  });
2349
2404
  Object.defineProperty(exports, "localeNumberSeparators", {
2350
2405
  enumerable: true,
2351
- get: function () { return chunk7RGN4E22_cjs.localeNumberSeparators; }
2406
+ get: function () { return chunkV5X4QWIO_cjs.localeNumberSeparators; }
2352
2407
  });
2353
2408
  Object.defineProperty(exports, "parseAmount", {
2354
2409
  enumerable: true,
2355
- get: function () { return chunk7RGN4E22_cjs.parseAmount; }
2410
+ get: function () { return chunkV5X4QWIO_cjs.parseAmount; }
2356
2411
  });
2357
2412
  Object.defineProperty(exports, "parseCurrencyMeta", {
2358
2413
  enumerable: true,
2359
- get: function () { return chunk7RGN4E22_cjs.parseCurrencyMeta; }
2414
+ get: function () { return chunkV5X4QWIO_cjs.parseCurrencyMeta; }
2360
2415
  });
2361
2416
  Object.defineProperty(exports, "parseFileMeta", {
2362
2417
  enumerable: true,
2363
- get: function () { return chunk7RGN4E22_cjs.parseFileMeta; }
2418
+ get: function () { return chunkV5X4QWIO_cjs.parseFileMeta; }
2364
2419
  });
2365
2420
  Object.defineProperty(exports, "parseRelationMeta", {
2366
2421
  enumerable: true,
2367
- get: function () { return chunk7RGN4E22_cjs.parseRelationMeta; }
2422
+ get: function () { return chunkV5X4QWIO_cjs.parseRelationMeta; }
2368
2423
  });
2369
2424
  Object.defineProperty(exports, "platformAttributes", {
2370
2425
  enumerable: true,
2371
- get: function () { return chunk7RGN4E22_cjs.platformAttributes; }
2426
+ get: function () { return chunkV5X4QWIO_cjs.platformAttributes; }
2372
2427
  });
2373
2428
  exports.AccountClient = AccountClient;
2374
2429
  exports.ActionSchema = ActionSchema;