@stackone/connect-sdk 2.58.0 → 2.59.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 +12 -0
- package/dist/index.d.mts +12 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -413,6 +413,7 @@ interface IOlapClient {
|
|
|
413
413
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
414
414
|
getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
|
|
415
415
|
getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
|
|
416
|
+
getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
|
|
416
417
|
}
|
|
417
418
|
type DefenderContext = {
|
|
418
419
|
result?: {
|
|
@@ -580,6 +581,7 @@ type Query = {
|
|
|
580
581
|
sourceValue?: string | string[];
|
|
581
582
|
originOwnerId?: string | string[];
|
|
582
583
|
httpMethod?: string | string[];
|
|
584
|
+
isBackground?: boolean;
|
|
583
585
|
logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
|
|
584
586
|
success?: boolean;
|
|
585
587
|
startTime?: Date;
|
|
@@ -602,6 +604,7 @@ type ActionsQuery = {
|
|
|
602
604
|
connectorKey?: string | string[];
|
|
603
605
|
mode?: string | string[];
|
|
604
606
|
category?: string | string[];
|
|
607
|
+
isBackground?: boolean;
|
|
605
608
|
success?: boolean;
|
|
606
609
|
startTime?: Date;
|
|
607
610
|
endTime?: Date;
|
|
@@ -643,6 +646,7 @@ type UnifiedQuery = {
|
|
|
643
646
|
source?: string | string[];
|
|
644
647
|
category?: string | string[];
|
|
645
648
|
originOwnerId?: string | string[];
|
|
649
|
+
isBackground?: boolean;
|
|
646
650
|
success?: boolean;
|
|
647
651
|
startTime?: Date;
|
|
648
652
|
endTime?: Date;
|
|
@@ -688,6 +692,7 @@ declare const Dimension: {
|
|
|
688
692
|
readonly StatusCode: "status_code";
|
|
689
693
|
readonly OriginOwnerId: "origin_owner_id";
|
|
690
694
|
readonly SourceId: "source_id";
|
|
695
|
+
readonly IsBackground: "is_background";
|
|
691
696
|
};
|
|
692
697
|
type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
693
698
|
type AggregateQuery = Partial<Query> & {
|
|
@@ -712,6 +717,13 @@ type DimensionsResult = {
|
|
|
712
717
|
count: number;
|
|
713
718
|
}>;
|
|
714
719
|
};
|
|
720
|
+
type SourceQuery = Partial<Query>;
|
|
721
|
+
type SourceResult = Array<{
|
|
722
|
+
sourceId: string;
|
|
723
|
+
sourceType: string;
|
|
724
|
+
requestCount: number;
|
|
725
|
+
lastRequest: string;
|
|
726
|
+
}>;
|
|
715
727
|
interface ILog {
|
|
716
728
|
logType: LogType;
|
|
717
729
|
eventTime: Date;
|
package/dist/index.d.mts
CHANGED
|
@@ -413,6 +413,7 @@ interface IOlapClient {
|
|
|
413
413
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
414
414
|
getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
|
|
415
415
|
getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
|
|
416
|
+
getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
|
|
416
417
|
}
|
|
417
418
|
type DefenderContext = {
|
|
418
419
|
result?: {
|
|
@@ -580,6 +581,7 @@ type Query = {
|
|
|
580
581
|
sourceValue?: string | string[];
|
|
581
582
|
originOwnerId?: string | string[];
|
|
582
583
|
httpMethod?: string | string[];
|
|
584
|
+
isBackground?: boolean;
|
|
583
585
|
logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
|
|
584
586
|
success?: boolean;
|
|
585
587
|
startTime?: Date;
|
|
@@ -602,6 +604,7 @@ type ActionsQuery = {
|
|
|
602
604
|
connectorKey?: string | string[];
|
|
603
605
|
mode?: string | string[];
|
|
604
606
|
category?: string | string[];
|
|
607
|
+
isBackground?: boolean;
|
|
605
608
|
success?: boolean;
|
|
606
609
|
startTime?: Date;
|
|
607
610
|
endTime?: Date;
|
|
@@ -643,6 +646,7 @@ type UnifiedQuery = {
|
|
|
643
646
|
source?: string | string[];
|
|
644
647
|
category?: string | string[];
|
|
645
648
|
originOwnerId?: string | string[];
|
|
649
|
+
isBackground?: boolean;
|
|
646
650
|
success?: boolean;
|
|
647
651
|
startTime?: Date;
|
|
648
652
|
endTime?: Date;
|
|
@@ -688,6 +692,7 @@ declare const Dimension: {
|
|
|
688
692
|
readonly StatusCode: "status_code";
|
|
689
693
|
readonly OriginOwnerId: "origin_owner_id";
|
|
690
694
|
readonly SourceId: "source_id";
|
|
695
|
+
readonly IsBackground: "is_background";
|
|
691
696
|
};
|
|
692
697
|
type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
693
698
|
type AggregateQuery = Partial<Query> & {
|
|
@@ -712,6 +717,13 @@ type DimensionsResult = {
|
|
|
712
717
|
count: number;
|
|
713
718
|
}>;
|
|
714
719
|
};
|
|
720
|
+
type SourceQuery = Partial<Query>;
|
|
721
|
+
type SourceResult = Array<{
|
|
722
|
+
sourceId: string;
|
|
723
|
+
sourceType: string;
|
|
724
|
+
requestCount: number;
|
|
725
|
+
lastRequest: string;
|
|
726
|
+
}>;
|
|
715
727
|
interface ILog {
|
|
716
728
|
logType: LogType;
|
|
717
729
|
eventTime: Date;
|