@driftgate/contracts 0.1.0-rc.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/COMPATIBILITY_POLICY.md +36 -0
- package/dist/index.d.ts +6767 -0
- package/dist/index.js +1255 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
- package/src/index.ts +1408 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1255 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var CONTRACT_VERSION = "1.9.0";
|
|
4
|
+
var AuthSessionSchema = z.object({
|
|
5
|
+
sessionId: z.string(),
|
|
6
|
+
userId: z.string(),
|
|
7
|
+
tenantId: z.string(),
|
|
8
|
+
workspaceIds: z.array(z.string()),
|
|
9
|
+
roles: z.array(z.string()),
|
|
10
|
+
idpProvider: z.enum(["google", "github", "email", "saml"]),
|
|
11
|
+
mfaStatus: z.enum(["required", "passed", "not-required"])
|
|
12
|
+
});
|
|
13
|
+
var WorkspaceRoleBindingSchema = z.object({
|
|
14
|
+
workspaceId: z.string(),
|
|
15
|
+
userId: z.string(),
|
|
16
|
+
role: z.enum(["owner", "admin", "editor", "viewer", "approver", "billing-admin"]),
|
|
17
|
+
grantedAt: z.string().datetime(),
|
|
18
|
+
grantedBy: z.string()
|
|
19
|
+
});
|
|
20
|
+
var WorkflowVersionSchema = z.object({
|
|
21
|
+
workflowId: z.string(),
|
|
22
|
+
versionId: z.string(),
|
|
23
|
+
versionNumber: z.number().int().positive(),
|
|
24
|
+
state: z.enum(["draft", "published", "archived"]),
|
|
25
|
+
checksum: z.string(),
|
|
26
|
+
sourceType: z.enum(["ui_graph", "workflow_yaml", "api_plan"]).optional(),
|
|
27
|
+
compiledPlanJson: z.record(z.unknown()).optional(),
|
|
28
|
+
createdAt: z.string().datetime(),
|
|
29
|
+
publishedAt: z.string().datetime().optional()
|
|
30
|
+
});
|
|
31
|
+
var WorkflowBuilderNodeSchema = z.object({
|
|
32
|
+
id: z.string().min(1),
|
|
33
|
+
type: z.string().min(1).optional(),
|
|
34
|
+
position: z.object({
|
|
35
|
+
x: z.number(),
|
|
36
|
+
y: z.number()
|
|
37
|
+
}),
|
|
38
|
+
data: z.record(z.unknown())
|
|
39
|
+
});
|
|
40
|
+
var WorkflowBuilderEdgeSchema = z.object({
|
|
41
|
+
id: z.string().min(1),
|
|
42
|
+
source: z.string().min(1),
|
|
43
|
+
target: z.string().min(1),
|
|
44
|
+
type: z.string().min(1).optional(),
|
|
45
|
+
label: z.string().optional(),
|
|
46
|
+
data: z.record(z.unknown()).optional()
|
|
47
|
+
});
|
|
48
|
+
var WorkflowBuilderViewportSchema = z.object({
|
|
49
|
+
x: z.number(),
|
|
50
|
+
y: z.number(),
|
|
51
|
+
zoom: z.number().positive()
|
|
52
|
+
});
|
|
53
|
+
var WorkflowBuilderDocumentSchema = z.object({
|
|
54
|
+
workflowId: z.string(),
|
|
55
|
+
version: z.number().int().nonnegative(),
|
|
56
|
+
nodes: z.array(WorkflowBuilderNodeSchema),
|
|
57
|
+
edges: z.array(WorkflowBuilderEdgeSchema),
|
|
58
|
+
viewport: WorkflowBuilderViewportSchema,
|
|
59
|
+
updatedAt: z.string().datetime()
|
|
60
|
+
});
|
|
61
|
+
var RunStateSchema = z.enum([
|
|
62
|
+
"queued",
|
|
63
|
+
"running",
|
|
64
|
+
"waiting_approval",
|
|
65
|
+
"approved",
|
|
66
|
+
"denied",
|
|
67
|
+
"succeeded",
|
|
68
|
+
"failed",
|
|
69
|
+
"aborted",
|
|
70
|
+
"timed_out",
|
|
71
|
+
"canceled"
|
|
72
|
+
]);
|
|
73
|
+
var RunTriggerSourceSchema = z.enum(["ui", "api", "sdk", "cli", "hosted", "webhook"]);
|
|
74
|
+
var GovernedRunRequestSchema = z.object({
|
|
75
|
+
workspaceId: z.string().min(1),
|
|
76
|
+
workflowVersionId: z.string().min(1),
|
|
77
|
+
requiresApproval: z.boolean().default(false),
|
|
78
|
+
requiredRole: z.string().min(1).optional(),
|
|
79
|
+
slaPolicyId: z.string().min(1).optional(),
|
|
80
|
+
idempotencyKey: z.string().min(1).max(200).optional(),
|
|
81
|
+
correlationId: z.string().min(1).max(200).optional(),
|
|
82
|
+
triggerSource: RunTriggerSourceSchema.default("api")
|
|
83
|
+
});
|
|
84
|
+
var HeadlessRunRequestSchema = GovernedRunRequestSchema.extend({
|
|
85
|
+
input: z.record(z.unknown()).optional()
|
|
86
|
+
});
|
|
87
|
+
var StructuredErrorEnvelopeSchema = z.object({
|
|
88
|
+
code: z.string(),
|
|
89
|
+
message: z.string(),
|
|
90
|
+
correlation_id: z.string().optional(),
|
|
91
|
+
details: z.unknown().optional()
|
|
92
|
+
});
|
|
93
|
+
var CanonicalPolicyRefSchema = z.object({
|
|
94
|
+
ref: z.string().min(1),
|
|
95
|
+
version: z.string().min(1)
|
|
96
|
+
});
|
|
97
|
+
var CanonicalRouteRefSchema = z.object({
|
|
98
|
+
provider: z.string().min(1).optional(),
|
|
99
|
+
model: z.string().min(1).optional(),
|
|
100
|
+
region: z.string().min(1).optional()
|
|
101
|
+
});
|
|
102
|
+
var CanonicalRiskMetaSchema = z.object({
|
|
103
|
+
score: z.number().optional(),
|
|
104
|
+
decision: z.enum(["allow", "deny", "review"]).optional()
|
|
105
|
+
});
|
|
106
|
+
var CanonicalTimingMsSchema = z.object({
|
|
107
|
+
total: z.number().nonnegative(),
|
|
108
|
+
policy: z.number().nonnegative().optional(),
|
|
109
|
+
route: z.number().nonnegative().optional(),
|
|
110
|
+
tool: z.number().nonnegative().optional()
|
|
111
|
+
});
|
|
112
|
+
var CanonicalResponseMetaSchema = z.object({
|
|
113
|
+
requestId: z.string().min(1),
|
|
114
|
+
sessionId: z.string().min(1).optional(),
|
|
115
|
+
executionId: z.string().min(1).optional(),
|
|
116
|
+
lineageId: z.string().min(1).optional(),
|
|
117
|
+
policy: CanonicalPolicyRefSchema.optional(),
|
|
118
|
+
route: CanonicalRouteRefSchema.optional(),
|
|
119
|
+
risk: CanonicalRiskMetaSchema.optional(),
|
|
120
|
+
timingMs: CanonicalTimingMsSchema
|
|
121
|
+
});
|
|
122
|
+
var CanonicalErrorCodeSchema = z.enum([
|
|
123
|
+
"AUTH_INVALID",
|
|
124
|
+
"POLICY_DENIED",
|
|
125
|
+
"RISK_EXCEEDED",
|
|
126
|
+
"ROUTE_UNAVAILABLE",
|
|
127
|
+
"TOOL_BLOCKED",
|
|
128
|
+
"RATE_LIMITED",
|
|
129
|
+
"TIMEOUT",
|
|
130
|
+
"INTERNAL",
|
|
131
|
+
"INVALID_REQUEST"
|
|
132
|
+
]);
|
|
133
|
+
var CanonicalErrorSchema = z.object({
|
|
134
|
+
code: CanonicalErrorCodeSchema,
|
|
135
|
+
message: z.string().min(1),
|
|
136
|
+
status: z.number().int().min(100).max(599),
|
|
137
|
+
retryable: z.boolean(),
|
|
138
|
+
details: z.record(z.unknown()).optional()
|
|
139
|
+
});
|
|
140
|
+
var CanonicalResponseEnvelopeSchema = (dataSchema) => z.object({
|
|
141
|
+
ok: z.boolean(),
|
|
142
|
+
data: dataSchema.nullable(),
|
|
143
|
+
meta: CanonicalResponseMetaSchema,
|
|
144
|
+
error: CanonicalErrorSchema.nullable()
|
|
145
|
+
});
|
|
146
|
+
var V4SessionStartRequestSchema = z.object({
|
|
147
|
+
workspaceId: z.string().min(1).optional(),
|
|
148
|
+
agent: z.string().min(1),
|
|
149
|
+
subject: z.string().min(1).optional(),
|
|
150
|
+
metadata: z.record(z.unknown()).optional(),
|
|
151
|
+
policy: CanonicalPolicyRefSchema.optional(),
|
|
152
|
+
route: CanonicalRouteRefSchema.optional(),
|
|
153
|
+
risk: CanonicalRiskMetaSchema.optional(),
|
|
154
|
+
workflowVersionId: z.string().min(1).optional(),
|
|
155
|
+
expiresAt: z.string().datetime().optional()
|
|
156
|
+
});
|
|
157
|
+
var V4SessionResourceSchema = z.object({
|
|
158
|
+
sessionId: z.string().min(1),
|
|
159
|
+
workspaceId: z.string().min(1),
|
|
160
|
+
agent: z.string().min(1),
|
|
161
|
+
subject: z.string().min(1).optional(),
|
|
162
|
+
metadata: z.record(z.unknown()).optional(),
|
|
163
|
+
policy: CanonicalPolicyRefSchema.optional(),
|
|
164
|
+
route: CanonicalRouteRefSchema.optional(),
|
|
165
|
+
risk: CanonicalRiskMetaSchema.optional(),
|
|
166
|
+
workflowVersionId: z.string().min(1).optional(),
|
|
167
|
+
createdAt: z.string().datetime(),
|
|
168
|
+
expiresAt: z.string().datetime().optional()
|
|
169
|
+
});
|
|
170
|
+
var V4ExecutionRequestSchema = z.object({
|
|
171
|
+
input: z.record(z.unknown()),
|
|
172
|
+
policy: CanonicalPolicyRefSchema.optional(),
|
|
173
|
+
route: CanonicalRouteRefSchema.optional(),
|
|
174
|
+
risk: CanonicalRiskMetaSchema.optional(),
|
|
175
|
+
workflowVersionId: z.string().min(1).optional()
|
|
176
|
+
});
|
|
177
|
+
var V4ExecutionResultSchema = z.object({
|
|
178
|
+
run: z.record(z.unknown()),
|
|
179
|
+
approval: z.record(z.unknown()).nullable().optional(),
|
|
180
|
+
blocked: z.boolean(),
|
|
181
|
+
policyDecisions: z.array(z.record(z.unknown())).default([]),
|
|
182
|
+
entitlementDecision: z.record(z.unknown()),
|
|
183
|
+
usageEntry: z.record(z.unknown()),
|
|
184
|
+
boundaryDecision: z.record(z.unknown()).nullable().optional(),
|
|
185
|
+
firewallDecision: z.record(z.unknown()).nullable().optional()
|
|
186
|
+
});
|
|
187
|
+
var V4EphemeralExecuteRequestSchema = V4SessionStartRequestSchema.omit({
|
|
188
|
+
expiresAt: true
|
|
189
|
+
}).extend({
|
|
190
|
+
input: z.record(z.unknown())
|
|
191
|
+
});
|
|
192
|
+
var RunStateTransitionSchema = z.object({
|
|
193
|
+
runId: z.string(),
|
|
194
|
+
from: RunStateSchema,
|
|
195
|
+
to: RunStateSchema,
|
|
196
|
+
occurredAt: z.string().datetime(),
|
|
197
|
+
actor: z.string().optional(),
|
|
198
|
+
reason: z.string().optional()
|
|
199
|
+
});
|
|
200
|
+
var PolicyDecisionSchema = z.object({
|
|
201
|
+
mode: z.enum(["monitor", "enforce"]),
|
|
202
|
+
decision: z.enum(["allow", "deny"]),
|
|
203
|
+
policyId: z.string(),
|
|
204
|
+
ruleId: z.string(),
|
|
205
|
+
reasonCode: z.string(),
|
|
206
|
+
reasonText: z.string(),
|
|
207
|
+
correlationId: z.string(),
|
|
208
|
+
trace: z.record(z.unknown())
|
|
209
|
+
});
|
|
210
|
+
var PolicyExitGateEvidenceSchema = z.object({
|
|
211
|
+
runId: z.string(),
|
|
212
|
+
runState: RunStateSchema,
|
|
213
|
+
blocked: z.boolean(),
|
|
214
|
+
traceComplete: z.boolean(),
|
|
215
|
+
decisionCount: z.number().int().nonnegative(),
|
|
216
|
+
blockingDecision: PolicyDecisionSchema.nullable(),
|
|
217
|
+
denialEvent: z.object({
|
|
218
|
+
eventId: z.string(),
|
|
219
|
+
occurredAt: z.string().datetime(),
|
|
220
|
+
policyId: z.string(),
|
|
221
|
+
ruleId: z.string(),
|
|
222
|
+
reasonCode: z.string(),
|
|
223
|
+
reasonText: z.string(),
|
|
224
|
+
correlationId: z.string()
|
|
225
|
+
}).nullable()
|
|
226
|
+
});
|
|
227
|
+
var EntitlementDecisionSchema = z.object({
|
|
228
|
+
tenantId: z.string(),
|
|
229
|
+
plan: z.string(),
|
|
230
|
+
entitled: z.boolean(),
|
|
231
|
+
denialReason: z.string().optional()
|
|
232
|
+
});
|
|
233
|
+
var ArtifactManifestItemSchema = z.object({
|
|
234
|
+
artifactId: z.string(),
|
|
235
|
+
runId: z.string(),
|
|
236
|
+
path: z.string(),
|
|
237
|
+
type: z.string(),
|
|
238
|
+
sha256: z.string(),
|
|
239
|
+
sizeBytes: z.number().int().nonnegative()
|
|
240
|
+
});
|
|
241
|
+
var ControlFailureSchema = z.object({
|
|
242
|
+
jobId: z.string(),
|
|
243
|
+
failureCategory: z.enum([
|
|
244
|
+
"cursor-drift",
|
|
245
|
+
"missing-run-script",
|
|
246
|
+
"policy-deny",
|
|
247
|
+
"network",
|
|
248
|
+
"dependency-timeout",
|
|
249
|
+
"unknown"
|
|
250
|
+
]),
|
|
251
|
+
firstFailure: z.string().datetime(),
|
|
252
|
+
blockedUntil: z.string().datetime().optional()
|
|
253
|
+
});
|
|
254
|
+
var ControlJobStateSchema = z.enum([
|
|
255
|
+
"queued",
|
|
256
|
+
"running",
|
|
257
|
+
"succeeded",
|
|
258
|
+
"failed",
|
|
259
|
+
"blocked"
|
|
260
|
+
]);
|
|
261
|
+
var ControlJobSchema = z.object({
|
|
262
|
+
id: z.string(),
|
|
263
|
+
kind: z.string(),
|
|
264
|
+
dispatchKey: z.string(),
|
|
265
|
+
payload: z.record(z.unknown()),
|
|
266
|
+
state: ControlJobStateSchema,
|
|
267
|
+
createdAt: z.string().datetime(),
|
|
268
|
+
updatedAt: z.string().datetime(),
|
|
269
|
+
lastFailure: ControlFailureSchema.nullable()
|
|
270
|
+
});
|
|
271
|
+
var ControlJobAttemptSchema = z.object({
|
|
272
|
+
id: z.string(),
|
|
273
|
+
jobId: z.string(),
|
|
274
|
+
attempt: z.number().int().positive(),
|
|
275
|
+
startedAt: z.string().datetime(),
|
|
276
|
+
finishedAt: z.string().datetime(),
|
|
277
|
+
outcome: z.enum(["succeeded", "failed", "blocked"])
|
|
278
|
+
});
|
|
279
|
+
var ControlJobEventSchema = z.object({
|
|
280
|
+
id: z.string(),
|
|
281
|
+
jobId: z.string(),
|
|
282
|
+
type: z.enum([
|
|
283
|
+
"job.queued",
|
|
284
|
+
"job.suppressed",
|
|
285
|
+
"job.started",
|
|
286
|
+
"job.succeeded",
|
|
287
|
+
"job.failed",
|
|
288
|
+
"job.blocked",
|
|
289
|
+
"job.backoff_scheduled",
|
|
290
|
+
"job.retried"
|
|
291
|
+
]),
|
|
292
|
+
payload: z.record(z.unknown()),
|
|
293
|
+
createdAt: z.string().datetime()
|
|
294
|
+
});
|
|
295
|
+
var ControlBackoffStateSchema = z.object({
|
|
296
|
+
jobId: z.string(),
|
|
297
|
+
dispatchKey: z.string(),
|
|
298
|
+
rootCauseKey: z.string(),
|
|
299
|
+
consecutiveFailures: z.number().int().nonnegative(),
|
|
300
|
+
nextRetryAt: z.string().datetime().nullable(),
|
|
301
|
+
blockedUntil: z.string().datetime().nullable(),
|
|
302
|
+
updatedAt: z.string().datetime()
|
|
303
|
+
});
|
|
304
|
+
var ControlSuppressionStateSchema = z.object({
|
|
305
|
+
dispatchKey: z.string(),
|
|
306
|
+
blockedUntil: z.string().datetime(),
|
|
307
|
+
reason: z.string(),
|
|
308
|
+
updatedAt: z.string().datetime()
|
|
309
|
+
});
|
|
310
|
+
var ControlJobScheduleRequestSchema = z.object({
|
|
311
|
+
kind: z.string().min(1),
|
|
312
|
+
dedupeKey: z.string().min(1).optional(),
|
|
313
|
+
payload: z.record(z.unknown()).default({})
|
|
314
|
+
});
|
|
315
|
+
var ControlJobBlockRequestSchema = z.object({
|
|
316
|
+
failureCategory: ControlFailureSchema.shape.failureCategory,
|
|
317
|
+
message: z.string().min(1),
|
|
318
|
+
blockedUntil: z.string().datetime().optional()
|
|
319
|
+
});
|
|
320
|
+
var ControlJobRunNextResponseSchema = z.union([
|
|
321
|
+
z.object({
|
|
322
|
+
processed: z.literal(false),
|
|
323
|
+
reason: z.literal("queue_empty")
|
|
324
|
+
}),
|
|
325
|
+
z.object({
|
|
326
|
+
processed: z.literal(true),
|
|
327
|
+
job: ControlJobSchema,
|
|
328
|
+
attempt: ControlJobAttemptSchema
|
|
329
|
+
})
|
|
330
|
+
]);
|
|
331
|
+
var GitHubDispatchControlPayloadSchema = z.object({
|
|
332
|
+
owner: z.string().min(1),
|
|
333
|
+
repo: z.string().min(1),
|
|
334
|
+
eventType: z.string().min(1).default("control_job_requested"),
|
|
335
|
+
clientPayload: z.record(z.unknown()).default({})
|
|
336
|
+
});
|
|
337
|
+
var SamlConnectionSchema = z.object({
|
|
338
|
+
workspaceId: z.string(),
|
|
339
|
+
connectionId: z.string(),
|
|
340
|
+
issuer: z.string().url(),
|
|
341
|
+
entryPoint: z.string().url(),
|
|
342
|
+
signInUrl: z.string().url(),
|
|
343
|
+
certificateFingerprint: z.string().min(1),
|
|
344
|
+
createdAt: z.string().datetime(),
|
|
345
|
+
createdBy: z.string(),
|
|
346
|
+
updatedAt: z.string().datetime(),
|
|
347
|
+
updatedBy: z.string()
|
|
348
|
+
});
|
|
349
|
+
var ScimProvisioningTokenSchema = z.object({
|
|
350
|
+
workspaceId: z.string(),
|
|
351
|
+
tokenId: z.string(),
|
|
352
|
+
tokenPreview: z.string(),
|
|
353
|
+
status: z.enum(["active", "revoked"]),
|
|
354
|
+
createdAt: z.string().datetime(),
|
|
355
|
+
createdBy: z.string(),
|
|
356
|
+
revokedAt: z.string().datetime().optional(),
|
|
357
|
+
revokedBy: z.string().optional()
|
|
358
|
+
});
|
|
359
|
+
var ComplianceFrameworkSchema = z.enum(["soc2", "iso27001", "gdpr", "ai_act"]);
|
|
360
|
+
var ComplianceFrameworkControlMappingSchema = z.object({
|
|
361
|
+
framework: ComplianceFrameworkSchema,
|
|
362
|
+
controlIds: z.array(z.string().min(1)).min(1),
|
|
363
|
+
rationale: z.string().min(1).optional()
|
|
364
|
+
});
|
|
365
|
+
var ComplianceExportFormatSchema = z.enum(["json", "csv", "api_feed"]);
|
|
366
|
+
var CreateComplianceExportRequestSchema = z.object({
|
|
367
|
+
workspaceId: z.string().min(1),
|
|
368
|
+
bundleIds: z.array(z.string().min(1)).optional(),
|
|
369
|
+
frameworks: z.array(ComplianceFrameworkSchema).min(1).optional(),
|
|
370
|
+
format: ComplianceExportFormatSchema.optional()
|
|
371
|
+
});
|
|
372
|
+
var ComplianceExportManifestItemSchema = z.object({
|
|
373
|
+
exportId: z.string(),
|
|
374
|
+
bundleId: z.string(),
|
|
375
|
+
runId: z.string(),
|
|
376
|
+
artifactId: z.string(),
|
|
377
|
+
path: z.string(),
|
|
378
|
+
type: z.string(),
|
|
379
|
+
sha256: z.string(),
|
|
380
|
+
sizeBytes: z.number().int().nonnegative(),
|
|
381
|
+
traceability: z.object({
|
|
382
|
+
auditEventId: z.string().min(1).optional(),
|
|
383
|
+
usageEntryId: z.string().min(1).optional()
|
|
384
|
+
}).optional(),
|
|
385
|
+
frameworkMappings: z.array(ComplianceFrameworkControlMappingSchema).optional()
|
|
386
|
+
});
|
|
387
|
+
var ComplianceExportExitGateSchema = z.object({
|
|
388
|
+
workspaceId: z.string(),
|
|
389
|
+
passed: z.boolean(),
|
|
390
|
+
reasonCodes: z.array(z.string()),
|
|
391
|
+
evaluatedAt: z.string().datetime(),
|
|
392
|
+
latestExportId: z.string().optional(),
|
|
393
|
+
manifestHash: z.string().optional()
|
|
394
|
+
});
|
|
395
|
+
var CapabilityStatusSchema = z.enum(["enabled", "disabled", "preview"]);
|
|
396
|
+
var CapabilityDescriptorSchema = z.object({
|
|
397
|
+
key: z.string().min(1),
|
|
398
|
+
status: CapabilityStatusSchema,
|
|
399
|
+
version: z.string().min(1).optional(),
|
|
400
|
+
description: z.string().min(1).optional(),
|
|
401
|
+
config: z.record(z.unknown()).optional()
|
|
402
|
+
});
|
|
403
|
+
var ApiSurfaceVersionSchema = z.object({
|
|
404
|
+
name: z.string().min(1),
|
|
405
|
+
version: z.string().min(1),
|
|
406
|
+
deprecated: z.boolean().optional()
|
|
407
|
+
});
|
|
408
|
+
var CapabilityNegotiationSchema = z.object({
|
|
409
|
+
requestedSurface: z.string().min(1).optional(),
|
|
410
|
+
requestedVersion: z.string().min(1).optional(),
|
|
411
|
+
selectedSurface: z.string().min(1),
|
|
412
|
+
selectedVersion: z.string().min(1),
|
|
413
|
+
compatible: z.boolean()
|
|
414
|
+
});
|
|
415
|
+
var CapabilitiesResponseSchema = z.object({
|
|
416
|
+
generatedAt: z.string().datetime(),
|
|
417
|
+
workspaceId: z.string().min(1).optional(),
|
|
418
|
+
apiSurfaces: z.array(ApiSurfaceVersionSchema).default([]),
|
|
419
|
+
capabilities: z.array(CapabilityDescriptorSchema).default([]),
|
|
420
|
+
negotiation: CapabilityNegotiationSchema.optional()
|
|
421
|
+
});
|
|
422
|
+
var AccessPermissionKeySchema = z.enum([
|
|
423
|
+
"policy:read",
|
|
424
|
+
"policy:write",
|
|
425
|
+
"policy:publish",
|
|
426
|
+
"policy:simulate",
|
|
427
|
+
"execution:read",
|
|
428
|
+
"execution:export",
|
|
429
|
+
"approval:read",
|
|
430
|
+
"approval:decide",
|
|
431
|
+
"approval:configure",
|
|
432
|
+
"audit:read",
|
|
433
|
+
"audit:export",
|
|
434
|
+
"audit:retention:manage",
|
|
435
|
+
"connector:read",
|
|
436
|
+
"connector:connect",
|
|
437
|
+
"connector:disconnect",
|
|
438
|
+
"workspace:user:invite",
|
|
439
|
+
"workspace:user:role:set",
|
|
440
|
+
"workspace:delete",
|
|
441
|
+
"service-account:read",
|
|
442
|
+
"service-account:write",
|
|
443
|
+
"service-account:token:rotate"
|
|
444
|
+
]);
|
|
445
|
+
var AccessRoleScopeSchema = z.enum(["org", "workspace", "environment"]);
|
|
446
|
+
var AccessRoleSchema = z.object({
|
|
447
|
+
id: z.string().min(1),
|
|
448
|
+
key: z.string().min(1),
|
|
449
|
+
name: z.string().min(1),
|
|
450
|
+
description: z.string().optional(),
|
|
451
|
+
scope: AccessRoleScopeSchema,
|
|
452
|
+
permissions: z.array(AccessPermissionKeySchema),
|
|
453
|
+
isBuiltIn: z.boolean(),
|
|
454
|
+
createdAt: z.string().datetime().optional(),
|
|
455
|
+
updatedAt: z.string().datetime().optional()
|
|
456
|
+
});
|
|
457
|
+
var AccessSubjectTypeSchema = z.enum(["user", "group", "serviceAccount"]);
|
|
458
|
+
var AccessRoleBindingSchema = z.object({
|
|
459
|
+
id: z.string().min(1),
|
|
460
|
+
scopeType: AccessRoleScopeSchema,
|
|
461
|
+
scopeId: z.string().min(1),
|
|
462
|
+
subjectType: AccessSubjectTypeSchema,
|
|
463
|
+
subjectId: z.string().min(1),
|
|
464
|
+
roleKey: z.string().min(1),
|
|
465
|
+
createdAt: z.string().datetime().optional(),
|
|
466
|
+
createdBy: z.string().optional()
|
|
467
|
+
});
|
|
468
|
+
var ServiceAccountStatusSchema = z.enum(["active", "disabled"]);
|
|
469
|
+
var ServiceAccountSchema = z.object({
|
|
470
|
+
id: z.string().min(1),
|
|
471
|
+
name: z.string().min(1),
|
|
472
|
+
description: z.string().optional(),
|
|
473
|
+
workspaceId: z.string().min(1),
|
|
474
|
+
environmentKey: z.string().min(1).nullable().optional(),
|
|
475
|
+
status: ServiceAccountStatusSchema,
|
|
476
|
+
createdAt: z.string().datetime(),
|
|
477
|
+
createdByUserId: z.string().min(1),
|
|
478
|
+
updatedAt: z.string().datetime().optional(),
|
|
479
|
+
disabledAt: z.string().datetime().nullable().optional()
|
|
480
|
+
});
|
|
481
|
+
var AgentIdentityStatusSchema = z.enum(["active", "disabled"]);
|
|
482
|
+
var AgentProfileSchema = z.object({
|
|
483
|
+
id: z.string().min(1),
|
|
484
|
+
workspaceId: z.string().min(1),
|
|
485
|
+
name: z.string().min(1),
|
|
486
|
+
description: z.string().optional(),
|
|
487
|
+
environmentKey: z.string().min(1).nullable().optional(),
|
|
488
|
+
status: AgentIdentityStatusSchema,
|
|
489
|
+
createdAt: z.string().datetime(),
|
|
490
|
+
updatedAt: z.string().datetime().optional(),
|
|
491
|
+
disabledAt: z.string().datetime().nullable().optional(),
|
|
492
|
+
createdByUserId: z.string().min(1)
|
|
493
|
+
});
|
|
494
|
+
var AgentKeyStatusSchema = z.enum(["active", "revoked"]);
|
|
495
|
+
var AgentKeyMetadataSchema = z.object({
|
|
496
|
+
keyId: z.string().min(1),
|
|
497
|
+
workspaceId: z.string().min(1),
|
|
498
|
+
agentId: z.string().min(1),
|
|
499
|
+
name: z.string().min(1),
|
|
500
|
+
keyPrefix: z.string().min(1),
|
|
501
|
+
scopes: z.array(z.string().min(1)).default([]),
|
|
502
|
+
rateLimitPerMinute: z.number().int().positive(),
|
|
503
|
+
status: AgentKeyStatusSchema,
|
|
504
|
+
createdAt: z.string().datetime(),
|
|
505
|
+
revokedAt: z.string().datetime().nullable().optional()
|
|
506
|
+
});
|
|
507
|
+
var AgentTokenClaimsSchema = z.object({
|
|
508
|
+
tokenUse: z.literal("agent_execution"),
|
|
509
|
+
tokenVersion: z.string().min(1).default("v1"),
|
|
510
|
+
iss: z.string().min(1),
|
|
511
|
+
sub: z.string().min(1),
|
|
512
|
+
aud: z.string().min(1),
|
|
513
|
+
jti: z.string().min(1),
|
|
514
|
+
workspaceId: z.string().min(1),
|
|
515
|
+
agentId: z.string().min(1),
|
|
516
|
+
scopes: z.array(z.string().min(1)).default([]),
|
|
517
|
+
iat: z.string().datetime(),
|
|
518
|
+
exp: z.string().datetime().nullable().optional()
|
|
519
|
+
});
|
|
520
|
+
var AgentExecutionTokenIssueRequestSchema = z.object({
|
|
521
|
+
scopes: z.array(z.string().min(1)).min(1),
|
|
522
|
+
ttlSeconds: z.number().int().min(1).max(3600).default(900)
|
|
523
|
+
});
|
|
524
|
+
var AgentExecutionTokenIssueResponseSchema = z.object({
|
|
525
|
+
token: z.string().min(1),
|
|
526
|
+
expiresAt: z.string().datetime(),
|
|
527
|
+
claims: AgentTokenClaimsSchema
|
|
528
|
+
});
|
|
529
|
+
var AgentCapabilitySourceSchema = z.enum(["manual", "role", "token"]);
|
|
530
|
+
var AgentCapabilityStatusSchema = z.enum(["active", "disabled"]);
|
|
531
|
+
var AgentCapabilitySchema = z.object({
|
|
532
|
+
id: z.string().min(1),
|
|
533
|
+
workspaceId: z.string().min(1),
|
|
534
|
+
agentId: z.string().min(1),
|
|
535
|
+
capability: z.string().min(1),
|
|
536
|
+
source: AgentCapabilitySourceSchema,
|
|
537
|
+
status: AgentCapabilityStatusSchema,
|
|
538
|
+
createdAt: z.string().datetime(),
|
|
539
|
+
updatedAt: z.string().datetime()
|
|
540
|
+
});
|
|
541
|
+
var AgentDelegationTargetTypeSchema = z.enum(["agent", "tool", "runtime"]);
|
|
542
|
+
var AgentDelegationEffectSchema = z.enum(["allow", "deny"]);
|
|
543
|
+
var AgentDelegationStatusSchema = z.enum(["active", "disabled"]);
|
|
544
|
+
var AgentDelegationRuleSchema = z.object({
|
|
545
|
+
id: z.string().min(1),
|
|
546
|
+
workspaceId: z.string().min(1),
|
|
547
|
+
sourceAgentId: z.string().min(1),
|
|
548
|
+
targetType: AgentDelegationTargetTypeSchema,
|
|
549
|
+
targetId: z.string().min(1),
|
|
550
|
+
capability: z.string().min(1),
|
|
551
|
+
effect: AgentDelegationEffectSchema,
|
|
552
|
+
status: AgentDelegationStatusSchema,
|
|
553
|
+
createdAt: z.string().datetime(),
|
|
554
|
+
updatedAt: z.string().datetime()
|
|
555
|
+
});
|
|
556
|
+
var AgentRevocationEscalationLevelSchema = z.enum([
|
|
557
|
+
"none",
|
|
558
|
+
"low",
|
|
559
|
+
"medium",
|
|
560
|
+
"high",
|
|
561
|
+
"critical"
|
|
562
|
+
]);
|
|
563
|
+
var AgentRevocationEventSchema = z.object({
|
|
564
|
+
id: z.string().min(1),
|
|
565
|
+
workspaceId: z.string().min(1),
|
|
566
|
+
agentId: z.string().min(1),
|
|
567
|
+
reasonCode: z.string().min(1),
|
|
568
|
+
reasonText: z.string().min(1).nullable().optional(),
|
|
569
|
+
escalationLevel: AgentRevocationEscalationLevelSchema,
|
|
570
|
+
requestedByUserId: z.string().min(1),
|
|
571
|
+
correlationId: z.string().min(1).nullable().optional(),
|
|
572
|
+
tokenRevocationCount: z.number().int().nonnegative(),
|
|
573
|
+
previousStatus: AgentIdentityStatusSchema,
|
|
574
|
+
currentStatus: AgentIdentityStatusSchema,
|
|
575
|
+
effectiveAt: z.string().datetime(),
|
|
576
|
+
propagationWindowSeconds: z.number().int().nonnegative(),
|
|
577
|
+
createdAt: z.string().datetime()
|
|
578
|
+
});
|
|
579
|
+
var AgentEscalationSourceSchema = z.enum(["manual", "runtime", "delegation", "revocation"]);
|
|
580
|
+
var AgentEscalationSeveritySchema = z.enum(["low", "medium", "high", "critical"]);
|
|
581
|
+
var AgentEscalationStatusSchema = z.enum(["open", "acknowledged", "resolved"]);
|
|
582
|
+
var AgentEscalationEventSchema = z.object({
|
|
583
|
+
id: z.string().min(1),
|
|
584
|
+
workspaceId: z.string().min(1),
|
|
585
|
+
agentId: z.string().min(1),
|
|
586
|
+
source: AgentEscalationSourceSchema,
|
|
587
|
+
severity: AgentEscalationSeveritySchema,
|
|
588
|
+
status: AgentEscalationStatusSchema,
|
|
589
|
+
summary: z.string().min(1),
|
|
590
|
+
details: z.record(z.unknown()).optional(),
|
|
591
|
+
createdByUserId: z.string().min(1),
|
|
592
|
+
createdAt: z.string().datetime(),
|
|
593
|
+
updatedAt: z.string().datetime(),
|
|
594
|
+
resolvedAt: z.string().datetime().nullable().optional(),
|
|
595
|
+
resolutionNote: z.string().nullable().optional()
|
|
596
|
+
});
|
|
597
|
+
var UsageTimeframeSchema = z.enum(["7d", "30d", "90d"]);
|
|
598
|
+
var UsageBreakdownSchema = z.enum(["total", "allowed", "blocked", "pending"]);
|
|
599
|
+
var UsageTimeseriesPointSchema = z.object({
|
|
600
|
+
ts: z.string().datetime(),
|
|
601
|
+
total: z.number().int().nonnegative(),
|
|
602
|
+
allowed: z.number().int().nonnegative(),
|
|
603
|
+
blocked: z.number().int().nonnegative(),
|
|
604
|
+
pending: z.number().int().nonnegative(),
|
|
605
|
+
environmentKey: z.string().min(1).optional()
|
|
606
|
+
});
|
|
607
|
+
var UsageTimeseriesResponseSchema = z.object({
|
|
608
|
+
workspaceId: z.string().min(1),
|
|
609
|
+
timeframe: UsageTimeframeSchema,
|
|
610
|
+
breakdown: UsageBreakdownSchema,
|
|
611
|
+
points: z.array(UsageTimeseriesPointSchema)
|
|
612
|
+
});
|
|
613
|
+
var TimelineEntityTypeSchema = z.enum(["route", "policy", "change-request"]);
|
|
614
|
+
var TimelineEventSchema = z.object({
|
|
615
|
+
id: z.string().min(1),
|
|
616
|
+
entityType: TimelineEntityTypeSchema,
|
|
617
|
+
entityId: z.string().min(1),
|
|
618
|
+
action: z.string().min(1),
|
|
619
|
+
summary: z.string().min(1),
|
|
620
|
+
actor: z.string().min(1),
|
|
621
|
+
occurredAt: z.string().datetime(),
|
|
622
|
+
versionId: z.string().min(1).optional(),
|
|
623
|
+
versionNumber: z.number().int().positive().optional(),
|
|
624
|
+
environmentKey: z.string().min(1).optional(),
|
|
625
|
+
metadata: z.record(z.unknown()).optional()
|
|
626
|
+
});
|
|
627
|
+
var RouteTimelineResponseSchema = z.object({
|
|
628
|
+
routeId: z.string().min(1),
|
|
629
|
+
events: z.array(TimelineEventSchema)
|
|
630
|
+
});
|
|
631
|
+
var PolicyTimelineResponseSchema = z.object({
|
|
632
|
+
policyId: z.string().min(1),
|
|
633
|
+
events: z.array(TimelineEventSchema)
|
|
634
|
+
});
|
|
635
|
+
var ChangeRequestTimelineResponseSchema = z.object({
|
|
636
|
+
changeRequestId: z.string().min(1),
|
|
637
|
+
events: z.array(TimelineEventSchema)
|
|
638
|
+
});
|
|
639
|
+
var LineageNodeTypeSchema = z.enum([
|
|
640
|
+
"run",
|
|
641
|
+
"policyDecision",
|
|
642
|
+
"approval",
|
|
643
|
+
"artifact",
|
|
644
|
+
"export",
|
|
645
|
+
"changeRequest",
|
|
646
|
+
"route",
|
|
647
|
+
"policy",
|
|
648
|
+
"workflowVersion",
|
|
649
|
+
"riskScore",
|
|
650
|
+
"agent",
|
|
651
|
+
"prompt",
|
|
652
|
+
"model",
|
|
653
|
+
"tool",
|
|
654
|
+
"api",
|
|
655
|
+
"dataset",
|
|
656
|
+
"risk",
|
|
657
|
+
"outcome"
|
|
658
|
+
]);
|
|
659
|
+
var LineageNodeSchema = z.object({
|
|
660
|
+
id: z.string().min(1),
|
|
661
|
+
type: LineageNodeTypeSchema,
|
|
662
|
+
label: z.string().optional(),
|
|
663
|
+
occurredAt: z.string().datetime().optional(),
|
|
664
|
+
attributes: z.record(z.unknown()).optional()
|
|
665
|
+
});
|
|
666
|
+
var LineageEdgeSchema = z.object({
|
|
667
|
+
id: z.string().min(1),
|
|
668
|
+
from: z.string().min(1),
|
|
669
|
+
to: z.string().min(1),
|
|
670
|
+
relation: z.string().min(1),
|
|
671
|
+
occurredAt: z.string().datetime().optional(),
|
|
672
|
+
attributes: z.record(z.unknown()).optional()
|
|
673
|
+
});
|
|
674
|
+
var LineageQueryRequestSchema = z.object({
|
|
675
|
+
workspaceId: z.string().min(1),
|
|
676
|
+
rootNodeId: z.string().min(1),
|
|
677
|
+
maxDepth: z.number().int().min(1).max(8).default(3),
|
|
678
|
+
includeRelations: z.array(z.string().min(1)).optional(),
|
|
679
|
+
since: z.string().datetime().optional(),
|
|
680
|
+
until: z.string().datetime().optional()
|
|
681
|
+
});
|
|
682
|
+
var LineageQueryResponseSchema = z.object({
|
|
683
|
+
workspaceId: z.string().min(1),
|
|
684
|
+
rootNodeId: z.string().min(1),
|
|
685
|
+
depth: z.number().int().min(1),
|
|
686
|
+
nodes: z.array(LineageNodeSchema),
|
|
687
|
+
edges: z.array(LineageEdgeSchema)
|
|
688
|
+
});
|
|
689
|
+
var RiskTierSchema = z.enum(["low", "med", "high", "critical"]);
|
|
690
|
+
var RiskSubjectTypeSchema = z.enum([
|
|
691
|
+
"run",
|
|
692
|
+
"changeRequest",
|
|
693
|
+
"route",
|
|
694
|
+
"policy",
|
|
695
|
+
"workspace"
|
|
696
|
+
]);
|
|
697
|
+
var RiskFactorSchema = z.object({
|
|
698
|
+
key: z.string().min(1),
|
|
699
|
+
weight: z.number(),
|
|
700
|
+
value: z.number(),
|
|
701
|
+
reason: z.string().optional()
|
|
702
|
+
});
|
|
703
|
+
var RiskScoreCheckRequestSchema = z.object({
|
|
704
|
+
workspaceId: z.string().min(1),
|
|
705
|
+
subjectType: RiskSubjectTypeSchema,
|
|
706
|
+
subjectId: z.string().min(1),
|
|
707
|
+
context: z.record(z.unknown()).optional()
|
|
708
|
+
});
|
|
709
|
+
var RiskScoreResultSchema = z.object({
|
|
710
|
+
score: z.number().min(0).max(100),
|
|
711
|
+
tier: RiskTierSchema,
|
|
712
|
+
evaluatedAt: z.string().datetime(),
|
|
713
|
+
factors: z.array(RiskFactorSchema).default([])
|
|
714
|
+
});
|
|
715
|
+
var RiskScoreCheckResponseSchema = z.object({
|
|
716
|
+
workspaceId: z.string().min(1),
|
|
717
|
+
subjectType: RiskSubjectTypeSchema,
|
|
718
|
+
subjectId: z.string().min(1),
|
|
719
|
+
result: RiskScoreResultSchema
|
|
720
|
+
});
|
|
721
|
+
var RiskTrendWindowSchema = z.enum(["24h", "7d", "30d", "90d"]);
|
|
722
|
+
var RiskTrendPointSchema = z.object({
|
|
723
|
+
ts: z.string().datetime(),
|
|
724
|
+
avgScore: z.number().min(0).max(100),
|
|
725
|
+
p95Score: z.number().min(0).max(100),
|
|
726
|
+
highCount: z.number().int().nonnegative(),
|
|
727
|
+
criticalCount: z.number().int().nonnegative()
|
|
728
|
+
});
|
|
729
|
+
var RiskTrendResponseSchema = z.object({
|
|
730
|
+
workspaceId: z.string().min(1),
|
|
731
|
+
window: RiskTrendWindowSchema,
|
|
732
|
+
points: z.array(RiskTrendPointSchema)
|
|
733
|
+
});
|
|
734
|
+
var RiskBaselineWindowSchema = z.enum(["7d", "30d", "90d"]);
|
|
735
|
+
var RiskBaselineSchema = z.object({
|
|
736
|
+
id: z.string().min(1),
|
|
737
|
+
workspaceId: z.string().min(1),
|
|
738
|
+
subjectType: RiskSubjectTypeSchema,
|
|
739
|
+
subjectId: z.string().min(1),
|
|
740
|
+
window: RiskBaselineWindowSchema,
|
|
741
|
+
sampleSize: z.number().int().nonnegative(),
|
|
742
|
+
avgScore: z.number().min(0).max(100),
|
|
743
|
+
p95Score: z.number().min(0).max(100),
|
|
744
|
+
highRate: z.number().min(0).max(1),
|
|
745
|
+
criticalRate: z.number().min(0).max(1),
|
|
746
|
+
capturedAt: z.string().datetime()
|
|
747
|
+
});
|
|
748
|
+
var RiskBaselineCaptureRequestSchema = z.object({
|
|
749
|
+
workspaceId: z.string().min(1),
|
|
750
|
+
window: RiskBaselineWindowSchema.default("30d"),
|
|
751
|
+
subjectType: RiskSubjectTypeSchema.optional(),
|
|
752
|
+
subjectId: z.string().min(1).optional()
|
|
753
|
+
});
|
|
754
|
+
var RiskBaselineCaptureResponseSchema = z.object({
|
|
755
|
+
workspaceId: z.string().min(1),
|
|
756
|
+
window: RiskBaselineWindowSchema,
|
|
757
|
+
capturedAt: z.string().datetime(),
|
|
758
|
+
baselines: z.array(RiskBaselineSchema).default([])
|
|
759
|
+
});
|
|
760
|
+
var RiskSignalTypeSchema = z.enum([
|
|
761
|
+
"score_spike",
|
|
762
|
+
"tier_escalation",
|
|
763
|
+
"high_risk_density"
|
|
764
|
+
]);
|
|
765
|
+
var RiskSignalSeveritySchema = z.enum(["low", "med", "high", "critical"]);
|
|
766
|
+
var RiskAnomalySignalSchema = z.object({
|
|
767
|
+
id: z.string().min(1),
|
|
768
|
+
workspaceId: z.string().min(1),
|
|
769
|
+
subjectType: RiskSubjectTypeSchema,
|
|
770
|
+
subjectId: z.string().min(1),
|
|
771
|
+
riskScoreId: z.string().min(1),
|
|
772
|
+
baselineId: z.string().min(1),
|
|
773
|
+
signalType: RiskSignalTypeSchema,
|
|
774
|
+
severity: RiskSignalSeveritySchema,
|
|
775
|
+
score: z.number().min(0).max(100),
|
|
776
|
+
baselineScore: z.number().min(0).max(100),
|
|
777
|
+
delta: z.number(),
|
|
778
|
+
details: z.record(z.unknown()).default({}),
|
|
779
|
+
detectedAt: z.string().datetime()
|
|
780
|
+
});
|
|
781
|
+
var RiskSignalGenerateRequestSchema = z.object({
|
|
782
|
+
workspaceId: z.string().min(1),
|
|
783
|
+
lookbackHours: z.number().int().min(1).max(168).default(24),
|
|
784
|
+
subjectType: RiskSubjectTypeSchema.optional(),
|
|
785
|
+
subjectId: z.string().min(1).optional()
|
|
786
|
+
});
|
|
787
|
+
var RiskSignalGenerateResponseSchema = z.object({
|
|
788
|
+
workspaceId: z.string().min(1),
|
|
789
|
+
lookbackHours: z.number().int().min(1).max(168),
|
|
790
|
+
generatedCount: z.number().int().nonnegative(),
|
|
791
|
+
signals: z.array(RiskAnomalySignalSchema).default([])
|
|
792
|
+
});
|
|
793
|
+
var RiskSignalListResponseSchema = z.object({
|
|
794
|
+
workspaceId: z.string().min(1),
|
|
795
|
+
lookbackHours: z.number().int().min(1).max(168),
|
|
796
|
+
signals: z.array(RiskAnomalySignalSchema).default([])
|
|
797
|
+
});
|
|
798
|
+
var DriftDimensionSchema = z.enum(["prompt", "tool", "model", "data", "risk"]);
|
|
799
|
+
var DriftSignalSeveritySchema = z.enum(["low", "med", "high", "critical"]);
|
|
800
|
+
var DriftMetricKeySchema = z.enum(["risk_score_avg"]);
|
|
801
|
+
var DriftMetricBaselineSchema = z.object({
|
|
802
|
+
id: z.string().min(1),
|
|
803
|
+
workspaceId: z.string().min(1),
|
|
804
|
+
dimension: DriftDimensionSchema,
|
|
805
|
+
entityKey: z.string().min(1),
|
|
806
|
+
metricKey: DriftMetricKeySchema,
|
|
807
|
+
lookbackHours: z.number().int().min(1).max(168),
|
|
808
|
+
sampleSize: z.number().int().nonnegative(),
|
|
809
|
+
avgScore: z.number().min(0).max(100),
|
|
810
|
+
p95Score: z.number().min(0).max(100),
|
|
811
|
+
highRate: z.number().min(0).max(1),
|
|
812
|
+
criticalRate: z.number().min(0).max(1),
|
|
813
|
+
capturedAt: z.string().datetime()
|
|
814
|
+
});
|
|
815
|
+
var DriftSignalSchema = z.object({
|
|
816
|
+
id: z.string().min(1),
|
|
817
|
+
workspaceId: z.string().min(1),
|
|
818
|
+
dimension: DriftDimensionSchema,
|
|
819
|
+
entityKey: z.string().min(1),
|
|
820
|
+
metricKey: DriftMetricKeySchema,
|
|
821
|
+
baselineId: z.string().min(1),
|
|
822
|
+
sampleSize: z.number().int().nonnegative(),
|
|
823
|
+
baselineSampleSize: z.number().int().nonnegative(),
|
|
824
|
+
score: z.number().min(0).max(100),
|
|
825
|
+
baselineScore: z.number().min(0).max(100),
|
|
826
|
+
delta: z.number(),
|
|
827
|
+
deltaRatio: z.number(),
|
|
828
|
+
severity: DriftSignalSeveritySchema,
|
|
829
|
+
details: z.record(z.unknown()).default({}),
|
|
830
|
+
detectedAt: z.string().datetime()
|
|
831
|
+
});
|
|
832
|
+
var DriftSignalGenerateRequestSchema = z.object({
|
|
833
|
+
workspaceId: z.string().min(1),
|
|
834
|
+
lookbackHours: z.number().int().min(1).max(168).default(24),
|
|
835
|
+
dimension: DriftDimensionSchema.optional(),
|
|
836
|
+
entityKey: z.string().min(1).optional()
|
|
837
|
+
});
|
|
838
|
+
var DriftSignalGenerateResponseSchema = z.object({
|
|
839
|
+
workspaceId: z.string().min(1),
|
|
840
|
+
lookbackHours: z.number().int().min(1).max(168),
|
|
841
|
+
generatedAt: z.string().datetime(),
|
|
842
|
+
generatedCount: z.number().int().nonnegative(),
|
|
843
|
+
signals: z.array(DriftSignalSchema).default([])
|
|
844
|
+
});
|
|
845
|
+
var DriftSignalListResponseSchema = z.object({
|
|
846
|
+
workspaceId: z.string().min(1),
|
|
847
|
+
lookbackHours: z.number().int().min(1).max(168),
|
|
848
|
+
limit: z.number().int().min(1).max(500).optional(),
|
|
849
|
+
nextCursor: z.string().datetime().optional(),
|
|
850
|
+
signals: z.array(DriftSignalSchema).default([])
|
|
851
|
+
});
|
|
852
|
+
var SandboxSimulationStatusSchema = z.enum([
|
|
853
|
+
"queued",
|
|
854
|
+
"running",
|
|
855
|
+
"succeeded",
|
|
856
|
+
"failed",
|
|
857
|
+
"canceled"
|
|
858
|
+
]);
|
|
859
|
+
var SandboxSimulationRequestSchema = z.object({
|
|
860
|
+
workspaceId: z.string().min(1),
|
|
861
|
+
scenarioKey: z.string().min(1),
|
|
862
|
+
input: z.record(z.unknown()).default({}),
|
|
863
|
+
initiatedBy: z.string().min(1).optional()
|
|
864
|
+
});
|
|
865
|
+
var SandboxSimulationArtifactSchema = z.object({
|
|
866
|
+
id: z.string().min(1),
|
|
867
|
+
type: z.string().min(1),
|
|
868
|
+
path: z.string().min(1),
|
|
869
|
+
sha256: z.string().optional()
|
|
870
|
+
});
|
|
871
|
+
var SandboxPolicyPreviewSchema = z.object({
|
|
872
|
+
blocked: z.boolean(),
|
|
873
|
+
decisionCount: z.number().int().nonnegative(),
|
|
874
|
+
denyCount: z.number().int().nonnegative(),
|
|
875
|
+
decisions: z.array(PolicyDecisionSchema).default([])
|
|
876
|
+
});
|
|
877
|
+
var SandboxRiskPreviewSchema = z.object({
|
|
878
|
+
subjectType: RiskSubjectTypeSchema,
|
|
879
|
+
subjectId: z.string().min(1),
|
|
880
|
+
result: RiskScoreResultSchema
|
|
881
|
+
});
|
|
882
|
+
var SandboxSimulationResultSchema = z.object({
|
|
883
|
+
decision: z.enum(["allow", "deny", "partial"]).optional(),
|
|
884
|
+
summary: z.string().optional(),
|
|
885
|
+
metrics: z.record(z.number()).optional(),
|
|
886
|
+
artifacts: z.array(SandboxSimulationArtifactSchema).default([]),
|
|
887
|
+
policyPreview: SandboxPolicyPreviewSchema.optional(),
|
|
888
|
+
riskPreview: SandboxRiskPreviewSchema.optional()
|
|
889
|
+
});
|
|
890
|
+
var SandboxSimulationRunSchema = z.object({
|
|
891
|
+
simulationId: z.string().min(1),
|
|
892
|
+
workspaceId: z.string().min(1),
|
|
893
|
+
scenarioKey: z.string().min(1),
|
|
894
|
+
status: SandboxSimulationStatusSchema,
|
|
895
|
+
createdAt: z.string().datetime(),
|
|
896
|
+
startedAt: z.string().datetime().optional(),
|
|
897
|
+
finishedAt: z.string().datetime().optional(),
|
|
898
|
+
result: SandboxSimulationResultSchema.optional()
|
|
899
|
+
});
|
|
900
|
+
var SandboxSimulationListResponseSchema = z.object({
|
|
901
|
+
workspaceId: z.string().min(1),
|
|
902
|
+
limit: z.number().int().min(1).max(200),
|
|
903
|
+
nextCursor: z.string().datetime().optional(),
|
|
904
|
+
simulations: z.array(SandboxSimulationRunSchema).default([])
|
|
905
|
+
});
|
|
906
|
+
var SandboxSimulationReplayResponseSchema = z.object({
|
|
907
|
+
workspaceId: z.string().min(1),
|
|
908
|
+
sourceSimulationId: z.string().min(1),
|
|
909
|
+
simulation: SandboxSimulationRunSchema
|
|
910
|
+
});
|
|
911
|
+
var DataBoundaryPolicyModeSchema = z.enum(["monitor", "enforce"]);
|
|
912
|
+
var DataBoundaryPolicyStatusSchema = z.enum(["draft", "active", "disabled"]);
|
|
913
|
+
var DataBoundaryDecisionActionSchema = z.enum([
|
|
914
|
+
"allow",
|
|
915
|
+
"block",
|
|
916
|
+
"redact",
|
|
917
|
+
"mask",
|
|
918
|
+
"escalate"
|
|
919
|
+
]);
|
|
920
|
+
var DataBoundaryMaskingStrategySchema = z.enum(["full", "partial", "hash", "tokenize"]);
|
|
921
|
+
var DataBoundaryRuleTargetSchema = z.enum([
|
|
922
|
+
"input",
|
|
923
|
+
"output",
|
|
924
|
+
"tool_call",
|
|
925
|
+
"payload",
|
|
926
|
+
"metadata"
|
|
927
|
+
]);
|
|
928
|
+
var DataBoundaryRuleSchema = z.object({
|
|
929
|
+
id: z.string().min(1),
|
|
930
|
+
ruleKey: z.string().min(1),
|
|
931
|
+
description: z.string().optional(),
|
|
932
|
+
classification: z.string().min(1),
|
|
933
|
+
tags: z.array(z.string().min(1)).default([]),
|
|
934
|
+
target: DataBoundaryRuleTargetSchema,
|
|
935
|
+
matchPattern: z.string().min(1),
|
|
936
|
+
action: DataBoundaryDecisionActionSchema,
|
|
937
|
+
maskingStrategy: DataBoundaryMaskingStrategySchema.optional(),
|
|
938
|
+
enabled: z.boolean().default(true),
|
|
939
|
+
createdAt: z.string().datetime().optional(),
|
|
940
|
+
updatedAt: z.string().datetime().optional()
|
|
941
|
+
});
|
|
942
|
+
var DataBoundaryPolicySchema = z.object({
|
|
943
|
+
id: z.string().min(1),
|
|
944
|
+
workspaceId: z.string().min(1),
|
|
945
|
+
name: z.string().min(1),
|
|
946
|
+
description: z.string().optional(),
|
|
947
|
+
mode: DataBoundaryPolicyModeSchema,
|
|
948
|
+
status: DataBoundaryPolicyStatusSchema,
|
|
949
|
+
defaultAction: DataBoundaryDecisionActionSchema,
|
|
950
|
+
regionAllowlist: z.array(z.string().min(1)).default([]),
|
|
951
|
+
modelAllowlist: z.array(z.string().min(1)).default([]),
|
|
952
|
+
rules: z.array(DataBoundaryRuleSchema).default([]),
|
|
953
|
+
createdBy: z.string().min(1),
|
|
954
|
+
createdAt: z.string().datetime(),
|
|
955
|
+
updatedAt: z.string().datetime()
|
|
956
|
+
});
|
|
957
|
+
var DataBoundaryRuleUpsertInputSchema = DataBoundaryRuleSchema.omit({
|
|
958
|
+
id: true,
|
|
959
|
+
createdAt: true,
|
|
960
|
+
updatedAt: true
|
|
961
|
+
});
|
|
962
|
+
var DataBoundaryPolicyCreateRequestSchema = z.object({
|
|
963
|
+
workspaceId: z.string().min(1),
|
|
964
|
+
name: z.string().min(1),
|
|
965
|
+
description: z.string().optional(),
|
|
966
|
+
mode: DataBoundaryPolicyModeSchema.default("enforce"),
|
|
967
|
+
status: DataBoundaryPolicyStatusSchema.default("active"),
|
|
968
|
+
defaultAction: DataBoundaryDecisionActionSchema.default("allow"),
|
|
969
|
+
regionAllowlist: z.array(z.string().min(1)).default([]),
|
|
970
|
+
modelAllowlist: z.array(z.string().min(1)).default([]),
|
|
971
|
+
rules: z.array(DataBoundaryRuleUpsertInputSchema).min(1)
|
|
972
|
+
});
|
|
973
|
+
var DataBoundaryPolicyUpdateRequestSchema = z.object({
|
|
974
|
+
workspaceId: z.string().min(1),
|
|
975
|
+
policyId: z.string().min(1),
|
|
976
|
+
name: z.string().min(1).optional(),
|
|
977
|
+
description: z.string().optional(),
|
|
978
|
+
mode: DataBoundaryPolicyModeSchema.optional(),
|
|
979
|
+
status: DataBoundaryPolicyStatusSchema.optional(),
|
|
980
|
+
defaultAction: DataBoundaryDecisionActionSchema.optional(),
|
|
981
|
+
regionAllowlist: z.array(z.string().min(1)).optional(),
|
|
982
|
+
modelAllowlist: z.array(z.string().min(1)).optional(),
|
|
983
|
+
rules: z.array(DataBoundaryRuleUpsertInputSchema).min(1).optional()
|
|
984
|
+
}).refine(
|
|
985
|
+
(value) => value.name !== void 0 || value.description !== void 0 || value.mode !== void 0 || value.status !== void 0 || value.defaultAction !== void 0 || value.regionAllowlist !== void 0 || value.modelAllowlist !== void 0 || value.rules !== void 0,
|
|
986
|
+
{ message: "at least one update field is required", path: ["policyId"] }
|
|
987
|
+
);
|
|
988
|
+
var DataBoundaryPolicyListResponseSchema = z.object({
|
|
989
|
+
workspaceId: z.string().min(1),
|
|
990
|
+
policies: z.array(DataBoundaryPolicySchema).default([])
|
|
991
|
+
});
|
|
992
|
+
var DataBoundaryDecisionSchema = z.object({
|
|
993
|
+
action: DataBoundaryDecisionActionSchema,
|
|
994
|
+
reasonCode: z.string().min(1),
|
|
995
|
+
reasonText: z.string().min(1),
|
|
996
|
+
policyId: z.string().min(1).optional(),
|
|
997
|
+
ruleId: z.string().min(1).optional(),
|
|
998
|
+
classification: z.string().min(1).optional(),
|
|
999
|
+
tags: z.array(z.string().min(1)).default([]),
|
|
1000
|
+
maskedFields: z.array(z.string().min(1)).default([])
|
|
1001
|
+
});
|
|
1002
|
+
var DataBoundaryEvaluateRequestSchema = z.object({
|
|
1003
|
+
workspaceId: z.string().min(1),
|
|
1004
|
+
payload: z.record(z.unknown()),
|
|
1005
|
+
context: z.record(z.unknown()).optional()
|
|
1006
|
+
});
|
|
1007
|
+
var DataBoundaryEvaluateResponseSchema = z.object({
|
|
1008
|
+
workspaceId: z.string().min(1),
|
|
1009
|
+
decision: DataBoundaryDecisionSchema,
|
|
1010
|
+
evaluatedAt: z.string().datetime()
|
|
1011
|
+
});
|
|
1012
|
+
var FirewallInspectionModeSchema = z.enum(["monitor", "enforce"]);
|
|
1013
|
+
var FirewallInspectionTargetSchema = z.enum(["input", "output", "tool_call", "payload"]);
|
|
1014
|
+
var FirewallDecisionActionSchema = z.enum(["allow", "sanitize", "deny"]);
|
|
1015
|
+
var FirewallFindingSeveritySchema = z.enum(["low", "med", "high", "critical"]);
|
|
1016
|
+
var FirewallFindingCategorySchema = z.enum([
|
|
1017
|
+
"prompt_injection",
|
|
1018
|
+
"secret",
|
|
1019
|
+
"pii",
|
|
1020
|
+
"malicious_payload"
|
|
1021
|
+
]);
|
|
1022
|
+
var FirewallInspectFindingSchema = z.object({
|
|
1023
|
+
ruleKey: z.string().min(1),
|
|
1024
|
+
category: FirewallFindingCategorySchema,
|
|
1025
|
+
severity: FirewallFindingSeveritySchema,
|
|
1026
|
+
target: FirewallInspectionTargetSchema,
|
|
1027
|
+
fieldPath: z.string().min(1),
|
|
1028
|
+
matchPreview: z.string().min(1)
|
|
1029
|
+
});
|
|
1030
|
+
var FirewallInspectRequestSchema = z.object({
|
|
1031
|
+
workspaceId: z.string().min(1),
|
|
1032
|
+
payload: z.record(z.unknown()),
|
|
1033
|
+
target: FirewallInspectionTargetSchema.default("payload"),
|
|
1034
|
+
context: z.record(z.unknown()).optional(),
|
|
1035
|
+
mode: FirewallInspectionModeSchema.default("monitor")
|
|
1036
|
+
});
|
|
1037
|
+
var FirewallInspectResultSchema = z.object({
|
|
1038
|
+
action: FirewallDecisionActionSchema,
|
|
1039
|
+
reasonCode: z.string().min(1),
|
|
1040
|
+
reasonText: z.string().min(1),
|
|
1041
|
+
findings: z.array(FirewallInspectFindingSchema).default([]),
|
|
1042
|
+
redactions: z.array(z.string().min(1)).default([]),
|
|
1043
|
+
blockedTools: z.array(z.string().min(1)).default([]),
|
|
1044
|
+
blockedDomains: z.array(z.string().min(1)).default([]),
|
|
1045
|
+
sanitizedPayload: z.record(z.unknown()).optional(),
|
|
1046
|
+
score: z.number().int().nonnegative()
|
|
1047
|
+
});
|
|
1048
|
+
var FirewallInspectResponseSchema = z.object({
|
|
1049
|
+
workspaceId: z.string().min(1),
|
|
1050
|
+
inspectedAt: z.string().datetime(),
|
|
1051
|
+
result: FirewallInspectResultSchema,
|
|
1052
|
+
eventId: z.string().min(1).optional()
|
|
1053
|
+
});
|
|
1054
|
+
var FirewallEventSchema = z.object({
|
|
1055
|
+
eventId: z.string().min(1),
|
|
1056
|
+
workspaceId: z.string().min(1),
|
|
1057
|
+
actorId: z.string().min(1),
|
|
1058
|
+
action: z.string().min(1),
|
|
1059
|
+
resourceId: z.string().min(1),
|
|
1060
|
+
resultAction: FirewallDecisionActionSchema,
|
|
1061
|
+
findingsCount: z.number().int().nonnegative(),
|
|
1062
|
+
highestSeverity: FirewallFindingSeveritySchema.optional(),
|
|
1063
|
+
reasonCode: z.string().min(1).optional(),
|
|
1064
|
+
occurredAt: z.string().datetime()
|
|
1065
|
+
});
|
|
1066
|
+
var FirewallEventsResponseSchema = z.object({
|
|
1067
|
+
workspaceId: z.string().min(1),
|
|
1068
|
+
events: z.array(FirewallEventSchema).default([])
|
|
1069
|
+
});
|
|
1070
|
+
var EdgeInterceptorModeSchema = z.enum(["sdk", "sidecar", "proxy"]);
|
|
1071
|
+
var EdgeInterceptorStatusSchema = z.enum(["active", "disabled"]);
|
|
1072
|
+
var EdgeInterceptorRegisterRequestSchema = z.object({
|
|
1073
|
+
workspaceId: z.string().min(1),
|
|
1074
|
+
mode: EdgeInterceptorModeSchema,
|
|
1075
|
+
deploymentId: z.string().min(1).optional(),
|
|
1076
|
+
sdkVersion: z.string().min(1).optional(),
|
|
1077
|
+
region: z.string().min(1).optional(),
|
|
1078
|
+
capabilities: z.array(z.string().min(1)).default([])
|
|
1079
|
+
});
|
|
1080
|
+
var EdgeInterceptorRegistrationSchema = z.object({
|
|
1081
|
+
registrationId: z.string().min(1),
|
|
1082
|
+
workspaceId: z.string().min(1),
|
|
1083
|
+
mode: EdgeInterceptorModeSchema,
|
|
1084
|
+
deploymentId: z.string().min(1).optional(),
|
|
1085
|
+
sdkVersion: z.string().min(1).optional(),
|
|
1086
|
+
region: z.string().min(1).optional(),
|
|
1087
|
+
capabilities: z.array(z.string().min(1)).default([]),
|
|
1088
|
+
status: EdgeInterceptorStatusSchema,
|
|
1089
|
+
createdAt: z.string().datetime(),
|
|
1090
|
+
updatedAt: z.string().datetime()
|
|
1091
|
+
});
|
|
1092
|
+
export {
|
|
1093
|
+
AccessPermissionKeySchema,
|
|
1094
|
+
AccessRoleBindingSchema,
|
|
1095
|
+
AccessRoleSchema,
|
|
1096
|
+
AccessRoleScopeSchema,
|
|
1097
|
+
AccessSubjectTypeSchema,
|
|
1098
|
+
AgentCapabilitySchema,
|
|
1099
|
+
AgentCapabilitySourceSchema,
|
|
1100
|
+
AgentCapabilityStatusSchema,
|
|
1101
|
+
AgentDelegationEffectSchema,
|
|
1102
|
+
AgentDelegationRuleSchema,
|
|
1103
|
+
AgentDelegationStatusSchema,
|
|
1104
|
+
AgentDelegationTargetTypeSchema,
|
|
1105
|
+
AgentEscalationEventSchema,
|
|
1106
|
+
AgentEscalationSeveritySchema,
|
|
1107
|
+
AgentEscalationSourceSchema,
|
|
1108
|
+
AgentEscalationStatusSchema,
|
|
1109
|
+
AgentExecutionTokenIssueRequestSchema,
|
|
1110
|
+
AgentExecutionTokenIssueResponseSchema,
|
|
1111
|
+
AgentIdentityStatusSchema,
|
|
1112
|
+
AgentKeyMetadataSchema,
|
|
1113
|
+
AgentKeyStatusSchema,
|
|
1114
|
+
AgentProfileSchema,
|
|
1115
|
+
AgentRevocationEscalationLevelSchema,
|
|
1116
|
+
AgentRevocationEventSchema,
|
|
1117
|
+
AgentTokenClaimsSchema,
|
|
1118
|
+
ApiSurfaceVersionSchema,
|
|
1119
|
+
ArtifactManifestItemSchema,
|
|
1120
|
+
AuthSessionSchema,
|
|
1121
|
+
CONTRACT_VERSION,
|
|
1122
|
+
CanonicalErrorCodeSchema,
|
|
1123
|
+
CanonicalErrorSchema,
|
|
1124
|
+
CanonicalPolicyRefSchema,
|
|
1125
|
+
CanonicalResponseEnvelopeSchema,
|
|
1126
|
+
CanonicalResponseMetaSchema,
|
|
1127
|
+
CanonicalRiskMetaSchema,
|
|
1128
|
+
CanonicalRouteRefSchema,
|
|
1129
|
+
CanonicalTimingMsSchema,
|
|
1130
|
+
CapabilitiesResponseSchema,
|
|
1131
|
+
CapabilityDescriptorSchema,
|
|
1132
|
+
CapabilityNegotiationSchema,
|
|
1133
|
+
CapabilityStatusSchema,
|
|
1134
|
+
ChangeRequestTimelineResponseSchema,
|
|
1135
|
+
ComplianceExportExitGateSchema,
|
|
1136
|
+
ComplianceExportFormatSchema,
|
|
1137
|
+
ComplianceExportManifestItemSchema,
|
|
1138
|
+
ComplianceFrameworkControlMappingSchema,
|
|
1139
|
+
ComplianceFrameworkSchema,
|
|
1140
|
+
ControlBackoffStateSchema,
|
|
1141
|
+
ControlFailureSchema,
|
|
1142
|
+
ControlJobAttemptSchema,
|
|
1143
|
+
ControlJobBlockRequestSchema,
|
|
1144
|
+
ControlJobEventSchema,
|
|
1145
|
+
ControlJobRunNextResponseSchema,
|
|
1146
|
+
ControlJobScheduleRequestSchema,
|
|
1147
|
+
ControlJobSchema,
|
|
1148
|
+
ControlJobStateSchema,
|
|
1149
|
+
ControlSuppressionStateSchema,
|
|
1150
|
+
CreateComplianceExportRequestSchema,
|
|
1151
|
+
DataBoundaryDecisionActionSchema,
|
|
1152
|
+
DataBoundaryDecisionSchema,
|
|
1153
|
+
DataBoundaryEvaluateRequestSchema,
|
|
1154
|
+
DataBoundaryEvaluateResponseSchema,
|
|
1155
|
+
DataBoundaryMaskingStrategySchema,
|
|
1156
|
+
DataBoundaryPolicyCreateRequestSchema,
|
|
1157
|
+
DataBoundaryPolicyListResponseSchema,
|
|
1158
|
+
DataBoundaryPolicyModeSchema,
|
|
1159
|
+
DataBoundaryPolicySchema,
|
|
1160
|
+
DataBoundaryPolicyStatusSchema,
|
|
1161
|
+
DataBoundaryPolicyUpdateRequestSchema,
|
|
1162
|
+
DataBoundaryRuleSchema,
|
|
1163
|
+
DataBoundaryRuleTargetSchema,
|
|
1164
|
+
DataBoundaryRuleUpsertInputSchema,
|
|
1165
|
+
DriftDimensionSchema,
|
|
1166
|
+
DriftMetricBaselineSchema,
|
|
1167
|
+
DriftMetricKeySchema,
|
|
1168
|
+
DriftSignalGenerateRequestSchema,
|
|
1169
|
+
DriftSignalGenerateResponseSchema,
|
|
1170
|
+
DriftSignalListResponseSchema,
|
|
1171
|
+
DriftSignalSchema,
|
|
1172
|
+
DriftSignalSeveritySchema,
|
|
1173
|
+
EdgeInterceptorModeSchema,
|
|
1174
|
+
EdgeInterceptorRegisterRequestSchema,
|
|
1175
|
+
EdgeInterceptorRegistrationSchema,
|
|
1176
|
+
EdgeInterceptorStatusSchema,
|
|
1177
|
+
EntitlementDecisionSchema,
|
|
1178
|
+
FirewallDecisionActionSchema,
|
|
1179
|
+
FirewallEventSchema,
|
|
1180
|
+
FirewallEventsResponseSchema,
|
|
1181
|
+
FirewallFindingCategorySchema,
|
|
1182
|
+
FirewallFindingSeveritySchema,
|
|
1183
|
+
FirewallInspectFindingSchema,
|
|
1184
|
+
FirewallInspectRequestSchema,
|
|
1185
|
+
FirewallInspectResponseSchema,
|
|
1186
|
+
FirewallInspectResultSchema,
|
|
1187
|
+
FirewallInspectionModeSchema,
|
|
1188
|
+
FirewallInspectionTargetSchema,
|
|
1189
|
+
GitHubDispatchControlPayloadSchema,
|
|
1190
|
+
GovernedRunRequestSchema,
|
|
1191
|
+
HeadlessRunRequestSchema,
|
|
1192
|
+
LineageEdgeSchema,
|
|
1193
|
+
LineageNodeSchema,
|
|
1194
|
+
LineageNodeTypeSchema,
|
|
1195
|
+
LineageQueryRequestSchema,
|
|
1196
|
+
LineageQueryResponseSchema,
|
|
1197
|
+
PolicyDecisionSchema,
|
|
1198
|
+
PolicyExitGateEvidenceSchema,
|
|
1199
|
+
PolicyTimelineResponseSchema,
|
|
1200
|
+
RiskAnomalySignalSchema,
|
|
1201
|
+
RiskBaselineCaptureRequestSchema,
|
|
1202
|
+
RiskBaselineCaptureResponseSchema,
|
|
1203
|
+
RiskBaselineSchema,
|
|
1204
|
+
RiskBaselineWindowSchema,
|
|
1205
|
+
RiskFactorSchema,
|
|
1206
|
+
RiskScoreCheckRequestSchema,
|
|
1207
|
+
RiskScoreCheckResponseSchema,
|
|
1208
|
+
RiskScoreResultSchema,
|
|
1209
|
+
RiskSignalGenerateRequestSchema,
|
|
1210
|
+
RiskSignalGenerateResponseSchema,
|
|
1211
|
+
RiskSignalListResponseSchema,
|
|
1212
|
+
RiskSignalSeveritySchema,
|
|
1213
|
+
RiskSignalTypeSchema,
|
|
1214
|
+
RiskSubjectTypeSchema,
|
|
1215
|
+
RiskTierSchema,
|
|
1216
|
+
RiskTrendPointSchema,
|
|
1217
|
+
RiskTrendResponseSchema,
|
|
1218
|
+
RiskTrendWindowSchema,
|
|
1219
|
+
RouteTimelineResponseSchema,
|
|
1220
|
+
RunStateSchema,
|
|
1221
|
+
RunStateTransitionSchema,
|
|
1222
|
+
RunTriggerSourceSchema,
|
|
1223
|
+
SamlConnectionSchema,
|
|
1224
|
+
SandboxPolicyPreviewSchema,
|
|
1225
|
+
SandboxRiskPreviewSchema,
|
|
1226
|
+
SandboxSimulationArtifactSchema,
|
|
1227
|
+
SandboxSimulationListResponseSchema,
|
|
1228
|
+
SandboxSimulationReplayResponseSchema,
|
|
1229
|
+
SandboxSimulationRequestSchema,
|
|
1230
|
+
SandboxSimulationResultSchema,
|
|
1231
|
+
SandboxSimulationRunSchema,
|
|
1232
|
+
SandboxSimulationStatusSchema,
|
|
1233
|
+
ScimProvisioningTokenSchema,
|
|
1234
|
+
ServiceAccountSchema,
|
|
1235
|
+
ServiceAccountStatusSchema,
|
|
1236
|
+
StructuredErrorEnvelopeSchema,
|
|
1237
|
+
TimelineEntityTypeSchema,
|
|
1238
|
+
TimelineEventSchema,
|
|
1239
|
+
UsageBreakdownSchema,
|
|
1240
|
+
UsageTimeframeSchema,
|
|
1241
|
+
UsageTimeseriesPointSchema,
|
|
1242
|
+
UsageTimeseriesResponseSchema,
|
|
1243
|
+
V4EphemeralExecuteRequestSchema,
|
|
1244
|
+
V4ExecutionRequestSchema,
|
|
1245
|
+
V4ExecutionResultSchema,
|
|
1246
|
+
V4SessionResourceSchema,
|
|
1247
|
+
V4SessionStartRequestSchema,
|
|
1248
|
+
WorkflowBuilderDocumentSchema,
|
|
1249
|
+
WorkflowBuilderEdgeSchema,
|
|
1250
|
+
WorkflowBuilderNodeSchema,
|
|
1251
|
+
WorkflowBuilderViewportSchema,
|
|
1252
|
+
WorkflowVersionSchema,
|
|
1253
|
+
WorkspaceRoleBindingSchema
|
|
1254
|
+
};
|
|
1255
|
+
//# sourceMappingURL=index.js.map
|