@conto_finance/sdk 0.5.2 → 0.5.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 +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Conto is a buyer-side control layer. Integrate it in the agent owner's runtime or payment tools;
|
|
4
4
|
the owner or budget holder sets policy before the agent pays.
|
|
5
|
-
See [buyer-side control](https://conto.finance/docs/
|
|
5
|
+
See [buyer-side control](https://conto.finance/docs/introduction/concepts) for the authorization
|
|
6
6
|
and execution boundary.
|
|
7
7
|
|
|
8
8
|
TypeScript SDK for Conto. Use it when you control the agent runtime and want typed access to
|
package/dist/index.d.mts
CHANGED
|
@@ -2047,6 +2047,11 @@ interface MppRecordInput extends ProtocolRecordGrant {
|
|
|
2047
2047
|
resourceUrl: string;
|
|
2048
2048
|
credentialId: string;
|
|
2049
2049
|
}>;
|
|
2050
|
+
/**
|
|
2051
|
+
* Send true on the final record of a session (`intent: 'session'`). Conto
|
|
2052
|
+
* closes the session and releases the unused part of its grant.
|
|
2053
|
+
*/
|
|
2054
|
+
closeSession?: boolean;
|
|
2050
2055
|
}
|
|
2051
2056
|
interface MppRecordResult extends ProtocolRecordGrantResult {
|
|
2052
2057
|
recorded: true;
|
package/dist/index.d.ts
CHANGED
|
@@ -2047,6 +2047,11 @@ interface MppRecordInput extends ProtocolRecordGrant {
|
|
|
2047
2047
|
resourceUrl: string;
|
|
2048
2048
|
credentialId: string;
|
|
2049
2049
|
}>;
|
|
2050
|
+
/**
|
|
2051
|
+
* Send true on the final record of a session (`intent: 'session'`). Conto
|
|
2052
|
+
* closes the session and releases the unused part of its grant.
|
|
2053
|
+
*/
|
|
2054
|
+
closeSession?: boolean;
|
|
2050
2055
|
}
|
|
2051
2056
|
interface MppRecordResult extends ProtocolRecordGrantResult {
|
|
2052
2057
|
recorded: true;
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports2, module2) {
|
|
40
40
|
module2.exports = {
|
|
41
41
|
name: "@conto_finance/sdk",
|
|
42
|
-
version: "0.5.
|
|
42
|
+
version: "0.5.3",
|
|
43
43
|
description: "Conto SDK for AI agent payment authorization",
|
|
44
44
|
main: "./dist/index.js",
|
|
45
45
|
module: "./dist/index.mjs",
|
|
@@ -175,7 +175,15 @@ var PUBLIC_PAYMENT_REASONS = /* @__PURE__ */ new Set([
|
|
|
175
175
|
"This payment requires approval before it can proceed.",
|
|
176
176
|
"No usable wallet is linked to this agent.",
|
|
177
177
|
"This payee needs review before payments to it can proceed automatically.",
|
|
178
|
-
"A reviewer declined this payment."
|
|
178
|
+
"A reviewer declined this payment.",
|
|
179
|
+
"This payment is missing a category, which a payment control requires.",
|
|
180
|
+
"This payment is missing the recipient country, which a payment control requires.",
|
|
181
|
+
"This payment is missing the target contract address, which a payment control requires.",
|
|
182
|
+
"This payment is missing the service URL, which a payment control requires.",
|
|
183
|
+
"This payment is missing a session ID, which a payment control requires.",
|
|
184
|
+
"This payment is missing the x402 facilitator, which a payment control requires.",
|
|
185
|
+
"This payment is missing the MPP intent, which a payment control requires.",
|
|
186
|
+
"This payment is missing the MPP payment method, which a payment control requires."
|
|
179
187
|
]);
|
|
180
188
|
function customerPaymentReasons(value) {
|
|
181
189
|
return Array.isArray(value) ? [
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var require_package = __commonJS({
|
|
|
14
14
|
"package.json"(exports, module) {
|
|
15
15
|
module.exports = {
|
|
16
16
|
name: "@conto_finance/sdk",
|
|
17
|
-
version: "0.5.
|
|
17
|
+
version: "0.5.3",
|
|
18
18
|
description: "Conto SDK for AI agent payment authorization",
|
|
19
19
|
main: "./dist/index.js",
|
|
20
20
|
module: "./dist/index.mjs",
|
|
@@ -131,7 +131,15 @@ var PUBLIC_PAYMENT_REASONS = /* @__PURE__ */ new Set([
|
|
|
131
131
|
"This payment requires approval before it can proceed.",
|
|
132
132
|
"No usable wallet is linked to this agent.",
|
|
133
133
|
"This payee needs review before payments to it can proceed automatically.",
|
|
134
|
-
"A reviewer declined this payment."
|
|
134
|
+
"A reviewer declined this payment.",
|
|
135
|
+
"This payment is missing a category, which a payment control requires.",
|
|
136
|
+
"This payment is missing the recipient country, which a payment control requires.",
|
|
137
|
+
"This payment is missing the target contract address, which a payment control requires.",
|
|
138
|
+
"This payment is missing the service URL, which a payment control requires.",
|
|
139
|
+
"This payment is missing a session ID, which a payment control requires.",
|
|
140
|
+
"This payment is missing the x402 facilitator, which a payment control requires.",
|
|
141
|
+
"This payment is missing the MPP intent, which a payment control requires.",
|
|
142
|
+
"This payment is missing the MPP payment method, which a payment control requires."
|
|
135
143
|
]);
|
|
136
144
|
function customerPaymentReasons(value) {
|
|
137
145
|
return Array.isArray(value) ? [
|