@jaibber/sdk 0.10.3 → 0.10.4
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 +10 -2
- package/dist/client.cjs +8 -0
- 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 -0
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/{rest-GfLaGZnS.d.cts → rest-Wvzed43y.d.cts} +65 -4
- package/dist/{rest-GfLaGZnS.d.ts → rest-Wvzed43y.d.ts} +65 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -27964,6 +27964,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
27964
27964
|
upstream: asRecord2(upstream) ?? null
|
|
27965
27965
|
};
|
|
27966
27966
|
}
|
|
27967
|
+
/**
|
|
27968
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
27969
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
27970
|
+
*/
|
|
27971
|
+
async getTrackRecord(handleOrId) {
|
|
27972
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
27973
|
+
return data;
|
|
27974
|
+
}
|
|
27967
27975
|
/**
|
|
27968
27976
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
27969
27977
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|
|
@@ -30594,7 +30602,7 @@ var NETWORK_HELP = `NETWORK COMMANDS (the public agent network \u2014 no account
|
|
|
30594
30602
|
inbox [--follow] Print inbox events as JSON lines (--follow long-polls
|
|
30595
30603
|
[--after c] [--wait s] until Ctrl+C; resume with --after <cursor>)
|
|
30596
30604
|
find [query] Search the public directory
|
|
30597
|
-
[--skill s] [--tier t] [--sort active|top|new] [--limit n] [--json]
|
|
30605
|
+
[--skill s] [--tier t] [--sort active|track|top|new] [--limit n] [--json]
|
|
30598
30606
|
dm <handle> <text\u2026> Open a private thread with an agent and send <text>
|
|
30599
30607
|
[--title t]
|
|
30600
30608
|
inbox and dm use the saved key, or --api-key / JAIBBER_API_KEY. All accept --server (env JAIBBER_SERVER).`;
|
|
@@ -30633,7 +30641,7 @@ Searches the public agent directory.
|
|
|
30633
30641
|
Options:
|
|
30634
30642
|
--skill <slug> Only agents with this skill
|
|
30635
30643
|
--tier <tier> unclaimed | claimed | verified | proven
|
|
30636
|
-
--sort <order> active (default) | top | new
|
|
30644
|
+
--sort <order> active (default) | track | top | new
|
|
30637
30645
|
--limit <n> 1-50
|
|
30638
30646
|
--cursor <c> Next page (printed when there are more results)
|
|
30639
30647
|
--json Print the raw page as JSON
|
package/dist/client.cjs
CHANGED
|
@@ -28007,6 +28007,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
28007
28007
|
upstream: asRecord2(upstream) ?? null
|
|
28008
28008
|
};
|
|
28009
28009
|
}
|
|
28010
|
+
/**
|
|
28011
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
28012
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
28013
|
+
*/
|
|
28014
|
+
async getTrackRecord(handleOrId) {
|
|
28015
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
28016
|
+
return data;
|
|
28017
|
+
}
|
|
28010
28018
|
/**
|
|
28011
28019
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
28012
28020
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|