@stackone/core 2.35.0 → 2.36.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
@@ -1102,6 +1102,13 @@ type DefenderOptions = {
1102
1102
  enabled?: boolean;
1103
1103
  };
1104
1104
  //#endregion
1105
+ //#region ../olap/src/defender/types.d.ts
1106
+ type DefenderLog = {
1107
+ riskLevel: string;
1108
+ tier2Score: number;
1109
+ [key: string]: unknown;
1110
+ };
1111
+ //#endregion
1105
1112
  //#region ../olap/src/logs/types.d.ts
1106
1113
  type ActionsQuery = {
1107
1114
  organizationId?: string | string[];
@@ -1124,6 +1131,25 @@ type ActionsQueryResult = {
1124
1131
  pageNumber: number;
1125
1132
  pageSize: number;
1126
1133
  };
1134
+ type StepsQuery = {
1135
+ organizationId?: string | string[];
1136
+ projectSecureId?: string | string[];
1137
+ accountSecureId?: string | string[];
1138
+ actionRunId?: string | string[];
1139
+ stepId?: string | string[];
1140
+ stepIndex?: number | number[];
1141
+ success?: boolean;
1142
+ startTime?: Date;
1143
+ endTime?: Date;
1144
+ pageNumber?: number;
1145
+ pageSize?: number;
1146
+ };
1147
+ type StepsQueryResult = {
1148
+ stepLogs: StepLog[];
1149
+ total: number;
1150
+ pageNumber: number;
1151
+ pageSize: number;
1152
+ };
1127
1153
  type ActionLog = {
1128
1154
  actionRunId: string;
1129
1155
  actionId: string;
@@ -1150,15 +1176,33 @@ type ActionLog = {
1150
1176
  riskLevel?: string;
1151
1177
  tier2Score?: number;
1152
1178
  };
1179
+ type StepLog = {
1180
+ actionRunId: string;
1181
+ stepIndex: number;
1182
+ stepId: string;
1183
+ organizationId: string;
1184
+ projectSecureId: string;
1185
+ accountSecureId: string;
1186
+ skipped?: boolean;
1187
+ success?: boolean;
1188
+ message?: string;
1189
+ startTime?: Date;
1190
+ endTime?: Date;
1191
+ durationMs?: number;
1192
+ eventTime?: Date;
1193
+ };
1153
1194
  //#endregion
1154
1195
  //#region ../olap/src/types.d.ts
1155
1196
  interface IOlapClient {
1156
1197
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
1157
1198
  recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
1158
- getActions(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1159
- getAction(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1160
- getAdvanced(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
1161
- getDefender(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
1199
+ getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1200
+ getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1201
+ getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
1202
+ getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
1203
+ getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1204
+ getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
1205
+ getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1162
1206
  }
1163
1207
  type DefenderContext = {
1164
1208
  riskLevel: string;
@@ -1225,6 +1269,25 @@ type StepResult = {
1225
1269
  endTime?: Date;
1226
1270
  };
1227
1271
  //#endregion
1272
+ //#region ../olap/src/advanced/types.d.ts
1273
+ type ActionAdvancedLog = {
1274
+ data: {
1275
+ [key: string]: unknown;
1276
+ };
1277
+ metadata?: {
1278
+ isBackgroundLog?: boolean;
1279
+ expirationTime?: number;
1280
+ };
1281
+ };
1282
+ type StepAdvancedLog = {
1283
+ data: {
1284
+ [key: string]: unknown;
1285
+ };
1286
+ metadata?: {
1287
+ expirationTime?: number;
1288
+ };
1289
+ };
1290
+ //#endregion
1228
1291
  //#region src/cursor/types.d.ts
1229
1292
  type Position = {
1230
1293
  pageNumber?: number | null;
@@ -1263,7 +1326,6 @@ type DefenderSettings = {
1263
1326
  largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
1264
1327
  maxResponseSize?: number;
1265
1328
  maxResponseWords?: number;
1266
- useDefaultToolRules?: boolean;
1267
1329
  tier2Fields?: string[];
1268
1330
  };
1269
1331
  //#endregion
@@ -1650,6 +1712,8 @@ type AuthenticationField = {
1650
1712
  description?: string;
1651
1713
  tooltip?: string;
1652
1714
  externalSystemAccountIdentifier?: boolean;
1715
+ value?: string;
1716
+ computed?: boolean;
1653
1717
  };
1654
1718
  type SupportConfig = {
1655
1719
  link?: string;
package/dist/index.d.mts CHANGED
@@ -1101,6 +1101,13 @@ type DefenderOptions = {
1101
1101
  enabled?: boolean;
1102
1102
  };
1103
1103
  //#endregion
1104
+ //#region ../olap/src/defender/types.d.ts
1105
+ type DefenderLog = {
1106
+ riskLevel: string;
1107
+ tier2Score: number;
1108
+ [key: string]: unknown;
1109
+ };
1110
+ //#endregion
1104
1111
  //#region ../olap/src/logs/types.d.ts
1105
1112
  type ActionsQuery = {
1106
1113
  organizationId?: string | string[];
@@ -1123,6 +1130,25 @@ type ActionsQueryResult = {
1123
1130
  pageNumber: number;
1124
1131
  pageSize: number;
1125
1132
  };
1133
+ type StepsQuery = {
1134
+ organizationId?: string | string[];
1135
+ projectSecureId?: string | string[];
1136
+ accountSecureId?: string | string[];
1137
+ actionRunId?: string | string[];
1138
+ stepId?: string | string[];
1139
+ stepIndex?: number | number[];
1140
+ success?: boolean;
1141
+ startTime?: Date;
1142
+ endTime?: Date;
1143
+ pageNumber?: number;
1144
+ pageSize?: number;
1145
+ };
1146
+ type StepsQueryResult = {
1147
+ stepLogs: StepLog[];
1148
+ total: number;
1149
+ pageNumber: number;
1150
+ pageSize: number;
1151
+ };
1126
1152
  type ActionLog = {
1127
1153
  actionRunId: string;
1128
1154
  actionId: string;
@@ -1149,15 +1175,33 @@ type ActionLog = {
1149
1175
  riskLevel?: string;
1150
1176
  tier2Score?: number;
1151
1177
  };
1178
+ type StepLog = {
1179
+ actionRunId: string;
1180
+ stepIndex: number;
1181
+ stepId: string;
1182
+ organizationId: string;
1183
+ projectSecureId: string;
1184
+ accountSecureId: string;
1185
+ skipped?: boolean;
1186
+ success?: boolean;
1187
+ message?: string;
1188
+ startTime?: Date;
1189
+ endTime?: Date;
1190
+ durationMs?: number;
1191
+ eventTime?: Date;
1192
+ };
1152
1193
  //#endregion
1153
1194
  //#region ../olap/src/types.d.ts
1154
1195
  interface IOlapClient {
1155
1196
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
1156
1197
  recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
1157
- getActions(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1158
- getAction(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1159
- getAdvanced(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
1160
- getDefender(organizationId: string, projectSecureId: string, actionRunId: string): Promise<string | undefined>;
1198
+ getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1199
+ getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1200
+ getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
1201
+ getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
1202
+ getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
1203
+ getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
1204
+ getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
1161
1205
  }
1162
1206
  type DefenderContext = {
1163
1207
  riskLevel: string;
@@ -1224,6 +1268,25 @@ type StepResult = {
1224
1268
  endTime?: Date;
1225
1269
  };
1226
1270
  //#endregion
1271
+ //#region ../olap/src/advanced/types.d.ts
1272
+ type ActionAdvancedLog = {
1273
+ data: {
1274
+ [key: string]: unknown;
1275
+ };
1276
+ metadata?: {
1277
+ isBackgroundLog?: boolean;
1278
+ expirationTime?: number;
1279
+ };
1280
+ };
1281
+ type StepAdvancedLog = {
1282
+ data: {
1283
+ [key: string]: unknown;
1284
+ };
1285
+ metadata?: {
1286
+ expirationTime?: number;
1287
+ };
1288
+ };
1289
+ //#endregion
1227
1290
  //#region src/cursor/types.d.ts
1228
1291
  type Position = {
1229
1292
  pageNumber?: number | null;
@@ -1262,7 +1325,6 @@ type DefenderSettings = {
1262
1325
  largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
1263
1326
  maxResponseSize?: number;
1264
1327
  maxResponseWords?: number;
1265
- useDefaultToolRules?: boolean;
1266
1328
  tier2Fields?: string[];
1267
1329
  };
1268
1330
  //#endregion
@@ -1649,6 +1711,8 @@ type AuthenticationField = {
1649
1711
  description?: string;
1650
1712
  tooltip?: string;
1651
1713
  externalSystemAccountIdentifier?: boolean;
1714
+ value?: string;
1715
+ computed?: boolean;
1652
1716
  };
1653
1717
  type SupportConfig = {
1654
1718
  link?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "2.35.0",
3
+ "version": "2.36.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",