@inixiative/signet 0.3.0 → 0.3.1
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/README.md +1 -1
- package/package.json +2 -2
- package/src/client.ts +5 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ This package is the one implementation of that protocol, shared by Kingdom (whic
|
|
|
13
13
|
- an **Installation** (a local Foundry, Archive or Oracle) is an actor known to Kingdom by its key: `registerInstallation`, then `requestRegistration` returns a review code a person claims in Kingdom (a `registerIntegration` Inquiry), then `collectSignet` and `saveCollectedSignet`. `installationInquiries`, `installationSignets`, `cancelInstallationInquiry`, `enrollInstallationSignet` and `rotateInstallationKey` act as the installation;
|
|
14
14
|
- `pairInstallation` does the whole pairing (register, request, wait on the socket, confirm the owner, collect) and `holdInstallationSignets` keeps one credential file per Signet the installation's integrations hold, enrolling later grants and dropping revoked ones;
|
|
15
15
|
- `InstallationSocket`, Kingdom's live line to an installation: it proves the key, receives a snapshot of the installation's inquiries and Signets on connect and on every change, keeps the installation's integrations marked online, advertises its viewer URL, and polls the same reads while the socket is down;
|
|
16
|
-
- `SignetClient`, which renews its access token and signs each call: `describe`, `execute`, task settlement, and the run actions a Foundry uses for inference (`resolveRun`, `delegateRun`, `renewRun`, `revokeRun`)
|
|
16
|
+
- `SignetClient`, which renews its access token and signs each call: `describe`, `execute`, task settlement, and the run actions a Foundry uses for inference (`resolveRun`, `delegateRun`, `renewRun`, `revokeRun`), and for a subscription run `releaseSubscription` and `reportSubscriptionLimits`.
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
19
|
import { holdInstallationSignets, InstallationSocket, pairInstallation, SignetClient } from '@inixiative/signet';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inixiative/signet",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Present Kingdom Signets: the wire contracts, DPoP proofs, device pairing and a renewing client shared by Kingdom, Archive, Foundry and Oracle.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@biomejs/biome": "2.5.2",
|
|
37
|
-
"@inixiative/config": "^0.5.
|
|
37
|
+
"@inixiative/config": "^0.5.74",
|
|
38
38
|
"@types/bun": "1.4.2",
|
|
39
39
|
"lefthook": "2.1.9",
|
|
40
40
|
"typescript": "6.0.3",
|
package/src/client.ts
CHANGED
|
@@ -411,7 +411,9 @@ export type SignetAction =
|
|
|
411
411
|
| 'resolveRun'
|
|
412
412
|
| 'delegateRun'
|
|
413
413
|
| 'renewRun'
|
|
414
|
-
| 'revokeRun'
|
|
414
|
+
| 'revokeRun'
|
|
415
|
+
| 'releaseSubscription'
|
|
416
|
+
| 'reportSubscriptionLimits';
|
|
415
417
|
const signetActions: SignetAction[] = [
|
|
416
418
|
'describe',
|
|
417
419
|
'execute',
|
|
@@ -422,6 +424,8 @@ const signetActions: SignetAction[] = [
|
|
|
422
424
|
'delegateRun',
|
|
423
425
|
'renewRun',
|
|
424
426
|
'revokeRun',
|
|
427
|
+
'releaseSubscription',
|
|
428
|
+
'reportSubscriptionLimits',
|
|
425
429
|
];
|
|
426
430
|
|
|
427
431
|
/** Presents one enrolled Signet: renews its access token and signs each call with the device key. */
|