@stackone/core 2.45.0 → 2.47.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
@@ -1178,6 +1178,7 @@ interface IOlapClient {
1178
1178
  getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1179
1179
  getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
1180
1180
  getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
1181
+ getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
1181
1182
  }
1182
1183
  type DefenderContext = {
1183
1184
  result?: {
@@ -1345,6 +1346,7 @@ type Query = {
1345
1346
  sourceValue?: string | string[];
1346
1347
  originOwnerId?: string | string[];
1347
1348
  httpMethod?: string | string[];
1349
+ isBackground?: boolean;
1348
1350
  logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
1349
1351
  success?: boolean;
1350
1352
  startTime?: Date;
@@ -1367,6 +1369,7 @@ type ActionsQuery = {
1367
1369
  connectorKey?: string | string[];
1368
1370
  mode?: string | string[];
1369
1371
  category?: string | string[];
1372
+ isBackground?: boolean;
1370
1373
  success?: boolean;
1371
1374
  startTime?: Date;
1372
1375
  endTime?: Date;
@@ -1408,6 +1411,7 @@ type UnifiedQuery = {
1408
1411
  source?: string | string[];
1409
1412
  category?: string | string[];
1410
1413
  originOwnerId?: string | string[];
1414
+ isBackground?: boolean;
1411
1415
  success?: boolean;
1412
1416
  startTime?: Date;
1413
1417
  endTime?: Date;
@@ -1453,6 +1457,7 @@ declare const Dimension: {
1453
1457
  readonly StatusCode: "status_code";
1454
1458
  readonly OriginOwnerId: "origin_owner_id";
1455
1459
  readonly SourceId: "source_id";
1460
+ readonly IsBackground: "is_background";
1456
1461
  };
1457
1462
  type Dimension = (typeof Dimension)[keyof typeof Dimension];
1458
1463
  type AggregateQuery = Partial<Query> & {
@@ -1477,6 +1482,13 @@ type DimensionsResult = {
1477
1482
  count: number;
1478
1483
  }>;
1479
1484
  };
1485
+ type SourceQuery = Partial<Query>;
1486
+ type SourceResult = Array<{
1487
+ sourceId: string;
1488
+ sourceType: string;
1489
+ requestCount: number;
1490
+ lastRequest: string;
1491
+ }>;
1480
1492
  interface ILog {
1481
1493
  logType: LogType;
1482
1494
  eventTime: Date;
@@ -1627,6 +1639,7 @@ type DefenderSettings = {
1627
1639
  maxResponseWords?: number;
1628
1640
  tier2Fields?: string[];
1629
1641
  useSfe?: boolean;
1642
+ annotateBoundary?: boolean;
1630
1643
  };
1631
1644
  //#endregion
1632
1645
  //#region src/source/types.d.ts
package/dist/index.d.mts CHANGED
@@ -1177,6 +1177,7 @@ interface IOlapClient {
1177
1177
  getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1178
1178
  getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
1179
1179
  getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
1180
+ getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
1180
1181
  }
1181
1182
  type DefenderContext = {
1182
1183
  result?: {
@@ -1344,6 +1345,7 @@ type Query = {
1344
1345
  sourceValue?: string | string[];
1345
1346
  originOwnerId?: string | string[];
1346
1347
  httpMethod?: string | string[];
1348
+ isBackground?: boolean;
1347
1349
  logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
1348
1350
  success?: boolean;
1349
1351
  startTime?: Date;
@@ -1366,6 +1368,7 @@ type ActionsQuery = {
1366
1368
  connectorKey?: string | string[];
1367
1369
  mode?: string | string[];
1368
1370
  category?: string | string[];
1371
+ isBackground?: boolean;
1369
1372
  success?: boolean;
1370
1373
  startTime?: Date;
1371
1374
  endTime?: Date;
@@ -1407,6 +1410,7 @@ type UnifiedQuery = {
1407
1410
  source?: string | string[];
1408
1411
  category?: string | string[];
1409
1412
  originOwnerId?: string | string[];
1413
+ isBackground?: boolean;
1410
1414
  success?: boolean;
1411
1415
  startTime?: Date;
1412
1416
  endTime?: Date;
@@ -1452,6 +1456,7 @@ declare const Dimension: {
1452
1456
  readonly StatusCode: "status_code";
1453
1457
  readonly OriginOwnerId: "origin_owner_id";
1454
1458
  readonly SourceId: "source_id";
1459
+ readonly IsBackground: "is_background";
1455
1460
  };
1456
1461
  type Dimension = (typeof Dimension)[keyof typeof Dimension];
1457
1462
  type AggregateQuery = Partial<Query> & {
@@ -1476,6 +1481,13 @@ type DimensionsResult = {
1476
1481
  count: number;
1477
1482
  }>;
1478
1483
  };
1484
+ type SourceQuery = Partial<Query>;
1485
+ type SourceResult = Array<{
1486
+ sourceId: string;
1487
+ sourceType: string;
1488
+ requestCount: number;
1489
+ lastRequest: string;
1490
+ }>;
1479
1491
  interface ILog {
1480
1492
  logType: LogType;
1481
1493
  eventTime: Date;
@@ -1626,6 +1638,7 @@ type DefenderSettings = {
1626
1638
  maxResponseWords?: number;
1627
1639
  tier2Fields?: string[];
1628
1640
  useSfe?: boolean;
1641
+ annotateBoundary?: boolean;
1629
1642
  };
1630
1643
  //#endregion
1631
1644
  //#region src/source/types.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "2.45.0",
3
+ "version": "2.47.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",