@fourier-labs/harbour-contracts 0.4.0 → 0.6.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/dist/gen-ts/ai-callsite-inventory.d.ts +49 -0
- package/dist/gen-ts/ai-gateway-key-lookup.d.ts +20 -0
- package/dist/gen-ts/ai-gateway-key-token.d.ts +4 -0
- package/dist/gen-ts/ai-gateway-key-token.js +6 -0
- package/dist/gen-ts/ai-governance-decision.d.ts +74 -0
- package/dist/gen-ts/ai-policy-snapshot.d.ts +165 -0
- package/dist/gen-ts/ai-runtime-contract.d.ts +27 -0
- package/dist/gen-ts/ai-trace-event.d.ts +68 -0
- package/dist/gen-ts/ai-transform-event.d.ts +47 -0
- package/dist/gen-ts/ai-transform-result.d.ts +32 -0
- package/dist/gen-ts/ai-verification-evidence.d.ts +49 -0
- package/dist/gen-ts/data-dependency.d.ts +42 -0
- package/dist/gen-ts/data-grant.d.ts +58 -0
- package/dist/gen-ts/data-grant.js +12 -0
- package/dist/gen-ts/data-source.d.ts +74 -0
- package/dist/{deploy-request.d.ts → gen-ts/deploy-request.d.ts} +30 -0
- package/dist/gen-ts/deployment-source.js +3 -0
- package/dist/gen-ts/deployment-status-failure.js +3 -0
- package/dist/gen-ts/deployment-status-request.js +3 -0
- package/dist/gen-ts/deployment-status-response.js +3 -0
- package/dist/gen-ts/env-bindings.js +3 -0
- package/dist/{error-category-registry.d.ts → gen-ts/error-category-registry.d.ts} +5 -0
- package/dist/{error-category-registry.js → gen-ts/error-category-registry.js} +10 -0
- package/dist/gen-ts/error-category.js +3 -0
- package/dist/gen-ts/error-envelope.js +3 -0
- package/dist/{index.d.ts → gen-ts/index.d.ts} +15 -0
- package/dist/{index.js → gen-ts/index.js} +15 -0
- package/dist/gen-ts/kvs-routing-entry.d.ts +27 -0
- package/dist/gen-ts/kvs-routing-entry.js +3 -0
- package/dist/gen-ts/promotion-request.d.ts +40 -0
- package/dist/gen-ts/promotion-request.js +3 -0
- package/dist/gen-ts/promotion-response.js +3 -0
- package/dist/gen-ts/secret-reference.d.ts +36 -0
- package/dist/gen-ts/secret-reference.js +3 -0
- package/dist/gen-ts/transform-report.d.ts +102 -0
- package/dist/gen-ts/transform-report.js +3 -0
- package/dist/gen-ts/version-state.js +3 -0
- package/dist/resolver/index.d.ts +256 -0
- package/dist/resolver/index.js +679 -0
- package/package.json +14 -4
- package/schema/ai-callsite-inventory.schema.json +138 -0
- package/schema/ai-gateway-key-lookup.schema.json +53 -0
- package/schema/ai-governance-decision.schema.json +105 -0
- package/schema/ai-policy-snapshot.schema.json +340 -0
- package/schema/ai-runtime-contract.schema.json +85 -0
- package/schema/ai-trace-event.schema.json +178 -0
- package/schema/ai-transform-event.schema.json +72 -0
- package/schema/ai-transform-result.schema.json +46 -0
- package/schema/ai-verification-evidence.schema.json +57 -0
- package/schema/data-dependency.schema.json +89 -0
- package/schema/data-grant.schema.json +107 -0
- package/schema/data-source.schema.json +151 -0
- package/schema/deploy-request.schema.json +60 -0
- package/schema/error-category.enum.json +6 -1
- package/schema/kvs-routing-entry.schema.json +28 -8
- package/schema/promotion-request.schema.json +38 -0
- package/schema/secret-reference.schema.json +70 -0
- package/schema/transform-report.schema.json +204 -0
- package/dist/kvs-routing-entry.d.ts +0 -13
- package/dist/promotion-request.d.ts +0 -17
- /package/dist/{api-error-response.js → gen-ts/ai-callsite-inventory.js} +0 -0
- /package/dist/{artifact-contract.js → gen-ts/ai-gateway-key-lookup.js} +0 -0
- /package/dist/{deploy-request.js → gen-ts/ai-governance-decision.js} +0 -0
- /package/dist/{deploy-response.js → gen-ts/ai-policy-snapshot.js} +0 -0
- /package/dist/{deployment-environment.js → gen-ts/ai-runtime-contract.js} +0 -0
- /package/dist/{deployment-source.js → gen-ts/ai-trace-event.js} +0 -0
- /package/dist/{deployment-status-failure.js → gen-ts/ai-transform-event.js} +0 -0
- /package/dist/{deployment-status-request.js → gen-ts/ai-transform-result.js} +0 -0
- /package/dist/{deployment-status-response.js → gen-ts/ai-verification-evidence.js} +0 -0
- /package/dist/{api-error-response.d.ts → gen-ts/api-error-response.d.ts} +0 -0
- /package/dist/{env-bindings.js → gen-ts/api-error-response.js} +0 -0
- /package/dist/{artifact-contract.d.ts → gen-ts/artifact-contract.d.ts} +0 -0
- /package/dist/{error-category.js → gen-ts/artifact-contract.js} +0 -0
- /package/dist/{error-envelope.js → gen-ts/data-dependency.js} +0 -0
- /package/dist/{kvs-routing-entry.js → gen-ts/data-source.js} +0 -0
- /package/dist/{promotion-request.js → gen-ts/deploy-request.js} +0 -0
- /package/dist/{deploy-response.d.ts → gen-ts/deploy-response.d.ts} +0 -0
- /package/dist/{promotion-response.js → gen-ts/deploy-response.js} +0 -0
- /package/dist/{deployment-environment.d.ts → gen-ts/deployment-environment.d.ts} +0 -0
- /package/dist/{version-state.js → gen-ts/deployment-environment.js} +0 -0
- /package/dist/{deployment-source.d.ts → gen-ts/deployment-source.d.ts} +0 -0
- /package/dist/{deployment-status-failure.d.ts → gen-ts/deployment-status-failure.d.ts} +0 -0
- /package/dist/{deployment-status-request.d.ts → gen-ts/deployment-status-request.d.ts} +0 -0
- /package/dist/{deployment-status-response.d.ts → gen-ts/deployment-status-response.d.ts} +0 -0
- /package/dist/{env-bindings.d.ts → gen-ts/env-bindings.d.ts} +0 -0
- /package/dist/{error-category.d.ts → gen-ts/error-category.d.ts} +0 -0
- /package/dist/{error-envelope.d.ts → gen-ts/error-envelope.d.ts} +0 -0
- /package/dist/{promotion-response.d.ts → gen-ts/promotion-response.d.ts} +0 -0
- /package/dist/{version-state-machine.d.ts → gen-ts/version-state-machine.d.ts} +0 -0
- /package/dist/{version-state-machine.js → gen-ts/version-state-machine.js} +0 -0
- /package/dist/{version-state.d.ts → gen-ts/version-state.d.ts} +0 -0
|
@@ -2,20 +2,40 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://schemas.harbour.dev/kvs-routing-entry.schema.json",
|
|
4
4
|
"title": "KvsRoutingEntry",
|
|
5
|
-
"description": "Value stored in the CloudFront KeyValueStore
|
|
5
|
+
"description": "Value stored in the CloudFront KeyValueStore and read by the viewer-request router on EVERY request. Keyed by `<org>.<app>` — the tenant-qualified app identity, not a host header; slugs are lowercase DNS-label-shaped and cannot contain dots, so the single dot is an unambiguous separator. Two constraints cannot be expressed in JSON Schema and are enforced in the router: the TOTAL length of all `staticAssetPrefixes` must not exceed 512 bytes, and the array must be empty when `routeMode` is `static`. Written by cutover; a request whose entry fails any of these rules is refused at the edge rather than routed on a guess.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": ["
|
|
8
|
+
"required": ["staticPath", "routeMode", "ordinal"],
|
|
9
9
|
"properties": {
|
|
10
|
-
"
|
|
10
|
+
"staticPath": {
|
|
11
11
|
"type": "string",
|
|
12
|
-
"
|
|
13
|
-
"description": "
|
|
12
|
+
"pattern": "^builds/[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?/[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?/[0-9a-f]{64}$",
|
|
13
|
+
"description": "Immutable prefix of the LIVE version's static output: `builds/<org>/<app>/<64-hex-digest>`, with no trailing slash. The digest is what makes a cutover safe — the router rewrites matching requests to this prefix before the cache lookup, so it is also the edge cache key, and a new version therefore cannot serve the previous version's cached bytes."
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"routeMode": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"
|
|
18
|
-
"description": "
|
|
17
|
+
"enum": ["server", "static"],
|
|
18
|
+
"description": "Whether the app has an application runtime. REQUIRED: an entry without it is refused with 503 rather than guessed at. In `server` mode a path under a declared `staticAssetPrefixes` entry is served from S3 and everything else goes to `apiDomain`; in `static` mode every path is served from S3."
|
|
19
|
+
},
|
|
20
|
+
"ordinal": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 1,
|
|
23
|
+
"description": "The version's monotonic sequence number within its lane. Cutover uses it to keep writes one-way: an entry is only replaced by a strictly higher ordinal, so a delayed or replayed write cannot move an app backwards."
|
|
24
|
+
},
|
|
25
|
+
"apiDomain": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-z0-9-]+\\.lambda-url\\.[a-z0-9-]+\\.on\\.aws$",
|
|
28
|
+
"description": "The app runtime's AWS_IAM-protected Lambda Function URL host. Required in `server` mode and omitted entirely for a static-only app. The router refuses any other domain shape, so this cannot be pointed at an arbitrary origin."
|
|
29
|
+
},
|
|
30
|
+
"staticAssetPrefixes": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"maxItems": 16,
|
|
33
|
+
"uniqueItems": true,
|
|
34
|
+
"description": "Build-derived prefixes that a `server` app serves from its immutable S3 output rather than from its runtime, e.g. `_next/static/`. Derived from verified build output, never from framework names. Must be strictly ascending, must total at most 512 bytes, and must be absent or empty in `static` mode — the last two are enforced in the router because JSON Schema cannot express them. Omitted when empty: a server app with public build output and no prefixes serves every asset from its Lambda, which is a build-plan defect rather than a routing one.",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Za-z0-9_-]+(?:/[A-Za-z0-9_-]+)*/$"
|
|
38
|
+
}
|
|
19
39
|
}
|
|
20
40
|
}
|
|
21
41
|
}
|
|
@@ -21,6 +21,44 @@
|
|
|
21
21
|
"type": "string",
|
|
22
22
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$",
|
|
23
23
|
"description": "Durable caller-generated key. Identical replays return the original production version; reuse with a changed request is rejected."
|
|
24
|
+
},
|
|
25
|
+
"environmentBindings": {
|
|
26
|
+
"$ref": "#/definitions/PromotionRequestEnvironmentBindings"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"definitions": {
|
|
30
|
+
"PromotionRequestEnvironmentBindings": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["bindings"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"bindings": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"$ref": "#/definitions/PromotionRequestSecretBinding"
|
|
39
|
+
},
|
|
40
|
+
"description": "Secret bindings for the production version. An empty array is meaningful: it says the caller looked and the app declares no secrets."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"description": "Optional secret bindings for the production version. Additive: promotions without it remain valid, and a deployment plane that ignores the field behaves exactly as before. Named environmentBindings to match deploy-request.schema.json, whose preview counterpart this mirrors."
|
|
44
|
+
},
|
|
45
|
+
"PromotionRequestSecretBinding": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["name", "secretRef"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"name": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"pattern": "^[A-Z][A-Z0-9_]{0,127}$",
|
|
53
|
+
"description": "Environment-variable name the app reads."
|
|
54
|
+
},
|
|
55
|
+
"secretRef": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^secretref://tenant/[A-Za-z0-9._-]+/app/[A-Za-z0-9._-]+/secret/[A-Z][A-Z0-9_]{0,127}$",
|
|
58
|
+
"description": "Governance reference the deployment plane resolves. The value never appears in the request, in this schema, or in any record derived from it."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"description": "One secret binding. Unlike the preview counterpart there is no `value` member and `secretRef` is required, so a plain literal is unrepresentable on the promotion path rather than merely refused by the handler. The secretRef pattern admits only the app-secret shape, which is what keeps a promotion from naming a tenant integration credential."
|
|
24
62
|
}
|
|
25
63
|
}
|
|
26
64
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.harbour.dev/secret-reference.schema.json",
|
|
4
|
+
"title": "SecretReference",
|
|
5
|
+
"description": "Secret-Manager MVP: a named secret slot an app depends on. Only the reference and its lifecycle cross this boundary — the secret VALUE never appears in any contract. scope=app secrets are shared by the app; scope=personal secrets belong to one builder (ownerBuilderId). origin records whether a builder created the slot or the platform minted it (e.g. for a data grant).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["appId", "name", "scope", "secretRef", "status", "origin"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"appId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 255,
|
|
14
|
+
"description": "App the secret slot belongs to."
|
|
15
|
+
},
|
|
16
|
+
"name": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 255,
|
|
20
|
+
"description": "Slot name as the app references it (typically the environment-variable name)."
|
|
21
|
+
},
|
|
22
|
+
"scope": {
|
|
23
|
+
"$ref": "#/definitions/SecretReferenceScope"
|
|
24
|
+
},
|
|
25
|
+
"ownerBuilderId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 255,
|
|
29
|
+
"description": "Owning builder; present only when scope is personal."
|
|
30
|
+
},
|
|
31
|
+
"secretRef": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^secretref://[A-Za-z0-9][A-Za-z0-9/_.:-]*$",
|
|
34
|
+
"description": "secretref URI of the stored value. The value itself never crosses this boundary."
|
|
35
|
+
},
|
|
36
|
+
"status": {
|
|
37
|
+
"$ref": "#/definitions/SecretReferenceStatus"
|
|
38
|
+
},
|
|
39
|
+
"origin": {
|
|
40
|
+
"$ref": "#/definitions/SecretReferenceOrigin"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"definitions": {
|
|
44
|
+
"SecretReferenceScope": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["app", "personal"],
|
|
47
|
+
"description": "app = shared by the whole app; personal = owned by a single builder (ownerBuilderId)."
|
|
48
|
+
},
|
|
49
|
+
"SecretReferenceStatus": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["SET", "UNSET"],
|
|
52
|
+
"description": "UNSET slots block promotion until a human sets a value (secrets.unresolvable)."
|
|
53
|
+
},
|
|
54
|
+
"SecretReferenceOrigin": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["builder", "minted"],
|
|
57
|
+
"description": "builder = created by a builder; minted = created by the platform (e.g. a data-grant credential)."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"examples": [
|
|
61
|
+
{
|
|
62
|
+
"appId": "reports",
|
|
63
|
+
"name": "STRIPE_API_KEY",
|
|
64
|
+
"scope": "app",
|
|
65
|
+
"secretRef": "secretref://tenants/fourier/apps/reports/STRIPE_API_KEY",
|
|
66
|
+
"status": "SET",
|
|
67
|
+
"origin": "builder"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.harbour.dev/transform-report.schema.json",
|
|
4
|
+
"title": "TransformReport",
|
|
5
|
+
"description": "Structured output an agent must return from one Harbour transformation attempt. Handed to the agent as its output schema, then decoded and semantically re-validated by the control plane, which remains the authority. The enum on applied_playbooks.items is the one dynamic part: the adapter injects the names of the playbooks supplied for that invocation before writing the document, so the model is structurally prevented from naming a playbook it was not given. Application-secret handling was removed platform-wide, so this document carries no redactions and no secrets fields.",
|
|
6
|
+
"x-go-embed": true,
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"applied_playbooks",
|
|
11
|
+
"static_rebuild_required",
|
|
12
|
+
"analysis",
|
|
13
|
+
"database",
|
|
14
|
+
"application"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"applied_playbooks": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"items": { "type": "string", "minLength": 1 }
|
|
21
|
+
},
|
|
22
|
+
"static_rebuild_required": { "type": "boolean" },
|
|
23
|
+
"analysis": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["deployable", "needsTransformation", "blockers", "surfaces", "evidence"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"deployable": { "type": "boolean" },
|
|
29
|
+
"needsTransformation": { "type": "boolean" },
|
|
30
|
+
"blockers": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"maxItems": 64,
|
|
33
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
34
|
+
},
|
|
35
|
+
"surfaces": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"minItems": 1,
|
|
38
|
+
"maxItems": 1024,
|
|
39
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
40
|
+
},
|
|
41
|
+
"evidence": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"maxItems": 1024,
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["path", "line", "reason"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
50
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
51
|
+
"reason": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"database": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"mode",
|
|
62
|
+
"changeType",
|
|
63
|
+
"requiresCodeChanges",
|
|
64
|
+
"requiresSchemaMigration",
|
|
65
|
+
"desiredSchemaPath",
|
|
66
|
+
"migrationPaths",
|
|
67
|
+
"changedFiles",
|
|
68
|
+
"evidence",
|
|
69
|
+
"unsupportedFeatures"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"mode": { "type": "string", "enum": ["none", "sql", "unsupported"] },
|
|
73
|
+
"changeType": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": ["none", "code_only", "schema_only", "code_and_schema"]
|
|
76
|
+
},
|
|
77
|
+
"requiresCodeChanges": { "type": "boolean" },
|
|
78
|
+
"requiresSchemaMigration": { "type": "boolean" },
|
|
79
|
+
"desiredSchemaPath": { "type": "string", "maxLength": 512 },
|
|
80
|
+
"migrationPaths": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"maxItems": 128,
|
|
83
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
84
|
+
},
|
|
85
|
+
"changedFiles": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"maxItems": 512,
|
|
88
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
89
|
+
},
|
|
90
|
+
"evidence": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"maxItems": 128,
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": ["path", "line", "reason"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
99
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
100
|
+
"reason": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"unsupportedFeatures": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"maxItems": 64,
|
|
107
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"application": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"runtime",
|
|
116
|
+
"buildKind",
|
|
117
|
+
"topology",
|
|
118
|
+
"entrypoint",
|
|
119
|
+
"build",
|
|
120
|
+
"basePath",
|
|
121
|
+
"evidence",
|
|
122
|
+
"unsupportedFeatures"
|
|
123
|
+
],
|
|
124
|
+
"properties": {
|
|
125
|
+
"runtime": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"pattern": "^(?:nodejs|python)[0-9]+(?:\\.[0-9]+)?$"
|
|
128
|
+
},
|
|
129
|
+
"buildKind": { "type": "string", "enum": ["container", "static"] },
|
|
130
|
+
"topology": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"enum": ["static", "backend", "frontend_and_backend"]
|
|
133
|
+
},
|
|
134
|
+
"entrypoint": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
135
|
+
"build": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": ["installCommand", "buildCommand", "outputs"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"installCommand": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"minItems": 1,
|
|
143
|
+
"maxItems": 64,
|
|
144
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
145
|
+
},
|
|
146
|
+
"buildCommand": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"minItems": 1,
|
|
149
|
+
"maxItems": 64,
|
|
150
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
151
|
+
},
|
|
152
|
+
"outputs": {
|
|
153
|
+
"type": "array",
|
|
154
|
+
"minItems": 1,
|
|
155
|
+
"maxItems": 16,
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"required": ["path", "kind", "route"],
|
|
160
|
+
"properties": {
|
|
161
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
162
|
+
"kind": { "type": "string", "enum": ["public", "backend"] },
|
|
163
|
+
"route": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"pattern": "^(?:/\\*|/[A-Za-z0-9_-]+(?:/[A-Za-z0-9_-]+)*/\\*)$"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"basePath": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"additionalProperties": false,
|
|
175
|
+
"required": ["required", "environmentVariable"],
|
|
176
|
+
"properties": {
|
|
177
|
+
"required": { "type": "boolean" },
|
|
178
|
+
"environmentVariable": { "type": "string", "enum": ["HARBOUR_BASE_PATH"] }
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"evidence": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"minItems": 1,
|
|
184
|
+
"maxItems": 64,
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"required": ["path", "line", "reason"],
|
|
189
|
+
"properties": {
|
|
190
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
191
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
192
|
+
"reason": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"unsupportedFeatures": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"maxItems": 64,
|
|
199
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Value stored in the CloudFront KeyValueStore, keyed by host header `<app>.(beta.)harbour.dev` and read by the CloudFront Function on every request (LLD §8). MVP carries exactly {static, api} and nothing else — quota/kill-switch fields are a deliberate, additive future extension consumed by the same function.
|
|
3
|
-
*/
|
|
4
|
-
export interface KvsRoutingEntry {
|
|
5
|
-
/**
|
|
6
|
-
* S3 origin path for static assets of the LIVE version, e.g. `builds/<app>/<digest>/` (from the artifact `static.path`, LLD §3).
|
|
7
|
-
*/
|
|
8
|
-
static: string;
|
|
9
|
-
/**
|
|
10
|
-
* Backend target for `/api/*` routes — the Lambda alias reached via API Gateway / Function URL for the LIVE version.
|
|
11
|
-
*/
|
|
12
|
-
api: string;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON body for POST /v1/tenants/{tenant}/apps/{app}/promotions. Repository identity is loaded from stored application and preview records, not supplied by the caller.
|
|
3
|
-
*/
|
|
4
|
-
export interface PromotionRequest {
|
|
5
|
-
/**
|
|
6
|
-
* Immutable preview version selected by the caller. The API also verifies that its tenant and app match the route.
|
|
7
|
-
*/
|
|
8
|
-
previewVersionId: string;
|
|
9
|
-
/**
|
|
10
|
-
* Current commit at the configured production branch head. Its root Git tree must equal the preview tree.
|
|
11
|
-
*/
|
|
12
|
-
commit: string;
|
|
13
|
-
/**
|
|
14
|
-
* Durable caller-generated key. Identical replays return the original production version; reuse with a changed request is rejected.
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey: string;
|
|
17
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|