@camstack/addon-pipeline 0.1.17 → 0.1.18

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.
@@ -12826,6 +12826,18 @@ const TopologyProcessSchema = object({
12826
12826
  services: array(TopologyServiceSchema).readonly(),
12827
12827
  groupId: string().optional()
12828
12828
  });
12829
+ const TopologyCategoryAddonSchema = object({
12830
+ id: string(),
12831
+ status: string(),
12832
+ cpuPercent: number(),
12833
+ memoryRss: number()
12834
+ });
12835
+ const TopologyCategorySchema = object({
12836
+ category: string(),
12837
+ total: number(),
12838
+ healthy: number(),
12839
+ addons: array(TopologyCategoryAddonSchema).readonly()
12840
+ });
12829
12841
  const TopologyNodeSchema = object({
12830
12842
  id: string(),
12831
12843
  name: string(),
@@ -12850,7 +12862,15 @@ const TopologyNodeSchema = object({
12850
12862
  status: string()
12851
12863
  })
12852
12864
  ).readonly(),
12853
- processes: array(TopologyProcessSchema).readonly()
12865
+ processes: array(TopologyProcessSchema).readonly(),
12866
+ categories: array(TopologyCategorySchema).readonly()
12867
+ });
12868
+ const CapUsageEdgeSchema = object({
12869
+ callerAddonId: string(),
12870
+ providerAddonId: string(),
12871
+ capName: string(),
12872
+ callsPerMin: number(),
12873
+ lastCallAtMs: number()
12854
12874
  });
12855
12875
  const ClusterAddonNodeDeploymentSchema = object({
12856
12876
  nodeId: string(),
@@ -12934,13 +12954,7 @@ const RenameNodeResultSchema = object({
12934
12954
  object({
12935
12955
  windowSeconds: number().int().positive().max(300).default(60)
12936
12956
  }),
12937
- array(object({
12938
- callerAddonId: string(),
12939
- providerAddonId: string(),
12940
- capName: string(),
12941
- callsPerMin: number(),
12942
- lastCallAtMs: number()
12943
- })).readonly(),
12957
+ array(CapUsageEdgeSchema).readonly(),
12944
12958
  { auth: "admin" }
12945
12959
  ),
12946
12960
  /**
@@ -14176,13 +14190,42 @@ function customAction(input, output, options) {
14176
14190
  scope: options?.scope ?? { kind: "system" }
14177
14191
  };
14178
14192
  }
14193
+ const CREDENTIAL_PARAM_PATTERNS = [
14194
+ /^user$/i,
14195
+ /^usr$/i,
14196
+ /^username$/i,
14197
+ /^password$/i,
14198
+ /^pwd$/i,
14199
+ /^pass$/i,
14200
+ /^passwd$/i,
14201
+ /^secret$/i,
14202
+ /^token$/i,
14203
+ /^auth$/i,
14204
+ /^auth[_-]?token$/i,
14205
+ /^bearer$/i,
14206
+ /^api[_-]?key$/i,
14207
+ /^access[_-]?token$/i,
14208
+ /^refresh[_-]?token$/i
14209
+ ];
14210
+ function isCredentialParam(name) {
14211
+ return CREDENTIAL_PARAM_PATTERNS.some((re) => re.test(name));
14212
+ }
14179
14213
  function maskUrlCredentials(rawUrl) {
14180
14214
  try {
14181
14215
  const u = new URL(rawUrl);
14182
- if (!u.username && !u.password) return rawUrl;
14183
- u.username = "";
14184
- u.password = "";
14185
- return u.toString();
14216
+ let touched = false;
14217
+ if (u.username || u.password) {
14218
+ u.username = "";
14219
+ u.password = "";
14220
+ touched = true;
14221
+ }
14222
+ for (const key of [...u.searchParams.keys()]) {
14223
+ if (isCredentialParam(key)) {
14224
+ u.searchParams.set(key, "***");
14225
+ touched = true;
14226
+ }
14227
+ }
14228
+ return touched ? u.toString() : rawUrl;
14186
14229
  } catch {
14187
14230
  return rawUrl;
14188
14231
  }
@@ -14268,4 +14311,4 @@ export {
14268
14311
  DEFAULT_AUDIO_ANALYZER_CONFIG as y,
14269
14312
  AUDIO_BACKEND_CHOICES as z
14270
14313
  };
14271
- //# sourceMappingURL=index-CVzLrojg.mjs.map
14314
+ //# sourceMappingURL=index-asZs8U_s.mjs.map