Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/secret-1password / OnePasswordResolverOptions

Interface: OnePasswordResolverOptions

Defined in: packages/secret-1password/src/resolver.ts:25

Stable

Properties

PropertyModifierTypeDescriptionDefined in
account?readonlystringOptional --account override. Useful when the operator is signed in to multiple 1Password accounts.packages/secret-1password/src/resolver.ts:52
binary?readonlystringOverride the CLI binary path. Default 'op'.packages/secret-1password/src/resolver.ts:32
cli?readonlyOpCliInject a OpCli implementation. Defaults to a wrapper that spawns the system op binary. Tests pass a stub.packages/secret-1password/src/resolver.ts:30
connect?readonly{ host: string; token: string; }Optional 1Password Connect host + token. Mutually exclusive with a service-account token at the CLI level (the CLI honours the Connect env vars if both are present).packages/secret-1password/src/resolver.ts:47
connect.hostreadonlystring-packages/secret-1password/src/resolver.ts:47
connect.tokenreadonlystring-packages/secret-1password/src/resolver.ts:47
preserveCase?readonlybooleanIf true, do not lowercase the URI before forwarding to the CLI. Default false. Toggle only when interoperating with a deployment that intentionally relies on case-sensitive keys.packages/secret-1password/src/resolver.ts:58
serviceAccountToken?readonlystringOptional service-account token. When set the resolver forwards it via OP_SERVICE_ACCOUNT_TOKEN so the CLI runs in headless mode. The token is itself a secret — pass a previously-resolved SecretValue and use .use(...) to scope its lifetime.packages/secret-1password/src/resolver.ts:41
timeoutMs?readonlynumberHard timeout per resolve. Default 15000 ms.packages/secret-1password/src/resolver.ts:34