@stndrds/schema 1.0.0-alpha.350 → 1.0.0-alpha.351
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{all-Dk8PLu1y.d.mts → all-CxrR3FfQ.d.mts} +8 -8
- package/dist/{all-CPMOHYla.d.ts → all-DgCMEIjc.d.ts} +8 -8
- package/dist/{attributes-mMmH-WOx.d.mts → attributes-BrWmES5w.d.mts} +1 -1
- package/dist/{attributes-C2gm0hUJ.d.ts → attributes-DF899HOt.d.ts} +1 -1
- package/dist/{checkbox-DO6Mkloc.d.mts → checkbox-Clb_FZ4C.d.mts} +2 -2
- package/dist/{checkbox-Ce8gAyQf.d.ts → checkbox-DdyYfy8E.d.ts} +2 -2
- package/dist/config-CYuFravl.js +13 -0
- package/dist/config-CiAtjzem.mjs +13 -0
- package/dist/{date-CMS-GYRM.d.mts → date-CXp1zJM4.d.mts} +2 -2
- package/dist/{date-DikDGfre.d.ts → date-DhwNqFU4.d.ts} +2 -2
- package/dist/empty-BgAwlO54.mjs +2 -0
- package/dist/empty-CRCKZcwK.js +2 -0
- package/dist/{exceptions-DxzT8POW.d.ts → exceptions-DrrzAhuA.d.mts} +46 -10
- package/dist/{exceptions-DxzT8POW.d.mts → exceptions-DrrzAhuA.d.ts} +46 -10
- package/dist/exceptions.d.mts +2 -2
- package/dist/exceptions.d.ts +2 -2
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-CRtiKFTH.d.ts → index-BOibflWy.d.ts} +15 -2
- package/dist/{index-D26ob_vF.d.mts → index-Bfvc4AZB.d.mts} +15 -2
- package/dist/{index-D9OhYX-t.d.ts → index-DCw-X_sc.d.ts} +3 -3
- package/dist/{index-BV4yNsr7.d.mts → index-DggAjGTr.d.mts} +1 -1
- package/dist/{index-B-mUjnh9.d.mts → index-Lp5dhlhc.d.mts} +3 -3
- package/dist/{index-BL7EA39F.d.ts → index-OvRk1isl.d.ts} +1 -1
- package/dist/index.d.mts +184 -31
- package/dist/index.d.ts +184 -31
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/{number-r6bOZ9jd.d.mts → number-C_ZN3qJO.d.mts} +2 -2
- package/dist/{number-Ck0PPSkK.d.ts → number-CoTBX03I.d.ts} +2 -2
- package/dist/object-AqI3n2CP.mjs +4 -0
- package/dist/object-BEwZx-Fu.js +4 -0
- package/dist/{text-B1Vwj7fS.d.mts → text-D_rs4VYZ.d.mts} +2 -2
- package/dist/{text-DHg2cmFd.d.ts → text-Z8QjbxUx.d.ts} +2 -2
- package/dist/{utils-r53z9KnF.d.mts → utils-Cl3b_6d8.d.mts} +1 -1
- package/dist/{utils-Du-He6Ct.d.ts → utils-Cuz_wSKI.d.ts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +5 -5
- package/dist/validation/all.d.ts +5 -5
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +2 -2
- package/dist/validation/config/index.d.ts +2 -2
- package/dist/validation/config/index.js +1 -1
- package/dist/validation/config/index.mjs +1 -1
- package/dist/validation/core/index.d.mts +1 -1
- package/dist/validation/core/index.d.ts +1 -1
- package/dist/validation/object/index.d.mts +1 -1
- package/dist/validation/object/index.d.ts +1 -1
- package/dist/validation/object/index.js +1 -1
- package/dist/validation/object/index.mjs +1 -1
- package/dist/validation/primitives/checkbox.d.mts +1 -1
- package/dist/validation/primitives/checkbox.d.ts +1 -1
- package/dist/validation/primitives/date.d.mts +1 -1
- package/dist/validation/primitives/date.d.ts +1 -1
- package/dist/validation/primitives/number.d.mts +1 -1
- package/dist/validation/primitives/number.d.ts +1 -1
- package/dist/validation/primitives/text.d.mts +1 -1
- package/dist/validation/primitives/text.d.ts +1 -1
- package/dist/{view-config.schema-c8LvH8WE.mjs → view-config.schema-CCrM5b-O.mjs} +1 -1
- package/dist/{view-config.schema-QmnihdGp.js → view-config.schema-CgU86fLj.js} +1 -1
- package/package.json +2 -2
- package/dist/config-BiQGgy7f.mjs +0 -13
- package/dist/config-WUWITOeW.js +0 -13
- package/dist/object-BA3vKFl0.js +0 -4
- package/dist/object-C92B0Oei.mjs +0 -4
package/dist/exceptions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
const e={DRAFT_REVISION_CONFLICT:`DRAFT_REVISION_CONFLICT`,UNKNOWN:`SCHEMA_UNKNOWN_ERROR`,OBJECT_NOT_FOUND:`SCHEMA_OBJECT_NOT_FOUND`,ATTRIBUTE_NOT_FOUND:`SCHEMA_ATTRIBUTE_NOT_FOUND`,RECORD_NOT_FOUND:`SCHEMA_RECORD_NOT_FOUND`,SOURCE_NOT_FOUND:`SCHEMA_SOURCE_NOT_FOUND`,ROLE_NOT_FOUND:`SCHEMA_ROLE_NOT_FOUND`,MEMORY_NOT_FOUND:`SCHEMA_MEMORY_NOT_FOUND`,SCHEMA_PLAN_NOT_FOUND:`SCHEMA_PLAN_NOT_FOUND`,VALIDATION_FAILED:`SCHEMA_VALIDATION_FAILED`,INVALID_ATTRIBUTE_NAME:`SCHEMA_INVALID_ATTRIBUTE_NAME`,INVALID_OBJECT_NAME:`SCHEMA_INVALID_OBJECT_NAME`,RESERVED_OBJECT_NAME:`SCHEMA_RESERVED_OBJECT_NAME`,PROTECTED_OBJECT:`SCHEMA_PROTECTED_OBJECT`,PROTECTED_ATTRIBUTE:`SCHEMA_PROTECTED_ATTRIBUTE`,PROTECTED_VIEW:`SCHEMA_PROTECTED_VIEW`,PROTECTED_ROLE:`SCHEMA_PROTECTED_ROLE`,FORBIDDEN:`SCHEMA_FORBIDDEN`,ACCESS_DENIED:`SCHEMA_ACCESS_DENIED`,WORKSPACE_INVARIANT:`SCHEMA_WORKSPACE_INVARIANT`,STATE_GATE:`SCHEMA_STATE_GATE`,ACTOR_CONTEXT_REQUIRED:`SCHEMA_ACTOR_CONTEXT_REQUIRED`,CONNECTOR_AUTH_FAILED:`SCHEMA_CONNECTOR_AUTH_FAILED`,CONNECTOR_INVALID_STATE:`SCHEMA_CONNECTOR_INVALID_STATE`,CONNECTOR_GRANT_ORPHANED:`SCHEMA_CONNECTOR_GRANT_ORPHANED`,SYNC_FAILED:`SCHEMA_SYNC_FAILED`,SYNC_CONFLICT:`SCHEMA_SYNC_CONFLICT`,SYNC_CASCADE:`SCHEMA_SYNC_CASCADE`,ORPHAN_SYSTEM_ATTRIBUTE:`SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE`,SYSTEM_ENTITY_IMMUTABLE:`SCHEMA_SYSTEM_ENTITY_IMMUTABLE`,AMBIGUOUS_CHANGE:`SCHEMA_AMBIGUOUS_CHANGE`,DUPLICATE:`SCHEMA_DUPLICATE`,DUPLICATE_OBJECT:`SCHEMA_DUPLICATE_OBJECT`,DUPLICATE_ATTRIBUTE:`SCHEMA_DUPLICATE_ATTRIBUTE`,CONFLICT:`SCHEMA_CONFLICT`,STORAGE_UPLOAD_FAILED:`SCHEMA_STORAGE_UPLOAD_FAILED`,STORAGE_DOWNLOAD_FAILED:`SCHEMA_STORAGE_DOWNLOAD_FAILED`,STORAGE_DELETE_FAILED:`SCHEMA_STORAGE_DELETE_FAILED`,STORAGE_URL_FAILED:`SCHEMA_STORAGE_URL_FAILED`,REPOSITORY_CREATE_FAILED:`SCHEMA_REPOSITORY_CREATE_FAILED`,REPOSITORY_UPDATE_FAILED:`SCHEMA_REPOSITORY_UPDATE_FAILED`,REPOSITORY_DELETE_FAILED:`SCHEMA_REPOSITORY_DELETE_FAILED`,REPOSITORY_QUERY_FAILED:`SCHEMA_REPOSITORY_QUERY_FAILED`,NOT_IMPLEMENTED:`SCHEMA_NOT_IMPLEMENTED`,TIMEOUT:`SCHEMA_TIMEOUT`,RECORD_REFERENCED:`SCHEMA_RECORD_REFERENCED`,ATTRIBUTE_IN_USE:`SCHEMA_ATTRIBUTE_IN_USE`,OBJECT_REFERENCED:`SCHEMA_OBJECT_REFERENCED`,CONFIGURATION_REQUIRED:`CONFIGURATION_REQUIRED`,SEARCH_ADAPTER_REQUIRED:`SEARCH_ADAPTER_REQUIRED`,CRON_REGISTRATION_FAILED:`CRON_REGISTRATION_FAILED`,JOB_WORKER_SHUTDOWN_FAILED:`JOB_WORKER_SHUTDOWN_FAILED`,SEARCH_BACKEND_FAILED:`SEARCH_BACKEND_FAILED`,INVARIANT_VIOLATION:`INVARIANT_VIOLATION`,TENANT_CONTEXT_MISSING:`TENANT_CONTEXT_MISSING`,FEATURE_FLAGS_CONTEXT:`FEATURE_FLAGS_CONTEXT`,REALTIME_RATE_LIMITED:`REALTIME_RATE_LIMITED`,REALTIME_DELIVERY_FAILED:`REALTIME_DELIVERY_FAILED`,REALTIME_SUBSCRIPTION_FAILED:`REALTIME_SUBSCRIPTION_FAILED`,AGENT_UNKNOWN:`AGENT_UNKNOWN`,AGENT_DEPTH_EXCEEDED:`AGENT_DEPTH_EXCEEDED`,AGENT_COST_LIMIT_EXCEEDED:`AGENT_COST_LIMIT_EXCEEDED`,AGENT_TREE_COST_LIMIT_EXCEEDED:`AGENT_TREE_COST_LIMIT_EXCEEDED`,CREDITS_EXHAUSTED:`CREDITS_EXHAUSTED`,QUOTA_EXCEEDED:`QUOTA_EXCEEDED`,AGENT_SESSION_NOT_FOUND:`AGENT_SESSION_NOT_FOUND`,AGENT_DEFINITION_NOT_FOUND:`AGENT_DEFINITION_NOT_FOUND`,AGENT_RUN_CONFIG:`AGENT_RUN_CONFIG`,AGENT_STREAMING:`AGENT_STREAMING`,AGENT_MISSING_ACTOR:`AGENT_MISSING_ACTOR`,AGENT_INVALID_STATE:`AGENT_INVALID_STATE`,AGENT_COMPACTION_IMPOSSIBLE:`AGENT_COMPACTION_IMPOSSIBLE`,AGENT_COMPACTION_TIMEOUT:`AGENT_COMPACTION_TIMEOUT`,AGENT_LEASE_HELD:`AGENT_LEASE_HELD`,AGENT_LEASE_UNAVAILABLE:`AGENT_LEASE_UNAVAILABLE`,AGENT_WORK_MODE_REQUIRED:`AGENT_WORK_MODE_REQUIRED`,AGENT_MESSAGE_NOT_FOUND:`AGENT_MESSAGE_NOT_FOUND`,AGENT_MESSAGE_NOT_EDITABLE:`AGENT_MESSAGE_NOT_EDITABLE`,INVALID_TOOL_INPUT:`INVALID_TOOL_INPUT`,EDIT_MATCH_NOT_FOUND:`EDIT_MATCH_NOT_FOUND`,EDIT_MATCH_AMBIGUOUS:`EDIT_MATCH_AMBIGUOUS`,EDIT_NO_CHANGE:`EDIT_NO_CHANGE`,EDIT_TARGET_UNAVAILABLE:`EDIT_TARGET_UNAVAILABLE`,EDIT_TARGET_UNSUPPORTED:`EDIT_TARGET_UNSUPPORTED`,AGENT_EXECUTION_CANCELLED:`AGENT_EXECUTION_CANCELLED`,AGENT_EXECUTION_TIMEOUT:`AGENT_EXECUTION_TIMEOUT`,AGENT_EXTERNAL_OUTCOME_UNKNOWN:`AGENT_EXTERNAL_OUTCOME_UNKNOWN`,AGENT_TOOL_CANCELLATION_POLICY:`AGENT_TOOL_CANCELLATION_POLICY`,AGENT_CANCELLATION_WATCH_CAPACITY:`AGENT_CANCELLATION_WATCH_CAPACITY`,AGENT_CANCELLATION_CLEANUP:`AGENT_CANCELLATION_CLEANUP`,DEVICE_NOT_FOUND:`DEVICE_NOT_FOUND`,DEVICE_OFFLINE:`DEVICE_OFFLINE`,DEVICE_CAPABILITY_MISMATCH:`DEVICE_CAPABILITY_MISMATCH`,DEVICE_CHANNEL_PROTOCOL:`DEVICE_CHANNEL_PROTOCOL`,AI_UNKNOWN:`AI_UNKNOWN`,AI_USAGE_LIMIT_EXCEEDED:`AI_USAGE_LIMIT_EXCEEDED`,AI_INVALID_USAGE:`AI_INVALID_USAGE`,AI_INVALID_MODEL:`AI_INVALID_MODEL`,AI_INVALID_MODEL_INPUT:`AI_INVALID_MODEL_INPUT`,AI_REPOSITORY_ERROR:`AI_REPOSITORY_ERROR`,AI_GENERATION_FAILED:`AI_GENERATION_FAILED`,AI_DECISION_FAILED:`AI_DECISION_FAILED`,AI_IMAGE_USAGE_PENDING:`AI_IMAGE_USAGE_PENDING`,AI_IMAGE_GENERATION_INDETERMINATE:`AI_IMAGE_GENERATION_INDETERMINATE`,AI_IMAGE_RESERVATION_CLEANUP_INDETERMINATE:`AI_IMAGE_RESERVATION_CLEANUP_INDETERMINATE`,AI_IMAGE_PUBLICATION_FAILED:`AI_IMAGE_PUBLICATION_FAILED`,DOCUMENT_MIME_NOT_ACCEPTED:`DOCUMENT_MIME_NOT_ACCEPTED`,DOCUMENT_MULTIPLE_NOT_ALLOWED:`DOCUMENT_MULTIPLE_NOT_ALLOWED`,DOCUMENT_NOT_FOUND_FOR_OPERATION:`DOCUMENT_NOT_FOUND_FOR_OPERATION`,DOCUMENT_STORAGE_FAILED:`DOCUMENT_STORAGE_FAILED`,DOCUMENT_SIZE_EXCEEDED:`DOCUMENT_SIZE_EXCEEDED`,DOCUMENT_OCR_FAILED:`DOCUMENT_OCR_FAILED`,DOCUMENT_BLOB_EMPTY:`DOCUMENT_BLOB_EMPTY`,DOCUMENT_FILE_TOO_LARGE:`DOCUMENT_FILE_TOO_LARGE`,DOCUMENT_FILE_NOT_FOUND:`DOCUMENT_FILE_NOT_FOUND`,DOCUMENT_FILE_ALREADY_PACKED:`DOCUMENT_FILE_ALREADY_PACKED`,DOCUMENT_RECORD_NOT_FOUND:`DOCUMENT_RECORD_NOT_FOUND`,DOCUMENT_RECORD_OBJECT_MISMATCH:`DOCUMENT_RECORD_OBJECT_MISMATCH`,DOCUMENT_FOLDER_SERVICE_UNAVAILABLE:`DOCUMENT_FOLDER_SERVICE_UNAVAILABLE`,DOCUMENT_FOLDER_PATH_NOT_FOUND:`DOCUMENT_FOLDER_PATH_NOT_FOUND`,EMAIL_PROVIDER_API_FAILED:`EMAIL_PROVIDER_API_FAILED`,EMAIL_SEND_FAILED:`EMAIL_SEND_FAILED`,EMAIL_SENT_NOT_STORED:`EMAIL_SENT_NOT_STORED`,EMAIL_BATCH_ITEM_FAILED:`EMAIL_BATCH_ITEM_FAILED`,CALENDAR_PROVIDER_API_FAILED:`CALENDAR_PROVIDER_API_FAILED`,REFLEX_INVALID_TRANSITION:`REFLEX_INVALID_TRANSITION`,REFLEX_INVALID_TOKEN:`REFLEX_INVALID_TOKEN`,REFLEX_CAPABILITY_DENIED:`REFLEX_CAPABILITY_DENIED`,REFLEX_GATEWAY_UNAVAILABLE:`REFLEX_GATEWAY_UNAVAILABLE`,REFLEX_BUNDLE_FAILED:`REFLEX_BUNDLE_FAILED`,REFLEX_EGRESS_DENIED:`REFLEX_EGRESS_DENIED`,REFLEX_PROTOCOL_VIOLATION:`REFLEX_PROTOCOL_VIOLATION`,REFLEX_RUN_FAILED:`REFLEX_RUN_FAILED`,REFLEX_RUN_TIMEOUT:`REFLEX_RUN_TIMEOUT`,REFLEX_DEPENDENCY_DRIFT:`REFLEX_DEPENDENCY_DRIFT`,REFLEX_NOT_READY:`REFLEX_NOT_READY`,REFLEX_INVARIANT_VIOLATION:`REFLEX_INVARIANT_VIOLATION`,EMBEDDING_MODEL_UNAVAILABLE:`EMBEDDING_MODEL_UNAVAILABLE`,EMBEDDING_DIMENSION_MISMATCH:`EMBEDDING_DIMENSION_MISMATCH`};var SchemaError=class extends Error{constructor(t,n=e.UNKNOWN,r){super(t),this.name=`SchemaError`,this.code=n,this.details=r,Object.setPrototypeOf(this,new.target.prototype)}toJSON(){return{name:this.name,code:this.code,message:this.message,details:this.details}}},NotFoundError=class extends SchemaError{constructor(t,n,r=e.RECORD_NOT_FOUND,i=`${t} with id "${n}" not found`){super(i,r,{resourceType:t,resourceId:n}),this._tag=`NotFoundError`,this.name=`NotFoundError`,this.resourceType=t,this.resourceId=n}},ObjectNotFoundError=class extends NotFoundError{constructor(t){super(`Object`,t,e.OBJECT_NOT_FOUND),this.name=`ObjectNotFoundError`}},AttributeNotFoundError=class extends NotFoundError{constructor(t){super(`Attribute`,t,e.ATTRIBUTE_NOT_FOUND),this.name=`AttributeNotFoundError`}},RecordNotFoundError=class extends NotFoundError{constructor(t){super(`Record`,t,e.RECORD_NOT_FOUND),this.name=`RecordNotFoundError`}},SchemaPlanNotFoundError=class extends NotFoundError{constructor(t){super(`Schema plan`,t,e.SCHEMA_PLAN_NOT_FOUND),this.name=`SchemaPlanNotFoundError`}},t=class ValidationError extends SchemaError{constructor(t,n){super(t,e.VALIDATION_FAILED,{errors:n}),this._tag=`ValidationError`,this.name=`ValidationError`,this.errors=n}static fromZodErrors(e){let t=e.map(e=>({path:e.path.map(String),message:e.message})),n=`Validation failed: ${t.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`, `)}`;return new ValidationError(n,t)}},AmbiguousSchemaChangeError=class extends t{constructor(t,n){super(t,n),this.code=e.AMBIGUOUS_CHANGE,this.name=`AmbiguousSchemaChangeError`}},ProtectedResourceError=class extends SchemaError{constructor(t,n,r){let i=t===`object`?e.PROTECTED_OBJECT:t===`view`?e.PROTECTED_VIEW:e.PROTECTED_ATTRIBUTE;super(`Cannot ${r} system ${t} "${n}"`,i,{resourceType:t,resourceName:n,operation:r}),this.name=`ProtectedResourceError`,this.resourceType=t,this.resourceName=n,this.operation=r}},SyncError=class extends SchemaError{constructor(t,n,r){super(`Failed to sync object "${t}": ${n}`,e.SYNC_FAILED,{objectName:t,cause:r?.message}),this.name=`SyncError`,this.objectName=t,this.cause=r}},SystemEntityImmutableError=class extends SchemaError{constructor(t,n){super(`Cannot mutate system ${t} "${n}". System entities are declared in code and immutable at runtime.`,e.SYSTEM_ENTITY_IMMUTABLE,{entityType:t,entityName:n}),this.name=`SystemEntityImmutableError`,this.entityType=t,this.entityName=n}},SyncConflictError=class extends SchemaError{constructor(t){let n=t.attributeName?`"${t.objectName}.${t.attributeName}"`:`"${t.objectName}"`;super(`Cannot promote runtime entity ${n}: ${t.reason}. Resolve via: (1) relax the code constraint, (2) migrate runtime values manually, or (3) rename the code declaration.`,e.SYNC_CONFLICT,{objectName:t.objectName,attributeName:t.attributeName,reason:t.reason}),this.name=`SyncConflictError`,this.objectName=t.objectName,this.attributeName=t.attributeName,this.reason=t.reason}},SyncCascadeError=class extends SchemaError{constructor(t,n){super(`Cannot demote object "${t}": attributes ${n.join(`, `)} are still declared in code. Remove them from code first, or restore the object.`,e.SYNC_CASCADE,{objectName:t,conflictingAttributes:n}),this.name=`SyncCascadeError`,this.objectName=t,this.conflictingAttributes=n}},OrphanSystemAttributeError=class extends SchemaError{constructor(t,n){super(`Attribute "${t}.${n}" is system:true but its object parent is system:false. This is an invariant violation.`,e.ORPHAN_SYSTEM_ATTRIBUTE,{objectName:t,attributeName:n}),this.name=`OrphanSystemAttributeError`,this.objectName=t,this.attributeName=n}},DuplicateError=class extends SchemaError{constructor(t,n,r){let i=t===`object`?e.DUPLICATE_OBJECT:t===`attribute`?e.DUPLICATE_ATTRIBUTE:e.DUPLICATE,a=`${t.charAt(0).toUpperCase()}${t.slice(1)} "${n}" already exists`;super(r??a,i,{resourceType:t,resourceName:n}),this.name=`DuplicateError`,this.resourceType=t,this.resourceName=n}};const n={builder:`cannot be built by a consumer`,registry:`cannot be registered by a consumer`,bundle:`cannot be claimed by a bundle`,source:`cannot be declared by a schema source`};var ReservedObjectNameError=class extends SchemaError{constructor(t,r){super(`"${t}" is a framework-native object name and ${n[r]}: the framework ships it, pick another name.`,e.RESERVED_OBJECT_NAME,{objectName:t,context:r}),this.name=`ReservedObjectNameError`,this.objectName=t}};function isSchemaError(e){return e instanceof SchemaError}function isNotFoundError(e){return e instanceof NotFoundError}function isValidationError(e){return e instanceof t}function isProtectedResourceError(e){return e instanceof ProtectedResourceError}var ForbiddenError=class extends SchemaError{constructor(t,n,r){super(`No ${n} permission on object "${t}"`,e.FORBIDDEN,{objectName:t,action:n,userId:r}),this._tag=`ForbiddenError`,this.name=`ForbiddenError`,this.objectName=t,this.action=n,this.userId=r}},ProtectedRoleError=class extends SchemaError{constructor(t,n){super(`Cannot ${n} system role "${t}"`,e.PROTECTED_ROLE,{roleName:t,operation:n}),this.name=`ProtectedRoleError`,this.roleName=t,this.operation=n}},RoleNotFoundError=class extends NotFoundError{constructor(t){super(`Role`,t,e.ROLE_NOT_FOUND),this.name=`RoleNotFoundError`}},ConcurrentModificationError=class extends SchemaError{constructor(t){super(`Record ${t} was modified by another request. Please refresh and try again.`,e.CONFLICT,{recordId:t})}},StorageError=class extends SchemaError{constructor(t,n,r,i){let a=t===`upload`?e.STORAGE_UPLOAD_FAILED:t===`download`?e.STORAGE_DOWNLOAD_FAILED:t===`delete`?e.STORAGE_DELETE_FAILED:e.STORAGE_URL_FAILED;super(`Storage ${t} failed: ${n}`,a,{operation:t,path:r,cause:i}),this.name=`StorageError`,this.operation=t,this.path=r,this.cause=i}},AccessDeniedError=class extends SchemaError{constructor(t,n){super(n??`Access denied to resource: ${t}`,e.ACCESS_DENIED,{resource:t,reason:n}),this.name=`AccessDeniedError`,this.resource=t,this.reason=n}},RepositoryError=class extends SchemaError{constructor(t,n,r,i){let a=t===`create`?e.REPOSITORY_CREATE_FAILED:t===`update`?e.REPOSITORY_UPDATE_FAILED:t===`delete`?e.REPOSITORY_DELETE_FAILED:e.REPOSITORY_QUERY_FAILED;super(`Failed to ${t} ${n}: ${r}${i?` (${i})`:``}`,a,{operation:t,entity:n,cause:i}),this.name=`RepositoryError`,this.operation=t,this.entity=n,this.cause=i}},SearchBackendError=class extends SchemaError{constructor(t,n){super(`Search backend unavailable for ${t}`,e.SEARCH_BACKEND_FAILED,{scope:t,cause:n}),this.name=`SearchBackendError`,this.scope=t,this.cause=n}},NotImplementedError=class extends SchemaError{constructor(t,n){let r=n?`${t}: not implemented (${n})`:`${t}: not implemented`;super(r,e.NOT_IMPLEMENTED,{feature:t,milestone:n}),this.name=`NotImplementedError`,this.feature=t,this.milestone=n}},MemoryNotFoundError=class extends NotFoundError{constructor(t){super(`Memory`,t,e.MEMORY_NOT_FOUND),this.name=`MemoryNotFoundError`}},RecordReferencedError=class extends SchemaError{constructor(t,n){let r=n.reduce((e,t)=>e+t.count,0);super(`Cannot delete record: referenced by ${r} record${r>1?`s`:``}`,e.RECORD_REFERENCED,{recordId:t,references:n}),this.name=`RecordReferencedError`,this.recordId=t,this.references=n}},AttributeInUseError=class extends SchemaError{constructor(t,n,r){super(`Cannot delete attribute "${t}": used in ${n}${r===void 0?``:` ${r}`}`,e.ATTRIBUTE_IN_USE,{attributeName:t,usage:n,...r===void 0?{}:{location:r}}),this.name=`AttributeInUseError`,this.attributeName=t,this.usage=n,this.location=r}},ObjectReferencedError=class extends SchemaError{constructor(t,n){super(`Cannot delete object "${t}": target of relations in ${n.join(`, `)}`,e.OBJECT_REFERENCED,{objectName:t,referencingObjects:n}),this.name=`ObjectReferencedError`,this.objectName=t,this.referencingObjects=n}},RealtimeRateLimitedError=class extends SchemaError{constructor(){super(`Supabase Realtime delivery was rate limited`,e.REALTIME_RATE_LIMITED),this.name=`RealtimeRateLimitedError`}},RealtimeDeliveryError=class extends SchemaError{constructor(){super(`Supabase Realtime delivery failed`,e.REALTIME_DELIVERY_FAILED),this.name=`RealtimeDeliveryError`}},RealtimeSubscriptionError=class extends SchemaError{constructor(){super(`Supabase Realtime subscription failed`,e.REALTIME_SUBSCRIPTION_FAILED),this.name=`RealtimeSubscriptionError`}};function isRecordReferencedError(e){return e instanceof RecordReferencedError}function isAttributeInUseError(e){return e instanceof AttributeInUseError}function isObjectReferencedError(e){return e instanceof ObjectReferencedError}export{AccessDeniedError,AmbiguousSchemaChangeError,AttributeInUseError,AttributeNotFoundError,ConcurrentModificationError,DuplicateError,ForbiddenError,MemoryNotFoundError,NotFoundError,NotImplementedError,ObjectNotFoundError,ObjectReferencedError,OrphanSystemAttributeError,ProtectedResourceError,ProtectedRoleError,RealtimeDeliveryError,RealtimeRateLimitedError,RealtimeSubscriptionError,RecordNotFoundError,RecordReferencedError,RepositoryError,ReservedObjectNameError,RoleNotFoundError,SchemaError,e as SchemaErrorCode,SchemaPlanNotFoundError,SearchBackendError,StorageError,SyncCascadeError,SyncConflictError,SyncError,SystemEntityImmutableError,t as ValidationError,isAttributeInUseError,isNotFoundError,isObjectReferencedError,isProtectedResourceError,isRecordReferencedError,isSchemaError,isValidationError};
|
|
2
|
+
const e={DRAFT_REVISION_CONFLICT:`DRAFT_REVISION_CONFLICT`,UNKNOWN:`SCHEMA_UNKNOWN_ERROR`,OBJECT_NOT_FOUND:`SCHEMA_OBJECT_NOT_FOUND`,ATTRIBUTE_NOT_FOUND:`SCHEMA_ATTRIBUTE_NOT_FOUND`,RECORD_NOT_FOUND:`SCHEMA_RECORD_NOT_FOUND`,SOURCE_NOT_FOUND:`SCHEMA_SOURCE_NOT_FOUND`,ROLE_NOT_FOUND:`SCHEMA_ROLE_NOT_FOUND`,MEMORY_NOT_FOUND:`SCHEMA_MEMORY_NOT_FOUND`,SCHEMA_PLAN_NOT_FOUND:`SCHEMA_PLAN_NOT_FOUND`,VALIDATION_FAILED:`SCHEMA_VALIDATION_FAILED`,INVALID_ATTRIBUTE_NAME:`SCHEMA_INVALID_ATTRIBUTE_NAME`,INVALID_OBJECT_NAME:`SCHEMA_INVALID_OBJECT_NAME`,RESERVED_OBJECT_NAME:`SCHEMA_RESERVED_OBJECT_NAME`,PROTECTED_OBJECT:`SCHEMA_PROTECTED_OBJECT`,PROTECTED_ATTRIBUTE:`SCHEMA_PROTECTED_ATTRIBUTE`,PROTECTED_VIEW:`SCHEMA_PROTECTED_VIEW`,PROTECTED_ROLE:`SCHEMA_PROTECTED_ROLE`,FORBIDDEN:`SCHEMA_FORBIDDEN`,ACCESS_DENIED:`SCHEMA_ACCESS_DENIED`,WORKSPACE_INVARIANT:`SCHEMA_WORKSPACE_INVARIANT`,STATE_GATE:`SCHEMA_STATE_GATE`,ACTOR_CONTEXT_REQUIRED:`SCHEMA_ACTOR_CONTEXT_REQUIRED`,CONNECTOR_AUTH_FAILED:`SCHEMA_CONNECTOR_AUTH_FAILED`,CONNECTOR_INVALID_STATE:`SCHEMA_CONNECTOR_INVALID_STATE`,CONNECTOR_GRANT_ORPHANED:`SCHEMA_CONNECTOR_GRANT_ORPHANED`,SYNC_FAILED:`SCHEMA_SYNC_FAILED`,SYNC_CONFLICT:`SCHEMA_SYNC_CONFLICT`,SYNC_CASCADE:`SCHEMA_SYNC_CASCADE`,ORPHAN_SYSTEM_ATTRIBUTE:`SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE`,SYSTEM_ENTITY_IMMUTABLE:`SCHEMA_SYSTEM_ENTITY_IMMUTABLE`,AMBIGUOUS_CHANGE:`SCHEMA_AMBIGUOUS_CHANGE`,DUPLICATE:`SCHEMA_DUPLICATE`,DUPLICATE_OBJECT:`SCHEMA_DUPLICATE_OBJECT`,DUPLICATE_ATTRIBUTE:`SCHEMA_DUPLICATE_ATTRIBUTE`,CONFLICT:`SCHEMA_CONFLICT`,STORAGE_UPLOAD_FAILED:`SCHEMA_STORAGE_UPLOAD_FAILED`,STORAGE_DOWNLOAD_FAILED:`SCHEMA_STORAGE_DOWNLOAD_FAILED`,STORAGE_DELETE_FAILED:`SCHEMA_STORAGE_DELETE_FAILED`,STORAGE_URL_FAILED:`SCHEMA_STORAGE_URL_FAILED`,REPOSITORY_CREATE_FAILED:`SCHEMA_REPOSITORY_CREATE_FAILED`,REPOSITORY_UPDATE_FAILED:`SCHEMA_REPOSITORY_UPDATE_FAILED`,REPOSITORY_DELETE_FAILED:`SCHEMA_REPOSITORY_DELETE_FAILED`,REPOSITORY_QUERY_FAILED:`SCHEMA_REPOSITORY_QUERY_FAILED`,NOT_IMPLEMENTED:`SCHEMA_NOT_IMPLEMENTED`,TIMEOUT:`SCHEMA_TIMEOUT`,RECORD_REFERENCED:`SCHEMA_RECORD_REFERENCED`,ATTRIBUTE_IN_USE:`SCHEMA_ATTRIBUTE_IN_USE`,OBJECT_REFERENCED:`SCHEMA_OBJECT_REFERENCED`,CONFIGURATION_REQUIRED:`CONFIGURATION_REQUIRED`,SEARCH_ADAPTER_REQUIRED:`SEARCH_ADAPTER_REQUIRED`,SEARCH_BACKEND_FAILED:`SEARCH_BACKEND_FAILED`,SEARCH_BACKEND_REJECTED:`SEARCH_BACKEND_REJECTED`,INVARIANT_VIOLATION:`INVARIANT_VIOLATION`,TENANT_CONTEXT_MISSING:`TENANT_CONTEXT_MISSING`,JOB_RUN_METADATA_MISMATCH:`JOB_RUN_METADATA_MISMATCH`,JOB_COALESCED_FAILURE_HANDLED:`JOB_COALESCED_FAILURE_HANDLED`,FEATURE_FLAGS_CONTEXT:`FEATURE_FLAGS_CONTEXT`,REALTIME_RATE_LIMITED:`REALTIME_RATE_LIMITED`,REALTIME_DELIVERY_FAILED:`REALTIME_DELIVERY_FAILED`,REALTIME_SUBSCRIPTION_FAILED:`REALTIME_SUBSCRIPTION_FAILED`,AGENT_UNKNOWN:`AGENT_UNKNOWN`,AGENT_DEPTH_EXCEEDED:`AGENT_DEPTH_EXCEEDED`,AGENT_COST_LIMIT_EXCEEDED:`AGENT_COST_LIMIT_EXCEEDED`,AGENT_TREE_COST_LIMIT_EXCEEDED:`AGENT_TREE_COST_LIMIT_EXCEEDED`,CREDITS_EXHAUSTED:`CREDITS_EXHAUSTED`,QUOTA_EXCEEDED:`QUOTA_EXCEEDED`,AGENT_SESSION_NOT_FOUND:`AGENT_SESSION_NOT_FOUND`,AGENT_DEFINITION_NOT_FOUND:`AGENT_DEFINITION_NOT_FOUND`,AGENT_RUN_CONFIG:`AGENT_RUN_CONFIG`,AGENT_STREAMING:`AGENT_STREAMING`,AGENT_MISSING_ACTOR:`AGENT_MISSING_ACTOR`,AGENT_INVALID_STATE:`AGENT_INVALID_STATE`,AGENT_COMPACTION_IMPOSSIBLE:`AGENT_COMPACTION_IMPOSSIBLE`,AGENT_COMPACTION_TIMEOUT:`AGENT_COMPACTION_TIMEOUT`,AGENT_LEASE_HELD:`AGENT_LEASE_HELD`,AGENT_LEASE_UNAVAILABLE:`AGENT_LEASE_UNAVAILABLE`,AGENT_WORK_MODE_REQUIRED:`AGENT_WORK_MODE_REQUIRED`,AGENT_MESSAGE_NOT_FOUND:`AGENT_MESSAGE_NOT_FOUND`,AGENT_MESSAGE_NOT_EDITABLE:`AGENT_MESSAGE_NOT_EDITABLE`,INVALID_TOOL_INPUT:`INVALID_TOOL_INPUT`,EDIT_MATCH_NOT_FOUND:`EDIT_MATCH_NOT_FOUND`,EDIT_MATCH_AMBIGUOUS:`EDIT_MATCH_AMBIGUOUS`,EDIT_NO_CHANGE:`EDIT_NO_CHANGE`,EDIT_TARGET_UNAVAILABLE:`EDIT_TARGET_UNAVAILABLE`,EDIT_TARGET_UNSUPPORTED:`EDIT_TARGET_UNSUPPORTED`,AGENT_EXECUTION_CANCELLED:`AGENT_EXECUTION_CANCELLED`,AGENT_EXECUTION_TIMEOUT:`AGENT_EXECUTION_TIMEOUT`,AGENT_EXTERNAL_OUTCOME_UNKNOWN:`AGENT_EXTERNAL_OUTCOME_UNKNOWN`,AGENT_TOOL_CANCELLATION_POLICY:`AGENT_TOOL_CANCELLATION_POLICY`,AGENT_CANCELLATION_WATCH_CAPACITY:`AGENT_CANCELLATION_WATCH_CAPACITY`,AGENT_CANCELLATION_CLEANUP:`AGENT_CANCELLATION_CLEANUP`,AGENT_TURN_FINALIZER_STALLED:`AGENT_TURN_FINALIZER_STALLED`,DEVICE_NOT_FOUND:`DEVICE_NOT_FOUND`,DEVICE_OFFLINE:`DEVICE_OFFLINE`,DEVICE_CAPABILITY_MISMATCH:`DEVICE_CAPABILITY_MISMATCH`,DEVICE_CHANNEL_PROTOCOL:`DEVICE_CHANNEL_PROTOCOL`,AI_UNKNOWN:`AI_UNKNOWN`,AI_USAGE_LIMIT_EXCEEDED:`AI_USAGE_LIMIT_EXCEEDED`,AI_INVALID_USAGE:`AI_INVALID_USAGE`,AI_INVALID_MODEL:`AI_INVALID_MODEL`,AI_INVALID_MODEL_INPUT:`AI_INVALID_MODEL_INPUT`,AI_REPOSITORY_ERROR:`AI_REPOSITORY_ERROR`,AI_GENERATION_FAILED:`AI_GENERATION_FAILED`,AI_DECISION_FAILED:`AI_DECISION_FAILED`,AI_IMAGE_USAGE_PENDING:`AI_IMAGE_USAGE_PENDING`,AI_IMAGE_GENERATION_INDETERMINATE:`AI_IMAGE_GENERATION_INDETERMINATE`,AI_IMAGE_RESERVATION_CLEANUP_INDETERMINATE:`AI_IMAGE_RESERVATION_CLEANUP_INDETERMINATE`,AI_IMAGE_PUBLICATION_FAILED:`AI_IMAGE_PUBLICATION_FAILED`,DOCUMENT_MIME_NOT_ACCEPTED:`DOCUMENT_MIME_NOT_ACCEPTED`,DOCUMENT_MULTIPLE_NOT_ALLOWED:`DOCUMENT_MULTIPLE_NOT_ALLOWED`,DOCUMENT_NOT_FOUND_FOR_OPERATION:`DOCUMENT_NOT_FOUND_FOR_OPERATION`,DOCUMENT_STORAGE_FAILED:`DOCUMENT_STORAGE_FAILED`,DOCUMENT_SIZE_EXCEEDED:`DOCUMENT_SIZE_EXCEEDED`,DOCUMENT_OCR_FAILED:`DOCUMENT_OCR_FAILED`,DOCUMENT_BLOB_EMPTY:`DOCUMENT_BLOB_EMPTY`,DOCUMENT_FILE_TOO_LARGE:`DOCUMENT_FILE_TOO_LARGE`,DOCUMENT_FILE_NOT_FOUND:`DOCUMENT_FILE_NOT_FOUND`,DOCUMENT_FILE_ALREADY_PACKED:`DOCUMENT_FILE_ALREADY_PACKED`,DOCUMENT_RECORD_NOT_FOUND:`DOCUMENT_RECORD_NOT_FOUND`,DOCUMENT_RECORD_OBJECT_MISMATCH:`DOCUMENT_RECORD_OBJECT_MISMATCH`,DOCUMENT_FOLDER_SERVICE_UNAVAILABLE:`DOCUMENT_FOLDER_SERVICE_UNAVAILABLE`,DOCUMENT_FOLDER_PATH_NOT_FOUND:`DOCUMENT_FOLDER_PATH_NOT_FOUND`,EMAIL_PROVIDER_API_FAILED:`EMAIL_PROVIDER_API_FAILED`,EMAIL_SEND_FAILED:`EMAIL_SEND_FAILED`,EMAIL_SENT_NOT_STORED:`EMAIL_SENT_NOT_STORED`,EMAIL_BATCH_ITEM_FAILED:`EMAIL_BATCH_ITEM_FAILED`,CALENDAR_PROVIDER_API_FAILED:`CALENDAR_PROVIDER_API_FAILED`,REFLEX_INVALID_TRANSITION:`REFLEX_INVALID_TRANSITION`,REFLEX_INVALID_TOKEN:`REFLEX_INVALID_TOKEN`,REFLEX_CAPABILITY_DENIED:`REFLEX_CAPABILITY_DENIED`,REFLEX_GATEWAY_UNAVAILABLE:`REFLEX_GATEWAY_UNAVAILABLE`,REFLEX_BUNDLE_FAILED:`REFLEX_BUNDLE_FAILED`,REFLEX_EGRESS_DENIED:`REFLEX_EGRESS_DENIED`,REFLEX_PROTOCOL_VIOLATION:`REFLEX_PROTOCOL_VIOLATION`,REFLEX_RUN_FAILED:`REFLEX_RUN_FAILED`,REFLEX_RUN_TIMEOUT:`REFLEX_RUN_TIMEOUT`,REFLEX_DEPENDENCY_DRIFT:`REFLEX_DEPENDENCY_DRIFT`,REFLEX_NOT_READY:`REFLEX_NOT_READY`,REFLEX_INVARIANT_VIOLATION:`REFLEX_INVARIANT_VIOLATION`,EMBEDDING_MODEL_UNAVAILABLE:`EMBEDDING_MODEL_UNAVAILABLE`,EMBEDDING_DIMENSION_MISMATCH:`EMBEDDING_DIMENSION_MISMATCH`};var SchemaError=class extends Error{constructor(t,n=e.UNKNOWN,r){super(t),this.name=`SchemaError`,this.code=n,this.details=r,Object.setPrototypeOf(this,new.target.prototype)}toJSON(){return{name:this.name,code:this.code,message:this.message,details:this.details}}},NotFoundError=class extends SchemaError{constructor(t,n,r=e.RECORD_NOT_FOUND,i=`${t} with id "${n}" not found`){super(i,r,{resourceType:t,resourceId:n}),this._tag=`NotFoundError`,this.name=`NotFoundError`,this.resourceType=t,this.resourceId=n}},ObjectNotFoundError=class extends NotFoundError{constructor(t){super(`Object`,t,e.OBJECT_NOT_FOUND),this.name=`ObjectNotFoundError`}},AttributeNotFoundError=class extends NotFoundError{constructor(t){super(`Attribute`,t,e.ATTRIBUTE_NOT_FOUND),this.name=`AttributeNotFoundError`}},RecordNotFoundError=class extends NotFoundError{constructor(t){super(`Record`,t,e.RECORD_NOT_FOUND),this.name=`RecordNotFoundError`}},SchemaPlanNotFoundError=class extends NotFoundError{constructor(t){super(`Schema plan`,t,e.SCHEMA_PLAN_NOT_FOUND),this.name=`SchemaPlanNotFoundError`}},t=class ValidationError extends SchemaError{constructor(t,n){super(t,e.VALIDATION_FAILED,{errors:n}),this._tag=`ValidationError`,this.name=`ValidationError`,this.errors=n}static fromZodErrors(e){let t=e.map(e=>({path:e.path.map(String),message:e.message})),n=`Validation failed: ${t.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`, `)}`;return new ValidationError(n,t)}},AmbiguousSchemaChangeError=class extends t{constructor(t,n){super(t,n),this.code=e.AMBIGUOUS_CHANGE,this.name=`AmbiguousSchemaChangeError`}},ProtectedResourceError=class extends SchemaError{constructor(t,n,r){let i=t===`object`?e.PROTECTED_OBJECT:t===`view`?e.PROTECTED_VIEW:e.PROTECTED_ATTRIBUTE;super(`Cannot ${r} system ${t} "${n}"`,i,{resourceType:t,resourceName:n,operation:r}),this.name=`ProtectedResourceError`,this.resourceType=t,this.resourceName=n,this.operation=r}},SyncError=class extends SchemaError{constructor(t,n,r){super(`Failed to sync object "${t}": ${n}`,e.SYNC_FAILED,{objectName:t,cause:r?.message}),this.name=`SyncError`,this.objectName=t,this.cause=r}},SystemEntityImmutableError=class extends SchemaError{constructor(t,n){super(`Cannot mutate system ${t} "${n}". System entities are declared in code and immutable at runtime.`,e.SYSTEM_ENTITY_IMMUTABLE,{entityType:t,entityName:n}),this.name=`SystemEntityImmutableError`,this.entityType=t,this.entityName=n}},SyncConflictError=class extends SchemaError{constructor(t){let n=t.attributeName?`"${t.objectName}.${t.attributeName}"`:`"${t.objectName}"`;super(`Cannot promote runtime entity ${n}: ${t.reason}. Resolve via: (1) relax the code constraint, (2) migrate runtime values manually, or (3) rename the code declaration.`,e.SYNC_CONFLICT,{objectName:t.objectName,attributeName:t.attributeName,reason:t.reason}),this.name=`SyncConflictError`,this.objectName=t.objectName,this.attributeName=t.attributeName,this.reason=t.reason}},SyncCascadeError=class extends SchemaError{constructor(t,n){super(`Cannot demote object "${t}": attributes ${n.join(`, `)} are still declared in code. Remove them from code first, or restore the object.`,e.SYNC_CASCADE,{objectName:t,conflictingAttributes:n}),this.name=`SyncCascadeError`,this.objectName=t,this.conflictingAttributes=n}},OrphanSystemAttributeError=class extends SchemaError{constructor(t,n){super(`Attribute "${t}.${n}" is system:true but its object parent is system:false. This is an invariant violation.`,e.ORPHAN_SYSTEM_ATTRIBUTE,{objectName:t,attributeName:n}),this.name=`OrphanSystemAttributeError`,this.objectName=t,this.attributeName=n}},DuplicateError=class extends SchemaError{constructor(t,n,r){let i=t===`object`?e.DUPLICATE_OBJECT:t===`attribute`?e.DUPLICATE_ATTRIBUTE:e.DUPLICATE,a=`${t.charAt(0).toUpperCase()}${t.slice(1)} "${n}" already exists`;super(r??a,i,{resourceType:t,resourceName:n}),this.name=`DuplicateError`,this.resourceType=t,this.resourceName=n}};const n={builder:`cannot be built by a consumer`,registry:`cannot be registered by a consumer`,bundle:`cannot be claimed by a bundle`,source:`cannot be declared by a schema source`};var ReservedObjectNameError=class extends SchemaError{constructor(t,r){super(`"${t}" is a framework-native object name and ${n[r]}: the framework ships it, pick another name.`,e.RESERVED_OBJECT_NAME,{objectName:t,context:r}),this.name=`ReservedObjectNameError`,this.objectName=t}};function isSchemaError(e){return e instanceof SchemaError}function isNotFoundError(e){return e instanceof NotFoundError}function isValidationError(e){return e instanceof t}function isProtectedResourceError(e){return e instanceof ProtectedResourceError}var ForbiddenError=class extends SchemaError{constructor(t,n,r){super(`No ${n} permission on object "${t}"`,e.FORBIDDEN,{objectName:t,action:n,userId:r}),this._tag=`ForbiddenError`,this.name=`ForbiddenError`,this.objectName=t,this.action=n,this.userId=r}},ProtectedRoleError=class extends SchemaError{constructor(t,n){super(`Cannot ${n} system role "${t}"`,e.PROTECTED_ROLE,{roleName:t,operation:n}),this.name=`ProtectedRoleError`,this.roleName=t,this.operation=n}},RoleNotFoundError=class extends NotFoundError{constructor(t){super(`Role`,t,e.ROLE_NOT_FOUND),this.name=`RoleNotFoundError`}},ConcurrentModificationError=class extends SchemaError{constructor(t){super(`Record ${t} was modified by another request. Please refresh and try again.`,e.CONFLICT,{recordId:t})}},StorageError=class extends SchemaError{constructor(t,n,r,i){let a=t===`upload`?e.STORAGE_UPLOAD_FAILED:t===`download`?e.STORAGE_DOWNLOAD_FAILED:t===`delete`?e.STORAGE_DELETE_FAILED:e.STORAGE_URL_FAILED;super(`Storage ${t} failed: ${n}`,a,{operation:t,path:r,cause:i}),this.name=`StorageError`,this.operation=t,this.path=r,this.cause=i}},AccessDeniedError=class extends SchemaError{constructor(t,n){super(n??`Access denied to resource: ${t}`,e.ACCESS_DENIED,{resource:t,reason:n}),this.name=`AccessDeniedError`,this.resource=t,this.reason=n}},RepositoryError=class extends SchemaError{constructor(t,n,r,i){let a=t===`create`?e.REPOSITORY_CREATE_FAILED:t===`update`?e.REPOSITORY_UPDATE_FAILED:t===`delete`?e.REPOSITORY_DELETE_FAILED:e.REPOSITORY_QUERY_FAILED;super(`Failed to ${t} ${n}: ${r}${i?` (${i})`:``}`,a,{operation:t,entity:n,cause:i}),this.name=`RepositoryError`,this.operation=t,this.entity=n,this.cause=i}};function searchBackendMessage(e,t,n,r){return t===`unavailable`?`Search backend unavailable for ${e}`:`${t===`capacity`?`Search backend out of capacity for ${e}`:`Search backend rejected ${e}`}${n?`: ${n}`:``}${r?` — ${r}`:``}`}var SearchBackendError=class extends SchemaError{constructor(t,n,r={}){let i=r.kind??`unavailable`;super(searchBackendMessage(t,i,r.backendCode,r.detail),i===`unavailable`?e.SEARCH_BACKEND_FAILED:e.SEARCH_BACKEND_REJECTED,{scope:t,cause:n,kind:i,...r.backendCode?{backendCode:r.backendCode}:{}}),this.name=`SearchBackendError`,this.scope=t,this.cause=n,this.kind=i,this.backendCode=r.backendCode}},NotImplementedError=class extends SchemaError{constructor(t,n){let r=n?`${t}: not implemented (${n})`:`${t}: not implemented`;super(r,e.NOT_IMPLEMENTED,{feature:t,milestone:n}),this.name=`NotImplementedError`,this.feature=t,this.milestone=n}},MemoryNotFoundError=class extends NotFoundError{constructor(t){super(`Memory`,t,e.MEMORY_NOT_FOUND),this.name=`MemoryNotFoundError`}},RecordReferencedError=class extends SchemaError{constructor(t,n){let r=n.reduce((e,t)=>e+t.count,0);super(`Cannot delete record: referenced by ${r} record${r>1?`s`:``}`,e.RECORD_REFERENCED,{recordId:t,references:n}),this.name=`RecordReferencedError`,this.recordId=t,this.references=n}},AttributeInUseError=class extends SchemaError{constructor(t,n,r){super(`Cannot delete attribute "${t}": used in ${n}${r===void 0?``:` ${r}`}`,e.ATTRIBUTE_IN_USE,{attributeName:t,usage:n,...r===void 0?{}:{location:r}}),this.name=`AttributeInUseError`,this.attributeName=t,this.usage=n,this.location=r}},ObjectReferencedError=class extends SchemaError{constructor(t,n){super(`Cannot delete object "${t}": target of relations in ${n.join(`, `)}`,e.OBJECT_REFERENCED,{objectName:t,referencingObjects:n}),this.name=`ObjectReferencedError`,this.objectName=t,this.referencingObjects=n}},RealtimeRateLimitedError=class extends SchemaError{constructor(){super(`Supabase Realtime delivery was rate limited`,e.REALTIME_RATE_LIMITED),this.name=`RealtimeRateLimitedError`}},RealtimeDeliveryError=class extends SchemaError{constructor(){super(`Supabase Realtime delivery failed`,e.REALTIME_DELIVERY_FAILED),this.name=`RealtimeDeliveryError`}},RealtimeSubscriptionError=class extends SchemaError{constructor(){super(`Supabase Realtime subscription failed`,e.REALTIME_SUBSCRIPTION_FAILED),this.name=`RealtimeSubscriptionError`}};function isRecordReferencedError(e){return e instanceof RecordReferencedError}function isAttributeInUseError(e){return e instanceof AttributeInUseError}function isObjectReferencedError(e){return e instanceof ObjectReferencedError}export{AccessDeniedError,AmbiguousSchemaChangeError,AttributeInUseError,AttributeNotFoundError,ConcurrentModificationError,DuplicateError,ForbiddenError,MemoryNotFoundError,NotFoundError,NotImplementedError,ObjectNotFoundError,ObjectReferencedError,OrphanSystemAttributeError,ProtectedResourceError,ProtectedRoleError,RealtimeDeliveryError,RealtimeRateLimitedError,RealtimeSubscriptionError,RecordNotFoundError,RecordReferencedError,RepositoryError,ReservedObjectNameError,RoleNotFoundError,SchemaError,e as SchemaErrorCode,SchemaPlanNotFoundError,SearchBackendError,StorageError,SyncCascadeError,SyncConflictError,SyncError,SystemEntityImmutableError,t as ValidationError,isAttributeInUseError,isNotFoundError,isObjectReferencedError,isProtectedResourceError,isRecordReferencedError,isSchemaError,isValidationError};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as AttributeType, n as Attribute } from "./attributes-
|
|
2
|
+
import { i as AttributeType, n as Attribute } from "./attributes-DF899HOt.js";
|
|
3
3
|
import { z as z$1 } from "zod";
|
|
4
4
|
import { IconName } from "@stndrds/constants";
|
|
5
5
|
//#region src/types/mutations.d.ts
|
|
@@ -172,6 +172,19 @@ declare const statusOptionWriteSchema: z$1.ZodObject<{
|
|
|
172
172
|
finished: "finished";
|
|
173
173
|
}>;
|
|
174
174
|
}, z$1.core.$strict>;
|
|
175
|
+
/**
|
|
176
|
+
* Drops, from every option of an attribute config or body, the keys
|
|
177
|
+
* `optionSchema` does not know — typically an `id` the code builder accepted
|
|
178
|
+
* without complaint (#4356). Sync stores options through it, and the schema
|
|
179
|
+
* state reads them through it, so one stale key no longer 400s the whole state.
|
|
180
|
+
* The options of a `relation()`/`document()`'s `.qualifyWith()` properties are
|
|
181
|
+
* validated by the same schema, so each property definition goes through it too.
|
|
182
|
+
*
|
|
183
|
+
* Order is kept, and a config with nothing to drop is returned as is. A list
|
|
184
|
+
* or option that is not the expected shape is left for strict validation to
|
|
185
|
+
* refuse.
|
|
186
|
+
*/
|
|
187
|
+
declare function withoutUnknownOptionKeys<T extends object>(config: T): T;
|
|
175
188
|
/**
|
|
176
189
|
* Property types whose config differs from `baseConfigSchema` only by
|
|
177
190
|
* independent optional scalars — no options array, no relation targets. Same
|
|
@@ -251,4 +264,4 @@ declare function parseAttributeConfigForCreate(type: AttributeType, input: unkno
|
|
|
251
264
|
*/
|
|
252
265
|
declare function parseAttributeConfigForUpdate(stored: Attribute, patch: Partial<AddAttributeInput>): Record<string, unknown>;
|
|
253
266
|
//#endregion
|
|
254
|
-
export { UpdateObjectInput as S, statusOptionWriteSchema as _, getAttributeConfigWriteSchema as a,
|
|
267
|
+
export { UpdateObjectInput as C, RelationOptionsResponse as S, statusOptionWriteSchema as _, getAttributeConfigWriteSchema as a, CreateCustomObjectInput as b, parseAttributeConfigForCreate as c, propertyAttributeWireSchema as d, propertySchemaSchema as f, statusGroupSchema as g, selectOptionWriteSchema as h, getAttributeConfigSchema as i, parseAttributeConfigForUpdate as l, refuseForeignKeys as m, WIRE_OMITTED_CONFIG_KEYS as n, multiselectOptionWriteSchema as o, propertySchemaWireSchema as p, attributeConfigSchemas as r, parseAttributeConfig as s, SIMPLE_PROPERTY_TYPES as t, propertyAttributeSchema as u, withoutUnknownOptionKeys as v, RelationOption as x, AddAttributeInput as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as AttributeType, n as Attribute } from "./attributes-
|
|
2
|
+
import { i as AttributeType, n as Attribute } from "./attributes-BrWmES5w.mjs";
|
|
3
3
|
import { z as z$1 } from "zod";
|
|
4
4
|
import { IconName } from "@stndrds/constants";
|
|
5
5
|
//#region src/types/mutations.d.ts
|
|
@@ -172,6 +172,19 @@ declare const statusOptionWriteSchema: z$1.ZodObject<{
|
|
|
172
172
|
finished: "finished";
|
|
173
173
|
}>;
|
|
174
174
|
}, z$1.core.$strict>;
|
|
175
|
+
/**
|
|
176
|
+
* Drops, from every option of an attribute config or body, the keys
|
|
177
|
+
* `optionSchema` does not know — typically an `id` the code builder accepted
|
|
178
|
+
* without complaint (#4356). Sync stores options through it, and the schema
|
|
179
|
+
* state reads them through it, so one stale key no longer 400s the whole state.
|
|
180
|
+
* The options of a `relation()`/`document()`'s `.qualifyWith()` properties are
|
|
181
|
+
* validated by the same schema, so each property definition goes through it too.
|
|
182
|
+
*
|
|
183
|
+
* Order is kept, and a config with nothing to drop is returned as is. A list
|
|
184
|
+
* or option that is not the expected shape is left for strict validation to
|
|
185
|
+
* refuse.
|
|
186
|
+
*/
|
|
187
|
+
declare function withoutUnknownOptionKeys<T extends object>(config: T): T;
|
|
175
188
|
/**
|
|
176
189
|
* Property types whose config differs from `baseConfigSchema` only by
|
|
177
190
|
* independent optional scalars — no options array, no relation targets. Same
|
|
@@ -251,4 +264,4 @@ declare function parseAttributeConfigForCreate(type: AttributeType, input: unkno
|
|
|
251
264
|
*/
|
|
252
265
|
declare function parseAttributeConfigForUpdate(stored: Attribute, patch: Partial<AddAttributeInput>): Record<string, unknown>;
|
|
253
266
|
//#endregion
|
|
254
|
-
export { UpdateObjectInput as S, statusOptionWriteSchema as _, getAttributeConfigWriteSchema as a,
|
|
267
|
+
export { UpdateObjectInput as C, RelationOptionsResponse as S, statusOptionWriteSchema as _, getAttributeConfigWriteSchema as a, CreateCustomObjectInput as b, parseAttributeConfigForCreate as c, propertyAttributeWireSchema as d, propertySchemaSchema as f, statusGroupSchema as g, selectOptionWriteSchema as h, getAttributeConfigSchema as i, parseAttributeConfigForUpdate as l, refuseForeignKeys as m, WIRE_OMITTED_CONFIG_KEYS as n, multiselectOptionWriteSchema as o, propertySchemaWireSchema as p, attributeConfigSchemas as r, parseAttributeConfig as s, SIMPLE_PROPERTY_TYPES as t, propertyAttributeSchema as u, withoutUnknownOptionKeys as v, RelationOption as x, AddAttributeInput as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as Attribute } from "./attributes-
|
|
3
|
-
import { r as Uuid } from "./utils-
|
|
4
|
-
import { i as ValidationResult, r as ValidationMessages } from "./index-
|
|
2
|
+
import { n as Attribute } from "./attributes-DF899HOt.js";
|
|
3
|
+
import { r as Uuid } from "./utils-Cuz_wSKI.js";
|
|
4
|
+
import { i as ValidationResult, r as ValidationMessages } from "./index-OvRk1isl.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
import { IconName } from "@stndrds/constants";
|
|
7
7
|
//#region src/types/document-layout.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as Attribute } from "./attributes-
|
|
3
|
-
import { r as Uuid } from "./utils-
|
|
4
|
-
import { i as ValidationResult, r as ValidationMessages } from "./index-
|
|
2
|
+
import { n as Attribute } from "./attributes-BrWmES5w.mjs";
|
|
3
|
+
import { r as Uuid } from "./utils-Cl3b_6d8.mjs";
|
|
4
|
+
import { i as ValidationResult, r as ValidationMessages } from "./index-DggAjGTr.mjs";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
import { IconName } from "@stndrds/constants";
|
|
7
7
|
//#region src/types/document-layout.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as SearchBackendError, B as
|
|
3
|
-
import { $ as COMPUTED_FUNCTION_METADATA, A as RichTextAttribute, At as ComputedFormulaAstNode, B as UserAttribute, C as NumberUnit, Ct as isComputedFunctionName, D as RELATION_TARGET_ANY, Dt as ComputedPlan, E as PhoneAttribute, Et as ComputedOptionsSource, F as SingleRelationAttribute, Ft as ComputedFormulaParseError, G as isUniversalRelation, H as inferInverseCardinality, I as StatusAttribute, It as ComputedFormulaPathNode, J as PropertyAttribute, K as relationTargetsOf, L as StatusGroup, Lt as parseComputedFormula, M as RollupAttribute, Mt as ComputedFormulaBinaryOperator, N as RollupFunction, Nt as ComputedFormulaCallNode, O as RelationAttribute, Ot as ComputedReturnType, P as SelectAttribute, Pt as ComputedFormulaLiteralNode, Q as resolvePropertyDefinitions, R as TextAttribute, S as NumberAttribute, St as ComputedFunctionSignature, T as Phone, Tt as ComputedFieldKind, U as isAttributeSortable, V as UserReferenceType, W as isBilateralRelation, X as PropertyType, Y as PropertySchema, Z as hasOptions, _ as Location, _t as assertAcyclicComputedDependencies, a as BaseAttribute, at as evaluateComputedFormulaWithResult, b as MultiRelationAttribute, bt as COMPUTED_FUNCTION_NAMES, c as Currency, ct as compileRollupAttribute, d as DateFormat, dt as CompileComputedFormulaInput, et as ComputedFunctionCategory, f as DateRangeValue, ft as ComputedCompileAttribute, g as FormulaReturnType, gt as ComputedFormulaCompileError, h as FormulaAttribute, ht as ComputedDependencyGraphNode, i as AttributeType, it as evaluateComputedFormula, j as RichtextAttribute, jt as ComputedFormulaBinaryNode, k as RelationTarget, kt as ComputedValueType, l as CurrencyAttribute, lt as inferRollupReturnType, m as DocumentAttribute, mt as ComputedCompileSchema, n as Attribute, nt as ComputedFormulaResult, o as BilateralConfig, ot as formatComputedResult, p as DateValue, pt as ComputedCompileObject, q as OptionPropertyAttribute, r as AttributeGroup, rt as evaluateComputedAst, s as CheckboxAttribute, st as isPlainRecord, t as ATTRIBUTE_TYPES, tt as ComputedFunctionMetadata, u as DateAttribute, ut as rollupToFormulaExpression, v as LocationAttribute, vt as compileComputedFormula, w as Option, wt as ComputedDependency, x as MultiselectAttribute, xt as ComputedFunctionName, y as LocationGranularity, yt as COMPUTED_FUNCTIONS, z as TimeFormat } from "./attributes-
|
|
4
|
-
import { a as asUserId, c as indexBy, d as sameStableValue, f as serializeCanonicalJson, i as asTenantId, l as NonJsonValueError, n as UserId, o as deepEqual, p as serializeStableJson, r as Uuid, s as generateId, t as TenantId, u as canonicalStringify } from "./utils-
|
|
5
|
-
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, it as isNoValueOperator, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as filterOperatorsByTypeForGeneration, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as getRollupFilterOperators, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-
|
|
6
|
-
import { A as FolderPreset, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, M as PresetNode, O as DocumentLayout, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as MAX_PRESET_DEPTH, k as DocumentLayoutVariant, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-
|
|
9
|
-
import { t as createTextValidator } from "./text-
|
|
10
|
-
import { t as createNumberValidator } from "./number-
|
|
11
|
-
import { t as createCheckboxValidator } from "./checkbox-
|
|
12
|
-
import { t as createDateValidator } from "./date-
|
|
2
|
+
import { A as SearchBackendError, B as ValidationErrorDetail, C as RepositoryError, D as SchemaError, E as RoleNotFoundError, F as SyncCascadeError, G as isRecordReferencedError, H as isNotFoundError, I as SyncConflictError, K as isSchemaError, L as SyncError, M as SearchBackendFailureKind, N as StorageError, O as SchemaErrorCode, P as StorageOperation, R as SystemEntityImmutableError, S as RecordReferencedError, T as ReservedObjectNameError, U as isObjectReferencedError, V as isAttributeInUseError, W as isProtectedResourceError, _ as RealtimeDeliveryError, a as AttributeUsage, b as RecordNotFoundError, c as ForbiddenError, d as NotImplementedError, f as ObjectNotFoundError, g as ProtectedRoleError, h as ProtectedResourceError, i as AttributeNotFoundError, j as SearchBackendErrorOptions, k as SchemaPlanNotFoundError, l as MemoryNotFoundError, m as OrphanSystemAttributeError, n as AmbiguousSchemaChangeError, o as ConcurrentModificationError, p as ObjectReferencedError, q as isValidationError, r as AttributeInUseError, s as DuplicateError, t as AccessDeniedError, u as NotFoundError, v as RealtimeRateLimitedError, w as RepositoryOperation, x as RecordReference, y as RealtimeSubscriptionError, z as ValidationError } from "./exceptions-DrrzAhuA.mjs";
|
|
3
|
+
import { $ as COMPUTED_FUNCTION_METADATA, A as RichTextAttribute, At as ComputedFormulaAstNode, B as UserAttribute, C as NumberUnit, Ct as isComputedFunctionName, D as RELATION_TARGET_ANY, Dt as ComputedPlan, E as PhoneAttribute, Et as ComputedOptionsSource, F as SingleRelationAttribute, Ft as ComputedFormulaParseError, G as isUniversalRelation, H as inferInverseCardinality, I as StatusAttribute, It as ComputedFormulaPathNode, J as PropertyAttribute, K as relationTargetsOf, L as StatusGroup, Lt as parseComputedFormula, M as RollupAttribute, Mt as ComputedFormulaBinaryOperator, N as RollupFunction, Nt as ComputedFormulaCallNode, O as RelationAttribute, Ot as ComputedReturnType, P as SelectAttribute, Pt as ComputedFormulaLiteralNode, Q as resolvePropertyDefinitions, R as TextAttribute, S as NumberAttribute, St as ComputedFunctionSignature, T as Phone, Tt as ComputedFieldKind, U as isAttributeSortable, V as UserReferenceType, W as isBilateralRelation, X as PropertyType, Y as PropertySchema, Z as hasOptions, _ as Location, _t as assertAcyclicComputedDependencies, a as BaseAttribute, at as evaluateComputedFormulaWithResult, b as MultiRelationAttribute, bt as COMPUTED_FUNCTION_NAMES, c as Currency, ct as compileRollupAttribute, d as DateFormat, dt as CompileComputedFormulaInput, et as ComputedFunctionCategory, f as DateRangeValue, ft as ComputedCompileAttribute, g as FormulaReturnType, gt as ComputedFormulaCompileError, h as FormulaAttribute, ht as ComputedDependencyGraphNode, i as AttributeType, it as evaluateComputedFormula, j as RichtextAttribute, jt as ComputedFormulaBinaryNode, k as RelationTarget, kt as ComputedValueType, l as CurrencyAttribute, lt as inferRollupReturnType, m as DocumentAttribute, mt as ComputedCompileSchema, n as Attribute, nt as ComputedFormulaResult, o as BilateralConfig, ot as formatComputedResult, p as DateValue, pt as ComputedCompileObject, q as OptionPropertyAttribute, r as AttributeGroup, rt as evaluateComputedAst, s as CheckboxAttribute, st as isPlainRecord, t as ATTRIBUTE_TYPES, tt as ComputedFunctionMetadata, u as DateAttribute, ut as rollupToFormulaExpression, v as LocationAttribute, vt as compileComputedFormula, w as Option, wt as ComputedDependency, x as MultiselectAttribute, xt as ComputedFunctionName, y as LocationGranularity, yt as COMPUTED_FUNCTIONS, z as TimeFormat } from "./attributes-BrWmES5w.mjs";
|
|
4
|
+
import { a as asUserId, c as indexBy, d as sameStableValue, f as serializeCanonicalJson, i as asTenantId, l as NonJsonValueError, n as UserId, o as deepEqual, p as serializeStableJson, r as Uuid, s as generateId, t as TenantId, u as canonicalStringify } from "./utils-Cl3b_6d8.mjs";
|
|
5
|
+
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, it as isNoValueOperator, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as filterOperatorsByTypeForGeneration, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as getRollupFilterOperators, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-CxrR3FfQ.mjs";
|
|
6
|
+
import { A as FolderPreset, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, M as PresetNode, O as DocumentLayout, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as MAX_PRESET_DEPTH, k as DocumentLayoutVariant, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES } from "./index-Lp5dhlhc.mjs";
|
|
7
|
+
import { C as UpdateObjectInput, S as RelationOptionsResponse, _ as statusOptionWriteSchema, b as CreateCustomObjectInput, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema, v as withoutUnknownOptionKeys, x as RelationOption, y as AddAttributeInput } from "./index-Bfvc4AZB.mjs";
|
|
8
|
+
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-DggAjGTr.mjs";
|
|
9
|
+
import { t as createTextValidator } from "./text-D_rs4VYZ.mjs";
|
|
10
|
+
import { t as createNumberValidator } from "./number-C_ZN3qJO.mjs";
|
|
11
|
+
import { t as createCheckboxValidator } from "./checkbox-Clb_FZ4C.mjs";
|
|
12
|
+
import { t as createDateValidator } from "./date-CXp1zJM4.mjs";
|
|
13
13
|
import z, { z as z$1 } from "zod";
|
|
14
14
|
import { ColorId, CountryIso3, CurrencyCode, IconName, MimeType } from "@stndrds/constants";
|
|
15
15
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
@@ -840,6 +840,11 @@ export interface ApiKeyPermission {
|
|
|
840
840
|
target: string;
|
|
841
841
|
actions: Action[];
|
|
842
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* A role an API key's actor holds — the identifying slice only, never the
|
|
845
|
+
* role's permissions.
|
|
846
|
+
*/
|
|
847
|
+
export type ApiKeyRole = Pick<Role, "id" | "name" | "label">;
|
|
843
848
|
export interface ApiKey {
|
|
844
849
|
id: string;
|
|
845
850
|
tenantId: string;
|
|
@@ -853,6 +858,15 @@ export interface ApiKey {
|
|
|
853
858
|
revokedAt: string | null;
|
|
854
859
|
createdAt: string;
|
|
855
860
|
createdBy: string;
|
|
861
|
+
/**
|
|
862
|
+
* The roles the key's actor holds in this workspace, which is what the key
|
|
863
|
+
* may do. A key minted with `roleId` holds that role; one minted without it
|
|
864
|
+
* holds the copies of its creator's roles made at creation. `[]` means the
|
|
865
|
+
* key holds no role and has no access. Present on list and single-key reads;
|
|
866
|
+
* absent where the roles were not read (the creation response, or a host
|
|
867
|
+
* with no permission store) — absent is "unknown", never "no role".
|
|
868
|
+
*/
|
|
869
|
+
roles?: ApiKeyRole[];
|
|
856
870
|
}
|
|
857
871
|
/** Returned only at creation time — the only time the plaintext secret is available. */
|
|
858
872
|
export interface ApiKeyWithSecret extends ApiKey {
|
|
@@ -3984,6 +3998,9 @@ export interface AgentUIDataTypes {
|
|
|
3984
3998
|
"message-persisted": {
|
|
3985
3999
|
message: AgentSessionMessage;
|
|
3986
4000
|
};
|
|
4001
|
+
"message-persisted-ref": {
|
|
4002
|
+
messageId: string;
|
|
4003
|
+
};
|
|
3987
4004
|
"message-updated": {
|
|
3988
4005
|
message: AgentSessionMessage;
|
|
3989
4006
|
};
|
|
@@ -4880,14 +4897,6 @@ export interface AIAvailableModel {
|
|
|
4880
4897
|
isCompactionModel?: boolean;
|
|
4881
4898
|
/** If true, this model is used for fast utility generations (regex, formula, …) */
|
|
4882
4899
|
isUtilityModel?: boolean;
|
|
4883
|
-
/**
|
|
4884
|
-
* How the UI reveals this model's streamed text. `"character"` (the default
|
|
4885
|
-
* when absent) paces graphemes at reading speed — right for fast models.
|
|
4886
|
-
* `"word"` flushes text at network rhythm and fades each new word in —
|
|
4887
|
-
* right for slow models whose token cadence the pacer would turn into
|
|
4888
|
-
* jerky bursts.
|
|
4889
|
-
*/
|
|
4890
|
-
revealStyle?: "character" | "word";
|
|
4891
4900
|
}
|
|
4892
4901
|
/**
|
|
4893
4902
|
* Tool call status during execution
|
|
@@ -5752,6 +5761,16 @@ export interface DocumentFile {
|
|
|
5752
5761
|
export type DocumentWithFiles = Document & {
|
|
5753
5762
|
files: DocumentFile[];
|
|
5754
5763
|
};
|
|
5764
|
+
/**
|
|
5765
|
+
* One row of a record's drive at a given level: the document with its sub
|
|
5766
|
+
* count and its pack files (#4332). A drive-only attachment, one that exists
|
|
5767
|
+
* only as a reference edge and is named nowhere in `record.values`, has no
|
|
5768
|
+
* other source for its files, and without them its row menu cannot offer
|
|
5769
|
+
* Download. A folder has no pack: its `files` is always `[]`.
|
|
5770
|
+
*/
|
|
5771
|
+
export interface RecordDriveChild extends DocumentWithSubCount {
|
|
5772
|
+
files: DocumentFile[];
|
|
5773
|
+
}
|
|
5755
5774
|
export interface CreateDocument {
|
|
5756
5775
|
title: string;
|
|
5757
5776
|
kind?: DocumentKind;
|
|
@@ -7169,6 +7188,23 @@ export interface ConnectionCapabilities {
|
|
|
7169
7188
|
}
|
|
7170
7189
|
/** What to ask for so a re-consent keeps what the connection already holds: the held flags beyond `read`, in capability order. */
|
|
7171
7190
|
export declare function requestedCapabilities(held: ConnectionCapabilities): Exclude<ConnectorCapability, "read">[];
|
|
7191
|
+
/**
|
|
7192
|
+
* How far a connection's full-history walk (backfill) has gone.
|
|
7193
|
+
*
|
|
7194
|
+
* `processed` counts the items the current walk has stored so far, across every
|
|
7195
|
+
* continuation job; once the walk ends it keeps the final count. `total` is what
|
|
7196
|
+
* the provider says the walk will cover, captured when the walk starts: exact or
|
|
7197
|
+
* an estimate (Gmail's `resultSizeEstimate`), so `processed` may end above or
|
|
7198
|
+
* below it. It is `null` when the provider offers no total (calendars), so a
|
|
7199
|
+
* bar stays indeterminate rather than inventing a 100%. A connection that has
|
|
7200
|
+
* never walked reads `{ processed: 0, total: null, backfilling: false }`.
|
|
7201
|
+
*/
|
|
7202
|
+
export interface ConnectionSyncProgress {
|
|
7203
|
+
processed: number;
|
|
7204
|
+
total: number | null;
|
|
7205
|
+
/** True while the walk is mid-flight and continuation jobs are still due. */
|
|
7206
|
+
backfilling: boolean;
|
|
7207
|
+
}
|
|
7172
7208
|
/**
|
|
7173
7209
|
* Token-free projection of a connection for client/UI consumption.
|
|
7174
7210
|
* Access/refresh tokens NEVER cross this boundary.
|
|
@@ -7185,6 +7221,8 @@ export interface ConnectionView {
|
|
|
7185
7221
|
lastSyncedAt: string | null;
|
|
7186
7222
|
createdAt: string;
|
|
7187
7223
|
capabilities: ConnectionCapabilities;
|
|
7224
|
+
/** Backfill progress of a mail or calendar connection. */
|
|
7225
|
+
syncProgress: ConnectionSyncProgress;
|
|
7188
7226
|
}
|
|
7189
7227
|
/** Scope a connection is created under. Implied by the originating settings section. */
|
|
7190
7228
|
export type ConnectorScope = "actor" | "tenant";
|
|
@@ -7239,6 +7277,15 @@ export declare function isMailProvider(provider: string): provider is EmailProvi
|
|
|
7239
7277
|
* (#1907) — do not merge them back.
|
|
7240
7278
|
*/
|
|
7241
7279
|
export type MailboxAccountVisibility = "shared" | "private";
|
|
7280
|
+
/**
|
|
7281
|
+
* The label a message the provider still holds as a draft carries in
|
|
7282
|
+
* `MailboxEmail.labels`: Gmail's own `DRAFT` system label, and the one the
|
|
7283
|
+
* Graph parser derives from Outlook's `isDraft` (#4353). Unrelated to
|
|
7284
|
+
* `MailDraft`, the composer's local draft.
|
|
7285
|
+
*/
|
|
7286
|
+
export declare const PROVIDER_DRAFT_LABEL = "DRAFT";
|
|
7287
|
+
/** Whether a stored message is a provider draft — Gmail or Outlook alike. */
|
|
7288
|
+
export declare function isProviderDraft(labels: readonly string[]): boolean;
|
|
7242
7289
|
export type EmailDirection = "inbound" | "outbound";
|
|
7243
7290
|
export type MailboxReadState = "all" | "unread" | "read";
|
|
7244
7291
|
export type ConnectionStatus = "active" | "reauth_required" | "error" | "disconnected";
|
|
@@ -9001,11 +9048,26 @@ declare class StatusAttributeBuilder<TName extends string, TOptions extends read
|
|
|
9001
9048
|
/**
|
|
9002
9049
|
* Set all options at once (preserves literal types for values)
|
|
9003
9050
|
*/
|
|
9004
|
-
options<const T extends readonly Option[]>(value: T): StatusAttributeBuilder<TName, T, TRequired>;
|
|
9005
|
-
option(config:
|
|
9051
|
+
options<const T extends readonly Option[]>(value: T & ExactOptions<T>): StatusAttributeBuilder<TName, T, TRequired>;
|
|
9052
|
+
option<const O extends Option>(config: O & ExactOption<O>): this;
|
|
9006
9053
|
required(): StatusAttributeBuilder<TName, TOptions, true>;
|
|
9007
9054
|
optional(): StatusAttributeBuilder<TName, TOptions, false>;
|
|
9008
9055
|
}
|
|
9056
|
+
/**
|
|
9057
|
+
* Every element of `T` with the keys an {@link Option} does not have typed as
|
|
9058
|
+
* `never`. A generic constraint does no excess-property check, so
|
|
9059
|
+
* `{ id, value, label }` satisfied `readonly Option[]`, sync stored `id`, and
|
|
9060
|
+
* the schema state then answered 400 for the whole tenant (#4356). Refused at
|
|
9061
|
+
* the type level only (#4413): the storage strip from #4412 still guards
|
|
9062
|
+
* whatever reaches it at runtime.
|
|
9063
|
+
*/
|
|
9064
|
+
type ExactOptions<T extends readonly Option[]> = { readonly [K in keyof T]: T[K] & ExactOption<T[K]>; };
|
|
9065
|
+
/**
|
|
9066
|
+
* The keys of `O` an {@link Option} does not have, typed as `never`. A fresh
|
|
9067
|
+
* literal gets an excess-property check against `Option`, a declared object
|
|
9068
|
+
* does not, so `.option(declared)` needs this as much as `.options()` does.
|
|
9069
|
+
*/
|
|
9070
|
+
type ExactOption<O> = Record<Exclude<keyof O, keyof Option>, never>;
|
|
9009
9071
|
export declare function status<TName extends string>(config: TypedBuilderConfig<TName>): StatusAttributeBuilder<TName, Option[], false>;
|
|
9010
9072
|
declare class SelectAttributeBuilder<TName extends string, TOptions extends readonly Option[] = Option[], TRequired extends boolean = false> extends BaseAttributeBuilder<SelectAttribute> {
|
|
9011
9073
|
readonly _types: {
|
|
@@ -9031,8 +9093,8 @@ declare class SelectAttributeBuilder<TName extends string, TOptions extends read
|
|
|
9031
9093
|
/**
|
|
9032
9094
|
* Set all options at once (preserves literal types for values)
|
|
9033
9095
|
*/
|
|
9034
|
-
options<const T extends readonly Option[]>(value: T): SelectAttributeBuilder<TName, T, TRequired>;
|
|
9035
|
-
option(config:
|
|
9096
|
+
options<const T extends readonly Option[]>(value: T & ExactOptions<T>): SelectAttributeBuilder<TName, T, TRequired>;
|
|
9097
|
+
option<const O extends Option>(config: O & ExactOption<O>): this;
|
|
9036
9098
|
renderAs(value: "badges"): this;
|
|
9037
9099
|
required(): SelectAttributeBuilder<TName, TOptions, true>;
|
|
9038
9100
|
optional(): SelectAttributeBuilder<TName, TOptions, false>;
|
|
@@ -9062,8 +9124,8 @@ declare class MultiselectAttributeBuilder<TName extends string, TOptions extends
|
|
|
9062
9124
|
/**
|
|
9063
9125
|
* Set all options at once (preserves literal types for values)
|
|
9064
9126
|
*/
|
|
9065
|
-
options<const T extends readonly Option[]>(value: T): MultiselectAttributeBuilder<TName, T, TRequired>;
|
|
9066
|
-
option(config:
|
|
9127
|
+
options<const T extends readonly Option[]>(value: T & ExactOptions<T>): MultiselectAttributeBuilder<TName, T, TRequired>;
|
|
9128
|
+
option<const O extends Option>(config: O & ExactOption<O>): this;
|
|
9067
9129
|
renderAs(value: "badges"): this;
|
|
9068
9130
|
required(): MultiselectAttributeBuilder<TName, TOptions, true>;
|
|
9069
9131
|
optional(): MultiselectAttributeBuilder<TName, TOptions, false>;
|
|
@@ -9385,7 +9447,7 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
9385
9447
|
* Required when function="original" and target is select/status/multiselect
|
|
9386
9448
|
* @param options - The options array from the target attribute
|
|
9387
9449
|
*/
|
|
9388
|
-
targetOptions(options:
|
|
9450
|
+
targetOptions<const T extends readonly Option[]>(options: T & ExactOptions<T>): this;
|
|
9389
9451
|
/**
|
|
9390
9452
|
* Set the currency code a sum/avg over a currency target renders with
|
|
9391
9453
|
* (#2644). Mirror of the target attribute's `defaultCurrency` — the stored
|
|
@@ -12867,6 +12929,98 @@ export declare function assertSchemaSourceId(sourceId: string): void;
|
|
|
12867
12929
|
*/
|
|
12868
12930
|
export declare function markdownToPlainText(markdown: string): string;
|
|
12869
12931
|
//#endregion
|
|
12932
|
+
//#region src/utils/read-artifact-result.d.ts
|
|
12933
|
+
/**
|
|
12934
|
+
* A published result as it reads BACK, which is not quite what may be written.
|
|
12935
|
+
*
|
|
12936
|
+
* `kind` is whatever was stored. A newer server can publish a kind this client
|
|
12937
|
+
* has not shipped yet, and refusing the whole value over that made the artifact
|
|
12938
|
+
* render as nothing at all — the reader was told an artifact existed and saw no
|
|
12939
|
+
* artifact (#4075). Karl's ruling of 2026-09-21: visible and degraded.
|
|
12940
|
+
*
|
|
12941
|
+
* `PublishArtifactResult` itself stays closed. This type describes history, not
|
|
12942
|
+
* what the product may emit, and the two are genuinely different questions —
|
|
12943
|
+
* which is also why the annotation below stays honest instead of being cast
|
|
12944
|
+
* away. A schema that needs a cast to claim its own return type has stopped
|
|
12945
|
+
* validating what it says it validates.
|
|
12946
|
+
*/
|
|
12947
|
+
type StoredArtifactResult = Omit<PublishArtifactResult, "kind"> & {
|
|
12948
|
+
kind: StoredArtifactKind;
|
|
12949
|
+
};
|
|
12950
|
+
/**
|
|
12951
|
+
* Narrows an untrusted persisted tool result.
|
|
12952
|
+
*
|
|
12953
|
+
* Strict in every field but `kind`: a value that fails for any other reason is
|
|
12954
|
+
* still refused whole.
|
|
12955
|
+
*/
|
|
12956
|
+
export declare function readArtifactResult(value: unknown): StoredArtifactResult | null;
|
|
12957
|
+
//#endregion
|
|
12958
|
+
//#region src/utils/read-generated-image-result.d.ts
|
|
12959
|
+
/** Untrusted history must carry a real nested image receipt, never bytes or a signed URL. */
|
|
12960
|
+
export declare function readGeneratedImageResult(value: unknown): GenerateImageResult | null;
|
|
12961
|
+
//#endregion
|
|
12962
|
+
//#region src/utils/extract-touched-records.d.ts
|
|
12963
|
+
interface TouchedRecord {
|
|
12964
|
+
recordId: string;
|
|
12965
|
+
objectName: string;
|
|
12966
|
+
label: string;
|
|
12967
|
+
kind: "created" | "modified";
|
|
12968
|
+
}
|
|
12969
|
+
/**
|
|
12970
|
+
* Derives the records an agent run created or modified, from the session's
|
|
12971
|
+
* tool-call results. Dedups by `recordId`, keeping the highest-precedence
|
|
12972
|
+
* kind seen (`created` beats `modified`) while re-anchoring the entry's
|
|
12973
|
+
* position to its most recent occurrence.
|
|
12974
|
+
*/
|
|
12975
|
+
export declare function extractTouchedRecords(messages: readonly Pick<AgentSessionMessage, "role" | "parts">[]): TouchedRecord[];
|
|
12976
|
+
//#endregion
|
|
12977
|
+
//#region src/utils/extract-touched-documents.d.ts
|
|
12978
|
+
interface TouchedDocument {
|
|
12979
|
+
id: string;
|
|
12980
|
+
fileId?: string;
|
|
12981
|
+
title: string;
|
|
12982
|
+
kind: "modified" | "consulted";
|
|
12983
|
+
mimeType?: string;
|
|
12984
|
+
}
|
|
12985
|
+
/**
|
|
12986
|
+
* Derives the documents an agent run touched, from tool-call results and
|
|
12987
|
+
* assistant-message file attachments. Dedups by `id`, keeping the
|
|
12988
|
+
* highest-precedence kind seen (`modified` beats `consulted`) while
|
|
12989
|
+
* re-anchoring the entry's position to its most recent occurrence.
|
|
12990
|
+
*/
|
|
12991
|
+
export declare function extractTouchedDocuments(messages: readonly Pick<AgentSessionMessage, "role" | "parts">[]): TouchedDocument[];
|
|
12992
|
+
//#endregion
|
|
12993
|
+
//#region src/utils/extract-touched-artifacts.d.ts
|
|
12994
|
+
/**
|
|
12995
|
+
* Read back out of a conversation, so `kind` is whatever was stored — a newer
|
|
12996
|
+
* server may have published one this client does not know (#4075).
|
|
12997
|
+
*/
|
|
12998
|
+
type TouchedArtifact = StoredArtifactResult;
|
|
12999
|
+
/**
|
|
13000
|
+
* Finds immutable Artifact revisions published by the assistant. Repeated
|
|
13001
|
+
* occurrences move to their latest position and carry the latest metadata.
|
|
13002
|
+
*/
|
|
13003
|
+
export declare function extractTouchedArtifacts(messages: readonly Pick<AgentSessionMessage, "role" | "parts">[]): TouchedArtifact[];
|
|
13004
|
+
//#endregion
|
|
13005
|
+
//#region src/utils/agent-conversation-overview.d.ts
|
|
13006
|
+
interface AgentConversationOverview {
|
|
13007
|
+
touchedRecords: TouchedRecord[];
|
|
13008
|
+
touchedDocuments: TouchedDocument[];
|
|
13009
|
+
touchedArtifacts: TouchedArtifact[];
|
|
13010
|
+
openHumanRequests: Array<{
|
|
13011
|
+
messageId: string;
|
|
13012
|
+
createdAt: string;
|
|
13013
|
+
part: Extract<AgentMessagePart, {
|
|
13014
|
+
type: "tool";
|
|
13015
|
+
}>;
|
|
13016
|
+
}>;
|
|
13017
|
+
firstUserPreview: string | null;
|
|
13018
|
+
designReviewOutcomes: Array<{
|
|
13019
|
+
requestId: string;
|
|
13020
|
+
outcome: "approved" | "changesRequested" | "unknown";
|
|
13021
|
+
}>;
|
|
13022
|
+
}
|
|
13023
|
+
//#endregion
|
|
12870
13024
|
//#region src/utils/calendar-day.d.ts
|
|
12871
13025
|
/**
|
|
12872
13026
|
* A `YYYY-MM-DD` string that actually names a calendar day.
|
|
@@ -14264,6 +14418,9 @@ export declare const customDataChunkSchemas: {
|
|
|
14264
14418
|
createdAt: z$1.ZodUnion<readonly [z$1.ZodDate, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<Date, string>>]>;
|
|
14265
14419
|
}, z$1.core.$strict>;
|
|
14266
14420
|
}, z$1.core.$strict>;
|
|
14421
|
+
readonly "message-persisted-ref": z$1.ZodObject<{
|
|
14422
|
+
messageId: z$1.ZodString;
|
|
14423
|
+
}, z$1.core.$strict>;
|
|
14267
14424
|
readonly "message-updated": z$1.ZodObject<{
|
|
14268
14425
|
message: z$1.ZodObject<{
|
|
14269
14426
|
id: z$1.ZodString;
|
|
@@ -14636,10 +14793,6 @@ export declare function catalogTextModelSchema(id: string, free: boolean): z$1.Z
|
|
|
14636
14793
|
unverified: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14637
14794
|
isCompactionModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14638
14795
|
isUtilityModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14639
|
-
revealStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14640
|
-
character: "character";
|
|
14641
|
-
word: "word";
|
|
14642
|
-
}>>;
|
|
14643
14796
|
tasks: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
|
|
14644
14797
|
conversation: "conversation";
|
|
14645
14798
|
writing: "writing";
|
|
@@ -14762,4 +14915,4 @@ export declare function schemaStateSourcePayload(entries: readonly SchemaStateEn
|
|
|
14762
14915
|
export declare function parseSchemaState(input: unknown): SchemaState;
|
|
14763
14916
|
export declare function diffSchemaState(state: SchemaState): SchemaStateDiff;
|
|
14764
14917
|
//#endregion
|
|
14765
|
-
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, AmbiguousSchemaChangeError, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroup, AttributeInUseError, type AttributeLifecycleCapabilities, type AttributeLike, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRemovalContentAddress, type AttributeRemovalPlan, type AttributeRemovalView, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, AttributeUsage, BaseAttribute, type BaseOperation, type BatchGuidance, BilateralConfig, type BlockedContent, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, type CanonicalViewOperationInput, type CatalogueViolation, CheckboxAttribute, type CollectionAction, type CollectionContentDefinition, type CollectionContentSource, type CollectionSourceAddress, type ColumnReference, type ColumnsNeeded, CompileComputedFormulaInput, ComputedCompileAttribute, ComputedCompileObject, ComputedCompileSchema, ComputedDependency, ComputedDependencyGraphNode, ComputedFieldKind, ComputedFormulaAstNode, ComputedFormulaBinaryNode, ComputedFormulaBinaryOperator, ComputedFormulaCallNode, ComputedFormulaCompileError, ComputedFormulaLiteralNode, ComputedFormulaParseError, ComputedFormulaPathNode, ComputedFormulaResult, ComputedFunctionCategory, ComputedFunctionMetadata, ComputedFunctionName, ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ContentCreateMode, type ContentExtensionDefinition, type ContentField, type ContentFieldGroup, type ContentNavigation, type ContentOpenMode, type ContentPlacement, type ContentViewCatalogueCollection, type ContentViewCatalogueInput, type ContentViewCatalogueResult, type ContentViewContext, type ContentViewDefinition, type ConversationDisplayTitleInput, CreateCustomObjectInput, type CreateDBForm, type CreateDBFormSubmission, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomContentDefinition, type DBForm, type DBFormSubmission, DEFAULT_VALIDATION_MESSAGES, DateAttribute, DateFormat, DateRangeValue, DateValue, type DayMonthValue, type DefaultResolutionContext, type DefaultViewType, DocumentAttribute, DocumentLayout, DocumentLayoutVariant, type DocumentsContentDefinition, type DraftAppendCommand, type DraftAppendReceipt, type DraftCommandGuard, type DraftContentState, type DraftFocus, type DraftObjectSettings, type DraftOperationContext, type DraftPublishCommand, type DraftRefusal, type DraftSummary, type DraftViewAuthoring, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DroppedContent, DuplicateError, type DwellMode, type DynamicValue, type EdgeQuantifier, type EditingCapability, type EditingScope, type EmailsContentDefinition, type ExhaustiveDraftObjectSettings, type ExtendedFilterRule, type FilterCombinator, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagResolutionContext, FolderPreset, ForbiddenError, type FormContentDefinition, type FormDensity, FormRegistry, type FormsContentDefinition, FormulaAttribute, FormulaReturnType, type GatewayFastPricing, type GatewayPriceTier, type GatewayPricing, type KanbanCollectionContentDefinition, LIST_VIEW_TAB_VISIBILITIES, type LabelContext, type ListViewLayout, ListViewTabVisibility, type ListedObjectResolver, Location, LocationAttribute, type LocationFilterProperty, LocationGranularity, MAX_PRESET_DEPTH, type MeetingsContentDefinition, MemoryNotFoundError, MultiRelationAttribute, MultiselectAttribute, type MutationReceipt, NO_VALUE_OPERATORS, type NamedTarget, type NextStep, type NoValueOperator, NonJsonValueError, NotFoundError, NotImplementedError, NumberAttribute, NumberUnit, OPERATORS_BY_TYPE, ObjectAttribute, ObjectDefinition, ObjectNotFoundError, ObjectRecord, ObjectReferencedError, type OperationDef, type OperationFamily, type OperationPace, Option, OptionPropertyAttribute, OrphanSystemAttributeError, Phone, PhoneAttribute, type PhoneFilterValue, PresetNode, PropertyAttribute, PropertySchema, PropertyType, type ProposalRevision, type ProposalTarget, ProtectedResourceError, ProtectedRoleError, type QueryState, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, RealtimeDeliveryError, RealtimeRateLimitedError, RealtimeSubscriptionError, type ReconcileRelationAttributesInput, type ReconciledRelationAttributes, RecordNotFoundError, RecordReference, RecordReferencedError, RelationAttribute, RelationOption, RelationOptionsResponse, type RelationPair, RelationTarget, type RelativeDateValue, type RemovedAttribute, type RenameDraftAttributeOperation, RepositoryError, RepositoryOperation, ReservedAttributeName, ReservedObjectName, ReservedObjectNameError, ResourceVisibility, RichTextAttribute, RichtextAttribute, type RichtextContentDefinition, RoleNotFoundError, RollupAttribute, RollupFunction, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, SYSTEM_FIELD_NAMES, type SamplePublication, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, type ScrubbedContent, SearchBackendError, SelectAttribute, SingleRelationAttribute, type SortDirection, type SortRule, type StandardSchemaV1, StatusAttribute, StatusGroup, StorageError, StorageOperation, type StoredContentDefinition, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, SystemFieldName, type TenantId, TextAttribute, TimeFormat, Timestamps, type UpdateDBForm, type UpdateDBFormSubmission, UpdateObjectInput, UserAttribute, type UserId, type UserLike, UserReferenceType, type Uuid, ValidationError, ValidationErrorDetail, type ValidationMessages, type ValueRef, type ViewContentDefinition, type ViewOperation, type ViewRead, WIRE_OMITTED_CONFIG_KEYS, asTenantId, asUserId, assertAcyclicComputedDependencies, attributeConfigSchemas, canonicalStringify, collectionContentSourceSchema, colorIdSchema, columnsSchema, compileComputedFormula, compileRollupAttribute, contentViewDefinitionSchema, contentViewDefinitionSchemaFor, createCheckboxValidator, createDateValidator, createFormAttributeValidator, createNumberValidator, createTextValidator, deepEqual, displayAttributesSchema, draftContentViewDefinitionSchema, draftContentViewDefinitionSchemaFor, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, filterOperatorsByTypeForGeneration, filterStateSchema, formatComputedResult, formatZodErrors, generateId, getRollupFilterOperators, hasOptions, iconNameSchema, indexBy, inferInverseCardinality, inferRollupReturnType, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isComputedFunctionName, isNoValueOperator, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isSchemaError, isUniversalRelation, isValidationError, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, parseResourceVisibility, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, relationTargetsOf, resolvePropertyDefinitions, rollupToFormulaExpression, sameStableValue, selectOptionWriteSchema, serializeCanonicalJson, serializeStableJson, sortsSchema, statusGroupSchema, statusOptionWriteSchema, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|
|
14918
|
+
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, type AgentConversationOverview, AmbiguousSchemaChangeError, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroup, AttributeInUseError, type AttributeLifecycleCapabilities, type AttributeLike, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRemovalContentAddress, type AttributeRemovalPlan, type AttributeRemovalView, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, AttributeUsage, BaseAttribute, type BaseOperation, type BatchGuidance, BilateralConfig, type BlockedContent, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, type CanonicalViewOperationInput, type CatalogueViolation, CheckboxAttribute, type CollectionAction, type CollectionContentDefinition, type CollectionContentSource, type CollectionSourceAddress, type ColumnReference, type ColumnsNeeded, CompileComputedFormulaInput, ComputedCompileAttribute, ComputedCompileObject, ComputedCompileSchema, ComputedDependency, ComputedDependencyGraphNode, ComputedFieldKind, ComputedFormulaAstNode, ComputedFormulaBinaryNode, ComputedFormulaBinaryOperator, ComputedFormulaCallNode, ComputedFormulaCompileError, ComputedFormulaLiteralNode, ComputedFormulaParseError, ComputedFormulaPathNode, ComputedFormulaResult, ComputedFunctionCategory, ComputedFunctionMetadata, ComputedFunctionName, ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ContentCreateMode, type ContentExtensionDefinition, type ContentField, type ContentFieldGroup, type ContentNavigation, type ContentOpenMode, type ContentPlacement, type ContentViewCatalogueCollection, type ContentViewCatalogueInput, type ContentViewCatalogueResult, type ContentViewContext, type ContentViewDefinition, type ConversationDisplayTitleInput, CreateCustomObjectInput, type CreateDBForm, type CreateDBFormSubmission, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomContentDefinition, type DBForm, type DBFormSubmission, DEFAULT_VALIDATION_MESSAGES, DateAttribute, DateFormat, DateRangeValue, DateValue, type DayMonthValue, type DefaultResolutionContext, type DefaultViewType, DocumentAttribute, DocumentLayout, DocumentLayoutVariant, type DocumentsContentDefinition, type DraftAppendCommand, type DraftAppendReceipt, type DraftCommandGuard, type DraftContentState, type DraftFocus, type DraftObjectSettings, type DraftOperationContext, type DraftPublishCommand, type DraftRefusal, type DraftSummary, type DraftViewAuthoring, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DroppedContent, DuplicateError, type DwellMode, type DynamicValue, type EdgeQuantifier, type EditingCapability, type EditingScope, type EmailsContentDefinition, type ExhaustiveDraftObjectSettings, type ExtendedFilterRule, type FilterCombinator, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagResolutionContext, FolderPreset, ForbiddenError, type FormContentDefinition, type FormDensity, FormRegistry, type FormsContentDefinition, FormulaAttribute, FormulaReturnType, type GatewayFastPricing, type GatewayPriceTier, type GatewayPricing, type KanbanCollectionContentDefinition, LIST_VIEW_TAB_VISIBILITIES, type LabelContext, type ListViewLayout, ListViewTabVisibility, type ListedObjectResolver, Location, LocationAttribute, type LocationFilterProperty, LocationGranularity, MAX_PRESET_DEPTH, type MeetingsContentDefinition, MemoryNotFoundError, MultiRelationAttribute, MultiselectAttribute, type MutationReceipt, NO_VALUE_OPERATORS, type NamedTarget, type NextStep, type NoValueOperator, NonJsonValueError, NotFoundError, NotImplementedError, NumberAttribute, NumberUnit, OPERATORS_BY_TYPE, ObjectAttribute, ObjectDefinition, ObjectNotFoundError, ObjectRecord, ObjectReferencedError, type OperationDef, type OperationFamily, type OperationPace, Option, OptionPropertyAttribute, OrphanSystemAttributeError, Phone, PhoneAttribute, type PhoneFilterValue, PresetNode, PropertyAttribute, PropertySchema, PropertyType, type ProposalRevision, type ProposalTarget, ProtectedResourceError, ProtectedRoleError, type QueryState, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, RealtimeDeliveryError, RealtimeRateLimitedError, RealtimeSubscriptionError, type ReconcileRelationAttributesInput, type ReconciledRelationAttributes, RecordNotFoundError, RecordReference, RecordReferencedError, RelationAttribute, RelationOption, RelationOptionsResponse, type RelationPair, RelationTarget, type RelativeDateValue, type RemovedAttribute, type RenameDraftAttributeOperation, RepositoryError, RepositoryOperation, ReservedAttributeName, ReservedObjectName, ReservedObjectNameError, ResourceVisibility, RichTextAttribute, RichtextAttribute, type RichtextContentDefinition, RoleNotFoundError, RollupAttribute, RollupFunction, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, SYSTEM_FIELD_NAMES, type SamplePublication, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, type ScrubbedContent, SearchBackendError, SearchBackendErrorOptions, SearchBackendFailureKind, SelectAttribute, SingleRelationAttribute, type SortDirection, type SortRule, type StandardSchemaV1, StatusAttribute, StatusGroup, StorageError, StorageOperation, type StoredArtifactResult, type StoredContentDefinition, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, SystemFieldName, type TenantId, TextAttribute, TimeFormat, Timestamps, type TouchedArtifact, type TouchedDocument, type TouchedRecord, type UpdateDBForm, type UpdateDBFormSubmission, UpdateObjectInput, UserAttribute, type UserId, type UserLike, UserReferenceType, type Uuid, ValidationError, ValidationErrorDetail, type ValidationMessages, type ValueRef, type ViewContentDefinition, type ViewOperation, type ViewRead, WIRE_OMITTED_CONFIG_KEYS, asTenantId, asUserId, assertAcyclicComputedDependencies, attributeConfigSchemas, canonicalStringify, collectionContentSourceSchema, colorIdSchema, columnsSchema, compileComputedFormula, compileRollupAttribute, contentViewDefinitionSchema, contentViewDefinitionSchemaFor, createCheckboxValidator, createDateValidator, createFormAttributeValidator, createNumberValidator, createTextValidator, deepEqual, displayAttributesSchema, draftContentViewDefinitionSchema, draftContentViewDefinitionSchemaFor, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, filterOperatorsByTypeForGeneration, filterStateSchema, formatComputedResult, formatZodErrors, generateId, getRollupFilterOperators, hasOptions, iconNameSchema, indexBy, inferInverseCardinality, inferRollupReturnType, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isComputedFunctionName, isNoValueOperator, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isSchemaError, isUniversalRelation, isValidationError, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, parseResourceVisibility, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, relationTargetsOf, resolvePropertyDefinitions, rollupToFormulaExpression, sameStableValue, selectOptionWriteSchema, serializeCanonicalJson, serializeStableJson, sortsSchema, statusGroupSchema, statusOptionWriteSchema, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, withoutUnknownOptionKeys };
|