@conto_finance/sdk 0.5.1 → 0.5.2

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 CHANGED
@@ -99,9 +99,9 @@ await admin.cards.resumeForAgent('agent_id', card.id);
99
99
  await admin.cards.revokeFromAgent('agent_id', card.id);
100
100
  ```
101
101
 
102
- The policy overlay stops at approval, claiming, and reconciliation. For a
103
- customer-hosted payment tool that gates access to customer payment code, see
104
- [Card Access](https://conto.finance/docs/card-access/overview), available on request.
102
+ The policy overlay stops at approval, claiming, and reconciliation. For
103
+ connected cards, see
104
+ [Connected cards](https://conto.finance/docs/guides/connected-cards).
105
105
  The legacy `conto.cards.controlled()` helper remains available for compatibility. Use
106
106
  `admin.cards.listRequests({ status: 'EXECUTING' })` for reconciliation and
107
107
  `admin.cards.pause(card.id)` to revoke unclaimed grants and stop new approvals
@@ -251,7 +251,7 @@ requirements.
251
251
  For browser checkouts on supported rails (Link, card, Shop Pay, or PayPal), use
252
252
  `runGuardedCheckout` with `executionMethod: 'BROWSER_CHECKOUT'`. Other rails and checkout flows are
253
253
  not covered. It binds and atomically authorizes one exact Link, card,
254
- Shop Pay, or PayPal browser action without requiring merchant or private provider integration. The
254
+ Shop Pay, or PayPal browser action without requiring private provider integration. The
255
255
  privileged browser executor must be available only through this wrapper; an unrestricted click or
256
256
  payment tool would bypass the control. Persist its stable dispatch attempt before calling the helper; it owns authorization,
257
257
  one-use claim, the privileged callback, and finalization. See `docs/AGENT_CHECKOUT_GUARD.md` for the
package/dist/index.d.mts CHANGED
@@ -1872,8 +1872,7 @@ interface ProtocolPreAuthorizeResult {
1872
1872
  /**
1873
1873
  * Present when authorized. Pass grantId and grantSignature to record(). A
1874
1874
  * record without a valid, unexpired grant is accepted but treated as a policy
1875
- * bypass: the payment is flagged and the owner is alerted. The organization
1876
- * can also have the agent frozen automatically.
1875
+ * bypass: the payment is flagged and the owner is alerted.
1877
1876
  */
1878
1877
  grantId?: string;
1879
1878
  grantSignature?: string;
@@ -2279,7 +2278,7 @@ declare class ControlledExternalCardPaymentTool<TReceipt = unknown> {
2279
2278
  pay(input: ExternalCardApprovalInput): Promise<ControlledExternalCardPaymentResult<TReceipt>>;
2280
2279
  }
2281
2280
  /**
2282
- * Agent client for connected cards (gated pilot).
2281
+ * Agent client for connected cards (Builder and Enterprise plans).
2283
2282
  *
2284
2283
  * A connected card is a customer card enrolled through the provider and
2285
2284
  * delegated to this agent. `draw` mints one single-use credential against a
@@ -2287,7 +2286,7 @@ declare class ControlledExternalCardPaymentTool<TReceipt = unknown> {
2287
2286
  * draw against. This is a separate rail from {@link CardsClient}: it does not
2288
2287
  * share endpoints, scopes, or types with the external-card policy overlay.
2289
2288
  *
2290
- * These methods return 404 until the tenant is enabled for the pilot.
2289
+ * On plans without connected cards, these methods return an upgrade error.
2291
2290
  */
2292
2291
  declare class ConnectedCardsClient {
2293
2292
  private client;
package/dist/index.d.ts CHANGED
@@ -1872,8 +1872,7 @@ interface ProtocolPreAuthorizeResult {
1872
1872
  /**
1873
1873
  * Present when authorized. Pass grantId and grantSignature to record(). A
1874
1874
  * record without a valid, unexpired grant is accepted but treated as a policy
1875
- * bypass: the payment is flagged and the owner is alerted. The organization
1876
- * can also have the agent frozen automatically.
1875
+ * bypass: the payment is flagged and the owner is alerted.
1877
1876
  */
1878
1877
  grantId?: string;
1879
1878
  grantSignature?: string;
@@ -2279,7 +2278,7 @@ declare class ControlledExternalCardPaymentTool<TReceipt = unknown> {
2279
2278
  pay(input: ExternalCardApprovalInput): Promise<ControlledExternalCardPaymentResult<TReceipt>>;
2280
2279
  }
2281
2280
  /**
2282
- * Agent client for connected cards (gated pilot).
2281
+ * Agent client for connected cards (Builder and Enterprise plans).
2283
2282
  *
2284
2283
  * A connected card is a customer card enrolled through the provider and
2285
2284
  * delegated to this agent. `draw` mints one single-use credential against a
@@ -2287,7 +2286,7 @@ declare class ControlledExternalCardPaymentTool<TReceipt = unknown> {
2287
2286
  * draw against. This is a separate rail from {@link CardsClient}: it does not
2288
2287
  * share endpoints, scopes, or types with the external-card policy overlay.
2289
2288
  *
2290
- * These methods return 404 until the tenant is enabled for the pilot.
2289
+ * On plans without connected cards, these methods return an upgrade error.
2291
2290
  */
2292
2291
  declare class ConnectedCardsClient {
2293
2292
  private client;
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.1",
42
+ version: "0.5.2",
43
43
  description: "Conto SDK for AI agent payment authorization",
44
44
  main: "./dist/index.js",
45
45
  module: "./dist/index.mjs",
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.1",
17
+ version: "0.5.2",
18
18
  description: "Conto SDK for AI agent payment authorization",
19
19
  main: "./dist/index.js",
20
20
  module: "./dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conto_finance/sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Conto SDK for AI agent payment authorization",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",