@stackone/core 2.24.0 → 2.26.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 +39 -1
- package/dist/index.d.mts +39 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1157,6 +1157,7 @@ type Cursor = {
|
|
|
1157
1157
|
//#region src/settings/types.d.ts
|
|
1158
1158
|
type Settings = {
|
|
1159
1159
|
olap: OlapSettings;
|
|
1160
|
+
defender?: DefenderSettings;
|
|
1160
1161
|
};
|
|
1161
1162
|
type OlapSettings = {
|
|
1162
1163
|
logs?: {
|
|
@@ -1168,6 +1169,18 @@ type OlapSettings = {
|
|
|
1168
1169
|
errorsOnly?: boolean;
|
|
1169
1170
|
};
|
|
1170
1171
|
};
|
|
1172
|
+
type DefenderSettings = {
|
|
1173
|
+
enabled: boolean;
|
|
1174
|
+
blockHighRisk?: boolean;
|
|
1175
|
+
highRiskThreshold?: number;
|
|
1176
|
+
mediumRiskThreshold?: number;
|
|
1177
|
+
useTier1Classification?: boolean;
|
|
1178
|
+
useTier2Classification?: boolean;
|
|
1179
|
+
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
1180
|
+
maxResponseSize?: number;
|
|
1181
|
+
maxResponseWords?: number;
|
|
1182
|
+
useDefaultToolRules?: boolean;
|
|
1183
|
+
};
|
|
1171
1184
|
//#endregion
|
|
1172
1185
|
//#region src/source/types.d.ts
|
|
1173
1186
|
type Source = {
|
|
@@ -1202,6 +1215,7 @@ type Block = {
|
|
|
1202
1215
|
message?: string;
|
|
1203
1216
|
};
|
|
1204
1217
|
statistics?: BlockStatistics;
|
|
1218
|
+
defenderMetadata?: DefenderMetadata;
|
|
1205
1219
|
iterator?: {
|
|
1206
1220
|
item: unknown;
|
|
1207
1221
|
index: number;
|
|
@@ -1265,6 +1279,24 @@ type BlockStatistics = {
|
|
|
1265
1279
|
startTime?: Date;
|
|
1266
1280
|
endTime?: Date;
|
|
1267
1281
|
};
|
|
1282
|
+
type DefenderMetadata = {
|
|
1283
|
+
applied: boolean;
|
|
1284
|
+
result?: {
|
|
1285
|
+
allowed: boolean;
|
|
1286
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1287
|
+
fieldsSanitized: string[];
|
|
1288
|
+
patternsByField: Record<string, string[]>;
|
|
1289
|
+
detections: string[];
|
|
1290
|
+
tier2Score?: number;
|
|
1291
|
+
latencyMs: number;
|
|
1292
|
+
};
|
|
1293
|
+
skipped?: {
|
|
1294
|
+
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1295
|
+
estimatedSize?: number;
|
|
1296
|
+
threshold?: number;
|
|
1297
|
+
error?: string;
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1268
1300
|
//#endregion
|
|
1269
1301
|
//#region src/stepFunctions/types.d.ts
|
|
1270
1302
|
type StepFunction = ({
|
|
@@ -1502,10 +1534,15 @@ type TestActionConfig = {
|
|
|
1502
1534
|
condition?: string;
|
|
1503
1535
|
required: boolean;
|
|
1504
1536
|
};
|
|
1537
|
+
type GuideImage = {
|
|
1538
|
+
src: string;
|
|
1539
|
+
alt: string;
|
|
1540
|
+
};
|
|
1505
1541
|
type GuideStep = {
|
|
1506
1542
|
title: string;
|
|
1507
1543
|
content: string;
|
|
1508
1544
|
list?: string[];
|
|
1545
|
+
image?: GuideImage;
|
|
1509
1546
|
displayScopes?: boolean;
|
|
1510
1547
|
applicableScopes?: string[];
|
|
1511
1548
|
};
|
|
@@ -1513,6 +1550,7 @@ type GuideSection = {
|
|
|
1513
1550
|
title: string;
|
|
1514
1551
|
content: string;
|
|
1515
1552
|
list?: string[];
|
|
1553
|
+
image?: GuideImage;
|
|
1516
1554
|
steps?: GuideStep[];
|
|
1517
1555
|
applicableScopes?: string[];
|
|
1518
1556
|
};
|
|
@@ -1661,4 +1699,4 @@ type Account = {
|
|
|
1661
1699
|
originOwnerName?: string;
|
|
1662
1700
|
};
|
|
1663
1701
|
//#endregion
|
|
1664
|
-
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, type ForeachStep, type Guide, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
|
1702
|
+
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type DefenderSettings, type EnumOneOf, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
package/dist/index.d.mts
CHANGED
|
@@ -1156,6 +1156,7 @@ type Cursor = {
|
|
|
1156
1156
|
//#region src/settings/types.d.ts
|
|
1157
1157
|
type Settings = {
|
|
1158
1158
|
olap: OlapSettings;
|
|
1159
|
+
defender?: DefenderSettings;
|
|
1159
1160
|
};
|
|
1160
1161
|
type OlapSettings = {
|
|
1161
1162
|
logs?: {
|
|
@@ -1167,6 +1168,18 @@ type OlapSettings = {
|
|
|
1167
1168
|
errorsOnly?: boolean;
|
|
1168
1169
|
};
|
|
1169
1170
|
};
|
|
1171
|
+
type DefenderSettings = {
|
|
1172
|
+
enabled: boolean;
|
|
1173
|
+
blockHighRisk?: boolean;
|
|
1174
|
+
highRiskThreshold?: number;
|
|
1175
|
+
mediumRiskThreshold?: number;
|
|
1176
|
+
useTier1Classification?: boolean;
|
|
1177
|
+
useTier2Classification?: boolean;
|
|
1178
|
+
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
1179
|
+
maxResponseSize?: number;
|
|
1180
|
+
maxResponseWords?: number;
|
|
1181
|
+
useDefaultToolRules?: boolean;
|
|
1182
|
+
};
|
|
1170
1183
|
//#endregion
|
|
1171
1184
|
//#region src/source/types.d.ts
|
|
1172
1185
|
type Source = {
|
|
@@ -1201,6 +1214,7 @@ type Block = {
|
|
|
1201
1214
|
message?: string;
|
|
1202
1215
|
};
|
|
1203
1216
|
statistics?: BlockStatistics;
|
|
1217
|
+
defenderMetadata?: DefenderMetadata;
|
|
1204
1218
|
iterator?: {
|
|
1205
1219
|
item: unknown;
|
|
1206
1220
|
index: number;
|
|
@@ -1264,6 +1278,24 @@ type BlockStatistics = {
|
|
|
1264
1278
|
startTime?: Date;
|
|
1265
1279
|
endTime?: Date;
|
|
1266
1280
|
};
|
|
1281
|
+
type DefenderMetadata = {
|
|
1282
|
+
applied: boolean;
|
|
1283
|
+
result?: {
|
|
1284
|
+
allowed: boolean;
|
|
1285
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1286
|
+
fieldsSanitized: string[];
|
|
1287
|
+
patternsByField: Record<string, string[]>;
|
|
1288
|
+
detections: string[];
|
|
1289
|
+
tier2Score?: number;
|
|
1290
|
+
latencyMs: number;
|
|
1291
|
+
};
|
|
1292
|
+
skipped?: {
|
|
1293
|
+
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1294
|
+
estimatedSize?: number;
|
|
1295
|
+
threshold?: number;
|
|
1296
|
+
error?: string;
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1267
1299
|
//#endregion
|
|
1268
1300
|
//#region src/stepFunctions/types.d.ts
|
|
1269
1301
|
type StepFunction = ({
|
|
@@ -1501,10 +1533,15 @@ type TestActionConfig = {
|
|
|
1501
1533
|
condition?: string;
|
|
1502
1534
|
required: boolean;
|
|
1503
1535
|
};
|
|
1536
|
+
type GuideImage = {
|
|
1537
|
+
src: string;
|
|
1538
|
+
alt: string;
|
|
1539
|
+
};
|
|
1504
1540
|
type GuideStep = {
|
|
1505
1541
|
title: string;
|
|
1506
1542
|
content: string;
|
|
1507
1543
|
list?: string[];
|
|
1544
|
+
image?: GuideImage;
|
|
1508
1545
|
displayScopes?: boolean;
|
|
1509
1546
|
applicableScopes?: string[];
|
|
1510
1547
|
};
|
|
@@ -1512,6 +1549,7 @@ type GuideSection = {
|
|
|
1512
1549
|
title: string;
|
|
1513
1550
|
content: string;
|
|
1514
1551
|
list?: string[];
|
|
1552
|
+
image?: GuideImage;
|
|
1515
1553
|
steps?: GuideStep[];
|
|
1516
1554
|
applicableScopes?: string[];
|
|
1517
1555
|
};
|
|
@@ -1660,4 +1698,4 @@ type Account = {
|
|
|
1660
1698
|
originOwnerName?: string;
|
|
1661
1699
|
};
|
|
1662
1700
|
//#endregion
|
|
1663
|
-
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, type ForeachStep, type Guide, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
|
1701
|
+
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type DefenderSettings, type EnumOneOf, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|