@stackone/core 2.38.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 CHANGED
@@ -1231,6 +1231,7 @@ type ActionLog = ILog & {
1231
1231
  organizationId: string;
1232
1232
  projectSecureId: string;
1233
1233
  accountSecureId: string;
1234
+ actionType?: string;
1234
1235
  mode?: string;
1235
1236
  category?: string;
1236
1237
  originOwnerId?: string;
@@ -1240,6 +1241,7 @@ type ActionLog = ILog & {
1240
1241
  sourceType?: string;
1241
1242
  sourceId?: string;
1242
1243
  sourceValue?: string;
1244
+ isBackground?: boolean;
1243
1245
  success?: boolean;
1244
1246
  statusCode?: number;
1245
1247
  riskLevel?: string;
@@ -1260,11 +1262,11 @@ type StepLog = ILog & {
1260
1262
  type UnifiedLog = ILog & {
1261
1263
  logType: 'unified';
1262
1264
  requestId: string;
1263
- connectorKey: string;
1264
- connectorVersion?: string;
1265
1265
  organizationId: string;
1266
1266
  projectSecureId: string;
1267
1267
  accountSecureId: string;
1268
+ connectorKey: string;
1269
+ connectorVersion?: string;
1268
1270
  mode?: string;
1269
1271
  httpMethod?: string;
1270
1272
  url?: string;
@@ -1277,16 +1279,25 @@ type UnifiedLog = ILog & {
1277
1279
  sourceId?: string;
1278
1280
  sourceType?: string;
1279
1281
  sourceValue?: string;
1282
+ isBackground?: boolean;
1280
1283
  originOwnerId?: string;
1281
1284
  originOwnerName?: string;
1282
- status: number;
1283
- success: boolean;
1285
+ status?: number;
1286
+ success?: boolean;
1284
1287
  isWorker?: boolean;
1288
+ provider?: string;
1289
+ eventDatetime?: Date;
1290
+ duration?: number;
1285
1291
  };
1286
1292
  type ProviderLog = ILog & {
1287
1293
  logType: 'provider';
1288
1294
  requestId: string;
1289
1295
  id?: string;
1296
+ organizationId: string;
1297
+ projectSecureId: string;
1298
+ accountSecureId: string;
1299
+ connectorKey: string;
1300
+ connectorVersion?: string;
1290
1301
  action: string;
1291
1302
  mode?: string;
1292
1303
  httpMethod: string;
@@ -1294,18 +1305,16 @@ type ProviderLog = ILog & {
1294
1305
  originOwnerName?: string;
1295
1306
  url: string;
1296
1307
  path?: string;
1297
- connectorKey: string;
1298
- connectorVersion?: string;
1299
- resource: string;
1308
+ resource?: string;
1300
1309
  subResource?: string;
1301
1310
  childResource?: string;
1302
- service: string;
1303
- success: boolean;
1304
- status: number;
1311
+ service?: string;
1312
+ success?: boolean;
1313
+ status?: number;
1305
1314
  isWorker?: boolean;
1306
- organizationId: string;
1307
- projectSecureId: string;
1308
- accountSecureId: string;
1315
+ provider?: string;
1316
+ eventDatetime?: Date;
1317
+ duration?: number;
1309
1318
  };
1310
1319
  //#endregion
1311
1320
  //#region ../olap/src/types.d.ts
@@ -1320,6 +1329,8 @@ interface IOlapClient {
1320
1329
  input: StepInput;
1321
1330
  result: StepResult;
1322
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>;
1323
1334
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
1324
1335
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1325
1336
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
@@ -1331,6 +1342,8 @@ interface IOlapClient {
1331
1342
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
1332
1343
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1333
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>;
1334
1347
  getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1335
1348
  }
1336
1349
  type DefenderContext = {
@@ -1349,6 +1362,8 @@ type ActionInput = {
1349
1362
  sourceId?: string;
1350
1363
  sourceType?: string;
1351
1364
  sourceValue?: string;
1365
+ isBackground?: boolean;
1366
+ startTime?: Date;
1352
1367
  };
1353
1368
  type ActionResult = {
1354
1369
  actionRunId: string;
@@ -1374,7 +1389,6 @@ type ActionResult = {
1374
1389
  headers?: Record<string, string>;
1375
1390
  body?: unknown;
1376
1391
  defenderContext?: DefenderContext;
1377
- startTime?: Date;
1378
1392
  endTime?: Date;
1379
1393
  };
1380
1394
  type StepInput = {
@@ -1397,6 +1411,71 @@ type StepResult = {
1397
1411
  startTime?: Date;
1398
1412
  endTime?: Date;
1399
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
+ };
1400
1479
  //#endregion
1401
1480
  //#region ../olap/src/advanced/types.d.ts
1402
1481
  type ActionAdvancedLog = {
@@ -1416,6 +1495,23 @@ type StepAdvancedLog = {
1416
1495
  expirationTime?: number;
1417
1496
  };
1418
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
+ };
1419
1515
  //#endregion
1420
1516
  //#region src/cursor/types.d.ts
1421
1517
  type Position = {
package/dist/index.d.mts CHANGED
@@ -1230,6 +1230,7 @@ type ActionLog = ILog & {
1230
1230
  organizationId: string;
1231
1231
  projectSecureId: string;
1232
1232
  accountSecureId: string;
1233
+ actionType?: string;
1233
1234
  mode?: string;
1234
1235
  category?: string;
1235
1236
  originOwnerId?: string;
@@ -1239,6 +1240,7 @@ type ActionLog = ILog & {
1239
1240
  sourceType?: string;
1240
1241
  sourceId?: string;
1241
1242
  sourceValue?: string;
1243
+ isBackground?: boolean;
1242
1244
  success?: boolean;
1243
1245
  statusCode?: number;
1244
1246
  riskLevel?: string;
@@ -1259,11 +1261,11 @@ type StepLog = ILog & {
1259
1261
  type UnifiedLog = ILog & {
1260
1262
  logType: 'unified';
1261
1263
  requestId: string;
1262
- connectorKey: string;
1263
- connectorVersion?: string;
1264
1264
  organizationId: string;
1265
1265
  projectSecureId: string;
1266
1266
  accountSecureId: string;
1267
+ connectorKey: string;
1268
+ connectorVersion?: string;
1267
1269
  mode?: string;
1268
1270
  httpMethod?: string;
1269
1271
  url?: string;
@@ -1276,16 +1278,25 @@ type UnifiedLog = ILog & {
1276
1278
  sourceId?: string;
1277
1279
  sourceType?: string;
1278
1280
  sourceValue?: string;
1281
+ isBackground?: boolean;
1279
1282
  originOwnerId?: string;
1280
1283
  originOwnerName?: string;
1281
- status: number;
1282
- success: boolean;
1284
+ status?: number;
1285
+ success?: boolean;
1283
1286
  isWorker?: boolean;
1287
+ provider?: string;
1288
+ eventDatetime?: Date;
1289
+ duration?: number;
1284
1290
  };
1285
1291
  type ProviderLog = ILog & {
1286
1292
  logType: 'provider';
1287
1293
  requestId: string;
1288
1294
  id?: string;
1295
+ organizationId: string;
1296
+ projectSecureId: string;
1297
+ accountSecureId: string;
1298
+ connectorKey: string;
1299
+ connectorVersion?: string;
1289
1300
  action: string;
1290
1301
  mode?: string;
1291
1302
  httpMethod: string;
@@ -1293,18 +1304,16 @@ type ProviderLog = ILog & {
1293
1304
  originOwnerName?: string;
1294
1305
  url: string;
1295
1306
  path?: string;
1296
- connectorKey: string;
1297
- connectorVersion?: string;
1298
- resource: string;
1307
+ resource?: string;
1299
1308
  subResource?: string;
1300
1309
  childResource?: string;
1301
- service: string;
1302
- success: boolean;
1303
- status: number;
1310
+ service?: string;
1311
+ success?: boolean;
1312
+ status?: number;
1304
1313
  isWorker?: boolean;
1305
- organizationId: string;
1306
- projectSecureId: string;
1307
- accountSecureId: string;
1314
+ provider?: string;
1315
+ eventDatetime?: Date;
1316
+ duration?: number;
1308
1317
  };
1309
1318
  //#endregion
1310
1319
  //#region ../olap/src/types.d.ts
@@ -1319,6 +1328,8 @@ interface IOlapClient {
1319
1328
  input: StepInput;
1320
1329
  result: StepResult;
1321
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>;
1322
1333
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
1323
1334
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1324
1335
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
@@ -1330,6 +1341,8 @@ interface IOlapClient {
1330
1341
  getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
1331
1342
  getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1332
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>;
1333
1346
  getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1334
1347
  }
1335
1348
  type DefenderContext = {
@@ -1348,6 +1361,8 @@ type ActionInput = {
1348
1361
  sourceId?: string;
1349
1362
  sourceType?: string;
1350
1363
  sourceValue?: string;
1364
+ isBackground?: boolean;
1365
+ startTime?: Date;
1351
1366
  };
1352
1367
  type ActionResult = {
1353
1368
  actionRunId: string;
@@ -1373,7 +1388,6 @@ type ActionResult = {
1373
1388
  headers?: Record<string, string>;
1374
1389
  body?: unknown;
1375
1390
  defenderContext?: DefenderContext;
1376
- startTime?: Date;
1377
1391
  endTime?: Date;
1378
1392
  };
1379
1393
  type StepInput = {
@@ -1396,6 +1410,71 @@ type StepResult = {
1396
1410
  startTime?: Date;
1397
1411
  endTime?: Date;
1398
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
+ };
1399
1478
  //#endregion
1400
1479
  //#region ../olap/src/advanced/types.d.ts
1401
1480
  type ActionAdvancedLog = {
@@ -1415,6 +1494,23 @@ type StepAdvancedLog = {
1415
1494
  expirationTime?: number;
1416
1495
  };
1417
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
+ };
1418
1514
  //#endregion
1419
1515
  //#region src/cursor/types.d.ts
1420
1516
  type Position = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "2.38.0",
3
+ "version": "2.39.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",