@axtary/actionpass 0.0.1 → 0.1.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/LICENSE +202 -0
- package/README.md +50 -19
- package/dist/index.d.ts +668 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1204 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -6
- package/src/index.ts +0 -552
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import { type CryptoKey, type JWK, type KeyObject } from "jose";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const ACTION_SCHEMA_VERSION = "axtary.action.v0";
|
|
4
|
+
export declare const ACTIONPASS_VERSION = "axtary.actionpass.v0";
|
|
5
|
+
export declare const APPROVAL_ARTIFACT_VERSION = "axtary.approval.v0";
|
|
6
|
+
export declare const ACTIONPASS_REVOCATION_VERSION = "axtary.actionpass_revocation.v0";
|
|
7
|
+
export declare const ACTIONPASS_TRUST_STORE_VERSION = "axtary.actionpass_trust_store.v0";
|
|
8
|
+
export declare const LEDGER_SCHEMA_VERSION = "axtary.ledger.v0";
|
|
9
|
+
export declare const LEDGER_PROVIDER_EVIDENCE_VERSION = "axtary.ledger_provider_evidence.v0";
|
|
10
|
+
export declare const LEDGER_EXECUTION_OUTCOME_VERSION = "axtary.ledger_execution_outcome.v0";
|
|
11
|
+
export declare const DEFAULT_EXPIRES_IN_SECONDS = 600;
|
|
12
|
+
export declare const DEFAULT_SIGNING_ALGORITHM = "ES256";
|
|
13
|
+
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
14
|
+
[key: string]: JsonValue;
|
|
15
|
+
};
|
|
16
|
+
export declare const AxtaryDecisionSchema: z.ZodEnum<{
|
|
17
|
+
allow: "allow";
|
|
18
|
+
deny: "deny";
|
|
19
|
+
step_up: "step_up";
|
|
20
|
+
}>;
|
|
21
|
+
export type AxtaryDecision = z.infer<typeof AxtaryDecisionSchema>;
|
|
22
|
+
export declare const NormalizedActionSchema: z.ZodObject<{
|
|
23
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<"axtary.action.v0">>;
|
|
24
|
+
actor: z.ZodObject<{
|
|
25
|
+
agentId: z.ZodString;
|
|
26
|
+
humanOwner: z.ZodString;
|
|
27
|
+
runtime: z.ZodString;
|
|
28
|
+
tenant: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
intent: z.ZodObject<{
|
|
31
|
+
taskId: z.ZodString;
|
|
32
|
+
declaredGoal: z.ZodString;
|
|
33
|
+
maxDelegationDepth: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
capability: z.ZodObject<{
|
|
36
|
+
tool: z.ZodString;
|
|
37
|
+
resource: z.ZodString;
|
|
38
|
+
payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
39
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
toolDefinition: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
serverIdentity: z.ZodString;
|
|
43
|
+
schemaVersion: z.ZodString;
|
|
44
|
+
definitionHash: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
reservationId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
limit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
49
|
+
commitStatus: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
pending: "pending";
|
|
51
|
+
committed: "committed";
|
|
52
|
+
rolled_back: "rolled_back";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type NormalizedAction = z.infer<typeof NormalizedActionSchema>;
|
|
57
|
+
export declare const PolicyDecisionSchema: z.ZodObject<{
|
|
58
|
+
decision: z.ZodEnum<{
|
|
59
|
+
allow: "allow";
|
|
60
|
+
deny: "deny";
|
|
61
|
+
step_up: "step_up";
|
|
62
|
+
}>;
|
|
63
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
64
|
+
policy: z.ZodObject<{
|
|
65
|
+
nativeRule: z.ZodString;
|
|
66
|
+
version: z.ZodString;
|
|
67
|
+
cedarCompatible: z.ZodBoolean;
|
|
68
|
+
opaCompatible: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
constraints: z.ZodObject<{
|
|
71
|
+
expiresInSeconds: z.ZodNumber;
|
|
72
|
+
maxFilesChanged: z.ZodNumber;
|
|
73
|
+
blockedPaths: z.ZodArray<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
|
|
77
|
+
export type ActionPassDecision = PolicyDecision;
|
|
78
|
+
export declare const ApprovalSchema: z.ZodObject<{
|
|
79
|
+
mode: z.ZodEnum<{
|
|
80
|
+
none: "none";
|
|
81
|
+
human: "human";
|
|
82
|
+
policy_override: "policy_override";
|
|
83
|
+
}>;
|
|
84
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
85
|
+
approvalArtifact: z.ZodOptional<z.ZodString>;
|
|
86
|
+
approvalArtifactHash: z.ZodOptional<z.ZodString>;
|
|
87
|
+
actionHash: z.ZodOptional<z.ZodString>;
|
|
88
|
+
payloadHash: z.ZodOptional<z.ZodString>;
|
|
89
|
+
approvedAt: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type Approval = z.infer<typeof ApprovalSchema>;
|
|
92
|
+
export declare const ApprovalArtifactSchema: z.ZodObject<{
|
|
93
|
+
schemaVersion: z.ZodLiteral<"axtary.approval.v0">;
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
mode: z.ZodEnum<{
|
|
96
|
+
human: "human";
|
|
97
|
+
policy_override: "policy_override";
|
|
98
|
+
}>;
|
|
99
|
+
approvedBy: z.ZodString;
|
|
100
|
+
approvedAt: z.ZodString;
|
|
101
|
+
actionHash: z.ZodString;
|
|
102
|
+
payloadHash: z.ZodString;
|
|
103
|
+
taskId: z.ZodString;
|
|
104
|
+
tool: z.ZodString;
|
|
105
|
+
resource: z.ZodString;
|
|
106
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
107
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type ApprovalArtifact = z.infer<typeof ApprovalArtifactSchema>;
|
|
110
|
+
export declare const ActionPassClaimsSchema: z.ZodObject<{
|
|
111
|
+
apv: z.ZodLiteral<"axtary.actionpass.v0">;
|
|
112
|
+
iss: z.ZodString;
|
|
113
|
+
sub: z.ZodString;
|
|
114
|
+
aud: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
115
|
+
exp: z.ZodNumber;
|
|
116
|
+
nbf: z.ZodNumber;
|
|
117
|
+
iat: z.ZodNumber;
|
|
118
|
+
jti: z.ZodString;
|
|
119
|
+
tenant: z.ZodString;
|
|
120
|
+
humanOwner: z.ZodString;
|
|
121
|
+
agentRuntime: z.ZodString;
|
|
122
|
+
intent: z.ZodObject<{
|
|
123
|
+
taskId: z.ZodString;
|
|
124
|
+
declaredGoal: z.ZodString;
|
|
125
|
+
maxDelegationDepth: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
capability: z.ZodObject<{
|
|
128
|
+
tool: z.ZodString;
|
|
129
|
+
resource: z.ZodString;
|
|
130
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
decision: z.ZodEnum<{
|
|
133
|
+
allow: "allow";
|
|
134
|
+
deny: "deny";
|
|
135
|
+
step_up: "step_up";
|
|
136
|
+
}>;
|
|
137
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
138
|
+
policy: z.ZodObject<{
|
|
139
|
+
nativeRule: z.ZodString;
|
|
140
|
+
version: z.ZodString;
|
|
141
|
+
cedarCompatible: z.ZodBoolean;
|
|
142
|
+
opaCompatible: z.ZodBoolean;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
payloadHash: z.ZodString;
|
|
145
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
mode: z.ZodEnum<{
|
|
147
|
+
none: "none";
|
|
148
|
+
human: "human";
|
|
149
|
+
policy_override: "policy_override";
|
|
150
|
+
}>;
|
|
151
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
152
|
+
approvalArtifact: z.ZodOptional<z.ZodString>;
|
|
153
|
+
approvalArtifactHash: z.ZodOptional<z.ZodString>;
|
|
154
|
+
actionHash: z.ZodOptional<z.ZodString>;
|
|
155
|
+
payloadHash: z.ZodOptional<z.ZodString>;
|
|
156
|
+
approvedAt: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
audit: z.ZodObject<{
|
|
159
|
+
traceId: z.ZodString;
|
|
160
|
+
parentPassId: z.ZodNullable<z.ZodString>;
|
|
161
|
+
ledgerHash: z.ZodNullable<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export type ActionPassClaims = z.infer<typeof ActionPassClaimsSchema>;
|
|
165
|
+
export declare const ActionPassRevocationSchema: z.ZodObject<{
|
|
166
|
+
schemaVersion: z.ZodLiteral<"axtary.actionpass_revocation.v0">;
|
|
167
|
+
passId: z.ZodString;
|
|
168
|
+
revokedAt: z.ZodString;
|
|
169
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
170
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export type ActionPassRevocation = z.infer<typeof ActionPassRevocationSchema>;
|
|
173
|
+
export declare const ActionPassVerificationKeyRecordSchema: z.ZodObject<{
|
|
174
|
+
kid: z.ZodString;
|
|
175
|
+
publicJwk: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
176
|
+
algorithm: z.ZodOptional<z.ZodString>;
|
|
177
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
178
|
+
active: "active";
|
|
179
|
+
retired: "retired";
|
|
180
|
+
revoked: "revoked";
|
|
181
|
+
}>>;
|
|
182
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
183
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export type ActionPassVerificationKeyRecord = z.infer<typeof ActionPassVerificationKeyRecordSchema>;
|
|
186
|
+
export type ActionPassVerificationKeyRecordInput = Omit<z.input<typeof ActionPassVerificationKeyRecordSchema>, "publicJwk"> & {
|
|
187
|
+
publicJwk: Record<string, JsonValue> | JWK;
|
|
188
|
+
};
|
|
189
|
+
export declare const ActionPassTrustStoreSchema: z.ZodObject<{
|
|
190
|
+
schemaVersion: z.ZodLiteral<"axtary.actionpass_trust_store.v0">;
|
|
191
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
192
|
+
kid: z.ZodString;
|
|
193
|
+
publicJwk: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
194
|
+
algorithm: z.ZodOptional<z.ZodString>;
|
|
195
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
196
|
+
active: "active";
|
|
197
|
+
retired: "retired";
|
|
198
|
+
revoked: "revoked";
|
|
199
|
+
}>>;
|
|
200
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
201
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>>>;
|
|
203
|
+
revocations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
204
|
+
schemaVersion: z.ZodLiteral<"axtary.actionpass_revocation.v0">;
|
|
205
|
+
passId: z.ZodString;
|
|
206
|
+
revokedAt: z.ZodString;
|
|
207
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
208
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type ActionPassTrustStoreData = z.infer<typeof ActionPassTrustStoreSchema>;
|
|
212
|
+
export declare const LedgerProviderEvidenceDiffLineSchema: z.ZodObject<{
|
|
213
|
+
type: z.ZodEnum<{
|
|
214
|
+
context: "context";
|
|
215
|
+
addition: "addition";
|
|
216
|
+
deletion: "deletion";
|
|
217
|
+
}>;
|
|
218
|
+
content: z.ZodString;
|
|
219
|
+
oldLine: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
newLine: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type LedgerProviderEvidenceDiffLine = z.infer<typeof LedgerProviderEvidenceDiffLineSchema>;
|
|
223
|
+
export declare const LedgerProviderEvidenceDiffFileSchema: z.ZodObject<{
|
|
224
|
+
path: z.ZodString;
|
|
225
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
226
|
+
status: z.ZodEnum<{
|
|
227
|
+
added: "added";
|
|
228
|
+
modified: "modified";
|
|
229
|
+
deleted: "deleted";
|
|
230
|
+
renamed: "renamed";
|
|
231
|
+
}>;
|
|
232
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
233
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
234
|
+
hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
235
|
+
header: z.ZodString;
|
|
236
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
237
|
+
type: z.ZodEnum<{
|
|
238
|
+
context: "context";
|
|
239
|
+
addition: "addition";
|
|
240
|
+
deletion: "deletion";
|
|
241
|
+
}>;
|
|
242
|
+
content: z.ZodString;
|
|
243
|
+
oldLine: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
newLine: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>>>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
export type LedgerProviderEvidenceDiffFile = z.infer<typeof LedgerProviderEvidenceDiffFileSchema>;
|
|
249
|
+
export declare const LedgerProviderSchema: z.ZodEnum<{
|
|
250
|
+
github: "github";
|
|
251
|
+
slack: "slack";
|
|
252
|
+
linear: "linear";
|
|
253
|
+
docs: "docs";
|
|
254
|
+
mcp: "mcp";
|
|
255
|
+
aws: "aws";
|
|
256
|
+
gcp: "gcp";
|
|
257
|
+
jira: "jira";
|
|
258
|
+
}>;
|
|
259
|
+
export type LedgerProvider = z.infer<typeof LedgerProviderSchema>;
|
|
260
|
+
export declare const LedgerProviderEvidenceDiffSchema: z.ZodObject<{
|
|
261
|
+
provider: z.ZodEnum<{
|
|
262
|
+
github: "github";
|
|
263
|
+
slack: "slack";
|
|
264
|
+
linear: "linear";
|
|
265
|
+
docs: "docs";
|
|
266
|
+
mcp: "mcp";
|
|
267
|
+
aws: "aws";
|
|
268
|
+
gcp: "gcp";
|
|
269
|
+
jira: "jira";
|
|
270
|
+
}>;
|
|
271
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
272
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
273
|
+
path: z.ZodString;
|
|
274
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
275
|
+
status: z.ZodEnum<{
|
|
276
|
+
added: "added";
|
|
277
|
+
modified: "modified";
|
|
278
|
+
deleted: "deleted";
|
|
279
|
+
renamed: "renamed";
|
|
280
|
+
}>;
|
|
281
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
282
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
283
|
+
hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
284
|
+
header: z.ZodString;
|
|
285
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
286
|
+
type: z.ZodEnum<{
|
|
287
|
+
context: "context";
|
|
288
|
+
addition: "addition";
|
|
289
|
+
deletion: "deletion";
|
|
290
|
+
}>;
|
|
291
|
+
content: z.ZodString;
|
|
292
|
+
oldLine: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
newLine: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
}, z.core.$strip>>>;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export type LedgerProviderEvidenceDiff = z.infer<typeof LedgerProviderEvidenceDiffSchema>;
|
|
299
|
+
export declare const LedgerProviderEvidenceFieldChangeSchema: z.ZodObject<{
|
|
300
|
+
field: z.ZodString;
|
|
301
|
+
before: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
302
|
+
after: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
export type LedgerProviderEvidenceFieldChange = z.infer<typeof LedgerProviderEvidenceFieldChangeSchema>;
|
|
305
|
+
export declare const LedgerProviderEvidenceSchema: z.ZodObject<{
|
|
306
|
+
schemaVersion: z.ZodLiteral<"axtary.ledger_provider_evidence.v0">;
|
|
307
|
+
provider: z.ZodEnum<{
|
|
308
|
+
github: "github";
|
|
309
|
+
slack: "slack";
|
|
310
|
+
linear: "linear";
|
|
311
|
+
docs: "docs";
|
|
312
|
+
mcp: "mcp";
|
|
313
|
+
aws: "aws";
|
|
314
|
+
gcp: "gcp";
|
|
315
|
+
jira: "jira";
|
|
316
|
+
}>;
|
|
317
|
+
tool: z.ZodString;
|
|
318
|
+
operation: z.ZodString;
|
|
319
|
+
resource: z.ZodObject<{
|
|
320
|
+
provider: z.ZodEnum<{
|
|
321
|
+
github: "github";
|
|
322
|
+
slack: "slack";
|
|
323
|
+
linear: "linear";
|
|
324
|
+
docs: "docs";
|
|
325
|
+
mcp: "mcp";
|
|
326
|
+
aws: "aws";
|
|
327
|
+
gcp: "gcp";
|
|
328
|
+
jira: "jira";
|
|
329
|
+
}>;
|
|
330
|
+
kind: z.ZodString;
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
label: z.ZodOptional<z.ZodString>;
|
|
333
|
+
url: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
normalized: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
336
|
+
fieldChanges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
337
|
+
field: z.ZodString;
|
|
338
|
+
before: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
339
|
+
after: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
341
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
provider: z.ZodEnum<{
|
|
343
|
+
github: "github";
|
|
344
|
+
slack: "slack";
|
|
345
|
+
linear: "linear";
|
|
346
|
+
docs: "docs";
|
|
347
|
+
mcp: "mcp";
|
|
348
|
+
aws: "aws";
|
|
349
|
+
gcp: "gcp";
|
|
350
|
+
jira: "jira";
|
|
351
|
+
}>;
|
|
352
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
353
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
354
|
+
path: z.ZodString;
|
|
355
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
356
|
+
status: z.ZodEnum<{
|
|
357
|
+
added: "added";
|
|
358
|
+
modified: "modified";
|
|
359
|
+
deleted: "deleted";
|
|
360
|
+
renamed: "renamed";
|
|
361
|
+
}>;
|
|
362
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
363
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
364
|
+
hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
365
|
+
header: z.ZodString;
|
|
366
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
367
|
+
type: z.ZodEnum<{
|
|
368
|
+
context: "context";
|
|
369
|
+
addition: "addition";
|
|
370
|
+
deletion: "deletion";
|
|
371
|
+
}>;
|
|
372
|
+
content: z.ZodString;
|
|
373
|
+
oldLine: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
newLine: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
}, z.core.$strip>>>;
|
|
377
|
+
}, z.core.$strip>>>;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
export type LedgerProviderEvidence = z.infer<typeof LedgerProviderEvidenceSchema>;
|
|
381
|
+
export declare const LedgerExecutionOutcomeSchema: z.ZodObject<{
|
|
382
|
+
schemaVersion: z.ZodLiteral<"axtary.ledger_execution_outcome.v0">;
|
|
383
|
+
status: z.ZodEnum<{
|
|
384
|
+
succeeded: "succeeded";
|
|
385
|
+
failed: "failed";
|
|
386
|
+
}>;
|
|
387
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
github: "github";
|
|
389
|
+
slack: "slack";
|
|
390
|
+
linear: "linear";
|
|
391
|
+
docs: "docs";
|
|
392
|
+
mcp: "mcp";
|
|
393
|
+
aws: "aws";
|
|
394
|
+
gcp: "gcp";
|
|
395
|
+
jira: "jira";
|
|
396
|
+
}>>;
|
|
397
|
+
resultId: z.ZodOptional<z.ZodString>;
|
|
398
|
+
resultUrl: z.ZodOptional<z.ZodString>;
|
|
399
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
400
|
+
resourceLabel: z.ZodOptional<z.ZodString>;
|
|
401
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
402
|
+
errorClass: z.ZodOptional<z.ZodString>;
|
|
403
|
+
sideEffectProof: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
export type LedgerExecutionOutcome = z.infer<typeof LedgerExecutionOutcomeSchema>;
|
|
406
|
+
export declare const LedgerRecordSchema: z.ZodObject<{
|
|
407
|
+
schemaVersion: z.ZodLiteral<"axtary.ledger.v0">;
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
occurredAt: z.ZodString;
|
|
410
|
+
actionHash: z.ZodString;
|
|
411
|
+
payloadHash: z.ZodString;
|
|
412
|
+
decision: z.ZodEnum<{
|
|
413
|
+
allow: "allow";
|
|
414
|
+
deny: "deny";
|
|
415
|
+
step_up: "step_up";
|
|
416
|
+
}>;
|
|
417
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
418
|
+
policy: z.ZodObject<{
|
|
419
|
+
nativeRule: z.ZodString;
|
|
420
|
+
version: z.ZodString;
|
|
421
|
+
cedarCompatible: z.ZodBoolean;
|
|
422
|
+
opaCompatible: z.ZodBoolean;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
providerEvidence: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
schemaVersion: z.ZodLiteral<"axtary.ledger_provider_evidence.v0">;
|
|
426
|
+
provider: z.ZodEnum<{
|
|
427
|
+
github: "github";
|
|
428
|
+
slack: "slack";
|
|
429
|
+
linear: "linear";
|
|
430
|
+
docs: "docs";
|
|
431
|
+
mcp: "mcp";
|
|
432
|
+
aws: "aws";
|
|
433
|
+
gcp: "gcp";
|
|
434
|
+
jira: "jira";
|
|
435
|
+
}>;
|
|
436
|
+
tool: z.ZodString;
|
|
437
|
+
operation: z.ZodString;
|
|
438
|
+
resource: z.ZodObject<{
|
|
439
|
+
provider: z.ZodEnum<{
|
|
440
|
+
github: "github";
|
|
441
|
+
slack: "slack";
|
|
442
|
+
linear: "linear";
|
|
443
|
+
docs: "docs";
|
|
444
|
+
mcp: "mcp";
|
|
445
|
+
aws: "aws";
|
|
446
|
+
gcp: "gcp";
|
|
447
|
+
jira: "jira";
|
|
448
|
+
}>;
|
|
449
|
+
kind: z.ZodString;
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
label: z.ZodOptional<z.ZodString>;
|
|
452
|
+
url: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
normalized: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
455
|
+
fieldChanges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
456
|
+
field: z.ZodString;
|
|
457
|
+
before: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
458
|
+
after: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
459
|
+
}, z.core.$strip>>>;
|
|
460
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
461
|
+
provider: z.ZodEnum<{
|
|
462
|
+
github: "github";
|
|
463
|
+
slack: "slack";
|
|
464
|
+
linear: "linear";
|
|
465
|
+
docs: "docs";
|
|
466
|
+
mcp: "mcp";
|
|
467
|
+
aws: "aws";
|
|
468
|
+
gcp: "gcp";
|
|
469
|
+
jira: "jira";
|
|
470
|
+
}>;
|
|
471
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
472
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
473
|
+
path: z.ZodString;
|
|
474
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
475
|
+
status: z.ZodEnum<{
|
|
476
|
+
added: "added";
|
|
477
|
+
modified: "modified";
|
|
478
|
+
deleted: "deleted";
|
|
479
|
+
renamed: "renamed";
|
|
480
|
+
}>;
|
|
481
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
482
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
483
|
+
hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
484
|
+
header: z.ZodString;
|
|
485
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
486
|
+
type: z.ZodEnum<{
|
|
487
|
+
context: "context";
|
|
488
|
+
addition: "addition";
|
|
489
|
+
deletion: "deletion";
|
|
490
|
+
}>;
|
|
491
|
+
content: z.ZodString;
|
|
492
|
+
oldLine: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
newLine: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
}, z.core.$strip>>;
|
|
495
|
+
}, z.core.$strip>>>;
|
|
496
|
+
}, z.core.$strip>>>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
executionOutcome: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
schemaVersion: z.ZodLiteral<"axtary.ledger_execution_outcome.v0">;
|
|
501
|
+
status: z.ZodEnum<{
|
|
502
|
+
succeeded: "succeeded";
|
|
503
|
+
failed: "failed";
|
|
504
|
+
}>;
|
|
505
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
github: "github";
|
|
507
|
+
slack: "slack";
|
|
508
|
+
linear: "linear";
|
|
509
|
+
docs: "docs";
|
|
510
|
+
mcp: "mcp";
|
|
511
|
+
aws: "aws";
|
|
512
|
+
gcp: "gcp";
|
|
513
|
+
jira: "jira";
|
|
514
|
+
}>>;
|
|
515
|
+
resultId: z.ZodOptional<z.ZodString>;
|
|
516
|
+
resultUrl: z.ZodOptional<z.ZodString>;
|
|
517
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
resourceLabel: z.ZodOptional<z.ZodString>;
|
|
519
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
520
|
+
errorClass: z.ZodOptional<z.ZodString>;
|
|
521
|
+
sideEffectProof: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
522
|
+
}, z.core.$strict>>;
|
|
523
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
524
|
+
actionPassId: z.ZodNullable<z.ZodString>;
|
|
525
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
526
|
+
previousLedgerHash: z.ZodNullable<z.ZodString>;
|
|
527
|
+
ledgerHash: z.ZodString;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
export type LedgerRecord = z.infer<typeof LedgerRecordSchema>;
|
|
530
|
+
export type SigningKey = CryptoKey | KeyObject | JWK | Uint8Array;
|
|
531
|
+
export type VerificationKey = CryptoKey | KeyObject | JWK | Uint8Array;
|
|
532
|
+
export type VerificationKeySet = Readonly<Record<string, VerificationKey>>;
|
|
533
|
+
export type VerificationKeyResolver = (keyId: string | undefined) => VerificationKey | undefined | Promise<VerificationKey | undefined>;
|
|
534
|
+
export type SigningAlgorithm = "ES256" | "EdDSA";
|
|
535
|
+
export type PolicyOptions = {
|
|
536
|
+
allowedTool?: string;
|
|
537
|
+
requiredBaseBranch?: string;
|
|
538
|
+
maxFilesChanged?: number;
|
|
539
|
+
blockedPathPrefixes?: string[];
|
|
540
|
+
policyVersion?: string;
|
|
541
|
+
};
|
|
542
|
+
export type IssueActionPassInput = {
|
|
543
|
+
action: unknown;
|
|
544
|
+
decision: PolicyDecision;
|
|
545
|
+
issuer: string;
|
|
546
|
+
tenant: string;
|
|
547
|
+
signingKey: SigningKey;
|
|
548
|
+
keyId?: string;
|
|
549
|
+
algorithm?: SigningAlgorithm;
|
|
550
|
+
now?: Date;
|
|
551
|
+
expiresInSeconds?: number;
|
|
552
|
+
approval?: Approval;
|
|
553
|
+
approvalArtifact?: ApprovalArtifact;
|
|
554
|
+
parentPassId?: string | null;
|
|
555
|
+
ledgerHash?: string | null;
|
|
556
|
+
traceId?: string;
|
|
557
|
+
};
|
|
558
|
+
export type IssueActionPassResult = {
|
|
559
|
+
token: string;
|
|
560
|
+
claims: ActionPassClaims;
|
|
561
|
+
};
|
|
562
|
+
export type AuthorizeInput = {
|
|
563
|
+
action: unknown;
|
|
564
|
+
issuer: string;
|
|
565
|
+
tenant: string;
|
|
566
|
+
signingKey: SigningKey;
|
|
567
|
+
keyId?: string;
|
|
568
|
+
algorithm?: SigningAlgorithm;
|
|
569
|
+
now?: Date;
|
|
570
|
+
policy?: PolicyOptions;
|
|
571
|
+
approval?: Approval;
|
|
572
|
+
approvalArtifact?: ApprovalArtifact;
|
|
573
|
+
previousLedgerHash?: string | null;
|
|
574
|
+
traceId?: string;
|
|
575
|
+
};
|
|
576
|
+
export type AuthorizeResult = {
|
|
577
|
+
action: NormalizedAction;
|
|
578
|
+
decision: PolicyDecision;
|
|
579
|
+
payloadHash: string;
|
|
580
|
+
actionPass: IssueActionPassResult | null;
|
|
581
|
+
ledger: LedgerRecord;
|
|
582
|
+
};
|
|
583
|
+
export type VerifyActionPassInput = {
|
|
584
|
+
token: string;
|
|
585
|
+
action: unknown;
|
|
586
|
+
verificationKey?: VerificationKey;
|
|
587
|
+
verificationKeys?: VerificationKeySet | VerificationKeyResolver;
|
|
588
|
+
issuer?: string;
|
|
589
|
+
audience?: string | string[];
|
|
590
|
+
algorithms?: SigningAlgorithm[];
|
|
591
|
+
clockTolerance?: string | number;
|
|
592
|
+
currentDate?: Date;
|
|
593
|
+
revokedPassIds?: Iterable<string>;
|
|
594
|
+
revocations?: Iterable<ActionPassRevocation>;
|
|
595
|
+
isRevoked?: (claims: ActionPassClaims) => boolean | string | Promise<boolean | string>;
|
|
596
|
+
};
|
|
597
|
+
export type VerifyActionPassResult = {
|
|
598
|
+
valid: true;
|
|
599
|
+
claims: ActionPassClaims;
|
|
600
|
+
payloadHash: string;
|
|
601
|
+
} | {
|
|
602
|
+
valid: false;
|
|
603
|
+
reason: string;
|
|
604
|
+
};
|
|
605
|
+
export type CreateApprovalArtifactInput = {
|
|
606
|
+
action: unknown;
|
|
607
|
+
mode: "human" | "policy_override";
|
|
608
|
+
approvedBy: string;
|
|
609
|
+
approvedAt?: Date;
|
|
610
|
+
reason?: string;
|
|
611
|
+
expiresAt?: Date;
|
|
612
|
+
id?: string;
|
|
613
|
+
};
|
|
614
|
+
export type CreateApprovalArtifactResult = {
|
|
615
|
+
artifact: ApprovalArtifact;
|
|
616
|
+
artifactHash: string;
|
|
617
|
+
approval: Approval;
|
|
618
|
+
};
|
|
619
|
+
export type RevokeActionPassInput = {
|
|
620
|
+
passId: string;
|
|
621
|
+
revokedAt?: Date;
|
|
622
|
+
revokedBy?: string;
|
|
623
|
+
reason?: string;
|
|
624
|
+
};
|
|
625
|
+
export type ActionPassTrustStore = {
|
|
626
|
+
getVerificationKey: (keyId: string | undefined) => VerificationKey | undefined | Promise<VerificationKey | undefined>;
|
|
627
|
+
isPassRevoked: (passId: string) => boolean | string | Promise<boolean | string>;
|
|
628
|
+
};
|
|
629
|
+
export type VerifyActionPassWithTrustStoreInput = Omit<VerifyActionPassInput, "verificationKey" | "verificationKeys" | "revokedPassIds" | "revocations" | "isRevoked"> & {
|
|
630
|
+
trustStore: ActionPassTrustStore | string;
|
|
631
|
+
};
|
|
632
|
+
export declare const demoAction: NormalizedAction;
|
|
633
|
+
export declare function parseNormalizedAction(action: unknown): NormalizedAction;
|
|
634
|
+
export declare function evaluateAction(actionInput: unknown, options?: PolicyOptions): PolicyDecision;
|
|
635
|
+
export declare function authorize(input: AuthorizeInput): Promise<AuthorizeResult>;
|
|
636
|
+
export declare function createApprovalArtifact(input: CreateApprovalArtifactInput): CreateApprovalArtifactResult;
|
|
637
|
+
export declare function issueActionPass(input: IssueActionPassInput): Promise<IssueActionPassResult>;
|
|
638
|
+
export declare function verifyActionPass(input: VerifyActionPassInput): Promise<VerifyActionPassResult>;
|
|
639
|
+
export declare function revokeActionPass(input: RevokeActionPassInput): ActionPassRevocation;
|
|
640
|
+
export declare class LocalActionPassTrustStore implements ActionPassTrustStore {
|
|
641
|
+
readonly filePath: string;
|
|
642
|
+
constructor(filePath: string);
|
|
643
|
+
read(): Promise<ActionPassTrustStoreData>;
|
|
644
|
+
write(dataInput: Partial<ActionPassTrustStoreData>): Promise<ActionPassTrustStoreData>;
|
|
645
|
+
putVerificationKey(keyInput: ActionPassVerificationKeyRecordInput): Promise<ActionPassVerificationKeyRecord>;
|
|
646
|
+
revokeActionPass(input: RevokeActionPassInput | ActionPassRevocation): Promise<ActionPassRevocation>;
|
|
647
|
+
getVerificationKey(keyId: string | undefined, now?: Date): Promise<VerificationKey | undefined>;
|
|
648
|
+
isPassRevoked(passId: string): Promise<boolean>;
|
|
649
|
+
}
|
|
650
|
+
export declare function verifyActionPassWithTrustStore(input: VerifyActionPassWithTrustStoreInput): Promise<VerifyActionPassResult>;
|
|
651
|
+
export declare function recordDecision(input: {
|
|
652
|
+
action: unknown;
|
|
653
|
+
decision: PolicyDecision;
|
|
654
|
+
actionPassId?: string | null;
|
|
655
|
+
previousLedgerHash?: string | null;
|
|
656
|
+
occurredAt?: Date;
|
|
657
|
+
traceId?: string;
|
|
658
|
+
providerEvidence?: LedgerProviderEvidence;
|
|
659
|
+
executionOutcome?: LedgerExecutionOutcome;
|
|
660
|
+
correlationId?: string | null;
|
|
661
|
+
}): LedgerRecord;
|
|
662
|
+
export declare function hashPayload(payload: unknown): string;
|
|
663
|
+
export declare function hashAction(action: unknown): string;
|
|
664
|
+
export declare function providerEvidenceForAction(actionInput: unknown): LedgerProviderEvidence | undefined;
|
|
665
|
+
export declare function hashJson(value: unknown): string;
|
|
666
|
+
export declare function stableStringify(value: unknown): string;
|
|
667
|
+
export declare function validateApprovalArtifact(artifactInput: unknown, actionInput: unknown, now?: Date): string | null;
|
|
668
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAC9D,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,eAAO,MAAM,8BAA8B,qCAAqC,CAAC;AACjF,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,gCAAgC,uCACP,CAAC;AACvC,eAAO,MAAM,gCAAgC,uCACP,CAAC;AACvC,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,yBAAyB,UAAU,CAAC;AAEjD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAajC,eAAO,MAAM,oBAAoB;;;;EAAuC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAc/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,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