@stackone/core 2.35.0 → 2.35.1
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 +67 -4
- package/dist/index.d.mts +67 -4
- package/package.json +1 -1
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
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
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;
|
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
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
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;
|