@vess-id/ai-identity 0.20.0 → 0.22.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.
Files changed (89) hide show
  1. package/dist/agent/agent-did-manager.d.ts +48 -1
  2. package/dist/agent/agent-did-manager.d.ts.map +1 -1
  3. package/dist/client.d.ts +2 -2
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/config/index.d.ts +54 -0
  6. package/dist/config/index.d.ts.map +1 -1
  7. package/dist/did/agent.d.ts +7 -1
  8. package/dist/did/agent.d.ts.map +1 -1
  9. package/dist/identity/user-identity-manager.d.ts +55 -1
  10. package/dist/identity/user-identity-manager.d.ts.map +1 -1
  11. package/dist/index.d.mts +5569 -1849
  12. package/dist/index.d.ts +16 -13
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +10990 -3080
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.mjs +10991 -3080
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/registry/action-registry-json.d.ts +4688 -1478
  19. package/dist/registry/action-registry-json.d.ts.map +1 -1
  20. package/dist/registry/action-registry.d.ts +21 -0
  21. package/dist/registry/action-registry.d.ts.map +1 -1
  22. package/dist/registry/action-risk.d.ts +42 -19
  23. package/dist/registry/action-risk.d.ts.map +1 -1
  24. package/dist/registry/index.d.ts +3 -3
  25. package/dist/registry/index.d.ts.map +1 -1
  26. package/dist/types/connector-plugin.d.ts +33 -1
  27. package/dist/types/connector-plugin.d.ts.map +1 -1
  28. package/dist/types/grant.d.ts +2 -2
  29. package/dist/types/grant.d.ts.map +1 -1
  30. package/dist/types/intent.d.ts +1 -1
  31. package/dist/types/intent.d.ts.map +1 -1
  32. package/dist/types/permission-mode.d.ts +1 -1
  33. package/dist/types/permission-mode.d.ts.map +1 -1
  34. package/dist/utils/sdjwt-client.d.ts +242 -5
  35. package/dist/utils/sdjwt-client.d.ts.map +1 -1
  36. package/dist/vc/api-vc-manager.d.ts +5 -0
  37. package/dist/vc/api-vc-manager.d.ts.map +1 -1
  38. package/dist/vc/vc-manager.d.ts.map +1 -1
  39. package/dist/vp/vp-manager.d.ts +35 -0
  40. package/dist/vp/vp-manager.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/constraint/__tests__/fixtures/constraint.fixtures.d.ts +0 -56
  43. package/dist/constraint/__tests__/fixtures/constraint.fixtures.d.ts.map +0 -1
  44. package/dist/internal-signature/__tests__/canonical.spec.d.ts +0 -2
  45. package/dist/internal-signature/__tests__/canonical.spec.d.ts.map +0 -1
  46. package/dist/internal-signature/__tests__/signer-roundtrip.spec.d.ts +0 -2
  47. package/dist/internal-signature/__tests__/signer-roundtrip.spec.d.ts.map +0 -1
  48. package/dist/internal-signature/__tests__/signer.spec.d.ts +0 -2
  49. package/dist/internal-signature/__tests__/signer.spec.d.ts.map +0 -1
  50. package/dist/monitoring/metrics-manager.d.ts +0 -74
  51. package/dist/monitoring/metrics-manager.d.ts.map +0 -1
  52. package/dist/policy/__tests__/cedar-engine.spec.d.ts +0 -17
  53. package/dist/policy/__tests__/cedar-engine.spec.d.ts.map +0 -1
  54. package/dist/policy/__tests__/cedar-entities.spec.d.ts +0 -14
  55. package/dist/policy/__tests__/cedar-entities.spec.d.ts.map +0 -1
  56. package/dist/policy/__tests__/decision-enum.spec.d.ts +0 -16
  57. package/dist/policy/__tests__/decision-enum.spec.d.ts.map +0 -1
  58. package/dist/registry/__tests__/action-input-validator.spec.d.ts +0 -10
  59. package/dist/registry/__tests__/action-input-validator.spec.d.ts.map +0 -1
  60. package/dist/registry/__tests__/action-registry-doc-review.spec.d.ts +0 -14
  61. package/dist/registry/__tests__/action-registry-doc-review.spec.d.ts.map +0 -1
  62. package/dist/registry/__tests__/action-registry-freebusy.spec.d.ts +0 -13
  63. package/dist/registry/__tests__/action-registry-freebusy.spec.d.ts.map +0 -1
  64. package/dist/registry/__tests__/action-registry-inbox.spec.d.ts +0 -9
  65. package/dist/registry/__tests__/action-registry-inbox.spec.d.ts.map +0 -1
  66. package/dist/registry/__tests__/action-registry-scheduling.spec.d.ts +0 -13
  67. package/dist/registry/__tests__/action-registry-scheduling.spec.d.ts.map +0 -1
  68. package/dist/registry/__tests__/action-registry-validation.spec.d.ts +0 -13
  69. package/dist/registry/__tests__/action-registry-validation.spec.d.ts.map +0 -1
  70. package/dist/registry/__tests__/action-risk-registry-driven.spec.d.ts +0 -15
  71. package/dist/registry/__tests__/action-risk-registry-driven.spec.d.ts.map +0 -1
  72. package/dist/registry/__tests__/action-risk.spec.d.ts +0 -22
  73. package/dist/registry/__tests__/action-risk.spec.d.ts.map +0 -1
  74. package/dist/registry/__tests__/guidance-examples.spec.d.ts +0 -2
  75. package/dist/registry/__tests__/guidance-examples.spec.d.ts.map +0 -1
  76. package/dist/registry/__tests__/high-risk-resource-binding-invariant.spec.d.ts +0 -30
  77. package/dist/registry/__tests__/high-risk-resource-binding-invariant.spec.d.ts.map +0 -1
  78. package/dist/registry/__tests__/reauth-constants.spec.d.ts +0 -2
  79. package/dist/registry/__tests__/reauth-constants.spec.d.ts.map +0 -1
  80. package/dist/registry/__tests__/salient-completeness.spec.d.ts +0 -43
  81. package/dist/registry/__tests__/salient-completeness.spec.d.ts.map +0 -1
  82. package/dist/types/__tests__/cedar-policy.spec.d.ts +0 -8
  83. package/dist/types/__tests__/cedar-policy.spec.d.ts.map +0 -1
  84. package/dist/types/__tests__/permission-vc-v3.spec.d.ts +0 -9
  85. package/dist/types/__tests__/permission-vc-v3.spec.d.ts.map +0 -1
  86. package/dist/types/__tests__/phase1-vc-factory.spec.d.ts +0 -9
  87. package/dist/types/__tests__/phase1-vc-factory.spec.d.ts.map +0 -1
  88. package/dist/types/__tests__/policy-ref.spec.d.ts +0 -9
  89. package/dist/types/__tests__/policy-ref.spec.d.ts.map +0 -1
@@ -1,10 +0,0 @@
1
- /**
2
- * Tests for validateActionInput — lightweight registry-schema validation of
3
- * tool-call parameters, run at the callTool entry point (before approval / VC
4
- * gates) so malformed AI calls fail fast with self-correcting diagnostics
5
- * instead of minting an approval request that later fails on invoke.
6
- *
7
- * Task 20: 承認リクエスト発行前のパラメータ形状検証.
8
- */
9
- export {};
10
- //# sourceMappingURL=action-input-validator.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-input-validator.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-input-validator.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Tests for the doc_review.submit_response action in ACTION_REGISTRY.
3
- *
4
- * doc_review.submit_response is the response leg of the doc-review A2A task
5
- * (Phase D). Like scheduling.submit_response it is an internal inbox write
6
- * (no external OAuth), carries the single nominal base scope `inbox`, and is
7
- * risk:'high' so it never skips the human-approval leg. Findings are computed
8
- * LLM-side; the server only validates the shape. Its tool name is auto-derived
9
- * from the first action segment ('doc_review').
10
- *
11
- * Spec: A2A Phase D doc-review design §3.1
12
- */
13
- export {};
14
- //# sourceMappingURL=action-registry-doc-review.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-registry-doc-review.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-doc-review.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for the calendar.freebusy action in ACTION_REGISTRY.
3
- *
4
- * calendar.freebusy is a read-only availability probe used to check whether a
5
- * calendar is busy over a time window before proposing meeting slots. It never
6
- * returns event details (only busy/free intervals), so it stays in the
7
- * low-risk `calendar.read.basic` capability alongside calendar.event.list /
8
- * calendar.event.read.
9
- *
10
- * Spec: docs/specs/2026-07-03-scheduling-wow-phase1-design.md §4.1
11
- */
12
- export {};
13
- //# sourceMappingURL=action-registry-freebusy.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-registry-freebusy.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-freebusy.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for the Agent Inbox actions registered in ACTION_REGISTRY.
3
- *
4
- * The 5 inbox.* actions back the Agent Inbox MCP tools so they can be
5
- * exposed and Cedar-evaluated. Risk levels are part of the security contract
6
- * (inbox.send sends a task request to another person → high).
7
- */
8
- export {};
9
- //# sourceMappingURL=action-registry-inbox.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-registry-inbox.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-inbox.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for the scheduling.request façade action in ACTION_REGISTRY.
3
- *
4
- * scheduling.request is a meeting-time negotiation façade over inbox.send.
5
- * Candidate slots are computed LLM-side; the server only validates. The
6
- * action is internal (no external OAuth), so it carries the single nominal
7
- * base scope `inbox`. Its tool name is auto-derived from the first action
8
- * segment ('scheduling').
9
- *
10
- * Spec: docs/specs/2026-06-10-inbox-intent-routing-design.md §2.1
11
- */
12
- export {};
13
- //# sourceMappingURL=action-registry-scheduling.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-registry-scheduling.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-scheduling.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for actionMetaSchema validation — `risk` is a REQUIRED field.
3
- *
4
- * Spec ref:
5
- * - docs/specs/2026-05-27-action-risk-registry-driven.md §4.1
6
- *
7
- * Rationale: risk resolution is now registry-driven (RT1). An action added
8
- * without a `risk` field would silently fall back to the suffix heuristic in
9
- * Cedar (e.g. `os.secret.read` → low → auto-permit), a security regression.
10
- * Making `risk` schema-required turns that omission into a CI failure.
11
- */
12
- export {};
13
- //# sourceMappingURL=action-registry-validation.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-registry-validation.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-validation.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Tests for registry-driven resolveActionRisk (OpenQ-5 root fix).
3
- *
4
- * Spec ref:
5
- * - docs/specs/2026-05-27-action-risk-registry-driven.md §3, §4.2
6
- *
7
- * Contract: ACTION_REGISTRY is the single source of truth for risk.
8
- * - resolveActionRisk(name) returns the registry `risk` when the action
9
- * exists in ACTION_REGISTRY (authoritative).
10
- * - Falls back to the suffix heuristic only for unknown (non-registry)
11
- * actions.
12
- * - Lookup is case-insensitive (input lowercased before Map lookup).
13
- */
14
- export {};
15
- //# sourceMappingURL=action-risk-registry-driven.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-risk-registry-driven.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-risk-registry-driven.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Tests for resolveActionRisk (Cedar unification Step 1).
3
- *
4
- * Spec refs:
5
- * - docs/specs/2026-05-24-cedar-unification-design.md §7.2 (risk_level
6
- * resolution rule, Phase 1 baseline)
7
- *
8
- * Phase 1 baseline rule (registry-free, deterministic):
9
- * - HIGH_RISK_SUFFIXES → 'high'
10
- * - LOW_RISK_SUFFIXES → 'low'
11
- * - everything else → 'high' (fail-CLOSED default, #1285)
12
- *
13
- * The default was 'medium' until #1285. That was not fail-safe: the Cedar
14
- * default policy permits low and medium unconditionally
15
- * (api/src/grant/services/system-policy.service.ts:105), so an unregistered
16
- * action landed on the permit side AND skipped Gate-2 resource pinning.
17
- *
18
- * Classification is based on the **last dotted segment** of the action
19
- * name (case-insensitive).
20
- */
21
- export {};
22
- //# sourceMappingURL=action-risk.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-risk.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-risk.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=guidance-examples.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guidance-examples.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/guidance-examples.spec.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- /**
2
- * Registry invariant — every HIGH-risk action must have a RESOLVABLE
3
- * resource_id binding (#883 class-killer).
4
- *
5
- * Why this exists (2026-07-04): Gate-2 enforcement
6
- * (`ToolExecutorService.validateVCResourceConstraint`, strict for high risk
7
- * post-#886) fail-closes any high-risk invocation whose runtime resource
8
- * cannot be canonicalized (`RESOURCE_UNRESOLVED`) — and issuance pins VC
9
- * delegates through the SAME function (`canonicalResourceId`, INV-1). An
10
- * action that is high-risk but has no resolvable binding is therefore
11
- * IMPOSSIBLE to execute end-to-end: approval succeeds, the VC is pinned, and
12
- * the invoke still dies at Gate-2. That failure mode shipped at least twice
13
- * (#883 github write actions; g7.6/7.7/7.13 gmail.message.send unpinned
14
- * permit-path issuance). This spec turns the class into a test failure at the
15
- * moment the registry entry is added.
16
- *
17
- * Contract per high-risk action:
18
- * (a) `canonicalResourceId(action, <schema-faithful params>)` resolves to a
19
- * non-empty string — i.e. the binding exists AND its param(s) actually
20
- * exist in the action's input_schema (a binding pointing at a param the
21
- * schema doesn't carry can never resolve at runtime), OR
22
- * (b) the action is on the explicit allowlist below, each entry justified.
23
- *
24
- * Adding a high-risk action? Give it `target_bindings.resource_id` bound to a
25
- * param that exists in `input_schema.properties` (for CREATE actions: the
26
- * container/parent that exists pre-execution — see the registry header
27
- * comment), or consciously extend the allowlist with a justification.
28
- */
29
- export {};
30
- //# sourceMappingURL=high-risk-resource-binding-invariant.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"high-risk-resource-binding-invariant.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/high-risk-resource-binding-invariant.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=reauth-constants.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reauth-constants.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/reauth-constants.spec.ts"],"names":[],"mappings":""}
@@ -1,43 +0,0 @@
1
- /**
2
- * Salient-field completeness test (P1 / #1205, Step 2).
3
- *
4
- * The decision-bound authorization design (docs/proposals/1205-P1-...) binds a
5
- * hash of the approval-critical ("salient") parameters into the signed VC. The
6
- * PEP later refuses to adopt a VC approval whose executed params do not hash to
7
- * the committed value. For that binding to actually protect an action, the
8
- * action MUST declare a `approval_salient_fields` set — otherwise the digest is
9
- * `undefined`, the issuer omits `params_hash`, and the salient gate silently
10
- * degrades to a no-op (plan §6 "salient set 無しのアクション").
11
- *
12
- * The set of actions that go through OOB (out-of-band) human approval is
13
- * exactly the set of high-risk actions: the approval flow's
14
- * `validateHighRiskResources` (packages/api/.../narrow-delegates.ts) filters
15
- * on `risk === 'high' || risk === 'critical'`, and `resolveActionRisk` returns
16
- * the registry `risk` verbatim. So the predicate here is registry
17
- * `risk ∈ {high, critical}` — the exact set that mints an OOB approval.
18
- *
19
- * This test is the guard the plan (§0.5) relies on to catch the class of bug
20
- * where a salient field name is a typo that does not exist in the action's
21
- * input_schema (the plan's own `pr_number` example — the real github field is
22
- * `pullNumber`). It asserts, for every approval-gated action:
23
- * 1. a non-empty `approval_salient_fields` is declared;
24
- * 2. every declared field name exists in `input_schema.properties`;
25
- * 3. no declared field is typed as a non-integer number (float ban, rule 5);
26
- * 4. the salient set includes the resource-binding param(s) so it agrees with
27
- * `canonicalResourceId`'s resource extraction (plan §6: salient ⊇
28
- * resource-binding);
29
- * 5. UNDER-INCLUSION heuristic: no input_schema property whose NAME matches a
30
- * known-dangerous pattern (ownership/targeting or effect/destructiveness
31
- * flags) is silently OMITTED from the salient set unless it is in an
32
- * explicit, documented allowlist.
33
- *
34
- * Two caveats on the guarantee this file provides:
35
- * (a) under-inclusion is now HEURISTICALLY guarded (assertion 5), but the
36
- * heuristic only catches name-pattern matches — human security judgment is
37
- * still required to decide the substance-of-approval fields for each action;
38
- * (b) a user/Cedar policy can only REMOVE actions from approval (narrow), never
39
- * add, so binding the registry high|critical set is a safe SUPERSET of what
40
- * actually reaches OOB approval.
41
- */
42
- export {};
43
- //# sourceMappingURL=salient-completeness.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"salient-completeness.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/salient-completeness.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Tests for Cedar policy types (Phase 1 Step 2).
3
- *
4
- * These are opaque wire types — runtime tests only verify the literal values
5
- * for CedarDecisionValue + shape acceptance for diagnostics.
6
- */
7
- export {};
8
- //# sourceMappingURL=cedar-policy.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cedar-policy.spec.d.ts","sourceRoot":"","sources":["../../../src/types/__tests__/cedar-policy.spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for PermissionVcClaims V2/V3 union (Phase 1 Step 2).
3
- *
4
- * Spec refs:
5
- * - docs/specs/2026-05-23-cedar-rar-permission-redesign.md §3.1
6
- * - docs/specs/2026-05-23-cedar-rar-implementation-plan-phase1.md Task 2.1
7
- */
8
- export {};
9
- //# sourceMappingURL=permission-vc-v3.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permission-vc-v3.spec.d.ts","sourceRoot":"","sources":["../../../src/types/__tests__/permission-vc-v3.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for Phase 1 VC factory (buildPhase1VcClaims).
3
- *
4
- * Spec refs:
5
- * - docs/specs/2026-05-23-cedar-rar-implementation-plan-phase1.md Task 2.5 (rev 5)
6
- * - docs/specs/2026-05-23-cedar-rar-permission-redesign.md §3.1 Phase 1 layer 固定 note
7
- */
8
- export {};
9
- //# sourceMappingURL=phase1-vc-factory.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"phase1-vc-factory.spec.d.ts","sourceRoot":"","sources":["../../../src/types/__tests__/phase1-vc-factory.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for PolicyRef discriminated union (Phase 1 Step 2).
3
- *
4
- * Spec refs:
5
- * - docs/specs/2026-05-23-cedar-rar-permission-redesign.md §3.2
6
- * - docs/specs/2026-05-23-cedar-rar-implementation-plan-phase1.md Task 2.1
7
- */
8
- export {};
9
- //# sourceMappingURL=policy-ref.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"policy-ref.spec.d.ts","sourceRoot":"","sources":["../../../src/types/__tests__/policy-ref.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}