@stackone/connect-sdk 2.44.1 → 2.44.2

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
@@ -337,6 +337,13 @@ type DefenderOptions = {
337
337
  enabled?: boolean;
338
338
  };
339
339
  //#endregion
340
+ //#region ../olap/src/defender/types.d.ts
341
+ type DefenderLog = {
342
+ riskLevel: string;
343
+ tier2Score: number;
344
+ [key: string]: unknown;
345
+ };
346
+ //#endregion
340
347
  //#region ../olap/src/logs/types.d.ts
341
348
  type ActionsQuery = {
342
349
  organizationId?: string | string[];
@@ -359,6 +366,25 @@ type ActionsQueryResult = {
359
366
  pageNumber: number;
360
367
  pageSize: number;
361
368
  };
369
+ type StepsQuery = {
370
+ organizationId?: string | string[];
371
+ projectSecureId?: string | string[];
372
+ accountSecureId?: string | string[];
373
+ actionRunId?: string | string[];
374
+ stepId?: string | string[];
375
+ stepIndex?: number | number[];
376
+ success?: boolean;
377
+ startTime?: Date;
378
+ endTime?: Date;
379
+ pageNumber?: number;
380
+ pageSize?: number;
381
+ };
382
+ type StepsQueryResult = {
383
+ stepLogs: StepLog[];
384
+ total: number;
385
+ pageNumber: number;
386
+ pageSize: number;
387
+ };
362
388
  type ActionLog = {
363
389
  actionRunId: string;
364
390
  actionId: string;
@@ -385,15 +411,33 @@ type ActionLog = {
385
411
  riskLevel?: string;
386
412
  tier2Score?: number;
387
413
  };
414
+ type StepLog = {
415
+ actionRunId: string;
416
+ stepIndex: number;
417
+ stepId: string;
418
+ organizationId: string;
419
+ projectSecureId: string;
420
+ accountSecureId: string;
421
+ skipped?: boolean;
422
+ success?: boolean;
423
+ message?: string;
424
+ startTime?: Date;
425
+ endTime?: Date;
426
+ durationMs?: number;
427
+ eventTime?: Date;
428
+ };
388
429
  //#endregion
389
430
  //#region ../olap/src/types.d.ts
390
431
  interface IOlapClient {
391
432
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
392
433
  recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
393
- getActions(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
394
- getAction(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
395
- getAdvanced(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
396
- getDefender(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
434
+ getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
435
+ getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
436
+ getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
437
+ getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
438
+ getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
439
+ getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
440
+ getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
397
441
  }
398
442
  type DefenderContext = {
399
443
  riskLevel: string;
@@ -460,6 +504,25 @@ type StepResult = {
460
504
  endTime?: Date;
461
505
  };
462
506
  //#endregion
507
+ //#region ../olap/src/advanced/types.d.ts
508
+ type ActionAdvancedLog = {
509
+ data: {
510
+ [key: string]: unknown;
511
+ };
512
+ metadata?: {
513
+ isBackgroundLog?: boolean;
514
+ expirationTime?: number;
515
+ };
516
+ };
517
+ type StepAdvancedLog = {
518
+ data: {
519
+ [key: string]: unknown;
520
+ };
521
+ metadata?: {
522
+ expirationTime?: number;
523
+ };
524
+ };
525
+ //#endregion
463
526
  //#region ../core/src/cursor/types.d.ts
464
527
  type Position = {
465
528
  pageNumber?: number | null;
package/dist/index.d.mts CHANGED
@@ -337,6 +337,13 @@ type DefenderOptions = {
337
337
  enabled?: boolean;
338
338
  };
339
339
  //#endregion
340
+ //#region ../olap/src/defender/types.d.ts
341
+ type DefenderLog = {
342
+ riskLevel: string;
343
+ tier2Score: number;
344
+ [key: string]: unknown;
345
+ };
346
+ //#endregion
340
347
  //#region ../olap/src/logs/types.d.ts
341
348
  type ActionsQuery = {
342
349
  organizationId?: string | string[];
@@ -359,6 +366,25 @@ type ActionsQueryResult = {
359
366
  pageNumber: number;
360
367
  pageSize: number;
361
368
  };
369
+ type StepsQuery = {
370
+ organizationId?: string | string[];
371
+ projectSecureId?: string | string[];
372
+ accountSecureId?: string | string[];
373
+ actionRunId?: string | string[];
374
+ stepId?: string | string[];
375
+ stepIndex?: number | number[];
376
+ success?: boolean;
377
+ startTime?: Date;
378
+ endTime?: Date;
379
+ pageNumber?: number;
380
+ pageSize?: number;
381
+ };
382
+ type StepsQueryResult = {
383
+ stepLogs: StepLog[];
384
+ total: number;
385
+ pageNumber: number;
386
+ pageSize: number;
387
+ };
362
388
  type ActionLog = {
363
389
  actionRunId: string;
364
390
  actionId: string;
@@ -385,15 +411,33 @@ type ActionLog = {
385
411
  riskLevel?: string;
386
412
  tier2Score?: number;
387
413
  };
414
+ type StepLog = {
415
+ actionRunId: string;
416
+ stepIndex: number;
417
+ stepId: string;
418
+ organizationId: string;
419
+ projectSecureId: string;
420
+ accountSecureId: string;
421
+ skipped?: boolean;
422
+ success?: boolean;
423
+ message?: string;
424
+ startTime?: Date;
425
+ endTime?: Date;
426
+ durationMs?: number;
427
+ eventTime?: Date;
428
+ };
388
429
  //#endregion
389
430
  //#region ../olap/src/types.d.ts
390
431
  interface IOlapClient {
391
432
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
392
433
  recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
393
- getActions(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
394
- getAction(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
395
- getAdvanced(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
396
- getDefender(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
434
+ getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
435
+ getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
436
+ getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
437
+ getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
438
+ getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
439
+ getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
440
+ getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
397
441
  }
398
442
  type DefenderContext = {
399
443
  riskLevel: string;
@@ -460,6 +504,25 @@ type StepResult = {
460
504
  endTime?: Date;
461
505
  };
462
506
  //#endregion
507
+ //#region ../olap/src/advanced/types.d.ts
508
+ type ActionAdvancedLog = {
509
+ data: {
510
+ [key: string]: unknown;
511
+ };
512
+ metadata?: {
513
+ isBackgroundLog?: boolean;
514
+ expirationTime?: number;
515
+ };
516
+ };
517
+ type StepAdvancedLog = {
518
+ data: {
519
+ [key: string]: unknown;
520
+ };
521
+ metadata?: {
522
+ expirationTime?: number;
523
+ };
524
+ };
525
+ //#endregion
463
526
  //#region ../core/src/cursor/types.d.ts
464
527
  type Position = {
465
528
  pageNumber?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/connect-sdk",
3
- "version": "2.44.1",
3
+ "version": "2.44.2",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",