@rathnasgala2/schemas 3.16.0 → 3.17.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 (53) hide show
  1. package/README.md +5 -3
  2. package/THIRD_PARTY_LICENSES.json +1 -1
  3. package/catalog-sources/internal-event-actions.json +1 -1
  4. package/diagnostics/diagnostic-map.json +57 -0
  5. package/docs/catalogs/internal-event-actions.json +2 -2
  6. package/docs/catalogs/schema-inventory.json +7 -7
  7. package/examples/valid/adapter-capability/rules.json +12 -0
  8. package/examples/valid/deployment-intent/rules.json +12 -0
  9. package/examples/valid/deployment-observation/rules.json +12 -0
  10. package/examples/valid/deployment-receipt/rules.json +12 -0
  11. package/examples/valid/problem/rules.json +39 -0
  12. package/fixtures/boundary/adapter-capability/rules.json +26 -0
  13. package/fixtures/boundary/deployment-intent/rules.json +26 -0
  14. package/fixtures/boundary/deployment-observation/rules.json +26 -0
  15. package/fixtures/boundary/deployment-receipt/rules.json +26 -0
  16. package/fixtures/boundary/problem/rules.json +81 -0
  17. package/fixtures/invalid/adapter-capability/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  18. package/fixtures/invalid/adapter-capability/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  19. package/fixtures/invalid/adapter-capability/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  20. package/fixtures/invalid/deployment-intent/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  21. package/fixtures/invalid/deployment-intent/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  22. package/fixtures/invalid/deployment-intent/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  23. package/fixtures/invalid/deployment-observation/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  24. package/fixtures/invalid/deployment-observation/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  25. package/fixtures/invalid/deployment-observation/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  26. package/fixtures/invalid/deployment-receipt/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  27. package/fixtures/invalid/deployment-receipt/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  28. package/fixtures/invalid/deployment-receipt/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  29. package/fixtures/invalid/problem/GRAPHEME_LENGTH_INVALID/cases.json +9 -0
  30. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_LONG/cases.json +27 -0
  31. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_SHORT/cases.json +9 -0
  32. package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +18 -0
  33. package/fixtures/manifest.json +447 -10
  34. package/fixtures/unknown-field/adapter-capability/rules.json +3 -0
  35. package/fixtures/unknown-field/deployment-intent/rules.json +3 -0
  36. package/fixtures/unknown-field/deployment-observation/rules.json +3 -0
  37. package/fixtures/unknown-field/deployment-receipt/rules.json +3 -0
  38. package/fixtures/unknown-field/problem/rules.json +7 -0
  39. package/generated/browser/validator-core.mjs +2 -2
  40. package/generated/typescript/contracts/adapter-capability.d.ts +1 -0
  41. package/generated/typescript/contracts/deployment-intent.d.ts +1 -0
  42. package/generated/typescript/contracts/deployment-observation.d.ts +1 -0
  43. package/generated/typescript/contracts/deployment-receipt.d.ts +1 -0
  44. package/generated/typescript/contracts/problem.d.ts +4 -0
  45. package/openapi/http-catalog.json +3 -3
  46. package/openapi/openapi.yaml +409 -10
  47. package/package.json +1 -1
  48. package/sbom.cdx.json +23 -23
  49. package/schemas/adapter-capability.schema.json +7 -0
  50. package/schemas/deployment-intent.schema.json +7 -0
  51. package/schemas/deployment-observation.schema.json +7 -0
  52. package/schemas/deployment-receipt.schema.json +7 -0
  53. package/schemas/problem.schema.json +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rathnasgala2/schemas",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/sbom.cdx.json CHANGED
@@ -97,8 +97,8 @@
97
97
  "type": "library",
98
98
  "name": "schemas",
99
99
  "group": "@rathnasgala2",
100
- "version": "3.16.0",
101
- "bom-ref": "@rathnasgala2/schemas@3.16.0",
100
+ "version": "3.17.0",
101
+ "bom-ref": "@rathnasgala2/schemas@3.17.0",
102
102
  "description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
103
103
  "licenses": [
104
104
  {
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  ],
111
- "purl": "pkg:npm/%40rathnasgala2/schemas@3.16.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
111
+ "purl": "pkg:npm/%40rathnasgala2/schemas@3.17.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
112
112
  "externalReferences": [
113
113
  {
114
114
  "url": "https://github.com/rathnasgala2/schema/issues",
@@ -153,7 +153,7 @@
153
153
  "type": "library",
154
154
  "name": "ajv-formats",
155
155
  "version": "3.0.1",
156
- "bom-ref": "@rathnasgala2/schemas@3.16.0|ajv-formats@3.0.1",
156
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|ajv-formats@3.0.1",
157
157
  "licenses": [
158
158
  {
159
159
  "license": {
@@ -187,7 +187,7 @@
187
187
  "type": "library",
188
188
  "name": "ajv",
189
189
  "version": "8.20.0",
190
- "bom-ref": "@rathnasgala2/schemas@3.16.0|ajv@8.20.0",
190
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|ajv@8.20.0",
191
191
  "licenses": [
192
192
  {
193
193
  "license": {
@@ -221,7 +221,7 @@
221
221
  "type": "library",
222
222
  "name": "fast-deep-equal",
223
223
  "version": "3.1.3",
224
- "bom-ref": "@rathnasgala2/schemas@3.16.0|fast-deep-equal@3.1.3",
224
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|fast-deep-equal@3.1.3",
225
225
  "licenses": [
226
226
  {
227
227
  "license": {
@@ -255,7 +255,7 @@
255
255
  "type": "library",
256
256
  "name": "fast-uri",
257
257
  "version": "3.1.8",
258
- "bom-ref": "@rathnasgala2/schemas@3.16.0|fast-uri@3.1.8",
258
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8",
259
259
  "licenses": [
260
260
  {
261
261
  "license": {
@@ -289,7 +289,7 @@
289
289
  "type": "library",
290
290
  "name": "json-schema-traverse",
291
291
  "version": "1.0.0",
292
- "bom-ref": "@rathnasgala2/schemas@3.16.0|json-schema-traverse@1.0.0",
292
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|json-schema-traverse@1.0.0",
293
293
  "licenses": [
294
294
  {
295
295
  "license": {
@@ -323,7 +323,7 @@
323
323
  "type": "library",
324
324
  "name": "require-from-string",
325
325
  "version": "2.0.2",
326
- "bom-ref": "@rathnasgala2/schemas@3.16.0|require-from-string@2.0.2",
326
+ "bom-ref": "@rathnasgala2/schemas@3.17.0|require-from-string@2.0.2",
327
327
  "licenses": [
328
328
  {
329
329
  "license": {
@@ -1064,10 +1064,10 @@
1064
1064
  ],
1065
1065
  "dependencies": [
1066
1066
  {
1067
- "ref": "@rathnasgala2/schemas@3.16.0",
1067
+ "ref": "@rathnasgala2/schemas@3.17.0",
1068
1068
  "dependsOn": [
1069
- "@rathnasgala2/schemas@3.16.0|ajv-formats@3.0.1",
1070
- "@rathnasgala2/schemas@3.16.0|ajv@8.20.0",
1069
+ "@rathnasgala2/schemas@3.17.0|ajv-formats@3.0.1",
1070
+ "@rathnasgala2/schemas@3.17.0|ajv@8.20.0",
1071
1071
  "pkg:npm/semver@7.8.5",
1072
1072
  "urn:gala:source-data:iana-ipv4-special-registry",
1073
1073
  "urn:gala:source-data:iana-ipv6-special-registry",
@@ -1089,31 +1089,31 @@
1089
1089
  ]
1090
1090
  },
1091
1091
  {
1092
- "ref": "@rathnasgala2/schemas@3.16.0|ajv-formats@3.0.1",
1092
+ "ref": "@rathnasgala2/schemas@3.17.0|ajv-formats@3.0.1",
1093
1093
  "dependsOn": [
1094
- "@rathnasgala2/schemas@3.16.0|ajv@8.20.0"
1094
+ "@rathnasgala2/schemas@3.17.0|ajv@8.20.0"
1095
1095
  ]
1096
1096
  },
1097
1097
  {
1098
- "ref": "@rathnasgala2/schemas@3.16.0|ajv@8.20.0",
1098
+ "ref": "@rathnasgala2/schemas@3.17.0|ajv@8.20.0",
1099
1099
  "dependsOn": [
1100
- "@rathnasgala2/schemas@3.16.0|fast-deep-equal@3.1.3",
1101
- "@rathnasgala2/schemas@3.16.0|fast-uri@3.1.8",
1102
- "@rathnasgala2/schemas@3.16.0|json-schema-traverse@1.0.0",
1103
- "@rathnasgala2/schemas@3.16.0|require-from-string@2.0.2"
1100
+ "@rathnasgala2/schemas@3.17.0|fast-deep-equal@3.1.3",
1101
+ "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8",
1102
+ "@rathnasgala2/schemas@3.17.0|json-schema-traverse@1.0.0",
1103
+ "@rathnasgala2/schemas@3.17.0|require-from-string@2.0.2"
1104
1104
  ]
1105
1105
  },
1106
1106
  {
1107
- "ref": "@rathnasgala2/schemas@3.16.0|fast-deep-equal@3.1.3"
1107
+ "ref": "@rathnasgala2/schemas@3.17.0|fast-deep-equal@3.1.3"
1108
1108
  },
1109
1109
  {
1110
- "ref": "@rathnasgala2/schemas@3.16.0|fast-uri@3.1.8"
1110
+ "ref": "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8"
1111
1111
  },
1112
1112
  {
1113
- "ref": "@rathnasgala2/schemas@3.16.0|json-schema-traverse@1.0.0"
1113
+ "ref": "@rathnasgala2/schemas@3.17.0|json-schema-traverse@1.0.0"
1114
1114
  },
1115
1115
  {
1116
- "ref": "@rathnasgala2/schemas@3.16.0|require-from-string@2.0.2"
1116
+ "ref": "@rathnasgala2/schemas@3.17.0|require-from-string@2.0.2"
1117
1117
  },
1118
1118
  {
1119
1119
  "ref": "pkg:npm/semver@7.8.5"
@@ -276,6 +276,13 @@
276
276
  "maxLength": 2048,
277
277
  "x-gala-utf8ByteLength": { "maximum": 2048 }
278
278
  },
279
+ "verificationBaseUrl": {
280
+ "allOf": [{ "$ref": "#/$defs/urlHttps" }],
281
+ "maxLength": 2048,
282
+ "pattern": "^https://[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?(?:/[^?#\\s]*)?$",
283
+ "x-gala-utf8ByteLength": { "maximum": 2048 },
284
+ "description": "SCHEMA-3.17.0, optional: the address the deploy is verified at when that differs from `baseUrl`, the build base. It is the origin and path that answer over HTTPS right now (the github.io project address before a custom domain is set, the custom base once it serves): a lowercase exact host with no userinfo, port, query or fragment; a path is allowed. Absent means `baseUrl` is both the build base and the verification address, exactly as before 3.17.0. When present it is a member of `destination` like `baseUrl`, so it is inside the capability decision record that `decisionDigest` covers (RFC 8785 canonical member order); a record without it digests exactly as it did before."
285
+ },
279
286
  "providerBinding": { "$ref": "#/$defs/destinationProviderCoordinates" }
280
287
  },
281
288
  "additionalProperties": false,
@@ -370,6 +370,13 @@
370
370
  "maxLength": 2048,
371
371
  "x-gala-utf8ByteLength": { "maximum": 2048 }
372
372
  },
373
+ "verificationBaseUrl": {
374
+ "allOf": [{ "$ref": "#/$defs/urlHttps" }],
375
+ "maxLength": 2048,
376
+ "pattern": "^https://[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?(?:/[^?#\\s]*)?$",
377
+ "x-gala-utf8ByteLength": { "maximum": 2048 },
378
+ "description": "SCHEMA-3.17.0, optional: the address the deploy is verified at when that differs from `baseUrl`, the build base. It is the origin and path that answer over HTTPS right now (the github.io project address before a custom domain is set, the custom base once it serves): a lowercase exact host with no userinfo, port, query or fragment; a path is allowed. Absent means `baseUrl` is both the build base and the verification address, exactly as before 3.17.0. When present it is a member of `destination` like `baseUrl`, so it is inside the capability decision record that `decisionDigest` covers (RFC 8785 canonical member order); a record without it digests exactly as it did before."
379
+ },
373
380
  "providerBinding": { "$ref": "#/$defs/destinationProviderCoordinates" }
374
381
  },
375
382
  "additionalProperties": false,
@@ -276,6 +276,13 @@
276
276
  "maxLength": 2048,
277
277
  "x-gala-utf8ByteLength": { "maximum": 2048 }
278
278
  },
279
+ "verificationBaseUrl": {
280
+ "allOf": [{ "$ref": "#/$defs/urlHttps" }],
281
+ "maxLength": 2048,
282
+ "pattern": "^https://[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?(?:/[^?#\\s]*)?$",
283
+ "x-gala-utf8ByteLength": { "maximum": 2048 },
284
+ "description": "SCHEMA-3.17.0, optional: the address the deploy is verified at when that differs from `baseUrl`, the build base. It is the origin and path that answer over HTTPS right now (the github.io project address before a custom domain is set, the custom base once it serves): a lowercase exact host with no userinfo, port, query or fragment; a path is allowed. Absent means `baseUrl` is both the build base and the verification address, exactly as before 3.17.0. When present it is a member of `destination` like `baseUrl`, so it is inside the capability decision record that `decisionDigest` covers (RFC 8785 canonical member order); a record without it digests exactly as it did before."
285
+ },
279
286
  "providerBinding": { "$ref": "#/$defs/destinationProviderCoordinates" }
280
287
  },
281
288
  "additionalProperties": false,
@@ -358,6 +358,13 @@
358
358
  "maxLength": 2048,
359
359
  "x-gala-utf8ByteLength": { "maximum": 2048 }
360
360
  },
361
+ "verificationBaseUrl": {
362
+ "allOf": [{ "$ref": "#/$defs/urlHttps" }],
363
+ "maxLength": 2048,
364
+ "pattern": "^https://[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?(?:/[^?#\\s]*)?$",
365
+ "x-gala-utf8ByteLength": { "maximum": 2048 },
366
+ "description": "SCHEMA-3.17.0, optional: the address the deploy is verified at when that differs from `baseUrl`, the build base. It is the origin and path that answer over HTTPS right now (the github.io project address before a custom domain is set, the custom base once it serves): a lowercase exact host with no userinfo, port, query or fragment; a path is allowed. Absent means `baseUrl` is both the build base and the verification address, exactly as before 3.17.0. When present it is a member of `destination` like `baseUrl`, so it is inside the capability decision record that `decisionDigest` covers (RFC 8785 canonical member order); a record without it digests exactly as it did before."
367
+ },
361
368
  "providerBinding": { "$ref": "#/$defs/destinationProviderCoordinates" }
362
369
  },
363
370
  "additionalProperties": false,
@@ -38,6 +38,27 @@
38
38
  "items": { "$ref": "#/$defs/fieldError" },
39
39
  "minItems": 0,
40
40
  "maxItems": 100
41
+ },
42
+ "expectedBase": {
43
+ "allOf": [{ "$ref": "#/$defs/urlHttps" }],
44
+ "maxLength": 2048,
45
+ "description": "SCHEMA-3.17.0, optional, carried by a CANONICAL_BASE_MISMATCH problem and absent from every other: the address the site is served from right now and so the canonical base its publication profile must carry (the active custom domain once the domain redirects the project path, otherwise the github.io address)."
46
+ },
47
+ "profileBase": {
48
+ "type": "string",
49
+ "maxLength": 2048,
50
+ "description": "SCHEMA-3.17.0, optional, carried by a CANONICAL_BASE_MISMATCH problem and absent from every other: the canonical base the publication profile (`gala/publication.json`) carries now, as written. A string rather than an https URL because the mismatch can be a value that is not one (for example an http address)."
51
+ },
52
+ "domainState": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 80,
56
+ "description": "SCHEMA-3.17.0, optional, carried by a CANONICAL_BASE_MISMATCH problem and absent from every other: the state of the site's custom-domain binding that decided `expectedBase` (a `DomainBindingState` value such as `CERTIFICATE_PENDING` or `ACTIVE`), absent when the site has no custom domain. A client shows a value it does not know as is."
57
+ },
58
+ "remedy": {
59
+ "$ref": "#/$defs/plainText",
60
+ "description": "SCHEMA-3.17.0, optional, carried by a CANONICAL_BASE_MISMATCH problem and absent from every other: one sentence, written for the author, saying what resolves the mismatch. A client may render it verbatim.",
61
+ "x-gala-graphemeLength": { "minimum": 1, "maximum": 500 }
41
62
  }
42
63
  },
43
64
  "additionalProperties": false,