@stackone/olap 1.61.0 → 1.62.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
@@ -157,6 +157,7 @@ interface IOlapClient {
157
157
  }>, options?: OlapOptions): Promise<void>;
158
158
  recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
159
159
  recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
160
+ recordPlatform(platformInput: PlatformInput, platformResult: PlatformResult, options?: OlapOptions): Promise<void>;
160
161
  getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
161
162
  getLastLogs(organizationId: string, projectSecureId: string, entities: LogEntities, query?: Query): Promise<QueryResult>;
162
163
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
@@ -168,6 +169,7 @@ interface IOlapClient {
168
169
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
169
170
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
170
171
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
172
+ getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
171
173
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
172
174
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
173
175
  getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
@@ -339,6 +341,23 @@ type ProviderResult = {
339
341
  errors?: unknown;
340
342
  endTime?: Date;
341
343
  };
344
+ type PlatformInput = {
345
+ eventId?: string;
346
+ eventType: string;
347
+ service: string;
348
+ organizationId: string;
349
+ projectSecureId?: string;
350
+ accountSecureId?: string;
351
+ userId?: string;
352
+ action?: string;
353
+ subAction?: string;
354
+ details?: Record<string, unknown>;
355
+ startTime?: Date;
356
+ };
357
+ type PlatformResult = {
358
+ success?: boolean;
359
+ endTime?: Date;
360
+ };
342
361
  //#endregion
343
362
  //#region src/logs/types.d.ts
344
363
  declare const LogType: {
@@ -346,6 +365,7 @@ declare const LogType: {
346
365
  readonly Step: "step";
347
366
  readonly Unified: "unified";
348
367
  readonly Provider: "provider";
368
+ readonly Platform: "platform";
349
369
  };
350
370
  type LogType = (typeof LogType)[keyof typeof LogType];
351
371
  type OlapEngine = 'tinybird' | 'clickhouse';
@@ -536,6 +556,30 @@ type ProviderQueryResult = {
536
556
  pageNumber: number;
537
557
  pageSize: number;
538
558
  };
559
+ type PlatformQuery = {
560
+ organizationId?: string | string[];
561
+ projectSecureId?: string | string[];
562
+ accountSecureId?: string | string[];
563
+ eventId?: string | string[];
564
+ eventType?: string | string[];
565
+ service?: string | string[];
566
+ userId?: string | string[];
567
+ action?: string | string[];
568
+ subAction?: string | string[];
569
+ success?: boolean;
570
+ startTime?: Date;
571
+ endTime?: Date;
572
+ pageNumber?: number;
573
+ pageSize?: number;
574
+ orderBy?: OrderBy;
575
+ orderDirection?: OrderDirection;
576
+ };
577
+ type PlatformQueryResult = {
578
+ platformLogs: PlatformLog[];
579
+ total: number;
580
+ pageNumber: number;
581
+ pageSize: number;
582
+ };
539
583
  declare const OrderBy: {
540
584
  readonly StartTime: "startTime";
541
585
  readonly EndTime: "endTime";
@@ -620,6 +664,9 @@ interface KafkaClientConfig {
620
664
  };
621
665
  [key: string]: unknown;
622
666
  }
667
+ type KafkaClusterName = 'external' | 'internal';
668
+ type TopicClusterMap = Record<string, KafkaClusterName[]>;
669
+ declare const DEFAULT_TOPIC_CLUSTER_MAP: TopicClusterMap;
623
670
  type KafkaClientBuilder = (config?: KafkaClientConfig, logger?: ILogger) => Promise<Producer<string, string, string, string> | undefined>;
624
671
  interface InternalKafkaClientConfig {
625
672
  bootstrapBrokers: string[];
@@ -815,6 +862,17 @@ type ProviderLog = ILog & {
815
862
  eventDatetime?: Date;
816
863
  duration?: number;
817
864
  };
865
+ type PlatformLog = ILog & {
866
+ logType: typeof LogType.Platform;
867
+ eventId: string;
868
+ eventType: string;
869
+ service: string;
870
+ userId?: string;
871
+ action?: string;
872
+ subAction?: string;
873
+ success?: boolean;
874
+ details?: string;
875
+ };
818
876
  //#endregion
819
877
  //#region src/logs/clickhouseClient.d.ts
820
878
  declare class ClickHouseClient implements IQueryClient {
@@ -878,12 +936,13 @@ declare class OlapClient implements IOlapClient {
878
936
  kafkaClientConfig,
879
937
  externalKafkaClientConfig,
880
938
  internalKafkaClientConfig,
939
+ topicClusterMap,
881
940
  s3ClientConfig,
882
941
  tinybirdConfig,
883
942
  clickhouseConfig,
884
943
  sinkConfig,
885
944
  logger
886
- }?: {
945
+ }: {
887
946
  getKafkaClient?: KafkaClientBuilder;
888
947
  getInternalKafkaClient?: InternalKafkaClientBuilder;
889
948
  getHttpClient?: HttpClientBuilder;
@@ -891,6 +950,7 @@ declare class OlapClient implements IOlapClient {
891
950
  kafkaClientConfig?: KafkaClientConfig;
892
951
  externalKafkaClientConfig?: KafkaClientConfig;
893
952
  internalKafkaClientConfig?: InternalKafkaClientConfig;
953
+ topicClusterMap: TopicClusterMap;
894
954
  s3ClientConfig?: S3ClientConfig;
895
955
  tinybirdConfig?: TinybirdConfig;
896
956
  clickhouseConfig?: ClickHouseConfig;
@@ -910,6 +970,7 @@ declare class OlapClient implements IOlapClient {
910
970
  }>, options?: OlapOptions): Promise<void>;
911
971
  recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
912
972
  recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
973
+ recordPlatform(platformInput: PlatformInput, platformResult: PlatformResult, options?: OlapOptions): Promise<void>;
913
974
  getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
914
975
  getLastLogs(organizationId: string, projectSecureId: string, entities: LogEntities, query?: Query): Promise<QueryResult>;
915
976
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
@@ -920,6 +981,7 @@ declare class OlapClient implements IOlapClient {
920
981
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery, engine?: OlapEngine): Promise<UnifiedQueryResult>;
921
982
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
922
983
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
984
+ getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
923
985
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
924
986
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
925
987
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
@@ -940,12 +1002,13 @@ declare const buildOlapClientInstance: ({
940
1002
  kafkaClientConfig,
941
1003
  externalKafkaClientConfig,
942
1004
  internalKafkaClientConfig,
1005
+ topicClusterMap,
943
1006
  s3ClientConfig,
944
1007
  tinybirdConfig,
945
1008
  clickhouseConfig,
946
1009
  sinkConfig,
947
1010
  logger
948
- }?: {
1011
+ }: {
949
1012
  getKafkaClient?: KafkaClientBuilder;
950
1013
  getInternalKafkaClient?: InternalKafkaClientBuilder;
951
1014
  getHttpClient?: HttpClientBuilder;
@@ -953,6 +1016,7 @@ declare const buildOlapClientInstance: ({
953
1016
  kafkaClientConfig?: KafkaClientConfig;
954
1017
  externalKafkaClientConfig?: KafkaClientConfig;
955
1018
  internalKafkaClientConfig?: InternalKafkaClientConfig;
1019
+ topicClusterMap: TopicClusterMap;
956
1020
  s3ClientConfig?: S3ClientConfig;
957
1021
  tinybirdConfig?: TinybirdConfig;
958
1022
  clickhouseConfig?: ClickHouseConfig;
@@ -969,13 +1033,14 @@ declare class OlapClientManager {
969
1033
  kafkaClientConfig,
970
1034
  externalKafkaClientConfig,
971
1035
  internalKafkaClientConfig,
1036
+ topicClusterMap,
972
1037
  s3ClientConfig,
973
1038
  tinybirdConfig,
974
1039
  clickhouseConfig,
975
1040
  sinkConfig,
976
1041
  logger,
977
1042
  getOlapClient
978
- }?: {
1043
+ }: {
979
1044
  getKafkaClient?: KafkaClientBuilder;
980
1045
  getInternalKafkaClient?: InternalKafkaClientBuilder;
981
1046
  getHttpClient?: HttpClientBuilder;
@@ -983,6 +1048,7 @@ declare class OlapClientManager {
983
1048
  kafkaClientConfig?: KafkaClientConfig;
984
1049
  externalKafkaClientConfig?: KafkaClientConfig;
985
1050
  internalKafkaClientConfig?: InternalKafkaClientConfig;
1051
+ topicClusterMap: TopicClusterMap;
986
1052
  s3ClientConfig?: S3ClientConfig;
987
1053
  tinybirdConfig?: TinybirdConfig;
988
1054
  clickhouseConfig?: ClickHouseConfig;
@@ -996,4 +1062,4 @@ declare class OlapClientManager {
996
1062
  //#region src/utils/stepErrors.d.ts
997
1063
  declare const hasErrorEntries: (errors: unknown) => boolean;
998
1064
  //#endregion
999
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, type KafkaClientBuilder, type KafkaClientConfig, type LogEntities, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, 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 TinybirdConfig, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient, hasErrorEntries };
1065
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, 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 ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, 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 OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, 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 TinybirdConfig, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient, hasErrorEntries };
package/dist/index.d.mts CHANGED
@@ -156,6 +156,7 @@ interface IOlapClient {
156
156
  }>, options?: OlapOptions): Promise<void>;
157
157
  recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
158
158
  recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
159
+ recordPlatform(platformInput: PlatformInput, platformResult: PlatformResult, options?: OlapOptions): Promise<void>;
159
160
  getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
160
161
  getLastLogs(organizationId: string, projectSecureId: string, entities: LogEntities, query?: Query): Promise<QueryResult>;
161
162
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
@@ -167,6 +168,7 @@ interface IOlapClient {
167
168
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
168
169
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
169
170
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
171
+ getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
170
172
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
171
173
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
172
174
  getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
@@ -338,6 +340,23 @@ type ProviderResult = {
338
340
  errors?: unknown;
339
341
  endTime?: Date;
340
342
  };
343
+ type PlatformInput = {
344
+ eventId?: string;
345
+ eventType: string;
346
+ service: string;
347
+ organizationId: string;
348
+ projectSecureId?: string;
349
+ accountSecureId?: string;
350
+ userId?: string;
351
+ action?: string;
352
+ subAction?: string;
353
+ details?: Record<string, unknown>;
354
+ startTime?: Date;
355
+ };
356
+ type PlatformResult = {
357
+ success?: boolean;
358
+ endTime?: Date;
359
+ };
341
360
  //#endregion
342
361
  //#region src/logs/types.d.ts
343
362
  declare const LogType: {
@@ -345,6 +364,7 @@ declare const LogType: {
345
364
  readonly Step: "step";
346
365
  readonly Unified: "unified";
347
366
  readonly Provider: "provider";
367
+ readonly Platform: "platform";
348
368
  };
349
369
  type LogType = (typeof LogType)[keyof typeof LogType];
350
370
  type OlapEngine = 'tinybird' | 'clickhouse';
@@ -535,6 +555,30 @@ type ProviderQueryResult = {
535
555
  pageNumber: number;
536
556
  pageSize: number;
537
557
  };
558
+ type PlatformQuery = {
559
+ organizationId?: string | string[];
560
+ projectSecureId?: string | string[];
561
+ accountSecureId?: string | string[];
562
+ eventId?: string | string[];
563
+ eventType?: string | string[];
564
+ service?: string | string[];
565
+ userId?: string | string[];
566
+ action?: string | string[];
567
+ subAction?: string | string[];
568
+ success?: boolean;
569
+ startTime?: Date;
570
+ endTime?: Date;
571
+ pageNumber?: number;
572
+ pageSize?: number;
573
+ orderBy?: OrderBy;
574
+ orderDirection?: OrderDirection;
575
+ };
576
+ type PlatformQueryResult = {
577
+ platformLogs: PlatformLog[];
578
+ total: number;
579
+ pageNumber: number;
580
+ pageSize: number;
581
+ };
538
582
  declare const OrderBy: {
539
583
  readonly StartTime: "startTime";
540
584
  readonly EndTime: "endTime";
@@ -619,6 +663,9 @@ interface KafkaClientConfig {
619
663
  };
620
664
  [key: string]: unknown;
621
665
  }
666
+ type KafkaClusterName = 'external' | 'internal';
667
+ type TopicClusterMap = Record<string, KafkaClusterName[]>;
668
+ declare const DEFAULT_TOPIC_CLUSTER_MAP: TopicClusterMap;
622
669
  type KafkaClientBuilder = (config?: KafkaClientConfig, logger?: ILogger) => Promise<Producer<string, string, string, string> | undefined>;
623
670
  interface InternalKafkaClientConfig {
624
671
  bootstrapBrokers: string[];
@@ -814,6 +861,17 @@ type ProviderLog = ILog & {
814
861
  eventDatetime?: Date;
815
862
  duration?: number;
816
863
  };
864
+ type PlatformLog = ILog & {
865
+ logType: typeof LogType.Platform;
866
+ eventId: string;
867
+ eventType: string;
868
+ service: string;
869
+ userId?: string;
870
+ action?: string;
871
+ subAction?: string;
872
+ success?: boolean;
873
+ details?: string;
874
+ };
817
875
  //#endregion
818
876
  //#region src/logs/clickhouseClient.d.ts
819
877
  declare class ClickHouseClient implements IQueryClient {
@@ -877,12 +935,13 @@ declare class OlapClient implements IOlapClient {
877
935
  kafkaClientConfig,
878
936
  externalKafkaClientConfig,
879
937
  internalKafkaClientConfig,
938
+ topicClusterMap,
880
939
  s3ClientConfig,
881
940
  tinybirdConfig,
882
941
  clickhouseConfig,
883
942
  sinkConfig,
884
943
  logger
885
- }?: {
944
+ }: {
886
945
  getKafkaClient?: KafkaClientBuilder;
887
946
  getInternalKafkaClient?: InternalKafkaClientBuilder;
888
947
  getHttpClient?: HttpClientBuilder;
@@ -890,6 +949,7 @@ declare class OlapClient implements IOlapClient {
890
949
  kafkaClientConfig?: KafkaClientConfig;
891
950
  externalKafkaClientConfig?: KafkaClientConfig;
892
951
  internalKafkaClientConfig?: InternalKafkaClientConfig;
952
+ topicClusterMap: TopicClusterMap;
893
953
  s3ClientConfig?: S3ClientConfig;
894
954
  tinybirdConfig?: TinybirdConfig;
895
955
  clickhouseConfig?: ClickHouseConfig;
@@ -909,6 +969,7 @@ declare class OlapClient implements IOlapClient {
909
969
  }>, options?: OlapOptions): Promise<void>;
910
970
  recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
911
971
  recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
972
+ recordPlatform(platformInput: PlatformInput, platformResult: PlatformResult, options?: OlapOptions): Promise<void>;
912
973
  getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
913
974
  getLastLogs(organizationId: string, projectSecureId: string, entities: LogEntities, query?: Query): Promise<QueryResult>;
914
975
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
@@ -919,6 +980,7 @@ declare class OlapClient implements IOlapClient {
919
980
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery, engine?: OlapEngine): Promise<UnifiedQueryResult>;
920
981
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
921
982
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
983
+ getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
922
984
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
923
985
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
924
986
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
@@ -939,12 +1001,13 @@ declare const buildOlapClientInstance: ({
939
1001
  kafkaClientConfig,
940
1002
  externalKafkaClientConfig,
941
1003
  internalKafkaClientConfig,
1004
+ topicClusterMap,
942
1005
  s3ClientConfig,
943
1006
  tinybirdConfig,
944
1007
  clickhouseConfig,
945
1008
  sinkConfig,
946
1009
  logger
947
- }?: {
1010
+ }: {
948
1011
  getKafkaClient?: KafkaClientBuilder;
949
1012
  getInternalKafkaClient?: InternalKafkaClientBuilder;
950
1013
  getHttpClient?: HttpClientBuilder;
@@ -952,6 +1015,7 @@ declare const buildOlapClientInstance: ({
952
1015
  kafkaClientConfig?: KafkaClientConfig;
953
1016
  externalKafkaClientConfig?: KafkaClientConfig;
954
1017
  internalKafkaClientConfig?: InternalKafkaClientConfig;
1018
+ topicClusterMap: TopicClusterMap;
955
1019
  s3ClientConfig?: S3ClientConfig;
956
1020
  tinybirdConfig?: TinybirdConfig;
957
1021
  clickhouseConfig?: ClickHouseConfig;
@@ -968,13 +1032,14 @@ declare class OlapClientManager {
968
1032
  kafkaClientConfig,
969
1033
  externalKafkaClientConfig,
970
1034
  internalKafkaClientConfig,
1035
+ topicClusterMap,
971
1036
  s3ClientConfig,
972
1037
  tinybirdConfig,
973
1038
  clickhouseConfig,
974
1039
  sinkConfig,
975
1040
  logger,
976
1041
  getOlapClient
977
- }?: {
1042
+ }: {
978
1043
  getKafkaClient?: KafkaClientBuilder;
979
1044
  getInternalKafkaClient?: InternalKafkaClientBuilder;
980
1045
  getHttpClient?: HttpClientBuilder;
@@ -982,6 +1047,7 @@ declare class OlapClientManager {
982
1047
  kafkaClientConfig?: KafkaClientConfig;
983
1048
  externalKafkaClientConfig?: KafkaClientConfig;
984
1049
  internalKafkaClientConfig?: InternalKafkaClientConfig;
1050
+ topicClusterMap: TopicClusterMap;
985
1051
  s3ClientConfig?: S3ClientConfig;
986
1052
  tinybirdConfig?: TinybirdConfig;
987
1053
  clickhouseConfig?: ClickHouseConfig;
@@ -995,4 +1061,4 @@ declare class OlapClientManager {
995
1061
  //#region src/utils/stepErrors.d.ts
996
1062
  declare const hasErrorEntries: (errors: unknown) => boolean;
997
1063
  //#endregion
998
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, type InternalKafkaClientBuilder, type InternalKafkaClientConfig, IntervalType, type IntervalType as IntervalTypeValues, type KafkaClientBuilder, type KafkaClientConfig, type LogEntities, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, 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 TinybirdConfig, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient, hasErrorEntries };
1064
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, 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 ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, 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 OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type PlatformInput, type PlatformLog, type PlatformQuery, type PlatformQueryResult, type PlatformResult, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, 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 TinybirdConfig, type TopicClusterMap, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient, hasErrorEntries };