diff options
author | Heyang Zhou <zhy20000919@hotmail.com> | 2023-08-22 13:56:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 13:56:00 +0800 |
commit | 6d4a005e4108a5dd762b339a02bc4d802755ba0d (patch) | |
tree | 69679038bfbd3127f6c1e1b85dbc347c8c52e36e /cli/schemas | |
parent | 5834d282d4de5d0b5cacb9bf068f3896bef0a48a (diff) |
feat(ext/kv): connect to remote database (#20178)
This patch adds a `remote` backend for `ext/kv`. This supports
connection to Deno Deploy and potentially other services compatible with
the KV Connect protocol.
Diffstat (limited to 'cli/schemas')
-rw-r--r-- | cli/schemas/kv-metadata-exchange-response.v1.json | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cli/schemas/kv-metadata-exchange-response.v1.json b/cli/schemas/kv-metadata-exchange-response.v1.json new file mode 100644 index 000000000..aa29242fb --- /dev/null +++ b/cli/schemas/kv-metadata-exchange-response.v1.json @@ -0,0 +1,54 @@ +{ + "$id": "https://deno.land/x/deno/cli/schemas/kv-metadata-exchange-response.v1.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "Uuid": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + }, + "DateTime": { + "type": "string", + "format": "date-time" + }, + "EndpointInfo": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "consistency": { + "type": "string" + } + }, + "required": ["url", "consistency"], + "additionalProperties": false + }, + "DatabaseMetadata": { + "type": "object", + "properties": { + "version": { + "type": "integer", + "minimum": 0 + }, + "databaseId": { + "$ref": "#/definitions/Uuid" + }, + "endpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/EndpointInfo" + } + }, + "token": { + "type": "string" + }, + "expiresAt": { + "$ref": "#/definitions/DateTime" + } + }, + "required": ["version", "databaseId", "endpoints", "token", "expiresAt"], + "additionalProperties": false + } + }, + "$ref": "#/definitions/DatabaseMetadata" +} |