Skip to content

Commit e2fc71e

Browse files
committed
chore(spec): regenerate artifacts for the served translation face
Claude-Session: https://claude.ai/code/session_01Vy85beHdawtEtqNscYBy7V Co-authored-by: Claude <noreply@anthropic.com>
1 parent 143499a commit e2fc71e

11 files changed

Lines changed: 198 additions & 12 deletions

File tree

‎content/docs/references/api/protocol.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,6 @@ The published metadata item body, opaque by ruling (1C). Shape is the item's own
17821782
| **flows** | `Record<string, { label?: string; successMessage?: string; errorMessage?: string; screens?: Record<string, object>; … }>` | optional | Screen-flow translations keyed by flow name |
17831783
| **positions** | `Record<string, { label?: string; description?: string }>` | optional | Position translations keyed by position name |
17841784
| **permissions** | `Record<string, { label?: string; description?: string }>` | optional | Permission-set translations keyed by permission-set name |
1785-
| **metadataForms** | `Record<string, { label?: string; description?: string; sections?: Record<string, object>; fields?: Record<string, object> }>` | optional | Translations for metadata-type configuration forms keyed by metadata type |
17861785
| **settingsCommon** | `{ sourceLabels?: object }` | optional | Cross-namespace Settings UI strings |
17871786
| **settings** | `Record<string, { title?: string; description?: string; groups?: Record<string, object>; keys?: Record<string, object>; … }>` | optional | Settings manifest translations keyed by namespace |
17881787

‎content/docs/references/index.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Protocol reference — every schema by module
33
navTitle: Protocol Reference
4-
description: Every schema published by @objectstack/spec — 1544 schemas across 14 protocol modules
4+
description: Every schema published by @objectstack/spec — 1545 schemas across 14 protocol modules
55
---
66

77
{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
@@ -32,9 +32,9 @@ counts are sums of the rows they head. Regenerate with
3232
| [Security Protocol](/docs/references/security) | 5 | 34 | Permission sets, row-level security, sharing rules, tenancy posture. |
3333
| [Shared Protocol](/docs/references/shared) | 10 | 31 | Primitives used across every protocol — identifiers, HTTP, expressions, error maps, enums. |
3434
| [Studio Protocol](/docs/references/studio) | 3 | 35 | Studio designer metadata — the authoring surfaces for the protocols above. |
35-
| [System Protocol](/docs/references/system) | 37 | 286 | The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance. |
35+
| [System Protocol](/docs/references/system) | 37 | 287 | The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance. |
3636
| [UI Protocol](/docs/references/ui) | 16 | 171 | Apps, pages, views, dashboards, reports, actions and themes — the ObjectUI layer. |
37-
| **Total** | **199** | **1544** | 14 protocol modules |
37+
| **Total** | **199** | **1545** | 14 protocol modules |
3838

3939
---
4040

@@ -318,7 +318,7 @@ Studio designer metadata — the authoring surfaces for the protocols above.
318318

319319
## System Protocol
320320

321-
**Source:** `packages/spec/src/system/` · **Import:** `@objectstack/spec/system` · **37 pages, 286 schemas**
321+
**Source:** `packages/spec/src/system/` · **Import:** `@objectstack/spec/system` · **37 pages, 287 schemas**
322322

323323
The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance.
324324

@@ -359,7 +359,7 @@ The runtime environment — logging, jobs, cache, metrics, notifications, i18n a
359359
| [`supplier-security.zod.ts`](/docs/references/system/supplier-security) | `SupplierAssessmentStatus`, `SupplierRiskLevel`, `SupplierSecurityAssessment`, `SupplierSecurityPolicy`, `SupplierSecurityRequirement` |
360360
| [`tenant.zod.ts`](/docs/references/system/tenant) | `DatabaseLevelIsolationStrategy`, `DatabaseProvider`, `QuotaEnforcementResult`, `RowLevelIsolationStrategy`, `SchemaLevelIsolationStrategy`, `Tenant`, `TenantConnectionConfig`, `TenantIsolationConfig`, `TenantIsolationLevel`, `TenantQuota`, `TenantSecurityPolicy`, `TenantUsage` |
361361
| [`tracing.zod.ts`](/docs/references/system/tracing) | `OpenTelemetryCompatibility`, `OtelExporterType`, `SamplingDecision`, `SamplingStrategyType`, `Span`, `SpanAttributeValue`, `SpanAttributes`, `SpanEvent`, `SpanKind`, `SpanLink`, `SpanStatus`, `TraceContext`, `TraceContextPropagation`, `TraceFlags`, `TracePropagationFormat`, `TraceSamplingConfig`, `TraceState`, `TracingConfig` |
362-
| [`translation.zod.ts`](/docs/references/system/translation) | `ActionResultDialogTranslation`, `CoverageBreakdownEntry`, `FieldTranslation`, `Locale`, `ObjectTranslationData`, `PlatformTranslationBundle`, `PlatformTranslationData`, `TranslationBundle`, `TranslationConfig`, `TranslationCoverageResult`, `TranslationData`, `TranslationDiffItem`, `TranslationDiffStatus`, `TranslationItem` |
362+
| [`translation.zod.ts`](/docs/references/system/translation) | `ActionResultDialogTranslation`, `CoverageBreakdownEntry`, `FieldTranslation`, `Locale`, `ObjectTranslationData`, `PlatformTranslationBundle`, `PlatformTranslationData`, `ServedTranslationData`, `TranslationBundle`, `TranslationConfig`, `TranslationCoverageResult`, `TranslationData`, `TranslationDiffItem`, `TranslationDiffStatus`, `TranslationItem` |
363363
| [`worker.zod.ts`](/docs/references/system/worker) | `BatchProgress`, `QueueConfig`, `Task`, `TaskExecutionResult`, `TaskPriority`, `TaskRetryPolicy`, `TaskStatus`, `WorkerStats` |
364364

365365
---

‎content/docs/references/system/translation.mdx‎

Lines changed: 149 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ description: "Translation schemas of the ObjectStack System Protocol — each pr
1313
## TypeScript Usage
1414

1515
```typescript
16-
import { ActionResultDialogTranslationSchema, CoverageBreakdownEntrySchema, FieldTranslationSchema, LocaleSchema, ObjectTranslationDataSchema, PlatformTranslationBundleSchema, PlatformTranslationDataSchema, TranslationBundleSchema, TranslationConfigSchema, TranslationCoverageResultSchema, TranslationDataSchema, TranslationDiffItemSchema, TranslationDiffStatusSchema, TranslationItemSchema } from '@objectstack/spec/system';
17-
import type { ActionResultDialogTranslation, CoverageBreakdownEntry, FieldTranslation, Locale, ObjectTranslationData, PlatformTranslationBundle, PlatformTranslationData, TranslationBundle, TranslationConfig, TranslationCoverageResult, TranslationData, TranslationDiffItem, TranslationDiffStatus, TranslationItem } from '@objectstack/spec/system';
16+
import { ActionResultDialogTranslationSchema, CoverageBreakdownEntrySchema, FieldTranslationSchema, LocaleSchema, ObjectTranslationDataSchema, PlatformTranslationBundleSchema, PlatformTranslationDataSchema, ServedTranslationDataSchema, TranslationBundleSchema, TranslationConfigSchema, TranslationCoverageResultSchema, TranslationDataSchema, TranslationDiffItemSchema, TranslationDiffStatusSchema, TranslationItemSchema } from '@objectstack/spec/system';
17+
import type { ActionResultDialogTranslation, CoverageBreakdownEntry, FieldTranslation, Locale, ObjectTranslationData, PlatformTranslationBundle, PlatformTranslationData, ServedTranslationData, TranslationBundle, TranslationConfig, TranslationCoverageResult, TranslationData, TranslationDiffItem, TranslationDiffStatus, TranslationItem } from '@objectstack/spec/system';
1818

1919
// Validate data
2020
const result = ActionResultDialogTranslationSchema.parse(data);
@@ -317,6 +317,153 @@ Translation data for a single object
317317
| **banners** | `Record<string, { title?: string; text?: string }>` | optional | Info banner translations keyed by the info_banner specifier id |
318318

319319

320+
---
321+
322+
## ServedTranslationData
323+
324+
Served translation data — the platform groups the browser reads, without the server-resolved `metadataForms`
325+
326+
### Properties
327+
328+
| Property | Type | Required | Description |
329+
| :--- | :--- | :--- | :--- |
330+
| **objects** | `Record<string, { label?: string; pluralLabel?: string; description?: string; fields?: Record<string, object>; … }>` | optional | Object translations keyed by object name |
331+
| **picklists** | `Record<string, { label?: string; options: Record<string, string> }>` | optional | Picklist translations keyed by picklist name |
332+
| **apps** | `Record<string, { label: string; description?: string; navigation?: Record<string, object> }>` | optional | App translations keyed by app name |
333+
| **messages** | `Record<string, string>` | optional | UI message translations keyed by message ID |
334+
| **globalActions** | `Record<string, { label?: string; description?: string; confirmText?: string; successMessage?: string; … }>` | optional | Global action translations keyed by action name |
335+
| **dashboards** | `Record<string, { label?: string; description?: string; actions?: Record<string, object>; widgets?: Record<string, object>; … }>` | optional | Dashboard translations keyed by dashboard name |
336+
| **datasets** | `Record<string, { label?: string; description?: string; dimensions?: Record<string, object>; measures?: Record<string, object> }>` | optional | Analytics dataset translations keyed by dataset name |
337+
| **reports** | `Record<string, { label?: string; description?: string }>` | optional | Report translations keyed by report name |
338+
| **pages** | `Record<string, { label?: string; description?: string; title?: string; subtitle?: string; … }>` | optional | Page translations keyed by page name |
339+
| **flows** | `Record<string, { label?: string; successMessage?: string; errorMessage?: string; screens?: Record<string, object>; … }>` | optional | Screen-flow translations keyed by flow name |
340+
| **positions** | `Record<string, { label?: string; description?: string }>` | optional | Position translations keyed by position name |
341+
| **permissions** | `Record<string, { label?: string; description?: string }>` | optional | Permission-set translations keyed by permission-set name |
342+
| **settingsCommon** | `{ sourceLabels?: object }` | optional | Cross-namespace Settings UI strings |
343+
| **settings** | `Record<string, { title?: string; description?: string; groups?: Record<string, object>; keys?: Record<string, object>; … }>` | optional | Settings manifest translations keyed by namespace |
344+
345+
### Nested Shape: `ServedTranslationData.objects[string]`
346+
347+
Translation data for a single object
348+
349+
| Property | Type | Required | Description |
350+
| :--- | :--- | :--- | :--- |
351+
| **label** | `string` | optional | Translated singular label |
352+
| **pluralLabel** | `string` | optional | Translated plural label |
353+
| **description** | `string` | optional | Translated object description |
354+
| **fields** | `Record<string, { label?: string; help?: string; placeholder?: string; options?: Record<string, string> }>` | optional | Field-level translations |
355+
| **_views** | `Record<string, { label?: string; description?: string; title?: string; emptyState?: object; … }>` | optional | View translations keyed by view name |
356+
| **_actions** | `Record<string, { label?: string; description?: string; confirmText?: string; successMessage?: string; … }>` | optional | Action translations keyed by action name |
357+
| **_sections** | `Record<string, { label?: string; description?: string; fields?: Record<string, object> }>` | optional | Section translations keyed by section name |
358+
| **_tabs** | `Record<string, { label?: string }>` | optional | Filter-preset tab translations keyed by tab name |
359+
| **_validations** | `Record<string, { message?: string }>` | optional | Custom validation-rule messages keyed by rule name (`ValidationRuleSchema.name`) |
360+
361+
### Nested Shape: `ServedTranslationData.picklists[string]`
362+
363+
| Property | Type | Required | Description |
364+
| :--- | :--- | :--- | :--- |
365+
| **label** | `string` | optional | Translated picklist label |
366+
| **options** | `Record<string, string>` | ✅ | Option value to translated label map — inherited by every field that references the picklist |
367+
368+
### Nested Shape: `ServedTranslationData.apps[string]`
369+
370+
| Property | Type | Required | Description |
371+
| :--- | :--- | :--- | :--- |
372+
| **label** | `string` | ✅ | Translated app label |
373+
| **description** | `string` | optional | Translated app description |
374+
| **navigation** | `Record<string, { label: string }>` | optional | Navigation group translations keyed by group ID |
375+
376+
### Nested Shape: `ServedTranslationData.globalActions[string]`
377+
378+
| Property | Type | Required | Description |
379+
| :--- | :--- | :--- | :--- |
380+
| **label** | `string` | optional | Translated action label |
381+
| **description** | `string` | optional | Translated action description — the explanatory line under the title in the action's param dialog |
382+
| **confirmText** | `string` | optional | Translated confirmation prompt |
383+
| **successMessage** | `string` | optional | Translated success toast/message |
384+
| **outcomeMessages** | `Record<string, string>` | optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
385+
| **params** | `Record<string, { label?: string; helpText?: string; placeholder?: string; options?: Record<string, string> }>` | optional | Action parameter translations keyed by parameter name |
386+
| **resultDialog** | `{ title?: string; description?: string; acknowledge?: string; fields?: Record<string, string> }` | optional | Translations for the action result dialog |
387+
388+
### Nested Shape: `ServedTranslationData.dashboards[string]`
389+
390+
| Property | Type | Required | Description |
391+
| :--- | :--- | :--- | :--- |
392+
| **label** | `string` | optional | Translated dashboard title |
393+
| **description** | `string` | optional | Translated dashboard description |
394+
| **actions** | `Record<string, { label?: string }>` | optional | Header action label translations keyed by action url/key |
395+
| **widgets** | `Record<string, { title?: string; description?: string }>` | optional | Widget translations keyed by widget id |
396+
| **globalFilters** | `Record<string, { label?: string; options?: Record<string, string> }>` | optional | Global-filter translations keyed by the filter `name` (a filter that authors no `name` is keyed by its `field`) |
397+
398+
### Nested Shape: `ServedTranslationData.datasets[string]`
399+
400+
| Property | Type | Required | Description |
401+
| :--- | :--- | :--- | :--- |
402+
| **label** | `string` | optional | Translated dataset label |
403+
| **description** | `string` | optional | Translated dataset description |
404+
| **dimensions** | `Record<string, { label?: string }>` | optional | Dimension translations keyed by dimension name (`DatasetDimensionSchema.name`) |
405+
| **measures** | `Record<string, { label?: string }>` | optional | Measure translations keyed by measure name (`DatasetMeasureSchema.name`) |
406+
407+
### Nested Shape: `ServedTranslationData.reports[string]`
408+
409+
| Property | Type | Required | Description |
410+
| :--- | :--- | :--- | :--- |
411+
| **label** | `string` | optional | Translated report label — overlays the report's own `label` |
412+
| **description** | `string` | optional | Translated report description — overlays the report's own `description` |
413+
414+
### Nested Shape: `ServedTranslationData.pages[string]`
415+
416+
| Property | Type | Required | Description |
417+
| :--- | :--- | :--- | :--- |
418+
| **label** | `string` | optional | Translated page label (nav / breadcrumb) |
419+
| **description** | `string` | optional | Translated page description |
420+
| **title** | `string` | optional | Translated `page:header` title. When omitted the header keeps its authored title; `label` stands in only where the header authors no title or its title restates the page label |
421+
| **subtitle** | `string` | optional | Translated `page:header` subtitle |
422+
| **components** | `Record<string, { title?: string; description?: string; label?: string; placeholder?: string; … }>` | optional | Per-component copy keyed by component id (`PageComponentSchema.id`) |
423+
424+
### Nested Shape: `ServedTranslationData.flows[string]`
425+
426+
| Property | Type | Required | Description |
427+
| :--- | :--- | :--- | :--- |
428+
| **label** | `string` | optional | Translated flow label |
429+
| **successMessage** | `string` | optional | Translated completion toast — overlays the flow's own `successMessage`, a plain string the engine carries verbatim on the terminal result; only a flow that authors one is translated |
430+
| **errorMessage** | `string` | optional | Translated failure toast — overlays the flow's own `errorMessage`, a plain string the engine carries verbatim on the terminal result; only a flow that authors one is translated |
431+
| **screens** | `Record<string, { title?: string; description?: string; fields?: Record<string, object> }>` | optional | Screen translations keyed by screen node id (`FlowNode.id`, the client's `ScreenSpec.nodeId`) |
432+
| **refusals** | `Record<string, { message?: string }>` | optional | Refusal translations keyed by the node id (`FlowNode.id`) of an `end` node declaring `outcome: 'refused'` |
433+
| **approvals** | `Record<string, { label?: string }>` | optional | Approval-step translations keyed by the node id (`FlowNode.id`) of an `approval` node |
434+
435+
### Nested Shape: `ServedTranslationData.positions[string]`
436+
437+
| Property | Type | Required | Description |
438+
| :--- | :--- | :--- | :--- |
439+
| **label** | `string` | optional | Translated position label — overlays the position's own `label` |
440+
| **description** | `string` | optional | Translated position description — overlays the position's own `description` |
441+
442+
### Nested Shape: `ServedTranslationData.permissions[string]`
443+
444+
| Property | Type | Required | Description |
445+
| :--- | :--- | :--- | :--- |
446+
| **label** | `string` | optional | Translated permission-set label — overlays the set's own `label` |
447+
| **description** | `string` | optional | Translated permission-set description — overlays the set's own `description` |
448+
449+
### Nested Shape: `ServedTranslationData.settingsCommon`
450+
451+
| Property | Type | Required | Description |
452+
| :--- | :--- | :--- | :--- |
453+
| **sourceLabels** | `{ env?: string; global?: string; tenant?: string; user?: string; … }` | optional | Source badge labels by resolution layer |
454+
455+
### Nested Shape: `ServedTranslationData.settings[string]`
456+
457+
| Property | Type | Required | Description |
458+
| :--- | :--- | :--- | :--- |
459+
| **title** | `string` | optional | Translated settings manifest title |
460+
| **description** | `string` | optional | Translated settings manifest description |
461+
| **groups** | `Record<string, { title?: string; description?: string }>` | optional | Group translations keyed by group key |
462+
| **keys** | `Record<string, { label?: string; help?: string; placeholder?: string; options?: Record<string, string> }>` | optional | Per-setting field translations keyed by setting key |
463+
| **actions** | `Record<string, { label?: string; confirmText?: string; successMessage?: string }>` | optional | Action button translations keyed by action id |
464+
| **banners** | `Record<string, { title?: string; text?: string }>` | optional | Info banner translations keyed by the info_banner specifier id |
465+
466+
320467
---
321468

322469
## TranslationBundle

‎docs/audits/2026-07-unknown-key-strictness-ledger.counts/system.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ hand-patch a number here** — fix the code or the verdict and regenerate.
1919

2020
| Dir | Sites |
2121
|---|---|
22-
| `system/` | 382 |
22+
| `system/` | 383 |

‎packages/spec/api-surface/system.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@
581581
"RowLevelIsolationStrategy (type)",
582582
"RowLevelIsolationStrategyParsed (type)",
583583
"RowLevelIsolationStrategySchema (const)",
584+
"SERVER_RESOLVED_TRANSLATION_GROUPS (const)",
584585
"SETTINGS_CHANGE_EVENT (const)",
585586
"SamplingDecision (const)",
586587
"SamplingDecision (type)",
@@ -609,6 +610,8 @@
609610
"SecurityEventCorrelation (type)",
610611
"SecurityEventCorrelationParsed (type)",
611612
"SecurityEventCorrelationSchema (const)",
613+
"ServedTranslationData (type)",
614+
"ServedTranslationDataSchema (const)",
612615
"ServerRateLimitConfig (type)",
613616
"ServerRateLimitConfigParsed (type)",
614617
"ServerRateLimitConfigSchema (const)",

‎packages/spec/authorable-surface/system.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,20 @@
10291029
"system/SecurityEventCorrelation:linkAuthToAudit",
10301030
"system/SecurityEventCorrelation:linkEncryptionToAudit",
10311031
"system/SecurityEventCorrelation:linkMaskingToAudit",
1032+
"system/ServedTranslationData:apps",
1033+
"system/ServedTranslationData:dashboards",
1034+
"system/ServedTranslationData:datasets",
1035+
"system/ServedTranslationData:flows",
1036+
"system/ServedTranslationData:globalActions",
1037+
"system/ServedTranslationData:messages",
1038+
"system/ServedTranslationData:objects",
1039+
"system/ServedTranslationData:pages",
1040+
"system/ServedTranslationData:permissions",
1041+
"system/ServedTranslationData:picklists",
1042+
"system/ServedTranslationData:positions",
1043+
"system/ServedTranslationData:reports",
1044+
"system/ServedTranslationData:settings",
1045+
"system/ServedTranslationData:settingsCommon",
10321046
"system/ServerRateLimitConfig:enabled",
10331047
"system/ServerRateLimitConfig:maxRequests",
10341048
"system/ServerRateLimitConfig:windowMs",

0 commit comments

Comments
 (0)