twenty-sdk 2.56.0 → 2.57.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.
@@ -3765,28 +3765,28 @@ var E = /*@__PURE__*/ S("ZodType", (e, t) => (Ds(), C.init(e, t), e.def = t, e.t
3765
3765
  return e.add(this, t), this;
3766
3766
  },
3767
3767
  refine(e, t) {
3768
- return this.check(tl(e, t));
3768
+ return this.check(el(e, t));
3769
3769
  },
3770
3770
  superRefine(e, t) {
3771
- return this.check(nl(e, t));
3771
+ return this.check(tl(e, t));
3772
3772
  },
3773
3773
  overwrite(e) {
3774
3774
  return this.check(/* @__PURE__ */ Ya(e));
3775
3775
  },
3776
3776
  optional() {
3777
- return Pc(this);
3777
+ return Nc(this);
3778
3778
  },
3779
3779
  exactOptional() {
3780
- return Ic(this);
3780
+ return Fc(this);
3781
3781
  },
3782
3782
  nullable() {
3783
- return Rc(this);
3783
+ return Lc(this);
3784
3784
  },
3785
3785
  nullish() {
3786
- return Pc(Rc(this));
3786
+ return Nc(Lc(this));
3787
3787
  },
3788
3788
  nonoptional(e) {
3789
- return Wc(this, e);
3789
+ return Uc(this, e);
3790
3790
  },
3791
3791
  array() {
3792
3792
  return A(this);
@@ -3798,22 +3798,22 @@ var E = /*@__PURE__*/ S("ZodType", (e, t) => (Ds(), C.init(e, t), e.def = t, e.t
3798
3798
  return Cc(this, e);
3799
3799
  },
3800
3800
  transform(e) {
3801
- return Jc(this, Mc(e));
3801
+ return qc(this, jc(e));
3802
3802
  },
3803
3803
  default(e) {
3804
- return Bc(this, e);
3804
+ return zc(this, e);
3805
3805
  },
3806
3806
  prefault(e) {
3807
- return Hc(this, e);
3807
+ return Vc(this, e);
3808
3808
  },
3809
3809
  catch(e) {
3810
- return Kc(this, e);
3810
+ return Gc(this, e);
3811
3811
  },
3812
3812
  pipe(e) {
3813
- return Jc(this, e);
3813
+ return qc(this, e);
3814
3814
  },
3815
3815
  readonly() {
3816
- return Zc(this);
3816
+ return Xc(this);
3817
3817
  },
3818
3818
  describe(e) {
3819
3819
  let t = this.clone();
@@ -4223,7 +4223,7 @@ var gc = /*@__PURE__*/ S("ZodObject", (e, t) => {
4223
4223
  Os(), Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => qo(e, t, n, r), nt(e, "shape", (e) => e._zod.def.shape, !1);
4224
4224
  }, {
4225
4225
  keyof() {
4226
- return kc(Object.keys(this._zod.def.shape));
4226
+ return N(Object.keys(this._zod.def.shape));
4227
4227
  },
4228
4228
  catchall(e) {
4229
4229
  return this.clone(fe(this._zod.def, { catchall: e }));
@@ -4256,13 +4256,13 @@ var gc = /*@__PURE__*/ S("ZodObject", (e, t) => {
4256
4256
  return ke(this, e);
4257
4257
  },
4258
4258
  partial(...e) {
4259
- return Pe(Nc, this, e[0]);
4259
+ return Pe(Mc, this, e[0]);
4260
4260
  },
4261
4261
  exactPartial(...e) {
4262
- return Pe(Fc, this, e[0], "exactPartial");
4262
+ return Pe(Pc, this, e[0], "exactPartial");
4263
4263
  },
4264
4264
  required(...e) {
4265
- return Fe(Uc, this, e[0]);
4265
+ return Fe(Hc, this, e[0]);
4266
4266
  }
4267
4267
  });
4268
4268
  function j(e, t) {
@@ -4333,7 +4333,7 @@ var wc = /*@__PURE__*/ S("ZodTuple", (e, t) => {
4333
4333
  if (e.checks?.length) throw Error(".partial() cannot be used on tuple schemas containing refinements");
4334
4334
  return this.clone({
4335
4335
  ...e,
4336
- items: e.items.map((e) => new Nc({
4336
+ items: e.items.map((e) => new Mc({
4337
4337
  type: "optional",
4338
4338
  innerType: e
4339
4339
  }))
@@ -4390,27 +4390,27 @@ var Oc = /*@__PURE__*/ S("ZodEnum", (e, t) => {
4390
4390
  });
4391
4391
  };
4392
4392
  });
4393
- function kc(e, t) {
4393
+ function N(e, t) {
4394
4394
  return new Oc({
4395
4395
  type: "enum",
4396
4396
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
4397
4397
  ...y(t)
4398
4398
  });
4399
4399
  }
4400
- var Ac = /*@__PURE__*/ S("ZodLiteral", (e, t) => {
4400
+ var kc = /*@__PURE__*/ S("ZodLiteral", (e, t) => {
4401
4401
  li.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ho(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4402
4402
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4403
4403
  return t.values[0];
4404
4404
  } });
4405
4405
  });
4406
- function N(e, t) {
4407
- return new Ac({
4406
+ function P(e, t) {
4407
+ return new kc({
4408
4408
  type: "literal",
4409
4409
  values: Array.isArray(e) ? e : [e],
4410
4410
  ...y(t)
4411
4411
  });
4412
4412
  }
4413
- var jc = /*@__PURE__*/ S("ZodTransform", (e, t) => {
4413
+ var Ac = /*@__PURE__*/ S("ZodTransform", (e, t) => {
4414
4414
  Os(), ui.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wo(e, t, n, r), e._zod.parse = (n, r) => {
4415
4415
  if (r.direction === "backward") throw new dt(e.constructor.name);
4416
4416
  n.addIssue = (r) => {
@@ -4424,44 +4424,44 @@ var jc = /*@__PURE__*/ S("ZodTransform", (e, t) => {
4424
4424
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
4425
4425
  };
4426
4426
  });
4427
- function Mc(e) {
4428
- return new jc({
4427
+ function jc(e) {
4428
+ return new Ac({
4429
4429
  type: "transform",
4430
4430
  transform: e
4431
4431
  });
4432
4432
  }
4433
- var Nc = /*@__PURE__*/ S("ZodOptional", (e, t) => {
4433
+ var Mc = /*@__PURE__*/ S("ZodOptional", (e, t) => {
4434
4434
  fi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => us(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4435
4435
  });
4436
- function Pc(e) {
4437
- return new Nc({
4436
+ function Nc(e) {
4437
+ return new Mc({
4438
4438
  type: "optional",
4439
4439
  innerType: e
4440
4440
  });
4441
4441
  }
4442
- var Fc = /*@__PURE__*/ S("ZodExactOptional", (e, t) => {
4442
+ var Pc = /*@__PURE__*/ S("ZodExactOptional", (e, t) => {
4443
4443
  pi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => us(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4444
4444
  });
4445
- function Ic(e) {
4446
- return new Fc({
4445
+ function Fc(e) {
4446
+ return new Pc({
4447
4447
  type: "optional",
4448
4448
  innerType: e
4449
4449
  });
4450
4450
  }
4451
- var Lc = /*@__PURE__*/ S("ZodNullable", (e, t) => {
4451
+ var Ic = /*@__PURE__*/ S("ZodNullable", (e, t) => {
4452
4452
  mi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ts(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4453
4453
  });
4454
- function Rc(e) {
4455
- return new Lc({
4454
+ function Lc(e) {
4455
+ return new Ic({
4456
4456
  type: "nullable",
4457
4457
  innerType: e
4458
4458
  });
4459
4459
  }
4460
- var zc = /*@__PURE__*/ S("ZodDefault", (e, t) => {
4460
+ var Rc = /*@__PURE__*/ S("ZodDefault", (e, t) => {
4461
4461
  hi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => as(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4462
4462
  });
4463
- function Bc(e, t) {
4464
- return new zc({
4463
+ function zc(e, t) {
4464
+ return new Rc({
4465
4465
  type: "default",
4466
4466
  innerType: e,
4467
4467
  get defaultValue() {
@@ -4469,11 +4469,11 @@ function Bc(e, t) {
4469
4469
  }
4470
4470
  });
4471
4471
  }
4472
- var Vc = /*@__PURE__*/ S("ZodPrefault", (e, t) => {
4472
+ var Bc = /*@__PURE__*/ S("ZodPrefault", (e, t) => {
4473
4473
  _i.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => os(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4474
4474
  });
4475
- function Hc(e, t) {
4476
- return new Vc({
4475
+ function Vc(e, t) {
4476
+ return new Bc({
4477
4477
  type: "prefault",
4478
4478
  innerType: e,
4479
4479
  get defaultValue() {
@@ -4481,75 +4481,75 @@ function Hc(e, t) {
4481
4481
  }
4482
4482
  });
4483
4483
  }
4484
- var Uc = /*@__PURE__*/ S("ZodNonOptional", (e, t) => {
4484
+ var Hc = /*@__PURE__*/ S("ZodNonOptional", (e, t) => {
4485
4485
  vi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ns(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4486
4486
  });
4487
- function Wc(e, t) {
4488
- return new Uc({
4487
+ function Uc(e, t) {
4488
+ return new Hc({
4489
4489
  type: "nonoptional",
4490
4490
  innerType: e,
4491
4491
  ...y(t)
4492
4492
  });
4493
4493
  }
4494
- var Gc = /*@__PURE__*/ S("ZodCatch", (e, t) => {
4494
+ var Wc = /*@__PURE__*/ S("ZodCatch", (e, t) => {
4495
4495
  xi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ss(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4496
4496
  });
4497
- function Kc(e, t) {
4498
- return new Gc({
4497
+ function Gc(e, t) {
4498
+ return new Wc({
4499
4499
  type: "catch",
4500
4500
  innerType: e,
4501
4501
  catchValue: typeof t == "function" ? t : it(t)
4502
4502
  });
4503
4503
  }
4504
- var qc = /*@__PURE__*/ S("ZodPipe", (e, t) => {
4504
+ var Kc = /*@__PURE__*/ S("ZodPipe", (e, t) => {
4505
4505
  Si.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => cs(e, t, n, r), e.in = t.in, e.out = t.out;
4506
4506
  });
4507
- function Jc(e, t) {
4508
- return new qc({
4507
+ function qc(e, t) {
4508
+ return new Kc({
4509
4509
  type: "pipe",
4510
4510
  in: e,
4511
4511
  out: t
4512
4512
  });
4513
4513
  }
4514
- var Yc = /*@__PURE__*/ S("ZodPreprocess", (e, t) => {
4515
- qc.init(e, t), wi.init(e, t);
4516
- }), Xc = /*@__PURE__*/ S("ZodReadonly", (e, t) => {
4514
+ var Jc = /*@__PURE__*/ S("ZodPreprocess", (e, t) => {
4515
+ Kc.init(e, t), wi.init(e, t);
4516
+ }), Yc = /*@__PURE__*/ S("ZodReadonly", (e, t) => {
4517
4517
  Ti.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ls(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4518
4518
  });
4519
- function Zc(e) {
4520
- return new Xc({
4519
+ function Xc(e) {
4520
+ return new Yc({
4521
4521
  type: "readonly",
4522
4522
  innerType: e
4523
4523
  });
4524
4524
  }
4525
- var Qc = /*@__PURE__*/ S("ZodLazy", (e, t) => {
4525
+ var Zc = /*@__PURE__*/ S("ZodLazy", (e, t) => {
4526
4526
  Di.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ds(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4527
4527
  });
4528
- function $c(e) {
4529
- return new Qc({
4528
+ function Qc(e) {
4529
+ return new Zc({
4530
4530
  type: "lazy",
4531
4531
  getter: e
4532
4532
  });
4533
4533
  }
4534
- var el = /*@__PURE__*/ S("ZodCustom", (e, t) => {
4534
+ var $c = /*@__PURE__*/ S("ZodCustom", (e, t) => {
4535
4535
  Oi.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uo(e, t, n, r);
4536
4536
  });
4537
- function tl(e, t = {}) {
4538
- return /* @__PURE__ */ no(el, e, t);
4537
+ function el(e, t = {}) {
4538
+ return /* @__PURE__ */ no($c, e, t);
4539
4539
  }
4540
- function nl(e, t) {
4540
+ function tl(e, t) {
4541
4541
  return /* @__PURE__ */ ro(e, t);
4542
4542
  }
4543
- function rl(e, t) {
4544
- return new Yc({
4543
+ function nl(e, t) {
4544
+ return new Jc({
4545
4545
  type: "pipe",
4546
- in: Mc(e),
4546
+ in: jc(e),
4547
4547
  out: t
4548
4548
  });
4549
4549
  }
4550
4550
  //#endregion
4551
4551
  //#region ../../node_modules/zod/v4/classic/compat.js
4552
- var il = {
4552
+ var rl = {
4553
4553
  invalid_type: "invalid_type",
4554
4554
  too_big: "too_big",
4555
4555
  too_small: "too_small",
@@ -4561,141 +4561,141 @@ var il = {
4561
4561
  invalid_element: "invalid_element",
4562
4562
  invalid_value: "invalid_value",
4563
4563
  custom: "custom"
4564
- }, al;
4565
- al ||= {};
4564
+ }, il;
4565
+ il ||= {};
4566
4566
  //#endregion
4567
4567
  //#region ../../node_modules/zod/v4/classic/coerce.js
4568
- function ol(e) {
4568
+ function al(e) {
4569
4569
  return /* @__PURE__ */ Oa(rc, e);
4570
4570
  }
4571
4571
  //#endregion
4572
4572
  //#region ../twenty-shared/node_modules/class-validator/esm5/decorator/typechecker/IsBoolean.js
4573
- function sl(e) {
4573
+ function ol(e) {
4574
4574
  return e instanceof Boolean || typeof e == "boolean";
4575
4575
  }
4576
4576
  //#endregion
4577
4577
  //#region ../twenty-shared/node_modules/class-validator/esm5/decorator/typechecker/IsString.js
4578
- function cl(e) {
4578
+ function sl(e) {
4579
4579
  return e instanceof String || typeof e == "string";
4580
4580
  }
4581
4581
  //#endregion
4582
4582
  //#region ../twenty-shared/node_modules/class-validator/esm5/decorator/typechecker/IsObject.js
4583
- function ll(e) {
4583
+ function cl(e) {
4584
4584
  return e != null && (typeof e == "object" || typeof e == "function") && !Array.isArray(e);
4585
4585
  }
4586
4586
  //#endregion
4587
- //#region ../twenty-shared/dist/types-BUrPesNZ.mjs
4588
- var P = /* @__PURE__ */ function(e) {
4587
+ //#region ../twenty-shared/dist/types-Dzb0qZzI.mjs
4588
+ var F = /* @__PURE__ */ function(e) {
4589
4589
  return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
4590
- }({}), ul = /* @__PURE__ */ function(e) {
4590
+ }({}), ll = /* @__PURE__ */ function(e) {
4591
4591
  return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e.RECORD_FORM = "RECORD_FORM", e;
4592
- }({}), dl = /* @__PURE__ */ function(e) {
4592
+ }({}), ul = /* @__PURE__ */ function(e) {
4593
4593
  return e.MIN = "MIN", e.MAX = "MAX", e.AVG = "AVG", e.SUM = "SUM", e.COUNT = "COUNT", e.COUNT_UNIQUE_VALUES = "COUNT_UNIQUE_VALUES", e.COUNT_EMPTY = "COUNT_EMPTY", e.COUNT_NOT_EMPTY = "COUNT_NOT_EMPTY", e.COUNT_TRUE = "COUNT_TRUE", e.COUNT_FALSE = "COUNT_FALSE", e.PERCENTAGE_EMPTY = "PERCENTAGE_EMPTY", e.PERCENTAGE_NOT_EMPTY = "PERCENTAGE_NOT_EMPTY", e;
4594
- }({}), fl = /* @__PURE__ */ function(e) {
4594
+ }({}), dl = /* @__PURE__ */ function(e) {
4595
4595
  return e.GLOBAL = "GLOBAL", e.GLOBAL_OBJECT_CONTEXT = "GLOBAL_OBJECT_CONTEXT", e.RECORD_SELECTION = "RECORD_SELECTION", e.FALLBACK = "FALLBACK", e;
4596
- }({}), pl = /* @__PURE__ */ function(e) {
4596
+ }({}), fl = /* @__PURE__ */ function(e) {
4597
4597
  return e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e;
4598
4598
  }({});
4599
- P.ACTOR, P.SELECT, Object.keys(pl).map((e, t) => ({
4599
+ F.ACTOR, F.SELECT, Object.keys(fl).map((e, t) => ({
4600
4600
  id: l(),
4601
- label: `${pl[e].toLowerCase()}`,
4601
+ label: `${fl[e].toLowerCase()}`,
4602
4602
  value: e,
4603
4603
  position: t
4604
- })), P.UUID, P.TEXT, P.RAW_JSON, P.ADDRESS, P.TEXT, P.TEXT, P.TEXT, P.TEXT, P.TEXT, P.TEXT, P.NUMERIC, P.NUMERIC, P.CURRENCY, P.NUMERIC, P.TEXT, P.EMAILS, P.TEXT, P.RAW_JSON, P.FULL_NAME, P.TEXT, P.TEXT, P.LINKS, P.TEXT, P.TEXT, P.RAW_JSON, P.PHONES, P.TEXT, P.TEXT, P.TEXT, P.RAW_JSON, P.RICH_TEXT, P.TEXT, P.TEXT, P.TEXT, j({
4604
+ })), F.UUID, F.TEXT, F.RAW_JSON, F.ADDRESS, F.TEXT, F.TEXT, F.TEXT, F.TEXT, F.TEXT, F.TEXT, F.NUMERIC, F.NUMERIC, F.CURRENCY, F.NUMERIC, F.TEXT, F.EMAILS, F.TEXT, F.RAW_JSON, F.FULL_NAME, F.TEXT, F.TEXT, F.LINKS, F.TEXT, F.TEXT, F.RAW_JSON, F.PHONES, F.TEXT, F.TEXT, F.TEXT, F.RAW_JSON, F.RICH_TEXT, F.TEXT, F.TEXT, F.TEXT, j({
4605
4605
  tiptap: D().nullable().optional(),
4606
4606
  markdown: D().nullable().optional(),
4607
4607
  blocknote: D().nullable().optional()
4608
- }), P.LINKS, P.CURRENCY, P.FULL_NAME, P.ADDRESS, P.ACTOR, P.EMAILS, P.PHONES, P.RICH_TEXT;
4609
- var ml = /* @__PURE__ */ function(e) {
4608
+ }), F.LINKS, F.CURRENCY, F.FULL_NAME, F.ADDRESS, F.ACTOR, F.EMAILS, F.PHONES, F.RICH_TEXT;
4609
+ var pl = /* @__PURE__ */ function(e) {
4610
4610
  return e.GOOGLE = "google", e.MICROSOFT = "microsoft", e.IMAP_SMTP_CALDAV = "imap_smtp_caldav", e.OIDC = "oidc", e.SAML = "saml", e.EMAIL_GROUP = "email_group", e.APP = "app", e;
4611
- }({}), hl = {
4611
+ }({}), ml = {
4612
4612
  UUID: "uuid",
4613
4613
  NOW: "now"
4614
4614
  };
4615
- P.RELATION, P.MORPH_RELATION, P.FILES, P.TS_VECTOR;
4616
- var gl = /* @__PURE__ */ function(e) {
4615
+ F.RELATION, F.MORPH_RELATION, F.FILES, F.TS_VECTOR;
4616
+ var hl = /* @__PURE__ */ function(e) {
4617
4617
  return e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e;
4618
- }({}), _l = /* @__PURE__ */ function(e) {
4618
+ }({}), gl = /* @__PURE__ */ function(e) {
4619
4619
  return e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e;
4620
- }({}), vl = /* @__PURE__ */ function(e) {
4620
+ }({}), _l = /* @__PURE__ */ function(e) {
4621
4621
  return e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e;
4622
- }({}), yl = /* @__PURE__ */ function(e) {
4622
+ }({}), vl = /* @__PURE__ */ function(e) {
4623
4623
  return e.MONDAY = "MONDAY", e.SUNDAY = "SUNDAY", e.SATURDAY = "SATURDAY", e;
4624
- }({}), bl = /* @__PURE__ */ function(e) {
4624
+ }({}), yl = /* @__PURE__ */ function(e) {
4625
4625
  return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e;
4626
- }({}), xl = /* @__PURE__ */ function(e) {
4626
+ }({}), bl = /* @__PURE__ */ function(e) {
4627
4627
  return e.BTREE = "BTREE", e.GIN = "GIN", e;
4628
- }({}), Sl = /* @__PURE__ */ function(e) {
4628
+ }({}), xl = /* @__PURE__ */ function(e) {
4629
4629
  return e.EMAIL = "EMAIL", e.SMS = "SMS", e.EMAIL_GROUP = "EMAIL_GROUP", e.APP = "APP", e;
4630
- }({}), Cl = /* @__PURE__ */ function(e) {
4630
+ }({}), Sl = /* @__PURE__ */ function(e) {
4631
4631
  return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e.AGENT_CHAT_CHANNEL = "AGENT_CHAT_CHANNEL", e.NATIVE_PAGE = "NATIVE_PAGE", e;
4632
- }({}), wl = /* @__PURE__ */ function(e) {
4632
+ }({}), Cl = /* @__PURE__ */ function(e) {
4633
4633
  return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
4634
- }({}), Tl = /* @__PURE__ */ function(e) {
4634
+ }({}), wl = /* @__PURE__ */ function(e) {
4635
4635
  return e.DAY = "DAY", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.YEAR = "YEAR", e.WEEK = "WEEK", e.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", e.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", e.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", e.NONE = "NONE", e;
4636
- }({}), El = /* @__PURE__ */ function(e) {
4636
+ }({}), Tl = /* @__PURE__ */ function(e) {
4637
4637
  return e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e;
4638
- }({}), Dl = /* @__PURE__ */ function(e) {
4638
+ }({}), El = /* @__PURE__ */ function(e) {
4639
4639
  return e.FIT_CONTENT = "FIT_CONTENT", e.TAB_VIEWPORT = "TAB_VIEWPORT", e;
4640
- }({}), Ol = /* @__PURE__ */ function(e) {
4640
+ }({}), Dl = /* @__PURE__ */ function(e) {
4641
4641
  return e.VIEW = "VIEW", e.IFRAME = "IFRAME", e.FIELD = "FIELD", e.FIELDS = "FIELDS", e.GRAPH = "GRAPH", e.STANDALONE_RICH_TEXT = "STANDALONE_RICH_TEXT", e.TIMELINE = "TIMELINE", e.TASKS = "TASKS", e.NOTES = "NOTES", e.FILES = "FILES", e.EMAILS = "EMAILS", e.CALENDAR = "CALENDAR", e.FIELD_RICH_TEXT = "FIELD_RICH_TEXT", e.WORKFLOW = "WORKFLOW", e.WORKFLOW_VERSION = "WORKFLOW_VERSION", e.WORKFLOW_RUN = "WORKFLOW_RUN", e.FRONT_COMPONENT = "FRONT_COMPONENT", e.RECORD_TABLE = "RECORD_TABLE", e.EMAIL_THREAD = "EMAIL_THREAD", e.CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY", e.CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT", e.MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY", e.MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS", e.FORM_FIELD = "FORM_FIELD", e.CHAT_THREADS = "CHAT_THREADS", e.CHAT = "CHAT", e;
4642
- }({}), kl = /* @__PURE__ */ function(e) {
4642
+ }({}), Ol = /* @__PURE__ */ function(e) {
4643
4643
  return e.AND = "AND", e.OR = "OR", e;
4644
- }({}), Al = /* @__PURE__ */ function(e) {
4644
+ }({}), I = /* @__PURE__ */ function(e) {
4645
+ return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
4646
+ }({}), kl = /* @__PURE__ */ function(e) {
4645
4647
  return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
4646
- }({}), jl = /* @__PURE__ */ function(e) {
4648
+ }({}), Al = /* @__PURE__ */ function(e) {
4647
4649
  return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
4648
- }({}), Ml = /* @__PURE__ */ function(e) {
4650
+ }({}), jl = /* @__PURE__ */ function(e) {
4649
4651
  return e.AND = "AND", e.OR = "OR", e;
4650
- }({}), Nl = /* @__PURE__ */ function(e) {
4652
+ }({}), Ml = /* @__PURE__ */ function(e) {
4651
4653
  return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
4652
- }({}), Pl = /* @__PURE__ */ function(e) {
4654
+ }({}), Nl = /* @__PURE__ */ function(e) {
4653
4655
  return e.AND = "AND", e.OR = "OR", e;
4654
- }({}), Fl = /* @__PURE__ */ function(e) {
4656
+ }({}), Pl = /* @__PURE__ */ function(e) {
4655
4657
  return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
4656
- }({}), Il = /* @__PURE__ */ function(e) {
4658
+ }({}), Fl = /* @__PURE__ */ function(e) {
4657
4659
  return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
4658
- }({}), F = /* @__PURE__ */ function(e) {
4659
- return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
4660
- }({}), Ll = /* @__PURE__ */ function(e) {
4660
+ }({}), Il = /* @__PURE__ */ function(e) {
4661
4661
  return e.Is = "is", e.IsNotNull = "isNotNull", e.IsNot = "isNot", e.LessThanOrEqual = "lessThan", e.GreaterThanOrEqual = "greaterThan", e.IsBefore = "isBefore", e.IsAfter = "isAfter", e.Contains = "contains", e.DoesNotContain = "doesNotContain", e.IsEmpty = "isEmpty", e.IsNotEmpty = "isNotEmpty", e.IsRelative = "isRelative", e.IsInPast = "isInPast", e.IsInFuture = "isInFuture", e.IsToday = "isToday", e;
4662
- }({}), Rl = /* @__PURE__ */ function(e) {
4662
+ }({}), Ll = /* @__PURE__ */ function(e) {
4663
4663
  return e.INDEX = "INDEX", e;
4664
- }({}), zl = /* @__PURE__ */ function(e) {
4664
+ }({}), Rl = /* @__PURE__ */ function(e) {
4665
4665
  return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
4666
- }({}), Bl = /* @__PURE__ */ function(e) {
4666
+ }({}), zl = /* @__PURE__ */ function(e) {
4667
4667
  return e.ASC = "ASC", e.DESC = "DESC", e;
4668
- }({}), I = /* @__PURE__ */ function(e) {
4668
+ }({}), L = /* @__PURE__ */ function(e) {
4669
4669
  return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
4670
- }({}), Vl = /* @__PURE__ */ function(e) {
4670
+ }({}), Bl = /* @__PURE__ */ function(e) {
4671
4671
  return e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e;
4672
4672
  }({});
4673
- P.CURRENCY, P.EMAILS, P.LINKS, P.PHONES, P.FULL_NAME, P.ADDRESS, P.ACTOR, P.RICH_TEXT;
4674
- var Hl = {
4675
- [P.CURRENCY]: {
4673
+ F.CURRENCY, F.EMAILS, F.LINKS, F.PHONES, F.FULL_NAME, F.ADDRESS, F.ACTOR, F.RICH_TEXT;
4674
+ var Vl = {
4675
+ [F.CURRENCY]: {
4676
4676
  amountMicros: "amountMicros",
4677
4677
  currencyCode: "currencyCode"
4678
4678
  },
4679
- [P.EMAILS]: {
4679
+ [F.EMAILS]: {
4680
4680
  primaryEmail: "primaryEmail",
4681
4681
  additionalEmails: "additionalEmails"
4682
4682
  },
4683
- [P.LINKS]: {
4683
+ [F.LINKS]: {
4684
4684
  primaryLinkUrl: "primaryLinkUrl",
4685
4685
  primaryLinkLabel: "primaryLinkLabel",
4686
4686
  secondaryLinks: "secondaryLinks"
4687
4687
  },
4688
- [P.PHONES]: {
4688
+ [F.PHONES]: {
4689
4689
  primaryPhoneCallingCode: "primaryPhoneCallingCode",
4690
4690
  primaryPhoneCountryCode: "primaryPhoneCountryCode",
4691
4691
  primaryPhoneNumber: "primaryPhoneNumber",
4692
4692
  additionalPhones: "additionalPhones"
4693
4693
  },
4694
- [P.FULL_NAME]: {
4694
+ [F.FULL_NAME]: {
4695
4695
  firstName: "firstName",
4696
4696
  lastName: "lastName"
4697
4697
  },
4698
- [P.ADDRESS]: {
4698
+ [F.ADDRESS]: {
4699
4699
  addressStreet1: "addressStreet1",
4700
4700
  addressStreet2: "addressStreet2",
4701
4701
  addressCity: "addressCity",
@@ -4705,23 +4705,22 @@ var Hl = {
4705
4705
  addressLat: "addressLat",
4706
4706
  addressLng: "addressLng"
4707
4707
  },
4708
- [P.ACTOR]: {
4708
+ [F.ACTOR]: {
4709
4709
  source: "source",
4710
4710
  name: "name",
4711
4711
  workspaceMemberId: "workspaceMemberId",
4712
4712
  context: "context"
4713
4713
  },
4714
- [P.RICH_TEXT]: {
4714
+ [F.RICH_TEXT]: {
4715
4715
  blocknote: "blocknote",
4716
4716
  markdown: "markdown",
4717
4717
  tiptap: "tiptap"
4718
4718
  }
4719
- }, Ul = {
4719
+ }, Hl = {
4720
4720
  AED: { label: "UAE dirham" },
4721
4721
  AFN: { label: "Afghan afghani" },
4722
4722
  ALL: { label: "Albanian lek" },
4723
4723
  AMD: { label: "Armenian dram" },
4724
- ANG: { label: "Netherlands Antillean guilder" },
4725
4724
  AOA: { label: "Angolan kwanza" },
4726
4725
  ARS: { label: "Argentine peso" },
4727
4726
  AUD: { label: "Australian dollar" },
@@ -5079,6 +5078,7 @@ var Hl = {
5079
5078
  USER_GUIDE_DATA_MODEL_CAPABILITIES_FIELDS: "/user-guide/data-model/capabilities/fields",
5080
5079
  USER_GUIDE_DATA_MODEL_CAPABILITIES_OBJECTS: "/user-guide/data-model/capabilities/objects",
5081
5080
  USER_GUIDE_DATA_MODEL_CAPABILITIES_RELATION_FIELDS: "/user-guide/data-model/capabilities/relation-fields",
5081
+ USER_GUIDE_DATA_MODEL_CAPABILITIES_VALIDATION_RULES: "/user-guide/data-model/capabilities/validation-rules",
5082
5082
  USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_FIELDS: "/user-guide/data-model/how-tos/create-custom-fields",
5083
5083
  USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_OBJECTS: "/user-guide/data-model/how-tos/create-custom-objects",
5084
5084
  USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_MANY_TO_MANY_RELATIONS: "/user-guide/data-model/how-tos/create-many-to-many-relations",
@@ -5150,10 +5150,10 @@ var Hl = {
5150
5150
  USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING: "/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting",
5151
5151
  USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ: "/user-guide/workflows/how-tos/need-more-help/workflows-faq",
5152
5152
  USER_GUIDE_WORKFLOWS_OVERVIEW: "/user-guide/workflows/overview"
5153
- }).GETTING_STARTED_INTRODUCTION, ml.GOOGLE, ml.MICROSOFT, ml.IMAP_SMTP_CALDAV, ml.GOOGLE, ml.MICROSOFT, ml.IMAP_SMTP_CALDAV, ml.EMAIL_GROUP, P.TS_VECTOR, P.RAW_JSON, P.FILES, P.POSITION, P.ACTOR, P.ADDRESS, P.ARRAY, P.BOOLEAN, P.CURRENCY, P.DATE, P.DATE_TIME, P.EMAILS, P.FILES, P.FULL_NAME, P.LINKS, P.MORPH_RELATION, P.MULTI_SELECT, P.NUMBER, P.NUMERIC, P.PHONES, P.POSITION, P.RATING, P.RAW_JSON, P.RELATION, P.RICH_TEXT, P.SELECT, P.TEXT, P.TS_VECTOR, P.UUID, P.TS_VECTOR, P.ARRAY, P.MULTI_SELECT, P.RAW_JSON, Tl.DAY, Tl.WEEK, Tl.MONTH, Tl.QUARTER, Tl.YEAR, P.FILES, P.LINKS, P.TEXT, P.FULL_NAME, P.UUID;
5154
- var Wl = /* @__PURE__ */ function(e) {
5153
+ }).GETTING_STARTED_INTRODUCTION, pl.GOOGLE, pl.MICROSOFT, pl.IMAP_SMTP_CALDAV, pl.GOOGLE, pl.MICROSOFT, pl.IMAP_SMTP_CALDAV, pl.EMAIL_GROUP, F.TS_VECTOR, F.RAW_JSON, F.FILES, F.POSITION, F.ACTOR, F.ADDRESS, F.ARRAY, F.BOOLEAN, F.CURRENCY, F.DATE, F.DATE_TIME, F.EMAILS, F.FILES, F.FULL_NAME, F.LINKS, F.MORPH_RELATION, F.MULTI_SELECT, F.NUMBER, F.NUMERIC, F.PHONES, F.POSITION, F.RATING, F.RAW_JSON, F.RELATION, F.RICH_TEXT, F.SELECT, F.TEXT, F.TS_VECTOR, F.UUID, F.TS_VECTOR, F.ARRAY, F.MULTI_SELECT, F.RAW_JSON, wl.DAY, wl.WEEK, wl.MONTH, wl.QUARTER, wl.YEAR, F.FILES, F.LINKS, F.TEXT, F.FULL_NAME, F.UUID;
5154
+ var Ul = /* @__PURE__ */ function(e) {
5155
5155
  return e.API_KEYS_AND_WEBHOOKS = "API_KEYS_AND_WEBHOOKS", e.WORKSPACE = "WORKSPACE", e.WORKSPACE_MEMBERS = "WORKSPACE_MEMBERS", e.ROLES = "ROLES", e.DATA_MODEL = "DATA_MODEL", e.SECURITY = "SECURITY", e.WORKFLOWS = "WORKFLOWS", e.IMPERSONATE = "IMPERSONATE", e.SSO_BYPASS = "SSO_BYPASS", e.APPLICATIONS = "APPLICATIONS", e.MARKETPLACE_APPS = "MARKETPLACE_APPS", e.LAYOUTS = "LAYOUTS", e.BILLING = "BILLING", e.AI_SETTINGS = "AI_SETTINGS", e.AI = "AI", e.VIEWS = "VIEWS", e.UPLOAD_FILE = "UPLOAD_FILE", e.DOWNLOAD_FILE = "DOWNLOAD_FILE", e.SEND_EMAIL_TOOL = "SEND_EMAIL_TOOL", e.CREATE_CALENDAR_EVENT_TOOL = "CREATE_CALENDAR_EVENT_TOOL", e.HTTP_REQUEST_TOOL = "HTTP_REQUEST_TOOL", e.CODE_INTERPRETER_TOOL = "CODE_INTERPRETER_TOOL", e.IMPORT_CSV = "IMPORT_CSV", e.EXPORT_CSV = "EXPORT_CSV", e.CONNECTED_ACCOUNTS = "CONNECTED_ACCOUNTS", e.PROFILE_INFORMATION = "PROFILE_INFORMATION", e;
5156
- }({}), Gl = {
5156
+ }({}), Wl = {
5157
5157
  API_KEYS_AND_WEBHOOKS: "beb99803-9a0e-588d-9c4b-3dd14d9cdf21",
5158
5158
  WORKSPACE: "86a58859-a539-5fa8-ba18-a6aaddc811b6",
5159
5159
  WORKSPACE_MEMBERS: "ec342166-2df7-53e7-aa9b-64992d6cb35f",
@@ -5181,8 +5181,8 @@ var Wl = /* @__PURE__ */ function(e) {
5181
5181
  CONNECTED_ACCOUNTS: "e5f63b2d-5369-5df6-8f32-a8bd9e79e653",
5182
5182
  PROFILE_INFORMATION: "7c13f23f-78d8-5e7d-8963-a7c8772fb4e8"
5183
5183
  };
5184
- new Map(Object.values(Wl).map((e) => [Gl[e], e])), new Map(Object.entries(Gl)), Sl.EMAIL;
5185
- var Kl = [
5184
+ new Map(Object.values(Ul).map((e) => [Wl[e], e])), new Map(Object.entries(Wl)), xl.EMAIL;
5185
+ var Gl = [
5186
5186
  "red",
5187
5187
  "ruby",
5188
5188
  "crimson",
@@ -5208,25 +5208,25 @@ var Kl = [
5208
5208
  "gold",
5209
5209
  "brown",
5210
5210
  "gray"
5211
- ], ql = [
5212
- Wl.AI,
5213
- Wl.VIEWS,
5214
- Wl.UPLOAD_FILE,
5215
- Wl.DOWNLOAD_FILE,
5216
- Wl.SEND_EMAIL_TOOL,
5217
- Wl.CREATE_CALENDAR_EVENT_TOOL,
5218
- Wl.HTTP_REQUEST_TOOL,
5219
- Wl.IMPORT_CSV,
5220
- Wl.EXPORT_CSV,
5221
- Wl.CONNECTED_ACCOUNTS,
5222
- Wl.PROFILE_INFORMATION,
5223
- Wl.CODE_INTERPRETER_TOOL
5224
- ], Jl = {
5225
- [P.CURRENCY]: ["amountMicros"],
5226
- [P.FULL_NAME]: ["firstName", "lastName"],
5227
- [P.LINKS]: ["primaryLinkUrl"],
5228
- [P.EMAILS]: ["primaryEmail"],
5229
- [P.PHONES]: ["primaryPhoneNumber"]
5211
+ ], Kl = [
5212
+ Ul.AI,
5213
+ Ul.VIEWS,
5214
+ Ul.UPLOAD_FILE,
5215
+ Ul.DOWNLOAD_FILE,
5216
+ Ul.SEND_EMAIL_TOOL,
5217
+ Ul.CREATE_CALENDAR_EVENT_TOOL,
5218
+ Ul.HTTP_REQUEST_TOOL,
5219
+ Ul.IMPORT_CSV,
5220
+ Ul.EXPORT_CSV,
5221
+ Ul.CONNECTED_ACCOUNTS,
5222
+ Ul.PROFILE_INFORMATION,
5223
+ Ul.CODE_INTERPRETER_TOOL
5224
+ ], ql = {
5225
+ [F.CURRENCY]: ["amountMicros"],
5226
+ [F.FULL_NAME]: ["firstName", "lastName"],
5227
+ [F.LINKS]: ["primaryLinkUrl"],
5228
+ [F.EMAILS]: ["primaryEmail"],
5229
+ [F.PHONES]: ["primaryPhoneNumber"]
5230
5230
  };
5231
5231
  [
5232
5232
  "Condition that must be true for a record to be saved. When it is false, the write is rejected and the message is shown.",
@@ -5236,23 +5236,23 @@ var Kl = [
5236
5236
  "Functions: isDefined(value) is true when the value is set, even to an empty text; isEmpty(value) is true when the value is not set, an empty text, an empty list, or a composite field with every part empty; isNonEmptyString(value); includes(listOrText, value) is true when a multi-select or array contains the value, or a text contains a text, case-sensitive; arrayLength(list).",
5237
5237
  "To require a field, use not isEmpty(field)."
5238
5238
  ].join(" ");
5239
- var Yl = /* @__PURE__ */ new WeakSet(), Xl = /* @__PURE__ */ new WeakMap(), Zl = (e) => p(e) && !(typeof e == "object" && Yl.has(e)), Ql = (e) => typeof e == "object" && !!e && !Array.isArray(e), $l = (e) => {
5239
+ var Jl = /* @__PURE__ */ new WeakSet(), Yl = /* @__PURE__ */ new WeakMap(), Xl = (e) => p(e) && !(typeof e == "object" && Jl.has(e)), Zl = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ql = (e) => {
5240
5240
  if (!p(e) || e === "") return !0;
5241
5241
  if (Array.isArray(e)) return e.length === 0;
5242
- if (!Ql(e) || e instanceof Date) return !1;
5243
- if (Yl.has(e)) return !0;
5244
- let t = Xl.get(e);
5245
- if (t === P.RICH_TEXT) return !r(e.markdown) || e.markdown.trim().length === 0;
5246
- let n = p(t) ? Jl[t] : void 0;
5247
- return (p(n) ? n.map((t) => e[t]) : Object.values(e)).every($l);
5248
- }, eu = {
5242
+ if (!Zl(e) || e instanceof Date) return !1;
5243
+ if (Jl.has(e)) return !0;
5244
+ let t = Yl.get(e);
5245
+ if (t === F.RICH_TEXT) return !r(e.markdown) || e.markdown.trim().length === 0;
5246
+ let n = p(t) ? ql[t] : void 0;
5247
+ return (p(n) ? n.map((t) => e[t]) : Object.values(e)).every(Ql);
5248
+ }, $l = {
5249
5249
  isDefined: {
5250
5250
  signature: "isDefined(value)",
5251
- evaluate: Zl
5251
+ evaluate: Xl
5252
5252
  },
5253
5253
  isEmpty: {
5254
5254
  signature: "isEmpty(value)",
5255
- evaluate: $l
5255
+ evaluate: Ql
5256
5256
  },
5257
5257
  isNonEmptyString: {
5258
5258
  signature: "isNonEmptyString(value)",
@@ -5267,53 +5267,53 @@ var Yl = /* @__PURE__ */ new WeakSet(), Xl = /* @__PURE__ */ new WeakMap(), Zl =
5267
5267
  evaluate: (e) => Array.isArray(e) ? e.length : 0
5268
5268
  }
5269
5269
  };
5270
- I.TABLE, I.KANBAN, I.CALENDAR, I.LIST, I.FIELDS_WIDGET, I.TABLE_WIDGET, I.KANBAN_WIDGET, I.LIST_WIDGET, I.CALENDAR_WIDGET;
5270
+ L.TABLE, L.KANBAN, L.CALENDAR, L.LIST, L.FIELDS_WIDGET, L.TABLE_WIDGET, L.KANBAN_WIDGET, L.LIST_WIDGET, L.CALENDAR_WIDGET;
5271
5271
  //#endregion
5272
- //#region ../twenty-shared/dist/get-system-view-universal-identifier.util-Bq8_ovT3.mjs
5273
- var L = "20202020-64aa-4b6f-b003-9c74b97cee20", tu = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), nu = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => tu({
5272
+ //#region ../twenty-shared/dist/get-system-view-universal-identifier.util-DgYnPEO1.mjs
5273
+ var R = "20202020-64aa-4b6f-b003-9c74b97cee20", eu = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), tu = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => eu({
5274
5274
  entityNamespace: "fieldMetadata",
5275
5275
  value: `${t}:${n}`,
5276
5276
  applicationUniversalIdentifier: e
5277
- }), ru = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => tu({
5277
+ }), nu = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => eu({
5278
5278
  entityNamespace: "pageLayout",
5279
5279
  value: t ? `${t}:${n}` : n,
5280
5280
  applicationUniversalIdentifier: e
5281
- }), iu = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => tu({
5281
+ }), ru = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => eu({
5282
5282
  entityNamespace: "pageLayoutTab",
5283
5283
  value: `${t}:${n}`,
5284
5284
  applicationUniversalIdentifier: e
5285
- }), au = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => tu({
5285
+ }), iu = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => eu({
5286
5286
  entityNamespace: "pageLayoutWidget",
5287
5287
  value: `${t}:${n}`,
5288
5288
  applicationUniversalIdentifier: e
5289
- }), ou = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => ru({
5289
+ }), au = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => nu({
5290
5290
  applicationUniversalIdentifier: e,
5291
5291
  objectUniversalIdentifier: t,
5292
- name: ul.RECORD_PAGE
5293
- }), R = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => tu({
5292
+ name: ll.RECORD_PAGE
5293
+ }), z = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => eu({
5294
5294
  entityNamespace: "fieldMetadata",
5295
5295
  value: `${t}:systemRelation:${n}`,
5296
5296
  applicationUniversalIdentifier: e
5297
- }), su = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => tu({
5297
+ }), ou = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => eu({
5298
5298
  entityNamespace: "viewFieldGroup",
5299
5299
  value: `${t}:${n}`,
5300
5300
  applicationUniversalIdentifier: e
5301
- }), cu = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => tu({
5301
+ }), su = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => eu({
5302
5302
  entityNamespace: "viewField",
5303
5303
  value: `${t}:${n}`,
5304
5304
  applicationUniversalIdentifier: e
5305
- }), lu = {
5305
+ }), cu = {
5306
5306
  INDEX: "INDEX",
5307
5307
  FIELDS_WIDGET: "FIELDS_WIDGET"
5308
- }, uu = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => tu({
5308
+ }, lu = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => eu({
5309
5309
  entityNamespace: "view",
5310
5310
  value: `${t}:${n}`,
5311
5311
  applicationUniversalIdentifier: e
5312
- }), du = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e), fu = [
5312
+ }), uu = [
5313
5313
  "choice",
5314
5314
  "score",
5315
5315
  "boolean"
5316
- ], pu = (e) => new Set(e).size !== e.length, mu = (e) => p(e) && (pu((e.objectPermissions ?? []).map(({ objectUniversalIdentifier: e }) => e)) || pu((e.fieldPermissions ?? []).map(({ fieldUniversalIdentifier: e }) => e))), hu = /^[a-zA-Z0-9_.-]{1,64}$/, gu = (e) => hu.test(e), _u = {
5316
+ ], du = (e) => new Set(e).size !== e.length, fu = (e) => p(e) && (du((e.objectPermissions ?? []).map(({ objectUniversalIdentifier: e }) => e)) || du((e.fieldPermissions ?? []).map(({ fieldUniversalIdentifier: e }) => e))), pu = /^[a-zA-Z0-9_.-]{1,64}$/, mu = (e) => pu.test(e), hu = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e), gu = {
5317
5317
  en: "en",
5318
5318
  "pseudo-en": "pseudo-en",
5319
5319
  "af-ZA": "af-ZA",
@@ -5349,49 +5349,49 @@ var L = "20202020-64aa-4b6f-b003-9c74b97cee20", tu = ({ entityNamespace: e, valu
5349
5349
  "vi-VN": "vi-VN",
5350
5350
  "zh-CN": "zh-CN",
5351
5351
  "zh-TW": "zh-TW"
5352
- }, vu = "INUMBER", yu = "IOP1", bu = "IOP2", xu = "IOP3", Su = "IVAR", Cu = "IVARNAME", wu = "IFUNCALL", Tu = "IFUNDEF", Eu = "IEXPR", Du = "IEXPREVAL", Ou = "IMEMBER", ku = "IENDSTATEMENT", Au = "IARRAY";
5353
- function z(e, t) {
5352
+ }, _u = "INUMBER", vu = "IOP1", yu = "IOP2", bu = "IOP3", xu = "IVAR", Su = "IVARNAME", Cu = "IFUNCALL", wu = "IFUNDEF", Tu = "IEXPR", Eu = "IEXPREVAL", Du = "IMEMBER", Ou = "IENDSTATEMENT", ku = "IARRAY";
5353
+ function B(e, t) {
5354
5354
  this.type = e, this.value = t ?? 0;
5355
5355
  }
5356
- z.prototype.toString = function() {
5356
+ B.prototype.toString = function() {
5357
5357
  switch (this.type) {
5358
+ case _u:
5358
5359
  case vu:
5359
5360
  case yu:
5360
5361
  case bu:
5361
5362
  case xu:
5362
5363
  case Su:
5363
- case Cu:
5364
- case ku: return this.value;
5365
- case wu: return "CALL " + this.value;
5366
- case Tu: return "DEF " + this.value;
5367
- case Au: return "ARRAY " + this.value;
5368
- case Ou: return "." + this.value;
5364
+ case Ou: return this.value;
5365
+ case Cu: return "CALL " + this.value;
5366
+ case wu: return "DEF " + this.value;
5367
+ case ku: return "ARRAY " + this.value;
5368
+ case Du: return "." + this.value;
5369
5369
  default: return "Invalid Instruction";
5370
5370
  }
5371
5371
  };
5372
+ function Au(e) {
5373
+ return new B(vu, e);
5374
+ }
5372
5375
  function ju(e) {
5373
- return new z(yu, e);
5376
+ return new B(yu, e);
5374
5377
  }
5375
5378
  function Mu(e) {
5376
- return new z(bu, e);
5379
+ return new B(bu, e);
5377
5380
  }
5378
- function Nu(e) {
5379
- return new z(xu, e);
5380
- }
5381
- function Pu(e, t, n, r, i) {
5381
+ function Nu(e, t, n, r, i) {
5382
5382
  for (var a = [], o = [], s, c, l, u, d = 0; d < e.length; d++) {
5383
5383
  var f = e[d], p = f.type;
5384
- if (p === vu || p === Cu) Array.isArray(f.value) ? a.push.apply(a, Pu(f.value.map(function(e) {
5385
- return new z(vu, e);
5386
- }).concat(new z(Au, f.value.length)), t, n, r, i)) : a.push(f);
5387
- else if (p === Su && Object.hasOwn(i, f.value)) f = new z(vu, i[f.value]), a.push(f);
5388
- else if (p === bu && a.length > 1) c = a.pop(), s = a.pop(), u = n[f.value], f = new z(vu, u(s.value, c.value)), a.push(f);
5389
- else if (p === xu && a.length > 2) l = a.pop(), c = a.pop(), s = a.pop(), f.value === "?" ? a.push(s.value ? c.value : l.value) : (u = r[f.value], f = new z(vu, u(s.value, c.value, l.value)), a.push(f));
5390
- else if (p === yu && a.length > 0) s = a.pop(), u = t[f.value], f = new z(vu, u(s.value)), a.push(f);
5391
- else if (p === Eu) {
5384
+ if (p === _u || p === Su) Array.isArray(f.value) ? a.push.apply(a, Nu(f.value.map(function(e) {
5385
+ return new B(_u, e);
5386
+ }).concat(new B(ku, f.value.length)), t, n, r, i)) : a.push(f);
5387
+ else if (p === xu && Object.hasOwn(i, f.value)) f = new B(_u, i[f.value]), a.push(f);
5388
+ else if (p === yu && a.length > 1) c = a.pop(), s = a.pop(), u = n[f.value], f = new B(_u, u(s.value, c.value)), a.push(f);
5389
+ else if (p === bu && a.length > 2) l = a.pop(), c = a.pop(), s = a.pop(), f.value === "?" ? a.push(s.value ? c.value : l.value) : (u = r[f.value], f = new B(_u, u(s.value, c.value, l.value)), a.push(f));
5390
+ else if (p === vu && a.length > 0) s = a.pop(), u = t[f.value], f = new B(_u, u(s.value)), a.push(f);
5391
+ else if (p === Tu) {
5392
5392
  for (; a.length > 0;) o.push(a.shift());
5393
- o.push(new z(Eu, Pu(f.value, t, n, r, i)));
5394
- } else if (p === Ou && a.length > 0) s = a.pop(), a.push(new z(vu, s.value[f.value]));
5393
+ o.push(new B(Tu, Nu(f.value, t, n, r, i)));
5394
+ } else if (p === Du && a.length > 0) s = a.pop(), a.push(new B(_u, s.value[f.value]));
5395
5395
  else {
5396
5396
  for (; a.length > 0;) o.push(a.shift());
5397
5397
  o.push(f);
@@ -5400,18 +5400,18 @@ function Pu(e, t, n, r, i) {
5400
5400
  for (; a.length > 0;) o.push(a.shift());
5401
5401
  return o;
5402
5402
  }
5403
- function Fu(e, t, n) {
5403
+ function Pu(e, t, n) {
5404
5404
  for (var r = [], i = 0; i < e.length; i++) {
5405
5405
  var a = e[i], o = a.type;
5406
- if (o === Su && a.value === t) for (var s = 0; s < n.tokens.length; s++) {
5407
- var c = n.tokens[s], l = c.type === yu ? ju(c.value) : c.type === bu ? Mu(c.value) : c.type === xu ? Nu(c.value) : new z(c.type, c.value);
5406
+ if (o === xu && a.value === t) for (var s = 0; s < n.tokens.length; s++) {
5407
+ var c = n.tokens[s], l = c.type === vu ? Au(c.value) : c.type === yu ? ju(c.value) : c.type === bu ? Mu(c.value) : new B(c.type, c.value);
5408
5408
  r.push(l);
5409
5409
  }
5410
- else o === Eu ? r.push(new z(Eu, Fu(a.value, t, n))) : r.push(a);
5410
+ else o === Tu ? r.push(new B(Tu, Pu(a.value, t, n))) : r.push(a);
5411
5411
  }
5412
5412
  return r;
5413
5413
  }
5414
- function Iu(e, t, n) {
5414
+ function Fu(e, t, n) {
5415
5415
  if (Object.values(t.functions).includes(e)) return !0;
5416
5416
  for (let i of Object.values(n)) if (typeof i == "object" && i) {
5417
5417
  for (let n of Object.values(i)) if (n === e) {
@@ -5459,199 +5459,199 @@ function Iu(e, t, n) {
5459
5459
  }
5460
5460
  return !1;
5461
5461
  }
5462
- function Lu(e, t, n) {
5462
+ function Iu(e, t, n) {
5463
5463
  var r = [], i, a, o, s, c, l;
5464
- if (zu(e)) return Bu(e, n);
5464
+ if (Ru(e)) return zu(e, n);
5465
5465
  for (var u = e.length, d = 0; d < u; d++) {
5466
5466
  var f = e[d], p = f.type;
5467
- if (p === vu || p === Cu) r.push(f.value);
5468
- else if (p === bu) a = r.pop(), i = r.pop(), f.value === "and" ? r.push(i ? !!Lu(a, t, n) : !1) : f.value === "or" ? r.push(i ? !0 : !!Lu(a, t, n)) : f.value === "=" ? (s = t.binaryOps[f.value], r.push(s(i, Lu(a, t, n), n))) : (s = t.binaryOps[f.value], r.push(s(Bu(i, n), Bu(a, n))));
5469
- else if (p === xu) o = r.pop(), a = r.pop(), i = r.pop(), f.value === "?" ? r.push(Lu(i ? a : o, t, n)) : (s = t.ternaryOps[f.value], r.push(s(Bu(i, n), Bu(a, n), Bu(o, n))));
5470
- else if (p === Su) {
5467
+ if (p === _u || p === Su) r.push(f.value);
5468
+ else if (p === yu) a = r.pop(), i = r.pop(), f.value === "and" ? r.push(i ? !!Iu(a, t, n) : !1) : f.value === "or" ? r.push(i ? !0 : !!Iu(a, t, n)) : f.value === "=" ? (s = t.binaryOps[f.value], r.push(s(i, Iu(a, t, n), n))) : (s = t.binaryOps[f.value], r.push(s(zu(i, n), zu(a, n))));
5469
+ else if (p === bu) o = r.pop(), a = r.pop(), i = r.pop(), f.value === "?" ? r.push(Iu(i ? a : o, t, n)) : (s = t.ternaryOps[f.value], r.push(s(zu(i, n), zu(a, n), zu(o, n))));
5470
+ else if (p === xu) {
5471
5471
  if (/^__proto__|prototype|constructor$/.test(f.value)) throw Error("prototype access detected");
5472
5472
  if (f.value in t.functions) r.push(t.functions[f.value]);
5473
5473
  else if (f.value in t.unaryOps && t.parser.isOperatorEnabled(f.value)) r.push(t.unaryOps[f.value]);
5474
5474
  else {
5475
5475
  var m = n[f.value];
5476
5476
  if (m !== void 0) {
5477
- if (typeof m == "function" && !Iu(m, t, n)) throw Error("Variable references an unallowed function: " + f.value);
5477
+ if (typeof m == "function" && !Fu(m, t, n)) throw Error("Variable references an unallowed function: " + f.value);
5478
5478
  r.push(m);
5479
5479
  } else throw Error("undefined variable: " + f.value);
5480
5480
  }
5481
- } else if (p === yu) i = r.pop(), s = t.unaryOps[f.value], r.push(s(Bu(i, n)));
5482
- else if (p === wu) {
5483
- for (l = f.value, c = []; l-- > 0;) c.unshift(Bu(r.pop(), n));
5484
- if (s = r.pop(), !Iu(s, t, n)) throw Error("Is not an allowed function.");
5481
+ } else if (p === vu) i = r.pop(), s = t.unaryOps[f.value], r.push(s(zu(i, n)));
5482
+ else if (p === Cu) {
5483
+ for (l = f.value, c = []; l-- > 0;) c.unshift(zu(r.pop(), n));
5484
+ if (s = r.pop(), !Fu(s, t, n)) throw Error("Is not an allowed function.");
5485
5485
  if (s.apply && s.call) r.push(s.apply(void 0, c));
5486
5486
  else throw Error(s + " is not a function");
5487
- } else if (p === Tu) r.push((function() {
5487
+ } else if (p === wu) r.push((function() {
5488
5488
  for (var e = r.pop(), i = [], a = f.value; a-- > 0;) i.unshift(r.pop());
5489
5489
  var o = r.pop(), s = function() {
5490
5490
  for (var r = Object.assign({}, n), a = 0, o = i.length; a < o; a++) r[i[a]] = arguments[a];
5491
- return Lu(e, t, r);
5491
+ return Iu(e, t, r);
5492
5492
  };
5493
5493
  return t.functions["lambda_" + t.functions.__counter++] = s, n[o] = s, s;
5494
5494
  })());
5495
- else if (p === Eu) r.push(Ru(f, t));
5496
- else if (p === Du) r.push(f);
5497
- else if (p === Ou) {
5495
+ else if (p === Tu) r.push(Lu(f, t));
5496
+ else if (p === Eu) r.push(f);
5497
+ else if (p === Du) {
5498
5498
  if (i = r.pop(), /^__proto__|prototype|constructor$/.test(f.value)) throw Error("prototype access detected in MEMBER");
5499
- if (typeof i == "object" && typeof i[f.value] == "function" && !Iu(i[f.value], t, n)) throw Error("Is not an allowed function in MEMBER.");
5499
+ if (typeof i == "object" && typeof i[f.value] == "function" && !Fu(i[f.value], t, n)) throw Error("Is not an allowed function in MEMBER.");
5500
5500
  r.push(i[f.value]);
5501
- } else if (p === ku) r.pop();
5502
- else if (p === Au) {
5501
+ } else if (p === Ou) r.pop();
5502
+ else if (p === ku) {
5503
5503
  for (l = f.value, c = []; l-- > 0;) c.unshift(r.pop());
5504
5504
  r.push(c);
5505
5505
  } else throw Error("invalid Expression");
5506
5506
  }
5507
5507
  if (r.length > 1) throw Error("invalid Expression (parity)");
5508
- return r[0] === 0 ? 0 : Bu(r[0], n);
5508
+ return r[0] === 0 ? 0 : zu(r[0], n);
5509
5509
  }
5510
- function Ru(e, t, n) {
5511
- return zu(e) ? e : {
5512
- type: Du,
5510
+ function Lu(e, t, n) {
5511
+ return Ru(e) ? e : {
5512
+ type: Eu,
5513
5513
  value: function(n) {
5514
- return Lu(e.value, t, n);
5514
+ return Iu(e.value, t, n);
5515
5515
  }
5516
5516
  };
5517
5517
  }
5518
- function zu(e) {
5519
- return e && e.type === Du;
5518
+ function Ru(e) {
5519
+ return e && e.type === Eu;
5520
5520
  }
5521
- function Bu(e, t) {
5522
- return zu(e) ? e.value(t) : e;
5521
+ function zu(e, t) {
5522
+ return Ru(e) ? e.value(t) : e;
5523
5523
  }
5524
- function Vu(e, t) {
5524
+ function Bu(e, t) {
5525
5525
  for (var n = [], r, i, a, o, s, c, l = 0; l < e.length; l++) {
5526
5526
  var u = e[l], d = u.type;
5527
- if (d === vu) typeof u.value == "number" && u.value < 0 ? n.push("(" + u.value + ")") : Array.isArray(u.value) ? n.push("[" + u.value.map(Hu).join(", ") + "]") : n.push(Hu(u.value));
5528
- else if (d === bu) i = n.pop(), r = n.pop(), o = u.value, t ? o === "^" ? n.push("Math.pow(" + r + ", " + i + ")") : o === "and" ? n.push("(!!" + r + " && !!" + i + ")") : o === "or" ? n.push("(!!" + r + " || !!" + i + ")") : o === "||" ? n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((" + r + "),(" + i + ")))") : o === "==" ? n.push("(" + r + " === " + i + ")") : o === "!=" ? n.push("(" + r + " !== " + i + ")") : o === "[" ? n.push(r + "[(" + i + ") | 0]") : n.push("(" + r + " " + o + " " + i + ")") : o === "[" ? n.push(r + "[" + i + "]") : n.push("(" + r + " " + o + " " + i + ")");
5529
- else if (d === xu) if (a = n.pop(), i = n.pop(), r = n.pop(), o = u.value, o === "?") n.push("(" + r + " ? " + i + " : " + a + ")");
5527
+ if (d === _u) typeof u.value == "number" && u.value < 0 ? n.push("(" + u.value + ")") : Array.isArray(u.value) ? n.push("[" + u.value.map(Vu).join(", ") + "]") : n.push(Vu(u.value));
5528
+ else if (d === yu) i = n.pop(), r = n.pop(), o = u.value, t ? o === "^" ? n.push("Math.pow(" + r + ", " + i + ")") : o === "and" ? n.push("(!!" + r + " && !!" + i + ")") : o === "or" ? n.push("(!!" + r + " || !!" + i + ")") : o === "||" ? n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((" + r + "),(" + i + ")))") : o === "==" ? n.push("(" + r + " === " + i + ")") : o === "!=" ? n.push("(" + r + " !== " + i + ")") : o === "[" ? n.push(r + "[(" + i + ") | 0]") : n.push("(" + r + " " + o + " " + i + ")") : o === "[" ? n.push(r + "[" + i + "]") : n.push("(" + r + " " + o + " " + i + ")");
5529
+ else if (d === bu) if (a = n.pop(), i = n.pop(), r = n.pop(), o = u.value, o === "?") n.push("(" + r + " ? " + i + " : " + a + ")");
5530
5530
  else throw Error("invalid Expression");
5531
- else if (d === Su || d === Cu) n.push(u.value);
5532
- else if (d === yu) r = n.pop(), o = u.value, o === "-" || o === "+" ? n.push("(" + o + r + ")") : t ? o === "not" ? n.push("(!" + r + ")") : o === "!" ? n.push("fac(" + r + ")") : n.push(o + "(" + r + ")") : o === "!" ? n.push("(" + r + "!)") : n.push("(" + o + " " + r + ")");
5533
- else if (d === wu) {
5531
+ else if (d === xu || d === Su) n.push(u.value);
5532
+ else if (d === vu) r = n.pop(), o = u.value, o === "-" || o === "+" ? n.push("(" + o + r + ")") : t ? o === "not" ? n.push("(!" + r + ")") : o === "!" ? n.push("fac(" + r + ")") : n.push(o + "(" + r + ")") : o === "!" ? n.push("(" + r + "!)") : n.push("(" + o + " " + r + ")");
5533
+ else if (d === Cu) {
5534
5534
  for (c = u.value, s = []; c-- > 0;) s.unshift(n.pop());
5535
5535
  o = n.pop(), n.push(o + "(" + s.join(", ") + ")");
5536
- } else if (d === Tu) {
5536
+ } else if (d === wu) {
5537
5537
  for (i = n.pop(), c = u.value, s = []; c-- > 0;) s.unshift(n.pop());
5538
5538
  r = n.pop(), t ? n.push("(" + r + " = function(" + s.join(", ") + ") { return " + i + " })") : n.push("(" + r + "(" + s.join(", ") + ") = " + i + ")");
5539
- } else if (d === Ou) r = n.pop(), n.push(r + "." + u.value);
5540
- else if (d === Au) {
5539
+ } else if (d === Du) r = n.pop(), n.push(r + "." + u.value);
5540
+ else if (d === ku) {
5541
5541
  for (c = u.value, s = []; c-- > 0;) s.unshift(n.pop());
5542
5542
  n.push("[" + s.join(", ") + "]");
5543
- } else if (d === Eu) n.push("(" + Vu(u.value, t) + ")");
5544
- else if (d !== ku) throw Error("invalid Expression");
5543
+ } else if (d === Tu) n.push("(" + Bu(u.value, t) + ")");
5544
+ else if (d !== Ou) throw Error("invalid Expression");
5545
5545
  }
5546
5546
  return n.length > 1 && (n = t ? [n.join(",")] : [n.join(";")]), String(n[0]);
5547
5547
  }
5548
- function Hu(e) {
5548
+ function Vu(e) {
5549
5549
  return typeof e == "string" ? JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") : e;
5550
5550
  }
5551
- function Uu(e, t) {
5551
+ function Hu(e, t) {
5552
5552
  for (var n = 0; n < e.length; n++) if (e[n] === t) return !0;
5553
5553
  return !1;
5554
5554
  }
5555
- function Wu(e, t, n) {
5555
+ function Uu(e, t, n) {
5556
5556
  n ||= {};
5557
5557
  for (var r = !!n.withMembers, i = null, a = 0; a < e.length; a++) {
5558
5558
  var o = e[a];
5559
- o.type === Su || o.type === Cu ? !r && !Uu(t, o.value) ? t.push(o.value) : (i === null || Uu(t, i) || t.push(i), i = o.value) : o.type === Ou && r && i !== null ? i += "." + o.value : o.type === Eu ? Wu(o.value, t, n) : i !== null && (Uu(t, i) || t.push(i), i = null);
5559
+ o.type === xu || o.type === Su ? !r && !Hu(t, o.value) ? t.push(o.value) : (i === null || Hu(t, i) || t.push(i), i = o.value) : o.type === Du && r && i !== null ? i += "." + o.value : o.type === Tu ? Uu(o.value, t, n) : i !== null && (Hu(t, i) || t.push(i), i = null);
5560
5560
  }
5561
- i !== null && !Uu(t, i) && t.push(i);
5561
+ i !== null && !Hu(t, i) && t.push(i);
5562
5562
  }
5563
- function Gu(e, t) {
5563
+ function Wu(e, t) {
5564
5564
  this.tokens = e, this.parser = t, this.unaryOps = t.unaryOps, this.binaryOps = t.binaryOps, this.ternaryOps = t.ternaryOps, this.functions = t.functions;
5565
5565
  }
5566
- Gu.prototype.simplify = function(e) {
5567
- return e ||= {}, new Gu(Pu(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, e), this.parser);
5568
- }, Gu.prototype.substitute = function(e, t) {
5569
- return t instanceof Gu || (t = this.parser.parse(String(t))), new Gu(Fu(this.tokens, e, t), this.parser);
5570
- }, Gu.prototype.evaluate = function(e) {
5571
- return e ||= {}, Lu(this.tokens, this, e);
5572
- }, Gu.prototype.toString = function() {
5573
- return Vu(this.tokens, !1);
5574
- }, Gu.prototype.symbols = function(e) {
5566
+ Wu.prototype.simplify = function(e) {
5567
+ return e ||= {}, new Wu(Nu(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, e), this.parser);
5568
+ }, Wu.prototype.substitute = function(e, t) {
5569
+ return t instanceof Wu || (t = this.parser.parse(String(t))), new Wu(Pu(this.tokens, e, t), this.parser);
5570
+ }, Wu.prototype.evaluate = function(e) {
5571
+ return e ||= {}, Iu(this.tokens, this, e);
5572
+ }, Wu.prototype.toString = function() {
5573
+ return Bu(this.tokens, !1);
5574
+ }, Wu.prototype.symbols = function(e) {
5575
5575
  e ||= {};
5576
5576
  var t = [];
5577
- return Wu(this.tokens, t, e), t;
5578
- }, Gu.prototype.variables = function(e) {
5577
+ return Uu(this.tokens, t, e), t;
5578
+ }, Wu.prototype.variables = function(e) {
5579
5579
  e ||= {};
5580
5580
  var t = [];
5581
- Wu(this.tokens, t, e);
5581
+ Uu(this.tokens, t, e);
5582
5582
  var n = this.functions;
5583
5583
  return t.filter(function(e) {
5584
5584
  return !(e in n);
5585
5585
  });
5586
- }, Gu.prototype.toJSFunction = function(e, t) {
5587
- var n = this, r = Function(e, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Vu(this.simplify(t).tokens, !0) + "; }");
5586
+ }, Wu.prototype.toJSFunction = function(e, t) {
5587
+ var n = this, r = Function(e, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Bu(this.simplify(t).tokens, !0) + "; }");
5588
5588
  return function() {
5589
5589
  return r.apply(n, arguments);
5590
5590
  };
5591
5591
  };
5592
- var Ku = "TEOF", B = "TOP", qu = "TNUMBER", Ju = "TSTRING", Yu = "TPAREN", Xu = "TBRACKET", Zu = "TCOMMA", Qu = "TNAME", $u = "TSEMICOLON";
5593
- function ed(e, t, n) {
5592
+ var Gu = "TEOF", V = "TOP", Ku = "TNUMBER", qu = "TSTRING", Ju = "TPAREN", Yu = "TBRACKET", Xu = "TCOMMA", Zu = "TNAME", Qu = "TSEMICOLON";
5593
+ function $u(e, t, n) {
5594
5594
  this.type = e, this.value = t, this.index = n;
5595
5595
  }
5596
- ed.prototype.toString = function() {
5596
+ $u.prototype.toString = function() {
5597
5597
  return this.type + ": " + this.value;
5598
5598
  };
5599
- function td(e, t) {
5599
+ function ed(e, t) {
5600
5600
  this.pos = 0, this.current = null, this.unaryOps = e.unaryOps, this.binaryOps = e.binaryOps, this.ternaryOps = e.ternaryOps, this.consts = e.consts, this.expression = t, this.savedPosition = 0, this.savedCurrent = null, this.options = e.options, this.parser = e;
5601
5601
  }
5602
- td.prototype.newToken = function(e, t, n) {
5603
- return new ed(e, t, n ?? this.pos);
5604
- }, td.prototype.save = function() {
5602
+ ed.prototype.newToken = function(e, t, n) {
5603
+ return new $u(e, t, n ?? this.pos);
5604
+ }, ed.prototype.save = function() {
5605
5605
  this.savedPosition = this.pos, this.savedCurrent = this.current;
5606
- }, td.prototype.restore = function() {
5606
+ }, ed.prototype.restore = function() {
5607
5607
  this.pos = this.savedPosition, this.current = this.savedCurrent;
5608
- }, td.prototype.next = function() {
5609
- if (this.pos >= this.expression.length) return this.newToken(Ku, "EOF");
5608
+ }, ed.prototype.next = function() {
5609
+ if (this.pos >= this.expression.length) return this.newToken(Gu, "EOF");
5610
5610
  if (this.isWhitespace() || this.isComment()) return this.next();
5611
5611
  if (this.isRadixInteger() || this.isNumber() || this.isOperator() || this.isString() || this.isParen() || this.isBracket() || this.isComma() || this.isSemicolon() || this.isNamedOp() || this.isConst() || this.isName()) return this.current;
5612
5612
  this.parseError("Unknown character \"" + this.expression.charAt(this.pos) + "\"");
5613
- }, td.prototype.isString = function() {
5613
+ }, ed.prototype.isString = function() {
5614
5614
  var e = !1, t = this.pos, n = this.expression.charAt(t);
5615
5615
  if (n === "'" || n === "\"") for (var r = this.expression.indexOf(n, t + 1); r >= 0 && this.pos < this.expression.length;) {
5616
5616
  if (this.pos = r + 1, this.expression.charAt(r - 1) !== "\\") {
5617
5617
  var i = this.expression.substring(t + 1, r);
5618
- this.current = this.newToken(Ju, this.unescape(i), t), e = !0;
5618
+ this.current = this.newToken(qu, this.unescape(i), t), e = !0;
5619
5619
  break;
5620
5620
  }
5621
5621
  r = this.expression.indexOf(n, r + 1);
5622
5622
  }
5623
5623
  return e;
5624
- }, td.prototype.isParen = function() {
5624
+ }, ed.prototype.isParen = function() {
5625
5625
  var e = this.expression.charAt(this.pos);
5626
- return e === "(" || e === ")" ? (this.current = this.newToken(Yu, e), this.pos++, !0) : !1;
5627
- }, td.prototype.isBracket = function() {
5626
+ return e === "(" || e === ")" ? (this.current = this.newToken(Ju, e), this.pos++, !0) : !1;
5627
+ }, ed.prototype.isBracket = function() {
5628
5628
  var e = this.expression.charAt(this.pos);
5629
- return (e === "[" || e === "]") && this.isOperatorEnabled("[") ? (this.current = this.newToken(Xu, e), this.pos++, !0) : !1;
5630
- }, td.prototype.isComma = function() {
5631
- return this.expression.charAt(this.pos) === "," ? (this.current = this.newToken(Zu, ","), this.pos++, !0) : !1;
5632
- }, td.prototype.isSemicolon = function() {
5633
- return this.expression.charAt(this.pos) === ";" ? (this.current = this.newToken($u, ";"), this.pos++, !0) : !1;
5634
- }, td.prototype.isConst = function() {
5629
+ return (e === "[" || e === "]") && this.isOperatorEnabled("[") ? (this.current = this.newToken(Yu, e), this.pos++, !0) : !1;
5630
+ }, ed.prototype.isComma = function() {
5631
+ return this.expression.charAt(this.pos) === "," ? (this.current = this.newToken(Xu, ","), this.pos++, !0) : !1;
5632
+ }, ed.prototype.isSemicolon = function() {
5633
+ return this.expression.charAt(this.pos) === ";" ? (this.current = this.newToken(Qu, ";"), this.pos++, !0) : !1;
5634
+ }, ed.prototype.isConst = function() {
5635
5635
  for (var e = this.pos, t = e; t < this.expression.length; t++) {
5636
5636
  var n = this.expression.charAt(t);
5637
5637
  if (n.toUpperCase() === n.toLowerCase() && (t === this.pos || n !== "_" && n !== "." && (n < "0" || n > "9"))) break;
5638
5638
  }
5639
5639
  if (t > e) {
5640
5640
  var r = this.expression.substring(e, t);
5641
- if (r in this.consts) return this.current = this.newToken(qu, this.consts[r]), this.pos += r.length, !0;
5641
+ if (r in this.consts) return this.current = this.newToken(Ku, this.consts[r]), this.pos += r.length, !0;
5642
5642
  }
5643
5643
  return !1;
5644
- }, td.prototype.isNamedOp = function() {
5644
+ }, ed.prototype.isNamedOp = function() {
5645
5645
  for (var e = this.pos, t = e; t < this.expression.length; t++) {
5646
5646
  var n = this.expression.charAt(t);
5647
5647
  if (n.toUpperCase() === n.toLowerCase() && (t === this.pos || n !== "_" && (n < "0" || n > "9"))) break;
5648
5648
  }
5649
5649
  if (t > e) {
5650
5650
  var r = this.expression.substring(e, t);
5651
- if (this.isOperatorEnabled(r) && (r in this.binaryOps || r in this.unaryOps || r in this.ternaryOps)) return this.current = this.newToken(B, r), this.pos += r.length, !0;
5651
+ if (this.isOperatorEnabled(r) && (r in this.binaryOps || r in this.unaryOps || r in this.ternaryOps)) return this.current = this.newToken(V, r), this.pos += r.length, !0;
5652
5652
  }
5653
5653
  return !1;
5654
- }, td.prototype.isName = function() {
5654
+ }, ed.prototype.isName = function() {
5655
5655
  for (var e = this.pos, t = e, n = !1; t < this.expression.length; t++) {
5656
5656
  var r = this.expression.charAt(t);
5657
5657
  if (r.toUpperCase() === r.toLowerCase()) {
@@ -5663,15 +5663,15 @@ td.prototype.newToken = function(e, t, n) {
5663
5663
  }
5664
5664
  if (n) {
5665
5665
  var i = this.expression.substring(e, t);
5666
- return this.current = this.newToken(Qu, i), this.pos += i.length, !0;
5666
+ return this.current = this.newToken(Zu, i), this.pos += i.length, !0;
5667
5667
  }
5668
5668
  return !1;
5669
- }, td.prototype.isWhitespace = function() {
5669
+ }, ed.prototype.isWhitespace = function() {
5670
5670
  for (var e = !1, t = this.expression.charAt(this.pos); (t === " " || t === " " || t === "\n" || t === "\r") && (e = !0, this.pos++, !(this.pos >= this.expression.length));) t = this.expression.charAt(this.pos);
5671
5671
  return e;
5672
5672
  };
5673
- var nd = /^[0-9a-f]{4}$/i;
5674
- td.prototype.unescape = function(e) {
5673
+ var td = /^[0-9a-f]{4}$/i;
5674
+ ed.prototype.unescape = function(e) {
5675
5675
  var t = e.indexOf("\\");
5676
5676
  if (t < 0) return e;
5677
5677
  for (var n = e.substring(0, t); t >= 0;) {
@@ -5706,7 +5706,7 @@ td.prototype.unescape = function(e) {
5706
5706
  break;
5707
5707
  case "u":
5708
5708
  var i = e.substring(t + 1, t + 5);
5709
- nd.test(i) || this.parseError("Illegal escape sequence: \\u" + i), n += String.fromCharCode(parseInt(i, 16)), t += 4;
5709
+ td.test(i) || this.parseError("Illegal escape sequence: \\u" + i), n += String.fromCharCode(parseInt(i, 16)), t += 4;
5710
5710
  break;
5711
5711
  default: throw this.parseError("Illegal escape sequence: \"\\" + r + "\"");
5712
5712
  }
@@ -5715,9 +5715,9 @@ td.prototype.unescape = function(e) {
5715
5715
  n += e.substring(t, a < 0 ? e.length : a), t = a;
5716
5716
  }
5717
5717
  return n;
5718
- }, td.prototype.isComment = function() {
5718
+ }, ed.prototype.isComment = function() {
5719
5719
  return this.expression.charAt(this.pos) === "/" && this.expression.charAt(this.pos + 1) === "*" ? (this.pos = this.expression.indexOf("*/", this.pos) + 2, this.pos === 1 && (this.pos = this.expression.length), !0) : !1;
5720
- }, td.prototype.isRadixInteger = function() {
5720
+ }, ed.prototype.isRadixInteger = function() {
5721
5721
  var e = this.pos;
5722
5722
  if (e >= this.expression.length - 2 || this.expression.charAt(e) !== "0") return !1;
5723
5723
  ++e;
@@ -5730,8 +5730,8 @@ td.prototype.unescape = function(e) {
5730
5730
  if (n.test(a)) e++, r = !0;
5731
5731
  else break;
5732
5732
  }
5733
- return r && (this.current = this.newToken(qu, parseInt(this.expression.substring(i, e), t)), this.pos = e), r;
5734
- }, td.prototype.isNumber = function() {
5733
+ return r && (this.current = this.newToken(Ku, parseInt(this.expression.substring(i, e), t)), this.pos = e), r;
5734
+ }, ed.prototype.isNumber = function() {
5735
5735
  for (var e = !1, t = this.pos, n = t, r = t, i = !1, a = !1, o; t < this.expression.length && (o = this.expression.charAt(t), o >= "0" && o <= "9" || !i && o === ".");) o === "." ? i = !0 : a = !0, t++, e = a;
5736
5736
  if (e && (r = t), o === "e" || o === "E") {
5737
5737
  t++;
@@ -5743,22 +5743,22 @@ td.prototype.unescape = function(e) {
5743
5743
  }
5744
5744
  c || (t = r);
5745
5745
  }
5746
- return e ? (this.current = this.newToken(qu, parseFloat(this.expression.substring(n, t))), this.pos = t) : this.pos = r, e;
5747
- }, td.prototype.isOperator = function() {
5746
+ return e ? (this.current = this.newToken(Ku, parseFloat(this.expression.substring(n, t))), this.pos = t) : this.pos = r, e;
5747
+ }, ed.prototype.isOperator = function() {
5748
5748
  var e = this.pos, t = this.expression.charAt(this.pos);
5749
- if (t === "+" || t === "-" || t === "*" || t === "/" || t === "%" || t === "^" || t === "?" || t === ":" || t === ".") this.current = this.newToken(B, t);
5750
- else if (t === "∙" || t === "•") this.current = this.newToken(B, "*");
5751
- else if (t === ">") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, ">="), this.pos++) : this.current = this.newToken(B, ">");
5752
- else if (t === "<") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "<="), this.pos++) : this.current = this.newToken(B, "<");
5753
- else if (t === "|") if (this.expression.charAt(this.pos + 1) === "|") this.current = this.newToken(B, "||"), this.pos++;
5749
+ if (t === "+" || t === "-" || t === "*" || t === "/" || t === "%" || t === "^" || t === "?" || t === ":" || t === ".") this.current = this.newToken(V, t);
5750
+ else if (t === "∙" || t === "•") this.current = this.newToken(V, "*");
5751
+ else if (t === ">") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(V, ">="), this.pos++) : this.current = this.newToken(V, ">");
5752
+ else if (t === "<") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(V, "<="), this.pos++) : this.current = this.newToken(V, "<");
5753
+ else if (t === "|") if (this.expression.charAt(this.pos + 1) === "|") this.current = this.newToken(V, "||"), this.pos++;
5754
5754
  else return !1;
5755
- else if (t === "=") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "=="), this.pos++) : this.current = this.newToken(B, t);
5756
- else if (t === "!") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "!="), this.pos++) : this.current = this.newToken(B, t);
5755
+ else if (t === "=") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(V, "=="), this.pos++) : this.current = this.newToken(V, t);
5756
+ else if (t === "!") this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(V, "!="), this.pos++) : this.current = this.newToken(V, t);
5757
5757
  else return !1;
5758
5758
  return this.pos++, this.isOperatorEnabled(this.current.value) ? !0 : (this.pos = e, !1);
5759
- }, td.prototype.isOperatorEnabled = function(e) {
5759
+ }, ed.prototype.isOperatorEnabled = function(e) {
5760
5760
  return this.parser.isOperatorEnabled(e);
5761
- }, td.prototype.getCoordinates = function() {
5761
+ }, ed.prototype.getCoordinates = function() {
5762
5762
  var e = 0, t, n = -1;
5763
5763
  do
5764
5764
  e++, t = this.pos - n, n = this.expression.indexOf("\n", n + 1);
@@ -5767,82 +5767,82 @@ td.prototype.unescape = function(e) {
5767
5767
  line: e,
5768
5768
  column: t
5769
5769
  };
5770
- }, td.prototype.parseError = function(e) {
5770
+ }, ed.prototype.parseError = function(e) {
5771
5771
  var t = this.getCoordinates();
5772
5772
  throw Error("parse error [" + t.line + ":" + t.column + "]: " + e);
5773
5773
  };
5774
- function V(e, t, n) {
5774
+ function nd(e, t, n) {
5775
5775
  this.parser = e, this.tokens = t, this.current = null, this.nextToken = null, this.next(), this.savedCurrent = null, this.savedNextToken = null, this.allowMemberAccess = n.allowMemberAccess !== !1;
5776
5776
  }
5777
- V.prototype.next = function() {
5777
+ nd.prototype.next = function() {
5778
5778
  return this.current = this.nextToken, this.nextToken = this.tokens.next();
5779
- }, V.prototype.tokenMatches = function(e, t) {
5780
- return t === void 0 ? !0 : Array.isArray(t) ? Uu(t, e.value) : typeof t == "function" ? t(e) : e.value === t;
5781
- }, V.prototype.save = function() {
5779
+ }, nd.prototype.tokenMatches = function(e, t) {
5780
+ return t === void 0 ? !0 : Array.isArray(t) ? Hu(t, e.value) : typeof t == "function" ? t(e) : e.value === t;
5781
+ }, nd.prototype.save = function() {
5782
5782
  this.savedCurrent = this.current, this.savedNextToken = this.nextToken, this.tokens.save();
5783
- }, V.prototype.restore = function() {
5783
+ }, nd.prototype.restore = function() {
5784
5784
  this.tokens.restore(), this.current = this.savedCurrent, this.nextToken = this.savedNextToken;
5785
- }, V.prototype.accept = function(e, t) {
5785
+ }, nd.prototype.accept = function(e, t) {
5786
5786
  return this.nextToken.type === e && this.tokenMatches(this.nextToken, t) ? (this.next(), !0) : !1;
5787
- }, V.prototype.expect = function(e, t) {
5787
+ }, nd.prototype.expect = function(e, t) {
5788
5788
  if (!this.accept(e, t)) {
5789
5789
  var n = this.tokens.getCoordinates();
5790
5790
  throw Error("parse error [" + n.line + ":" + n.column + "]: Expected " + (t || e));
5791
5791
  }
5792
- }, V.prototype.parseAtom = function(e) {
5792
+ }, nd.prototype.parseAtom = function(e) {
5793
5793
  var t = this.tokens.unaryOps;
5794
5794
  function n(e) {
5795
5795
  return e.value in t;
5796
5796
  }
5797
- if (this.accept(Qu) || this.accept(B, n)) e.push(new z(Su, this.current.value));
5798
- else if (this.accept(qu)) e.push(new z(vu, this.current.value));
5799
- else if (this.accept(Ju)) e.push(new z(vu, this.current.value));
5800
- else if (this.accept(Yu, "(")) this.parseExpression(e), this.expect(Yu, ")");
5801
- else if (this.accept(Xu, "[")) if (this.accept(Xu, "]")) e.push(new z(Au, 0));
5797
+ if (this.accept(Zu) || this.accept(V, n)) e.push(new B(xu, this.current.value));
5798
+ else if (this.accept(Ku)) e.push(new B(_u, this.current.value));
5799
+ else if (this.accept(qu)) e.push(new B(_u, this.current.value));
5800
+ else if (this.accept(Ju, "(")) this.parseExpression(e), this.expect(Ju, ")");
5801
+ else if (this.accept(Yu, "[")) if (this.accept(Yu, "]")) e.push(new B(ku, 0));
5802
5802
  else {
5803
5803
  var r = this.parseArrayList(e);
5804
- e.push(new z(Au, r));
5804
+ e.push(new B(ku, r));
5805
5805
  }
5806
5806
  else throw Error("unexpected " + this.nextToken);
5807
- }, V.prototype.parseExpression = function(e) {
5807
+ }, nd.prototype.parseExpression = function(e) {
5808
5808
  var t = [];
5809
5809
  this.parseUntilEndStatement(e, t) || (this.parseVariableAssignmentExpression(t), !this.parseUntilEndStatement(e, t) && this.pushExpression(e, t));
5810
- }, V.prototype.pushExpression = function(e, t) {
5810
+ }, nd.prototype.pushExpression = function(e, t) {
5811
5811
  for (var n = 0, r = t.length; n < r; n++) e.push(t[n]);
5812
- }, V.prototype.parseUntilEndStatement = function(e, t) {
5813
- return this.accept($u) ? (this.nextToken && this.nextToken.type !== Ku && !(this.nextToken.type === Yu && this.nextToken.value === ")") && t.push(new z(ku)), this.nextToken.type !== Ku && this.parseExpression(t), e.push(new z(Eu, t)), !0) : !1;
5814
- }, V.prototype.parseArrayList = function(e) {
5815
- for (var t = 0; !this.accept(Xu, "]");) for (this.parseExpression(e), ++t; this.accept(Zu);) this.parseExpression(e), ++t;
5812
+ }, nd.prototype.parseUntilEndStatement = function(e, t) {
5813
+ return this.accept(Qu) ? (this.nextToken && this.nextToken.type !== Gu && !(this.nextToken.type === Ju && this.nextToken.value === ")") && t.push(new B(Ou)), this.nextToken.type !== Gu && this.parseExpression(t), e.push(new B(Tu, t)), !0) : !1;
5814
+ }, nd.prototype.parseArrayList = function(e) {
5815
+ for (var t = 0; !this.accept(Yu, "]");) for (this.parseExpression(e), ++t; this.accept(Xu);) this.parseExpression(e), ++t;
5816
5816
  return t;
5817
- }, V.prototype.parseVariableAssignmentExpression = function(e) {
5818
- for (this.parseConditionalExpression(e); this.accept(B, "=");) {
5817
+ }, nd.prototype.parseVariableAssignmentExpression = function(e) {
5818
+ for (this.parseConditionalExpression(e); this.accept(V, "=");) {
5819
5819
  var t = e.pop(), n = [], r = e.length - 1;
5820
- if (t.type === wu) {
5820
+ if (t.type === Cu) {
5821
5821
  if (!this.tokens.isOperatorEnabled("()=")) throw Error("function definition is not permitted");
5822
5822
  for (var i = 0, a = t.value + 1; i < a; i++) {
5823
5823
  var o = r - i;
5824
- e[o].type === Su && (e[o] = new z(Cu, e[o].value));
5824
+ e[o].type === xu && (e[o] = new B(Su, e[o].value));
5825
5825
  }
5826
- this.parseVariableAssignmentExpression(n), e.push(new z(Eu, n)), e.push(new z(Tu, t.value));
5826
+ this.parseVariableAssignmentExpression(n), e.push(new B(Tu, n)), e.push(new B(wu, t.value));
5827
5827
  continue;
5828
5828
  }
5829
- if (t.type !== Su && t.type !== Ou) throw Error("expected variable for assignment");
5830
- this.parseVariableAssignmentExpression(n), e.push(new z(Cu, t.value)), e.push(new z(Eu, n)), e.push(Mu("="));
5829
+ if (t.type !== xu && t.type !== Du) throw Error("expected variable for assignment");
5830
+ this.parseVariableAssignmentExpression(n), e.push(new B(Su, t.value)), e.push(new B(Tu, n)), e.push(ju("="));
5831
5831
  }
5832
- }, V.prototype.parseConditionalExpression = function(e) {
5833
- for (this.parseOrExpression(e); this.accept(B, "?");) {
5832
+ }, nd.prototype.parseConditionalExpression = function(e) {
5833
+ for (this.parseOrExpression(e); this.accept(V, "?");) {
5834
5834
  var t = [], n = [];
5835
- this.parseConditionalExpression(t), this.expect(B, ":"), this.parseConditionalExpression(n), e.push(new z(Eu, t)), e.push(new z(Eu, n)), e.push(Nu("?"));
5835
+ this.parseConditionalExpression(t), this.expect(V, ":"), this.parseConditionalExpression(n), e.push(new B(Tu, t)), e.push(new B(Tu, n)), e.push(Mu("?"));
5836
5836
  }
5837
- }, V.prototype.parseOrExpression = function(e) {
5838
- for (this.parseAndExpression(e); this.accept(B, "or");) {
5837
+ }, nd.prototype.parseOrExpression = function(e) {
5838
+ for (this.parseAndExpression(e); this.accept(V, "or");) {
5839
5839
  var t = [];
5840
- this.parseAndExpression(t), e.push(new z(Eu, t)), e.push(Mu("or"));
5840
+ this.parseAndExpression(t), e.push(new B(Tu, t)), e.push(ju("or"));
5841
5841
  }
5842
- }, V.prototype.parseAndExpression = function(e) {
5843
- for (this.parseComparison(e); this.accept(B, "and");) {
5842
+ }, nd.prototype.parseAndExpression = function(e) {
5843
+ for (this.parseComparison(e); this.accept(V, "and");) {
5844
5844
  var t = [];
5845
- this.parseComparison(t), e.push(new z(Eu, t)), e.push(Mu("and"));
5845
+ this.parseComparison(t), e.push(new B(Tu, t)), e.push(ju("and"));
5846
5846
  }
5847
5847
  };
5848
5848
  var rd = [
@@ -5854,10 +5854,10 @@ var rd = [
5854
5854
  ">",
5855
5855
  "in"
5856
5856
  ];
5857
- V.prototype.parseComparison = function(e) {
5858
- for (this.parseAddSub(e); this.accept(B, rd);) {
5857
+ nd.prototype.parseComparison = function(e) {
5858
+ for (this.parseAddSub(e); this.accept(V, rd);) {
5859
5859
  var t = this.current;
5860
- this.parseAddSub(e), e.push(Mu(t.value));
5860
+ this.parseAddSub(e), e.push(ju(t.value));
5861
5861
  }
5862
5862
  };
5863
5863
  var id = [
@@ -5865,10 +5865,10 @@ var id = [
5865
5865
  "-",
5866
5866
  "||"
5867
5867
  ];
5868
- V.prototype.parseAddSub = function(e) {
5869
- for (this.parseTerm(e); this.accept(B, id);) {
5868
+ nd.prototype.parseAddSub = function(e) {
5869
+ for (this.parseTerm(e); this.accept(V, id);) {
5870
5870
  var t = this.current;
5871
- this.parseTerm(e), e.push(Mu(t.value));
5871
+ this.parseTerm(e), e.push(ju(t.value));
5872
5872
  }
5873
5873
  };
5874
5874
  var ad = [
@@ -5876,58 +5876,58 @@ var ad = [
5876
5876
  "/",
5877
5877
  "%"
5878
5878
  ];
5879
- V.prototype.parseTerm = function(e) {
5880
- for (this.parseFactor(e); this.accept(B, ad);) {
5879
+ nd.prototype.parseTerm = function(e) {
5880
+ for (this.parseFactor(e); this.accept(V, ad);) {
5881
5881
  var t = this.current;
5882
- this.parseFactor(e), e.push(Mu(t.value));
5882
+ this.parseFactor(e), e.push(ju(t.value));
5883
5883
  }
5884
- }, V.prototype.parseFactor = function(e) {
5884
+ }, nd.prototype.parseFactor = function(e) {
5885
5885
  var t = this.tokens.unaryOps;
5886
5886
  function n(e) {
5887
5887
  return e.value in t;
5888
5888
  }
5889
- if (this.save(), this.accept(B, n)) {
5889
+ if (this.save(), this.accept(V, n)) {
5890
5890
  if (this.current.value !== "-" && this.current.value !== "+") {
5891
- if (this.nextToken.type === Yu && this.nextToken.value === "(") {
5891
+ if (this.nextToken.type === Ju && this.nextToken.value === "(") {
5892
5892
  this.restore(), this.parseExponential(e);
5893
5893
  return;
5894
- } else if (this.nextToken.type === $u || this.nextToken.type === Zu || this.nextToken.type === Ku || this.nextToken.type === Yu && this.nextToken.value === ")") {
5894
+ } else if (this.nextToken.type === Qu || this.nextToken.type === Xu || this.nextToken.type === Gu || this.nextToken.type === Ju && this.nextToken.value === ")") {
5895
5895
  this.restore(), this.parseAtom(e);
5896
5896
  return;
5897
5897
  }
5898
5898
  }
5899
5899
  var r = this.current;
5900
- this.parseFactor(e), e.push(ju(r.value));
5900
+ this.parseFactor(e), e.push(Au(r.value));
5901
5901
  } else this.parseExponential(e);
5902
- }, V.prototype.parseExponential = function(e) {
5903
- for (this.parsePostfixExpression(e); this.accept(B, "^");) this.parseFactor(e), e.push(Mu("^"));
5904
- }, V.prototype.parsePostfixExpression = function(e) {
5905
- for (this.parseFunctionCall(e); this.accept(B, "!");) e.push(ju("!"));
5906
- }, V.prototype.parseFunctionCall = function(e) {
5902
+ }, nd.prototype.parseExponential = function(e) {
5903
+ for (this.parsePostfixExpression(e); this.accept(V, "^");) this.parseFactor(e), e.push(ju("^"));
5904
+ }, nd.prototype.parsePostfixExpression = function(e) {
5905
+ for (this.parseFunctionCall(e); this.accept(V, "!");) e.push(Au("!"));
5906
+ }, nd.prototype.parseFunctionCall = function(e) {
5907
5907
  var t = this.tokens.unaryOps;
5908
5908
  function n(e) {
5909
5909
  return e.value in t;
5910
5910
  }
5911
- if (this.accept(B, n)) {
5911
+ if (this.accept(V, n)) {
5912
5912
  var r = this.current;
5913
- this.parseAtom(e), e.push(ju(r.value));
5914
- } else for (this.parseMemberExpression(e); this.accept(Yu, "(");) if (this.accept(Yu, ")")) e.push(new z(wu, 0));
5913
+ this.parseAtom(e), e.push(Au(r.value));
5914
+ } else for (this.parseMemberExpression(e); this.accept(Ju, "(");) if (this.accept(Ju, ")")) e.push(new B(Cu, 0));
5915
5915
  else {
5916
5916
  var i = this.parseArgumentList(e);
5917
- e.push(new z(wu, i));
5917
+ e.push(new B(Cu, i));
5918
5918
  }
5919
- }, V.prototype.parseArgumentList = function(e) {
5920
- for (var t = 0; !this.accept(Yu, ")");) for (this.parseExpression(e), ++t; this.accept(Zu);) this.parseExpression(e), ++t;
5919
+ }, nd.prototype.parseArgumentList = function(e) {
5920
+ for (var t = 0; !this.accept(Ju, ")");) for (this.parseExpression(e), ++t; this.accept(Xu);) this.parseExpression(e), ++t;
5921
5921
  return t;
5922
- }, V.prototype.parseMemberExpression = function(e) {
5923
- for (this.parseAtom(e); this.accept(B, ".") || this.accept(Xu, "[");) {
5922
+ }, nd.prototype.parseMemberExpression = function(e) {
5923
+ for (this.parseAtom(e); this.accept(V, ".") || this.accept(Yu, "[");) {
5924
5924
  var t = this.current;
5925
5925
  if (t.value === ".") {
5926
5926
  if (!this.allowMemberAccess) throw Error("unexpected \".\", member access is not permitted");
5927
- this.expect(Qu), e.push(new z(Ou, this.current.value));
5927
+ this.expect(Zu), e.push(new B(Du, this.current.value));
5928
5928
  } else if (t.value === "[") {
5929
5929
  if (!this.tokens.isOperatorEnabled("[")) throw Error("unexpected \"[]\", arrays are disabled");
5930
- this.parseExpression(e), this.expect(Xu, "]"), e.push(Mu("["));
5930
+ this.parseExpression(e), this.expect(Yu, "]"), e.push(ju("["));
5931
5931
  } else throw Error("unexpected symbol: " + t.value);
5932
5932
  }
5933
5933
  };
@@ -5974,7 +5974,7 @@ function yd(e, t) {
5974
5974
  return !!(e || t);
5975
5975
  }
5976
5976
  function bd(e, t) {
5977
- return Uu(t, e);
5977
+ return Hu(t, e);
5978
5978
  }
5979
5979
  function xd(e) {
5980
5980
  return (Math.exp(e) - Math.exp(-e)) / 2;
@@ -6209,8 +6209,8 @@ function rf(e) {
6209
6209
  };
6210
6210
  }
6211
6211
  rf.prototype.parse = function(e) {
6212
- var t = [], n = new V(this, new td(this, e), { allowMemberAccess: this.options.allowMemberAccess });
6213
- return n.parseExpression(t), n.expect(Ku, "EOF"), new Gu(t, this);
6212
+ var t = [], n = new nd(this, new ed(this, e), { allowMemberAccess: this.options.allowMemberAccess });
6213
+ return n.parseExpression(t), n.expect(Gu, "EOF"), new Wu(t, this);
6214
6214
  }, rf.prototype.evaluate = function(e, t) {
6215
6215
  return this.parse(e).evaluate(t);
6216
6216
  };
@@ -46856,7 +46856,7 @@ function Lw() {
46856
46856
  }
46857
46857
  cf(), lw(), uw(), dw();
46858
46858
  var Rw = (e) => !!(Array.isArray(e) && a(e.length) && e.length > 0 && 0 in e);
46859
- P.TEXT, P.FULL_NAME, P.EMAILS, P.ADDRESS, P.LINKS, P.PHONES, P.RICH_TEXT, P.UUID, Object.keys(_u).reduce((e, t) => {
46859
+ F.TEXT, F.FULL_NAME, F.EMAILS, F.ADDRESS, F.LINKS, F.PHONES, F.RICH_TEXT, F.UUID, Object.keys(gu).reduce((e, t) => {
46860
46860
  let n = (t.split("-")[0] ?? t).toLowerCase();
46861
46861
  return (!e.has(n) || t === "en") && e.set(n, t), e;
46862
46862
  }, /* @__PURE__ */ new Map());
@@ -48184,114 +48184,114 @@ var uE = (e) => {
48184
48184
  } catch {}
48185
48185
  throw Error(`Cannot parse date string as PlainDate : "${e}"`);
48186
48186
  };
48187
- P.ADDRESS, P.ARRAY, P.BOOLEAN, P.CURRENCY, P.DATE, P.DATE_TIME, P.EMAILS, P.FILES, P.FULL_NAME, P.LINKS, P.MORPH_RELATION, P.MULTI_SELECT, P.NUMBER, P.PHONES, P.RAW_JSON, P.RELATION, P.RICH_TEXT, P.SELECT, P.TEXT, P.UUID, P.NUMBER, P.NUMERIC, P.CURRENCY, P.RATING, P.POSITION;
48188
- var dE = (e) => e === P.SELECT || e === P.MULTI_SELECT;
48189
- P.RELATION, P.MORPH_RELATION, P.TEXT, P.RICH_TEXT, Object.entries(Ul).map(([e, { label: t }]) => ({
48187
+ F.ADDRESS, F.ARRAY, F.BOOLEAN, F.CURRENCY, F.DATE, F.DATE_TIME, F.EMAILS, F.FILES, F.FULL_NAME, F.LINKS, F.MORPH_RELATION, F.MULTI_SELECT, F.NUMBER, F.PHONES, F.RAW_JSON, F.RELATION, F.RICH_TEXT, F.SELECT, F.TEXT, F.UUID, F.NUMBER, F.NUMERIC, F.CURRENCY, F.RATING, F.POSITION;
48188
+ var dE = (e) => e === F.SELECT || e === F.MULTI_SELECT;
48189
+ F.RELATION, F.MORPH_RELATION, F.TEXT, F.RICH_TEXT, Object.entries(Hl).map(([e, { label: t }]) => ({
48190
48190
  value: e,
48191
48191
  label: `${t} (${e})`
48192
48192
  }));
48193
- var fE = [F.IS_EMPTY, F.IS_NOT_EMPTY];
48193
+ var fE = [I.IS_EMPTY, I.IS_NOT_EMPTY];
48194
48194
  [
48195
- F.IS,
48196
- F.IS_NOT,
48195
+ I.IS,
48196
+ I.IS_NOT,
48197
48197
  ...fE
48198
48198
  ], [
48199
- F.GREATER_THAN_OR_EQUAL,
48200
- F.LESS_THAN_OR_EQUAL,
48201
- F.IS,
48202
- F.IS_NOT,
48199
+ I.GREATER_THAN_OR_EQUAL,
48200
+ I.LESS_THAN_OR_EQUAL,
48201
+ I.IS,
48202
+ I.IS_NOT,
48203
48203
  ...fE
48204
48204
  ];
48205
- var pE = [F.IS_EMPTY, F.IS_NOT_EMPTY], mE = [F.IS, F.IS_NOT];
48205
+ var pE = [I.IS_EMPTY, I.IS_NOT_EMPTY], mE = [I.IS, I.IS_NOT];
48206
48206
  [
48207
- F.CONTAINS,
48208
- F.DOES_NOT_CONTAIN,
48209
- F.IS,
48210
- F.IS_NOT,
48207
+ I.CONTAINS,
48208
+ I.DOES_NOT_CONTAIN,
48209
+ I.IS,
48210
+ I.IS_NOT,
48211
48211
  ...pE
48212
48212
  ], [
48213
- F.CONTAINS,
48214
- F.DOES_NOT_CONTAIN,
48213
+ I.CONTAINS,
48214
+ I.DOES_NOT_CONTAIN,
48215
48215
  ...pE
48216
48216
  ], [
48217
- F.CONTAINS,
48218
- F.DOES_NOT_CONTAIN,
48217
+ I.CONTAINS,
48218
+ I.DOES_NOT_CONTAIN,
48219
48219
  ...pE
48220
48220
  ], [
48221
- F.CONTAINS,
48222
- F.DOES_NOT_CONTAIN,
48221
+ I.CONTAINS,
48222
+ I.DOES_NOT_CONTAIN,
48223
48223
  ...pE
48224
48224
  ], [
48225
- F.CONTAINS,
48226
- F.DOES_NOT_CONTAIN,
48225
+ I.CONTAINS,
48226
+ I.DOES_NOT_CONTAIN,
48227
48227
  ...pE
48228
48228
  ], [
48229
- F.CONTAINS,
48230
- F.DOES_NOT_CONTAIN,
48229
+ I.CONTAINS,
48230
+ I.DOES_NOT_CONTAIN,
48231
48231
  ...pE
48232
48232
  ], [
48233
- F.GREATER_THAN_OR_EQUAL,
48234
- F.LESS_THAN_OR_EQUAL,
48233
+ I.GREATER_THAN_OR_EQUAL,
48234
+ I.LESS_THAN_OR_EQUAL,
48235
48235
  ...pE
48236
48236
  ], [
48237
- F.IS,
48238
- F.IS_NOT,
48239
- F.GREATER_THAN_OR_EQUAL,
48240
- F.LESS_THAN_OR_EQUAL,
48237
+ I.IS,
48238
+ I.IS_NOT,
48239
+ I.GREATER_THAN_OR_EQUAL,
48240
+ I.LESS_THAN_OR_EQUAL,
48241
48241
  ...pE
48242
48242
  ], [
48243
- F.CONTAINS,
48244
- F.DOES_NOT_CONTAIN,
48243
+ I.CONTAINS,
48244
+ I.DOES_NOT_CONTAIN,
48245
48245
  ...pE
48246
48246
  ], [
48247
- F.CONTAINS,
48248
- F.DOES_NOT_CONTAIN,
48247
+ I.CONTAINS,
48248
+ I.DOES_NOT_CONTAIN,
48249
48249
  ...pE
48250
48250
  ], [
48251
- F.IS,
48252
- F.IS_RELATIVE,
48253
- F.IS_IN_PAST,
48254
- F.IS_IN_FUTURE,
48255
- F.IS_TODAY,
48256
- F.IS_BEFORE,
48257
- F.IS_AFTER,
48251
+ I.IS,
48252
+ I.IS_RELATIVE,
48253
+ I.IS_IN_PAST,
48254
+ I.IS_IN_FUTURE,
48255
+ I.IS_TODAY,
48256
+ I.IS_BEFORE,
48257
+ I.IS_AFTER,
48258
48258
  ...pE
48259
48259
  ], [
48260
- F.IS,
48261
- F.IS_RELATIVE,
48262
- F.IS_IN_PAST,
48263
- F.IS_IN_FUTURE,
48264
- F.IS_TODAY,
48265
- F.IS_BEFORE,
48266
- F.IS_AFTER,
48260
+ I.IS,
48261
+ I.IS_RELATIVE,
48262
+ I.IS_IN_PAST,
48263
+ I.IS_IN_FUTURE,
48264
+ I.IS_TODAY,
48265
+ I.IS_BEFORE,
48266
+ I.IS_AFTER,
48267
48267
  ...pE
48268
48268
  ], [
48269
- F.IS,
48270
- F.IS_NOT,
48271
- F.GREATER_THAN_OR_EQUAL,
48272
- F.LESS_THAN_OR_EQUAL,
48269
+ I.IS,
48270
+ I.IS_NOT,
48271
+ I.GREATER_THAN_OR_EQUAL,
48272
+ I.LESS_THAN_OR_EQUAL,
48273
48273
  ...pE
48274
48274
  ], [...mE, ...pE], [
48275
- F.CONTAINS,
48276
- F.DOES_NOT_CONTAIN,
48275
+ I.CONTAINS,
48276
+ I.DOES_NOT_CONTAIN,
48277
48277
  ...pE
48278
48278
  ], [
48279
- F.IS,
48280
- F.IS_NOT,
48279
+ I.IS,
48280
+ I.IS_NOT,
48281
48281
  ...pE
48282
48282
  ], [
48283
- F.CONTAINS,
48284
- F.DOES_NOT_CONTAIN,
48283
+ I.CONTAINS,
48284
+ I.DOES_NOT_CONTAIN,
48285
48285
  ...pE
48286
48286
  ], [
48287
- F.CONTAINS,
48288
- F.DOES_NOT_CONTAIN,
48287
+ I.CONTAINS,
48288
+ I.DOES_NOT_CONTAIN,
48289
48289
  ...pE
48290
- ], F.IS, F.VECTOR_SEARCH, [
48291
- F.IS,
48292
- F.IS_NOT,
48290
+ ], I.IS, I.VECTOR_SEARCH, [
48291
+ I.IS,
48292
+ I.IS_NOT,
48293
48293
  ...pE
48294
- ], F.IS, F.IS_NOT, F.IS_EMPTY, F.IS_NOT_EMPTY;
48294
+ ], I.IS, I.IS_NOT, I.IS_EMPTY, I.IS_NOT_EMPTY;
48295
48295
  var hE = (e) => /^{{[^{}]+}}$/.test(e), gE = D().transform((e, t) => {
48296
48296
  if (e === "") return [];
48297
48297
  if (hE(e)) return [e];
@@ -48303,7 +48303,7 @@ var hE = (e) => /^{{[^{}]+}}$/.test(e), gE = D().transform((e, t) => {
48303
48303
  message: e.message
48304
48304
  }), ot;
48305
48305
  }
48306
- }).refine((e) => Array.isArray(e) && e.every((e) => typeof e == "string"), { error: "Expected an array of strings" }), _E = rl((e) => {
48306
+ }).refine((e) => Array.isArray(e) && e.every((e) => typeof e == "string"), { error: "Expected an array of strings" }), _E = nl((e) => {
48307
48307
  try {
48308
48308
  if (typeof e == "string") {
48309
48309
  if (hE(e)) return [e];
@@ -48318,7 +48318,7 @@ var hE = (e) => /^{{[^{}]+}}$/.test(e), gE = D().transform((e, t) => {
48318
48318
  } catch {
48319
48319
  return [];
48320
48320
  }
48321
- }, A(D().refine((e) => du(e) || hE(e), "Must be a valid UUID or a variable with {{ }} syntax")));
48321
+ }, A(D().refine((e) => hu(e) || hE(e), "Must be a valid UUID or a variable with {{ }} syntax")));
48322
48322
  _E.catch([]);
48323
48323
  var vE = j({
48324
48324
  isCurrentWorkspaceMemberSelected: k().optional(),
@@ -48346,7 +48346,7 @@ var SE = (e, t) => D().transform((n, r) => {
48346
48346
  }
48347
48347
  });
48348
48348
  SE((e) => ow.PlainDate.from(e), "Expected an ISO date, e.g. \"2026-01-31\""), SE((e) => ow.Instant.from(e), "Expected an ISO date time, e.g. \"2026-01-31T00:00:00Z\""), SE((e) => e.includes("T") ? ow.Instant.from(e) : ow.PlainDate.from(e), "Expected an ISO date or date time");
48349
- var CE = kc(["true", "false"]).transform((e) => e === "true");
48349
+ var CE = N(["true", "false"]).transform((e) => e === "true");
48350
48350
  D().transform((e, t) => {
48351
48351
  try {
48352
48352
  return JSON.parse(e);
@@ -48356,16 +48356,16 @@ D().transform((e, t) => {
48356
48356
  message: e.message
48357
48357
  }), ot;
48358
48358
  }
48359
- }).pipe(A(kc(pl)));
48360
- var wE = kc([
48361
- yl.MONDAY,
48362
- yl.SATURDAY,
48363
- yl.SUNDAY
48364
- ]), TE = yc([ol().int().positive(), N("undefined")]).transform((e) => e === "undefined" ? void 0 : e), EE = kc([
48359
+ }).pipe(A(N(fl)));
48360
+ var wE = N([
48361
+ vl.MONDAY,
48362
+ vl.SATURDAY,
48363
+ vl.SUNDAY
48364
+ ]), TE = yc([al().int().positive(), P("undefined")]).transform((e) => e === "undefined" ? void 0 : e), EE = N([
48365
48365
  "NEXT",
48366
48366
  "THIS",
48367
48367
  "PAST"
48368
- ]), DE = kc([
48368
+ ]), DE = N([
48369
48369
  "SECOND",
48370
48370
  "MINUTE",
48371
48371
  "HOUR",
@@ -48392,7 +48392,7 @@ D().transform((e, n) => {
48392
48392
  firstDayOfTheWeek: l
48393
48393
  });
48394
48394
  return u.success ? u.data : (n.addIssue(`Cannot parse stringified inline relative date filter, value : "${e}"`), ot);
48395
- }), yE.refine(({ selectedRecordIds: e }) => _E.safeParse(e).success, "Expected selectedRecordIds to contain UUIDs or variables").refine(({ selectedRecordIds: e, isCurrentWorkspaceMemberSelected: t, isCurrentRecordSelected: n }) => e.length > 0 || t === !0 || n === !0, "Expected at least one selected record").or(_E.refine((e) => e.length > 0, "Expected at least one selected record")), bE.refine((e) => gE.safeParse(e).success, "Expected an array of option values"), F.CONTAINS, F.DOES_NOT_CONTAIN, F.IS, F.IS_NOT, F.IS, F.IS_NOT, F.GREATER_THAN_OR_EQUAL, F.LESS_THAN_OR_EQUAL, F.CONTAINS, F.DOES_NOT_CONTAIN, F.IS, F.IS_NOT, F.IS, F.IS_BEFORE, F.IS_AFTER, F.IS_RELATIVE, F.IS, F.IS_BEFORE, F.IS_AFTER, F.IS_RELATIVE, F.IS, F.IS_NOT, F.IS, F.IS_NOT, F.IS, F.VECTOR_SEARCH, F.IS, F.IS_NOT, F.IS, F.IS_NOT, F.IS, F.IS_NOT, F.CONTAINS, F.DOES_NOT_CONTAIN, F.IS_RELATIVE, F.VECTOR_SEARCH, CE.catch(!1), P.FULL_NAME, P.ADDRESS, P.LINKS, P.ACTOR, P.EMAILS, P.PHONES, Ll.Is, F.IS, Ll.IsNotNull, F.IS_NOT_NULL, Ll.IsNot, F.IS_NOT, Ll.LessThanOrEqual, F.LESS_THAN_OR_EQUAL, Ll.GreaterThanOrEqual, F.GREATER_THAN_OR_EQUAL, Ll.IsBefore, F.IS_BEFORE, Ll.IsAfter, F.IS_AFTER, Ll.Contains, F.CONTAINS, Ll.DoesNotContain, F.DOES_NOT_CONTAIN, Ll.IsEmpty, F.IS_EMPTY, Ll.IsNotEmpty, F.IS_NOT_EMPTY, Ll.IsRelative, F.IS_RELATIVE, Ll.IsInPast, F.IS_IN_PAST, Ll.IsInFuture, F.IS_IN_FUTURE, Ll.IsToday, F.IS_TODAY, F.IS, F.IS, F.IS_NOT_NULL, F.IS_NOT_NULL, F.IS_NOT, F.IS_NOT, F.LESS_THAN_OR_EQUAL, F.LESS_THAN_OR_EQUAL, F.GREATER_THAN_OR_EQUAL, F.GREATER_THAN_OR_EQUAL, F.IS_BEFORE, F.IS_BEFORE, F.IS_AFTER, F.IS_AFTER, F.CONTAINS, F.CONTAINS, F.DOES_NOT_CONTAIN, F.DOES_NOT_CONTAIN, F.IS_EMPTY, F.IS_EMPTY, F.IS_NOT_EMPTY, F.IS_NOT_EMPTY, F.IS_RELATIVE, F.IS_RELATIVE, F.IS_IN_PAST, F.IS_IN_PAST, F.IS_IN_FUTURE, F.IS_IN_FUTURE, F.IS_TODAY, F.IS_TODAY, F.VECTOR_SEARCH, F.VECTOR_SEARCH;
48395
+ }), yE.refine(({ selectedRecordIds: e }) => _E.safeParse(e).success, "Expected selectedRecordIds to contain UUIDs or variables").refine(({ selectedRecordIds: e, isCurrentWorkspaceMemberSelected: t, isCurrentRecordSelected: n }) => e.length > 0 || t === !0 || n === !0, "Expected at least one selected record").or(_E.refine((e) => e.length > 0, "Expected at least one selected record")), bE.refine((e) => gE.safeParse(e).success, "Expected an array of option values"), I.CONTAINS, I.DOES_NOT_CONTAIN, I.IS, I.IS_NOT, I.IS, I.IS_NOT, I.GREATER_THAN_OR_EQUAL, I.LESS_THAN_OR_EQUAL, I.CONTAINS, I.DOES_NOT_CONTAIN, I.IS, I.IS_NOT, I.IS, I.IS_BEFORE, I.IS_AFTER, I.IS_RELATIVE, I.IS, I.IS_BEFORE, I.IS_AFTER, I.IS_RELATIVE, I.IS, I.IS_NOT, I.IS, I.IS_NOT, I.IS, I.VECTOR_SEARCH, I.IS, I.IS_NOT, I.IS, I.IS_NOT, I.IS, I.IS_NOT, I.CONTAINS, I.DOES_NOT_CONTAIN, I.IS_RELATIVE, I.VECTOR_SEARCH, CE.catch(!1), F.FULL_NAME, F.ADDRESS, F.LINKS, F.ACTOR, F.EMAILS, F.PHONES, Il.Is, I.IS, Il.IsNotNull, I.IS_NOT_NULL, Il.IsNot, I.IS_NOT, Il.LessThanOrEqual, I.LESS_THAN_OR_EQUAL, Il.GreaterThanOrEqual, I.GREATER_THAN_OR_EQUAL, Il.IsBefore, I.IS_BEFORE, Il.IsAfter, I.IS_AFTER, Il.Contains, I.CONTAINS, Il.DoesNotContain, I.DOES_NOT_CONTAIN, Il.IsEmpty, I.IS_EMPTY, Il.IsNotEmpty, I.IS_NOT_EMPTY, Il.IsRelative, I.IS_RELATIVE, Il.IsInPast, I.IS_IN_PAST, Il.IsInFuture, I.IS_IN_FUTURE, Il.IsToday, I.IS_TODAY, I.IS, I.IS, I.IS_NOT_NULL, I.IS_NOT_NULL, I.IS_NOT, I.IS_NOT, I.LESS_THAN_OR_EQUAL, I.LESS_THAN_OR_EQUAL, I.GREATER_THAN_OR_EQUAL, I.GREATER_THAN_OR_EQUAL, I.IS_BEFORE, I.IS_BEFORE, I.IS_AFTER, I.IS_AFTER, I.CONTAINS, I.CONTAINS, I.DOES_NOT_CONTAIN, I.DOES_NOT_CONTAIN, I.IS_EMPTY, I.IS_EMPTY, I.IS_NOT_EMPTY, I.IS_NOT_EMPTY, I.IS_RELATIVE, I.IS_RELATIVE, I.IS_IN_PAST, I.IS_IN_PAST, I.IS_IN_FUTURE, I.IS_IN_FUTURE, I.IS_TODAY, I.IS_TODAY, I.VECTOR_SEARCH, I.VECTOR_SEARCH;
48396
48396
  var AE = (e) => {
48397
48397
  try {
48398
48398
  return new URL(e);
@@ -48472,58 +48472,58 @@ var ME = [
48472
48472
  CODE: "code",
48473
48473
  TEXT_STYLE: "textStyle"
48474
48474
  }, RE = Dc(D().regex(/^[a-zA-Z]+$/).max(40), D().max(400)).meta({ id: "emailStyleAttribute" }).optional(), zE = xc("type", [
48475
- M({ type: N(LE.BOLD) }),
48476
- M({ type: N(LE.ITALIC) }),
48477
- M({ type: N(LE.UNDERLINE) }),
48478
- M({ type: N(LE.STRIKE) }),
48475
+ M({ type: P(LE.BOLD) }),
48476
+ M({ type: P(LE.ITALIC) }),
48477
+ M({ type: P(LE.UNDERLINE) }),
48478
+ M({ type: P(LE.STRIKE) }),
48479
48479
  M({
48480
- type: N(LE.LINK),
48480
+ type: P(LE.LINK),
48481
48481
  attrs: M({ href: D().max(4e3) }).optional()
48482
48482
  })
48483
48483
  ]), BE = xc("type", [
48484
48484
  M({
48485
- type: N(q.TEXT),
48485
+ type: P(q.TEXT),
48486
48486
  text: D().min(1),
48487
48487
  marks: A(zE).optional()
48488
48488
  }),
48489
48489
  M({
48490
- type: N(q.VARIABLE_TAG),
48490
+ type: P(q.VARIABLE_TAG),
48491
48491
  attrs: M({ variable: D().nullable() })
48492
48492
  }),
48493
- M({ type: N(q.HARD_BREAK) })
48494
- ]).meta({ id: "emailInlineNode" }), VE = A($c(() => ZE)), HE = M({
48495
- type: N(q.PARAGRAPH),
48493
+ M({ type: P(q.HARD_BREAK) })
48494
+ ]).meta({ id: "emailInlineNode" }), VE = A(Qc(() => ZE)), HE = M({
48495
+ type: P(q.PARAGRAPH),
48496
48496
  attrs: M({ style: RE.nullable() }).optional(),
48497
48497
  content: A(BE).optional()
48498
48498
  }).meta({ id: "emailParagraphNode" }), UE = M({
48499
- type: N(q.HEADING),
48499
+ type: P(q.HEADING),
48500
48500
  attrs: M({
48501
48501
  level: yc([
48502
- N(1),
48503
- N(2),
48504
- N(3)
48502
+ P(1),
48503
+ P(2),
48504
+ P(3)
48505
48505
  ]),
48506
48506
  style: RE.nullable()
48507
48507
  }),
48508
48508
  content: A(BE).optional()
48509
48509
  }), WE = M({
48510
- type: N(q.LIST_ITEM),
48510
+ type: P(q.LIST_ITEM),
48511
48511
  attrs: M({}).optional(),
48512
48512
  content: VE.min(1)
48513
48513
  }).meta({ id: "emailListItemNode" }), GE = M({
48514
- type: N(q.BULLET_LIST),
48514
+ type: P(q.BULLET_LIST),
48515
48515
  attrs: M({}).optional(),
48516
48516
  content: A(WE).min(1)
48517
48517
  }), KE = M({
48518
- type: N(q.ORDERED_LIST),
48518
+ type: P(q.ORDERED_LIST),
48519
48519
  attrs: M({}).optional(),
48520
48520
  content: A(WE).min(1)
48521
48521
  }), qE = M({
48522
- type: N(q.BLOCKQUOTE),
48522
+ type: P(q.BLOCKQUOTE),
48523
48523
  attrs: M({ style: RE.nullable() }).optional(),
48524
48524
  content: A(HE).min(1)
48525
48525
  }), JE = M({
48526
- type: N(q.IMAGE),
48526
+ type: P(q.IMAGE),
48527
48527
  attrs: M({
48528
48528
  fileId: Bs().nullable().optional(),
48529
48529
  src: D().max(4e3),
@@ -48534,11 +48534,11 @@ var ME = [
48534
48534
  href: D().max(4e3).nullable().optional()
48535
48535
  })
48536
48536
  }), YE = M({
48537
- type: N(q.SECTION),
48537
+ type: P(q.SECTION),
48538
48538
  attrs: M({ style: RE }),
48539
48539
  content: VE.min(1)
48540
48540
  }), XE = M({
48541
- type: N(q.COLUMN),
48541
+ type: P(q.COLUMN),
48542
48542
  attrs: M({ style: RE }),
48543
48543
  content: VE.min(1)
48544
48544
  }), ZE = xc("type", [
@@ -48550,37 +48550,37 @@ var ME = [
48550
48550
  JE,
48551
48551
  YE,
48552
48552
  M({
48553
- type: N(q.COLUMNS),
48553
+ type: P(q.COLUMNS),
48554
48554
  attrs: M({ style: RE }),
48555
48555
  content: A(XE).min(2).max(4)
48556
48556
  }),
48557
48557
  M({
48558
- type: N(q.BUTTON),
48558
+ type: P(q.BUTTON),
48559
48559
  attrs: M({
48560
48560
  href: D().max(4e3).nullable(),
48561
48561
  style: RE
48562
48562
  }),
48563
48563
  content: A(M({
48564
- type: N(q.TEXT),
48564
+ type: P(q.TEXT),
48565
48565
  text: D().min(1)
48566
48566
  })).optional()
48567
48567
  }),
48568
48568
  M({
48569
- type: N(q.DIVIDER),
48569
+ type: P(q.DIVIDER),
48570
48570
  attrs: M({ style: RE })
48571
48571
  }),
48572
48572
  M({
48573
- type: N(q.HTML),
48573
+ type: P(q.HTML),
48574
48574
  attrs: M({ html: D().max(1e5) })
48575
48575
  }),
48576
48576
  M({
48577
- type: N(q.HTML_DOCUMENT),
48577
+ type: P(q.HTML_DOCUMENT),
48578
48578
  attrs: M({ html: D() })
48579
48579
  })
48580
48580
  ]).meta({ id: "emailBlockNode" }), QE = M({
48581
48581
  pageBackground: D().optional(),
48582
48582
  pagePadding: D().optional(),
48583
- textAlign: kc([
48583
+ textAlign: N([
48584
48584
  "left",
48585
48585
  "center",
48586
48586
  "right"
@@ -48594,25 +48594,25 @@ var ME = [
48594
48594
  borderColor: D().optional()
48595
48595
  });
48596
48596
  M({
48597
- type: N(q.DOCUMENT),
48597
+ type: P(q.DOCUMENT),
48598
48598
  attrs: M({
48599
48599
  schemaVersion: ac().min(1).max(1).optional(),
48600
48600
  canvasTheme: QE.nullable().optional()
48601
48601
  }).optional(),
48602
48602
  content: VE.optional()
48603
- }), LE.UNDERLINE, LE.BOLD, LE.ITALIC, LE.STRIKE, LE.LINK, LE.BOLD, LE.ITALIC, LE.UNDERLINE, LE.STRIKE, LE.LINK, q.DOCUMENT, q.PARAGRAPH, q.TEXT, q.HEADING, q.VARIABLE_TAG, q.IMAGE, q.BULLET_LIST, q.ORDERED_LIST, q.LIST_ITEM, q.BLOCKQUOTE, q.HARD_BREAK, q.SECTION, q.COLUMNS, q.COLUMN, q.BUTTON, q.DIVIDER, q.HTML, q.HTML_DOCUMENT, P.TEXT, P.NUMBER, P.BOOLEAN, P.DATE, P.DATE_TIME, P.SELECT, P.RATING, P.FULL_NAME;
48604
- var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = ac().min(0).max(8).nullable().optional(), nD = M({ indent: tD }).optional(), rD = D().max(IE).refine((e) => !n(e.trim()) || FE(e.trim()), { message: "Dangerous URL protocol" }), iD = xc("type", [
48605
- M({ type: N(LE.BOLD) }),
48606
- M({ type: N(LE.ITALIC) }),
48607
- M({ type: N(LE.UNDERLINE) }),
48608
- M({ type: N(LE.STRIKE) }),
48609
- M({ type: N(LE.CODE) }),
48603
+ }), LE.UNDERLINE, LE.BOLD, LE.ITALIC, LE.STRIKE, LE.LINK, LE.BOLD, LE.ITALIC, LE.UNDERLINE, LE.STRIKE, LE.LINK, q.DOCUMENT, q.PARAGRAPH, q.TEXT, q.HEADING, q.VARIABLE_TAG, q.IMAGE, q.BULLET_LIST, q.ORDERED_LIST, q.LIST_ITEM, q.BLOCKQUOTE, q.HARD_BREAK, q.SECTION, q.COLUMNS, q.COLUMN, q.BUTTON, q.DIVIDER, q.HTML, q.HTML_DOCUMENT, F.TEXT, F.NUMBER, F.BOOLEAN, F.DATE, F.DATE_TIME, F.SELECT, F.RATING, F.FULL_NAME;
48604
+ var $E = N(ME).nullable().optional(), eD = N(jE).nullable().optional(), tD = ac().min(0).max(8).nullable().optional(), nD = M({ indent: tD }).optional(), rD = D().max(IE).refine((e) => !n(e.trim()) || FE(e.trim()), { message: "Dangerous URL protocol" }), iD = xc("type", [
48605
+ M({ type: P(LE.BOLD) }),
48606
+ M({ type: P(LE.ITALIC) }),
48607
+ M({ type: P(LE.UNDERLINE) }),
48608
+ M({ type: P(LE.STRIKE) }),
48609
+ M({ type: P(LE.CODE) }),
48610
48610
  M({
48611
- type: N(LE.LINK),
48611
+ type: P(LE.LINK),
48612
48612
  attrs: M({ href: rD })
48613
48613
  }),
48614
48614
  M({
48615
- type: N(LE.TEXT_STYLE),
48615
+ type: P(LE.TEXT_STYLE),
48616
48616
  attrs: M({
48617
48617
  textColor: eD,
48618
48618
  backgroundColor: eD
@@ -48620,13 +48620,13 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48620
48620
  })
48621
48621
  ]), aD = xc("type", [
48622
48622
  M({
48623
- type: N(q.TEXT),
48623
+ type: P(q.TEXT),
48624
48624
  text: D().min(1),
48625
48625
  marks: A(iD).optional()
48626
48626
  }),
48627
- M({ type: N(q.HARD_BREAK) }),
48627
+ M({ type: P(q.HARD_BREAK) }),
48628
48628
  M({
48629
- type: N(q.MENTION_TAG),
48629
+ type: P(q.MENTION_TAG),
48630
48630
  attrs: M({
48631
48631
  recordId: D().nullable(),
48632
48632
  objectNameSingular: D().nullable(),
@@ -48634,15 +48634,15 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48634
48634
  imageUrl: D().nullable().optional()
48635
48635
  })
48636
48636
  })
48637
- ]), oD = A($c(() => TD)), sD = M({
48638
- type: N(q.PARAGRAPH),
48637
+ ]), oD = A(Qc(() => TD)), sD = M({
48638
+ type: P(q.PARAGRAPH),
48639
48639
  attrs: M({
48640
48640
  textAlign: $E,
48641
48641
  indent: tD
48642
48642
  }).optional(),
48643
48643
  content: A(aD).optional()
48644
48644
  }), cD = M({
48645
- type: N(q.HEADING),
48645
+ type: P(q.HEADING),
48646
48646
  attrs: M({
48647
48647
  level: ac().min(1).max(6),
48648
48648
  textAlign: $E,
@@ -48650,50 +48650,50 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48650
48650
  }),
48651
48651
  content: A(aD).optional()
48652
48652
  }), lD = M({
48653
- type: N(q.LIST_ITEM),
48653
+ type: P(q.LIST_ITEM),
48654
48654
  content: oD.min(1)
48655
48655
  }), uD = M({
48656
- type: N(q.BULLET_LIST),
48656
+ type: P(q.BULLET_LIST),
48657
48657
  attrs: nD,
48658
48658
  content: A(lD).min(1)
48659
48659
  }), dD = M({
48660
- type: N(q.ORDERED_LIST),
48660
+ type: P(q.ORDERED_LIST),
48661
48661
  attrs: M({
48662
48662
  start: ac().optional(),
48663
48663
  indent: tD
48664
48664
  }).optional(),
48665
48665
  content: A(lD).min(1)
48666
48666
  }), fD = M({
48667
- type: N(q.TASK_ITEM),
48667
+ type: P(q.TASK_ITEM),
48668
48668
  attrs: M({ checked: k() }),
48669
48669
  content: oD.min(1)
48670
48670
  }), pD = M({
48671
- type: N(q.TASK_LIST),
48671
+ type: P(q.TASK_LIST),
48672
48672
  attrs: nD,
48673
48673
  content: A(fD).min(1)
48674
48674
  }), mD = M({
48675
- type: N(q.BLOCKQUOTE),
48675
+ type: P(q.BLOCKQUOTE),
48676
48676
  attrs: nD,
48677
48677
  content: oD.min(1)
48678
48678
  }), hD = M({
48679
- type: N(q.TOGGLE),
48679
+ type: P(q.TOGGLE),
48680
48680
  attrs: M({
48681
48681
  id: D().nullable().optional(),
48682
48682
  indent: tD
48683
48683
  }).optional(),
48684
- content: Tc([xc("type", [sD, cD])], $c(() => TD))
48684
+ content: Tc([xc("type", [sD, cD])], Qc(() => TD))
48685
48685
  }), gD = M({
48686
- type: N(q.CODE_BLOCK),
48686
+ type: P(q.CODE_BLOCK),
48687
48687
  attrs: M({
48688
48688
  language: D().nullable(),
48689
48689
  indent: tD
48690
48690
  }).optional(),
48691
48691
  content: A(M({
48692
- type: N(q.TEXT),
48692
+ type: P(q.TEXT),
48693
48693
  text: D().min(1)
48694
48694
  })).optional()
48695
- }), _D = M({ type: N(q.DIVIDER) }), vD = M({
48696
- type: N(q.IMAGE),
48695
+ }), _D = M({ type: P(q.DIVIDER) }), vD = M({
48696
+ type: P(q.IMAGE),
48697
48697
  attrs: M({
48698
48698
  src: rD,
48699
48699
  href: rD.nullable().optional(),
@@ -48701,7 +48701,7 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48701
48701
  width: yc([D(), O()]).nullable().optional()
48702
48702
  })
48703
48703
  }), yD = M({
48704
- type: N(q.FILE),
48704
+ type: P(q.FILE),
48705
48705
  attrs: M({
48706
48706
  url: rD,
48707
48707
  name: D().nullable().optional()
@@ -48711,11 +48711,11 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48711
48711
  rowspan: ac().min(1).optional(),
48712
48712
  colwidth: A(O()).nullable().optional()
48713
48713
  }).optional(), xD = (e) => M({
48714
- type: N(e),
48714
+ type: P(e),
48715
48715
  attrs: bD,
48716
48716
  content: oD.min(1)
48717
48717
  }), SD = xD(q.TABLE_CELL), CD = xD(q.TABLE_HEADER), wD = M({
48718
- type: N(q.TABLE_ROW),
48718
+ type: P(q.TABLE_ROW),
48719
48719
  content: A(xc("type", [SD, CD])).min(1)
48720
48720
  }), TD = xc("type", [
48721
48721
  sD,
@@ -48730,13 +48730,13 @@ var $E = kc(ME).nullable().optional(), eD = kc(jE).nullable().optional(), tD = a
48730
48730
  vD,
48731
48731
  yD,
48732
48732
  M({
48733
- type: N(q.TABLE),
48733
+ type: P(q.TABLE),
48734
48734
  content: A(wD).min(1)
48735
48735
  })
48736
48736
  ]);
48737
48737
  M({
48738
- type: N(q.DOCUMENT),
48739
- attrs: M({ schemaVersion: N(1).optional() }).optional(),
48738
+ type: P(q.DOCUMENT),
48739
+ attrs: M({ schemaVersion: P(1).optional() }).optional(),
48740
48740
  content: oD.optional()
48741
48741
  });
48742
48742
  var ED = (e) => {
@@ -48829,22 +48829,22 @@ var MD = (e) => {
48829
48829
  } catch {
48830
48830
  return e;
48831
48831
  }
48832
- }, ND = ({ value: e, otherValue: t }) => s(e) && s(t) && Gw(t) ? MD(e) : e, PD = (e) => (t, n) => Zl(t) && Zl(n) && e(ND({
48832
+ }, ND = ({ value: e, otherValue: t }) => s(e) && s(t) && Gw(t) ? MD(e) : e, PD = (e) => (t, n) => Xl(t) && Xl(n) && e(ND({
48833
48833
  value: t,
48834
48834
  otherValue: n
48835
48835
  }), ND({
48836
48836
  value: n,
48837
48837
  otherValue: t
48838
48838
  }));
48839
- jD.binaryOps["<"] = PD((e, t) => e < t), jD.binaryOps["<="] = PD((e, t) => e <= t), jD.binaryOps[">"] = PD((e, t) => e > t), jD.binaryOps[">="] = PD((e, t) => e >= t), jD.binaryOps.in = (e, t) => Array.isArray(t) && t.includes(e), jD.functions = Object.fromEntries(Object.entries(eu).map(([e, { evaluate: t }]) => [e, t])), Ls({ pattern: en }).max(255);
48840
- var FD = (e) => Kl.includes(e), ID = /* @__PURE__ */ new Map();
48839
+ jD.binaryOps["<"] = PD((e, t) => e < t), jD.binaryOps["<="] = PD((e, t) => e <= t), jD.binaryOps[">"] = PD((e, t) => e > t), jD.binaryOps[">="] = PD((e, t) => e >= t), jD.binaryOps.in = (e, t) => Array.isArray(t) && t.includes(e), jD.functions = Object.fromEntries(Object.entries($l).map(([e, { evaluate: t }]) => [e, t])), Ls({ pattern: en }).max(255);
48840
+ var FD = (e) => Gl.includes(e), ID = /* @__PURE__ */ new Map();
48841
48841
  for (let e of Iw()) {
48842
48842
  let t = Lw(e), n = ID.get(t);
48843
48843
  n ? n.push(e) : ID.set(t, [e]);
48844
48844
  }
48845
- new Set(Iw()), I.TABLE, I.TABLE, I.KANBAN, I.KANBAN, I.CALENDAR, I.CALENDAR, I.LIST, I.LIST, I.FIELDS_WIDGET, I.FIELDS_WIDGET, I.TABLE_WIDGET, I.TABLE, I.KANBAN_WIDGET, I.KANBAN, I.LIST_WIDGET, I.LIST, I.CALENDAR_WIDGET, I.CALENDAR, I.FIELDS_WIDGET, I.TABLE_WIDGET, I.KANBAN_WIDGET, I.LIST_WIDGET, I.CALENDAR_WIDGET;
48845
+ new Set(Iw()), L.TABLE, L.TABLE, L.KANBAN, L.KANBAN, L.CALENDAR, L.CALENDAR, L.LIST, L.LIST, L.FIELDS_WIDGET, L.FIELDS_WIDGET, L.TABLE_WIDGET, L.TABLE, L.KANBAN_WIDGET, L.KANBAN, L.LIST_WIDGET, L.LIST, L.CALENDAR_WIDGET, L.CALENDAR, L.FIELDS_WIDGET, L.TABLE_WIDGET, L.KANBAN_WIDGET, L.LIST_WIDGET, L.CALENDAR_WIDGET;
48846
48846
  //#endregion
48847
- //#region ../twenty-shared/dist/validate-workflow-graph.util-DGfGZUaF.mjs
48847
+ //#region ../twenty-shared/dist/validate-workflow-graph.util-DUL0qsrn.mjs
48848
48848
  var LD = _c({
48849
48849
  objectUniversalIdentifier: D(),
48850
48850
  canReadObjectRecords: k().optional(),
@@ -48868,19 +48868,19 @@ var LD = _c({
48868
48868
  fieldPermissions: A(RD).optional(),
48869
48869
  permissionFlagUniversalIdentifiers: A(D()).optional()
48870
48870
  }).omit({ canAccessAllAgentChatChannels: !0 }), BD = j({
48871
- type: N("object"),
48871
+ type: P("object"),
48872
48872
  properties: Dc(D(), j({
48873
- type: kc([
48873
+ type: N([
48874
48874
  "string",
48875
48875
  "number",
48876
48876
  "boolean"
48877
48877
  ]),
48878
48878
  description: D().optional()
48879
- })).refine((e) => Object.keys(e).every(gu), { message: "Output field names can only contain letters, numbers, underscores, dots or hyphens (max 64 characters)" }),
48879
+ })).refine((e) => Object.keys(e).every(mu), { message: "Output field names can only contain letters, numbers, underscores, dots or hyphens (max 64 characters)" }),
48880
48880
  required: A(D()).optional(),
48881
- additionalProperties: N(!1).optional()
48882
- }), VD = xc("type", [j({ type: N("text") }), j({
48883
- type: N("json"),
48881
+ additionalProperties: P(!1).optional()
48882
+ }), VD = xc("type", [j({ type: P("text") }), j({
48883
+ type: P("json"),
48884
48884
  schema: BD
48885
48885
  })]), HD = "trigger", UD = (e) => {
48886
48886
  let t = [], n = "", r = !1, i = 0;
@@ -48922,9 +48922,9 @@ var KD = (e) => [...GD(e)], qD = (e, t) => {
48922
48922
  }
48923
48923
  return i[e.length][t.length];
48924
48924
  }, JD = (e) => {
48925
- if (!p(e) || !ll(e) || Array.isArray(e)) return !1;
48925
+ if (!p(e) || !cl(e) || Array.isArray(e)) return !1;
48926
48926
  let t = Object.values(e);
48927
- return t.length !== 0 && t.every((e) => p(e) && ll(e) && sl(e.isLeaf));
48927
+ return t.length !== 0 && t.every((e) => p(e) && cl(e) && ol(e.isLeaf));
48928
48928
  }, YD = (e, t = []) => {
48929
48929
  let n = [];
48930
48930
  if (!o(e)) return n;
@@ -48960,10 +48960,10 @@ var KD = (e) => [...GD(e)], qD = (e, t) => {
48960
48960
  }
48961
48961
  n = i.value;
48962
48962
  }
48963
- }, ZD = { found: !1 }, QD = (e) => Ql(e) && sl(e.isLeaf), $D = (e) => Ql(e) && e._outputSchemaType === "RECORD" && Ql(e.fields), eO = (e) => Ql(e) && !("_outputSchemaType" in e) && QD(e.first) && e.first.isLeaf === !1 && $D(e.first.value) && QD(e.totalCount), tO = (e) => ({
48963
+ }, ZD = { found: !1 }, QD = (e) => Zl(e) && ol(e.isLeaf), $D = (e) => Zl(e) && e._outputSchemaType === "RECORD" && Zl(e.fields), eO = (e) => Zl(e) && !("_outputSchemaType" in e) && QD(e.first) && e.first.isLeaf === !1 && $D(e.first.value) && QD(e.totalCount), tO = (e) => ({
48964
48964
  found: !0,
48965
- type: cl(e.type) ? e.type : void 0,
48966
- label: cl(e.label) ? e.label : void 0
48965
+ type: sl(e.type) ? e.type : void 0,
48966
+ label: sl(e.label) ? e.label : void 0
48967
48967
  }), nO = (e, t) => t.length === 0 ? tO(e) : oO(e.value, t), rO = (e, t) => {
48968
48968
  for (let n = 1; n <= t.length; n++) {
48969
48969
  let r = e[t.slice(0, n).join(".")];
@@ -48982,18 +48982,18 @@ var KD = (e) => [...GD(e)], qD = (e, t) => {
48982
48982
  let [n, ...r] = t;
48983
48983
  if (!p(n)) return ZD;
48984
48984
  let i = e[n];
48985
- return QD(i) ? nO(i, r) : p(i) ? r.length === 0 ? { found: !0 } : Ql(i) ? aO(i, r) : ZD : ZD;
48986
- }, oO = (e, t) => t.length === 0 || !Ql(e) ? ZD : $D(e) ? rO(e.fields, t) : eO(e) ? iO(e, t) : aO(e, t), sO = ({ schema: e, propertyPath: t }) => oO(e, t), cO = (e) => {
48985
+ return QD(i) ? nO(i, r) : p(i) ? r.length === 0 ? { found: !0 } : Zl(i) ? aO(i, r) : ZD : ZD;
48986
+ }, oO = (e, t) => t.length === 0 || !Zl(e) ? ZD : $D(e) ? rO(e.fields, t) : eO(e) ? iO(e, t) : aO(e, t), sO = ({ schema: e, propertyPath: t }) => oO(e, t), cO = (e) => {
48987
48987
  let t = [];
48988
48988
  for (let [n, r] of Object.entries(e)) if (QD(r)) {
48989
48989
  if (t.push(n), r.isLeaf) continue;
48990
48990
  let e = r.value;
48991
48991
  if ($D(e)) for (let r of cO(e.fields)) t.push(`${n}.${r}`);
48992
- else if (Ql(e)) for (let r of cO(e)) t.push(`${n}.${r}`);
48993
- } else if (p(r) && (t.push(n), Ql(r))) for (let e of cO(r)) t.push(`${n}.${e}`);
48992
+ else if (Zl(e)) for (let r of cO(e)) t.push(`${n}.${r}`);
48993
+ } else if (p(r) && (t.push(n), Zl(r))) for (let e of cO(r)) t.push(`${n}.${e}`);
48994
48994
  return t;
48995
48995
  }, lO = (e) => {
48996
- if (!Ql(e)) return [];
48996
+ if (!Zl(e)) return [];
48997
48997
  if ($D(e)) return cO(e.fields);
48998
48998
  if (eO(e)) {
48999
48999
  let t = [];
@@ -49004,7 +49004,7 @@ var KD = (e) => [...GD(e)], qD = (e, t) => {
49004
49004
  return p(e.all) && t.push("all"), t.push("totalCount"), t;
49005
49005
  }
49006
49006
  return cO(e);
49007
- }, uO = 3, dO = (e) => Ql(e) ? e._outputSchemaType === "RECORD" || Object.values(e).some((e) => Ql(e) && dO(e.value)) : !1, fO = (e, t) => t.map((t) => ({
49007
+ }, uO = 3, dO = (e) => Zl(e) ? e._outputSchemaType === "RECORD" || Object.values(e).some((e) => Zl(e) && dO(e.value)) : !1, fO = (e, t) => t.map((t) => ({
49008
49008
  candidate: t,
49009
49009
  distance: qD(e, t)
49010
49010
  })).filter(({ candidate: e, distance: t }) => t <= Math.ceil(e.length / 2)).sort((e, t) => e.distance - t.distance).slice(0, uO).map(({ candidate: e }) => e), pO = ({ schema: e, propertyPath: n, referencedStepId: r }) => {
@@ -49113,7 +49113,7 @@ var KD = (e) => [...GD(e)], qD = (e, t) => {
49113
49113
  input: M({}).describe("Input data for the workflow action. Structure depends on the action type."),
49114
49114
  outputSchema: M({}).describe("Schema defining the output data structure. This data can be referenced in subsequent steps using {{stepId.fieldName}}."),
49115
49115
  errorHandlingOptions: j({
49116
- retryOnFailure: j({ value: rl((e) => typeof e == "boolean" ? Number(e) : e, O().int().min(0).max(bO.length).describe(`How many times to retry the action if it fails, between 0 and ${bO.length}. 0 disables retries.`)) }),
49116
+ retryOnFailure: j({ value: nl((e) => typeof e == "boolean" ? Number(e) : e, O().int().min(0).max(bO.length).describe(`How many times to retry the action if it fails, between 0 and ${bO.length}. 0 disables retries.`)) }),
49117
49117
  continueOnFailure: j({ value: k().describe("Whether to continue to the next step if this action fails.") })
49118
49118
  })
49119
49119
  }), SO = { expectedOutputSchema: M({}).optional().describe("A sample output value declared by the user for steps whose output structure is only known at runtime.") }, CO = j({
@@ -49128,7 +49128,7 @@ xO.extend({
49128
49128
  var wO = xO.extend({
49129
49129
  input: j({
49130
49130
  url: D(),
49131
- method: kc([
49131
+ method: N([
49132
49132
  "GET",
49133
49133
  "POST",
49134
49134
  "PUT",
@@ -49156,8 +49156,8 @@ var wO = xO.extend({
49156
49156
  description: D().optional().describe("What the model should understand this option to mean.")
49157
49157
  }), DO = j({
49158
49158
  id: Bs().describe("Stable identifier for this question row."),
49159
- name: D().regex(TO, "Answer name must be empty or contain 1 to 64 characters using only letters, digits, underscores and dashes").or(N("")).describe("Answer key for this question, made of letters, digits, underscores and dashes. Downstream steps read {{stepId.answers.<name>}}."),
49160
- type: kc(fu).describe("choice picks one option, score grades an ordered rubric, boolean estimates the probability that a statement holds."),
49159
+ name: D().regex(TO, "Answer name must be empty or contain 1 to 64 characters using only letters, digits, underscores and dashes").or(P("")).describe("Answer key for this question, made of letters, digits, underscores and dashes. Downstream steps read {{stepId.answers.<name>}}."),
49160
+ type: N(uu).describe("choice picks one option, score grades an ordered rubric, boolean estimates the probability that a statement holds."),
49161
49161
  instructions: D().describe("What the model should decide about the shared state."),
49162
49162
  criteria: A(EO).describe("Options for a choice question, or ordered levels (lowest first) for a score question. Empty for boolean.")
49163
49163
  }), OO = xO.extend({ input: j({
@@ -49175,7 +49175,7 @@ var wO = xO.extend({
49175
49175
  initialLoopStepIds: A(D()).optional(),
49176
49176
  shouldContinueOnIterationFailure: k().optional()
49177
49177
  }) }), AO = xO.extend({ input: j({
49178
- delayType: kc(["SCHEDULED_DATE", "DURATION"]),
49178
+ delayType: N(["SCHEDULED_DATE", "DURATION"]),
49179
49179
  scheduledDateTime: D().nullable().optional(),
49180
49180
  duration: j({
49181
49181
  days: yc([O().min(0), D()]).optional(),
@@ -49192,7 +49192,7 @@ var wO = xO.extend({
49192
49192
  hours: yc([O().min(0), D()]).optional(),
49193
49193
  minutes: yc([O().min(0), D()]).optional()
49194
49194
  }).nullable().optional().describe("Stop waiting after this duration. The step then succeeds with hasTimedOut set to true.")
49195
- }) }), MO = xO.extend({ input: j({}) }), NO = Dc(D(), uc()).describe("Record data object. Use nested objects for relationships (e.g., \"company\": {\"id\": \"{{reference}}\"}). Common patterns:\n- Person: {\"name\": {\"firstName\": \"John\", \"lastName\": \"Doe\"}, \"emails\": {\"primaryEmail\": \"john@example.com\"}, \"company\": {\"id\": \"{{trigger.properties.after.id}}\"}}\n- Company: {\"name\": \"Acme Corp\", \"domainName\": {\"primaryLinkUrl\": \"https://acme.com\"}}\n- Task: {\"title\": \"Follow up\", \"status\": \"TODO\", \"assignee\": {\"id\": \"{{user.id}}\"}}"), PO = xO.extend({ input: j({
49195
+ }) }), MO = xO.extend({ input: j({}) }), NO = Dc(D(), uc()).describe("Record data object. Use nested objects for relationships (e.g., \"company\": {\"id\": \"{{reference}}\"}). Common patterns:\n- Person: {\"name\": {\"firstName\": \"John\", \"lastName\": \"Doe\"}, \"emails\": {\"primaryEmail\": \"john@example.com\"}, \"company\": {\"id\": \"{{trigger.properties.after.id}}\"}}\n- Company: {\"name\": \"Acme Corp\", \"domainName\": {\"primaryLinkUrl\": \"https://acme.com\"}}\n- Task: {\"title\": \"Follow up\", \"status\": \"TODO\", \"assignee\": {\"id\": \"{{user.id}}\"}}"), PO = xO.extend({ input: _c({
49196
49196
  objectName: D().describe("The name of the object to create a record in. Must be lowercase (e.g., \"person\", \"company\", \"task\")."),
49197
49197
  objectRecord: NO.describe("The record data to create.")
49198
49198
  }) }), FO = xO.extend({ input: j({
@@ -49200,7 +49200,7 @@ var wO = xO.extend({
49200
49200
  objectRecord: NO,
49201
49201
  objectRecordId: D(),
49202
49202
  fieldsToUpdate: A(D())
49203
- }) }), IO = xO.extend({ input: j({
49203
+ }) }), IO = xO.extend({ input: _c({
49204
49204
  objectName: D(),
49205
49205
  objectRecord: NO
49206
49206
  }) }), LO = xO.extend({ input: j({
@@ -49208,82 +49208,83 @@ var wO = xO.extend({
49208
49208
  objectRecordId: D()
49209
49209
  }) }), RO = j({
49210
49210
  id: D(),
49211
- logicalOperator: kc(kl),
49211
+ logicalOperator: N(Ol),
49212
49212
  parentRecordFilterGroupId: D().nullable().optional(),
49213
49213
  positionInRecordFilterGroup: O().nullable().optional()
49214
49214
  }), zO = j({
49215
49215
  id: D().optional(),
49216
49216
  fieldMetadataId: D(),
49217
- operand: kc(F),
49217
+ operand: N(I),
49218
49218
  value: D().nullable().optional(),
49219
49219
  recordFilterGroupId: D().nullable().optional(),
49220
49220
  positionInRecordFilterGroup: O().nullable().optional(),
49221
49221
  subFieldName: D().nullable().optional(),
49222
49222
  relationTargetFieldMetadataId: D().nullable().optional()
49223
- }), BO = D().regex(/^{{[^{}]+}}$/, "Expected a workflow variable reference like {{stepId.path}}"), VO = xO.extend({ input: j({
49223
+ }), BO = j({
49224
+ fieldMetadataId: D(),
49225
+ direction: N(zl),
49226
+ subFieldName: D().nullable().optional()
49227
+ }), VO = D().regex(/^{{[^{}]+}}$/, "Expected a workflow variable reference like {{stepId.path}}"), HO = xO.extend({ input: j({
49224
49228
  objectName: D(),
49225
- limit: yc([O(), BO]).optional(),
49226
- offset: yc([O().int().nonnegative(), BO]).optional(),
49229
+ limit: yc([O(), VO]).optional(),
49230
+ offset: yc([O().int().nonnegative(), VO]).optional(),
49227
49231
  filter: j({
49228
49232
  recordFilterGroups: A(RO).optional(),
49229
49233
  recordFilters: A(zO).optional()
49230
49234
  }).optional(),
49231
- orderBy: j({
49232
- recordSorts: A(uc()).optional(),
49233
- gqlOperationOrderBy: A(Dc(D(), uc())).optional()
49234
- }).optional()
49235
- }) }), HO = j({
49235
+ orderBy: _c({ recordSorts: A(BO).optional() }).optional()
49236
+ }) }), UO = j({
49236
49237
  id: D(),
49237
49238
  name: D(),
49238
49239
  label: D(),
49239
49240
  type: yc([
49240
- N(P.TEXT),
49241
- N(P.NUMBER),
49242
- N(P.DATE),
49243
- N(P.SELECT),
49244
- N(P.MULTI_SELECT),
49245
- N("RECORD")
49241
+ P(F.TEXT),
49242
+ P(F.NUMBER),
49243
+ P(F.DATE),
49244
+ P(F.SELECT),
49245
+ P(F.MULTI_SELECT),
49246
+ P("RECORD")
49246
49247
  ]),
49247
49248
  placeholder: D().optional(),
49248
49249
  settings: Dc(D(), uc()).optional(),
49249
49250
  value: uc().optional()
49250
- }), UO = xO.extend({
49251
- input: A(HO),
49251
+ }), WO = xO.extend({
49252
+ input: A(UO),
49252
49253
  instructions: D().optional()
49253
- }), WO = j({
49254
+ }), GO = j({
49254
49255
  id: D(),
49255
- logicalOperator: kc(Pl),
49256
+ logicalOperator: N(Nl),
49256
49257
  parentStepFilterGroupId: D().optional(),
49257
49258
  positionInStepFilterGroup: O().optional()
49258
- }), GO = j({
49259
+ }), KO = j({
49259
49260
  id: D(),
49260
49261
  type: D(),
49261
49262
  stepOutputKey: D(),
49262
- operand: kc(F).or(kc(Ll)),
49263
+ operand: N(I).or(N(Il)),
49263
49264
  value: D(),
49264
49265
  stepFilterGroupId: D(),
49265
49266
  positionInStepFilterGroup: O().optional(),
49266
49267
  fieldMetadataId: D().optional(),
49267
49268
  compositeFieldSubFieldName: D().optional(),
49268
49269
  isFullRecord: k().optional()
49269
- }), KO = xO.extend({ input: j({
49270
- stepFilterGroups: A(WO),
49271
- stepFilters: A(GO)
49272
- }) }), qO = j({
49270
+ }), qO = xO.extend({ input: j({
49271
+ stepFilterGroups: A(GO),
49272
+ stepFilters: A(KO)
49273
+ }) }), JO = j({
49273
49274
  id: D(),
49274
49275
  nextStepIds: A(D()),
49275
49276
  filterGroupId: D().optional()
49276
- }), JO = xO.extend({ input: j({
49277
- stepFilterGroups: A(WO),
49278
- stepFilters: A(GO),
49279
- branches: A(qO)
49280
- }) }), YO = A(yc([j({
49281
- id: D().refine((e) => du(e)),
49277
+ }), YO = xO.extend({ input: j({
49278
+ stepFilterGroups: A(GO),
49279
+ stepFilters: A(KO),
49280
+ branches: A(JO)
49281
+ }) }), XO = A(yc([j({
49282
+ id: D().refine((e) => hu(e)),
49282
49283
  name: D(),
49283
49284
  size: O(),
49284
49285
  type: D(),
49285
49286
  createdAt: D()
49286
- }), BO.describe("A workflow variable reference resolving to files")])), XO = xO.extend({ input: j({
49287
+ }), VO.describe("A workflow variable reference resolving to files")])), ZO = xO.extend({ input: j({
49287
49288
  connectedAccountId: D(),
49288
49289
  fromHandle: D().trim().optional(),
49289
49290
  recipients: j({
@@ -49293,9 +49294,9 @@ var wO = xO.extend({
49293
49294
  }),
49294
49295
  subject: D().optional(),
49295
49296
  body: D().optional().describe("The email body as a serialized email document: JSON.stringify of {\"type\":\"doc\",\"attrs\":{\"schemaVersion\":1},\"content\":[...]} with paragraph, heading, bulletList, orderedList, image, button, divider and html blocks. Use {{stepId.field}} for variables. To send a complete HTML email verbatim, including HTML produced by an earlier step such as {{stepId.html}}, make the body a single htmlDocument block ({\"type\":\"htmlDocument\",\"attrs\":{\"html\":\"...\"}}): it is sent without the email layout and its variables are inserted as raw HTML, while an html block is embedded in the layout with escaped variables. HTML or plain text strings are rejected."),
49296
- files: YO.optional(),
49297
+ files: XO.optional(),
49297
49298
  inReplyTo: D().trim().optional()
49298
- }) }), ZO = xO.extend({ input: j({
49299
+ }) }), QO = xO.extend({ input: j({
49299
49300
  connectedAccountId: D(),
49300
49301
  title: D(),
49301
49302
  description: D().optional(),
@@ -49307,35 +49308,35 @@ var wO = xO.extend({
49307
49308
  attendees: D().optional(),
49308
49309
  sendInvitations: k(),
49309
49310
  addConferencing: k()
49310
- }) }), QO = j({
49311
- scope: kc([
49311
+ }) }), $O = j({
49312
+ scope: N([
49312
49313
  "RUN",
49313
49314
  "STEP",
49314
49315
  "KEY"
49315
49316
  ]),
49316
49317
  key: D().optional()
49317
- }), $O = j({
49318
- humanInputInstructions: D().optional(),
49319
- conversation: QO.optional()
49320
49318
  }), ek = j({
49319
+ humanInputInstructions: D().optional(),
49320
+ conversation: $O.optional()
49321
+ }), tk = j({
49321
49322
  enabled: k(),
49322
49323
  configuration: Dc(D(), uc()).optional()
49323
- }), tk = j({
49324
- webSearch: ek.optional(),
49325
- twitterSearch: ek.optional()
49326
49324
  }), nk = j({
49325
+ webSearch: tk.optional(),
49326
+ twitterSearch: tk.optional()
49327
+ }), rk = j({
49327
49328
  instructions: D().optional(),
49328
49329
  modelId: D().optional(),
49329
- modelConfiguration: tk.optional(),
49330
+ modelConfiguration: nk.optional(),
49330
49331
  scope: zD.optional()
49331
- }), rk = xO.extend({ input: j({
49332
+ }), ik = xO.extend({ input: j({
49332
49333
  agentId: D().optional(),
49333
- ...nk.shape,
49334
+ ...rk.shape,
49334
49335
  prompt: D().optional(),
49335
49336
  responseFormat: VD.optional(),
49336
49337
  workspaceMemberId: D().optional(),
49337
- ...$O.shape
49338
- }) }), ik = xO.extend({ input: j({
49338
+ ...ek.shape
49339
+ }) }), ak = xO.extend({ input: j({
49339
49340
  workspaceMemberId: D(),
49340
49341
  title: D(),
49341
49342
  text: D(),
@@ -49343,15 +49344,15 @@ var wO = xO.extend({
49343
49344
  toolName: D(),
49344
49345
  arguments: Dc(D(), uc())
49345
49346
  }).optional(),
49346
- conversation: QO.optional()
49347
- }) }), ak = kc([
49347
+ conversation: $O.optional()
49348
+ }) }), ok = N([
49348
49349
  "RANDOM",
49349
49350
  "ROUND_ROBIN",
49350
49351
  "LOAD_BALANCED"
49351
49352
  ]);
49352
49353
  xO.extend({ input: j({
49353
49354
  objectName: D(),
49354
- strategy: ak,
49355
+ strategy: ok,
49355
49356
  recordIds: A(D()),
49356
49357
  loadBalance: j({
49357
49358
  objectNameSingular: D(),
@@ -49359,21 +49360,21 @@ xO.extend({ input: j({
49359
49360
  }).optional()
49360
49361
  }).superRefine((e, t) => {
49361
49362
  e.strategy === "LOAD_BALANCED" && !p(e.loadBalance) && t.addIssue({
49362
- code: il.custom,
49363
+ code: rl.custom,
49363
49364
  path: ["loadBalance"],
49364
49365
  message: "loadBalance is required when strategy is LOAD_BALANCED"
49365
49366
  });
49366
49367
  }) });
49367
- var ok = {
49368
+ var sk = {
49368
49369
  AGENT_STEP_HAS_INLINE_CONFIG: "A step running an agent takes its instructions, model and permissions from the agent. Remove the instructions, model and permissions set on the step, or remove its agent.",
49369
49370
  GENERATE_STEP_HAS_CONVERSATION_CONFIG: "A step without an agent cannot ask humans or keep a conversation. Use an agent for this step, or remove its human input instructions and conversation setting.",
49370
49371
  GENERATE_STEP_SCOPE_HAS_REPEATED_ENTRIES: "The permissions of a step without an agent list an object or field more than once. Keep a single entry for each."
49371
- }, sk = (e, t) => e.keyof().options.some((e) => {
49372
+ }, ck = (e, t) => e.keyof().options.some((e) => {
49372
49373
  let r = t[e];
49373
49374
  return s(r) ? n(r.trim()) : p(r);
49374
- }), ck = (e) => !n(e.agentId), lk = (e) => ck(e) ? [...sk($O, e) ? ["GENERATE_STEP_HAS_CONVERSATION_CONFIG"] : [], ...mu(e.scope) ? ["GENERATE_STEP_SCOPE_HAS_REPEATED_ENTRIES"] : []] : sk(nk, e) ? ["AGENT_STEP_HAS_INLINE_CONFIG"] : [], uk = j({
49375
+ }), lk = (e) => !n(e.agentId), uk = (e) => lk(e) ? [...ck(ek, e) ? ["GENERATE_STEP_HAS_CONVERSATION_CONFIG"] : [], ...fu(e.scope) ? ["GENERATE_STEP_SCOPE_HAS_REPEATED_ENTRIES"] : []] : ck(rk, e) ? ["AGENT_STEP_HAS_INLINE_CONFIG"] : [], dk = j({
49375
49376
  name: D().optional().describe("Human-readable name for the trigger. Optional but recommended for clarity."),
49376
- type: kc([
49377
+ type: N([
49377
49378
  "DATABASE_EVENT",
49378
49379
  "MANUAL",
49379
49380
  "CRON",
@@ -49384,11 +49385,11 @@ var ok = {
49384
49385
  y: O()
49385
49386
  }).optional().nullable().describe("Position coordinates for the trigger in the workflow diagram. Use (0, 0) for the trigger step."),
49386
49387
  nextStepIds: A(D()).optional().nullable().describe("Array of step IDs that the trigger connects to. These are the first steps in the workflow.")
49387
- }), dk = uk.extend({
49388
- type: N("CRON"),
49388
+ }), fk = dk.extend({
49389
+ type: P("CRON"),
49389
49390
  settings: xc("type", [
49390
49391
  j({
49391
- type: N("DAYS"),
49392
+ type: P("DAYS"),
49392
49393
  schedule: j({
49393
49394
  day: O().min(1),
49394
49395
  hour: O().min(0).max(23),
@@ -49397,7 +49398,7 @@ var ok = {
49397
49398
  outputSchema: M({})
49398
49399
  }),
49399
49400
  j({
49400
- type: N("HOURS"),
49401
+ type: P("HOURS"),
49401
49402
  schedule: j({
49402
49403
  hour: O().min(1),
49403
49404
  minute: O().min(0).max(59)
@@ -49405,49 +49406,49 @@ var ok = {
49405
49406
  outputSchema: M({})
49406
49407
  }),
49407
49408
  j({
49408
- type: N("MINUTES"),
49409
+ type: P("MINUTES"),
49409
49410
  schedule: j({ minute: O().min(1).max(60) }),
49410
49411
  outputSchema: M({})
49411
49412
  }),
49412
49413
  j({
49413
- type: N("CUSTOM"),
49414
+ type: P("CUSTOM"),
49414
49415
  pattern: D(),
49415
49416
  outputSchema: M({})
49416
49417
  })
49417
49418
  ])
49418
- }), fk = uk.extend({
49419
- type: N("WEBHOOK"),
49419
+ }), pk = dk.extend({
49420
+ type: P("WEBHOOK"),
49420
49421
  settings: xc("httpMethod", [j({
49421
49422
  outputSchema: M({}),
49422
- httpMethod: N("GET"),
49423
- authentication: N("API_KEY").nullable()
49423
+ httpMethod: P("GET"),
49424
+ authentication: P("API_KEY").nullable()
49424
49425
  }), j({
49425
49426
  outputSchema: M({}),
49426
49427
  expectedOutputSchema: M({}).optional(),
49427
- httpMethod: N("POST"),
49428
+ httpMethod: P("POST"),
49428
49429
  expectedBody: M({}),
49429
- authentication: N("API_KEY").nullable()
49430
+ authentication: P("API_KEY").nullable()
49430
49431
  })])
49431
- }), pk = /* @__PURE__ */ function(e) {
49432
+ }), mk = /* @__PURE__ */ function(e) {
49432
49433
  return e.CODE = "CODE", e.LOGIC_FUNCTION = "LOGIC_FUNCTION", e.SEND_EMAIL = "SEND_EMAIL", e.SEND_CHAT_MESSAGE = "SEND_CHAT_MESSAGE", e.DRAFT_EMAIL = "DRAFT_EMAIL", e.CREATE_CALENDAR_EVENT = "CREATE_CALENDAR_EVENT", e.CREATE_RECORD = "CREATE_RECORD", e.UPDATE_RECORD = "UPDATE_RECORD", e.DELETE_RECORD = "DELETE_RECORD", e.UPSERT_RECORD = "UPSERT_RECORD", e.FIND_RECORDS = "FIND_RECORDS", e.PICK_RECORD = "PICK_RECORD", e.FORM = "FORM", e.FILTER = "FILTER", e.IF_ELSE = "IF_ELSE", e.HTTP_REQUEST = "HTTP_REQUEST", e.AI_AGENT = "AI_AGENT", e.CLASSIFY = "CLASSIFY", e.ITERATOR = "ITERATOR", e.EMPTY = "EMPTY", e.DELAY = "DELAY", e.WAIT_FOR_EVENT = "WAIT_FOR_EVENT", e;
49433
- }({}), mk = (e) => {
49434
+ }({}), hk = (e) => {
49434
49435
  let t = e.settings?.input;
49435
- return e.type === pk.IF_ELSE && o(t) && "branches" in t && Array.isArray(t.branches);
49436
- }, hk = (e) => {
49437
- let n = e.settings?.input;
49438
- return e.type === pk.ITERATOR && o(n) && "initialLoopStepIds" in n && t(n.initialLoopStepIds);
49436
+ return e.type === mk.IF_ELSE && o(t) && "branches" in t && Array.isArray(t.branches);
49439
49437
  }, gk = (e) => {
49438
+ let n = e.settings?.input;
49439
+ return e.type === mk.ITERATOR && o(n) && "initialLoopStepIds" in n && t(n.initialLoopStepIds);
49440
+ }, _k = (e) => {
49440
49441
  let t = e.settings?.input;
49441
49442
  if (p(t) && o(t)) return t;
49442
- }, _k = (e) => {
49443
+ }, vk = (e) => {
49443
49444
  let t = new Set(e.nextStepIds ?? []);
49444
- if (mk(e)) for (let n of e.settings.input.branches ?? []) for (let e of n?.nextStepIds ?? []) t.add(e);
49445
- if (hk(e)) for (let n of e.settings.input.initialLoopStepIds ?? []) t.add(n);
49445
+ if (hk(e)) for (let n of e.settings.input.branches ?? []) for (let e of n?.nextStepIds ?? []) t.add(e);
49446
+ if (gk(e)) for (let n of e.settings.input.initialLoopStepIds ?? []) t.add(n);
49446
49447
  return [...t];
49447
- }, vk = ({ trigger: e, steps: t }) => {
49448
+ }, yk = ({ trigger: e, steps: t }) => {
49448
49449
  let n = /* @__PURE__ */ new Map(), r = p(e?.nextStepIds) ? e.nextStepIds.filter(p) : [];
49449
49450
  n.set(HD, r);
49450
- for (let e of t ?? []) n.set(e.id, _k(e));
49451
+ for (let e of t ?? []) n.set(e.id, vk(e));
49451
49452
  let i = /* @__PURE__ */ new Set(), a = [HD];
49452
49453
  for (; a.length > 0;) {
49453
49454
  let e = a.shift();
@@ -49459,9 +49460,9 @@ var ok = {
49459
49460
  return {
49460
49461
  childrenByStepId: n,
49461
49462
  reachableFromTrigger: i,
49462
- ancestorsByStepId: yk(n)
49463
+ ancestorsByStepId: bk(n)
49463
49464
  };
49464
- }, yk = (e) => {
49465
+ }, bk = (e) => {
49465
49466
  let t = /* @__PURE__ */ new Map();
49466
49467
  for (let [n, r] of e.entries()) for (let e of r) {
49467
49468
  let r = t.get(e) ?? /* @__PURE__ */ new Set();
@@ -49481,7 +49482,7 @@ var ok = {
49481
49482
  n.set(r, e);
49482
49483
  }
49483
49484
  return n;
49484
- }, bk = ({ workflow: e, graph: t }) => {
49485
+ }, xk = ({ workflow: e, graph: t }) => {
49485
49486
  let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = new Map((e.steps ?? []).map((e) => [e.id, e])), o = (e, s = [], c) => {
49486
49487
  let l = s[s.length - 1];
49487
49488
  if (r.has(e)) {
@@ -49496,8 +49497,8 @@ var ok = {
49496
49497
  }
49497
49498
  let u = a.get(e), d = `${e}:${s.join(",")}`;
49498
49499
  if (!p(u) || i.has(d)) return;
49499
- r.add(e), hk(u) && (u.settings.input.initialLoopStepIds ?? []).forEach((t) => o(t, [...s, e], e));
49500
- let f = u.type === pk.ITERATOR ? u.nextStepIds ?? [] : t.childrenByStepId.get(e) ?? [];
49500
+ r.add(e), gk(u) && (u.settings.input.initialLoopStepIds ?? []).forEach((t) => o(t, [...s, e], e));
49501
+ let f = u.type === mk.ITERATOR ? u.nextStepIds ?? [] : t.childrenByStepId.get(e) ?? [];
49501
49502
  p(l) && f.length === 0 && n.push({
49502
49503
  severity: "error",
49503
49504
  code: "ITERATOR_MISSING_RETURN",
@@ -49506,7 +49507,7 @@ var ok = {
49506
49507
  }), f.forEach((t) => o(t, s, e)), r.delete(e), i.add(d);
49507
49508
  };
49508
49509
  return e.trigger?.nextStepIds?.forEach((e) => o(e)), n;
49509
- }, xk = ({ workflow: e, graph: t }) => {
49510
+ }, Sk = ({ workflow: e, graph: t }) => {
49510
49511
  let n = [], r = e.steps ?? [], i = new Set(r.map((e) => e.id)), a = /* @__PURE__ */ new Set();
49511
49512
  for (let e of r) a.has(e.id) && n.push({
49512
49513
  severity: "error",
@@ -49532,7 +49533,7 @@ var ok = {
49532
49533
  message: `Step "${e.name ?? e.id}" references a non-existent step "${r}".`,
49533
49534
  stepId: e.id
49534
49535
  });
49535
- n.push(...Sk(e));
49536
+ n.push(...Ck(e));
49536
49537
  }
49537
49538
  for (let e of r) t.reachableFromTrigger.has(e.id) || n.push({
49538
49539
  severity: "error",
@@ -49541,9 +49542,9 @@ var ok = {
49541
49542
  stepId: e.id
49542
49543
  });
49543
49544
  return n;
49544
- }, Sk = (e) => {
49545
- let t = [], n = gk(e);
49546
- if (e.type === pk.IF_ELSE) {
49545
+ }, Ck = (e) => {
49546
+ let t = [], n = _k(e);
49547
+ if (e.type === mk.IF_ELSE) {
49547
49548
  let r = n?.branches, i = Array.isArray(r) ? r : [];
49548
49549
  i.length < 2 && t.push({
49549
49550
  severity: "warning",
@@ -49567,7 +49568,7 @@ var ok = {
49567
49568
  });
49568
49569
  }
49569
49570
  }
49570
- if (e.type === pk.ITERATOR) {
49571
+ if (e.type === mk.ITERATOR) {
49571
49572
  let r = n, i = r?.items, a = typeof i == "string" && i.length > 0 || Array.isArray(i) && i.length > 0, o = r?.initialLoopStepIds, s = Array.isArray(o) && o.length > 0;
49572
49573
  a && !s && t.push({
49573
49574
  severity: "error",
@@ -49579,27 +49580,27 @@ var ok = {
49579
49580
  return t;
49580
49581
  };
49581
49582
  typeof Uint8Array.from([]).toHex == "function" && Uint8Array.fromHex;
49582
- var Ck = /* @__PURE__ */ BigInt(2 ** 32 - 1), wk = /* @__PURE__ */ BigInt(32);
49583
- function Tk(e, t = !1) {
49583
+ var wk = /* @__PURE__ */ BigInt(2 ** 32 - 1), Tk = /* @__PURE__ */ BigInt(32);
49584
+ function Ek(e, t = !1) {
49584
49585
  return t ? {
49585
- h: Number(e & Ck),
49586
- l: Number(e >> wk & Ck)
49586
+ h: Number(e & wk),
49587
+ l: Number(e >> Tk & wk)
49587
49588
  } : {
49588
- h: Number(e >> wk & Ck) | 0,
49589
- l: Number(e & Ck) | 0
49589
+ h: Number(e >> Tk & wk) | 0,
49590
+ l: Number(e & wk) | 0
49590
49591
  };
49591
49592
  }
49592
- function Ek(e, t = !1) {
49593
+ function Dk(e, t = !1) {
49593
49594
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
49594
49595
  for (let a = 0; a < n; a++) {
49595
- let { h: n, l: o } = Tk(e[a], t);
49596
+ let { h: n, l: o } = Ek(e[a], t);
49596
49597
  [r[a], i[a]] = [n, o];
49597
49598
  }
49598
49599
  return [r, i];
49599
49600
  }
49600
- var Dk = /* @__PURE__ */ Ek((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e)));
49601
- Dk[0], Dk[1];
49602
- var Ok = ["MONTH"], kk = (e) => Ok.includes(e), Ak = ["WORKSPACE_MEMBER"], jk = (e) => Ak.includes(e), Mk = 1e8, Nk = [
49601
+ var Ok = /* @__PURE__ */ Dk((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e)));
49602
+ Ok[0], Ok[1];
49603
+ var kk = ["MONTH"], Ak = (e) => kk.includes(e), jk = ["WORKSPACE_MEMBER"], Mk = (e) => jk.includes(e), Nk = 1e8, Pk = [
49603
49604
  "Communication",
49604
49605
  "Productivity",
49605
49606
  "Product management",
@@ -49609,18 +49610,18 @@ var Ok = ["MONTH"], kk = (e) => Ok.includes(e), Ak = ["WORKSPACE_MEMBER"], jk =
49609
49610
  "Data",
49610
49611
  "Search",
49611
49612
  "Other"
49612
- ], Pk = (e) => Nk.includes(e), Fk = /* @__PURE__ */ function(e) {
49613
+ ], Fk = (e) => Pk.includes(e), Ik = /* @__PURE__ */ function(e) {
49613
49614
  return e.OK = "OK", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e.WARNING = "WARNING", e.ERROR = "ERROR", e.NEUTRAL = "NEUTRAL", e.UNKNOWN = "UNKNOWN", e;
49614
49615
  }({});
49615
- Object.values(Fk).filter((e) => e !== Fk.OK && e !== Fk.UNKNOWN), P.TEXT, P.ARRAY, P.BOOLEAN, P.DATE, P.DATE_TIME, P.NUMBER, P.NUMERIC, P.RAW_JSON, P.RICH_TEXT, P.SELECT, P.MULTI_SELECT;
49616
+ Object.values(Ik).filter((e) => e !== Ik.OK && e !== Ik.UNKNOWN), F.TEXT, F.ARRAY, F.BOOLEAN, F.DATE, F.DATE_TIME, F.NUMBER, F.NUMERIC, F.RAW_JSON, F.RICH_TEXT, F.SELECT, F.MULTI_SELECT;
49616
49617
  //#endregion
49617
49618
  //#region ../twenty-shared/dist/application.mjs
49618
- var Ik = ["WORKSPACE", "USER"], Lk = (e) => Ik.includes(e), Rk = /^[a-z][a-zA-Z0-9]*\.(created|updated|deleted|destroyed|restored|upserted)$/, zk = {
49619
+ var Lk = ["WORKSPACE", "USER"], Rk = (e) => Lk.includes(e), zk = /^[a-z][a-zA-Z0-9]*\.(created|updated|deleted|destroyed|restored|upserted)$/, Bk = {
49619
49620
  MAX_TRIGGERS_PER_AGENT: 20,
49620
49621
  MAX_INSTRUCTIONS_LENGTH: 1e4
49621
- }, Bk = ["DATABASE_EVENT", "CRON"], Vk = ["WORKSPACE", "USER"];
49622
- ul.RECORD_PAGE, ul.DASHBOARD;
49623
- var Hk = {
49622
+ }, Vk = ["DATABASE_EVENT", "CRON"], Hk = ["WORKSPACE", "USER"];
49623
+ ll.RECORD_PAGE, ll.DASHBOARD;
49624
+ var Uk = {
49624
49625
  CALL_RECORDER: "8da4b8b5-5edf-4880-b51f-ab6e679ec617",
49625
49626
  EXA: "2b7f4a2e-9c4b-4a11-b63c-2e5e7d3f5a9a",
49626
49627
  FATHOM: "c5fb24b3-15b0-48fb-a9b5-f182ba231e6c",
@@ -49630,13 +49631,13 @@ var Hk = {
49630
49631
  SLACK: "a8c47f21-3b9e-4d2a-8f61-9c0e7d4a2b51",
49631
49632
  TEAMS: "5955f8fe-6724-4749-b770-b849d63d5330"
49632
49633
  };
49633
- Hk.SLACK, Hk.TEAMS, Hk.FATHOM;
49634
- var Uk = ["general", "variables"];
49634
+ Uk.SLACK, Uk.TEAMS, Uk.FATHOM;
49635
+ var Wk = ["general", "variables"];
49635
49636
  j({
49636
49637
  responseFormat: VD.nullish(),
49637
49638
  scope: zD.nullish()
49638
49639
  });
49639
- var Wk = ["WORKSPACE", "USER"], Gk = [
49640
+ var Gk = ["WORKSPACE", "USER"], Kk = [
49640
49641
  "AI_CHAT_TOKEN",
49641
49642
  "AI_WORKFLOW_TOKEN",
49642
49643
  "WORKFLOW_EXECUTION",
@@ -49645,74 +49646,74 @@ var Wk = ["WORKSPACE", "USER"], Gk = [
49645
49646
  "CALL_RECORDING",
49646
49647
  "EMAIL_SEND",
49647
49648
  "APP_OPERATION"
49648
- ], Kk = (e) => Gk.includes(e);
49649
- ql.map((e) => Gl[e]);
49650
- var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk = (e) => Uk.some((t) => t === e) || qk.test(e), Yk = ["General"], Xk = (e) => Yk.some((t) => t.toLowerCase() === e.trim().toLowerCase()), Zk = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, Qk = (e) => e.length <= 64 && Zk.test(e), $k = j({
49649
+ ], qk = (e) => Kk.includes(e);
49650
+ Kl.map((e) => Wl[e]);
49651
+ var Jk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Yk = (e) => Wk.some((t) => t === e) || Jk.test(e), Xk = ["General"], Zk = (e) => Xk.some((t) => t.toLowerCase() === e.trim().toLowerCase()), Qk = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, $k = (e) => e.length <= 64 && Qk.test(e), eA = j({
49651
49652
  x: O(),
49652
49653
  y: O()
49653
- }), eA = {
49654
+ }), tA = {
49654
49655
  universalIdentifier: Bs(),
49655
49656
  name: D().min(1),
49656
49657
  nextStepIds: A(Bs()),
49657
- position: $k.nullable().optional(),
49658
+ position: eA.nullable().optional(),
49658
49659
  outputSchema: Dc(D(), fc()).optional(),
49659
49660
  expectedOutputSchema: Dc(D(), fc()).optional(),
49660
49661
  errorHandlingOptions: xO.shape.errorHandlingOptions.optional()
49661
- }, tA = (e, t) => _c({
49662
- ...eA,
49663
- type: N(e),
49662
+ }, nA = (e, t) => _c({
49663
+ ...tA,
49664
+ type: P(e),
49664
49665
  input: t
49665
- }), nA = M({
49666
+ }), rA = M({
49666
49667
  fieldMetadataUniversalIdentifier: Bs(),
49667
49668
  fieldMetadataId: mc().optional()
49668
- }), rA = GO.omit({ fieldMetadataId: !0 }).extend({ fieldMetadataUniversalIdentifier: Bs().optional() }).strict(), iA = zO.omit({
49669
+ }), iA = KO.omit({ fieldMetadataId: !0 }).extend({ fieldMetadataUniversalIdentifier: Bs().optional() }).strict(), aA = zO.omit({
49669
49670
  fieldMetadataId: !0,
49670
49671
  relationTargetFieldMetadataId: !0
49671
- }).extend({ fieldMetadataUniversalIdentifier: Bs() }).strict(), aA = { objectUniversalIdentifier: Bs() }, oA = {
49672
+ }).extend({ fieldMetadataUniversalIdentifier: Bs() }).strict(), oA = { objectUniversalIdentifier: Bs() }, sA = {
49672
49673
  connectedAccountId: D().optional(),
49673
49674
  connectedAccountHandle: D().trim().min(1).optional()
49674
- }, sA = (e, t) => {
49675
+ }, cA = (e, t) => {
49675
49676
  p(e.connectedAccountId) === p(e.connectedAccountHandle) && t.addIssue({
49676
49677
  code: "custom",
49677
49678
  path: ["connectedAccountHandle"],
49678
49679
  message: "Set exactly one of connectedAccountId and connectedAccountHandle"
49679
49680
  });
49680
- }, cA = XO.shape.input.extend(oA).superRefine(sA), lA = [
49681
+ }, lA = ZO.shape.input.extend(sA).superRefine(cA), uA = [
49681
49682
  _c({
49682
- ...eA,
49683
- type: N("LOGIC_FUNCTION"),
49683
+ ...tA,
49684
+ type: P("LOGIC_FUNCTION"),
49684
49685
  logicFunctionUniversalIdentifier: Bs(),
49685
49686
  input: Dc(D(), fc())
49686
49687
  }),
49687
- tA("CODE", CO.omit({ logicFunctionId: !0 }).extend({ code: CO.shape.code.unwrap().min(1) }).strict()),
49688
- tA("HTTP_REQUEST", wO.shape.input),
49689
- tA("CLASSIFY", OO.shape.input),
49690
- tA("ITERATOR", kO.shape.input),
49691
- tA("DELAY", AO.shape.input),
49692
- tA("WAIT_FOR_EVENT", jO.shape.input),
49693
- tA("EMPTY", MO.shape.input),
49694
- tA("CREATE_RECORD", PO.shape.input.omit({ objectName: !0 }).extend(aA).strict()),
49695
- tA("UPDATE_RECORD", FO.shape.input.omit({ objectName: !0 }).extend(aA).strict()),
49696
- tA("UPSERT_RECORD", IO.shape.input.omit({ objectName: !0 }).extend(aA).strict()),
49697
- tA("DELETE_RECORD", LO.shape.input.omit({ objectName: !0 }).extend(aA).strict()),
49698
- tA("FIND_RECORDS", VO.shape.input.omit({
49688
+ nA("CODE", CO.omit({ logicFunctionId: !0 }).extend({ code: CO.shape.code.unwrap().min(1) }).strict()),
49689
+ nA("HTTP_REQUEST", wO.shape.input),
49690
+ nA("CLASSIFY", OO.shape.input),
49691
+ nA("ITERATOR", kO.shape.input),
49692
+ nA("DELAY", AO.shape.input),
49693
+ nA("WAIT_FOR_EVENT", jO.shape.input),
49694
+ nA("EMPTY", MO.shape.input),
49695
+ nA("CREATE_RECORD", PO.shape.input.omit({ objectName: !0 }).extend(oA).strict()),
49696
+ nA("UPDATE_RECORD", FO.shape.input.omit({ objectName: !0 }).extend(oA).strict()),
49697
+ nA("UPSERT_RECORD", IO.shape.input.omit({ objectName: !0 }).extend(oA).strict()),
49698
+ nA("DELETE_RECORD", LO.shape.input.omit({ objectName: !0 }).extend(oA).strict()),
49699
+ nA("FIND_RECORDS", HO.shape.input.omit({
49699
49700
  objectName: !0,
49700
49701
  filter: !0,
49701
49702
  orderBy: !0
49702
49703
  }).extend({
49703
- ...aA,
49704
+ ...oA,
49704
49705
  filter: _c({
49705
49706
  recordFilterGroups: A(RO).optional(),
49706
- recordFilters: A(iA).optional()
49707
+ recordFilters: A(aA).optional()
49707
49708
  }).optional(),
49708
- orderBy: _c({ recordSorts: A(nA.extend({
49709
- direction: kc(["ASC", "DESC"]),
49709
+ orderBy: _c({ recordSorts: A(rA.extend({
49710
+ direction: N(["ASC", "DESC"]),
49710
49711
  subFieldName: D().nullable().optional()
49711
49712
  })).optional() }).optional()
49712
49713
  }).strict()),
49713
- tA("PICK_RECORD", _c({
49714
- ...aA,
49715
- strategy: ak,
49714
+ nA("PICK_RECORD", _c({
49715
+ ...oA,
49716
+ strategy: ok,
49716
49717
  recordIds: A(D()),
49717
49718
  loadBalance: _c({
49718
49719
  objectUniversalIdentifier: Bs(),
@@ -49725,9 +49726,9 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49725
49726
  message: "loadBalance is required when strategy is LOAD_BALANCED"
49726
49727
  });
49727
49728
  })),
49728
- tA("FILTER", KO.shape.input.extend({ stepFilters: A(rA) })),
49729
- tA("IF_ELSE", JO.shape.input.extend({ stepFilters: A(rA) })),
49730
- tA("FORM", A(UO.shape.input.element.extend({ settings: Dc(D(), fc()).optional() }).superRefine((e, t) => {
49729
+ nA("FILTER", qO.shape.input.extend({ stepFilters: A(iA) })),
49730
+ nA("IF_ELSE", YO.shape.input.extend({ stepFilters: A(iA) })),
49731
+ nA("FORM", A(WO.shape.input.element.extend({ settings: Dc(D(), fc()).optional() }).superRefine((e, t) => {
49731
49732
  e.type === "RECORD" && !Bs().safeParse(e.settings?.objectUniversalIdentifier).success && t.addIssue({
49732
49733
  code: "custom",
49733
49734
  path: ["settings", "objectUniversalIdentifier"],
@@ -49738,54 +49739,54 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49738
49739
  message: "Select fields require the universal identifier of the field whose options they offer"
49739
49740
  });
49740
49741
  }))),
49741
- tA("SEND_EMAIL", cA),
49742
- tA("DRAFT_EMAIL", cA),
49743
- tA("CREATE_CALENDAR_EVENT", ZO.shape.input.extend(oA).superRefine(sA)),
49744
- tA("SEND_CHAT_MESSAGE", ik.shape.input),
49745
- tA("AI_AGENT", rk.shape.input.omit({ agentId: !0 }).extend({ agentUniversalIdentifier: Bs().optional() }).strict().superRefine((e, t) => {
49746
- for (let n of lk({
49742
+ nA("SEND_EMAIL", lA),
49743
+ nA("DRAFT_EMAIL", lA),
49744
+ nA("CREATE_CALENDAR_EVENT", QO.shape.input.extend(sA).superRefine(cA)),
49745
+ nA("SEND_CHAT_MESSAGE", ak.shape.input),
49746
+ nA("AI_AGENT", ik.shape.input.omit({ agentId: !0 }).extend({ agentUniversalIdentifier: Bs().optional() }).strict().superRefine((e, t) => {
49747
+ for (let n of uk({
49747
49748
  ...e,
49748
49749
  agentId: e.agentUniversalIdentifier
49749
49750
  })) t.addIssue({
49750
49751
  code: "custom",
49751
49752
  path: ["agentUniversalIdentifier"],
49752
- message: ok[n]
49753
+ message: sk[n]
49753
49754
  });
49754
49755
  }))
49755
- ], uA = lA.map((e) => e.shape.type.value), dA = xc("type", lA, { error: (e) => e.code === "invalid_union" ? `Unsupported step type. Application workflows support: ${uA.join(", ")}` : void 0 }), fA = ["updated", "upserted"], pA = xc("type", [
49756
- _c({ type: N("GLOBAL") }),
49756
+ ], dA = uA.map((e) => e.shape.type.value), fA = xc("type", uA, { error: (e) => e.code === "invalid_union" ? `Unsupported step type. Application workflows support: ${dA.join(", ")}` : void 0 }), pA = ["updated", "upserted"], mA = xc("type", [
49757
+ _c({ type: P("GLOBAL") }),
49757
49758
  _c({
49758
- type: N("SINGLE_RECORD"),
49759
+ type: P("SINGLE_RECORD"),
49759
49760
  objectUniversalIdentifier: Bs()
49760
49761
  }),
49761
49762
  _c({
49762
- type: N("BULK_RECORDS"),
49763
+ type: P("BULK_RECORDS"),
49763
49764
  objectUniversalIdentifier: Bs()
49764
49765
  })
49765
- ]), [mA, hA, gA, _A] = dk.shape.settings.options, vA = xc("type", [
49766
- mA.omit({ outputSchema: !0 }).extend({ schedule: mA.shape.schedule.strict() }).strict(),
49766
+ ]), [hA, gA, _A, vA] = fk.shape.settings.options, yA = xc("type", [
49767
49767
  hA.omit({ outputSchema: !0 }).extend({ schedule: hA.shape.schedule.strict() }).strict(),
49768
49768
  gA.omit({ outputSchema: !0 }).extend({ schedule: gA.shape.schedule.strict() }).strict(),
49769
- _A.omit({ outputSchema: !0 }).strict()
49770
- ]), [yA, bA] = fk.shape.settings.options, xA = xc("httpMethod", [yA.omit({
49769
+ _A.omit({ outputSchema: !0 }).extend({ schedule: _A.shape.schedule.strict() }).strict(),
49770
+ vA.omit({ outputSchema: !0 }).strict()
49771
+ ]), [bA, xA] = pk.shape.settings.options, SA = xc("httpMethod", [bA.omit({
49771
49772
  outputSchema: !0,
49772
49773
  authentication: !0
49773
- }).strict(), bA.omit({
49774
+ }).strict(), xA.omit({
49774
49775
  outputSchema: !0,
49775
49776
  expectedOutputSchema: !0,
49776
49777
  authentication: !0
49777
- }).strict()]), SA = {
49778
+ }).strict()]), CA = {
49778
49779
  universalIdentifier: Bs().optional(),
49779
49780
  name: D().min(1).optional(),
49780
49781
  nextStepIds: A(Bs()).min(1),
49781
- position: $k.nullable().optional(),
49782
+ position: eA.nullable().optional(),
49782
49783
  outputSchema: Dc(D(), fc()).optional()
49783
- }, CA = [
49784
+ }, wA = [
49784
49785
  _c({
49785
- ...SA,
49786
- type: N("MANUAL"),
49786
+ ...CA,
49787
+ type: P("MANUAL"),
49787
49788
  settings: _c({
49788
- availability: pA.optional(),
49789
+ availability: mA.optional(),
49789
49790
  icon: D().optional(),
49790
49791
  isPinned: k().optional()
49791
49792
  }).superRefine((e, t) => {
@@ -49797,16 +49798,16 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49797
49798
  }).optional()
49798
49799
  }),
49799
49800
  _c({
49800
- ...SA,
49801
- type: N("CRON"),
49802
- settings: vA
49801
+ ...CA,
49802
+ type: P("CRON"),
49803
+ settings: yA
49803
49804
  }),
49804
49805
  _c({
49805
- ...SA,
49806
- type: N("DATABASE_EVENT"),
49806
+ ...CA,
49807
+ type: P("DATABASE_EVENT"),
49807
49808
  settings: _c({
49808
49809
  objectUniversalIdentifier: Bs(),
49809
- action: kc([
49810
+ action: N([
49810
49811
  "created",
49811
49812
  "updated",
49812
49813
  "deleted",
@@ -49814,14 +49815,14 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49814
49815
  ]),
49815
49816
  fieldUniversalIdentifiers: A(Bs()).optional(),
49816
49817
  filter: _c({
49817
- stepFilterGroups: A(WO),
49818
- stepFilters: A(rA.extend({ operand: kc(F) }))
49818
+ stepFilterGroups: A(GO),
49819
+ stepFilters: A(iA.extend({ operand: N(I) }))
49819
49820
  }).optional()
49820
49821
  }).superRefine((e, t) => {
49821
- if (Rw(e.fieldUniversalIdentifiers) && !fA.includes(e.action) && t.addIssue({
49822
+ if (Rw(e.fieldUniversalIdentifiers) && !pA.includes(e.action) && t.addIssue({
49822
49823
  code: "custom",
49823
49824
  path: ["fieldUniversalIdentifiers"],
49824
- message: `Watched fields only apply to ${fA.join(" and ")} events`
49825
+ message: `Watched fields only apply to ${pA.join(" and ")} events`
49825
49826
  }), !p(e.filter)) return;
49826
49827
  let n = /* @__PURE__ */ new Map();
49827
49828
  e.filter.stepFilterGroups.forEach((e, r) => {
@@ -49878,17 +49879,17 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49878
49879
  })
49879
49880
  }),
49880
49881
  _c({
49881
- ...SA,
49882
- type: N("WEBHOOK"),
49883
- settings: xA
49882
+ ...CA,
49883
+ type: P("WEBHOOK"),
49884
+ settings: SA
49884
49885
  })
49885
- ], wA = CA.map((e) => e.shape.type.value), TA = xc("type", CA, { error: (e) => e.code === "invalid_union" ? `Unsupported trigger type. Application workflows support: ${wA.join(", ")}` : void 0 }), EA = _c({
49886
+ ], TA = wA.map((e) => e.shape.type.value), EA = xc("type", wA, { error: (e) => e.code === "invalid_union" ? `Unsupported trigger type. Application workflows support: ${TA.join(", ")}` : void 0 }), DA = _c({
49886
49887
  universalIdentifier: Bs(),
49887
49888
  name: D().min(1),
49888
49889
  isSystem: k().optional(),
49889
49890
  version: _c({
49890
- trigger: TA,
49891
- steps: A(dA).min(1)
49891
+ trigger: EA,
49892
+ steps: A(fA).min(1)
49892
49893
  })
49893
49894
  }).superRefine((e, t) => {
49894
49895
  let { steps: n, trigger: r } = e.version, i = [
@@ -49910,13 +49911,13 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49910
49911
  id: e.universalIdentifier,
49911
49912
  settings: { input: e.input }
49912
49913
  }))
49913
- }, o = vk(a);
49914
+ }, o = yk(a);
49914
49915
  for (let e of [
49915
- ...xk({
49916
+ ...Sk({
49916
49917
  workflow: a,
49917
49918
  graph: o
49918
49919
  }),
49919
- ...bk({
49920
+ ...xk({
49920
49921
  workflow: a,
49921
49922
  graph: o
49922
49923
  }),
@@ -49934,39 +49935,39 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49934
49935
  config: e,
49935
49936
  errors: t,
49936
49937
  warnings: n
49937
- }), DA = new Set(Object.keys({
49938
+ }), OA = new Set(Object.keys({
49938
49939
  webSearch: !0,
49939
49940
  twitterSearch: !0
49940
- })), OA = (t) => {
49941
+ })), kA = (t) => {
49941
49942
  let r = [], i = [];
49942
- t.universalIdentifier || r.push("Agent must have a universalIdentifier"), t.name || r.push("Agent must have a name"), t.label || r.push("Agent must have a label"), t.prompt || r.push("Agent must have a prompt"), t.responseFormat || i.push(`Agent '${t.name}' has no responseFormat, it will default to { type: 'text' }. Set it explicitly to control the agent's output shape.`), p(t.isSystem) && !e(t.isSystem) && r.push(`Agent '${t.name}' isSystem must be a boolean`), p(t.modelConfiguration) && !Ql(t.modelConfiguration) && r.push(`Agent '${t.name}' modelConfiguration must be an object`);
49943
- for (let [n, i] of Object.entries(Ql(t.modelConfiguration) ? t.modelConfiguration : {})) {
49944
- if (!DA.has(n)) {
49945
- r.push(`Agent '${t.name}' modelConfiguration.${n} is not supported, use one of: ${[...DA].join(", ")}`);
49943
+ t.universalIdentifier || r.push("Agent must have a universalIdentifier"), t.name || r.push("Agent must have a name"), t.label || r.push("Agent must have a label"), t.prompt || r.push("Agent must have a prompt"), t.responseFormat || i.push(`Agent '${t.name}' has no responseFormat, it will default to { type: 'text' }. Set it explicitly to control the agent's output shape.`), p(t.isSystem) && !e(t.isSystem) && r.push(`Agent '${t.name}' isSystem must be a boolean`), p(t.modelConfiguration) && !Zl(t.modelConfiguration) && r.push(`Agent '${t.name}' modelConfiguration must be an object`);
49944
+ for (let [n, i] of Object.entries(Zl(t.modelConfiguration) ? t.modelConfiguration : {})) {
49945
+ if (!OA.has(n)) {
49946
+ r.push(`Agent '${t.name}' modelConfiguration.${n} is not supported, use one of: ${[...OA].join(", ")}`);
49946
49947
  continue;
49947
49948
  }
49948
- if (!Ql(i) || !e(i.enabled)) {
49949
+ if (!Zl(i) || !e(i.enabled)) {
49949
49950
  r.push(`Agent '${t.name}' modelConfiguration.${n}.enabled must be a boolean`);
49950
49951
  continue;
49951
49952
  }
49952
- p(i.configuration) && !Ql(i.configuration) && r.push(`Agent '${t.name}' modelConfiguration.${n}.configuration must be an object`);
49953
+ p(i.configuration) && !Zl(i.configuration) && r.push(`Agent '${t.name}' modelConfiguration.${n}.configuration must be an object`);
49953
49954
  }
49954
49955
  n(t.roleUniversalIdentifier) && !d(t.roleUniversalIdentifier) && r.push(`Agent '${t.name}' roleUniversalIdentifier must be a valid UUID`);
49955
49956
  let a = t.triggers ?? [];
49956
- a.length > zk.MAX_TRIGGERS_PER_AGENT && r.push(`Agent '${t.name}' cannot have more than ${zk.MAX_TRIGGERS_PER_AGENT} triggers`);
49957
+ a.length > Bk.MAX_TRIGGERS_PER_AGENT && r.push(`Agent '${t.name}' cannot have more than ${Bk.MAX_TRIGGERS_PER_AGENT} triggers`);
49957
49958
  let o = a.map((e) => e.universalIdentifier);
49958
49959
  new Set(o).size !== o.length && r.push(`Agent '${t.name}' trigger universalIdentifiers must be unique`);
49959
49960
  for (let e of a) {
49960
- d(e.universalIdentifier) || r.push(`Agent '${t.name}' trigger universalIdentifier must be a valid UUID`), Bk.includes(e.type) || r.push(`Agent '${t.name}' trigger type must be one of: ${Bk.join(", ")}`);
49961
+ d(e.universalIdentifier) || r.push(`Agent '${t.name}' trigger universalIdentifier must be a valid UUID`), Vk.includes(e.type) || r.push(`Agent '${t.name}' trigger type must be one of: ${Vk.join(", ")}`);
49961
49962
  let i = e.type === "DATABASE_EVENT" ? e.settings?.eventName : null;
49962
- e.type === "DATABASE_EVENT" && (!n(i) || !Rk.test(i)) && r.push(`Agent '${t.name}' trigger event name '${i}' must look like 'company.created'`), (e.instructions?.length ?? 0) > zk.MAX_INSTRUCTIONS_LENGTH && r.push(`Agent '${t.name}' trigger instructions cannot exceed ${zk.MAX_INSTRUCTIONS_LENGTH} characters`);
49963
+ e.type === "DATABASE_EVENT" && (!n(i) || !zk.test(i)) && r.push(`Agent '${t.name}' trigger event name '${i}' must look like 'company.created'`), (e.instructions?.length ?? 0) > Bk.MAX_INSTRUCTIONS_LENGTH && r.push(`Agent '${t.name}' trigger instructions cannot exceed ${Bk.MAX_INSTRUCTIONS_LENGTH} characters`);
49963
49964
  }
49964
49965
  return J({
49965
49966
  config: t,
49966
49967
  errors: r,
49967
49968
  warnings: i
49968
49969
  });
49969
- }, kA = (e) => {
49970
+ }, AA = (e) => {
49970
49971
  let t = [], n = e.logo;
49971
49972
  n && kD(n) && (t.push(`Application logo "${n}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder instead.`), n = void 0), !n && e.logoUrl && (kD(e.logoUrl) ? t.push(`Application logoUrl "${e.logoUrl}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder and reference it via logo.`) : (t.push("`logoUrl` is deprecated. Use `logo` to reference an image bundled in your public/ folder."), n = e.logoUrl)), !e.galleryImages && (e.screenshots?.length ?? 0) > 0 && t.push("`screenshots` is deprecated. Use `galleryImages` referencing images bundled in your public/ folder.");
49972
49973
  let r = (e.galleryImages ?? e.screenshots ?? []).filter((e) => kD(e) ? (t.push(`Gallery image "${e}" is an external URL. External asset URLs are no longer supported and are ignored.`), !1) : !0);
@@ -49975,13 +49976,13 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49975
49976
  galleryImages: r,
49976
49977
  warnings: t
49977
49978
  };
49978
- }, AA = (e) => {
49979
+ }, jA = (e) => {
49979
49980
  let t = [], r = [];
49980
49981
  e.universalIdentifier || t.push("Application must have a universalIdentifier"), (!e.displayName || e.displayName.length === 0) && t.push("Application must have a non empty display name");
49981
- for (let [n, i] of Object.entries(e.applicationVariables ?? {})) (i.type === P.SELECT || i.type === P.MULTI_SELECT) && !Rw(i.options) && t.push(`Application variable "${n}" of type ${i.type} must define non-empty options`), i.isRequired && i.isDeprecated && r.push(`Application variable "${n}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`), p(i.scope) && !Lk(i.scope) && t.push(`Application variable "${n}" must have a known scope (${Ik.join(", ")})`);
49982
+ for (let [n, i] of Object.entries(e.applicationVariables ?? {})) (i.type === F.SELECT || i.type === F.MULTI_SELECT) && !Rw(i.options) && t.push(`Application variable "${n}" of type ${i.type} must define non-empty options`), i.isRequired && i.isDeprecated && r.push(`Application variable "${n}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`), p(i.scope) && !Rk(i.scope) && t.push(`Application variable "${n}" must have a known scope (${Lk.join(", ")})`);
49982
49983
  let i = e.billing?.operations ?? {}, a = e.billing?.recurring ?? {};
49983
- for (let [e, r] of Object.entries(i)) p(r) && (p(r.operationType) && !Kk(r.operationType) && t.push(`Billable operation "${e}" must map to a known operationType (${Gk.join(", ")})`), n(r.label) || t.push(`Billable operation "${e}" must have a non empty label`), p(r.icon) && !n(r.icon) && t.push(`Billable operation "${e}" must have a non empty icon when set`));
49984
- for (let [e, r] of Object.entries(a)) p(r) && (kk(r.period) || t.push(`Recurring charge "${e}" must have a known period (${Ok.join(", ")})`), p(r.per) && !jk(r.per) && t.push(`Recurring charge "${e}" must be charged per a known unit (${Ak.join(", ")}) or omit \`per\` for a flat fee`), !Number.isSafeInteger(r.amountMicroCredits) || r.amountMicroCredits <= 0 ? t.push(`Recurring charge "${e}" must have a positive integer amountMicroCredits`) : r.amountMicroCredits > 1e8 && t.push(`Recurring charge "${e}" exceeds the maximum amountMicroCredits of ${Mk}. A per-member charge declares the rate per member, not the total.`), n(r.label) || t.push(`Recurring charge "${e}" must have a non empty label`), Object.prototype.hasOwnProperty.call(i, e) && t.push(`"${e}" is declared both as a recurring charge and as a billable operation. Give them distinct names.`));
49984
+ for (let [e, r] of Object.entries(i)) p(r) && (p(r.operationType) && !qk(r.operationType) && t.push(`Billable operation "${e}" must map to a known operationType (${Kk.join(", ")})`), n(r.label) || t.push(`Billable operation "${e}" must have a non empty label`), p(r.icon) && !n(r.icon) && t.push(`Billable operation "${e}" must have a non empty icon when set`));
49985
+ for (let [e, r] of Object.entries(a)) p(r) && (Ak(r.period) || t.push(`Recurring charge "${e}" must have a known period (${kk.join(", ")})`), p(r.per) && !Mk(r.per) && t.push(`Recurring charge "${e}" must be charged per a known unit (${jk.join(", ")}) or omit \`per\` for a flat fee`), !Number.isSafeInteger(r.amountMicroCredits) || r.amountMicroCredits <= 0 ? t.push(`Recurring charge "${e}" must have a positive integer amountMicroCredits`) : r.amountMicroCredits > 1e8 && t.push(`Recurring charge "${e}" exceeds the maximum amountMicroCredits of ${Nk}. A per-member charge declares the rate per member, not the total.`), n(r.label) || t.push(`Recurring charge "${e}" must have a non empty label`), Object.prototype.hasOwnProperty.call(i, e) && t.push(`"${e}" is declared both as a recurring charge and as a billable operation. Give them distinct names.`));
49985
49986
  for (let [t, n] of Object.entries(e.serverVariables ?? {})) n.isRequired && n.isDeprecated && r.push(`Server variable "${t}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`);
49986
49987
  let o = e.requestedIframeMediaPermissions ?? [];
49987
49988
  o.length > 20 && t.push("An application can request iframe media access for up to 20 origins");
@@ -49989,8 +49990,8 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
49989
49990
  for (let e of o) OD(e.origin, { isHttpsOnly: !0 }) !== e.origin && t.push(`Requested iframe media origin "${e.origin}" must be an exact HTTPS origin, such as https://example.com`), !e.microphone && !e.camera && t.push(`Requested iframe media origin "${e.origin}" must allow the microphone, the camera, or both`), s.has(e.origin) && t.push(`Requested iframe media origin "${e.origin}" is declared more than once`), s.add(e.origin);
49990
49991
  e.defaultRoleUniversalIdentifier && r.push("`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead.");
49991
49992
  let { category: c } = e;
49992
- n(c) && !Pk(c) && r.push(`Application category "${c}" is not a known ApplicationCategory (${Nk.join(", ")}). Arbitrary category strings are kept for backward compatibility and may be removed. Ask for a new category at https://github.com/twentyhq/twenty.`);
49993
- let l = kA(e);
49993
+ n(c) && !Fk(c) && r.push(`Application category "${c}" is not a known ApplicationCategory (${Pk.join(", ")}). Arbitrary category strings are kept for backward compatibility and may be removed. Ask for a new category at https://github.com/twentyhq/twenty.`);
49994
+ let l = AA(e);
49994
49995
  return r.push(...l.warnings), J({
49995
49996
  config: {
49996
49997
  ...e,
@@ -50000,51 +50001,51 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
50000
50001
  errors: t,
50001
50002
  warnings: r
50002
50003
  });
50003
- }, jA = (e) => e.length >= 2 && e.startsWith("'") && e.endsWith("'"), MA = (e) => Object.values(hl).includes(e), NA = (e) => {
50004
+ }, MA = (e) => e.length >= 2 && e.startsWith("'") && e.endsWith("'"), NA = (e) => Object.values(ml).includes(e), PA = (e) => {
50004
50005
  let { defaultValue: t, type: n } = e;
50005
- return p(t) ? s(t) ? jA(t) || MA(t) ? [] : [t] : Array.isArray(t) && (n === P.MULTI_SELECT || n === P.ARRAY) ? t.filter((e) => typeof e == "string" && !jA(e)) : n in Hl && Ql(t) ? Object.values(t).filter((e) => typeof e == "string" && !jA(e)) : [] : [];
50006
- }, PA = (e) => p(e) ? e.flatMap((e) => {
50007
- let t = NA(e);
50006
+ return p(t) ? s(t) ? MA(t) || NA(t) ? [] : [t] : Array.isArray(t) && (n === F.MULTI_SELECT || n === F.ARRAY) ? t.filter((e) => typeof e == "string" && !MA(e)) : n in Vl && Zl(t) ? Object.values(t).filter((e) => typeof e == "string" && !MA(e)) : [] : [];
50007
+ }, FA = (e) => p(e) ? e.flatMap((e) => {
50008
+ let t = PA(e);
50008
50009
  if (t.length === 0) return [];
50009
50010
  let n = t[0];
50010
50011
  return [`Field "${e.label}" has string defaultValue(s) without surrounding single quotes: ${t.map((e) => `"${e}"`).join(", ")}. Unquoted strings are reserved for computed defaults ('uuid', 'now'). To define a literal string default, wrap it in single quotes: "'${n}'" instead of "${n}".`];
50011
- }) : [], FA = (e) => !dE(e.type) || !Array.isArray(e.options) ? [] : e.options.flatMap((t, n) => Ql(t) ? !("color" in t) || !p(t.color) || FD(t.color) ? [] : [`Field "${e.label}" option "${t.label}" has an unsupported color. Supported colors: ${Kl.join(", ")}`] : [`Field "${e.label}" option at index ${n} must be an object`]), IA = (e) => {
50012
+ }) : [], IA = (e) => !dE(e.type) || !Array.isArray(e.options) ? [] : e.options.flatMap((t, n) => Zl(t) ? !("color" in t) || !p(t.color) || FD(t.color) ? [] : [`Field "${e.label}" option "${t.label}" has an unsupported color. Supported colors: ${Gl.join(", ")}`] : [`Field "${e.label}" option at index ${n} must be an object`]), LA = (e) => {
50012
50013
  if (!e) return [];
50013
50014
  let t = [];
50014
- for (let r of e) n(r.label) || t.push("Field must have a label"), n(r.name) || t.push(`Field "${r.label}" must have a name`), n(r.universalIdentifier) || t.push(`Field "${r.label}" must have a universalIdentifier`), (r.type === P.SELECT || r.type === P.MULTI_SELECT) && (!Array.isArray(r.options) || r.options.length === 0) && t.push(`Field "${r.label}" is a SELECT/MULTI_SELECT type and must have options`), t.push(...FA(r)), r.isUnique === !0 && (r.type === P.RELATION || r.type === P.MORPH_RELATION || r.type === P.FILES) && t.push(`Field "${r.label}" of type ${r.type} cannot be unique`);
50015
+ for (let r of e) n(r.label) || t.push("Field must have a label"), n(r.name) || t.push(`Field "${r.label}" must have a name`), n(r.universalIdentifier) || t.push(`Field "${r.label}" must have a universalIdentifier`), (r.type === F.SELECT || r.type === F.MULTI_SELECT) && (!Array.isArray(r.options) || r.options.length === 0) && t.push(`Field "${r.label}" is a SELECT/MULTI_SELECT type and must have options`), t.push(...IA(r)), r.isUnique === !0 && (r.type === F.RELATION || r.type === F.MORPH_RELATION || r.type === F.FILES) && t.push(`Field "${r.label}" of type ${r.type} cannot be unique`);
50015
50016
  return t;
50016
- }, LA = (e) => {
50017
+ }, RA = (e) => {
50017
50018
  let t = [];
50018
50019
  e.objectUniversalIdentifier || t.push("Field must have an objectUniversalIdentifier");
50019
- let n = IA([e]);
50020
+ let n = LA([e]);
50020
50021
  return t.push(...n), J({
50021
50022
  config: e,
50022
50023
  errors: t,
50023
- warnings: PA([e])
50024
+ warnings: FA([e])
50024
50025
  });
50025
- }, RA = (e) => {
50026
+ }, zA = (e) => {
50026
50027
  let t = [], n = [];
50027
50028
  return e.universalIdentifier || t.push("CommandMenuItem must have a universalIdentifier"), e.label || t.push("CommandMenuItem must have a label"), e.frontComponentUniversalIdentifier || t.push("CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)"), e.icon && n.push("CommandMenuItem icon will be ignored in favor of application icon, you should remove it"), J({
50028
50029
  config: e,
50029
50030
  errors: t,
50030
50031
  warnings: n
50031
50032
  });
50032
- }, zA = [
50033
+ }, BA = [
50033
50034
  "created",
50034
50035
  "updated",
50035
50036
  "deleted",
50036
50037
  "restored",
50037
50038
  "linked",
50038
50039
  "unlinked"
50039
- ], BA = (e) => p(e) && zA.includes(e), VA = (e) => {
50040
+ ], VA = (e) => p(e) && BA.includes(e), HA = (e) => {
50040
50041
  let t = [];
50041
- e.universalIdentifier || t.push("TimelineActivityType must have a universalIdentifier"), e.name || t.push("TimelineActivityType must have a name"), e.label || t.push("TimelineActivityType must have a label"), e.emit?.on && !BA(e.emit.on) && t.push(`TimelineActivityType emit.on ${e.emit.on} is not supported`), e.emit && !n(e.emit.on) && t.push("TimelineActivityType emit must have an on action"), e.emit && !n(e.emit.objectUniversalIdentifier) && t.push("TimelineActivityType emit must have an objectUniversalIdentifier"), e.emit?.through && !n(e.emit.through.relationFieldUniversalIdentifier) && t.push("TimelineActivityType emit.through must have a relationFieldUniversalIdentifier"), (e.emit?.on === "linked" || e.emit?.on === "unlinked") && !e.emit.through && t.push("TimelineActivityType linked and unlinked emitters require through routing");
50042
+ e.universalIdentifier || t.push("TimelineActivityType must have a universalIdentifier"), e.name || t.push("TimelineActivityType must have a name"), e.label || t.push("TimelineActivityType must have a label"), e.emit?.on && !VA(e.emit.on) && t.push(`TimelineActivityType emit.on ${e.emit.on} is not supported`), e.emit && !n(e.emit.on) && t.push("TimelineActivityType emit must have an on action"), e.emit && !n(e.emit.objectUniversalIdentifier) && t.push("TimelineActivityType emit must have an objectUniversalIdentifier"), e.emit?.through && !n(e.emit.through.relationFieldUniversalIdentifier) && t.push("TimelineActivityType emit.through must have a relationFieldUniversalIdentifier"), (e.emit?.on === "linked" || e.emit?.on === "unlinked") && !e.emit.through && t.push("TimelineActivityType linked and unlinked emitters require through routing");
50042
50043
  let r = e.emit?.through?.triggerFieldUniversalIdentifiers;
50043
50044
  return r && (e.emit?.on !== "updated" || !Rw(r)) && t.push("TimelineActivityType emit.through.triggerFieldUniversalIdentifiers requires an updated event"), r && new Set(r).size !== r.length && t.push("TimelineActivityType emit.through.triggerFieldUniversalIdentifiers must be unique"), e.replacesTimelineActivityTypeUniversalIdentifier && !e.emit && t.push("TimelineActivityType replacesTimelineActivityTypeUniversalIdentifier requires emit"), J({
50044
50045
  config: e,
50045
50046
  errors: t
50046
50047
  });
50047
- }, HA = ({ expression: e, ...t }) => {
50048
+ }, UA = ({ expression: e, ...t }) => {
50048
50049
  let r = [], i = typeof e == "string" ? e : e?.source;
50049
50050
  return n(t.universalIdentifier) || r.push("ValidationRule must have a universalIdentifier"), n(t.objectUniversalIdentifier) || r.push("ValidationRule must have an objectUniversalIdentifier"), n(t.name?.trim()) || r.push("ValidationRule must have a name"), n(i?.trim()) || r.push("ValidationRule must have an expression"), n(t.message?.trim()) || r.push("ValidationRule must have a message"), J({
50050
50051
  config: {
@@ -50053,53 +50054,53 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
50053
50054
  },
50054
50055
  errors: r
50055
50056
  });
50056
- }, UA = (e) => typeof e == "object", WA = (e) => {
50057
+ }, WA = (e) => typeof e == "object", GA = (e) => {
50057
50058
  if (typeof e == "number" && !Number.isFinite(e)) throw Error(`A rule expression can't compare with ${e}`);
50058
50059
  return JSON.stringify(e);
50059
- }, GA = (e) => UA(e) ? e.isCompound ? `(${e.source})` : e.source : WA(e), KA = (e) => ({
50060
+ }, KA = (e) => WA(e) ? e.isCompound ? `(${e.source})` : e.source : GA(e), qA = (e) => ({
50060
50061
  source: e,
50061
50062
  isCompound: !1
50062
- }), qA = (e) => ({
50063
+ }), JA = (e) => ({
50063
50064
  source: e,
50064
50065
  isCompound: !0
50065
- }), JA = (e) => (t, n) => qA(`${GA(t)} ${e} ${GA(n)}`), YA = (e) => (...t) => t.length === 1 && UA(t[0]) ? t[0] : qA(t.map(GA).join(` ${e} `)), XA = {
50066
- ...Object.fromEntries(Object.keys(eu).map((e) => [e, (...t) => KA(`${e}(${t.map(GA).join(", ")})`)])),
50067
- field: (e) => KA(e),
50068
- now: KA("now"),
50069
- and: YA("and"),
50070
- or: YA("or"),
50071
- not: (e) => qA(`not ${GA(e)}`),
50072
- eq: JA("=="),
50073
- notEq: JA("!="),
50074
- gt: JA(">"),
50075
- gte: JA(">="),
50076
- lt: JA("<"),
50077
- lte: JA("<="),
50078
- add: JA("+"),
50079
- subtract: JA("-"),
50080
- multiply: JA("*"),
50081
- divide: JA("/"),
50082
- isIn: (e, t) => qA(`${GA(e)} in [${t.map(WA).join(", ")}]`)
50083
- }, ZA = (e) => {
50066
+ }), YA = (e) => (t, n) => JA(`${KA(t)} ${e} ${KA(n)}`), XA = (e) => (...t) => t.length === 1 && WA(t[0]) ? t[0] : JA(t.map(KA).join(` ${e} `)), ZA = {
50067
+ ...Object.fromEntries(Object.keys($l).map((e) => [e, (...t) => qA(`${e}(${t.map(KA).join(", ")})`)])),
50068
+ field: (e) => qA(e),
50069
+ now: qA("now"),
50070
+ and: XA("and"),
50071
+ or: XA("or"),
50072
+ not: (e) => JA(`not ${KA(e)}`),
50073
+ eq: YA("=="),
50074
+ notEq: YA("!="),
50075
+ gt: YA(">"),
50076
+ gte: YA(">="),
50077
+ lt: YA("<"),
50078
+ lte: YA("<="),
50079
+ add: YA("+"),
50080
+ subtract: YA("-"),
50081
+ multiply: YA("*"),
50082
+ divide: YA("/"),
50083
+ isIn: (e, t) => JA(`${KA(e)} in [${t.map(GA).join(", ")}]`)
50084
+ }, QA = (e) => {
50084
50085
  let t = [];
50085
- return n(e.universalIdentifier) || t.push("SettingsMenuItem must have a universalIdentifier"), n(e.title) || t.push("SettingsMenuItem must have a title"), n(e.title) && Xk(e.title) && t.push(`SettingsMenuItem title "${e.title}" is reserved for the built-in settings menu item`), n(e.frontComponentUniversalIdentifier) || t.push("SettingsMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this item renders)"), p(e.position) && !Number.isFinite(e.position) && t.push("SettingsMenuItem position must be a number"), p(e.scope) && !Wk.includes(e.scope) && t.push(`SettingsMenuItem scope must be one of ${Wk.join(", ")}`), p(e.slug) && !Qk(e.slug) && t.push(`SettingsMenuItem slug "${e.slug}" must be lowercase kebab-case (letters, digits and single hyphens) and at most 64 characters`), p(e.slug) && Qk(e.slug) && Jk(e.slug) && t.push(`SettingsMenuItem slug "${e.slug}" is reserved: it is a built-in settings tab or shaped like a UUID`), J({
50086
+ return n(e.universalIdentifier) || t.push("SettingsMenuItem must have a universalIdentifier"), n(e.title) || t.push("SettingsMenuItem must have a title"), n(e.title) && Zk(e.title) && t.push(`SettingsMenuItem title "${e.title}" is reserved for the built-in settings menu item`), n(e.frontComponentUniversalIdentifier) || t.push("SettingsMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this item renders)"), p(e.position) && !Number.isFinite(e.position) && t.push("SettingsMenuItem position must be a number"), p(e.scope) && !Gk.includes(e.scope) && t.push(`SettingsMenuItem scope must be one of ${Gk.join(", ")}`), p(e.slug) && !$k(e.slug) && t.push(`SettingsMenuItem slug "${e.slug}" must be lowercase kebab-case (letters, digits and single hyphens) and at most 64 characters`), p(e.slug) && $k(e.slug) && Yk(e.slug) && t.push(`SettingsMenuItem slug "${e.slug}" is reserved: it is a built-in settings tab or shaped like a UUID`), J({
50086
50087
  config: e,
50087
50088
  errors: t,
50088
50089
  warnings: []
50089
50090
  });
50090
- }, QA = (e) => e === "then", $A = (e) => typeof e == "symbol", Y = (e) => {
50091
+ }, $A = (e) => e === "then", ej = (e) => typeof e == "symbol", Y = (e) => {
50091
50092
  let t = () => {
50092
50093
  throw Error(`"${e}" from twenty-sdk can only be used inside a command's conditionalAvailabilityExpression, not at runtime.`);
50093
50094
  };
50094
50095
  return new Proxy(function() {}, {
50095
50096
  get: (e, n) => {
50096
- if (!(QA(n) || $A(n))) return t();
50097
+ if (!($A(n) || ej(n))) return t();
50097
50098
  },
50098
50099
  apply: t,
50099
50100
  construct: t,
50100
50101
  has: t
50101
50102
  });
50102
- }, ej = Y("pageType"), tj = Y("isInSidePanel"), nj = Y("isDashboardPageLayoutInEditMode"), rj = Y("isLayoutCustomizationModeEnabled"), ij = Y("favoriteRecordIds"), aj = Y("isSelectAll"), oj = Y("hasAnySoftDeleteFilterOnView"), sj = Y("numberOfSelectedRecords"), cj = Y("objectPermissions"), lj = Y("selectedRecords"), uj = Y("featureFlags"), dj = Y("targetObjectReadPermissions"), fj = Y("targetObjectWritePermissions"), pj = Y("canImpersonate"), mj = Y("canAccessFullAdminPanel"), hj = Y("objectMetadataItem"), gj = Y("objectMetadataLabel"), _j = Y("isDefined"), vj = Y("isNonEmptyString"), yj = Y("includes"), bj = Y("every"), xj = Y("everyDefined"), Sj = Y("everyEquals"), Cj = Y("some"), wj = Y("someDefined"), Tj = Y("someEquals"), Ej = Y("none"), Dj = Y("noneDefined"), Oj = Y("noneEquals"), kj = Y("someNonEmptyString"), Aj = Y("includesEvery"), jj = (e) => {
50103
+ }, tj = Y("pageType"), nj = Y("isInSidePanel"), rj = Y("isDashboardPageLayoutInEditMode"), ij = Y("isLayoutCustomizationModeEnabled"), aj = Y("favoriteRecordIds"), oj = Y("isSelectAll"), sj = Y("hasAnySoftDeleteFilterOnView"), cj = Y("numberOfSelectedRecords"), lj = Y("objectPermissions"), uj = Y("selectedRecords"), dj = Y("featureFlags"), fj = Y("targetObjectReadPermissions"), pj = Y("targetObjectWritePermissions"), mj = Y("canImpersonate"), hj = Y("canAccessFullAdminPanel"), gj = Y("objectMetadataItem"), _j = Y("objectMetadataLabel"), vj = Y("currentView"), yj = Y("isDefined"), bj = Y("isNonEmptyString"), xj = Y("includes"), Sj = Y("every"), Cj = Y("everyDefined"), wj = Y("everyEquals"), Tj = Y("some"), Ej = Y("someDefined"), Dj = Y("someEquals"), Oj = Y("none"), kj = Y("noneDefined"), Aj = Y("noneEquals"), jj = Y("someNonEmptyString"), Mj = Y("includesEvery"), Nj = (e) => {
50103
50104
  let t = [];
50104
50105
  e.universalIdentifier || t.push("Front component must have a universalIdentifier"), e.component || t.push("Front component must have a component"), typeof e.component != "function" && t.push("Front component component must be a React component");
50105
50106
  let n = e.widgetAvailability;
@@ -50107,17 +50108,17 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
50107
50108
  config: e,
50108
50109
  errors: t
50109
50110
  });
50110
- }, Mj = (e) => {
50111
+ }, Pj = (e) => {
50111
50112
  let t = [];
50112
50113
  return e.universalIdentifier || t.push("Settings front component must have a universalIdentifier"), e.component ? typeof e.component != "function" && t.push("Settings front component component must be a React component") : t.push("Settings front component must have a component"), J({
50113
50114
  config: e,
50114
50115
  errors: t
50115
50116
  });
50116
- }, Nj = (e) => typeof e == "string" && e.trim().length > 0, Pj = (e) => {
50117
+ }, Fj = (e) => typeof e == "string" && e.trim().length > 0, Ij = (e) => {
50117
50118
  let t = [];
50118
- if (Nj(e.universalIdentifier) || t.push("Index must have a universalIdentifier"), Nj(e.objectUniversalIdentifier) || t.push("Index must reference an objectUniversalIdentifier"), !Rw(e.fields)) t.push("Index must have at least one field");
50119
+ if (Fj(e.universalIdentifier) || t.push("Index must have a universalIdentifier"), Fj(e.objectUniversalIdentifier) || t.push("Index must reference an objectUniversalIdentifier"), !Rw(e.fields)) t.push("Index must have at least one field");
50119
50120
  else {
50120
- for (let n of e.fields) Nj(n.universalIdentifier) || t.push("IndexField must have a universalIdentifier"), Nj(n.fieldUniversalIdentifier) || t.push("IndexField must reference a fieldUniversalIdentifier");
50121
+ for (let n of e.fields) Fj(n.universalIdentifier) || t.push("IndexField must have a universalIdentifier"), Fj(n.fieldUniversalIdentifier) || t.push("IndexField must reference a fieldUniversalIdentifier");
50121
50122
  let n = e.fields.map((e) => `${e.fieldUniversalIdentifier}::${e.subFieldName ?? ""}`);
50122
50123
  new Set(n).size !== n.length && t.push("Index lists the same column twice");
50123
50124
  }
@@ -50128,7 +50129,7 @@ var qk = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, Jk =
50128
50129
  };
50129
50130
  //#endregion
50130
50131
  //#region src/sdk/define/logic-functions/define-health-check.ts
50131
- function Fj(t) {
50132
+ function Lj(t) {
50132
50133
  let r = [];
50133
50134
  return n(t.universalIdentifier) || r.push("Health check must have a universalIdentifier"), p(t.handler) ? typeof t.handler != "function" && r.push("Health check handler must be a function") : r.push("Health check must have a handler"), p(t.runOnUserPreferences) && !e(t.runOnUserPreferences) && r.push("Health check runOnUserPreferences must be a boolean"), J({
50134
50135
  config: t,
@@ -50137,95 +50138,95 @@ function Fj(t) {
50137
50138
  }
50138
50139
  //#endregion
50139
50140
  //#region src/sdk/define/logic-functions/define-logic-function.ts
50140
- var Ij = (e) => {
50141
+ var Rj = (e) => {
50141
50142
  let t = [];
50142
- return e.universalIdentifier || t.push("Logic function must have a universalIdentifier"), e.handler || t.push("Logic function must have a handler"), typeof e.handler != "function" && t.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || t.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || t.push("Route trigger must have an httpMethod")), e.serverRouteTriggerSettings?.httpMethods?.some((e) => e !== bl.GET && e !== bl.POST) && t.push("Server route trigger only supports the GET and POST http methods"), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || t.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || t.push("Database event trigger must have an eventName")), J({
50143
+ return e.universalIdentifier || t.push("Logic function must have a universalIdentifier"), e.handler || t.push("Logic function must have a handler"), typeof e.handler != "function" && t.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || t.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || t.push("Route trigger must have an httpMethod")), e.serverRouteTriggerSettings?.httpMethods?.some((e) => e !== yl.GET && e !== yl.POST) && t.push("Server route trigger only supports the GET and POST http methods"), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || t.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || t.push("Database event trigger must have an eventName")), J({
50143
50144
  config: e,
50144
50145
  errors: t
50145
50146
  });
50146
- }, Lj = (e) => {
50147
+ }, zj = (e) => {
50147
50148
  let t = [];
50148
50149
  return e.universalIdentifier || t.push("Post install logic function must have a universalIdentifier"), e.handler || t.push("Post install logic function must have a handler"), typeof e.handler != "function" && t.push("Post install logic function handler must be a function"), J({
50149
50150
  config: e,
50150
50151
  errors: t
50151
50152
  });
50152
- }, Rj = (e) => {
50153
+ }, Bj = (e) => {
50153
50154
  let t = [];
50154
50155
  return e.universalIdentifier || t.push("Pre install logic function must have a universalIdentifier"), e.handler || t.push("Pre install logic function must have a handler"), typeof e.handler != "function" && t.push("Pre install logic function handler must be a function"), J({
50155
50156
  config: e,
50156
50157
  errors: t
50157
50158
  });
50158
- }, zj = (e) => {
50159
+ }, Vj = (e) => {
50159
50160
  let t = [];
50160
50161
  return e.universalIdentifier || t.push("Uninstall logic function must have a universalIdentifier"), e.handler || t.push("Uninstall logic function must have a handler"), typeof e.handler != "function" && t.push("Uninstall logic function handler must be a function"), J({
50161
50162
  config: e,
50162
50163
  errors: t
50163
50164
  });
50164
- }, Bj = /^[a-z][a-z0-9-]*$/, Vj = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, Hj = (e) => Vj.test(e), Uj = ["oauth", "custom"], Wj = [
50165
+ }, Hj = /^[a-z][a-z0-9-]*$/, Uj = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, Wj = (e) => Uj.test(e), Gj = ["oauth", "custom"], Kj = [
50165
50166
  "identifyAccountLogicFunction",
50166
50167
  "onConnectLogicFunction",
50167
50168
  "onDisconnectLogicFunction"
50168
- ], Gj = ["authorizeLogicFunction", "callbackLogicFunction"], Kj = ({ path: e, universalIdentifier: t }) => Hj(t) ? null : `Connection provider ${e}.universalIdentifier "${t}" must be the UUID universalIdentifier of a logic function in this app.`, qj = (e) => p(e) ? Gj.flatMap((t) => {
50169
+ ], qj = ["authorizeLogicFunction", "callbackLogicFunction"], Jj = ({ path: e, universalIdentifier: t }) => Wj(t) ? null : `Connection provider ${e}.universalIdentifier "${t}" must be the UUID universalIdentifier of a logic function in this app.`, Yj = (e) => p(e) ? qj.flatMap((t) => {
50169
50170
  let n = e[t];
50170
50171
  if (!p(n)) return [`Custom connection provider must declare custom.${t}`];
50171
- let r = Kj({
50172
+ let r = Jj({
50172
50173
  path: `custom.${t}`,
50173
50174
  universalIdentifier: n.universalIdentifier
50174
50175
  });
50175
50176
  return p(r) ? [r] : [];
50176
- }) : ["Connection provider with type 'custom' must declare a `custom` config block"], Jj = (e) => {
50177
+ }) : ["Connection provider with type 'custom' must declare a `custom` config block"], Xj = (e) => {
50177
50178
  let t = [];
50178
- e.universalIdentifier ? Hj(e.universalIdentifier) || t.push(`Connection provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("Connection provider must have a universalIdentifier"), e.name ? Bj.test(e.name) || t.push(`Connection provider name "${e.name}" must match ${Bj} (used in URLs)`) : t.push("Connection provider must have a name"), e.displayName || t.push("Connection provider must have a displayName");
50179
- for (let n of Wj) {
50180
- let r = e[n], i = p(r) ? Kj({
50179
+ e.universalIdentifier ? Wj(e.universalIdentifier) || t.push(`Connection provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("Connection provider must have a universalIdentifier"), e.name ? Hj.test(e.name) || t.push(`Connection provider name "${e.name}" must match ${Hj} (used in URLs)`) : t.push("Connection provider must have a name"), e.displayName || t.push("Connection provider must have a displayName");
50180
+ for (let n of Kj) {
50181
+ let r = e[n], i = p(r) ? Jj({
50181
50182
  path: n,
50182
50183
  universalIdentifier: r.universalIdentifier
50183
50184
  }) : null;
50184
50185
  p(i) && t.push(i);
50185
50186
  }
50186
- if (e.type ? Uj.includes(e.type) || t.push(`Connection provider type "${e.type}" is not supported. Supported types: ${Uj.join(", ")}.`) : t.push("Connection provider must declare a `type` (e.g. 'oauth')"), p(e.scope) && !Vk.includes(e.scope) && t.push(`Connection provider scope must be one of ${Vk.join(", ")}`), e.type === "oauth") {
50187
+ if (e.type ? Gj.includes(e.type) || t.push(`Connection provider type "${e.type}" is not supported. Supported types: ${Gj.join(", ")}.`) : t.push("Connection provider must declare a `type` (e.g. 'oauth')"), p(e.scope) && !Hk.includes(e.scope) && t.push(`Connection provider scope must be one of ${Hk.join(", ")}`), e.type === "oauth") {
50187
50188
  let n = e.oauth;
50188
50189
  n ? (n.authorizationEndpoint || t.push("OAuth connection provider must have an authorizationEndpoint"), n.tokenEndpoint || t.push("OAuth connection provider must have a tokenEndpoint"), n.clientIdVariable || t.push("OAuth connection provider must reference a clientIdVariable (key of a serverVariable on defineApplication)"), n.clientSecretVariable || t.push("OAuth connection provider must reference a clientSecretVariable (key of a serverVariable on defineApplication)"), Array.isArray(n.scopes) || t.push("OAuth connection provider must declare a scopes array")) : t.push("Connection provider with type 'oauth' must declare an `oauth` config block");
50189
50190
  }
50190
- return e.type === "custom" && t.push(...qj(e.custom)), J({
50191
+ return e.type === "custom" && t.push(...Yj(e.custom)), J({
50191
50192
  config: e,
50192
50193
  errors: t
50193
50194
  });
50194
- }, Yj = (e) => {
50195
+ }, Zj = (e) => {
50195
50196
  let t = [];
50196
- return r(e.universalIdentifier) ? Hj(e.universalIdentifier) || t.push(`Messaging provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("Messaging provider must have a universalIdentifier"), r(e.name) ? Bj.test(e.name) || t.push(`Messaging provider name "${e.name}" must match ${Bj}`) : t.push("Messaging provider must have a name"), r(e.displayName) || t.push("Messaging provider must have a displayName"), p(e.connectionProvider) ? Hj(e.connectionProvider.universalIdentifier) || t.push(`Messaging provider connectionProvider.universalIdentifier "${e.connectionProvider.universalIdentifier}" must be the UUID universalIdentifier of a connection provider in this app.`) : t.push("Messaging provider must declare the connectionProvider it uses"), p(e.sendMessageLogicFunction) && !Hj(e.sendMessageLogicFunction.universalIdentifier) && t.push(`Messaging provider sendMessageLogicFunction.universalIdentifier "${e.sendMessageLogicFunction.universalIdentifier}" must be the UUID universalIdentifier of a logic function in this app.`), J({
50197
+ return r(e.universalIdentifier) ? Wj(e.universalIdentifier) || t.push(`Messaging provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("Messaging provider must have a universalIdentifier"), r(e.name) ? Hj.test(e.name) || t.push(`Messaging provider name "${e.name}" must match ${Hj}`) : t.push("Messaging provider must have a name"), r(e.displayName) || t.push("Messaging provider must have a displayName"), p(e.connectionProvider) ? Wj(e.connectionProvider.universalIdentifier) || t.push(`Messaging provider connectionProvider.universalIdentifier "${e.connectionProvider.universalIdentifier}" must be the UUID universalIdentifier of a connection provider in this app.`) : t.push("Messaging provider must declare the connectionProvider it uses"), p(e.sendMessageLogicFunction) && !Wj(e.sendMessageLogicFunction.universalIdentifier) && t.push(`Messaging provider sendMessageLogicFunction.universalIdentifier "${e.sendMessageLogicFunction.universalIdentifier}" must be the UUID universalIdentifier of a logic function in this app.`), J({
50197
50198
  config: e,
50198
50199
  errors: t
50199
50200
  });
50200
- }, Xj = /^[a-z][a-z0-9_]{0,31}$/, Zj = (e) => {
50201
+ }, Qj = /^[a-z][a-z0-9_]{0,31}$/, $j = (e) => {
50201
50202
  let t = [];
50202
- return r(e.universalIdentifier) ? Hj(e.universalIdentifier) || t.push(`MCP server universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("MCP server must have a universalIdentifier"), r(e.name) ? Xj.test(e.name) || t.push(`MCP server name "${e.name}" must match ${Xj}`) : t.push("MCP server must have a name"), r(e.label) || t.push("MCP server must have a label"), (!r(e.url) || !AD(e.url)) && t.push(`MCP server url "${e.url}" must be an HTTP or HTTPS URL`), p(e.connectionProvider) && !Hj(e.connectionProvider.universalIdentifier) && t.push(`MCP server connectionProvider.universalIdentifier "${e.connectionProvider.universalIdentifier}" must be the UUID universalIdentifier of a connection provider in this app.`), J({
50203
+ return r(e.universalIdentifier) ? Wj(e.universalIdentifier) || t.push(`MCP server universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`) : t.push("MCP server must have a universalIdentifier"), r(e.name) ? Qj.test(e.name) || t.push(`MCP server name "${e.name}" must match ${Qj}`) : t.push("MCP server must have a name"), r(e.label) || t.push("MCP server must have a label"), (!r(e.url) || !AD(e.url)) && t.push(`MCP server url "${e.url}" must be an HTTP or HTTPS URL`), p(e.connectionProvider) && !Wj(e.connectionProvider.universalIdentifier) && t.push(`MCP server connectionProvider.universalIdentifier "${e.connectionProvider.universalIdentifier}" must be the UUID universalIdentifier of a connection provider in this app.`), J({
50203
50204
  config: e,
50204
50205
  errors: t
50205
50206
  });
50206
- }, Qj = (e) => {
50207
+ }, eM = (e) => {
50207
50208
  let t = [];
50208
50209
  return e.universalIdentifier || t.push("NavigationMenuItem must have a universalIdentifier"), typeof e.position != "number" && t.push("NavigationMenuItem must have a position"), J({
50209
50210
  config: e,
50210
50211
  errors: t
50211
50212
  });
50212
- }, $j = ({ fields: e, labelIdentifierFieldMetadataUniversalIdentifier: t }) => p(t) && !e.some((e) => e.universalIdentifier === t), eM = (e) => {
50213
+ }, tM = ({ fields: e, labelIdentifierFieldMetadataUniversalIdentifier: t }) => p(t) && !e.some((e) => e.universalIdentifier === t), nM = (e) => {
50213
50214
  let t = [];
50214
50215
  e.universalIdentifier || t.push("Object must have a universalIdentifier"), e.nameSingular || t.push("Object must have a nameSingular"), e.namePlural || t.push("Object must have a namePlural"), e.labelSingular || t.push("Object must have a labelSingular"), e.labelPlural || t.push("Object must have a labelPlural");
50215
- let n = IA(e.fields);
50216
+ let n = LA(e.fields);
50216
50217
  t.push(...n);
50217
- let r = $j({
50218
+ let r = tM({
50218
50219
  fields: e.fields,
50219
50220
  labelIdentifierFieldMetadataUniversalIdentifier: e.labelIdentifierFieldMetadataUniversalIdentifier
50220
50221
  });
50221
50222
  return J({
50222
50223
  config: e,
50223
50224
  errors: t,
50224
- warnings: [...PA(e.fields), ...r ? [`labelIdentifierFieldMetadataUniversalIdentifier of "${e.nameSingular}" names no field in its fields array; it must name a field the engine derives for this object, or the sync will fail to resolve it`] : []]
50225
+ warnings: [...FA(e.fields), ...r ? [`labelIdentifierFieldMetadataUniversalIdentifier of "${e.nameSingular}" names no field in its fields array; it must name a field the engine derives for this object, or the sync will fail to resolve it`] : []]
50225
50226
  });
50226
50227
  };
50227
- P.UUID, P.DATE_TIME, P.DATE_TIME, P.DATE_TIME, P.ACTOR, P.ACTOR, P.POSITION;
50228
- var tM = [
50228
+ F.UUID, F.DATE_TIME, F.DATE_TIME, F.DATE_TIME, F.ACTOR, F.ACTOR, F.POSITION;
50229
+ var rM = [
50229
50230
  "id",
50230
50231
  "createdAt",
50231
50232
  "updatedAt",
@@ -50234,11 +50235,11 @@ var tM = [
50234
50235
  "updatedBy",
50235
50236
  "position",
50236
50237
  "searchVector"
50237
- ], X = (e) => Object.fromEntries(tM.map((t) => [t, { universalIdentifier: nu({
50238
- applicationUniversalIdentifier: L,
50238
+ ], X = (e) => Object.fromEntries(rM.map((t) => [t, { universalIdentifier: tu({
50239
+ applicationUniversalIdentifier: R,
50239
50240
  objectUniversalIdentifier: e,
50240
50241
  name: t
50241
- }) }])), nM = (e) => {
50242
+ }) }])), iM = (e) => {
50242
50243
  let { id: t, createdAt: n, updatedAt: r, deletedAt: i } = X(e);
50243
50244
  return {
50244
50245
  id: t,
@@ -50291,7 +50292,7 @@ var tM = [
50291
50292
  messageThreadTarget: "378ad1b0-592d-4084-80ee-86fef44725b9"
50292
50293
  }, Q = {
50293
50294
  agentChatThread: {
50294
- ...nM(Z.agentChatThread),
50295
+ ...iM(Z.agentChatThread),
50295
50296
  archivedAt: { universalIdentifier: "b42eaf6f-240f-41ef-af61-51d5ac9cde7d" },
50296
50297
  workspaceMember: { universalIdentifier: "6f3ed3b5-0642-4a2a-9558-98376adb60f4" },
50297
50298
  title: { universalIdentifier: "9283c05e-127c-46ec-82e9-6424a7c0a2f1" },
@@ -50311,8 +50312,8 @@ var tM = [
50311
50312
  pendingQuestionMessageId: { universalIdentifier: "51a9b421-7d90-4a59-9712-036ea9721e65" },
50312
50313
  turns: { universalIdentifier: "d5c88fbc-d318-4ee1-b70a-751a925bef5b" },
50313
50314
  messages: { universalIdentifier: "5c851a60-e5d9-4b1e-9926-c2eab6fc9e62" },
50314
- attachments: { universalIdentifier: R({
50315
- applicationUniversalIdentifier: L,
50315
+ attachments: { universalIdentifier: z({
50316
+ applicationUniversalIdentifier: R,
50316
50317
  objectUniversalIdentifier: Z.agentChatThread,
50317
50318
  relationTargetObjectUniversalIdentifier: Z.attachment
50318
50319
  }) },
@@ -50328,7 +50329,7 @@ var tM = [
50328
50329
  writerWorkspaceMemberIds: { universalIdentifier: "c8fe2406-ad9c-4274-aeb5-9beb74d4b353" }
50329
50330
  },
50330
50331
  agentChatThreadParticipant: {
50331
- ...nM(Z.agentChatThreadParticipant),
50332
+ ...iM(Z.agentChatThreadParticipant),
50332
50333
  thread: { universalIdentifier: "7d0282a5-11ce-4da8-a165-30909ffdf383" },
50333
50334
  workspaceMember: { universalIdentifier: "4345764d-878b-4a3a-b1c9-822378f868e6" },
50334
50335
  lastReadAt: { universalIdentifier: "7e3a8319-c127-4c4f-add4-6feac37ea555" },
@@ -50340,26 +50341,26 @@ var tM = [
50340
50341
  },
50341
50342
  agentChatThreadTarget: {
50342
50343
  target: { universalIdentifier: "2c4cc537-39a2-4df9-81a1-dda26eb19658" },
50343
- ...nM(Z.agentChatThreadTarget),
50344
+ ...iM(Z.agentChatThreadTarget),
50344
50345
  thread: { universalIdentifier: "54664c16-3c3d-4d5e-904c-59e1b3707cfb" },
50345
- targetPerson: { universalIdentifier: R({
50346
- applicationUniversalIdentifier: L,
50346
+ targetPerson: { universalIdentifier: z({
50347
+ applicationUniversalIdentifier: R,
50347
50348
  objectUniversalIdentifier: Z.agentChatThreadTarget,
50348
50349
  relationTargetObjectUniversalIdentifier: Z.person
50349
50350
  }) },
50350
- targetCompany: { universalIdentifier: R({
50351
- applicationUniversalIdentifier: L,
50351
+ targetCompany: { universalIdentifier: z({
50352
+ applicationUniversalIdentifier: R,
50352
50353
  objectUniversalIdentifier: Z.agentChatThreadTarget,
50353
50354
  relationTargetObjectUniversalIdentifier: Z.company
50354
50355
  }) },
50355
- targetOpportunity: { universalIdentifier: R({
50356
- applicationUniversalIdentifier: L,
50356
+ targetOpportunity: { universalIdentifier: z({
50357
+ applicationUniversalIdentifier: R,
50357
50358
  objectUniversalIdentifier: Z.agentChatThreadTarget,
50358
50359
  relationTargetObjectUniversalIdentifier: Z.opportunity
50359
50360
  }) }
50360
50361
  },
50361
50362
  agentTurn: {
50362
- ...nM(Z.agentTurn),
50363
+ ...iM(Z.agentTurn),
50363
50364
  agentId: { universalIdentifier: "4ac55a9a-95e8-4fd9-8c03-47ee3b618ae7" },
50364
50365
  thread: { universalIdentifier: "4e9b4f1f-c1bb-42d0-bb38-eb2b2f830e64" },
50365
50366
  messages: { universalIdentifier: "737c3559-ea1a-4269-aea4-e672b17afbb1" },
@@ -50377,7 +50378,7 @@ var tM = [
50377
50378
  createdBy: { universalIdentifier: "c3d5e8a2-fde8-452d-a74d-04436aaf17bc" }
50378
50379
  },
50379
50380
  agentMessage: {
50380
- ...nM(Z.agentMessage),
50381
+ ...iM(Z.agentMessage),
50381
50382
  agentId: { universalIdentifier: "880a91ad-4ab1-4067-87f6-970a53aa2234" },
50382
50383
  senderWorkspaceMember: { universalIdentifier: "69bea8e1-451d-4c3c-9d34-505b5a67e06e" },
50383
50384
  senderApplicationId: { universalIdentifier: "d204d45a-6ccc-40cb-8281-b6ed635c247b" },
@@ -50390,14 +50391,14 @@ var tM = [
50390
50391
  reactions: { universalIdentifier: "945e1e83-af08-45c9-8d6c-fb49f1e4a21c" }
50391
50392
  },
50392
50393
  agentMessageReaction: {
50393
- ...nM(Z.agentMessageReaction),
50394
+ ...iM(Z.agentMessageReaction),
50394
50395
  message: { universalIdentifier: "18fec29f-89bd-4f33-8b80-f7a83a9a2e31" },
50395
50396
  workspaceMember: { universalIdentifier: "77265b6b-b634-426a-8972-8601947ca6ad" },
50396
50397
  agentId: { universalIdentifier: "08851641-cb7e-442c-a698-145ade9dd611" },
50397
50398
  emoji: { universalIdentifier: "88eeecdd-08a7-4744-bdd1-86b7f4a14394" }
50398
50399
  },
50399
50400
  agentMessagePart: {
50400
- ...nM(Z.agentMessagePart),
50401
+ ...iM(Z.agentMessagePart),
50401
50402
  orderIndex: { universalIdentifier: "d2b3e277-380c-4133-977d-f23f8092aebc" },
50402
50403
  type: { universalIdentifier: "16a59a7f-dc43-4483-84be-19c8ffd6c7a7" },
50403
50404
  textContent: { universalIdentifier: "d66ed60a-6c09-4427-a62a-1735e31b02de" },
@@ -50423,7 +50424,7 @@ var tM = [
50423
50424
  message: { universalIdentifier: "efd41407-a49d-4a3a-97b4-94fd180e7652" }
50424
50425
  },
50425
50426
  campaignDelivery: {
50426
- ...nM(Z.campaignDelivery),
50427
+ ...iM(Z.campaignDelivery),
50427
50428
  campaignId: { universalIdentifier: "5b3b48cd-71ec-4ff6-bd4f-8ea99965d611" },
50428
50429
  personId: { universalIdentifier: "d12ac3bc-7d2c-4317-9c80-663e58ffbea2" },
50429
50430
  recipientEmail: { universalIdentifier: "28e61664-054b-4b41-b33b-d06b2fc7618f" },
@@ -50441,7 +50442,7 @@ var tM = [
50441
50442
  renderingFailedAt: { universalIdentifier: "eca2b84e-a8d0-4641-bf16-48005e1826bd" }
50442
50443
  },
50443
50444
  messageSuppression: {
50444
- ...nM(Z.messageSuppression),
50445
+ ...iM(Z.messageSuppression),
50445
50446
  emailAddress: { universalIdentifier: "d44cd615-c3ff-4ac5-a0cc-bfbda700df8e" },
50446
50447
  reason: { universalIdentifier: "2829a0be-f463-423c-810f-abf7b7a38454" },
50447
50448
  source: { universalIdentifier: "c0111315-babb-44ab-b4bb-8393ca7a4f98" },
@@ -50456,58 +50457,58 @@ var tM = [
50456
50457
  happensAt: { universalIdentifier: "20202020-9526-4993-b339-c4318c4d39f0" },
50457
50458
  properties: { universalIdentifier: "20202020-f142-4b04-b91b-6a2b4af3bf11" },
50458
50459
  workspaceMember: { universalIdentifier: "20202020-af23-4479-9a30-868edc474b36" },
50459
- targetPerson: { universalIdentifier: R({
50460
- applicationUniversalIdentifier: L,
50460
+ targetPerson: { universalIdentifier: z({
50461
+ applicationUniversalIdentifier: R,
50461
50462
  objectUniversalIdentifier: Z.timelineActivity,
50462
50463
  relationTargetObjectUniversalIdentifier: Z.person
50463
50464
  }) },
50464
- targetCompany: { universalIdentifier: R({
50465
- applicationUniversalIdentifier: L,
50465
+ targetCompany: { universalIdentifier: z({
50466
+ applicationUniversalIdentifier: R,
50466
50467
  objectUniversalIdentifier: Z.timelineActivity,
50467
50468
  relationTargetObjectUniversalIdentifier: Z.company
50468
50469
  }) },
50469
- targetOpportunity: { universalIdentifier: R({
50470
- applicationUniversalIdentifier: L,
50470
+ targetOpportunity: { universalIdentifier: z({
50471
+ applicationUniversalIdentifier: R,
50471
50472
  objectUniversalIdentifier: Z.timelineActivity,
50472
50473
  relationTargetObjectUniversalIdentifier: Z.opportunity
50473
50474
  }) },
50474
- targetTask: { universalIdentifier: R({
50475
- applicationUniversalIdentifier: L,
50475
+ targetTask: { universalIdentifier: z({
50476
+ applicationUniversalIdentifier: R,
50476
50477
  objectUniversalIdentifier: Z.timelineActivity,
50477
50478
  relationTargetObjectUniversalIdentifier: Z.task
50478
50479
  }) },
50479
- targetNote: { universalIdentifier: R({
50480
- applicationUniversalIdentifier: L,
50480
+ targetNote: { universalIdentifier: z({
50481
+ applicationUniversalIdentifier: R,
50481
50482
  objectUniversalIdentifier: Z.timelineActivity,
50482
50483
  relationTargetObjectUniversalIdentifier: Z.note
50483
50484
  }) },
50484
- targetWorkflow: { universalIdentifier: R({
50485
- applicationUniversalIdentifier: L,
50485
+ targetWorkflow: { universalIdentifier: z({
50486
+ applicationUniversalIdentifier: R,
50486
50487
  objectUniversalIdentifier: Z.timelineActivity,
50487
50488
  relationTargetObjectUniversalIdentifier: Z.workflow
50488
50489
  }) },
50489
- targetWorkflowVersion: { universalIdentifier: R({
50490
- applicationUniversalIdentifier: L,
50490
+ targetWorkflowVersion: { universalIdentifier: z({
50491
+ applicationUniversalIdentifier: R,
50491
50492
  objectUniversalIdentifier: Z.timelineActivity,
50492
50493
  relationTargetObjectUniversalIdentifier: Z.workflowVersion
50493
50494
  }) },
50494
- targetWorkflowRun: { universalIdentifier: R({
50495
- applicationUniversalIdentifier: L,
50495
+ targetWorkflowRun: { universalIdentifier: z({
50496
+ applicationUniversalIdentifier: R,
50496
50497
  objectUniversalIdentifier: Z.timelineActivity,
50497
50498
  relationTargetObjectUniversalIdentifier: Z.workflowRun
50498
50499
  }) },
50499
- targetDashboard: { universalIdentifier: R({
50500
- applicationUniversalIdentifier: L,
50500
+ targetDashboard: { universalIdentifier: z({
50501
+ applicationUniversalIdentifier: R,
50501
50502
  objectUniversalIdentifier: Z.timelineActivity,
50502
50503
  relationTargetObjectUniversalIdentifier: Z.dashboard
50503
50504
  }) },
50504
- targetMessageList: { universalIdentifier: R({
50505
- applicationUniversalIdentifier: L,
50505
+ targetMessageList: { universalIdentifier: z({
50506
+ applicationUniversalIdentifier: R,
50506
50507
  objectUniversalIdentifier: Z.timelineActivity,
50507
50508
  relationTargetObjectUniversalIdentifier: Z.messageList
50508
50509
  }) },
50509
- targetMessageCampaign: { universalIdentifier: R({
50510
- applicationUniversalIdentifier: L,
50510
+ targetMessageCampaign: { universalIdentifier: z({
50511
+ applicationUniversalIdentifier: R,
50511
50512
  objectUniversalIdentifier: Z.timelineActivity,
50512
50513
  relationTargetObjectUniversalIdentifier: Z.messageCampaign
50513
50514
  }) },
@@ -50522,45 +50523,50 @@ var tM = [
50522
50523
  file: { universalIdentifier: "20202020-15db-460e-8166-c7b5d87ad4be" },
50523
50524
  fullPath: { universalIdentifier: "20202020-0d19-453d-8e8d-fbcda8ca3747" },
50524
50525
  fileCategory: { universalIdentifier: "20202020-8c3f-4d9e-9a1b-2e5f7a8c9d0e" },
50525
- targetTask: { universalIdentifier: R({
50526
- applicationUniversalIdentifier: L,
50526
+ targetTask: { universalIdentifier: z({
50527
+ applicationUniversalIdentifier: R,
50527
50528
  objectUniversalIdentifier: Z.attachment,
50528
50529
  relationTargetObjectUniversalIdentifier: Z.task
50529
50530
  }) },
50530
- targetNote: { universalIdentifier: R({
50531
- applicationUniversalIdentifier: L,
50531
+ targetNote: { universalIdentifier: z({
50532
+ applicationUniversalIdentifier: R,
50532
50533
  objectUniversalIdentifier: Z.attachment,
50533
50534
  relationTargetObjectUniversalIdentifier: Z.note
50534
50535
  }) },
50535
- targetPerson: { universalIdentifier: R({
50536
- applicationUniversalIdentifier: L,
50536
+ targetPerson: { universalIdentifier: z({
50537
+ applicationUniversalIdentifier: R,
50537
50538
  objectUniversalIdentifier: Z.attachment,
50538
50539
  relationTargetObjectUniversalIdentifier: Z.person
50539
50540
  }) },
50540
- targetCompany: { universalIdentifier: R({
50541
- applicationUniversalIdentifier: L,
50541
+ targetCompany: { universalIdentifier: z({
50542
+ applicationUniversalIdentifier: R,
50542
50543
  objectUniversalIdentifier: Z.attachment,
50543
50544
  relationTargetObjectUniversalIdentifier: Z.company
50544
50545
  }) },
50545
- targetOpportunity: { universalIdentifier: R({
50546
- applicationUniversalIdentifier: L,
50546
+ targetOpportunity: { universalIdentifier: z({
50547
+ applicationUniversalIdentifier: R,
50547
50548
  objectUniversalIdentifier: Z.attachment,
50548
50549
  relationTargetObjectUniversalIdentifier: Z.opportunity
50549
50550
  }) },
50550
- targetDashboard: { universalIdentifier: R({
50551
- applicationUniversalIdentifier: L,
50551
+ targetDashboard: { universalIdentifier: z({
50552
+ applicationUniversalIdentifier: R,
50552
50553
  objectUniversalIdentifier: Z.attachment,
50553
50554
  relationTargetObjectUniversalIdentifier: Z.dashboard
50554
50555
  }) },
50555
- targetWorkflow: { universalIdentifier: R({
50556
- applicationUniversalIdentifier: L,
50556
+ targetWorkflow: { universalIdentifier: z({
50557
+ applicationUniversalIdentifier: R,
50557
50558
  objectUniversalIdentifier: Z.attachment,
50558
50559
  relationTargetObjectUniversalIdentifier: Z.workflow
50559
50560
  }) },
50560
- targetAgentChatThread: { universalIdentifier: R({
50561
- applicationUniversalIdentifier: L,
50561
+ targetAgentChatThread: { universalIdentifier: z({
50562
+ applicationUniversalIdentifier: R,
50562
50563
  objectUniversalIdentifier: Z.attachment,
50563
50564
  relationTargetObjectUniversalIdentifier: Z.agentChatThread
50565
+ }) },
50566
+ targetMessage: { universalIdentifier: z({
50567
+ applicationUniversalIdentifier: R,
50568
+ objectUniversalIdentifier: Z.attachment,
50569
+ relationTargetObjectUniversalIdentifier: Z.message
50564
50570
  }) }
50565
50571
  },
50566
50572
  blocklist: {
@@ -50611,18 +50617,18 @@ var tM = [
50611
50617
  calendarEvent: { universalIdentifier: "a47824b0-0e64-4c1f-bbad-ce45209d119b" },
50612
50618
  isAutomaticallyAssigned: { universalIdentifier: "b6374fed-9cf2-49ef-b45a-1d6814c16264" },
50613
50619
  isManuallyAssigned: { universalIdentifier: "6afbd5b8-25b5-4c04-82e5-281e6f90f453" },
50614
- targetPerson: { universalIdentifier: R({
50615
- applicationUniversalIdentifier: L,
50620
+ targetPerson: { universalIdentifier: z({
50621
+ applicationUniversalIdentifier: R,
50616
50622
  objectUniversalIdentifier: Z.calendarEventTarget,
50617
50623
  relationTargetObjectUniversalIdentifier: Z.person
50618
50624
  }) },
50619
- targetCompany: { universalIdentifier: R({
50620
- applicationUniversalIdentifier: L,
50625
+ targetCompany: { universalIdentifier: z({
50626
+ applicationUniversalIdentifier: R,
50621
50627
  objectUniversalIdentifier: Z.calendarEventTarget,
50622
50628
  relationTargetObjectUniversalIdentifier: Z.company
50623
50629
  }) },
50624
- targetOpportunity: { universalIdentifier: R({
50625
- applicationUniversalIdentifier: L,
50630
+ targetOpportunity: { universalIdentifier: z({
50631
+ applicationUniversalIdentifier: R,
50626
50632
  objectUniversalIdentifier: Z.calendarEventTarget,
50627
50633
  relationTargetObjectUniversalIdentifier: Z.opportunity
50628
50634
  }) }
@@ -50652,39 +50658,39 @@ var tM = [
50652
50658
  annualRevenue: { universalIdentifier: "60f533b7-2166-4071-a767-ceb0286822fd" },
50653
50659
  people: { universalIdentifier: "20202020-3213-4ddf-9494-6422bcff8d7c" },
50654
50660
  accountOwner: { universalIdentifier: "20202020-95b8-4e10-9881-edb5d4765f9d" },
50655
- taskTargets: { universalIdentifier: R({
50656
- applicationUniversalIdentifier: L,
50661
+ taskTargets: { universalIdentifier: z({
50662
+ applicationUniversalIdentifier: R,
50657
50663
  objectUniversalIdentifier: Z.company,
50658
50664
  relationTargetObjectUniversalIdentifier: Z.taskTarget
50659
50665
  }) },
50660
- noteTargets: { universalIdentifier: R({
50661
- applicationUniversalIdentifier: L,
50666
+ noteTargets: { universalIdentifier: z({
50667
+ applicationUniversalIdentifier: R,
50662
50668
  objectUniversalIdentifier: Z.company,
50663
50669
  relationTargetObjectUniversalIdentifier: Z.noteTarget
50664
50670
  }) },
50665
- agentChatThreadTargets: { universalIdentifier: R({
50666
- applicationUniversalIdentifier: L,
50671
+ agentChatThreadTargets: { universalIdentifier: z({
50672
+ applicationUniversalIdentifier: R,
50667
50673
  objectUniversalIdentifier: Z.company,
50668
50674
  relationTargetObjectUniversalIdentifier: Z.agentChatThreadTarget
50669
50675
  }) },
50670
- calendarEventTargets: { universalIdentifier: R({
50671
- applicationUniversalIdentifier: L,
50676
+ calendarEventTargets: { universalIdentifier: z({
50677
+ applicationUniversalIdentifier: R,
50672
50678
  objectUniversalIdentifier: Z.company,
50673
50679
  relationTargetObjectUniversalIdentifier: Z.calendarEventTarget
50674
50680
  }) },
50675
- messageThreadTargets: { universalIdentifier: R({
50676
- applicationUniversalIdentifier: L,
50681
+ messageThreadTargets: { universalIdentifier: z({
50682
+ applicationUniversalIdentifier: R,
50677
50683
  objectUniversalIdentifier: Z.company,
50678
50684
  relationTargetObjectUniversalIdentifier: Z.messageThreadTarget
50679
50685
  }) },
50680
50686
  opportunities: { universalIdentifier: "20202020-add3-4658-8e23-d70dccb6d0ec" },
50681
- attachments: { universalIdentifier: R({
50682
- applicationUniversalIdentifier: L,
50687
+ attachments: { universalIdentifier: z({
50688
+ applicationUniversalIdentifier: R,
50683
50689
  objectUniversalIdentifier: Z.company,
50684
50690
  relationTargetObjectUniversalIdentifier: Z.attachment
50685
50691
  }) },
50686
- timelineActivities: { universalIdentifier: R({
50687
- applicationUniversalIdentifier: L,
50692
+ timelineActivities: { universalIdentifier: z({
50693
+ applicationUniversalIdentifier: R,
50688
50694
  objectUniversalIdentifier: Z.company,
50689
50695
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50690
50696
  }) }
@@ -50693,13 +50699,13 @@ var tM = [
50693
50699
  ...X(Z.dashboard),
50694
50700
  title: { universalIdentifier: "20202020-20ee-4091-95dc-44b57eda3a89" },
50695
50701
  pageLayoutId: { universalIdentifier: "20202020-bb53-4648-aa36-1d9d54e6f7f2" },
50696
- timelineActivities: { universalIdentifier: R({
50697
- applicationUniversalIdentifier: L,
50702
+ timelineActivities: { universalIdentifier: z({
50703
+ applicationUniversalIdentifier: R,
50698
50704
  objectUniversalIdentifier: Z.dashboard,
50699
50705
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50700
50706
  }) },
50701
- attachments: { universalIdentifier: R({
50702
- applicationUniversalIdentifier: L,
50707
+ attachments: { universalIdentifier: z({
50708
+ applicationUniversalIdentifier: R,
50703
50709
  objectUniversalIdentifier: Z.dashboard,
50704
50710
  relationTargetObjectUniversalIdentifier: Z.attachment
50705
50711
  }) }
@@ -50725,8 +50731,8 @@ var tM = [
50725
50731
  openRate: { universalIdentifier: "77529a55-d723-4c91-9df7-0190fd760e93" },
50726
50732
  unsubscribeTopicId: { universalIdentifier: "0648e7ad-1769-4ff6-a4d5-72da79ef169c" },
50727
50733
  list: { universalIdentifier: "cb24dcdf-f0e8-4c71-8cff-70b714e86530" },
50728
- timelineActivities: { universalIdentifier: R({
50729
- applicationUniversalIdentifier: L,
50734
+ timelineActivities: { universalIdentifier: z({
50735
+ applicationUniversalIdentifier: R,
50730
50736
  objectUniversalIdentifier: Z.messageCampaign,
50731
50737
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50732
50738
  }) },
@@ -50739,8 +50745,8 @@ var tM = [
50739
50745
  description: { universalIdentifier: "2484463a-12e0-411e-9586-81892bd7721c" },
50740
50746
  members: { universalIdentifier: "92df3493-91cf-4665-8587-1b08917d299b" },
50741
50747
  campaigns: { universalIdentifier: "e098d838-31ab-4812-91a8-f055f45a6832" },
50742
- timelineActivities: { universalIdentifier: R({
50743
- applicationUniversalIdentifier: L,
50748
+ timelineActivities: { universalIdentifier: z({
50749
+ applicationUniversalIdentifier: R,
50744
50750
  objectUniversalIdentifier: Z.messageList,
50745
50751
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50746
50752
  }) }
@@ -50788,18 +50794,18 @@ var tM = [
50788
50794
  messageThread: { universalIdentifier: "23ca09e6-149d-452f-bed7-a4aad24d1314" },
50789
50795
  isAutomaticallyAssigned: { universalIdentifier: "04403730-e960-415a-8790-f0c0f82f3477" },
50790
50796
  isManuallyAssigned: { universalIdentifier: "16efa36f-d195-42e9-959f-6928164f2395" },
50791
- targetPerson: { universalIdentifier: R({
50792
- applicationUniversalIdentifier: L,
50797
+ targetPerson: { universalIdentifier: z({
50798
+ applicationUniversalIdentifier: R,
50793
50799
  objectUniversalIdentifier: Z.messageThreadTarget,
50794
50800
  relationTargetObjectUniversalIdentifier: Z.person
50795
50801
  }) },
50796
- targetCompany: { universalIdentifier: R({
50797
- applicationUniversalIdentifier: L,
50802
+ targetCompany: { universalIdentifier: z({
50803
+ applicationUniversalIdentifier: R,
50798
50804
  objectUniversalIdentifier: Z.messageThreadTarget,
50799
50805
  relationTargetObjectUniversalIdentifier: Z.company
50800
50806
  }) },
50801
- targetOpportunity: { universalIdentifier: R({
50802
- applicationUniversalIdentifier: L,
50807
+ targetOpportunity: { universalIdentifier: z({
50808
+ applicationUniversalIdentifier: R,
50803
50809
  objectUniversalIdentifier: Z.messageThreadTarget,
50804
50810
  relationTargetObjectUniversalIdentifier: Z.opportunity
50805
50811
  }) }
@@ -50814,20 +50820,25 @@ var tM = [
50814
50820
  messageParticipants: { universalIdentifier: "20202020-7cff-4a74-b63c-73228448cbd9" },
50815
50821
  messageChannelMessageAssociations: { universalIdentifier: "20202020-3cef-43a3-82c6-50e7cfbc9ae4" },
50816
50822
  messageCampaign: { universalIdentifier: "77cff00b-a0ba-48d6-80de-0d5ccf14e45b" },
50817
- isDraft: { universalIdentifier: "20202020-4d3a-4b6e-9c1f-2a5e7b9d0c34" }
50823
+ isDraft: { universalIdentifier: "20202020-4d3a-4b6e-9c1f-2a5e7b9d0c34" },
50824
+ attachments: { universalIdentifier: z({
50825
+ applicationUniversalIdentifier: R,
50826
+ objectUniversalIdentifier: Z.message,
50827
+ relationTargetObjectUniversalIdentifier: Z.attachment
50828
+ }) }
50818
50829
  },
50819
50830
  note: {
50820
50831
  ...X(Z.note),
50821
50832
  title: { universalIdentifier: "20202020-faeb-4c76-8ba6-ccbb0b4a965f" },
50822
50833
  bodyV2: { universalIdentifier: "20202020-a7bb-4d94-be51-8f25181502c8" },
50823
50834
  noteTargets: { universalIdentifier: "20202020-1f25-43fe-8b00-af212fdde823" },
50824
- attachments: { universalIdentifier: R({
50825
- applicationUniversalIdentifier: L,
50835
+ attachments: { universalIdentifier: z({
50836
+ applicationUniversalIdentifier: R,
50826
50837
  objectUniversalIdentifier: Z.note,
50827
50838
  relationTargetObjectUniversalIdentifier: Z.attachment
50828
50839
  }) },
50829
- timelineActivities: { universalIdentifier: R({
50830
- applicationUniversalIdentifier: L,
50840
+ timelineActivities: { universalIdentifier: z({
50841
+ applicationUniversalIdentifier: R,
50831
50842
  objectUniversalIdentifier: Z.note,
50832
50843
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50833
50844
  }) }
@@ -50836,18 +50847,18 @@ var tM = [
50836
50847
  target: { universalIdentifier: "20202020-f635-435d-ab8d-e1168b375c70" },
50837
50848
  ...X(Z.noteTarget),
50838
50849
  note: { universalIdentifier: "20202020-57f3-4f50-9599-fc0f671df003" },
50839
- targetPerson: { universalIdentifier: R({
50840
- applicationUniversalIdentifier: L,
50850
+ targetPerson: { universalIdentifier: z({
50851
+ applicationUniversalIdentifier: R,
50841
50852
  objectUniversalIdentifier: Z.noteTarget,
50842
50853
  relationTargetObjectUniversalIdentifier: Z.person
50843
50854
  }) },
50844
- targetCompany: { universalIdentifier: R({
50845
- applicationUniversalIdentifier: L,
50855
+ targetCompany: { universalIdentifier: z({
50856
+ applicationUniversalIdentifier: R,
50846
50857
  objectUniversalIdentifier: Z.noteTarget,
50847
50858
  relationTargetObjectUniversalIdentifier: Z.company
50848
50859
  }) },
50849
- targetOpportunity: { universalIdentifier: R({
50850
- applicationUniversalIdentifier: L,
50860
+ targetOpportunity: { universalIdentifier: z({
50861
+ applicationUniversalIdentifier: R,
50851
50862
  objectUniversalIdentifier: Z.noteTarget,
50852
50863
  relationTargetObjectUniversalIdentifier: Z.opportunity
50853
50864
  }) }
@@ -50861,38 +50872,38 @@ var tM = [
50861
50872
  pointOfContact: { universalIdentifier: "20202020-8dfb-42fc-92b6-01afb759ed16" },
50862
50873
  company: { universalIdentifier: "20202020-cbac-457e-b565-adece5fc815f" },
50863
50874
  owner: { universalIdentifier: "20202020-be7e-4d1e-8e19-3d5c7c4b9f2a" },
50864
- taskTargets: { universalIdentifier: R({
50865
- applicationUniversalIdentifier: L,
50875
+ taskTargets: { universalIdentifier: z({
50876
+ applicationUniversalIdentifier: R,
50866
50877
  objectUniversalIdentifier: Z.opportunity,
50867
50878
  relationTargetObjectUniversalIdentifier: Z.taskTarget
50868
50879
  }) },
50869
- noteTargets: { universalIdentifier: R({
50870
- applicationUniversalIdentifier: L,
50880
+ noteTargets: { universalIdentifier: z({
50881
+ applicationUniversalIdentifier: R,
50871
50882
  objectUniversalIdentifier: Z.opportunity,
50872
50883
  relationTargetObjectUniversalIdentifier: Z.noteTarget
50873
50884
  }) },
50874
- agentChatThreadTargets: { universalIdentifier: R({
50875
- applicationUniversalIdentifier: L,
50885
+ agentChatThreadTargets: { universalIdentifier: z({
50886
+ applicationUniversalIdentifier: R,
50876
50887
  objectUniversalIdentifier: Z.opportunity,
50877
50888
  relationTargetObjectUniversalIdentifier: Z.agentChatThreadTarget
50878
50889
  }) },
50879
- calendarEventTargets: { universalIdentifier: R({
50880
- applicationUniversalIdentifier: L,
50890
+ calendarEventTargets: { universalIdentifier: z({
50891
+ applicationUniversalIdentifier: R,
50881
50892
  objectUniversalIdentifier: Z.opportunity,
50882
50893
  relationTargetObjectUniversalIdentifier: Z.calendarEventTarget
50883
50894
  }) },
50884
- messageThreadTargets: { universalIdentifier: R({
50885
- applicationUniversalIdentifier: L,
50895
+ messageThreadTargets: { universalIdentifier: z({
50896
+ applicationUniversalIdentifier: R,
50886
50897
  objectUniversalIdentifier: Z.opportunity,
50887
50898
  relationTargetObjectUniversalIdentifier: Z.messageThreadTarget
50888
50899
  }) },
50889
- attachments: { universalIdentifier: R({
50890
- applicationUniversalIdentifier: L,
50900
+ attachments: { universalIdentifier: z({
50901
+ applicationUniversalIdentifier: R,
50891
50902
  objectUniversalIdentifier: Z.opportunity,
50892
50903
  relationTargetObjectUniversalIdentifier: Z.attachment
50893
50904
  }) },
50894
- timelineActivities: { universalIdentifier: R({
50895
- applicationUniversalIdentifier: L,
50905
+ timelineActivities: { universalIdentifier: z({
50906
+ applicationUniversalIdentifier: R,
50896
50907
  objectUniversalIdentifier: Z.opportunity,
50897
50908
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50898
50909
  }) }
@@ -50908,40 +50919,40 @@ var tM = [
50908
50919
  avatarFile: { universalIdentifier: "20202020-a7c9-4e3d-8f1b-2d5a6b7c8e9f" },
50909
50920
  company: { universalIdentifier: "20202020-e2f3-448e-b34c-2d625f0025fd" },
50910
50921
  pointOfContactForOpportunities: { universalIdentifier: "20202020-911b-4a7d-b67b-918aa9a5b33a" },
50911
- taskTargets: { universalIdentifier: R({
50912
- applicationUniversalIdentifier: L,
50922
+ taskTargets: { universalIdentifier: z({
50923
+ applicationUniversalIdentifier: R,
50913
50924
  objectUniversalIdentifier: Z.person,
50914
50925
  relationTargetObjectUniversalIdentifier: Z.taskTarget
50915
50926
  }) },
50916
- noteTargets: { universalIdentifier: R({
50917
- applicationUniversalIdentifier: L,
50927
+ noteTargets: { universalIdentifier: z({
50928
+ applicationUniversalIdentifier: R,
50918
50929
  objectUniversalIdentifier: Z.person,
50919
50930
  relationTargetObjectUniversalIdentifier: Z.noteTarget
50920
50931
  }) },
50921
- agentChatThreadTargets: { universalIdentifier: R({
50922
- applicationUniversalIdentifier: L,
50932
+ agentChatThreadTargets: { universalIdentifier: z({
50933
+ applicationUniversalIdentifier: R,
50923
50934
  objectUniversalIdentifier: Z.person,
50924
50935
  relationTargetObjectUniversalIdentifier: Z.agentChatThreadTarget
50925
50936
  }) },
50926
- calendarEventTargets: { universalIdentifier: R({
50927
- applicationUniversalIdentifier: L,
50937
+ calendarEventTargets: { universalIdentifier: z({
50938
+ applicationUniversalIdentifier: R,
50928
50939
  objectUniversalIdentifier: Z.person,
50929
50940
  relationTargetObjectUniversalIdentifier: Z.calendarEventTarget
50930
50941
  }) },
50931
- messageThreadTargets: { universalIdentifier: R({
50932
- applicationUniversalIdentifier: L,
50942
+ messageThreadTargets: { universalIdentifier: z({
50943
+ applicationUniversalIdentifier: R,
50933
50944
  objectUniversalIdentifier: Z.person,
50934
50945
  relationTargetObjectUniversalIdentifier: Z.messageThreadTarget
50935
50946
  }) },
50936
- attachments: { universalIdentifier: R({
50937
- applicationUniversalIdentifier: L,
50947
+ attachments: { universalIdentifier: z({
50948
+ applicationUniversalIdentifier: R,
50938
50949
  objectUniversalIdentifier: Z.person,
50939
50950
  relationTargetObjectUniversalIdentifier: Z.attachment
50940
50951
  }) },
50941
50952
  messageParticipants: { universalIdentifier: "20202020-498e-4c61-8158-fa04f0638334" },
50942
50953
  calendarEventParticipants: { universalIdentifier: "20202020-52ee-45e9-a702-b64b3753e3a9" },
50943
- timelineActivities: { universalIdentifier: R({
50944
- applicationUniversalIdentifier: L,
50954
+ timelineActivities: { universalIdentifier: z({
50955
+ applicationUniversalIdentifier: R,
50945
50956
  objectUniversalIdentifier: Z.person,
50946
50957
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50947
50958
  }) },
@@ -50949,6 +50960,7 @@ var tM = [
50949
50960
  },
50950
50961
  accessGroup: {
50951
50962
  ...X(Z.accessGroup),
50963
+ objectMetadataId: { universalIdentifier: "a1e1a495-ed2e-4e8d-8814-6ef0d1e484d0" },
50952
50964
  roleId: { universalIdentifier: "0f8c81b0-6d46-4593-97cb-97216de930ff" },
50953
50965
  rowLevelPermissionPredicateGroupId: { universalIdentifier: "03f12114-2b40-4dc0-9963-6c2e059bc4b3" },
50954
50966
  memberFieldValues: { universalIdentifier: "a0d519f8-cc6b-4bb5-b107-89213d683705" },
@@ -50977,14 +50989,14 @@ var tM = [
50977
50989
  dueAt: { universalIdentifier: "20202020-fd99-40da-951b-4cb9a352fce3" },
50978
50990
  status: { universalIdentifier: "20202020-70bc-48f9-89c5-6aa730b151e0" },
50979
50991
  taskTargets: { universalIdentifier: "20202020-de9c-4d0e-a452-713d4a3e5fc7" },
50980
- attachments: { universalIdentifier: R({
50981
- applicationUniversalIdentifier: L,
50992
+ attachments: { universalIdentifier: z({
50993
+ applicationUniversalIdentifier: R,
50982
50994
  objectUniversalIdentifier: Z.task,
50983
50995
  relationTargetObjectUniversalIdentifier: Z.attachment
50984
50996
  }) },
50985
50997
  assignee: { universalIdentifier: "20202020-065a-4f42-a906-e20422c1753f" },
50986
- timelineActivities: { universalIdentifier: R({
50987
- applicationUniversalIdentifier: L,
50998
+ timelineActivities: { universalIdentifier: z({
50999
+ applicationUniversalIdentifier: R,
50988
51000
  objectUniversalIdentifier: Z.task,
50989
51001
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
50990
51002
  }) }
@@ -50993,18 +51005,18 @@ var tM = [
50993
51005
  target: { universalIdentifier: "20202020-f636-435d-ab8d-e1168b375c71" },
50994
51006
  ...X(Z.taskTarget),
50995
51007
  task: { universalIdentifier: "20202020-e881-457a-8758-74aaef4ae78a" },
50996
- targetPerson: { universalIdentifier: R({
50997
- applicationUniversalIdentifier: L,
51008
+ targetPerson: { universalIdentifier: z({
51009
+ applicationUniversalIdentifier: R,
50998
51010
  objectUniversalIdentifier: Z.taskTarget,
50999
51011
  relationTargetObjectUniversalIdentifier: Z.person
51000
51012
  }) },
51001
- targetCompany: { universalIdentifier: R({
51002
- applicationUniversalIdentifier: L,
51013
+ targetCompany: { universalIdentifier: z({
51014
+ applicationUniversalIdentifier: R,
51003
51015
  objectUniversalIdentifier: Z.taskTarget,
51004
51016
  relationTargetObjectUniversalIdentifier: Z.company
51005
51017
  }) },
51006
- targetOpportunity: { universalIdentifier: R({
51007
- applicationUniversalIdentifier: L,
51018
+ targetOpportunity: { universalIdentifier: z({
51019
+ applicationUniversalIdentifier: R,
51008
51020
  objectUniversalIdentifier: Z.taskTarget,
51009
51021
  relationTargetObjectUniversalIdentifier: Z.opportunity
51010
51022
  }) }
@@ -51018,13 +51030,13 @@ var tM = [
51018
51030
  versions: { universalIdentifier: "20202020-9432-416e-8f3c-27ee3153d099" },
51019
51031
  runs: { universalIdentifier: "20202020-759b-4340-b58b-e73595c4df4f" },
51020
51032
  automatedTriggers: { universalIdentifier: "20202020-3319-4234-a34c-117ecad2b8a9" },
51021
- timelineActivities: { universalIdentifier: R({
51022
- applicationUniversalIdentifier: L,
51033
+ timelineActivities: { universalIdentifier: z({
51034
+ applicationUniversalIdentifier: R,
51023
51035
  objectUniversalIdentifier: Z.workflow,
51024
51036
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
51025
51037
  }) },
51026
- attachments: { universalIdentifier: R({
51027
- applicationUniversalIdentifier: L,
51038
+ attachments: { universalIdentifier: z({
51039
+ applicationUniversalIdentifier: R,
51028
51040
  objectUniversalIdentifier: Z.workflow,
51029
51041
  relationTargetObjectUniversalIdentifier: Z.attachment
51030
51042
  }) }
@@ -51048,8 +51060,8 @@ var tM = [
51048
51060
  stepLogs: { universalIdentifier: "20202020-7c4e-4e1a-8fc1-1e3a55d6c2a1" },
51049
51061
  coreWorkflowId: { universalIdentifier: "e07d8ac0-6b6e-4685-81fa-50d82ae7f880" },
51050
51062
  coreWorkflowVersionId: { universalIdentifier: "58e3f476-425d-4c66-b391-779d0412e107" },
51051
- timelineActivities: { universalIdentifier: R({
51052
- applicationUniversalIdentifier: L,
51063
+ timelineActivities: { universalIdentifier: z({
51064
+ applicationUniversalIdentifier: R,
51053
51065
  objectUniversalIdentifier: Z.workflowRun,
51054
51066
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
51055
51067
  }) }
@@ -51063,8 +51075,8 @@ var tM = [
51063
51075
  runs: { universalIdentifier: "20202020-1d08-46df-901a-85045f18099a" },
51064
51076
  steps: { universalIdentifier: "20202020-5988-4a64-b94a-1f9b7b989039" },
51065
51077
  coreWorkflowVersionId: { universalIdentifier: "20202020-58b4-46e8-b6d2-f1f3c74cf7f4" },
51066
- timelineActivities: { universalIdentifier: R({
51067
- applicationUniversalIdentifier: L,
51078
+ timelineActivities: { universalIdentifier: z({
51079
+ applicationUniversalIdentifier: R,
51068
51080
  objectUniversalIdentifier: Z.workflowVersion,
51069
51081
  relationTargetObjectUniversalIdentifier: Z.timelineActivity
51070
51082
  }) }
@@ -51099,47 +51111,47 @@ var tM = [
51099
51111
  numberFormat: { universalIdentifier: "20202020-7f40-4e7f-b126-11c0eda6b141" }
51100
51112
  }
51101
51113
  }, $ = ({ objectUniversalIdentifier: e, fields: t, viewFieldNames: n }) => {
51102
- let r = uu({
51103
- objectMetadataApplicationUniversalIdentifier: L,
51114
+ let r = lu({
51115
+ objectMetadataApplicationUniversalIdentifier: R,
51104
51116
  objectUniversalIdentifier: e,
51105
- viewKey: lu.INDEX
51117
+ viewKey: cu.INDEX
51106
51118
  });
51107
51119
  return {
51108
51120
  universalIdentifier: r,
51109
51121
  viewFields: Object.fromEntries(n.map((n) => {
51110
51122
  let i = t[n];
51111
51123
  if (i === void 0) throw Error(`Missing field "${n}" for the INDEX view of object ${e}`);
51112
- return [n, { universalIdentifier: cu({
51113
- fieldMetadataApplicationUniversalIdentifier: L,
51124
+ return [n, { universalIdentifier: su({
51125
+ fieldMetadataApplicationUniversalIdentifier: R,
51114
51126
  viewUniversalIdentifier: r,
51115
51127
  fieldMetadataUniversalIdentifier: i.universalIdentifier
51116
51128
  }) }];
51117
51129
  }))
51118
51130
  };
51119
- }, rM = ({ objectUniversalIdentifier: e, fields: t, viewFieldNames: n, viewFieldGroupNames: r }) => {
51120
- let i = uu({
51121
- objectMetadataApplicationUniversalIdentifier: L,
51131
+ }, aM = ({ objectUniversalIdentifier: e, fields: t, viewFieldNames: n, viewFieldGroupNames: r }) => {
51132
+ let i = lu({
51133
+ objectMetadataApplicationUniversalIdentifier: R,
51122
51134
  objectUniversalIdentifier: e,
51123
- viewKey: lu.FIELDS_WIDGET
51135
+ viewKey: cu.FIELDS_WIDGET
51124
51136
  });
51125
51137
  return {
51126
51138
  universalIdentifier: i,
51127
51139
  viewFields: Object.fromEntries(n.map((n) => {
51128
51140
  let r = t[n];
51129
51141
  if (r === void 0) throw Error(`Missing field "${n}" for the record-page view of object ${e}`);
51130
- return [n, { universalIdentifier: cu({
51131
- fieldMetadataApplicationUniversalIdentifier: L,
51142
+ return [n, { universalIdentifier: su({
51143
+ fieldMetadataApplicationUniversalIdentifier: R,
51132
51144
  viewUniversalIdentifier: i,
51133
51145
  fieldMetadataUniversalIdentifier: r.universalIdentifier
51134
51146
  }) }];
51135
51147
  })),
51136
- viewFieldGroups: Object.fromEntries(Object.entries(r).map(([e, t]) => [e, { universalIdentifier: su({
51137
- objectMetadataApplicationUniversalIdentifier: L,
51148
+ viewFieldGroups: Object.fromEntries(Object.entries(r).map(([e, t]) => [e, { universalIdentifier: ou({
51149
+ objectMetadataApplicationUniversalIdentifier: R,
51138
51150
  viewUniversalIdentifier: i,
51139
51151
  name: t
51140
51152
  }) }]))
51141
51153
  };
51142
- }, iM = {
51154
+ }, oM = {
51143
51155
  attachment: {
51144
51156
  universalIdentifier: Z.attachment,
51145
51157
  fields: Q.attachment,
@@ -51152,7 +51164,8 @@ var tM = [
51152
51164
  opportunityIdIndex: { universalIdentifier: "8cc162d1-c127-4981-878d-f78622f8f12d" },
51153
51165
  dashboardIdIndex: { universalIdentifier: "c10eba2d-ff1a-4eab-9285-50481c12a003" },
51154
51166
  workflowIdIndex: { universalIdentifier: "fadeab4b-79ee-4173-af79-72c51fbad888" },
51155
- agentChatThreadIdIndex: { universalIdentifier: "69857371-6ff9-48fa-a9de-db4f71593431" }
51167
+ agentChatThreadIdIndex: { universalIdentifier: "69857371-6ff9-48fa-a9de-db4f71593431" },
51168
+ messageIdIndex: { universalIdentifier: "83c77988-2dc4-4575-bac5-f0f50c05568e" }
51156
51169
  },
51157
51170
  views: {
51158
51171
  allAttachments: $({
@@ -51172,7 +51185,7 @@ var tM = [
51172
51185
  "targetWorkflow"
51173
51186
  ]
51174
51187
  }),
51175
- attachmentRecordPageFields: rM({
51188
+ attachmentRecordPageFields: aM({
51176
51189
  objectUniversalIdentifier: Z.attachment,
51177
51190
  fields: Q.attachment,
51178
51191
  viewFieldNames: ["createdBy", "createdAt"],
@@ -51194,7 +51207,7 @@ var tM = [
51194
51207
  "createdAt"
51195
51208
  ]
51196
51209
  }),
51197
- blocklistRecordPageFields: rM({
51210
+ blocklistRecordPageFields: aM({
51198
51211
  objectUniversalIdentifier: Z.blocklist,
51199
51212
  fields: Q.blocklist,
51200
51213
  viewFieldNames: [
@@ -51228,7 +51241,7 @@ var tM = [
51228
51241
  "createdAt"
51229
51242
  ]
51230
51243
  }),
51231
- calendarChannelEventAssociationRecordPageFields: rM({
51244
+ calendarChannelEventAssociationRecordPageFields: aM({
51232
51245
  objectUniversalIdentifier: Z.calendarChannelEventAssociation,
51233
51246
  fields: Q.calendarChannelEventAssociation,
51234
51247
  viewFieldNames: [
@@ -51268,7 +51281,7 @@ var tM = [
51268
51281
  "createdAt"
51269
51282
  ]
51270
51283
  }),
51271
- calendarEventParticipantRecordPageFields: rM({
51284
+ calendarEventParticipantRecordPageFields: aM({
51272
51285
  objectUniversalIdentifier: Z.calendarEventParticipant,
51273
51286
  fields: Q.calendarEventParticipant,
51274
51287
  viewFieldNames: [
@@ -51308,7 +51321,7 @@ var tM = [
51308
51321
  "createdAt"
51309
51322
  ]
51310
51323
  }),
51311
- calendarEventRecordPageFields: rM({
51324
+ calendarEventRecordPageFields: aM({
51312
51325
  objectUniversalIdentifier: Z.calendarEvent,
51313
51326
  fields: Q.calendarEvent,
51314
51327
  viewFieldNames: [
@@ -51363,7 +51376,7 @@ var tM = [
51363
51376
  "startedAt"
51364
51377
  ]
51365
51378
  }),
51366
- callRecordingRecordPageFields: rM({
51379
+ callRecordingRecordPageFields: aM({
51367
51380
  objectUniversalIdentifier: Z.callRecording,
51368
51381
  fields: Q.callRecording,
51369
51382
  viewFieldNames: [
@@ -51403,7 +51416,7 @@ var tM = [
51403
51416
  "address"
51404
51417
  ]
51405
51418
  }),
51406
- companyRecordPageFields: rM({
51419
+ companyRecordPageFields: aM({
51407
51420
  objectUniversalIdentifier: Z.company,
51408
51421
  fields: Q.company,
51409
51422
  viewFieldNames: [
@@ -51485,7 +51498,7 @@ var tM = [
51485
51498
  createdAt: { universalIdentifier: "27548f0a-5ed4-4412-b23a-718b99eb697e" }
51486
51499
  }
51487
51500
  },
51488
- messageCampaignRecordPageFields: rM({
51501
+ messageCampaignRecordPageFields: aM({
51489
51502
  objectUniversalIdentifier: Z.messageCampaign,
51490
51503
  fields: Q.messageCampaign,
51491
51504
  viewFieldNames: [
@@ -51561,7 +51574,7 @@ var tM = [
51561
51574
  "createdAt"
51562
51575
  ]
51563
51576
  }),
51564
- messageChannelMessageAssociationRecordPageFields: rM({
51577
+ messageChannelMessageAssociationRecordPageFields: aM({
51565
51578
  objectUniversalIdentifier: Z.messageChannelMessageAssociation,
51566
51579
  fields: Q.messageChannelMessageAssociation,
51567
51580
  viewFieldNames: [
@@ -51597,7 +51610,7 @@ var tM = [
51597
51610
  "createdAt"
51598
51611
  ]
51599
51612
  }),
51600
- messageChannelMessageAssociationMessageFolderRecordPageFields: rM({
51613
+ messageChannelMessageAssociationMessageFolderRecordPageFields: aM({
51601
51614
  objectUniversalIdentifier: Z.messageChannelMessageAssociationMessageFolder,
51602
51615
  fields: Q.messageChannelMessageAssociationMessageFolder,
51603
51616
  viewFieldNames: [
@@ -51636,7 +51649,7 @@ var tM = [
51636
51649
  "createdAt"
51637
51650
  ]
51638
51651
  }),
51639
- messageParticipantRecordPageFields: rM({
51652
+ messageParticipantRecordPageFields: aM({
51640
51653
  objectUniversalIdentifier: Z.messageParticipant,
51641
51654
  fields: Q.messageParticipant,
51642
51655
  viewFieldNames: [
@@ -51707,7 +51720,7 @@ var tM = [
51707
51720
  "createdAt"
51708
51721
  ]
51709
51722
  }),
51710
- messageRecordPageFields: rM({
51723
+ messageRecordPageFields: aM({
51711
51724
  objectUniversalIdentifier: Z.message,
51712
51725
  fields: Q.message,
51713
51726
  viewFieldNames: [
@@ -51742,7 +51755,7 @@ var tM = [
51742
51755
  "createdAt"
51743
51756
  ]
51744
51757
  }),
51745
- noteRecordPageFields: rM({
51758
+ noteRecordPageFields: aM({
51746
51759
  objectUniversalIdentifier: Z.note,
51747
51760
  fields: Q.note,
51748
51761
  viewFieldNames: [
@@ -51819,7 +51832,7 @@ var tM = [
51819
51832
  customer: { universalIdentifier: "20202020-af14-4a04-8a04-0aa0b2ca2bf5" }
51820
51833
  }
51821
51834
  },
51822
- opportunityRecordPageFields: rM({
51835
+ opportunityRecordPageFields: aM({
51823
51836
  objectUniversalIdentifier: Z.opportunity,
51824
51837
  fields: Q.opportunity,
51825
51838
  viewFieldNames: [
@@ -51869,7 +51882,7 @@ var tM = [
51869
51882
  "linkedinLink"
51870
51883
  ]
51871
51884
  }),
51872
- personRecordPageFields: rM({
51885
+ personRecordPageFields: aM({
51873
51886
  objectUniversalIdentifier: Z.person,
51874
51887
  fields: Q.person,
51875
51888
  viewFieldNames: [
@@ -51915,7 +51928,8 @@ var tM = [
51915
51928
  fields: Q.accessGroup,
51916
51929
  indexes: {
51917
51930
  roleIdIndex: { universalIdentifier: "933f2eee-0856-46fd-b144-ffd4bad7e9c8" },
51918
- groupHashUniqueIndex: { universalIdentifier: "dcb0d254-43ae-442e-9223-8ac052eddb28" }
51931
+ groupHashUniqueIndex: { universalIdentifier: "dcb0d254-43ae-442e-9223-8ac052eddb28" },
51932
+ objectMetadataIdIndex: { universalIdentifier: "60e48c2a-a3db-4f11-b25b-49c7e8a385bc" }
51919
51933
  },
51920
51934
  views: {}
51921
51935
  },
@@ -51991,7 +52005,7 @@ var tM = [
51991
52005
  done: { universalIdentifier: "20202020-af18-4a08-8a08-ba5cba5bbf03" }
51992
52006
  }
51993
52007
  },
51994
- taskRecordPageFields: rM({
52008
+ taskRecordPageFields: aM({
51995
52009
  objectUniversalIdentifier: Z.task,
51996
52010
  fields: Q.task,
51997
52011
  viewFieldNames: [
@@ -52100,7 +52114,7 @@ var tM = [
52100
52114
  "createdAt"
52101
52115
  ]
52102
52116
  }),
52103
- workflowAutomatedTriggerRecordPageFields: rM({
52117
+ workflowAutomatedTriggerRecordPageFields: aM({
52104
52118
  objectUniversalIdentifier: Z.workflowAutomatedTrigger,
52105
52119
  fields: Q.workflowAutomatedTrigger,
52106
52120
  viewFieldNames: [
@@ -52134,7 +52148,7 @@ var tM = [
52134
52148
  "status"
52135
52149
  ]
52136
52150
  }),
52137
- workflowRunRecordPageFields: rM({
52151
+ workflowRunRecordPageFields: aM({
52138
52152
  objectUniversalIdentifier: Z.workflowRun,
52139
52153
  fields: Q.workflowRun,
52140
52154
  viewFieldNames: [
@@ -52177,7 +52191,7 @@ var tM = [
52177
52191
  "runs"
52178
52192
  ]
52179
52193
  }),
52180
- workflowVersionRecordPageFields: rM({
52194
+ workflowVersionRecordPageFields: aM({
52181
52195
  objectUniversalIdentifier: Z.workflowVersion,
52182
52196
  fields: Q.workflowVersion,
52183
52197
  viewFieldNames: [
@@ -52207,7 +52221,7 @@ var tM = [
52207
52221
  searchVectorGinIndex: { universalIdentifier: "8678dde9-a804-4a9e-80e3-9af35e471ec5" }
52208
52222
  },
52209
52223
  views: {
52210
- workspaceMemberRecordPageFields: rM({
52224
+ workspaceMemberRecordPageFields: aM({
52211
52225
  objectUniversalIdentifier: Z.workspaceMember,
52212
52226
  fields: Q.workspaceMember,
52213
52227
  viewFieldNames: [
@@ -52317,30 +52331,30 @@ var tM = [
52317
52331
  fields: Q.messageSuppression,
52318
52332
  indexes: { emailAddressTopicUniqueIndex: { universalIdentifier: "a6c1f4dc-d925-49f9-8205-3e7f95545966" } }
52319
52333
  }
52320
- }, aM = ({ objectUniversalIdentifier: e, tabs: t }) => {
52321
- let n = ou({
52322
- objectMetadataApplicationUniversalIdentifier: L,
52334
+ }, sM = ({ objectUniversalIdentifier: e, tabs: t }) => {
52335
+ let n = au({
52336
+ objectMetadataApplicationUniversalIdentifier: R,
52323
52337
  objectUniversalIdentifier: e
52324
52338
  });
52325
52339
  return {
52326
52340
  universalIdentifier: n,
52327
52341
  tabs: Object.fromEntries(Object.entries(t).map(([e, { title: t, widgets: r }]) => {
52328
- let i = iu({
52329
- objectMetadataApplicationUniversalIdentifier: L,
52342
+ let i = ru({
52343
+ objectMetadataApplicationUniversalIdentifier: R,
52330
52344
  pageLayoutUniversalIdentifier: n,
52331
52345
  title: t
52332
52346
  });
52333
52347
  return [e, {
52334
52348
  universalIdentifier: i,
52335
- widgets: Object.fromEntries(Object.entries(r).map(([e, t]) => [e, { universalIdentifier: au({
52336
- objectMetadataApplicationUniversalIdentifier: L,
52349
+ widgets: Object.fromEntries(Object.entries(r).map(([e, t]) => [e, { universalIdentifier: iu({
52350
+ objectMetadataApplicationUniversalIdentifier: R,
52337
52351
  pageLayoutTabUniversalIdentifier: i,
52338
52352
  title: t
52339
52353
  }) }]))
52340
52354
  }];
52341
52355
  }))
52342
52356
  };
52343
- }, oM = {
52357
+ }, cM = {
52344
52358
  myFirstDashboard: {
52345
52359
  universalIdentifier: "20202020-d001-4d01-8d01-da5ab0a00001",
52346
52360
  tabs: { tab1: {
@@ -52357,14 +52371,14 @@ var tM = [
52357
52371
  }
52358
52372
  } }
52359
52373
  },
52360
- workspaceMemberRecordPage: aM({
52374
+ workspaceMemberRecordPage: sM({
52361
52375
  objectUniversalIdentifier: Z.workspaceMember,
52362
52376
  tabs: { home: {
52363
52377
  title: "Home",
52364
52378
  widgets: { fields: "Fields" }
52365
52379
  } }
52366
52380
  }),
52367
- attachmentRecordPage: aM({
52381
+ attachmentRecordPage: sM({
52368
52382
  objectUniversalIdentifier: Z.attachment,
52369
52383
  tabs: { home: {
52370
52384
  title: "Home",
@@ -52375,7 +52389,7 @@ var tM = [
52375
52389
  }
52376
52390
  } }
52377
52391
  }),
52378
- companyRecordPage: aM({
52392
+ companyRecordPage: sM({
52379
52393
  objectUniversalIdentifier: Z.company,
52380
52394
  tabs: {
52381
52395
  home: {
@@ -52416,7 +52430,7 @@ var tM = [
52416
52430
  }
52417
52431
  }
52418
52432
  }),
52419
- personRecordPage: aM({
52433
+ personRecordPage: sM({
52420
52434
  objectUniversalIdentifier: Z.person,
52421
52435
  tabs: {
52422
52436
  home: {
@@ -52458,7 +52472,7 @@ var tM = [
52458
52472
  }
52459
52473
  }
52460
52474
  }),
52461
- opportunityRecordPage: aM({
52475
+ opportunityRecordPage: sM({
52462
52476
  objectUniversalIdentifier: Z.opportunity,
52463
52477
  tabs: {
52464
52478
  home: {
@@ -52500,7 +52514,7 @@ var tM = [
52500
52514
  }
52501
52515
  }
52502
52516
  }),
52503
- noteRecordPage: aM({
52517
+ noteRecordPage: sM({
52504
52518
  objectUniversalIdentifier: Z.note,
52505
52519
  tabs: {
52506
52520
  home: {
@@ -52524,7 +52538,7 @@ var tM = [
52524
52538
  }
52525
52539
  }
52526
52540
  }),
52527
- taskRecordPage: aM({
52541
+ taskRecordPage: sM({
52528
52542
  objectUniversalIdentifier: Z.task,
52529
52543
  tabs: {
52530
52544
  home: {
@@ -52548,14 +52562,14 @@ var tM = [
52548
52562
  }
52549
52563
  }
52550
52564
  }),
52551
- workflowRecordPage: aM({
52565
+ workflowRecordPage: sM({
52552
52566
  objectUniversalIdentifier: Z.workflow,
52553
52567
  tabs: { flow: {
52554
52568
  title: "Flow",
52555
52569
  widgets: { workflow: "Flow" }
52556
52570
  } }
52557
52571
  }),
52558
- workflowVersionRecordPage: aM({
52572
+ workflowVersionRecordPage: sM({
52559
52573
  objectUniversalIdentifier: Z.workflowVersion,
52560
52574
  tabs: {
52561
52575
  home: {
@@ -52571,7 +52585,7 @@ var tM = [
52571
52585
  }
52572
52586
  }
52573
52587
  }),
52574
- workflowRunRecordPage: aM({
52588
+ workflowRunRecordPage: sM({
52575
52589
  objectUniversalIdentifier: Z.workflowRun,
52576
52590
  tabs: {
52577
52591
  home: {
@@ -52587,14 +52601,14 @@ var tM = [
52587
52601
  }
52588
52602
  }
52589
52603
  }),
52590
- agentChatThreadRecordPage: aM({
52604
+ agentChatThreadRecordPage: sM({
52591
52605
  objectUniversalIdentifier: Z.agentChatThread,
52592
52606
  tabs: { chat: {
52593
52607
  title: "Chat",
52594
52608
  widgets: { chat: "Chat" }
52595
52609
  } }
52596
52610
  }),
52597
- blocklistRecordPage: aM({
52611
+ blocklistRecordPage: sM({
52598
52612
  objectUniversalIdentifier: Z.blocklist,
52599
52613
  tabs: {
52600
52614
  home: {
@@ -52607,7 +52621,7 @@ var tM = [
52607
52621
  }
52608
52622
  }
52609
52623
  }),
52610
- calendarChannelEventAssociationRecordPage: aM({
52624
+ calendarChannelEventAssociationRecordPage: sM({
52611
52625
  objectUniversalIdentifier: Z.calendarChannelEventAssociation,
52612
52626
  tabs: {
52613
52627
  home: {
@@ -52620,7 +52634,7 @@ var tM = [
52620
52634
  }
52621
52635
  }
52622
52636
  }),
52623
- calendarEventRecordPage: aM({
52637
+ calendarEventRecordPage: sM({
52624
52638
  objectUniversalIdentifier: Z.calendarEvent,
52625
52639
  tabs: {
52626
52640
  home: {
@@ -52645,7 +52659,7 @@ var tM = [
52645
52659
  }
52646
52660
  }
52647
52661
  }),
52648
- calendarEventParticipantRecordPage: aM({
52662
+ calendarEventParticipantRecordPage: sM({
52649
52663
  objectUniversalIdentifier: Z.calendarEventParticipant,
52650
52664
  tabs: {
52651
52665
  home: {
@@ -52658,7 +52672,7 @@ var tM = [
52658
52672
  }
52659
52673
  }
52660
52674
  }),
52661
- callRecordingRecordPage: aM({
52675
+ callRecordingRecordPage: sM({
52662
52676
  objectUniversalIdentifier: Z.callRecording,
52663
52677
  tabs: {
52664
52678
  home: {
@@ -52679,7 +52693,7 @@ var tM = [
52679
52693
  }
52680
52694
  }
52681
52695
  }),
52682
- messageChannelMessageAssociationRecordPage: aM({
52696
+ messageChannelMessageAssociationRecordPage: sM({
52683
52697
  objectUniversalIdentifier: Z.messageChannelMessageAssociation,
52684
52698
  tabs: {
52685
52699
  home: {
@@ -52692,7 +52706,7 @@ var tM = [
52692
52706
  }
52693
52707
  }
52694
52708
  }),
52695
- messageChannelMessageAssociationMessageFolderRecordPage: aM({
52709
+ messageChannelMessageAssociationMessageFolderRecordPage: sM({
52696
52710
  objectUniversalIdentifier: Z.messageChannelMessageAssociationMessageFolder,
52697
52711
  tabs: {
52698
52712
  home: {
@@ -52705,7 +52719,7 @@ var tM = [
52705
52719
  }
52706
52720
  }
52707
52721
  }),
52708
- messageParticipantRecordPage: aM({
52722
+ messageParticipantRecordPage: sM({
52709
52723
  objectUniversalIdentifier: Z.messageParticipant,
52710
52724
  tabs: {
52711
52725
  home: {
@@ -52718,7 +52732,7 @@ var tM = [
52718
52732
  }
52719
52733
  }
52720
52734
  }),
52721
- workflowAutomatedTriggerRecordPage: aM({
52735
+ workflowAutomatedTriggerRecordPage: sM({
52722
52736
  objectUniversalIdentifier: Z.workflowAutomatedTrigger,
52723
52737
  tabs: {
52724
52738
  home: {
@@ -52731,21 +52745,21 @@ var tM = [
52731
52745
  }
52732
52746
  }
52733
52747
  }),
52734
- messageRecordPage: aM({
52748
+ messageRecordPage: sM({
52735
52749
  objectUniversalIdentifier: Z.message,
52736
52750
  tabs: { home: {
52737
52751
  title: "Home",
52738
52752
  widgets: { fields: "Fields" }
52739
52753
  } }
52740
52754
  }),
52741
- messageThreadRecordPage: aM({
52755
+ messageThreadRecordPage: sM({
52742
52756
  objectUniversalIdentifier: Z.messageThread,
52743
52757
  tabs: { home: {
52744
52758
  title: "Home",
52745
52759
  widgets: { emailThread: "Thread" }
52746
52760
  } }
52747
52761
  }),
52748
- messageListRecordPage: aM({
52762
+ messageListRecordPage: sM({
52749
52763
  objectUniversalIdentifier: Z.messageList,
52750
52764
  tabs: {
52751
52765
  home: {
@@ -52761,7 +52775,7 @@ var tM = [
52761
52775
  }
52762
52776
  }
52763
52777
  }),
52764
- messageCampaignRecordPage: aM({
52778
+ messageCampaignRecordPage: sM({
52765
52779
  objectUniversalIdentifier: Z.messageCampaign,
52766
52780
  tabs: {
52767
52781
  home: {
@@ -52779,52 +52793,52 @@ var tM = [
52779
52793
  }
52780
52794
  }
52781
52795
  })
52782
- }, sM = (e) => {
52796
+ }, lM = (e) => {
52783
52797
  let t = [];
52784
52798
  if (e.universalIdentifier || t.push("PageLayoutWidget must have a universalIdentifier"), e.title || t.push("PageLayoutWidget must have a title"), e.type || t.push("PageLayoutWidget must have a type"), e.configuration?.configurationType === "FRONT_COMPONENT" && p(e.configuration.headerCommandMenuItemUniversalIdentifiers)) {
52785
52799
  let n = e.configuration.headerCommandMenuItemUniversalIdentifiers;
52786
- for (let e of n) Hj(e) || t.push(`PageLayoutWidget header command menu item universalIdentifier "${e}" must be a UUID`);
52800
+ for (let e of n) Wj(e) || t.push(`PageLayoutWidget header command menu item universalIdentifier "${e}" must be a UUID`);
52787
52801
  new Set(n).size !== n.length && t.push("PageLayoutWidget header command menu item universalIdentifiers must be unique");
52788
52802
  }
52789
52803
  return t;
52790
- }, cM = (e) => {
52804
+ }, uM = (e) => {
52791
52805
  let t = [];
52792
52806
  e.universalIdentifier || t.push("PageLayout must have a universalIdentifier"), e.name || t.push("PageLayout must have a name"), e.type || t.push("PageLayout must have a type");
52793
52807
  for (let n of e.tabs ?? []) {
52794
52808
  n.universalIdentifier || t.push("PageLayoutTab must have a universalIdentifier"), n.title || t.push("PageLayoutTab must have a title");
52795
- for (let e of n.widgets ?? []) t.push(...sM(e));
52809
+ for (let e of n.widgets ?? []) t.push(...lM(e));
52796
52810
  }
52797
52811
  return J({
52798
52812
  config: e,
52799
52813
  errors: t
52800
52814
  });
52801
- }, lM = (e) => {
52815
+ }, dM = (e) => {
52802
52816
  let t = [];
52803
52817
  e.universalIdentifier || t.push("PageLayoutTab must have a universalIdentifier"), e.title || t.push("PageLayoutTab must have a title"), e.pageLayoutUniversalIdentifier || t.push("PageLayoutTab must have a pageLayoutUniversalIdentifier when defined standalone (use the parent page layout universalIdentifier)");
52804
- for (let n of e.widgets ?? []) t.push(...sM(n));
52818
+ for (let n of e.widgets ?? []) t.push(...lM(n));
52805
52819
  return J({
52806
52820
  config: e,
52807
52821
  errors: t
52808
52822
  });
52809
- }, uM = ({ pageLayoutTabUniversalIdentifier: e, position: t }) => {
52823
+ }, fM = ({ pageLayoutTabUniversalIdentifier: e, position: t }) => {
52810
52824
  let n = [];
52811
52825
  return e || n.push("PageLayoutWidget must have a pageLayoutTabUniversalIdentifier when defined standalone (use the universalIdentifier of the tab it is added to)"), t || n.push("PageLayoutWidget must have a position when defined standalone (its tab is not in the manifest, so the layout mode cannot be inferred)"), n;
52812
- }, dM = (e) => {
52813
- let t = sM(e);
52814
- return t.push(...uM(e)), J({
52826
+ }, pM = (e) => {
52827
+ let t = lM(e);
52828
+ return t.push(...fM(e)), J({
52815
52829
  config: e,
52816
52830
  errors: t
52817
52831
  });
52818
- }, fM = (e) => {
52832
+ }, mM = (e) => {
52819
52833
  let t = [];
52820
52834
  return e.universalIdentifier || t.push("Permission flag must have a universalIdentifier"), e.key || t.push("Permission flag must have a key"), e.label || t.push("Permission flag must have a label"), J({
52821
52835
  config: e,
52822
52836
  errors: t
52823
52837
  });
52824
- }, pM = (e) => p(e.permissionFlagUniversalIdentifiers) ? {
52838
+ }, hM = (e) => p(e.permissionFlagUniversalIdentifiers) ? {
52825
52839
  ...e,
52826
52840
  permissionFlagUniversalIdentifiers: [...new Set(e.permissionFlagUniversalIdentifiers)]
52827
- } : e, mM = (e) => {
52841
+ } : e, gM = (e) => {
52828
52842
  let t = [];
52829
52843
  if (e.universalIdentifier || t.push("Role must have a universalIdentifier"), e.label || t.push("Role must have a label"), e.objectPermissions) for (let n of e.objectPermissions) n.objectUniversalIdentifier || t.push("Object permission must have an objectUniversalIdentifier");
52830
52844
  if (e.fieldPermissions) for (let n of e.fieldPermissions) n.objectUniversalIdentifier || t.push("Field permission must have an objectUniversalIdentifier"), n.fieldUniversalIdentifier || t.push("Field permission must have a fieldUniversalIdentifier");
@@ -52833,54 +52847,54 @@ var tM = [
52833
52847
  let r = /* @__PURE__ */ new Set();
52834
52848
  if (e.rowLevelPermissionPredicates) for (let i of e.rowLevelPermissionPredicates) i.universalIdentifier ? r.has(i.universalIdentifier) ? t.push(`Duplicate row level permission predicate universalIdentifier "${i.universalIdentifier}"`) : r.add(i.universalIdentifier) : t.push("Row level permission predicate must have a universalIdentifier"), i.objectUniversalIdentifier || t.push("Row level permission predicate must have an objectUniversalIdentifier"), i.fieldUniversalIdentifier || t.push("Row level permission predicate must have a fieldUniversalIdentifier"), i.operand || t.push("Row level permission predicate must have an operand"), i.predicateGroupUniversalIdentifier && !n.has(i.predicateGroupUniversalIdentifier) && t.push(`Row level permission predicate references unknown predicate group "${i.predicateGroupUniversalIdentifier}"`);
52835
52849
  return J({
52836
- config: pM(e),
52850
+ config: hM(e),
52837
52851
  errors: t
52838
52852
  });
52839
- }, hM = (e) => mM(e), gM = {
52840
- USER_APPS: Gl.CONNECTED_ACCOUNTS,
52841
- WORKSPACE_APPS: Gl.APPLICATIONS,
52842
- ...Gl
52843
- }, _M = Object.defineProperties(gM, {
52853
+ }, _M = (e) => gM(e), vM = {
52854
+ USER_APPS: Wl.CONNECTED_ACCOUNTS,
52855
+ WORKSPACE_APPS: Wl.APPLICATIONS,
52856
+ ...Wl
52857
+ }, yM = Object.defineProperties(vM, {
52844
52858
  USER_APPS: { enumerable: !1 },
52845
52859
  WORKSPACE_APPS: { enumerable: !1 }
52846
- }), vM = (e) => {
52860
+ }), bM = (e) => {
52847
52861
  let t = [];
52848
52862
  return n(e.universalIdentifier) || t.push("Related record path must have a universalIdentifier"), n(e.objectUniversalIdentifier) || t.push("Related record path must have an objectUniversalIdentifier"), n(e.firstFieldMetadataUniversalIdentifier) || t.push("Related record path must have a firstFieldMetadataUniversalIdentifier"), p(e.thirdFieldMetadataUniversalIdentifier) && !p(e.secondFieldMetadataUniversalIdentifier) && t.push("Related record path cannot skip its second relation"), J({
52849
52863
  config: e,
52850
52864
  errors: t
52851
52865
  });
52852
- }, yM = (e) => {
52866
+ }, xM = (e) => {
52853
52867
  let t = [];
52854
52868
  return e.universalIdentifier || t.push("Skill must have a universalIdentifier"), e.name || t.push("Skill must have a name"), e.label || t.push("Skill must have a label"), e.content || t.push("Skill must have content"), J({
52855
52869
  config: e,
52856
52870
  errors: t
52857
52871
  });
52858
- }, bM = (e) => {
52872
+ }, SM = (e) => {
52859
52873
  let t = [];
52860
52874
  if (e.universalIdentifier || t.push("View must have a universalIdentifier"), e.name || t.push("View must have a name"), e.objectUniversalIdentifier || t.push("View must have an objectUniversalIdentifier"), e.fields) for (let n of e.fields) n.universalIdentifier || t.push("ViewField must have a universalIdentifier"), n.fieldMetadataUniversalIdentifier || t.push("ViewField must have a fieldMetadataUniversalIdentifier");
52861
52875
  if (e.filters) for (let n of e.filters) n.universalIdentifier || t.push("ViewFilter must have a universalIdentifier"), n.fieldMetadataUniversalIdentifier || t.push("ViewFilter must have a fieldMetadataUniversalIdentifier");
52862
52876
  if (e.filterGroups) for (let n of e.filterGroups) n.universalIdentifier || t.push("ViewFilterGroup must have a universalIdentifier");
52863
52877
  if (e.groups) for (let n of e.groups) n.universalIdentifier || t.push("ViewGroup must have a universalIdentifier");
52864
52878
  if (e.fieldGroups) for (let n of e.fieldGroups) n.universalIdentifier || t.push("ViewFieldGroup must have a universalIdentifier");
52865
- if (e.sorts) for (let n of e.sorts) n.universalIdentifier || t.push("ViewSort must have a universalIdentifier"), n.fieldMetadataUniversalIdentifier || t.push("ViewSort must have a fieldMetadataUniversalIdentifier"), n.direction !== Bl.ASC && n.direction !== Bl.DESC && t.push(`ViewSort direction must be '${Bl.ASC}' or '${Bl.DESC}'`);
52879
+ if (e.sorts) for (let n of e.sorts) n.universalIdentifier || t.push("ViewSort must have a universalIdentifier"), n.fieldMetadataUniversalIdentifier || t.push("ViewSort must have a fieldMetadataUniversalIdentifier"), n.direction !== zl.ASC && n.direction !== zl.DESC && t.push(`ViewSort direction must be '${zl.ASC}' or '${zl.DESC}'`);
52866
52880
  return J({
52867
52881
  config: e,
52868
52882
  errors: t
52869
52883
  });
52870
- }, xM = (e) => {
52884
+ }, CM = (e) => {
52871
52885
  let t = [];
52872
52886
  return e.universalIdentifier || t.push("View field must have a universalIdentifier"), e.viewUniversalIdentifier || t.push("View field must have a viewUniversalIdentifier"), e.fieldMetadataUniversalIdentifier || t.push("View field must have a fieldMetadataUniversalIdentifier"), J({
52873
52887
  config: e,
52874
52888
  errors: t
52875
52889
  });
52876
- }, SM = (e) => {
52877
- let t = EA.safeParse(e);
52890
+ }, wM = (e) => {
52891
+ let t = DA.safeParse(e);
52878
52892
  return J({
52879
52893
  config: e,
52880
52894
  errors: t.success ? [] : t.error.issues.map((e) => e.path.length > 0 ? `${e.path.join(".")}: ${e.message}` : e.message)
52881
52895
  });
52882
52896
  };
52883
52897
  //#endregion
52884
- export { dl as AggregateOperations, Fk as ApplicationHealthStatus, fl as CommandMenuItemAvailabilityType, vl as DateDisplayFormat, gl as FieldMetadataSettingsOnClickAction, P as FieldType, bl as HTTPMethod, xl as IndexType, Cl as NavigationMenuItemType, _l as NumberDataType, wl as ObjectOpenRecordIn, Tl as ObjectRecordGroupByDateGranularity, Al as OnDeleteAction, El as PageLayoutTabLayoutMode, ul as PageLayoutType, Dl as PageLayoutWidgetVerticalListHeightBehavior, jl as RelationType, Ml as RowLevelPermissionPredicateGroupLogicalOperator, Nl as RowLevelPermissionPredicateOperand, iM as STANDARD_OBJECT, iM as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, oM as STANDARD_PAGE_LAYOUT, oM as STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, lu as SYSTEM_VIEW_KEYS, _M as SystemPermissionFlag, Fl as ViewCalendarLayout, Il as ViewFilterGroupLogicalOperator, F as ViewFilterOperand, Rl as ViewKey, zl as ViewOpenRecordIn, Bl as ViewSortDirection, I as ViewType, Vl as ViewVisibility, Ol as WidgetType, mj as canAccessFullAdminPanel, pj as canImpersonate, J as createValidationResult, OA as defineAgent, AA as defineApplication, hM as defineApplicationRole, RA as defineCommandMenuItem, Jj as defineConnectionProvider, LA as defineField, jj as defineFrontComponent, Fj as defineHealthCheck, Pj as defineIndex, Ij as defineLogicFunction, Zj as defineMcpServer, Yj as defineMessagingProvider, Qj as defineNavigationMenuItem, eM as defineObject, cM as definePageLayout, lM as definePageLayoutTab, dM as definePageLayoutWidget, fM as definePermissionFlag, Lj as definePostInstallLogicFunction, Rj as definePreInstallLogicFunction, vM as defineRelatedRecordPath, mM as defineRole, Mj as defineSettingsFrontComponent, ZA as defineSettingsMenuItem, yM as defineSkill, VA as defineTimelineActivityType, zj as defineUninstallLogicFunction, HA as defineValidationRule, bM as defineView, xM as defineViewField, SM as defineWorkflow, bj as every, xj as everyDefined, Sj as everyEquals, ij as favoriteRecordIds, uj as featureFlags, nu as getFieldUniversalIdentifier, iu as getSystemPageLayoutTabUniversalIdentifier, ou as getSystemRecordPageLayoutUniversalIdentifier, R as getSystemRelationFieldUniversalIdentifier, cu as getSystemViewFieldUniversalIdentifier, uu as getSystemViewUniversalIdentifier, oj as hasAnySoftDeleteFilterOnView, yj as includes, Aj as includesEvery, nj as isDashboardPageLayoutInEditMode, _j as isDefined, tj as isInSidePanel, rj as isLayoutCustomizationModeEnabled, vj as isNonEmptyString, aj as isSelectAll, Ej as none, Dj as noneDefined, Oj as noneEquals, sj as numberOfSelectedRecords, hj as objectMetadataItem, gj as objectMetadataLabel, cj as objectPermissions, ej as pageType, XA as ruleExpression, lj as selectedRecords, Cj as some, wj as someDefined, Tj as someEquals, kj as someNonEmptyString, dj as targetObjectReadPermissions, fj as targetObjectWritePermissions, IA as validateFields };
52898
+ export { ul as AggregateOperations, Ik as ApplicationHealthStatus, dl as CommandMenuItemAvailabilityType, _l as DateDisplayFormat, hl as FieldMetadataSettingsOnClickAction, F as FieldType, yl as HTTPMethod, bl as IndexType, Sl as NavigationMenuItemType, gl as NumberDataType, Cl as ObjectOpenRecordIn, wl as ObjectRecordGroupByDateGranularity, kl as OnDeleteAction, Tl as PageLayoutTabLayoutMode, ll as PageLayoutType, El as PageLayoutWidgetVerticalListHeightBehavior, Al as RelationType, jl as RowLevelPermissionPredicateGroupLogicalOperator, Ml as RowLevelPermissionPredicateOperand, oM as STANDARD_OBJECT, oM as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, cM as STANDARD_PAGE_LAYOUT, cM as STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, cu as SYSTEM_VIEW_KEYS, yM as SystemPermissionFlag, Pl as ViewCalendarLayout, Fl as ViewFilterGroupLogicalOperator, I as ViewFilterOperand, Ll as ViewKey, Rl as ViewOpenRecordIn, zl as ViewSortDirection, L as ViewType, Bl as ViewVisibility, Dl as WidgetType, hj as canAccessFullAdminPanel, mj as canImpersonate, J as createValidationResult, vj as currentView, kA as defineAgent, jA as defineApplication, _M as defineApplicationRole, zA as defineCommandMenuItem, Xj as defineConnectionProvider, RA as defineField, Nj as defineFrontComponent, Lj as defineHealthCheck, Ij as defineIndex, Rj as defineLogicFunction, $j as defineMcpServer, Zj as defineMessagingProvider, eM as defineNavigationMenuItem, nM as defineObject, uM as definePageLayout, dM as definePageLayoutTab, pM as definePageLayoutWidget, mM as definePermissionFlag, zj as definePostInstallLogicFunction, Bj as definePreInstallLogicFunction, bM as defineRelatedRecordPath, gM as defineRole, Pj as defineSettingsFrontComponent, QA as defineSettingsMenuItem, xM as defineSkill, HA as defineTimelineActivityType, Vj as defineUninstallLogicFunction, UA as defineValidationRule, SM as defineView, CM as defineViewField, wM as defineWorkflow, Sj as every, Cj as everyDefined, wj as everyEquals, aj as favoriteRecordIds, dj as featureFlags, tu as getFieldUniversalIdentifier, ru as getSystemPageLayoutTabUniversalIdentifier, au as getSystemRecordPageLayoutUniversalIdentifier, z as getSystemRelationFieldUniversalIdentifier, su as getSystemViewFieldUniversalIdentifier, lu as getSystemViewUniversalIdentifier, sj as hasAnySoftDeleteFilterOnView, xj as includes, Mj as includesEvery, rj as isDashboardPageLayoutInEditMode, yj as isDefined, nj as isInSidePanel, ij as isLayoutCustomizationModeEnabled, bj as isNonEmptyString, oj as isSelectAll, Oj as none, kj as noneDefined, Aj as noneEquals, cj as numberOfSelectedRecords, gj as objectMetadataItem, _j as objectMetadataLabel, lj as objectPermissions, tj as pageType, ZA as ruleExpression, uj as selectedRecords, Tj as some, Ej as someDefined, Dj as someEquals, jj as someNonEmptyString, fj as targetObjectReadPermissions, pj as targetObjectWritePermissions, LA as validateFields };
52885
52899
 
52886
52900
  //# sourceMappingURL=index.mjs.map