@stackone/core 4.4.0 → 4.6.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
@@ -3639,6 +3639,14 @@ type BlockStatistics = {
3639
3639
  startTime?: Date;
3640
3640
  endTime?: Date;
3641
3641
  };
3642
+ type PolicyRecord = {
3643
+ id: string;
3644
+ name?: string;
3645
+ version?: number;
3646
+ level: string;
3647
+ mode: 'enforce' | 'monitor';
3648
+ effect?: 'refused' | 'masked' | 'would-have-refused' | 'permitted';
3649
+ };
3642
3650
  type PolicyMetadata = {
3643
3651
  result: PolicyResult;
3644
3652
  maskedFields: Array<{
@@ -3646,6 +3654,12 @@ type PolicyMetadata = {
3646
3654
  policyIds: string[];
3647
3655
  level?: string;
3648
3656
  }>;
3657
+ redactedClasses?: Array<{
3658
+ class: string;
3659
+ policyIds: string[];
3660
+ level?: string;
3661
+ }>;
3662
+ policies: PolicyRecord[];
3649
3663
  };
3650
3664
  type DefenderMetadata = {
3651
3665
  applied: boolean;
@@ -5019,4 +5033,4 @@ type Account = {
5019
5033
  originOwnerName?: string;
5020
5034
  };
5021
5035
  //#endregion
5022
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionAnnotations, type ActionCategory, type ActionExample, type ActionResponse, type ActionType, ActionTypes, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationFieldValidation, type AuthenticationGuides, type AuthenticationNotice, BARE_JEXL_REQUIREMENT, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type Category, type Changelog, type ChangelogLabel, ChangelogLabels, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, DOWNLOAD_FILE_INPUT_PARAMS, DOWNLOAD_FILE_OUTPUT, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, EMIT_EVENT_INPUT_PARAMS, EMIT_EVENT_OUTPUT, type Effect, Effects, type EnumOneOf, type EventRouter, type EventRouterResult, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, FIELD_META_SCHEMA, FORMAT_PATTERNS, type FieldConfig, type FieldMeta, type FieldMetaIssue, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, IMPACT_TARGETS, INPUT_ENUM_REGISTRY, type ImpactTarget, type IncrementalConfig, type Input, type InputFormat, InputFormats, type InputLocation, InputLocations, type InputRules, type InputType, InputTypes, type InputVariant, type IntermediateStepSnapshot, type IteratorLocation, MAP_FIELDS_INPUT_PARAMS, MAP_FIELDS_OUTPUT, MCP_REQUEST_INPUT_PARAMS, MCP_REQUEST_OUTPUT, type MatchedEventAction, type OffsetPaginationConfig, type OnConditionError, PAGINATED_REQUEST_INPUT_PARAMS, PAGINATED_REQUEST_OUTPUT, type PagePaginationConfig, type PaginationConfig, type PolicyMetadata, REQUEST_INPUT_PARAMS, REQUEST_OUTPUT, type ReleaseStage, ReleaseStages, SIGN_JWT_INPUT_PARAMS, SIGN_JWT_OUTPUT, SOAP_PAGINATED_REQUEST_INPUT_PARAMS, SOAP_PAGINATED_REQUEST_OUTPUT, SOAP_REQUEST_INPUT_PARAMS, SOAP_REQUEST_OUTPUT, STATIC_VALUES_INPUT_PARAMS, STATIC_VALUES_OUTPUT, type Schema, type SchemaField, type SchemaType, SchemaTypes, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type SyncedAction, TYPECAST_INPUT_PARAMS, TYPECAST_OUTPUT, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, UPLOAD_BINARY_INPUT_PARAMS, UPLOAD_BINARY_OUTPUT, UPLOAD_FILE_INPUT_PARAMS, UPLOAD_FILE_OUTPUT, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, collectFieldMetaIssues, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
5036
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionAnnotations, type ActionCategory, type ActionExample, type ActionResponse, type ActionType, ActionTypes, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationFieldValidation, type AuthenticationGuides, type AuthenticationNotice, BARE_JEXL_REQUIREMENT, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type Category, type Changelog, type ChangelogLabel, ChangelogLabels, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, DOWNLOAD_FILE_INPUT_PARAMS, DOWNLOAD_FILE_OUTPUT, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, EMIT_EVENT_INPUT_PARAMS, EMIT_EVENT_OUTPUT, type Effect, Effects, type EnumOneOf, type EventRouter, type EventRouterResult, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, FIELD_META_SCHEMA, FORMAT_PATTERNS, type FieldConfig, type FieldMeta, type FieldMetaIssue, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, IMPACT_TARGETS, INPUT_ENUM_REGISTRY, type ImpactTarget, type IncrementalConfig, type Input, type InputFormat, InputFormats, type InputLocation, InputLocations, type InputRules, type InputType, InputTypes, type InputVariant, type IntermediateStepSnapshot, type IteratorLocation, MAP_FIELDS_INPUT_PARAMS, MAP_FIELDS_OUTPUT, MCP_REQUEST_INPUT_PARAMS, MCP_REQUEST_OUTPUT, type MatchedEventAction, type OffsetPaginationConfig, type OnConditionError, PAGINATED_REQUEST_INPUT_PARAMS, PAGINATED_REQUEST_OUTPUT, type PagePaginationConfig, type PaginationConfig, type PolicyMetadata, type PolicyRecord, REQUEST_INPUT_PARAMS, REQUEST_OUTPUT, type ReleaseStage, ReleaseStages, SIGN_JWT_INPUT_PARAMS, SIGN_JWT_OUTPUT, SOAP_PAGINATED_REQUEST_INPUT_PARAMS, SOAP_PAGINATED_REQUEST_OUTPUT, SOAP_REQUEST_INPUT_PARAMS, SOAP_REQUEST_OUTPUT, STATIC_VALUES_INPUT_PARAMS, STATIC_VALUES_OUTPUT, type Schema, type SchemaField, type SchemaType, SchemaTypes, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type SyncedAction, TYPECAST_INPUT_PARAMS, TYPECAST_OUTPUT, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, UPLOAD_BINARY_INPUT_PARAMS, UPLOAD_BINARY_OUTPUT, UPLOAD_FILE_INPUT_PARAMS, UPLOAD_FILE_OUTPUT, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, collectFieldMetaIssues, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
package/dist/index.d.mts CHANGED
@@ -3638,6 +3638,14 @@ type BlockStatistics = {
3638
3638
  startTime?: Date;
3639
3639
  endTime?: Date;
3640
3640
  };
3641
+ type PolicyRecord = {
3642
+ id: string;
3643
+ name?: string;
3644
+ version?: number;
3645
+ level: string;
3646
+ mode: 'enforce' | 'monitor';
3647
+ effect?: 'refused' | 'masked' | 'would-have-refused' | 'permitted';
3648
+ };
3641
3649
  type PolicyMetadata = {
3642
3650
  result: PolicyResult;
3643
3651
  maskedFields: Array<{
@@ -3645,6 +3653,12 @@ type PolicyMetadata = {
3645
3653
  policyIds: string[];
3646
3654
  level?: string;
3647
3655
  }>;
3656
+ redactedClasses?: Array<{
3657
+ class: string;
3658
+ policyIds: string[];
3659
+ level?: string;
3660
+ }>;
3661
+ policies: PolicyRecord[];
3648
3662
  };
3649
3663
  type DefenderMetadata = {
3650
3664
  applied: boolean;
@@ -5018,4 +5032,4 @@ type Account = {
5018
5032
  originOwnerName?: string;
5019
5033
  };
5020
5034
  //#endregion
5021
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionAnnotations, type ActionCategory, type ActionExample, type ActionResponse, type ActionType, ActionTypes, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationFieldValidation, type AuthenticationGuides, type AuthenticationNotice, BARE_JEXL_REQUIREMENT, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type Category, type Changelog, type ChangelogLabel, ChangelogLabels, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, DOWNLOAD_FILE_INPUT_PARAMS, DOWNLOAD_FILE_OUTPUT, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, EMIT_EVENT_INPUT_PARAMS, EMIT_EVENT_OUTPUT, type Effect, Effects, type EnumOneOf, type EventRouter, type EventRouterResult, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, FIELD_META_SCHEMA, FORMAT_PATTERNS, type FieldConfig, type FieldMeta, type FieldMetaIssue, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, IMPACT_TARGETS, INPUT_ENUM_REGISTRY, type ImpactTarget, type IncrementalConfig, type Input, type InputFormat, InputFormats, type InputLocation, InputLocations, type InputRules, type InputType, InputTypes, type InputVariant, type IntermediateStepSnapshot, type IteratorLocation, MAP_FIELDS_INPUT_PARAMS, MAP_FIELDS_OUTPUT, MCP_REQUEST_INPUT_PARAMS, MCP_REQUEST_OUTPUT, type MatchedEventAction, type OffsetPaginationConfig, type OnConditionError, PAGINATED_REQUEST_INPUT_PARAMS, PAGINATED_REQUEST_OUTPUT, type PagePaginationConfig, type PaginationConfig, type PolicyMetadata, REQUEST_INPUT_PARAMS, REQUEST_OUTPUT, type ReleaseStage, ReleaseStages, SIGN_JWT_INPUT_PARAMS, SIGN_JWT_OUTPUT, SOAP_PAGINATED_REQUEST_INPUT_PARAMS, SOAP_PAGINATED_REQUEST_OUTPUT, SOAP_REQUEST_INPUT_PARAMS, SOAP_REQUEST_OUTPUT, STATIC_VALUES_INPUT_PARAMS, STATIC_VALUES_OUTPUT, type Schema, type SchemaField, type SchemaType, SchemaTypes, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type SyncedAction, TYPECAST_INPUT_PARAMS, TYPECAST_OUTPUT, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, UPLOAD_BINARY_INPUT_PARAMS, UPLOAD_BINARY_OUTPUT, UPLOAD_FILE_INPUT_PARAMS, UPLOAD_FILE_OUTPUT, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, collectFieldMetaIssues, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
5035
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionAnnotations, type ActionCategory, type ActionExample, type ActionResponse, type ActionType, ActionTypes, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationFieldValidation, type AuthenticationGuides, type AuthenticationNotice, BARE_JEXL_REQUIREMENT, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type Category, type Changelog, type ChangelogLabel, ChangelogLabels, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, DOWNLOAD_FILE_INPUT_PARAMS, DOWNLOAD_FILE_OUTPUT, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, EMIT_EVENT_INPUT_PARAMS, EMIT_EVENT_OUTPUT, type Effect, Effects, type EnumOneOf, type EventRouter, type EventRouterResult, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, FIELD_META_SCHEMA, FORMAT_PATTERNS, type FieldConfig, type FieldMeta, type FieldMetaIssue, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, IMPACT_TARGETS, INPUT_ENUM_REGISTRY, type ImpactTarget, type IncrementalConfig, type Input, type InputFormat, InputFormats, type InputLocation, InputLocations, type InputRules, type InputType, InputTypes, type InputVariant, type IntermediateStepSnapshot, type IteratorLocation, MAP_FIELDS_INPUT_PARAMS, MAP_FIELDS_OUTPUT, MCP_REQUEST_INPUT_PARAMS, MCP_REQUEST_OUTPUT, type MatchedEventAction, type OffsetPaginationConfig, type OnConditionError, PAGINATED_REQUEST_INPUT_PARAMS, PAGINATED_REQUEST_OUTPUT, type PagePaginationConfig, type PaginationConfig, type PolicyMetadata, type PolicyRecord, REQUEST_INPUT_PARAMS, REQUEST_OUTPUT, type ReleaseStage, ReleaseStages, SIGN_JWT_INPUT_PARAMS, SIGN_JWT_OUTPUT, SOAP_PAGINATED_REQUEST_INPUT_PARAMS, SOAP_PAGINATED_REQUEST_OUTPUT, SOAP_REQUEST_INPUT_PARAMS, SOAP_REQUEST_OUTPUT, STATIC_VALUES_INPUT_PARAMS, STATIC_VALUES_OUTPUT, type Schema, type SchemaField, type SchemaType, SchemaTypes, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type SyncedAction, TYPECAST_INPUT_PARAMS, TYPECAST_OUTPUT, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, UPLOAD_BINARY_INPUT_PARAMS, UPLOAD_BINARY_OUTPUT, UPLOAD_FILE_INPUT_PARAMS, UPLOAD_FILE_OUTPUT, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, collectFieldMetaIssues, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",