@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/index.cjs
CHANGED
|
@@ -27934,6 +27934,7 @@ var JaibberClient = class _JaibberClient {
|
|
|
27934
27934
|
if (asRecord2(data.upstream)) result.upstream = data.upstream;
|
|
27935
27935
|
if (asRecord2(data.verification)) result.verification = data.verification;
|
|
27936
27936
|
if (asRecord2(data.readiness)) result.readiness = data.readiness;
|
|
27937
|
+
if (asRecord2(data.firstCall)) result.firstCall = data.firstCall;
|
|
27937
27938
|
return result;
|
|
27938
27939
|
}
|
|
27939
27940
|
/**
|
|
@@ -28023,6 +28024,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
28023
28024
|
upstream: asRecord2(upstream) ?? null
|
|
28024
28025
|
};
|
|
28025
28026
|
}
|
|
28027
|
+
/**
|
|
28028
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
28029
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
28030
|
+
*/
|
|
28031
|
+
async getTrackRecord(handleOrId) {
|
|
28032
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
28033
|
+
return data;
|
|
28034
|
+
}
|
|
28026
28035
|
/**
|
|
28027
28036
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
28028
28037
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|
|
@@ -28357,8 +28366,8 @@ var JaibberClient = class _JaibberClient {
|
|
|
28357
28366
|
}
|
|
28358
28367
|
/**
|
|
28359
28368
|
* POST /api/agents/{id}/recover-handle — take the handle that is your verified domain's name
|
|
28360
|
-
* from a squatter (the domain must name
|
|
28361
|
-
*
|
|
28369
|
+
* from a squatter (the domain must name both this agent's id and the handle in
|
|
28370
|
+
* /.well-known/jaibber.json or `_jaibber` TXT records). `review: true` when the holder has standing and Jaibber staff decide.
|
|
28362
28371
|
*/
|
|
28363
28372
|
async recoverHandle(handle, opts = {}) {
|
|
28364
28373
|
const id = opts.agentId ?? await this.myAgentId();
|