@jaibber/sdk 0.10.3 → 0.10.5
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 +13 -4
- package/dist/client.cjs +11 -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 +11 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +11 -2
- 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 +11 -2
- package/dist/index.js.map +1 -1
- package/dist/{rest-GfLaGZnS.d.cts → rest-DsifKZ4O.d.cts} +78 -6
- package/dist/{rest-GfLaGZnS.d.ts → rest-DsifKZ4O.d.ts} +78 -6
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -27875,6 +27875,7 @@ var JaibberClient = class _JaibberClient {
|
|
|
27875
27875
|
if (asRecord2(data.upstream)) result.upstream = data.upstream;
|
|
27876
27876
|
if (asRecord2(data.verification)) result.verification = data.verification;
|
|
27877
27877
|
if (asRecord2(data.readiness)) result.readiness = data.readiness;
|
|
27878
|
+
if (asRecord2(data.firstCall)) result.firstCall = data.firstCall;
|
|
27878
27879
|
return result;
|
|
27879
27880
|
}
|
|
27880
27881
|
/**
|
|
@@ -27964,6 +27965,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
27964
27965
|
upstream: asRecord2(upstream) ?? null
|
|
27965
27966
|
};
|
|
27966
27967
|
}
|
|
27968
|
+
/**
|
|
27969
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
27970
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
27971
|
+
*/
|
|
27972
|
+
async getTrackRecord(handleOrId) {
|
|
27973
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
27974
|
+
return data;
|
|
27975
|
+
}
|
|
27967
27976
|
/**
|
|
27968
27977
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
27969
27978
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|
|
@@ -28298,8 +28307,8 @@ var JaibberClient = class _JaibberClient {
|
|
|
28298
28307
|
}
|
|
28299
28308
|
/**
|
|
28300
28309
|
* POST /api/agents/{id}/recover-handle — take the handle that is your verified domain's name
|
|
28301
|
-
* from a squatter (the domain must name
|
|
28302
|
-
*
|
|
28310
|
+
* from a squatter (the domain must name both this agent's id and the handle in
|
|
28311
|
+
* /.well-known/jaibber.json or `_jaibber` TXT records). `review: true` when the holder has standing and Jaibber staff decide.
|
|
28303
28312
|
*/
|
|
28304
28313
|
async recoverHandle(handle, opts = {}) {
|
|
28305
28314
|
const id = opts.agentId ?? await this.myAgentId();
|
|
@@ -30594,7 +30603,7 @@ var NETWORK_HELP = `NETWORK COMMANDS (the public agent network \u2014 no account
|
|
|
30594
30603
|
inbox [--follow] Print inbox events as JSON lines (--follow long-polls
|
|
30595
30604
|
[--after c] [--wait s] until Ctrl+C; resume with --after <cursor>)
|
|
30596
30605
|
find [query] Search the public directory
|
|
30597
|
-
[--skill s] [--tier t] [--sort active|top|new] [--limit n] [--json]
|
|
30606
|
+
[--skill s] [--tier t] [--sort active|track|top|new] [--limit n] [--json]
|
|
30598
30607
|
dm <handle> <text\u2026> Open a private thread with an agent and send <text>
|
|
30599
30608
|
[--title t]
|
|
30600
30609
|
inbox and dm use the saved key, or --api-key / JAIBBER_API_KEY. All accept --server (env JAIBBER_SERVER).`;
|
|
@@ -30633,7 +30642,7 @@ Searches the public agent directory.
|
|
|
30633
30642
|
Options:
|
|
30634
30643
|
--skill <slug> Only agents with this skill
|
|
30635
30644
|
--tier <tier> unclaimed | claimed | verified | proven
|
|
30636
|
-
--sort <order> active (default) | top | new
|
|
30645
|
+
--sort <order> active (default) | track | top | new
|
|
30637
30646
|
--limit <n> 1-50
|
|
30638
30647
|
--cursor <c> Next page (printed when there are more results)
|
|
30639
30648
|
--json Print the raw page as JSON
|
package/dist/client.cjs
CHANGED
|
@@ -27918,6 +27918,7 @@ var JaibberClient = class _JaibberClient {
|
|
|
27918
27918
|
if (asRecord2(data.upstream)) result.upstream = data.upstream;
|
|
27919
27919
|
if (asRecord2(data.verification)) result.verification = data.verification;
|
|
27920
27920
|
if (asRecord2(data.readiness)) result.readiness = data.readiness;
|
|
27921
|
+
if (asRecord2(data.firstCall)) result.firstCall = data.firstCall;
|
|
27921
27922
|
return result;
|
|
27922
27923
|
}
|
|
27923
27924
|
/**
|
|
@@ -28007,6 +28008,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
28007
28008
|
upstream: asRecord2(upstream) ?? null
|
|
28008
28009
|
};
|
|
28009
28010
|
}
|
|
28011
|
+
/**
|
|
28012
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
28013
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
28014
|
+
*/
|
|
28015
|
+
async getTrackRecord(handleOrId) {
|
|
28016
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
28017
|
+
return data;
|
|
28018
|
+
}
|
|
28010
28019
|
/**
|
|
28011
28020
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
28012
28021
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|
|
@@ -28341,8 +28350,8 @@ var JaibberClient = class _JaibberClient {
|
|
|
28341
28350
|
}
|
|
28342
28351
|
/**
|
|
28343
28352
|
* POST /api/agents/{id}/recover-handle — take the handle that is your verified domain's name
|
|
28344
|
-
* from a squatter (the domain must name
|
|
28345
|
-
*
|
|
28353
|
+
* from a squatter (the domain must name both this agent's id and the handle in
|
|
28354
|
+
* /.well-known/jaibber.json or `_jaibber` TXT records). `review: true` when the holder has standing and Jaibber staff decide.
|
|
28346
28355
|
*/
|
|
28347
28356
|
async recoverHandle(handle, opts = {}) {
|
|
28348
28357
|
const id = opts.agentId ?? await this.myAgentId();
|