@paybond/kit 0.11.10 → 0.12.0
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 +2 -2
- package/completion-presets/catalog.json +374 -3
- package/completion-presets/catalog.sha256 +1 -1
- package/dist/agent/facade.js +13 -0
- package/dist/agent/guarded-agent.d.ts +1 -1
- package/dist/agent/guarded-agent.js +19 -0
- package/dist/agent/index.d.ts +2 -1
- package/dist/agent/index.js +1 -0
- package/dist/agent/instrument.d.ts +6 -0
- package/dist/agent/instrument.js +6 -0
- package/dist/agent/interceptor.d.ts +9 -0
- package/dist/agent/interceptor.js +177 -1
- package/dist/agent/receipt-client.d.ts +49 -0
- package/dist/agent/receipt-client.js +45 -0
- package/dist/agent/registry.js +1 -0
- package/dist/agent/run.d.ts +2 -0
- package/dist/agent/run.js +52 -0
- package/dist/agent/types.d.ts +70 -0
- package/dist/agent-receipt-external-attestations.d.ts +29 -0
- package/dist/agent-receipt-external-attestations.js +124 -0
- package/dist/agent-receipt.d.ts +134 -0
- package/dist/agent-receipt.js +580 -0
- package/dist/agent-recognition.d.ts +25 -0
- package/dist/agent-recognition.js +36 -0
- package/dist/audit/exports.d.ts +72 -0
- package/dist/audit/exports.js +185 -0
- package/dist/audit/index.d.ts +3 -0
- package/dist/audit/index.js +3 -0
- package/dist/audit/verify.d.ts +8 -0
- package/dist/audit/verify.js +113 -0
- package/dist/audit/wire.d.ts +54 -0
- package/dist/audit/wire.js +80 -0
- package/dist/cli/agent/demo-loaders.d.ts +2 -0
- package/dist/cli/agent/demo-loaders.js +24 -0
- package/dist/cli/agent/production-evidence.d.ts +11 -0
- package/dist/cli/agent/production-evidence.js +17 -0
- package/dist/cli/audit-export.d.ts +2 -7
- package/dist/cli/audit-export.js +2 -120
- package/dist/cli/command-spec.js +43 -10
- package/dist/cli/commands/agent.d.ts +3 -0
- package/dist/cli/commands/agent.js +143 -1
- package/dist/cli/commands/discovery.js +39 -36
- package/dist/cli/commands/workflows.js +116 -18
- package/dist/cli/help.d.ts +1 -1
- package/dist/cli/help.js +12 -8
- package/dist/cli/intents-harbor-mutation.d.ts +18 -0
- package/dist/cli/intents-harbor-mutation.js +33 -0
- package/dist/cli/paybond.d.ts +9 -0
- package/dist/cli/paybond.js +23 -0
- package/dist/cli/redact.js +3 -0
- package/dist/cloudflare-agents/config.d.ts +24 -0
- package/dist/cloudflare-agents/config.js +23 -0
- package/dist/cloudflare-agents/index.d.ts +3 -0
- package/dist/cloudflare-agents/index.js +3 -0
- package/dist/cloudflare-agents/peer.d.ts +9 -0
- package/dist/cloudflare-agents/peer.js +20 -0
- package/dist/cloudflare-agents/sandbox-demo.d.ts +36 -0
- package/dist/cloudflare-agents/sandbox-demo.js +89 -0
- package/dist/completion-catalog-digest.d.ts +1 -1
- package/dist/completion-catalog-digest.js +1 -1
- package/dist/completion-init.js +8 -3
- package/dist/dev/offline-gateway.d.ts +2 -1
- package/dist/dev/offline-gateway.js +34 -3
- package/dist/dev/x402-fund-mock.d.ts +28 -0
- package/dist/dev/x402-fund-mock.js +124 -0
- package/dist/index.d.ts +125 -9
- package/dist/index.js +264 -17
- package/dist/init.js +113 -2
- package/dist/mastra/config.d.ts +30 -0
- package/dist/mastra/config.js +58 -0
- package/dist/mastra/index.d.ts +2 -0
- package/dist/mastra/index.js +2 -0
- package/dist/mastra/peer.d.ts +11 -0
- package/dist/mastra/peer.js +24 -0
- package/dist/mastra/sandbox-demo.d.ts +36 -0
- package/dist/mastra/sandbox-demo.js +87 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/sandbox-demo.d.ts +38 -0
- package/dist/mcp/sandbox-demo.js +112 -0
- package/dist/mcp-receipt-resource.d.ts +10 -0
- package/dist/mcp-receipt-resource.js +32 -0
- package/dist/mcp-server.d.ts +6 -0
- package/dist/mcp-server.js +124 -1
- package/dist/mpp-commercial.d.ts +19 -0
- package/dist/mpp-commercial.js +34 -0
- package/dist/mpp-funding.d.ts +71 -0
- package/dist/mpp-funding.js +192 -0
- package/dist/payment-transport.d.ts +30 -0
- package/dist/payment-transport.js +56 -0
- package/dist/policy/init.js +2 -0
- package/dist/policy/intent-spec.js +2 -0
- package/dist/principal-intent.d.ts +1 -1
- package/dist/principal-intent.js +4 -1
- package/dist/project-init.js +8 -0
- package/dist/template-init.d.ts +2 -2
- package/dist/template-init.js +6 -2
- package/dist/x402-funding.d.ts +52 -0
- package/dist/x402-funding.js +124 -0
- package/package.json +20 -2
- package/templates/manifest.json +28 -9
- package/templates/openai-shopping-agent/package-lock.json +16 -8
- package/templates/openai-shopping-agent/package.json +1 -1
- package/templates/paybond-aws-operator/package-lock.json +13 -5
- package/templates/paybond-aws-operator/package.json +1 -1
- package/templates/paybond-claude-agents-demo/package-lock.json +16 -8
- package/templates/paybond-claude-agents-demo/package.json +1 -1
- package/templates/paybond-invoice-agent/requirements.txt +1 -1
- package/templates/paybond-mastra-travel-agent/.env.example +3 -0
- package/templates/paybond-mastra-travel-agent/.github/workflows/smoke.yml +20 -0
- package/templates/paybond-mastra-travel-agent/LICENSE +201 -0
- package/templates/paybond-mastra-travel-agent/README.md +29 -0
- package/templates/paybond-mastra-travel-agent/package-lock.json +3377 -0
- package/templates/paybond-mastra-travel-agent/package.json +22 -0
- package/templates/paybond-mastra-travel-agent/paybond.policy.yaml +22 -0
- package/templates/paybond-mastra-travel-agent/src/index.ts +22 -0
- package/templates/paybond-mastra-travel-agent/src/paybond.config.ts +51 -0
- package/templates/paybond-mastra-travel-agent/tsconfig.json +13 -0
- package/templates/paybond-mcp-coding-agent/package-lock.json +13 -5
- package/templates/paybond-mcp-coding-agent/package.json +1 -1
- package/templates/paybond-openai-agents-demo/package-lock.json +16 -8
- package/templates/paybond-openai-agents-demo/package.json +1 -1
- package/templates/paybond-procurement-agent/package-lock.json +13 -5
- package/templates/paybond-procurement-agent/package.json +1 -1
- package/templates/paybond-travel-agent/package-lock.json +16 -8
- package/templates/paybond-travel-agent/package.json +1 -1
- package/templates/paybond-vercel-shopping-agent/package-lock.json +13 -5
- package/templates/paybond-vercel-shopping-agent/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type BuildSignedCreateIntentParams, type BuildSignedCreateIntentWithPolicyBindingParams, type SettlementRail } from "./principal-intent.js";
|
|
6
6
|
import { type SignPayeeEvidenceParams } from "./payee-evidence.js";
|
|
7
|
-
import { PaybondAgentRunFacade, PaybondInstrumentBuilder, PaybondInstrumentRuntime, PaybondToolRegistry, type CreateGuardedAgentInput, type CreateGuardedAgentResult, type
|
|
7
|
+
import { PaybondAgentRunFacade, type PaybondAgentCallable, PaybondInstrumentBuilder, PaybondInstrumentRuntime, PaybondToolRegistry, type CreateGuardedAgentInput, type CreateGuardedAgentResult, type PaybondInlinePolicy, type PaybondInstrumentAgentOptions, type PaybondInstrumentInput, type PaybondInstrumented, type PaybondToolRegistryConfig, type PaybondWrapToolsOptions } from "./agent/index.js";
|
|
8
8
|
import { GatewayAgentRunTraceReporter } from "./agent/gateway-trace-reporter.js";
|
|
9
|
+
import { PaybondAudit } from "./audit/index.js";
|
|
9
10
|
import { type PolicyRemoteValidateOptions, type PolicyRemoteValidateResult } from "./policy/validate-remote.js";
|
|
10
11
|
import { type PolicyEffectiveResolveResult } from "./policy/load-effective.js";
|
|
12
|
+
import { type FundRequestEnvelope, type PaymentRequired, type X402FundPollOptions } from "./x402-funding.js";
|
|
13
|
+
import { type MppFundPollOptions, type PaymentAuthChallenge } from "./mpp-funding.js";
|
|
11
14
|
export type SpendScope = {
|
|
12
15
|
scope_type: string;
|
|
13
16
|
scope_key: string;
|
|
@@ -41,6 +44,13 @@ export type PaybondSpendAuthorizationInput = {
|
|
|
41
44
|
agentSubject?: string;
|
|
42
45
|
approvalToken?: string;
|
|
43
46
|
idempotencyKey?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Agent Receipt Standard context (Phase 1): forwarded to Gateway `/verify` on every call for
|
|
49
|
+
* audit correlation. See `go/gateway/internal/spendauth/types.go` `VerifyRequest`.
|
|
50
|
+
*/
|
|
51
|
+
modelFamily?: string;
|
|
52
|
+
configHashHex?: string;
|
|
53
|
+
promptHashHex?: string;
|
|
44
54
|
};
|
|
45
55
|
export type SubmitEvidenceResult = {
|
|
46
56
|
intentId: string;
|
|
@@ -52,6 +62,12 @@ export type IntentFundingResult = {
|
|
|
52
62
|
settlementRail: SettlementRail;
|
|
53
63
|
harborFundEndpoint?: string;
|
|
54
64
|
status?: string;
|
|
65
|
+
/** MPP Payment Auth challenge `intent` (`charge` or `session`). */
|
|
66
|
+
intent?: string;
|
|
67
|
+
/** MPP Payment Auth challenge `method` (`stripe` or `tempo`). */
|
|
68
|
+
method?: string;
|
|
69
|
+
/** MPP Payment Auth challenge id from `WWW-Authenticate: Payment`. */
|
|
70
|
+
challengeId?: string;
|
|
55
71
|
paymentSessionId?: string;
|
|
56
72
|
paymentUrl?: string;
|
|
57
73
|
stripePaymentIntentId?: string;
|
|
@@ -67,6 +83,22 @@ export type IntentFundingResult = {
|
|
|
67
83
|
bankName?: string;
|
|
68
84
|
asset?: string;
|
|
69
85
|
network?: string;
|
|
86
|
+
/** MPP settlement asset (e.g. `usdc`). */
|
|
87
|
+
settlementAsset?: string;
|
|
88
|
+
/** MPP settlement network (e.g. `tempo`). */
|
|
89
|
+
settlementNetwork?: string;
|
|
90
|
+
/** Tempo session channel id (`stripe_mpp` session funding). */
|
|
91
|
+
channelId?: string;
|
|
92
|
+
/** Tempo session protocol version (e.g. `v2`). */
|
|
93
|
+
sessionProtocol?: string;
|
|
94
|
+
/** Required Tempo deposit in USDC base units. */
|
|
95
|
+
depositAmountBaseUnits?: string;
|
|
96
|
+
acceptedCumulativeBaseUnits?: string;
|
|
97
|
+
pendingCumulativeBaseUnits?: string;
|
|
98
|
+
descriptorHash?: string;
|
|
99
|
+
lastVoucherAt?: string;
|
|
100
|
+
lastSettleTxHash?: string;
|
|
101
|
+
channelStatus?: string;
|
|
70
102
|
authorizationId?: string;
|
|
71
103
|
captureId?: string;
|
|
72
104
|
voidId?: string;
|
|
@@ -92,6 +124,12 @@ export type FundIntentResult = {
|
|
|
92
124
|
statusCode: 200 | 202 | 402;
|
|
93
125
|
paymentRequired?: string;
|
|
94
126
|
paymentResponse?: string;
|
|
127
|
+
/** Payment Auth challenges from `WWW-Authenticate` (MPP charge/session). */
|
|
128
|
+
wwwAuthenticate?: string[];
|
|
129
|
+
/** Payment Auth receipt from `Payment-Receipt` when Harbor confirms payment progress. */
|
|
130
|
+
paymentReceipt?: string;
|
|
131
|
+
/** Cache policy echoed from Harbor (`Cache-Control`). */
|
|
132
|
+
cacheControl?: string;
|
|
95
133
|
intentId: string;
|
|
96
134
|
tenant: string;
|
|
97
135
|
state: string;
|
|
@@ -720,6 +758,7 @@ export type VerifyProtocolReceiptV1Result = {
|
|
|
720
758
|
tenant_id: string;
|
|
721
759
|
receipt: ProtocolAuthorizationReceiptV1 | ProtocolSettlementReceiptV1 | Record<string, unknown>;
|
|
722
760
|
};
|
|
761
|
+
export type { VerifyAgentReceiptV1Result } from "./agent/receipt-client.js";
|
|
723
762
|
export declare class A2AHttpError extends Error {
|
|
724
763
|
readonly statusCode: number;
|
|
725
764
|
readonly url: string;
|
|
@@ -898,6 +937,7 @@ export declare class HarborClient {
|
|
|
898
937
|
*/
|
|
899
938
|
fundIntent(intentId: string, options?: {
|
|
900
939
|
paymentSignature?: string;
|
|
940
|
+
paymentAuthorization?: string;
|
|
901
941
|
idempotencyKey?: string;
|
|
902
942
|
}): Promise<FundIntentResult>;
|
|
903
943
|
/**
|
|
@@ -908,6 +948,13 @@ export declare class HarborClient {
|
|
|
908
948
|
submitEvidence(intentId: string, evidenceBody: Record<string, unknown>, options?: {
|
|
909
949
|
idempotencyKey?: string;
|
|
910
950
|
}): Promise<SubmitEvidenceResult>;
|
|
951
|
+
/**
|
|
952
|
+
* POST `/intents/{intentId}/settlement/confirm` — confirms the settlement action implied by
|
|
953
|
+
* stored evidence evaluation (does not choose release vs refund).
|
|
954
|
+
*/
|
|
955
|
+
confirmSettlement(intentId: string, body?: Record<string, unknown>, options?: {
|
|
956
|
+
idempotencyKey?: string;
|
|
957
|
+
}): Promise<Record<string, unknown>>;
|
|
911
958
|
/**
|
|
912
959
|
* `GET /ledger/v1/tip` — latest sequence and entry commitment for the authenticated tenant.
|
|
913
960
|
*
|
|
@@ -1000,8 +1047,11 @@ export declare class GatewayHarborClient {
|
|
|
1000
1047
|
createIntent(body: Record<string, unknown>, options: GatewayHarborMutationOptions): Promise<Record<string, unknown>>;
|
|
1001
1048
|
fundIntent(intentId: string, options: GatewayHarborMutationOptions & {
|
|
1002
1049
|
paymentSignature?: string;
|
|
1050
|
+
paymentAuthorization?: string;
|
|
1003
1051
|
}): Promise<FundIntentResult>;
|
|
1004
1052
|
submitEvidence(intentId: string, evidenceBody: Record<string, unknown>, options: GatewayHarborMutationOptions): Promise<SubmitEvidenceResult>;
|
|
1053
|
+
/** Recognition-gated Gateway Harbor settlement confirmation. */
|
|
1054
|
+
confirmSettlement(intentId: string, body: Record<string, unknown>, options: GatewayHarborMutationOptions): Promise<Record<string, unknown>>;
|
|
1005
1055
|
}
|
|
1006
1056
|
type GatewaySandboxGuardrailsClientOptions = {
|
|
1007
1057
|
staticGatewayBearerToken: string;
|
|
@@ -1116,6 +1166,12 @@ export declare class GatewayProtocolClient {
|
|
|
1116
1166
|
}): Promise<ImportAgentMandateV1Result>;
|
|
1117
1167
|
getSettlementReceiptV1(receiptId: string): Promise<ProtocolSettlementReceiptV1>;
|
|
1118
1168
|
verifyProtocolReceiptV1(receipt: ProtocolAuthorizationReceiptV1 | ProtocolSettlementReceiptV1 | Record<string, unknown>): Promise<VerifyProtocolReceiptV1Result>;
|
|
1169
|
+
getAgentReceiptV1ByID(receiptId: string): Promise<import("./agent-receipt.js").AgentReceiptV1>;
|
|
1170
|
+
getAgentReceiptV1ByIntentToolCall(init: {
|
|
1171
|
+
intentId: string;
|
|
1172
|
+
toolCallId: string;
|
|
1173
|
+
}): Promise<import("./agent-receipt.js").AgentReceiptV1>;
|
|
1174
|
+
verifyAgentReceiptV1(receipt: import("./agent-receipt.js").AgentReceiptV1 | Record<string, unknown>): Promise<import("./agent/receipt-client.js").VerifyAgentReceiptV1Result>;
|
|
1119
1175
|
createHarborIntent(init: {
|
|
1120
1176
|
body: Record<string, unknown>;
|
|
1121
1177
|
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
@@ -1181,13 +1237,21 @@ export type PaybondSubmitEvidenceParams = Omit<SignPayeeEvidenceParams, "tenantI
|
|
|
1181
1237
|
submittedAtRfc3339?: string;
|
|
1182
1238
|
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1183
1239
|
};
|
|
1240
|
+
/** Parameters for {@link PaybondIntents.confirmSettlement}. */
|
|
1241
|
+
export type PaybondConfirmSettlementParams = {
|
|
1242
|
+
intentId: string;
|
|
1243
|
+
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1244
|
+
body?: Record<string, unknown>;
|
|
1245
|
+
idempotencyKey?: string;
|
|
1246
|
+
};
|
|
1184
1247
|
/** Parameters for production intent create with a published managed-policy head (signing v5). */
|
|
1185
1248
|
export type PaybondCreateIntentWithPolicyBindingParams = Omit<BuildSignedCreateIntentWithPolicyBindingParams, "tenantId" | "intentId"> & {
|
|
1186
1249
|
intentId?: string;
|
|
1187
1250
|
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1188
1251
|
};
|
|
1189
1252
|
/**
|
|
1190
|
-
* Ergonomic intent helpers: principal-signed intent create, x402 funding,
|
|
1253
|
+
* Ergonomic intent helpers: principal-signed intent create, x402 funding, payee-signed evidence,
|
|
1254
|
+
* and settlement confirmation.
|
|
1191
1255
|
*/
|
|
1192
1256
|
export declare class PaybondIntents {
|
|
1193
1257
|
private readonly harbor;
|
|
@@ -1215,6 +1279,50 @@ export declare class PaybondIntents {
|
|
|
1215
1279
|
intentId: string;
|
|
1216
1280
|
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1217
1281
|
paymentSignature?: string;
|
|
1282
|
+
paymentAuthorization?: string;
|
|
1283
|
+
idempotencyKey?: string;
|
|
1284
|
+
}): Promise<FundIntentResult>;
|
|
1285
|
+
/**
|
|
1286
|
+
* One-call x402 fund flow: sign 402 challenges, retry with `payment-signature`, and poll until funded.
|
|
1287
|
+
*
|
|
1288
|
+
* Wallet keys stay app-owned — pass injectable `signPayment` and `issueRecognitionProof` callbacks.
|
|
1289
|
+
*/
|
|
1290
|
+
fundWithX402(params: {
|
|
1291
|
+
intentId: string;
|
|
1292
|
+
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1293
|
+
signPayment: (challenge: PaymentRequired) => Promise<string>;
|
|
1294
|
+
issueRecognitionProof: (envelope: FundRequestEnvelope) => Promise<AgentRecognitionProofV1 | Record<string, unknown>>;
|
|
1295
|
+
pollOptions?: X402FundPollOptions;
|
|
1296
|
+
idempotencyKey?: string;
|
|
1297
|
+
}): Promise<FundIntentResult>;
|
|
1298
|
+
/**
|
|
1299
|
+
* One-shot Stripe MPP charge fund flow: create Payment Auth credentials from 402 challenges,
|
|
1300
|
+
* retry with `paymentAuthorization`, and poll until funded.
|
|
1301
|
+
*
|
|
1302
|
+
* MPP wallet and SPT secrets stay app-owned — pass injectable `createPaymentCredential` and
|
|
1303
|
+
* `issueRecognitionProof` callbacks.
|
|
1304
|
+
*/
|
|
1305
|
+
fundWithMppCharge(params: {
|
|
1306
|
+
intentId: string;
|
|
1307
|
+
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1308
|
+
createPaymentCredential: (challenge: PaymentAuthChallenge) => Promise<string>;
|
|
1309
|
+
issueRecognitionProof: (envelope: FundRequestEnvelope) => Promise<AgentRecognitionProofV1 | Record<string, unknown>>;
|
|
1310
|
+
pollOptions?: MppFundPollOptions;
|
|
1311
|
+
idempotencyKey?: string;
|
|
1312
|
+
}): Promise<FundIntentResult>;
|
|
1313
|
+
/**
|
|
1314
|
+
* Tempo MPP session fund flow: open a session channel deposit via Payment Auth credentials,
|
|
1315
|
+
* retry with `paymentAuthorization`, and poll until the intent is funded.
|
|
1316
|
+
*
|
|
1317
|
+
* MPP wallet and SPT secrets stay app-owned — pass injectable `createPaymentCredential` and
|
|
1318
|
+
* `issueRecognitionProof` callbacks.
|
|
1319
|
+
*/
|
|
1320
|
+
fundWithMppSession(params: {
|
|
1321
|
+
intentId: string;
|
|
1322
|
+
recognitionProof: AgentRecognitionProofV1 | Record<string, unknown>;
|
|
1323
|
+
createPaymentCredential: (challenge: PaymentAuthChallenge) => Promise<string>;
|
|
1324
|
+
issueRecognitionProof: (envelope: FundRequestEnvelope) => Promise<AgentRecognitionProofV1 | Record<string, unknown>>;
|
|
1325
|
+
pollOptions?: MppFundPollOptions;
|
|
1218
1326
|
idempotencyKey?: string;
|
|
1219
1327
|
}): Promise<FundIntentResult>;
|
|
1220
1328
|
/**
|
|
@@ -1223,6 +1331,11 @@ export declare class PaybondIntents {
|
|
|
1223
1331
|
submitEvidence(params: PaybondSubmitEvidenceParams & {
|
|
1224
1332
|
idempotencyKey?: string;
|
|
1225
1333
|
}): Promise<SubmitEvidenceResult>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Confirm Harbor settlement through Gateway `POST /harbor/intents/{id}/settlement/confirm`.
|
|
1336
|
+
* Confirms the action implied by stored evidence; does not choose release vs refund.
|
|
1337
|
+
*/
|
|
1338
|
+
confirmSettlement(params: PaybondConfirmSettlementParams): Promise<Record<string, unknown>>;
|
|
1226
1339
|
}
|
|
1227
1340
|
/**
|
|
1228
1341
|
* High-level Kit entrypoint: tenant-bound Gateway clients plus ergonomic intent helpers.
|
|
@@ -1235,7 +1348,9 @@ export declare class Paybond {
|
|
|
1235
1348
|
readonly a2a: GatewayA2AClient;
|
|
1236
1349
|
readonly protocol: GatewayProtocolClient;
|
|
1237
1350
|
readonly intents: PaybondIntents;
|
|
1351
|
+
readonly audit: PaybondAudit;
|
|
1238
1352
|
readonly agentRun: PaybondAgentRunFacade;
|
|
1353
|
+
readonly agent: PaybondAgentCallable;
|
|
1239
1354
|
private constructor();
|
|
1240
1355
|
/** Open a tenant-bound hosted Paybond session from a service-account API key. */
|
|
1241
1356
|
static open(init: PaybondOpenOptions): Promise<Paybond>;
|
|
@@ -1280,11 +1395,6 @@ export declare class Paybond {
|
|
|
1280
1395
|
instrumentMCP<TTools>(input: Omit<PaybondInstrumentInput<TTools>, "framework"> & {
|
|
1281
1396
|
tools: TTools;
|
|
1282
1397
|
}): Promise<PaybondInstrumented<TTools> | PaybondInstrumentRuntime<TTools>>;
|
|
1283
|
-
/**
|
|
1284
|
-
* Opinionated quickstart: resolve named policy presets (for example `travel`) or file paths,
|
|
1285
|
-
* then instrument tools for the selected framework.
|
|
1286
|
-
*/
|
|
1287
|
-
agent<TTools>(input: PaybondAgentInput<TTools>): Promise<PaybondAgentResult<TTools>>;
|
|
1288
1398
|
/** Wrap tools for an existing bound run without reloading policy. */
|
|
1289
1399
|
wrapTools(run: import("./agent/run.js").PaybondAgentRun, tools: unknown, options?: PaybondWrapToolsOptions): unknown;
|
|
1290
1400
|
/**
|
|
@@ -1302,10 +1412,16 @@ export declare class Paybond {
|
|
|
1302
1412
|
export { normalizeJson, jsonValueDigest } from "./json-digest.js";
|
|
1303
1413
|
export { buildSignedCreateIntentBody, buildSignedCreateIntentBodyWithPolicyBinding, intentCreationSignBytesRaw, intentCreationSignBytesWithPolicyBinding, type BuildSignedCreateIntentParams, type BuildSignedCreateIntentWithPolicyBindingParams, type PolicyBindingRef, type PublishedPolicyHead, type SettlementRail, } from "./principal-intent.js";
|
|
1304
1414
|
export { artifactsDigest, evidenceSignBytesV1, signPayeeEvidenceBinding, type SignPayeeEvidenceParams, } from "./payee-evidence.js";
|
|
1305
|
-
export { AGENT_RECOGNITION_GATEWAY_VERIFIER_ID, AGENT_RECOGNITION_PROOF_KIND_V1, AGENT_RECOGNITION_PURPOSE_EVIDENCE_SUBMIT, newAgentRecognitionRequestEnvelope, signAgentRecognitionProofV1, signHarborEvidenceSubmitRecognitionProof, type SignAgentRecognitionProofV1Params, type SignedAgentRecognitionProofV1, } from "./agent-recognition.js";
|
|
1415
|
+
export { AGENT_RECOGNITION_GATEWAY_VERIFIER_ID, AGENT_RECOGNITION_PROOF_KIND_V1, AGENT_RECOGNITION_PURPOSE_CREATE, AGENT_RECOGNITION_PURPOSE_FUND, AGENT_RECOGNITION_PURPOSE_EVIDENCE_SUBMIT, newAgentRecognitionRequestEnvelope, signAgentRecognitionProofV1, signHarborCreateRecognitionProof, signHarborFundRecognitionProof, signHarborEvidenceSubmitRecognitionProof, signHarborSettlementConfirmRecognitionProof, type SignAgentRecognitionProofV1Params, type SignedAgentRecognitionProofV1, } from "./agent-recognition.js";
|
|
1416
|
+
export { executeFundWithX402, buildX402FundRequestEnvelope, PaybondX402FundingFailedError, PaybondX402FundingPendingError, type FundRequestEnvelope, type PaymentRequired, type X402FundPollOptions, } from "./x402-funding.js";
|
|
1417
|
+
export { executeFundWithMpp, executeFundWithMppCharge, executeFundWithMppSession, buildMppFundRequestEnvelope, parsePaymentAuthChallenge, selectMppChargeChallenge, selectMppSessionChallenge, PaybondMppFundingFailedError, PaybondMppFundingPendingError, type MppFundPollOptions, type ParsedPaymentAuthChallenge, type PaymentAuthChallenge, } from "./mpp-funding.js";
|
|
1306
1418
|
export { validateCompletionEvidence, type CompletionEvidenceValidationReport, } from "./completion-validate-evidence.js";
|
|
1307
1419
|
export { completionSchemaDigestHex, computeVendorContractDigests, verifyVendorContract, verifyCatalogVendorContracts, type VendorContract, type VendorContractDigests, } from "./completion-contract-digest.js";
|
|
1308
1420
|
export { contractSnapshotForPreset, mapVendorEvidenceToCanonical, resolveCompletionPreset, } from "./completion-resolve.js";
|
|
1309
|
-
export { PaybondAgentRun, PaybondAgentRunBindError, PaybondAgentRunFacade, PaybondEvidenceSubmitError, PaybondFrameworkAdapter, PaybondToolInterceptor, PaybondToolRegistry, PaybondToolRegistryValidationError, PaybondUnregisteredSideEffectingToolError, buildAutoEvidencePayload, createGenericToolExecutor, createGuardedAgent, createGuardedAgentRunner, createPaybondAgent, createPaybondGenericAgentConfig, createPaybondGenericInputGuard, createPaybondToolRegistry, createToolInputGuardAdapter, instrumentPaybondAgent, instrumentPaybondClaudeAgents, instrumentPaybondLangGraph, instrumentPaybondMCP, instrumentPaybondOpenAI, instrumentPaybondVercel, paybondGenericToolExecutorAdapter, paybondToolInputGuardAdapter, resolveAgentPolicySource, toPaybondAgentResult, wrapPaybondTools, PaybondInstrumentBuilder, PaybondInstrumented, PaybondInstrumentRuntime, PaybondLazyContextError, PaybondUnboundContextError, discoverPolicyFromAgent, discoverToolNames, discoverToolsFromAgent, inlinePolicyToDocument, isInlinePolicy, isInstrumentableAgentObject, readPaybondAgentInstrumentation, type CreateGuardedAgentInput, type CreateGuardedAgentResult, type GuardedAgentFramework, type PaybondAgentHooks, type PaybondAgentInput, type PaybondAgentResult, type PaybondAgentRunBindInput, type PaybondAuthorizeToolCallInput, type PaybondEvidenceMapper, type PaybondGenericAgentConfig, type PaybondGenericToolCall, type PaybondGenericToolDefinition, type PaybondGenericWrappedToolDefinition, type PaybondInlinePolicy, type PaybondAgentInstrumentation, type PaybondInstrumentAgentOptions, type PaybondInstrumentBinding, type PaybondInstrumentContext, type PaybondInstrumentContextInput, type PaybondInstrumentContextProvider, type PaybondInstrumentInput, type PaybondInterceptEvidenceResult, type PaybondInterceptWrapExecuteInput, type PaybondInterceptWrapExecuteResult, type PaybondRunBinding, type PaybondRunBindingAttachInput, type PaybondRunBindingSandboxBootstrapInput, type PaybondRunGuard, type PaybondSideEffectingToolEntry, type PaybondSideEffectingToolPolicy, type PaybondSpendResolver, type PaybondToolCallContext, type PaybondToolInputGuardAllowDecision, type PaybondToolInputGuardApprovalRequiredDecision, type PaybondToolInputGuardDecision, type PaybondToolInputGuardDenyDecision, type PaybondToolInputGuardAdapter, type PaybondToolRegistryConfig, type PaybondToolResolution, type PaybondWrapToolsOptions, } from "./agent/index.js";
|
|
1421
|
+
export { PaybondAgentRun, PaybondAgentRunBindError, PaybondAgentRunFacade, PaybondEvidenceSubmitError, PaybondFrameworkAdapter, PaybondToolInterceptor, PaybondToolRegistry, PaybondToolRegistryValidationError, PaybondUnregisteredSideEffectingToolError, buildAutoEvidencePayload, createGenericToolExecutor, createGuardedAgent, createGuardedAgentRunner, createPaybondAgent, createPaybondGenericAgentConfig, createPaybondGenericInputGuard, createPaybondToolRegistry, createToolInputGuardAdapter, instrumentPaybondAgent, instrumentPaybondClaudeAgents, instrumentPaybondLangGraph, instrumentPaybondMCP, instrumentPaybondOpenAI, instrumentPaybondVercel, paybondGenericToolExecutorAdapter, paybondToolInputGuardAdapter, resolveAgentPolicySource, toPaybondAgentResult, wrapPaybondTools, PaybondInstrumentBuilder, PaybondInstrumented, PaybondInstrumentRuntime, PaybondLazyContextError, PaybondUnboundContextError, discoverPolicyFromAgent, discoverToolNames, discoverToolsFromAgent, inlinePolicyToDocument, isInlinePolicy, isInstrumentableAgentObject, readPaybondAgentInstrumentation, type CreateGuardedAgentInput, type CreateGuardedAgentResult, type GuardedAgentFramework, type PaybondAgentHooks, type PaybondAgentInput, type PaybondAgentResult, type PaybondAgentRunBindInput, type PaybondAuthorizeToolCallInput, type PaybondEvidenceMapper, type PaybondExternalAttestationMapper, type PaybondGenericAgentConfig, type PaybondGenericToolCall, type PaybondGenericToolDefinition, type PaybondGenericWrappedToolDefinition, type PaybondInlinePolicy, type PaybondAgentInstrumentation, type PaybondInstrumentAgentOptions, type PaybondInstrumentBinding, type PaybondInstrumentContext, type PaybondInstrumentContextInput, type PaybondInstrumentContextProvider, type PaybondInstrumentInput, type PaybondInterceptEvidenceResult, type PaybondInterceptWrapExecuteInput, type PaybondInterceptWrapExecuteResult, type PaybondRunBinding, type PaybondRunBindingAttachInput, type PaybondRunBindingSandboxBootstrapInput, type PaybondRunGuard, type PaybondSideEffectingToolEntry, type PaybondSideEffectingToolPolicy, type PaybondSpendResolver, type PaybondToolCallContext, type PaybondToolInputGuardAllowDecision, type PaybondToolInputGuardApprovalRequiredDecision, type PaybondToolInputGuardDecision, type PaybondToolInputGuardDenyDecision, type PaybondToolInputGuardAdapter, type PaybondToolRegistryConfig, type PaybondToolResolution, type PaybondWrapToolsOptions, } from "./agent/index.js";
|
|
1422
|
+
export { PaybondAudit, PaybondAuditExports, GatewayAuditExportsClient, parseAuditExportList, parseAuditExportJobGet, verifyAuditManifest, verifyAuditBundleLocal, type AuditExportJobDetail, type AuditExportJobGetResponse, type AuditExportJobSummary, type AuditExportListPage, type AuditVerifyResult, type AuditExportsGateway, } from "./audit/index.js";
|
|
1310
1423
|
export { PaybondPolicy, composePolicyLayers, composeBundledPresetDefault, domain, guardrails, paybondPolicyPresets, resolveComposedPresetDocument, type LayeredPolicyPresetId, type PaybondPolicyPresets, type PolicyGuardrailLayer, type PolicyPresetId, type VerticalPolicyOptions, } from "./policy/index.js";
|
|
1311
1424
|
export { getSolutionSmokeDefaults, isKnownSolutionId, listSolutionIds, loadSolutionManifest, paybondSolutionPresets, type PaybondSolutionBundle, type PaybondSolutionPresets, type SolutionId, type SolutionManifest, type SolutionSmokeDefaults, } from "./solutions/index.js";
|
|
1425
|
+
export { appendDirectHarborPaymentAuthorization, formatPaymentAuthorizationValue, PAYBOND_PAYMENT_AUTHORIZATION_HEADER, PAYMENT_TRANSPORT_RESPONSE_HEADERS, paymentAuthorizationGatewayHeader, readFundPaymentTransportHeaders, type FundPaymentTransportHeaders, } from "./payment-transport.js";
|
|
1426
|
+
export { AGENT_RECEIPT_KIND_V1, AGENT_RECEIPT_SCHEMA_VERSION, AGENT_RECEIPT_SCOPE_ACTION, AGENT_RECEIPT_SCOPE_INTENT_TERMINAL, AGENT_RECEIPT_SIGNING_ALGORITHM_ED25519, AGENT_RECEIPT_VERSION_V1, AGENT_RECEIPT_WELL_KNOWN_PATH, actionReceiptId, canonicalAgentReceiptBytes, configHashSha256Hex, promptHashSha256Hex, valueDigestSha256Hex, verifyAgentReceiptV1, type AgentReceiptAgentV1, type AgentReceiptAuthorizationV1, type AgentReceiptEvidenceV1, type AgentReceiptExecutionV1, type AgentReceiptExternalAttestationV1, type AgentReceiptMerchantV1, type AgentReceiptOutcomeV1, type AgentReceiptPaymentV1, type AgentReceiptPolicyV1, type AgentReceiptReferencesV1, type AgentReceiptV1, type ConfigHashInput, } from "./agent-receipt.js";
|
|
1427
|
+
export { AGENT_RECEIPT_EXTERNAL_SOURCE_SEP2828, AGENT_RECEIPT_EXTERNAL_SOURCE_X402, partnerRecordDigestSha256Hex, resolveExternalAttestations, sep2828RecordsToExternalAttestations, x402ReceiptToExternalAttestations, type PaybondExternalAttestationInput, } from "./agent-receipt-external-attestations.js";
|