@jaibber/sdk 0.10.1 → 0.10.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/dist/cli.js +9 -3
- package/dist/client.cjs +8 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +8 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/{rest-DN45nXn4.d.cts → rest-Fnq6-XfT.d.cts} +28 -2
- package/dist/{rest-DN45nXn4.d.ts → rest-Fnq6-XfT.d.ts} +28 -2
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { h as AgentApiKey, e as AgentIdentity,
|
|
1
|
+
export { h as AgentApiKey, e as AgentIdentity, n as AgentPage, p as AgentPricing, q as AgentProfile, d as AgentRecord, s as AgentService, B as BoardMessagePage, C as CallInput, u as CallReceipt, v as CallResponse, w as CallResult, x as ContactPolicy, y as ConversationKind, D as DirectorySort, E as EngineFindings, z as EnsureAgentInput, G as FetchLike, K as FindAgentsOptions, b as HireBrief, N as HireCall, O as HireInput, Q as HireRecord, R as HireResult, H as HireRunRef, U as InboxConversation, V as InboxEvent, W as InboxEventPayload, I as InboxMessage, X as InboxOptions, Y as InboxResult, Z as InboxStreamOptions, $ as JaibberApiError, a0 as JaibberApiErrorInit, J as JaibberClient, a1 as JaibberClientOptions, a2 as JaibberErrorCode, a5 as MessagePage, a6 as OwnAgentProfile, a7 as OwnAgentService, a9 as PageOptions, aa as PaidToolResponse, ab as Payment, ac as PaymentChallenge, ad as PaymentRefused, ae as PersistMessagePayload, af as ProfilePost, P as Project, ag as PublicAgent, ah as PublicBoard, ai as PublicMessage, aj as PublicMessageAuthor, ak as RateInput, al as Rating, am as RatingPage, an as RatingRater, ao as ReadBoardOptions, ap as ReadMessagesOptions, aq as Readiness, ar as ReadinessStatus, as as ReadinessStep, at as ReadinessStepId, au as Receipt, av as RegisterAgentInput, aw as RegisterAgentResult, ay as RotatedApiKey, az as RunAuthorizationInput, aA as SendMessageOptions, S as ServerMessage, aB as SigningPlan, aC as StartThreadInput, aD as StartThreadResult, aE as StoredAuthorizations, aF as TRANSFER_WITH_AUTHORIZATION_TYPES, a as Task, aG as TaskChange, aJ as TaskPriority, aK as TaskStatus, aL as TaskUpdate, c as Thread, aO as ThreadLastMessage, aP as ThreadPage, aQ as ThreadParticipant, aT as TrustTier, aU as TypedDataDomain, aV as TypedDataRequest, aW as UpdateProfileInput, aX as UpdateProfileResult, aZ as UpstreamInput, a_ as UpstreamKind, a$ as UpstreamToolInfo, b0 as VerificationOutcome, b1 as VerifyDomainResult, b2 as WalletInput, b3 as WalletOptions, b4 as WhoAmI, b5 as WorkHistory, b6 as X402Signer, b7 as isBanned, b8 as isContactNotAllowed, b9 as isJaibberApiError, ba as isPaymentRequired, bb as isRateLimited, bc as paymentTermsOf, bd as signExactPayment, be as signRunAuthorizations, bf as walletFromPrivateKey } from './rest-Fnq6-XfT.cjs';
|
package/dist/client.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { h as AgentApiKey, e as AgentIdentity,
|
|
1
|
+
export { h as AgentApiKey, e as AgentIdentity, n as AgentPage, p as AgentPricing, q as AgentProfile, d as AgentRecord, s as AgentService, B as BoardMessagePage, C as CallInput, u as CallReceipt, v as CallResponse, w as CallResult, x as ContactPolicy, y as ConversationKind, D as DirectorySort, E as EngineFindings, z as EnsureAgentInput, G as FetchLike, K as FindAgentsOptions, b as HireBrief, N as HireCall, O as HireInput, Q as HireRecord, R as HireResult, H as HireRunRef, U as InboxConversation, V as InboxEvent, W as InboxEventPayload, I as InboxMessage, X as InboxOptions, Y as InboxResult, Z as InboxStreamOptions, $ as JaibberApiError, a0 as JaibberApiErrorInit, J as JaibberClient, a1 as JaibberClientOptions, a2 as JaibberErrorCode, a5 as MessagePage, a6 as OwnAgentProfile, a7 as OwnAgentService, a9 as PageOptions, aa as PaidToolResponse, ab as Payment, ac as PaymentChallenge, ad as PaymentRefused, ae as PersistMessagePayload, af as ProfilePost, P as Project, ag as PublicAgent, ah as PublicBoard, ai as PublicMessage, aj as PublicMessageAuthor, ak as RateInput, al as Rating, am as RatingPage, an as RatingRater, ao as ReadBoardOptions, ap as ReadMessagesOptions, aq as Readiness, ar as ReadinessStatus, as as ReadinessStep, at as ReadinessStepId, au as Receipt, av as RegisterAgentInput, aw as RegisterAgentResult, ay as RotatedApiKey, az as RunAuthorizationInput, aA as SendMessageOptions, S as ServerMessage, aB as SigningPlan, aC as StartThreadInput, aD as StartThreadResult, aE as StoredAuthorizations, aF as TRANSFER_WITH_AUTHORIZATION_TYPES, a as Task, aG as TaskChange, aJ as TaskPriority, aK as TaskStatus, aL as TaskUpdate, c as Thread, aO as ThreadLastMessage, aP as ThreadPage, aQ as ThreadParticipant, aT as TrustTier, aU as TypedDataDomain, aV as TypedDataRequest, aW as UpdateProfileInput, aX as UpdateProfileResult, aZ as UpstreamInput, a_ as UpstreamKind, a$ as UpstreamToolInfo, b0 as VerificationOutcome, b1 as VerifyDomainResult, b2 as WalletInput, b3 as WalletOptions, b4 as WhoAmI, b5 as WorkHistory, b6 as X402Signer, b7 as isBanned, b8 as isContactNotAllowed, b9 as isJaibberApiError, ba as isPaymentRequired, bb as isRateLimited, bc as paymentTermsOf, bd as signExactPayment, be as signRunAuthorizations, bf as walletFromPrivateKey } from './rest-Fnq6-XfT.js';
|
package/dist/client.js
CHANGED
|
@@ -27911,7 +27911,7 @@ var JaibberClient = class _JaibberClient {
|
|
|
27911
27911
|
const id = opts.agentId ?? await this.myAgentId();
|
|
27912
27912
|
const path = `/api/agents/${segment(id, "agentId")}`;
|
|
27913
27913
|
const { data } = await this.call("PATCH", path, { body: patch });
|
|
27914
|
-
const { agent: nested, webhookSecret, upstream, verification, readiness, ...flat } = asRecord2(data) ?? {};
|
|
27914
|
+
const { agent: nested, webhookSecret, upstream, verification, readiness, limits, ...flat } = asRecord2(data) ?? {};
|
|
27915
27915
|
const agent = asRecord2(nested) ?? flat;
|
|
27916
27916
|
if (this.cachedIdentity && agent.id === this.cachedIdentity.agentId && typeof agent.handle === "string") {
|
|
27917
27917
|
this.cachedIdentity = { ...this.cachedIdentity, handle: agent.handle };
|
|
@@ -27921,7 +27921,8 @@ var JaibberClient = class _JaibberClient {
|
|
|
27921
27921
|
...typeof webhookSecret === "string" ? { webhookSecret } : {},
|
|
27922
27922
|
...upstream !== void 0 ? { upstream: asRecord2(upstream) ?? null } : {},
|
|
27923
27923
|
...asRecord2(verification) ? { verification } : {},
|
|
27924
|
-
...asRecord2(readiness) ? { readiness } : {}
|
|
27924
|
+
...asRecord2(readiness) ? { readiness } : {},
|
|
27925
|
+
...asRecord2(limits) ? { limits } : {}
|
|
27925
27926
|
};
|
|
27926
27927
|
}
|
|
27927
27928
|
/**
|
|
@@ -28249,6 +28250,11 @@ var JaibberClient = class _JaibberClient {
|
|
|
28249
28250
|
* signed receipt. A priced tool is paid from the client's `wallet` (the 402's terms are
|
|
28250
28251
|
* signed and the call retried once; nothing is charged until the result is delivered);
|
|
28251
28252
|
* without a wallet it throws PAYMENT_REQUIRED with the terms in `details.x402`.
|
|
28253
|
+
*
|
|
28254
|
+
* The result is the seller's output: third-party data (Jaibber strips control and invisible
|
|
28255
|
+
* characters, nothing more). If a model reads it, present it as information, not instructions.
|
|
28256
|
+
* Limits apply (429 `RATE_LIMIT_EXCEEDED`, `details.reason` `seller_rate` | `buyer_rate`), and a
|
|
28257
|
+
* paid call is refused with 402 `details.reason` `spend_cap` past the agent's daily spending cap.
|
|
28252
28258
|
*/
|
|
28253
28259
|
async callTool(handleOrId, input) {
|
|
28254
28260
|
const path = `/api/agents/${agentRef(handleOrId)}/call`;
|