@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.
- package/dist/scripts/gen-ts.js +12 -4
- package/dist/scripts/schema-list.d.ts +9 -1
- package/dist/scripts/schema-list.js +14 -0
- package/dist/src/generated/index.d.ts +2 -0
- package/dist/src/generated/index.js +2 -0
- package/dist/src/generated/release-manifest.d.ts +206 -0
- package/dist/src/generated/release-manifest.js +231 -0
- package/dist/src/generated/release-statement.d.ts +56 -0
- package/dist/src/generated/release-statement.js +60 -0
- package/dist/src/generated/schemas.d.ts +1685 -425
- package/dist/src/generated/schemas.js +832 -0
- package/dist/src/generated/validators.d.ts +3 -1
- package/dist/src/generated/validators.js +4308 -0
- package/dist/src/validate.d.ts +3 -1
- package/dist/src/validate.js +6 -0
- package/package.json +1 -1
- package/schemas/release-manifest.schema.json +571 -0
- package/schemas/release-statement.schema.json +100 -0
|
@@ -6931,6 +6931,636 @@ export declare const GlossarySchema: {
|
|
|
6931
6931
|
};
|
|
6932
6932
|
};
|
|
6933
6933
|
};
|
|
6934
|
+
export declare const ReleaseManifestSchema: {
|
|
6935
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
6936
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/release-manifest.schema.json";
|
|
6937
|
+
readonly title: "ReleaseManifest";
|
|
6938
|
+
readonly 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.";
|
|
6939
|
+
readonly type: "object";
|
|
6940
|
+
readonly additionalProperties: false;
|
|
6941
|
+
readonly required: readonly ["schemaVersion", "format", "version", "channel", "securityRelease", "commit", "createdAt", "contracts", "levels", "migrations", "durableObjects", "runtime", "toolchain", "theme", "skills", "workers", "bindingTemplates", "requiredScopes", "optionalScopes", "requiredCapabilities", "optionalCapabilities", "starter", "features", "planVersion", "signing"];
|
|
6942
|
+
readonly properties: {
|
|
6943
|
+
readonly schemaVersion: {
|
|
6944
|
+
readonly $ref: "#/$defs/SchemaVersion";
|
|
6945
|
+
};
|
|
6946
|
+
readonly format: {
|
|
6947
|
+
readonly type: "string";
|
|
6948
|
+
readonly enum: readonly ["cloudhal.release-manifest@1"];
|
|
6949
|
+
};
|
|
6950
|
+
readonly version: {
|
|
6951
|
+
readonly $ref: "#/$defs/CloudhalVersion";
|
|
6952
|
+
};
|
|
6953
|
+
readonly channel: {
|
|
6954
|
+
readonly type: "string";
|
|
6955
|
+
readonly enum: readonly ["stable", "next"];
|
|
6956
|
+
};
|
|
6957
|
+
readonly securityRelease: {
|
|
6958
|
+
readonly type: "boolean";
|
|
6959
|
+
};
|
|
6960
|
+
readonly commit: {
|
|
6961
|
+
readonly type: "string";
|
|
6962
|
+
readonly pattern: "^[0-9a-f]{40}$";
|
|
6963
|
+
};
|
|
6964
|
+
readonly createdAt: {
|
|
6965
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
6966
|
+
};
|
|
6967
|
+
readonly contracts: {
|
|
6968
|
+
readonly type: "object";
|
|
6969
|
+
readonly additionalProperties: false;
|
|
6970
|
+
readonly required: readonly ["schemaVersion"];
|
|
6971
|
+
readonly properties: {
|
|
6972
|
+
readonly schemaVersion: {
|
|
6973
|
+
readonly type: "integer";
|
|
6974
|
+
readonly enum: readonly [1];
|
|
6975
|
+
};
|
|
6976
|
+
};
|
|
6977
|
+
};
|
|
6978
|
+
readonly levels: {
|
|
6979
|
+
readonly type: "object";
|
|
6980
|
+
readonly additionalProperties: false;
|
|
6981
|
+
readonly required: readonly ["schedules", "gates"];
|
|
6982
|
+
readonly properties: {
|
|
6983
|
+
readonly schedules: {
|
|
6984
|
+
readonly type: "integer";
|
|
6985
|
+
readonly minimum: 0;
|
|
6986
|
+
};
|
|
6987
|
+
readonly gates: {
|
|
6988
|
+
readonly type: "integer";
|
|
6989
|
+
readonly minimum: 0;
|
|
6990
|
+
};
|
|
6991
|
+
};
|
|
6992
|
+
};
|
|
6993
|
+
readonly migrations: {
|
|
6994
|
+
readonly type: "object";
|
|
6995
|
+
readonly additionalProperties: false;
|
|
6996
|
+
readonly required: readonly ["first", "last", "count", "names", "compatibleWithPrevious"];
|
|
6997
|
+
readonly properties: {
|
|
6998
|
+
readonly first: {
|
|
6999
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
7000
|
+
};
|
|
7001
|
+
readonly last: {
|
|
7002
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
7003
|
+
};
|
|
7004
|
+
readonly count: {
|
|
7005
|
+
readonly type: "integer";
|
|
7006
|
+
readonly minimum: 1;
|
|
7007
|
+
};
|
|
7008
|
+
readonly names: {
|
|
7009
|
+
readonly type: "array";
|
|
7010
|
+
readonly minItems: 1;
|
|
7011
|
+
readonly uniqueItems: true;
|
|
7012
|
+
readonly items: {
|
|
7013
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
7014
|
+
};
|
|
7015
|
+
};
|
|
7016
|
+
readonly compatibleWithPrevious: {
|
|
7017
|
+
readonly type: "boolean";
|
|
7018
|
+
};
|
|
7019
|
+
};
|
|
7020
|
+
};
|
|
7021
|
+
readonly durableObjects: {
|
|
7022
|
+
readonly type: "object";
|
|
7023
|
+
readonly additionalProperties: false;
|
|
7024
|
+
readonly required: readonly ["bindings", "lifecycleChange"];
|
|
7025
|
+
readonly properties: {
|
|
7026
|
+
readonly bindings: {
|
|
7027
|
+
readonly type: "array";
|
|
7028
|
+
readonly items: {
|
|
7029
|
+
readonly type: "object";
|
|
7030
|
+
readonly additionalProperties: false;
|
|
7031
|
+
readonly required: readonly ["name", "className", "migration"];
|
|
7032
|
+
readonly properties: {
|
|
7033
|
+
readonly name: {
|
|
7034
|
+
readonly $ref: "#/$defs/BindingName";
|
|
7035
|
+
};
|
|
7036
|
+
readonly className: {
|
|
7037
|
+
readonly type: "string";
|
|
7038
|
+
readonly pattern: "^[A-Z][A-Za-z0-9]*$";
|
|
7039
|
+
};
|
|
7040
|
+
readonly migration: {
|
|
7041
|
+
readonly type: "string";
|
|
7042
|
+
readonly pattern: "^v[1-9][0-9]*$";
|
|
7043
|
+
};
|
|
7044
|
+
};
|
|
7045
|
+
};
|
|
7046
|
+
};
|
|
7047
|
+
readonly lifecycleChange: {
|
|
7048
|
+
readonly type: "boolean";
|
|
7049
|
+
};
|
|
7050
|
+
};
|
|
7051
|
+
};
|
|
7052
|
+
readonly runtime: {
|
|
7053
|
+
readonly type: "object";
|
|
7054
|
+
readonly additionalProperties: false;
|
|
7055
|
+
readonly required: readonly ["compatibilityDate", "compatibilityFlags"];
|
|
7056
|
+
readonly properties: {
|
|
7057
|
+
readonly compatibilityDate: {
|
|
7058
|
+
readonly type: "string";
|
|
7059
|
+
readonly pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
7060
|
+
};
|
|
7061
|
+
readonly compatibilityFlags: {
|
|
7062
|
+
readonly type: "array";
|
|
7063
|
+
readonly uniqueItems: true;
|
|
7064
|
+
readonly items: {
|
|
7065
|
+
readonly type: "string";
|
|
7066
|
+
readonly pattern: "^[a-z0-9_]+$";
|
|
7067
|
+
};
|
|
7068
|
+
};
|
|
7069
|
+
};
|
|
7070
|
+
};
|
|
7071
|
+
readonly toolchain: {
|
|
7072
|
+
readonly type: "object";
|
|
7073
|
+
readonly additionalProperties: {
|
|
7074
|
+
readonly type: "string";
|
|
7075
|
+
readonly maxLength: 64;
|
|
7076
|
+
};
|
|
7077
|
+
};
|
|
7078
|
+
readonly theme: {
|
|
7079
|
+
readonly type: "object";
|
|
7080
|
+
readonly additionalProperties: false;
|
|
7081
|
+
readonly required: readonly ["name", "version", "blockTypes", "settingsSha256", "designSha256"];
|
|
7082
|
+
readonly properties: {
|
|
7083
|
+
readonly name: {
|
|
7084
|
+
readonly type: "string";
|
|
7085
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,63}$";
|
|
7086
|
+
};
|
|
7087
|
+
readonly version: {
|
|
7088
|
+
readonly type: "string";
|
|
7089
|
+
readonly maxLength: 64;
|
|
7090
|
+
};
|
|
7091
|
+
readonly blockTypes: {
|
|
7092
|
+
readonly type: "array";
|
|
7093
|
+
readonly uniqueItems: true;
|
|
7094
|
+
readonly items: {
|
|
7095
|
+
readonly type: "string";
|
|
7096
|
+
};
|
|
7097
|
+
};
|
|
7098
|
+
readonly settingsSha256: {
|
|
7099
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7100
|
+
};
|
|
7101
|
+
readonly designSha256: {
|
|
7102
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7103
|
+
};
|
|
7104
|
+
};
|
|
7105
|
+
};
|
|
7106
|
+
readonly skills: {
|
|
7107
|
+
readonly type: "array";
|
|
7108
|
+
readonly items: {
|
|
7109
|
+
readonly type: "object";
|
|
7110
|
+
readonly additionalProperties: false;
|
|
7111
|
+
readonly required: readonly ["name", "sha256"];
|
|
7112
|
+
readonly properties: {
|
|
7113
|
+
readonly name: {
|
|
7114
|
+
readonly type: "string";
|
|
7115
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,63}$";
|
|
7116
|
+
};
|
|
7117
|
+
readonly sha256: {
|
|
7118
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7119
|
+
};
|
|
7120
|
+
};
|
|
7121
|
+
};
|
|
7122
|
+
};
|
|
7123
|
+
readonly workers: {
|
|
7124
|
+
readonly type: "object";
|
|
7125
|
+
readonly additionalProperties: false;
|
|
7126
|
+
readonly required: readonly ["site", "admin"];
|
|
7127
|
+
readonly properties: {
|
|
7128
|
+
readonly site: {
|
|
7129
|
+
readonly $ref: "#/$defs/WorkerArtifact";
|
|
7130
|
+
};
|
|
7131
|
+
readonly admin: {
|
|
7132
|
+
readonly $ref: "#/$defs/WorkerArtifact";
|
|
7133
|
+
};
|
|
7134
|
+
};
|
|
7135
|
+
};
|
|
7136
|
+
readonly bindingTemplates: {
|
|
7137
|
+
readonly type: "object";
|
|
7138
|
+
readonly additionalProperties: false;
|
|
7139
|
+
readonly required: readonly ["site", "admin"];
|
|
7140
|
+
readonly properties: {
|
|
7141
|
+
readonly site: {
|
|
7142
|
+
readonly $ref: "#/$defs/BindingTemplate";
|
|
7143
|
+
};
|
|
7144
|
+
readonly admin: {
|
|
7145
|
+
readonly $ref: "#/$defs/BindingTemplate";
|
|
7146
|
+
};
|
|
7147
|
+
};
|
|
7148
|
+
};
|
|
7149
|
+
readonly requiredScopes: {
|
|
7150
|
+
readonly type: "array";
|
|
7151
|
+
readonly uniqueItems: true;
|
|
7152
|
+
readonly items: {
|
|
7153
|
+
readonly $ref: "#/$defs/ScopeId";
|
|
7154
|
+
};
|
|
7155
|
+
};
|
|
7156
|
+
readonly optionalScopes: {
|
|
7157
|
+
readonly type: "array";
|
|
7158
|
+
readonly uniqueItems: true;
|
|
7159
|
+
readonly items: {
|
|
7160
|
+
readonly $ref: "#/$defs/ScopeId";
|
|
7161
|
+
};
|
|
7162
|
+
};
|
|
7163
|
+
readonly requiredCapabilities: {
|
|
7164
|
+
readonly type: "array";
|
|
7165
|
+
readonly uniqueItems: true;
|
|
7166
|
+
readonly items: {
|
|
7167
|
+
readonly $ref: "#/$defs/Capability";
|
|
7168
|
+
};
|
|
7169
|
+
};
|
|
7170
|
+
readonly optionalCapabilities: {
|
|
7171
|
+
readonly type: "array";
|
|
7172
|
+
readonly uniqueItems: true;
|
|
7173
|
+
readonly items: {
|
|
7174
|
+
readonly $ref: "#/$defs/Capability";
|
|
7175
|
+
};
|
|
7176
|
+
};
|
|
7177
|
+
readonly starter: {
|
|
7178
|
+
readonly oneOf: readonly [{
|
|
7179
|
+
readonly type: "object";
|
|
7180
|
+
readonly additionalProperties: false;
|
|
7181
|
+
readonly required: readonly ["kind"];
|
|
7182
|
+
readonly properties: {
|
|
7183
|
+
readonly kind: {
|
|
7184
|
+
readonly type: "string";
|
|
7185
|
+
readonly enum: readonly ["admin-api"];
|
|
7186
|
+
};
|
|
7187
|
+
};
|
|
7188
|
+
}, {
|
|
7189
|
+
readonly type: "object";
|
|
7190
|
+
readonly additionalProperties: false;
|
|
7191
|
+
readonly required: readonly ["kind", "path", "bytes", "sha256", "siteId"];
|
|
7192
|
+
readonly properties: {
|
|
7193
|
+
readonly kind: {
|
|
7194
|
+
readonly type: "string";
|
|
7195
|
+
readonly enum: readonly ["bundle"];
|
|
7196
|
+
};
|
|
7197
|
+
readonly path: {
|
|
7198
|
+
readonly type: "string";
|
|
7199
|
+
readonly pattern: "^starter/[A-Za-z0-9._-]+$";
|
|
7200
|
+
};
|
|
7201
|
+
readonly bytes: {
|
|
7202
|
+
readonly type: "integer";
|
|
7203
|
+
readonly minimum: 1;
|
|
7204
|
+
};
|
|
7205
|
+
readonly sha256: {
|
|
7206
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7207
|
+
};
|
|
7208
|
+
readonly siteId: {
|
|
7209
|
+
readonly $ref: "#/$defs/SiteId";
|
|
7210
|
+
};
|
|
7211
|
+
};
|
|
7212
|
+
}];
|
|
7213
|
+
};
|
|
7214
|
+
readonly features: {
|
|
7215
|
+
readonly type: "object";
|
|
7216
|
+
readonly additionalProperties: {
|
|
7217
|
+
readonly type: "boolean";
|
|
7218
|
+
};
|
|
7219
|
+
readonly required: readonly ["adminSitesAcceptsSiteId", "healthReportsVersion", "mediaTransformVar"];
|
|
7220
|
+
readonly properties: {
|
|
7221
|
+
readonly adminSitesAcceptsSiteId: {
|
|
7222
|
+
readonly type: "boolean";
|
|
7223
|
+
};
|
|
7224
|
+
readonly healthReportsVersion: {
|
|
7225
|
+
readonly type: "boolean";
|
|
7226
|
+
};
|
|
7227
|
+
readonly mediaTransformVar: {
|
|
7228
|
+
readonly type: "boolean";
|
|
7229
|
+
};
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
readonly planVersion: {
|
|
7233
|
+
readonly type: "integer";
|
|
7234
|
+
readonly minimum: 1;
|
|
7235
|
+
};
|
|
7236
|
+
readonly signing: {
|
|
7237
|
+
readonly type: "object";
|
|
7238
|
+
readonly additionalProperties: false;
|
|
7239
|
+
readonly required: readonly ["keyId", "algorithm", "signature"];
|
|
7240
|
+
readonly properties: {
|
|
7241
|
+
readonly keyId: {
|
|
7242
|
+
readonly type: "string";
|
|
7243
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
|
|
7244
|
+
};
|
|
7245
|
+
readonly algorithm: {
|
|
7246
|
+
readonly type: "string";
|
|
7247
|
+
readonly enum: readonly ["Ed25519"];
|
|
7248
|
+
};
|
|
7249
|
+
readonly signature: {
|
|
7250
|
+
readonly type: "string";
|
|
7251
|
+
readonly enum: readonly ["manifest.sig", "release-statement.sig"];
|
|
7252
|
+
};
|
|
7253
|
+
};
|
|
7254
|
+
};
|
|
7255
|
+
};
|
|
7256
|
+
readonly $defs: {
|
|
7257
|
+
readonly BindingName: {
|
|
7258
|
+
readonly type: "string";
|
|
7259
|
+
readonly pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$";
|
|
7260
|
+
};
|
|
7261
|
+
readonly BindingTemplate: {
|
|
7262
|
+
readonly type: "object";
|
|
7263
|
+
readonly additionalProperties: false;
|
|
7264
|
+
readonly required: readonly ["bindings", "vars", "secrets"];
|
|
7265
|
+
readonly properties: {
|
|
7266
|
+
readonly bindings: {
|
|
7267
|
+
readonly type: "array";
|
|
7268
|
+
readonly items: {
|
|
7269
|
+
readonly type: "object";
|
|
7270
|
+
readonly additionalProperties: false;
|
|
7271
|
+
readonly required: readonly ["name", "type", "required"];
|
|
7272
|
+
readonly properties: {
|
|
7273
|
+
readonly name: {
|
|
7274
|
+
readonly $ref: "#/$defs/BindingName";
|
|
7275
|
+
};
|
|
7276
|
+
readonly type: {
|
|
7277
|
+
readonly type: "string";
|
|
7278
|
+
readonly enum: readonly ["d1", "r2_bucket", "assets", "service", "durable_object_namespace", "analytics_engine", "analytics_sql", "ratelimit", "ai_search", "send_email", "ai", "browser"];
|
|
7279
|
+
};
|
|
7280
|
+
readonly required: {
|
|
7281
|
+
readonly type: "boolean";
|
|
7282
|
+
};
|
|
7283
|
+
readonly aliases: {
|
|
7284
|
+
readonly type: "array";
|
|
7285
|
+
readonly items: {
|
|
7286
|
+
readonly $ref: "#/$defs/BindingName";
|
|
7287
|
+
};
|
|
7288
|
+
};
|
|
7289
|
+
};
|
|
7290
|
+
};
|
|
7291
|
+
};
|
|
7292
|
+
readonly vars: {
|
|
7293
|
+
readonly type: "array";
|
|
7294
|
+
readonly uniqueItems: true;
|
|
7295
|
+
readonly items: {
|
|
7296
|
+
readonly $ref: "#/$defs/BindingName";
|
|
7297
|
+
};
|
|
7298
|
+
};
|
|
7299
|
+
readonly secrets: {
|
|
7300
|
+
readonly type: "array";
|
|
7301
|
+
readonly uniqueItems: true;
|
|
7302
|
+
readonly items: {
|
|
7303
|
+
readonly $ref: "#/$defs/SecretName";
|
|
7304
|
+
};
|
|
7305
|
+
};
|
|
7306
|
+
readonly cache: {
|
|
7307
|
+
readonly type: "boolean";
|
|
7308
|
+
};
|
|
7309
|
+
readonly cron: {
|
|
7310
|
+
readonly type: "string";
|
|
7311
|
+
readonly pattern: "^[0-9*/,\\- ]+$";
|
|
7312
|
+
};
|
|
7313
|
+
};
|
|
7314
|
+
};
|
|
7315
|
+
readonly Capability: {
|
|
7316
|
+
readonly type: "string";
|
|
7317
|
+
readonly enum: readonly ["account", "workers", "d1", "r2", "analytics", "domains"];
|
|
7318
|
+
};
|
|
7319
|
+
readonly CloudhalVersion: {
|
|
7320
|
+
readonly type: "string";
|
|
7321
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
|
|
7322
|
+
};
|
|
7323
|
+
readonly MigrationName: {
|
|
7324
|
+
readonly type: "string";
|
|
7325
|
+
readonly pattern: "^[0-9]{4}_[a-z0-9_]+$";
|
|
7326
|
+
};
|
|
7327
|
+
readonly SchemaVersion: {
|
|
7328
|
+
readonly type: "integer";
|
|
7329
|
+
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
7330
|
+
readonly enum: readonly [1];
|
|
7331
|
+
};
|
|
7332
|
+
readonly ScopeId: {
|
|
7333
|
+
readonly type: "string";
|
|
7334
|
+
readonly pattern: "^[a-z0-9-]+(\\.[a-z0-9-]+)+$";
|
|
7335
|
+
};
|
|
7336
|
+
readonly SecretName: {
|
|
7337
|
+
readonly type: "string";
|
|
7338
|
+
readonly enum: readonly ["BETTER_AUTH_SECRET", "MCP_STATE_KEY", "CLOUDHAL_PREVIEW_SECRET", "CLOUDHAL_PURGE_TOKEN", "CLOUDHAL_DEPLOY_TOKEN", "CLOUDHAL_SETUP_TOKEN", "CLOUDHAL_COMMENTS_KEY"];
|
|
7339
|
+
};
|
|
7340
|
+
readonly Sha256Hex: {
|
|
7341
|
+
readonly type: "string";
|
|
7342
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
7343
|
+
};
|
|
7344
|
+
readonly SiteId: {
|
|
7345
|
+
readonly type: "string";
|
|
7346
|
+
readonly pattern: "^site_[A-Za-z0-9]{6,32}$";
|
|
7347
|
+
};
|
|
7348
|
+
readonly Timestamp: {
|
|
7349
|
+
readonly type: "string";
|
|
7350
|
+
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
7351
|
+
readonly format: "date-time";
|
|
7352
|
+
};
|
|
7353
|
+
readonly WorkerArtifact: {
|
|
7354
|
+
readonly type: "object";
|
|
7355
|
+
readonly additionalProperties: false;
|
|
7356
|
+
readonly required: readonly ["mainModule", "modules", "assets"];
|
|
7357
|
+
readonly properties: {
|
|
7358
|
+
readonly mainModule: {
|
|
7359
|
+
readonly type: "string";
|
|
7360
|
+
readonly pattern: "^[A-Za-z0-9._/-]+$";
|
|
7361
|
+
};
|
|
7362
|
+
readonly modules: {
|
|
7363
|
+
readonly type: "array";
|
|
7364
|
+
readonly minItems: 1;
|
|
7365
|
+
readonly items: {
|
|
7366
|
+
readonly type: "object";
|
|
7367
|
+
readonly additionalProperties: false;
|
|
7368
|
+
readonly required: readonly ["path", "type", "bytes", "sha256"];
|
|
7369
|
+
readonly properties: {
|
|
7370
|
+
readonly path: {
|
|
7371
|
+
readonly type: "string";
|
|
7372
|
+
readonly pattern: "^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$";
|
|
7373
|
+
};
|
|
7374
|
+
readonly type: {
|
|
7375
|
+
readonly type: "string";
|
|
7376
|
+
readonly enum: readonly ["esm", "cjs", "wasm", "text", "data"];
|
|
7377
|
+
};
|
|
7378
|
+
readonly bytes: {
|
|
7379
|
+
readonly type: "integer";
|
|
7380
|
+
readonly minimum: 1;
|
|
7381
|
+
};
|
|
7382
|
+
readonly sha256: {
|
|
7383
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7384
|
+
};
|
|
7385
|
+
};
|
|
7386
|
+
};
|
|
7387
|
+
};
|
|
7388
|
+
readonly assets: {
|
|
7389
|
+
readonly type: "object";
|
|
7390
|
+
readonly additionalProperties: false;
|
|
7391
|
+
readonly required: readonly ["count", "bytes", "files", "headers"];
|
|
7392
|
+
readonly properties: {
|
|
7393
|
+
readonly count: {
|
|
7394
|
+
readonly type: "integer";
|
|
7395
|
+
readonly minimum: 0;
|
|
7396
|
+
readonly maximum: 20000;
|
|
7397
|
+
};
|
|
7398
|
+
readonly bytes: {
|
|
7399
|
+
readonly type: "integer";
|
|
7400
|
+
readonly minimum: 0;
|
|
7401
|
+
};
|
|
7402
|
+
readonly files: {
|
|
7403
|
+
readonly type: "array";
|
|
7404
|
+
readonly maxItems: 20000;
|
|
7405
|
+
readonly items: {
|
|
7406
|
+
readonly type: "object";
|
|
7407
|
+
readonly additionalProperties: false;
|
|
7408
|
+
readonly required: readonly ["path", "bytes", "sha256", "assetHash", "contentType"];
|
|
7409
|
+
readonly properties: {
|
|
7410
|
+
readonly path: {
|
|
7411
|
+
readonly type: "string";
|
|
7412
|
+
readonly pattern: "^/[^\\s]*$";
|
|
7413
|
+
readonly maxLength: 1024;
|
|
7414
|
+
};
|
|
7415
|
+
readonly bytes: {
|
|
7416
|
+
readonly type: "integer";
|
|
7417
|
+
readonly minimum: 0;
|
|
7418
|
+
readonly maximum: 26214400;
|
|
7419
|
+
};
|
|
7420
|
+
readonly sha256: {
|
|
7421
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7422
|
+
};
|
|
7423
|
+
readonly assetHash: {
|
|
7424
|
+
readonly type: "string";
|
|
7425
|
+
readonly pattern: "^[0-9a-f]{32}$";
|
|
7426
|
+
};
|
|
7427
|
+
readonly contentType: {
|
|
7428
|
+
readonly type: "string";
|
|
7429
|
+
readonly maxLength: 128;
|
|
7430
|
+
};
|
|
7431
|
+
};
|
|
7432
|
+
};
|
|
7433
|
+
};
|
|
7434
|
+
readonly headers: {
|
|
7435
|
+
readonly type: "string";
|
|
7436
|
+
readonly maxLength: 100000;
|
|
7437
|
+
};
|
|
7438
|
+
readonly config: {
|
|
7439
|
+
readonly type: "object";
|
|
7440
|
+
readonly additionalProperties: false;
|
|
7441
|
+
readonly properties: {
|
|
7442
|
+
readonly not_found_handling: {
|
|
7443
|
+
readonly type: "string";
|
|
7444
|
+
readonly enum: readonly ["none", "404-page", "single-page-application"];
|
|
7445
|
+
};
|
|
7446
|
+
readonly run_worker_first: {
|
|
7447
|
+
readonly type: "array";
|
|
7448
|
+
readonly items: {
|
|
7449
|
+
readonly type: "string";
|
|
7450
|
+
readonly pattern: "^/";
|
|
7451
|
+
};
|
|
7452
|
+
};
|
|
7453
|
+
};
|
|
7454
|
+
};
|
|
7455
|
+
};
|
|
7456
|
+
};
|
|
7457
|
+
readonly bindingTemplate: {
|
|
7458
|
+
readonly type: "string";
|
|
7459
|
+
readonly enum: readonly ["site", "admin"];
|
|
7460
|
+
};
|
|
7461
|
+
};
|
|
7462
|
+
};
|
|
7463
|
+
};
|
|
7464
|
+
};
|
|
7465
|
+
export declare const ReleaseStatementSchema: {
|
|
7466
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
7467
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/release-statement.schema.json";
|
|
7468
|
+
readonly title: "ReleaseStatement";
|
|
7469
|
+
readonly 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.";
|
|
7470
|
+
readonly type: "object";
|
|
7471
|
+
readonly additionalProperties: false;
|
|
7472
|
+
readonly required: readonly ["schemaVersion", "format", "version", "channel", "securityRelease", "commit", "createdAt", "signing", "manifest", "tarball"];
|
|
7473
|
+
readonly properties: {
|
|
7474
|
+
readonly schemaVersion: {
|
|
7475
|
+
readonly $ref: "#/$defs/SchemaVersion";
|
|
7476
|
+
};
|
|
7477
|
+
readonly format: {
|
|
7478
|
+
readonly type: "string";
|
|
7479
|
+
readonly enum: readonly ["cloudhal.release-statement@1"];
|
|
7480
|
+
};
|
|
7481
|
+
readonly version: {
|
|
7482
|
+
readonly $ref: "#/$defs/CloudhalVersion";
|
|
7483
|
+
};
|
|
7484
|
+
readonly channel: {
|
|
7485
|
+
readonly type: "string";
|
|
7486
|
+
readonly enum: readonly ["stable", "next"];
|
|
7487
|
+
};
|
|
7488
|
+
readonly securityRelease: {
|
|
7489
|
+
readonly type: "boolean";
|
|
7490
|
+
};
|
|
7491
|
+
readonly commit: {
|
|
7492
|
+
readonly type: "string";
|
|
7493
|
+
readonly pattern: "^[0-9a-f]{40}$";
|
|
7494
|
+
};
|
|
7495
|
+
readonly createdAt: {
|
|
7496
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
7497
|
+
};
|
|
7498
|
+
readonly signing: {
|
|
7499
|
+
readonly type: "object";
|
|
7500
|
+
readonly additionalProperties: false;
|
|
7501
|
+
readonly required: readonly ["keyId", "algorithm", "signature"];
|
|
7502
|
+
readonly properties: {
|
|
7503
|
+
readonly keyId: {
|
|
7504
|
+
readonly type: "string";
|
|
7505
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
|
|
7506
|
+
};
|
|
7507
|
+
readonly algorithm: {
|
|
7508
|
+
readonly type: "string";
|
|
7509
|
+
readonly enum: readonly ["Ed25519"];
|
|
7510
|
+
};
|
|
7511
|
+
readonly signature: {
|
|
7512
|
+
readonly type: "string";
|
|
7513
|
+
readonly enum: readonly ["release-statement.sig"];
|
|
7514
|
+
};
|
|
7515
|
+
};
|
|
7516
|
+
};
|
|
7517
|
+
readonly manifest: {
|
|
7518
|
+
readonly $ref: "#/$defs/StatementAsset";
|
|
7519
|
+
};
|
|
7520
|
+
readonly tarball: {
|
|
7521
|
+
readonly $ref: "#/$defs/StatementAsset";
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
readonly $defs: {
|
|
7525
|
+
readonly CloudhalVersion: {
|
|
7526
|
+
readonly type: "string";
|
|
7527
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
|
|
7528
|
+
};
|
|
7529
|
+
readonly SchemaVersion: {
|
|
7530
|
+
readonly type: "integer";
|
|
7531
|
+
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
7532
|
+
readonly enum: readonly [1];
|
|
7533
|
+
};
|
|
7534
|
+
readonly Sha256Hex: {
|
|
7535
|
+
readonly type: "string";
|
|
7536
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
7537
|
+
};
|
|
7538
|
+
readonly StatementAsset: {
|
|
7539
|
+
readonly type: "object";
|
|
7540
|
+
readonly additionalProperties: false;
|
|
7541
|
+
readonly required: readonly ["name", "sha256", "bytes"];
|
|
7542
|
+
readonly properties: {
|
|
7543
|
+
readonly name: {
|
|
7544
|
+
readonly type: "string";
|
|
7545
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$";
|
|
7546
|
+
};
|
|
7547
|
+
readonly sha256: {
|
|
7548
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
7549
|
+
};
|
|
7550
|
+
readonly bytes: {
|
|
7551
|
+
readonly type: "integer";
|
|
7552
|
+
readonly minimum: 1;
|
|
7553
|
+
readonly maximum: 104857600;
|
|
7554
|
+
};
|
|
7555
|
+
};
|
|
7556
|
+
};
|
|
7557
|
+
readonly Timestamp: {
|
|
7558
|
+
readonly type: "string";
|
|
7559
|
+
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
7560
|
+
readonly format: "date-time";
|
|
7561
|
+
};
|
|
7562
|
+
};
|
|
7563
|
+
};
|
|
6934
7564
|
export declare const schemas: {
|
|
6935
7565
|
readonly project: {
|
|
6936
7566
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -13132,32 +13762,279 @@ export declare const schemas: {
|
|
|
13132
13762
|
};
|
|
13133
13763
|
readonly reason: {
|
|
13134
13764
|
readonly type: "string";
|
|
13135
|
-
readonly enum: readonly ["unapproved", "approval_lost", "auto_window_ended", "creator_removed"];
|
|
13765
|
+
readonly enum: readonly ["unapproved", "approval_lost", "auto_window_ended", "creator_removed"];
|
|
13766
|
+
};
|
|
13767
|
+
};
|
|
13768
|
+
}, {
|
|
13769
|
+
readonly type: "object";
|
|
13770
|
+
readonly title: "ReleaseCanceledOutcome";
|
|
13771
|
+
readonly description: "Withdrawn by a person or an agent; its nodes are unlocked.";
|
|
13772
|
+
readonly additionalProperties: false;
|
|
13773
|
+
readonly required: readonly ["kind", "at", "by"];
|
|
13774
|
+
readonly properties: {
|
|
13775
|
+
readonly kind: {
|
|
13776
|
+
readonly type: "string";
|
|
13777
|
+
readonly enum: readonly ["canceled"];
|
|
13778
|
+
};
|
|
13779
|
+
readonly at: {
|
|
13780
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13781
|
+
};
|
|
13782
|
+
readonly by: {
|
|
13783
|
+
readonly $ref: "#/$defs/Actor";
|
|
13784
|
+
};
|
|
13785
|
+
};
|
|
13786
|
+
}];
|
|
13787
|
+
};
|
|
13788
|
+
readonly ReleasePerson: {
|
|
13789
|
+
readonly type: "object";
|
|
13790
|
+
readonly description: "A staff person (`user_…`). Agents never appear here.";
|
|
13791
|
+
readonly additionalProperties: false;
|
|
13792
|
+
readonly required: readonly ["id"];
|
|
13793
|
+
readonly properties: {
|
|
13794
|
+
readonly id: {
|
|
13795
|
+
readonly type: "string";
|
|
13796
|
+
readonly pattern: "^user_[A-Za-z0-9]{6,32}$";
|
|
13797
|
+
};
|
|
13798
|
+
readonly name: {
|
|
13799
|
+
readonly type: "string";
|
|
13800
|
+
readonly maxLength: 200;
|
|
13801
|
+
};
|
|
13802
|
+
};
|
|
13803
|
+
};
|
|
13804
|
+
readonly ReleaseState: {
|
|
13805
|
+
readonly type: "string";
|
|
13806
|
+
readonly description: "Lifecycle. `draft`: proposed or being assembled, nothing locked. `awaiting_approval`: waiting for a person; its nodes are locked. `scheduled`: approved (or allowed by `auto` mode) and locked until it runs. `running`: claimed by the scheduler. `published`: applied; `outcome` names the snapshot. `conflict`: a pinned node or its live base changed; held, nothing published. `missed`: the scheduler reached it more than an hour late; nothing published. `expired`: no valid approval at its time. `failed`: refused at run time (e.g. a dependency is missing). `canceled`: withdrawn.";
|
|
13807
|
+
readonly enum: readonly ["draft", "awaiting_approval", "scheduled", "running", "published", "conflict", "missed", "expired", "failed", "canceled"];
|
|
13808
|
+
};
|
|
13809
|
+
readonly ReleaseWhen: {
|
|
13810
|
+
readonly description: "When the release runs, discriminated by `kind`. Absent while a draft has no time yet.";
|
|
13811
|
+
readonly oneOf: readonly [{
|
|
13812
|
+
readonly type: "object";
|
|
13813
|
+
readonly title: "ReleaseAt";
|
|
13814
|
+
readonly description: "At an instant. `at` is what the scheduler compares with the clock; when a person entered a wall-clock time, `localTime` keeps it and `at` is recomputed from it and `timeZone` before the release runs, never earlier than the wall-clock time.";
|
|
13815
|
+
readonly additionalProperties: false;
|
|
13816
|
+
readonly required: readonly ["kind", "at", "timeZone"];
|
|
13817
|
+
readonly properties: {
|
|
13818
|
+
readonly kind: {
|
|
13819
|
+
readonly type: "string";
|
|
13820
|
+
readonly enum: readonly ["at"];
|
|
13821
|
+
};
|
|
13822
|
+
readonly at: {
|
|
13823
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13824
|
+
};
|
|
13825
|
+
readonly timeZone: {
|
|
13826
|
+
readonly $ref: "#/$defs/TimeZone";
|
|
13827
|
+
};
|
|
13828
|
+
readonly localTime: {
|
|
13829
|
+
readonly $ref: "#/$defs/LocalDateTime";
|
|
13830
|
+
};
|
|
13831
|
+
};
|
|
13832
|
+
}, {
|
|
13833
|
+
readonly type: "object";
|
|
13834
|
+
readonly title: "ReleaseOnApproval";
|
|
13835
|
+
readonly description: "As soon as it is approved (a gate-only change such as setting an expiry on live content, or \"publish when approved\").";
|
|
13836
|
+
readonly additionalProperties: false;
|
|
13837
|
+
readonly required: readonly ["kind"];
|
|
13838
|
+
readonly properties: {
|
|
13839
|
+
readonly kind: {
|
|
13840
|
+
readonly type: "string";
|
|
13841
|
+
readonly enum: readonly ["on-approval"];
|
|
13842
|
+
};
|
|
13843
|
+
};
|
|
13844
|
+
}];
|
|
13845
|
+
};
|
|
13846
|
+
readonly Revision: {
|
|
13847
|
+
readonly type: "integer";
|
|
13848
|
+
readonly description: "Monotonic per-node revision used for optimistic locking (compare-and-swap on write).";
|
|
13849
|
+
readonly minimum: 0;
|
|
13850
|
+
};
|
|
13851
|
+
readonly SchemaVersion: {
|
|
13852
|
+
readonly type: "integer";
|
|
13853
|
+
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
13854
|
+
readonly enum: readonly [1];
|
|
13855
|
+
};
|
|
13856
|
+
readonly Timestamp: {
|
|
13857
|
+
readonly type: "string";
|
|
13858
|
+
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
13859
|
+
readonly format: "date-time";
|
|
13860
|
+
};
|
|
13861
|
+
readonly TimeZone: {
|
|
13862
|
+
readonly type: "string";
|
|
13863
|
+
readonly description: "IANA time zone name from the tz database (RFC-0008), e.g. Europe/Istanbul, America/Argentina/Buenos_Aires, Etc/GMT+3 or UTC. Wall-clock times a person enters are kept with their zone, so the instant is recomputed when governments change the rules. The pattern bounds the shape only; writers also check the name against the runtime's Intl zone list.";
|
|
13864
|
+
readonly pattern: "^(?:UTC|[A-Z][A-Za-z_-]+(?:/[A-Za-z0-9_+-]+){1,2})$";
|
|
13865
|
+
readonly maxLength: 64;
|
|
13866
|
+
};
|
|
13867
|
+
};
|
|
13868
|
+
};
|
|
13869
|
+
readonly automation: {
|
|
13870
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
13871
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/automation.schema.json";
|
|
13872
|
+
readonly title: "Automation";
|
|
13873
|
+
readonly description: "A recurring job on a site (RFC-0008), created by a person in Studio: either a built-in deterministic job that Cloudhal runs itself (reports, findings and notifications; it never publishes), or a scheduled agent task that an external agent picks up over MCP with the automation's own key, inside a run window, under a mode cap and budgets. No language model runs inside Cloudhal. Scheduling never grants rights: every call of a task runs with the key's scopes narrowed to its owner's current role. Automations live in D1 next to the graph; they are not graph nodes and are not part of site bundles.";
|
|
13874
|
+
readonly type: "object";
|
|
13875
|
+
readonly additionalProperties: false;
|
|
13876
|
+
readonly required: readonly ["schemaVersion", "id", "siteId", "name", "job", "recurrence", "state", "consecutiveFailures", "owner", "createdAt", "updatedAt", "rev"];
|
|
13877
|
+
readonly properties: {
|
|
13878
|
+
readonly schemaVersion: {
|
|
13879
|
+
readonly $ref: "#/$defs/SchemaVersion";
|
|
13880
|
+
};
|
|
13881
|
+
readonly id: {
|
|
13882
|
+
readonly $ref: "#/$defs/AutomationId";
|
|
13883
|
+
};
|
|
13884
|
+
readonly siteId: {
|
|
13885
|
+
readonly $ref: "#/$defs/Id";
|
|
13886
|
+
};
|
|
13887
|
+
readonly name: {
|
|
13888
|
+
readonly type: "string";
|
|
13889
|
+
readonly minLength: 1;
|
|
13890
|
+
readonly maxLength: 120;
|
|
13891
|
+
readonly pattern: "^[^\\x00-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]+$";
|
|
13892
|
+
};
|
|
13893
|
+
readonly job: {
|
|
13894
|
+
readonly $ref: "#/$defs/AutomationJob";
|
|
13895
|
+
};
|
|
13896
|
+
readonly recurrence: {
|
|
13897
|
+
readonly $ref: "#/$defs/AutomationRecurrence";
|
|
13898
|
+
};
|
|
13899
|
+
readonly state: {
|
|
13900
|
+
readonly $ref: "#/$defs/AutomationState";
|
|
13901
|
+
};
|
|
13902
|
+
readonly pausedReason: {
|
|
13903
|
+
readonly type: "string";
|
|
13904
|
+
readonly description: "Why the automation is not `active`: a person paused it; its agent paused it; three consecutive failures; a run exceeded its budget; the site's kill switch; its key was revoked; its owner left or no longer holds the scopes it needs.";
|
|
13905
|
+
readonly enum: readonly ["person", "agent", "failures", "budget", "kill-switch", "key-revoked", "owner-removed", "role-changed"];
|
|
13906
|
+
};
|
|
13907
|
+
readonly consecutiveFailures: {
|
|
13908
|
+
readonly type: "integer";
|
|
13909
|
+
readonly minimum: 0;
|
|
13910
|
+
};
|
|
13911
|
+
readonly owner: {
|
|
13912
|
+
readonly $ref: "#/$defs/AutomationOwner";
|
|
13913
|
+
};
|
|
13914
|
+
readonly nextRunAt: {
|
|
13915
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13916
|
+
};
|
|
13917
|
+
readonly createdAt: {
|
|
13918
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13919
|
+
};
|
|
13920
|
+
readonly updatedAt: {
|
|
13921
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13922
|
+
};
|
|
13923
|
+
readonly rev: {
|
|
13924
|
+
readonly $ref: "#/$defs/Revision";
|
|
13925
|
+
};
|
|
13926
|
+
readonly metadata: {
|
|
13927
|
+
readonly $ref: "#/$defs/Metadata";
|
|
13928
|
+
};
|
|
13929
|
+
};
|
|
13930
|
+
readonly $defs: {
|
|
13931
|
+
readonly AutomationBudget: {
|
|
13932
|
+
readonly type: "object";
|
|
13933
|
+
readonly description: "Per-run limits Cloudhal counts and enforces for an agent task: tool calls, mutations, approval requests filed and minutes since the run began. Exceeding one ends the run (`budget-exceeded`) and pauses the automation.";
|
|
13934
|
+
readonly additionalProperties: false;
|
|
13935
|
+
readonly required: readonly ["maxToolCalls", "maxWrites", "maxApprovalRequests", "maxMinutes"];
|
|
13936
|
+
readonly properties: {
|
|
13937
|
+
readonly maxToolCalls: {
|
|
13938
|
+
readonly type: "integer";
|
|
13939
|
+
readonly minimum: 1;
|
|
13940
|
+
readonly maximum: 500;
|
|
13941
|
+
};
|
|
13942
|
+
readonly maxWrites: {
|
|
13943
|
+
readonly type: "integer";
|
|
13944
|
+
readonly minimum: 0;
|
|
13945
|
+
readonly maximum: 200;
|
|
13946
|
+
};
|
|
13947
|
+
readonly maxApprovalRequests: {
|
|
13948
|
+
readonly type: "integer";
|
|
13949
|
+
readonly minimum: 0;
|
|
13950
|
+
readonly maximum: 20;
|
|
13951
|
+
};
|
|
13952
|
+
readonly maxMinutes: {
|
|
13953
|
+
readonly type: "integer";
|
|
13954
|
+
readonly minimum: 1;
|
|
13955
|
+
readonly maximum: 240;
|
|
13956
|
+
};
|
|
13957
|
+
};
|
|
13958
|
+
};
|
|
13959
|
+
readonly AutomationId: {
|
|
13960
|
+
readonly type: "string";
|
|
13961
|
+
readonly description: "An automation id: `aut_` and 6 to 32 letters or digits.";
|
|
13962
|
+
readonly pattern: "^aut_[A-Za-z0-9]{6,32}$";
|
|
13963
|
+
};
|
|
13964
|
+
readonly AutomationJob: {
|
|
13965
|
+
readonly description: "What runs, discriminated by `kind`.";
|
|
13966
|
+
readonly oneOf: readonly [{
|
|
13967
|
+
readonly type: "object";
|
|
13968
|
+
readonly title: "BuiltinAutomationJob";
|
|
13969
|
+
readonly description: "A deterministic job Cloudhal runs itself, in bounded steps. Its outputs are findings, reports and Studio notifications; it never changes or publishes content.";
|
|
13970
|
+
readonly additionalProperties: false;
|
|
13971
|
+
readonly required: readonly ["kind", "builtin"];
|
|
13972
|
+
readonly properties: {
|
|
13973
|
+
readonly kind: {
|
|
13974
|
+
readonly type: "string";
|
|
13975
|
+
readonly enum: readonly ["builtin"];
|
|
13976
|
+
};
|
|
13977
|
+
readonly builtin: {
|
|
13978
|
+
readonly type: "string";
|
|
13979
|
+
readonly enum: readonly ["broken-links", "stale-content", "feed-check", "weekly-digest", "cleanup"];
|
|
13980
|
+
};
|
|
13981
|
+
readonly staleAfterDays: {
|
|
13982
|
+
readonly type: "integer";
|
|
13983
|
+
readonly description: "`stale-content` only: entries not updated for this many days are listed for review.";
|
|
13984
|
+
readonly minimum: 30;
|
|
13985
|
+
readonly maximum: 1095;
|
|
13136
13986
|
};
|
|
13137
13987
|
};
|
|
13138
13988
|
}, {
|
|
13139
13989
|
readonly type: "object";
|
|
13140
|
-
readonly title: "
|
|
13141
|
-
readonly description: "
|
|
13990
|
+
readonly title: "AgentTaskAutomationJob";
|
|
13991
|
+
readonly description: "A task an external agent performs over MCP. At each occurrence a run window opens for `windowMinutes`; the automation's key (`keyId`, owned by the automation's owner) is valid only inside an open run, which the agent starts with `begin_run` and ends with `end_run`. The run's mode is the key's effective mode capped by `modeCap`; it never waits for a person: calls that need one leave an approval request and the run ends. `readsUntrustedText` declares that the task reads visitor-supplied text (comments, 404 paths, fetched pages); such an automation's key cannot hold write scopes, and any run that reads such text is limited to reading, labelling and hiding from then on.";
|
|
13142
13992
|
readonly additionalProperties: false;
|
|
13143
|
-
readonly required: readonly ["kind", "
|
|
13993
|
+
readonly required: readonly ["kind", "keyId", "instructions", "modeCap", "readsUntrustedText", "windowMinutes", "budget"];
|
|
13144
13994
|
readonly properties: {
|
|
13145
13995
|
readonly kind: {
|
|
13146
13996
|
readonly type: "string";
|
|
13147
|
-
readonly enum: readonly ["
|
|
13997
|
+
readonly enum: readonly ["agent-task"];
|
|
13148
13998
|
};
|
|
13149
|
-
readonly
|
|
13150
|
-
readonly
|
|
13999
|
+
readonly keyId: {
|
|
14000
|
+
readonly type: "string";
|
|
14001
|
+
readonly pattern: "^[A-Za-z0-9_-]{6,64}$";
|
|
13151
14002
|
};
|
|
13152
|
-
readonly
|
|
13153
|
-
readonly
|
|
14003
|
+
readonly instructions: {
|
|
14004
|
+
readonly type: "string";
|
|
14005
|
+
readonly description: "What the owner asks the agent to do, shown to the agent by `begin_run`. Plain text.";
|
|
14006
|
+
readonly minLength: 1;
|
|
14007
|
+
readonly maxLength: 2000;
|
|
14008
|
+
readonly pattern: "^[^\\x00-\\x08\\x0B-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]+$";
|
|
14009
|
+
};
|
|
14010
|
+
readonly skill: {
|
|
14011
|
+
readonly type: "string";
|
|
14012
|
+
readonly description: "A skill the run declares (its scopes and approval list narrow the run further).";
|
|
14013
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
14014
|
+
readonly maxLength: 64;
|
|
14015
|
+
};
|
|
14016
|
+
readonly modeCap: {
|
|
14017
|
+
readonly type: "string";
|
|
14018
|
+
readonly description: "The most autonomous mode a run may use; never `bypass`.";
|
|
14019
|
+
readonly enum: readonly ["plan", "manual", "edits", "auto"];
|
|
14020
|
+
};
|
|
14021
|
+
readonly readsUntrustedText: {
|
|
14022
|
+
readonly type: "boolean";
|
|
14023
|
+
};
|
|
14024
|
+
readonly windowMinutes: {
|
|
14025
|
+
readonly type: "integer";
|
|
14026
|
+
readonly minimum: 5;
|
|
14027
|
+
readonly maximum: 240;
|
|
14028
|
+
};
|
|
14029
|
+
readonly budget: {
|
|
14030
|
+
readonly $ref: "#/$defs/AutomationBudget";
|
|
13154
14031
|
};
|
|
13155
14032
|
};
|
|
13156
14033
|
}];
|
|
13157
14034
|
};
|
|
13158
|
-
readonly
|
|
14035
|
+
readonly AutomationOwner: {
|
|
13159
14036
|
readonly type: "object";
|
|
13160
|
-
readonly description: "
|
|
14037
|
+
readonly description: "The person who created the automation and owns its key (`user_…`). Agents never own automations.";
|
|
13161
14038
|
readonly additionalProperties: false;
|
|
13162
14039
|
readonly required: readonly ["id"];
|
|
13163
14040
|
readonly properties: {
|
|
@@ -13171,47 +14048,56 @@ export declare const schemas: {
|
|
|
13171
14048
|
};
|
|
13172
14049
|
};
|
|
13173
14050
|
};
|
|
13174
|
-
readonly
|
|
13175
|
-
readonly type: "
|
|
13176
|
-
readonly description: "
|
|
13177
|
-
readonly
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
readonly type: "object";
|
|
13183
|
-
readonly title: "ReleaseAt";
|
|
13184
|
-
readonly description: "At an instant. `at` is what the scheduler compares with the clock; when a person entered a wall-clock time, `localTime` keeps it and `at` is recomputed from it and `timeZone` before the release runs, never earlier than the wall-clock time.";
|
|
13185
|
-
readonly additionalProperties: false;
|
|
13186
|
-
readonly required: readonly ["kind", "at", "timeZone"];
|
|
13187
|
-
readonly properties: {
|
|
13188
|
-
readonly kind: {
|
|
13189
|
-
readonly type: "string";
|
|
13190
|
-
readonly enum: readonly ["at"];
|
|
13191
|
-
};
|
|
13192
|
-
readonly at: {
|
|
13193
|
-
readonly $ref: "#/$defs/Timestamp";
|
|
13194
|
-
};
|
|
13195
|
-
readonly timeZone: {
|
|
13196
|
-
readonly $ref: "#/$defs/TimeZone";
|
|
13197
|
-
};
|
|
13198
|
-
readonly localTime: {
|
|
13199
|
-
readonly $ref: "#/$defs/LocalDateTime";
|
|
13200
|
-
};
|
|
14051
|
+
readonly AutomationRecurrence: {
|
|
14052
|
+
readonly type: "object";
|
|
14053
|
+
readonly description: "When the automation runs: the first occurrence as a wall-clock time in `timeZone`, repeated by `rule` (absent: once). Occurrences are computed in the zone, so \"Mondays 09:07\" stays 09:07 across daylight-saving changes; a time that does not exist on a given day (a spring-forward gap) runs at the next valid minute, and a time that occurs twice runs once, at the first (a documented deviation from RFC 5545 §3.3.10, which drops such occurrences). `preset` records which Studio choice produced the rule.";
|
|
14054
|
+
readonly additionalProperties: false;
|
|
14055
|
+
readonly required: readonly ["start", "timeZone", "preset"];
|
|
14056
|
+
readonly properties: {
|
|
14057
|
+
readonly start: {
|
|
14058
|
+
readonly $ref: "#/$defs/LocalDateTime";
|
|
13201
14059
|
};
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
readonly title: "ReleaseOnApproval";
|
|
13205
|
-
readonly description: "As soon as it is approved (a gate-only change such as setting an expiry on live content, or \"publish when approved\").";
|
|
13206
|
-
readonly additionalProperties: false;
|
|
13207
|
-
readonly required: readonly ["kind"];
|
|
13208
|
-
readonly properties: {
|
|
13209
|
-
readonly kind: {
|
|
13210
|
-
readonly type: "string";
|
|
13211
|
-
readonly enum: readonly ["on-approval"];
|
|
13212
|
-
};
|
|
14060
|
+
readonly timeZone: {
|
|
14061
|
+
readonly $ref: "#/$defs/TimeZone";
|
|
13213
14062
|
};
|
|
13214
|
-
|
|
14063
|
+
readonly rule: {
|
|
14064
|
+
readonly $ref: "#/$defs/AutomationRule";
|
|
14065
|
+
};
|
|
14066
|
+
readonly preset: {
|
|
14067
|
+
readonly type: "string";
|
|
14068
|
+
readonly enum: readonly ["once", "hourly", "daily", "weekdays", "weekly", "monthly", "custom"];
|
|
14069
|
+
};
|
|
14070
|
+
};
|
|
14071
|
+
};
|
|
14072
|
+
readonly AutomationRule: {
|
|
14073
|
+
readonly type: "string";
|
|
14074
|
+
readonly description: "The recurrence as an RFC 5545 RRULE value in Cloudhal's subset, without the `RRULE:` prefix: FREQ DAILY, WEEKLY or MONTHLY; INTERVAL; BYDAY (ordinals such as 2TU or -1FR only with MONTHLY); BYMONTHDAY (1–31 or -1); BYHOUR; BYMINUTE; COUNT or UNTIL. The pattern bounds the vocabulary; the parser refuses repeated parts, COUNT with UNTIL, ordinals outside MONTHLY and runs closer than the job's minimum interval.";
|
|
14075
|
+
readonly maxLength: 300;
|
|
14076
|
+
readonly pattern: "^FREQ=(?:DAILY|WEEKLY|MONTHLY)(?:;(?:INTERVAL=[1-9][0-9]{0,2}|BYDAY=(?:[+-]?[1-5])?(?:MO|TU|WE|TH|FR|SA|SU)(?:,(?:[+-]?[1-5])?(?:MO|TU|WE|TH|FR|SA|SU)){0,6}|BYMONTHDAY=(?:-1|[1-9]|[12][0-9]|3[01])(?:,(?:-1|[1-9]|[12][0-9]|3[01])){0,30}|BYHOUR=(?:[01]?[0-9]|2[0-3])(?:,(?:[01]?[0-9]|2[0-3])){0,23}|BYMINUTE=[0-5]?[0-9](?:,[0-5]?[0-9]){0,3}|COUNT=[1-9][0-9]{0,3}|UNTIL=[0-9]{8}T[0-9]{6}Z))*$";
|
|
14077
|
+
};
|
|
14078
|
+
readonly AutomationState: {
|
|
14079
|
+
readonly type: "string";
|
|
14080
|
+
readonly description: "`active` runs on its recurrence; `paused` and `auto-paused` (by failures or a budget) wait for a person to resume; `broken` needs a person to repair it (key revoked, owner gone); `ended` reached its COUNT or UNTIL.";
|
|
14081
|
+
readonly enum: readonly ["active", "paused", "auto-paused", "broken", "ended"];
|
|
14082
|
+
};
|
|
14083
|
+
readonly Id: {
|
|
14084
|
+
readonly type: "string";
|
|
14085
|
+
readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
|
|
14086
|
+
readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
|
|
14087
|
+
readonly minLength: 8;
|
|
14088
|
+
readonly maxLength: 48;
|
|
14089
|
+
};
|
|
14090
|
+
readonly LocalDateTime: {
|
|
14091
|
+
readonly type: "string";
|
|
14092
|
+
readonly description: "A wall-clock date and time without an offset, to the minute (YYYY-MM-DDTHH:mm), as a person entered it; always paired with a TimeZone (RFC-0008).";
|
|
14093
|
+
readonly pattern: "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])T(?:[01][0-9]|2[0-3]):[0-5][0-9]$";
|
|
14094
|
+
};
|
|
14095
|
+
readonly Metadata: {
|
|
14096
|
+
readonly type: "object";
|
|
14097
|
+
readonly description: "Free-form string-to-string map for extensions. Keys should be namespaced (e.g. cloudhal.source).";
|
|
14098
|
+
readonly additionalProperties: {
|
|
14099
|
+
readonly type: "string";
|
|
14100
|
+
};
|
|
13215
14101
|
};
|
|
13216
14102
|
readonly Revision: {
|
|
13217
14103
|
readonly type: "integer";
|
|
@@ -13236,54 +14122,102 @@ export declare const schemas: {
|
|
|
13236
14122
|
};
|
|
13237
14123
|
};
|
|
13238
14124
|
};
|
|
13239
|
-
readonly
|
|
14125
|
+
readonly "schedule-run": {
|
|
13240
14126
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
13241
|
-
readonly $id: "https://cloudhal.dev/schemas/v1/
|
|
13242
|
-
readonly title: "
|
|
13243
|
-
readonly description: "
|
|
14127
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/schedule-run.schema.json";
|
|
14128
|
+
readonly title: "ScheduleRun";
|
|
14129
|
+
readonly description: "One occurrence of something scheduled (RFC-0008): a release's execution or an automation's run. Its id is derived from the subject and `occurrenceAt`, so a second scheduler tick that reaches the same occurrence finds the same row and the effect happens at most once. `state` says whether the run itself completed; `outcome` says whether it did any work, because a run that ended cleanly may still have done nothing. Runs live in D1 and are kept 90 days; the audit log keeps what each call did.";
|
|
13244
14130
|
readonly type: "object";
|
|
13245
14131
|
readonly additionalProperties: false;
|
|
13246
|
-
readonly required: readonly ["schemaVersion", "id", "siteId", "
|
|
14132
|
+
readonly required: readonly ["schemaVersion", "id", "siteId", "subject", "occurrenceAt", "state", "attempt", "createdAt", "updatedAt", "rev"];
|
|
13247
14133
|
readonly properties: {
|
|
13248
14134
|
readonly schemaVersion: {
|
|
13249
14135
|
readonly $ref: "#/$defs/SchemaVersion";
|
|
13250
14136
|
};
|
|
13251
14137
|
readonly id: {
|
|
13252
|
-
readonly $ref: "#/$defs/
|
|
14138
|
+
readonly $ref: "#/$defs/ScheduleRunId";
|
|
13253
14139
|
};
|
|
13254
14140
|
readonly siteId: {
|
|
13255
14141
|
readonly $ref: "#/$defs/Id";
|
|
13256
14142
|
};
|
|
13257
|
-
readonly
|
|
13258
|
-
readonly
|
|
13259
|
-
readonly minLength: 1;
|
|
13260
|
-
readonly maxLength: 120;
|
|
13261
|
-
readonly pattern: "^[^\\x00-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]+$";
|
|
13262
|
-
};
|
|
13263
|
-
readonly job: {
|
|
13264
|
-
readonly $ref: "#/$defs/AutomationJob";
|
|
14143
|
+
readonly subject: {
|
|
14144
|
+
readonly $ref: "#/$defs/ScheduleRunSubject";
|
|
13265
14145
|
};
|
|
13266
|
-
readonly
|
|
13267
|
-
readonly $ref: "#/$defs/
|
|
14146
|
+
readonly occurrenceAt: {
|
|
14147
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13268
14148
|
};
|
|
13269
14149
|
readonly state: {
|
|
13270
|
-
readonly $ref: "#/$defs/
|
|
14150
|
+
readonly $ref: "#/$defs/ScheduleRunState";
|
|
13271
14151
|
};
|
|
13272
|
-
readonly
|
|
14152
|
+
readonly outcome: {
|
|
13273
14153
|
readonly type: "string";
|
|
13274
|
-
readonly description: "
|
|
13275
|
-
readonly enum: readonly ["
|
|
14154
|
+
readonly description: "What the run achieved, separately from whether it completed: `did-work` changed something or produced findings; `nothing-to-do`; `proposed` left drafts or proposals for people; `waiting-approval` filed requests a person must decide.";
|
|
14155
|
+
readonly enum: readonly ["did-work", "nothing-to-do", "proposed", "waiting-approval"];
|
|
13276
14156
|
};
|
|
13277
|
-
readonly
|
|
14157
|
+
readonly trigger: {
|
|
14158
|
+
readonly type: "string";
|
|
14159
|
+
readonly description: "What woke the scheduler: the every-minute cron trigger, the Durable Object clock's alarm, an admin request (backstop), the Node timer, or a person (\"Run now\", \"Publish now\").";
|
|
14160
|
+
readonly enum: readonly ["cron", "alarm", "request", "node", "manual"];
|
|
14161
|
+
};
|
|
14162
|
+
readonly attempt: {
|
|
13278
14163
|
readonly type: "integer";
|
|
13279
|
-
readonly minimum:
|
|
14164
|
+
readonly minimum: 1;
|
|
13280
14165
|
};
|
|
13281
|
-
readonly
|
|
13282
|
-
readonly $ref: "#/$defs/
|
|
14166
|
+
readonly startedAt: {
|
|
14167
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13283
14168
|
};
|
|
13284
|
-
readonly
|
|
14169
|
+
readonly endedAt: {
|
|
13285
14170
|
readonly $ref: "#/$defs/Timestamp";
|
|
13286
14171
|
};
|
|
14172
|
+
readonly latenessSeconds: {
|
|
14173
|
+
readonly type: "integer";
|
|
14174
|
+
readonly minimum: 0;
|
|
14175
|
+
};
|
|
14176
|
+
readonly adjusted: {
|
|
14177
|
+
readonly type: "string";
|
|
14178
|
+
readonly description: "The occurrence was moved: `dst-gap` (the wall-clock time did not exist that day, so it ran at the next valid minute) or `tzdata` (the zone's rules changed after it was planned).";
|
|
14179
|
+
readonly enum: readonly ["dst-gap", "tzdata"];
|
|
14180
|
+
};
|
|
14181
|
+
readonly window: {
|
|
14182
|
+
readonly $ref: "#/$defs/ScheduleRunWindow";
|
|
14183
|
+
};
|
|
14184
|
+
readonly usage: {
|
|
14185
|
+
readonly $ref: "#/$defs/ScheduleRunUsage";
|
|
14186
|
+
};
|
|
14187
|
+
readonly taint: {
|
|
14188
|
+
readonly $ref: "#/$defs/ScheduleRunTaint";
|
|
14189
|
+
};
|
|
14190
|
+
readonly summary: {
|
|
14191
|
+
readonly type: "string";
|
|
14192
|
+
readonly description: "The agent's own account of the run (`end_run`) or the built-in job's report line. Plain text written by an agent: Studio renders it as text and never as an instruction.";
|
|
14193
|
+
readonly maxLength: 2000;
|
|
14194
|
+
readonly pattern: "^[^\\x00-\\x08\\x0B-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]*$";
|
|
14195
|
+
};
|
|
14196
|
+
readonly counts: {
|
|
14197
|
+
readonly type: "object";
|
|
14198
|
+
readonly description: "Findings by name (e.g. `broken-links`, `stale-entries`, `proposals`).";
|
|
14199
|
+
readonly propertyNames: {
|
|
14200
|
+
readonly type: "string";
|
|
14201
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,40}$";
|
|
14202
|
+
};
|
|
14203
|
+
readonly maxProperties: 20;
|
|
14204
|
+
readonly additionalProperties: {
|
|
14205
|
+
readonly type: "integer";
|
|
14206
|
+
readonly minimum: 0;
|
|
14207
|
+
};
|
|
14208
|
+
};
|
|
14209
|
+
readonly approvalIds: {
|
|
14210
|
+
readonly type: "array";
|
|
14211
|
+
readonly description: "Approval requests the run filed.";
|
|
14212
|
+
readonly items: {
|
|
14213
|
+
readonly $ref: "#/$defs/Id";
|
|
14214
|
+
};
|
|
14215
|
+
readonly uniqueItems: true;
|
|
14216
|
+
readonly maxItems: 50;
|
|
14217
|
+
};
|
|
14218
|
+
readonly error: {
|
|
14219
|
+
readonly $ref: "#/$defs/ScheduleRunError";
|
|
14220
|
+
};
|
|
13287
14221
|
readonly createdAt: {
|
|
13288
14222
|
readonly $ref: "#/$defs/Timestamp";
|
|
13289
14223
|
};
|
|
@@ -13293,162 +14227,233 @@ export declare const schemas: {
|
|
|
13293
14227
|
readonly rev: {
|
|
13294
14228
|
readonly $ref: "#/$defs/Revision";
|
|
13295
14229
|
};
|
|
13296
|
-
readonly metadata: {
|
|
13297
|
-
readonly $ref: "#/$defs/Metadata";
|
|
13298
|
-
};
|
|
13299
14230
|
};
|
|
13300
14231
|
readonly $defs: {
|
|
13301
|
-
readonly
|
|
14232
|
+
readonly Id: {
|
|
14233
|
+
readonly type: "string";
|
|
14234
|
+
readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
|
|
14235
|
+
readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
|
|
14236
|
+
readonly minLength: 8;
|
|
14237
|
+
readonly maxLength: 48;
|
|
14238
|
+
};
|
|
14239
|
+
readonly Revision: {
|
|
14240
|
+
readonly type: "integer";
|
|
14241
|
+
readonly description: "Monotonic per-node revision used for optimistic locking (compare-and-swap on write).";
|
|
14242
|
+
readonly minimum: 0;
|
|
14243
|
+
};
|
|
14244
|
+
readonly ScheduleRunError: {
|
|
13302
14245
|
readonly type: "object";
|
|
13303
|
-
readonly description: "Per-run limits Cloudhal counts and enforces for an agent task: tool calls, mutations, approval requests filed and minutes since the run began. Exceeding one ends the run (`budget-exceeded`) and pauses the automation.";
|
|
13304
14246
|
readonly additionalProperties: false;
|
|
13305
|
-
readonly required: readonly ["
|
|
14247
|
+
readonly required: readonly ["code"];
|
|
13306
14248
|
readonly properties: {
|
|
13307
|
-
readonly
|
|
13308
|
-
readonly type: "
|
|
13309
|
-
readonly
|
|
13310
|
-
readonly maximum: 500;
|
|
13311
|
-
};
|
|
13312
|
-
readonly maxWrites: {
|
|
13313
|
-
readonly type: "integer";
|
|
13314
|
-
readonly minimum: 0;
|
|
13315
|
-
readonly maximum: 200;
|
|
13316
|
-
};
|
|
13317
|
-
readonly maxApprovalRequests: {
|
|
13318
|
-
readonly type: "integer";
|
|
13319
|
-
readonly minimum: 0;
|
|
13320
|
-
readonly maximum: 20;
|
|
14249
|
+
readonly code: {
|
|
14250
|
+
readonly type: "string";
|
|
14251
|
+
readonly pattern: "^[a-z][a-z0-9_]{0,63}$";
|
|
13321
14252
|
};
|
|
13322
|
-
readonly
|
|
13323
|
-
readonly type: "
|
|
13324
|
-
readonly
|
|
13325
|
-
readonly
|
|
14253
|
+
readonly message: {
|
|
14254
|
+
readonly type: "string";
|
|
14255
|
+
readonly maxLength: 500;
|
|
14256
|
+
readonly pattern: "^[^\\x00-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]*$";
|
|
13326
14257
|
};
|
|
13327
14258
|
};
|
|
13328
14259
|
};
|
|
13329
|
-
readonly
|
|
14260
|
+
readonly ScheduleRunId: {
|
|
13330
14261
|
readonly type: "string";
|
|
13331
|
-
readonly description: "
|
|
13332
|
-
readonly pattern: "^
|
|
14262
|
+
readonly description: "A run id: `run_` and 6 to 32 letters or digits, derived from the subject id and `occurrenceAt` (the occurrence's idempotency key).";
|
|
14263
|
+
readonly pattern: "^run_[A-Za-z0-9]{6,32}$";
|
|
13333
14264
|
};
|
|
13334
|
-
readonly
|
|
13335
|
-
readonly
|
|
14265
|
+
readonly ScheduleRunState: {
|
|
14266
|
+
readonly type: "string";
|
|
14267
|
+
readonly description: "`due`: claimed occurrence not started yet; `ready`: an agent task's window is open and waits for `begin_run`; `running`; `succeeded`; `failed`; `missed`: the window closed or the scheduler came too late; `skipped`: a missed occurrence coalesced into a later one; `budget-exceeded`; `killed`: stopped by a pause or a kill switch.";
|
|
14268
|
+
readonly enum: readonly ["due", "ready", "running", "succeeded", "failed", "missed", "skipped", "budget-exceeded", "killed"];
|
|
14269
|
+
};
|
|
14270
|
+
readonly ScheduleRunSubject: {
|
|
14271
|
+
readonly description: "What ran, discriminated by `kind`.";
|
|
13336
14272
|
readonly oneOf: readonly [{
|
|
13337
14273
|
readonly type: "object";
|
|
13338
|
-
readonly title: "
|
|
13339
|
-
readonly description: "A deterministic job Cloudhal runs itself, in bounded steps. Its outputs are findings, reports and Studio notifications; it never changes or publishes content.";
|
|
14274
|
+
readonly title: "ReleaseRunSubject";
|
|
13340
14275
|
readonly additionalProperties: false;
|
|
13341
|
-
readonly required: readonly ["kind", "
|
|
14276
|
+
readonly required: readonly ["kind", "releaseId"];
|
|
13342
14277
|
readonly properties: {
|
|
13343
14278
|
readonly kind: {
|
|
13344
14279
|
readonly type: "string";
|
|
13345
|
-
readonly enum: readonly ["
|
|
14280
|
+
readonly enum: readonly ["release"];
|
|
13346
14281
|
};
|
|
13347
|
-
readonly
|
|
14282
|
+
readonly releaseId: {
|
|
13348
14283
|
readonly type: "string";
|
|
13349
|
-
readonly
|
|
13350
|
-
};
|
|
13351
|
-
readonly staleAfterDays: {
|
|
13352
|
-
readonly type: "integer";
|
|
13353
|
-
readonly description: "`stale-content` only: entries not updated for this many days are listed for review.";
|
|
13354
|
-
readonly minimum: 30;
|
|
13355
|
-
readonly maximum: 1095;
|
|
14284
|
+
readonly pattern: "^rel_[A-Za-z0-9]{6,32}$";
|
|
13356
14285
|
};
|
|
13357
14286
|
};
|
|
13358
14287
|
}, {
|
|
13359
14288
|
readonly type: "object";
|
|
13360
|
-
readonly title: "
|
|
13361
|
-
readonly description: "A task an external agent performs over MCP. At each occurrence a run window opens for `windowMinutes`; the automation's key (`keyId`, owned by the automation's owner) is valid only inside an open run, which the agent starts with `begin_run` and ends with `end_run`. The run's mode is the key's effective mode capped by `modeCap`; it never waits for a person: calls that need one leave an approval request and the run ends. `readsUntrustedText` declares that the task reads visitor-supplied text (comments, 404 paths, fetched pages); such an automation's key cannot hold write scopes, and any run that reads such text is limited to reading, labelling and hiding from then on.";
|
|
14289
|
+
readonly title: "AutomationRunSubject";
|
|
13362
14290
|
readonly additionalProperties: false;
|
|
13363
|
-
readonly required: readonly ["kind", "
|
|
14291
|
+
readonly required: readonly ["kind", "automationId", "job"];
|
|
13364
14292
|
readonly properties: {
|
|
13365
14293
|
readonly kind: {
|
|
13366
14294
|
readonly type: "string";
|
|
13367
|
-
readonly enum: readonly ["
|
|
13368
|
-
};
|
|
13369
|
-
readonly keyId: {
|
|
13370
|
-
readonly type: "string";
|
|
13371
|
-
readonly pattern: "^[A-Za-z0-9_-]{6,64}$";
|
|
13372
|
-
};
|
|
13373
|
-
readonly instructions: {
|
|
13374
|
-
readonly type: "string";
|
|
13375
|
-
readonly description: "What the owner asks the agent to do, shown to the agent by `begin_run`. Plain text.";
|
|
13376
|
-
readonly minLength: 1;
|
|
13377
|
-
readonly maxLength: 2000;
|
|
13378
|
-
readonly pattern: "^[^\\x00-\\x08\\x0B-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]+$";
|
|
14295
|
+
readonly enum: readonly ["automation"];
|
|
13379
14296
|
};
|
|
13380
|
-
readonly
|
|
14297
|
+
readonly automationId: {
|
|
13381
14298
|
readonly type: "string";
|
|
13382
|
-
readonly
|
|
13383
|
-
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
13384
|
-
readonly maxLength: 64;
|
|
14299
|
+
readonly pattern: "^aut_[A-Za-z0-9]{6,32}$";
|
|
13385
14300
|
};
|
|
13386
|
-
readonly
|
|
14301
|
+
readonly job: {
|
|
13387
14302
|
readonly type: "string";
|
|
13388
|
-
readonly
|
|
13389
|
-
readonly enum: readonly ["plan", "manual", "edits", "auto"];
|
|
13390
|
-
};
|
|
13391
|
-
readonly readsUntrustedText: {
|
|
13392
|
-
readonly type: "boolean";
|
|
13393
|
-
};
|
|
13394
|
-
readonly windowMinutes: {
|
|
13395
|
-
readonly type: "integer";
|
|
13396
|
-
readonly minimum: 5;
|
|
13397
|
-
readonly maximum: 240;
|
|
13398
|
-
};
|
|
13399
|
-
readonly budget: {
|
|
13400
|
-
readonly $ref: "#/$defs/AutomationBudget";
|
|
14303
|
+
readonly enum: readonly ["builtin", "agent-task"];
|
|
13401
14304
|
};
|
|
13402
14305
|
};
|
|
13403
14306
|
}];
|
|
13404
14307
|
};
|
|
13405
|
-
readonly
|
|
14308
|
+
readonly ScheduleRunTaint: {
|
|
13406
14309
|
readonly type: "object";
|
|
13407
|
-
readonly description: "The
|
|
14310
|
+
readonly description: "The run read visitor-supplied text at `at` through `tool`; from then on it may only read, label, hide and pause.";
|
|
13408
14311
|
readonly additionalProperties: false;
|
|
13409
|
-
readonly required: readonly ["
|
|
14312
|
+
readonly required: readonly ["at", "tool"];
|
|
13410
14313
|
readonly properties: {
|
|
13411
|
-
readonly
|
|
13412
|
-
readonly
|
|
13413
|
-
readonly pattern: "^user_[A-Za-z0-9]{6,32}$";
|
|
14314
|
+
readonly at: {
|
|
14315
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13414
14316
|
};
|
|
13415
|
-
readonly
|
|
14317
|
+
readonly tool: {
|
|
13416
14318
|
readonly type: "string";
|
|
13417
|
-
readonly
|
|
14319
|
+
readonly pattern: "^[a-z][a-z0-9_]{0,63}$";
|
|
13418
14320
|
};
|
|
13419
14321
|
};
|
|
13420
14322
|
};
|
|
13421
|
-
readonly
|
|
14323
|
+
readonly ScheduleRunUsage: {
|
|
13422
14324
|
readonly type: "object";
|
|
13423
|
-
readonly description: "
|
|
14325
|
+
readonly description: "What the run used against its budget, counted by the server.";
|
|
13424
14326
|
readonly additionalProperties: false;
|
|
13425
|
-
readonly required: readonly ["
|
|
14327
|
+
readonly required: readonly ["toolCalls", "writes", "approvalRequests"];
|
|
13426
14328
|
readonly properties: {
|
|
13427
|
-
readonly
|
|
13428
|
-
readonly
|
|
14329
|
+
readonly toolCalls: {
|
|
14330
|
+
readonly type: "integer";
|
|
14331
|
+
readonly minimum: 0;
|
|
13429
14332
|
};
|
|
13430
|
-
readonly
|
|
13431
|
-
readonly
|
|
14333
|
+
readonly writes: {
|
|
14334
|
+
readonly type: "integer";
|
|
14335
|
+
readonly minimum: 0;
|
|
13432
14336
|
};
|
|
13433
|
-
readonly
|
|
13434
|
-
readonly
|
|
14337
|
+
readonly approvalRequests: {
|
|
14338
|
+
readonly type: "integer";
|
|
14339
|
+
readonly minimum: 0;
|
|
13435
14340
|
};
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
14341
|
+
};
|
|
14342
|
+
};
|
|
14343
|
+
readonly ScheduleRunWindow: {
|
|
14344
|
+
readonly type: "object";
|
|
14345
|
+
readonly description: "An agent task's run window: the automation's key is valid only between `opensAt` and `closesAt`, and only inside a run it began.";
|
|
14346
|
+
readonly additionalProperties: false;
|
|
14347
|
+
readonly required: readonly ["opensAt", "closesAt"];
|
|
14348
|
+
readonly properties: {
|
|
14349
|
+
readonly opensAt: {
|
|
14350
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
14351
|
+
};
|
|
14352
|
+
readonly closesAt: {
|
|
14353
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
13439
14354
|
};
|
|
13440
14355
|
};
|
|
13441
14356
|
};
|
|
13442
|
-
readonly
|
|
13443
|
-
readonly type: "
|
|
13444
|
-
readonly description: "
|
|
13445
|
-
readonly
|
|
13446
|
-
readonly pattern: "^FREQ=(?:DAILY|WEEKLY|MONTHLY)(?:;(?:INTERVAL=[1-9][0-9]{0,2}|BYDAY=(?:[+-]?[1-5])?(?:MO|TU|WE|TH|FR|SA|SU)(?:,(?:[+-]?[1-5])?(?:MO|TU|WE|TH|FR|SA|SU)){0,6}|BYMONTHDAY=(?:-1|[1-9]|[12][0-9]|3[01])(?:,(?:-1|[1-9]|[12][0-9]|3[01])){0,30}|BYHOUR=(?:[01]?[0-9]|2[0-3])(?:,(?:[01]?[0-9]|2[0-3])){0,23}|BYMINUTE=[0-5]?[0-9](?:,[0-5]?[0-9]){0,3}|COUNT=[1-9][0-9]{0,3}|UNTIL=[0-9]{8}T[0-9]{6}Z))*$";
|
|
14357
|
+
readonly SchemaVersion: {
|
|
14358
|
+
readonly type: "integer";
|
|
14359
|
+
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
14360
|
+
readonly enum: readonly [1];
|
|
13447
14361
|
};
|
|
13448
|
-
readonly
|
|
14362
|
+
readonly Timestamp: {
|
|
13449
14363
|
readonly type: "string";
|
|
13450
|
-
readonly description: "
|
|
13451
|
-
readonly
|
|
14364
|
+
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
14365
|
+
readonly format: "date-time";
|
|
14366
|
+
};
|
|
14367
|
+
};
|
|
14368
|
+
};
|
|
14369
|
+
readonly glossary: {
|
|
14370
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
14371
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/glossary.schema.json";
|
|
14372
|
+
readonly title: "Glossary";
|
|
14373
|
+
readonly description: "A site's translation glossary (RFC-0033 §2): terms with their approved translation per locale, and terms never to translate (brand and product names). Agents translating content read it as hard constraints; the checks flag drafts that break it. One per site, snapshotted like every node.";
|
|
14374
|
+
readonly type: "object";
|
|
14375
|
+
readonly additionalProperties: false;
|
|
14376
|
+
readonly required: readonly ["schemaVersion", "id", "siteId", "entries", "rev", "createdAt", "updatedAt"];
|
|
14377
|
+
readonly properties: {
|
|
14378
|
+
readonly schemaVersion: {
|
|
14379
|
+
readonly $ref: "#/$defs/SchemaVersion";
|
|
14380
|
+
};
|
|
14381
|
+
readonly id: {
|
|
14382
|
+
readonly $ref: "#/$defs/Id";
|
|
14383
|
+
};
|
|
14384
|
+
readonly siteId: {
|
|
14385
|
+
readonly $ref: "#/$defs/Id";
|
|
14386
|
+
};
|
|
14387
|
+
readonly entries: {
|
|
14388
|
+
readonly type: "array";
|
|
14389
|
+
readonly description: "Unique by term (case-insensitive); order is the editor's.";
|
|
14390
|
+
readonly items: {
|
|
14391
|
+
readonly $ref: "#/$defs/GlossaryEntry";
|
|
14392
|
+
};
|
|
14393
|
+
readonly maxItems: 2000;
|
|
14394
|
+
};
|
|
14395
|
+
readonly rev: {
|
|
14396
|
+
readonly $ref: "#/$defs/Revision";
|
|
14397
|
+
};
|
|
14398
|
+
readonly createdAt: {
|
|
14399
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
14400
|
+
};
|
|
14401
|
+
readonly updatedAt: {
|
|
14402
|
+
readonly $ref: "#/$defs/Timestamp";
|
|
14403
|
+
};
|
|
14404
|
+
readonly metadata: {
|
|
14405
|
+
readonly $ref: "#/$defs/Metadata";
|
|
14406
|
+
};
|
|
14407
|
+
};
|
|
14408
|
+
readonly $defs: {
|
|
14409
|
+
readonly GlossaryEntry: {
|
|
14410
|
+
readonly type: "object";
|
|
14411
|
+
readonly additionalProperties: false;
|
|
14412
|
+
readonly required: readonly ["term"];
|
|
14413
|
+
readonly properties: {
|
|
14414
|
+
readonly term: {
|
|
14415
|
+
readonly type: "string";
|
|
14416
|
+
readonly description: "The term as written in the site's default locale.";
|
|
14417
|
+
readonly minLength: 1;
|
|
14418
|
+
readonly maxLength: 200;
|
|
14419
|
+
};
|
|
14420
|
+
readonly note: {
|
|
14421
|
+
readonly type: "string";
|
|
14422
|
+
readonly description: "Context for translators and agents: meaning, part of speech, where it appears.";
|
|
14423
|
+
readonly maxLength: 500;
|
|
14424
|
+
};
|
|
14425
|
+
readonly doNotTranslate: {
|
|
14426
|
+
readonly type: "boolean";
|
|
14427
|
+
readonly description: "Keep the term as written in every locale (brand, product or proper names). Such an entry has no translations.";
|
|
14428
|
+
};
|
|
14429
|
+
readonly caseSensitive: {
|
|
14430
|
+
readonly type: "boolean";
|
|
14431
|
+
readonly description: "Match the term only with this exact capitalisation.";
|
|
14432
|
+
};
|
|
14433
|
+
readonly translations: {
|
|
14434
|
+
readonly type: "object";
|
|
14435
|
+
readonly description: "The approved translation per locale (never the default locale).";
|
|
14436
|
+
readonly propertyNames: {
|
|
14437
|
+
readonly $ref: "#/$defs/Locale";
|
|
14438
|
+
};
|
|
14439
|
+
readonly additionalProperties: {
|
|
14440
|
+
readonly type: "object";
|
|
14441
|
+
readonly additionalProperties: false;
|
|
14442
|
+
readonly required: readonly ["text"];
|
|
14443
|
+
readonly properties: {
|
|
14444
|
+
readonly text: {
|
|
14445
|
+
readonly type: "string";
|
|
14446
|
+
readonly minLength: 1;
|
|
14447
|
+
readonly maxLength: 200;
|
|
14448
|
+
};
|
|
14449
|
+
readonly note: {
|
|
14450
|
+
readonly type: "string";
|
|
14451
|
+
readonly maxLength: 500;
|
|
14452
|
+
};
|
|
14453
|
+
};
|
|
14454
|
+
};
|
|
14455
|
+
};
|
|
14456
|
+
};
|
|
13452
14457
|
};
|
|
13453
14458
|
readonly Id: {
|
|
13454
14459
|
readonly type: "string";
|
|
@@ -13457,10 +14462,10 @@ export declare const schemas: {
|
|
|
13457
14462
|
readonly minLength: 8;
|
|
13458
14463
|
readonly maxLength: 48;
|
|
13459
14464
|
};
|
|
13460
|
-
readonly
|
|
14465
|
+
readonly Locale: {
|
|
13461
14466
|
readonly type: "string";
|
|
13462
|
-
readonly description: "
|
|
13463
|
-
readonly pattern: "^[
|
|
14467
|
+
readonly description: "BCP 47 language tag, e.g. en, tr, en-US.";
|
|
14468
|
+
readonly pattern: "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$";
|
|
13464
14469
|
};
|
|
13465
14470
|
readonly Metadata: {
|
|
13466
14471
|
readonly type: "object";
|
|
@@ -13484,376 +14489,631 @@ export declare const schemas: {
|
|
|
13484
14489
|
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
13485
14490
|
readonly format: "date-time";
|
|
13486
14491
|
};
|
|
13487
|
-
readonly TimeZone: {
|
|
13488
|
-
readonly type: "string";
|
|
13489
|
-
readonly description: "IANA time zone name from the tz database (RFC-0008), e.g. Europe/Istanbul, America/Argentina/Buenos_Aires, Etc/GMT+3 or UTC. Wall-clock times a person enters are kept with their zone, so the instant is recomputed when governments change the rules. The pattern bounds the shape only; writers also check the name against the runtime's Intl zone list.";
|
|
13490
|
-
readonly pattern: "^(?:UTC|[A-Z][A-Za-z_-]+(?:/[A-Za-z0-9_+-]+){1,2})$";
|
|
13491
|
-
readonly maxLength: 64;
|
|
13492
|
-
};
|
|
13493
14492
|
};
|
|
13494
14493
|
};
|
|
13495
|
-
readonly "
|
|
14494
|
+
readonly "release-manifest": {
|
|
13496
14495
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
13497
|
-
readonly $id: "https://cloudhal.dev/schemas/v1/
|
|
13498
|
-
readonly title: "
|
|
13499
|
-
readonly description: "
|
|
14496
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/release-manifest.schema.json";
|
|
14497
|
+
readonly title: "ReleaseManifest";
|
|
14498
|
+
readonly 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.";
|
|
13500
14499
|
readonly type: "object";
|
|
13501
14500
|
readonly additionalProperties: false;
|
|
13502
|
-
readonly required: readonly ["schemaVersion", "
|
|
14501
|
+
readonly required: readonly ["schemaVersion", "format", "version", "channel", "securityRelease", "commit", "createdAt", "contracts", "levels", "migrations", "durableObjects", "runtime", "toolchain", "theme", "skills", "workers", "bindingTemplates", "requiredScopes", "optionalScopes", "requiredCapabilities", "optionalCapabilities", "starter", "features", "planVersion", "signing"];
|
|
13503
14502
|
readonly properties: {
|
|
13504
14503
|
readonly schemaVersion: {
|
|
13505
14504
|
readonly $ref: "#/$defs/SchemaVersion";
|
|
13506
14505
|
};
|
|
13507
|
-
readonly
|
|
13508
|
-
readonly $ref: "#/$defs/ScheduleRunId";
|
|
13509
|
-
};
|
|
13510
|
-
readonly siteId: {
|
|
13511
|
-
readonly $ref: "#/$defs/Id";
|
|
13512
|
-
};
|
|
13513
|
-
readonly subject: {
|
|
13514
|
-
readonly $ref: "#/$defs/ScheduleRunSubject";
|
|
13515
|
-
};
|
|
13516
|
-
readonly occurrenceAt: {
|
|
13517
|
-
readonly $ref: "#/$defs/Timestamp";
|
|
13518
|
-
};
|
|
13519
|
-
readonly state: {
|
|
13520
|
-
readonly $ref: "#/$defs/ScheduleRunState";
|
|
13521
|
-
};
|
|
13522
|
-
readonly outcome: {
|
|
14506
|
+
readonly format: {
|
|
13523
14507
|
readonly type: "string";
|
|
13524
|
-
readonly
|
|
13525
|
-
readonly enum: readonly ["did-work", "nothing-to-do", "proposed", "waiting-approval"];
|
|
14508
|
+
readonly enum: readonly ["cloudhal.release-manifest@1"];
|
|
13526
14509
|
};
|
|
13527
|
-
readonly
|
|
14510
|
+
readonly version: {
|
|
14511
|
+
readonly $ref: "#/$defs/CloudhalVersion";
|
|
14512
|
+
};
|
|
14513
|
+
readonly channel: {
|
|
13528
14514
|
readonly type: "string";
|
|
13529
|
-
readonly
|
|
13530
|
-
readonly enum: readonly ["cron", "alarm", "request", "node", "manual"];
|
|
14515
|
+
readonly enum: readonly ["stable", "next"];
|
|
13531
14516
|
};
|
|
13532
|
-
readonly
|
|
13533
|
-
readonly type: "
|
|
13534
|
-
readonly minimum: 1;
|
|
14517
|
+
readonly securityRelease: {
|
|
14518
|
+
readonly type: "boolean";
|
|
13535
14519
|
};
|
|
13536
|
-
readonly
|
|
13537
|
-
readonly
|
|
14520
|
+
readonly commit: {
|
|
14521
|
+
readonly type: "string";
|
|
14522
|
+
readonly pattern: "^[0-9a-f]{40}$";
|
|
13538
14523
|
};
|
|
13539
|
-
readonly
|
|
14524
|
+
readonly createdAt: {
|
|
13540
14525
|
readonly $ref: "#/$defs/Timestamp";
|
|
13541
14526
|
};
|
|
13542
|
-
readonly
|
|
13543
|
-
readonly type: "
|
|
13544
|
-
readonly
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
14527
|
+
readonly contracts: {
|
|
14528
|
+
readonly type: "object";
|
|
14529
|
+
readonly additionalProperties: false;
|
|
14530
|
+
readonly required: readonly ["schemaVersion"];
|
|
14531
|
+
readonly properties: {
|
|
14532
|
+
readonly schemaVersion: {
|
|
14533
|
+
readonly type: "integer";
|
|
14534
|
+
readonly enum: readonly [1];
|
|
14535
|
+
};
|
|
14536
|
+
};
|
|
13550
14537
|
};
|
|
13551
|
-
readonly
|
|
13552
|
-
readonly
|
|
14538
|
+
readonly levels: {
|
|
14539
|
+
readonly type: "object";
|
|
14540
|
+
readonly additionalProperties: false;
|
|
14541
|
+
readonly required: readonly ["schedules", "gates"];
|
|
14542
|
+
readonly properties: {
|
|
14543
|
+
readonly schedules: {
|
|
14544
|
+
readonly type: "integer";
|
|
14545
|
+
readonly minimum: 0;
|
|
14546
|
+
};
|
|
14547
|
+
readonly gates: {
|
|
14548
|
+
readonly type: "integer";
|
|
14549
|
+
readonly minimum: 0;
|
|
14550
|
+
};
|
|
14551
|
+
};
|
|
13553
14552
|
};
|
|
13554
|
-
readonly
|
|
13555
|
-
readonly
|
|
14553
|
+
readonly migrations: {
|
|
14554
|
+
readonly type: "object";
|
|
14555
|
+
readonly additionalProperties: false;
|
|
14556
|
+
readonly required: readonly ["first", "last", "count", "names", "compatibleWithPrevious"];
|
|
14557
|
+
readonly properties: {
|
|
14558
|
+
readonly first: {
|
|
14559
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
14560
|
+
};
|
|
14561
|
+
readonly last: {
|
|
14562
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
14563
|
+
};
|
|
14564
|
+
readonly count: {
|
|
14565
|
+
readonly type: "integer";
|
|
14566
|
+
readonly minimum: 1;
|
|
14567
|
+
};
|
|
14568
|
+
readonly names: {
|
|
14569
|
+
readonly type: "array";
|
|
14570
|
+
readonly minItems: 1;
|
|
14571
|
+
readonly uniqueItems: true;
|
|
14572
|
+
readonly items: {
|
|
14573
|
+
readonly $ref: "#/$defs/MigrationName";
|
|
14574
|
+
};
|
|
14575
|
+
};
|
|
14576
|
+
readonly compatibleWithPrevious: {
|
|
14577
|
+
readonly type: "boolean";
|
|
14578
|
+
};
|
|
14579
|
+
};
|
|
13556
14580
|
};
|
|
13557
|
-
readonly
|
|
13558
|
-
readonly
|
|
14581
|
+
readonly durableObjects: {
|
|
14582
|
+
readonly type: "object";
|
|
14583
|
+
readonly additionalProperties: false;
|
|
14584
|
+
readonly required: readonly ["bindings", "lifecycleChange"];
|
|
14585
|
+
readonly properties: {
|
|
14586
|
+
readonly bindings: {
|
|
14587
|
+
readonly type: "array";
|
|
14588
|
+
readonly items: {
|
|
14589
|
+
readonly type: "object";
|
|
14590
|
+
readonly additionalProperties: false;
|
|
14591
|
+
readonly required: readonly ["name", "className", "migration"];
|
|
14592
|
+
readonly properties: {
|
|
14593
|
+
readonly name: {
|
|
14594
|
+
readonly $ref: "#/$defs/BindingName";
|
|
14595
|
+
};
|
|
14596
|
+
readonly className: {
|
|
14597
|
+
readonly type: "string";
|
|
14598
|
+
readonly pattern: "^[A-Z][A-Za-z0-9]*$";
|
|
14599
|
+
};
|
|
14600
|
+
readonly migration: {
|
|
14601
|
+
readonly type: "string";
|
|
14602
|
+
readonly pattern: "^v[1-9][0-9]*$";
|
|
14603
|
+
};
|
|
14604
|
+
};
|
|
14605
|
+
};
|
|
14606
|
+
};
|
|
14607
|
+
readonly lifecycleChange: {
|
|
14608
|
+
readonly type: "boolean";
|
|
14609
|
+
};
|
|
14610
|
+
};
|
|
13559
14611
|
};
|
|
13560
|
-
readonly
|
|
13561
|
-
readonly type: "
|
|
13562
|
-
readonly
|
|
13563
|
-
readonly
|
|
13564
|
-
readonly
|
|
14612
|
+
readonly runtime: {
|
|
14613
|
+
readonly type: "object";
|
|
14614
|
+
readonly additionalProperties: false;
|
|
14615
|
+
readonly required: readonly ["compatibilityDate", "compatibilityFlags"];
|
|
14616
|
+
readonly properties: {
|
|
14617
|
+
readonly compatibilityDate: {
|
|
14618
|
+
readonly type: "string";
|
|
14619
|
+
readonly pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
14620
|
+
};
|
|
14621
|
+
readonly compatibilityFlags: {
|
|
14622
|
+
readonly type: "array";
|
|
14623
|
+
readonly uniqueItems: true;
|
|
14624
|
+
readonly items: {
|
|
14625
|
+
readonly type: "string";
|
|
14626
|
+
readonly pattern: "^[a-z0-9_]+$";
|
|
14627
|
+
};
|
|
14628
|
+
};
|
|
14629
|
+
};
|
|
13565
14630
|
};
|
|
13566
|
-
readonly
|
|
14631
|
+
readonly toolchain: {
|
|
13567
14632
|
readonly type: "object";
|
|
13568
|
-
readonly
|
|
13569
|
-
readonly propertyNames: {
|
|
14633
|
+
readonly additionalProperties: {
|
|
13570
14634
|
readonly type: "string";
|
|
13571
|
-
readonly
|
|
14635
|
+
readonly maxLength: 64;
|
|
13572
14636
|
};
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
14637
|
+
};
|
|
14638
|
+
readonly theme: {
|
|
14639
|
+
readonly type: "object";
|
|
14640
|
+
readonly additionalProperties: false;
|
|
14641
|
+
readonly required: readonly ["name", "version", "blockTypes", "settingsSha256", "designSha256"];
|
|
14642
|
+
readonly properties: {
|
|
14643
|
+
readonly name: {
|
|
14644
|
+
readonly type: "string";
|
|
14645
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,63}$";
|
|
14646
|
+
};
|
|
14647
|
+
readonly version: {
|
|
14648
|
+
readonly type: "string";
|
|
14649
|
+
readonly maxLength: 64;
|
|
14650
|
+
};
|
|
14651
|
+
readonly blockTypes: {
|
|
14652
|
+
readonly type: "array";
|
|
14653
|
+
readonly uniqueItems: true;
|
|
14654
|
+
readonly items: {
|
|
14655
|
+
readonly type: "string";
|
|
14656
|
+
};
|
|
14657
|
+
};
|
|
14658
|
+
readonly settingsSha256: {
|
|
14659
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14660
|
+
};
|
|
14661
|
+
readonly designSha256: {
|
|
14662
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14663
|
+
};
|
|
13577
14664
|
};
|
|
13578
14665
|
};
|
|
13579
|
-
readonly
|
|
14666
|
+
readonly skills: {
|
|
13580
14667
|
readonly type: "array";
|
|
13581
|
-
readonly description: "Approval requests the run filed.";
|
|
13582
14668
|
readonly items: {
|
|
13583
|
-
readonly
|
|
14669
|
+
readonly type: "object";
|
|
14670
|
+
readonly additionalProperties: false;
|
|
14671
|
+
readonly required: readonly ["name", "sha256"];
|
|
14672
|
+
readonly properties: {
|
|
14673
|
+
readonly name: {
|
|
14674
|
+
readonly type: "string";
|
|
14675
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,63}$";
|
|
14676
|
+
};
|
|
14677
|
+
readonly sha256: {
|
|
14678
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14679
|
+
};
|
|
14680
|
+
};
|
|
13584
14681
|
};
|
|
13585
|
-
readonly uniqueItems: true;
|
|
13586
|
-
readonly maxItems: 50;
|
|
13587
|
-
};
|
|
13588
|
-
readonly error: {
|
|
13589
|
-
readonly $ref: "#/$defs/ScheduleRunError";
|
|
13590
|
-
};
|
|
13591
|
-
readonly createdAt: {
|
|
13592
|
-
readonly $ref: "#/$defs/Timestamp";
|
|
13593
|
-
};
|
|
13594
|
-
readonly updatedAt: {
|
|
13595
|
-
readonly $ref: "#/$defs/Timestamp";
|
|
13596
|
-
};
|
|
13597
|
-
readonly rev: {
|
|
13598
|
-
readonly $ref: "#/$defs/Revision";
|
|
13599
|
-
};
|
|
13600
|
-
};
|
|
13601
|
-
readonly $defs: {
|
|
13602
|
-
readonly Id: {
|
|
13603
|
-
readonly type: "string";
|
|
13604
|
-
readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
|
|
13605
|
-
readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
|
|
13606
|
-
readonly minLength: 8;
|
|
13607
|
-
readonly maxLength: 48;
|
|
13608
14682
|
};
|
|
13609
|
-
readonly
|
|
13610
|
-
readonly type: "
|
|
13611
|
-
readonly
|
|
13612
|
-
readonly
|
|
14683
|
+
readonly workers: {
|
|
14684
|
+
readonly type: "object";
|
|
14685
|
+
readonly additionalProperties: false;
|
|
14686
|
+
readonly required: readonly ["site", "admin"];
|
|
14687
|
+
readonly properties: {
|
|
14688
|
+
readonly site: {
|
|
14689
|
+
readonly $ref: "#/$defs/WorkerArtifact";
|
|
14690
|
+
};
|
|
14691
|
+
readonly admin: {
|
|
14692
|
+
readonly $ref: "#/$defs/WorkerArtifact";
|
|
14693
|
+
};
|
|
14694
|
+
};
|
|
13613
14695
|
};
|
|
13614
|
-
readonly
|
|
14696
|
+
readonly bindingTemplates: {
|
|
13615
14697
|
readonly type: "object";
|
|
13616
14698
|
readonly additionalProperties: false;
|
|
13617
|
-
readonly required: readonly ["
|
|
14699
|
+
readonly required: readonly ["site", "admin"];
|
|
13618
14700
|
readonly properties: {
|
|
13619
|
-
readonly
|
|
13620
|
-
readonly
|
|
13621
|
-
readonly pattern: "^[a-z][a-z0-9_]{0,63}$";
|
|
14701
|
+
readonly site: {
|
|
14702
|
+
readonly $ref: "#/$defs/BindingTemplate";
|
|
13622
14703
|
};
|
|
13623
|
-
readonly
|
|
13624
|
-
readonly
|
|
13625
|
-
readonly maxLength: 500;
|
|
13626
|
-
readonly pattern: "^[^\\x00-\\x1F\\x7F\\u202A-\\u202E\\u2066-\\u2069]*$";
|
|
14704
|
+
readonly admin: {
|
|
14705
|
+
readonly $ref: "#/$defs/BindingTemplate";
|
|
13627
14706
|
};
|
|
13628
14707
|
};
|
|
13629
14708
|
};
|
|
13630
|
-
readonly
|
|
13631
|
-
readonly type: "
|
|
13632
|
-
readonly
|
|
13633
|
-
readonly
|
|
14709
|
+
readonly requiredScopes: {
|
|
14710
|
+
readonly type: "array";
|
|
14711
|
+
readonly uniqueItems: true;
|
|
14712
|
+
readonly items: {
|
|
14713
|
+
readonly $ref: "#/$defs/ScopeId";
|
|
14714
|
+
};
|
|
13634
14715
|
};
|
|
13635
|
-
readonly
|
|
13636
|
-
readonly type: "
|
|
13637
|
-
readonly
|
|
13638
|
-
readonly
|
|
14716
|
+
readonly optionalScopes: {
|
|
14717
|
+
readonly type: "array";
|
|
14718
|
+
readonly uniqueItems: true;
|
|
14719
|
+
readonly items: {
|
|
14720
|
+
readonly $ref: "#/$defs/ScopeId";
|
|
14721
|
+
};
|
|
13639
14722
|
};
|
|
13640
|
-
readonly
|
|
13641
|
-
readonly
|
|
14723
|
+
readonly requiredCapabilities: {
|
|
14724
|
+
readonly type: "array";
|
|
14725
|
+
readonly uniqueItems: true;
|
|
14726
|
+
readonly items: {
|
|
14727
|
+
readonly $ref: "#/$defs/Capability";
|
|
14728
|
+
};
|
|
14729
|
+
};
|
|
14730
|
+
readonly optionalCapabilities: {
|
|
14731
|
+
readonly type: "array";
|
|
14732
|
+
readonly uniqueItems: true;
|
|
14733
|
+
readonly items: {
|
|
14734
|
+
readonly $ref: "#/$defs/Capability";
|
|
14735
|
+
};
|
|
14736
|
+
};
|
|
14737
|
+
readonly starter: {
|
|
13642
14738
|
readonly oneOf: readonly [{
|
|
13643
14739
|
readonly type: "object";
|
|
13644
|
-
readonly title: "ReleaseRunSubject";
|
|
13645
14740
|
readonly additionalProperties: false;
|
|
13646
|
-
readonly required: readonly ["kind"
|
|
13647
|
-
readonly properties: {
|
|
13648
|
-
readonly kind: {
|
|
13649
|
-
readonly type: "string";
|
|
13650
|
-
readonly enum: readonly ["release"];
|
|
13651
|
-
};
|
|
13652
|
-
readonly releaseId: {
|
|
14741
|
+
readonly required: readonly ["kind"];
|
|
14742
|
+
readonly properties: {
|
|
14743
|
+
readonly kind: {
|
|
13653
14744
|
readonly type: "string";
|
|
13654
|
-
readonly
|
|
14745
|
+
readonly enum: readonly ["admin-api"];
|
|
13655
14746
|
};
|
|
13656
14747
|
};
|
|
13657
14748
|
}, {
|
|
13658
14749
|
readonly type: "object";
|
|
13659
|
-
readonly title: "AutomationRunSubject";
|
|
13660
14750
|
readonly additionalProperties: false;
|
|
13661
|
-
readonly required: readonly ["kind", "
|
|
14751
|
+
readonly required: readonly ["kind", "path", "bytes", "sha256", "siteId"];
|
|
13662
14752
|
readonly properties: {
|
|
13663
14753
|
readonly kind: {
|
|
13664
14754
|
readonly type: "string";
|
|
13665
|
-
readonly enum: readonly ["
|
|
14755
|
+
readonly enum: readonly ["bundle"];
|
|
13666
14756
|
};
|
|
13667
|
-
readonly
|
|
14757
|
+
readonly path: {
|
|
13668
14758
|
readonly type: "string";
|
|
13669
|
-
readonly pattern: "^
|
|
14759
|
+
readonly pattern: "^starter/[A-Za-z0-9._-]+$";
|
|
13670
14760
|
};
|
|
13671
|
-
readonly
|
|
13672
|
-
readonly type: "
|
|
13673
|
-
readonly
|
|
14761
|
+
readonly bytes: {
|
|
14762
|
+
readonly type: "integer";
|
|
14763
|
+
readonly minimum: 1;
|
|
14764
|
+
};
|
|
14765
|
+
readonly sha256: {
|
|
14766
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14767
|
+
};
|
|
14768
|
+
readonly siteId: {
|
|
14769
|
+
readonly $ref: "#/$defs/SiteId";
|
|
13674
14770
|
};
|
|
13675
14771
|
};
|
|
13676
14772
|
}];
|
|
13677
14773
|
};
|
|
13678
|
-
readonly
|
|
14774
|
+
readonly features: {
|
|
13679
14775
|
readonly type: "object";
|
|
13680
|
-
readonly
|
|
13681
|
-
|
|
13682
|
-
|
|
14776
|
+
readonly additionalProperties: {
|
|
14777
|
+
readonly type: "boolean";
|
|
14778
|
+
};
|
|
14779
|
+
readonly required: readonly ["adminSitesAcceptsSiteId", "healthReportsVersion", "mediaTransformVar"];
|
|
13683
14780
|
readonly properties: {
|
|
13684
|
-
readonly
|
|
13685
|
-
readonly
|
|
14781
|
+
readonly adminSitesAcceptsSiteId: {
|
|
14782
|
+
readonly type: "boolean";
|
|
13686
14783
|
};
|
|
13687
|
-
readonly
|
|
13688
|
-
readonly type: "
|
|
13689
|
-
|
|
14784
|
+
readonly healthReportsVersion: {
|
|
14785
|
+
readonly type: "boolean";
|
|
14786
|
+
};
|
|
14787
|
+
readonly mediaTransformVar: {
|
|
14788
|
+
readonly type: "boolean";
|
|
13690
14789
|
};
|
|
13691
14790
|
};
|
|
13692
14791
|
};
|
|
13693
|
-
readonly
|
|
14792
|
+
readonly planVersion: {
|
|
14793
|
+
readonly type: "integer";
|
|
14794
|
+
readonly minimum: 1;
|
|
14795
|
+
};
|
|
14796
|
+
readonly signing: {
|
|
13694
14797
|
readonly type: "object";
|
|
13695
|
-
readonly description: "What the run used against its budget, counted by the server.";
|
|
13696
14798
|
readonly additionalProperties: false;
|
|
13697
|
-
readonly required: readonly ["
|
|
14799
|
+
readonly required: readonly ["keyId", "algorithm", "signature"];
|
|
13698
14800
|
readonly properties: {
|
|
13699
|
-
readonly
|
|
13700
|
-
readonly type: "
|
|
13701
|
-
readonly
|
|
14801
|
+
readonly keyId: {
|
|
14802
|
+
readonly type: "string";
|
|
14803
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
|
|
13702
14804
|
};
|
|
13703
|
-
readonly
|
|
13704
|
-
readonly type: "
|
|
13705
|
-
readonly
|
|
14805
|
+
readonly algorithm: {
|
|
14806
|
+
readonly type: "string";
|
|
14807
|
+
readonly enum: readonly ["Ed25519"];
|
|
13706
14808
|
};
|
|
13707
|
-
readonly
|
|
13708
|
-
readonly type: "
|
|
13709
|
-
readonly
|
|
14809
|
+
readonly signature: {
|
|
14810
|
+
readonly type: "string";
|
|
14811
|
+
readonly enum: readonly ["manifest.sig", "release-statement.sig"];
|
|
13710
14812
|
};
|
|
13711
14813
|
};
|
|
13712
14814
|
};
|
|
13713
|
-
|
|
14815
|
+
};
|
|
14816
|
+
readonly $defs: {
|
|
14817
|
+
readonly BindingName: {
|
|
14818
|
+
readonly type: "string";
|
|
14819
|
+
readonly pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$";
|
|
14820
|
+
};
|
|
14821
|
+
readonly BindingTemplate: {
|
|
13714
14822
|
readonly type: "object";
|
|
13715
|
-
readonly description: "An agent task's run window: the automation's key is valid only between `opensAt` and `closesAt`, and only inside a run it began.";
|
|
13716
14823
|
readonly additionalProperties: false;
|
|
13717
|
-
readonly required: readonly ["
|
|
14824
|
+
readonly required: readonly ["bindings", "vars", "secrets"];
|
|
13718
14825
|
readonly properties: {
|
|
13719
|
-
readonly
|
|
13720
|
-
readonly
|
|
14826
|
+
readonly bindings: {
|
|
14827
|
+
readonly type: "array";
|
|
14828
|
+
readonly items: {
|
|
14829
|
+
readonly type: "object";
|
|
14830
|
+
readonly additionalProperties: false;
|
|
14831
|
+
readonly required: readonly ["name", "type", "required"];
|
|
14832
|
+
readonly properties: {
|
|
14833
|
+
readonly name: {
|
|
14834
|
+
readonly $ref: "#/$defs/BindingName";
|
|
14835
|
+
};
|
|
14836
|
+
readonly type: {
|
|
14837
|
+
readonly type: "string";
|
|
14838
|
+
readonly enum: readonly ["d1", "r2_bucket", "assets", "service", "durable_object_namespace", "analytics_engine", "analytics_sql", "ratelimit", "ai_search", "send_email", "ai", "browser"];
|
|
14839
|
+
};
|
|
14840
|
+
readonly required: {
|
|
14841
|
+
readonly type: "boolean";
|
|
14842
|
+
};
|
|
14843
|
+
readonly aliases: {
|
|
14844
|
+
readonly type: "array";
|
|
14845
|
+
readonly items: {
|
|
14846
|
+
readonly $ref: "#/$defs/BindingName";
|
|
14847
|
+
};
|
|
14848
|
+
};
|
|
14849
|
+
};
|
|
14850
|
+
};
|
|
13721
14851
|
};
|
|
13722
|
-
readonly
|
|
13723
|
-
readonly
|
|
14852
|
+
readonly vars: {
|
|
14853
|
+
readonly type: "array";
|
|
14854
|
+
readonly uniqueItems: true;
|
|
14855
|
+
readonly items: {
|
|
14856
|
+
readonly $ref: "#/$defs/BindingName";
|
|
14857
|
+
};
|
|
14858
|
+
};
|
|
14859
|
+
readonly secrets: {
|
|
14860
|
+
readonly type: "array";
|
|
14861
|
+
readonly uniqueItems: true;
|
|
14862
|
+
readonly items: {
|
|
14863
|
+
readonly $ref: "#/$defs/SecretName";
|
|
14864
|
+
};
|
|
14865
|
+
};
|
|
14866
|
+
readonly cache: {
|
|
14867
|
+
readonly type: "boolean";
|
|
14868
|
+
};
|
|
14869
|
+
readonly cron: {
|
|
14870
|
+
readonly type: "string";
|
|
14871
|
+
readonly pattern: "^[0-9*/,\\- ]+$";
|
|
13724
14872
|
};
|
|
13725
14873
|
};
|
|
13726
14874
|
};
|
|
14875
|
+
readonly Capability: {
|
|
14876
|
+
readonly type: "string";
|
|
14877
|
+
readonly enum: readonly ["account", "workers", "d1", "r2", "analytics", "domains"];
|
|
14878
|
+
};
|
|
14879
|
+
readonly CloudhalVersion: {
|
|
14880
|
+
readonly type: "string";
|
|
14881
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
|
|
14882
|
+
};
|
|
14883
|
+
readonly MigrationName: {
|
|
14884
|
+
readonly type: "string";
|
|
14885
|
+
readonly pattern: "^[0-9]{4}_[a-z0-9_]+$";
|
|
14886
|
+
};
|
|
13727
14887
|
readonly SchemaVersion: {
|
|
13728
14888
|
readonly type: "integer";
|
|
13729
14889
|
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
13730
14890
|
readonly enum: readonly [1];
|
|
13731
14891
|
};
|
|
14892
|
+
readonly ScopeId: {
|
|
14893
|
+
readonly type: "string";
|
|
14894
|
+
readonly pattern: "^[a-z0-9-]+(\\.[a-z0-9-]+)+$";
|
|
14895
|
+
};
|
|
14896
|
+
readonly SecretName: {
|
|
14897
|
+
readonly type: "string";
|
|
14898
|
+
readonly enum: readonly ["BETTER_AUTH_SECRET", "MCP_STATE_KEY", "CLOUDHAL_PREVIEW_SECRET", "CLOUDHAL_PURGE_TOKEN", "CLOUDHAL_DEPLOY_TOKEN", "CLOUDHAL_SETUP_TOKEN", "CLOUDHAL_COMMENTS_KEY"];
|
|
14899
|
+
};
|
|
14900
|
+
readonly Sha256Hex: {
|
|
14901
|
+
readonly type: "string";
|
|
14902
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
14903
|
+
};
|
|
14904
|
+
readonly SiteId: {
|
|
14905
|
+
readonly type: "string";
|
|
14906
|
+
readonly pattern: "^site_[A-Za-z0-9]{6,32}$";
|
|
14907
|
+
};
|
|
13732
14908
|
readonly Timestamp: {
|
|
13733
14909
|
readonly type: "string";
|
|
13734
14910
|
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|
|
13735
14911
|
readonly format: "date-time";
|
|
13736
14912
|
};
|
|
14913
|
+
readonly WorkerArtifact: {
|
|
14914
|
+
readonly type: "object";
|
|
14915
|
+
readonly additionalProperties: false;
|
|
14916
|
+
readonly required: readonly ["mainModule", "modules", "assets"];
|
|
14917
|
+
readonly properties: {
|
|
14918
|
+
readonly mainModule: {
|
|
14919
|
+
readonly type: "string";
|
|
14920
|
+
readonly pattern: "^[A-Za-z0-9._/-]+$";
|
|
14921
|
+
};
|
|
14922
|
+
readonly modules: {
|
|
14923
|
+
readonly type: "array";
|
|
14924
|
+
readonly minItems: 1;
|
|
14925
|
+
readonly items: {
|
|
14926
|
+
readonly type: "object";
|
|
14927
|
+
readonly additionalProperties: false;
|
|
14928
|
+
readonly required: readonly ["path", "type", "bytes", "sha256"];
|
|
14929
|
+
readonly properties: {
|
|
14930
|
+
readonly path: {
|
|
14931
|
+
readonly type: "string";
|
|
14932
|
+
readonly pattern: "^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$";
|
|
14933
|
+
};
|
|
14934
|
+
readonly type: {
|
|
14935
|
+
readonly type: "string";
|
|
14936
|
+
readonly enum: readonly ["esm", "cjs", "wasm", "text", "data"];
|
|
14937
|
+
};
|
|
14938
|
+
readonly bytes: {
|
|
14939
|
+
readonly type: "integer";
|
|
14940
|
+
readonly minimum: 1;
|
|
14941
|
+
};
|
|
14942
|
+
readonly sha256: {
|
|
14943
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14944
|
+
};
|
|
14945
|
+
};
|
|
14946
|
+
};
|
|
14947
|
+
};
|
|
14948
|
+
readonly assets: {
|
|
14949
|
+
readonly type: "object";
|
|
14950
|
+
readonly additionalProperties: false;
|
|
14951
|
+
readonly required: readonly ["count", "bytes", "files", "headers"];
|
|
14952
|
+
readonly properties: {
|
|
14953
|
+
readonly count: {
|
|
14954
|
+
readonly type: "integer";
|
|
14955
|
+
readonly minimum: 0;
|
|
14956
|
+
readonly maximum: 20000;
|
|
14957
|
+
};
|
|
14958
|
+
readonly bytes: {
|
|
14959
|
+
readonly type: "integer";
|
|
14960
|
+
readonly minimum: 0;
|
|
14961
|
+
};
|
|
14962
|
+
readonly files: {
|
|
14963
|
+
readonly type: "array";
|
|
14964
|
+
readonly maxItems: 20000;
|
|
14965
|
+
readonly items: {
|
|
14966
|
+
readonly type: "object";
|
|
14967
|
+
readonly additionalProperties: false;
|
|
14968
|
+
readonly required: readonly ["path", "bytes", "sha256", "assetHash", "contentType"];
|
|
14969
|
+
readonly properties: {
|
|
14970
|
+
readonly path: {
|
|
14971
|
+
readonly type: "string";
|
|
14972
|
+
readonly pattern: "^/[^\\s]*$";
|
|
14973
|
+
readonly maxLength: 1024;
|
|
14974
|
+
};
|
|
14975
|
+
readonly bytes: {
|
|
14976
|
+
readonly type: "integer";
|
|
14977
|
+
readonly minimum: 0;
|
|
14978
|
+
readonly maximum: 26214400;
|
|
14979
|
+
};
|
|
14980
|
+
readonly sha256: {
|
|
14981
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
14982
|
+
};
|
|
14983
|
+
readonly assetHash: {
|
|
14984
|
+
readonly type: "string";
|
|
14985
|
+
readonly pattern: "^[0-9a-f]{32}$";
|
|
14986
|
+
};
|
|
14987
|
+
readonly contentType: {
|
|
14988
|
+
readonly type: "string";
|
|
14989
|
+
readonly maxLength: 128;
|
|
14990
|
+
};
|
|
14991
|
+
};
|
|
14992
|
+
};
|
|
14993
|
+
};
|
|
14994
|
+
readonly headers: {
|
|
14995
|
+
readonly type: "string";
|
|
14996
|
+
readonly maxLength: 100000;
|
|
14997
|
+
};
|
|
14998
|
+
readonly config: {
|
|
14999
|
+
readonly type: "object";
|
|
15000
|
+
readonly additionalProperties: false;
|
|
15001
|
+
readonly properties: {
|
|
15002
|
+
readonly not_found_handling: {
|
|
15003
|
+
readonly type: "string";
|
|
15004
|
+
readonly enum: readonly ["none", "404-page", "single-page-application"];
|
|
15005
|
+
};
|
|
15006
|
+
readonly run_worker_first: {
|
|
15007
|
+
readonly type: "array";
|
|
15008
|
+
readonly items: {
|
|
15009
|
+
readonly type: "string";
|
|
15010
|
+
readonly pattern: "^/";
|
|
15011
|
+
};
|
|
15012
|
+
};
|
|
15013
|
+
};
|
|
15014
|
+
};
|
|
15015
|
+
};
|
|
15016
|
+
};
|
|
15017
|
+
readonly bindingTemplate: {
|
|
15018
|
+
readonly type: "string";
|
|
15019
|
+
readonly enum: readonly ["site", "admin"];
|
|
15020
|
+
};
|
|
15021
|
+
};
|
|
15022
|
+
};
|
|
13737
15023
|
};
|
|
13738
15024
|
};
|
|
13739
|
-
readonly
|
|
15025
|
+
readonly "release-statement": {
|
|
13740
15026
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
13741
|
-
readonly $id: "https://cloudhal.dev/schemas/v1/
|
|
13742
|
-
readonly title: "
|
|
13743
|
-
readonly description: "
|
|
15027
|
+
readonly $id: "https://cloudhal.dev/schemas/v1/release-statement.schema.json";
|
|
15028
|
+
readonly title: "ReleaseStatement";
|
|
15029
|
+
readonly 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.";
|
|
13744
15030
|
readonly type: "object";
|
|
13745
15031
|
readonly additionalProperties: false;
|
|
13746
|
-
readonly required: readonly ["schemaVersion", "
|
|
15032
|
+
readonly required: readonly ["schemaVersion", "format", "version", "channel", "securityRelease", "commit", "createdAt", "signing", "manifest", "tarball"];
|
|
13747
15033
|
readonly properties: {
|
|
13748
15034
|
readonly schemaVersion: {
|
|
13749
15035
|
readonly $ref: "#/$defs/SchemaVersion";
|
|
13750
15036
|
};
|
|
13751
|
-
readonly
|
|
13752
|
-
readonly
|
|
15037
|
+
readonly format: {
|
|
15038
|
+
readonly type: "string";
|
|
15039
|
+
readonly enum: readonly ["cloudhal.release-statement@1"];
|
|
13753
15040
|
};
|
|
13754
|
-
readonly
|
|
13755
|
-
readonly $ref: "#/$defs/
|
|
15041
|
+
readonly version: {
|
|
15042
|
+
readonly $ref: "#/$defs/CloudhalVersion";
|
|
13756
15043
|
};
|
|
13757
|
-
readonly
|
|
13758
|
-
readonly type: "
|
|
13759
|
-
readonly
|
|
13760
|
-
readonly items: {
|
|
13761
|
-
readonly $ref: "#/$defs/GlossaryEntry";
|
|
13762
|
-
};
|
|
13763
|
-
readonly maxItems: 2000;
|
|
15044
|
+
readonly channel: {
|
|
15045
|
+
readonly type: "string";
|
|
15046
|
+
readonly enum: readonly ["stable", "next"];
|
|
13764
15047
|
};
|
|
13765
|
-
readonly
|
|
13766
|
-
readonly
|
|
15048
|
+
readonly securityRelease: {
|
|
15049
|
+
readonly type: "boolean";
|
|
13767
15050
|
};
|
|
13768
|
-
readonly
|
|
13769
|
-
readonly
|
|
15051
|
+
readonly commit: {
|
|
15052
|
+
readonly type: "string";
|
|
15053
|
+
readonly pattern: "^[0-9a-f]{40}$";
|
|
13770
15054
|
};
|
|
13771
|
-
readonly
|
|
15055
|
+
readonly createdAt: {
|
|
13772
15056
|
readonly $ref: "#/$defs/Timestamp";
|
|
13773
15057
|
};
|
|
13774
|
-
readonly
|
|
13775
|
-
readonly $ref: "#/$defs/Metadata";
|
|
13776
|
-
};
|
|
13777
|
-
};
|
|
13778
|
-
readonly $defs: {
|
|
13779
|
-
readonly GlossaryEntry: {
|
|
15058
|
+
readonly signing: {
|
|
13780
15059
|
readonly type: "object";
|
|
13781
15060
|
readonly additionalProperties: false;
|
|
13782
|
-
readonly required: readonly ["
|
|
15061
|
+
readonly required: readonly ["keyId", "algorithm", "signature"];
|
|
13783
15062
|
readonly properties: {
|
|
13784
|
-
readonly
|
|
15063
|
+
readonly keyId: {
|
|
13785
15064
|
readonly type: "string";
|
|
13786
|
-
readonly
|
|
13787
|
-
readonly minLength: 1;
|
|
13788
|
-
readonly maxLength: 200;
|
|
15065
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
|
|
13789
15066
|
};
|
|
13790
|
-
readonly
|
|
15067
|
+
readonly algorithm: {
|
|
13791
15068
|
readonly type: "string";
|
|
13792
|
-
readonly
|
|
13793
|
-
readonly maxLength: 500;
|
|
13794
|
-
};
|
|
13795
|
-
readonly doNotTranslate: {
|
|
13796
|
-
readonly type: "boolean";
|
|
13797
|
-
readonly description: "Keep the term as written in every locale (brand, product or proper names). Such an entry has no translations.";
|
|
13798
|
-
};
|
|
13799
|
-
readonly caseSensitive: {
|
|
13800
|
-
readonly type: "boolean";
|
|
13801
|
-
readonly description: "Match the term only with this exact capitalisation.";
|
|
15069
|
+
readonly enum: readonly ["Ed25519"];
|
|
13802
15070
|
};
|
|
13803
|
-
readonly
|
|
13804
|
-
readonly type: "
|
|
13805
|
-
readonly
|
|
13806
|
-
readonly propertyNames: {
|
|
13807
|
-
readonly $ref: "#/$defs/Locale";
|
|
13808
|
-
};
|
|
13809
|
-
readonly additionalProperties: {
|
|
13810
|
-
readonly type: "object";
|
|
13811
|
-
readonly additionalProperties: false;
|
|
13812
|
-
readonly required: readonly ["text"];
|
|
13813
|
-
readonly properties: {
|
|
13814
|
-
readonly text: {
|
|
13815
|
-
readonly type: "string";
|
|
13816
|
-
readonly minLength: 1;
|
|
13817
|
-
readonly maxLength: 200;
|
|
13818
|
-
};
|
|
13819
|
-
readonly note: {
|
|
13820
|
-
readonly type: "string";
|
|
13821
|
-
readonly maxLength: 500;
|
|
13822
|
-
};
|
|
13823
|
-
};
|
|
13824
|
-
};
|
|
15071
|
+
readonly signature: {
|
|
15072
|
+
readonly type: "string";
|
|
15073
|
+
readonly enum: readonly ["release-statement.sig"];
|
|
13825
15074
|
};
|
|
13826
15075
|
};
|
|
13827
15076
|
};
|
|
13828
|
-
readonly
|
|
13829
|
-
readonly
|
|
13830
|
-
readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
|
|
13831
|
-
readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
|
|
13832
|
-
readonly minLength: 8;
|
|
13833
|
-
readonly maxLength: 48;
|
|
13834
|
-
};
|
|
13835
|
-
readonly Locale: {
|
|
13836
|
-
readonly type: "string";
|
|
13837
|
-
readonly description: "BCP 47 language tag, e.g. en, tr, en-US.";
|
|
13838
|
-
readonly pattern: "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$";
|
|
15077
|
+
readonly manifest: {
|
|
15078
|
+
readonly $ref: "#/$defs/StatementAsset";
|
|
13839
15079
|
};
|
|
13840
|
-
readonly
|
|
13841
|
-
readonly
|
|
13842
|
-
readonly description: "Free-form string-to-string map for extensions. Keys should be namespaced (e.g. cloudhal.source).";
|
|
13843
|
-
readonly additionalProperties: {
|
|
13844
|
-
readonly type: "string";
|
|
13845
|
-
};
|
|
15080
|
+
readonly tarball: {
|
|
15081
|
+
readonly $ref: "#/$defs/StatementAsset";
|
|
13846
15082
|
};
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
readonly
|
|
15083
|
+
};
|
|
15084
|
+
readonly $defs: {
|
|
15085
|
+
readonly CloudhalVersion: {
|
|
15086
|
+
readonly type: "string";
|
|
15087
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
|
|
13851
15088
|
};
|
|
13852
15089
|
readonly SchemaVersion: {
|
|
13853
15090
|
readonly type: "integer";
|
|
13854
15091
|
readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
|
|
13855
15092
|
readonly enum: readonly [1];
|
|
13856
15093
|
};
|
|
15094
|
+
readonly Sha256Hex: {
|
|
15095
|
+
readonly type: "string";
|
|
15096
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
15097
|
+
};
|
|
15098
|
+
readonly StatementAsset: {
|
|
15099
|
+
readonly type: "object";
|
|
15100
|
+
readonly additionalProperties: false;
|
|
15101
|
+
readonly required: readonly ["name", "sha256", "bytes"];
|
|
15102
|
+
readonly properties: {
|
|
15103
|
+
readonly name: {
|
|
15104
|
+
readonly type: "string";
|
|
15105
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$";
|
|
15106
|
+
};
|
|
15107
|
+
readonly sha256: {
|
|
15108
|
+
readonly $ref: "#/$defs/Sha256Hex";
|
|
15109
|
+
};
|
|
15110
|
+
readonly bytes: {
|
|
15111
|
+
readonly type: "integer";
|
|
15112
|
+
readonly minimum: 1;
|
|
15113
|
+
readonly maximum: 104857600;
|
|
15114
|
+
};
|
|
15115
|
+
};
|
|
15116
|
+
};
|
|
13857
15117
|
readonly Timestamp: {
|
|
13858
15118
|
readonly type: "string";
|
|
13859
15119
|
readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
|