@stackone/core 4.7.1 → 4.9.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.cjs +2 -2
- package/dist/index.d.cts +63 -3
- package/dist/index.d.mts +63 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -136,6 +136,7 @@ interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
|
136
136
|
offsetKey: string;
|
|
137
137
|
limitKey: string;
|
|
138
138
|
in: IteratorLocation;
|
|
139
|
+
startOffset?: number;
|
|
139
140
|
defaultLimit?: number;
|
|
140
141
|
};
|
|
141
142
|
}
|
|
@@ -1777,7 +1778,8 @@ declare enum StepFunctionName {
|
|
|
1777
1778
|
BROWSER_USE = "browser_use",
|
|
1778
1779
|
CODE_EXECUTION_LAMBDA = "code_execution_lambda",
|
|
1779
1780
|
SIGN_JWT = "sign_jwt",
|
|
1780
|
-
MCP_REQUEST = "mcp_request"
|
|
1781
|
+
MCP_REQUEST = "mcp_request",
|
|
1782
|
+
CALL_ACTION = "call_action"
|
|
1781
1783
|
}
|
|
1782
1784
|
declare const stepFunctions: {
|
|
1783
1785
|
typecast: {
|
|
@@ -2104,6 +2106,7 @@ declare const stepFunctions: {
|
|
|
2104
2106
|
page: "page";
|
|
2105
2107
|
}>>;
|
|
2106
2108
|
startPage: ZodOptional<ZodNumber>;
|
|
2109
|
+
startOffset: ZodOptional<ZodNumber>;
|
|
2107
2110
|
maxPage: ZodOptional<ZodNumber>;
|
|
2108
2111
|
}, $strict>;
|
|
2109
2112
|
cursor: ZodOptional<ZodObject<{
|
|
@@ -2941,6 +2944,26 @@ declare const stepFunctions: {
|
|
|
2941
2944
|
}, $strict>>;
|
|
2942
2945
|
};
|
|
2943
2946
|
};
|
|
2947
|
+
call_action: {
|
|
2948
|
+
v1: {
|
|
2949
|
+
fn: StepFunction;
|
|
2950
|
+
inputSchema: ZodObject<{
|
|
2951
|
+
actionId: ZodString;
|
|
2952
|
+
inputs: ZodOptional<ZodObject<{
|
|
2953
|
+
path: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2954
|
+
query: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2955
|
+
body: ZodOptional<ZodUnknown>;
|
|
2956
|
+
headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2957
|
+
}, $strict>>;
|
|
2958
|
+
}, $strict>;
|
|
2959
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2960
|
+
data: ZodOptional<ZodUnknown>;
|
|
2961
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2962
|
+
statusCode: ZodNumber;
|
|
2963
|
+
message: ZodOptional<ZodString>;
|
|
2964
|
+
}, $loose>>;
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2944
2967
|
};
|
|
2945
2968
|
//#endregion
|
|
2946
2969
|
//#region src/stepFunctions/types.d.ts
|
|
@@ -3264,6 +3287,7 @@ type Action = {
|
|
|
3264
3287
|
providerEvents?: string[];
|
|
3265
3288
|
prerequisiteActions?: string[];
|
|
3266
3289
|
requiresManualSetup?: boolean;
|
|
3290
|
+
userScoped?: boolean;
|
|
3267
3291
|
};
|
|
3268
3292
|
type SyncedAction = {
|
|
3269
3293
|
id: string;
|
|
@@ -3537,12 +3561,14 @@ type Block = {
|
|
|
3537
3561
|
};
|
|
3538
3562
|
connector?: Connector;
|
|
3539
3563
|
context: BlockContext;
|
|
3564
|
+
user?: ActingUser;
|
|
3540
3565
|
debug?: DebugParams;
|
|
3541
3566
|
steps?: StepsSnapshots;
|
|
3542
3567
|
intermediateSteps?: IntermediateStepsSnapshots;
|
|
3543
3568
|
httpClient?: IHttpClient;
|
|
3544
3569
|
olapClient?: IOlapClient;
|
|
3545
3570
|
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
3571
|
+
callAction?: CallActionFromStep;
|
|
3546
3572
|
settings?: Settings;
|
|
3547
3573
|
logger?: ILogger;
|
|
3548
3574
|
action?: Action;
|
|
@@ -3569,7 +3595,21 @@ type Block = {
|
|
|
3569
3595
|
fieldConfigs?: FieldConfig[];
|
|
3570
3596
|
result?: BlockIndexedRecord[] | BlockIndexedRecord;
|
|
3571
3597
|
};
|
|
3598
|
+
type CallActionInputs = {
|
|
3599
|
+
path?: Record<string, unknown>;
|
|
3600
|
+
query?: Record<string, unknown>;
|
|
3601
|
+
body?: unknown;
|
|
3602
|
+
headers?: Record<string, unknown>;
|
|
3603
|
+
};
|
|
3604
|
+
type CallActionFromStep = (params: {
|
|
3605
|
+
actionId: string;
|
|
3606
|
+
inputs?: CallActionInputs;
|
|
3607
|
+
}) => Promise<Block>;
|
|
3572
3608
|
type FlowType = 'action' | 'refresh_authentication' | 'test_action';
|
|
3609
|
+
type ActingUser = {
|
|
3610
|
+
id: string;
|
|
3611
|
+
email?: string;
|
|
3612
|
+
};
|
|
3573
3613
|
type BlockContext = {
|
|
3574
3614
|
organizationId?: string;
|
|
3575
3615
|
projectSecureId: string;
|
|
@@ -3646,7 +3686,7 @@ type PolicyRecord = {
|
|
|
3646
3686
|
version?: number;
|
|
3647
3687
|
level: string;
|
|
3648
3688
|
mode: 'enforce' | 'monitor';
|
|
3649
|
-
effect?: 'refused' | 'masked' | 'redacted' | 'would-have-refused' | 'permitted';
|
|
3689
|
+
effect?: 'refused' | 'masked' | 'redacted' | 'would-have-refused' | 'would-have-masked' | 'permitted';
|
|
3650
3690
|
};
|
|
3651
3691
|
type PolicyMetadata = {
|
|
3652
3692
|
result: PolicyResult;
|
|
@@ -3861,6 +3901,23 @@ declare const BROWSER_USE_INPUT_PARAMS: z.ZodObject<{
|
|
|
3861
3901
|
}, z.core.$strip>;
|
|
3862
3902
|
declare const BROWSER_USE_OUTPUT: z.ZodUnknown;
|
|
3863
3903
|
//#endregion
|
|
3904
|
+
//#region src/stepFunctions/callAction/schemas.d.ts
|
|
3905
|
+
declare const CALL_ACTION_INPUT_PARAMS: z.ZodObject<{
|
|
3906
|
+
actionId: z.ZodString;
|
|
3907
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
3908
|
+
path: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3909
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3910
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
3911
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3912
|
+
}, z.core.$strict>>;
|
|
3913
|
+
}, z.core.$strict>;
|
|
3914
|
+
declare const CALL_ACTION_OUTPUT: z.ZodOptional<z.ZodObject<{
|
|
3915
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
3916
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
3917
|
+
statusCode: z.ZodNumber;
|
|
3918
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3919
|
+
}, z.core.$loose>>;
|
|
3920
|
+
//#endregion
|
|
3864
3921
|
//#region src/stepFunctions/codeExecutionLambda/schemas.d.ts
|
|
3865
3922
|
declare const CODE_EXECUTION_LAMBDA_INPUT_PARAMS: z.ZodObject<{
|
|
3866
3923
|
lambdaName: z.ZodString;
|
|
@@ -4293,6 +4350,7 @@ declare const PAGINATED_REQUEST_INPUT_PARAMS: z.ZodObject<{
|
|
|
4293
4350
|
page: "page";
|
|
4294
4351
|
}>>;
|
|
4295
4352
|
startPage: z.ZodOptional<z.ZodNumber>;
|
|
4353
|
+
startOffset: z.ZodOptional<z.ZodNumber>;
|
|
4296
4354
|
maxPage: z.ZodOptional<z.ZodNumber>;
|
|
4297
4355
|
}, z.core.$strict>;
|
|
4298
4356
|
cursor: z.ZodOptional<z.ZodObject<{
|
|
@@ -5017,6 +5075,8 @@ declare const UPLOAD_FILE_OUTPUT: z.ZodOptional<z.ZodObject<{
|
|
|
5017
5075
|
//#endregion
|
|
5018
5076
|
//#region src/steps/typeguards.d.ts
|
|
5019
5077
|
declare const isForeachStep: (step: Step) => step is ForeachStep;
|
|
5078
|
+
declare const stepFunctionsOf: (step: Step) => StepFunctionMeta[];
|
|
5079
|
+
declare const stepsUseFunction: (steps: Record<string, Step> | undefined, functionName: StepFunctionName) => boolean;
|
|
5020
5080
|
//#endregion
|
|
5021
5081
|
//#region src/accounts/types.d.ts
|
|
5022
5082
|
type Account = {
|
|
@@ -5034,4 +5094,4 @@ type Account = {
|
|
|
5034
5094
|
originOwnerName?: string;
|
|
5035
5095
|
};
|
|
5036
5096
|
//#endregion
|
|
5037
|
-
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 };
|
|
5097
|
+
export { AUTHORIZATION_SCHEMA, type Account, type ActingUser, 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, CALL_ACTION_INPUT_PARAMS, CALL_ACTION_OUTPUT, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type CallActionFromStep, type CallActionInputs, 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, stepFunctionsOf, stepsUseFunction, stripIncrementalParams, stripPaginationParams, updateCursor };
|
package/dist/index.d.mts
CHANGED
|
@@ -135,6 +135,7 @@ interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
|
135
135
|
offsetKey: string;
|
|
136
136
|
limitKey: string;
|
|
137
137
|
in: IteratorLocation;
|
|
138
|
+
startOffset?: number;
|
|
138
139
|
defaultLimit?: number;
|
|
139
140
|
};
|
|
140
141
|
}
|
|
@@ -1776,7 +1777,8 @@ declare enum StepFunctionName {
|
|
|
1776
1777
|
BROWSER_USE = "browser_use",
|
|
1777
1778
|
CODE_EXECUTION_LAMBDA = "code_execution_lambda",
|
|
1778
1779
|
SIGN_JWT = "sign_jwt",
|
|
1779
|
-
MCP_REQUEST = "mcp_request"
|
|
1780
|
+
MCP_REQUEST = "mcp_request",
|
|
1781
|
+
CALL_ACTION = "call_action"
|
|
1780
1782
|
}
|
|
1781
1783
|
declare const stepFunctions: {
|
|
1782
1784
|
typecast: {
|
|
@@ -2103,6 +2105,7 @@ declare const stepFunctions: {
|
|
|
2103
2105
|
page: "page";
|
|
2104
2106
|
}>>;
|
|
2105
2107
|
startPage: ZodOptional<ZodNumber>;
|
|
2108
|
+
startOffset: ZodOptional<ZodNumber>;
|
|
2106
2109
|
maxPage: ZodOptional<ZodNumber>;
|
|
2107
2110
|
}, $strict>;
|
|
2108
2111
|
cursor: ZodOptional<ZodObject<{
|
|
@@ -2940,6 +2943,26 @@ declare const stepFunctions: {
|
|
|
2940
2943
|
}, $strict>>;
|
|
2941
2944
|
};
|
|
2942
2945
|
};
|
|
2946
|
+
call_action: {
|
|
2947
|
+
v1: {
|
|
2948
|
+
fn: StepFunction;
|
|
2949
|
+
inputSchema: ZodObject<{
|
|
2950
|
+
actionId: ZodString;
|
|
2951
|
+
inputs: ZodOptional<ZodObject<{
|
|
2952
|
+
path: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2953
|
+
query: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2954
|
+
body: ZodOptional<ZodUnknown>;
|
|
2955
|
+
headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
2956
|
+
}, $strict>>;
|
|
2957
|
+
}, $strict>;
|
|
2958
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2959
|
+
data: ZodOptional<ZodUnknown>;
|
|
2960
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2961
|
+
statusCode: ZodNumber;
|
|
2962
|
+
message: ZodOptional<ZodString>;
|
|
2963
|
+
}, $loose>>;
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
2943
2966
|
};
|
|
2944
2967
|
//#endregion
|
|
2945
2968
|
//#region src/stepFunctions/types.d.ts
|
|
@@ -3263,6 +3286,7 @@ type Action = {
|
|
|
3263
3286
|
providerEvents?: string[];
|
|
3264
3287
|
prerequisiteActions?: string[];
|
|
3265
3288
|
requiresManualSetup?: boolean;
|
|
3289
|
+
userScoped?: boolean;
|
|
3266
3290
|
};
|
|
3267
3291
|
type SyncedAction = {
|
|
3268
3292
|
id: string;
|
|
@@ -3536,12 +3560,14 @@ type Block = {
|
|
|
3536
3560
|
};
|
|
3537
3561
|
connector?: Connector;
|
|
3538
3562
|
context: BlockContext;
|
|
3563
|
+
user?: ActingUser;
|
|
3539
3564
|
debug?: DebugParams;
|
|
3540
3565
|
steps?: StepsSnapshots;
|
|
3541
3566
|
intermediateSteps?: IntermediateStepsSnapshots;
|
|
3542
3567
|
httpClient?: IHttpClient;
|
|
3543
3568
|
olapClient?: IOlapClient;
|
|
3544
3569
|
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
3570
|
+
callAction?: CallActionFromStep;
|
|
3545
3571
|
settings?: Settings;
|
|
3546
3572
|
logger?: ILogger;
|
|
3547
3573
|
action?: Action;
|
|
@@ -3568,7 +3594,21 @@ type Block = {
|
|
|
3568
3594
|
fieldConfigs?: FieldConfig[];
|
|
3569
3595
|
result?: BlockIndexedRecord[] | BlockIndexedRecord;
|
|
3570
3596
|
};
|
|
3597
|
+
type CallActionInputs = {
|
|
3598
|
+
path?: Record<string, unknown>;
|
|
3599
|
+
query?: Record<string, unknown>;
|
|
3600
|
+
body?: unknown;
|
|
3601
|
+
headers?: Record<string, unknown>;
|
|
3602
|
+
};
|
|
3603
|
+
type CallActionFromStep = (params: {
|
|
3604
|
+
actionId: string;
|
|
3605
|
+
inputs?: CallActionInputs;
|
|
3606
|
+
}) => Promise<Block>;
|
|
3571
3607
|
type FlowType = 'action' | 'refresh_authentication' | 'test_action';
|
|
3608
|
+
type ActingUser = {
|
|
3609
|
+
id: string;
|
|
3610
|
+
email?: string;
|
|
3611
|
+
};
|
|
3572
3612
|
type BlockContext = {
|
|
3573
3613
|
organizationId?: string;
|
|
3574
3614
|
projectSecureId: string;
|
|
@@ -3645,7 +3685,7 @@ type PolicyRecord = {
|
|
|
3645
3685
|
version?: number;
|
|
3646
3686
|
level: string;
|
|
3647
3687
|
mode: 'enforce' | 'monitor';
|
|
3648
|
-
effect?: 'refused' | 'masked' | 'redacted' | 'would-have-refused' | 'permitted';
|
|
3688
|
+
effect?: 'refused' | 'masked' | 'redacted' | 'would-have-refused' | 'would-have-masked' | 'permitted';
|
|
3649
3689
|
};
|
|
3650
3690
|
type PolicyMetadata = {
|
|
3651
3691
|
result: PolicyResult;
|
|
@@ -3860,6 +3900,23 @@ declare const BROWSER_USE_INPUT_PARAMS: z.ZodObject<{
|
|
|
3860
3900
|
}, z.core.$strip>;
|
|
3861
3901
|
declare const BROWSER_USE_OUTPUT: z.ZodUnknown;
|
|
3862
3902
|
//#endregion
|
|
3903
|
+
//#region src/stepFunctions/callAction/schemas.d.ts
|
|
3904
|
+
declare const CALL_ACTION_INPUT_PARAMS: z.ZodObject<{
|
|
3905
|
+
actionId: z.ZodString;
|
|
3906
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
3907
|
+
path: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3908
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3909
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
3910
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3911
|
+
}, z.core.$strict>>;
|
|
3912
|
+
}, z.core.$strict>;
|
|
3913
|
+
declare const CALL_ACTION_OUTPUT: z.ZodOptional<z.ZodObject<{
|
|
3914
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
3915
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
3916
|
+
statusCode: z.ZodNumber;
|
|
3917
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3918
|
+
}, z.core.$loose>>;
|
|
3919
|
+
//#endregion
|
|
3863
3920
|
//#region src/stepFunctions/codeExecutionLambda/schemas.d.ts
|
|
3864
3921
|
declare const CODE_EXECUTION_LAMBDA_INPUT_PARAMS: z.ZodObject<{
|
|
3865
3922
|
lambdaName: z.ZodString;
|
|
@@ -4292,6 +4349,7 @@ declare const PAGINATED_REQUEST_INPUT_PARAMS: z.ZodObject<{
|
|
|
4292
4349
|
page: "page";
|
|
4293
4350
|
}>>;
|
|
4294
4351
|
startPage: z.ZodOptional<z.ZodNumber>;
|
|
4352
|
+
startOffset: z.ZodOptional<z.ZodNumber>;
|
|
4295
4353
|
maxPage: z.ZodOptional<z.ZodNumber>;
|
|
4296
4354
|
}, z.core.$strict>;
|
|
4297
4355
|
cursor: z.ZodOptional<z.ZodObject<{
|
|
@@ -5016,6 +5074,8 @@ declare const UPLOAD_FILE_OUTPUT: z.ZodOptional<z.ZodObject<{
|
|
|
5016
5074
|
//#endregion
|
|
5017
5075
|
//#region src/steps/typeguards.d.ts
|
|
5018
5076
|
declare const isForeachStep: (step: Step) => step is ForeachStep;
|
|
5077
|
+
declare const stepFunctionsOf: (step: Step) => StepFunctionMeta[];
|
|
5078
|
+
declare const stepsUseFunction: (steps: Record<string, Step> | undefined, functionName: StepFunctionName) => boolean;
|
|
5019
5079
|
//#endregion
|
|
5020
5080
|
//#region src/accounts/types.d.ts
|
|
5021
5081
|
type Account = {
|
|
@@ -5033,4 +5093,4 @@ type Account = {
|
|
|
5033
5093
|
originOwnerName?: string;
|
|
5034
5094
|
};
|
|
5035
5095
|
//#endregion
|
|
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 };
|
|
5096
|
+
export { AUTHORIZATION_SCHEMA, type Account, type ActingUser, 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, CALL_ACTION_INPUT_PARAMS, CALL_ACTION_OUTPUT, CODE_EXECUTION_LAMBDA_INPUT_PARAMS, CODE_EXECUTION_LAMBDA_OUTPUT, COMPOSITE_ID_LATEST_VERSION, type CallActionFromStep, type CallActionInputs, 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, stepFunctionsOf, stepsUseFunction, stripIncrementalParams, stripPaginationParams, updateCursor };
|