create-expo-updates-server 0.3.0 → 0.4.0

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.
Files changed (66) hide show
  1. package/dist/template/README.md +1 -1
  2. package/dist/template/app/updates/[encodedKey]/page.tsx +55 -33
  3. package/dist/template/app/updates/devices/page.tsx +13 -7
  4. package/dist/template/app/updates/embedded/page.tsx +25 -13
  5. package/dist/template/app/updates/emergency-redirects/page.tsx +70 -38
  6. package/dist/template/app/updates/page.tsx +33 -20
  7. package/dist/template/components/admin/admin-shell.tsx +11 -5
  8. package/dist/template/components/admin/language-switcher.tsx +5 -2
  9. package/dist/template/components/ui/dialog.tsx +13 -4
  10. package/dist/template/components/ui/sheet.tsx +6 -2
  11. package/dist/template/components/ui/sidebar.tsx +62 -17
  12. package/dist/template/docs/admin-ui.md +18 -24
  13. package/dist/template/docs/device-targeting.md +4 -5
  14. package/dist/template/docs/getting-started.ru.md +11 -544
  15. package/dist/template/docs/index.md +1 -1
  16. package/dist/template/docs/installation-telemetry.md +4 -4
  17. package/dist/template/docs/operations-guide.md +1 -1
  18. package/dist/template/docs/ota-emergency-recovery.md +34 -57
  19. package/dist/template/docs/ru/admin-ui.md +29 -0
  20. package/dist/template/docs/ru/device-targeting.md +59 -0
  21. package/dist/template/docs/ru/doctor.md +98 -0
  22. package/dist/template/docs/ru/expo-app-setup.md +497 -0
  23. package/dist/template/docs/ru/getting-started.md +391 -0
  24. package/dist/template/docs/ru/index.md +50 -0
  25. package/dist/template/docs/ru/installation-telemetry.md +125 -0
  26. package/dist/template/docs/ru/npm-installer.md +71 -0
  27. package/dist/template/docs/ru/operations-guide.md +317 -0
  28. package/dist/template/docs/ru/ota-client-lifecycle.md +167 -0
  29. package/dist/template/docs/ru/ota-emergency-recovery.md +108 -0
  30. package/dist/template/docs/ru/ota-update-policy.md +67 -0
  31. package/dist/template/docs/ru/publishing-npm-installer.md +49 -0
  32. package/dist/template/docs/ru/supabase-setup.md +120 -0
  33. package/dist/template/docs/uk/admin-ui.md +29 -0
  34. package/dist/template/docs/uk/device-targeting.md +59 -0
  35. package/dist/template/docs/uk/doctor.md +98 -0
  36. package/dist/template/docs/uk/expo-app-setup.md +497 -0
  37. package/dist/template/docs/uk/getting-started.md +391 -0
  38. package/dist/template/docs/uk/index.md +50 -0
  39. package/dist/template/docs/uk/installation-telemetry.md +125 -0
  40. package/dist/template/docs/uk/npm-installer.md +71 -0
  41. package/dist/template/docs/uk/operations-guide.md +317 -0
  42. package/dist/template/docs/uk/ota-client-lifecycle.md +167 -0
  43. package/dist/template/docs/uk/ota-emergency-recovery.md +108 -0
  44. package/dist/template/docs/uk/ota-update-policy.md +67 -0
  45. package/dist/template/docs/uk/publishing-npm-installer.md +49 -0
  46. package/dist/template/docs/uk/supabase-setup.md +120 -0
  47. package/dist/template/package.json +1 -0
  48. package/dist/template/src/client/devices/analytics.tsx +21 -8
  49. package/dist/template/src/client/devices/device-name.tsx +3 -1
  50. package/dist/template/src/client/devices/registry.tsx +38 -19
  51. package/dist/template/src/client/devices/version-adoption-chart.tsx +22 -10
  52. package/dist/template/src/client/distribution-control.tsx +27 -14
  53. package/dist/template/src/client/guard-action-combobox.test.ts +1 -1
  54. package/dist/template/src/client/guard-action-combobox.tsx +16 -10
  55. package/dist/template/src/client/i18n/en.json +203 -1
  56. package/dist/template/src/client/i18n/language-switching.test.tsx +224 -0
  57. package/dist/template/src/client/i18n/messages.test.ts +102 -19
  58. package/dist/template/src/client/i18n/messages.ts +31 -16
  59. package/dist/template/src/client/i18n/provider.tsx +6 -3
  60. package/dist/template/src/client/i18n/ru.json +488 -0
  61. package/dist/template/src/client/i18n/uk.json +488 -0
  62. package/dist/template/src/client/i18n/use-formatters.ts +5 -0
  63. package/dist/template/src/client/update-audience-editor.tsx +18 -11
  64. package/dist/template/src/client/update-policy-editor.tsx +64 -39
  65. package/dist/template-manifest.json +224 -69
  66. package/package.json +1 -1
@@ -25,7 +25,7 @@ function useKindLabels() {
25
25
  const { t } = useI18n();
26
26
  return {
27
27
  ota: "OTA",
28
- embedded: "Embedded",
28
+ embedded: t("Embedded"),
29
29
  unknown: t("Не определён"),
30
30
  };
31
31
  }
@@ -52,8 +52,12 @@ function ScopeChart({ scope }: { scope: VersionScope }) {
52
52
  <header className="mb-4 flex flex-wrap items-center justify-between gap-3">
53
53
  <div className="flex min-w-0 flex-wrap items-center gap-2">
54
54
  <GitBranch className="size-4 shrink-0 text-muted-foreground" />
55
- <span className="text-xs text-muted-foreground">{t("Канал")}</span>
56
- <h4 className="break-all text-sm font-semibold">{scope.channel}</h4>
55
+ <span className="text-xs text-muted-foreground">
56
+ {t("Канал")}
57
+ </span>
58
+ <h4 className="break-all text-sm font-semibold">
59
+ {scope.channel}
60
+ </h4>
57
61
  <Badge variant="outline">
58
62
  {scope.platform === "ios" ? "iOS" : "Android"}
59
63
  </Badge>
@@ -93,11 +97,13 @@ function ScopeChart({ scope }: { scope: VersionScope }) {
93
97
  title={version.updateId || undefined}
94
98
  >
95
99
  {kindLabels[version.kind]}
96
- {version.updateId ? ` ${version.updateId.slice(0, 8)}` : ""}
100
+ {version.updateId
101
+ ? ` ${version.updateId.slice(0, 8)}`
102
+ : ""}
97
103
  </Badge>
98
104
  </div>
99
105
  <p className="mt-1 break-words text-xs leading-5 text-muted-foreground">
100
- Native: {version.nativeBuilds.join(", ")}
106
+ {t("Native:")} {version.nativeBuilds.join(", ")}
101
107
  </p>
102
108
  {version.updateId && (
103
109
  <details className="mt-1 text-xs text-muted-foreground">
@@ -151,7 +157,8 @@ function ScopeChart({ scope }: { scope: VersionScope }) {
151
157
  <p className="text-xs text-muted-foreground">
152
158
  {t("Показано ")}
153
159
  {visible.length} {t(" из ")}
154
- {scope.versions.length} {t(" версий. Доли учитывают весь блок.")}
160
+ {scope.versions.length}{" "}
161
+ {t(" версий. Доли учитывают весь блок.")}
155
162
  </p>
156
163
  <Button
157
164
  variant="outline"
@@ -169,7 +176,11 @@ function ScopeChart({ scope }: { scope: VersionScope }) {
169
176
  </section>
170
177
  );
171
178
  }
172
- export function VersionAdoptionChart({ report }: { report: DevicesReport }) {
179
+ export function VersionAdoptionChart({
180
+ report,
181
+ }: {
182
+ report: DevicesReport;
183
+ }) {
173
184
  const kindLabels = useKindLabels();
174
185
  const { number } = useFormatters();
175
186
  const { t } = useI18n();
@@ -210,7 +221,8 @@ export function VersionAdoptionChart({ report }: { report: DevicesReport }) {
210
221
  <i
211
222
  className="size-2 rounded-full"
212
223
  style={{
213
- background: kindColors[kind as keyof typeof kindColors],
224
+ background:
225
+ kindColors[kind as keyof typeof kindColors],
214
226
  }}
215
227
  />
216
228
  {label}
@@ -221,13 +233,13 @@ export function VersionAdoptionChart({ report }: { report: DevicesReport }) {
221
233
  {runtimes.map((runtime) => (
222
234
  <section
223
235
  key={runtime.runtime}
224
- aria-label={`Runtime ${runtime.runtime}`}
236
+ aria-label={t("Runtime {0}", [runtime.runtime])}
225
237
  >
226
238
  <header className="mb-3 flex flex-wrap items-center justify-between gap-3">
227
239
  <h3 className="flex min-w-0 items-center gap-2 text-sm">
228
240
  <Layers className="size-4 shrink-0 text-muted-foreground" />
229
241
  <span className="shrink-0 text-muted-foreground">
230
- Runtime
242
+ {t("Runtime")}
231
243
  </span>
232
244
  <span className="break-all font-semibold">
233
245
  {runtime.runtime}
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import type { TranslationMessage } from "@/src/client/i18n/messages";
2
3
  import { useI18n } from "@/src/client/i18n/provider";
3
4
 
4
5
  import { Textarea } from "@/components/ui/textarea";
@@ -6,7 +7,12 @@ import { Textarea } from "@/components/ui/textarea";
6
7
  import { Button } from "@/components/ui/button";
7
8
  import { Badge } from "@/components/ui/badge";
8
9
  import { Card } from "@/components/ui/card";
9
- import { ShieldCheck, ShieldAlert, ChevronDown, RefreshCw } from "lucide-react";
10
+ import {
11
+ ShieldCheck,
12
+ ShieldAlert,
13
+ ChevronDown,
14
+ RefreshCw,
15
+ } from "lucide-react";
10
16
 
11
17
  import {
12
18
  AdminApiError,
@@ -17,8 +23,9 @@ import type { DistributionControlResponse } from "./admin-types";
17
23
  import { useCallback, useEffect, useState } from "react";
18
24
 
19
25
  export function useDistributionControlState() {
20
- const { t } = useI18n();
21
- const [state, setState] = useState<DistributionControlResponse | null>(null);
26
+ const [state, setState] = useState<DistributionControlResponse | null>(
27
+ null,
28
+ );
22
29
  const [loading, setLoading] = useState(true);
23
30
  const [error, setError] = useState("");
24
31
 
@@ -46,11 +53,14 @@ export function useDistributionControlState() {
46
53
  return () => window.clearTimeout(timeoutId);
47
54
  }, [refresh]);
48
55
 
49
- return { state, setState, loading, error: t(error), setError, refresh };
56
+ return { state, setState, loading, error, setError, refresh };
50
57
  }
51
58
 
52
- function formatChangedBy(state: DistributionControlResponse): string {
53
- const role = state.changedBy.role ? ` (${state.changedBy.role})` : "";
59
+ function formatChangedBy(
60
+ state: DistributionControlResponse,
61
+ t: ReturnType<typeof useI18n>["t"],
62
+ ): string {
63
+ const role = state.changedBy.role ? ` (${t(state.changedBy.role)})` : "";
54
64
  return `${state.changedBy.label}${role}`;
55
65
  }
56
66
 
@@ -89,11 +99,13 @@ export function DistributionControlBanner({
89
99
 
90
100
  return (
91
101
  <section className="rounded-lg border border-destructive/25 bg-destructive/5 p-4 text-destructive">
92
- <p className="font-semibold">{t("Распространение OTA остановлено")}</p>
102
+ <p className="font-semibold">
103
+ {t("Распространение OTA остановлено")}
104
+ </p>
93
105
  <p className="mt-1 text-sm">{state.reason}</p>
94
106
  <p className="mt-2 text-xs">
95
107
  {new Date(state.changedAt).toLocaleString(formatLocale)} ·{" "}
96
- {formatChangedBy(state)}
108
+ {formatChangedBy(state, t)}
97
109
  </p>
98
110
  </section>
99
111
  );
@@ -105,7 +117,7 @@ export default function DistributionControl() {
105
117
  useDistributionControlState();
106
118
  const [reason, setReason] = useState("");
107
119
  const [saving, setSaving] = useState(false);
108
- const [message, setMessage] = useState("");
120
+ const [message, setMessage] = useState<TranslationMessage>("");
109
121
  const [expanded, setExpanded] = useState(false);
110
122
 
111
123
  const changeState = async (blocked: boolean) => {
@@ -143,8 +155,8 @@ export default function DistributionControl() {
143
155
  setReason("");
144
156
  setMessage(
145
157
  blocked
146
- ? t("OTA-распространение остановлено.")
147
- : t("OTA-распространение возобновлено."),
158
+ ? "OTA-распространение остановлено."
159
+ : "OTA-распространение возобновлено.",
148
160
  );
149
161
  } catch (saveError: unknown) {
150
162
  if (saveError instanceof AdminApiError && saveError.status === 409) {
@@ -222,7 +234,7 @@ export default function DistributionControl() {
222
234
  />
223
235
  </Button>
224
236
  ) : state ? (
225
- <Badge variant="outline">Read only · updates:write</Badge>
237
+ <Badge variant="outline">{t("Read only · updates:write")}</Badge>
226
238
  ) : null}
227
239
  </div>
228
240
  {expanded && state?.canWrite && (
@@ -233,7 +245,8 @@ export default function DistributionControl() {
233
245
  <p className="text-xs text-muted-foreground">
234
246
  {t("Изменено: ")}
235
247
  {new Date(state.changedAt).toLocaleString(formatLocale)} ·{" "}
236
- {formatChangedBy(state)} · version {state.version}
248
+ {formatChangedBy(state, t)}{" "}
249
+ {t(" · version {0}", [state.version])}
237
250
  </p>
238
251
  {!state.blocked && (
239
252
  <label className="block space-y-2 text-sm font-medium">
@@ -277,7 +290,7 @@ export default function DistributionControl() {
277
290
  role="status"
278
291
  className="border-t px-4 py-3 text-sm text-emerald-700 dark:text-emerald-400"
279
292
  >
280
- {message}
293
+ {t(message)}
281
294
  </p>
282
295
  )}
283
296
  </Card>
@@ -10,7 +10,7 @@ describe("Guard action combobox semantics", () => {
10
10
  it("uses a named dialog popup instead of interactive listbox options", () => {
11
11
  expect(source).toContain('aria-haspopup="dialog"');
12
12
  expect(source).toContain('role="dialog"');
13
- expect(source).toContain('aria-label="Guard action catalog"');
13
+ expect(source).toContain('aria-label={t("Guard action catalog")}');
14
14
  expect(source).not.toMatch(/role="(?:listbox|option)"/);
15
15
  });
16
16
 
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { useI18n } from "@/src/client/i18n/provider";
2
3
 
3
4
  import { Input } from "@/components/ui/input";
4
5
 
@@ -32,6 +33,7 @@ export default function GuardActionCombobox({
32
33
  onDelete,
33
34
  onRetry,
34
35
  }: Props) {
36
+ const { t } = useI18n();
35
37
  const generatedId = useId();
36
38
  const popupId = `${generatedId}-popup`;
37
39
  const errorId = `${generatedId}-error`;
@@ -144,7 +146,7 @@ export default function GuardActionCombobox({
144
146
  readOnly={selectionDisabled}
145
147
  aria-disabled={selectionDisabled}
146
148
  role="combobox"
147
- aria-label="Rule action"
149
+ aria-label={t("Rule action")}
148
150
  aria-autocomplete="list"
149
151
  aria-haspopup="dialog"
150
152
  aria-expanded={open}
@@ -159,13 +161,13 @@ export default function GuardActionCombobox({
159
161
  }}
160
162
  onKeyDown={handleKeyDown}
161
163
  className="w-full"
162
- placeholder="Action (required)"
164
+ placeholder={t("Action (required)")}
163
165
  />
164
166
  {open ? (
165
167
  <div
166
168
  id={popupId}
167
169
  role="dialog"
168
- aria-label="Guard action catalog"
170
+ aria-label={t("Guard action catalog")}
169
171
  className="absolute z-20 mt-1 max-h-60 w-full overflow-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-md"
170
172
  >
171
173
  {filteredOptions.map((option, index) => (
@@ -179,7 +181,9 @@ export default function GuardActionCombobox({
179
181
  type="button"
180
182
  tabIndex={-1}
181
183
  disabled={selectionDisabled}
182
- aria-current={option.actionKey === value ? "true" : undefined}
184
+ aria-current={
185
+ option.actionKey === value ? "true" : undefined
186
+ }
183
187
  onMouseDown={(event) => event.preventDefault()}
184
188
  onClick={() => chooseOption(option)}
185
189
  className="min-w-0 flex-1 truncate px-3 py-2 text-left text-sm disabled:cursor-default"
@@ -190,8 +194,10 @@ export default function GuardActionCombobox({
190
194
  {option.persisted && canMutateCatalog ? (
191
195
  <button
192
196
  type="button"
193
- aria-label={`Delete ${option.actionKey} from action catalog`}
194
- title="Delete from catalog"
197
+ aria-label={t("Delete {0} from action catalog", [
198
+ option.actionKey,
199
+ ])}
200
+ title={t("Delete from catalog")}
195
201
  onMouseDown={(event) => event.preventDefault()}
196
202
  onClick={(event) => {
197
203
  event.stopPropagation();
@@ -223,12 +229,12 @@ export default function GuardActionCombobox({
223
229
  activeIndex === filteredOptions.length ? "bg-accent" : ""
224
230
  }`}
225
231
  >
226
- Create “{creatableValue}”
232
+ {t("Create “{0}”", [creatableValue])}
227
233
  </button>
228
234
  ) : null}
229
235
  {filteredOptions.length === 0 && !showCreate ? (
230
236
  <p className="px-3 py-2 text-sm text-muted-foreground">
231
- No matching actions
237
+ {t("No matching actions")}
232
238
  </p>
233
239
  ) : null}
234
240
  </div>
@@ -239,14 +245,14 @@ export default function GuardActionCombobox({
239
245
  role="status"
240
246
  className="mt-1 flex items-center gap-2 text-xs text-amber-700 dark:text-amber-300"
241
247
  >
242
- <span>{inputError || mutationError}</span>
248
+ <span>{t(inputError || mutationError || "")}</span>
243
249
  {mutationError && onRetry ? (
244
250
  <button
245
251
  type="button"
246
252
  onClick={() => void onRetry()}
247
253
  className="underline"
248
254
  >
249
- Retry
255
+ {t("Retry")}
250
256
  </button>
251
257
  ) : null}
252
258
  </div>
@@ -282,5 +282,207 @@
282
282
  "Страница ": "Page ",
283
283
  "Вперёд": "Next",
284
284
  "Неверные учётные данные": "Invalid credentials",
285
- "Вход временно недоступен": "Login is temporarily unavailable"
285
+ "Вход временно недоступен": "Login is temporarily unavailable",
286
+ "Interface language": "Interface language",
287
+ "Release workspace": "Release workspace",
288
+ "Native:": "Native:",
289
+ "Runtime": "Runtime",
290
+ "Embedded": "Embedded",
291
+ "Native": "Native",
292
+ "Emergency": "Emergency",
293
+ "Runtime / native": "Runtime / native",
294
+ "Rule action": "Rule action",
295
+ "Action (required)": "Action (required)",
296
+ "Guard action catalog": "Guard action catalog",
297
+ "Delete from catalog": "Delete from catalog",
298
+ "No matching actions": "No matching actions",
299
+ "Toggle Sidebar": "Toggle Sidebar",
300
+ "Close": "Close",
301
+ "Device IDs": "Device IDs",
302
+ "Installation IDs": "Installation IDs",
303
+ "Read only · updates:write": "Read only · updates:write",
304
+ "· version": "· version",
305
+ "Update policy": "Update policy",
306
+ "Manual": "Manual",
307
+ "Background": "Background",
308
+ "Published policies are read-only. Publish a new update ID to change policy.": "Published policies are read-only. Publish a new update ID to change policy.",
309
+ "Note:": "Note:",
310
+ "a Guard is usually paired with Background delivery so the candidate can fetch silently. Activation is still allowed.": "a Guard is usually paired with Background delivery so the candidate can fetch silently. Activation is still allowed.",
311
+ "Action catalog:": "Action catalog:",
312
+ "Add action to catalog": "Add action to catalog",
313
+ "Reusable action name": "Reusable action name",
314
+ "Adds a reusable catalog item without changing this policy.": "Adds a reusable catalog item without changing this policy.",
315
+ "Action catalog": "Action catalog",
316
+ "Guard action catalog entries": "Guard action catalog entries",
317
+ "No catalog actions found.": "No catalog actions found.",
318
+ "Guard enabled": "Guard enabled",
319
+ "When enabled, this Guard applies unconditionally whenever this OTA is selected for a client.": "When enabled, this Guard applies unconditionally whenever this OTA is selected for a client.",
320
+ "Optional custom JSON payload": "Optional custom JSON payload",
321
+ "No Guard will be emitted in the update manifest.": "No Guard will be emitted in the update manifest.",
322
+ "Save policy": "Save policy",
323
+ "Installation ID": "Installation ID",
324
+ "Device ID": "Device ID",
325
+ "Stage": "Stage",
326
+ "Latest": "Latest",
327
+ "Rollback": "Rollback",
328
+ "Guard": "Guard",
329
+ "Policy": "Policy",
330
+ "Assets": "Assets",
331
+ "Update ID": "Update ID",
332
+ "Promote": "Promote",
333
+ "Created At": "Created At",
334
+ "App version": "App version",
335
+ "Embedded ID": "Embedded ID",
336
+ "Action": "Action",
337
+ "OTA Updates": "OTA Updates",
338
+ "Rollback lock:": "Rollback lock:",
339
+ "Runtime / App": "Runtime / App",
340
+ "App": "App",
341
+ "Runtime version": "Runtime version",
342
+ "Embedded update ID": "Embedded update ID",
343
+ "From channel": "From channel",
344
+ "To channel": "To channel",
345
+ "Target mode": "Target mode",
346
+ "Pinned update": "Pinned update",
347
+ "Follow channel": "Follow channel",
348
+ "Scope": "Scope",
349
+ "Redirect": "Redirect",
350
+ "Target": "Target",
351
+ "Actions": "Actions",
352
+ "Edit": "Edit",
353
+ "Read only": "Read only",
354
+ "Expected update ID": "Expected update ID",
355
+ "Expected update ID (optional)": "Expected update ID (optional)",
356
+ "Enabled": "Enabled",
357
+ "Disabled": "Disabled",
358
+ "Disable": "Disable",
359
+ "Enable": "Enable",
360
+ "Adding…": "Adding…",
361
+ "Add to catalog": "Add to catalog",
362
+ "Ignored by rollback": "Ignored by rollback",
363
+ "Scope open": "Scope open",
364
+ "None": "None",
365
+ "draft": "draft",
366
+ "published": "published",
367
+ "active": "active",
368
+ "inactive": "inactive",
369
+ "disabled": "disabled",
370
+ "admin": "admin",
371
+ "operator": "operator",
372
+ "viewer": "viewer",
373
+ "Native version / build": "Native version / build",
374
+ "OTA artifact ID": "OTA artifact ID",
375
+ "Launch update ID": "Launch update ID",
376
+ "Runtime {0}": "Runtime {0}",
377
+ "Loading update policy…": "Loading update policy…",
378
+ "Delete \"{0}\" from the action catalog? Existing policies are unaffected.": "Delete \"{0}\" from the action catalog? Existing policies are unaffected.",
379
+ "Policy saved as version {0}.": "Policy saved as version {0}.",
380
+ " · published {0}": " · published {0}",
381
+ " · draft": " · draft",
382
+ "Delete {0} from action catalog": "Delete {0} from action catalog",
383
+ "Create “{0}”": "Create “{0}”",
384
+ "Failed to load action catalog": "Failed to load action catalog",
385
+ "Failed to load policy": "Failed to load policy",
386
+ "Action remains selected but was not saved to the catalog.": "Action remains selected but was not saved to the catalog.",
387
+ "Failed to add action to the catalog.": "Failed to add action to the catalog.",
388
+ "Failed to delete action from catalog": "Failed to delete action from catalog",
389
+ "Select or create a Guard action.": "Select or create a Guard action.",
390
+ "Guard payload must be valid JSON.": "Guard payload must be valid JSON.",
391
+ "Failed to save policy": "Failed to save policy",
392
+ "Action must contain between 1 and 100 characters.": "Action must contain between 1 and 100 characters.",
393
+ "Action must not contain control characters.": "Action must not contain control characters.",
394
+ "Rules: {0}": "Rules: {0}",
395
+ "Builds: {0}": "Builds: {0}",
396
+ "Ascending": "Ascending",
397
+ "Descending": "Descending",
398
+ "Unauthorized": "Unauthorized",
399
+ "Forbidden": "Forbidden",
400
+ "Invalid filters": "Invalid filters",
401
+ "Device report unavailable": "Device report unavailable",
402
+ "Invalid platform": "Invalid platform",
403
+ "Invalid device ID": "Invalid device ID",
404
+ "Device name unavailable": "Device name unavailable",
405
+ "Devices unavailable": "Devices unavailable",
406
+ "Invalid device name": "Invalid device name",
407
+ "Failed to name device": "Failed to name device",
408
+ "Invalid JSON request body": "Invalid JSON request body",
409
+ "Invalid JSON request body.": "Invalid JSON request body.",
410
+ "Invalid request body": "Invalid request body",
411
+ "Request body must be a JSON object.": "Request body must be a JSON object.",
412
+ "Failed to list emergency redirects": "Failed to list emergency redirects",
413
+ "Failed to create emergency redirect": "Failed to create emergency redirect",
414
+ "Failed to update emergency redirect": "Failed to update emergency redirect",
415
+ "Failed to delete emergency redirect": "Failed to delete emergency redirect",
416
+ "Failed to read OTA distribution control.": "Failed to read OTA distribution control.",
417
+ "Failed to update OTA distribution control.": "Failed to update OTA distribution control.",
418
+ "Failed to list guard actions": "Failed to list guard actions",
419
+ "Failed to create guard action": "Failed to create guard action",
420
+ "Failed to delete guard action": "Failed to delete guard action",
421
+ "Audience unavailable": "Audience unavailable",
422
+ "Update not found": "Update not found",
423
+ "Failed to fetch updates": "Failed to fetch updates",
424
+ "Failed to fetch update": "Failed to fetch update",
425
+ "Failed to fetch embedded updates": "Failed to fetch embedded updates",
426
+ "Failed to delete embedded update": "Failed to delete embedded update",
427
+ "Failed to fetch update policy": "Failed to fetch update policy",
428
+ "Failed to update policy": "Failed to update policy",
429
+ "Failed to promote latest update": "Failed to promote latest update",
430
+ "Failed to deactivate update": "Failed to deactivate update",
431
+ "Failed to delete update": "Failed to delete update",
432
+ "Failed to update JSON": "Failed to update JSON",
433
+ "Failed to rollback update": "Failed to rollback update",
434
+ "Failed to fetch": "Failed to fetch",
435
+ "Load failed": "Load failed",
436
+ "Emergency redirect must be a JSON object": "Emergency redirect must be a JSON object",
437
+ "Patch must be a JSON object": "Patch must be a JSON object",
438
+ "name must be a non-empty string": "name must be a non-empty string",
439
+ "embeddedUpdateId must be a non-empty string": "embeddedUpdateId must be a non-empty string",
440
+ "runtimeVersion must be a non-empty string": "runtimeVersion must be a non-empty string",
441
+ "fromChannel must be a non-empty string": "fromChannel must be a non-empty string",
442
+ "toChannel must be a non-empty string": "toChannel must be a non-empty string",
443
+ "name must contain at most 120 characters": "name must contain at most 120 characters",
444
+ "embeddedUpdateId must be a UUID": "embeddedUpdateId must be a UUID",
445
+ "platform must be android or ios": "platform must be android or ios",
446
+ "fromChannel and toChannel must differ": "fromChannel and toChannel must differ",
447
+ "targetMode must be pinned or follow": "targetMode must be pinned or follow",
448
+ "enabled must be boolean": "enabled must be boolean",
449
+ "expectedUpdateId is required in pinned mode": "expectedUpdateId is required in pinned mode",
450
+ "expectedUpdateId must be a UUID": "expectedUpdateId must be a UUID",
451
+ "Invalid audience": "Invalid audience",
452
+ "Invalid target IDs (maximum 100 per type)": "Invalid target IDs (maximum 100 per type)",
453
+ "Invalid audience mode or version": "Invalid audience mode or version",
454
+ "Select at least one device or installation": "Select at least one device or installation",
455
+ "Audience changed or distribution blocked. Refresh and try again.": "Audience changed or distribution blocked. Refresh and try again.",
456
+ "Failed to save audience": "Failed to save audience",
457
+ "Guard action must be a JSON object": "Guard action must be a JSON object",
458
+ "actionKey must be a string": "actionKey must be a string",
459
+ "actionKey must contain between 1 and 100 characters": "actionKey must contain between 1 and 100 characters",
460
+ "actionKey must not contain control characters": "actionKey must not contain control characters",
461
+ "id must be a UUID": "id must be a UUID",
462
+ "expectedPolicyVersion must be a positive integer.": "expectedPolicyVersion must be a positive integer.",
463
+ "Update policy is immutable after publication.": "Update policy is immutable after publication.",
464
+ "reason is required when OTA distribution is blocked.": "reason is required when OTA distribution is blocked.",
465
+ "reason must contain at most 500 characters and no control characters.": "reason must contain at most 500 characters and no control characters.",
466
+ "content must be a JSON object": "content must be a JSON object",
467
+ "Cannot promote: latest update is not set for this scope.": "Cannot promote: latest update is not set for this scope.",
468
+ "Promote is allowed only on the latest update.": "Promote is allowed only on the latest update.",
469
+ "Promote is not available because rollback is not active.": "Promote is not available because rollback is not active.",
470
+ "Rollback is not available: no active update is currently served for this scope.": "Rollback is not available: no active update is currently served for this scope.",
471
+ "Rollback is not available for the currently served update.": "Rollback is not available for the currently served update.",
472
+ "Rollback is not available: currently served update is not active.": "Rollback is not available: currently served update is not active.",
473
+ "Rollback is allowed only when a newer active update exists in the same scope.": "Rollback is allowed only when a newer active update exists in the same scope.",
474
+ "Direct activation is allowed only for the newest update in scope. Use Rollback for older updates.": "Direct activation is allowed only for the newest update in scope. Use Rollback for older updates.",
475
+ "Direct activation is unavailable while rollback mode is active. Use Promote on the newest update.": "Direct activation is unavailable while rollback mode is active. Use Promote on the newest update.",
476
+ "Version {0}": "Version {0}",
477
+ " · version {0}": " · version {0}",
478
+ "policy.delivery: must be manual or background": "policy.delivery: must be manual or background",
479
+ "policy.guard.action: must be a string": "policy.guard.action: must be a string",
480
+ "policy.guard.payload: must be absent when action is empty": "policy.guard.payload: must be absent when action is empty",
481
+ "policy.guard.action: must contain at most 100 characters": "policy.guard.action: must contain at most 100 characters",
482
+ "policy.guard.payload: must be JSON-serializable": "policy.guard.payload: must be JSON-serializable",
483
+ "Distribution control version conflict. Refresh and try again.": "Distribution control version conflict. Refresh and try again.",
484
+ "OTA distribution is globally blocked. Disable the emergency switch before starting distribution.": "OTA distribution is globally blocked. Disable the emergency switch before starting distribution.",
485
+ "policy.guard.action: must be trimmed, contain 1-100 characters, and have no control characters": "policy.guard.action: must be trimmed, contain 1-100 characters, and have no control characters",
486
+ "policy.guard.payload: must not exceed 16384 UTF-8 bytes": "policy.guard.payload: must not exceed 16384 UTF-8 bytes",
487
+ "policy.guard.payload: JSON depth must not exceed 10": "policy.guard.payload: JSON depth must not exceed 10"
286
488
  }