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