@stackone/core 4.2.0 → 4.3.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
@@ -1,4 +1,4 @@
1
- import { IOlapClient, TruncationMode } from "@stackone/olap";
1
+ import { IOlapClient, PolicyResult, TruncationMode } from "@stackone/olap";
2
2
  import { ConcurrencyConfig, HttpHeaders, HttpMethod, IHttpClient, IMcpClient, McpClientConfig, RateLimitConfig, SigningOptions } from "@stackone/transport";
3
3
  import { ZodType, z } from "@stackone/utils";
4
4
  import { LambdaClient, LambdaClientConfig } from "@aws-sdk/client-lambda";
@@ -3559,6 +3559,7 @@ type Block = {
3559
3559
  };
3560
3560
  statistics?: BlockStatistics;
3561
3561
  defenderMetadata?: DefenderMetadata;
3562
+ policyMetadata?: PolicyMetadata;
3562
3563
  iterator?: {
3563
3564
  item: unknown;
3564
3565
  index: number;
@@ -3638,6 +3639,14 @@ type BlockStatistics = {
3638
3639
  startTime?: Date;
3639
3640
  endTime?: Date;
3640
3641
  };
3642
+ type PolicyMetadata = {
3643
+ result: PolicyResult;
3644
+ maskedFields: Array<{
3645
+ path: string;
3646
+ policyIds: string[];
3647
+ level?: string;
3648
+ }>;
3649
+ };
3641
3650
  type DefenderMetadata = {
3642
3651
  applied: boolean;
3643
3652
  result?: {
@@ -4987,4 +4996,4 @@ type Account = {
4987
4996
  originOwnerName?: string;
4988
4997
  };
4989
4998
  //#endregion
4990
- 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, FORMAT_PATTERNS, type FieldConfig, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, 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, 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, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
4999
+ 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, FORMAT_PATTERNS, type FieldConfig, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, 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, 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
@@ -3,7 +3,7 @@ import { ZodType, z } from "@stackone/utils";
3
3
  import { ConcurrencyConfig, HttpHeaders, HttpMethod, IHttpClient, IMcpClient, McpClientConfig, RateLimitConfig, SigningOptions } from "@stackone/transport";
4
4
  import { LambdaClient, LambdaClientConfig } from "@aws-sdk/client-lambda";
5
5
  import { Readable } from "node:stream";
6
- import { IOlapClient, TruncationMode } from "@stackone/olap";
6
+ import { IOlapClient, PolicyResult, TruncationMode } from "@stackone/olap";
7
7
 
8
8
  //#region ../logger/src/types.d.ts
9
9
  interface ILogger {
@@ -3558,6 +3558,7 @@ type Block = {
3558
3558
  };
3559
3559
  statistics?: BlockStatistics;
3560
3560
  defenderMetadata?: DefenderMetadata;
3561
+ policyMetadata?: PolicyMetadata;
3561
3562
  iterator?: {
3562
3563
  item: unknown;
3563
3564
  index: number;
@@ -3637,6 +3638,14 @@ type BlockStatistics = {
3637
3638
  startTime?: Date;
3638
3639
  endTime?: Date;
3639
3640
  };
3641
+ type PolicyMetadata = {
3642
+ result: PolicyResult;
3643
+ maskedFields: Array<{
3644
+ path: string;
3645
+ policyIds: string[];
3646
+ level?: string;
3647
+ }>;
3648
+ };
3640
3649
  type DefenderMetadata = {
3641
3650
  applied: boolean;
3642
3651
  result?: {
@@ -4986,4 +4995,4 @@ type Account = {
4986
4995
  originOwnerName?: string;
4987
4996
  };
4988
4997
  //#endregion
4989
- 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, FORMAT_PATTERNS, type FieldConfig, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, 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, 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, computeDataSyncFingerprint, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isBareJexl, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripIncrementalParams, stripPaginationParams, updateCursor };
4998
+ 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, FORMAT_PATTERNS, type FieldConfig, type FlowType, type ForeachStep, GROUP_DATA_INPUT_PARAMS, GROUP_DATA_OUTPUT, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, 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, 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.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",