{
  "$schema": "../../schemas/types.schema.json",
  "namespace": "secrets",
  "version": "1.0.0-draft.1",
  "types": [
    {
      "name": "secrets.Tls",
      "kind": "handle",
      "purpose": "Execution-owned tls; not serializable and exposes only these defined operations.",
      "methods": {}
    },
    {
      "name": "secrets.SigningOptions",
      "kind": "object",
      "purpose": "Explicit algorithm and optional positive key version.",
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "algorithm": {
            "enum": [
              "HmacSHA256",
              "SHA256withRSA",
              "RSASSA-PSS",
              "SHA256withECDSA"
            ],
            "default": "HmacSHA256"
          },
          "keyVersion": {
            "type": "integer",
            "minimum": 1
          }
        }
      }
    },
    {
      "name": "secrets.TokenPair",
      "kind": "object",
      "purpose": "Provider-issued key and secret strings, not an asymmetric key pair.",
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "key",
          "secret"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          }
        }
      }
    }
  ]
}
