@logicsrc/schemas 0.1.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/README.md +34 -0
- package/fixtures/agent.yaml +20 -0
- package/fixtures/agentad-ad.yaml +33 -0
- package/fixtures/agentad-placement.yaml +21 -0
- package/fixtures/opencontext/conformance.json +279 -0
- package/fixtures/opencontext/invalid/audit-event-missing-actor.json +5 -0
- package/fixtures/opencontext/invalid/audit-event-unknown-event.json +9 -0
- package/fixtures/opencontext/invalid/bundle-bad-digest.json +11 -0
- package/fixtures/opencontext/invalid/bundle-bad-id.json +11 -0
- package/fixtures/opencontext/invalid/bundle-missing-digest.json +10 -0
- package/fixtures/opencontext/invalid/bundle-unknown-exclusion-reason.json +17 -0
- package/fixtures/opencontext/invalid/decision-bad-status.json +7 -0
- package/fixtures/opencontext/invalid/decision-missing-decision.json +5 -0
- package/fixtures/opencontext/invalid/decision-wrong-type.json +6 -0
- package/fixtures/opencontext/invalid/diagnostic-missing-ok.json +4 -0
- package/fixtures/opencontext/invalid/diagnostic-unknown-code.json +11 -0
- package/fixtures/opencontext/invalid/manifest-bad-authority.json +10 -0
- package/fixtures/opencontext/invalid/manifest-bad-extension.json +9 -0
- package/fixtures/opencontext/invalid/manifest-bad-id.json +4 -0
- package/fixtures/opencontext/invalid/manifest-bad-ttl.json +7 -0
- package/fixtures/opencontext/invalid/manifest-missing-version.json +3 -0
- package/fixtures/opencontext/invalid/manifest-role-bad-pattern.json +11 -0
- package/fixtures/opencontext/invalid/manifest-unknown-key.json +5 -0
- package/fixtures/opencontext/invalid/object-bad-digest.json +10 -0
- package/fixtures/opencontext/invalid/object-bad-id.json +4 -0
- package/fixtures/opencontext/invalid/object-bad-layer.json +5 -0
- package/fixtures/opencontext/invalid/object-bad-redaction-mode.json +10 -0
- package/fixtures/opencontext/invalid/object-bad-supersedes.json +7 -0
- package/fixtures/opencontext/invalid/object-confidence-out-of-range.json +5 -0
- package/fixtures/opencontext/invalid/object-extra-property.json +5 -0
- package/fixtures/opencontext/invalid/object-missing-id.json +3 -0
- package/fixtures/opencontext/invalid/object-missing-type.json +3 -0
- package/fixtures/opencontext/invalid/object-source-without-uri.json +9 -0
- package/fixtures/opencontext/invalid/object-unknown-authority.json +5 -0
- package/fixtures/opencontext/invalid/object-unknown-classification.json +5 -0
- package/fixtures/opencontext/invalid/object-unknown-trust.json +5 -0
- package/fixtures/opencontext/invalid/provenance-canonical-false.json +4 -0
- package/fixtures/opencontext/invalid/provenance-no-source.json +3 -0
- package/fixtures/opencontext/invalid/role-bad-classification.json +4 -0
- package/fixtures/opencontext/invalid/role-bad-include.json +6 -0
- package/fixtures/opencontext/invalid-manifest.json +177 -0
- package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds-observed.md +10 -0
- package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds.md +12 -0
- package/fixtures/opencontext/resolution/authority-conflict/expected.json +21 -0
- package/fixtures/opencontext/resolution/authority-conflict/opencontext.yaml +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/context/docs/handbook.md +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/context/docs/litigation.md +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/expected.json +32 -0
- package/fixtures/opencontext/resolution/classification-ceiling/opencontext.yaml +16 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/mission.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/internal/margins.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/refunds.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/expected.json +19 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/opencontext.yaml +17 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds-rewrite.md +12 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds.md +12 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/expected.json +10 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/opencontext.yaml +11 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/current.md +11 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/expired.md +12 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/future.md +12 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/stale.md +11 -0
- package/fixtures/opencontext/resolution/lifecycle/expected.json +30 -0
- package/fixtures/opencontext/resolution/lifecycle/opencontext.yaml +14 -0
- package/fixtures/opencontext/resolution/object-permissions/context/policies/payroll.md +12 -0
- package/fixtures/opencontext/resolution/object-permissions/context/policies/refunds.md +10 -0
- package/fixtures/opencontext/resolution/object-permissions/expected.json +32 -0
- package/fixtures/opencontext/resolution/object-permissions/opencontext.yaml +14 -0
- package/fixtures/opencontext/resolution/redaction/context/customers/acme.json +21 -0
- package/fixtures/opencontext/resolution/redaction/expected.json +28 -0
- package/fixtures/opencontext/resolution/redaction/opencontext.yaml +19 -0
- package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v1.md +12 -0
- package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v2.md +14 -0
- package/fixtures/opencontext/resolution/supersession/expected.json +33 -0
- package/fixtures/opencontext/resolution/supersession/opencontext.yaml +11 -0
- package/fixtures/opencontext/valid/audit-event.json +26 -0
- package/fixtures/opencontext/valid/bundle.json +67 -0
- package/fixtures/opencontext/valid/decision.json +51 -0
- package/fixtures/opencontext/valid/diagnostic.json +37 -0
- package/fixtures/opencontext/valid/manifest-minimal.json +4 -0
- package/fixtures/opencontext/valid/manifest.json +134 -0
- package/fixtures/opencontext/valid/object-minimal.json +4 -0
- package/fixtures/opencontext/valid/object-policy.json +75 -0
- package/fixtures/opencontext/valid/object-structured.json +34 -0
- package/fixtures/opencontext/valid/object-untrusted.json +19 -0
- package/fixtures/opencontext/valid/provenance-canonical.json +4 -0
- package/fixtures/opencontext/valid/provenance.json +14 -0
- package/fixtures/opencontext/valid/role.json +38 -0
- package/fixtures/openontology/conformance.json +158 -0
- package/fixtures/openontology/invalid/action-no-permissions.json +13 -0
- package/fixtures/openontology/invalid/changeset-empty-operations.json +10 -0
- package/fixtures/openontology/invalid/changeset-unknown-op.json +15 -0
- package/fixtures/openontology/invalid/claim-both-objects.json +14 -0
- package/fixtures/openontology/invalid/claim-confidence-out-of-range.json +14 -0
- package/fixtures/openontology/invalid/claim-extra-property.json +14 -0
- package/fixtures/openontology/invalid/claim-unknown-status.json +13 -0
- package/fixtures/openontology/invalid/entity-missing-canonical-name.json +8 -0
- package/fixtures/openontology/invalid/evidence-unknown-selector.json +10 -0
- package/fixtures/openontology/invalid/manifest-bad-id.json +15 -0
- package/fixtures/openontology/invalid/manifest-bad-version.json +15 -0
- package/fixtures/openontology/invalid/manifest-no-maintainer.json +11 -0
- package/fixtures/openontology/invalid/relationship-no-range.json +11 -0
- package/fixtures/openontology/valid/action.json +29 -0
- package/fixtures/openontology/valid/approval.json +12 -0
- package/fixtures/openontology/valid/changeset.json +34 -0
- package/fixtures/openontology/valid/claim-relationship.json +23 -0
- package/fixtures/openontology/valid/claim-value.json +15 -0
- package/fixtures/openontology/valid/constraint.json +12 -0
- package/fixtures/openontology/valid/entity-type.json +16 -0
- package/fixtures/openontology/valid/entity.json +16 -0
- package/fixtures/openontology/valid/event.json +17 -0
- package/fixtures/openontology/valid/evidence.json +12 -0
- package/fixtures/openontology/valid/manifest.json +21 -0
- package/fixtures/openontology/valid/namespace.json +7 -0
- package/fixtures/openontology/valid/property.json +8 -0
- package/fixtures/openontology/valid/query-adhoc.json +16 -0
- package/fixtures/openontology/valid/query.json +24 -0
- package/fixtures/openontology/valid/relationship-type.json +16 -0
- package/fixtures/openontology/valid/review.json +17 -0
- package/fixtures/openontology/valid/source.json +13 -0
- package/fixtures/openprd/conformance.json +104 -0
- package/fixtures/openprd/invalid/bad-filename.md +41 -0
- package/fixtures/openprd/invalid/bad-id-format.md +41 -0
- package/fixtures/openprd/invalid/bad-status.md +41 -0
- package/fixtures/openprd/invalid/dates-backwards.md +43 -0
- package/fixtures/openprd/invalid/duplicate-requirement.md +42 -0
- package/fixtures/openprd/invalid/id-mismatch.md +41 -0
- package/fixtures/openprd/invalid/missing-section.md +37 -0
- package/fixtures/openprd/invalid/missing-title.md +40 -0
- package/fixtures/openprd/invalid/no-front-matter.md +33 -0
- package/fixtures/openprd/invalid/out-of-order.md +41 -0
- package/fixtures/openprd/invalid/superseded-without-replacement.md +41 -0
- package/fixtures/openprd/invalid/unknown-key.md +42 -0
- package/fixtures/openprd/valid/bold-requirements.md +41 -0
- package/fixtures/openprd/valid/full.md +48 -0
- package/fixtures/openprd/valid/minimal.md +41 -0
- package/fixtures/openprd/valid/none-sections.md +41 -0
- package/fixtures/openprd/valid/subsections.md +47 -0
- package/fixtures/openprd/valid/superseded.md +42 -0
- package/fixtures/openprd-prd.yaml +12 -0
- package/fixtures/pull-request.yaml +24 -0
- package/fixtures/repo.yaml +27 -0
- package/fixtures/task.yaml +26 -0
- package/package.json +91 -0
- package/schemas/agentad-ad-request.schema.json +32 -0
- package/schemas/agentad-ad-response.schema.json +31 -0
- package/schemas/agentad-ad.schema.json +79 -0
- package/schemas/agentad-campaign.schema.json +40 -0
- package/schemas/agentad-click.schema.json +23 -0
- package/schemas/agentad-impression.schema.json +18 -0
- package/schemas/agentad-placement.schema.json +46 -0
- package/schemas/logicsrc-account-audit-event.schema.json +31 -0
- package/schemas/logicsrc-account-grant.schema.json +48 -0
- package/schemas/logicsrc-account-provider.schema.json +31 -0
- package/schemas/logicsrc-agent.schema.json +51 -0
- package/schemas/logicsrc-connected-account.schema.json +39 -0
- package/schemas/logicsrc-credential-audit-event.schema.json +32 -0
- package/schemas/logicsrc-credential-provider.schema.json +28 -0
- package/schemas/logicsrc-credential-sync-plan.schema.json +56 -0
- package/schemas/logicsrc-credential-sync-run.schema.json +35 -0
- package/schemas/logicsrc-email-message.schema.json +22 -0
- package/schemas/logicsrc-event.schema.json +25 -0
- package/schemas/logicsrc-opencontext-audit-event.schema.json +69 -0
- package/schemas/logicsrc-opencontext-bundle.schema.json +210 -0
- package/schemas/logicsrc-opencontext-decision.schema.json +229 -0
- package/schemas/logicsrc-opencontext-diagnostic.schema.json +123 -0
- package/schemas/logicsrc-opencontext-manifest.schema.json +337 -0
- package/schemas/logicsrc-opencontext-object.schema.json +311 -0
- package/schemas/logicsrc-opencontext-provenance.schema.json +76 -0
- package/schemas/logicsrc-opencontext-role.schema.json +93 -0
- package/schemas/logicsrc-openontology-action.schema.json +90 -0
- package/schemas/logicsrc-openontology-approval.schema.json +39 -0
- package/schemas/logicsrc-openontology-changeset.schema.json +168 -0
- package/schemas/logicsrc-openontology-claim.schema.json +148 -0
- package/schemas/logicsrc-openontology-constraint.schema.json +104 -0
- package/schemas/logicsrc-openontology-entity-type.schema.json +107 -0
- package/schemas/logicsrc-openontology-entity.schema.json +59 -0
- package/schemas/logicsrc-openontology-event.schema.json +60 -0
- package/schemas/logicsrc-openontology-evidence.schema.json +121 -0
- package/schemas/logicsrc-openontology-manifest.schema.json +148 -0
- package/schemas/logicsrc-openontology-namespace.schema.json +21 -0
- package/schemas/logicsrc-openontology-package.schema.json +73 -0
- package/schemas/logicsrc-openontology-property.schema.json +83 -0
- package/schemas/logicsrc-openontology-query.schema.json +207 -0
- package/schemas/logicsrc-openontology-relationship-type.schema.json +57 -0
- package/schemas/logicsrc-openontology-review.schema.json +37 -0
- package/schemas/logicsrc-openontology-source.schema.json +43 -0
- package/schemas/logicsrc-plugin.schema.json +35 -0
- package/schemas/logicsrc-pull-request.schema.json +73 -0
- package/schemas/logicsrc-repo.schema.json +73 -0
- package/schemas/logicsrc-run.schema.json +69 -0
- package/schemas/logicsrc-social-post.schema.json +26 -0
- package/schemas/logicsrc-task.schema.json +114 -0
- package/schemas/openprd-prd.schema.json +79 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-account-audit-event.schema.json",
|
|
4
|
+
"title": "LogicSRC Account Audit Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "provider", "kind", "principal", "action", "decision", "riskScore", "requestPreview", "resultPreview", "createdAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 },
|
|
10
|
+
"accountId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"provider": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
12
|
+
"kind": { "enum": ["social", "email"] },
|
|
13
|
+
"principal": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["type", "id"],
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"type": { "enum": ["user", "agent", "workflow", "plugin"] },
|
|
19
|
+
"id": { "type": "string", "minLength": 1 },
|
|
20
|
+
"trusted": { "type": "boolean" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"action": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)+$" },
|
|
24
|
+
"decision": { "enum": ["allow", "approval_required", "deny"] },
|
|
25
|
+
"riskScore": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
26
|
+
"requestPreview": { "type": "object" },
|
|
27
|
+
"resultPreview": { "type": "object" },
|
|
28
|
+
"correlationId": { "type": "string", "minLength": 1 },
|
|
29
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-account-grant.schema.json",
|
|
4
|
+
"title": "LogicSRC Account Permission Grant",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "accountId", "principal", "permissions", "policy", "createdAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 },
|
|
10
|
+
"accountId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"principal": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["type", "id"],
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"type": { "enum": ["user", "agent", "workflow", "plugin"] },
|
|
17
|
+
"id": { "type": "string", "minLength": 1 },
|
|
18
|
+
"trusted": { "type": "boolean" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"permissions": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)+$" },
|
|
24
|
+
"uniqueItems": true
|
|
25
|
+
},
|
|
26
|
+
"policy": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["id", "resource", "action", "default"],
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"properties": {
|
|
33
|
+
"id": { "type": "string", "minLength": 1 },
|
|
34
|
+
"resource": { "type": "string", "minLength": 1 },
|
|
35
|
+
"action": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)+$" },
|
|
36
|
+
"default": {
|
|
37
|
+
"enum": ["allow", "approval_required", "deny", "allow_if_dry_run", "allow_if_trusted_agent", "allow_if_below_risk_score"]
|
|
38
|
+
},
|
|
39
|
+
"conditions": { "type": "object" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"expiresAt": { "type": "string", "format": "date-time" },
|
|
44
|
+
"createdBy": { "type": "string", "minLength": 1 },
|
|
45
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
46
|
+
"revokedAt": { "type": "string", "format": "date-time" }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-account-provider.schema.json",
|
|
4
|
+
"title": "LogicSRC Account Provider",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "name", "kind", "authMethods", "capabilities"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
10
|
+
"name": { "type": "string", "minLength": 1 },
|
|
11
|
+
"kind": { "enum": ["social", "email"] },
|
|
12
|
+
"authMethods": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": { "enum": ["oauth2", "api_key", "imap_smtp", "local_bridge"] },
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"uniqueItems": true
|
|
17
|
+
},
|
|
18
|
+
"capabilities": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z][a-z0-9_-]*)+$" },
|
|
21
|
+
"uniqueItems": true
|
|
22
|
+
},
|
|
23
|
+
"defaultScopes": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "type": "string", "minLength": 1 },
|
|
26
|
+
"uniqueItems": true
|
|
27
|
+
},
|
|
28
|
+
"status": { "enum": ["available", "planned", "disabled"] },
|
|
29
|
+
"docsUrl": { "type": "string", "format": "uri" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-agent.schema.json",
|
|
4
|
+
"title": "LogicSRC Agent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["type", "version", "name", "did", "owner_did", "skills", "permissions_requested"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "const": "logicsrc.agent" },
|
|
10
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$" },
|
|
11
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 120 },
|
|
12
|
+
"did": { "$ref": "#/$defs/did" },
|
|
13
|
+
"owner_did": { "$ref": "#/$defs/did" },
|
|
14
|
+
"description": { "type": "string" },
|
|
15
|
+
"skills": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"minItems": 1,
|
|
18
|
+
"items": { "type": "string", "minLength": 1 },
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
},
|
|
21
|
+
"supported_task_types": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": { "type": "string", "minLength": 1 },
|
|
24
|
+
"uniqueItems": true
|
|
25
|
+
},
|
|
26
|
+
"pricing": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"properties": {
|
|
30
|
+
"model": { "type": "string", "enum": ["free", "per_task", "hourly", "subscription"] },
|
|
31
|
+
"amount": { "type": "number", "minimum": 0 },
|
|
32
|
+
"currency": { "type": "string", "minLength": 2, "maxLength": 12 }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"permissions_requested": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9._-]*(:[a-z][a-z0-9._-]*)?$" },
|
|
38
|
+
"uniqueItems": true
|
|
39
|
+
},
|
|
40
|
+
"webhook_url": { "type": "string", "format": "uri" },
|
|
41
|
+
"polling_mode": { "type": "boolean" },
|
|
42
|
+
"public": { "type": "boolean", "default": true },
|
|
43
|
+
"logicsrc_compatibility_version": { "type": "string" }
|
|
44
|
+
},
|
|
45
|
+
"$defs": {
|
|
46
|
+
"did": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*\\.[a-z0-9][a-z0-9._-]*$"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-connected-account.schema.json",
|
|
4
|
+
"title": "LogicSRC Connected Account",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "ownerUserId", "kind", "provider", "displayName", "status", "scopes", "capabilities", "credentialRef", "metadata", "createdAt", "updatedAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 },
|
|
10
|
+
"orgId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"projectId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"boardId": { "type": "string", "minLength": 1 },
|
|
13
|
+
"ownerUserId": { "type": "string", "minLength": 1 },
|
|
14
|
+
"kind": { "enum": ["social", "email"] },
|
|
15
|
+
"provider": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
16
|
+
"providerAccountId": { "type": "string", "minLength": 1 },
|
|
17
|
+
"displayName": { "type": "string", "minLength": 1 },
|
|
18
|
+
"handle": { "type": "string", "minLength": 1 },
|
|
19
|
+
"email": { "type": "string", "format": "email" },
|
|
20
|
+
"avatarUrl": { "type": "string", "format": "uri" },
|
|
21
|
+
"homepageUrl": { "type": "string", "format": "uri" },
|
|
22
|
+
"status": { "enum": ["connected", "expired", "revoked", "error", "disabled", "pending"] },
|
|
23
|
+
"scopes": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "type": "string", "minLength": 1 },
|
|
26
|
+
"uniqueItems": true
|
|
27
|
+
},
|
|
28
|
+
"capabilities": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z][a-z0-9_-]*)+$" },
|
|
31
|
+
"uniqueItems": true
|
|
32
|
+
},
|
|
33
|
+
"credentialRef": { "type": "string", "minLength": 1 },
|
|
34
|
+
"metadata": { "type": "object" },
|
|
35
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
36
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
37
|
+
"lastSyncedAt": { "type": "string", "format": "date-time" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-credential-audit-event.schema.json",
|
|
4
|
+
"title": "LogicSRC Credential Audit Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["type", "id", "provider", "action", "key", "target", "principal", "decision", "dryRun", "createdAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "const": "logicsrc.credential_audit_event" },
|
|
10
|
+
"id": { "type": "string", "minLength": 1 },
|
|
11
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"planId": { "type": "string", "minLength": 1 },
|
|
13
|
+
"provider": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
14
|
+
"action": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)+$" },
|
|
15
|
+
"key": { "type": "string", "minLength": 1 },
|
|
16
|
+
"target": { "type": "string", "minLength": 1 },
|
|
17
|
+
"fingerprint": { "type": "string" },
|
|
18
|
+
"principal": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["type", "id"],
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"properties": {
|
|
23
|
+
"type": { "enum": ["user", "agent", "workflow", "plugin"] },
|
|
24
|
+
"id": { "type": "string", "minLength": 1 },
|
|
25
|
+
"trusted": { "type": "boolean" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"decision": { "enum": ["allow", "approval_required", "deny"] },
|
|
29
|
+
"dryRun": { "type": "boolean" },
|
|
30
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-credential-provider.schema.json",
|
|
4
|
+
"title": "LogicSRC Credential Provider",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "name", "description", "capabilities", "authRequirements", "status"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
10
|
+
"name": { "type": "string", "minLength": 1 },
|
|
11
|
+
"description": { "type": "string", "minLength": 1 },
|
|
12
|
+
"capabilities": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["readValues", "readNames", "write", "delete", "rollback", "audit"],
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"readValues": { "type": "boolean" },
|
|
18
|
+
"readNames": { "type": "boolean" },
|
|
19
|
+
"write": { "type": "boolean" },
|
|
20
|
+
"delete": { "type": "boolean" },
|
|
21
|
+
"rollback": { "type": "boolean" },
|
|
22
|
+
"audit": { "type": "boolean" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"authRequirements": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"status": { "enum": ["available", "planned"] }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-credential-sync-plan.schema.json",
|
|
4
|
+
"title": "LogicSRC Credential Sync Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["type", "id", "from", "to", "policy", "changes", "requiresApproval", "createdAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"$defs": {
|
|
9
|
+
"endpoint": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["provider"],
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"properties": {
|
|
14
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
15
|
+
"path": { "type": "string" },
|
|
16
|
+
"project": { "type": "string" },
|
|
17
|
+
"config": { "type": "string" },
|
|
18
|
+
"service": { "type": "string" },
|
|
19
|
+
"scope": { "type": "string" },
|
|
20
|
+
"metadata": { "type": "object" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"change": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["key", "op", "destructive"],
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"properties": {
|
|
28
|
+
"key": { "type": "string", "minLength": 1 },
|
|
29
|
+
"op": { "enum": ["add", "update", "remove", "unchanged", "unknown"] },
|
|
30
|
+
"sourceFingerprint": { "type": "string" },
|
|
31
|
+
"targetFingerprint": { "type": "string" },
|
|
32
|
+
"destructive": { "type": "boolean" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"properties": {
|
|
37
|
+
"type": { "const": "logicsrc.credential_sync_plan" },
|
|
38
|
+
"id": { "type": "string", "minLength": 1 },
|
|
39
|
+
"from": { "$ref": "#/$defs/endpoint" },
|
|
40
|
+
"to": { "$ref": "#/$defs/endpoint" },
|
|
41
|
+
"policy": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["redactValues", "requireApprovalForDestructive"],
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"redactValues": { "const": true },
|
|
47
|
+
"requireApprovalForDestructive": { "type": "boolean" },
|
|
48
|
+
"denyKeys": { "type": "array", "items": { "type": "string" } }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"changes": { "type": "array", "items": { "$ref": "#/$defs/change" } },
|
|
52
|
+
"requiresApproval": { "type": "boolean" },
|
|
53
|
+
"rollbackOfRunId": { "type": "string", "minLength": 1 },
|
|
54
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-credential-sync-run.schema.json",
|
|
4
|
+
"title": "LogicSRC Credential Sync Run",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["type", "id", "planId", "status", "dryRun", "results", "auditEventIds", "reversible", "startedAt", "finishedAt"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "const": "logicsrc.credential_sync_run" },
|
|
10
|
+
"id": { "type": "string", "minLength": 1 },
|
|
11
|
+
"planId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"status": { "enum": ["planned", "dry_run", "applied", "partial", "failed", "rolled_back"] },
|
|
13
|
+
"dryRun": { "type": "boolean" },
|
|
14
|
+
"results": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["key", "op", "applied", "dryRun"],
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"key": { "type": "string", "minLength": 1 },
|
|
22
|
+
"op": { "enum": ["add", "update", "remove", "unchanged", "unknown"] },
|
|
23
|
+
"applied": { "type": "boolean" },
|
|
24
|
+
"dryRun": { "type": "boolean" },
|
|
25
|
+
"targetFingerprint": { "type": "string" },
|
|
26
|
+
"error": { "type": "string" }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"auditEventIds": { "type": "array", "items": { "type": "string" } },
|
|
31
|
+
"reversible": { "type": "boolean" },
|
|
32
|
+
"startedAt": { "type": "string", "format": "date-time" },
|
|
33
|
+
"finishedAt": { "type": "string", "format": "date-time" }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-email-message.schema.json",
|
|
4
|
+
"title": "LogicSRC Email Message Metadata",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "providerMessageId", "toAddresses", "ccAddresses", "labels", "hasAttachments"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 },
|
|
10
|
+
"providerMessageId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"threadId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"subject": { "type": "string" },
|
|
13
|
+
"fromAddress": { "type": "string" },
|
|
14
|
+
"toAddresses": { "type": "array", "items": { "type": "string" } },
|
|
15
|
+
"ccAddresses": { "type": "array", "items": { "type": "string" } },
|
|
16
|
+
"snippet": { "type": "string" },
|
|
17
|
+
"labels": { "type": "array", "items": { "type": "string" } },
|
|
18
|
+
"hasAttachments": { "type": "boolean" },
|
|
19
|
+
"receivedAt": { "type": "string", "format": "date-time" },
|
|
20
|
+
"sentAt": { "type": "string", "format": "date-time" }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.logicsrc.com/logicsrc-event.schema.json",
|
|
4
|
+
"title": "LogicSRC Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["type", "version", "event", "id", "created_at", "actor_did", "resource_type", "resource_id", "data"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "const": "logicsrc.event" },
|
|
10
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$" },
|
|
11
|
+
"event": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$"
|
|
14
|
+
},
|
|
15
|
+
"id": { "type": "string", "minLength": 1 },
|
|
16
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
17
|
+
"actor_did": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*\\.[a-z0-9][a-z0-9._-]*$"
|
|
20
|
+
},
|
|
21
|
+
"resource_type": { "type": "string", "minLength": 1 },
|
|
22
|
+
"resource_id": { "type": "string", "minLength": 1 },
|
|
23
|
+
"data": { "type": "object" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://logicsrc.com/schemas/opencontext/audit-event.schema.json",
|
|
4
|
+
"title": "OpenContext Audit Event",
|
|
5
|
+
"description": "One recorded interaction with the context plane: a read, a bundle generation, a write, a conflict the resolver refused to guess about, or a decision. The specification defines the event shape and leaves storage to the implementation — an NDJSON file in the repository is a conforming sink, and so is a warehouse. The point is that after an agent is retired, its reads and writes remain attributable.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["opencontext", "event", "at", "actor"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"opencontext": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$" },
|
|
11
|
+
"event": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"context.read",
|
|
15
|
+
"context.search",
|
|
16
|
+
"context.resolve",
|
|
17
|
+
"context.bundle",
|
|
18
|
+
"context.write",
|
|
19
|
+
"context.supersede",
|
|
20
|
+
"context.conflict",
|
|
21
|
+
"context.denied",
|
|
22
|
+
"decision.record"
|
|
23
|
+
],
|
|
24
|
+
"description": "What happened. context.denied records an authorization refusal, which is usually the most interesting line in the log."
|
|
25
|
+
},
|
|
26
|
+
"at": { "type": "string", "format": "date-time", "description": "When it happened." },
|
|
27
|
+
"actor": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": ["type", "id"],
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"description": "Who did it. An agent acting for a person records both, so an action is never attributable to a model alone.",
|
|
32
|
+
"properties": {
|
|
33
|
+
"type": { "type": "string", "enum": ["agent", "human", "role", "service"] },
|
|
34
|
+
"id": { "type": "string", "minLength": 1 },
|
|
35
|
+
"roles": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
36
|
+
"on_behalf_of": { "type": "string", "description": "The human or service the actor was acting for." }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"task": { "type": "string", "description": "The task the context was being used for, when there was one." },
|
|
40
|
+
"objects": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"items": { "type": "string", "minLength": 1 },
|
|
44
|
+
"description": "Context object ids the event touched."
|
|
45
|
+
},
|
|
46
|
+
"bundle": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"description": "The bundle produced or consumed. The digest is what makes the record verifiable rather than merely descriptive.",
|
|
50
|
+
"properties": {
|
|
51
|
+
"bundle_id": { "type": "string", "pattern": "^ocb_[a-z0-9_-]+$" },
|
|
52
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
53
|
+
"object_count": { "type": "integer", "minimum": 0 }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"outcome": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": ["allowed", "denied", "partial", "error"],
|
|
59
|
+
"description": "partial is the normal outcome of a resolution that excluded some candidates; denied means the consumer was refused everything it asked for."
|
|
60
|
+
},
|
|
61
|
+
"reason": { "type": "string", "description": "Why, especially for denied and error outcomes." },
|
|
62
|
+
"namespace": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
63
|
+
"extensions": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"propertyNames": { "type": "string", "pattern": "^[a-z0-9]+(\\.[a-z0-9-]+)+$" },
|
|
66
|
+
"additionalProperties": true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|