UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
Loading...
Searching...
No Matches
field-schema.ts File Reference

Variables

import type { SecretType } from './types'
 Which optional fields matter for which secret type, and what the shared ones are called there.
export interface FieldSchema
urlPlaceholder __pad0__
callback __pad1__
 Offer the callback URL (OAuth and webhook flows only).
scopes __pad2__
 Offer scopes / permissions.
rate __pad3__
 Offer a rate limit.
const DEFAULT
const urlPlaceholder
const scopes
const rate
const const none = { callback: false, scopes: false, rate: false }
const BY_TYPE

Variable Documentation

◆ type

import type { SecretType } from './types'

Which optional fields matter for which secret type, and what the shared ones are called there.

api_url, callback_url, scopes and rate_limit are one set of stored fields used by every type, but they mean different things: for a browser session api_url is the site, for a database it is the server, for a password the login page. The stored name stays (renaming it would break every vault and the CLI); what changes is the label the form shows and whether a field is offered at all.

A field is only ever hidden while it is empty. An entry that already holds a value in it shows the field whatever its type says (invariant 7: a hidden control is not a gate, and a stored value must stay reachable).

◆ FieldSchema

export interface FieldSchema
Initial value:
{
urlLabel: string

◆ __pad0__

urlPlaceholder __pad0__

◆ __pad1__

callback __pad1__

Offer the callback URL (OAuth and webhook flows only).

◆ __pad2__

scopes __pad2__

Offer scopes / permissions.

◆ __pad3__

rate __pad3__

Offer a rate limit.

◆ DEFAULT

const DEFAULT

◆ urlPlaceholder

const urlPlaceholder

◆ scopes

const scopes

◆ rate

const rate

◆ none

const const none = { callback: false, scopes: false, rate: false }

◆ BY_TYPE

const BY_TYPE