@stackone/core 2.24.0 → 2.25.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 +33 -1
- package/dist/index.d.mts +33 -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 = ({
|
|
@@ -1661,4 +1693,4 @@ type Account = {
|
|
|
1661
1693
|
originOwnerName?: string;
|
|
1662
1694
|
};
|
|
1663
1695
|
//#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 };
|
|
1696
|
+
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 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 = ({
|
|
@@ -1660,4 +1692,4 @@ type Account = {
|
|
|
1660
1692
|
originOwnerName?: string;
|
|
1661
1693
|
};
|
|
1662
1694
|
//#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 };
|
|
1695
|
+
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 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 };
|