@cloudhal/core-contracts 0.8.0 → 0.9.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.
@@ -8636,6 +8636,836 @@ export const GlossarySchema = {
8636
8636
  }
8637
8637
  } ;
8638
8638
 
8639
+ export const ReleaseManifestSchema = {
8640
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8641
+ "$id": "https://cloudhal.dev/schemas/v1/release-manifest.schema.json",
8642
+ "title": "ReleaseManifest",
8643
+ "description": "cloudhal.release-manifest@1 (RFC-0046): the manifest of one Cloudhal release bundle, published as the release asset manifest.json next to the gzip tarball cloudhal-release-<version>.tar.gz. A project release is signed through release-statement.json, which pins this file's SHA-256 and size (signing.signature = release-statement.sig); the legacy form manifest.sig, a raw 64-byte Ed25519 signature over these exact bytes, is for development keys only. It describes every built Worker module and static asset by size and SHA-256, the binding templates, feature levels, migration range and rollback facts a remote deployer needs to install, update or refuse a version without running a build. Portable on purpose: it references common only for SchemaVersion and Timestamp; every other definition is local.",
8644
+ "type": "object",
8645
+ "additionalProperties": false,
8646
+ "required": [
8647
+ "schemaVersion",
8648
+ "format",
8649
+ "version",
8650
+ "channel",
8651
+ "securityRelease",
8652
+ "commit",
8653
+ "createdAt",
8654
+ "contracts",
8655
+ "levels",
8656
+ "migrations",
8657
+ "durableObjects",
8658
+ "runtime",
8659
+ "toolchain",
8660
+ "theme",
8661
+ "skills",
8662
+ "workers",
8663
+ "bindingTemplates",
8664
+ "requiredScopes",
8665
+ "optionalScopes",
8666
+ "requiredCapabilities",
8667
+ "optionalCapabilities",
8668
+ "starter",
8669
+ "features",
8670
+ "planVersion",
8671
+ "signing"
8672
+ ],
8673
+ "properties": {
8674
+ "schemaVersion": {
8675
+ "$ref": "#/$defs/SchemaVersion"
8676
+ },
8677
+ "format": {
8678
+ "type": "string",
8679
+ "enum": [
8680
+ "cloudhal.release-manifest@1"
8681
+ ]
8682
+ },
8683
+ "version": {
8684
+ "$ref": "#/$defs/CloudhalVersion"
8685
+ },
8686
+ "channel": {
8687
+ "type": "string",
8688
+ "enum": [
8689
+ "stable",
8690
+ "next"
8691
+ ]
8692
+ },
8693
+ "securityRelease": {
8694
+ "type": "boolean"
8695
+ },
8696
+ "commit": {
8697
+ "type": "string",
8698
+ "pattern": "^[0-9a-f]{40}$"
8699
+ },
8700
+ "createdAt": {
8701
+ "$ref": "#/$defs/Timestamp"
8702
+ },
8703
+ "contracts": {
8704
+ "type": "object",
8705
+ "additionalProperties": false,
8706
+ "required": [
8707
+ "schemaVersion"
8708
+ ],
8709
+ "properties": {
8710
+ "schemaVersion": {
8711
+ "type": "integer",
8712
+ "enum": [
8713
+ 1
8714
+ ]
8715
+ }
8716
+ }
8717
+ },
8718
+ "levels": {
8719
+ "type": "object",
8720
+ "additionalProperties": false,
8721
+ "required": [
8722
+ "schedules",
8723
+ "gates"
8724
+ ],
8725
+ "properties": {
8726
+ "schedules": {
8727
+ "type": "integer",
8728
+ "minimum": 0
8729
+ },
8730
+ "gates": {
8731
+ "type": "integer",
8732
+ "minimum": 0
8733
+ }
8734
+ }
8735
+ },
8736
+ "migrations": {
8737
+ "type": "object",
8738
+ "additionalProperties": false,
8739
+ "required": [
8740
+ "first",
8741
+ "last",
8742
+ "count",
8743
+ "names",
8744
+ "compatibleWithPrevious"
8745
+ ],
8746
+ "properties": {
8747
+ "first": {
8748
+ "$ref": "#/$defs/MigrationName"
8749
+ },
8750
+ "last": {
8751
+ "$ref": "#/$defs/MigrationName"
8752
+ },
8753
+ "count": {
8754
+ "type": "integer",
8755
+ "minimum": 1
8756
+ },
8757
+ "names": {
8758
+ "type": "array",
8759
+ "minItems": 1,
8760
+ "uniqueItems": true,
8761
+ "items": {
8762
+ "$ref": "#/$defs/MigrationName"
8763
+ }
8764
+ },
8765
+ "compatibleWithPrevious": {
8766
+ "type": "boolean"
8767
+ }
8768
+ }
8769
+ },
8770
+ "durableObjects": {
8771
+ "type": "object",
8772
+ "additionalProperties": false,
8773
+ "required": [
8774
+ "bindings",
8775
+ "lifecycleChange"
8776
+ ],
8777
+ "properties": {
8778
+ "bindings": {
8779
+ "type": "array",
8780
+ "items": {
8781
+ "type": "object",
8782
+ "additionalProperties": false,
8783
+ "required": [
8784
+ "name",
8785
+ "className",
8786
+ "migration"
8787
+ ],
8788
+ "properties": {
8789
+ "name": {
8790
+ "$ref": "#/$defs/BindingName"
8791
+ },
8792
+ "className": {
8793
+ "type": "string",
8794
+ "pattern": "^[A-Z][A-Za-z0-9]*$"
8795
+ },
8796
+ "migration": {
8797
+ "type": "string",
8798
+ "pattern": "^v[1-9][0-9]*$"
8799
+ }
8800
+ }
8801
+ }
8802
+ },
8803
+ "lifecycleChange": {
8804
+ "type": "boolean"
8805
+ }
8806
+ }
8807
+ },
8808
+ "runtime": {
8809
+ "type": "object",
8810
+ "additionalProperties": false,
8811
+ "required": [
8812
+ "compatibilityDate",
8813
+ "compatibilityFlags"
8814
+ ],
8815
+ "properties": {
8816
+ "compatibilityDate": {
8817
+ "type": "string",
8818
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
8819
+ },
8820
+ "compatibilityFlags": {
8821
+ "type": "array",
8822
+ "uniqueItems": true,
8823
+ "items": {
8824
+ "type": "string",
8825
+ "pattern": "^[a-z0-9_]+$"
8826
+ }
8827
+ }
8828
+ }
8829
+ },
8830
+ "toolchain": {
8831
+ "type": "object",
8832
+ "additionalProperties": {
8833
+ "type": "string",
8834
+ "maxLength": 64
8835
+ }
8836
+ },
8837
+ "theme": {
8838
+ "type": "object",
8839
+ "additionalProperties": false,
8840
+ "required": [
8841
+ "name",
8842
+ "version",
8843
+ "blockTypes",
8844
+ "settingsSha256",
8845
+ "designSha256"
8846
+ ],
8847
+ "properties": {
8848
+ "name": {
8849
+ "type": "string",
8850
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
8851
+ },
8852
+ "version": {
8853
+ "type": "string",
8854
+ "maxLength": 64
8855
+ },
8856
+ "blockTypes": {
8857
+ "type": "array",
8858
+ "uniqueItems": true,
8859
+ "items": {
8860
+ "type": "string"
8861
+ }
8862
+ },
8863
+ "settingsSha256": {
8864
+ "$ref": "#/$defs/Sha256Hex"
8865
+ },
8866
+ "designSha256": {
8867
+ "$ref": "#/$defs/Sha256Hex"
8868
+ }
8869
+ }
8870
+ },
8871
+ "skills": {
8872
+ "type": "array",
8873
+ "items": {
8874
+ "type": "object",
8875
+ "additionalProperties": false,
8876
+ "required": [
8877
+ "name",
8878
+ "sha256"
8879
+ ],
8880
+ "properties": {
8881
+ "name": {
8882
+ "type": "string",
8883
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
8884
+ },
8885
+ "sha256": {
8886
+ "$ref": "#/$defs/Sha256Hex"
8887
+ }
8888
+ }
8889
+ }
8890
+ },
8891
+ "workers": {
8892
+ "type": "object",
8893
+ "additionalProperties": false,
8894
+ "required": [
8895
+ "site",
8896
+ "admin"
8897
+ ],
8898
+ "properties": {
8899
+ "site": {
8900
+ "$ref": "#/$defs/WorkerArtifact"
8901
+ },
8902
+ "admin": {
8903
+ "$ref": "#/$defs/WorkerArtifact"
8904
+ }
8905
+ }
8906
+ },
8907
+ "bindingTemplates": {
8908
+ "type": "object",
8909
+ "additionalProperties": false,
8910
+ "required": [
8911
+ "site",
8912
+ "admin"
8913
+ ],
8914
+ "properties": {
8915
+ "site": {
8916
+ "$ref": "#/$defs/BindingTemplate"
8917
+ },
8918
+ "admin": {
8919
+ "$ref": "#/$defs/BindingTemplate"
8920
+ }
8921
+ }
8922
+ },
8923
+ "requiredScopes": {
8924
+ "type": "array",
8925
+ "uniqueItems": true,
8926
+ "items": {
8927
+ "$ref": "#/$defs/ScopeId"
8928
+ }
8929
+ },
8930
+ "optionalScopes": {
8931
+ "type": "array",
8932
+ "uniqueItems": true,
8933
+ "items": {
8934
+ "$ref": "#/$defs/ScopeId"
8935
+ }
8936
+ },
8937
+ "requiredCapabilities": {
8938
+ "type": "array",
8939
+ "uniqueItems": true,
8940
+ "items": {
8941
+ "$ref": "#/$defs/Capability"
8942
+ }
8943
+ },
8944
+ "optionalCapabilities": {
8945
+ "type": "array",
8946
+ "uniqueItems": true,
8947
+ "items": {
8948
+ "$ref": "#/$defs/Capability"
8949
+ }
8950
+ },
8951
+ "starter": {
8952
+ "oneOf": [
8953
+ {
8954
+ "type": "object",
8955
+ "additionalProperties": false,
8956
+ "required": [
8957
+ "kind"
8958
+ ],
8959
+ "properties": {
8960
+ "kind": {
8961
+ "type": "string",
8962
+ "enum": [
8963
+ "admin-api"
8964
+ ]
8965
+ }
8966
+ }
8967
+ },
8968
+ {
8969
+ "type": "object",
8970
+ "additionalProperties": false,
8971
+ "required": [
8972
+ "kind",
8973
+ "path",
8974
+ "bytes",
8975
+ "sha256",
8976
+ "siteId"
8977
+ ],
8978
+ "properties": {
8979
+ "kind": {
8980
+ "type": "string",
8981
+ "enum": [
8982
+ "bundle"
8983
+ ]
8984
+ },
8985
+ "path": {
8986
+ "type": "string",
8987
+ "pattern": "^starter/[A-Za-z0-9._-]+$"
8988
+ },
8989
+ "bytes": {
8990
+ "type": "integer",
8991
+ "minimum": 1
8992
+ },
8993
+ "sha256": {
8994
+ "$ref": "#/$defs/Sha256Hex"
8995
+ },
8996
+ "siteId": {
8997
+ "$ref": "#/$defs/SiteId"
8998
+ }
8999
+ }
9000
+ }
9001
+ ]
9002
+ },
9003
+ "features": {
9004
+ "type": "object",
9005
+ "additionalProperties": {
9006
+ "type": "boolean"
9007
+ },
9008
+ "required": [
9009
+ "adminSitesAcceptsSiteId",
9010
+ "healthReportsVersion",
9011
+ "mediaTransformVar"
9012
+ ],
9013
+ "properties": {
9014
+ "adminSitesAcceptsSiteId": {
9015
+ "type": "boolean"
9016
+ },
9017
+ "healthReportsVersion": {
9018
+ "type": "boolean"
9019
+ },
9020
+ "mediaTransformVar": {
9021
+ "type": "boolean"
9022
+ }
9023
+ }
9024
+ },
9025
+ "planVersion": {
9026
+ "type": "integer",
9027
+ "minimum": 1
9028
+ },
9029
+ "signing": {
9030
+ "type": "object",
9031
+ "additionalProperties": false,
9032
+ "required": [
9033
+ "keyId",
9034
+ "algorithm",
9035
+ "signature"
9036
+ ],
9037
+ "properties": {
9038
+ "keyId": {
9039
+ "type": "string",
9040
+ "pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
9041
+ },
9042
+ "algorithm": {
9043
+ "type": "string",
9044
+ "enum": [
9045
+ "Ed25519"
9046
+ ]
9047
+ },
9048
+ "signature": {
9049
+ "type": "string",
9050
+ "enum": [
9051
+ "manifest.sig",
9052
+ "release-statement.sig"
9053
+ ]
9054
+ }
9055
+ }
9056
+ }
9057
+ },
9058
+ "$defs": {
9059
+ "BindingName": {
9060
+ "type": "string",
9061
+ "pattern": "^[A-Z][A-Z0-9_]*(_\\*)?$"
9062
+ },
9063
+ "BindingTemplate": {
9064
+ "type": "object",
9065
+ "additionalProperties": false,
9066
+ "required": [
9067
+ "bindings",
9068
+ "vars",
9069
+ "secrets"
9070
+ ],
9071
+ "properties": {
9072
+ "bindings": {
9073
+ "type": "array",
9074
+ "items": {
9075
+ "type": "object",
9076
+ "additionalProperties": false,
9077
+ "required": [
9078
+ "name",
9079
+ "type",
9080
+ "required"
9081
+ ],
9082
+ "properties": {
9083
+ "name": {
9084
+ "$ref": "#/$defs/BindingName"
9085
+ },
9086
+ "type": {
9087
+ "type": "string",
9088
+ "enum": [
9089
+ "d1",
9090
+ "r2_bucket",
9091
+ "assets",
9092
+ "service",
9093
+ "durable_object_namespace",
9094
+ "analytics_engine",
9095
+ "analytics_sql",
9096
+ "ratelimit",
9097
+ "ai_search",
9098
+ "send_email",
9099
+ "ai",
9100
+ "browser"
9101
+ ]
9102
+ },
9103
+ "required": {
9104
+ "type": "boolean"
9105
+ },
9106
+ "aliases": {
9107
+ "type": "array",
9108
+ "items": {
9109
+ "$ref": "#/$defs/BindingName"
9110
+ }
9111
+ }
9112
+ }
9113
+ }
9114
+ },
9115
+ "vars": {
9116
+ "type": "array",
9117
+ "uniqueItems": true,
9118
+ "items": {
9119
+ "$ref": "#/$defs/BindingName"
9120
+ }
9121
+ },
9122
+ "secrets": {
9123
+ "type": "array",
9124
+ "uniqueItems": true,
9125
+ "items": {
9126
+ "$ref": "#/$defs/SecretName"
9127
+ }
9128
+ },
9129
+ "cache": {
9130
+ "type": "boolean"
9131
+ },
9132
+ "cron": {
9133
+ "type": "string",
9134
+ "pattern": "^[0-9*/,\\- ]+$"
9135
+ }
9136
+ }
9137
+ },
9138
+ "Capability": {
9139
+ "type": "string",
9140
+ "enum": [
9141
+ "account",
9142
+ "workers",
9143
+ "d1",
9144
+ "r2",
9145
+ "analytics",
9146
+ "domains"
9147
+ ]
9148
+ },
9149
+ "CloudhalVersion": {
9150
+ "type": "string",
9151
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
9152
+ },
9153
+ "MigrationName": {
9154
+ "type": "string",
9155
+ "pattern": "^[0-9]{4}_[a-z0-9_]+$"
9156
+ },
9157
+ "SchemaVersion": {
9158
+ "type": "integer",
9159
+ "description": "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.",
9160
+ "enum": [
9161
+ 1
9162
+ ]
9163
+ },
9164
+ "ScopeId": {
9165
+ "type": "string",
9166
+ "pattern": "^[a-z0-9-]+(\\.[a-z0-9-]+)+$"
9167
+ },
9168
+ "SecretName": {
9169
+ "type": "string",
9170
+ "enum": [
9171
+ "BETTER_AUTH_SECRET",
9172
+ "MCP_STATE_KEY",
9173
+ "CLOUDHAL_PREVIEW_SECRET",
9174
+ "CLOUDHAL_PURGE_TOKEN",
9175
+ "CLOUDHAL_DEPLOY_TOKEN",
9176
+ "CLOUDHAL_SETUP_TOKEN",
9177
+ "CLOUDHAL_COMMENTS_KEY"
9178
+ ]
9179
+ },
9180
+ "Sha256Hex": {
9181
+ "type": "string",
9182
+ "pattern": "^[0-9a-f]{64}$"
9183
+ },
9184
+ "SiteId": {
9185
+ "type": "string",
9186
+ "pattern": "^site_[A-Za-z0-9]{6,32}$"
9187
+ },
9188
+ "Timestamp": {
9189
+ "type": "string",
9190
+ "description": "RFC 3339 / ISO 8601 instant in UTC.",
9191
+ "format": "date-time"
9192
+ },
9193
+ "WorkerArtifact": {
9194
+ "type": "object",
9195
+ "additionalProperties": false,
9196
+ "required": [
9197
+ "mainModule",
9198
+ "modules",
9199
+ "assets"
9200
+ ],
9201
+ "properties": {
9202
+ "mainModule": {
9203
+ "type": "string",
9204
+ "pattern": "^[A-Za-z0-9._/-]+$"
9205
+ },
9206
+ "modules": {
9207
+ "type": "array",
9208
+ "minItems": 1,
9209
+ "items": {
9210
+ "type": "object",
9211
+ "additionalProperties": false,
9212
+ "required": [
9213
+ "path",
9214
+ "type",
9215
+ "bytes",
9216
+ "sha256"
9217
+ ],
9218
+ "properties": {
9219
+ "path": {
9220
+ "type": "string",
9221
+ "pattern": "^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"
9222
+ },
9223
+ "type": {
9224
+ "type": "string",
9225
+ "enum": [
9226
+ "esm",
9227
+ "cjs",
9228
+ "wasm",
9229
+ "text",
9230
+ "data"
9231
+ ]
9232
+ },
9233
+ "bytes": {
9234
+ "type": "integer",
9235
+ "minimum": 1
9236
+ },
9237
+ "sha256": {
9238
+ "$ref": "#/$defs/Sha256Hex"
9239
+ }
9240
+ }
9241
+ }
9242
+ },
9243
+ "assets": {
9244
+ "type": "object",
9245
+ "additionalProperties": false,
9246
+ "required": [
9247
+ "count",
9248
+ "bytes",
9249
+ "files",
9250
+ "headers"
9251
+ ],
9252
+ "properties": {
9253
+ "count": {
9254
+ "type": "integer",
9255
+ "minimum": 0,
9256
+ "maximum": 20000
9257
+ },
9258
+ "bytes": {
9259
+ "type": "integer",
9260
+ "minimum": 0
9261
+ },
9262
+ "files": {
9263
+ "type": "array",
9264
+ "maxItems": 20000,
9265
+ "items": {
9266
+ "type": "object",
9267
+ "additionalProperties": false,
9268
+ "required": [
9269
+ "path",
9270
+ "bytes",
9271
+ "sha256",
9272
+ "assetHash",
9273
+ "contentType"
9274
+ ],
9275
+ "properties": {
9276
+ "path": {
9277
+ "type": "string",
9278
+ "pattern": "^/[^\\s]*$",
9279
+ "maxLength": 1024
9280
+ },
9281
+ "bytes": {
9282
+ "type": "integer",
9283
+ "minimum": 0,
9284
+ "maximum": 26214400
9285
+ },
9286
+ "sha256": {
9287
+ "$ref": "#/$defs/Sha256Hex"
9288
+ },
9289
+ "assetHash": {
9290
+ "type": "string",
9291
+ "pattern": "^[0-9a-f]{32}$"
9292
+ },
9293
+ "contentType": {
9294
+ "type": "string",
9295
+ "maxLength": 128
9296
+ }
9297
+ }
9298
+ }
9299
+ },
9300
+ "headers": {
9301
+ "type": "string",
9302
+ "maxLength": 100000
9303
+ },
9304
+ "config": {
9305
+ "type": "object",
9306
+ "additionalProperties": false,
9307
+ "properties": {
9308
+ "not_found_handling": {
9309
+ "type": "string",
9310
+ "enum": [
9311
+ "none",
9312
+ "404-page",
9313
+ "single-page-application"
9314
+ ]
9315
+ },
9316
+ "run_worker_first": {
9317
+ "type": "array",
9318
+ "items": {
9319
+ "type": "string",
9320
+ "pattern": "^/"
9321
+ }
9322
+ }
9323
+ }
9324
+ }
9325
+ }
9326
+ },
9327
+ "bindingTemplate": {
9328
+ "type": "string",
9329
+ "enum": [
9330
+ "site",
9331
+ "admin"
9332
+ ]
9333
+ }
9334
+ }
9335
+ }
9336
+ }
9337
+ } ;
9338
+
9339
+ export const ReleaseStatementSchema = {
9340
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9341
+ "$id": "https://cloudhal.dev/schemas/v1/release-statement.schema.json",
9342
+ "title": "ReleaseStatement",
9343
+ "description": "cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.",
9344
+ "type": "object",
9345
+ "additionalProperties": false,
9346
+ "required": [
9347
+ "schemaVersion",
9348
+ "format",
9349
+ "version",
9350
+ "channel",
9351
+ "securityRelease",
9352
+ "commit",
9353
+ "createdAt",
9354
+ "signing",
9355
+ "manifest",
9356
+ "tarball"
9357
+ ],
9358
+ "properties": {
9359
+ "schemaVersion": {
9360
+ "$ref": "#/$defs/SchemaVersion"
9361
+ },
9362
+ "format": {
9363
+ "type": "string",
9364
+ "enum": [
9365
+ "cloudhal.release-statement@1"
9366
+ ]
9367
+ },
9368
+ "version": {
9369
+ "$ref": "#/$defs/CloudhalVersion"
9370
+ },
9371
+ "channel": {
9372
+ "type": "string",
9373
+ "enum": [
9374
+ "stable",
9375
+ "next"
9376
+ ]
9377
+ },
9378
+ "securityRelease": {
9379
+ "type": "boolean"
9380
+ },
9381
+ "commit": {
9382
+ "type": "string",
9383
+ "pattern": "^[0-9a-f]{40}$"
9384
+ },
9385
+ "createdAt": {
9386
+ "$ref": "#/$defs/Timestamp"
9387
+ },
9388
+ "signing": {
9389
+ "type": "object",
9390
+ "additionalProperties": false,
9391
+ "required": [
9392
+ "keyId",
9393
+ "algorithm",
9394
+ "signature"
9395
+ ],
9396
+ "properties": {
9397
+ "keyId": {
9398
+ "type": "string",
9399
+ "pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
9400
+ },
9401
+ "algorithm": {
9402
+ "type": "string",
9403
+ "enum": [
9404
+ "Ed25519"
9405
+ ]
9406
+ },
9407
+ "signature": {
9408
+ "type": "string",
9409
+ "enum": [
9410
+ "release-statement.sig"
9411
+ ]
9412
+ }
9413
+ }
9414
+ },
9415
+ "manifest": {
9416
+ "$ref": "#/$defs/StatementAsset"
9417
+ },
9418
+ "tarball": {
9419
+ "$ref": "#/$defs/StatementAsset"
9420
+ }
9421
+ },
9422
+ "$defs": {
9423
+ "CloudhalVersion": {
9424
+ "type": "string",
9425
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
9426
+ },
9427
+ "SchemaVersion": {
9428
+ "type": "integer",
9429
+ "description": "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.",
9430
+ "enum": [
9431
+ 1
9432
+ ]
9433
+ },
9434
+ "Sha256Hex": {
9435
+ "type": "string",
9436
+ "pattern": "^[0-9a-f]{64}$"
9437
+ },
9438
+ "StatementAsset": {
9439
+ "type": "object",
9440
+ "additionalProperties": false,
9441
+ "required": [
9442
+ "name",
9443
+ "sha256",
9444
+ "bytes"
9445
+ ],
9446
+ "properties": {
9447
+ "name": {
9448
+ "type": "string",
9449
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
9450
+ },
9451
+ "sha256": {
9452
+ "$ref": "#/$defs/Sha256Hex"
9453
+ },
9454
+ "bytes": {
9455
+ "type": "integer",
9456
+ "minimum": 1,
9457
+ "maximum": 104857600
9458
+ }
9459
+ }
9460
+ },
9461
+ "Timestamp": {
9462
+ "type": "string",
9463
+ "description": "RFC 3339 / ISO 8601 instant in UTC.",
9464
+ "format": "date-time"
9465
+ }
9466
+ }
9467
+ } ;
9468
+
8639
9469
  export const schemas = {
8640
9470
  "project": ProjectSchema,
8641
9471
  "site": SiteSchema,
@@ -8657,4 +9487,6 @@ export const schemas = {
8657
9487
  "automation": AutomationSchema,
8658
9488
  "schedule-run": ScheduleRunSchema,
8659
9489
  "glossary": GlossarySchema,
9490
+ "release-manifest": ReleaseManifestSchema,
9491
+ "release-statement": ReleaseStatementSchema,
8660
9492
  } ;