@mdbase-dev/connect-protocol 0.1.0-beta.126 → 0.1.0-beta.147
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/application-contract.d.ts +23 -0
- package/dist/application-contract.js +76 -0
- package/dist/application-declaration.d.ts +120 -0
- package/dist/application-declaration.js +1 -0
- package/dist/authorization-errors.d.ts +34 -0
- package/dist/authorization-errors.js +52 -0
- package/dist/connect-problems.generated.d.ts +134 -0
- package/dist/connect-problems.generated.js +23 -0
- package/dist/index.d.ts +10 -115
- package/dist/index.js +4 -0
- package/dist/manifest-validators.generated.d.ts +13 -0
- package/dist/manifest-validators.generated.js +7940 -0
- package/dist/manifest.d.ts +3 -0
- package/dist/manifest.js +70 -33
- package/dist/next-authorization.d.ts +30 -0
- package/dist/next-authorization.js +90 -0
- package/package.json +10 -4
- package/schemas/connect-problem.v1.schema.json +493 -0
- package/schemas/connect-problems.v1.catalog.json +21 -0
- package/schemas/connect-protocol.v1.schema.json +1 -0
- package/schemas/mdbase-app.legacy-v1.schema.json +25 -0
- package/schemas/mdbase-app.schema.json +25 -0
- package/schemas/next-trust.v1.schema.json +54 -0
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"description": "Stable reverse-domain application identifier. This is presentation metadata, not publisher authentication."
|
|
20
20
|
},
|
|
21
21
|
"name": { "type": "string", "minLength": 1, "maxLength": 100 },
|
|
22
|
+
"platform": { "const": "native", "description": "Unverified native app; permits literal IPv4 loopback HTTP on any port." },
|
|
22
23
|
"homepage": { "type": "string", "format": "uri", "pattern": "^https://" },
|
|
23
24
|
"project_url": { "type": "string", "format": "uri", "pattern": "^https://" },
|
|
24
25
|
"icon": { "type": "string", "format": "uri", "pattern": "^https://" },
|
|
@@ -33,6 +34,15 @@
|
|
|
33
34
|
"description": "An HTTPS URI on the homepage origin or a private-use scheme derived from the application ID."
|
|
34
35
|
}
|
|
35
36
|
},
|
|
37
|
+
"installation_origins": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"lab": { "$ref": "#/$defs/installationOriginPolicy" },
|
|
42
|
+
"staging": { "$ref": "#/$defs/installationOriginPolicy" },
|
|
43
|
+
"production": { "$ref": "#/$defs/installationOriginPolicy" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
36
46
|
"requirements": { "$ref": "#/$defs/requirements" },
|
|
37
47
|
"provisions": {
|
|
38
48
|
"type": "object",
|
|
@@ -79,12 +89,27 @@
|
|
|
79
89
|
"required": ["distribution"],
|
|
80
90
|
"properties": {
|
|
81
91
|
"distribution": { "const": "portable" },
|
|
92
|
+
"platform": false,
|
|
82
93
|
"homepage": false,
|
|
83
94
|
"redirect_uris": false
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
],
|
|
87
98
|
"$defs": {
|
|
99
|
+
"installationOriginPolicy": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"properties": {
|
|
103
|
+
"app-runtime": { "$ref": "#/$defs/installationOrigins" },
|
|
104
|
+
"mobile": { "$ref": "#/$defs/installationOrigins" }
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"installationOrigins": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"maxItems": 16,
|
|
110
|
+
"uniqueItems": true,
|
|
111
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 255, "format": "uri" }
|
|
112
|
+
},
|
|
88
113
|
"identifier": {
|
|
89
114
|
"type": "string",
|
|
90
115
|
"minLength": 1,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mdbase.dev/schemas/next-trust.v1.schema.json",
|
|
4
|
+
"title": "NEXT public trust payload v1 (authenticated release asset)",
|
|
5
|
+
"description": "Canonical UTF-8 JSON, at most 65536 bytes. Authenticate the external release bundle and asset digest first. This schema is not a signature verifier. Semantic key-ID, certificate, time, ordering and environment/source checks are mandatory.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema_version", "environment", "control_plane_origin", "log_origin", "issued_at", "source", "roots", "policy_keys"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema_version": {"const": 1},
|
|
11
|
+
"environment": {"enum": ["lab", "staging", "production"]},
|
|
12
|
+
"control_plane_origin": {"$ref": "#/$defs/origin"},
|
|
13
|
+
"log_origin": {"$ref": "#/$defs/origin"},
|
|
14
|
+
"issued_at": {"$ref": "#/$defs/time"},
|
|
15
|
+
"source": {
|
|
16
|
+
"type": "object", "additionalProperties": false,
|
|
17
|
+
"required": ["repository", "commit", "version"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"repository": {"const": "mdbase-dev/mdbase-connect"},
|
|
20
|
+
"commit": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
|
|
21
|
+
"version": {"type": "string", "pattern": "^[0-9A-Za-z.+-]{1,64}$"}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"roots": {"type": "array", "minItems": 1, "maxItems": 8, "items": {"$ref": "#/$defs/root"}},
|
|
25
|
+
"policy_keys": {"type": "array", "minItems": 1, "maxItems": 32, "items": {"$ref": "#/$defs/policy"}}
|
|
26
|
+
},
|
|
27
|
+
"$defs": {
|
|
28
|
+
"origin": {"type": "string", "maxLength": 512, "pattern": "^https://[^/?#@\\s]+$"},
|
|
29
|
+
"time": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
30
|
+
"key_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
|
|
31
|
+
"public_key": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
32
|
+
"root": {
|
|
33
|
+
"type": "object", "additionalProperties": false,
|
|
34
|
+
"required": ["key_id", "public_key"],
|
|
35
|
+
"properties": {"key_id": {"$ref": "#/$defs/key_id"}, "public_key": {"$ref": "#/$defs/public_key"}}
|
|
36
|
+
},
|
|
37
|
+
"certificate": {
|
|
38
|
+
"type": "object", "additionalProperties": false,
|
|
39
|
+
"required": ["policy_public_key", "not_before", "not_after", "root_key_id", "signature"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"policy_public_key": {"$ref": "#/$defs/public_key"},
|
|
42
|
+
"not_before": {"$ref": "#/$defs/time"},
|
|
43
|
+
"not_after": {"$ref": "#/$defs/time"},
|
|
44
|
+
"root_key_id": {"$ref": "#/$defs/key_id"},
|
|
45
|
+
"signature": {"type": "string", "pattern": "^[0-9a-f]{128}$"}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"policy": {
|
|
49
|
+
"type": "object", "additionalProperties": false,
|
|
50
|
+
"required": ["key_id", "certificate"],
|
|
51
|
+
"properties": {"key_id": {"$ref": "#/$defs/key_id"}, "certificate": {"$ref": "#/$defs/certificate"}}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|