@proteos/sdk 0.52.0 → 0.53.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.
@@ -859,7 +859,8 @@ var control_registry_default = {
859
859
  "knowledge-text",
860
860
  "file",
861
861
  "file-viewer",
862
- "record-filter"
862
+ "record-filter",
863
+ "contact-address"
863
864
  ],
864
865
  controls: {
865
866
  string: {
@@ -1008,6 +1009,13 @@ var control_registry_default = {
1008
1009
  "currency"
1009
1010
  ]
1010
1011
  },
1012
+ "contact-address": {
1013
+ primary: "contact-address",
1014
+ compatible: [
1015
+ "contact-address",
1016
+ "text"
1017
+ ]
1018
+ },
1011
1019
  "knowledge-text": {
1012
1020
  primary: "knowledge-text",
1013
1021
  compatible: [
@@ -1364,6 +1372,10 @@ var CurrencyAttributeMetaSchema = zod.z.object({
1364
1372
  default_currency_code: zod.z.string().optional(),
1365
1373
  allowed_currency_codes: zod.z.array(zod.z.string()).optional()
1366
1374
  });
1375
+ var ContactAddressAttributeMetaSchema = zod.z.object({
1376
+ kind: zod.z.enum(["email", "phone", "linkedin_public_identifier"]),
1377
+ description: zod.z.string().optional()
1378
+ });
1367
1379
  zod.z.object({
1368
1380
  description: zod.z.string().optional()
1369
1381
  });
@@ -1479,7 +1491,15 @@ function parseFileMeta(attr) {
1479
1491
  const parsed = FileAttributeMetaSchema.safeParse(attr.meta);
1480
1492
  return parsed.success ? parsed.data : {};
1481
1493
  }
1494
+ function parseContactAddressMeta(attr) {
1495
+ if (attr.type !== "contact-address") return null;
1496
+ const parsed = ContactAddressAttributeMetaSchema.safeParse(attr.meta);
1497
+ return parsed.success ? parsed.data : null;
1498
+ }
1482
1499
  var PublicAccessOperationSchema = zod.z.enum(["read", "write", "delete"]);
1500
+ var EntityContactBindingSchema = zod.z.object({
1501
+ duplicate_policy: zod.z.enum(["reject", "flag"])
1502
+ });
1483
1503
  var EntitySchema = AuditFieldsSchema.extend({
1484
1504
  slug: zod.z.string(),
1485
1505
  name: zod.z.string(),
@@ -1488,6 +1508,7 @@ var EntitySchema = AuditFieldsSchema.extend({
1488
1508
  // Default keeps older API responses (pre-`public_record_access` rollout)
1489
1509
  // parsing cleanly.
1490
1510
  public_record_access: zod.z.array(PublicAccessOperationSchema).default([]),
1511
+ contact_binding: EntityContactBindingSchema.optional(),
1491
1512
  module_slug: zod.z.string(),
1492
1513
  // Default keeps older API responses (pre-`title_template` rollout) parsing
1493
1514
  // cleanly — the field is non-optional in the TS surface but tolerant on
@@ -1813,10 +1834,12 @@ exports.BUILT_IN_CONTROLS = BUILT_IN_CONTROLS;
1813
1834
  exports.CURRENT_USER_DEFAULT = CURRENT_USER_DEFAULT;
1814
1835
  exports.ColumnSchema = ColumnSchema;
1815
1836
  exports.ComponentSchema = ComponentSchema;
1837
+ exports.ContactAddressAttributeMetaSchema = ContactAddressAttributeMetaSchema;
1816
1838
  exports.CurrencyAttributeMetaSchema = CurrencyAttributeMetaSchema;
1817
1839
  exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
1818
1840
  exports.DONE = DONE;
1819
1841
  exports.DesignReferenceSchema = DesignReferenceSchema;
1842
+ exports.EntityContactBindingSchema = EntityContactBindingSchema;
1820
1843
  exports.EntityExtensionSchema = EntityExtensionSchema;
1821
1844
  exports.EntitySchema = EntitySchema;
1822
1845
  exports.EntityWithSchemaSchema = EntityWithSchemaSchema;
@@ -1880,11 +1903,12 @@ exports.lookupCompatibleControls = lookupCompatibleControls;
1880
1903
  exports.lookupControls = lookupControls;
1881
1904
  exports.lookupPrimaryControl = lookupPrimaryControl;
1882
1905
  exports.parseAmount = parseAmount;
1906
+ exports.parseContactAddressMeta = parseContactAddressMeta;
1883
1907
  exports.parseCurrencyMeta = parseCurrencyMeta;
1884
1908
  exports.parseFileMeta = parseFileMeta;
1885
1909
  exports.parsePrincipalMeta = parsePrincipalMeta;
1886
1910
  exports.parseRelationMeta = parseRelationMeta;
1887
1911
  exports.parseUserMeta = parseUserMeta;
1888
1912
  exports.platformAttributes = platformAttributes;
1889
- //# sourceMappingURL=chunk-WEEC4REL.cjs.map
1890
- //# sourceMappingURL=chunk-WEEC4REL.cjs.map
1913
+ //# sourceMappingURL=chunk-SWCPI6SL.cjs.map
1914
+ //# sourceMappingURL=chunk-SWCPI6SL.cjs.map