@stackone/olap 3.0.0 → 3.1.1
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/README.md +13 -0
- package/dist/index.cjs +30 -27
- package/dist/index.d.cts +15 -2
- package/dist/index.d.mts +15 -2
- package/dist/index.mjs +32 -29
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -349,6 +349,7 @@ type ActionResult = {
|
|
|
349
349
|
type StepInput = {
|
|
350
350
|
actionRunId: string;
|
|
351
351
|
actionMode: string;
|
|
352
|
+
actionSourceType?: SourceType;
|
|
352
353
|
actionSuccess?: boolean;
|
|
353
354
|
stepIndex: number;
|
|
354
355
|
stepId: string;
|
|
@@ -485,6 +486,10 @@ declare const LogType: {
|
|
|
485
486
|
};
|
|
486
487
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
487
488
|
type CombinedLogType = typeof LogType.Action | typeof LogType.Unified;
|
|
489
|
+
type AuthPair = {
|
|
490
|
+
authType: AuthType;
|
|
491
|
+
authId: string;
|
|
492
|
+
};
|
|
488
493
|
type Query = {
|
|
489
494
|
organizationId?: string | string[];
|
|
490
495
|
projectSecureId?: string | string[];
|
|
@@ -514,6 +519,7 @@ type Query = {
|
|
|
514
519
|
httpMethod?: string | string[];
|
|
515
520
|
authType?: string | string[];
|
|
516
521
|
authId?: string | string[];
|
|
522
|
+
authPairs?: readonly AuthPair[];
|
|
517
523
|
userAgent?: string | string[];
|
|
518
524
|
ipAddress?: string | string[];
|
|
519
525
|
sessionId?: string | string[];
|
|
@@ -562,6 +568,7 @@ type ActionsQuery = {
|
|
|
562
568
|
sourceValue?: string | string[];
|
|
563
569
|
authType?: string | string[];
|
|
564
570
|
authId?: string | string[];
|
|
571
|
+
authPairs?: readonly AuthPair[];
|
|
565
572
|
userAgent?: string | string[];
|
|
566
573
|
ipAddress?: string | string[];
|
|
567
574
|
sessionId?: string | string[];
|
|
@@ -630,6 +637,7 @@ type UnifiedQuery = {
|
|
|
630
637
|
sourceValue?: string | string[];
|
|
631
638
|
authType?: string | string[];
|
|
632
639
|
authId?: string | string[];
|
|
640
|
+
authPairs?: readonly AuthPair[];
|
|
633
641
|
userAgent?: string | string[];
|
|
634
642
|
ipAddress?: string | string[];
|
|
635
643
|
sessionId?: string | string[];
|
|
@@ -796,7 +804,7 @@ type PlatformDimensionsQuery = Partial<PlatformQuery> & {
|
|
|
796
804
|
dimensions: PlatformDimension[];
|
|
797
805
|
maxValues?: number;
|
|
798
806
|
};
|
|
799
|
-
type SourceQuery = Partial<Query>;
|
|
807
|
+
type SourceQuery = Omit<Partial<Query>, 'authPairs'>;
|
|
800
808
|
type ActionsCountQuery = {
|
|
801
809
|
organizationId?: string;
|
|
802
810
|
startTime: Date;
|
|
@@ -1010,6 +1018,11 @@ type PlatformLog = ILog & {
|
|
|
1010
1018
|
details?: Record<string, unknown>;
|
|
1011
1019
|
};
|
|
1012
1020
|
//#endregion
|
|
1021
|
+
//#region src/logs/clickhouse/parameterHelpers.d.ts
|
|
1022
|
+
declare class InvalidAuthPairError extends Error {
|
|
1023
|
+
constructor(message: string);
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
1013
1026
|
//#region src/datasets/types.d.ts
|
|
1014
1027
|
type LogfireConfig = {
|
|
1015
1028
|
token?: string;
|
|
@@ -1181,4 +1194,4 @@ declare class PolicySink implements IPolicySink {
|
|
|
1181
1194
|
//#region src/utils/stepErrors.d.ts
|
|
1182
1195
|
declare const hasErrorEntries: (errors: unknown) => boolean;
|
|
1183
1196
|
//#endregion
|
|
1184
|
-
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, 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 FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, type LogEntities, 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, 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 UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, getPolicySink, hasErrorEntries };
|
|
1197
|
+
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 FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, type LogEntities, 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, 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 UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, getPolicySink, hasErrorEntries };
|
package/dist/index.d.mts
CHANGED
|
@@ -348,6 +348,7 @@ type ActionResult = {
|
|
|
348
348
|
type StepInput = {
|
|
349
349
|
actionRunId: string;
|
|
350
350
|
actionMode: string;
|
|
351
|
+
actionSourceType?: SourceType;
|
|
351
352
|
actionSuccess?: boolean;
|
|
352
353
|
stepIndex: number;
|
|
353
354
|
stepId: string;
|
|
@@ -484,6 +485,10 @@ declare const LogType: {
|
|
|
484
485
|
};
|
|
485
486
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
486
487
|
type CombinedLogType = typeof LogType.Action | typeof LogType.Unified;
|
|
488
|
+
type AuthPair = {
|
|
489
|
+
authType: AuthType;
|
|
490
|
+
authId: string;
|
|
491
|
+
};
|
|
487
492
|
type Query = {
|
|
488
493
|
organizationId?: string | string[];
|
|
489
494
|
projectSecureId?: string | string[];
|
|
@@ -513,6 +518,7 @@ type Query = {
|
|
|
513
518
|
httpMethod?: string | string[];
|
|
514
519
|
authType?: string | string[];
|
|
515
520
|
authId?: string | string[];
|
|
521
|
+
authPairs?: readonly AuthPair[];
|
|
516
522
|
userAgent?: string | string[];
|
|
517
523
|
ipAddress?: string | string[];
|
|
518
524
|
sessionId?: string | string[];
|
|
@@ -561,6 +567,7 @@ type ActionsQuery = {
|
|
|
561
567
|
sourceValue?: string | string[];
|
|
562
568
|
authType?: string | string[];
|
|
563
569
|
authId?: string | string[];
|
|
570
|
+
authPairs?: readonly AuthPair[];
|
|
564
571
|
userAgent?: string | string[];
|
|
565
572
|
ipAddress?: string | string[];
|
|
566
573
|
sessionId?: string | string[];
|
|
@@ -629,6 +636,7 @@ type UnifiedQuery = {
|
|
|
629
636
|
sourceValue?: string | string[];
|
|
630
637
|
authType?: string | string[];
|
|
631
638
|
authId?: string | string[];
|
|
639
|
+
authPairs?: readonly AuthPair[];
|
|
632
640
|
userAgent?: string | string[];
|
|
633
641
|
ipAddress?: string | string[];
|
|
634
642
|
sessionId?: string | string[];
|
|
@@ -795,7 +803,7 @@ type PlatformDimensionsQuery = Partial<PlatformQuery> & {
|
|
|
795
803
|
dimensions: PlatformDimension[];
|
|
796
804
|
maxValues?: number;
|
|
797
805
|
};
|
|
798
|
-
type SourceQuery = Partial<Query>;
|
|
806
|
+
type SourceQuery = Omit<Partial<Query>, 'authPairs'>;
|
|
799
807
|
type ActionsCountQuery = {
|
|
800
808
|
organizationId?: string;
|
|
801
809
|
startTime: Date;
|
|
@@ -1009,6 +1017,11 @@ type PlatformLog = ILog & {
|
|
|
1009
1017
|
details?: Record<string, unknown>;
|
|
1010
1018
|
};
|
|
1011
1019
|
//#endregion
|
|
1020
|
+
//#region src/logs/clickhouse/parameterHelpers.d.ts
|
|
1021
|
+
declare class InvalidAuthPairError extends Error {
|
|
1022
|
+
constructor(message: string);
|
|
1023
|
+
}
|
|
1024
|
+
//#endregion
|
|
1012
1025
|
//#region src/datasets/types.d.ts
|
|
1013
1026
|
type LogfireConfig = {
|
|
1014
1027
|
token?: string;
|
|
@@ -1180,4 +1193,4 @@ declare class PolicySink implements IPolicySink {
|
|
|
1180
1193
|
//#region src/utils/stepErrors.d.ts
|
|
1181
1194
|
declare const hasErrorEntries: (errors: unknown) => boolean;
|
|
1182
1195
|
//#endregion
|
|
1183
|
-
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, 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 FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, type LogEntities, 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, 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 UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, getPolicySink, hasErrorEntries };
|
|
1196
|
+
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 FieldLabelProvenance, type ILog, type IOlapClient, type IPolicySink, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, InvalidAuthPairError, type KafkaClientBuilder, type KafkaClientConfig, type KafkaClusterName, type LogEntities, 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, 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 UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, getPolicySink, hasErrorEntries };
|