@paybond/kit 0.9.1 → 0.9.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 +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +17 -1
- package/dist/principal-intent.d.ts +1 -1
- package/dist/principal-intent.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@paybond/kit`
|
|
2
2
|
|
|
3
|
-
Paybond Kit for TypeScript is the npm package for tenant-bound Paybond integrations and delegated agent spend controls. It opens hosted Gateway sessions, verifies capability tokens, authorizes tool-call spend, signs intent and evidence payloads, uses Stripe Connect or x402 / USDC-on-Base settlement rails, reads tenant-scoped Signal, fraud, ledger, protocol, and A2A data, and includes agent-runtime integrations.
|
|
3
|
+
Paybond Kit for TypeScript is the npm package for tenant-bound Paybond integrations and delegated agent spend controls. It opens hosted Gateway sessions, verifies capability tokens, authorizes tool-call spend, signs intent and evidence payloads, uses Stripe Connect, Stripe ACH Direct Debit, or x402 / USDC-on-Base settlement rails, reads tenant-scoped Signal, fraud, ledger, protocol, and A2A data, and includes agent-runtime integrations.
|
|
4
4
|
|
|
5
5
|
Paybond is the SDK to use when you do not want to build your own delegated agent spend-governance middleware. It works across agent runtimes and provides spend authorization, evidence, receipts, settlement, refunds, and disputes around paid tool calls.
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -24,12 +24,28 @@ export type IntentFundingResult = {
|
|
|
24
24
|
status?: string;
|
|
25
25
|
paymentSessionId?: string;
|
|
26
26
|
paymentUrl?: string;
|
|
27
|
+
stripePaymentIntentId?: string;
|
|
28
|
+
clientSecret?: string;
|
|
29
|
+
stripeConnectDestination?: string;
|
|
30
|
+
stripeCustomerId?: string;
|
|
31
|
+
latestChargeId?: string;
|
|
32
|
+
paymentMethodId?: string;
|
|
33
|
+
mandateId?: string;
|
|
34
|
+
financialConnectionsAccountId?: string;
|
|
35
|
+
bankLast4?: string;
|
|
36
|
+
bankFingerprint?: string;
|
|
37
|
+
bankName?: string;
|
|
27
38
|
asset?: string;
|
|
28
39
|
network?: string;
|
|
29
40
|
authorizationId?: string;
|
|
30
41
|
captureId?: string;
|
|
31
42
|
voidId?: string;
|
|
43
|
+
transferId?: string;
|
|
32
44
|
refundId?: string;
|
|
45
|
+
expectedDebitDate?: string;
|
|
46
|
+
paymentReference?: string;
|
|
47
|
+
refundReference?: string;
|
|
48
|
+
refundReferenceStatus?: string;
|
|
33
49
|
sourceAddress?: string;
|
|
34
50
|
targetAddress?: string;
|
|
35
51
|
authorizationExpiresAt?: string;
|
package/dist/index.js
CHANGED
|
@@ -802,7 +802,7 @@ export class GatewayHarborClient {
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
const DEFAULT_PRINCIPAL_PATH = "/v1/auth/principal";
|
|
805
|
-
const SETTLEMENT_RAIL_VALUES = new Set(["stripe_connect", "x402_usdc_base"]);
|
|
805
|
+
const SETTLEMENT_RAIL_VALUES = new Set(["stripe_connect", "stripe_ach_debit", "x402_usdc_base"]);
|
|
806
806
|
const FRAUD_REVIEW_EVENT_TYPES = new Set([
|
|
807
807
|
"review_open_requested",
|
|
808
808
|
"appeal_requested",
|
|
@@ -910,12 +910,28 @@ function parseIntentFundingResult(value) {
|
|
|
910
910
|
status: readOptionalString("status"),
|
|
911
911
|
paymentSessionId: readOptionalString("payment_session_id"),
|
|
912
912
|
paymentUrl: readOptionalString("payment_url"),
|
|
913
|
+
stripePaymentIntentId: readOptionalString("stripe_payment_intent_id"),
|
|
914
|
+
clientSecret: readOptionalString("client_secret"),
|
|
915
|
+
stripeConnectDestination: readOptionalString("stripe_connect_destination"),
|
|
916
|
+
stripeCustomerId: readOptionalString("stripe_customer_id"),
|
|
917
|
+
latestChargeId: readOptionalString("latest_charge_id"),
|
|
918
|
+
paymentMethodId: readOptionalString("payment_method_id"),
|
|
919
|
+
mandateId: readOptionalString("mandate_id"),
|
|
920
|
+
financialConnectionsAccountId: readOptionalString("financial_connections_account_id"),
|
|
921
|
+
bankLast4: readOptionalString("bank_last4"),
|
|
922
|
+
bankFingerprint: readOptionalString("bank_fingerprint"),
|
|
923
|
+
bankName: readOptionalString("bank_name"),
|
|
913
924
|
asset: readOptionalString("asset"),
|
|
914
925
|
network: readOptionalString("network"),
|
|
915
926
|
authorizationId: readOptionalString("authorization_id"),
|
|
916
927
|
captureId: readOptionalString("capture_id"),
|
|
917
928
|
voidId: readOptionalString("void_id"),
|
|
929
|
+
transferId: readOptionalString("transfer_id"),
|
|
918
930
|
refundId: readOptionalString("refund_id"),
|
|
931
|
+
expectedDebitDate: readOptionalString("expected_debit_date"),
|
|
932
|
+
paymentReference: readOptionalString("payment_reference"),
|
|
933
|
+
refundReference: readOptionalString("refund_reference"),
|
|
934
|
+
refundReferenceStatus: readOptionalString("refund_reference_status"),
|
|
919
935
|
sourceAddress: readOptionalString("source_address"),
|
|
920
936
|
targetAddress: readOptionalString("target_address"),
|
|
921
937
|
authorizationExpiresAt: readOptionalString("authorization_expires_at"),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Matches `crates/harbor-intent-escrow/src/signing.rs` (`intent_creation_sign_bytes_raw`).
|
|
4
4
|
*/
|
|
5
5
|
/** Tenant-configured settlement rail names. Clients may request a rail, not a destination. */
|
|
6
|
-
export type SettlementRail = "stripe_connect" | "x402_usdc_base";
|
|
6
|
+
export type SettlementRail = "stripe_connect" | "stripe_ach_debit" | "x402_usdc_base";
|
|
7
7
|
export declare function intentCreationSignBytesRaw(input: {
|
|
8
8
|
tenantId: string;
|
|
9
9
|
intentId: string;
|
package/dist/principal-intent.js
CHANGED
|
@@ -6,7 +6,7 @@ import { sign, getPublicKey } from "@noble/ed25519";
|
|
|
6
6
|
import { parse as parseUuid } from "uuid";
|
|
7
7
|
import { ensureEd25519Sha512Sync } from "./ed25519-sync.js";
|
|
8
8
|
import { jsonValueDigest } from "./json-digest.js";
|
|
9
|
-
const SETTLEMENT_RAIL_VALUES = new Set(["stripe_connect", "x402_usdc_base"]);
|
|
9
|
+
const SETTLEMENT_RAIL_VALUES = new Set(["stripe_connect", "stripe_ach_debit", "x402_usdc_base"]);
|
|
10
10
|
function validateSettlementRail(value) {
|
|
11
11
|
if (!SETTLEMENT_RAIL_VALUES.has(value)) {
|
|
12
12
|
throw new Error(`settlementRail must be one of ${[...SETTLEMENT_RAIL_VALUES].join(", ")}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paybond/kit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Paybond Kit for TypeScript: agent spend governance for paid tool calls with spend authorization, evidence receipts, refunds, disputes, hosted Gateway sessions, and settlement.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|