@pithy-sh/audit 0.5.0 → 0.7.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/README.md +93 -0
- package/dist/accessHistory.d.ts +315 -0
- package/dist/accessHistory.d.ts.map +1 -0
- package/dist/accessHistory.js +299 -0
- package/dist/actions.d.ts +15 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +16 -2
- package/dist/capability.d.ts +14 -0
- package/dist/capability.d.ts.map +1 -1
- package/dist/capability.js +124 -12
- package/dist/chain/append.d.ts +43 -0
- package/dist/chain/append.d.ts.map +1 -0
- package/dist/chain/append.js +110 -0
- package/dist/chain/checkpoint.d.ts +70 -0
- package/dist/chain/checkpoint.d.ts.map +1 -0
- package/dist/chain/checkpoint.js +133 -0
- package/dist/chain/lockCheck.d.ts +15 -0
- package/dist/chain/lockCheck.d.ts.map +1 -0
- package/dist/chain/lockCheck.js +75 -0
- package/dist/chain/prune.d.ts +84 -0
- package/dist/chain/prune.d.ts.map +1 -0
- package/dist/chain/prune.js +231 -0
- package/dist/chain/rows.d.ts +74 -0
- package/dist/chain/rows.d.ts.map +1 -0
- package/dist/chain/rows.js +133 -0
- package/dist/chain/tombstone.d.ts +21 -0
- package/dist/chain/tombstone.d.ts.map +1 -0
- package/dist/chain/tombstone.js +98 -0
- package/dist/chain/verify.d.ts +63 -0
- package/dist/chain/verify.d.ts.map +1 -0
- package/dist/chain/verify.js +220 -0
- package/dist/citations.d.ts +17 -0
- package/dist/citations.d.ts.map +1 -0
- package/dist/citations.js +48 -0
- package/dist/cli/emitFromCLI.d.ts +5 -0
- package/dist/cli/emitFromCLI.d.ts.map +1 -1
- package/dist/cli/emitFromCLI.js +5 -0
- package/dist/data/auditEvent.d.ts +4 -0
- package/dist/data/auditEvent.d.ts.map +1 -1
- package/dist/data/auditEvent.js +7 -3
- package/dist/data/sinkState.d.ts +23 -0
- package/dist/data/sinkState.d.ts.map +1 -0
- package/dist/data/sinkState.js +25 -0
- package/dist/data/tables.d.ts +14 -1
- package/dist/data/tables.d.ts.map +1 -1
- package/dist/data/tables.js +5 -1
- package/dist/http/guards.d.ts +39 -6
- package/dist/http/guards.d.ts.map +1 -1
- package/dist/http/guards.js +101 -17
- package/dist/http/responses.d.ts +503 -0
- package/dist/http/responses.d.ts.map +1 -1
- package/dist/http/responses.js +157 -5
- package/dist/http/routes.d.ts +25 -3
- package/dist/http/routes.d.ts.map +1 -1
- package/dist/http/routes.js +321 -15
- package/dist/http/schemas.d.ts +67 -0
- package/dist/http/schemas.d.ts.map +1 -1
- package/dist/http/schemas.js +88 -4
- package/dist/http/views.d.ts +25 -1
- package/dist/http/views.d.ts.map +1 -1
- package/dist/http/views.js +107 -2
- package/dist/migrations/0003_call_index.d.ts +21 -0
- package/dist/migrations/0003_call_index.d.ts.map +1 -0
- package/dist/migrations/0003_call_index.js +33 -0
- package/dist/migrations/0004_request_index.d.ts +16 -0
- package/dist/migrations/0004_request_index.d.ts.map +1 -0
- package/dist/migrations/0004_request_index.js +24 -0
- package/dist/migrations/0005_chain.d.ts +24 -0
- package/dist/migrations/0005_chain.d.ts.map +1 -0
- package/dist/migrations/0005_chain.js +43 -0
- package/dist/migrations/0006_sinks.d.ts +11 -0
- package/dist/migrations/0006_sinks.d.ts.map +1 -0
- package/dist/migrations/0006_sinks.js +20 -0
- package/dist/provision/resolveAuditConfig.d.ts +31 -0
- package/dist/provision/resolveAuditConfig.d.ts.map +1 -0
- package/dist/provision/resolveAuditConfig.js +43 -0
- package/dist/purge/contribution.d.ts +21 -0
- package/dist/purge/contribution.d.ts.map +1 -0
- package/dist/purge/contribution.js +41 -0
- package/dist/reach.d.ts +250 -0
- package/dist/reach.d.ts.map +1 -0
- package/dist/reach.js +244 -0
- package/dist/recorder.d.ts +11 -0
- package/dist/recorder.d.ts.map +1 -1
- package/dist/recorder.js +23 -5
- package/dist/routePattern.d.ts +60 -0
- package/dist/routePattern.d.ts.map +1 -0
- package/dist/routePattern.js +130 -0
- package/dist/seeds/example.d.ts.map +1 -1
- package/dist/seeds/example.js +23 -6
- package/dist/ship/consumer.d.ts +45 -0
- package/dist/ship/consumer.d.ts.map +1 -0
- package/dist/ship/consumer.js +141 -0
- package/dist/ship/event.d.ts +59 -0
- package/dist/ship/event.d.ts.map +1 -0
- package/dist/ship/event.js +77 -0
- package/dist/ship/health.d.ts +33 -0
- package/dist/ship/health.d.ts.map +1 -0
- package/dist/ship/health.js +80 -0
- package/dist/ship/profiles.d.ts +34 -0
- package/dist/ship/profiles.d.ts.map +1 -0
- package/dist/ship/profiles.js +62 -0
- package/dist/ship/queue.d.ts +57 -0
- package/dist/ship/queue.d.ts.map +1 -0
- package/dist/ship/queue.js +70 -0
- package/dist/ship/secrets.d.ts +7 -0
- package/dist/ship/secrets.d.ts.map +1 -0
- package/dist/ship/secrets.js +40 -0
- package/dist/ship/shipper.d.ts +15 -0
- package/dist/ship/shipper.d.ts.map +1 -0
- package/dist/ship/shipper.js +27 -0
- package/dist/ship/sinks.d.ts +54 -0
- package/dist/ship/sinks.d.ts.map +1 -0
- package/dist/ship/sinks.js +45 -0
- package/dist/ship/state.d.ts +27 -0
- package/dist/ship/state.d.ts.map +1 -0
- package/dist/ship/state.js +29 -0
- package/dist/usage.d.ts +159 -0
- package/dist/usage.d.ts.map +1 -0
- package/dist/usage.js +87 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/workflows/prune.d.ts +73 -0
- package/dist/workflows/prune.d.ts.map +1 -0
- package/dist/workflows/prune.js +128 -0
- package/dist/workflows/retryPolicy.d.ts +10 -0
- package/dist/workflows/retryPolicy.d.ts.map +1 -0
- package/dist/workflows/retryPolicy.js +14 -0
- package/dist/workflows/specs.d.ts +70 -0
- package/dist/workflows/specs.d.ts.map +1 -0
- package/dist/workflows/specs.js +70 -0
- package/dist/workflows/worker.d.ts +32 -0
- package/dist/workflows/worker.d.ts.map +1 -0
- package/dist/workflows/worker.js +41 -0
- package/package.json +5 -2
- package/pithy.manifest.json +36 -4
- package/src/accessHistory.ts +360 -0
- package/src/actions.ts +15 -1
- package/src/capability.ts +154 -12
- package/src/chain/append.ts +161 -0
- package/src/chain/checkpoint.ts +172 -0
- package/src/chain/lockCheck.ts +72 -0
- package/src/chain/prune.ts +340 -0
- package/src/chain/rows.ts +211 -0
- package/src/chain/tombstone.ts +104 -0
- package/src/chain/verify.ts +366 -0
- package/src/citations.ts +62 -0
- package/src/cli/emitFromCLI.ts +5 -0
- package/src/cloudflare-test.d.ts +1 -0
- package/src/data/auditEvent.ts +31 -1
- package/src/data/sinkState.ts +41 -0
- package/src/data/tables.ts +7 -1
- package/src/http/guards.ts +90 -6
- package/src/http/responses.ts +318 -3
- package/src/http/routes.ts +379 -7
- package/src/http/schemas.ts +158 -2
- package/src/http/views.ts +123 -1
- package/src/migrations/0003_call_index.ts +35 -0
- package/src/migrations/0004_request_index.ts +26 -0
- package/src/migrations/0005_chain.ts +56 -0
- package/src/migrations/0006_sinks.ts +28 -0
- package/src/provision/resolveAuditConfig.ts +60 -0
- package/src/purge/contribution.ts +39 -0
- package/src/reach.ts +454 -0
- package/src/recorder.ts +64 -42
- package/src/routePattern.ts +141 -0
- package/src/seeds/example.ts +13 -0
- package/src/ship/consumer.ts +169 -0
- package/src/ship/event.ts +86 -0
- package/src/ship/health.ts +92 -0
- package/src/ship/profiles.ts +99 -0
- package/src/ship/queue.ts +108 -0
- package/src/ship/secrets.ts +42 -0
- package/src/ship/shipper.ts +32 -0
- package/src/ship/sinks.ts +82 -0
- package/src/ship/state.ts +61 -0
- package/src/usage.ts +176 -0
- package/src/version.generated.ts +1 -1
- package/src/workflows/prune.ts +196 -0
- package/src/workflows/retryPolicy.ts +14 -0
- package/src/workflows/specs.ts +92 -0
- package/src/workflows/worker.ts +65 -0
- package/src/workflows/wrangler.jsonc +40 -0
package/dist/http/guards.js
CHANGED
|
@@ -30,10 +30,33 @@
|
|
|
30
30
|
* `metadata` bag — which routinely holds the email address, the resource name, or the reason a
|
|
31
31
|
* capability recorded alongside its event. Bulk-harvesting those over a whole trail is a privacy
|
|
32
32
|
* incident, and requiring a second scope is what makes it a decision the adopter makes rather than
|
|
33
|
-
* one a listing credential comes with. Since the
|
|
34
|
-
* the detail scope cannot enumerate the trail to find ids to read, and a credential holding only the
|
|
35
|
-
*
|
|
36
|
-
*
|
|
33
|
+
* one a listing credential comes with. Since the listing and detail routes are separate, a credential holding
|
|
34
|
+
* only the detail scope cannot enumerate the trail to find ids to read, and a credential holding only the list scope
|
|
35
|
+
* cannot resolve one. `scopeCovers` matches exactly — no prefix, no wildcard — so holding one confers nothing about
|
|
36
|
+
* the other.
|
|
37
|
+
*
|
|
38
|
+
* **Usage rides the listing scope.** `GET {base}/control-plane/usage` counts one connection's calls by scope
|
|
39
|
+
* and key. Its answer is the scope, the key id, and the method and path of the last allowed call — the management
|
|
40
|
+
* client's own footprint, which the listing already discloses in shape through `action`, `actorId` and `resourceId`
|
|
41
|
+
* — and never an IP, a user-agent, or any other metadata key. So it needs no detail scope, and an access review does
|
|
42
|
+
* not have to hold the most dangerous grant audit defines to ask which grants are used.
|
|
43
|
+
*
|
|
44
|
+
* **The access history rides the listing scope.** `GET {base}/control-plane/access-history` answers every
|
|
45
|
+
* membership, connection and key change in a window with its before and after — roles, scopes, the connection's
|
|
46
|
+
* kind, purpose and principal, a key id. It lifts those named metadata keys and no other, and never an IP or a
|
|
47
|
+
* user-agent, so replaying who could reach the data does not need the grant that discloses where everyone was.
|
|
48
|
+
*
|
|
49
|
+
* **Reach rides the listing scope.** `GET {base}/control-plane/reach` answers what one credential touched:
|
|
50
|
+
* per tenant, route and outcome, counts and two instants, and on request one route's called paths and the subject
|
|
51
|
+
* ids they name. Those ids are segments of paths the credential itself sent, naming the subjects the listing
|
|
52
|
+
* already names in `resourceId`, and the tenant is what it shows as `tenant`; the answer never carries an IP, a user-agent, or a metadata key beyond the key id, scope, method and
|
|
53
|
+
* path. So a breach review does not need the detail scope to draw a breach scope.
|
|
54
|
+
*
|
|
55
|
+
* **The chain has a scope of its own.** `GET {base}/control-plane/verify` walks one tenant's chain, and
|
|
56
|
+
* `GET {base}/control-plane/export` takes it out in canonical form with its checkpoints. An export is the trail in
|
|
57
|
+
* bulk, meant to leave the building, so neither read rides the listing scope: both need `audit:events:export`. The
|
|
58
|
+
* export carries IP, user-agent and metadata values only when the connection also holds the detail scope, and their
|
|
59
|
+
* salted hashes otherwise, which verify and disclose nothing.
|
|
37
60
|
*
|
|
38
61
|
* The names are constants rather than config: a configurable scope name is a way to misconfigure a
|
|
39
62
|
* default-denied gate into a differently-named one, and they are the join key with what
|
|
@@ -50,10 +73,24 @@ const AUDIT_TRAIL_READ_SCOPE = "audit:events:read";
|
|
|
50
73
|
*/
|
|
51
74
|
const AUDIT_EVENT_DETAIL_READ_SCOPE = "audit:events:read_detail";
|
|
52
75
|
/**
|
|
76
|
+
* Verify and export the hash chain: walk one tenant's chain against its checkpoints, and take it out in
|
|
77
|
+
* canonical form for an auditor to check offline.
|
|
78
|
+
*
|
|
79
|
+
* Its own scope, because an export is the trail in bulk — every event of a tenant, in a form meant to leave the
|
|
80
|
+
* building. The IP, user-agent and metadata ride along only when the connection also holds
|
|
81
|
+
* {@link AUDIT_EVENT_DETAIL_READ_SCOPE}; without it the export carries their salted hashes, which verify and
|
|
82
|
+
* disclose nothing.
|
|
83
|
+
*/
|
|
84
|
+
const AUDIT_CHAIN_EXPORT_SCOPE = "audit:events:export";
|
|
85
|
+
/**
|
|
53
86
|
* Every control-plane scope audit defines — what `pithy dashboard connect` offers for this capability,
|
|
54
87
|
* and the list a manifest or a doc quotes rather than re-typing.
|
|
55
88
|
*/
|
|
56
|
-
const AUDIT_CONTROL_PLANE_SCOPES = [
|
|
89
|
+
const AUDIT_CONTROL_PLANE_SCOPES = [
|
|
90
|
+
AUDIT_TRAIL_READ_SCOPE,
|
|
91
|
+
AUDIT_EVENT_DETAIL_READ_SCOPE,
|
|
92
|
+
AUDIT_CHAIN_EXPORT_SCOPE
|
|
93
|
+
];
|
|
57
94
|
/**
|
|
58
95
|
* Audit's management surface, as `GET /control-plane/manifest` reports it.
|
|
59
96
|
*
|
|
@@ -66,17 +103,64 @@ const AUDIT_CONTROL_PLANE_SCOPES = [AUDIT_TRAIL_READ_SCOPE, AUDIT_EVENT_DETAIL_R
|
|
|
66
103
|
* about to open over other people's activity.
|
|
67
104
|
*/
|
|
68
105
|
function auditAdminRoutes(basePath) {
|
|
69
|
-
return [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
106
|
+
return [
|
|
107
|
+
{
|
|
108
|
+
method: "GET",
|
|
109
|
+
operation: "events.list",
|
|
110
|
+
path: `${basePath}/events`,
|
|
111
|
+
scope: AUDIT_TRAIL_READ_SCOPE,
|
|
112
|
+
kind: "reads",
|
|
113
|
+
summary: "Page the trail, newest first, filtered by actor, action, resource, outcome, severity, origin, and time."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
method: "GET",
|
|
117
|
+
operation: "access_history.read",
|
|
118
|
+
path: `${basePath}/control-plane/access-history`,
|
|
119
|
+
scope: AUDIT_TRAIL_READ_SCOPE,
|
|
120
|
+
kind: "reads",
|
|
121
|
+
summary: "Replay who could do what: every membership, connection and key change in a window, oldest first, with its before and after. No event is read in full."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
method: "GET",
|
|
125
|
+
operation: "reach.read",
|
|
126
|
+
path: `${basePath}/control-plane/reach`,
|
|
127
|
+
scope: AUDIT_TRAIL_READ_SCOPE,
|
|
128
|
+
kind: "reads",
|
|
129
|
+
summary: "Read what one control-plane credential reached, by tenant, route and outcome, and expand a route into the subjects it touched."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
method: "GET",
|
|
133
|
+
operation: "usage.read",
|
|
134
|
+
path: `${basePath}/control-plane/usage`,
|
|
135
|
+
scope: AUDIT_TRAIL_READ_SCOPE,
|
|
136
|
+
kind: "reads",
|
|
137
|
+
summary: "Count which scopes one control-plane connection exercised and was refused, by key, over a window. Counts only — no event is read in full."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
method: "GET",
|
|
141
|
+
operation: "chain.verify",
|
|
142
|
+
path: `${basePath}/control-plane/verify`,
|
|
143
|
+
scope: AUDIT_CHAIN_EXPORT_SCOPE,
|
|
144
|
+
kind: "reads",
|
|
145
|
+
summary: "Walk one tenant's hash chain against its checkpoints, and say whether it is whole or where it first breaks."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
method: "GET",
|
|
149
|
+
operation: "chain.export",
|
|
150
|
+
path: `${basePath}/control-plane/export`,
|
|
151
|
+
scope: AUDIT_CHAIN_EXPORT_SCOPE,
|
|
152
|
+
kind: "reads",
|
|
153
|
+
summary: "Export one tenant's hash chain in canonical form with its checkpoints, to verify offline. Personal values only with the detail scope."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
method: "GET",
|
|
157
|
+
operation: "events.read",
|
|
158
|
+
path: `${basePath}/events/:eventId`,
|
|
159
|
+
scope: AUDIT_EVENT_DETAIL_READ_SCOPE,
|
|
160
|
+
kind: "reads",
|
|
161
|
+
summary: "Read one event in full, including the client IP, user-agent, and capability metadata."
|
|
162
|
+
}
|
|
163
|
+
];
|
|
80
164
|
}
|
|
81
165
|
//#endregion
|
|
82
|
-
export { AUDIT_CONTROL_PLANE_SCOPES, AUDIT_EVENT_DETAIL_READ_SCOPE, AUDIT_TRAIL_READ_SCOPE, auditAdminRoutes };
|
|
166
|
+
export { AUDIT_CHAIN_EXPORT_SCOPE, AUDIT_CONTROL_PLANE_SCOPES, AUDIT_EVENT_DETAIL_READ_SCOPE, AUDIT_TRAIL_READ_SCOPE, auditAdminRoutes };
|
package/dist/http/responses.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare const AuditEventView: z.ZodObject<{
|
|
|
43
43
|
worker: z.ZodNullable<z.ZodString>;
|
|
44
44
|
version: z.ZodNullable<z.ZodString>;
|
|
45
45
|
tenant: z.ZodNullable<z.ZodString>;
|
|
46
|
+
chainSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
47
|
}, z.core.$strip>;
|
|
47
48
|
export type AuditEventView = z.output<typeof AuditEventView>;
|
|
48
49
|
/**
|
|
@@ -86,6 +87,7 @@ export declare const AuditEventDetailView: z.ZodObject<{
|
|
|
86
87
|
worker: z.ZodNullable<z.ZodString>;
|
|
87
88
|
version: z.ZodNullable<z.ZodString>;
|
|
88
89
|
tenant: z.ZodNullable<z.ZodString>;
|
|
90
|
+
chainSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
89
91
|
ip: z.ZodNullable<z.ZodString>;
|
|
90
92
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
91
93
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -129,6 +131,7 @@ export declare const AuditEventsResponse: z.ZodObject<{
|
|
|
129
131
|
worker: z.ZodNullable<z.ZodString>;
|
|
130
132
|
version: z.ZodNullable<z.ZodString>;
|
|
131
133
|
tenant: z.ZodNullable<z.ZodString>;
|
|
134
|
+
chainSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
132
135
|
}, z.core.$strip>>;
|
|
133
136
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
134
137
|
}, z.core.$strip>;
|
|
@@ -171,10 +174,510 @@ export declare const AuditEventResponse: z.ZodObject<{
|
|
|
171
174
|
worker: z.ZodNullable<z.ZodString>;
|
|
172
175
|
version: z.ZodNullable<z.ZodString>;
|
|
173
176
|
tenant: z.ZodNullable<z.ZodString>;
|
|
177
|
+
chainSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
174
178
|
ip: z.ZodNullable<z.ZodString>;
|
|
175
179
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
176
180
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
181
|
}, z.core.$strip>;
|
|
178
182
|
}, z.core.$strip>;
|
|
179
183
|
export type AuditEventResponse = z.output<typeof AuditEventResponse>;
|
|
184
|
+
/** A membership joined, changed role, or ended. */
|
|
185
|
+
export declare const MemberAccessChange: z.ZodObject<{
|
|
186
|
+
eventId: z.ZodString;
|
|
187
|
+
occurredAt: z.ZodISODateTime;
|
|
188
|
+
action: z.ZodString;
|
|
189
|
+
actorType: z.ZodEnum<{
|
|
190
|
+
anonymous: "anonymous";
|
|
191
|
+
"control-plane": "control-plane";
|
|
192
|
+
service: "service";
|
|
193
|
+
system: "system";
|
|
194
|
+
user: "user";
|
|
195
|
+
}>;
|
|
196
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
197
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
198
|
+
agent: "agent";
|
|
199
|
+
dashboard: "dashboard";
|
|
200
|
+
script: "script";
|
|
201
|
+
}>>;
|
|
202
|
+
detail: z.ZodEnum<{
|
|
203
|
+
not_recorded: "not_recorded";
|
|
204
|
+
recorded: "recorded";
|
|
205
|
+
}>;
|
|
206
|
+
subject: z.ZodLiteral<"member">;
|
|
207
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
208
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
209
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
210
|
+
roleBefore: z.ZodNullable<z.ZodString>;
|
|
211
|
+
roleAfter: z.ZodNullable<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export type MemberAccessChange = z.output<typeof MemberAccessChange>;
|
|
214
|
+
/** A control-plane connection was registered, updated, or removed. */
|
|
215
|
+
export declare const ConnectionAccessChange: z.ZodObject<{
|
|
216
|
+
eventId: z.ZodString;
|
|
217
|
+
occurredAt: z.ZodISODateTime;
|
|
218
|
+
action: z.ZodString;
|
|
219
|
+
actorType: z.ZodEnum<{
|
|
220
|
+
anonymous: "anonymous";
|
|
221
|
+
"control-plane": "control-plane";
|
|
222
|
+
service: "service";
|
|
223
|
+
system: "system";
|
|
224
|
+
user: "user";
|
|
225
|
+
}>;
|
|
226
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
227
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
228
|
+
agent: "agent";
|
|
229
|
+
dashboard: "dashboard";
|
|
230
|
+
script: "script";
|
|
231
|
+
}>>;
|
|
232
|
+
detail: z.ZodEnum<{
|
|
233
|
+
not_recorded: "not_recorded";
|
|
234
|
+
recorded: "recorded";
|
|
235
|
+
}>;
|
|
236
|
+
subject: z.ZodLiteral<"connection">;
|
|
237
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
238
|
+
connectionKind: z.ZodNullable<z.ZodEnum<{
|
|
239
|
+
agent: "agent";
|
|
240
|
+
dashboard: "dashboard";
|
|
241
|
+
script: "script";
|
|
242
|
+
}>>;
|
|
243
|
+
purpose: z.ZodNullable<z.ZodString>;
|
|
244
|
+
principal: z.ZodNullable<z.ZodString>;
|
|
245
|
+
scopesBefore: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
246
|
+
scopesAfter: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
247
|
+
replacedConnectionId: z.ZodNullable<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
export type ConnectionAccessChange = z.output<typeof ConnectionAccessChange>;
|
|
250
|
+
/** A key on a connection was registered, expired, or revoked. */
|
|
251
|
+
export declare const KeyAccessChange: z.ZodObject<{
|
|
252
|
+
eventId: z.ZodString;
|
|
253
|
+
occurredAt: z.ZodISODateTime;
|
|
254
|
+
action: z.ZodString;
|
|
255
|
+
actorType: z.ZodEnum<{
|
|
256
|
+
anonymous: "anonymous";
|
|
257
|
+
"control-plane": "control-plane";
|
|
258
|
+
service: "service";
|
|
259
|
+
system: "system";
|
|
260
|
+
user: "user";
|
|
261
|
+
}>;
|
|
262
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
263
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
264
|
+
agent: "agent";
|
|
265
|
+
dashboard: "dashboard";
|
|
266
|
+
script: "script";
|
|
267
|
+
}>>;
|
|
268
|
+
detail: z.ZodEnum<{
|
|
269
|
+
not_recorded: "not_recorded";
|
|
270
|
+
recorded: "recorded";
|
|
271
|
+
}>;
|
|
272
|
+
subject: z.ZodLiteral<"key">;
|
|
273
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
274
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
275
|
+
change: z.ZodEnum<{
|
|
276
|
+
expired: "expired";
|
|
277
|
+
registered: "registered";
|
|
278
|
+
revoked: "revoked";
|
|
279
|
+
}>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
export type KeyAccessChange = z.output<typeof KeyAccessChange>;
|
|
282
|
+
/** One access change, discriminated on what changed. */
|
|
283
|
+
export declare const AccessChangeView: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
284
|
+
eventId: z.ZodString;
|
|
285
|
+
occurredAt: z.ZodISODateTime;
|
|
286
|
+
action: z.ZodString;
|
|
287
|
+
actorType: z.ZodEnum<{
|
|
288
|
+
anonymous: "anonymous";
|
|
289
|
+
"control-plane": "control-plane";
|
|
290
|
+
service: "service";
|
|
291
|
+
system: "system";
|
|
292
|
+
user: "user";
|
|
293
|
+
}>;
|
|
294
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
295
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
296
|
+
agent: "agent";
|
|
297
|
+
dashboard: "dashboard";
|
|
298
|
+
script: "script";
|
|
299
|
+
}>>;
|
|
300
|
+
detail: z.ZodEnum<{
|
|
301
|
+
not_recorded: "not_recorded";
|
|
302
|
+
recorded: "recorded";
|
|
303
|
+
}>;
|
|
304
|
+
subject: z.ZodLiteral<"member">;
|
|
305
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
306
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
307
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
308
|
+
roleBefore: z.ZodNullable<z.ZodString>;
|
|
309
|
+
roleAfter: z.ZodNullable<z.ZodString>;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
eventId: z.ZodString;
|
|
312
|
+
occurredAt: z.ZodISODateTime;
|
|
313
|
+
action: z.ZodString;
|
|
314
|
+
actorType: z.ZodEnum<{
|
|
315
|
+
anonymous: "anonymous";
|
|
316
|
+
"control-plane": "control-plane";
|
|
317
|
+
service: "service";
|
|
318
|
+
system: "system";
|
|
319
|
+
user: "user";
|
|
320
|
+
}>;
|
|
321
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
322
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
323
|
+
agent: "agent";
|
|
324
|
+
dashboard: "dashboard";
|
|
325
|
+
script: "script";
|
|
326
|
+
}>>;
|
|
327
|
+
detail: z.ZodEnum<{
|
|
328
|
+
not_recorded: "not_recorded";
|
|
329
|
+
recorded: "recorded";
|
|
330
|
+
}>;
|
|
331
|
+
subject: z.ZodLiteral<"connection">;
|
|
332
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
333
|
+
connectionKind: z.ZodNullable<z.ZodEnum<{
|
|
334
|
+
agent: "agent";
|
|
335
|
+
dashboard: "dashboard";
|
|
336
|
+
script: "script";
|
|
337
|
+
}>>;
|
|
338
|
+
purpose: z.ZodNullable<z.ZodString>;
|
|
339
|
+
principal: z.ZodNullable<z.ZodString>;
|
|
340
|
+
scopesBefore: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
341
|
+
scopesAfter: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
342
|
+
replacedConnectionId: z.ZodNullable<z.ZodString>;
|
|
343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
344
|
+
eventId: z.ZodString;
|
|
345
|
+
occurredAt: z.ZodISODateTime;
|
|
346
|
+
action: z.ZodString;
|
|
347
|
+
actorType: z.ZodEnum<{
|
|
348
|
+
anonymous: "anonymous";
|
|
349
|
+
"control-plane": "control-plane";
|
|
350
|
+
service: "service";
|
|
351
|
+
system: "system";
|
|
352
|
+
user: "user";
|
|
353
|
+
}>;
|
|
354
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
355
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
356
|
+
agent: "agent";
|
|
357
|
+
dashboard: "dashboard";
|
|
358
|
+
script: "script";
|
|
359
|
+
}>>;
|
|
360
|
+
detail: z.ZodEnum<{
|
|
361
|
+
not_recorded: "not_recorded";
|
|
362
|
+
recorded: "recorded";
|
|
363
|
+
}>;
|
|
364
|
+
subject: z.ZodLiteral<"key">;
|
|
365
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
366
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
367
|
+
change: z.ZodEnum<{
|
|
368
|
+
expired: "expired";
|
|
369
|
+
registered: "registered";
|
|
370
|
+
revoked: "revoked";
|
|
371
|
+
}>;
|
|
372
|
+
}, z.core.$strip>], "subject">;
|
|
373
|
+
export type AccessChangeView = z.output<typeof AccessChangeView>;
|
|
374
|
+
/** `GET {base}/control-plane/access-history`. */
|
|
375
|
+
export declare const AccessHistoryResponse: z.ZodObject<{
|
|
376
|
+
since: z.ZodISODateTime;
|
|
377
|
+
until: z.ZodISODateTime;
|
|
378
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
379
|
+
eventId: z.ZodString;
|
|
380
|
+
occurredAt: z.ZodISODateTime;
|
|
381
|
+
action: z.ZodString;
|
|
382
|
+
actorType: z.ZodEnum<{
|
|
383
|
+
anonymous: "anonymous";
|
|
384
|
+
"control-plane": "control-plane";
|
|
385
|
+
service: "service";
|
|
386
|
+
system: "system";
|
|
387
|
+
user: "user";
|
|
388
|
+
}>;
|
|
389
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
390
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
391
|
+
agent: "agent";
|
|
392
|
+
dashboard: "dashboard";
|
|
393
|
+
script: "script";
|
|
394
|
+
}>>;
|
|
395
|
+
detail: z.ZodEnum<{
|
|
396
|
+
not_recorded: "not_recorded";
|
|
397
|
+
recorded: "recorded";
|
|
398
|
+
}>;
|
|
399
|
+
subject: z.ZodLiteral<"member">;
|
|
400
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
401
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
402
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
403
|
+
roleBefore: z.ZodNullable<z.ZodString>;
|
|
404
|
+
roleAfter: z.ZodNullable<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
eventId: z.ZodString;
|
|
407
|
+
occurredAt: z.ZodISODateTime;
|
|
408
|
+
action: z.ZodString;
|
|
409
|
+
actorType: z.ZodEnum<{
|
|
410
|
+
anonymous: "anonymous";
|
|
411
|
+
"control-plane": "control-plane";
|
|
412
|
+
service: "service";
|
|
413
|
+
system: "system";
|
|
414
|
+
user: "user";
|
|
415
|
+
}>;
|
|
416
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
417
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
418
|
+
agent: "agent";
|
|
419
|
+
dashboard: "dashboard";
|
|
420
|
+
script: "script";
|
|
421
|
+
}>>;
|
|
422
|
+
detail: z.ZodEnum<{
|
|
423
|
+
not_recorded: "not_recorded";
|
|
424
|
+
recorded: "recorded";
|
|
425
|
+
}>;
|
|
426
|
+
subject: z.ZodLiteral<"connection">;
|
|
427
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
428
|
+
connectionKind: z.ZodNullable<z.ZodEnum<{
|
|
429
|
+
agent: "agent";
|
|
430
|
+
dashboard: "dashboard";
|
|
431
|
+
script: "script";
|
|
432
|
+
}>>;
|
|
433
|
+
purpose: z.ZodNullable<z.ZodString>;
|
|
434
|
+
principal: z.ZodNullable<z.ZodString>;
|
|
435
|
+
scopesBefore: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
436
|
+
scopesAfter: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
437
|
+
replacedConnectionId: z.ZodNullable<z.ZodString>;
|
|
438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
439
|
+
eventId: z.ZodString;
|
|
440
|
+
occurredAt: z.ZodISODateTime;
|
|
441
|
+
action: z.ZodString;
|
|
442
|
+
actorType: z.ZodEnum<{
|
|
443
|
+
anonymous: "anonymous";
|
|
444
|
+
"control-plane": "control-plane";
|
|
445
|
+
service: "service";
|
|
446
|
+
system: "system";
|
|
447
|
+
user: "user";
|
|
448
|
+
}>;
|
|
449
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
450
|
+
actorKind: z.ZodNullable<z.ZodEnum<{
|
|
451
|
+
agent: "agent";
|
|
452
|
+
dashboard: "dashboard";
|
|
453
|
+
script: "script";
|
|
454
|
+
}>>;
|
|
455
|
+
detail: z.ZodEnum<{
|
|
456
|
+
not_recorded: "not_recorded";
|
|
457
|
+
recorded: "recorded";
|
|
458
|
+
}>;
|
|
459
|
+
subject: z.ZodLiteral<"key">;
|
|
460
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
461
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
462
|
+
change: z.ZodEnum<{
|
|
463
|
+
expired: "expired";
|
|
464
|
+
registered: "registered";
|
|
465
|
+
revoked: "revoked";
|
|
466
|
+
}>;
|
|
467
|
+
}, z.core.$strip>], "subject">>;
|
|
468
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
export type AccessHistoryResponse = z.output<typeof AccessHistoryResponse>;
|
|
471
|
+
/**
|
|
472
|
+
* One tenant, action, method, route and outcome a control-plane credential reached.
|
|
473
|
+
*
|
|
474
|
+
* Counts, two instants, and the route. No IP, no user-agent, no metadata key beyond what the route and scope already
|
|
475
|
+
* say: this is the credential's own footprint, which is why it sits behind the listing scope.
|
|
476
|
+
*/
|
|
477
|
+
export declare const ControlPlaneReachView: z.ZodObject<{
|
|
478
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
479
|
+
action: z.ZodString;
|
|
480
|
+
method: z.ZodString;
|
|
481
|
+
route: z.ZodString;
|
|
482
|
+
matched: z.ZodBoolean;
|
|
483
|
+
outcome: z.ZodString;
|
|
484
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
485
|
+
count: z.ZodNumber;
|
|
486
|
+
subjects: z.ZodNullable<z.ZodNumber>;
|
|
487
|
+
firstAt: z.ZodISODateTime;
|
|
488
|
+
lastAt: z.ZodISODateTime;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
export type ControlPlaneReachView = z.output<typeof ControlPlaneReachView>;
|
|
491
|
+
/** One path a route was called with, and the subject ids it names. */
|
|
492
|
+
export declare const ControlPlaneReachSubjectView: z.ZodObject<{
|
|
493
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
494
|
+
action: z.ZodString;
|
|
495
|
+
method: z.ZodString;
|
|
496
|
+
route: z.ZodString;
|
|
497
|
+
matched: z.ZodBoolean;
|
|
498
|
+
path: z.ZodString;
|
|
499
|
+
outcome: z.ZodString;
|
|
500
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
501
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
502
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
503
|
+
count: z.ZodNumber;
|
|
504
|
+
firstAt: z.ZodISODateTime;
|
|
505
|
+
lastAt: z.ZodISODateTime;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
export type ControlPlaneReachSubjectView = z.output<typeof ControlPlaneReachSubjectView>;
|
|
508
|
+
/** `GET {base}/control-plane/reach`. */
|
|
509
|
+
export declare const ControlPlaneReachResponse: z.ZodObject<{
|
|
510
|
+
connectionId: z.ZodString;
|
|
511
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
512
|
+
since: z.ZodISODateTime;
|
|
513
|
+
until: z.ZodISODateTime;
|
|
514
|
+
reach: z.ZodArray<z.ZodObject<{
|
|
515
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
516
|
+
action: z.ZodString;
|
|
517
|
+
method: z.ZodString;
|
|
518
|
+
route: z.ZodString;
|
|
519
|
+
matched: z.ZodBoolean;
|
|
520
|
+
outcome: z.ZodString;
|
|
521
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
522
|
+
count: z.ZodNumber;
|
|
523
|
+
subjects: z.ZodNullable<z.ZodNumber>;
|
|
524
|
+
firstAt: z.ZodISODateTime;
|
|
525
|
+
lastAt: z.ZodISODateTime;
|
|
526
|
+
}, z.core.$strip>>;
|
|
527
|
+
subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
529
|
+
action: z.ZodString;
|
|
530
|
+
method: z.ZodString;
|
|
531
|
+
route: z.ZodString;
|
|
532
|
+
matched: z.ZodBoolean;
|
|
533
|
+
path: z.ZodString;
|
|
534
|
+
outcome: z.ZodString;
|
|
535
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
536
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
537
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
538
|
+
count: z.ZodNumber;
|
|
539
|
+
firstAt: z.ZodISODateTime;
|
|
540
|
+
lastAt: z.ZodISODateTime;
|
|
541
|
+
}, z.core.$strip>>>;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
export type ControlPlaneReachResponse = z.output<typeof ControlPlaneReachResponse>;
|
|
544
|
+
/**
|
|
545
|
+
* One `(scope, keyId)` a control-plane connection exercised.
|
|
546
|
+
*
|
|
547
|
+
* Counts, two instants, and the method and path of the last allowed call. No IP, no user-agent, no other metadata key:
|
|
548
|
+
* this is the management client's own footprint, which is why it sits behind the listing scope.
|
|
549
|
+
*/
|
|
550
|
+
export declare const ControlPlaneUsageView: z.ZodObject<{
|
|
551
|
+
scope: z.ZodString;
|
|
552
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
553
|
+
allowed: z.ZodNumber;
|
|
554
|
+
denied: z.ZodNumber;
|
|
555
|
+
lastAllowedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
556
|
+
lastAllowedMethod: z.ZodNullable<z.ZodString>;
|
|
557
|
+
lastAllowedPath: z.ZodNullable<z.ZodString>;
|
|
558
|
+
lastDeniedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
export type ControlPlaneUsageView = z.output<typeof ControlPlaneUsageView>;
|
|
561
|
+
/** `GET {base}/control-plane/usage`. */
|
|
562
|
+
export declare const ControlPlaneUsageResponse: z.ZodObject<{
|
|
563
|
+
connectionId: z.ZodString;
|
|
564
|
+
since: z.ZodISODateTime;
|
|
565
|
+
until: z.ZodISODateTime;
|
|
566
|
+
usage: z.ZodArray<z.ZodObject<{
|
|
567
|
+
scope: z.ZodString;
|
|
568
|
+
keyId: z.ZodNullable<z.ZodString>;
|
|
569
|
+
allowed: z.ZodNumber;
|
|
570
|
+
denied: z.ZodNumber;
|
|
571
|
+
lastAllowedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
572
|
+
lastAllowedMethod: z.ZodNullable<z.ZodString>;
|
|
573
|
+
lastAllowedPath: z.ZodNullable<z.ZodString>;
|
|
574
|
+
lastDeniedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
575
|
+
}, z.core.$strip>>;
|
|
576
|
+
oldestEventAt: z.ZodNullable<z.ZodISODateTime>;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
export type ControlPlaneUsageResponse = z.output<typeof ControlPlaneUsageResponse>;
|
|
579
|
+
/** `GET {base}/control-plane/verify`. */
|
|
580
|
+
export declare const ChainVerifyResponse: z.ZodObject<{
|
|
581
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
582
|
+
since: z.ZodNullable<z.ZodISODateTime>;
|
|
583
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
584
|
+
intact: z.ZodBoolean;
|
|
585
|
+
checked: z.ZodNumber;
|
|
586
|
+
checkpoints: z.ZodNumber;
|
|
587
|
+
pruned: z.ZodOptional<z.ZodNumber>;
|
|
588
|
+
checkpointStore: z.ZodEnum<{
|
|
589
|
+
absent: "absent";
|
|
590
|
+
bound: "bound";
|
|
591
|
+
}>;
|
|
592
|
+
beforeChain: z.ZodNumber;
|
|
593
|
+
outsideChain: z.ZodNumber;
|
|
594
|
+
break: z.ZodNullable<z.ZodObject<{
|
|
595
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
596
|
+
position: z.ZodNumber;
|
|
597
|
+
reason: z.ZodEnum<{
|
|
598
|
+
checkpoint: "checkpoint";
|
|
599
|
+
commitment: "commitment";
|
|
600
|
+
edited: "edited";
|
|
601
|
+
inserted: "inserted";
|
|
602
|
+
missing: "missing";
|
|
603
|
+
truncated: "truncated";
|
|
604
|
+
unlinked: "unlinked";
|
|
605
|
+
}>;
|
|
606
|
+
detail: z.ZodString;
|
|
607
|
+
}, z.core.$strip>>;
|
|
608
|
+
head: z.ZodNullable<z.ZodObject<{
|
|
609
|
+
seq: z.ZodNumber;
|
|
610
|
+
hash: z.ZodString;
|
|
611
|
+
}, z.core.$strip>>;
|
|
612
|
+
}, z.core.$strip>;
|
|
613
|
+
export type ChainVerifyResponse = z.output<typeof ChainVerifyResponse>;
|
|
614
|
+
/**
|
|
615
|
+
* `GET {base}/control-plane/export`. Core's export document, which `pithy audit verify` reads offline —
|
|
616
|
+
* one schema, so what the Worker writes and what the verifier accepts cannot drift.
|
|
617
|
+
*/
|
|
618
|
+
export declare const ChainExportResponse: z.ZodObject<{
|
|
619
|
+
format: z.ZodLiteral<"pithy-audit-export/1">;
|
|
620
|
+
chain: z.ZodLiteral<"pithy-audit-chain/1">;
|
|
621
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
622
|
+
since: z.ZodNullable<z.ZodISODateTime>;
|
|
623
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
624
|
+
exportedAt: z.ZodISODateTime;
|
|
625
|
+
detail: z.ZodBoolean;
|
|
626
|
+
prior: z.ZodNullable<z.ZodObject<{
|
|
627
|
+
seq: z.ZodNumber;
|
|
628
|
+
hash: z.ZodString;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
events: z.ZodArray<z.ZodObject<{
|
|
631
|
+
eventId: z.ZodString;
|
|
632
|
+
occurredAt: z.ZodNumber;
|
|
633
|
+
action: z.ZodString;
|
|
634
|
+
outcome: z.ZodString;
|
|
635
|
+
severity: z.ZodString;
|
|
636
|
+
actorType: z.ZodString;
|
|
637
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
638
|
+
actorKind: z.ZodNullable<z.ZodString>;
|
|
639
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
640
|
+
resourceType: z.ZodNullable<z.ZodString>;
|
|
641
|
+
resourceId: z.ZodNullable<z.ZodString>;
|
|
642
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
643
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
644
|
+
project: z.ZodNullable<z.ZodString>;
|
|
645
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
646
|
+
worker: z.ZodNullable<z.ZodString>;
|
|
647
|
+
version: z.ZodNullable<z.ZodString>;
|
|
648
|
+
ipCommitment: z.ZodNullable<z.ZodString>;
|
|
649
|
+
userAgentCommitment: z.ZodNullable<z.ZodString>;
|
|
650
|
+
metadataCommitment: z.ZodNullable<z.ZodString>;
|
|
651
|
+
seq: z.ZodNumber;
|
|
652
|
+
prev: z.ZodNullable<z.ZodString>;
|
|
653
|
+
hash: z.ZodString;
|
|
654
|
+
salt: z.ZodOptional<z.ZodString>;
|
|
655
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
|
+
userAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
657
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
660
|
+
format: z.ZodLiteral<"pithy-audit-checkpoint/1">;
|
|
661
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
662
|
+
count: z.ZodNumber;
|
|
663
|
+
head: z.ZodString;
|
|
664
|
+
takenAt: z.ZodISODateTime;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
tombstones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
667
|
+
format: z.ZodLiteral<"pithy-audit-tombstone/1">;
|
|
668
|
+
tenant: z.ZodNullable<z.ZodString>;
|
|
669
|
+
fromSeq: z.ZodNumber;
|
|
670
|
+
throughSeq: z.ZodNumber;
|
|
671
|
+
count: z.ZodNumber;
|
|
672
|
+
prior: z.ZodNullable<z.ZodString>;
|
|
673
|
+
first: z.ZodString;
|
|
674
|
+
last: z.ZodString;
|
|
675
|
+
prunedAt: z.ZodISODateTime;
|
|
676
|
+
}, z.core.$strip>>>;
|
|
677
|
+
complete: z.ZodBoolean;
|
|
678
|
+
beforeChain: z.ZodNumber;
|
|
679
|
+
outsideChain: z.ZodNumber;
|
|
680
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
|
+
export type ChainExportResponse = z.output<typeof ChainExportResponse>;
|
|
180
683
|
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/http/responses.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/http/responses.ts"],"names":[],"mappings":"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"}
|