@countersign/api-contract 0.1.1 → 0.2.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/index.d.ts +4 -35
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -25,46 +25,15 @@ type Venue = string;
|
|
|
25
25
|
*/
|
|
26
26
|
declare const UnifiedPolicySchema: z.ZodObject<{
|
|
27
27
|
schemaVersion: z.ZodLiteral<1>;
|
|
28
|
-
/** Asset the caps apply to, e.g. "USDC". */
|
|
29
28
|
asset: z.ZodString;
|
|
30
|
-
/** Max value of a single spend (base units). Absent = no per-tx cap. */
|
|
31
29
|
perTxCap: z.ZodOptional<z.ZodString>;
|
|
32
|
-
/** Max cumulative spend per rolling day (base units). Absent = no daily cap. */
|
|
33
30
|
dailyCap: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* PRESENT-but-EMPTY ([]) = deny everything (an explicit "allow nobody" sentinel).
|
|
37
|
-
*/
|
|
38
|
-
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
-
/** Counterparty denylist — always wins over the allowlist. */
|
|
40
|
-
denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
-
/** Spends STRICTLY ABOVE this require human approval before signing (base units). */
|
|
31
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
33
|
approvalThreshold: z.ZodOptional<z.ZodString>;
|
|
43
|
-
/** Hard kill — deny everything regardless of the rest. */
|
|
44
34
|
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, "strict", z.ZodTypeAny, {
|
|
48
|
-
schemaVersion: 1;
|
|
49
|
-
asset: string;
|
|
50
|
-
perTxCap?: string | undefined;
|
|
51
|
-
dailyCap?: string | undefined;
|
|
52
|
-
allowlist?: string[] | undefined;
|
|
53
|
-
denylist?: string[] | undefined;
|
|
54
|
-
approvalThreshold?: string | undefined;
|
|
55
|
-
frozen?: boolean | undefined;
|
|
56
|
-
venues?: string[] | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
schemaVersion: 1;
|
|
59
|
-
asset: string;
|
|
60
|
-
perTxCap?: string | undefined;
|
|
61
|
-
dailyCap?: string | undefined;
|
|
62
|
-
allowlist?: string[] | undefined;
|
|
63
|
-
denylist?: string[] | undefined;
|
|
64
|
-
approvalThreshold?: string | undefined;
|
|
65
|
-
frozen?: boolean | undefined;
|
|
66
|
-
venues?: string[] | undefined;
|
|
67
|
-
}>;
|
|
35
|
+
venues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
}, z.core.$strict>;
|
|
68
37
|
type UnifiedPolicy = z.infer<typeof UnifiedPolicySchema>;
|
|
69
38
|
|
|
70
39
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@countersign/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Countersign Core API contract — typed REST + ws schema and OpenAPI spec for the cross-vendor agent-spend control plane.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"freeze"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"zod": "^
|
|
40
|
+
"zod": "^4.4.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
|
-
"@countersign/
|
|
45
|
-
"@countersign/
|
|
44
|
+
"@countersign/policy": "0.0.0",
|
|
45
|
+
"@countersign/core": "0.0.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc -p ../tsconfig.dts.json && tsup && rollup -c rollup.dts.config.mjs"
|