Skip to content
Syno Package Land
Language: English

dsm-package.yaml reference

dsm-package.yaml describes a native-go or binary project. This example passes check in a native-go project created with --with files,jobs,login --package MyApp.

schema: 2
package: MyApp
version: "0.1.0"
build: 1
displayname: My App
description: A native DSM package with files, jobs, and login.
maintainer: Your Name
os_min_ver: "7.1-42661"
arches: [x86_64, aarch64]
# Go backend; a binary project uses kind: binary and files.
backend:
kind: go
dir: backend
main: ./cmd/app
# Build the frontend before copying its output.
ui:
dir: frontend/dist
build:
cwd: frontend
command: [pnpm, run, build]
# CLI login writes identity.
capabilities:
files: session
jobs: {worker: sha256-v1}
identity: standalone
# Add root scripts with synopkgland add root-ops.
# rootOps: true
# Add delegate with synopkgland add delegate; see capabilities.delegate.
# Catalogs and glossary from the template.
i18n:
messages: i18n/messages
glossary: i18n/glossary.json
info:
zh-TW:
displayname: 我的 App
description: 提供檔案、背景工作與登入功能的 DSM 套件。
# Select a Shared Folder at install time.
install:
sharedFolder:
mode: select
key: shared
permission: rw
# Optional publisher information.
metadata:
license: MIT
contact_email: you@example.com
homepage: https://example.com
# Optional entry policy.
# entry: app-privilege
# Optional Portal; DSM 7.1 needs an executor.
# portal: {alias: my-app}
# Optional foreground service.
# With jobs it also needs an until-revoked delegate.
# daemon:
# exec: bin/service
# targets: {x86_64: daemon/x86_64, aarch64: daemon/aarch64}
# args: []
# env: {}
# timeouts: {start: 30, stop: 30, status: 5, uninstall: 60}
# uninstall_args: [cleanup]

Defaults are parser defaults; template values are marked. A Compose project cannot declare backend (PROJECT_RUNTIME_EXCLUSIVE); unknown keys raise STANDALONE_FIELD_UNKNOWN (errors). Every path must be nonempty, relative and inside the project (STANDALONE_PATH_INVALID, STANDALONE_PATH_OUTSIDE_PROJECT).

FieldTypeRequiredDefaultDescription
schemaintegerYes—Exactly 2; STANDALONE_SCHEMA_INVALID.
packagestringYes—Matches ^[A-Za-z][A-Za-z0-9]{1,63}$; STANDALONE_PACKAGE_INVALID.
versionstringYes—One to four numeric dot-separated parts, quoted; STANDALONE_VERSION_INVALID.
buildintegerYes—1–9999, appended as four digits; STANDALONE_BUILD_INVALID.
displaynamestringYes—Nonempty single line, no quotes or backslashes; STANDALONE_TEXT_INVALID.
descriptionstringYes—Same text rule; STANDALONE_TEXT_INVALID.
maintainerstringYes—Same text rule; STANDALONE_TEXT_INVALID.
os_min_verstringYesTemplate: 7.1-42661^\d+\.\d+(\.\d+)?-\d+$; STANDALONE_OS_MIN_VER_INVALID; floors: platforms.
archesstring[]YesTemplate: [x86_64, aarch64]Nonempty unique x86_64, aarch64, armv7; STANDALONE_ARCHES_INVALID.
backendobjectYes—Go source or per-architecture CGI binaries; STANDALONE_BACKEND_INVALID.
uiobject or falseYes—Static output dir and optional build command, or false for an identity_gateway App without an SDK window; STANDALONE_UI_INVALID.
iconpathNoSDK defaultSquare PNG ≥256×256 or icon_<size>.png (16–256, icon_256.png required, smaller sizes scaled); SVG refused. Build writes PACKAGE_ICON.PNG, PACKAGE_ICON_256.PNG and ui/images/app_<size>.png, each within the source’s 256 KiB; check/inspect report custom or default; STANDALONE_ICON_INVALID.
capabilitiesobjectNo{}Explicit declarations; invalid names or values: CAPABILITY_INVALID.
i18nobjectNoNoneCatalogs, glossary and translated Package Center text; STANDALONE_I18N_INVALID.
daemonobjectNoNoneFixed foreground service; STANDALONE_DAEMON_INVALID.
ctlobjectNoDisabledExplicit API v1 commands, aliases and schemas; see Expose App commands.
composeobjectNoNoneUpstream Compose policy: no backend/daemon, web uses identity_gateway, headless omits it; optional composeMounts; DSM >= 7.2.1.
identity_gatewayobjectNoNoneSigns DSM users into the daemon’s web UI; needs daemon or compose. See identity_gateway; STANDALONE_IDENTITY_GATEWAY_INVALID. Provider-only OIDC uses upstream_access: public; launch_path fixes the local menu destination.
consoleobjectNoNoneNative App with identity_gateway only: URL launcher plus administrator-only console; excludes Compose, ui.launch and portal. See Native UI and DSM console.
installobjectNoNonesharedFolder selects a bounded share; settings declares private https-origin inputs with labels and explicit required, reused on upgrade or keep-data reinstall and bindable in Compose as {setting: key}; INSTALL_SETTINGS_INVALID.
entrystringNoAPI permissions policyadmin-only or app-privilege; STANDALONE_ENTRY_INVALID.
portalobjectNoDisabled{} or {alias: ...}; DSM 7.2-64570+ without executor, 7.1 with executor registration; STANDALONE_PORTAL_INVALID.
login_styleobjectNoCLI defaultLogin Portal colour, wallpaper and title image; needs portal. See login_style; STANDALONE_LOGIN_STYLE_INVALID, STANDALONE_LOGIN_STYLE_IMAGE_INVALID.
rootobjectNoNoneroot/ program settings: programs.<name> (kind, schema, run, job), stop (run at stop and upgrade) and state: true (root-only /volumeN/@synopkgland/<package> kept across upgrades). Needs capabilities.rootOps: true; STANDALONE_ROOT_PROGRAMS_INVALID; the executor must support them (EXECUTOR_ROOT_PROGRAMS_UNSUPPORTED).
uninstallobjectNoNonepurge (exec, args, env, timeout 2–3600 s, optional root) runs as the package account before the executor purge; state.items[].key lists deletable state with an uninstall.state.<key> text; UNINSTALL_INVALID.
metadataobjectNoNonePublisher text, links and screenshots; STANDALONE_TEXT_INVALID.
reproducibleobjectNoNonebuild --verify-reproducible: inputs lists fingerprint dependency files, clean lists paths deleted before the second build (may use {arch}); see reproducible builds; REPRODUCIBLE_INVALID.
FieldTypeRequiredDefaultRule
kindstringYes—go or binary; STANDALONE_BACKEND_INVALID. Unknown backend keys raise the same code.
dirpathFor Go—Source directory; path rules apply. backend/internal/api/permissions.json must be valid; STANDALONE_API_PERMISSIONS_INVALID.
mainstringNo; Go only./cmd/appMatches ^\./[A-Za-z0-9_./-]*$, no ..; STANDALONE_BACKEND_INVALID.
filesarchitecture mapFor binary—Exactly the declared architectures; missing: STANDALONE_BINARY_ARCH_MISSING; extra: STANDALONE_BACKEND_INVALID; path rules apply.
Binary ruleError
File must exist.STANDALONE_BINARY_MISSING
File must be regular, not a symlink or directory.STANDALONE_BINARY_NOT_REGULAR
Resolved file must stay inside the project.STANDALONE_PATH_OUTSIDE_PROJECT
Maximum size: 256 MiB.STANDALONE_BINARY_TOO_LARGE
Little-endian Linux ELF with the correct bit width.STANDALONE_BINARY_NOT_ELF
ELF machine must match the architecture.STANDALONE_BINARY_ARCH_MISMATCH
Static linking; no dynamic interpreter.STANDALONE_BINARY_DYNAMIC
FieldTypeRequiredDefaultRule
dirpathYes—Must contain app.js and app.css at build time; STANDALONE_UI_ENTRY_MISSING; path rules apply.
buildobjectWith identityNonecapabilities.identity requires a build declaration; CAPABILITY_COMBINATION_INVALID.
build.cwdpathWith build—Working directory; path rules apply.
build.commandstring[]With build—Nonempty array of nonempty strings, run as arguments without a shell; STANDALONE_UI_BUILD_INVALID.

ui: false omits the SDK window; the URL launcher and Package Center Open then use sso/open.cgi. It cannot combine with console, portal or rootOps, delegate, webapi, identity (STANDALONE_UI_NO_WINDOW_INVALID). See native gateway without an SDK window.

CLI login writes identity; CLI root-ops writes rootOps.

FieldTypeRequiredDefaultRule
filesstringNoDisabledOnly session; binary rejects it (CAPABILITY_UNSUPPORTED); else CAPABILITY_INVALID.
jobsboolean or objectNoDisabledtrue or {worker: sha256-v1}, no other object keys; binary rejects it with CAPABILITY_UNSUPPORTED; invalid: CAPABILITY_INVALID.
identitystringNoDisabledOnly standalone; needs a UI build declaration (CAPABILITY_COMBINATION_INVALID); binary: CAPABILITY_UNSUPPORTED; else CAPABILITY_INVALID.
rootOpsbooleanNoDisabledOnly true; needs valid root/*.sh files; else CAPABILITY_INVALID. Running operations needs administrator approval.
delegateobjectNoDisabledEnables jobs automatically; invalid policy CAPABILITY_INVALID; binary CAPABILITY_UNSUPPORTED; administrator approval required.

Place only fixed operation scripts in root/.

RuleError
At least one script is required when enabled.STANDALONE_ROOT_OPS_MISSING
A root/ directory requires rootOps: true.STANDALONE_ROOT_OPS_UNUSED
Each filename matches ^[a-z][a-z0-9_]{0,31}\.sh$; only regular files, no symlinks.STANDALONE_ROOT_OP_INVALID
Each script is at most 16 KiB and starts with #!/bin/sh and a newline; valid UTF-8, no NUL bytes.STANDALONE_ROOT_OP_INVALID
Minimum DSM: 7.1-42661.STANDALONE_OS_MIN_VER_INVALID

init --with delegate and add delegate write {scope: install-selected, operations: [files.moveFromStaging], destinations: [save], lifetime: until-revoked}; this is a CLI-generated declaration, not a parser default.

FieldTypeRequiredDefaultRule
scopestringYesCLI: install-selectedhome, shared:<name> or install-selected. Shared names cannot contain slashes, backslashes, control characters, colons, edge whitespace, or equal . / ... install-selected needs until-revoked; CAPABILITY_INVALID.
operationsstring[]YesCLI: [files.moveFromStaging]Nonempty unique list. With until-revoked, exactly [files.moveFromStaging]. Without lifetime and destinations, choose from files.list, files.info, files.createFolder, files.checkPermission, files.write; CAPABILITY_INVALID.
destinationsstring[]With until-revokedCLI: [save]1–64 unique keys matching ^[a-z][a-z0-9_-]{0,63}$; CAPABILITY_INVALID. Omit with lifetime.
lifetimestringWith destinations or moveFromStagingCLI: until-revokedOnly until-revoked; omit for the other listed operations; CAPABILITY_INVALID.
FieldTypeRequiredDefaultRule
execstringWith an executable daemon—Payload-relative; ≤200 characters, no . / .. segments; letters, digits, _, -, and . after the first segment; STANDALONE_DAEMON_INVALID.
targetsarchitecture mapWith an executable daemon—One directory per declared architecture: relative, nonempty, inside the project, no .. or NUL; STANDALONE_DAEMON_INVALID.
argsstring[]No[]≤64 strings of ≤4096 bytes without NUL; only ${SYNOPKG_PKGDEST} and ${SYNOPKG_PKGVAR}; STANDALONE_DAEMON_INVALID.
uninstall_argsstring[]NoNoneSame rules, nonempty if present; runs after stop on uninstall; STANDALONE_DAEMON_INVALID.
envstring mapNo{}≤64 entries; values use the argument rules; STANDALONE_DAEMON_INVALID.
env.<name>stringNo—Key matches ^[A-Z][A-Z0-9_]{0,63}$. Rejects PATH, HOME, TMPDIR, ENV, BASH_ENV, SHELLOPTS, BASHOPTS, GODEBUG, GOTRACEBACK, LD_*, DYLD_*, SYNOPKG_*; STANDALONE_DAEMON_INVALID.
timeoutsobjectNo{start: 30, stop: 30, status: 5, uninstall: 60}Only the four keys below; STANDALONE_DAEMON_INVALID.
timeouts.startinteger secondsNo30How long start waits for the daemon to stay up; 2–3600; STANDALONE_DAEMON_INVALID.
timeouts.stopinteger secondsNo30One allowance covers lock, dispatch, TERM, reap and inventory retirement; 2–3600; STANDALONE_DAEMON_INVALID.
timeouts.statusinteger secondsNo51–3600; STANDALONE_DAEMON_INVALID.
timeouts.uninstallinteger secondsNo60How long uninstall_args may run after stop and before SIGTERM; independent of stop; 2–3600; STANDALONE_DAEMON_INVALID.

Measure on a loaded NAS: a scrub or large copy can push a start past 5 seconds and a revoke past 9, so allow twice the slowest time; a higher timeout only makes DSM wait longer when something hangs. DSM allows 3600 seconds for start and stop; the preuninst bound is unknown.

Combination or payload ruleError
Jobs may coexist with daemon only with delegate.lifetime: until-revoked.CAPABILITY_COMBINATION_INVALID
Payload directories hold only regular files and directories, stay in the project, have no symlinks or setuid/setgid files, and total ≤512 MiB.STANDALONE_DAEMON_PAYLOAD_INVALID
Executable must pass the binary file rules.Binary errors listed above

Put the identity gateway in front of the daemon’s web UI; every rule below raises STANDALONE_IDENTITY_GATEWAY_INVALID.

FieldTypeRequiredDefaultRule
sdkstringYes—SDK release (x.y.z) built from; it must contain the gateway, else STANDALONE_IDENTITY_GATEWAY_BUILD_FAILED.
modestringYes—none (retain App login), oidc, header or token.
upstreamintegerDaemon only—Native loopback port; Compose derives a fixed bridge IP/container port, so omit it.
listen.http, listen.httpsintegerAt least one—Ports distinct from upstream and oidc.issuer_port, not 5000 or 5001.
passthroughstring[]No[]Prefixes forwarded without sign-in, such as /share/; absolute paths without . or .., not / or under /_sso; ≤64.
redirectspath mapNo{}A key-path request redirects to the value path; both local.
email_domainstringNonas.invalidDomain of generated email addresses.
session_ttlinteger secondsNo3600Session lifetime in header and token modes. 60–86400.
rolesobjectNo{claim: groups, admin: admin}claim: claim name in oidc mode. admin: DSM administrator value. user: other users; omitted means none. Values match ^[A-Za-z0-9_.:-]{1,64}$.
headersobjectheader mode: user—Names for user, email, name, groups and uid, matching ^[A-Za-z0-9][A-Za-z0-9-]{0,63}$.
oidc.issuer_portintegeroidc mode—Provider port on 127.0.0.1.
oidc.clients[]object[]oidc mode—1–16 clients with unique id.
oidc.clients[].idstringYes—Matches ^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$; secret SYNOPKGLAND_SSO_SECRET_<ID>.
oidc.clients[].redirect_pathsstring[]One of these two[]Local paths; the redirect URI is the opened address plus one.
oidc.clients[].native_redirectsstring[]One of these two[]Exact custom-scheme redirect URIs for mobile apps. http, https, javascript, data, vbscript, file, blob and about are refused.
oidc.clients[].pkcebooleanNofalsetrue requires an S256 challenge.
oidc.clients[].rolesobjectNoTop-level rolesSame shape, for this client.
oidc.rewrite_json[]object[]No[]{method, path, field}: rewrite an issuer URL in the app’s JSON answer to /_sso/authorize on the opened address, for apps that start sign-in from JSON.
token.execstringtoken mode—A program in every daemon payload, with daemon.exec path rules.
token.argsstring[]No[]Arguments for token.exec.
account.on_delete[]object[]NoNoneAt most 16 actions in order when a signed-in DSM account is deleted. See Deleted DSM accounts.
account.on_delete[].removestringOne of these two—Relative path under /var/packages/<package>/var with {uid} or {name}: segments A-Z a-z 0-9 _ . - { }, no . or .., not under sso/.
account.on_delete[].execstring[]One of these two—A program in every daemon payload, with daemon.exec path rules, then arguments; {uid} and {name} are the only placeholders, only in arguments.
Combination or payload ruleError
A native app needs daemon; a container app declares compose instead. For native apps the gateway becomes the daemon’s executable, runs daemon.exec with args as its child, and uninstall_args runs the app directly.STANDALONE_IDENTITY_GATEWAY_INVALID
Daemon payloads do not contain _sso/, where the gateway is installed.STANDALONE_IDENTITY_GATEWAY_INVALID

Select or create a Shared Folder; neither mode deletes it on uninstall.

FieldTypeRequiredDefaultRule
modestringYes—select or create; STANDALONE_SHARED_FOLDER_INVALID.
keystringYesCLI init: sharedMatches ^[a-z][a-z0-9_]{0,31}$; cannot start with pkgwizard_, synopkg or change_; STANDALONE_SHARED_FOLDER_INVALID.
namestringWith create only—Matches ^[A-Za-z0-9][A-Za-z0-9_-]{0,31}$; DSM names such as homes, users, volume1, usbshare1 are refused. Forbidden with select; STANDALONE_SHARED_FOLDER_INVALID.
permissionstringYesCLI init: rwro or rw. Select mode needs an administrator to grant the package account access after installation; create mode grants it through DSM; STANDALONE_SHARED_FOLDER_INVALID.

Catalog locales and DSM language codes are in platforms.

FieldTypeRequiredDefaultRule
messagespathWith glossaryNone<locale>.json catalog directory; path rules apply. Missing English: STANDALONE_I18N_MESSAGES_MISSING; unsupported locale: STANDALONE_I18N_LOCALE_UNSUPPORTED.
glossarypathNoNoneJSON glossary; needs messages (STANDALONE_I18N_INVALID); path rules apply; invalid: STANDALONE_I18N_GLOSSARY_INVALID.
infolocale mapNo{}Supported locales except en; English uses top-level text; unknown keys or locale: STANDALONE_I18N_INVALID.
info.<locale>.displaynamestringNoTop-level textSame single-line rule as displayname; STANDALONE_TEXT_INVALID.
info.<locale>.descriptionstringNoTop-level textSame single-line rule as description; STANDALONE_TEXT_INVALID.

info also names the app in DSM: with a translation the build writes ui/texts/<DSM language>/strings and points the main-menu entry and window title at them. A locale without its own text shows English; without info the title stays English.

Catalog or glossary fieldTypeRequiredDefaultRule
Catalog message keystringPer message—Flat JSON object; dotted keys match ^[A-Za-z][A-Za-z0-9_-]*(\.[A-Za-z0-9_-]+)*$, values are strings; STANDALONE_I18N_CATALOG_INVALID.
Catalog key setstring keysYesEnglish keysExactly the en.json keys; STANDALONE_I18N_KEYS_MISMATCH.
Catalog placeholders{placeholder} setYesEnglish placeholdersSame placeholders in each translated message; STANDALONE_I18N_PLACEHOLDER_MISMATCH.
termsobject[]Yes in glossary—JSON array; STANDALONE_I18N_GLOSSARY_INVALID.
terms[].idstringYes—Term identifier; STANDALONE_I18N_GLOSSARY_INVALID.
terms[].textlocale mapYes—Supported locales, nonempty text; STANDALONE_I18N_GLOSSARY_INVALID.
terms[].keysstring[]No[]Existing English keys; STANDALONE_I18N_GLOSSARY_INVALID. Each listed translation needs its locale’s term, ignoring case; STANDALONE_I18N_GLOSSARY_MISMATCH.
Value or ruleEffect
admin-onlyOnly administrators enter; administrators floor every route, including those a capability adds, and others do not see the launcher. A permissions.json route marked authenticated or public raises STANDALONE_ENTRY_WIDENED.
app-privilegeChecks DSM Application Privileges; needs an authenticated route in permissions.json, else STANDALONE_ENTRY_INVALID.
OmittedUses the API permissions policy.
Any other valueSTANDALONE_ENTRY_INVALID.
Backend prerequisiteGo backend with the entry gate wired in main.go; missing support or a binary backend: STANDALONE_ENTRY_UNSUPPORTED.

{} enables Application Portal with a generated alias.

FieldTypeRequiredDefaultRule
aliasstringNoLowercase package ID, or app- plus a stable hash if reserved1–64 lowercase letters, digits and hyphens, starting and ending with a letter or digit. Unknown keys or invalid alias: STANDALONE_PORTAL_INVALID.
Reserved aliasstring——dsfile, indexdb, mobile, oauth, scripts, sharing, ssdp, synosdsjslib, synohdpack, webapi, webman, calendar, chatplus, contacts, drive, file, photo, sso, synologymeet; STANDALONE_PORTAL_INVALID.
Minimum DSMversion/buildYes when enabled—7.1-42661; STANDALONE_PORTAL_MIN_DSM.
ExecutorcapabilityBelow DSM 7.2-64570 only—rootOps, delegate or webapi; STANDALONE_PORTAL_REQUIRES_EXECUTOR.

A portal App carries a DSM login style for the alias login page and its Control Panel > Login Portal > Applications thumbnail. Without login_style the CLI uses its neutral default with the App icon as the title; check and inspect print the style.

FieldTypeRequiredDefaultRule
colorstringNo#2F6BD8#RRGGBB; STANDALONE_LOGIN_STYLE_INVALID.
wallpaperpathNoCLI defaultJPEG inside the project, ≥1920×1080 and ≤2 MiB; set with wallpaper_thumbnail. STANDALONE_LOGIN_STYLE_IMAGE_INVALID.
wallpaper_thumbnailpathWith wallpaperCLI default320×200 JPEG inside the project; STANDALONE_LOGIN_STYLE_IMAGE_INVALID.
titlepathNoApp icon680×124 PNG inside the project; STANDALONE_LOGIN_STYLE_IMAGE_INVALID.

login_style without portal, or any other key: STANDALONE_LOGIN_STYLE_INVALID.

All fields are optional; invalid values raise STANDALONE_TEXT_INVALID.

FieldTypeRequiredDefaultRule
long_descriptionstring or locale mapNoNoneText rules below; STANDALONE_TEXT_INVALID.
changelogstring or locale mapNoNoneText rules below; the English entry supplies INFO text, else the first entry; STANDALONE_TEXT_INVALID.
contact_emailstringNoNoneEmail with a dotted domain, no whitespace; STANDALONE_TEXT_INVALID.
support_emailstringNoNoneSame email rule; supplies a mailto: link when support_url is absent; STANDALONE_TEXT_INVALID.
upstreamobject or HTTPS URLNoNone{name, url, license?}; URL shorthand is normalized to that catalog object; enables attribution warnings.
homepage, source_url, issues_url, maintainer_url, distributor_url, helpurlstringNoNoneURL rules below; STANDALONE_TEXT_INVALID.
license, distributorstringNoNoneText rules below; STANDALONE_TEXT_INVALID.
support_urlstringNoNoneHTTP(S) URL or valid mailto: address; STANDALONE_TEXT_INVALID.
screenshotsstring[]NoNoneAt most 5 https:// URLs of PNG or JPG images; STANDALONE_TEXT_INVALID.
screenshots_mobilestring[]NoNonePhone screenshots under the same rules; the App page shows them in a Mobile tab, and Package Center shows only screenshots.

For upstream Apps, set metadata.upstream to {name, url} (or an HTTPS repository URL), name the original project as maintainer, yourself as metadata.distributor / metadata.distributor_url; maintainer_url points upstream. check warns on incomplete attribution; resolve TODOs before release.

Metadata ruleLimit
Text values≤16,000 characters; no control characters except tab, newline and carriage return; STANDALONE_TEXT_INVALID.
Locale maps≤32 entries; keys match ^[a-z]{2}(-[A-Za-z]{2})?$; values use the text rules; STANDALONE_TEXT_INVALID.
URLsHTTP(S), ≤2048 characters, no username or password; STANDALONE_TEXT_INVALID.
Entire objectJSON ≤32,000 characters; unknown keys refused; STANDALONE_TEXT_INVALID.

compose.files lists upstream Compose paths, with optional env_files and profiles, and compose.web: {service, port, health: {path, status}}. The SDK planner derives gateway ingress, so omit identity_gateway.upstream; use helpers only for packaged native helper targets. Headless Compose omits web and the gateway. Compose needs DSM >= 7.2.1, no daemon or backend, and supports only explicit composeMounts. See Compose manifest and Container App.

Use the real health endpoint and expected 2xx status; readiness does not follow redirects. check validates the declaration, not runtime HTTP or UID/storage; Compose ctl is unsupported. See Integrating an existing open-source App for upstream wrapping.

Native SDK Apps use ui.launch: dsm-window | new-page, defaulting to dsm-window. Frontends on @synopackageland/ui keep that mode; other native frontends declare new-page, as the plain and binary scaffolds do. A standalone page uses the DSM origin and keeps ctx.fullPage, ctx.appIcon, session/SynoToken, launch params and entry policy.

Omit portal unless an alias is required: a new page needs no defaultAlias, Portal panel or Web Station alias. Schema 2 compose with identity_gateway defaults to new-page with a standalone launcher and no Portal; an explicit ui.launch overrides it. Native SDK Apps without a web service default to dsm-window.

A native App with identity_gateway opts in with console: {} or console: {title: ...} to get two DSM entries: the main-menu entry opens the native UI in a new tab through a URL launcher, and the second opens the SDK UI in an administrator-only DSM window named ” for DSM” by default; Package Center Open starts that console, which stays on its SDK settings UI rather than the native UI. console needs identity_gateway and cannot combine with Compose, ui.launch or portal. inspect checks both launchers and INFO dsmapplaunchname.

daemon.timeouts may hold only timeouts, without a daemon executable, for Compose and workers. Start, stop and uninstall accept 2–3600 seconds and status 1–3600; defaults are 30/30/60/5. backend.timeout_seconds (default 60, 1–3600) bounds request and operation work; binary and Compose Apps without a CGI setting can enlarge the operation allowance through daemon.timeouts.status, keeping at least 60 seconds.

uninstall.purge.timeout defaults to 60 seconds and accepts 2–3600, with TERM and reap reserve. Unconfirmed cleanup keeps pending state; an accepted request does not prove it finished. They do not extend session, token, grant, login-rate or WebSocket bounds, or prove that DSM permits the same outer time. Compose startup has its own budget (see Compose manifest). Changed approved policy, root programs, payloads or task definitions still require reapproval.

daemon.restart covers a directly owned native foreground child; Compose keeps its own supervision. Without the object the SDK supervisor uses always: every unrequested exit, including exit zero and a signal, restarts the daemon with jittered exponential backoff.

daemon:
restart: {mode: on-failure, initial_seconds: 1, max_seconds: 30, max_attempts: 5, window_seconds: 300}

mode is required (off or on-failure); numeric fields use the shown defaults when omitted or zero. Delays accept 1–3600 seconds, max_seconds at least initial_seconds, attempts 1–100 and the window 1–86400 seconds. on-failure restarts a nonzero exit or a signal and lets a clean exit succeed; off never restarts. Backoff stays inside the sliding retry budget, and exhaustion reports DAEMON_RESTART_LIMIT with the daemon showing failed until an explicit start or restart. Requested stops, package stop, upgrade and uninstall never restart it; initial startup keeps its deadline and fail-fast behavior.

The controller SDK must support daemon restart policy, including for mode: off: Go Apps use their Go SDK requirement, gateway Apps identity_gateway.sdk, other native daemons the CLI’s pinned SDK. inspect verifies the normalized policy; see the daemon policy guide.