Example Usage
import { VaultSecretResponse } from "@openrouter/sdk/models";
let value: VaultSecretResponse = {
data: {
createdAt: new Date("2026-09-15T17:44:00.000Z"),
fingerprint:
"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
hosts: [
"api.github.com",
],
name: "github_token",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.VaultSecret | :heavy_check_mark: | Metadata for one stored secret. The secret value is never returned. fingerprint is a keyed SHA-256 digest of the value: equal fingerprints within one scope mean equal values, but a workspace secret and its intern copy carry different fingerprints. hosts and fingerprint are null only for legacy rows written before host binding was required; storing the secret again assigns hosts. | { “created_at”: “2026-09-15T17:44:00.000Z”, “fingerprint”: “sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08”, “hosts”: [ “api.github.com” ], “name”: “github_token” } |