@aithos/sdk 0.1.0-alpha.59 → 0.1.0-alpha.60

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.
@@ -8,7 +8,18 @@ import type { AithosSdkEndpoints } from "./endpoints.js";
8
8
  * directly in `scopes` is rejected at runtime; the compiler can't enforce
9
9
  * it (callers who up-cast to string[] would slip through), so the runtime
10
10
  * check is the real gate. */
11
- export type Scope = "ethos.read.public" | "ethos.read.circle" | "ethos.read.self" | "ethos.write.public" | "ethos.write.circle" | "ethos.write.self" | DataScope;
11
+ /** An ethos verb (draft `bundle-v0.3-section-verb-scopes.md` §4.8.2′). */
12
+ export type EthosVerb = "read" | "edit" | "append" | "delete" | "write";
13
+ /** A writable ethos zone. */
14
+ export type EthosZone = "public" | "circle" | "self";
15
+ /**
16
+ * An ethos scope: a whole-zone grant (`ethos.edit.self`) or one narrowed to a
17
+ * subset of sections by a per-scope selector (`ethos.edit.self#id=X`,
18
+ * `ethos.append.self#prefix=gmail:`, `ethos.read.circle#tag=bio`). Plus the
19
+ * legacy whole-everything read `ethos.read.all`. §4.8′.
20
+ */
21
+ export type EthosScope = `ethos.${EthosVerb}.${EthosZone}` | `ethos.${EthosVerb}.${EthosZone}#${string}` | "ethos.read.all";
22
+ export type Scope = EthosScope | DataScope;
12
23
  /** Action a data mandate may authorize on a collection. `write` implies
13
24
  * `read`; `admin` implies `write`. Mirrors the data sub-protocol grammar
14
25
  * `data.<collection>.<action>` (Aithos-protocol `spec/data/04-mandates.md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aithos/sdk",
3
- "version": "0.1.0-alpha.59",
3
+ "version": "0.1.0-alpha.60",
4
4
  "description": "Aithos SDK — high-level TypeScript developer kit for building agentic apps on the Aithos protocol. Wraps @aithos/protocol-client and exposes the Aithos compute proxy and wallet (Stripe top-up) endpoints.",
5
5
  "keywords": [
6
6
  "aithos",
@@ -57,8 +57,8 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@aithos/assets-crypto": ">=0.1.0-alpha.1 <0.2.0",
60
- "@aithos/protocol-client": "^0.1.0-alpha.20",
61
- "@aithos/protocol-core": ">=0.8.0 <0.9.0",
60
+ "@aithos/protocol-client": "^0.1.0-alpha.21",
61
+ "@aithos/protocol-core": ">=0.9.0 <0.10.0",
62
62
  "react": "^18.0.0 || ^19.0.0"
63
63
  },
64
64
  "peerDependenciesMeta": {