@stackone/core 2.23.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 +39 -3
- package/dist/index.d.mts +39 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -367,8 +367,8 @@ declare const stepFunctions: {
|
|
|
367
367
|
number: "number";
|
|
368
368
|
boolean: "boolean";
|
|
369
369
|
object: "object";
|
|
370
|
-
enum: "enum";
|
|
371
370
|
datetime_string: "datetime_string";
|
|
371
|
+
enum: "enum";
|
|
372
372
|
}>;
|
|
373
373
|
array: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
374
374
|
custom: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
@@ -400,8 +400,8 @@ declare const stepFunctions: {
|
|
|
400
400
|
number: "number";
|
|
401
401
|
boolean: "boolean";
|
|
402
402
|
object: "object";
|
|
403
|
-
enum: "enum";
|
|
404
403
|
datetime_string: "datetime_string";
|
|
404
|
+
enum: "enum";
|
|
405
405
|
}>;
|
|
406
406
|
array: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
407
407
|
custom: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
@@ -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 = ({
|
|
@@ -1448,6 +1480,7 @@ type Action = {
|
|
|
1448
1480
|
};
|
|
1449
1481
|
compositeIdentifiers: CompositeIdentifierConnectorConfig;
|
|
1450
1482
|
scheduledJobs?: ScheduledJobConfig[];
|
|
1483
|
+
dataSync?: DataSyncConfig;
|
|
1451
1484
|
};
|
|
1452
1485
|
type ScheduledJobConfig = {
|
|
1453
1486
|
enabled: boolean;
|
|
@@ -1457,6 +1490,9 @@ type ScheduledJobConfig = {
|
|
|
1457
1490
|
requestParams?: ScheduledJobRequestParams;
|
|
1458
1491
|
syncFilter?: SyncFilterConfig;
|
|
1459
1492
|
};
|
|
1493
|
+
type DataSyncConfig = {
|
|
1494
|
+
allowed: boolean;
|
|
1495
|
+
};
|
|
1460
1496
|
type ScheduledJobRequestParams = {
|
|
1461
1497
|
fields?: string[];
|
|
1462
1498
|
expand?: string[];
|
|
@@ -1657,4 +1693,4 @@ type Account = {
|
|
|
1657
1693
|
originOwnerName?: string;
|
|
1658
1694
|
};
|
|
1659
1695
|
//#endregion
|
|
1660
|
-
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
|
@@ -366,8 +366,8 @@ declare const stepFunctions: {
|
|
|
366
366
|
number: "number";
|
|
367
367
|
boolean: "boolean";
|
|
368
368
|
object: "object";
|
|
369
|
-
enum: "enum";
|
|
370
369
|
datetime_string: "datetime_string";
|
|
370
|
+
enum: "enum";
|
|
371
371
|
}>;
|
|
372
372
|
array: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
373
373
|
custom: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
@@ -399,8 +399,8 @@ declare const stepFunctions: {
|
|
|
399
399
|
number: "number";
|
|
400
400
|
boolean: "boolean";
|
|
401
401
|
object: "object";
|
|
402
|
-
enum: "enum";
|
|
403
402
|
datetime_string: "datetime_string";
|
|
403
|
+
enum: "enum";
|
|
404
404
|
}>;
|
|
405
405
|
array: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
406
406
|
custom: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
@@ -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 = ({
|
|
@@ -1447,6 +1479,7 @@ type Action = {
|
|
|
1447
1479
|
};
|
|
1448
1480
|
compositeIdentifiers: CompositeIdentifierConnectorConfig;
|
|
1449
1481
|
scheduledJobs?: ScheduledJobConfig[];
|
|
1482
|
+
dataSync?: DataSyncConfig;
|
|
1450
1483
|
};
|
|
1451
1484
|
type ScheduledJobConfig = {
|
|
1452
1485
|
enabled: boolean;
|
|
@@ -1456,6 +1489,9 @@ type ScheduledJobConfig = {
|
|
|
1456
1489
|
requestParams?: ScheduledJobRequestParams;
|
|
1457
1490
|
syncFilter?: SyncFilterConfig;
|
|
1458
1491
|
};
|
|
1492
|
+
type DataSyncConfig = {
|
|
1493
|
+
allowed: boolean;
|
|
1494
|
+
};
|
|
1459
1495
|
type ScheduledJobRequestParams = {
|
|
1460
1496
|
fields?: string[];
|
|
1461
1497
|
expand?: string[];
|
|
@@ -1656,4 +1692,4 @@ type Account = {
|
|
|
1656
1692
|
originOwnerName?: string;
|
|
1657
1693
|
};
|
|
1658
1694
|
//#endregion
|
|
1659
|
-
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 };
|