bowire.auth-recording.capture
Persist a credential as a named auth recording so a mock's auth requirement resolves it by id. First call returns a pending plan; confirm to store it locally.
Instructions
Store a credential as a named auth recording so a mock's auth requirement can resolve it by id — parity with bowire auth-recording capture and the workbench picker. Two-step by default: the first call returns { pending, confirmationToken, plan }; re-invoke with confirm=true or the token to store it. The credential is written to the local store only and is never echoed back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Recording id, referenced by a mock's auth.authRecordingId. | |
| name | No | Human label for the picker (default: the id). | |
| header | No | Header the credential is presented in (default: Authorization). | |
| scheme | No | Credential scheme: bearer / basic / apikey. Default bearer. | |
| confirm | No | Skip the pending-confirmation step. | |
| workspace | No | Workspace to store under. Empty = the shared, unscoped store. | |
| credential | Yes | The credential value to store (bearer/basic token or api-key). Written to the local store, never returned. | |
| confirmationToken | No | Confirmation token returned by a prior pending call. |