@proteos/sdk 0.52.0 → 0.54.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: [
@@ -1136,7 +1144,8 @@ var LayoutElementType = {
1136
1144
  Text: "text",
1137
1145
  RecordFilter: "record_filter",
1138
1146
  List: "list",
1139
- WorkflowTrigger: "workflow_trigger"
1147
+ WorkflowTrigger: "workflow_trigger",
1148
+ SchedulingPicker: "scheduling_picker"
1140
1149
  };
1141
1150
  var LayoutTabSchema = zod.z.lazy(
1142
1151
  () => zod.z.object({
@@ -1263,6 +1272,15 @@ var LayoutElementSchema = zod.z.lazy(
1263
1272
  ...commonPropsShape,
1264
1273
  variant: zod.z.enum(["heading", "subheading", "body", "caption", "callout"]),
1265
1274
  content: zod.z.string().min(1)
1275
+ }),
1276
+ zod.z.object({
1277
+ type: zod.z.literal("scheduling_picker"),
1278
+ ...commonPropsShape,
1279
+ link_key: zod.z.string().min(1),
1280
+ type_key: zod.z.string().min(1).optional(),
1281
+ host_user_id: zod.z.string().min(1).optional(),
1282
+ contact_id: zod.z.string().optional(),
1283
+ is_header_hidden: zod.z.boolean().optional()
1266
1284
  })
1267
1285
  ])
1268
1286
  );
@@ -1364,6 +1382,10 @@ var CurrencyAttributeMetaSchema = zod.z.object({
1364
1382
  default_currency_code: zod.z.string().optional(),
1365
1383
  allowed_currency_codes: zod.z.array(zod.z.string()).optional()
1366
1384
  });
1385
+ var ContactAddressAttributeMetaSchema = zod.z.object({
1386
+ kind: zod.z.enum(["email", "phone", "linkedin_public_identifier"]),
1387
+ description: zod.z.string().optional()
1388
+ });
1367
1389
  zod.z.object({
1368
1390
  description: zod.z.string().optional()
1369
1391
  });
@@ -1479,7 +1501,15 @@ function parseFileMeta(attr) {
1479
1501
  const parsed = FileAttributeMetaSchema.safeParse(attr.meta);
1480
1502
  return parsed.success ? parsed.data : {};
1481
1503
  }
1504
+ function parseContactAddressMeta(attr) {
1505
+ if (attr.type !== "contact-address") return null;
1506
+ const parsed = ContactAddressAttributeMetaSchema.safeParse(attr.meta);
1507
+ return parsed.success ? parsed.data : null;
1508
+ }
1482
1509
  var PublicAccessOperationSchema = zod.z.enum(["read", "write", "delete"]);
1510
+ var EntityContactBindingSchema = zod.z.object({
1511
+ duplicate_policy: zod.z.enum(["reject", "flag"])
1512
+ });
1483
1513
  var EntitySchema = AuditFieldsSchema.extend({
1484
1514
  slug: zod.z.string(),
1485
1515
  name: zod.z.string(),
@@ -1488,6 +1518,7 @@ var EntitySchema = AuditFieldsSchema.extend({
1488
1518
  // Default keeps older API responses (pre-`public_record_access` rollout)
1489
1519
  // parsing cleanly.
1490
1520
  public_record_access: zod.z.array(PublicAccessOperationSchema).default([]),
1521
+ contact_binding: EntityContactBindingSchema.optional(),
1491
1522
  module_slug: zod.z.string(),
1492
1523
  // Default keeps older API responses (pre-`title_template` rollout) parsing
1493
1524
  // cleanly — the field is non-optional in the TS surface but tolerant on
@@ -1813,10 +1844,12 @@ exports.BUILT_IN_CONTROLS = BUILT_IN_CONTROLS;
1813
1844
  exports.CURRENT_USER_DEFAULT = CURRENT_USER_DEFAULT;
1814
1845
  exports.ColumnSchema = ColumnSchema;
1815
1846
  exports.ComponentSchema = ComponentSchema;
1847
+ exports.ContactAddressAttributeMetaSchema = ContactAddressAttributeMetaSchema;
1816
1848
  exports.CurrencyAttributeMetaSchema = CurrencyAttributeMetaSchema;
1817
1849
  exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
1818
1850
  exports.DONE = DONE;
1819
1851
  exports.DesignReferenceSchema = DesignReferenceSchema;
1852
+ exports.EntityContactBindingSchema = EntityContactBindingSchema;
1820
1853
  exports.EntityExtensionSchema = EntityExtensionSchema;
1821
1854
  exports.EntitySchema = EntitySchema;
1822
1855
  exports.EntityWithSchemaSchema = EntityWithSchemaSchema;
@@ -1880,11 +1913,12 @@ exports.lookupCompatibleControls = lookupCompatibleControls;
1880
1913
  exports.lookupControls = lookupControls;
1881
1914
  exports.lookupPrimaryControl = lookupPrimaryControl;
1882
1915
  exports.parseAmount = parseAmount;
1916
+ exports.parseContactAddressMeta = parseContactAddressMeta;
1883
1917
  exports.parseCurrencyMeta = parseCurrencyMeta;
1884
1918
  exports.parseFileMeta = parseFileMeta;
1885
1919
  exports.parsePrincipalMeta = parsePrincipalMeta;
1886
1920
  exports.parseRelationMeta = parseRelationMeta;
1887
1921
  exports.parseUserMeta = parseUserMeta;
1888
1922
  exports.platformAttributes = platformAttributes;
1889
- //# sourceMappingURL=chunk-WEEC4REL.cjs.map
1890
- //# sourceMappingURL=chunk-WEEC4REL.cjs.map
1923
+ //# sourceMappingURL=chunk-KMNEQP3G.cjs.map
1924
+ //# sourceMappingURL=chunk-KMNEQP3G.cjs.map