ObjectStackObjectStack

Sharing

Sharing protocol schemas

@module ui/sharing

Sharing & Embedding Protocol

Defines schemas for public link sharing, embed configuration,

domain restrictions, and password protection for apps, pages, and forms.

Source: packages/spec/src/ui/sharing.zod.ts

TypeScript Usage

import { EmbedConfig, SharingConfig } from '@objectstack/spec/ui';
import type { EmbedConfig, SharingConfig } from '@objectstack/spec/ui';

// Validate data
const result = EmbedConfig.parse(data);

EmbedConfig

Properties

PropertyTypeRequiredDescription
enabledbooleanEnable iframe embedding
allowedOriginsstring[]optionalAllowed iframe parent origins (e.g. ["https://example.com"])
widthstringEmbed width (CSS value)
heightstringEmbed height (CSS value)
showHeaderbooleanShow interface header in embed
showNavigationbooleanShow navigation in embed
responsivebooleanEnable responsive resizing

SharingConfig

Properties

PropertyTypeRequiredDescription
enabledbooleanEnable public sharing
publicLinkstringoptionalGenerated public share URL
passwordstringoptionalPassword required to access shared link
allowedDomainsstring[]optionalRestrict access to specific email domains (e.g. ["example.com"])
expiresAtstringoptionalExpiration date/time in ISO 8601 format
allowAnonymousbooleanAllow access without authentication

On this page