@stripe/link-cli 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/cli.js +1582 -886
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,6 +140,19 @@ Easily approve requests with the [Link app](https://link.com/download).
|
|
|
140
140
|
--total "type:total,display_text:Total,amount:12000"
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
+
#### Approval details
|
|
144
|
+
|
|
145
|
+
For delegated/pre-approved flows, pass `--approval-detail` with a JSON object describing how the user approved the request. Required fields: `approved_at` (unix timestamp), `approval_method` (`click`, `programmatic`, or `voice`), `app_name`, `external_user_id`. Optional: `ip_address`, `user_agent`, `device_type` (`mobile` or `web`), `agent_log_id`, `external_user_name`, `external_session_id`, `authentication_method` (`biometric_face`, `biometric_fingerprint`, or `passkey`).
|
|
146
|
+
|
|
147
|
+
In CLI mode, pass as a JSON string:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
link-cli spend-request create ... \
|
|
151
|
+
--approval-detail '{"approved_at":1720000000,"approval_method":"click","app_name":"MyApp","external_user_id":"usr_123"}'
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
In MCP/agent mode, pass as a structured object.
|
|
155
|
+
|
|
143
156
|
#### Credential types
|
|
144
157
|
|
|
145
158
|
By default, a spend request provisions a virtual card. For merchants that support the [Machine Payments Protocol](https://mpp.dev) (HTTP 402) and the Stripe payment method, instead pass `--credential-type "shared_payment_token"`.
|