@stackone/olap 1.67.0 → 1.69.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
@@ -179,7 +179,7 @@ interface IOlapClient {
179
179
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
180
180
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
181
181
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
182
- getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
182
+ getPlatformLogs(organizationId: string, query: PlatformQuery): Promise<PlatformQueryResult>;
183
183
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
184
184
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
185
185
  getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
@@ -356,12 +356,13 @@ type PlatformInput = {
356
356
  eventId?: string;
357
357
  eventType: string;
358
358
  service: string;
359
- organizationId: string;
359
+ organizationId?: string;
360
360
  projectSecureId?: string;
361
- accountSecureId?: string;
362
361
  userId?: string;
362
+ userEmail?: string;
363
363
  action?: string;
364
- subAction?: string;
364
+ resource?: string;
365
+ resourceId?: string;
365
366
  authType?: AuthType;
366
367
  authId?: string;
367
368
  sourceType?: SourceType;
@@ -372,6 +373,8 @@ type PlatformInput = {
372
373
  agentId?: string;
373
374
  transportType?: TransportType;
374
375
  streamType?: StreamType;
376
+ isRead?: boolean;
377
+ statusCode?: number;
375
378
  details?: Record<string, unknown>;
376
379
  startTime?: Date;
377
380
  };
@@ -390,7 +393,7 @@ declare const LogType: {
390
393
  };
391
394
  type LogType = (typeof LogType)[keyof typeof LogType];
392
395
  type OlapEngine = 'tinybird' | 'clickhouse';
393
- type CombinedLogType = typeof LogType.Action | typeof LogType.Unified | typeof LogType.Platform;
396
+ type CombinedLogType = typeof LogType.Action | typeof LogType.Unified;
394
397
  type Query = {
395
398
  organizationId?: string | string[];
396
399
  projectSecureId?: string | string[];
@@ -428,10 +431,6 @@ type Query = {
428
431
  streamType?: string | string[];
429
432
  isBackground?: boolean;
430
433
  logId?: string | string[];
431
- eventId?: string | string[];
432
- eventType?: string | string[];
433
- userId?: string | string[];
434
- subAction?: string | string[];
435
434
  logType?: CombinedLogType | CombinedLogType[];
436
435
  success?: boolean;
437
436
  startTime?: Date;
@@ -442,7 +441,7 @@ type Query = {
442
441
  orderDirection?: OrderDirection;
443
442
  };
444
443
  type QueryResult = {
445
- logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog | PlatformLog>;
444
+ logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
446
445
  total: number;
447
446
  pageNumber: number;
448
447
  pageSize: number;
@@ -585,13 +584,14 @@ type ProviderQueryResult = {
585
584
  type PlatformQuery = {
586
585
  organizationId?: string | string[];
587
586
  projectSecureId?: string | string[];
588
- accountSecureId?: string | string[];
589
587
  eventId?: string | string[];
590
588
  eventType?: string | string[];
591
589
  service?: string | string[];
592
590
  userId?: string | string[];
591
+ userEmail?: string | string[];
593
592
  action?: string | string[];
594
- subAction?: string | string[];
593
+ resource?: string | string[];
594
+ resourceId?: string | string[];
595
595
  sourceType?: string | string[];
596
596
  sourceId?: string | string[];
597
597
  authType?: string | string[];
@@ -602,6 +602,8 @@ type PlatformQuery = {
602
602
  agentId?: string | string[];
603
603
  transportType?: string | string[];
604
604
  streamType?: string | string[];
605
+ statusCode?: string | string[];
606
+ isRead?: boolean;
605
607
  success?: boolean;
606
608
  startTime?: Date;
607
609
  endTime?: Date;
@@ -765,9 +767,8 @@ interface ILog {
765
767
  startTime: Date;
766
768
  endTime?: Date;
767
769
  durationMs?: number;
768
- organizationId: string;
770
+ organizationId?: string;
769
771
  projectSecureId?: string;
770
- accountSecureId?: string;
771
772
  }
772
773
  type ActionLog = ILog & {
773
774
  logType: typeof LogType.Action;
@@ -904,9 +905,12 @@ type PlatformLog = ILog & {
904
905
  eventId: string;
905
906
  eventType: string;
906
907
  service: string;
908
+ organizationId?: string;
907
909
  userId?: string;
910
+ userEmail?: string;
908
911
  action?: string;
909
- subAction?: string;
912
+ resource?: string;
913
+ resourceId?: string;
910
914
  sourceType?: SourceType;
911
915
  sourceId?: string;
912
916
  authType?: AuthType;
@@ -917,8 +921,10 @@ type PlatformLog = ILog & {
917
921
  agentId?: string;
918
922
  transportType?: TransportType;
919
923
  streamType?: StreamType;
924
+ isRead?: boolean;
920
925
  success?: boolean;
921
- details?: string;
926
+ statusCode?: number;
927
+ details?: Record<string, unknown>;
922
928
  };
923
929
  //#endregion
924
930
  //#region src/logs/clickhouseClient.d.ts
@@ -1030,7 +1036,7 @@ declare class OlapClient implements IOlapClient {
1030
1036
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery, engine?: OlapEngine): Promise<UnifiedQueryResult>;
1031
1037
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
1032
1038
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
1033
- getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
1039
+ getPlatformLogs(organizationId: string, query: PlatformQuery): Promise<PlatformQueryResult>;
1034
1040
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
1035
1041
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1036
1042
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
package/dist/index.d.mts CHANGED
@@ -178,7 +178,7 @@ interface IOlapClient {
178
178
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
179
179
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
180
180
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
181
- getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
181
+ getPlatformLogs(organizationId: string, query: PlatformQuery): Promise<PlatformQueryResult>;
182
182
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
183
183
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
184
184
  getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
@@ -355,12 +355,13 @@ type PlatformInput = {
355
355
  eventId?: string;
356
356
  eventType: string;
357
357
  service: string;
358
- organizationId: string;
358
+ organizationId?: string;
359
359
  projectSecureId?: string;
360
- accountSecureId?: string;
361
360
  userId?: string;
361
+ userEmail?: string;
362
362
  action?: string;
363
- subAction?: string;
363
+ resource?: string;
364
+ resourceId?: string;
364
365
  authType?: AuthType;
365
366
  authId?: string;
366
367
  sourceType?: SourceType;
@@ -371,6 +372,8 @@ type PlatformInput = {
371
372
  agentId?: string;
372
373
  transportType?: TransportType;
373
374
  streamType?: StreamType;
375
+ isRead?: boolean;
376
+ statusCode?: number;
374
377
  details?: Record<string, unknown>;
375
378
  startTime?: Date;
376
379
  };
@@ -389,7 +392,7 @@ declare const LogType: {
389
392
  };
390
393
  type LogType = (typeof LogType)[keyof typeof LogType];
391
394
  type OlapEngine = 'tinybird' | 'clickhouse';
392
- type CombinedLogType = typeof LogType.Action | typeof LogType.Unified | typeof LogType.Platform;
395
+ type CombinedLogType = typeof LogType.Action | typeof LogType.Unified;
393
396
  type Query = {
394
397
  organizationId?: string | string[];
395
398
  projectSecureId?: string | string[];
@@ -427,10 +430,6 @@ type Query = {
427
430
  streamType?: string | string[];
428
431
  isBackground?: boolean;
429
432
  logId?: string | string[];
430
- eventId?: string | string[];
431
- eventType?: string | string[];
432
- userId?: string | string[];
433
- subAction?: string | string[];
434
433
  logType?: CombinedLogType | CombinedLogType[];
435
434
  success?: boolean;
436
435
  startTime?: Date;
@@ -441,7 +440,7 @@ type Query = {
441
440
  orderDirection?: OrderDirection;
442
441
  };
443
442
  type QueryResult = {
444
- logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog | PlatformLog>;
443
+ logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
445
444
  total: number;
446
445
  pageNumber: number;
447
446
  pageSize: number;
@@ -584,13 +583,14 @@ type ProviderQueryResult = {
584
583
  type PlatformQuery = {
585
584
  organizationId?: string | string[];
586
585
  projectSecureId?: string | string[];
587
- accountSecureId?: string | string[];
588
586
  eventId?: string | string[];
589
587
  eventType?: string | string[];
590
588
  service?: string | string[];
591
589
  userId?: string | string[];
590
+ userEmail?: string | string[];
592
591
  action?: string | string[];
593
- subAction?: string | string[];
592
+ resource?: string | string[];
593
+ resourceId?: string | string[];
594
594
  sourceType?: string | string[];
595
595
  sourceId?: string | string[];
596
596
  authType?: string | string[];
@@ -601,6 +601,8 @@ type PlatformQuery = {
601
601
  agentId?: string | string[];
602
602
  transportType?: string | string[];
603
603
  streamType?: string | string[];
604
+ statusCode?: string | string[];
605
+ isRead?: boolean;
604
606
  success?: boolean;
605
607
  startTime?: Date;
606
608
  endTime?: Date;
@@ -764,9 +766,8 @@ interface ILog {
764
766
  startTime: Date;
765
767
  endTime?: Date;
766
768
  durationMs?: number;
767
- organizationId: string;
769
+ organizationId?: string;
768
770
  projectSecureId?: string;
769
- accountSecureId?: string;
770
771
  }
771
772
  type ActionLog = ILog & {
772
773
  logType: typeof LogType.Action;
@@ -903,9 +904,12 @@ type PlatformLog = ILog & {
903
904
  eventId: string;
904
905
  eventType: string;
905
906
  service: string;
907
+ organizationId?: string;
906
908
  userId?: string;
909
+ userEmail?: string;
907
910
  action?: string;
908
- subAction?: string;
911
+ resource?: string;
912
+ resourceId?: string;
909
913
  sourceType?: SourceType;
910
914
  sourceId?: string;
911
915
  authType?: AuthType;
@@ -916,8 +920,10 @@ type PlatformLog = ILog & {
916
920
  agentId?: string;
917
921
  transportType?: TransportType;
918
922
  streamType?: StreamType;
923
+ isRead?: boolean;
919
924
  success?: boolean;
920
- details?: string;
925
+ statusCode?: number;
926
+ details?: Record<string, unknown>;
921
927
  };
922
928
  //#endregion
923
929
  //#region src/logs/clickhouseClient.d.ts
@@ -1029,7 +1035,7 @@ declare class OlapClient implements IOlapClient {
1029
1035
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery, engine?: OlapEngine): Promise<UnifiedQueryResult>;
1030
1036
  getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string, engine?: OlapEngine): Promise<UnifiedLog | undefined>;
1031
1037
  getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery, engine?: OlapEngine): Promise<ProviderQueryResult>;
1032
- getPlatformLogs(organizationId: string, query: PlatformQuery, engine?: OlapEngine): Promise<PlatformQueryResult>;
1038
+ getPlatformLogs(organizationId: string, query: PlatformQuery): Promise<PlatformQueryResult>;
1033
1039
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string, engine?: OlapEngine): Promise<ProviderLog | undefined>;
1034
1040
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1035
1041
  getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;