@stndrds/schema 1.0.0-alpha.333 → 1.0.0-alpha.336
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-BLytyk5I.d.mts → all-Cen87Ixs.d.mts} +12 -11
- package/dist/{all-Cf6oNz9y.d.ts → all-SqlYyhI8.d.ts} +12 -11
- package/dist/{checkbox-DIk051px.d.ts → checkbox-3svoI60z.d.ts} +2 -2
- package/dist/{checkbox-DGuL9Z3k.d.mts → checkbox-B0drQb0k.d.mts} +2 -2
- package/dist/config-BvijG1IN.js +13 -0
- package/dist/{config-CHSqDLhx.mjs → config-aeELOnWd.mjs} +5 -5
- package/dist/{date-D7P9JtGg.d.mts → date-CORVrilQ.d.mts} +2 -2
- package/dist/{date-B4ZumBBO.d.ts → date-u9Xa5EkT.d.ts} +2 -2
- package/dist/{exceptions-DG_iMvYs.d.mts → exceptions-LUovX1Xh.d.mts} +1 -0
- package/dist/{exceptions-DG_iMvYs.d.ts → exceptions-LUovX1Xh.d.ts} +1 -0
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-B6DXIuf2.d.ts → index-BcjEnWLU.d.ts} +2 -2
- package/dist/{index-ZnCTYc93.d.ts → index-Bsfq_aDE.d.ts} +1 -1
- package/dist/{index-gM_g_Y_H.d.mts → index-BxlwF7Mg.d.mts} +1 -1
- package/dist/{index-CePzb28P.d.ts → index-C0VbD25z.d.ts} +1 -1
- package/dist/{index-CK7gaSRm.d.mts → index-CmGHLozK.d.mts} +1 -1
- package/dist/{index--ukNqScY.d.mts → index-CxNwSJ7O.d.mts} +2 -2
- package/dist/index.d.mts +119 -30
- package/dist/index.d.ts +119 -30
- package/dist/index.js +2 -2
- package/dist/index.mjs +9 -9
- package/dist/{number-DYExtkZN.d.mts → number-BhkK5Nuu.d.mts} +2 -2
- package/dist/{number-BMX9OJ46.d.ts → number-dfPBKJ09.d.ts} +2 -2
- package/dist/{object-CUkTFj0u.js → object-BfGtzS7g.js} +2 -2
- package/dist/object-D-aDCAHn.mjs +4 -0
- package/dist/{phone-CLsxU8tv.js → phone-CUgSbH-z.js} +1 -1
- package/dist/{phone-DfXAzPpD.mjs → phone-X_nKo0qe.mjs} +1 -1
- package/dist/{text-BwN_Y1Du.d.mts → text-B8oxuO3F.d.mts} +2 -2
- package/dist/{text-6w5qf9V1.d.ts → text-DF7MUSRq.d.ts} +2 -2
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +4 -4
- package/dist/validation/all.d.ts +4 -4
- 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/phone.js +1 -1
- package/dist/validation/complex/phone.mjs +1 -1
- 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 +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- 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-D-TbyG6j.js → view-config.schema-4QhPV9el.js} +1 -1
- package/dist/{view-config.schema-CcfExWMt.mjs → view-config.schema-CMjVNRCh.mjs} +1 -1
- package/package.json +2 -2
- package/dist/config-CFYxsRcx.js +0 -13
- package/dist/object-B9V5JZzh.mjs +0 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { $ as BilateralConfig, $t as indexBy, A as StorageError, An as ComputedDependency, At as StatusGroup, B as isObjectReferencedError, Bn as ComputedFormulaLiteralNode, Bt as OptionPropertyAttribute, C as RepositoryOperation, Cn as assertAcyclicComputedDependencies, Ct as RichTextAttribute, D as SchemaErrorCode, Dn as ComputedFunctionName, Dt as SelectAttribute, E as SchemaError, En as COMPUTED_FUNCTION_NAMES, Et as RollupFunction, F as SystemEntityImmutableError, Fn as ComputedValueType, Ft as inferInverseCardinality, G as BuiltInTransform, Gt as resolvePropertyDefinitions, H as isRecordReferencedError, Hn as ComputedFormulaPathNode, Ht as PropertySchema, I as ValidationError, In as ComputedFormulaAstNode, It as isAttributeSortable, J as ATTRIBUTE_TYPES, Jt as Uuid, K as MigrationDefinition, Kt as TenantId, L as ValidationErrorDetail, Ln as ComputedFormulaBinaryNode, Lt as isBilateralRelation, M as SyncCascadeError, Mn as ComputedOptionsSource, Mt as TimeFormat, N as SyncConflictError, Nn as ComputedPlan, Nt as UserAttribute, O as SchemaPlanNotFoundError, On as ComputedFunctionSignature, Ot as SingleRelationAttribute, P as SyncError, Pn as ComputedReturnType, Pt as UserReferenceType, Q as BaseAttribute, Qt as generateId, R as isAttributeInUseError, Rn as ComputedFormulaBinaryOperator, Rt as isUniversalRelation, S as RepositoryError, Sn as ComputedFormulaCompileError, St as RelationTarget, T as RoleNotFoundError, Tn as COMPUTED_FUNCTIONS, Tt as RollupAttribute, U as isSchemaError, Un as parseComputedFormula, Ut as PropertyType, V as isProtectedResourceError, Vn as ComputedFormulaParseError, Vt as PropertyAttribute, W as isValidationError, Wt as hasOptions, X as AttributeGroup, Xt as asUserId, Y as Attribute, Yt as asTenantId, Z as AttributeType, Zt as deepEqual, _ as ProtectedResourceError, _n as CompileComputedFormulaInput, _t as Option, a as ChangeTypeNotSupportedError, an as COMPUTED_FUNCTION_METADATA, at as DateRangeValue, b as RecordReference, bn as ComputedCompileSchema, bt as RELATION_TARGET_ANY, c as DuplicateError, cn as ComputedFormulaResult, ct as FormulaAttribute, d as MigrationTimeoutError, dn as evaluateComputedFormulaWithResult, dt as LocationAttribute, en as NonJsonValueError, et as CheckboxAttribute, f as NotFoundError, fn as formatComputedResult, ft as LocationGranularity, g as OrphanSystemAttributeError, gn as rollupToFormulaExpression, gt as NumberUnit, h as ObjectReferencedError, hn as inferRollupReturnType, ht as NumberAttribute, i as AttributeUsage, in as serializeStableJson, it as DateFormat, j as StorageOperation, jn as ComputedFieldKind, jt as TextAttribute, k as SearchBackendError, kn as isComputedFunctionName, kt as StatusAttribute, l as ForbiddenError, ln as evaluateComputedAst, lt as FormulaReturnType, m as ObjectNotFoundError, mn as compileRollupAttribute, mt as MultiselectAttribute, n as AttributeInUseError, nn as sameStableValue, nt as CurrencyAttribute, o as ConcurrentModificationError, on as ComputedFunctionCategory, ot as DateValue, p as NotImplementedError, pn as isPlainRecord, pt as MultiRelationAttribute, q as SchemaOperation, qt as UserId, r as AttributeNotFoundError, rn as serializeCanonicalJson, rt as DateAttribute, s as DestructiveSyncNotAllowedError, sn as ComputedFunctionMetadata, st as DocumentAttribute, t as AccessDeniedError, tn as canonicalStringify, tt as Currency, u as MemoryNotFoundError, un as evaluateComputedFormula, ut as Location, v as ProtectedRoleError, vn as ComputedCompileAttribute, vt as Phone, w as ReservedObjectNameError, wn as compileComputedFormula, wt as RichtextAttribute, x as RecordReferencedError, xn as ComputedDependencyGraphNode, xt as RelationAttribute, y as RecordNotFoundError, yn as ComputedCompileObject, yt as PhoneAttribute, z as isNotFoundError, zn as ComputedFormulaCallNode, zt as relationTargetsOf } from "./exceptions-
|
|
3
|
-
import { $ as QueryState, A as FormContentDefinition, B as DayMonthValue, C as ContentOpenMode, D as CustomContentDefinition, E as ContentViewDefinition, F as MeetingsContentDefinition, G as FilterOperator, H as EdgeQuantifier, I as RichtextContentDefinition, J as FilterValue, K as FilterRule, L as ViewContentDefinition, M as FormsContentDefinition, N as KanbanCollectionContentDefinition, O as DocumentsContentDefinition, P as ListViewLayout, Q as PhoneFilterValue, R as ViewRead, S as ContentFieldGroup, T as ContentViewContext, U as ExtendedFilterRule, V as DynamicValue, W as FilterCombinator, X as NoValueOperator, Y as NO_VALUE_OPERATORS, Z as OPERATORS_BY_TYPE, _ as CollectionContentDefinition, a as contentViewDefinitionSchemaFor, at as isNoValueOperator, b as ContentCreateMode, c as draftContentViewDefinitionSchemaFor, d as sortsSchema, et as RelativeDateValue, f as colorIdSchema, g as CollectionAction, h as ActivityContentDefinition, i as contentViewDefinitionSchema, it as getRollupFilterOperators, j as FormDensity, k as EmailsContentDefinition, l as filterStateSchema, m as SCHEMA_LIMITS, n as collectionContentSourceSchema, nt as SortRule, o as displayAttributesSchema, p as iconNameSchema, q as FilterState, r as columnsSchema, rt as filterOperatorsByTypeForGeneration, s as draftContentViewDefinitionSchema, t as AsideRule, tt as SortDirection, u as publishedViewContentDefinitionSchema, v as CollectionContentSource, w as ContentPlacement, x as ContentField, y as ColumnReference, z as CurrencyFilterValue } from "./all-
|
|
4
|
-
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
|
|
5
|
-
import { S as UpdateObjectInput, _ as statusOptionWriteSchema, b as RelationOption, 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 AddAttributeInput, x as RelationOptionsResponse, y as CreateCustomObjectInput } from "./index-
|
|
6
|
-
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-
|
|
7
|
-
import { t as createTextValidator } from "./text-
|
|
8
|
-
import { t as createNumberValidator } from "./number-
|
|
9
|
-
import { t as createCheckboxValidator } from "./checkbox-
|
|
10
|
-
import { t as createDateValidator } from "./date-
|
|
2
|
+
import { $ as BilateralConfig, $t as indexBy, A as StorageError, An as ComputedDependency, At as StatusGroup, B as isObjectReferencedError, Bn as ComputedFormulaLiteralNode, Bt as OptionPropertyAttribute, C as RepositoryOperation, Cn as assertAcyclicComputedDependencies, Ct as RichTextAttribute, D as SchemaErrorCode, Dn as ComputedFunctionName, Dt as SelectAttribute, E as SchemaError, En as COMPUTED_FUNCTION_NAMES, Et as RollupFunction, F as SystemEntityImmutableError, Fn as ComputedValueType, Ft as inferInverseCardinality, G as BuiltInTransform, Gt as resolvePropertyDefinitions, H as isRecordReferencedError, Hn as ComputedFormulaPathNode, Ht as PropertySchema, I as ValidationError, In as ComputedFormulaAstNode, It as isAttributeSortable, J as ATTRIBUTE_TYPES, Jt as Uuid, K as MigrationDefinition, Kt as TenantId, L as ValidationErrorDetail, Ln as ComputedFormulaBinaryNode, Lt as isBilateralRelation, M as SyncCascadeError, Mn as ComputedOptionsSource, Mt as TimeFormat, N as SyncConflictError, Nn as ComputedPlan, Nt as UserAttribute, O as SchemaPlanNotFoundError, On as ComputedFunctionSignature, Ot as SingleRelationAttribute, P as SyncError, Pn as ComputedReturnType, Pt as UserReferenceType, Q as BaseAttribute, Qt as generateId, R as isAttributeInUseError, Rn as ComputedFormulaBinaryOperator, Rt as isUniversalRelation, S as RepositoryError, Sn as ComputedFormulaCompileError, St as RelationTarget, T as RoleNotFoundError, Tn as COMPUTED_FUNCTIONS, Tt as RollupAttribute, U as isSchemaError, Un as parseComputedFormula, Ut as PropertyType, V as isProtectedResourceError, Vn as ComputedFormulaParseError, Vt as PropertyAttribute, W as isValidationError, Wt as hasOptions, X as AttributeGroup, Xt as asUserId, Y as Attribute, Yt as asTenantId, Z as AttributeType, Zt as deepEqual, _ as ProtectedResourceError, _n as CompileComputedFormulaInput, _t as Option, a as ChangeTypeNotSupportedError, an as COMPUTED_FUNCTION_METADATA, at as DateRangeValue, b as RecordReference, bn as ComputedCompileSchema, bt as RELATION_TARGET_ANY, c as DuplicateError, cn as ComputedFormulaResult, ct as FormulaAttribute, d as MigrationTimeoutError, dn as evaluateComputedFormulaWithResult, dt as LocationAttribute, en as NonJsonValueError, et as CheckboxAttribute, f as NotFoundError, fn as formatComputedResult, ft as LocationGranularity, g as OrphanSystemAttributeError, gn as rollupToFormulaExpression, gt as NumberUnit, h as ObjectReferencedError, hn as inferRollupReturnType, ht as NumberAttribute, i as AttributeUsage, in as serializeStableJson, it as DateFormat, j as StorageOperation, jn as ComputedFieldKind, jt as TextAttribute, k as SearchBackendError, kn as isComputedFunctionName, kt as StatusAttribute, l as ForbiddenError, ln as evaluateComputedAst, lt as FormulaReturnType, m as ObjectNotFoundError, mn as compileRollupAttribute, mt as MultiselectAttribute, n as AttributeInUseError, nn as sameStableValue, nt as CurrencyAttribute, o as ConcurrentModificationError, on as ComputedFunctionCategory, ot as DateValue, p as NotImplementedError, pn as isPlainRecord, pt as MultiRelationAttribute, q as SchemaOperation, qt as UserId, r as AttributeNotFoundError, rn as serializeCanonicalJson, rt as DateAttribute, s as DestructiveSyncNotAllowedError, sn as ComputedFunctionMetadata, st as DocumentAttribute, t as AccessDeniedError, tn as canonicalStringify, tt as Currency, u as MemoryNotFoundError, un as evaluateComputedFormula, ut as Location, v as ProtectedRoleError, vn as ComputedCompileAttribute, vt as Phone, w as ReservedObjectNameError, wn as compileComputedFormula, wt as RichtextAttribute, x as RecordReferencedError, xn as ComputedDependencyGraphNode, xt as RelationAttribute, y as RecordNotFoundError, yn as ComputedCompileObject, yt as PhoneAttribute, z as isNotFoundError, zn as ComputedFormulaCallNode, zt as relationTargetsOf } from "./exceptions-LUovX1Xh.mjs";
|
|
3
|
+
import { $ as QueryState, A as FormContentDefinition, B as DayMonthValue, C as ContentOpenMode, D as CustomContentDefinition, E as ContentViewDefinition, F as MeetingsContentDefinition, G as FilterOperator, H as EdgeQuantifier, I as RichtextContentDefinition, J as FilterValue, K as FilterRule, L as ViewContentDefinition, M as FormsContentDefinition, N as KanbanCollectionContentDefinition, O as DocumentsContentDefinition, P as ListViewLayout, Q as PhoneFilterValue, R as ViewRead, S as ContentFieldGroup, T as ContentViewContext, U as ExtendedFilterRule, V as DynamicValue, W as FilterCombinator, X as NoValueOperator, Y as NO_VALUE_OPERATORS, Z as OPERATORS_BY_TYPE, _ as CollectionContentDefinition, a as contentViewDefinitionSchemaFor, at as isNoValueOperator, b as ContentCreateMode, c as draftContentViewDefinitionSchemaFor, d as sortsSchema, et as RelativeDateValue, f as colorIdSchema, g as CollectionAction, h as ActivityContentDefinition, i as contentViewDefinitionSchema, it as getRollupFilterOperators, j as FormDensity, k as EmailsContentDefinition, l as filterStateSchema, m as SCHEMA_LIMITS, n as collectionContentSourceSchema, nt as SortRule, o as displayAttributesSchema, p as iconNameSchema, q as FilterState, r as columnsSchema, rt as filterOperatorsByTypeForGeneration, s as draftContentViewDefinitionSchema, t as AsideRule, tt as SortDirection, u as publishedViewContentDefinitionSchema, v as CollectionContentSource, w as ContentPlacement, x as ContentField, y as ColumnReference, z as CurrencyFilterValue } from "./all-Cen87Ixs.mjs";
|
|
4
|
+
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-CxNwSJ7O.mjs";
|
|
5
|
+
import { S as UpdateObjectInput, _ as statusOptionWriteSchema, b as RelationOption, 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 AddAttributeInput, x as RelationOptionsResponse, y as CreateCustomObjectInput } from "./index-BxlwF7Mg.mjs";
|
|
6
|
+
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-CmGHLozK.mjs";
|
|
7
|
+
import { t as createTextValidator } from "./text-B8oxuO3F.mjs";
|
|
8
|
+
import { t as createNumberValidator } from "./number-BhkK5Nuu.mjs";
|
|
9
|
+
import { t as createCheckboxValidator } from "./checkbox-B0drQb0k.mjs";
|
|
10
|
+
import { t as createDateValidator } from "./date-CORVrilQ.mjs";
|
|
11
11
|
import { ColorId, CountryIso3, CurrencyCode, IconName, MimeType } from "@stndrds/constants";
|
|
12
12
|
import z, { z as z$1 } from "zod";
|
|
13
13
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
@@ -1083,12 +1083,12 @@ export declare const PRESENTATION_PROPERTIES: readonly ["label", "description",
|
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Type of resource that can be audited
|
|
1085
1085
|
*/
|
|
1086
|
-
export declare const AUDIT_RESOURCE_TYPES: readonly ["record", "object", "attribute", "view", "user", "role", "settings", "file", "agent", "schema_source"];
|
|
1086
|
+
export declare const AUDIT_RESOURCE_TYPES: readonly ["record", "object", "attribute", "view", "user", "role", "settings", "file", "agent", "schema_source", "tenant_invitation"];
|
|
1087
1087
|
export type AuditResourceType = (typeof AUDIT_RESOURCE_TYPES)[number];
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Actions that can be audited
|
|
1090
1090
|
*/
|
|
1091
|
-
export declare const AUDIT_ACTIONS: readonly ["record.created", "record.updated", "record.deleted", "record.restored", "record.purged", "object.created", "object.updated", "object.deleted", "attribute.created", "attribute.updated", "attribute.deleted", "view.created", "view.updated", "view.deleted", "schema_source.applied", "schema_source.removed", "user.created", "user.invited", "user.updated", "user.deleted", "user.login", "user.logout", "role.created", "role.updated", "role.deleted", "role.assigned", "role.revoked", "settings.updated", "file.uploaded", "file.updated", "file.deleted"];
|
|
1091
|
+
export declare const AUDIT_ACTIONS: readonly ["record.created", "record.updated", "record.deleted", "record.restored", "record.purged", "object.created", "object.updated", "object.deleted", "attribute.created", "attribute.updated", "attribute.deleted", "view.created", "view.updated", "view.deleted", "schema_source.applied", "schema_source.presented", "schema_source.removed", "user.created", "user.invited", "user.updated", "user.deleted", "user.login", "user.logout", "tenant_invitation.created", "tenant_invitation.delivery_failed", "tenant_invitation.resent", "tenant_invitation.revoked", "tenant_invitation.accepted", "role.created", "role.updated", "role.deleted", "role.assigned", "role.revoked", "settings.updated", "file.uploaded", "file.updated", "file.deleted"];
|
|
1092
1092
|
export type AuditAction = (typeof AUDIT_ACTIONS)[number];
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Actor type - who performed the action
|
|
@@ -4451,6 +4451,43 @@ export interface TenantSettingsResponse extends TenantSettings {
|
|
|
4451
4451
|
export declare const DEFAULT_MEETING_BOT_DISPLAY_NAME = "Notetaker";
|
|
4452
4452
|
export declare const DEFAULT_TENANT_SETTINGS: TenantSettings;
|
|
4453
4453
|
//#endregion
|
|
4454
|
+
//#region src/types/tenant-invitations.d.ts
|
|
4455
|
+
export declare const TENANT_INVITATION_DEFAULT_TTL_MS = 604800000;
|
|
4456
|
+
export declare const TENANT_INVITATION_MIN_TTL_MS = 3600000;
|
|
4457
|
+
export declare const TENANT_INVITATION_MAX_TTL_MS = 2592000000;
|
|
4458
|
+
export declare const TENANT_INVITATION_RESEND_INTERVAL_MS = 60000;
|
|
4459
|
+
export type TenantInvitationStatus = "pending" | "expired" | "revoked" | "accepted";
|
|
4460
|
+
export type TenantInvitationDeliveryStatus = "pending" | "sent" | "failed";
|
|
4461
|
+
/** Public invitation state. The single-use proof is deliberately not represented here. */
|
|
4462
|
+
export interface TenantInvitation extends Timestamps {
|
|
4463
|
+
id: Uuid;
|
|
4464
|
+
tenantId: TenantId;
|
|
4465
|
+
email: string;
|
|
4466
|
+
roleId: Uuid;
|
|
4467
|
+
invitingActorId: Uuid;
|
|
4468
|
+
status: TenantInvitationStatus;
|
|
4469
|
+
deliveryStatus: TenantInvitationDeliveryStatus;
|
|
4470
|
+
expiresAt: Date;
|
|
4471
|
+
lastSentAt: Date;
|
|
4472
|
+
acceptedAt?: Date;
|
|
4473
|
+
revokedAt?: Date;
|
|
4474
|
+
acceptedProfileId?: Uuid;
|
|
4475
|
+
}
|
|
4476
|
+
export interface CreateTenantInvitationInput {
|
|
4477
|
+
email: string;
|
|
4478
|
+
roleId: Uuid;
|
|
4479
|
+
}
|
|
4480
|
+
/** Verified identity supplied by the authentication boundary, never by request JSON. */
|
|
4481
|
+
export interface AcceptTenantInvitationIdentity {
|
|
4482
|
+
authId: string;
|
|
4483
|
+
email: string;
|
|
4484
|
+
}
|
|
4485
|
+
export interface AcceptTenantInvitationInput {
|
|
4486
|
+
invitationId: Uuid;
|
|
4487
|
+
proof: string;
|
|
4488
|
+
identity: AcceptTenantInvitationIdentity;
|
|
4489
|
+
}
|
|
4490
|
+
//#endregion
|
|
4454
4491
|
//#region src/connectors/types.d.ts
|
|
4455
4492
|
/** Built-in external connector providers. Mirrors the runtime's
|
|
4456
4493
|
* `ConnectorProvider`: mail and calendar are separate keys per vendor, because
|
|
@@ -4910,6 +4947,41 @@ export interface InviteUserInput {
|
|
|
4910
4947
|
redirectTo?: string;
|
|
4911
4948
|
}
|
|
4912
4949
|
//#endregion
|
|
4950
|
+
//#region src/types/schema-groups.d.ts
|
|
4951
|
+
export type SchemaGroupKind = "bundle" | "source";
|
|
4952
|
+
interface SchemaGroupBase {
|
|
4953
|
+
id: string;
|
|
4954
|
+
label: string | null;
|
|
4955
|
+
icon: IconName | null;
|
|
4956
|
+
/** Names `composeTenantSchema(...).owners` gives this group, in composition order. */
|
|
4957
|
+
objectNames: string[];
|
|
4958
|
+
}
|
|
4959
|
+
export interface BundleSchemaGroup extends SchemaGroupBase {
|
|
4960
|
+
kind: "bundle";
|
|
4961
|
+
/** A `tenant_bundles` row with status "active". */
|
|
4962
|
+
installed: boolean;
|
|
4963
|
+
appliedVersion: number | null;
|
|
4964
|
+
availableVersion: number;
|
|
4965
|
+
/** `selectUpdatable` on the row; false when not installed. */
|
|
4966
|
+
updateAvailable: boolean;
|
|
4967
|
+
}
|
|
4968
|
+
export interface SourceSchemaGroup extends SchemaGroupBase {
|
|
4969
|
+
kind: "source";
|
|
4970
|
+
appliedAt: string;
|
|
4971
|
+
}
|
|
4972
|
+
export type SchemaGroup = BundleSchemaGroup | SourceSchemaGroup;
|
|
4973
|
+
export interface SchemaGroupList {
|
|
4974
|
+
groups: SchemaGroup[];
|
|
4975
|
+
}
|
|
4976
|
+
/** Presentation a bundle or a source declares. A key left out (or `undefined`) means "unchanged". */
|
|
4977
|
+
export interface SchemaGroupPresentation {
|
|
4978
|
+
label?: string | null;
|
|
4979
|
+
icon?: IconName | null;
|
|
4980
|
+
}
|
|
4981
|
+
export declare function schemaGroupKey(group: Pick<SchemaGroup, "kind" | "id">): string;
|
|
4982
|
+
/** The one presentation rule, shared by `defineBundle`, `defineSchemaSource` and the source PUT. */
|
|
4983
|
+
export declare function parseSchemaGroupPresentation(input: unknown): SchemaGroupPresentation;
|
|
4984
|
+
//#endregion
|
|
4913
4985
|
//#region src/types/schema-state.d.ts
|
|
4914
4986
|
type Without<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
4915
4987
|
export type ViewSourceOwner = "core" | `bundle:${string}` | `source:${string}`;
|
|
@@ -7536,7 +7608,7 @@ export declare class ContentBuilder<T extends {
|
|
|
7536
7608
|
createMode: ContentCreateMode;
|
|
7537
7609
|
}>>;
|
|
7538
7610
|
visibility(this: ContentBuilder<T & Collection$1>, visibility: ListViewTabVisibility): ContentBuilder<SetFields<T & Collection$1, {
|
|
7539
|
-
visibility: "
|
|
7611
|
+
visibility: "all" | "workspace" | "private";
|
|
7540
7612
|
}>>;
|
|
7541
7613
|
descriptionAttribute<const N extends string>(this: ContentBuilder<T & Collection$1>, descriptionAttribute: N): ContentBuilder<SetFields<T & Collection$1, {
|
|
7542
7614
|
descriptionAttribute: N;
|
|
@@ -8381,7 +8453,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8381
8453
|
}, "type"> & {
|
|
8382
8454
|
type: "collection";
|
|
8383
8455
|
}, "visibility"> & {
|
|
8384
|
-
visibility: "
|
|
8456
|
+
visibility: "all" | "workspace" | "private";
|
|
8385
8457
|
} & Pick<Omit<Omit<Omit<{
|
|
8386
8458
|
type: "collection";
|
|
8387
8459
|
}, "source"> & {
|
|
@@ -8443,7 +8515,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8443
8515
|
}, "type"> & {
|
|
8444
8516
|
type: "collection";
|
|
8445
8517
|
}, "visibility"> & {
|
|
8446
|
-
visibility: "
|
|
8518
|
+
visibility: "all" | "workspace" | "private";
|
|
8447
8519
|
} & Pick<Omit<Omit<Omit<{
|
|
8448
8520
|
type: "collection";
|
|
8449
8521
|
}, "source"> & {
|
|
@@ -8507,7 +8579,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8507
8579
|
}, "type"> & {
|
|
8508
8580
|
type: "collection";
|
|
8509
8581
|
}, "visibility"> & {
|
|
8510
|
-
visibility: "
|
|
8582
|
+
visibility: "all" | "workspace" | "private";
|
|
8511
8583
|
} & Pick<Omit<Omit<Omit<{
|
|
8512
8584
|
type: "collection";
|
|
8513
8585
|
}, "source"> & {
|
|
@@ -8569,7 +8641,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8569
8641
|
}, "type"> & {
|
|
8570
8642
|
type: "collection";
|
|
8571
8643
|
}, "visibility"> & {
|
|
8572
|
-
visibility: "
|
|
8644
|
+
visibility: "all" | "workspace" | "private";
|
|
8573
8645
|
} & Pick<Omit<Omit<Omit<{
|
|
8574
8646
|
type: "collection";
|
|
8575
8647
|
}, "source"> & {
|
|
@@ -8635,7 +8707,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8635
8707
|
}, "type"> & {
|
|
8636
8708
|
type: "collection";
|
|
8637
8709
|
}, "visibility"> & {
|
|
8638
|
-
visibility: "
|
|
8710
|
+
visibility: "all" | "workspace" | "private";
|
|
8639
8711
|
} & Pick<Omit<Omit<Omit<{
|
|
8640
8712
|
type: "collection";
|
|
8641
8713
|
}, "source"> & {
|
|
@@ -8697,7 +8769,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8697
8769
|
}, "type"> & {
|
|
8698
8770
|
type: "collection";
|
|
8699
8771
|
}, "visibility"> & {
|
|
8700
|
-
visibility: "
|
|
8772
|
+
visibility: "all" | "workspace" | "private";
|
|
8701
8773
|
} & Pick<Omit<Omit<Omit<{
|
|
8702
8774
|
type: "collection";
|
|
8703
8775
|
}, "source"> & {
|
|
@@ -8761,7 +8833,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8761
8833
|
}, "type"> & {
|
|
8762
8834
|
type: "collection";
|
|
8763
8835
|
}, "visibility"> & {
|
|
8764
|
-
visibility: "
|
|
8836
|
+
visibility: "all" | "workspace" | "private";
|
|
8765
8837
|
} & Pick<Omit<Omit<Omit<{
|
|
8766
8838
|
type: "collection";
|
|
8767
8839
|
}, "source"> & {
|
|
@@ -8823,7 +8895,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
8823
8895
|
}, "type"> & {
|
|
8824
8896
|
type: "collection";
|
|
8825
8897
|
}, "visibility"> & {
|
|
8826
|
-
visibility: "
|
|
8898
|
+
visibility: "all" | "workspace" | "private";
|
|
8827
8899
|
} & Pick<Omit<Omit<Omit<{
|
|
8828
8900
|
type: "collection";
|
|
8829
8901
|
}, "source"> & {
|
|
@@ -9098,7 +9170,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9098
9170
|
}, "type"> & {
|
|
9099
9171
|
type: "collection";
|
|
9100
9172
|
}, "visibility"> & {
|
|
9101
|
-
visibility: "
|
|
9173
|
+
visibility: "all" | "workspace" | "private";
|
|
9102
9174
|
} & Pick<Omit<Omit<Omit<{
|
|
9103
9175
|
type: "collection";
|
|
9104
9176
|
}, "source"> & {
|
|
@@ -9160,7 +9232,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9160
9232
|
}, "type"> & {
|
|
9161
9233
|
type: "collection";
|
|
9162
9234
|
}, "visibility"> & {
|
|
9163
|
-
visibility: "
|
|
9235
|
+
visibility: "all" | "workspace" | "private";
|
|
9164
9236
|
} & Pick<Omit<Omit<Omit<{
|
|
9165
9237
|
type: "collection";
|
|
9166
9238
|
}, "source"> & {
|
|
@@ -9224,7 +9296,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9224
9296
|
}, "type"> & {
|
|
9225
9297
|
type: "collection";
|
|
9226
9298
|
}, "visibility"> & {
|
|
9227
|
-
visibility: "
|
|
9299
|
+
visibility: "all" | "workspace" | "private";
|
|
9228
9300
|
} & Pick<Omit<Omit<Omit<{
|
|
9229
9301
|
type: "collection";
|
|
9230
9302
|
}, "source"> & {
|
|
@@ -9286,7 +9358,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9286
9358
|
}, "type"> & {
|
|
9287
9359
|
type: "collection";
|
|
9288
9360
|
}, "visibility"> & {
|
|
9289
|
-
visibility: "
|
|
9361
|
+
visibility: "all" | "workspace" | "private";
|
|
9290
9362
|
} & Pick<Omit<Omit<Omit<{
|
|
9291
9363
|
type: "collection";
|
|
9292
9364
|
}, "source"> & {
|
|
@@ -9352,7 +9424,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9352
9424
|
}, "type"> & {
|
|
9353
9425
|
type: "collection";
|
|
9354
9426
|
}, "visibility"> & {
|
|
9355
|
-
visibility: "
|
|
9427
|
+
visibility: "all" | "workspace" | "private";
|
|
9356
9428
|
} & Pick<Omit<Omit<Omit<{
|
|
9357
9429
|
type: "collection";
|
|
9358
9430
|
}, "source"> & {
|
|
@@ -9414,7 +9486,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9414
9486
|
}, "type"> & {
|
|
9415
9487
|
type: "collection";
|
|
9416
9488
|
}, "visibility"> & {
|
|
9417
|
-
visibility: "
|
|
9489
|
+
visibility: "all" | "workspace" | "private";
|
|
9418
9490
|
} & Pick<Omit<Omit<Omit<{
|
|
9419
9491
|
type: "collection";
|
|
9420
9492
|
}, "source"> & {
|
|
@@ -9478,7 +9550,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9478
9550
|
}, "type"> & {
|
|
9479
9551
|
type: "collection";
|
|
9480
9552
|
}, "visibility"> & {
|
|
9481
|
-
visibility: "
|
|
9553
|
+
visibility: "all" | "workspace" | "private";
|
|
9482
9554
|
} & Pick<Omit<Omit<Omit<{
|
|
9483
9555
|
type: "collection";
|
|
9484
9556
|
}, "source"> & {
|
|
@@ -9540,7 +9612,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
9540
9612
|
}, "type"> & {
|
|
9541
9613
|
type: "collection";
|
|
9542
9614
|
}, "visibility"> & {
|
|
9543
|
-
visibility: "
|
|
9615
|
+
visibility: "all" | "workspace" | "private";
|
|
9544
9616
|
} & Pick<Omit<Omit<Omit<{
|
|
9545
9617
|
type: "collection";
|
|
9546
9618
|
}, "source"> & {
|
|
@@ -10056,6 +10128,23 @@ type ArchitectFocus = DraftFocus & {
|
|
|
10056
10128
|
* are distinguishable.
|
|
10057
10129
|
*/
|
|
10058
10130
|
export declare function architectFocusKey(focus: ArchitectFocus): string | null;
|
|
10131
|
+
/**
|
|
10132
|
+
* The key a content's own SECTION carries, distinct from the one its tab pill
|
|
10133
|
+
* carries. One key, one node: both stood for the same content, so a resolver
|
|
10134
|
+
* reading the DOM could only break the tie by document order — and the section
|
|
10135
|
+
* comes first. For the tab the follow had just opened, whose section is the
|
|
10136
|
+
* laid-out one, the follow landed on the corner of the content instead of on
|
|
10137
|
+
* the tab that had just been added.
|
|
10138
|
+
*
|
|
10139
|
+
* The prefix cannot collide with a head: no head starts with `body/`.
|
|
10140
|
+
*/
|
|
10141
|
+
export declare function architectContentBodyKey(focus: ArchitectFocus): string | null;
|
|
10142
|
+
/**
|
|
10143
|
+
* Where to look for a focus, in the order a reader would: the thing itself
|
|
10144
|
+
* first — the tab pill for a content — then the body that stands for it when
|
|
10145
|
+
* no pill exists, as in a view that shows a single content and no bar.
|
|
10146
|
+
*/
|
|
10147
|
+
export declare function architectFocusCandidates(focus: ArchitectFocus): string[];
|
|
10059
10148
|
//#endregion
|
|
10060
10149
|
//#region src/architect/operations/schema.d.ts
|
|
10061
10150
|
/** Every attribute type: formulas and rollups compile against the drafted state at append. */
|
|
@@ -10108,7 +10197,7 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
|
|
|
10108
10197
|
kanbanColumnOrder?: string[] | undefined;
|
|
10109
10198
|
kanbanColumnVisibility?: Record<string, boolean> | undefined;
|
|
10110
10199
|
kanbanPinnedColumns?: string[] | undefined;
|
|
10111
|
-
visibility?: "
|
|
10200
|
+
visibility?: "all" | "workspace" | "private" | undefined;
|
|
10112
10201
|
columns?: (string | {
|
|
10113
10202
|
relationProperty: string;
|
|
10114
10203
|
})[] | undefined;
|
|
@@ -10270,9 +10359,9 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
|
|
|
10270
10359
|
relation?: string | undefined;
|
|
10271
10360
|
}>>;
|
|
10272
10361
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10362
|
+
all: "all";
|
|
10273
10363
|
workspace: "workspace";
|
|
10274
10364
|
private: "private";
|
|
10275
|
-
all: "all";
|
|
10276
10365
|
}>>;
|
|
10277
10366
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
10278
10367
|
relationProperty: z$1.ZodString;
|