@synopackageland/sdk 0.10.5 → 0.10.6

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/README.md CHANGED
@@ -288,12 +288,30 @@ key the order is the App's locale, the SDK's locale, then `en`.
288
288
 
289
289
  `bridgeErrorCopy(error, locale)` is the text of a code that the bridge runtime
290
290
  adds for Python, Node and Rust Apps: `app_unavailable`, and the services'
291
- `limit_exceeded`, `read_failed` and `identity_unavailable`; and of
291
+ `limit_exceeded`, `read_failed`, `identity_unavailable` and
292
+ `credential_not_ready` (a request without DSM's SynoToken); and of
292
293
  `request_timeout`, which a Go App and the runtime send past the request
293
294
  deadline and an SDK client gives when it stops waiting. For any other code it
294
295
  returns `undefined`, so the App falls back to its own text. Its catalogs,
295
296
  `i18n/bridge/<locale>.json`, are generated from `spec/bridge/v1/errors.json`.
296
297
 
298
+ `appLifecycle(error)` reads a refusal or a status that names a stopped or
299
+ starting package (`APP_STOPPED`, `APP_STARTING`, `EXECUTOR_STARTING`, or the
300
+ DSM window's `executor_starting`) and returns `'stopped'`, `'starting'` or
301
+ `undefined`. `lifecycleCopy(lifecycle, locale)` is the text the SDK's panels
302
+ show then (9 locales). Such a package answers again by itself: show the text
303
+ as information, not as an error, and read again after
304
+ `lifecycleRetryDelay(attempt)` (2 s, doubling to `LIFECYCLE_RETRY_MAX_MS`).
305
+
306
+ ```ts
307
+ import {appLifecycle, lifecycleCopy} from '@synopackageland/sdk'
308
+ try { jobs = await ctx.call('jobs.list') } catch (error) {
309
+ const lifecycle = appLifecycle(error)
310
+ if (lifecycle) notice = lifecycleCopy(lifecycle, ctx.locale) // and poll again
311
+ else throw error
312
+ }
313
+ ```
314
+
297
315
  The Vue entry needs the peer dependencies `vue`, `@synopackageland/ui` and
298
316
  `@lucide/vue`. The headless entry needs none.
299
317
 
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} konnte die Autorisierung nicht prüfen",
30
30
  "authorization.config.body": "{package} hat eine Antwort gegeben, die diese Seite nicht lesen kann. Öffnen Sie {package} erneut; wenn das Problem bleibt, wenden Sie sich an den Entwickler.",
31
31
  "authorization.credential.title": "Die DSM-Anmeldeinformationen sind nicht bereit",
32
- "authorization.credential.body": "Diese DSM-Sitzung wurde ohne Anmeldung mit Kennwort wiederhergestellt, daher kann DSM die Anfragen von {package} nicht bestätigen. Melden Sie sich bei DSM ab, melden Sie sich erneut mit Ihrem Kennwort an und öffnen Sie dann {package} erneut.",
32
+ "authorization.credential.body": "Die DSM-Anmeldeinformationen konnten nicht abgerufen werden. Melden Sie sich mit Ihrem Kennwort erneut bei DSM an und öffnen Sie {package} dann über den DSM-Desktop.",
33
33
  "authorization.retry": "Erneut versuchen",
34
34
  "authorization.next.reinstall": "Die installierten Dateien stimmen nicht mit diesem Build überein. Installieren Sie das Paket aus einer vertrauenswürdigen Quelle neu.",
35
35
  "authorization.not_admin.title": "Administrator erforderlich",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} could not check its authorization",
30
30
  "authorization.config.body": "{package} gave an answer this page cannot read. Reopen {package}; if this continues, contact its developer.",
31
31
  "authorization.credential.title": "DSM's sign-in credential is not ready",
32
- "authorization.credential.body": "This DSM session was restored without a password sign-in, so DSM cannot vouch for {package}'s requests. Sign out of DSM, sign in again with your password, then reopen {package}.",
32
+ "authorization.credential.body": "DSM's sign-in information could not be obtained. Sign in to DSM again with your password, then open {package} from the DSM desktop.",
33
33
  "authorization.retry": "Try again",
34
34
  "authorization.next.reinstall": "The installed files do not match this build. Reinstall the package from a trusted source, then retry.",
35
35
  "authorization.not_admin.title": "Administrator needed",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} no pudo comprobar su autorización",
30
30
  "authorization.config.body": "{package} devolvió una respuesta que esta página no puede leer. Vuelva a abrir {package}; si continúa, póngase en contacto con su desarrollador.",
31
31
  "authorization.credential.title": "Las credenciales de inicio de sesión de DSM no están listas",
32
- "authorization.credential.body": "Esta sesión de DSM se restauró sin iniciar sesión con contraseña, por lo que DSM no puede avalar las solicitudes de {package}. Cierre sesión en DSM, inicie sesión de nuevo con su contraseña y vuelva a abrir {package}.",
32
+ "authorization.credential.body": "No se pudo obtener la información de autenticación de DSM. Inicie sesión de nuevo en DSM con su contraseña y abra {package} desde el escritorio de DSM.",
33
33
  "authorization.retry": "Reintentar",
34
34
  "authorization.next.reinstall": "Los archivos instalados no coinciden con esta versión. Reinstale el paquete desde una fuente fiable y vuelva a intentarlo.",
35
35
  "authorization.not_admin.title": "Se requiere un administrador",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} n’a pas pu vérifier son autorisation",
30
30
  "authorization.config.body": "{package} a renvoyé une réponse que cette page ne peut pas lire. Rouvrez {package} ; si le problème persiste, contactez son développeur.",
31
31
  "authorization.credential.title": "Les identifiants de connexion DSM ne sont pas prêts",
32
- "authorization.credential.body": "Cette session DSM a été restaurée sans connexion par mot de passe : DSM ne peut donc pas authentifier les requêtes de {package}. Déconnectez-vous de DSM, reconnectez-vous avec votre mot de passe, puis rouvrez {package}.",
32
+ "authorization.credential.body": "Impossible d'obtenir les informations d'authentification de DSM. Reconnectez-vous à DSM avec votre mot de passe, puis ouvrez {package} depuis le bureau DSM.",
33
33
  "authorization.retry": "Réessayer",
34
34
  "authorization.next.reinstall": "Les fichiers installés ne correspondent pas à cette version. Réinstallez le paquet depuis une source fiable, puis réessayez.",
35
35
  "authorization.not_admin.title": "Administrateur requis",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} non ha potuto verificare l’autorizzazione",
30
30
  "authorization.config.body": "{package} ha restituito una risposta che questa pagina non può leggere. Riaprire {package}; se il problema persiste, contattarne lo sviluppatore.",
31
31
  "authorization.credential.title": "Le credenziali di accesso di DSM non sono pronte",
32
- "authorization.credential.body": "Questa sessione DSM è stata ripristinata senza accesso con password, quindi DSM non può garantire per le richieste di {package}. Disconnettersi da DSM, accedere di nuovo con la password e riaprire {package}.",
32
+ "authorization.credential.body": "Impossibile ottenere le informazioni di autenticazione di DSM. Accedere di nuovo a DSM con la password, quindi aprire {package} dal desktop di DSM.",
33
33
  "authorization.retry": "Riprova",
34
34
  "authorization.next.reinstall": "I file installati non corrispondono a questa versione. Reinstallare il pacchetto da una fonte attendibile, quindi riprovare.",
35
35
  "authorization.not_admin.title": "Amministratore necessario",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} は認可を確認できませんでした",
30
30
  "authorization.config.body": "{package} の応答を読み取れません。{package} をもう一度開いてください。解決しない場合は、開発者に連絡してください。",
31
31
  "authorization.credential.title": "DSM のサインイン資格情報が準備できていません",
32
- "authorization.credential.body": "この DSM セッションはパスワードによるサインインなしで復元されたため、DSM は {package} のリクエストを保証できません。DSM からサインアウトし、パスワードで再度サインインしてから、{package} を開き直してください。",
32
+ "authorization.credential.body": "DSM の認証情報を取得できませんでした。パスワードで DSM に再度サインインしてから、DSM デスクトップから {package} を開いてください。",
33
33
  "authorization.retry": "再試行",
34
34
  "authorization.next.reinstall": "インストールされたファイルがこのビルドと一致しません。信頼できる配布元から再インストールし、再試行してください。",
35
35
  "authorization.not_admin.title": "管理者が必要です",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package}에서 권한을 확인할 수 없습니다",
30
30
  "authorization.config.body": "{package}의 응답을 읽을 수 없습니다. {package}을(를) 다시 여십시오. 문제가 계속되면 개발자에게 문의하십시오.",
31
31
  "authorization.credential.title": "DSM 로그인 자격 증명이 준비되지 않았습니다",
32
- "authorization.credential.body": "이 DSM 세션은 암호 로그인 없이 복원되었으므로 DSM이 {package}의 요청을 보증할 수 없습니다. DSM에서 로그아웃한 후 암호로 다시 로그인하고 {package}을 다시 여십시오.",
32
+ "authorization.credential.body": "DSM 인증 정보를 가져올 수 없습니다. 암호로 DSM에 다시 로그인한 후 DSM 데스크톱에서 {package}을(를) 여십시오.",
33
33
  "authorization.retry": "다시 시도",
34
34
  "authorization.next.reinstall": "설치된 파일이 이 빌드와 일치하지 않습니다. 신뢰할 수 있는 출처에서 패키지를 다시 설치한 후 다시 시도하십시오.",
35
35
  "authorization.not_admin.title": "관리자가 필요합니다",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} 无法检查授权",
30
30
  "authorization.config.body": "{package} 的响应无法读取。请重新打开 {package};如果持续发生,请联系其开发者。",
31
31
  "authorization.credential.title": "DSM 的登录凭据尚未就绪",
32
- "authorization.credential.body": "此 DSM 会话是恢复而来,并未使用密码登录,因此 DSM 无法为 {package} 的请求作证。请注销 DSM,使用密码重新登录,然后再打开 {package}。",
32
+ "authorization.credential.body": "无法获取 DSM 的验证信息。请使用密码重新登录 DSM,再从 DSM 桌面打开 {package}。",
33
33
  "authorization.retry": "重试",
34
34
  "authorization.next.reinstall": "安装的文件与此版本不符。请从可信任的来源重新安装套件,再重试。",
35
35
  "authorization.not_admin.title": "需要管理员处理",
@@ -29,7 +29,7 @@
29
29
  "authorization.config.title": "{package} 無法檢查授權",
30
30
  "authorization.config.body": "{package} 的回應無法讀取。請重新開啟 {package};若持續發生,請聯絡其開發者。",
31
31
  "authorization.credential.title": "DSM 的登入憑證尚未就緒",
32
- "authorization.credential.body": "此 DSM 工作階段是還原而來,並未使用密碼登入,因此 DSM 無法為 {package} 的要求作證。請登出 DSM,以密碼重新登入,然後再開啟 {package}。",
32
+ "authorization.credential.body": "無法取得 DSM 的驗證資訊。請以密碼重新登入 DSM,再從 DSM 桌面開啟 {package}。",
33
33
  "authorization.retry": "重試",
34
34
  "authorization.next.reinstall": "安裝的檔案與此版本不符。請從可信任的來源重新安裝套件,再重試。",
35
35
  "authorization.not_admin.title": "需要管理員處理",
@@ -5,5 +5,6 @@
5
5
  "read_failed": "Die Datei kann nicht gelesen werden. Bitte versuchen Sie es später erneut.",
6
6
  "identity_unavailable": "Dieses Benutzerkonto kann nicht ermittelt werden. Bitte versuchen Sie es später erneut.",
7
7
  "APP_STOPPED": "Die App ist angehalten. Starten Sie sie im Paket-Zentrum und versuchen Sie es dann erneut.",
8
- "APP_STARTING": "Die App wird gestartet. Versuchen Sie es gleich erneut."
8
+ "APP_STARTING": "Die App wird gestartet. Versuchen Sie es gleich erneut.",
9
+ "credential_not_ready": "DSM hat dieser Seite kein Anmeldetoken gegeben. Melden Sie sich mit Ihrem Kennwort erneut bei DSM an und öffnen Sie die App dann über den DSM-Desktop."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "Unable to read the file. Please try again later.",
6
6
  "identity_unavailable": "Unable to identify this user account. Please try again later.",
7
7
  "APP_STOPPED": "The App is stopped. Start it in Package Center, then try again.",
8
- "APP_STARTING": "The App is starting. Try again in a moment."
8
+ "APP_STARTING": "The App is starting. Try again in a moment.",
9
+ "credential_not_ready": "DSM did not give this page its sign-in token. Sign in to DSM again with your password, then open the App from the DSM desktop."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "No se puede leer el archivo. Vuelva a intentarlo más tarde.",
6
6
  "identity_unavailable": "No se puede identificar esta cuenta de usuario. Vuelva a intentarlo más tarde.",
7
7
  "APP_STOPPED": "La App está detenida. Iníciela en el Centro de paquetes y vuelva a intentarlo.",
8
- "APP_STARTING": "La App se está iniciando. Vuelva a intentarlo en un momento."
8
+ "APP_STARTING": "La App se está iniciando. Vuelva a intentarlo en un momento.",
9
+ "credential_not_ready": "DSM no proporcionó a esta página su token de inicio de sesión. Inicie sesión de nuevo en DSM con su contraseña y abra la App desde el escritorio de DSM."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "Impossible de lire le fichier. Veuillez réessayer ultérieurement.",
6
6
  "identity_unavailable": "Impossible d'identifier ce compte utilisateur. Veuillez réessayer ultérieurement.",
7
7
  "APP_STOPPED": "L’App est arrêtée. Démarrez-la dans le Centre de paquets, puis réessayez.",
8
- "APP_STARTING": "L’App démarre. Réessayez dans un instant."
8
+ "APP_STARTING": "L’App démarre. Réessayez dans un instant.",
9
+ "credential_not_ready": "DSM n’a pas fourni de jeton de connexion à cette page. Reconnectez-vous à DSM avec votre mot de passe, puis ouvrez l’App depuis le bureau DSM."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "Impossibile leggere il file. Riprovare più tardi.",
6
6
  "identity_unavailable": "Impossibile identificare questo account utente. Riprovare più tardi.",
7
7
  "APP_STOPPED": "L’App è arrestata. Avviarla in Centro pacchetti, quindi riprovare.",
8
- "APP_STARTING": "L’App è in fase di avvio. Riprovare tra poco."
8
+ "APP_STARTING": "L’App è in fase di avvio. Riprovare tra poco.",
9
+ "credential_not_ready": "DSM non ha fornito a questa pagina il token di accesso. Accedere di nuovo a DSM con la password, quindi aprire l’App dal desktop di DSM."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "ファイルを読み取れません。後でもう一度お試しください。",
6
6
  "identity_unavailable": "このユーザー アカウントを識別できません。後でもう一度お試しください。",
7
7
  "APP_STOPPED": "App は停止しています。パッケージ センターで起動してから、もう一度お試しください。",
8
- "APP_STARTING": "App を起動しています。しばらくしてから再試行してください。"
8
+ "APP_STARTING": "App を起動しています。しばらくしてから再試行してください。",
9
+ "credential_not_ready": "DSM がこのページにサインイン トークンを提供していません。パスワードで DSM に再度サインインしてから、DSM デスクトップから App を開いてください。"
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "파일을 읽을 수 없습니다. 나중에 다시 시도하십시오.",
6
6
  "identity_unavailable": "이 사용자 계정을 확인할 수 없습니다. 나중에 다시 시도하십시오.",
7
7
  "APP_STOPPED": "App이 중지되었습니다. 패키지 센터에서 시작한 후 다시 시도하십시오.",
8
- "APP_STARTING": "App을 시작하는 중입니다. 잠시 후 다시 시도하십시오."
8
+ "APP_STARTING": "App을 시작하는 중입니다. 잠시 후 다시 시도하십시오.",
9
+ "credential_not_ready": "DSM이 이 페이지에 로그인 토큰을 제공하지 않았습니다. 암호로 DSM에 다시 로그인한 후 DSM 데스크톱에서 App을 여십시오."
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "无法读取文件。请稍后再试。",
6
6
  "identity_unavailable": "无法识别此用户账号。请稍后再试。",
7
7
  "APP_STOPPED": "App 已停止。请在套件中心启动后重试。",
8
- "APP_STARTING": "App 正在启动,请稍后重试。"
8
+ "APP_STARTING": "App 正在启动,请稍后重试。",
9
+ "credential_not_ready": "DSM 没有为此页面提供登录令牌。请使用密码重新登录 DSM,然后从 DSM 桌面打开 App。"
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "read_failed": "無法讀取檔案。請稍後再試。",
6
6
  "identity_unavailable": "無法識別此使用者帳號。請稍後再試。",
7
7
  "APP_STOPPED": "App 已停止。請在套件中心啟動後再試一次。",
8
- "APP_STARTING": "App 正在啟動,請稍後再試。"
8
+ "APP_STARTING": "App 正在啟動,請稍後再試。",
9
+ "credential_not_ready": "DSM 沒有提供此頁面的登入權杖。請以密碼重新登入 DSM,再從 DSM 桌面開啟 App。"
9
10
  }