@actantdb/types 0.0.2

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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @actantdb/types — generated TS bindings of `crates/actant-contracts`.
3
+ *
4
+ * Regenerate with:
5
+ * cargo run -p actant-contracts -- codegen-ts
6
+ *
7
+ * Hand-edits to `src/generated/*` are forbidden. New cross-package types
8
+ * must be added to `crates/actant-contracts` first. See
9
+ * `/wedge/f2-f3-prevention.md`.
10
+ */
11
+ export * from "./generated/index.js";
12
+ /** JSON Schema set for every contract type (parsed). */
13
+ export declare const schemas: Record<string, unknown>;
14
+ /** Identifier types — kept as nominal string aliases. */
15
+ export type ProjectId = string;
16
+ export type RunId = string;
17
+ export type EventId = string;
18
+ export type ToolCallId = string;
19
+ export type PolicyRef = string;
20
+ /** Severity for ledger errors surfaced through the public API. */
21
+ export type ActantErrorKind = "ledger_io" | "ledger_corrupt" | "policy_invalid" | "approval_pending" | "approval_denied" | "replay_missing_event" | "guard_halt";
22
+ export interface ActantError {
23
+ kind: ActantErrorKind;
24
+ message: string;
25
+ cause?: unknown;
26
+ }
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,sBAAsB,CAAC;AAIrC,wDAAwD;AACxD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAA0C,CAAC;AAEvF,yDAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAC7B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,kEAAkE;AAClE,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,GACtB,YAAY,CAAC;AAEjB,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @actantdb/types — generated TS bindings of `crates/actant-contracts`.
3
+ *
4
+ * Regenerate with:
5
+ * cargo run -p actant-contracts -- codegen-ts
6
+ *
7
+ * Hand-edits to `src/generated/*` are forbidden. New cross-package types
8
+ * must be added to `crates/actant-contracts` first. See
9
+ * `/wedge/f2-f3-prevention.md`.
10
+ */
11
+ export * from "./generated/index.js";
12
+ import schemasJson from "./generated/schemas.json" with { type: "json" };
13
+ /** JSON Schema set for every contract type (parsed). */
14
+ export const schemas = schemasJson;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,sBAAsB,CAAC;AAErC,OAAO,WAAW,MAAM,0BAA0B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEzE,wDAAwD;AACxD,MAAM,CAAC,MAAM,OAAO,GAA4B,WAAsC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@actantdb/types",
3
+ "version": "0.0.2",
4
+ "description": "Generated TypeScript bindings of actant-contracts (the single source of truth for all public types). Hand-edits forbidden.",
5
+ "type": "module",
6
+ "license": "Apache-2.0",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "devDependencies": {
21
+ "typescript": "^5.4.0",
22
+ "vitest": "^3.2.4"
23
+ },
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/actantdb/actantdb"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc -p tsconfig.json",
36
+ "dev": "tsc -p tsconfig.json --watch",
37
+ "test": "vitest run --passWithNoTests",
38
+ "lint": "tsc -p tsconfig.json --noEmit"
39
+ }
40
+ }