@stackone/connect-sdk 2.61.0 → 2.62.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 +1 -1
- package/dist/index.d.cts +253 -249
- package/dist/index.d.mts +253 -250
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,26 +4,6 @@ import https from "node:https";
|
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
import http from "node:http";
|
|
6
6
|
|
|
7
|
-
//#region ../core/src/categories/types.d.ts
|
|
8
|
-
type Category = 'hris' | 'crm' | 'ats' | 'lms' | 'marketing' | 'filestorage' | 'internal' | 'action';
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../core/src/compositeIds/types.d.ts
|
|
11
|
-
|
|
12
|
-
type ComponentConfig = {
|
|
13
|
-
name: string;
|
|
14
|
-
alias?: string;
|
|
15
|
-
};
|
|
16
|
-
type ComponentFieldConfig = {
|
|
17
|
-
targetFieldKey: string;
|
|
18
|
-
remote?: string;
|
|
19
|
-
components: ComponentConfig[];
|
|
20
|
-
};
|
|
21
|
-
type CompositeIdentifierConnectorConfig = {
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
version?: number;
|
|
24
|
-
fields?: ComponentFieldConfig[];
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
7
|
//#region ../logger/src/types.d.ts
|
|
28
8
|
interface ILogger {
|
|
29
9
|
debug({
|
|
@@ -298,89 +278,6 @@ type HmacSigningOptions = {
|
|
|
298
278
|
};
|
|
299
279
|
type SigningOptions = Aws4SigningOptions | HmacSigningOptions;
|
|
300
280
|
//#endregion
|
|
301
|
-
//#region ../core/src/exhaustivePagination/basePaginationConfig.d.ts
|
|
302
|
-
type IteratorLocation = 'query' | 'body' | 'headers';
|
|
303
|
-
interface BasePaginationConfig {
|
|
304
|
-
type: string;
|
|
305
|
-
response: {
|
|
306
|
-
dataKey: string;
|
|
307
|
-
};
|
|
308
|
-
stopCondition?: string;
|
|
309
|
-
}
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region ../core/src/exhaustivePagination/cursorPaginationConfig.d.ts
|
|
312
|
-
interface CursorPaginationConfig extends BasePaginationConfig {
|
|
313
|
-
type: 'cursor';
|
|
314
|
-
response: {
|
|
315
|
-
dataKey: string;
|
|
316
|
-
nextKey: string;
|
|
317
|
-
};
|
|
318
|
-
iterator: {
|
|
319
|
-
key: string;
|
|
320
|
-
in: IteratorLocation;
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
//#endregion
|
|
324
|
-
//#region ../core/src/exhaustivePagination/offsetPaginationConfig.d.ts
|
|
325
|
-
interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
326
|
-
type: 'offset';
|
|
327
|
-
iterator: {
|
|
328
|
-
offsetKey: string;
|
|
329
|
-
limitKey: string;
|
|
330
|
-
in: IteratorLocation;
|
|
331
|
-
defaultLimit?: number;
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region ../core/src/exhaustivePagination/pagePaginationConfig.d.ts
|
|
336
|
-
interface PagePaginationConfig extends BasePaginationConfig {
|
|
337
|
-
type: 'page';
|
|
338
|
-
iterator: {
|
|
339
|
-
pageKey: string;
|
|
340
|
-
pageSizeKey?: string;
|
|
341
|
-
in: IteratorLocation;
|
|
342
|
-
startPage?: number;
|
|
343
|
-
defaultPageSize?: number;
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region ../core/src/exhaustivePagination/index.d.ts
|
|
348
|
-
type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region ../core/src/schema/types.d.ts
|
|
351
|
-
type Schema = {
|
|
352
|
-
name: string;
|
|
353
|
-
key: string;
|
|
354
|
-
version: string;
|
|
355
|
-
description?: string;
|
|
356
|
-
category: Category;
|
|
357
|
-
fields: {
|
|
358
|
-
[name: string]: SchemaField;
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
type SchemaField = {
|
|
362
|
-
name: string;
|
|
363
|
-
type: string;
|
|
364
|
-
required: boolean;
|
|
365
|
-
description?: string;
|
|
366
|
-
};
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region ../core/src/stepFunctions/stepFunctionsList.d.ts
|
|
369
|
-
declare enum StepFunctionName {
|
|
370
|
-
TYPECAST = "typecast",
|
|
371
|
-
MAP_FIELDS = "map_fields",
|
|
372
|
-
GROUP_DATA = "group_data",
|
|
373
|
-
REQUEST = "request",
|
|
374
|
-
PAGINATED_REQUEST = "paginated_request",
|
|
375
|
-
SOAP_REQUEST = "soap_request",
|
|
376
|
-
SOAP_PAGINATED_REQUEST = "soap_paginated_request",
|
|
377
|
-
STATIC_VALUES = "static_values",
|
|
378
|
-
UPLOAD_FILE = "upload_file",
|
|
379
|
-
UPLOAD_BINARY = "upload_binary",
|
|
380
|
-
DOWNLOAD_FILE = "download_file",
|
|
381
|
-
EMIT_EVENT = "emit_event",
|
|
382
|
-
}
|
|
383
|
-
//#endregion
|
|
384
281
|
//#region ../olap/src/olap/olapOptions.d.ts
|
|
385
282
|
type OlapOptions = {
|
|
386
283
|
logs?: LogsOptions;
|
|
@@ -897,168 +794,108 @@ type ProviderLog = ILog & {
|
|
|
897
794
|
duration?: number;
|
|
898
795
|
};
|
|
899
796
|
//#endregion
|
|
900
|
-
//#region ../core/src/
|
|
901
|
-
type
|
|
902
|
-
pageNumber?: number | null;
|
|
903
|
-
providerPageCursor?: string | null;
|
|
904
|
-
position?: number | null;
|
|
905
|
-
};
|
|
906
|
-
type Cursor = {
|
|
907
|
-
remote: Record<number, Position>;
|
|
908
|
-
version: number;
|
|
909
|
-
timestamp: number;
|
|
910
|
-
};
|
|
797
|
+
//#region ../core/src/categories/types.d.ts
|
|
798
|
+
type Category = 'hris' | 'crm' | 'ats' | 'lms' | 'marketing' | 'filestorage' | 'internal' | 'action';
|
|
911
799
|
//#endregion
|
|
912
|
-
//#region ../core/src/
|
|
913
|
-
type
|
|
914
|
-
|
|
915
|
-
|
|
800
|
+
//#region ../core/src/compositeIds/types.d.ts
|
|
801
|
+
type ComponentConfig = {
|
|
802
|
+
name: string;
|
|
803
|
+
alias?: string;
|
|
916
804
|
};
|
|
917
|
-
type
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
advanced?: {
|
|
922
|
-
enabled?: boolean;
|
|
923
|
-
ttl?: number;
|
|
924
|
-
errorsOnly?: boolean;
|
|
925
|
-
includeBackground?: boolean;
|
|
926
|
-
};
|
|
805
|
+
type ComponentFieldConfig = {
|
|
806
|
+
targetFieldKey: string;
|
|
807
|
+
remote?: string;
|
|
808
|
+
components: ComponentConfig[];
|
|
927
809
|
};
|
|
928
|
-
type
|
|
810
|
+
type CompositeIdentifierConnectorConfig = {
|
|
929
811
|
enabled: boolean;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
mediumRiskThreshold?: number;
|
|
933
|
-
useTier1Classification?: boolean;
|
|
934
|
-
useTier2Classification?: boolean;
|
|
935
|
-
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
936
|
-
maxResponseSize?: number;
|
|
937
|
-
maxResponseWords?: number;
|
|
938
|
-
tier2Fields?: string[];
|
|
939
|
-
useSfe?: boolean;
|
|
940
|
-
annotateBoundary?: boolean;
|
|
812
|
+
version?: number;
|
|
813
|
+
fields?: ComponentFieldConfig[];
|
|
941
814
|
};
|
|
942
815
|
//#endregion
|
|
943
|
-
//#region ../core/src/
|
|
944
|
-
type
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
816
|
+
//#region ../core/src/exhaustivePagination/basePaginationConfig.d.ts
|
|
817
|
+
type IteratorLocation = 'query' | 'body' | 'headers';
|
|
818
|
+
interface BasePaginationConfig {
|
|
819
|
+
type: string;
|
|
820
|
+
response: {
|
|
821
|
+
dataKey: string;
|
|
822
|
+
};
|
|
823
|
+
stopCondition?: string;
|
|
824
|
+
}
|
|
949
825
|
//#endregion
|
|
950
|
-
//#region ../core/src/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
826
|
+
//#region ../core/src/exhaustivePagination/cursorPaginationConfig.d.ts
|
|
827
|
+
interface CursorPaginationConfig extends BasePaginationConfig {
|
|
828
|
+
type: 'cursor';
|
|
829
|
+
response: {
|
|
830
|
+
dataKey: string;
|
|
831
|
+
nextKey: string;
|
|
954
832
|
};
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
steps?: StepsSnapshots;
|
|
959
|
-
intermediateSteps?: IntermediateStepsSnapshots;
|
|
960
|
-
httpClient?: IHttpClient;
|
|
961
|
-
olapClient?: IOlapClient;
|
|
962
|
-
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
963
|
-
settings?: Settings;
|
|
964
|
-
logger?: ILogger;
|
|
965
|
-
action?: Action;
|
|
966
|
-
credentials?: Credentials;
|
|
967
|
-
scopes?: string[];
|
|
968
|
-
outputs?: unknown;
|
|
969
|
-
streamOutput?: StreamOutputData;
|
|
970
|
-
nextCursor?: Cursor | null;
|
|
971
|
-
response?: {
|
|
972
|
-
statusCode: number;
|
|
973
|
-
successful: boolean;
|
|
974
|
-
message?: string;
|
|
833
|
+
iterator: {
|
|
834
|
+
key: string;
|
|
835
|
+
in: IteratorLocation;
|
|
975
836
|
};
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
837
|
+
}
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region ../core/src/exhaustivePagination/offsetPaginationConfig.d.ts
|
|
840
|
+
interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
841
|
+
type: 'offset';
|
|
842
|
+
iterator: {
|
|
843
|
+
offsetKey: string;
|
|
844
|
+
limitKey: string;
|
|
845
|
+
in: IteratorLocation;
|
|
846
|
+
defaultLimit?: number;
|
|
982
847
|
};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
848
|
+
}
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region ../core/src/exhaustivePagination/pagePaginationConfig.d.ts
|
|
851
|
+
interface PagePaginationConfig extends BasePaginationConfig {
|
|
852
|
+
type: 'page';
|
|
853
|
+
iterator: {
|
|
854
|
+
pageKey: string;
|
|
855
|
+
pageSizeKey?: string;
|
|
856
|
+
in: IteratorLocation;
|
|
857
|
+
startPage?: number;
|
|
858
|
+
defaultPageSize?: number;
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region ../core/src/exhaustivePagination/index.d.ts
|
|
863
|
+
type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
|
|
864
|
+
//#endregion
|
|
865
|
+
//#region ../core/src/schema/types.d.ts
|
|
866
|
+
type Schema = {
|
|
867
|
+
name: string;
|
|
868
|
+
key: string;
|
|
869
|
+
version: string;
|
|
870
|
+
description?: string;
|
|
993
871
|
category: Category;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
authenticationType: string;
|
|
997
|
-
environment: string;
|
|
998
|
-
actionRunId?: string;
|
|
999
|
-
originOwnerId?: string;
|
|
1000
|
-
originOwnerName?: string;
|
|
1001
|
-
source?: Source;
|
|
1002
|
-
service: string;
|
|
1003
|
-
resource: string;
|
|
1004
|
-
subResource?: string;
|
|
1005
|
-
childResource?: string;
|
|
1006
|
-
};
|
|
1007
|
-
type BlockIndexedRecord = {
|
|
1008
|
-
id: string;
|
|
1009
|
-
remote_id?: string;
|
|
1010
|
-
[key: string]: unknown;
|
|
1011
|
-
unified_custom_fields?: {
|
|
1012
|
-
[key: string]: unknown;
|
|
872
|
+
fields: {
|
|
873
|
+
[name: string]: SchemaField;
|
|
1013
874
|
};
|
|
1014
875
|
};
|
|
1015
|
-
type
|
|
1016
|
-
|
|
1017
|
-
value: string;
|
|
1018
|
-
};
|
|
1019
|
-
type FieldConfig = {
|
|
1020
|
-
expression?: string;
|
|
1021
|
-
values?: unknown;
|
|
1022
|
-
targetFieldKey: string;
|
|
1023
|
-
alias?: string;
|
|
876
|
+
type SchemaField = {
|
|
877
|
+
name: string;
|
|
1024
878
|
type: string;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
array: boolean;
|
|
1028
|
-
enumMapper?: {
|
|
1029
|
-
matcher: string | EnumMatcherExpression[];
|
|
1030
|
-
};
|
|
1031
|
-
properties?: FieldConfig[];
|
|
1032
|
-
requiredScopes?: string[];
|
|
1033
|
-
};
|
|
1034
|
-
type DebugParams = {
|
|
1035
|
-
custom_mappings?: 'disabled' | 'enabled';
|
|
1036
|
-
};
|
|
1037
|
-
type Credentials = Record<string, unknown>;
|
|
1038
|
-
type BlockStatistics = {
|
|
1039
|
-
startTime?: Date;
|
|
1040
|
-
endTime?: Date;
|
|
1041
|
-
};
|
|
1042
|
-
type DefenderMetadata = {
|
|
1043
|
-
applied: boolean;
|
|
1044
|
-
result?: {
|
|
1045
|
-
allowed: boolean;
|
|
1046
|
-
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1047
|
-
fieldsSanitized: string[];
|
|
1048
|
-
patternsByField: Record<string, string[]>;
|
|
1049
|
-
detections: string[];
|
|
1050
|
-
tier2Score?: number;
|
|
1051
|
-
tier2SkipReason?: string;
|
|
1052
|
-
latencyMs: number;
|
|
1053
|
-
};
|
|
1054
|
-
skipped?: {
|
|
1055
|
-
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1056
|
-
estimatedSize?: number;
|
|
1057
|
-
threshold?: number;
|
|
1058
|
-
error?: string;
|
|
1059
|
-
};
|
|
879
|
+
required: boolean;
|
|
880
|
+
description?: string;
|
|
1060
881
|
};
|
|
1061
882
|
//#endregion
|
|
883
|
+
//#region ../core/src/stepFunctions/stepFunctionsList.d.ts
|
|
884
|
+
declare enum StepFunctionName {
|
|
885
|
+
TYPECAST = "typecast",
|
|
886
|
+
MAP_FIELDS = "map_fields",
|
|
887
|
+
GROUP_DATA = "group_data",
|
|
888
|
+
REQUEST = "request",
|
|
889
|
+
PAGINATED_REQUEST = "paginated_request",
|
|
890
|
+
SOAP_REQUEST = "soap_request",
|
|
891
|
+
SOAP_PAGINATED_REQUEST = "soap_paginated_request",
|
|
892
|
+
STATIC_VALUES = "static_values",
|
|
893
|
+
UPLOAD_FILE = "upload_file",
|
|
894
|
+
UPLOAD_BINARY = "upload_binary",
|
|
895
|
+
DOWNLOAD_FILE = "download_file",
|
|
896
|
+
EMIT_EVENT = "emit_event",
|
|
897
|
+
}
|
|
898
|
+
//#endregion
|
|
1062
899
|
//#region ../core/src/stepFunctions/types.d.ts
|
|
1063
900
|
type StepFunction = ({
|
|
1064
901
|
block,
|
|
@@ -1417,6 +1254,170 @@ type Authentication = {
|
|
|
1417
1254
|
};
|
|
1418
1255
|
};
|
|
1419
1256
|
//#endregion
|
|
1257
|
+
//#region ../core/src/cursor/types.d.ts
|
|
1258
|
+
type Position = {
|
|
1259
|
+
pageNumber?: number | null;
|
|
1260
|
+
providerPageCursor?: string | null;
|
|
1261
|
+
position?: number | null;
|
|
1262
|
+
};
|
|
1263
|
+
type Cursor = {
|
|
1264
|
+
remote: Record<number, Position>;
|
|
1265
|
+
version: number;
|
|
1266
|
+
timestamp: number;
|
|
1267
|
+
};
|
|
1268
|
+
//#endregion
|
|
1269
|
+
//#region ../core/src/settings/types.d.ts
|
|
1270
|
+
type Settings = {
|
|
1271
|
+
olap: OlapSettings;
|
|
1272
|
+
defender?: DefenderSettings;
|
|
1273
|
+
};
|
|
1274
|
+
type OlapSettings = {
|
|
1275
|
+
logs?: {
|
|
1276
|
+
enabled: boolean;
|
|
1277
|
+
};
|
|
1278
|
+
advanced?: {
|
|
1279
|
+
enabled?: boolean;
|
|
1280
|
+
ttl?: number;
|
|
1281
|
+
errorsOnly?: boolean;
|
|
1282
|
+
includeBackground?: boolean;
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
type DefenderSettings = {
|
|
1286
|
+
enabled: boolean;
|
|
1287
|
+
blockHighRisk?: boolean;
|
|
1288
|
+
highRiskThreshold?: number;
|
|
1289
|
+
mediumRiskThreshold?: number;
|
|
1290
|
+
useTier1Classification?: boolean;
|
|
1291
|
+
useTier2Classification?: boolean;
|
|
1292
|
+
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
1293
|
+
maxResponseSize?: number;
|
|
1294
|
+
maxResponseWords?: number;
|
|
1295
|
+
tier2Fields?: string[];
|
|
1296
|
+
useSfe?: boolean;
|
|
1297
|
+
annotateBoundary?: boolean;
|
|
1298
|
+
};
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region ../core/src/source/types.d.ts
|
|
1301
|
+
type Source = {
|
|
1302
|
+
sourceType?: string;
|
|
1303
|
+
sourceId?: string;
|
|
1304
|
+
sourceValue?: string;
|
|
1305
|
+
};
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region ../core/src/blocks/types.d.ts
|
|
1308
|
+
type Block = {
|
|
1309
|
+
inputs?: {
|
|
1310
|
+
[key: string]: unknown;
|
|
1311
|
+
};
|
|
1312
|
+
connector?: Connector;
|
|
1313
|
+
context: BlockContext;
|
|
1314
|
+
debug?: DebugParams;
|
|
1315
|
+
steps?: StepsSnapshots;
|
|
1316
|
+
intermediateSteps?: IntermediateStepsSnapshots;
|
|
1317
|
+
httpClient?: IHttpClient;
|
|
1318
|
+
olapClient?: IOlapClient;
|
|
1319
|
+
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
1320
|
+
settings?: Settings;
|
|
1321
|
+
logger?: ILogger;
|
|
1322
|
+
action?: Action;
|
|
1323
|
+
credentials?: Credentials;
|
|
1324
|
+
scopes?: string[];
|
|
1325
|
+
outputs?: unknown;
|
|
1326
|
+
streamOutput?: StreamOutputData;
|
|
1327
|
+
nextCursor?: Cursor | null;
|
|
1328
|
+
response?: {
|
|
1329
|
+
statusCode: number;
|
|
1330
|
+
successful: boolean;
|
|
1331
|
+
message?: string;
|
|
1332
|
+
};
|
|
1333
|
+
statistics?: BlockStatistics;
|
|
1334
|
+
defenderMetadata?: DefenderMetadata;
|
|
1335
|
+
iterator?: {
|
|
1336
|
+
item: unknown;
|
|
1337
|
+
index: number;
|
|
1338
|
+
current?: unknown;
|
|
1339
|
+
};
|
|
1340
|
+
fieldConfigs?: FieldConfig[];
|
|
1341
|
+
result?: BlockIndexedRecord[] | BlockIndexedRecord;
|
|
1342
|
+
};
|
|
1343
|
+
type FlowType = 'action' | 'refresh_authentication' | 'test_action';
|
|
1344
|
+
type BlockContext = {
|
|
1345
|
+
organizationId?: string;
|
|
1346
|
+
projectSecureId: string;
|
|
1347
|
+
accountSecureId: string;
|
|
1348
|
+
connectorKey: string;
|
|
1349
|
+
connectorVersion: string;
|
|
1350
|
+
connectorOwner?: string;
|
|
1351
|
+
category: Category;
|
|
1352
|
+
schema?: string;
|
|
1353
|
+
actionType: ActionType;
|
|
1354
|
+
authenticationType: string;
|
|
1355
|
+
environment: string;
|
|
1356
|
+
actionRunId?: string;
|
|
1357
|
+
originOwnerId?: string;
|
|
1358
|
+
originOwnerName?: string;
|
|
1359
|
+
source?: Source;
|
|
1360
|
+
flowType?: FlowType;
|
|
1361
|
+
service: string;
|
|
1362
|
+
resource: string;
|
|
1363
|
+
subResource?: string;
|
|
1364
|
+
childResource?: string;
|
|
1365
|
+
};
|
|
1366
|
+
type BlockIndexedRecord = {
|
|
1367
|
+
id: string;
|
|
1368
|
+
remote_id?: string;
|
|
1369
|
+
[key: string]: unknown;
|
|
1370
|
+
unified_custom_fields?: {
|
|
1371
|
+
[key: string]: unknown;
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
type EnumMatcherExpression = {
|
|
1375
|
+
matchExpression: string;
|
|
1376
|
+
value: string;
|
|
1377
|
+
};
|
|
1378
|
+
type FieldConfig = {
|
|
1379
|
+
expression?: string;
|
|
1380
|
+
values?: unknown;
|
|
1381
|
+
targetFieldKey: string;
|
|
1382
|
+
alias?: string;
|
|
1383
|
+
type: string;
|
|
1384
|
+
custom: boolean;
|
|
1385
|
+
hidden: boolean;
|
|
1386
|
+
array: boolean;
|
|
1387
|
+
enumMapper?: {
|
|
1388
|
+
matcher: string | EnumMatcherExpression[];
|
|
1389
|
+
};
|
|
1390
|
+
properties?: FieldConfig[];
|
|
1391
|
+
requiredScopes?: string[];
|
|
1392
|
+
};
|
|
1393
|
+
type DebugParams = {
|
|
1394
|
+
custom_mappings?: 'disabled' | 'enabled';
|
|
1395
|
+
};
|
|
1396
|
+
type Credentials = Record<string, unknown>;
|
|
1397
|
+
type BlockStatistics = {
|
|
1398
|
+
startTime?: Date;
|
|
1399
|
+
endTime?: Date;
|
|
1400
|
+
};
|
|
1401
|
+
type DefenderMetadata = {
|
|
1402
|
+
applied: boolean;
|
|
1403
|
+
result?: {
|
|
1404
|
+
allowed: boolean;
|
|
1405
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1406
|
+
fieldsSanitized: string[];
|
|
1407
|
+
patternsByField: Record<string, string[]>;
|
|
1408
|
+
detections: string[];
|
|
1409
|
+
tier2Score?: number;
|
|
1410
|
+
tier2SkipReason?: string;
|
|
1411
|
+
latencyMs: number;
|
|
1412
|
+
};
|
|
1413
|
+
skipped?: {
|
|
1414
|
+
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1415
|
+
estimatedSize?: number;
|
|
1416
|
+
threshold?: number;
|
|
1417
|
+
error?: string;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
//#endregion
|
|
1420
1421
|
//#region ../core/src/stepFunctions/factory.d.ts
|
|
1421
1422
|
declare const StepFunctionsFactory: {
|
|
1422
1423
|
build({
|
|
@@ -1667,7 +1668,8 @@ declare const createBlockContext: ({
|
|
|
1667
1668
|
originOwnerName,
|
|
1668
1669
|
sourceType,
|
|
1669
1670
|
sourceId,
|
|
1670
|
-
sourceValue
|
|
1671
|
+
sourceValue,
|
|
1672
|
+
flowType
|
|
1671
1673
|
}: {
|
|
1672
1674
|
category: Category;
|
|
1673
1675
|
connectorKey: string;
|
|
@@ -1684,6 +1686,7 @@ declare const createBlockContext: ({
|
|
|
1684
1686
|
sourceType?: string;
|
|
1685
1687
|
sourceId?: string;
|
|
1686
1688
|
sourceValue?: string;
|
|
1689
|
+
flowType?: FlowType;
|
|
1687
1690
|
}) => BlockContext;
|
|
1688
1691
|
//#endregion
|
|
1689
1692
|
//#region src/connectors/testActions.d.ts
|