@stackone/core 2.37.0 → 2.39.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 +228 -11
- package/dist/index.d.mts +228 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1110,6 +1110,28 @@ type DefenderLog = {
|
|
|
1110
1110
|
};
|
|
1111
1111
|
//#endregion
|
|
1112
1112
|
//#region ../olap/src/logs/types.d.ts
|
|
1113
|
+
type Query = {
|
|
1114
|
+
organizationId?: string | string[];
|
|
1115
|
+
projectSecureId?: string | string[];
|
|
1116
|
+
actionRunId?: string | string[];
|
|
1117
|
+
accountSecureId?: string | string[];
|
|
1118
|
+
actionId?: string | string[];
|
|
1119
|
+
connectorKey?: string | string[];
|
|
1120
|
+
mode?: string | string[];
|
|
1121
|
+
category?: string | string[];
|
|
1122
|
+
logType?: ('action' | 'unified') | ('action' | 'unified')[];
|
|
1123
|
+
success?: boolean;
|
|
1124
|
+
startTime?: Date;
|
|
1125
|
+
endTime?: Date;
|
|
1126
|
+
pageNumber?: number;
|
|
1127
|
+
pageSize?: number;
|
|
1128
|
+
};
|
|
1129
|
+
type QueryResult = {
|
|
1130
|
+
logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
|
|
1131
|
+
total: number;
|
|
1132
|
+
pageNumber: number;
|
|
1133
|
+
pageSize: number;
|
|
1134
|
+
};
|
|
1113
1135
|
type ActionsQuery = {
|
|
1114
1136
|
organizationId?: string | string[];
|
|
1115
1137
|
projectSecureId?: string | string[];
|
|
@@ -1150,7 +1172,58 @@ type StepsQueryResult = {
|
|
|
1150
1172
|
pageNumber: number;
|
|
1151
1173
|
pageSize: number;
|
|
1152
1174
|
};
|
|
1153
|
-
type
|
|
1175
|
+
type UnifiedQuery = {
|
|
1176
|
+
organizationId?: string | string[];
|
|
1177
|
+
projectSecureId?: string | string[];
|
|
1178
|
+
accountSecureId?: string | string[];
|
|
1179
|
+
requestId?: string | string[];
|
|
1180
|
+
connectorKey?: string | string[];
|
|
1181
|
+
resource?: string | string[];
|
|
1182
|
+
source?: string | string[];
|
|
1183
|
+
category?: string | string[];
|
|
1184
|
+
originOwnerId?: string | string[];
|
|
1185
|
+
success?: boolean;
|
|
1186
|
+
startTime?: Date;
|
|
1187
|
+
endTime?: Date;
|
|
1188
|
+
pageNumber?: number;
|
|
1189
|
+
pageSize?: number;
|
|
1190
|
+
};
|
|
1191
|
+
type UnifiedQueryResult = {
|
|
1192
|
+
unifiedLogs: UnifiedLog[];
|
|
1193
|
+
total: number;
|
|
1194
|
+
pageNumber: number;
|
|
1195
|
+
pageSize: number;
|
|
1196
|
+
};
|
|
1197
|
+
type ProviderQuery = {
|
|
1198
|
+
organizationId?: string | string[];
|
|
1199
|
+
projectSecureId?: string | string[];
|
|
1200
|
+
accountSecureId?: string | string[];
|
|
1201
|
+
requestId?: string | string[];
|
|
1202
|
+
id?: string | string[];
|
|
1203
|
+
success?: boolean;
|
|
1204
|
+
startTime?: Date;
|
|
1205
|
+
endTime?: Date;
|
|
1206
|
+
pageNumber?: number;
|
|
1207
|
+
pageSize?: number;
|
|
1208
|
+
};
|
|
1209
|
+
type ProviderQueryResult = {
|
|
1210
|
+
providerLogs: ProviderLog[];
|
|
1211
|
+
total: number;
|
|
1212
|
+
pageNumber: number;
|
|
1213
|
+
pageSize: number;
|
|
1214
|
+
};
|
|
1215
|
+
interface ILog {
|
|
1216
|
+
logType: 'action' | 'step' | 'unified' | 'provider';
|
|
1217
|
+
eventTime: Date;
|
|
1218
|
+
startTime: Date;
|
|
1219
|
+
endTime?: Date;
|
|
1220
|
+
durationMs?: number;
|
|
1221
|
+
organizationId: string;
|
|
1222
|
+
projectSecureId?: string;
|
|
1223
|
+
accountSecureId?: string;
|
|
1224
|
+
}
|
|
1225
|
+
type ActionLog = ILog & {
|
|
1226
|
+
logType: 'action';
|
|
1154
1227
|
actionRunId: string;
|
|
1155
1228
|
actionId: string;
|
|
1156
1229
|
connectorKey: string;
|
|
@@ -1158,6 +1231,7 @@ type ActionLog = {
|
|
|
1158
1231
|
organizationId: string;
|
|
1159
1232
|
projectSecureId: string;
|
|
1160
1233
|
accountSecureId: string;
|
|
1234
|
+
actionType?: string;
|
|
1161
1235
|
mode?: string;
|
|
1162
1236
|
category?: string;
|
|
1163
1237
|
originOwnerId?: string;
|
|
@@ -1167,16 +1241,14 @@ type ActionLog = {
|
|
|
1167
1241
|
sourceType?: string;
|
|
1168
1242
|
sourceId?: string;
|
|
1169
1243
|
sourceValue?: string;
|
|
1244
|
+
isBackground?: boolean;
|
|
1170
1245
|
success?: boolean;
|
|
1171
1246
|
statusCode?: number;
|
|
1172
|
-
startTime?: Date;
|
|
1173
|
-
endTime?: Date;
|
|
1174
|
-
durationMs?: number;
|
|
1175
|
-
eventTime?: Date;
|
|
1176
1247
|
riskLevel?: string;
|
|
1177
1248
|
tier2Score?: number;
|
|
1178
1249
|
};
|
|
1179
|
-
type StepLog = {
|
|
1250
|
+
type StepLog = ILog & {
|
|
1251
|
+
logType: 'step';
|
|
1180
1252
|
actionRunId: string;
|
|
1181
1253
|
stepIndex: number;
|
|
1182
1254
|
stepId: string;
|
|
@@ -1186,10 +1258,63 @@ type StepLog = {
|
|
|
1186
1258
|
skipped?: boolean;
|
|
1187
1259
|
success?: boolean;
|
|
1188
1260
|
message?: string;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1261
|
+
};
|
|
1262
|
+
type UnifiedLog = ILog & {
|
|
1263
|
+
logType: 'unified';
|
|
1264
|
+
requestId: string;
|
|
1265
|
+
organizationId: string;
|
|
1266
|
+
projectSecureId: string;
|
|
1267
|
+
accountSecureId: string;
|
|
1268
|
+
connectorKey: string;
|
|
1269
|
+
connectorVersion?: string;
|
|
1270
|
+
mode?: string;
|
|
1271
|
+
httpMethod?: string;
|
|
1272
|
+
url?: string;
|
|
1273
|
+
path?: string;
|
|
1274
|
+
resource?: string;
|
|
1275
|
+
subResource?: string;
|
|
1276
|
+
childResource?: string;
|
|
1277
|
+
service?: string;
|
|
1278
|
+
action?: string;
|
|
1279
|
+
sourceId?: string;
|
|
1280
|
+
sourceType?: string;
|
|
1281
|
+
sourceValue?: string;
|
|
1282
|
+
isBackground?: boolean;
|
|
1283
|
+
originOwnerId?: string;
|
|
1284
|
+
originOwnerName?: string;
|
|
1285
|
+
status?: number;
|
|
1286
|
+
success?: boolean;
|
|
1287
|
+
isWorker?: boolean;
|
|
1288
|
+
provider?: string;
|
|
1289
|
+
eventDatetime?: Date;
|
|
1290
|
+
duration?: number;
|
|
1291
|
+
};
|
|
1292
|
+
type ProviderLog = ILog & {
|
|
1293
|
+
logType: 'provider';
|
|
1294
|
+
requestId: string;
|
|
1295
|
+
id?: string;
|
|
1296
|
+
organizationId: string;
|
|
1297
|
+
projectSecureId: string;
|
|
1298
|
+
accountSecureId: string;
|
|
1299
|
+
connectorKey: string;
|
|
1300
|
+
connectorVersion?: string;
|
|
1301
|
+
action: string;
|
|
1302
|
+
mode?: string;
|
|
1303
|
+
httpMethod: string;
|
|
1304
|
+
originOwnerId?: string;
|
|
1305
|
+
originOwnerName?: string;
|
|
1306
|
+
url: string;
|
|
1307
|
+
path?: string;
|
|
1308
|
+
resource?: string;
|
|
1309
|
+
subResource?: string;
|
|
1310
|
+
childResource?: string;
|
|
1311
|
+
service?: string;
|
|
1312
|
+
success?: boolean;
|
|
1313
|
+
status?: number;
|
|
1314
|
+
isWorker?: boolean;
|
|
1315
|
+
provider?: string;
|
|
1316
|
+
eventDatetime?: Date;
|
|
1317
|
+
duration?: number;
|
|
1193
1318
|
};
|
|
1194
1319
|
//#endregion
|
|
1195
1320
|
//#region ../olap/src/types.d.ts
|
|
@@ -1204,12 +1329,21 @@ interface IOlapClient {
|
|
|
1204
1329
|
input: StepInput;
|
|
1205
1330
|
result: StepResult;
|
|
1206
1331
|
}>, options?: OlapOptions): Promise<void>;
|
|
1332
|
+
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
1333
|
+
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
1334
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
1207
1335
|
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
1208
1336
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
1209
1337
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
1210
1338
|
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
1339
|
+
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
1340
|
+
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
1341
|
+
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
1342
|
+
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
1211
1343
|
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
1212
1344
|
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
1345
|
+
getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
|
|
1346
|
+
getProviderAdvancedLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderAdvancedLog | undefined>;
|
|
1213
1347
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
1214
1348
|
}
|
|
1215
1349
|
type DefenderContext = {
|
|
@@ -1228,6 +1362,8 @@ type ActionInput = {
|
|
|
1228
1362
|
sourceId?: string;
|
|
1229
1363
|
sourceType?: string;
|
|
1230
1364
|
sourceValue?: string;
|
|
1365
|
+
isBackground?: boolean;
|
|
1366
|
+
startTime?: Date;
|
|
1231
1367
|
};
|
|
1232
1368
|
type ActionResult = {
|
|
1233
1369
|
actionRunId: string;
|
|
@@ -1253,7 +1389,6 @@ type ActionResult = {
|
|
|
1253
1389
|
headers?: Record<string, string>;
|
|
1254
1390
|
body?: unknown;
|
|
1255
1391
|
defenderContext?: DefenderContext;
|
|
1256
|
-
startTime?: Date;
|
|
1257
1392
|
endTime?: Date;
|
|
1258
1393
|
};
|
|
1259
1394
|
type StepInput = {
|
|
@@ -1276,6 +1411,71 @@ type StepResult = {
|
|
|
1276
1411
|
startTime?: Date;
|
|
1277
1412
|
endTime?: Date;
|
|
1278
1413
|
};
|
|
1414
|
+
type UnifiedInput = {
|
|
1415
|
+
requestId: string;
|
|
1416
|
+
organizationId: string;
|
|
1417
|
+
projectSecureId: string;
|
|
1418
|
+
accountSecureId: string;
|
|
1419
|
+
originOwnerId?: string;
|
|
1420
|
+
originOwnerName?: string;
|
|
1421
|
+
connectorKey: string;
|
|
1422
|
+
action?: string;
|
|
1423
|
+
service?: string;
|
|
1424
|
+
mode?: string;
|
|
1425
|
+
httpMethod?: string;
|
|
1426
|
+
url?: string;
|
|
1427
|
+
path?: string;
|
|
1428
|
+
queryParams?: unknown;
|
|
1429
|
+
body?: unknown;
|
|
1430
|
+
headers?: Record<string, string>;
|
|
1431
|
+
resource?: string;
|
|
1432
|
+
subResource?: string;
|
|
1433
|
+
childResource?: string;
|
|
1434
|
+
sourceId?: string;
|
|
1435
|
+
sourceType?: string;
|
|
1436
|
+
sourceValue?: string;
|
|
1437
|
+
isBackground?: boolean;
|
|
1438
|
+
startTime?: Date;
|
|
1439
|
+
};
|
|
1440
|
+
type UnifiedResult = {
|
|
1441
|
+
success?: boolean;
|
|
1442
|
+
statusCode?: number;
|
|
1443
|
+
message?: string;
|
|
1444
|
+
headers?: Record<string, string>;
|
|
1445
|
+
body?: unknown;
|
|
1446
|
+
endTime?: Date;
|
|
1447
|
+
};
|
|
1448
|
+
type ProviderInput = {
|
|
1449
|
+
requestId: string;
|
|
1450
|
+
id: string;
|
|
1451
|
+
organizationId: string;
|
|
1452
|
+
projectSecureId: string;
|
|
1453
|
+
accountSecureId: string;
|
|
1454
|
+
originOwnerId?: string;
|
|
1455
|
+
originOwnerName?: string;
|
|
1456
|
+
connectorKey: string;
|
|
1457
|
+
action: string;
|
|
1458
|
+
service: string;
|
|
1459
|
+
mode: string;
|
|
1460
|
+
httpMethod: string;
|
|
1461
|
+
url: string;
|
|
1462
|
+
path?: string;
|
|
1463
|
+
queryParams?: unknown;
|
|
1464
|
+
headers?: Record<string, string>;
|
|
1465
|
+
body?: unknown;
|
|
1466
|
+
resource?: string;
|
|
1467
|
+
subResource?: string;
|
|
1468
|
+
childResource?: string;
|
|
1469
|
+
startTime?: Date;
|
|
1470
|
+
};
|
|
1471
|
+
type ProviderResult = {
|
|
1472
|
+
success?: boolean;
|
|
1473
|
+
statusCode?: number;
|
|
1474
|
+
headers?: Record<string, string>;
|
|
1475
|
+
body?: unknown;
|
|
1476
|
+
errors?: unknown;
|
|
1477
|
+
endTime?: Date;
|
|
1478
|
+
};
|
|
1279
1479
|
//#endregion
|
|
1280
1480
|
//#region ../olap/src/advanced/types.d.ts
|
|
1281
1481
|
type ActionAdvancedLog = {
|
|
@@ -1295,6 +1495,23 @@ type StepAdvancedLog = {
|
|
|
1295
1495
|
expirationTime?: number;
|
|
1296
1496
|
};
|
|
1297
1497
|
};
|
|
1498
|
+
type UnifiedAdvancedLog = {
|
|
1499
|
+
data: {
|
|
1500
|
+
[key: string]: unknown;
|
|
1501
|
+
};
|
|
1502
|
+
metadata?: {
|
|
1503
|
+
isBackgroundLog?: boolean;
|
|
1504
|
+
expirationTime?: number;
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
type ProviderAdvancedLog = {
|
|
1508
|
+
data: {
|
|
1509
|
+
[key: string]: unknown;
|
|
1510
|
+
};
|
|
1511
|
+
metadata?: {
|
|
1512
|
+
expirationTime?: number;
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1298
1515
|
//#endregion
|
|
1299
1516
|
//#region src/cursor/types.d.ts
|
|
1300
1517
|
type Position = {
|
package/dist/index.d.mts
CHANGED
|
@@ -1109,6 +1109,28 @@ type DefenderLog = {
|
|
|
1109
1109
|
};
|
|
1110
1110
|
//#endregion
|
|
1111
1111
|
//#region ../olap/src/logs/types.d.ts
|
|
1112
|
+
type Query = {
|
|
1113
|
+
organizationId?: string | string[];
|
|
1114
|
+
projectSecureId?: string | string[];
|
|
1115
|
+
actionRunId?: string | string[];
|
|
1116
|
+
accountSecureId?: string | string[];
|
|
1117
|
+
actionId?: string | string[];
|
|
1118
|
+
connectorKey?: string | string[];
|
|
1119
|
+
mode?: string | string[];
|
|
1120
|
+
category?: string | string[];
|
|
1121
|
+
logType?: ('action' | 'unified') | ('action' | 'unified')[];
|
|
1122
|
+
success?: boolean;
|
|
1123
|
+
startTime?: Date;
|
|
1124
|
+
endTime?: Date;
|
|
1125
|
+
pageNumber?: number;
|
|
1126
|
+
pageSize?: number;
|
|
1127
|
+
};
|
|
1128
|
+
type QueryResult = {
|
|
1129
|
+
logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
|
|
1130
|
+
total: number;
|
|
1131
|
+
pageNumber: number;
|
|
1132
|
+
pageSize: number;
|
|
1133
|
+
};
|
|
1112
1134
|
type ActionsQuery = {
|
|
1113
1135
|
organizationId?: string | string[];
|
|
1114
1136
|
projectSecureId?: string | string[];
|
|
@@ -1149,7 +1171,58 @@ type StepsQueryResult = {
|
|
|
1149
1171
|
pageNumber: number;
|
|
1150
1172
|
pageSize: number;
|
|
1151
1173
|
};
|
|
1152
|
-
type
|
|
1174
|
+
type UnifiedQuery = {
|
|
1175
|
+
organizationId?: string | string[];
|
|
1176
|
+
projectSecureId?: string | string[];
|
|
1177
|
+
accountSecureId?: string | string[];
|
|
1178
|
+
requestId?: string | string[];
|
|
1179
|
+
connectorKey?: string | string[];
|
|
1180
|
+
resource?: string | string[];
|
|
1181
|
+
source?: string | string[];
|
|
1182
|
+
category?: string | string[];
|
|
1183
|
+
originOwnerId?: string | string[];
|
|
1184
|
+
success?: boolean;
|
|
1185
|
+
startTime?: Date;
|
|
1186
|
+
endTime?: Date;
|
|
1187
|
+
pageNumber?: number;
|
|
1188
|
+
pageSize?: number;
|
|
1189
|
+
};
|
|
1190
|
+
type UnifiedQueryResult = {
|
|
1191
|
+
unifiedLogs: UnifiedLog[];
|
|
1192
|
+
total: number;
|
|
1193
|
+
pageNumber: number;
|
|
1194
|
+
pageSize: number;
|
|
1195
|
+
};
|
|
1196
|
+
type ProviderQuery = {
|
|
1197
|
+
organizationId?: string | string[];
|
|
1198
|
+
projectSecureId?: string | string[];
|
|
1199
|
+
accountSecureId?: string | string[];
|
|
1200
|
+
requestId?: string | string[];
|
|
1201
|
+
id?: string | string[];
|
|
1202
|
+
success?: boolean;
|
|
1203
|
+
startTime?: Date;
|
|
1204
|
+
endTime?: Date;
|
|
1205
|
+
pageNumber?: number;
|
|
1206
|
+
pageSize?: number;
|
|
1207
|
+
};
|
|
1208
|
+
type ProviderQueryResult = {
|
|
1209
|
+
providerLogs: ProviderLog[];
|
|
1210
|
+
total: number;
|
|
1211
|
+
pageNumber: number;
|
|
1212
|
+
pageSize: number;
|
|
1213
|
+
};
|
|
1214
|
+
interface ILog {
|
|
1215
|
+
logType: 'action' | 'step' | 'unified' | 'provider';
|
|
1216
|
+
eventTime: Date;
|
|
1217
|
+
startTime: Date;
|
|
1218
|
+
endTime?: Date;
|
|
1219
|
+
durationMs?: number;
|
|
1220
|
+
organizationId: string;
|
|
1221
|
+
projectSecureId?: string;
|
|
1222
|
+
accountSecureId?: string;
|
|
1223
|
+
}
|
|
1224
|
+
type ActionLog = ILog & {
|
|
1225
|
+
logType: 'action';
|
|
1153
1226
|
actionRunId: string;
|
|
1154
1227
|
actionId: string;
|
|
1155
1228
|
connectorKey: string;
|
|
@@ -1157,6 +1230,7 @@ type ActionLog = {
|
|
|
1157
1230
|
organizationId: string;
|
|
1158
1231
|
projectSecureId: string;
|
|
1159
1232
|
accountSecureId: string;
|
|
1233
|
+
actionType?: string;
|
|
1160
1234
|
mode?: string;
|
|
1161
1235
|
category?: string;
|
|
1162
1236
|
originOwnerId?: string;
|
|
@@ -1166,16 +1240,14 @@ type ActionLog = {
|
|
|
1166
1240
|
sourceType?: string;
|
|
1167
1241
|
sourceId?: string;
|
|
1168
1242
|
sourceValue?: string;
|
|
1243
|
+
isBackground?: boolean;
|
|
1169
1244
|
success?: boolean;
|
|
1170
1245
|
statusCode?: number;
|
|
1171
|
-
startTime?: Date;
|
|
1172
|
-
endTime?: Date;
|
|
1173
|
-
durationMs?: number;
|
|
1174
|
-
eventTime?: Date;
|
|
1175
1246
|
riskLevel?: string;
|
|
1176
1247
|
tier2Score?: number;
|
|
1177
1248
|
};
|
|
1178
|
-
type StepLog = {
|
|
1249
|
+
type StepLog = ILog & {
|
|
1250
|
+
logType: 'step';
|
|
1179
1251
|
actionRunId: string;
|
|
1180
1252
|
stepIndex: number;
|
|
1181
1253
|
stepId: string;
|
|
@@ -1185,10 +1257,63 @@ type StepLog = {
|
|
|
1185
1257
|
skipped?: boolean;
|
|
1186
1258
|
success?: boolean;
|
|
1187
1259
|
message?: string;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1260
|
+
};
|
|
1261
|
+
type UnifiedLog = ILog & {
|
|
1262
|
+
logType: 'unified';
|
|
1263
|
+
requestId: string;
|
|
1264
|
+
organizationId: string;
|
|
1265
|
+
projectSecureId: string;
|
|
1266
|
+
accountSecureId: string;
|
|
1267
|
+
connectorKey: string;
|
|
1268
|
+
connectorVersion?: string;
|
|
1269
|
+
mode?: string;
|
|
1270
|
+
httpMethod?: string;
|
|
1271
|
+
url?: string;
|
|
1272
|
+
path?: string;
|
|
1273
|
+
resource?: string;
|
|
1274
|
+
subResource?: string;
|
|
1275
|
+
childResource?: string;
|
|
1276
|
+
service?: string;
|
|
1277
|
+
action?: string;
|
|
1278
|
+
sourceId?: string;
|
|
1279
|
+
sourceType?: string;
|
|
1280
|
+
sourceValue?: string;
|
|
1281
|
+
isBackground?: boolean;
|
|
1282
|
+
originOwnerId?: string;
|
|
1283
|
+
originOwnerName?: string;
|
|
1284
|
+
status?: number;
|
|
1285
|
+
success?: boolean;
|
|
1286
|
+
isWorker?: boolean;
|
|
1287
|
+
provider?: string;
|
|
1288
|
+
eventDatetime?: Date;
|
|
1289
|
+
duration?: number;
|
|
1290
|
+
};
|
|
1291
|
+
type ProviderLog = ILog & {
|
|
1292
|
+
logType: 'provider';
|
|
1293
|
+
requestId: string;
|
|
1294
|
+
id?: string;
|
|
1295
|
+
organizationId: string;
|
|
1296
|
+
projectSecureId: string;
|
|
1297
|
+
accountSecureId: string;
|
|
1298
|
+
connectorKey: string;
|
|
1299
|
+
connectorVersion?: string;
|
|
1300
|
+
action: string;
|
|
1301
|
+
mode?: string;
|
|
1302
|
+
httpMethod: string;
|
|
1303
|
+
originOwnerId?: string;
|
|
1304
|
+
originOwnerName?: string;
|
|
1305
|
+
url: string;
|
|
1306
|
+
path?: string;
|
|
1307
|
+
resource?: string;
|
|
1308
|
+
subResource?: string;
|
|
1309
|
+
childResource?: string;
|
|
1310
|
+
service?: string;
|
|
1311
|
+
success?: boolean;
|
|
1312
|
+
status?: number;
|
|
1313
|
+
isWorker?: boolean;
|
|
1314
|
+
provider?: string;
|
|
1315
|
+
eventDatetime?: Date;
|
|
1316
|
+
duration?: number;
|
|
1192
1317
|
};
|
|
1193
1318
|
//#endregion
|
|
1194
1319
|
//#region ../olap/src/types.d.ts
|
|
@@ -1203,12 +1328,21 @@ interface IOlapClient {
|
|
|
1203
1328
|
input: StepInput;
|
|
1204
1329
|
result: StepResult;
|
|
1205
1330
|
}>, options?: OlapOptions): Promise<void>;
|
|
1331
|
+
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
1332
|
+
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
1333
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
1206
1334
|
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
1207
1335
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
1208
1336
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
1209
1337
|
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
1338
|
+
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
1339
|
+
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
1340
|
+
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
1341
|
+
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
1210
1342
|
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
1211
1343
|
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
1344
|
+
getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
|
|
1345
|
+
getProviderAdvancedLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderAdvancedLog | undefined>;
|
|
1212
1346
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
1213
1347
|
}
|
|
1214
1348
|
type DefenderContext = {
|
|
@@ -1227,6 +1361,8 @@ type ActionInput = {
|
|
|
1227
1361
|
sourceId?: string;
|
|
1228
1362
|
sourceType?: string;
|
|
1229
1363
|
sourceValue?: string;
|
|
1364
|
+
isBackground?: boolean;
|
|
1365
|
+
startTime?: Date;
|
|
1230
1366
|
};
|
|
1231
1367
|
type ActionResult = {
|
|
1232
1368
|
actionRunId: string;
|
|
@@ -1252,7 +1388,6 @@ type ActionResult = {
|
|
|
1252
1388
|
headers?: Record<string, string>;
|
|
1253
1389
|
body?: unknown;
|
|
1254
1390
|
defenderContext?: DefenderContext;
|
|
1255
|
-
startTime?: Date;
|
|
1256
1391
|
endTime?: Date;
|
|
1257
1392
|
};
|
|
1258
1393
|
type StepInput = {
|
|
@@ -1275,6 +1410,71 @@ type StepResult = {
|
|
|
1275
1410
|
startTime?: Date;
|
|
1276
1411
|
endTime?: Date;
|
|
1277
1412
|
};
|
|
1413
|
+
type UnifiedInput = {
|
|
1414
|
+
requestId: string;
|
|
1415
|
+
organizationId: string;
|
|
1416
|
+
projectSecureId: string;
|
|
1417
|
+
accountSecureId: string;
|
|
1418
|
+
originOwnerId?: string;
|
|
1419
|
+
originOwnerName?: string;
|
|
1420
|
+
connectorKey: string;
|
|
1421
|
+
action?: string;
|
|
1422
|
+
service?: string;
|
|
1423
|
+
mode?: string;
|
|
1424
|
+
httpMethod?: string;
|
|
1425
|
+
url?: string;
|
|
1426
|
+
path?: string;
|
|
1427
|
+
queryParams?: unknown;
|
|
1428
|
+
body?: unknown;
|
|
1429
|
+
headers?: Record<string, string>;
|
|
1430
|
+
resource?: string;
|
|
1431
|
+
subResource?: string;
|
|
1432
|
+
childResource?: string;
|
|
1433
|
+
sourceId?: string;
|
|
1434
|
+
sourceType?: string;
|
|
1435
|
+
sourceValue?: string;
|
|
1436
|
+
isBackground?: boolean;
|
|
1437
|
+
startTime?: Date;
|
|
1438
|
+
};
|
|
1439
|
+
type UnifiedResult = {
|
|
1440
|
+
success?: boolean;
|
|
1441
|
+
statusCode?: number;
|
|
1442
|
+
message?: string;
|
|
1443
|
+
headers?: Record<string, string>;
|
|
1444
|
+
body?: unknown;
|
|
1445
|
+
endTime?: Date;
|
|
1446
|
+
};
|
|
1447
|
+
type ProviderInput = {
|
|
1448
|
+
requestId: string;
|
|
1449
|
+
id: string;
|
|
1450
|
+
organizationId: string;
|
|
1451
|
+
projectSecureId: string;
|
|
1452
|
+
accountSecureId: string;
|
|
1453
|
+
originOwnerId?: string;
|
|
1454
|
+
originOwnerName?: string;
|
|
1455
|
+
connectorKey: string;
|
|
1456
|
+
action: string;
|
|
1457
|
+
service: string;
|
|
1458
|
+
mode: string;
|
|
1459
|
+
httpMethod: string;
|
|
1460
|
+
url: string;
|
|
1461
|
+
path?: string;
|
|
1462
|
+
queryParams?: unknown;
|
|
1463
|
+
headers?: Record<string, string>;
|
|
1464
|
+
body?: unknown;
|
|
1465
|
+
resource?: string;
|
|
1466
|
+
subResource?: string;
|
|
1467
|
+
childResource?: string;
|
|
1468
|
+
startTime?: Date;
|
|
1469
|
+
};
|
|
1470
|
+
type ProviderResult = {
|
|
1471
|
+
success?: boolean;
|
|
1472
|
+
statusCode?: number;
|
|
1473
|
+
headers?: Record<string, string>;
|
|
1474
|
+
body?: unknown;
|
|
1475
|
+
errors?: unknown;
|
|
1476
|
+
endTime?: Date;
|
|
1477
|
+
};
|
|
1278
1478
|
//#endregion
|
|
1279
1479
|
//#region ../olap/src/advanced/types.d.ts
|
|
1280
1480
|
type ActionAdvancedLog = {
|
|
@@ -1294,6 +1494,23 @@ type StepAdvancedLog = {
|
|
|
1294
1494
|
expirationTime?: number;
|
|
1295
1495
|
};
|
|
1296
1496
|
};
|
|
1497
|
+
type UnifiedAdvancedLog = {
|
|
1498
|
+
data: {
|
|
1499
|
+
[key: string]: unknown;
|
|
1500
|
+
};
|
|
1501
|
+
metadata?: {
|
|
1502
|
+
isBackgroundLog?: boolean;
|
|
1503
|
+
expirationTime?: number;
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
type ProviderAdvancedLog = {
|
|
1507
|
+
data: {
|
|
1508
|
+
[key: string]: unknown;
|
|
1509
|
+
};
|
|
1510
|
+
metadata?: {
|
|
1511
|
+
expirationTime?: number;
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1297
1514
|
//#endregion
|
|
1298
1515
|
//#region src/cursor/types.d.ts
|
|
1299
1516
|
type Position = {
|