@stackone/core 2.36.0 → 2.38.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 +141 -12
- package/dist/index.d.mts +141 -12
- 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;
|
|
@@ -1169,14 +1242,11 @@ type ActionLog = {
|
|
|
1169
1242
|
sourceValue?: string;
|
|
1170
1243
|
success?: boolean;
|
|
1171
1244
|
statusCode?: number;
|
|
1172
|
-
startTime?: Date;
|
|
1173
|
-
endTime?: Date;
|
|
1174
|
-
durationMs?: number;
|
|
1175
|
-
eventTime?: Date;
|
|
1176
1245
|
riskLevel?: string;
|
|
1177
1246
|
tier2Score?: number;
|
|
1178
1247
|
};
|
|
1179
|
-
type StepLog = {
|
|
1248
|
+
type StepLog = ILog & {
|
|
1249
|
+
logType: 'step';
|
|
1180
1250
|
actionRunId: string;
|
|
1181
1251
|
stepIndex: number;
|
|
1182
1252
|
stepId: string;
|
|
@@ -1186,20 +1256,79 @@ type StepLog = {
|
|
|
1186
1256
|
skipped?: boolean;
|
|
1187
1257
|
success?: boolean;
|
|
1188
1258
|
message?: string;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1259
|
+
};
|
|
1260
|
+
type UnifiedLog = ILog & {
|
|
1261
|
+
logType: 'unified';
|
|
1262
|
+
requestId: string;
|
|
1263
|
+
connectorKey: string;
|
|
1264
|
+
connectorVersion?: string;
|
|
1265
|
+
organizationId: string;
|
|
1266
|
+
projectSecureId: string;
|
|
1267
|
+
accountSecureId: string;
|
|
1268
|
+
mode?: string;
|
|
1269
|
+
httpMethod?: string;
|
|
1270
|
+
url?: string;
|
|
1271
|
+
path?: string;
|
|
1272
|
+
resource?: string;
|
|
1273
|
+
subResource?: string;
|
|
1274
|
+
childResource?: string;
|
|
1275
|
+
service?: string;
|
|
1276
|
+
action?: string;
|
|
1277
|
+
sourceId?: string;
|
|
1278
|
+
sourceType?: string;
|
|
1279
|
+
sourceValue?: string;
|
|
1280
|
+
originOwnerId?: string;
|
|
1281
|
+
originOwnerName?: string;
|
|
1282
|
+
status: number;
|
|
1283
|
+
success: boolean;
|
|
1284
|
+
isWorker?: boolean;
|
|
1285
|
+
};
|
|
1286
|
+
type ProviderLog = ILog & {
|
|
1287
|
+
logType: 'provider';
|
|
1288
|
+
requestId: string;
|
|
1289
|
+
id?: string;
|
|
1290
|
+
action: string;
|
|
1291
|
+
mode?: string;
|
|
1292
|
+
httpMethod: string;
|
|
1293
|
+
originOwnerId?: string;
|
|
1294
|
+
originOwnerName?: string;
|
|
1295
|
+
url: string;
|
|
1296
|
+
path?: string;
|
|
1297
|
+
connectorKey: string;
|
|
1298
|
+
connectorVersion?: string;
|
|
1299
|
+
resource: string;
|
|
1300
|
+
subResource?: string;
|
|
1301
|
+
childResource?: string;
|
|
1302
|
+
service: string;
|
|
1303
|
+
success: boolean;
|
|
1304
|
+
status: number;
|
|
1305
|
+
isWorker?: boolean;
|
|
1306
|
+
organizationId: string;
|
|
1307
|
+
projectSecureId: string;
|
|
1308
|
+
accountSecureId: string;
|
|
1193
1309
|
};
|
|
1194
1310
|
//#endregion
|
|
1195
1311
|
//#region ../olap/src/types.d.ts
|
|
1196
1312
|
interface IOlapClient {
|
|
1197
|
-
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void
|
|
1198
|
-
|
|
1313
|
+
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
|
|
1314
|
+
recordActions(actions: Array<{
|
|
1315
|
+
input: ActionInput;
|
|
1316
|
+
result: ActionResult;
|
|
1317
|
+
}>, options?: OlapOptions): Promise<void>;
|
|
1318
|
+
recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): Promise<void>;
|
|
1319
|
+
recordSteps(steps: Array<{
|
|
1320
|
+
input: StepInput;
|
|
1321
|
+
result: StepResult;
|
|
1322
|
+
}>, options?: OlapOptions): Promise<void>;
|
|
1323
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
1199
1324
|
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
1200
1325
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
1201
1326
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
1202
1327
|
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
1328
|
+
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
1329
|
+
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
1330
|
+
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
1331
|
+
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
1203
1332
|
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
1204
1333
|
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
1205
1334
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
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;
|
|
@@ -1168,14 +1241,11 @@ type ActionLog = {
|
|
|
1168
1241
|
sourceValue?: string;
|
|
1169
1242
|
success?: boolean;
|
|
1170
1243
|
statusCode?: number;
|
|
1171
|
-
startTime?: Date;
|
|
1172
|
-
endTime?: Date;
|
|
1173
|
-
durationMs?: number;
|
|
1174
|
-
eventTime?: Date;
|
|
1175
1244
|
riskLevel?: string;
|
|
1176
1245
|
tier2Score?: number;
|
|
1177
1246
|
};
|
|
1178
|
-
type StepLog = {
|
|
1247
|
+
type StepLog = ILog & {
|
|
1248
|
+
logType: 'step';
|
|
1179
1249
|
actionRunId: string;
|
|
1180
1250
|
stepIndex: number;
|
|
1181
1251
|
stepId: string;
|
|
@@ -1185,20 +1255,79 @@ type StepLog = {
|
|
|
1185
1255
|
skipped?: boolean;
|
|
1186
1256
|
success?: boolean;
|
|
1187
1257
|
message?: string;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1258
|
+
};
|
|
1259
|
+
type UnifiedLog = ILog & {
|
|
1260
|
+
logType: 'unified';
|
|
1261
|
+
requestId: string;
|
|
1262
|
+
connectorKey: string;
|
|
1263
|
+
connectorVersion?: string;
|
|
1264
|
+
organizationId: string;
|
|
1265
|
+
projectSecureId: string;
|
|
1266
|
+
accountSecureId: string;
|
|
1267
|
+
mode?: string;
|
|
1268
|
+
httpMethod?: string;
|
|
1269
|
+
url?: string;
|
|
1270
|
+
path?: string;
|
|
1271
|
+
resource?: string;
|
|
1272
|
+
subResource?: string;
|
|
1273
|
+
childResource?: string;
|
|
1274
|
+
service?: string;
|
|
1275
|
+
action?: string;
|
|
1276
|
+
sourceId?: string;
|
|
1277
|
+
sourceType?: string;
|
|
1278
|
+
sourceValue?: string;
|
|
1279
|
+
originOwnerId?: string;
|
|
1280
|
+
originOwnerName?: string;
|
|
1281
|
+
status: number;
|
|
1282
|
+
success: boolean;
|
|
1283
|
+
isWorker?: boolean;
|
|
1284
|
+
};
|
|
1285
|
+
type ProviderLog = ILog & {
|
|
1286
|
+
logType: 'provider';
|
|
1287
|
+
requestId: string;
|
|
1288
|
+
id?: string;
|
|
1289
|
+
action: string;
|
|
1290
|
+
mode?: string;
|
|
1291
|
+
httpMethod: string;
|
|
1292
|
+
originOwnerId?: string;
|
|
1293
|
+
originOwnerName?: string;
|
|
1294
|
+
url: string;
|
|
1295
|
+
path?: string;
|
|
1296
|
+
connectorKey: string;
|
|
1297
|
+
connectorVersion?: string;
|
|
1298
|
+
resource: string;
|
|
1299
|
+
subResource?: string;
|
|
1300
|
+
childResource?: string;
|
|
1301
|
+
service: string;
|
|
1302
|
+
success: boolean;
|
|
1303
|
+
status: number;
|
|
1304
|
+
isWorker?: boolean;
|
|
1305
|
+
organizationId: string;
|
|
1306
|
+
projectSecureId: string;
|
|
1307
|
+
accountSecureId: string;
|
|
1192
1308
|
};
|
|
1193
1309
|
//#endregion
|
|
1194
1310
|
//#region ../olap/src/types.d.ts
|
|
1195
1311
|
interface IOlapClient {
|
|
1196
|
-
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void
|
|
1197
|
-
|
|
1312
|
+
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
|
|
1313
|
+
recordActions(actions: Array<{
|
|
1314
|
+
input: ActionInput;
|
|
1315
|
+
result: ActionResult;
|
|
1316
|
+
}>, options?: OlapOptions): Promise<void>;
|
|
1317
|
+
recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): Promise<void>;
|
|
1318
|
+
recordSteps(steps: Array<{
|
|
1319
|
+
input: StepInput;
|
|
1320
|
+
result: StepResult;
|
|
1321
|
+
}>, options?: OlapOptions): Promise<void>;
|
|
1322
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
1198
1323
|
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
1199
1324
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
1200
1325
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
1201
1326
|
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
1327
|
+
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
1328
|
+
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
1329
|
+
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
1330
|
+
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
1202
1331
|
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
1203
1332
|
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
1204
1333
|
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|