Commit Graph

157 Commits

Author SHA1 Message Date
github-actions[bot] 87af291e01 Version Packages (#300)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-06 21:15:10 -04:00
sylwang-stripe 1fe657f23c Expose Agent Wallet verification action URL (#299) 2026-09-06 21:10:55 -04:00
github-actions[bot] 54756f4ae8 Version Packages (#296)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-04 16:18:16 -04:00
sylwang-stripe ca643dce42 Expand user info to include spend limits and step-up status (#295)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-09-04 16:05:24 -04:00
github-actions[bot] ed4d571f7a Version Packages (#286)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-03 13:48:21 -04:00
kreese-stripe b8b9dce9d1 Handle post-approval amount updates in CLI (#290) 2026-09-03 11:46:50 -04:00
jlau-stripe bd20966ce2 [LINK_AI_WALLET-320] Do not render approval qr code for delegated spend requests (#285) 2026-09-01 13:40:56 -04:00
github-actions[bot] f2e143a6dd Version Packages (#284)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-31 17:04:38 -04:00
kreese-stripe 033cee0f07 fix: Sanitize shell quotes during mpp flow (#281)
* Sanitize shell quotes

* comments

* Changeset
2026-08-31 17:03:40 -04:00
kreese-stripe 526395e806 feat: Use pm.name from API in rendering payment methods list as PM label (#282)
* Use pm.name from API in rendering payment methods list as PM label

* Fix tests

* fmt

* Fix types
2026-08-31 15:57:45 -04:00
github-actions[bot] 771f8a077b Version Packages (#280)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 16:19:04 -04:00
kreese-stripe a1c68720f6 Fix: allow shipping address nickname to be optional in resource (#279) 2026-08-28 19:50:45 +00:00
github-actions[bot] 72991457e7 Version Packages (#278)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 09:37:48 -04:00
sylwang-stripe 91f5e8ecd1 Support Link Pay Token for delegated approval spend requests (#273)
* Support delegated approval for Link Pay Token spend requests

--approve now works with --execution-method link_pay_token as long as
--no-request-approval is also passed, so OAuth clients authorized for
spend_requests:approve can create already-approved LPT requests via
create_delegated without going through consumer approval.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Trim PR to just the delegated-approval guard change per review

Drop the README/CLAUDE.md docs and CLI help-text additions for
--approve/--request-approval — delegated LPT users already have their
own skill file, so the CLI's public docs and help text don't need to
cover this path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 09:31:59 -04:00
github-actions[bot] 8e1fd801a8 Version Packages (#277)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 09:24:49 -04:00
github-actions[bot] d80f4609ab Version Packages (#275)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-27 19:33:23 -04:00
Ryan Aubrey cf96ad08f2 Send link-cli User-Agent on mpp pay merchant requests (#269)
* Send link-cli User-Agent on mpp pay merchant requests.

MPP probes and paid retries used global fetch, so merchants saw Node's default User-Agent and LINK_HTTP_PROXY was skipped. Route those calls through the CLI's configured fetch so User-Agent applies unless -H overrides it.

Co-authored-by: Cursor <cursoragent@cursor.com>
Committed-By-Agent: cursor

* Set mpp pay User-Agent in buildHeaders instead of wrapping fetch.

The fetchImpl wiring was more than this needed; default the header on merchant requests and leave -H User-Agent as an override.

Co-authored-by: Cursor <cursoragent@cursor.com>
Committed-By-Agent: cursor

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 09:15:15 -04:00
Steve Kaliski 23c6468ac1 remove provenance entry in sdk package.json (#267) 2026-08-25 14:51:58 -04:00
github-actions[bot] 1fb33a35c2 Version Packages (#266)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-25 14:30:05 -04:00
Steve Kaliski 8ee4dea771 Prepare Link SDK for publication (#265)
Committed-By-Agent: codex

Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-25 14:19:10 -04:00
jlau-stripe 9395ba8bef Bump package version (#264)
* Add changesets for PRs #255, #257, #258, #260, #261

Covers spend-request expires-at, SDK transport hardening, canonical
SDK resource adoption, response validation, and moving auth ownership
into the CLI — none of which shipped with a changeset, so CI had
nothing to version since @stripe/link-cli@0.13.1.

Committed-By-Agent: claude

* Version Packages

Release @stripe/link-cli@0.14.0 via changesets: consume pending changesets and update CHANGELOG.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 11:51:25 -04:00
Steve Kaliski a29ae922ec Document the credential-only SDK (#262)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-25 11:23:07 -04:00
Steve Kaliski b098ef2f6e Move authentication ownership into CLI (#261)
* Move authentication ownership into CLI

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Test legacy CLI auth storage compatibility

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

---------

Co-authored-by: codex <noreply@openai.com>
2026-08-25 11:04:14 -04:00
Steve Kaliski c949b62610 Validate SDK resource responses (#260)
* Validate SDK resource responses

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Fix approval response fixtures

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Use Zod for SDK response validation

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Keep spend request responses forward-compatible

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Normalize approval response URLs

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

---------

Co-authored-by: codex <noreply@openai.com>
2026-08-25 10:29:37 -04:00
Steve Kaliski ac44abcbb6 Adopt canonical SDK resource methods in CLI (#258)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-24 12:39:56 -04:00
Steve Kaliski 2a5996def8 Harden SDK transport primitives (#257)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-24 11:45:47 -04:00
jlau-stripe ea1ed1d59b Add the ability to set extended spend request expiration (#255)
* Add --expires-at support to spend-request create

Mirrors the mint PR (stripe-internal/mint#2484603) that lets allow-listed
OAuth clients request a spend request expiration up to 7 days out instead
of the default 12 hours, for extended/repeat-use agent scenarios.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Hide --expires-at from docs and CLI schema output

Most OAuth clients aren't allow-listed for the server-side flag; leaving
it documented in SKILL.md/README.md/schema descriptions would prompt
general agents to try it and hit a 400. The flag stays functional
(same as the existing `approve` field) but drops its description so it
no longer shows up meaningfully in --schema/--llms-full.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Note the unit for --expires-at in its schema description

Bare field with no description gave zero signal, but agents seeing an
undocumented integer field could just as easily guess wrong (e.g.
milliseconds). Clarifying the unit alone doesn't explain the gating or
bounds, so it stays unlikely to be tried speculatively.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Fix biome formatting on expiresAt schema field

CI was failing pnpm biome check on the line-length wrap for the
one-line describe() call added in 1b6021f.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 10:17:21 -04:00
github-actions[bot] d8ba5927d1 Version Packages (#252)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-17 16:32:45 -04:00
Dan Hill b1640b208d Updates the published limits to $500 (#251)
* fix: correct limits

* fix: correct limits

* add changeset
2026-08-17 13:34:41 -04:00
github-actions[bot] d540389e03 Version Packages (#247)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-13 14:36:54 -04:00
sylwang-stripe 9dc8c650e8 Handle spend request requires_action state across create/retrieve/approval flows (#248) 2026-08-13 14:16:21 -04:00
kreese-stripe 1675a70648 feat: Handle duplicate spend request rate limit response (#246)
* Handle duplicate spend request rate limit response

* Some formatting improvements

* CI

* Changest
2026-08-13 12:47:35 -04:00
github-actions[bot] 69c2089b00 Version Packages (#241)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-12 09:59:30 -04:00
Selina Feng c3e70e1225 Expose financial insights CLI commands and skill file (#240) 2026-08-12 09:57:19 -04:00
kreese-stripe e9a8f69b74 security: Sanitize output of decodeStripeChallenge call (#244)
* security improvements for mpp commands

* rm comment

* Add changeset
2026-08-12 08:39:23 -04:00
nvp-stripe 9103637d63 Bind Link Pay Tokens to the checkout merchant (#243)
* lpt merchant binding

* readme updates

* approve link_pay_token
2026-08-11 15:22:10 -04:00
Steve Kaliski 9612d71d97 update npm deps (#238)
* update npm deps

* fix ci
2026-08-10 14:04:29 -04:00
Selina Feng 5ab1f96ca3 Update table styling for balances and sources commands (#228)
* update table styling for balances and sources commands

* test

* fix: rename Account name column to Source name for consistency

Committed-By-Agent: claude
2026-08-07 13:37:08 -04:00
jlau-stripe b3493d202b fix: prevent [object Object] in API error messages across all resources (#234)
- Handle nested `{ error: { message } }` error shape in auth resources
  (both CLI and SDK implementations) by replacing the cast-only
  `err?.error` interpolation with `extractOAuthErrorMessage`, which
  does a runtime typeof check before descending into the object
- Fix `switch (err.error)` in `pollDeviceAuth` to switch on
  `extractOAuthErrorCode(err)` so polling continues correctly when a
  non-string error arrives (object would never match a string case)
- Fix `error_description` truthy guard to a nullish check so an empty
  string from the server is preserved rather than falling back to the
  error code
- Replace inline cast-only error extraction in payment-methods,
  shipping-address, user-info, and web-bot-auth resources with
  `extractErrorMessage` from base.ts, which already handles both
  string and nested-object error shapes
- Replace `String(err)` in `useAsyncAction` with `JSON.stringify(err)`
  so thrown plain objects produce readable output instead of
  [object Object]
- Add tests covering all of the above


Committed-By-Agent: claude

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-07 10:11:42 -04:00
dknudsen-stripe b3b37731ee feat: add auth upgrade command to widen access to a superset (#229)
Committed-By-Agent: claude
2026-08-06 12:39:11 -07:00
sylwang-stripe f89efad09e open verification URL in browser on spend request step-up failure (#227) 2026-08-06 10:27:40 -04:00
kreese-stripe 06587fa405 Surface card_brand and card_last4 on spend-request retrieve (#225)
The link-api PR (mint#2412595, LINK_AI_WALLET-365) added top-level
`card_brand` and `card_last4` to the RetrieveSpendRequest response so
integrators can identify a card for debugging without expanding the full
`card` object via `include=card`.

Add both fields to the SDK `SpendRequest` type and display them in the
interactive `retrieve` view when the full card is not expanded. The SDK
already passed these through to `--format json` output via its
pass-through cast; this closes the typing and interactive-display gap.

Docs (README, SKILL.md, CLAUDE.md) updated to match.


Committed-By-Agent: claude

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-04 16:55:00 -04:00
kreese-stripe a20a948aec fix: Add metadata to SpendRequest type + add some test cases (#222)
* Add  to type + add some test cases

* fmt
2026-07-31 09:58:24 -04:00
github-actions[bot] e0bf195daf Version Packages (#220)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 16:48:12 -04:00
kreese-stripe 1c2fd6e603 feat: Support metadata in spend-request create command (#219)
* Support metadata in spend-request create command

* Changeset
2026-07-27 16:44:41 -04:00
dknudsen-stripe b87f7d5a9d feat: persist and display oauth scope + auth details (#217)
Committed-By-Agent: claude
2026-07-24 13:43:59 -07:00
github-actions[bot] df13387255 Version Packages (#216)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 10:02:43 -04:00
kreese-stripe b097a579e0 fix: Improve security posture of mpp pay command + skillfile (#215)
* Improve security posture of mpp pay command + skillfile

* rn addition

* commit changeset
2026-07-23 09:58:49 -04:00
sylwang-stripe f64d2a1c45 add activity_url and transaction_id to SpendRequest (#214)
* add transaction_id and activity_url to SpendRequest

* scope to only finalized succeeded state

* fix formatting
2026-07-22 10:43:25 -04:00
bensandler-stripe 45d2839fe8 Auto-install skill files on npm install (#212)
Add a postinstall script that copies the SKILL.md into
~/.claude/skills/ and ~/.codex/skills/ so the skill is
available globally without being inside the repo. Updated
prepack to bundle the skills directory into dist/.


Committed-By-Agent: claude

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-07-21 12:42:40 -04:00