@dx-do/client 6.3.3 → 6.3.5

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/dist/index.esm.js CHANGED
@@ -29300,12 +29300,15 @@ const QueryFilterPredicateSpecSchema = z.union([
29300
29300
  const QueryRangeSpecSchema = z.looseObject({
29301
29301
  endTime: z
29302
29302
  .number()
29303
- .describe('Absolute end time in ms since epoch; default `now`'),
29303
+ .optional()
29304
+ .describe('Absolute end time in ms since epoch; omit (or 0) for `now`'),
29304
29305
  rangeSize: z
29305
29306
  .number()
29307
+ .optional()
29306
29308
  .describe('Window length in ms; `startTime = endTime - rangeSize`. Default 8 minutes'),
29307
29309
  frequency: z
29308
29310
  .number()
29311
+ .optional()
29309
29312
  .describe('Initial NASS aggregation interval in ms; default 15s. Aggregator picked per metric type'),
29310
29313
  });
29311
29314
  /**
@@ -29956,6 +29959,41 @@ const QueryFromDataSpecSchema = z.looseObject({
29956
29959
  queryRange: QueryRangeSpecSchema.optional().describe('Time-window to fetch; defaults to pipeline range'),
29957
29960
  alias: z.string().optional().describe('Column namespace for output rows'),
29958
29961
  });
29962
+ /**
29963
+ * `WQL` — source op that selects time-series via a single **WQL** expression
29964
+ * instead of a Metrics Metadata `querySpecifier`. Like `FROM`, it produces
29965
+ * data rows and is typically the first op in the pipeline.
29966
+ *
29967
+ * The `wql` string is parsed server-side (ANTLR `DXQueryCompiler`); we treat
29968
+ * it as opaque here — no client-side grammar validation. Grammar:
29969
+ *
29970
+ * `ts(<metric-name>[, <predicates>])`
29971
+ *
29972
+ * `<metric-name>` may be quoted or unquoted. `<predicates>` combine
29973
+ * `attr=value` terms with `and` / `or` / `not`, grouping `( … )`, single- or
29974
+ * double-quoted values, and `*` wildcards. Example:
29975
+ *
29976
+ * `ts("CPU Time (ms)" and source="web-server-01" and not env="staging")`
29977
+ *
29978
+ * **Tenant gating**: requires the `DXDASHBOARDS_WQL_FEATURE` toggle; tenants
29979
+ * without it return an error at run time.
29980
+ */
29981
+ const QueryWqlSpecSchema = z.looseObject({
29982
+ op: z.literal('WQL'),
29983
+ wql: z
29984
+ .string()
29985
+ .min(1)
29986
+ .describe('WQL expression selecting time-series. Grammar: `ts(<metric-name>[, <predicates>])` — name quoted or unquoted; predicates combine `attr=value` with `and`/`or`/`not`, grouping `( )`, quoted values, and `*` wildcards. E.g. `ts("CPU Time (ms)" and source="web-server-01")`. Server-parsed (ANTLR); required and non-empty.'),
29987
+ clamp: z
29988
+ .union([z.number(), z.string()])
29989
+ .optional()
29990
+ .describe('Cap on results; `0` = unlimited (default). Semantically an int, but the platform emits it on the wire as a numeric string (e.g. `"10000"`) — both forms accepted.'),
29991
+ useAttributes: z
29992
+ .boolean()
29993
+ .optional()
29994
+ .describe('When true, use metadata attributes in the WQL metadata query; omit to fall back to the tenant config default (`isMetadataQueryUsingAttributes`).'),
29995
+ queryRange: QueryRangeSpecSchema.optional().describe('Time-window spec; defaults to the last 8 minutes ending now'),
29996
+ });
29959
29997
  /**
29960
29998
  * `JOIN_METADATA` — for each upstream row, look up zero or one
29961
29999
  * `MetricDescriptor` by the external ID in `externalIdColumn` and
@@ -30109,6 +30147,7 @@ const QueryFunctionSpecSchema = z.discriminatedUnion('op', [
30109
30147
  QueryFromMetadataSpecSchema,
30110
30148
  QueryFromTopologySpecSchema,
30111
30149
  QueryFromDataSpecSchema,
30150
+ QueryWqlSpecSchema,
30112
30151
  QueryJoinMetadataSpecSchema,
30113
30152
  QueryJoinTopologySpecSchema,
30114
30153
  QueryLogSpecSchema,