@camstack/types 0.1.20 → 0.1.21

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.
@@ -7209,7 +7209,7 @@ const meshOrchestratorCapability = {
7209
7209
  )
7210
7210
  }
7211
7211
  };
7212
- const UserRoleSchema$1 = z.enum(["super_admin", "admin", "viewer", "agent"]);
7212
+ const UserRoleSchema$1 = z.enum(["super_admin", "admin", "viewer", "agent", "scoped"]);
7213
7213
  const UserSummarySchema = z.object({
7214
7214
  id: z.string(),
7215
7215
  username: z.string(),
@@ -7777,14 +7777,16 @@ const addonsCapability = {
7777
7777
  // ── Listing ──────────────────────────────────────────────────────
7778
7778
  list: method(z.void(), z.array(AddonListItemSchema).readonly()),
7779
7779
  // ── Logs (query) ────────────────────────────────────────────────
7780
+ // Default auth (`protected`): authenticated users — including scoped
7781
+ // tokens with the right route-prefix scope. Reading logs isn't an
7782
+ // administrative action; install/restart/uninstall stay admin-only.
7780
7783
  getLogs: method(
7781
7784
  z.object({
7782
7785
  addonId: z.string(),
7783
7786
  limit: z.number().min(1).max(500).default(100),
7784
7787
  level: LogLevelSchema.optional()
7785
7788
  }),
7786
- z.array(LogQueryEntrySchema),
7787
- { auth: "admin" }
7789
+ z.array(LogQueryEntrySchema)
7788
7790
  ),
7789
7791
  // ── Packages ────────────────────────────────────────────────────
7790
7792
  listPackages: method(z.void(), z.array(InstalledPackageSchema).readonly()),
@@ -7929,7 +7931,7 @@ const PIPELINE_OWNER_CAPABILITY_NAMES = [
7929
7931
  "pipeline-orchestrator",
7930
7932
  "pipeline-runner"
7931
7933
  ];
7932
- const UserRoleSchema = z.enum(["super_admin", "admin", "viewer", "agent"]);
7934
+ const UserRoleSchema = z.enum(["super_admin", "admin", "viewer", "agent", "scoped"]);
7933
7935
  const AllowedProviderSchema = z.union([z.literal("*"), z.array(z.string())]);
7934
7936
  const AllowedDevicesSchema = z.record(z.string(), z.union([z.literal("*"), z.array(z.string())]));
7935
7937
  const UserRecordSchema = z.object({
@@ -8310,4 +8312,4 @@ export {
8310
8312
  addonsCapability as y,
8311
8313
  zonesCapability as z
8312
8314
  };
8313
- //# sourceMappingURL=auth-records-DaPoK6Cr.mjs.map
8315
+ //# sourceMappingURL=auth-records-Bsjs9Xri.mjs.map