@kubun/plugin-service-api 0.15.0 → 0.16.0

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +7 -0
  2. package/package.json +4 -3
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { ProtocolDefinition, ServerTransportOf } from '@enkaku/protocol';
2
2
  import type { AccessRules } from '@enkaku/server';
3
+ import type { DIDCache } from '@kokuin/token';
3
4
  export type { AccessRules };
4
5
  /**
5
6
  * Permissive protocol at the host's merge boundary. The host serves the union of
@@ -97,6 +98,12 @@ export type ServiceServerServeParams = {
97
98
  * `accessRules`/`authorizer` are moot when set.
98
99
  */
99
100
  requireAuth?: false;
101
+ /**
102
+ * Shared DID cache handed to the served Server, so a co-member's short-form
103
+ * `did:peer:4` token issuer resolves off a roster-seeded document rather than
104
+ * needing a resolver the blind lane has none of.
105
+ */
106
+ cache?: DIDCache;
100
107
  /** Aborts the server when signalled. */
101
108
  signal?: AbortSignal;
102
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubun/plugin-service-api",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "keywords": [],
5
5
  "license": "see LICENSE.md",
6
6
  "sideEffects": false,
@@ -15,8 +15,9 @@
15
15
  "LICENSE.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@enkaku/protocol": "^0.21.0",
19
- "@enkaku/server": "^0.21.2"
18
+ "@enkaku/protocol": "^0.21.1",
19
+ "@enkaku/server": "^0.21.2",
20
+ "@kokuin/token": "^0.5.0"
20
21
  },
21
22
  "publishConfig": {
22
23
  "access": "public"