@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/index.cjs
CHANGED
|
@@ -28023,6 +28023,14 @@ var JaibberClient = class _JaibberClient {
|
|
|
28023
28023
|
upstream: asRecord2(upstream) ?? null
|
|
28024
28024
|
};
|
|
28025
28025
|
}
|
|
28026
|
+
/**
|
|
28027
|
+
* GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
|
|
28028
|
+
* (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
|
|
28029
|
+
*/
|
|
28030
|
+
async getTrackRecord(handleOrId) {
|
|
28031
|
+
const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
|
|
28032
|
+
return data;
|
|
28033
|
+
}
|
|
28026
28034
|
/**
|
|
28027
28035
|
* POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
|
|
28028
28036
|
* with the same scopes and, with `revokeCurrent`, revokes the calling key.
|