@standards/schema 1.0.0-alpha.445 → 1.0.0-alpha.446

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.
Files changed (38) hide show
  1. package/dist/all-2xry8t7d.js +4 -0
  2. package/dist/all-BWpaP2E2.mjs +4 -0
  3. package/dist/api/index.d.mts +110 -69
  4. package/dist/api/index.d.ts +110 -69
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-CFa9B00S.mjs +11 -0
  8. package/dist/attribute-validators-Djse5LWc.js +11 -0
  9. package/dist/{exceptions-zQlC2r1F.d.mts → exceptions-BjtmXIip.d.mts} +10 -2
  10. package/dist/{exceptions-YHdKk5N8.d.ts → exceptions-CxTJ-9hJ.d.ts} +10 -2
  11. package/dist/exceptions.d.mts +1 -1
  12. package/dist/exceptions.d.ts +1 -1
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-D7FwaSvK.d.ts → index-BoesrnBX.d.ts} +2199 -3091
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/index.mjs +2 -2
  20. package/dist/record-operation-BBOde9mE.mjs +2 -0
  21. package/dist/record-operation-BLhz84I4.js +2 -0
  22. package/dist/{record-query-BiyWXSWA.d.mts → record-query-BMeq7JRi.d.mts} +2180 -3072
  23. package/dist/{utils-CwQlKDYz.d.ts → utils-BdmqhdNL.d.ts} +1 -1
  24. package/dist/{utils-BZMgedee.d.mts → utils-DPto28bh.d.mts} +1 -1
  25. package/dist/utils.d.mts +1 -1
  26. package/dist/utils.d.ts +1 -1
  27. package/dist/validation/all.d.mts +2 -2
  28. package/dist/validation/all.d.ts +2 -2
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +193 -192
  32. package/package.json +2 -2
  33. package/dist/all-BrGOpgV8.js +0 -4
  34. package/dist/all-Df9IeCkI.mjs +0 -4
  35. package/dist/attribute-validators-BJdOkURX.mjs +0 -11
  36. package/dist/attribute-validators-rgM_bLG1.js +0 -11
  37. package/dist/record-operation-BrYpYAKR.js +0 -2
  38. package/dist/record-operation-DSjDUW-6.mjs +0 -2
@@ -0,0 +1,4 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ require("./zod-locale.js");const e=require("./attribute-validators-Djse5LWc.js"),t=require("./exceptions.js");let n=require("zod");n=e.__toESM(n);let r=require("@standards/constants"),i=require("libphonenumber-js");const a=[`text`,`number`,`boolean`,`date`,`select`,`multiselect`],o={email:`^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$`,url:`^https?:\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+[/#?]?.*$`,slug:`^[a-z0-9]+(?:-[a-z0-9]+)*$`};function resolveTextPattern(e){return e.pattern?e.pattern:e.format?o[e.format]:void 0}const s={required:e=>`${e.label} is required`,invalidType:(e,t)=>`${e.label} must be a ${t}`,minLength:(e,t)=>`${e.label} must be at least ${t} characters`,maxLength:(e,t)=>`${e.label} must be at most ${t} characters`,invalidPattern:e=>`${e.label} format is invalid`,minValue:(e,t)=>`${e.label} must be at least ${t}`,maxValue:(e,t)=>`${e.label} must be at most ${t}`,mustBeInteger:e=>`${e.label} must be an integer`,invalidDate:e=>`${e.label} must be a valid date`,invalidOption:(e,t)=>`${e.label} must be one of: ${t.join(`, `)}`,invalidId:e=>`${e.label} must be a valid ID`,maxItems:(e,t)=>`${e.label} must have at most ${t} item${t>1?`s`:``}`,invalidRichtext:e=>`${e.label} must be valid rich text content`,invalidPhone:e=>`${e.label} must be a valid phone number`,invalidCurrency:e=>`${e.label} must be a valid currency value`,invalidLocation:e=>`${e.label} must be a valid location`};function formatZodErrors(e){return e.issues.map(e=>({path:e.path.map(String),message:e.message}))}var LRUCache=class{constructor(e){if(!Number.isInteger(e)||e<=0)throw Error(`LRU cache capacity must be greater than 0`);this.capacity=e,this.cache=/* @__PURE__ */ new Map}get(e){if(!this.cache.has(e))return;let t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next();e.done||this.cache.delete(e.value)}this.cache.set(e,t)}has(e){return this.cache.has(e)}clear(){this.cache.clear()}get size(){return this.cache.size}};function createRegexCache(e=100){return new LRUCache(e)}function getCachedRegex(e,t){let n=e.get(t);return n||(n=new RegExp(t),e.set(t,n)),n}const c=createRegexCache();function createTextValidator(e,t=s){let r=n.string();e.minLength!==void 0&&(r=r.min(e.minLength,t.minLength(e,e.minLength))),e.maxLength!==void 0&&(r=r.max(e.maxLength,t.maxLength(e,e.maxLength)));let i=resolveTextPattern(e);return i&&(r=r.regex(getCachedRegex(c,i),t.invalidPattern(e))),r}function createNumberValidator(e,t=s){let r=n.number();return e.min!==void 0&&(r=r.min(e.min,t.minValue(e,e.min))),e.max!==void 0&&(r=r.max(e.max,t.maxValue(e,e.max))),e.renderAs===`rating`&&(r=r.min(e.min??0),r=r.max(e.max??5)),e.unit===`percentage`&&(r=r.min(e.min??0).max(e.max??100)),e.unit===`integer`&&(r=r.int(t.mustBeInteger(e))),r}function createCheckboxValidator(e,t=s){return n.boolean()}function resolveBound(e){if(!e)return null;let t=e===`today`?(/* @__PURE__ */ new Date()).toISOString().slice(0,10):e,n=new Date(t);return Number.isNaN(n.getTime())?null:n}function floorToPrecision(e,t){return e?t===`month`?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):t===`year`?new Date(Date.UTC(e.getUTCFullYear(),0,1)):e:null}function createDateValidator(e,t=s){let r=t.invalidDate(e),i=floorToPrecision(resolveBound(e.minDate),e.precision),a=resolveBound(e.maxDate),o=n.any().superRefine((e,t)=>{let n=new Date(e);Number.isNaN(n.getTime())?t.addIssue({code:`custom`,message:r}):(i&&n<i&&t.addIssue({code:`custom`,message:r}),a&&n>a&&t.addIssue({code:`custom`,message:r}))});if(!e.endDate)return o;let c=n.object({start:o,end:o.nullable()}).superRefine((e,t)=>{if(e.end===null)return;let n=new Date(e.start),i=new Date(e.end);!(Number.isNaN(n.getTime())||Number.isNaN(i.getTime()))&&i<n&&t.addIssue({code:`custom`,message:r,path:[`end`]})});return n.preprocess(e=>typeof e==`string`?{start:e,end:null}:e,c)}function isNullishOrEmptyString(e){return e==null||e===``}function isValuePresent(e){return e==null?!1:typeof e==`string`?e.trim()!==``:!Array.isArray(e)||e.length>0}const l={phone:[`countryCode`]};function isEmptyValue(e,t=[]){return e==null||typeof e==`string`&&e.trim()===``?!0:e instanceof Date?!1:typeof e==`object`&&!Array.isArray(e)&&Object.entries(e).filter(([e])=>!t.includes(e)).every(([,e])=>e==null||typeof e==`string`&&e.trim()===``)}function withEmptyToNull(e,t){return n.preprocess(e=>isEmptyValue(e,t)?null:e,e.nullish())}const u=n.object({placeholder:n.string().optional(),description:n.string().optional(),defaultValue:n.unknown().optional(),icon:n.string().optional(),order:n.number().int().optional(),hidden:n.boolean().optional(),archived:n.boolean().optional(),deprecated:n.boolean().optional(),metadata:n.record(n.string(),n.unknown()).optional()}),d=[`placeholder`,`description`,`defaultValue`,`icon`,`order`,`hidden`,`archived`,`deprecated`,`metadata`],f={icon:e.iconNameSchema.optional().describe(`Field icon from search_icons`)},p={date:[`precision`],user:[`notifiesOnAssign`,`actors`]};function wireOmittedConfigKeysFor(e){return[...d,...p[e]??[]]}function wireHiddenTypeConfigMask(e){return Object.fromEntries((p[e]??[]).map(e=>[e,!0]))}function refuseForeignKeys(e,t,n=[]){let r=new Set(n);return function refuse(n,i,a,o=[]){let s=e[n];if(s!==void 0&&i!==void 0)for(let e of Object.keys(i))s.has(e)||r.has(e)||a.addIssue({code:`custom`,path:[...o,e],message:`"${e}" is not a ${n} ${t}; keys of ${n}: ${[...s].join(`, `)}`})}}const m=n.object({value:n.string().min(1).describe(`Stored value`),label:n.string().min(1).describe(`Label people see`),description:n.string().describe(`Extra context`).optional(),inverse:n.string().describe(`Paired option's value (symmetric)`).optional(),archived:n.boolean().describe(`Hides without deleting`).optional()}),h=n.enum([`idle`,`in_progress`,`finished`]).describe(`Workflow stage`),g=m.extend({color:e.colorIdSchema}).strict(),_=m.extend({color:e.colorIdSchema,group:h}).strict(),v=m.extend({color:n.string().optional().describe(`A color id`),group:h.optional()}).strict(),y=new Set(v.keyof().options),ee=[`options`,`targetAttributeOptions`];function withoutUnknownOptionKeys(t){let n=t;for(let r of ee){let i=t[r];if(!Array.isArray(i))continue;let a=!1,o=i.map(t=>!e.isPlainRecord(t)||Object.keys(t).every(e=>y.has(e))?t:(a=!0,Object.fromEntries(Object.entries(t).filter(([e])=>y.has(e)))));a&&(n={...n,[r]:o})}let r=t.properties;if(e.isPlainRecord(r)&&Array.isArray(r.definitions)){let t=r.definitions,i=t.map(t=>e.isPlainRecord(t)?withoutUnknownOptionKeys(t):t);i.some((e,n)=>e!==t[n])&&(n={...n,properties:{...r,definitions:i}})}return n}const b=n.array(v).min(1).refine(e=>{let t=e.map(e=>e.value);return new Set(t).size===t.length},{message:`Duplicate option values are not allowed`});function writeOptionsArraySchema(t){return n.array(t).min(1).max(e.SCHEMA_LIMITS.optionsPerAttribute).refine(e=>{let t=e.map(e=>e.value);return new Set(t).size===t.length},{message:`Duplicate option values are not allowed`})}const x=writeOptionsArraySchema(g),S=writeOptionsArraySchema(g),C=writeOptionsArraySchema(_),w=n.object({object:n.string().min(1).describe(`Target object`),displayTemplate:n.string().optional().describe(`Linked record label template`),filter:n.record(n.string(),n.unknown()).optional().describe(`Restricts linkable records`)}),te=n.object({object:n.string().min(1).describe(`Other side's object`),attribute:n.string().min(1).describe(`Other side's attribute`),cardinality:n.enum([`one`,`many`]).optional().describe(`Other side's cardinality`),label:n.string().min(1).optional().describe(`Other side's label`),storageOwner:n.boolean().optional().describe(`Owns the join storage`)}),T=n.object({objectName:n.string().min(1).describe(`API name of the object whose options are mirrored`),attributeName:n.string().min(1).describe(`API name of the select/status attribute to mirror options from`),attributeId:n.string().optional().describe(`Id of the source attribute, resolved by the server`)}),E=u.extend({multiline:n.boolean().describe(`Renders as a multi-line textarea`).optional(),minLength:n.number().int().min(0).describe(`Minimum character count`).optional(),maxLength:n.number().int().min(1).describe(`Maximum character count`).optional(),pattern:n.string().describe(`Regular expression the value must match`).optional(),format:n.enum([`email`,`url`,`slug`]).describe(`Validates and renders as this format`).optional()}),ne=u,D=u.extend({renderAs:n.enum([`number`,`rating`]).describe(`Plain number or a star rating`).optional(),min:n.number().describe(`Minimum allowed value`).optional(),max:n.number().describe(`Maximum allowed value`).optional(),unit:n.enum([`integer`,`decimal`,`percentage`]).describe(`How the value is stored and rendered`).optional(),decimals:n.number().int().min(0).max(10).describe(`Decimal places shown`).optional()}),O=u,k=u.extend({dateFormat:n.enum([`short`,`long`,`full`,`relative`]).describe(`How the date is rendered`).optional(),precision:n.enum([`day`,`month`,`year`]).describe(`Whether the value records a day, a month or a year`).optional(),minDate:n.string().describe(`Earliest allowed date (ISO)`).optional(),maxDate:n.string().describe(`Latest allowed date (ISO)`).optional(),includeTime:n.boolean().describe(`Also captures a time of day`).optional(),endDate:n.boolean().describe(`Paired with another date attribute as a range's end`).optional(),timeFormat:n.enum([`12h`,`24h`]).describe(`Clock format when a time is included`).optional()}),A=u.extend({defaultCountryCode:n.string().length(3).describe(`ISO country code preselected in the dialer`).optional()}),j=u.extend({defaultCurrency:n.string().length(3).describe(`ISO currency code preselected for new values`).optional(),allowedCurrencies:n.array(n.string().length(3)).describe(`ISO currency codes a value may use; any currency when omitted`).optional(),allowNegative:n.boolean().describe(`Whether a negative amount is accepted`).optional()}),M=u.extend({options:b.describe(`The workflow statuses, in order`)}),N=u.extend({granularity:n.enum([`full`,`address`,`city`,`state`,`country`,`coordinates`]).describe(`How precise a location must be captured`).optional(),defaultCountry:n.string().length(3).describe(`ISO country code preselected for new values`).optional(),allowedCountries:n.array(n.string().length(3)).describe(`ISO country codes a value may use; any country when omitted`).optional()}),P=u.extend({options:b.describe(`Options`),renderAs:n.literal(`badges`).optional().describe(`Renders the chosen option as a colored badge`)}),F=u.extend({options:b.describe(`Options`),renderAs:n.literal(`badges`).optional().describe(`Renders the chosen options as colored badges`)}),I=u.extend({types:n.array(n.enum([`user`,`agent`])).min(1).optional().describe(`Which kinds of actor can be picked; both when omitted`),multiple:n.boolean().optional().describe(`Whether more than one actor can be picked`),notifiesOnAssign:n.boolean().optional().describe(`Whether each person added to the value is notified`),actors:n.boolean().optional().describe(`Whether the value holds actor ids, named by each actor's current name`)}),L={name:e.ATTRIBUTE_NAME_SCHEMA.describe(`Property API name`),label:n.string().min(1).describe(`Label people see`),required:n.boolean().describe(`Required on every edge`).optional()},R={id:n.string().optional(),objectId:n.string().optional(),system:n.boolean().optional(),unique:n.boolean().optional()},z=Object.fromEntries(d.map(e=>[e,!0])),B=[`text`,`number`,`checkbox`,`date`,`phone`,`currency`,`location`],V=[...B,`select`,`multiselect`,`status`],H={text:E,number:D,checkbox:O,date:k,phone:A,currency:j,location:N,select:P,multiselect:F,status:M},re={...H,select:P.extend({options:x.describe(`Options`)}),multiselect:F.extend({options:S.describe(`Options`)}),status:M.extend({options:C.describe(`Statuses`)})},propertyWireConfigShapeFor=e=>re[e].omit(z).omit(wireHiddenTypeConfigMask(e)).shape,storedPropertyMember=e=>n.object({...L,...R,type:n.literal(e).describe(`Property type`),...H[e].shape}).strip(),U=n.discriminatedUnion(`type`,V.map(storedPropertyMember)),W=n.object({definitions:n.array(U).min(1).max(e.SCHEMA_LIMITS.optionsPerAttribute).describe(`Edge properties`)}).strip().describe(`Properties carried by the edge itself (role, share, since…), never a third object`),G=refuseForeignKeys(Object.fromEntries(V.map(e=>[e,new Set(Object.keys(propertyWireConfigShapeFor(e)))])),`property key`,[...Object.keys(L),`type`]);function refuseForeignPropertyKeys(e,t){G(e.type,e,t)}const K=B.reduce((e,t)=>(Object.assign(e,propertyWireConfigShapeFor(t)),e),{}),optionPropertyWireMember=e=>n.object({...L,type:e.length===1?n.literal(e[0]).describe(`Property type`):n.enum(e).describe(`Property type`),...propertyWireConfigShapeFor(e[0])}).strict(),q=n.discriminatedUnion(`type`,[optionPropertyWireMember([`select`,`multiselect`]),optionPropertyWireMember([`status`]),n.object({...L,type:n.enum(B).describe(`Property type`),...K}).strict().superRefine(refuseForeignPropertyKeys)]),J=n.object({definitions:n.array(q).min(1).max(e.SCHEMA_LIMITS.optionsPerAttribute).describe(`Edge properties`)}).strict().describe(`Properties carried by the edge itself (role, share, since…), never a third object`),Y=u.extend({targets:n.array(w).min(1).describe(`Target object(s)`),cardinality:n.enum([`one`,`many`]).describe(`one or many`),maxItems:n.number().int().min(1).optional().describe(`Max linked records`),bilateral:te.optional().describe(`Syncs the other side's attribute`),properties:W.optional()}),ie=u.extend({expression:n.string().min(1).describe(`The formula expression, compiled against this object's attributes`),returnType:n.enum(a).describe(`The formula's result type`),decimals:n.number().int().min(0).max(10).optional().describe(`Decimal places shown for a number result`),currencyCode:n.string().length(3).optional().describe(`ISO 4217 code a number result renders with; presentation only`),allowRelations:n.boolean().optional().describe(`Whether the expression may read across a relation`),optionsSource:T.optional().describe(`Mirrors an option set`)}),ae=u.extend({relationAttribute:n.string().min(1).optional().describe(`API name of the relation this rollup aggregates through`),relationPath:n.string().optional().describe(`Not supported yet — single-hop only`),targetAttribute:n.string().min(1).optional().describe(`API name of the attribute aggregated on the relation's target object; not read by count`),function:n.enum([`sum`,`avg`,`earliest`,`latest`,`count`,`countValues`,`countUniqueValues`,`countEmpty`,`percentEmpty`,`percentNotEmpty`,`original`]).describe(`The aggregation applied across the linked records`),decimals:n.number().int().min(0).max(10).optional().describe(`Decimal places shown for a numeric result`),targetAttributeType:n.string().optional().describe(`Server-set`),targetAttributeOptions:n.array(v).optional().describe(`Server-set`),targetCurrencyCode:n.string().length(3).optional().describe(`Server-set`),optionsSource:T.optional().describe(`Mirrors an option set`)});function rollupTargetIssue(e,t){if(e===`rollup`&&t.function!==`count`&&t.targetAttribute===void 0)return{path:[`targetAttribute`],message:`targetAttribute is required for a "${String(t.function)}" rollup`}}function datePrecisionIssues(t,n,r=[]){let i=[],a=n.precision;if(t===`date`&&a!==void 0&&a!==`day`)for(let e of[`includeTime`,`endDate`])n[e]===!0&&i.push({path:[...r,`precision`],message:`A "${String(a)}" precision cannot be combined with ${e}`});let o=n.properties;return e.isPlainRecord(o)&&Array.isArray(o.definitions)&&o.definitions.forEach((t,n)=>{e.isPlainRecord(t)&&i.push(...datePrecisionIssues(String(t.type),t,[...r,`properties`,`definitions`,n]))}),i}const X={text:E,richtext:ne,number:D,checkbox:O,date:k,phone:A,currency:j,status:M,location:N,select:P,multiselect:F,user:I,relation:Y,formula:ie,rollup:ae,document:u.extend({properties:W.optional(),accepts:n.array(n.string().min(1)).optional().describe("MIME prefixes or globs a file must match (e.g. `image/*`, `*.pdf`)"),maxFileSize:n.number().int().min(1).optional().describe(`Maximum file size in bytes`)})};function getAttributeConfigSchema(e){let n=X[e];if(!n)throw new t.ValidationError(`Unsupported attribute type: ${e}`,[]);return n}function parseAttributeConfig(e,t){assertDescriptionWithinCap(t);let n=getAttributeConfigSchema(e).strip().parse(t),r=rollupTargetIssue(e,n);if(r)throw validationErrorFromIssues([r]);return n}function getAttributeConfigWriteSchema(t){let n=getAttributeConfigSchema(t).extend({icon:e.iconNameSchema.optional()});switch(t){case`select`:return n.extend({options:x.describe(`Options`)});case`multiselect`:return n.extend({options:S.describe(`Options`)});case`status`:return n.extend({options:C.describe(`Statuses`)});default:return n}}function validationErrorFromIssues(e){return t.ValidationError.fromZodErrors(e.map(e=>({path:e.path.map(e=>typeof e==`symbol`?String(e):e),message:e.message})))}const Z=`Description is too long (max ${e.SCHEMA_LIMITS.attributeDescriptionLength} characters)`;function assertDescriptionWithinCap(t){let n=e.isPlainRecord(t)?t.description:void 0;if(typeof n==`string`&&e.characterCount(n)>e.SCHEMA_LIMITS.attributeDescriptionLength)throw validationErrorFromIssues([{path:[`description`],message:Z}])}function parseWriteSchema(e,t){assertDescriptionWithinCap(t);let n=getAttributeConfigWriteSchema(e).strip().safeParse(t);if(!n.success)throw validationErrorFromIssues(n.error.issues);let r=rollupTargetIssue(e,n.data);if(r)throw validationErrorFromIssues([r]);let i=datePrecisionIssues(e,n.data);if(i.length>0)throw validationErrorFromIssues(i);return n.data}function parseAttributeConfigForCreate(e,t){return parseWriteSchema(e,t)}function validatePatchedIcon(n){if(!Object.prototype.hasOwnProperty.call(n,`icon`))return;let r=e.iconNameSchema.optional().safeParse(n.icon);if(!r.success)throw t.ValidationError.fromZodErrors(r.error.issues.map(e=>({path:[`icon`,...e.path.map(e=>typeof e==`symbol`?String(e):e)],message:e.message})))}function parseAttributeConfigForUpdate(t,n){let r=Object.prototype.hasOwnProperty.call(n,`options`),i=Object.prototype.hasOwnProperty.call(n,`icon`),a={...t,...n};if(validatePatchedIcon(n),assertDescriptionWithinCap(a),r){let{icon:e,...n}=a,r=parseWriteSchema(t.type,i?a:n);return!i&&e!==void 0&&(r.icon=e),r}let o=t.options;e.isValueKindType(t.type,`options`)&&(a.options=[{value:`__legacy__`,label:`__legacy__`}]);let s=getAttributeConfigSchema(t.type).strip().safeParse(a);if(!s.success)throw validationErrorFromIssues(s.error.issues);let c=s.data,l=datePrecisionIssues(t.type,c);if(l.length>0)throw validationErrorFromIssues(l);return e.isValueKindType(t.type,`options`)&&(c.options=o),c}function createCurrencyValidator(e,t=s){let r=e.allowNegative?n.number():n.number().min(0);return n.object({code:n.string().length(3),value:r},{message:t.invalidCurrency(e)})}function createLocationValidator(e,t=s){return n.object({address:n.string().optional(),address2:n.string().optional(),city:n.string().optional(),state:n.string().optional(),postalCode:n.string().optional(),country:n.string().length(3).optional(),latitude:n.number().min(-90).max(90).optional(),longitude:n.number().min(-180).max(180).optional()},{message:t.invalidLocation(e)})}function digitsOnly(e){return e.replace(/\D/g,``)}function normalizeCountrylessPhoneNumber(e){return digitsOnly(e)}function getIso2(e){return(0,r.getCountryByIso3)(e)?.iso2}function normalizePhoneNumber(e,t){if(!e)return``;let n=getIso2(t);if(!n)return digitsOnly(e);let a=(0,i.parsePhoneNumberFromString)(e,n);if(a)return absorbDoubledCallingCode(a.nationalNumber,a.isValid(),t,n);let o=(0,r.getCountryByIso3)(t),s=digitsOnly(e);if(o){let e=o.phoneCode.replace(`+`,``),t=s.startsWith(e)?s.slice(e.length):s;return(0,r.stripTrunkPrefix)(t,o.phoneTrunkPrefix??``)}return s}function absorbDoubledCallingCode(e,t,n,a){if(t)return e;let o=(0,r.getCountryByIso3)(n)?.phoneCode.replace(`+`,``);if(o===void 0||!e.startsWith(o))return e;let s=e.slice(o.length),c=(0,i.parsePhoneNumberFromString)(`+${o}${s}`,a);return c?.isValid()?c.nationalNumber:e}function formatPhoneForDisplay(e){if(!e.phoneNumber)return``;let t=getIso2(e.countryCode),n=(0,r.getCountryByIso3)(e.countryCode)?.phoneCode??``;if(!t)return`${n} ${e.phoneNumber}`.trim();let a=`${n}${digitsOnly(e.phoneNumber)}`,o=(0,i.parsePhoneNumberFromString)(a);return o?o.formatInternational():`${n} ${e.phoneNumber}`.trim()}function createPhoneValidator(e,t=s){return n.object({countryCode:n.string().length(3),phoneNumber:n.string().min(1,{message:t.required(e)})},{message:t.invalidPhone(e)}).refine(e=>(0,r.isValidIso3)(e.countryCode),{message:`Invalid country code`}).transform(e=>({countryCode:e.countryCode,phoneNumber:normalizePhoneNumber(e.phoneNumber,e.countryCode)}))}function extractRelationId(e){return typeof e==`object`&&e&&`id`in e?e.id:e}function createSingleRelationValidator(e,t=s){let r=n.guid({message:t.invalidId(e)}),i=n.union([r,n.null()]);return n.union([i,n.object({id:r,props:n.record(n.string(),n.unknown()).optional()}).passthrough()])}function createMultiRelationValidator(e,t=s){let r=n.guid({message:t.invalidId(e)}),i=n.union([r,n.object({id:r,props:n.record(n.string(),n.unknown()).optional()}).passthrough()]),a=n.array(i);return e.maxItems!==void 0&&(a=a.max(e.maxItems,t.maxItems(e,e.maxItems))),a.refine(e=>e.every(e=>{let t=extractRelationId(e);return typeof t==`string`&&r.safeParse(t).success}),{message:t.invalidId(e)})}function createRelationValidator(e,t=s){return e.cardinality===`many`?createMultiRelationValidator(e,t):createSingleRelationValidator(e,t)}function createRichtextValidator(e,t=s){return n.string({message:t.invalidRichtext(e)})}function describeOptions(e){return e.map(e=>e.label===e.value?e.value:`${e.value} (${e.label})`)}function createSelectValidator(e,t=s){let r=e.options.map(e=>e.value);return r.length===0?n.never():n.enum(r,{message:t.invalidOption(e,describeOptions(e.options))})}function createMultiselectValidator(e,t=s){let r=e.options.map(e=>e.value);return r.length===0?n.never():n.array(n.enum(r,{message:t.invalidOption(e,describeOptions(e.options))}))}function createStatusValidator(e,t=s){let r=e.options.map(e=>e.value);return r.length===0?n.never():n.enum(r,{message:t.invalidOption(e,describeOptions(e.options))})}function createUserValidator(e,t=s){let r=n.guid({message:t.invalidId(e)});return e.multiple?n.array(r):r}function createFormulaValidator(e,t=s){return n.unknown()}function createRollupValidator(e,t=s){return n.unknown()}function createAttributeValidator(e,t=s){switch(e.type){case`text`:return createTextValidator(e,t);case`richtext`:return createRichtextValidator(e,t);case`number`:return createNumberValidator(e,t);case`checkbox`:return createCheckboxValidator(e,t);case`date`:return createDateValidator(e,t);case`phone`:return createPhoneValidator(e,t);case`currency`:return createCurrencyValidator(e,t);case`status`:return createStatusValidator(e,t);case`location`:return createLocationValidator(e,t);case`select`:return createSelectValidator(e,t);case`multiselect`:return createMultiselectValidator(e,t);case`user`:return createUserValidator(e,t);case`relation`:return createRelationValidator(e,t);case`formula`:return createFormulaValidator(e,t);case`rollup`:return createRollupValidator(e,t);default:return n.unknown()}}function createFormAttributeValidator(e,t=s){let n=createAttributeValidator(e,t);return e.required?n:withEmptyToNull(n,l[e.type])}const Q=/* @__PURE__ */ new WeakMap,$=/* @__PURE__ */ new WeakMap;function createObjectValidator(e){let t=Q.get(e);if(t)return t;let r={};for(let t of e.attributes){let e=createAttributeValidator(t);t.required?r[t.name]=e.refine(isValuePresent,{message:s.required(t)}):r[t.name]=withEmptyToNull(e,l[t.type])}let i=n.object(r).passthrough();return Q.set(e,i),i}function createDraftValidator(e){let t=$.get(e);if(t)return t;let r={};for(let t of e.attributes){let e=createAttributeValidator(t);r[t.name]=withEmptyToNull(e,l[t.type])}let i=n.object(r).passthrough();return $.set(e,i),i}function validateAttribute(e,t){let n=createAttributeValidator(e);if(!e.required&&t==null)return{success:!0,data:{[e.name]:t}};let r=n.safeParse(t);return r.success?{success:!0,data:{[e.name]:r.data}}:{success:!1,errors:formatZodErrors(r.error).map(t=>({path:[e.name,...t.path],message:t.message}))}}function validateObject(e,t){let n=createObjectValidator(e).safeParse(t);return n.success?{success:!0,data:n.data}:{success:!1,errors:formatZodErrors(n.error)}}function validateObjectOrThrow(e,n){let r=validateObject(e,n);if(!r.success){let n=r.errors??[],i=n.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`
3
+ `)||`Unknown validation error`;throw new t.ValidationError(`Validation failed for ${e.label}:\n${i}`,n.map(e=>({path:e.path,message:e.message})))}return r.data}function validateDraft(e,t){let n=createDraftValidator(e).safeParse(t);return n.success?{success:!0,data:n.data}:{success:!1,errors:formatZodErrors(n.error)}}function validateDraftOrThrow(e,n){let r=validateDraft(e,n);if(!r.success){let n=r.errors??[],i=n.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`
4
+ `)||`Unknown validation error`;throw new t.ValidationError(`Draft validation failed for ${e.label}:\n${i}`,n.map(e=>({path:e.path,message:e.message})))}return r.data}function rejectUnknownAttributesOrThrow(e,n){let r=new Set(e.attributes.map(e=>e.name)),i=Object.keys(n).filter(e=>!r.has(e));if(i.length>0)throw new t.ValidationError(`Unknown attribute${i.length>1?`s`:``} for ${e.label}: ${i.join(`, `)}`,i.map(e=>({path:[e],message:`Unknown attribute`})))}Object.defineProperty(exports,"ATTRIBUTE_DESCRIPTION_TOO_LONG",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"COMPUTED_RETURN_TYPES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"DEFAULT_VALIDATION_MESSAGES",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"SIMPLE_PROPERTY_TYPES",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"TEXT_FORMAT_PATTERNS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"WIRE_OFFERED_BASE_CONFIG",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"WIRE_OMITTED_CONFIG_KEYS",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"attributeConfigSchemas",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"createAttributeValidator",{enumerable:!0,get:function(){return createAttributeValidator}}),Object.defineProperty(exports,"createFormAttributeValidator",{enumerable:!0,get:function(){return createFormAttributeValidator}}),Object.defineProperty(exports,"createObjectValidator",{enumerable:!0,get:function(){return createObjectValidator}}),Object.defineProperty(exports,"datePrecisionIssues",{enumerable:!0,get:function(){return datePrecisionIssues}}),Object.defineProperty(exports,"formatPhoneForDisplay",{enumerable:!0,get:function(){return formatPhoneForDisplay}}),Object.defineProperty(exports,"formatZodErrors",{enumerable:!0,get:function(){return formatZodErrors}}),Object.defineProperty(exports,"getAttributeConfigSchema",{enumerable:!0,get:function(){return getAttributeConfigSchema}}),Object.defineProperty(exports,"getAttributeConfigWriteSchema",{enumerable:!0,get:function(){return getAttributeConfigWriteSchema}}),Object.defineProperty(exports,"getIso2",{enumerable:!0,get:function(){return getIso2}}),Object.defineProperty(exports,"isEmptyValue",{enumerable:!0,get:function(){return isEmptyValue}}),Object.defineProperty(exports,"isNullishOrEmptyString",{enumerable:!0,get:function(){return isNullishOrEmptyString}}),Object.defineProperty(exports,"isValuePresent",{enumerable:!0,get:function(){return isValuePresent}}),Object.defineProperty(exports,"normalizeCountrylessPhoneNumber",{enumerable:!0,get:function(){return normalizeCountrylessPhoneNumber}}),Object.defineProperty(exports,"normalizePhoneNumber",{enumerable:!0,get:function(){return normalizePhoneNumber}}),Object.defineProperty(exports,"parseAttributeConfig",{enumerable:!0,get:function(){return parseAttributeConfig}}),Object.defineProperty(exports,"parseAttributeConfigForCreate",{enumerable:!0,get:function(){return parseAttributeConfigForCreate}}),Object.defineProperty(exports,"parseAttributeConfigForUpdate",{enumerable:!0,get:function(){return parseAttributeConfigForUpdate}}),Object.defineProperty(exports,"propertyAttributeSchema",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"propertyAttributeWireSchema",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"propertySchemaSchema",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"propertySchemaWireSchema",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"refuseForeignKeys",{enumerable:!0,get:function(){return refuseForeignKeys}}),Object.defineProperty(exports,"rejectUnknownAttributesOrThrow",{enumerable:!0,get:function(){return rejectUnknownAttributesOrThrow}}),Object.defineProperty(exports,"resolveTextPattern",{enumerable:!0,get:function(){return resolveTextPattern}}),Object.defineProperty(exports,"selectOptionWriteSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"statusGroupSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"statusOptionWriteSchema",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"validateAttribute",{enumerable:!0,get:function(){return validateAttribute}}),Object.defineProperty(exports,"validateDraft",{enumerable:!0,get:function(){return validateDraft}}),Object.defineProperty(exports,"validateDraftOrThrow",{enumerable:!0,get:function(){return validateDraftOrThrow}}),Object.defineProperty(exports,"validateObject",{enumerable:!0,get:function(){return validateObject}}),Object.defineProperty(exports,"validateObjectOrThrow",{enumerable:!0,get:function(){return validateObjectOrThrow}}),Object.defineProperty(exports,"wireHiddenTypeConfigMask",{enumerable:!0,get:function(){return wireHiddenTypeConfigMask}}),Object.defineProperty(exports,"wireOmittedConfigKeysFor",{enumerable:!0,get:function(){return wireOmittedConfigKeysFor}}),Object.defineProperty(exports,"withoutUnknownOptionKeys",{enumerable:!0,get:function(){return withoutUnknownOptionKeys}});
@@ -0,0 +1,4 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import{ATTRIBUTE_NAME_SCHEMA as e,SCHEMA_LIMITS as t,characterCount as n,colorIdSchema as r,iconNameSchema as i,isPlainRecord as a,isValueKindType as o}from"./attribute-validators-CFa9B00S.mjs";import{ValidationError as s}from"./exceptions.mjs";import*as c from"zod";import{getCountryByIso3 as l,isValidIso3 as ee,stripTrunkPrefix as te}from"@standards/constants";import{parsePhoneNumberFromString as u}from"libphonenumber-js";const d=[`text`,`number`,`boolean`,`date`,`select`,`multiselect`],f={email:`^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$`,url:`^https?:\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+[/#?]?.*$`,slug:`^[a-z0-9]+(?:-[a-z0-9]+)*$`};function resolveTextPattern(e){return e.pattern?e.pattern:e.format?f[e.format]:void 0}const p={required:e=>`${e.label} is required`,invalidType:(e,t)=>`${e.label} must be a ${t}`,minLength:(e,t)=>`${e.label} must be at least ${t} characters`,maxLength:(e,t)=>`${e.label} must be at most ${t} characters`,invalidPattern:e=>`${e.label} format is invalid`,minValue:(e,t)=>`${e.label} must be at least ${t}`,maxValue:(e,t)=>`${e.label} must be at most ${t}`,mustBeInteger:e=>`${e.label} must be an integer`,invalidDate:e=>`${e.label} must be a valid date`,invalidOption:(e,t)=>`${e.label} must be one of: ${t.join(`, `)}`,invalidId:e=>`${e.label} must be a valid ID`,maxItems:(e,t)=>`${e.label} must have at most ${t} item${t>1?`s`:``}`,invalidRichtext:e=>`${e.label} must be valid rich text content`,invalidPhone:e=>`${e.label} must be a valid phone number`,invalidCurrency:e=>`${e.label} must be a valid currency value`,invalidLocation:e=>`${e.label} must be a valid location`};function formatZodErrors(e){return e.issues.map(e=>({path:e.path.map(String),message:e.message}))}var LRUCache=class{constructor(e){if(!Number.isInteger(e)||e<=0)throw Error(`LRU cache capacity must be greater than 0`);this.capacity=e,this.cache=/* @__PURE__ */ new Map}get(e){if(!this.cache.has(e))return;let t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next();e.done||this.cache.delete(e.value)}this.cache.set(e,t)}has(e){return this.cache.has(e)}clear(){this.cache.clear()}get size(){return this.cache.size}};function createRegexCache(e=100){return new LRUCache(e)}function getCachedRegex(e,t){let n=e.get(t);return n||(n=new RegExp(t),e.set(t,n)),n}const ne=createRegexCache();function createTextValidator(e,t=p){let n=c.string();e.minLength!==void 0&&(n=n.min(e.minLength,t.minLength(e,e.minLength))),e.maxLength!==void 0&&(n=n.max(e.maxLength,t.maxLength(e,e.maxLength)));let r=resolveTextPattern(e);return r&&(n=n.regex(getCachedRegex(ne,r),t.invalidPattern(e))),n}function createNumberValidator(e,t=p){let n=c.number();return e.min!==void 0&&(n=n.min(e.min,t.minValue(e,e.min))),e.max!==void 0&&(n=n.max(e.max,t.maxValue(e,e.max))),e.renderAs===`rating`&&(n=n.min(e.min??0),n=n.max(e.max??5)),e.unit===`percentage`&&(n=n.min(e.min??0).max(e.max??100)),e.unit===`integer`&&(n=n.int(t.mustBeInteger(e))),n}function createCheckboxValidator(e,t=p){return c.boolean()}function resolveBound(e){if(!e)return null;let t=e===`today`?(/* @__PURE__ */ new Date()).toISOString().slice(0,10):e,n=new Date(t);return Number.isNaN(n.getTime())?null:n}function floorToPrecision(e,t){return e?t===`month`?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):t===`year`?new Date(Date.UTC(e.getUTCFullYear(),0,1)):e:null}function createDateValidator(e,t=p){let n=t.invalidDate(e),r=floorToPrecision(resolveBound(e.minDate),e.precision),i=resolveBound(e.maxDate),a=c.any().superRefine((e,t)=>{let a=new Date(e);Number.isNaN(a.getTime())?t.addIssue({code:`custom`,message:n}):(r&&a<r&&t.addIssue({code:`custom`,message:n}),i&&a>i&&t.addIssue({code:`custom`,message:n}))});if(!e.endDate)return a;let o=c.object({start:a,end:a.nullable()}).superRefine((e,t)=>{if(e.end===null)return;let r=new Date(e.start),i=new Date(e.end);!(Number.isNaN(r.getTime())||Number.isNaN(i.getTime()))&&i<r&&t.addIssue({code:`custom`,message:n,path:[`end`]})});return c.preprocess(e=>typeof e==`string`?{start:e,end:null}:e,o)}function isNullishOrEmptyString(e){return e==null||e===``}function isValuePresent(e){return e==null?!1:typeof e==`string`?e.trim()!==``:!Array.isArray(e)||e.length>0}const m={phone:[`countryCode`]};function isEmptyValue(e,t=[]){return e==null||typeof e==`string`&&e.trim()===``?!0:e instanceof Date?!1:typeof e==`object`&&!Array.isArray(e)&&Object.entries(e).filter(([e])=>!t.includes(e)).every(([,e])=>e==null||typeof e==`string`&&e.trim()===``)}function withEmptyToNull(e,t){return c.preprocess(e=>isEmptyValue(e,t)?null:e,e.nullish())}const h=c.object({placeholder:c.string().optional(),description:c.string().optional(),defaultValue:c.unknown().optional(),icon:c.string().optional(),order:c.number().int().optional(),hidden:c.boolean().optional(),archived:c.boolean().optional(),deprecated:c.boolean().optional(),metadata:c.record(c.string(),c.unknown()).optional()}),g=[`placeholder`,`description`,`defaultValue`,`icon`,`order`,`hidden`,`archived`,`deprecated`,`metadata`],re={icon:i.optional().describe(`Field icon from search_icons`)},_={date:[`precision`],user:[`notifiesOnAssign`,`actors`]};function wireOmittedConfigKeysFor(e){return[...g,..._[e]??[]]}function wireHiddenTypeConfigMask(e){return Object.fromEntries((_[e]??[]).map(e=>[e,!0]))}function refuseForeignKeys(e,t,n=[]){let r=new Set(n);return function refuse(n,i,a,o=[]){let s=e[n];if(s!==void 0&&i!==void 0)for(let e of Object.keys(i))s.has(e)||r.has(e)||a.addIssue({code:`custom`,path:[...o,e],message:`"${e}" is not a ${n} ${t}; keys of ${n}: ${[...s].join(`, `)}`})}}const v=c.object({value:c.string().min(1).describe(`Stored value`),label:c.string().min(1).describe(`Label people see`),description:c.string().describe(`Extra context`).optional(),inverse:c.string().describe(`Paired option's value (symmetric)`).optional(),archived:c.boolean().describe(`Hides without deleting`).optional()}),y=c.enum([`idle`,`in_progress`,`finished`]).describe(`Workflow stage`),b=v.extend({color:r}).strict(),x=v.extend({color:r,group:y}).strict(),S=v.extend({color:c.string().optional().describe(`A color id`),group:y.optional()}).strict(),C=new Set(S.keyof().options),w=[`options`,`targetAttributeOptions`];function withoutUnknownOptionKeys(e){let t=e;for(let n of w){let r=e[n];if(!Array.isArray(r))continue;let i=!1,o=r.map(e=>!a(e)||Object.keys(e).every(e=>C.has(e))?e:(i=!0,Object.fromEntries(Object.entries(e).filter(([e])=>C.has(e)))));i&&(t={...t,[n]:o})}let n=e.properties;if(a(n)&&Array.isArray(n.definitions)){let e=n.definitions,r=e.map(e=>a(e)?withoutUnknownOptionKeys(e):e);r.some((t,n)=>t!==e[n])&&(t={...t,properties:{...n,definitions:r}})}return t}const T=c.array(S).min(1).refine(e=>{let t=e.map(e=>e.value);return new Set(t).size===t.length},{message:`Duplicate option values are not allowed`});function writeOptionsArraySchema(e){return c.array(e).min(1).max(t.optionsPerAttribute).refine(e=>{let t=e.map(e=>e.value);return new Set(t).size===t.length},{message:`Duplicate option values are not allowed`})}const E=writeOptionsArraySchema(b),D=writeOptionsArraySchema(b),O=writeOptionsArraySchema(x),k=c.object({object:c.string().min(1).describe(`Target object`),displayTemplate:c.string().optional().describe(`Linked record label template`),filter:c.record(c.string(),c.unknown()).optional().describe(`Restricts linkable records`)}),A=c.object({object:c.string().min(1).describe(`Other side's object`),attribute:c.string().min(1).describe(`Other side's attribute`),cardinality:c.enum([`one`,`many`]).optional().describe(`Other side's cardinality`),label:c.string().min(1).optional().describe(`Other side's label`),storageOwner:c.boolean().optional().describe(`Owns the join storage`)}),j=c.object({objectName:c.string().min(1).describe(`API name of the object whose options are mirrored`),attributeName:c.string().min(1).describe(`API name of the select/status attribute to mirror options from`),attributeId:c.string().optional().describe(`Id of the source attribute, resolved by the server`)}),M=h.extend({multiline:c.boolean().describe(`Renders as a multi-line textarea`).optional(),minLength:c.number().int().min(0).describe(`Minimum character count`).optional(),maxLength:c.number().int().min(1).describe(`Maximum character count`).optional(),pattern:c.string().describe(`Regular expression the value must match`).optional(),format:c.enum([`email`,`url`,`slug`]).describe(`Validates and renders as this format`).optional()}),ie=h,N=h.extend({renderAs:c.enum([`number`,`rating`]).describe(`Plain number or a star rating`).optional(),min:c.number().describe(`Minimum allowed value`).optional(),max:c.number().describe(`Maximum allowed value`).optional(),unit:c.enum([`integer`,`decimal`,`percentage`]).describe(`How the value is stored and rendered`).optional(),decimals:c.number().int().min(0).max(10).describe(`Decimal places shown`).optional()}),P=h,F=h.extend({dateFormat:c.enum([`short`,`long`,`full`,`relative`]).describe(`How the date is rendered`).optional(),precision:c.enum([`day`,`month`,`year`]).describe(`Whether the value records a day, a month or a year`).optional(),minDate:c.string().describe(`Earliest allowed date (ISO)`).optional(),maxDate:c.string().describe(`Latest allowed date (ISO)`).optional(),includeTime:c.boolean().describe(`Also captures a time of day`).optional(),endDate:c.boolean().describe(`Paired with another date attribute as a range's end`).optional(),timeFormat:c.enum([`12h`,`24h`]).describe(`Clock format when a time is included`).optional()}),I=h.extend({defaultCountryCode:c.string().length(3).describe(`ISO country code preselected in the dialer`).optional()}),L=h.extend({defaultCurrency:c.string().length(3).describe(`ISO currency code preselected for new values`).optional(),allowedCurrencies:c.array(c.string().length(3)).describe(`ISO currency codes a value may use; any currency when omitted`).optional(),allowNegative:c.boolean().describe(`Whether a negative amount is accepted`).optional()}),R=h.extend({options:T.describe(`The workflow statuses, in order`)}),z=h.extend({granularity:c.enum([`full`,`address`,`city`,`state`,`country`,`coordinates`]).describe(`How precise a location must be captured`).optional(),defaultCountry:c.string().length(3).describe(`ISO country code preselected for new values`).optional(),allowedCountries:c.array(c.string().length(3)).describe(`ISO country codes a value may use; any country when omitted`).optional()}),B=h.extend({options:T.describe(`Options`),renderAs:c.literal(`badges`).optional().describe(`Renders the chosen option as a colored badge`)}),V=h.extend({options:T.describe(`Options`),renderAs:c.literal(`badges`).optional().describe(`Renders the chosen options as colored badges`)}),ae=h.extend({types:c.array(c.enum([`user`,`agent`])).min(1).optional().describe(`Which kinds of actor can be picked; both when omitted`),multiple:c.boolean().optional().describe(`Whether more than one actor can be picked`),notifiesOnAssign:c.boolean().optional().describe(`Whether each person added to the value is notified`),actors:c.boolean().optional().describe(`Whether the value holds actor ids, named by each actor's current name`)}),H={name:e.describe(`Property API name`),label:c.string().min(1).describe(`Label people see`),required:c.boolean().describe(`Required on every edge`).optional()},oe={id:c.string().optional(),objectId:c.string().optional(),system:c.boolean().optional(),unique:c.boolean().optional()},se=Object.fromEntries(g.map(e=>[e,!0])),U=[`text`,`number`,`checkbox`,`date`,`phone`,`currency`,`location`],W=[...U,`select`,`multiselect`,`status`],G={text:M,number:N,checkbox:P,date:F,phone:I,currency:L,location:z,select:B,multiselect:V,status:R},ce={...G,select:B.extend({options:E.describe(`Options`)}),multiselect:V.extend({options:D.describe(`Options`)}),status:R.extend({options:O.describe(`Statuses`)})},propertyWireConfigShapeFor=e=>ce[e].omit(se).omit(wireHiddenTypeConfigMask(e)).shape,storedPropertyMember=e=>c.object({...H,...oe,type:c.literal(e).describe(`Property type`),...G[e].shape}).strip(),K=c.discriminatedUnion(`type`,W.map(storedPropertyMember)),q=c.object({definitions:c.array(K).min(1).max(t.optionsPerAttribute).describe(`Edge properties`)}).strip().describe(`Properties carried by the edge itself (role, share, since…), never a third object`),le=refuseForeignKeys(Object.fromEntries(W.map(e=>[e,new Set(Object.keys(propertyWireConfigShapeFor(e)))])),`property key`,[...Object.keys(H),`type`]);function refuseForeignPropertyKeys(e,t){le(e.type,e,t)}const ue=U.reduce((e,t)=>(Object.assign(e,propertyWireConfigShapeFor(t)),e),{}),optionPropertyWireMember=e=>c.object({...H,type:e.length===1?c.literal(e[0]).describe(`Property type`):c.enum(e).describe(`Property type`),...propertyWireConfigShapeFor(e[0])}).strict(),J=c.discriminatedUnion(`type`,[optionPropertyWireMember([`select`,`multiselect`]),optionPropertyWireMember([`status`]),c.object({...H,type:c.enum(U).describe(`Property type`),...ue}).strict().superRefine(refuseForeignPropertyKeys)]),de=c.object({definitions:c.array(J).min(1).max(t.optionsPerAttribute).describe(`Edge properties`)}).strict().describe(`Properties carried by the edge itself (role, share, since…), never a third object`),fe=h.extend({targets:c.array(k).min(1).describe(`Target object(s)`),cardinality:c.enum([`one`,`many`]).describe(`one or many`),maxItems:c.number().int().min(1).optional().describe(`Max linked records`),bilateral:A.optional().describe(`Syncs the other side's attribute`),properties:q.optional()}),Y=h.extend({expression:c.string().min(1).describe(`The formula expression, compiled against this object's attributes`),returnType:c.enum(d).describe(`The formula's result type`),decimals:c.number().int().min(0).max(10).optional().describe(`Decimal places shown for a number result`),currencyCode:c.string().length(3).optional().describe(`ISO 4217 code a number result renders with; presentation only`),allowRelations:c.boolean().optional().describe(`Whether the expression may read across a relation`),optionsSource:j.optional().describe(`Mirrors an option set`)}),pe=h.extend({relationAttribute:c.string().min(1).optional().describe(`API name of the relation this rollup aggregates through`),relationPath:c.string().optional().describe(`Not supported yet — single-hop only`),targetAttribute:c.string().min(1).optional().describe(`API name of the attribute aggregated on the relation's target object; not read by count`),function:c.enum([`sum`,`avg`,`earliest`,`latest`,`count`,`countValues`,`countUniqueValues`,`countEmpty`,`percentEmpty`,`percentNotEmpty`,`original`]).describe(`The aggregation applied across the linked records`),decimals:c.number().int().min(0).max(10).optional().describe(`Decimal places shown for a numeric result`),targetAttributeType:c.string().optional().describe(`Server-set`),targetAttributeOptions:c.array(S).optional().describe(`Server-set`),targetCurrencyCode:c.string().length(3).optional().describe(`Server-set`),optionsSource:j.optional().describe(`Mirrors an option set`)});function rollupTargetIssue(e,t){if(e===`rollup`&&t.function!==`count`&&t.targetAttribute===void 0)return{path:[`targetAttribute`],message:`targetAttribute is required for a "${String(t.function)}" rollup`}}function datePrecisionIssues(e,t,n=[]){let r=[],i=t.precision;if(e===`date`&&i!==void 0&&i!==`day`)for(let e of[`includeTime`,`endDate`])t[e]===!0&&r.push({path:[...n,`precision`],message:`A "${String(i)}" precision cannot be combined with ${e}`});let o=t.properties;return a(o)&&Array.isArray(o.definitions)&&o.definitions.forEach((e,t)=>{a(e)&&r.push(...datePrecisionIssues(String(e.type),e,[...n,`properties`,`definitions`,t]))}),r}const X={text:M,richtext:ie,number:N,checkbox:P,date:F,phone:I,currency:L,status:R,location:z,select:B,multiselect:V,user:ae,relation:fe,formula:Y,rollup:pe,document:h.extend({properties:q.optional(),accepts:c.array(c.string().min(1)).optional().describe("MIME prefixes or globs a file must match (e.g. `image/*`, `*.pdf`)"),maxFileSize:c.number().int().min(1).optional().describe(`Maximum file size in bytes`)})};function getAttributeConfigSchema(e){let t=X[e];if(!t)throw new s(`Unsupported attribute type: ${e}`,[]);return t}function parseAttributeConfig(e,t){assertDescriptionWithinCap(t);let n=getAttributeConfigSchema(e).strip().parse(t),r=rollupTargetIssue(e,n);if(r)throw validationErrorFromIssues([r]);return n}function getAttributeConfigWriteSchema(e){let t=getAttributeConfigSchema(e).extend({icon:i.optional()});switch(e){case`select`:return t.extend({options:E.describe(`Options`)});case`multiselect`:return t.extend({options:D.describe(`Options`)});case`status`:return t.extend({options:O.describe(`Statuses`)});default:return t}}function validationErrorFromIssues(e){return s.fromZodErrors(e.map(e=>({path:e.path.map(e=>typeof e==`symbol`?String(e):e),message:e.message})))}const Z=`Description is too long (max ${t.attributeDescriptionLength} characters)`;function assertDescriptionWithinCap(e){let r=a(e)?e.description:void 0;if(typeof r==`string`&&n(r)>t.attributeDescriptionLength)throw validationErrorFromIssues([{path:[`description`],message:Z}])}function parseWriteSchema(e,t){assertDescriptionWithinCap(t);let n=getAttributeConfigWriteSchema(e).strip().safeParse(t);if(!n.success)throw validationErrorFromIssues(n.error.issues);let r=rollupTargetIssue(e,n.data);if(r)throw validationErrorFromIssues([r]);let i=datePrecisionIssues(e,n.data);if(i.length>0)throw validationErrorFromIssues(i);return n.data}function parseAttributeConfigForCreate(e,t){return parseWriteSchema(e,t)}function validatePatchedIcon(e){if(!Object.prototype.hasOwnProperty.call(e,`icon`))return;let t=i.optional().safeParse(e.icon);if(!t.success)throw s.fromZodErrors(t.error.issues.map(e=>({path:[`icon`,...e.path.map(e=>typeof e==`symbol`?String(e):e)],message:e.message})))}function parseAttributeConfigForUpdate(e,t){let n=Object.prototype.hasOwnProperty.call(t,`options`),r=Object.prototype.hasOwnProperty.call(t,`icon`),i={...e,...t};if(validatePatchedIcon(t),assertDescriptionWithinCap(i),n){let{icon:t,...n}=i,a=parseWriteSchema(e.type,r?i:n);return!r&&t!==void 0&&(a.icon=t),a}let a=e.options;o(e.type,`options`)&&(i.options=[{value:`__legacy__`,label:`__legacy__`}]);let s=getAttributeConfigSchema(e.type).strip().safeParse(i);if(!s.success)throw validationErrorFromIssues(s.error.issues);let c=s.data,l=datePrecisionIssues(e.type,c);if(l.length>0)throw validationErrorFromIssues(l);return o(e.type,`options`)&&(c.options=a),c}function createCurrencyValidator(e,t=p){let n=e.allowNegative?c.number():c.number().min(0);return c.object({code:c.string().length(3),value:n},{message:t.invalidCurrency(e)})}function createLocationValidator(e,t=p){return c.object({address:c.string().optional(),address2:c.string().optional(),city:c.string().optional(),state:c.string().optional(),postalCode:c.string().optional(),country:c.string().length(3).optional(),latitude:c.number().min(-90).max(90).optional(),longitude:c.number().min(-180).max(180).optional()},{message:t.invalidLocation(e)})}function digitsOnly(e){return e.replace(/\D/g,``)}function normalizeCountrylessPhoneNumber(e){return digitsOnly(e)}function getIso2(e){return l(e)?.iso2}function normalizePhoneNumber(e,t){if(!e)return``;let n=getIso2(t);if(!n)return digitsOnly(e);let r=u(e,n);if(r)return absorbDoubledCallingCode(r.nationalNumber,r.isValid(),t,n);let i=l(t),a=digitsOnly(e);if(i){let e=i.phoneCode.replace(`+`,``),t=a.startsWith(e)?a.slice(e.length):a;return te(t,i.phoneTrunkPrefix??``)}return a}function absorbDoubledCallingCode(e,t,n,r){if(t)return e;let i=l(n)?.phoneCode.replace(`+`,``);if(i===void 0||!e.startsWith(i))return e;let a=e.slice(i.length),o=u(`+${i}${a}`,r);return o?.isValid()?o.nationalNumber:e}function formatPhoneForDisplay(e){if(!e.phoneNumber)return``;let t=getIso2(e.countryCode),n=l(e.countryCode)?.phoneCode??``;if(!t)return`${n} ${e.phoneNumber}`.trim();let r=`${n}${digitsOnly(e.phoneNumber)}`,i=u(r);return i?i.formatInternational():`${n} ${e.phoneNumber}`.trim()}function createPhoneValidator(e,t=p){return c.object({countryCode:c.string().length(3),phoneNumber:c.string().min(1,{message:t.required(e)})},{message:t.invalidPhone(e)}).refine(e=>ee(e.countryCode),{message:`Invalid country code`}).transform(e=>({countryCode:e.countryCode,phoneNumber:normalizePhoneNumber(e.phoneNumber,e.countryCode)}))}function extractRelationId(e){return typeof e==`object`&&e&&`id`in e?e.id:e}function createSingleRelationValidator(e,t=p){let n=c.guid({message:t.invalidId(e)}),r=c.union([n,c.null()]);return c.union([r,c.object({id:n,props:c.record(c.string(),c.unknown()).optional()}).passthrough()])}function createMultiRelationValidator(e,t=p){let n=c.guid({message:t.invalidId(e)}),r=c.union([n,c.object({id:n,props:c.record(c.string(),c.unknown()).optional()}).passthrough()]),i=c.array(r);return e.maxItems!==void 0&&(i=i.max(e.maxItems,t.maxItems(e,e.maxItems))),i.refine(e=>e.every(e=>{let t=extractRelationId(e);return typeof t==`string`&&n.safeParse(t).success}),{message:t.invalidId(e)})}function createRelationValidator(e,t=p){return e.cardinality===`many`?createMultiRelationValidator(e,t):createSingleRelationValidator(e,t)}function createRichtextValidator(e,t=p){return c.string({message:t.invalidRichtext(e)})}function describeOptions(e){return e.map(e=>e.label===e.value?e.value:`${e.value} (${e.label})`)}function createSelectValidator(e,t=p){let n=e.options.map(e=>e.value);return n.length===0?c.never():c.enum(n,{message:t.invalidOption(e,describeOptions(e.options))})}function createMultiselectValidator(e,t=p){let n=e.options.map(e=>e.value);return n.length===0?c.never():c.array(c.enum(n,{message:t.invalidOption(e,describeOptions(e.options))}))}function createStatusValidator(e,t=p){let n=e.options.map(e=>e.value);return n.length===0?c.never():c.enum(n,{message:t.invalidOption(e,describeOptions(e.options))})}function createUserValidator(e,t=p){let n=c.guid({message:t.invalidId(e)});return e.multiple?c.array(n):n}function createFormulaValidator(e,t=p){return c.unknown()}function createRollupValidator(e,t=p){return c.unknown()}function createAttributeValidator(e,t=p){switch(e.type){case`text`:return createTextValidator(e,t);case`richtext`:return createRichtextValidator(e,t);case`number`:return createNumberValidator(e,t);case`checkbox`:return createCheckboxValidator(e,t);case`date`:return createDateValidator(e,t);case`phone`:return createPhoneValidator(e,t);case`currency`:return createCurrencyValidator(e,t);case`status`:return createStatusValidator(e,t);case`location`:return createLocationValidator(e,t);case`select`:return createSelectValidator(e,t);case`multiselect`:return createMultiselectValidator(e,t);case`user`:return createUserValidator(e,t);case`relation`:return createRelationValidator(e,t);case`formula`:return createFormulaValidator(e,t);case`rollup`:return createRollupValidator(e,t);default:return c.unknown()}}function createFormAttributeValidator(e,t=p){let n=createAttributeValidator(e,t);return e.required?n:withEmptyToNull(n,m[e.type])}const Q=/* @__PURE__ */ new WeakMap,$=/* @__PURE__ */ new WeakMap;function createObjectValidator(e){let t=Q.get(e);if(t)return t;let n={};for(let t of e.attributes){let e=createAttributeValidator(t);t.required?n[t.name]=e.refine(isValuePresent,{message:p.required(t)}):n[t.name]=withEmptyToNull(e,m[t.type])}let r=c.object(n).passthrough();return Q.set(e,r),r}function createDraftValidator(e){let t=$.get(e);if(t)return t;let n={};for(let t of e.attributes){let e=createAttributeValidator(t);n[t.name]=withEmptyToNull(e,m[t.type])}let r=c.object(n).passthrough();return $.set(e,r),r}function validateAttribute(e,t){let n=createAttributeValidator(e);if(!e.required&&t==null)return{success:!0,data:{[e.name]:t}};let r=n.safeParse(t);return r.success?{success:!0,data:{[e.name]:r.data}}:{success:!1,errors:formatZodErrors(r.error).map(t=>({path:[e.name,...t.path],message:t.message}))}}function validateObject(e,t){let n=createObjectValidator(e).safeParse(t);return n.success?{success:!0,data:n.data}:{success:!1,errors:formatZodErrors(n.error)}}function validateObjectOrThrow(e,t){let n=validateObject(e,t);if(!n.success){let t=n.errors??[],r=t.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`
3
+ `)||`Unknown validation error`;throw new s(`Validation failed for ${e.label}:\n${r}`,t.map(e=>({path:e.path,message:e.message})))}return n.data}function validateDraft(e,t){let n=createDraftValidator(e).safeParse(t);return n.success?{success:!0,data:n.data}:{success:!1,errors:formatZodErrors(n.error)}}function validateDraftOrThrow(e,t){let n=validateDraft(e,t);if(!n.success){let t=n.errors??[],r=t.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`
4
+ `)||`Unknown validation error`;throw new s(`Draft validation failed for ${e.label}:\n${r}`,t.map(e=>({path:e.path,message:e.message})))}return n.data}function rejectUnknownAttributesOrThrow(e,t){let n=new Set(e.attributes.map(e=>e.name)),r=Object.keys(t).filter(e=>!n.has(e));if(r.length>0)throw new s(`Unknown attribute${r.length>1?`s`:``} for ${e.label}: ${r.join(`, `)}`,r.map(e=>({path:[e],message:`Unknown attribute`})))}export{Z as ATTRIBUTE_DESCRIPTION_TOO_LONG,d as COMPUTED_RETURN_TYPES,p as DEFAULT_VALIDATION_MESSAGES,U as SIMPLE_PROPERTY_TYPES,f as TEXT_FORMAT_PATTERNS,re as WIRE_OFFERED_BASE_CONFIG,g as WIRE_OMITTED_CONFIG_KEYS,X as attributeConfigSchemas,createAttributeValidator,createFormAttributeValidator,createObjectValidator,datePrecisionIssues,formatPhoneForDisplay,formatZodErrors,getAttributeConfigSchema,getAttributeConfigWriteSchema,getIso2,isEmptyValue,isNullishOrEmptyString,isValuePresent,normalizeCountrylessPhoneNumber,normalizePhoneNumber,parseAttributeConfig,parseAttributeConfigForCreate,parseAttributeConfigForUpdate,K as propertyAttributeSchema,J as propertyAttributeWireSchema,q as propertySchemaSchema,de as propertySchemaWireSchema,refuseForeignKeys,rejectUnknownAttributesOrThrow,resolveTextPattern,b as selectOptionWriteSchema,y as statusGroupSchema,x as statusOptionWriteSchema,validateAttribute,validateDraft,validateDraftOrThrow,validateObject,validateObjectOrThrow,wireHiddenTypeConfigMask,wireOmittedConfigKeysFor,withoutUnknownOptionKeys};
@@ -1,7 +1,7 @@
1
1
 
2
- import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../record-query-BiyWXSWA.mjs";
3
- import { TenantId } from "../utils-BZMgedee.mjs";
4
- import { ValidationError, ValidationErrorDetail } from "../exceptions-zQlC2r1F.mjs";
2
+ import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../record-query-BMeq7JRi.mjs";
3
+ import { TenantId } from "../utils-DPto28bh.mjs";
4
+ import { ValidationError, ValidationErrorDetail } from "../exceptions-BjtmXIip.mjs";
5
5
  import * as z$2 from "zod";
6
6
  /**
7
7
  * A timestamp on the wire: an ISO 8601 string (`Date#toISOString()`, UTC),
@@ -1241,8 +1241,6 @@ export declare const updateTenantSettingsBody: z$2.ZodObject<{
1241
1241
  none: "none";
1242
1242
  }>>>;
1243
1243
  meetingBotDisplayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1244
- memoryPersonMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1245
- memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1246
1244
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1247
1245
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1248
1246
  runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
@@ -1262,8 +1260,6 @@ export declare const tenantSettingsOperations: {
1262
1260
  none: "none";
1263
1261
  }>;
1264
1262
  meetingBotDisplayName: z$2.ZodString;
1265
- memoryPersonMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1266
- memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1267
1263
  findImages: z$2.ZodBoolean;
1268
1264
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1269
1265
  runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
@@ -1284,8 +1280,6 @@ export declare const tenantSettingsOperations: {
1284
1280
  none: "none";
1285
1281
  }>>>;
1286
1282
  meetingBotDisplayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1287
- memoryPersonMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1288
- memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1289
1283
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1290
1284
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1291
1285
  runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
@@ -1297,8 +1291,6 @@ export declare const tenantSettingsOperations: {
1297
1291
  none: "none";
1298
1292
  }>;
1299
1293
  meetingBotDisplayName: z$2.ZodString;
1300
- memoryPersonMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1301
- memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1302
1294
  findImages: z$2.ZodBoolean;
1303
1295
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1304
1296
  runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
@@ -1321,8 +1313,6 @@ export declare const tenantSettingsOperations: {
1321
1313
  none: "none";
1322
1314
  }>;
1323
1315
  meetingBotDisplayName: z$2.ZodString;
1324
- memoryPersonMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1325
- memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1326
1316
  findImages: z$2.ZodBoolean;
1327
1317
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1328
1318
  runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
@@ -1349,8 +1339,6 @@ export declare const tenantSettingsOperations: {
1349
1339
  none: "none";
1350
1340
  }>;
1351
1341
  meetingBotDisplayName: z$2.ZodString;
1352
- memoryPersonMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1353
- memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1354
1342
  findImages: z$2.ZodBoolean;
1355
1343
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1356
1344
  runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
@@ -9228,21 +9216,12 @@ export declare const pagesOperations: {
9228
9216
  }>;
9229
9217
  ownedBy: z$2.ZodNullable<z$2.ZodString>;
9230
9218
  revision: z$2.ZodNumber;
9231
- grid: z$2.ZodRecord<z$2.ZodString, z$2.ZodObject<{
9232
- x: z$2.ZodNumber;
9233
- y: z$2.ZodNumber;
9234
- w: z$2.ZodNumber;
9235
- h: z$2.ZodNumber;
9236
- }, z$2.core.$strip>>;
9237
9219
  blocks: z$2.ZodArray<z$2.ZodType<ViewContentDefinition, ViewContentDefinition, z$2.core.$ZodTypeInternals<ViewContentDefinition, ViewContentDefinition>>>;
9238
9220
  hidden: z$2.ZodArray<z$2.ZodObject<{
9239
9221
  name: z$2.ZodString;
9240
- grid: z$2.ZodObject<{
9241
- x: z$2.ZodNumber;
9242
- y: z$2.ZodNumber;
9243
- w: z$2.ZodNumber;
9244
- h: z$2.ZodNumber;
9245
- }, z$2.core.$strip>;
9222
+ width: z$2.ZodLiteral<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
9223
+ joined: z$2.ZodOptional<z$2.ZodBoolean>;
9224
+ after: z$2.ZodNullable<z$2.ZodString>;
9246
9225
  }, z$2.core.$strip>>;
9247
9226
  }, z$2.core.$strip>;
9248
9227
  readonly permission: readonly ["pages", "read"];
@@ -11520,33 +11499,6 @@ export declare const embeddingsAdminOperations: {
11520
11499
  readonly throttle: "skip";
11521
11500
  }>;
11522
11501
  };
11523
- /**
11524
- * The admin lever for agent memory maintenance (collaborative memory spec,
11525
- * "Backfill"): the runtime's `memories.backfill` task. Gated like the search
11526
- * levers; mounted only on a host with agents, and 503
11527
- * `CONFIGURATION_REQUIRED` without the Dreamer.
11528
- */
11529
- export declare const memoryAdminOperations: {
11530
- /**
11531
- * Queue the tenant's 30-day memory backfill. A second call while one is
11532
- * queued or running is harmless (each source's row is enqueued once, a
11533
- * rerun resumes where the budget stopped).
11534
- */
11535
- backfill: Operation<{
11536
- readonly name: "memoryAdmin.backfill";
11537
- readonly method: "POST";
11538
- readonly path: "/admin/memory/backfill";
11539
- readonly input: z$2.ZodObject<{
11540
- tenantId: z$2.ZodString;
11541
- }, z$2.core.$strict>;
11542
- readonly output: z$2.ZodObject<{
11543
- success: z$2.ZodLiteral<true>;
11544
- }, z$2.core.$strip>;
11545
- readonly permission: readonly ["settings", "update"];
11546
- readonly status: 202;
11547
- readonly throttle: "skip";
11548
- }>;
11549
- };
11550
11502
  /**
11551
11503
  * `POST /admin/search/email-reindex`. `afterId` and `rebuild` are read as the
11552
11504
  * controller read them: only `rebuild === true` rebuilds, and any `afterId`
@@ -15603,12 +15555,14 @@ export declare const agentDefinitionsOperations: {
15603
15555
  file: "file";
15604
15556
  guide: "guide";
15605
15557
  memory: "memory";
15558
+ page: "page";
15606
15559
  record: "record";
15607
15560
  schema: "schema";
15608
15561
  session: "session";
15609
15562
  skill: "skill";
15610
15563
  thread: "thread";
15611
15564
  user: "user";
15565
+ view: "view";
15612
15566
  wake: "wake";
15613
15567
  }>>;
15614
15568
  capabilities: z$2.ZodArray<z$2.ZodEnum<{
@@ -15684,12 +15638,14 @@ export declare const agentDefinitionsOperations: {
15684
15638
  file: "file";
15685
15639
  guide: "guide";
15686
15640
  memory: "memory";
15641
+ page: "page";
15687
15642
  record: "record";
15688
15643
  schema: "schema";
15689
15644
  session: "session";
15690
15645
  skill: "skill";
15691
15646
  thread: "thread";
15692
15647
  user: "user";
15648
+ view: "view";
15693
15649
  wake: "wake";
15694
15650
  }>>;
15695
15651
  capabilities: z$2.ZodArray<z$2.ZodEnum<{
@@ -16973,6 +16929,12 @@ export declare const listRunsQuery: z$2.ZodObject<{
16973
16929
  limit: z$2.ZodOptional<z$2.ZodCoercedNumber<unknown>>;
16974
16930
  offset: z$2.ZodOptional<z$2.ZodCoercedNumber<unknown>>;
16975
16931
  }, z$2.core.$strip>;
16932
+ /**
16933
+ * `details.reason` of the `STATE_GATE` a launch of a memory routine answers
16934
+ * when its pass does not start: one is still running, or nothing is new since
16935
+ * the last.
16936
+ */
16937
+ export declare const MEMORY_PASS_DECLINED = "memory_pass_declined";
16976
16938
  /**
16977
16939
  * Agent runs: launching one is a use of its definition, reading them follows
16978
16940
  * the definition's visibility (a private definition's run content is its
@@ -23949,25 +23911,33 @@ export type SearchQueryBody = z$2.infer<typeof SearchQueryDto>;
23949
23911
  /**
23950
23912
  * Body for `POST /records/:objectName/aggregate` (#5521).
23951
23913
  *
23952
- * The query that selects the records, the measure and its groupings, and the
23953
- * reader's own filters, judged where the list judges them (`validateFilters`
23954
- * and the dynamic-token check, then the record service, which also resolves
23955
- * the attributes, groupings, comparison and timezone). Strict: a key the
23914
+ * The query that selects the records, the measure and its groupings (or up
23915
+ * to four series over one date bucket), and the reader's own filters, judged
23916
+ * where the list judges them (`validateFilters` and the dynamic-token check,
23917
+ * then the record service, which also resolves the attributes, groupings,
23918
+ * comparison, series and timezone). Strict: a key the
23956
23919
  * aggregate does not read, `q` above all, is refused rather than silently
23957
23920
  * dropped from the predicate.
23958
23921
  */
23959
23922
  export declare const AggregateRecordsDto: z$2.ZodObject<{
23960
23923
  query: z$2.ZodCustom<RecordQueryDefinition<CollectionContentSource>, RecordQueryDefinition<CollectionContentSource>>;
23961
- measure: z$2.ZodEnum<{
23924
+ measure: z$2.ZodOptional<z$2.ZodEnum<{
23962
23925
  avg: "avg";
23963
23926
  count: "count";
23964
- cumulative: "cumulative";
23965
23927
  max: "max";
23966
23928
  min: "min";
23967
23929
  sum: "sum";
23968
- }>;
23930
+ }>>;
23969
23931
  attribute: z$2.ZodOptional<z$2.ZodString>;
23970
- groupBy: z$2.ZodOptional<z$2.ZodType<AggregateGroupByInput, AggregateGroupByInput, z$2.core.$ZodTypeInternals<AggregateGroupByInput, AggregateGroupByInput>>>;
23932
+ groupBy: z$2.ZodOptional<z$2.ZodType<{
23933
+ bucket: string;
23934
+ } | AggregateGroupByInput, {
23935
+ bucket: string;
23936
+ } | AggregateGroupByInput, z$2.core.$ZodTypeInternals<{
23937
+ bucket: string;
23938
+ } | AggregateGroupByInput, {
23939
+ bucket: string;
23940
+ } | AggregateGroupByInput>>>;
23971
23941
  groupBy2: z$2.ZodOptional<z$2.ZodType<AggregateGroupByInput, AggregateGroupByInput, z$2.core.$ZodTypeInternals<AggregateGroupByInput, AggregateGroupByInput>>>;
23972
23942
  compare: z$2.ZodOptional<z$2.ZodType<{
23973
23943
  attribute: string;
@@ -23982,6 +23952,28 @@ export declare const AggregateRecordsDto: z$2.ZodObject<{
23982
23952
  attribute: string;
23983
23953
  period: string;
23984
23954
  }>>>;
23955
+ passages: z$2.ZodOptional<z$2.ZodObject<{
23956
+ field: z$2.ZodString;
23957
+ to: z$2.ZodArray<z$2.ZodString>;
23958
+ }, z$2.core.$strict>>;
23959
+ series: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
23960
+ name: z$2.ZodString;
23961
+ measure: z$2.ZodEnum<{
23962
+ avg: "avg";
23963
+ count: "count";
23964
+ max: "max";
23965
+ min: "min";
23966
+ sum: "sum";
23967
+ }>;
23968
+ attribute: z$2.ZodOptional<z$2.ZodString>;
23969
+ date: z$2.ZodOptional<z$2.ZodString>;
23970
+ passages: z$2.ZodOptional<z$2.ZodObject<{
23971
+ field: z$2.ZodString;
23972
+ to: z$2.ZodArray<z$2.ZodString>;
23973
+ }, z$2.core.$strict>>;
23974
+ filters: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
23975
+ }, z$2.core.$strict>>>;
23976
+ cumulate: z$2.ZodOptional<z$2.ZodBoolean>;
23985
23977
  userFilters: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
23986
23978
  timezone: z$2.ZodOptional<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
23987
23979
  hostRecordId: z$2.ZodOptional<z$2.ZodString>;
@@ -24480,16 +24472,23 @@ export declare const recordsOperations: {
24480
24472
  readonly input: z$2.ZodObject<{
24481
24473
  headerTimezone: z$2.ZodOptional<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
24482
24474
  query: z$2.ZodCustom<RecordQueryDefinition<CollectionContentSource>, RecordQueryDefinition<CollectionContentSource>>;
24483
- measure: z$2.ZodEnum<{
24475
+ measure: z$2.ZodOptional<z$2.ZodEnum<{
24484
24476
  avg: "avg";
24485
24477
  count: "count";
24486
- cumulative: "cumulative";
24487
24478
  max: "max";
24488
24479
  min: "min";
24489
24480
  sum: "sum";
24490
- }>;
24481
+ }>>;
24491
24482
  attribute: z$2.ZodOptional<z$2.ZodString>;
24492
- groupBy: z$2.ZodOptional<z$2.ZodType<AggregateGroupByInput, AggregateGroupByInput, z$2.core.$ZodTypeInternals<AggregateGroupByInput, AggregateGroupByInput>>>;
24483
+ groupBy: z$2.ZodOptional<z$2.ZodType<{
24484
+ bucket: string;
24485
+ } | AggregateGroupByInput, {
24486
+ bucket: string;
24487
+ } | AggregateGroupByInput, z$2.core.$ZodTypeInternals<{
24488
+ bucket: string;
24489
+ } | AggregateGroupByInput, {
24490
+ bucket: string;
24491
+ } | AggregateGroupByInput>>>;
24493
24492
  groupBy2: z$2.ZodOptional<z$2.ZodType<AggregateGroupByInput, AggregateGroupByInput, z$2.core.$ZodTypeInternals<AggregateGroupByInput, AggregateGroupByInput>>>;
24494
24493
  compare: z$2.ZodOptional<z$2.ZodType<{
24495
24494
  attribute: string;
@@ -24504,6 +24503,28 @@ export declare const recordsOperations: {
24504
24503
  attribute: string;
24505
24504
  period: string;
24506
24505
  }>>>;
24506
+ passages: z$2.ZodOptional<z$2.ZodObject<{
24507
+ field: z$2.ZodString;
24508
+ to: z$2.ZodArray<z$2.ZodString>;
24509
+ }, z$2.core.$strict>>;
24510
+ series: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
24511
+ name: z$2.ZodString;
24512
+ measure: z$2.ZodEnum<{
24513
+ avg: "avg";
24514
+ count: "count";
24515
+ max: "max";
24516
+ min: "min";
24517
+ sum: "sum";
24518
+ }>;
24519
+ attribute: z$2.ZodOptional<z$2.ZodString>;
24520
+ date: z$2.ZodOptional<z$2.ZodString>;
24521
+ passages: z$2.ZodOptional<z$2.ZodObject<{
24522
+ field: z$2.ZodString;
24523
+ to: z$2.ZodArray<z$2.ZodString>;
24524
+ }, z$2.core.$strict>>;
24525
+ filters: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
24526
+ }, z$2.core.$strict>>>;
24527
+ cumulate: z$2.ZodOptional<z$2.ZodBoolean>;
24507
24528
  userFilters: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
24508
24529
  timezone: z$2.ZodOptional<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
24509
24530
  hostRecordId: z$2.ZodOptional<z$2.ZodString>;
@@ -24541,6 +24562,18 @@ export declare const recordsOperations: {
24541
24562
  }>>;
24542
24563
  currency: z$2.ZodOptional<z$2.ZodString>;
24543
24564
  previous: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
24565
+ series: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodObject<{
24566
+ groups: z$2.ZodArray<z$2.ZodObject<{
24567
+ key: z$2.ZodNullable<z$2.ZodString>;
24568
+ key2: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
24569
+ value: z$2.ZodNullable<z$2.ZodNumber>;
24570
+ byCurrency: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
24571
+ currency: z$2.ZodString;
24572
+ value: z$2.ZodNumber;
24573
+ }, z$2.core.$strip>>>;
24574
+ }, z$2.core.$strip>>;
24575
+ currency: z$2.ZodNullable<z$2.ZodString>;
24576
+ }, z$2.core.$strip>>>;
24544
24577
  }, z$2.core.$strip>;
24545
24578
  readonly status: 200;
24546
24579
  readonly headers: {
@@ -24757,7 +24790,11 @@ export declare const recordsOperations: {
24757
24790
  readonly DUPLICATE_OBJECT: "SCHEMA_DUPLICATE_OBJECT";
24758
24791
  readonly DUPLICATE_ATTRIBUTE: "SCHEMA_DUPLICATE_ATTRIBUTE";
24759
24792
  readonly MEMORY_PAGE_EXISTS: "SCHEMA_MEMORY_PAGE_EXISTS";
24760
- readonly MEMORY_PROPOSAL_RATE_LIMITED: "SCHEMA_MEMORY_PROPOSAL_RATE_LIMITED";
24793
+ readonly MEMORY_LINE_CAP: "SCHEMA_MEMORY_LINE_CAP";
24794
+ readonly MEMORY_UNTRUSTED: "SCHEMA_MEMORY_UNTRUSTED";
24795
+ readonly MEMORY_SCOPE: "SCHEMA_MEMORY_SCOPE";
24796
+ readonly MEMORY_RATE_LIMITED: "SCHEMA_MEMORY_RATE_LIMITED";
24797
+ readonly MEMORY_WRITER: "SCHEMA_MEMORY_WRITER";
24761
24798
  readonly CONFLICT: "SCHEMA_CONFLICT";
24762
24799
  readonly OPERATION_ABANDONED: "SCHEMA_OPERATION_ABANDONED";
24763
24800
  readonly STORAGE_UPLOAD_FAILED: "SCHEMA_STORAGE_UPLOAD_FAILED";
@@ -25154,7 +25191,11 @@ export declare const recordsOperations: {
25154
25191
  readonly DUPLICATE_OBJECT: "SCHEMA_DUPLICATE_OBJECT";
25155
25192
  readonly DUPLICATE_ATTRIBUTE: "SCHEMA_DUPLICATE_ATTRIBUTE";
25156
25193
  readonly MEMORY_PAGE_EXISTS: "SCHEMA_MEMORY_PAGE_EXISTS";
25157
- readonly MEMORY_PROPOSAL_RATE_LIMITED: "SCHEMA_MEMORY_PROPOSAL_RATE_LIMITED";
25194
+ readonly MEMORY_LINE_CAP: "SCHEMA_MEMORY_LINE_CAP";
25195
+ readonly MEMORY_UNTRUSTED: "SCHEMA_MEMORY_UNTRUSTED";
25196
+ readonly MEMORY_SCOPE: "SCHEMA_MEMORY_SCOPE";
25197
+ readonly MEMORY_RATE_LIMITED: "SCHEMA_MEMORY_RATE_LIMITED";
25198
+ readonly MEMORY_WRITER: "SCHEMA_MEMORY_WRITER";
25158
25199
  readonly CONFLICT: "SCHEMA_CONFLICT";
25159
25200
  readonly OPERATION_ABANDONED: "SCHEMA_OPERATION_ABANDONED";
25160
25201
  readonly STORAGE_UPLOAD_FAILED: "SCHEMA_STORAGE_UPLOAD_FAILED";
@@ -27032,6 +27073,6 @@ export declare const dictationOperations: {
27032
27073
  }>;
27033
27074
  };
27034
27075
  declare namespace app_operation_groups_d_exports {
27035
- export { actorsOperations, agentAccessOperations, agentApprovalsOperations, agentDefinitionsOperations, agentEnvVarsOperations, agentFrontsOperations, agentMemoryOperations, agentMessagesOperations, agentRolesOperations, agentRunsOperations, agentSessionAccessOperations, agentSessionsOperations, agentTriggersOperations, agentVariablesOperations, aiOperations, apiKeysOperations, artifactsOperations, auditOperations, browserProfilesOperations, bundlesOperations, chatVariablesOperations, cliLoginOperations, cloudBrowsersOperations, connectedAppsOperations, connectorsOperations, decisionsOperations, deviceAccessOperations, deviceEnrollmentTokensOperations, devicesOperations, dictationOperations, documentsOperations, emailCategoriesOperations, emailClassificationOperations, emailsOperations, embeddingsAdminOperations, envVarUsageOperations, envVarsOperations, environmentEnvVarsOperations, environmentVariablesOperations, environmentsOperations, filesOperations, foldersOperations, formsOperations, geocodingOperations, linksOperations, logosOperations, machinesOperations, mailDraftsOperations, mailSignaturesOperations, mcpServersOperations, meetingsAdminOperations, meetingsOperations, memoryAdminOperations, modelsOperations, newsOperations, oauthOperations, pageAccessOperations, pagesOperations, permissionsOperations, privateEnvVarsOperations, quotasOperations, recentActivityOperations, recordAccessOperations, recordMemoryOperations, recordOperationsOperations, recordsOperations, relationsOperations, schemaDraftOperations, schemaGroupsOperations, schemaObjectsOperations, schemaStateOperations, screensOperations, searchAdminOperations, searchOperations, skillCatalogOperations, skillsOperations, tenantInvitationsOperations, tenantSettingsOperations, usersOperations, viewsOperations, workspaceLoginsOperations };
27076
+ export { actorsOperations, agentAccessOperations, agentApprovalsOperations, agentDefinitionsOperations, agentEnvVarsOperations, agentFrontsOperations, agentMemoryOperations, agentMessagesOperations, agentRolesOperations, agentRunsOperations, agentSessionAccessOperations, agentSessionsOperations, agentTriggersOperations, agentVariablesOperations, aiOperations, apiKeysOperations, artifactsOperations, auditOperations, browserProfilesOperations, bundlesOperations, chatVariablesOperations, cliLoginOperations, cloudBrowsersOperations, connectedAppsOperations, connectorsOperations, decisionsOperations, deviceAccessOperations, deviceEnrollmentTokensOperations, devicesOperations, dictationOperations, documentsOperations, emailCategoriesOperations, emailClassificationOperations, emailsOperations, embeddingsAdminOperations, envVarUsageOperations, envVarsOperations, environmentEnvVarsOperations, environmentVariablesOperations, environmentsOperations, filesOperations, foldersOperations, formsOperations, geocodingOperations, linksOperations, logosOperations, machinesOperations, mailDraftsOperations, mailSignaturesOperations, mcpServersOperations, meetingsAdminOperations, meetingsOperations, modelsOperations, newsOperations, oauthOperations, pageAccessOperations, pagesOperations, permissionsOperations, privateEnvVarsOperations, quotasOperations, recentActivityOperations, recordAccessOperations, recordMemoryOperations, recordOperationsOperations, recordsOperations, relationsOperations, schemaDraftOperations, schemaGroupsOperations, schemaObjectsOperations, schemaStateOperations, screensOperations, searchAdminOperations, searchOperations, skillCatalogOperations, skillsOperations, tenantInvitationsOperations, tenantSettingsOperations, usersOperations, viewsOperations, workspaceLoginsOperations };
27036
27077
  }
27037
27078
  export { BinaryResponse, DownloadedFile, HttpMethod, MEETINGS_MAX_ONLY_CONNECTIONS, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PathParams, UploadedPart, app_operation_groups_d_exports as appOperationGroups, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, recordMeetingsBody, type };