@ampsec/platform-client 87.8.4 → 87.10.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/build/src/dto/assets.dto.d.ts +11 -4
- package/build/src/dto/assets.dto.js +3 -0
- package/build/src/dto/assets.dto.js.map +1 -1
- package/build/src/dto/coverage.dto.d.ts +237 -65
- package/build/src/dto/coverage.dto.js +11 -0
- package/build/src/dto/coverage.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +7 -7
- package/build/src/dto/flows.dto.d.ts +105 -0
- package/build/src/dto/flows.dto.js +18 -1
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +5 -5
- package/build/src/dto/platform/platform.flows.dto.d.ts +56 -0
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +67 -24
- package/build/src/dto/saasAssets.dto.d.ts +196 -64
- package/build/src/dto/saasAssets.dto.js +21 -1
- package/build/src/dto/saasAssets.dto.js.map +1 -1
- package/build/src/dto/saasUsers.dto.d.ts +1 -0
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/build/src/dto/users.dto.d.ts +10 -10
- package/package.json +1 -1
- package/src/dto/assets.dto.ts +3 -0
- package/src/dto/coverage.dto.ts +13 -0
- package/src/dto/flows.dto.ts +19 -0
- package/src/dto/saasAssets.dto.ts +20 -0
- package/src/dto/saasUsers.dto.ts +1 -0
|
@@ -63,6 +63,19 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
63
63
|
make: z.ZodOptional<z.ZodString>;
|
|
64
64
|
model: z.ZodOptional<z.ZodString>;
|
|
65
65
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
status: z.ZodNativeEnum<typeof import("../saasAssets.dto").SaasAssetAttributionStatus>;
|
|
68
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof import("../saasAssets.dto").SaasAssetAttributionReason>>;
|
|
69
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
72
|
+
updatedAt?: string | undefined;
|
|
73
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
76
|
+
updatedAt?: string | undefined;
|
|
77
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
78
|
+
}>>;
|
|
66
79
|
}, "strip", z.ZodTypeAny, {
|
|
67
80
|
extId: string;
|
|
68
81
|
assetType: import("..").GlobalAssetType;
|
|
@@ -73,15 +86,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
73
86
|
}[];
|
|
74
87
|
sn?: string | undefined;
|
|
75
88
|
macs?: string[] | undefined;
|
|
76
|
-
make?: string | undefined;
|
|
77
|
-
model?: string | undefined;
|
|
78
|
-
lastActivityTime?: string | undefined;
|
|
79
|
-
active?: boolean | undefined;
|
|
80
89
|
deviceName?: string | undefined;
|
|
90
|
+
lastActivityTime?: string | undefined;
|
|
81
91
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
82
92
|
owner?: {
|
|
83
93
|
email?: string | undefined;
|
|
84
94
|
} | undefined;
|
|
95
|
+
make?: string | undefined;
|
|
96
|
+
model?: string | undefined;
|
|
97
|
+
active?: boolean | undefined;
|
|
98
|
+
attribution?: {
|
|
99
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
100
|
+
updatedAt?: string | undefined;
|
|
101
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
102
|
+
} | undefined;
|
|
85
103
|
}, {
|
|
86
104
|
extId: string;
|
|
87
105
|
assetType: import("..").GlobalAssetType;
|
|
@@ -92,15 +110,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
92
110
|
}[];
|
|
93
111
|
sn?: string | undefined;
|
|
94
112
|
macs?: string[] | undefined;
|
|
95
|
-
make?: string | undefined;
|
|
96
|
-
model?: string | undefined;
|
|
97
|
-
lastActivityTime?: string | undefined;
|
|
98
|
-
active?: boolean | undefined;
|
|
99
113
|
deviceName?: string | undefined;
|
|
114
|
+
lastActivityTime?: string | undefined;
|
|
100
115
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
101
116
|
owner?: {
|
|
102
117
|
email?: string | undefined;
|
|
103
118
|
} | undefined;
|
|
119
|
+
make?: string | undefined;
|
|
120
|
+
model?: string | undefined;
|
|
121
|
+
active?: boolean | undefined;
|
|
122
|
+
attribution?: {
|
|
123
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
124
|
+
updatedAt?: string | undefined;
|
|
125
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
126
|
+
} | undefined;
|
|
104
127
|
}>;
|
|
105
128
|
_raw: z.ZodUnknown;
|
|
106
129
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -114,15 +137,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
114
137
|
}[];
|
|
115
138
|
sn?: string | undefined;
|
|
116
139
|
macs?: string[] | undefined;
|
|
117
|
-
make?: string | undefined;
|
|
118
|
-
model?: string | undefined;
|
|
119
|
-
lastActivityTime?: string | undefined;
|
|
120
|
-
active?: boolean | undefined;
|
|
121
140
|
deviceName?: string | undefined;
|
|
141
|
+
lastActivityTime?: string | undefined;
|
|
122
142
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
123
143
|
owner?: {
|
|
124
144
|
email?: string | undefined;
|
|
125
145
|
} | undefined;
|
|
146
|
+
make?: string | undefined;
|
|
147
|
+
model?: string | undefined;
|
|
148
|
+
active?: boolean | undefined;
|
|
149
|
+
attribution?: {
|
|
150
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
151
|
+
updatedAt?: string | undefined;
|
|
152
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
153
|
+
} | undefined;
|
|
126
154
|
};
|
|
127
155
|
_raw?: unknown;
|
|
128
156
|
}, {
|
|
@@ -136,15 +164,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
136
164
|
}[];
|
|
137
165
|
sn?: string | undefined;
|
|
138
166
|
macs?: string[] | undefined;
|
|
139
|
-
make?: string | undefined;
|
|
140
|
-
model?: string | undefined;
|
|
141
|
-
lastActivityTime?: string | undefined;
|
|
142
|
-
active?: boolean | undefined;
|
|
143
167
|
deviceName?: string | undefined;
|
|
168
|
+
lastActivityTime?: string | undefined;
|
|
144
169
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
145
170
|
owner?: {
|
|
146
171
|
email?: string | undefined;
|
|
147
172
|
} | undefined;
|
|
173
|
+
make?: string | undefined;
|
|
174
|
+
model?: string | undefined;
|
|
175
|
+
active?: boolean | undefined;
|
|
176
|
+
attribution?: {
|
|
177
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
178
|
+
updatedAt?: string | undefined;
|
|
179
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
180
|
+
} | undefined;
|
|
148
181
|
};
|
|
149
182
|
_raw?: unknown;
|
|
150
183
|
}>;
|
|
@@ -172,15 +205,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
172
205
|
}[];
|
|
173
206
|
sn?: string | undefined;
|
|
174
207
|
macs?: string[] | undefined;
|
|
175
|
-
make?: string | undefined;
|
|
176
|
-
model?: string | undefined;
|
|
177
|
-
lastActivityTime?: string | undefined;
|
|
178
|
-
active?: boolean | undefined;
|
|
179
208
|
deviceName?: string | undefined;
|
|
209
|
+
lastActivityTime?: string | undefined;
|
|
180
210
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
181
211
|
owner?: {
|
|
182
212
|
email?: string | undefined;
|
|
183
213
|
} | undefined;
|
|
214
|
+
make?: string | undefined;
|
|
215
|
+
model?: string | undefined;
|
|
216
|
+
active?: boolean | undefined;
|
|
217
|
+
attribution?: {
|
|
218
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
219
|
+
updatedAt?: string | undefined;
|
|
220
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
221
|
+
} | undefined;
|
|
184
222
|
};
|
|
185
223
|
_raw?: unknown;
|
|
186
224
|
};
|
|
@@ -214,15 +252,20 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
214
252
|
}[];
|
|
215
253
|
sn?: string | undefined;
|
|
216
254
|
macs?: string[] | undefined;
|
|
217
|
-
make?: string | undefined;
|
|
218
|
-
model?: string | undefined;
|
|
219
|
-
lastActivityTime?: string | undefined;
|
|
220
|
-
active?: boolean | undefined;
|
|
221
255
|
deviceName?: string | undefined;
|
|
256
|
+
lastActivityTime?: string | undefined;
|
|
222
257
|
activeStatus?: import("../saasAssets.dto").SaasAssetActiveStatus | undefined;
|
|
223
258
|
owner?: {
|
|
224
259
|
email?: string | undefined;
|
|
225
260
|
} | undefined;
|
|
261
|
+
make?: string | undefined;
|
|
262
|
+
model?: string | undefined;
|
|
263
|
+
active?: boolean | undefined;
|
|
264
|
+
attribution?: {
|
|
265
|
+
status: import("../saasAssets.dto").SaasAssetAttributionStatus;
|
|
266
|
+
updatedAt?: string | undefined;
|
|
267
|
+
reason?: import("../saasAssets.dto").SaasAssetAttributionReason | undefined;
|
|
268
|
+
} | undefined;
|
|
226
269
|
};
|
|
227
270
|
_raw?: unknown;
|
|
228
271
|
};
|
|
@@ -5,6 +5,16 @@ export declare enum SaasAssetActiveStatus {
|
|
|
5
5
|
INACTIVE = "INACTIVE",
|
|
6
6
|
ARCHIVED = "ARCHIVED"
|
|
7
7
|
}
|
|
8
|
+
export declare enum SaasAssetAttributionStatus {
|
|
9
|
+
POSITIVE = "POSITIVE",
|
|
10
|
+
NEGATIVE = "NEGATIVE"
|
|
11
|
+
}
|
|
12
|
+
export declare enum SaasAssetAttributionReason {
|
|
13
|
+
CONFLICTING_EVIDENCE = "CONFLICTING_EVIDENCE",
|
|
14
|
+
MISSING_EVIDENCE = "MISSING_EVIDENCE",
|
|
15
|
+
NO_DEVICE = "NO_DEVICE",
|
|
16
|
+
OTHER = "OTHER"
|
|
17
|
+
}
|
|
8
18
|
export declare const _SaasAssetMeta: z.ZodObject<{
|
|
9
19
|
_asset: z.ZodObject<{
|
|
10
20
|
/** Asset ID from provider */
|
|
@@ -48,6 +58,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
48
58
|
model: z.ZodOptional<z.ZodString>;
|
|
49
59
|
/** Asset active status */
|
|
50
60
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
62
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
64
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
65
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
status: SaasAssetAttributionStatus;
|
|
68
|
+
updatedAt?: string | undefined;
|
|
69
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
status: SaasAssetAttributionStatus;
|
|
72
|
+
updatedAt?: string | undefined;
|
|
73
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
74
|
+
}>>;
|
|
51
75
|
}, "strip", z.ZodTypeAny, {
|
|
52
76
|
extId: string;
|
|
53
77
|
assetType: GlobalAssetType;
|
|
@@ -58,15 +82,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
58
82
|
}[];
|
|
59
83
|
sn?: string | undefined;
|
|
60
84
|
macs?: string[] | undefined;
|
|
61
|
-
make?: string | undefined;
|
|
62
|
-
model?: string | undefined;
|
|
63
|
-
lastActivityTime?: string | undefined;
|
|
64
|
-
active?: boolean | undefined;
|
|
65
85
|
deviceName?: string | undefined;
|
|
86
|
+
lastActivityTime?: string | undefined;
|
|
66
87
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
67
88
|
owner?: {
|
|
68
89
|
email?: string | undefined;
|
|
69
90
|
} | undefined;
|
|
91
|
+
make?: string | undefined;
|
|
92
|
+
model?: string | undefined;
|
|
93
|
+
active?: boolean | undefined;
|
|
94
|
+
attribution?: {
|
|
95
|
+
status: SaasAssetAttributionStatus;
|
|
96
|
+
updatedAt?: string | undefined;
|
|
97
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
98
|
+
} | undefined;
|
|
70
99
|
}, {
|
|
71
100
|
extId: string;
|
|
72
101
|
assetType: GlobalAssetType;
|
|
@@ -77,15 +106,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
77
106
|
}[];
|
|
78
107
|
sn?: string | undefined;
|
|
79
108
|
macs?: string[] | undefined;
|
|
80
|
-
make?: string | undefined;
|
|
81
|
-
model?: string | undefined;
|
|
82
|
-
lastActivityTime?: string | undefined;
|
|
83
|
-
active?: boolean | undefined;
|
|
84
109
|
deviceName?: string | undefined;
|
|
110
|
+
lastActivityTime?: string | undefined;
|
|
85
111
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
86
112
|
owner?: {
|
|
87
113
|
email?: string | undefined;
|
|
88
114
|
} | undefined;
|
|
115
|
+
make?: string | undefined;
|
|
116
|
+
model?: string | undefined;
|
|
117
|
+
active?: boolean | undefined;
|
|
118
|
+
attribution?: {
|
|
119
|
+
status: SaasAssetAttributionStatus;
|
|
120
|
+
updatedAt?: string | undefined;
|
|
121
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
122
|
+
} | undefined;
|
|
89
123
|
}>;
|
|
90
124
|
_raw: z.ZodUnknown;
|
|
91
125
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -99,15 +133,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
99
133
|
}[];
|
|
100
134
|
sn?: string | undefined;
|
|
101
135
|
macs?: string[] | undefined;
|
|
102
|
-
make?: string | undefined;
|
|
103
|
-
model?: string | undefined;
|
|
104
|
-
lastActivityTime?: string | undefined;
|
|
105
|
-
active?: boolean | undefined;
|
|
106
136
|
deviceName?: string | undefined;
|
|
137
|
+
lastActivityTime?: string | undefined;
|
|
107
138
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
108
139
|
owner?: {
|
|
109
140
|
email?: string | undefined;
|
|
110
141
|
} | undefined;
|
|
142
|
+
make?: string | undefined;
|
|
143
|
+
model?: string | undefined;
|
|
144
|
+
active?: boolean | undefined;
|
|
145
|
+
attribution?: {
|
|
146
|
+
status: SaasAssetAttributionStatus;
|
|
147
|
+
updatedAt?: string | undefined;
|
|
148
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
149
|
+
} | undefined;
|
|
111
150
|
};
|
|
112
151
|
_raw?: unknown;
|
|
113
152
|
}, {
|
|
@@ -121,15 +160,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
121
160
|
}[];
|
|
122
161
|
sn?: string | undefined;
|
|
123
162
|
macs?: string[] | undefined;
|
|
124
|
-
make?: string | undefined;
|
|
125
|
-
model?: string | undefined;
|
|
126
|
-
lastActivityTime?: string | undefined;
|
|
127
|
-
active?: boolean | undefined;
|
|
128
163
|
deviceName?: string | undefined;
|
|
164
|
+
lastActivityTime?: string | undefined;
|
|
129
165
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
130
166
|
owner?: {
|
|
131
167
|
email?: string | undefined;
|
|
132
168
|
} | undefined;
|
|
169
|
+
make?: string | undefined;
|
|
170
|
+
model?: string | undefined;
|
|
171
|
+
active?: boolean | undefined;
|
|
172
|
+
attribution?: {
|
|
173
|
+
status: SaasAssetAttributionStatus;
|
|
174
|
+
updatedAt?: string | undefined;
|
|
175
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
176
|
+
} | undefined;
|
|
133
177
|
};
|
|
134
178
|
_raw?: unknown;
|
|
135
179
|
}>;
|
|
@@ -215,6 +259,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
215
259
|
model: z.ZodOptional<z.ZodString>;
|
|
216
260
|
/** Asset active status */
|
|
217
261
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
263
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
265
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
266
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
status: SaasAssetAttributionStatus;
|
|
269
|
+
updatedAt?: string | undefined;
|
|
270
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
status: SaasAssetAttributionStatus;
|
|
273
|
+
updatedAt?: string | undefined;
|
|
274
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
275
|
+
}>>;
|
|
218
276
|
}, "strip", z.ZodTypeAny, {
|
|
219
277
|
extId: string;
|
|
220
278
|
assetType: GlobalAssetType;
|
|
@@ -225,15 +283,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
225
283
|
}[];
|
|
226
284
|
sn?: string | undefined;
|
|
227
285
|
macs?: string[] | undefined;
|
|
228
|
-
make?: string | undefined;
|
|
229
|
-
model?: string | undefined;
|
|
230
|
-
lastActivityTime?: string | undefined;
|
|
231
|
-
active?: boolean | undefined;
|
|
232
286
|
deviceName?: string | undefined;
|
|
287
|
+
lastActivityTime?: string | undefined;
|
|
233
288
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
234
289
|
owner?: {
|
|
235
290
|
email?: string | undefined;
|
|
236
291
|
} | undefined;
|
|
292
|
+
make?: string | undefined;
|
|
293
|
+
model?: string | undefined;
|
|
294
|
+
active?: boolean | undefined;
|
|
295
|
+
attribution?: {
|
|
296
|
+
status: SaasAssetAttributionStatus;
|
|
297
|
+
updatedAt?: string | undefined;
|
|
298
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
299
|
+
} | undefined;
|
|
237
300
|
}, {
|
|
238
301
|
extId: string;
|
|
239
302
|
assetType: GlobalAssetType;
|
|
@@ -244,15 +307,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
244
307
|
}[];
|
|
245
308
|
sn?: string | undefined;
|
|
246
309
|
macs?: string[] | undefined;
|
|
247
|
-
make?: string | undefined;
|
|
248
|
-
model?: string | undefined;
|
|
249
|
-
lastActivityTime?: string | undefined;
|
|
250
|
-
active?: boolean | undefined;
|
|
251
310
|
deviceName?: string | undefined;
|
|
311
|
+
lastActivityTime?: string | undefined;
|
|
252
312
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
253
313
|
owner?: {
|
|
254
314
|
email?: string | undefined;
|
|
255
315
|
} | undefined;
|
|
316
|
+
make?: string | undefined;
|
|
317
|
+
model?: string | undefined;
|
|
318
|
+
active?: boolean | undefined;
|
|
319
|
+
attribution?: {
|
|
320
|
+
status: SaasAssetAttributionStatus;
|
|
321
|
+
updatedAt?: string | undefined;
|
|
322
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
323
|
+
} | undefined;
|
|
256
324
|
}>;
|
|
257
325
|
_raw: z.ZodUnknown;
|
|
258
326
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -266,15 +334,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
266
334
|
}[];
|
|
267
335
|
sn?: string | undefined;
|
|
268
336
|
macs?: string[] | undefined;
|
|
269
|
-
make?: string | undefined;
|
|
270
|
-
model?: string | undefined;
|
|
271
|
-
lastActivityTime?: string | undefined;
|
|
272
|
-
active?: boolean | undefined;
|
|
273
337
|
deviceName?: string | undefined;
|
|
338
|
+
lastActivityTime?: string | undefined;
|
|
274
339
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
275
340
|
owner?: {
|
|
276
341
|
email?: string | undefined;
|
|
277
342
|
} | undefined;
|
|
343
|
+
make?: string | undefined;
|
|
344
|
+
model?: string | undefined;
|
|
345
|
+
active?: boolean | undefined;
|
|
346
|
+
attribution?: {
|
|
347
|
+
status: SaasAssetAttributionStatus;
|
|
348
|
+
updatedAt?: string | undefined;
|
|
349
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
350
|
+
} | undefined;
|
|
278
351
|
};
|
|
279
352
|
_raw?: unknown;
|
|
280
353
|
}, {
|
|
@@ -288,15 +361,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
288
361
|
}[];
|
|
289
362
|
sn?: string | undefined;
|
|
290
363
|
macs?: string[] | undefined;
|
|
291
|
-
make?: string | undefined;
|
|
292
|
-
model?: string | undefined;
|
|
293
|
-
lastActivityTime?: string | undefined;
|
|
294
|
-
active?: boolean | undefined;
|
|
295
364
|
deviceName?: string | undefined;
|
|
365
|
+
lastActivityTime?: string | undefined;
|
|
296
366
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
297
367
|
owner?: {
|
|
298
368
|
email?: string | undefined;
|
|
299
369
|
} | undefined;
|
|
370
|
+
make?: string | undefined;
|
|
371
|
+
model?: string | undefined;
|
|
372
|
+
active?: boolean | undefined;
|
|
373
|
+
attribution?: {
|
|
374
|
+
status: SaasAssetAttributionStatus;
|
|
375
|
+
updatedAt?: string | undefined;
|
|
376
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
377
|
+
} | undefined;
|
|
300
378
|
};
|
|
301
379
|
_raw?: unknown;
|
|
302
380
|
}>;
|
|
@@ -322,15 +400,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
322
400
|
}[];
|
|
323
401
|
sn?: string | undefined;
|
|
324
402
|
macs?: string[] | undefined;
|
|
325
|
-
make?: string | undefined;
|
|
326
|
-
model?: string | undefined;
|
|
327
|
-
lastActivityTime?: string | undefined;
|
|
328
|
-
active?: boolean | undefined;
|
|
329
403
|
deviceName?: string | undefined;
|
|
404
|
+
lastActivityTime?: string | undefined;
|
|
330
405
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
331
406
|
owner?: {
|
|
332
407
|
email?: string | undefined;
|
|
333
408
|
} | undefined;
|
|
409
|
+
make?: string | undefined;
|
|
410
|
+
model?: string | undefined;
|
|
411
|
+
active?: boolean | undefined;
|
|
412
|
+
attribution?: {
|
|
413
|
+
status: SaasAssetAttributionStatus;
|
|
414
|
+
updatedAt?: string | undefined;
|
|
415
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
416
|
+
} | undefined;
|
|
334
417
|
};
|
|
335
418
|
_raw?: unknown;
|
|
336
419
|
};
|
|
@@ -363,15 +446,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
363
446
|
}[];
|
|
364
447
|
sn?: string | undefined;
|
|
365
448
|
macs?: string[] | undefined;
|
|
366
|
-
make?: string | undefined;
|
|
367
|
-
model?: string | undefined;
|
|
368
|
-
lastActivityTime?: string | undefined;
|
|
369
|
-
active?: boolean | undefined;
|
|
370
449
|
deviceName?: string | undefined;
|
|
450
|
+
lastActivityTime?: string | undefined;
|
|
371
451
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
372
452
|
owner?: {
|
|
373
453
|
email?: string | undefined;
|
|
374
454
|
} | undefined;
|
|
455
|
+
make?: string | undefined;
|
|
456
|
+
model?: string | undefined;
|
|
457
|
+
active?: boolean | undefined;
|
|
458
|
+
attribution?: {
|
|
459
|
+
status: SaasAssetAttributionStatus;
|
|
460
|
+
updatedAt?: string | undefined;
|
|
461
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
462
|
+
} | undefined;
|
|
375
463
|
};
|
|
376
464
|
_raw?: unknown;
|
|
377
465
|
};
|
|
@@ -465,6 +553,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
465
553
|
model: z.ZodOptional<z.ZodString>;
|
|
466
554
|
/** Asset active status */
|
|
467
555
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
556
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
557
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
559
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
560
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
status: SaasAssetAttributionStatus;
|
|
563
|
+
updatedAt?: string | undefined;
|
|
564
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
565
|
+
}, {
|
|
566
|
+
status: SaasAssetAttributionStatus;
|
|
567
|
+
updatedAt?: string | undefined;
|
|
568
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
569
|
+
}>>;
|
|
468
570
|
}, "strip", z.ZodTypeAny, {
|
|
469
571
|
extId: string;
|
|
470
572
|
assetType: GlobalAssetType;
|
|
@@ -475,15 +577,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
475
577
|
}[];
|
|
476
578
|
sn?: string | undefined;
|
|
477
579
|
macs?: string[] | undefined;
|
|
478
|
-
make?: string | undefined;
|
|
479
|
-
model?: string | undefined;
|
|
480
|
-
lastActivityTime?: string | undefined;
|
|
481
|
-
active?: boolean | undefined;
|
|
482
580
|
deviceName?: string | undefined;
|
|
581
|
+
lastActivityTime?: string | undefined;
|
|
483
582
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
484
583
|
owner?: {
|
|
485
584
|
email?: string | undefined;
|
|
486
585
|
} | undefined;
|
|
586
|
+
make?: string | undefined;
|
|
587
|
+
model?: string | undefined;
|
|
588
|
+
active?: boolean | undefined;
|
|
589
|
+
attribution?: {
|
|
590
|
+
status: SaasAssetAttributionStatus;
|
|
591
|
+
updatedAt?: string | undefined;
|
|
592
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
593
|
+
} | undefined;
|
|
487
594
|
}, {
|
|
488
595
|
extId: string;
|
|
489
596
|
assetType: GlobalAssetType;
|
|
@@ -494,15 +601,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
494
601
|
}[];
|
|
495
602
|
sn?: string | undefined;
|
|
496
603
|
macs?: string[] | undefined;
|
|
497
|
-
make?: string | undefined;
|
|
498
|
-
model?: string | undefined;
|
|
499
|
-
lastActivityTime?: string | undefined;
|
|
500
|
-
active?: boolean | undefined;
|
|
501
604
|
deviceName?: string | undefined;
|
|
605
|
+
lastActivityTime?: string | undefined;
|
|
502
606
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
503
607
|
owner?: {
|
|
504
608
|
email?: string | undefined;
|
|
505
609
|
} | undefined;
|
|
610
|
+
make?: string | undefined;
|
|
611
|
+
model?: string | undefined;
|
|
612
|
+
active?: boolean | undefined;
|
|
613
|
+
attribution?: {
|
|
614
|
+
status: SaasAssetAttributionStatus;
|
|
615
|
+
updatedAt?: string | undefined;
|
|
616
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
617
|
+
} | undefined;
|
|
506
618
|
}>;
|
|
507
619
|
_raw: z.ZodUnknown;
|
|
508
620
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -516,15 +628,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
516
628
|
}[];
|
|
517
629
|
sn?: string | undefined;
|
|
518
630
|
macs?: string[] | undefined;
|
|
519
|
-
make?: string | undefined;
|
|
520
|
-
model?: string | undefined;
|
|
521
|
-
lastActivityTime?: string | undefined;
|
|
522
|
-
active?: boolean | undefined;
|
|
523
631
|
deviceName?: string | undefined;
|
|
632
|
+
lastActivityTime?: string | undefined;
|
|
524
633
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
525
634
|
owner?: {
|
|
526
635
|
email?: string | undefined;
|
|
527
636
|
} | undefined;
|
|
637
|
+
make?: string | undefined;
|
|
638
|
+
model?: string | undefined;
|
|
639
|
+
active?: boolean | undefined;
|
|
640
|
+
attribution?: {
|
|
641
|
+
status: SaasAssetAttributionStatus;
|
|
642
|
+
updatedAt?: string | undefined;
|
|
643
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
644
|
+
} | undefined;
|
|
528
645
|
};
|
|
529
646
|
_raw?: unknown;
|
|
530
647
|
}, {
|
|
@@ -538,15 +655,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
538
655
|
}[];
|
|
539
656
|
sn?: string | undefined;
|
|
540
657
|
macs?: string[] | undefined;
|
|
541
|
-
make?: string | undefined;
|
|
542
|
-
model?: string | undefined;
|
|
543
|
-
lastActivityTime?: string | undefined;
|
|
544
|
-
active?: boolean | undefined;
|
|
545
658
|
deviceName?: string | undefined;
|
|
659
|
+
lastActivityTime?: string | undefined;
|
|
546
660
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
547
661
|
owner?: {
|
|
548
662
|
email?: string | undefined;
|
|
549
663
|
} | undefined;
|
|
664
|
+
make?: string | undefined;
|
|
665
|
+
model?: string | undefined;
|
|
666
|
+
active?: boolean | undefined;
|
|
667
|
+
attribution?: {
|
|
668
|
+
status: SaasAssetAttributionStatus;
|
|
669
|
+
updatedAt?: string | undefined;
|
|
670
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
671
|
+
} | undefined;
|
|
550
672
|
};
|
|
551
673
|
_raw?: unknown;
|
|
552
674
|
}>;
|
|
@@ -583,15 +705,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
583
705
|
}[];
|
|
584
706
|
sn?: string | undefined;
|
|
585
707
|
macs?: string[] | undefined;
|
|
586
|
-
make?: string | undefined;
|
|
587
|
-
model?: string | undefined;
|
|
588
|
-
lastActivityTime?: string | undefined;
|
|
589
|
-
active?: boolean | undefined;
|
|
590
708
|
deviceName?: string | undefined;
|
|
709
|
+
lastActivityTime?: string | undefined;
|
|
591
710
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
592
711
|
owner?: {
|
|
593
712
|
email?: string | undefined;
|
|
594
713
|
} | undefined;
|
|
714
|
+
make?: string | undefined;
|
|
715
|
+
model?: string | undefined;
|
|
716
|
+
active?: boolean | undefined;
|
|
717
|
+
attribution?: {
|
|
718
|
+
status: SaasAssetAttributionStatus;
|
|
719
|
+
updatedAt?: string | undefined;
|
|
720
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
721
|
+
} | undefined;
|
|
595
722
|
};
|
|
596
723
|
_raw?: unknown;
|
|
597
724
|
};
|
|
@@ -624,15 +751,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
624
751
|
}[];
|
|
625
752
|
sn?: string | undefined;
|
|
626
753
|
macs?: string[] | undefined;
|
|
627
|
-
make?: string | undefined;
|
|
628
|
-
model?: string | undefined;
|
|
629
|
-
lastActivityTime?: string | undefined;
|
|
630
|
-
active?: boolean | undefined;
|
|
631
754
|
deviceName?: string | undefined;
|
|
755
|
+
lastActivityTime?: string | undefined;
|
|
632
756
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
633
757
|
owner?: {
|
|
634
758
|
email?: string | undefined;
|
|
635
759
|
} | undefined;
|
|
760
|
+
make?: string | undefined;
|
|
761
|
+
model?: string | undefined;
|
|
762
|
+
active?: boolean | undefined;
|
|
763
|
+
attribution?: {
|
|
764
|
+
status: SaasAssetAttributionStatus;
|
|
765
|
+
updatedAt?: string | undefined;
|
|
766
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
767
|
+
} | undefined;
|
|
636
768
|
};
|
|
637
769
|
_raw?: unknown;
|
|
638
770
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._SaasAssetDto = exports._SaasAssetUpsertDto = exports._SaasAssetMeta = exports.SaasAssetActiveStatus = void 0;
|
|
3
|
+
exports._SaasAssetDto = exports._SaasAssetUpsertDto = exports._SaasAssetMeta = exports.SaasAssetAttributionReason = exports.SaasAssetAttributionStatus = exports.SaasAssetActiveStatus = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assetKeys_1 = require("./assetKeys");
|
|
6
6
|
const base_dto_1 = require("./base.dto");
|
|
@@ -11,6 +11,18 @@ var SaasAssetActiveStatus;
|
|
|
11
11
|
SaasAssetActiveStatus["INACTIVE"] = "INACTIVE";
|
|
12
12
|
SaasAssetActiveStatus["ARCHIVED"] = "ARCHIVED";
|
|
13
13
|
})(SaasAssetActiveStatus || (exports.SaasAssetActiveStatus = SaasAssetActiveStatus = {}));
|
|
14
|
+
var SaasAssetAttributionStatus;
|
|
15
|
+
(function (SaasAssetAttributionStatus) {
|
|
16
|
+
SaasAssetAttributionStatus["POSITIVE"] = "POSITIVE";
|
|
17
|
+
SaasAssetAttributionStatus["NEGATIVE"] = "NEGATIVE";
|
|
18
|
+
})(SaasAssetAttributionStatus || (exports.SaasAssetAttributionStatus = SaasAssetAttributionStatus = {}));
|
|
19
|
+
var SaasAssetAttributionReason;
|
|
20
|
+
(function (SaasAssetAttributionReason) {
|
|
21
|
+
SaasAssetAttributionReason["CONFLICTING_EVIDENCE"] = "CONFLICTING_EVIDENCE";
|
|
22
|
+
SaasAssetAttributionReason["MISSING_EVIDENCE"] = "MISSING_EVIDENCE";
|
|
23
|
+
SaasAssetAttributionReason["NO_DEVICE"] = "NO_DEVICE";
|
|
24
|
+
SaasAssetAttributionReason["OTHER"] = "OTHER";
|
|
25
|
+
})(SaasAssetAttributionReason || (exports.SaasAssetAttributionReason = SaasAssetAttributionReason = {}));
|
|
14
26
|
exports._SaasAssetMeta = zod_1.z.object({
|
|
15
27
|
_asset: zod_1.z.object({
|
|
16
28
|
/** Asset ID from provider */
|
|
@@ -50,6 +62,14 @@ exports._SaasAssetMeta = zod_1.z.object({
|
|
|
50
62
|
model: zod_1.z.string().optional(),
|
|
51
63
|
/** Asset active status */
|
|
52
64
|
active: zod_1.z.boolean().optional(),
|
|
65
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
66
|
+
attribution: zod_1.z
|
|
67
|
+
.object({
|
|
68
|
+
status: zod_1.z.nativeEnum(SaasAssetAttributionStatus),
|
|
69
|
+
reason: zod_1.z.nativeEnum(SaasAssetAttributionReason).optional(),
|
|
70
|
+
updatedAt: zod_1.z.string().optional(),
|
|
71
|
+
})
|
|
72
|
+
.optional(),
|
|
53
73
|
}),
|
|
54
74
|
_raw: zod_1.z.unknown(),
|
|
55
75
|
});
|