ezship 0.1.12 → 0.1.13

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/commands.d.mts CHANGED
@@ -15,6 +15,10 @@ import type {
15
15
  ScheduleRun,
16
16
  AppLink,
17
17
  SupportRequest,
18
+ EmailFilter,
19
+ EmailStatus,
20
+ EmailInfo,
21
+ EmailRow,
18
22
  Integration,
19
23
  IntegrationCall,
20
24
  IntegrationInput,
@@ -136,6 +140,9 @@ export interface Workspace {
136
140
  }): Promise<SupportRequest>;
137
141
  listSupportRequests(): Promise<SupportRequest[]>;
138
142
  supportRequest(id: string): Promise<SupportRequest>;
143
+ /** Emails server code sent (docs/adr/0149), newest first; a Limited Builder sees only their Sites'. */
144
+ listEmails(filter?: EmailFilter): Promise<EmailRow[]>;
145
+ emailInfo(id: string): Promise<EmailInfo>;
139
146
  /** Integrations (docs/adr/0092): every Builder lists; Admins set, preview and remove. */
140
147
  listIntegrations(): Promise<Integration[]>;
141
148
  setIntegration(name: string, input: IntegrationInput): Promise<Integration>;
@@ -353,6 +360,15 @@ export function parseSchedules(
353
360
  source: string,
354
361
  files: Record<string, string>,
355
362
  ): { entries: ScheduleEntry[]; errors: string[] };
363
+ /** The deployed page's settings (ADR 0148): `page.json` in a Site and in the Global Workspace, the Site's winning. */
364
+ export const PAGE_FILE: "page.json";
365
+ export const PAGE_ICON_MAX: 16000;
366
+ /** The browser icon of a page whose Site and Global Workspace set none. */
367
+ export const DEFAULT_PAGE_ICON: string;
368
+ /** The settings of a page.json, and every problem with it; page is empty when there is any. */
369
+ export function parsePage(source: string): { page: { icon?: string }; errors: string[] };
370
+ /** The SVG a Site's page shows as its browser icon: the Site's page.json, else the Global one, else the default. */
371
+ export function pageIcon(files: Record<string, string>, global: Record<string, string>): string;
356
372
  /** Listeners (docs/adr/0092): `listeners/<name>.ts`, named in `listeners.json`, received under LISTENER_BASE_PATH. */
357
373
  export const LISTENERS_DIR: "listeners/";
358
374
  export function listenerName(path: string): string | null;
@@ -391,7 +407,7 @@ export const CONSTANTS_FILE: "constants.ts";
391
407
  export const STYLE_FILE: "style.css";
392
408
  export const TYPES_FILE: "db/types.d.ts";
393
409
  export const DEFAULT_GLOBAL_FILES: Readonly<Record<string, string>>;
394
- /** The theme and seven components a new Instance's Global Workspace starts with (Version 0). */
410
+ /** The theme, Shell and components a new Instance's Global Workspace starts with (Version 0). */
395
411
  export const STARTER_GLOBAL_FILES: Readonly<Record<string, string>>;
396
412
  export const BUILD_ENTRY: "index.html";
397
413
  export const BUILD_CONFIG_MARKER: "<!--ez:config-->";
@@ -530,6 +546,18 @@ export const APP_LINK_TTL_MS: number;
530
546
  export const SUPPORT_SUBJECT_MAX: number;
531
547
  export const SUPPORT_BODY_MAX: number;
532
548
  export const SUPPORT_REQUESTS_PER_DAY: number;
549
+ /** Email limits (docs/adr/0149). */
550
+ export const EMAIL_LIMITS: Readonly<{
551
+ perInvocation: number;
552
+ subject: number;
553
+ body: number;
554
+ buttonLabel: number;
555
+ buttonHref: number;
556
+ perDay: number;
557
+ perMinute: number;
558
+ attempts: number;
559
+ }>;
560
+ export const EMAIL_STATUSES: readonly EmailStatus[];
533
561
  /** Integrations (docs/adr/0092): names, kinds, credential types, limits and the origin and name checks. */
534
562
  export const INTEGRATION_NAME_RE: RegExp;
535
563
  export const INTEGRATION_KINDS: readonly ["http"];