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