Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"url": "git+https://github.com/agent-ix/spec-objects-security.git"
},
"devDependencies": {
"@agent-ix/semantic-core": "0.3.0",
"@agent-ix/semantic-core": "0.3.2",
"@typespec/compiler": "1.15.0",
"@typespec/json-schema": "1.15.0"
}
Expand Down
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pytest-json-report = "^1.5.0"
ruff = "^0.14.13"
pytest-results = { version = "^0.2.0", python = ">=3.12" }
jsonschema = "^4.25.0"
quire = { version = "^0.49.0", source = "internal-pypi" }
quire = { version = "^0.50.0", source = "internal-pypi" }

[tool.poetry.scripts]
build-tools = "scripts.build_tools:main"
Expand Down
2 changes: 1 addition & 1 deletion spec/functional/FR-002-emitted-json-schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build.

- `make schemas` SHALL run `node scripts/generate-schemas.mjs`.
- The generator SHALL compile `typespec/` with `tsp compile`, keep only the emitted files whose `$id` starts with the module base, and discard the re-emitted semantic-core files.
- If the emitter leaves any `$id` or `$ref` relative, then the generator SHALL rewrite it to `<base><file>` (module models) or `https://schemas.agent-ix.org/semantic-core/0.3.0/<file>` (semantic-core models).
- If the emitter leaves any `$id` or `$ref` relative, then the generator SHALL rewrite it to `<base><file>` (module models) or `https://schemas.agent-ix.org/semantic-core/<declared version>/<file>` (semantic-core models).
- If `tsp compile` fails or emits no module model, then the generator SHALL exit non-zero without touching the committed output.
- If `node` is older than 20 or `tsp` is not resolvable, then the generator SHALL exit non-zero naming the required Node version or the missing binary.
- In `--check` mode the generator SHALL write no file, neither under `spec_objects_security/schemas/` nor in `manifest.yaml`.
Expand Down
2 changes: 1 addition & 1 deletion spec_objects_security/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.2.0
description: 'Filament Module: tier-2 security and identity ObjectTypes (threats, controls, auth flows, secrets, policies)'
semantic:
contract_version: 1.0.0
semantic_core: 0.3.0
semantic_core: 0.3.2
package: agent-ix/spec-objects-security
exports:
- auth_flow
Expand Down
10 changes: 5 additions & 5 deletions spec_objects_security/schemas/Asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,26 +16,26 @@
"relations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/RelationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/RelationDecl.json"
}
},
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"operations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/OperationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/OperationDecl.json"
}
},
"classification": {
"$ref": "https://schemas.agent-ix.org/agent-ix/spec-objects-security/ConfidentialityLevel.json"
},
"owner": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
},
"required": [
Expand Down
8 changes: 4 additions & 4 deletions spec_objects_security/schemas/AttackSurface.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,19 +16,19 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"relations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/RelationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/RelationDecl.json"
}
},
"exposes": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions spec_objects_security/schemas/AuditEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,11 +16,11 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"source": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
},
"required": [
Expand Down
8 changes: 4 additions & 4 deletions spec_objects_security/schemas/AuditFinding.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,13 +16,13 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"relations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/RelationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/RelationDecl.json"
}
},
"status": {
Expand All @@ -31,7 +31,7 @@
"traces_to": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions spec_objects_security/schemas/AuthFlow.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"operations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/OperationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/OperationDecl.json"
},
"minItems": 1
},
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
}
},
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"steps": {
Expand Down
8 changes: 4 additions & 4 deletions spec_objects_security/schemas/Control.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
},
"minItems": 1
},
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -23,7 +23,7 @@
"operations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/OperationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/OperationDecl.json"
}
},
"effectiveness": {
Expand All @@ -32,7 +32,7 @@
"mitigates": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
},
"mappings": {
Expand Down
4 changes: 2 additions & 2 deletions spec_objects_security/schemas/CorsPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
},
"minItems": 1
},
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
}
},
"allowed_origins": {
Expand Down
6 changes: 3 additions & 3 deletions spec_objects_security/schemas/CsrfToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,11 +16,11 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"binds": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
}
},
"required": [
Expand Down
6 changes: 3 additions & 3 deletions spec_objects_security/schemas/DataClassification.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,7 +16,7 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"level": {
Expand All @@ -25,7 +25,7 @@
"values": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/EnumValue.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/EnumValue.json"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion spec_objects_security/schemas/DefaultedField.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"properties": {
"default": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/DefaultDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/DefaultDecl.json"
}
},
"required": [
Expand Down
12 changes: 6 additions & 6 deletions spec_objects_security/schemas/EncryptionKey.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fields": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/FieldDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/FieldDecl.json"
},
"minItems": 1,
"contains": {
Expand All @@ -16,26 +16,26 @@
"clauses": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/ClauseRef.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/ClauseRef.json"
}
},
"operations": {
"type": "array",
"items": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/OperationDecl.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/OperationDecl.json"
}
},
"lifecycle": {
"$ref": "https://schemas.agent-ix.org/agent-ix/spec-objects-security/SecretLifecycle.json"
},
"material_ref": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
},
"custodian": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/SemanticId.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/SemanticId.json"
},
"algorithm": {
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.0/Identifier.json"
"$ref": "https://schemas.agent-ix.org/semantic-core/0.3.2/Identifier.json"
}
},
"required": [
Expand Down
Loading
Loading