@stackone/connect-sdk 2.61.0 → 2.63.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 +261 -249
- package/dist/index.d.mts +261 -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;
|
|
@@ -505,6 +402,8 @@ type ActionResult = {
|
|
|
505
402
|
actionId: string;
|
|
506
403
|
connectorKey: string;
|
|
507
404
|
connectorVersion: string;
|
|
405
|
+
connectorOwner?: string;
|
|
406
|
+
connectorProfileId?: string;
|
|
508
407
|
actionType: string;
|
|
509
408
|
category?: string;
|
|
510
409
|
organizationId: string;
|
|
@@ -803,6 +702,8 @@ type ActionLog = ILog & {
|
|
|
803
702
|
actionId: string;
|
|
804
703
|
connectorKey: string;
|
|
805
704
|
connectorVersion: string;
|
|
705
|
+
connectorOwner?: string;
|
|
706
|
+
connectorProfileId?: string;
|
|
806
707
|
organizationId: string;
|
|
807
708
|
projectSecureId: string;
|
|
808
709
|
accountSecureId: string;
|
|
@@ -897,168 +798,108 @@ type ProviderLog = ILog & {
|
|
|
897
798
|
duration?: number;
|
|
898
799
|
};
|
|
899
800
|
//#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
|
-
};
|
|
801
|
+
//#region ../core/src/categories/types.d.ts
|
|
802
|
+
type Category = 'hris' | 'crm' | 'ats' | 'lms' | 'marketing' | 'filestorage' | 'internal' | 'action';
|
|
911
803
|
//#endregion
|
|
912
|
-
//#region ../core/src/
|
|
913
|
-
type
|
|
914
|
-
|
|
915
|
-
|
|
804
|
+
//#region ../core/src/compositeIds/types.d.ts
|
|
805
|
+
type ComponentConfig = {
|
|
806
|
+
name: string;
|
|
807
|
+
alias?: string;
|
|
916
808
|
};
|
|
917
|
-
type
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
advanced?: {
|
|
922
|
-
enabled?: boolean;
|
|
923
|
-
ttl?: number;
|
|
924
|
-
errorsOnly?: boolean;
|
|
925
|
-
includeBackground?: boolean;
|
|
926
|
-
};
|
|
809
|
+
type ComponentFieldConfig = {
|
|
810
|
+
targetFieldKey: string;
|
|
811
|
+
remote?: string;
|
|
812
|
+
components: ComponentConfig[];
|
|
927
813
|
};
|
|
928
|
-
type
|
|
814
|
+
type CompositeIdentifierConnectorConfig = {
|
|
929
815
|
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;
|
|
816
|
+
version?: number;
|
|
817
|
+
fields?: ComponentFieldConfig[];
|
|
941
818
|
};
|
|
942
819
|
//#endregion
|
|
943
|
-
//#region ../core/src/
|
|
944
|
-
type
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
820
|
+
//#region ../core/src/exhaustivePagination/basePaginationConfig.d.ts
|
|
821
|
+
type IteratorLocation = 'query' | 'body' | 'headers';
|
|
822
|
+
interface BasePaginationConfig {
|
|
823
|
+
type: string;
|
|
824
|
+
response: {
|
|
825
|
+
dataKey: string;
|
|
826
|
+
};
|
|
827
|
+
stopCondition?: string;
|
|
828
|
+
}
|
|
949
829
|
//#endregion
|
|
950
|
-
//#region ../core/src/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
830
|
+
//#region ../core/src/exhaustivePagination/cursorPaginationConfig.d.ts
|
|
831
|
+
interface CursorPaginationConfig extends BasePaginationConfig {
|
|
832
|
+
type: 'cursor';
|
|
833
|
+
response: {
|
|
834
|
+
dataKey: string;
|
|
835
|
+
nextKey: string;
|
|
954
836
|
};
|
|
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;
|
|
837
|
+
iterator: {
|
|
838
|
+
key: string;
|
|
839
|
+
in: IteratorLocation;
|
|
975
840
|
};
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
841
|
+
}
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region ../core/src/exhaustivePagination/offsetPaginationConfig.d.ts
|
|
844
|
+
interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
845
|
+
type: 'offset';
|
|
846
|
+
iterator: {
|
|
847
|
+
offsetKey: string;
|
|
848
|
+
limitKey: string;
|
|
849
|
+
in: IteratorLocation;
|
|
850
|
+
defaultLimit?: number;
|
|
982
851
|
};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
852
|
+
}
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region ../core/src/exhaustivePagination/pagePaginationConfig.d.ts
|
|
855
|
+
interface PagePaginationConfig extends BasePaginationConfig {
|
|
856
|
+
type: 'page';
|
|
857
|
+
iterator: {
|
|
858
|
+
pageKey: string;
|
|
859
|
+
pageSizeKey?: string;
|
|
860
|
+
in: IteratorLocation;
|
|
861
|
+
startPage?: number;
|
|
862
|
+
defaultPageSize?: number;
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
//#endregion
|
|
866
|
+
//#region ../core/src/exhaustivePagination/index.d.ts
|
|
867
|
+
type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
|
|
868
|
+
//#endregion
|
|
869
|
+
//#region ../core/src/schema/types.d.ts
|
|
870
|
+
type Schema = {
|
|
871
|
+
name: string;
|
|
872
|
+
key: string;
|
|
873
|
+
version: string;
|
|
874
|
+
description?: string;
|
|
993
875
|
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;
|
|
876
|
+
fields: {
|
|
877
|
+
[name: string]: SchemaField;
|
|
1013
878
|
};
|
|
1014
879
|
};
|
|
1015
|
-
type
|
|
1016
|
-
|
|
1017
|
-
value: string;
|
|
1018
|
-
};
|
|
1019
|
-
type FieldConfig = {
|
|
1020
|
-
expression?: string;
|
|
1021
|
-
values?: unknown;
|
|
1022
|
-
targetFieldKey: string;
|
|
1023
|
-
alias?: string;
|
|
880
|
+
type SchemaField = {
|
|
881
|
+
name: string;
|
|
1024
882
|
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
|
-
};
|
|
883
|
+
required: boolean;
|
|
884
|
+
description?: string;
|
|
1060
885
|
};
|
|
1061
886
|
//#endregion
|
|
887
|
+
//#region ../core/src/stepFunctions/stepFunctionsList.d.ts
|
|
888
|
+
declare enum StepFunctionName {
|
|
889
|
+
TYPECAST = "typecast",
|
|
890
|
+
MAP_FIELDS = "map_fields",
|
|
891
|
+
GROUP_DATA = "group_data",
|
|
892
|
+
REQUEST = "request",
|
|
893
|
+
PAGINATED_REQUEST = "paginated_request",
|
|
894
|
+
SOAP_REQUEST = "soap_request",
|
|
895
|
+
SOAP_PAGINATED_REQUEST = "soap_paginated_request",
|
|
896
|
+
STATIC_VALUES = "static_values",
|
|
897
|
+
UPLOAD_FILE = "upload_file",
|
|
898
|
+
UPLOAD_BINARY = "upload_binary",
|
|
899
|
+
DOWNLOAD_FILE = "download_file",
|
|
900
|
+
EMIT_EVENT = "emit_event",
|
|
901
|
+
}
|
|
902
|
+
//#endregion
|
|
1062
903
|
//#region ../core/src/stepFunctions/types.d.ts
|
|
1063
904
|
type StepFunction = ({
|
|
1064
905
|
block,
|
|
@@ -1417,6 +1258,171 @@ type Authentication = {
|
|
|
1417
1258
|
};
|
|
1418
1259
|
};
|
|
1419
1260
|
//#endregion
|
|
1261
|
+
//#region ../core/src/cursor/types.d.ts
|
|
1262
|
+
type Position = {
|
|
1263
|
+
pageNumber?: number | null;
|
|
1264
|
+
providerPageCursor?: string | null;
|
|
1265
|
+
position?: number | null;
|
|
1266
|
+
};
|
|
1267
|
+
type Cursor = {
|
|
1268
|
+
remote: Record<number, Position>;
|
|
1269
|
+
version: number;
|
|
1270
|
+
timestamp: number;
|
|
1271
|
+
};
|
|
1272
|
+
//#endregion
|
|
1273
|
+
//#region ../core/src/settings/types.d.ts
|
|
1274
|
+
type Settings = {
|
|
1275
|
+
olap: OlapSettings;
|
|
1276
|
+
defender?: DefenderSettings;
|
|
1277
|
+
};
|
|
1278
|
+
type OlapSettings = {
|
|
1279
|
+
logs?: {
|
|
1280
|
+
enabled: boolean;
|
|
1281
|
+
};
|
|
1282
|
+
advanced?: {
|
|
1283
|
+
enabled?: boolean;
|
|
1284
|
+
ttl?: number;
|
|
1285
|
+
errorsOnly?: boolean;
|
|
1286
|
+
includeBackground?: boolean;
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
type DefenderSettings = {
|
|
1290
|
+
enabled: boolean;
|
|
1291
|
+
blockHighRisk?: boolean;
|
|
1292
|
+
highRiskThreshold?: number;
|
|
1293
|
+
mediumRiskThreshold?: number;
|
|
1294
|
+
useTier1Classification?: boolean;
|
|
1295
|
+
useTier2Classification?: boolean;
|
|
1296
|
+
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
1297
|
+
maxResponseSize?: number;
|
|
1298
|
+
maxResponseWords?: number;
|
|
1299
|
+
tier2Fields?: string[];
|
|
1300
|
+
useSfe?: boolean;
|
|
1301
|
+
annotateBoundary?: boolean;
|
|
1302
|
+
};
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region ../core/src/source/types.d.ts
|
|
1305
|
+
type Source = {
|
|
1306
|
+
sourceType?: string;
|
|
1307
|
+
sourceId?: string;
|
|
1308
|
+
sourceValue?: string;
|
|
1309
|
+
};
|
|
1310
|
+
//#endregion
|
|
1311
|
+
//#region ../core/src/blocks/types.d.ts
|
|
1312
|
+
type Block = {
|
|
1313
|
+
inputs?: {
|
|
1314
|
+
[key: string]: unknown;
|
|
1315
|
+
};
|
|
1316
|
+
connector?: Connector;
|
|
1317
|
+
context: BlockContext;
|
|
1318
|
+
debug?: DebugParams;
|
|
1319
|
+
steps?: StepsSnapshots;
|
|
1320
|
+
intermediateSteps?: IntermediateStepsSnapshots;
|
|
1321
|
+
httpClient?: IHttpClient;
|
|
1322
|
+
olapClient?: IOlapClient;
|
|
1323
|
+
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
1324
|
+
settings?: Settings;
|
|
1325
|
+
logger?: ILogger;
|
|
1326
|
+
action?: Action;
|
|
1327
|
+
credentials?: Credentials;
|
|
1328
|
+
scopes?: string[];
|
|
1329
|
+
outputs?: unknown;
|
|
1330
|
+
streamOutput?: StreamOutputData;
|
|
1331
|
+
nextCursor?: Cursor | null;
|
|
1332
|
+
response?: {
|
|
1333
|
+
statusCode: number;
|
|
1334
|
+
successful: boolean;
|
|
1335
|
+
message?: string;
|
|
1336
|
+
};
|
|
1337
|
+
statistics?: BlockStatistics;
|
|
1338
|
+
defenderMetadata?: DefenderMetadata;
|
|
1339
|
+
iterator?: {
|
|
1340
|
+
item: unknown;
|
|
1341
|
+
index: number;
|
|
1342
|
+
current?: unknown;
|
|
1343
|
+
};
|
|
1344
|
+
fieldConfigs?: FieldConfig[];
|
|
1345
|
+
result?: BlockIndexedRecord[] | BlockIndexedRecord;
|
|
1346
|
+
};
|
|
1347
|
+
type FlowType = 'action' | 'refresh_authentication' | 'test_action';
|
|
1348
|
+
type BlockContext = {
|
|
1349
|
+
organizationId?: string;
|
|
1350
|
+
projectSecureId: string;
|
|
1351
|
+
accountSecureId: string;
|
|
1352
|
+
connectorKey: string;
|
|
1353
|
+
connectorVersion: string;
|
|
1354
|
+
connectorOwner?: string;
|
|
1355
|
+
connectorProfileId?: string;
|
|
1356
|
+
category: Category;
|
|
1357
|
+
schema?: string;
|
|
1358
|
+
actionType: ActionType;
|
|
1359
|
+
authenticationType: string;
|
|
1360
|
+
environment: string;
|
|
1361
|
+
actionRunId?: string;
|
|
1362
|
+
originOwnerId?: string;
|
|
1363
|
+
originOwnerName?: string;
|
|
1364
|
+
source?: Source;
|
|
1365
|
+
flowType?: FlowType;
|
|
1366
|
+
service: string;
|
|
1367
|
+
resource: string;
|
|
1368
|
+
subResource?: string;
|
|
1369
|
+
childResource?: string;
|
|
1370
|
+
};
|
|
1371
|
+
type BlockIndexedRecord = {
|
|
1372
|
+
id: string;
|
|
1373
|
+
remote_id?: string;
|
|
1374
|
+
[key: string]: unknown;
|
|
1375
|
+
unified_custom_fields?: {
|
|
1376
|
+
[key: string]: unknown;
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
type EnumMatcherExpression = {
|
|
1380
|
+
matchExpression: string;
|
|
1381
|
+
value: string;
|
|
1382
|
+
};
|
|
1383
|
+
type FieldConfig = {
|
|
1384
|
+
expression?: string;
|
|
1385
|
+
values?: unknown;
|
|
1386
|
+
targetFieldKey: string;
|
|
1387
|
+
alias?: string;
|
|
1388
|
+
type: string;
|
|
1389
|
+
custom: boolean;
|
|
1390
|
+
hidden: boolean;
|
|
1391
|
+
array: boolean;
|
|
1392
|
+
enumMapper?: {
|
|
1393
|
+
matcher: string | EnumMatcherExpression[];
|
|
1394
|
+
};
|
|
1395
|
+
properties?: FieldConfig[];
|
|
1396
|
+
requiredScopes?: string[];
|
|
1397
|
+
};
|
|
1398
|
+
type DebugParams = {
|
|
1399
|
+
custom_mappings?: 'disabled' | 'enabled';
|
|
1400
|
+
};
|
|
1401
|
+
type Credentials = Record<string, unknown>;
|
|
1402
|
+
type BlockStatistics = {
|
|
1403
|
+
startTime?: Date;
|
|
1404
|
+
endTime?: Date;
|
|
1405
|
+
};
|
|
1406
|
+
type DefenderMetadata = {
|
|
1407
|
+
applied: boolean;
|
|
1408
|
+
result?: {
|
|
1409
|
+
allowed: boolean;
|
|
1410
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1411
|
+
fieldsSanitized: string[];
|
|
1412
|
+
patternsByField: Record<string, string[]>;
|
|
1413
|
+
detections: string[];
|
|
1414
|
+
tier2Score?: number;
|
|
1415
|
+
tier2SkipReason?: string;
|
|
1416
|
+
latencyMs: number;
|
|
1417
|
+
};
|
|
1418
|
+
skipped?: {
|
|
1419
|
+
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1420
|
+
estimatedSize?: number;
|
|
1421
|
+
threshold?: number;
|
|
1422
|
+
error?: string;
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
//#endregion
|
|
1420
1426
|
//#region ../core/src/stepFunctions/factory.d.ts
|
|
1421
1427
|
declare const StepFunctionsFactory: {
|
|
1422
1428
|
build({
|
|
@@ -1437,6 +1443,7 @@ type Account = {
|
|
|
1437
1443
|
providerKey: string;
|
|
1438
1444
|
providerVersion: string;
|
|
1439
1445
|
connectorOwner?: string;
|
|
1446
|
+
connectorProfileId?: string;
|
|
1440
1447
|
authConfigKey: string;
|
|
1441
1448
|
environment: string;
|
|
1442
1449
|
organizationId: string;
|
|
@@ -1657,6 +1664,7 @@ declare const createBlockContext: ({
|
|
|
1657
1664
|
connectorKey,
|
|
1658
1665
|
connectorVersion,
|
|
1659
1666
|
connectorOwner,
|
|
1667
|
+
connectorProfileId,
|
|
1660
1668
|
authConfigKey,
|
|
1661
1669
|
environment,
|
|
1662
1670
|
action,
|
|
@@ -1667,12 +1675,14 @@ declare const createBlockContext: ({
|
|
|
1667
1675
|
originOwnerName,
|
|
1668
1676
|
sourceType,
|
|
1669
1677
|
sourceId,
|
|
1670
|
-
sourceValue
|
|
1678
|
+
sourceValue,
|
|
1679
|
+
flowType
|
|
1671
1680
|
}: {
|
|
1672
1681
|
category: Category;
|
|
1673
1682
|
connectorKey: string;
|
|
1674
1683
|
connectorVersion: string;
|
|
1675
1684
|
connectorOwner?: string;
|
|
1685
|
+
connectorProfileId?: string;
|
|
1676
1686
|
authConfigKey: string;
|
|
1677
1687
|
environment?: string;
|
|
1678
1688
|
action?: Action;
|
|
@@ -1684,6 +1694,7 @@ declare const createBlockContext: ({
|
|
|
1684
1694
|
sourceType?: string;
|
|
1685
1695
|
sourceId?: string;
|
|
1686
1696
|
sourceValue?: string;
|
|
1697
|
+
flowType?: FlowType;
|
|
1687
1698
|
}) => BlockContext;
|
|
1688
1699
|
//#endregion
|
|
1689
1700
|
//#region src/connectors/testActions.d.ts
|