@tinycloud/node-sdk 3.8.0-beta.5 → 3.8.0-beta.6
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/{TinyCloudNode-CxRHpusk.d.cts → TinyCloudNode-C0LgPzzJ.d.cts} +1 -1
- package/dist/{TinyCloudNode-BKFo3t4u.d.ts → TinyCloudNode-jPL2UqH5.d.ts} +1 -1
- package/dist/{authority-gdjLIlC3.d.cts → authority-Dkhr6n-f.d.cts} +1 -1
- package/dist/{authority-BV9Nwh8x.d.ts → authority-DvHTgPC4.d.ts} +1 -1
- package/dist/core.cjs +3 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +3 -2
- package/dist/core.js.map +1 -1
- package/dist/encryption-keys.d.cts +1 -1
- package/dist/encryption-keys.d.ts +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/replication/authority.d.cts +2 -2
- package/dist/replication/authority.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
2
2
|
export { DecryptManyResult, KeyCallOptions, KeyDescriptor, KeyEncryptOptions, NamedKeyClient, NamedKeyEnvelope, NamedKeyError, NamedKeyErrorCode, PublicKeyDescriptor, buildKeyAdminFacts, buildKeyDescribeFacts } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
3
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
3
|
+
import { T as TinyCloudNode } from './TinyCloudNode-C0LgPzzJ.cjs';
|
|
4
4
|
import '@tinycloud/sdk-core';
|
|
5
5
|
import '@tinycloud/sdk-services/kv/replication';
|
|
6
6
|
import '@tinycloud/sdk-services';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
2
2
|
export { DecryptManyResult, KeyCallOptions, KeyDescriptor, KeyEncryptOptions, NamedKeyClient, NamedKeyEnvelope, NamedKeyError, NamedKeyErrorCode, PublicKeyDescriptor, buildKeyAdminFacts, buildKeyDescribeFacts } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
3
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
3
|
+
import { T as TinyCloudNode } from './TinyCloudNode-jPL2UqH5.js';
|
|
4
4
|
import '@tinycloud/sdk-core';
|
|
5
5
|
import '@tinycloud/sdk-services/kv/replication';
|
|
6
6
|
import '@tinycloud/sdk-services';
|
package/dist/index.cjs
CHANGED
|
@@ -21201,6 +21201,7 @@ var ROOT_DELEGATION_ACTIONS = [
|
|
|
21201
21201
|
import_sdk_core10.DUCKDB.ALL
|
|
21202
21202
|
];
|
|
21203
21203
|
var DEFAULT_SESSION_EXPIRATION_MS = import_sdk_core10.EXPIRY.SESSION_MS;
|
|
21204
|
+
var OWNER_REVOCATION_WINDOW_MS = 10 * 6e4;
|
|
21204
21205
|
function unifiedRootAttenuation(capabilities) {
|
|
21205
21206
|
const attenuation = {};
|
|
21206
21207
|
for (const capability of capabilities) {
|
|
@@ -25451,7 +25452,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25451
25452
|
* Sign a wallet (CACAO) revocation of the delegation `cid` for the node's
|
|
25452
25453
|
* `POST /revoke`, and return its Authorization header value. The node
|
|
25453
25454
|
* accepts it when the owner delegated `cid` or owns a space its abilities
|
|
25454
|
-
* target, whichever key issued it. Valid for
|
|
25455
|
+
* target, whichever key issued it. Valid for 10 minutes. Requires the
|
|
25455
25456
|
* owner wallet signer.
|
|
25456
25457
|
*/
|
|
25457
25458
|
async signOwnerRevocation(cid) {
|
|
@@ -25467,7 +25468,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25467
25468
|
chainId: session.chainId,
|
|
25468
25469
|
nonce: (0, import_siwe2.generateNonce)(),
|
|
25469
25470
|
issuedAt: issuedAt.toISOString(),
|
|
25470
|
-
expirationTime: new Date(issuedAt.getTime() +
|
|
25471
|
+
expirationTime: new Date(issuedAt.getTime() + OWNER_REVOCATION_WINDOW_MS).toISOString()
|
|
25471
25472
|
}).prepareMessage();
|
|
25472
25473
|
const signature2 = await this.signer.signMessage(siwe);
|
|
25473
25474
|
return this.wasmBindings.siweToDelegationHeaders({ siwe, signature: signature2 }).Authorization;
|