@stripe/link-cli 0.17.1 → 0.17.3
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 +6 -3
- package/dist/cli.js +18 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ You receive a verification URL and a short phrase. Visit the URL, log in to your
|
|
|
117
117
|
link-cli user-info retrieve --format json
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
In addition to identity fields, the response can include
|
|
120
|
+
In addition to identity fields, the response can include spend limits and verification requirements:
|
|
121
121
|
|
|
122
122
|
```json
|
|
123
123
|
{
|
|
@@ -128,11 +128,14 @@ In addition to identity fields, the response can include Agent Wallet spend limi
|
|
|
128
128
|
"daily": { "limit": 500000, "used": 120000, "remaining": 380000 },
|
|
129
129
|
"thirty_day": { "limit": null, "used": 600000, "remaining": null }
|
|
130
130
|
},
|
|
131
|
-
"
|
|
131
|
+
"agent_wallet_verification_requirement": {
|
|
132
|
+
"status": "identity_verification",
|
|
133
|
+
"action_url": "https://app.link.com/finish_setup?verify=identity_verification&intended_email=jane%40example.com&fromEmail=jane%40example.com"
|
|
134
|
+
}
|
|
132
135
|
}
|
|
133
136
|
```
|
|
134
137
|
|
|
135
|
-
Finite spend-limit values are cents because this response does not include a currency. A
|
|
138
|
+
Finite spend-limit values are cents because this response does not include a currency. A null limit or remaining amount means unlimited. The verification requirement's action_url is null when no action is available.
|
|
136
139
|
|
|
137
140
|
### List payment methods
|
|
138
141
|
|
package/dist/cli.js
CHANGED
|
@@ -946,14 +946,15 @@ var agentWalletSpendLimitsSchema = z8.object({
|
|
|
946
946
|
daily: rollingSpendLimitSchema,
|
|
947
947
|
thirty_day: rollingSpendLimitSchema
|
|
948
948
|
});
|
|
949
|
-
var
|
|
949
|
+
var agentWalletVerificationRequirementSchema = z8.object({
|
|
950
950
|
status: z8.enum([
|
|
951
951
|
"not_required",
|
|
952
952
|
"ssn_verification",
|
|
953
953
|
"identity_verification",
|
|
954
954
|
"contact_support",
|
|
955
955
|
"complete"
|
|
956
|
-
])
|
|
956
|
+
]),
|
|
957
|
+
action_url: z8.string().nullable()
|
|
957
958
|
});
|
|
958
959
|
var userInfoSchema = z8.looseObject({
|
|
959
960
|
email: z8.string().nullable().optional(),
|
|
@@ -962,7 +963,7 @@ var userInfoSchema = z8.looseObject({
|
|
|
962
963
|
last_name: z8.string().nullable().optional(),
|
|
963
964
|
phone: z8.string().nullable().optional(),
|
|
964
965
|
agent_wallet_spend_limits: agentWalletSpendLimitsSchema.optional(),
|
|
965
|
-
agent_wallet_step_up:
|
|
966
|
+
agent_wallet_step_up: agentWalletVerificationRequirementSchema.optional()
|
|
966
967
|
}).transform(
|
|
967
968
|
({
|
|
968
969
|
email,
|
|
@@ -979,7 +980,7 @@ var userInfoSchema = z8.looseObject({
|
|
|
979
980
|
last_name: last_name ?? null,
|
|
980
981
|
phone: phone ?? null,
|
|
981
982
|
...agent_wallet_spend_limits === void 0 ? {} : { agent_wallet_spend_limits },
|
|
982
|
-
...agent_wallet_step_up === void 0 ? {} : { agent_wallet_step_up }
|
|
983
|
+
...agent_wallet_step_up === void 0 ? {} : { agent_wallet_verification_requirement: agent_wallet_step_up }
|
|
983
984
|
})
|
|
984
985
|
);
|
|
985
986
|
var UserInfoResource = class extends BaseResource {
|
|
@@ -2838,7 +2839,7 @@ function buildHeaders(data, headers) {
|
|
|
2838
2839
|
if (key) result[key] = value;
|
|
2839
2840
|
}
|
|
2840
2841
|
if (!Object.keys(result).some((key) => key.toLowerCase() === "user-agent")) {
|
|
2841
|
-
result["User-Agent"] = `link-cli/${"0.17.
|
|
2842
|
+
result["User-Agent"] = `link-cli/${"0.17.3"}`;
|
|
2842
2843
|
}
|
|
2843
2844
|
return result;
|
|
2844
2845
|
}
|
|
@@ -7127,10 +7128,16 @@ var UserInfoRetrieve = ({
|
|
|
7127
7128
|
] })
|
|
7128
7129
|
] })
|
|
7129
7130
|
] }),
|
|
7130
|
-
userInfo?.
|
|
7131
|
-
/* @__PURE__ */
|
|
7132
|
-
|
|
7133
|
-
|
|
7131
|
+
userInfo?.agent_wallet_verification_requirement && /* @__PURE__ */ jsxs24(Box24, { flexDirection: "column", marginTop: 1, children: [
|
|
7132
|
+
/* @__PURE__ */ jsxs24(Text26, { children: [
|
|
7133
|
+
/* @__PURE__ */ jsx35(Text26, { dimColor: true, children: "Agent Wallet verification requirement: " }),
|
|
7134
|
+
userInfo.agent_wallet_verification_requirement.status
|
|
7135
|
+
] }),
|
|
7136
|
+
userInfo.agent_wallet_verification_requirement.action_url && /* @__PURE__ */ jsxs24(Text26, { children: [
|
|
7137
|
+
/* @__PURE__ */ jsx35(Text26, { dimColor: true, children: "Action URL: " }),
|
|
7138
|
+
userInfo.agent_wallet_verification_requirement.action_url
|
|
7139
|
+
] })
|
|
7140
|
+
] })
|
|
7134
7141
|
] })
|
|
7135
7142
|
] });
|
|
7136
7143
|
};
|
|
@@ -7142,7 +7149,7 @@ function createUserInfoCli(createResource, authStorage2, envAccessToken2) {
|
|
|
7142
7149
|
description: "User information commands"
|
|
7143
7150
|
});
|
|
7144
7151
|
cli2.command("retrieve", {
|
|
7145
|
-
description: "Retrieve user info, including optional Agent Wallet spend limits and
|
|
7152
|
+
description: "Retrieve user info, including optional Agent Wallet spend limits and verification requirements",
|
|
7146
7153
|
outputPolicy: "agent-only",
|
|
7147
7154
|
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
7148
7155
|
async run(c) {
|
|
@@ -7759,7 +7766,7 @@ function cacheUpdateInfo(value, ttlMs = UPDATE_CACHE_TTL_MS) {
|
|
|
7759
7766
|
}
|
|
7760
7767
|
|
|
7761
7768
|
// src/cli.tsx
|
|
7762
|
-
var cliVersion = "0.17.
|
|
7769
|
+
var cliVersion = "0.17.3";
|
|
7763
7770
|
var cliName = "@stripe/link-cli";
|
|
7764
7771
|
var defaultHeaders = {
|
|
7765
7772
|
"User-Agent": `link-cli/${cliVersion}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/link-cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"link-cli": "./dist/cli.js"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tsx": "^4.23.5",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"vitest": "^4.1.10",
|
|
48
|
-
"@stripe/link-sdk": "0.3.
|
|
48
|
+
"@stripe/link-sdk": "0.3.2",
|
|
49
49
|
"@stripe/link-typescript-config": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|