@stackone/olap 3.4.0 → 3.5.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.
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { HeaderValue } from "@stackone/utils";
1
2
  import { ILogger } from "@stackone/logger";
2
3
  import { Producer } from "@platformatic/kafka";
3
4
  import { z } from "zod";
@@ -5,6 +6,9 @@ import { Storage } from "@stackone/storage";
5
6
 
6
7
  //#region \0rolldown/runtime.js
7
8
  //#endregion
9
+ //#region src/advanced/callerHeaders.d.ts
10
+ declare const callerHeadersOf: (headers: Record<string, HeaderValue> | undefined) => Record<string, string> | undefined;
11
+ //#endregion
8
12
  //#region src/advanced/truncation.d.ts
9
13
  type TruncationMode = 'drop' | 'truncate' | 'complete';
10
14
  //#endregion
@@ -343,6 +347,7 @@ type ActionInput = {
343
347
  queryParams?: unknown;
344
348
  body?: unknown;
345
349
  headers?: Record<string, string>;
350
+ callerHeaders?: Record<string, string>;
346
351
  httpMethod?: string;
347
352
  url?: string;
348
353
  path?: string;
@@ -1317,4 +1322,4 @@ declare class PolicySink implements IPolicySink {
1317
1322
  //#region src/utils/stepErrors.d.ts
1318
1323
  declare const hasErrorEntries: (errors: unknown) => boolean;
1319
1324
  //#endregion
1320
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsCountQuery, type ActionsQuery, type ActionsQueryResult, type AdvancedLogMetadata, type AdvancedOptions, type AdvancedPiiScrubber, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, type AuthPair, AuthType, type AuthType as AuthTypeValue, type ClickHouseConfig, type CombinedLogType, DEFAULT_TOPIC_CLUSTER_MAP, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type FaultedPolicySet, type FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, InvalidLogQueryConditionsError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, LOG_QUERY_FIELDS, LOG_QUERY_OPERATORS, type LogEntities, type LogQueryCondition, type LogQueryField, type LogQueryOperator, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformAdvancedLog, PlatformDimension, type PlatformDimension as PlatformDimensionValues, type PlatformDimensionsQuery, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type PolicyContext, type PolicyLog, type PolicyObservation, type PolicyOptions, type PolicyRecord, type PolicyResult, PolicySink, type PolicySinkConfig, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, QueryClientNotConfiguredError, type QueryResult, type SASLMechanism, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type TruncationMode, type UnenforcedRedaction, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, type WithheldReason, getPolicySink, hasErrorEntries, parseLogQueryConditions };
1325
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsCountQuery, type ActionsQuery, type ActionsQueryResult, type AdvancedLogMetadata, type AdvancedOptions, type AdvancedPiiScrubber, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, type AuthPair, AuthType, type AuthType as AuthTypeValue, type ClickHouseConfig, type CombinedLogType, DEFAULT_TOPIC_CLUSTER_MAP, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type FaultedPolicySet, type FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, InvalidLogQueryConditionsError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, LOG_QUERY_FIELDS, LOG_QUERY_OPERATORS, type LogEntities, type LogQueryCondition, type LogQueryField, type LogQueryOperator, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformAdvancedLog, PlatformDimension, type PlatformDimension as PlatformDimensionValues, type PlatformDimensionsQuery, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type PolicyContext, type PolicyLog, type PolicyObservation, type PolicyOptions, type PolicyRecord, type PolicyResult, PolicySink, type PolicySinkConfig, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, QueryClientNotConfiguredError, type QueryResult, type SASLMechanism, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type TruncationMode, type UnenforcedRedaction, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, type WithheldReason, callerHeadersOf, getPolicySink, hasErrorEntries, parseLogQueryConditions };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,13 @@
1
1
  import { t as __name } from "./chunk-BhWHdk3m.mjs";
2
+ import { HeaderValue } from "@stackone/utils";
2
3
  import { z } from "zod";
3
4
  import { Storage } from "@stackone/storage";
4
5
  import { ILogger } from "@stackone/logger";
5
6
  import { Producer } from "@platformatic/kafka";
6
7
 
8
+ //#region src/advanced/callerHeaders.d.ts
9
+ declare const callerHeadersOf: (headers: Record<string, HeaderValue> | undefined) => Record<string, string> | undefined;
10
+ //#endregion
7
11
  //#region src/advanced/truncation.d.ts
8
12
  type TruncationMode = 'drop' | 'truncate' | 'complete';
9
13
  //#endregion
@@ -342,6 +346,7 @@ type ActionInput = {
342
346
  queryParams?: unknown;
343
347
  body?: unknown;
344
348
  headers?: Record<string, string>;
349
+ callerHeaders?: Record<string, string>;
345
350
  httpMethod?: string;
346
351
  url?: string;
347
352
  path?: string;
@@ -1316,4 +1321,4 @@ declare class PolicySink implements IPolicySink {
1316
1321
  //#region src/utils/stepErrors.d.ts
1317
1322
  declare const hasErrorEntries: (errors: unknown) => boolean;
1318
1323
  //#endregion
1319
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsCountQuery, type ActionsQuery, type ActionsQueryResult, type AdvancedLogMetadata, type AdvancedOptions, type AdvancedPiiScrubber, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, type AuthPair, AuthType, type AuthType as AuthTypeValue, type ClickHouseConfig, type CombinedLogType, DEFAULT_TOPIC_CLUSTER_MAP, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type FaultedPolicySet, type FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, InvalidLogQueryConditionsError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, LOG_QUERY_FIELDS, LOG_QUERY_OPERATORS, type LogEntities, type LogQueryCondition, type LogQueryField, type LogQueryOperator, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformAdvancedLog, PlatformDimension, type PlatformDimension as PlatformDimensionValues, type PlatformDimensionsQuery, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type PolicyContext, type PolicyLog, type PolicyObservation, type PolicyOptions, type PolicyRecord, type PolicyResult, PolicySink, type PolicySinkConfig, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, QueryClientNotConfiguredError, type QueryResult, type SASLMechanism, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type TruncationMode, type UnenforcedRedaction, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, type WithheldReason, getPolicySink, hasErrorEntries, parseLogQueryConditions };
1324
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsCountQuery, type ActionsQuery, type ActionsQueryResult, type AdvancedLogMetadata, type AdvancedOptions, type AdvancedPiiScrubber, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, type AuthPair, AuthType, type AuthType as AuthTypeValue, type ClickHouseConfig, type CombinedLogType, DEFAULT_TOPIC_CLUSTER_MAP, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type FaultedPolicySet, type FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, InvalidLogQueryConditionsError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, LOG_QUERY_FIELDS, LOG_QUERY_OPERATORS, type LogEntities, type LogQueryCondition, type LogQueryField, type LogQueryOperator, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformAdvancedLog, PlatformDimension, type PlatformDimension as PlatformDimensionValues, type PlatformDimensionsQuery, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type PolicyContext, type PolicyLog, type PolicyObservation, type PolicyOptions, type PolicyRecord, type PolicyResult, PolicySink, type PolicySinkConfig, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, QueryClientNotConfiguredError, type QueryResult, type SASLMechanism, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type TruncationMode, type UnenforcedRedaction, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, type WithheldReason, callerHeadersOf, getPolicySink, hasErrorEntries, parseLogQueryConditions };