[Link Agent Wallet] Add recurring spend request terms - #381
Merged
Merged
Conversation
Accept undocumented --recurring-interval and --recurring-interval-count on spend-request create, sent as recurring terms. Like --expires-at, they are omitted from README/SKILL.md because the server gates recurring spend requests per Link account. Add the recurring response field to the TypeScript, Go, and Python SDKs and show it in interactive spend request output.
The server defaults interval_count to 1 and may omit it from responses. Treat it as optional in the TypeScript and Python SDK types, and display a missing count as 1 in the CLI instead of "every undefined months".
The API defaults interval_count to 1, so decode an omitted count as 1 in the TypeScript, Go, and Python SDKs rather than leaving it undefined, None, or 0. The CLI no longer needs its own fallback.
bensnell-stripe
marked this pull request as ready for review
October 1, 2026 21:10
Contributor
Author
dknudsen-stripe
approved these changes
Oct 1, 2026
wawerekxxx-debug
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
--recurring-intervaland--recurring-interval-countoptions tospend-request create, sent asrecurring: { interval, interval_count }. Therecurringresponse field is decoded in the TypeScript, Go, and Python SDKs, with an omittedinterval_countdefaulting to 1, and shown in interactive spend request output.Motivation
Lets the CLI create spend requests with recurring terms. Availability is controlled server-side.
Test plan
Rollout/revert plan
Safe to revert
Monitoring plan