@peac/schema 0.10.13 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-identity.d.ts +62 -416
- package/dist/agent-identity.d.ts.map +1 -1
- package/dist/attestation-receipt.d.ts +5 -39
- package/dist/attestation-receipt.d.ts.map +1 -1
- package/dist/attribution.cjs +4 -2
- package/dist/attribution.cjs.map +1 -1
- package/dist/attribution.d.ts +69 -448
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.mjs +4 -2
- package/dist/attribution.mjs.map +1 -1
- package/dist/constraints.d.ts +68 -0
- package/dist/constraints.d.ts.map +1 -0
- package/dist/dispute.d.ts +262 -780
- package/dist/dispute.d.ts.map +1 -1
- package/dist/errors.d.ts +13 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +125 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +123 -11
- package/dist/index.mjs.map +1 -1
- package/dist/interaction.cjs +1 -1
- package/dist/interaction.cjs.map +1 -1
- package/dist/interaction.d.ts +104 -596
- package/dist/interaction.d.ts.map +1 -1
- package/dist/interaction.mjs +1 -1
- package/dist/interaction.mjs.map +1 -1
- package/dist/json.d.ts +4 -3
- package/dist/json.d.ts.map +1 -1
- package/dist/obligations.d.ts +39 -139
- package/dist/obligations.d.ts.map +1 -1
- package/dist/receipt-parser.cjs +4 -2
- package/dist/receipt-parser.cjs.map +1 -1
- package/dist/receipt-parser.mjs +4 -2
- package/dist/receipt-parser.mjs.map +1 -1
- package/dist/validators.d.ts +200 -659
- package/dist/validators.d.ts.map +1 -1
- package/dist/workflow.d.ts +32 -345
- package/dist/workflow.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/validators.d.ts
CHANGED
|
@@ -11,94 +11,30 @@ export declare const NormalizedPayment: z.ZodObject<{
|
|
|
11
11
|
currency: z.ZodString;
|
|
12
12
|
asset: z.ZodOptional<z.ZodString>;
|
|
13
13
|
env: z.ZodOptional<z.ZodString>;
|
|
14
|
-
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
15
|
-
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.
|
|
16
|
-
},
|
|
17
|
-
rail: string;
|
|
18
|
-
reference: string;
|
|
19
|
-
amount: number;
|
|
20
|
-
currency: string;
|
|
21
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
22
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
23
|
-
asset?: string | undefined;
|
|
24
|
-
env?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
rail: string;
|
|
27
|
-
reference: string;
|
|
28
|
-
amount: number;
|
|
29
|
-
currency: string;
|
|
30
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
31
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
32
|
-
asset?: string | undefined;
|
|
33
|
-
env?: string | undefined;
|
|
34
|
-
}>;
|
|
14
|
+
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
16
|
+
}, z.core.$strict>;
|
|
35
17
|
export declare const Subject: z.ZodObject<{
|
|
36
|
-
uri: z.
|
|
37
|
-
},
|
|
38
|
-
uri: string;
|
|
39
|
-
}, {
|
|
40
|
-
uri: string;
|
|
41
|
-
}>;
|
|
18
|
+
uri: z.ZodString;
|
|
19
|
+
}, z.core.$strict>;
|
|
42
20
|
export declare const AIPREFSnapshot: z.ZodObject<{
|
|
43
|
-
url: z.
|
|
21
|
+
url: z.ZodString;
|
|
44
22
|
hash: z.ZodString;
|
|
45
|
-
},
|
|
46
|
-
url: string;
|
|
47
|
-
hash: string;
|
|
48
|
-
}, {
|
|
49
|
-
url: string;
|
|
50
|
-
hash: string;
|
|
51
|
-
}>;
|
|
23
|
+
}, z.core.$strict>;
|
|
52
24
|
export declare const Extensions: z.ZodObject<{
|
|
53
25
|
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
url: z.
|
|
55
|
-
hash: z.ZodString;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
url: string;
|
|
58
|
-
hash: string;
|
|
59
|
-
}, {
|
|
60
|
-
url: string;
|
|
61
|
-
hash: string;
|
|
62
|
-
}>>;
|
|
63
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
64
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
66
|
-
hash: z.ZodString;
|
|
67
|
-
}, "strict", z.ZodTypeAny, {
|
|
68
|
-
url: string;
|
|
69
|
-
hash: string;
|
|
70
|
-
}, {
|
|
71
|
-
url: string;
|
|
72
|
-
hash: string;
|
|
73
|
-
}>>;
|
|
74
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
75
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
76
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
26
|
+
url: z.ZodString;
|
|
77
27
|
hash: z.ZodString;
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
hash: string;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
hash: string;
|
|
84
|
-
}>>;
|
|
85
|
-
}, z.ZodUnknown, "strip">>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
86
30
|
export declare const JWSHeader: z.ZodObject<{
|
|
87
31
|
typ: z.ZodLiteral<"peac-receipt/0.1">;
|
|
88
32
|
alg: z.ZodLiteral<"EdDSA">;
|
|
89
33
|
kid: z.ZodString;
|
|
90
|
-
},
|
|
91
|
-
alg: "EdDSA";
|
|
92
|
-
typ: "peac-receipt/0.1";
|
|
93
|
-
kid: string;
|
|
94
|
-
}, {
|
|
95
|
-
alg: "EdDSA";
|
|
96
|
-
typ: "peac-receipt/0.1";
|
|
97
|
-
kid: string;
|
|
98
|
-
}>;
|
|
34
|
+
}, z.core.$strict>;
|
|
99
35
|
export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
100
|
-
iss: z.
|
|
101
|
-
aud: z.
|
|
36
|
+
iss: z.ZodString;
|
|
37
|
+
aud: z.ZodString;
|
|
102
38
|
iat: z.ZodNumber;
|
|
103
39
|
exp: z.ZodOptional<z.ZodNumber>;
|
|
104
40
|
rid: z.ZodString;
|
|
@@ -111,144 +47,35 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
111
47
|
currency: z.ZodString;
|
|
112
48
|
asset: z.ZodOptional<z.ZodString>;
|
|
113
49
|
env: z.ZodOptional<z.ZodString>;
|
|
114
|
-
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
115
|
-
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.
|
|
116
|
-
},
|
|
117
|
-
rail: string;
|
|
118
|
-
reference: string;
|
|
119
|
-
amount: number;
|
|
120
|
-
currency: string;
|
|
121
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
122
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
123
|
-
asset?: string | undefined;
|
|
124
|
-
env?: string | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
rail: string;
|
|
127
|
-
reference: string;
|
|
128
|
-
amount: number;
|
|
129
|
-
currency: string;
|
|
130
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
131
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
132
|
-
asset?: string | undefined;
|
|
133
|
-
env?: string | undefined;
|
|
134
|
-
}>;
|
|
50
|
+
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>>;
|
|
51
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
52
|
+
}, z.core.$strict>;
|
|
135
53
|
subject: z.ZodOptional<z.ZodObject<{
|
|
136
|
-
uri: z.
|
|
137
|
-
},
|
|
138
|
-
uri: string;
|
|
139
|
-
}, {
|
|
140
|
-
uri: string;
|
|
141
|
-
}>>;
|
|
54
|
+
uri: z.ZodString;
|
|
55
|
+
}, z.core.$strict>>;
|
|
142
56
|
ext: z.ZodOptional<z.ZodObject<{
|
|
143
57
|
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
url: z.
|
|
145
|
-
hash: z.ZodString;
|
|
146
|
-
}, "strict", z.ZodTypeAny, {
|
|
147
|
-
url: string;
|
|
148
|
-
hash: string;
|
|
149
|
-
}, {
|
|
150
|
-
url: string;
|
|
151
|
-
hash: string;
|
|
152
|
-
}>>;
|
|
153
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
154
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
155
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
156
|
-
hash: z.ZodString;
|
|
157
|
-
}, "strict", z.ZodTypeAny, {
|
|
158
|
-
url: string;
|
|
159
|
-
hash: string;
|
|
160
|
-
}, {
|
|
161
|
-
url: string;
|
|
162
|
-
hash: string;
|
|
163
|
-
}>>;
|
|
164
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
165
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
166
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
58
|
+
url: z.ZodString;
|
|
167
59
|
hash: z.ZodString;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
purpose_reason: z.ZodOptional<z.ZodEnum<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
rail: string;
|
|
188
|
-
reference: string;
|
|
189
|
-
amount: number;
|
|
190
|
-
currency: string;
|
|
191
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
192
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
193
|
-
asset?: string | undefined;
|
|
194
|
-
env?: string | undefined;
|
|
195
|
-
};
|
|
196
|
-
exp?: number | undefined;
|
|
197
|
-
ext?: z.objectOutputType<{
|
|
198
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
199
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
200
|
-
hash: z.ZodString;
|
|
201
|
-
}, "strict", z.ZodTypeAny, {
|
|
202
|
-
url: string;
|
|
203
|
-
hash: string;
|
|
204
|
-
}, {
|
|
205
|
-
url: string;
|
|
206
|
-
hash: string;
|
|
207
|
-
}>>;
|
|
208
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
209
|
-
subject?: {
|
|
210
|
-
uri: string;
|
|
211
|
-
} | undefined;
|
|
212
|
-
purpose_declared?: string[] | undefined;
|
|
213
|
-
purpose_enforced?: "inference" | "index" | "train" | "user_action" | "search" | undefined;
|
|
214
|
-
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
iss: string;
|
|
217
|
-
aud: string;
|
|
218
|
-
iat: number;
|
|
219
|
-
rid: string;
|
|
220
|
-
amt: number;
|
|
221
|
-
cur: string;
|
|
222
|
-
payment: {
|
|
223
|
-
rail: string;
|
|
224
|
-
reference: string;
|
|
225
|
-
amount: number;
|
|
226
|
-
currency: string;
|
|
227
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
228
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
229
|
-
asset?: string | undefined;
|
|
230
|
-
env?: string | undefined;
|
|
231
|
-
};
|
|
232
|
-
exp?: number | undefined;
|
|
233
|
-
ext?: z.objectInputType<{
|
|
234
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
235
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
236
|
-
hash: z.ZodString;
|
|
237
|
-
}, "strict", z.ZodTypeAny, {
|
|
238
|
-
url: string;
|
|
239
|
-
hash: string;
|
|
240
|
-
}, {
|
|
241
|
-
url: string;
|
|
242
|
-
hash: string;
|
|
243
|
-
}>>;
|
|
244
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
245
|
-
subject?: {
|
|
246
|
-
uri: string;
|
|
247
|
-
} | undefined;
|
|
248
|
-
purpose_declared?: string[] | undefined;
|
|
249
|
-
purpose_enforced?: "inference" | "index" | "train" | "user_action" | "search" | undefined;
|
|
250
|
-
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
251
|
-
}>;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
62
|
+
purpose_declared: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
+
purpose_enforced: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
search: "search";
|
|
65
|
+
inference: "inference";
|
|
66
|
+
index: "index";
|
|
67
|
+
train: "train";
|
|
68
|
+
user_action: "user_action";
|
|
69
|
+
}>>;
|
|
70
|
+
purpose_reason: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
allowed: "allowed";
|
|
72
|
+
constrained: "constrained";
|
|
73
|
+
denied: "denied";
|
|
74
|
+
downgraded: "downgraded";
|
|
75
|
+
undeclared_default: "undeclared_default";
|
|
76
|
+
unknown_preserved: "unknown_preserved";
|
|
77
|
+
}>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
252
79
|
/**
|
|
253
80
|
* Schema-derived receipt claims type (v0.9.30+)
|
|
254
81
|
*
|
|
@@ -260,8 +87,8 @@ export type ReceiptClaimsType = z.infer<typeof ReceiptClaimsSchema>;
|
|
|
260
87
|
* @deprecated Use ReceiptClaimsSchema instead. Renamed in v0.9.30.
|
|
261
88
|
*/
|
|
262
89
|
export declare const ReceiptClaims: z.ZodObject<{
|
|
263
|
-
iss: z.
|
|
264
|
-
aud: z.
|
|
90
|
+
iss: z.ZodString;
|
|
91
|
+
aud: z.ZodString;
|
|
265
92
|
iat: z.ZodNumber;
|
|
266
93
|
exp: z.ZodOptional<z.ZodNumber>;
|
|
267
94
|
rid: z.ZodString;
|
|
@@ -274,151 +101,38 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
274
101
|
currency: z.ZodString;
|
|
275
102
|
asset: z.ZodOptional<z.ZodString>;
|
|
276
103
|
env: z.ZodOptional<z.ZodString>;
|
|
277
|
-
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
278
|
-
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.
|
|
279
|
-
},
|
|
280
|
-
rail: string;
|
|
281
|
-
reference: string;
|
|
282
|
-
amount: number;
|
|
283
|
-
currency: string;
|
|
284
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
285
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
286
|
-
asset?: string | undefined;
|
|
287
|
-
env?: string | undefined;
|
|
288
|
-
}, {
|
|
289
|
-
rail: string;
|
|
290
|
-
reference: string;
|
|
291
|
-
amount: number;
|
|
292
|
-
currency: string;
|
|
293
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
294
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
295
|
-
asset?: string | undefined;
|
|
296
|
-
env?: string | undefined;
|
|
297
|
-
}>;
|
|
104
|
+
evidence: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>>;
|
|
105
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
298
107
|
subject: z.ZodOptional<z.ZodObject<{
|
|
299
|
-
uri: z.
|
|
300
|
-
},
|
|
301
|
-
uri: string;
|
|
302
|
-
}, {
|
|
303
|
-
uri: string;
|
|
304
|
-
}>>;
|
|
108
|
+
uri: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
305
110
|
ext: z.ZodOptional<z.ZodObject<{
|
|
306
111
|
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
url: z.
|
|
308
|
-
hash: z.ZodString;
|
|
309
|
-
}, "strict", z.ZodTypeAny, {
|
|
310
|
-
url: string;
|
|
311
|
-
hash: string;
|
|
312
|
-
}, {
|
|
313
|
-
url: string;
|
|
314
|
-
hash: string;
|
|
315
|
-
}>>;
|
|
316
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
317
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
318
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
319
|
-
hash: z.ZodString;
|
|
320
|
-
}, "strict", z.ZodTypeAny, {
|
|
321
|
-
url: string;
|
|
322
|
-
hash: string;
|
|
323
|
-
}, {
|
|
324
|
-
url: string;
|
|
325
|
-
hash: string;
|
|
326
|
-
}>>;
|
|
327
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
328
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
329
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
112
|
+
url: z.ZodString;
|
|
330
113
|
hash: z.ZodString;
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
purpose_reason: z.ZodOptional<z.ZodEnum<
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
rail: string;
|
|
351
|
-
reference: string;
|
|
352
|
-
amount: number;
|
|
353
|
-
currency: string;
|
|
354
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
355
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
356
|
-
asset?: string | undefined;
|
|
357
|
-
env?: string | undefined;
|
|
358
|
-
};
|
|
359
|
-
exp?: number | undefined;
|
|
360
|
-
ext?: z.objectOutputType<{
|
|
361
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
362
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
363
|
-
hash: z.ZodString;
|
|
364
|
-
}, "strict", z.ZodTypeAny, {
|
|
365
|
-
url: string;
|
|
366
|
-
hash: string;
|
|
367
|
-
}, {
|
|
368
|
-
url: string;
|
|
369
|
-
hash: string;
|
|
370
|
-
}>>;
|
|
371
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
372
|
-
subject?: {
|
|
373
|
-
uri: string;
|
|
374
|
-
} | undefined;
|
|
375
|
-
purpose_declared?: string[] | undefined;
|
|
376
|
-
purpose_enforced?: "inference" | "index" | "train" | "user_action" | "search" | undefined;
|
|
377
|
-
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
378
|
-
}, {
|
|
379
|
-
iss: string;
|
|
380
|
-
aud: string;
|
|
381
|
-
iat: number;
|
|
382
|
-
rid: string;
|
|
383
|
-
amt: number;
|
|
384
|
-
cur: string;
|
|
385
|
-
payment: {
|
|
386
|
-
rail: string;
|
|
387
|
-
reference: string;
|
|
388
|
-
amount: number;
|
|
389
|
-
currency: string;
|
|
390
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
391
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
392
|
-
asset?: string | undefined;
|
|
393
|
-
env?: string | undefined;
|
|
394
|
-
};
|
|
395
|
-
exp?: number | undefined;
|
|
396
|
-
ext?: z.objectInputType<{
|
|
397
|
-
aipref_snapshot: z.ZodOptional<z.ZodObject<{
|
|
398
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
399
|
-
hash: z.ZodString;
|
|
400
|
-
}, "strict", z.ZodTypeAny, {
|
|
401
|
-
url: string;
|
|
402
|
-
hash: string;
|
|
403
|
-
}, {
|
|
404
|
-
url: string;
|
|
405
|
-
hash: string;
|
|
406
|
-
}>>;
|
|
407
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
408
|
-
subject?: {
|
|
409
|
-
uri: string;
|
|
410
|
-
} | undefined;
|
|
411
|
-
purpose_declared?: string[] | undefined;
|
|
412
|
-
purpose_enforced?: "inference" | "index" | "train" | "user_action" | "search" | undefined;
|
|
413
|
-
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
414
|
-
}>;
|
|
114
|
+
}, z.core.$strict>>;
|
|
115
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
116
|
+
purpose_declared: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
purpose_enforced: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
search: "search";
|
|
119
|
+
inference: "inference";
|
|
120
|
+
index: "index";
|
|
121
|
+
train: "train";
|
|
122
|
+
user_action: "user_action";
|
|
123
|
+
}>>;
|
|
124
|
+
purpose_reason: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
allowed: "allowed";
|
|
126
|
+
constrained: "constrained";
|
|
127
|
+
denied: "denied";
|
|
128
|
+
downgraded: "downgraded";
|
|
129
|
+
undeclared_default: "undeclared_default";
|
|
130
|
+
unknown_preserved: "unknown_preserved";
|
|
131
|
+
}>>;
|
|
132
|
+
}, z.core.$strict>;
|
|
415
133
|
export declare const VerifyRequest: z.ZodObject<{
|
|
416
134
|
receipt_jws: z.ZodString;
|
|
417
|
-
},
|
|
418
|
-
receipt_jws: string;
|
|
419
|
-
}, {
|
|
420
|
-
receipt_jws: string;
|
|
421
|
-
}>;
|
|
135
|
+
}, z.core.$strict>;
|
|
422
136
|
/**
|
|
423
137
|
* Control purpose - what the access is for
|
|
424
138
|
*
|
|
@@ -428,15 +142,32 @@ export declare const VerifyRequest: z.ZodObject<{
|
|
|
428
142
|
*
|
|
429
143
|
* @see https://rslstandard.org/rsl for RSL 1.0 specification
|
|
430
144
|
*/
|
|
431
|
-
export declare const ControlPurposeSchema: z.ZodEnum<
|
|
145
|
+
export declare const ControlPurposeSchema: z.ZodEnum<{
|
|
146
|
+
search: "search";
|
|
147
|
+
inference: "inference";
|
|
148
|
+
crawl: "crawl";
|
|
149
|
+
index: "index";
|
|
150
|
+
train: "train";
|
|
151
|
+
user_action: "user_action";
|
|
152
|
+
ai_input: "ai_input";
|
|
153
|
+
ai_index: "ai_index";
|
|
154
|
+
}>;
|
|
432
155
|
/**
|
|
433
156
|
* Control licensing mode - how access is licensed
|
|
434
157
|
*/
|
|
435
|
-
export declare const ControlLicensingModeSchema: z.ZodEnum<
|
|
158
|
+
export declare const ControlLicensingModeSchema: z.ZodEnum<{
|
|
159
|
+
subscription: "subscription";
|
|
160
|
+
pay_per_crawl: "pay_per_crawl";
|
|
161
|
+
pay_per_inference: "pay_per_inference";
|
|
162
|
+
}>;
|
|
436
163
|
/**
|
|
437
164
|
* Control decision type
|
|
438
165
|
*/
|
|
439
|
-
export declare const ControlDecisionSchema: z.ZodEnum<
|
|
166
|
+
export declare const ControlDecisionSchema: z.ZodEnum<{
|
|
167
|
+
allow: "allow";
|
|
168
|
+
deny: "deny";
|
|
169
|
+
review: "review";
|
|
170
|
+
}>;
|
|
440
171
|
/**
|
|
441
172
|
* Single control step in governance chain
|
|
442
173
|
*/
|
|
@@ -444,137 +175,71 @@ export declare const ControlStepSchema: z.ZodObject<{
|
|
|
444
175
|
engine: z.ZodString;
|
|
445
176
|
version: z.ZodOptional<z.ZodString>;
|
|
446
177
|
policy_id: z.ZodOptional<z.ZodString>;
|
|
447
|
-
result: z.ZodEnum<
|
|
178
|
+
result: z.ZodEnum<{
|
|
179
|
+
allow: "allow";
|
|
180
|
+
deny: "deny";
|
|
181
|
+
review: "review";
|
|
182
|
+
}>;
|
|
448
183
|
reason: z.ZodOptional<z.ZodString>;
|
|
449
|
-
purpose: z.ZodOptional<z.ZodEnum<
|
|
450
|
-
|
|
451
|
-
|
|
184
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
185
|
+
search: "search";
|
|
186
|
+
inference: "inference";
|
|
187
|
+
crawl: "crawl";
|
|
188
|
+
index: "index";
|
|
189
|
+
train: "train";
|
|
190
|
+
user_action: "user_action";
|
|
191
|
+
ai_input: "ai_input";
|
|
192
|
+
ai_index: "ai_index";
|
|
193
|
+
}>>;
|
|
194
|
+
licensing_mode: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
subscription: "subscription";
|
|
196
|
+
pay_per_crawl: "pay_per_crawl";
|
|
197
|
+
pay_per_inference: "pay_per_inference";
|
|
198
|
+
}>>;
|
|
199
|
+
scope: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
452
200
|
limits_snapshot: z.ZodOptional<z.ZodUnknown>;
|
|
453
201
|
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
454
|
-
},
|
|
455
|
-
engine: string;
|
|
456
|
-
result: "allow" | "deny" | "review";
|
|
457
|
-
evidence_ref?: string | undefined;
|
|
458
|
-
version?: string | undefined;
|
|
459
|
-
policy_id?: string | undefined;
|
|
460
|
-
reason?: string | undefined;
|
|
461
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
462
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
463
|
-
scope?: string | string[] | undefined;
|
|
464
|
-
limits_snapshot?: unknown;
|
|
465
|
-
}, {
|
|
466
|
-
engine: string;
|
|
467
|
-
result: "allow" | "deny" | "review";
|
|
468
|
-
evidence_ref?: string | undefined;
|
|
469
|
-
version?: string | undefined;
|
|
470
|
-
policy_id?: string | undefined;
|
|
471
|
-
reason?: string | undefined;
|
|
472
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
473
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
474
|
-
scope?: string | string[] | undefined;
|
|
475
|
-
limits_snapshot?: unknown;
|
|
476
|
-
}>;
|
|
202
|
+
}, z.core.$strip>;
|
|
477
203
|
/**
|
|
478
204
|
* Composable control block - multi-party governance
|
|
479
205
|
*/
|
|
480
|
-
export declare const ControlBlockSchema: z.
|
|
206
|
+
export declare const ControlBlockSchema: z.ZodObject<{
|
|
481
207
|
chain: z.ZodArray<z.ZodObject<{
|
|
482
208
|
engine: z.ZodString;
|
|
483
209
|
version: z.ZodOptional<z.ZodString>;
|
|
484
210
|
policy_id: z.ZodOptional<z.ZodString>;
|
|
485
|
-
result: z.ZodEnum<
|
|
211
|
+
result: z.ZodEnum<{
|
|
212
|
+
allow: "allow";
|
|
213
|
+
deny: "deny";
|
|
214
|
+
review: "review";
|
|
215
|
+
}>;
|
|
486
216
|
reason: z.ZodOptional<z.ZodString>;
|
|
487
|
-
purpose: z.ZodOptional<z.ZodEnum<
|
|
488
|
-
|
|
489
|
-
|
|
217
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
search: "search";
|
|
219
|
+
inference: "inference";
|
|
220
|
+
crawl: "crawl";
|
|
221
|
+
index: "index";
|
|
222
|
+
train: "train";
|
|
223
|
+
user_action: "user_action";
|
|
224
|
+
ai_input: "ai_input";
|
|
225
|
+
ai_index: "ai_index";
|
|
226
|
+
}>>;
|
|
227
|
+
licensing_mode: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
subscription: "subscription";
|
|
229
|
+
pay_per_crawl: "pay_per_crawl";
|
|
230
|
+
pay_per_inference: "pay_per_inference";
|
|
231
|
+
}>>;
|
|
232
|
+
scope: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
490
233
|
limits_snapshot: z.ZodOptional<z.ZodUnknown>;
|
|
491
234
|
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
reason?: string | undefined;
|
|
499
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
500
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
501
|
-
scope?: string | string[] | undefined;
|
|
502
|
-
limits_snapshot?: unknown;
|
|
503
|
-
}, {
|
|
504
|
-
engine: string;
|
|
505
|
-
result: "allow" | "deny" | "review";
|
|
506
|
-
evidence_ref?: string | undefined;
|
|
507
|
-
version?: string | undefined;
|
|
508
|
-
policy_id?: string | undefined;
|
|
509
|
-
reason?: string | undefined;
|
|
510
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
511
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
512
|
-
scope?: string | string[] | undefined;
|
|
513
|
-
limits_snapshot?: unknown;
|
|
514
|
-
}>, "many">;
|
|
515
|
-
decision: z.ZodEnum<["allow", "deny", "review"]>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
decision: z.ZodEnum<{
|
|
237
|
+
allow: "allow";
|
|
238
|
+
deny: "deny";
|
|
239
|
+
review: "review";
|
|
240
|
+
}>;
|
|
516
241
|
combinator: z.ZodOptional<z.ZodLiteral<"any_can_veto">>;
|
|
517
|
-
},
|
|
518
|
-
chain: {
|
|
519
|
-
engine: string;
|
|
520
|
-
result: "allow" | "deny" | "review";
|
|
521
|
-
evidence_ref?: string | undefined;
|
|
522
|
-
version?: string | undefined;
|
|
523
|
-
policy_id?: string | undefined;
|
|
524
|
-
reason?: string | undefined;
|
|
525
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
526
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
527
|
-
scope?: string | string[] | undefined;
|
|
528
|
-
limits_snapshot?: unknown;
|
|
529
|
-
}[];
|
|
530
|
-
decision: "allow" | "deny" | "review";
|
|
531
|
-
combinator?: "any_can_veto" | undefined;
|
|
532
|
-
}, {
|
|
533
|
-
chain: {
|
|
534
|
-
engine: string;
|
|
535
|
-
result: "allow" | "deny" | "review";
|
|
536
|
-
evidence_ref?: string | undefined;
|
|
537
|
-
version?: string | undefined;
|
|
538
|
-
policy_id?: string | undefined;
|
|
539
|
-
reason?: string | undefined;
|
|
540
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
541
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
542
|
-
scope?: string | string[] | undefined;
|
|
543
|
-
limits_snapshot?: unknown;
|
|
544
|
-
}[];
|
|
545
|
-
decision: "allow" | "deny" | "review";
|
|
546
|
-
combinator?: "any_can_veto" | undefined;
|
|
547
|
-
}>, {
|
|
548
|
-
chain: {
|
|
549
|
-
engine: string;
|
|
550
|
-
result: "allow" | "deny" | "review";
|
|
551
|
-
evidence_ref?: string | undefined;
|
|
552
|
-
version?: string | undefined;
|
|
553
|
-
policy_id?: string | undefined;
|
|
554
|
-
reason?: string | undefined;
|
|
555
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
556
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
557
|
-
scope?: string | string[] | undefined;
|
|
558
|
-
limits_snapshot?: unknown;
|
|
559
|
-
}[];
|
|
560
|
-
decision: "allow" | "deny" | "review";
|
|
561
|
-
combinator?: "any_can_veto" | undefined;
|
|
562
|
-
}, {
|
|
563
|
-
chain: {
|
|
564
|
-
engine: string;
|
|
565
|
-
result: "allow" | "deny" | "review";
|
|
566
|
-
evidence_ref?: string | undefined;
|
|
567
|
-
version?: string | undefined;
|
|
568
|
-
policy_id?: string | undefined;
|
|
569
|
-
reason?: string | undefined;
|
|
570
|
-
purpose?: "inference" | "crawl" | "index" | "train" | "user_action" | "ai_input" | "ai_index" | "search" | undefined;
|
|
571
|
-
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
572
|
-
scope?: string | string[] | undefined;
|
|
573
|
-
limits_snapshot?: unknown;
|
|
574
|
-
}[];
|
|
575
|
-
decision: "allow" | "deny" | "review";
|
|
576
|
-
combinator?: "any_can_veto" | undefined;
|
|
577
|
-
}>;
|
|
242
|
+
}, z.core.$strip>;
|
|
578
243
|
/**
|
|
579
244
|
* Purpose token validator
|
|
580
245
|
*
|
|
@@ -585,20 +250,33 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
585
250
|
*
|
|
586
251
|
* Uses string type (not enum) to preserve unknown tokens for forward-compat.
|
|
587
252
|
*/
|
|
588
|
-
export declare const PurposeTokenSchema: z.
|
|
253
|
+
export declare const PurposeTokenSchema: z.ZodString;
|
|
589
254
|
/**
|
|
590
255
|
* Canonical purpose validator
|
|
591
256
|
*
|
|
592
257
|
* CanonicalPurpose is one of PEAC's normative purpose tokens.
|
|
593
258
|
* Only these tokens have enforcement semantics.
|
|
594
259
|
*/
|
|
595
|
-
export declare const CanonicalPurposeSchema: z.ZodEnum<
|
|
260
|
+
export declare const CanonicalPurposeSchema: z.ZodEnum<{
|
|
261
|
+
search: "search";
|
|
262
|
+
inference: "inference";
|
|
263
|
+
index: "index";
|
|
264
|
+
train: "train";
|
|
265
|
+
user_action: "user_action";
|
|
266
|
+
}>;
|
|
596
267
|
/**
|
|
597
268
|
* Purpose reason validator
|
|
598
269
|
*
|
|
599
270
|
* PurposeReason is the audit spine explaining enforcement decisions.
|
|
600
271
|
*/
|
|
601
|
-
export declare const PurposeReasonSchema: z.ZodEnum<
|
|
272
|
+
export declare const PurposeReasonSchema: z.ZodEnum<{
|
|
273
|
+
allowed: "allowed";
|
|
274
|
+
constrained: "constrained";
|
|
275
|
+
denied: "denied";
|
|
276
|
+
downgraded: "downgraded";
|
|
277
|
+
undeclared_default: "undeclared_default";
|
|
278
|
+
unknown_preserved: "unknown_preserved";
|
|
279
|
+
}>;
|
|
602
280
|
/**
|
|
603
281
|
* Payment split schema
|
|
604
282
|
*
|
|
@@ -608,47 +286,15 @@ export declare const PurposeReasonSchema: z.ZodEnum<["allowed", "constrained", "
|
|
|
608
286
|
* - share if present must be in [0,1]
|
|
609
287
|
* - At least one of amount or share must be specified
|
|
610
288
|
*/
|
|
611
|
-
export declare const PaymentSplitSchema: z.
|
|
289
|
+
export declare const PaymentSplitSchema: z.ZodObject<{
|
|
612
290
|
party: z.ZodString;
|
|
613
291
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
614
292
|
currency: z.ZodOptional<z.ZodString>;
|
|
615
293
|
share: z.ZodOptional<z.ZodNumber>;
|
|
616
294
|
rail: z.ZodOptional<z.ZodString>;
|
|
617
295
|
account_ref: z.ZodOptional<z.ZodString>;
|
|
618
|
-
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.
|
|
619
|
-
},
|
|
620
|
-
party: string;
|
|
621
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
622
|
-
rail?: string | undefined;
|
|
623
|
-
amount?: number | undefined;
|
|
624
|
-
currency?: string | undefined;
|
|
625
|
-
share?: number | undefined;
|
|
626
|
-
account_ref?: string | undefined;
|
|
627
|
-
}, {
|
|
628
|
-
party: string;
|
|
629
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
630
|
-
rail?: string | undefined;
|
|
631
|
-
amount?: number | undefined;
|
|
632
|
-
currency?: string | undefined;
|
|
633
|
-
share?: number | undefined;
|
|
634
|
-
account_ref?: string | undefined;
|
|
635
|
-
}>, {
|
|
636
|
-
party: string;
|
|
637
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
638
|
-
rail?: string | undefined;
|
|
639
|
-
amount?: number | undefined;
|
|
640
|
-
currency?: string | undefined;
|
|
641
|
-
share?: number | undefined;
|
|
642
|
-
account_ref?: string | undefined;
|
|
643
|
-
}, {
|
|
644
|
-
party: string;
|
|
645
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
646
|
-
rail?: string | undefined;
|
|
647
|
-
amount?: number | undefined;
|
|
648
|
-
currency?: string | undefined;
|
|
649
|
-
share?: number | undefined;
|
|
650
|
-
account_ref?: string | undefined;
|
|
651
|
-
}>;
|
|
296
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
297
|
+
}, z.core.$strict>;
|
|
652
298
|
/**
|
|
653
299
|
* Payment routing mode schema (rail-agnostic)
|
|
654
300
|
*
|
|
@@ -665,7 +311,11 @@ export declare const PaymentSplitSchema: z.ZodEffects<z.ZodObject<{
|
|
|
665
311
|
* - Stripe Connect `destination` -> routing = 'direct' or 'callback'
|
|
666
312
|
* - UPI `pa` (payee address) -> routing = 'direct'
|
|
667
313
|
*/
|
|
668
|
-
export declare const PaymentRoutingSchema: z.ZodEnum<
|
|
314
|
+
export declare const PaymentRoutingSchema: z.ZodEnum<{
|
|
315
|
+
direct: "direct";
|
|
316
|
+
callback: "callback";
|
|
317
|
+
role: "role";
|
|
318
|
+
}>;
|
|
669
319
|
/**
|
|
670
320
|
* Payment evidence schema
|
|
671
321
|
*
|
|
@@ -677,100 +327,37 @@ export declare const PaymentEvidenceSchema: z.ZodObject<{
|
|
|
677
327
|
amount: z.ZodNumber;
|
|
678
328
|
currency: z.ZodString;
|
|
679
329
|
asset: z.ZodString;
|
|
680
|
-
env: z.ZodEnum<
|
|
330
|
+
env: z.ZodEnum<{
|
|
331
|
+
live: "live";
|
|
332
|
+
test: "test";
|
|
333
|
+
}>;
|
|
681
334
|
network: z.ZodOptional<z.ZodString>;
|
|
682
335
|
facilitator_ref: z.ZodOptional<z.ZodString>;
|
|
683
|
-
evidence: z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
336
|
+
evidence: z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>;
|
|
684
337
|
aggregator: z.ZodOptional<z.ZodString>;
|
|
685
|
-
splits: z.ZodOptional<z.ZodArray<z.
|
|
338
|
+
splits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
686
339
|
party: z.ZodString;
|
|
687
340
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
688
341
|
currency: z.ZodOptional<z.ZodString>;
|
|
689
342
|
share: z.ZodOptional<z.ZodNumber>;
|
|
690
343
|
rail: z.ZodOptional<z.ZodString>;
|
|
691
344
|
account_ref: z.ZodOptional<z.ZodString>;
|
|
692
|
-
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.
|
|
693
|
-
},
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
account_ref?: string | undefined;
|
|
701
|
-
}, {
|
|
702
|
-
party: string;
|
|
703
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
704
|
-
rail?: string | undefined;
|
|
705
|
-
amount?: number | undefined;
|
|
706
|
-
currency?: string | undefined;
|
|
707
|
-
share?: number | undefined;
|
|
708
|
-
account_ref?: string | undefined;
|
|
709
|
-
}>, {
|
|
710
|
-
party: string;
|
|
711
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
712
|
-
rail?: string | undefined;
|
|
713
|
-
amount?: number | undefined;
|
|
714
|
-
currency?: string | undefined;
|
|
715
|
-
share?: number | undefined;
|
|
716
|
-
account_ref?: string | undefined;
|
|
717
|
-
}, {
|
|
718
|
-
party: string;
|
|
719
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
720
|
-
rail?: string | undefined;
|
|
721
|
-
amount?: number | undefined;
|
|
722
|
-
currency?: string | undefined;
|
|
723
|
-
share?: number | undefined;
|
|
724
|
-
account_ref?: string | undefined;
|
|
725
|
-
}>, "many">>;
|
|
726
|
-
routing: z.ZodOptional<z.ZodEnum<["direct", "callback", "role"]>>;
|
|
727
|
-
}, "strict", z.ZodTypeAny, {
|
|
728
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
729
|
-
rail: string;
|
|
730
|
-
reference: string;
|
|
731
|
-
amount: number;
|
|
732
|
-
currency: string;
|
|
733
|
-
asset: string;
|
|
734
|
-
env: "live" | "test";
|
|
735
|
-
network?: string | undefined;
|
|
736
|
-
facilitator_ref?: string | undefined;
|
|
737
|
-
aggregator?: string | undefined;
|
|
738
|
-
splits?: {
|
|
739
|
-
party: string;
|
|
740
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
741
|
-
rail?: string | undefined;
|
|
742
|
-
amount?: number | undefined;
|
|
743
|
-
currency?: string | undefined;
|
|
744
|
-
share?: number | undefined;
|
|
745
|
-
account_ref?: string | undefined;
|
|
746
|
-
}[] | undefined;
|
|
747
|
-
routing?: "direct" | "callback" | "role" | undefined;
|
|
748
|
-
}, {
|
|
749
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
750
|
-
rail: string;
|
|
751
|
-
reference: string;
|
|
752
|
-
amount: number;
|
|
753
|
-
currency: string;
|
|
754
|
-
asset: string;
|
|
755
|
-
env: "live" | "test";
|
|
756
|
-
network?: string | undefined;
|
|
757
|
-
facilitator_ref?: string | undefined;
|
|
758
|
-
aggregator?: string | undefined;
|
|
759
|
-
splits?: {
|
|
760
|
-
party: string;
|
|
761
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
762
|
-
rail?: string | undefined;
|
|
763
|
-
amount?: number | undefined;
|
|
764
|
-
currency?: string | undefined;
|
|
765
|
-
share?: number | undefined;
|
|
766
|
-
account_ref?: string | undefined;
|
|
767
|
-
}[] | undefined;
|
|
768
|
-
routing?: "direct" | "callback" | "role" | undefined;
|
|
769
|
-
}>;
|
|
345
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
346
|
+
}, z.core.$strict>>>;
|
|
347
|
+
routing: z.ZodOptional<z.ZodEnum<{
|
|
348
|
+
direct: "direct";
|
|
349
|
+
callback: "callback";
|
|
350
|
+
role: "role";
|
|
351
|
+
}>>;
|
|
352
|
+
}, z.core.$strict>;
|
|
770
353
|
/**
|
|
771
354
|
* Subject type schema
|
|
772
355
|
*/
|
|
773
|
-
export declare const SubjectTypeSchema: z.ZodEnum<
|
|
356
|
+
export declare const SubjectTypeSchema: z.ZodEnum<{
|
|
357
|
+
human: "human";
|
|
358
|
+
org: "org";
|
|
359
|
+
agent: "agent";
|
|
360
|
+
}>;
|
|
774
361
|
/**
|
|
775
362
|
* Subject profile schema
|
|
776
363
|
*
|
|
@@ -781,20 +368,14 @@ export declare const SubjectTypeSchema: z.ZodEnum<["human", "org", "agent"]>;
|
|
|
781
368
|
*/
|
|
782
369
|
export declare const SubjectProfileSchema: z.ZodObject<{
|
|
783
370
|
id: z.ZodString;
|
|
784
|
-
type: z.ZodEnum<
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
metadata
|
|
791
|
-
|
|
792
|
-
}, {
|
|
793
|
-
type: "human" | "org" | "agent";
|
|
794
|
-
id: string;
|
|
795
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
796
|
-
labels?: string[] | undefined;
|
|
797
|
-
}>;
|
|
371
|
+
type: z.ZodEnum<{
|
|
372
|
+
human: "human";
|
|
373
|
+
org: "org";
|
|
374
|
+
agent: "agent";
|
|
375
|
+
}>;
|
|
376
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
377
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
378
|
+
}, z.core.$strict>;
|
|
798
379
|
/**
|
|
799
380
|
* Subject profile snapshot schema
|
|
800
381
|
*
|
|
@@ -806,51 +387,25 @@ export declare const SubjectProfileSchema: z.ZodObject<{
|
|
|
806
387
|
export declare const SubjectProfileSnapshotSchema: z.ZodObject<{
|
|
807
388
|
subject: z.ZodObject<{
|
|
808
389
|
id: z.ZodString;
|
|
809
|
-
type: z.ZodEnum<
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
metadata
|
|
816
|
-
|
|
817
|
-
}, {
|
|
818
|
-
type: "human" | "org" | "agent";
|
|
819
|
-
id: string;
|
|
820
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
821
|
-
labels?: string[] | undefined;
|
|
822
|
-
}>;
|
|
390
|
+
type: z.ZodEnum<{
|
|
391
|
+
human: "human";
|
|
392
|
+
org: "org";
|
|
393
|
+
agent: "agent";
|
|
394
|
+
}>;
|
|
395
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
396
|
+
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonObject, unknown>>>;
|
|
397
|
+
}, z.core.$strict>;
|
|
823
398
|
captured_at: z.ZodString;
|
|
824
399
|
source: z.ZodOptional<z.ZodString>;
|
|
825
400
|
version: z.ZodOptional<z.ZodString>;
|
|
826
|
-
},
|
|
827
|
-
subject: {
|
|
828
|
-
type: "human" | "org" | "agent";
|
|
829
|
-
id: string;
|
|
830
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
831
|
-
labels?: string[] | undefined;
|
|
832
|
-
};
|
|
833
|
-
captured_at: string;
|
|
834
|
-
version?: string | undefined;
|
|
835
|
-
source?: string | undefined;
|
|
836
|
-
}, {
|
|
837
|
-
subject: {
|
|
838
|
-
type: "human" | "org" | "agent";
|
|
839
|
-
id: string;
|
|
840
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
841
|
-
labels?: string[] | undefined;
|
|
842
|
-
};
|
|
843
|
-
captured_at: string;
|
|
844
|
-
version?: string | undefined;
|
|
845
|
-
source?: string | undefined;
|
|
846
|
-
}>;
|
|
401
|
+
}, z.core.$strict>;
|
|
847
402
|
/**
|
|
848
403
|
* Namespaced extensions schema
|
|
849
404
|
*
|
|
850
405
|
* Keys must be namespaced (e.g., "com.example/field", "io.vendor/data").
|
|
851
406
|
* This provides a forward-compatible extension mechanism.
|
|
852
407
|
*/
|
|
853
|
-
export declare const ExtensionsSchema: z.ZodRecord<z.ZodString, z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
408
|
+
export declare const ExtensionsSchema: z.ZodRecord<z.ZodString, z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>>;
|
|
854
409
|
/**
|
|
855
410
|
* Generic attestation schema
|
|
856
411
|
*
|
|
@@ -865,22 +420,8 @@ export declare const AttestationSchema: z.ZodObject<{
|
|
|
865
420
|
issued_at: z.ZodString;
|
|
866
421
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
867
422
|
ref: z.ZodOptional<z.ZodString>;
|
|
868
|
-
evidence: z.ZodType<import("@peac/kernel").JsonValue, z.
|
|
869
|
-
},
|
|
870
|
-
type: string;
|
|
871
|
-
issuer: string;
|
|
872
|
-
issued_at: string;
|
|
873
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
874
|
-
expires_at?: string | undefined;
|
|
875
|
-
ref?: string | undefined;
|
|
876
|
-
}, {
|
|
877
|
-
type: string;
|
|
878
|
-
issuer: string;
|
|
879
|
-
issued_at: string;
|
|
880
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
881
|
-
expires_at?: string | undefined;
|
|
882
|
-
ref?: string | undefined;
|
|
883
|
-
}>;
|
|
423
|
+
evidence: z.ZodType<import("@peac/kernel").JsonValue, unknown, z.core.$ZodTypeInternals<import("@peac/kernel").JsonValue, unknown>>;
|
|
424
|
+
}, z.core.$strict>;
|
|
884
425
|
/**
|
|
885
426
|
* Validate a subject snapshot (if present)
|
|
886
427
|
*
|