@tinycloud/sdk-core 2.11.0-beta.8 → 2.11.0-beta.9
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/bootstrap/index.cjs +0 -4
- package/dist/{capability-BjzXwtNw.d.cts → capability-BA49Uboq.d.cts} +1 -1
- package/dist/{capability-BjzXwtNw.d.ts → capability-BA49Uboq.d.ts} +1 -1
- package/dist/delegations/index.cjs +10 -93
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.js +10 -8
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +250 -367
- 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 +247 -48
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +10 -74
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +4 -4
- package/dist/policy/index.d.ts +4 -4
- package/dist/policy/index.js +10 -8
- package/dist/policy/index.js.map +1 -1
- package/dist/requester/index.cjs +10 -38
- package/dist/requester/index.cjs.map +1 -1
- package/dist/requester/index.d.cts +1 -1
- package/dist/requester/index.d.ts +1 -1
- package/dist/requester/index.js +10 -8
- package/dist/requester/index.js.map +1 -1
- package/dist/{signed-object-C6mWbTbB.d.ts → signed-object-B3dMzh8O.d.ts} +1 -1
- package/dist/{signed-object-IMAm5a32.d.cts → signed-object-DwPZl6kV.d.cts} +1 -1
- package/package.json +1 -1
package/dist/bootstrap/index.cjs
CHANGED
|
@@ -18,8 +18,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var bootstrap_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(bootstrap_exports);
|
|
20
20
|
__reExport(bootstrap_exports, require("@tinycloud/bootstrap"), module.exports);
|
|
21
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
-
0 && (module.exports = {
|
|
23
|
-
...require("@tinycloud/bootstrap")
|
|
24
|
-
});
|
|
25
21
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -44,4 +44,4 @@ declare function canonicalizePolicyCapability(input: unknown): PolicyCapability;
|
|
|
44
44
|
declare function policyCapabilityDigestHex(input: unknown): string;
|
|
45
45
|
declare function policyCapabilityContains(authority: unknown, request: unknown): boolean;
|
|
46
46
|
|
|
47
|
-
export { type JsonObject as J,
|
|
47
|
+
export { type JsonObject as J, type PolicyCapability as P, PolicyCapabilityError as a, type JsonValue as b, type PolicyCapabilityErrorCode as c, canonicalizePolicyCapability as d, normalizePolicyCapability as e, policyCapabilityDigestHex as f, jcsCanonicalize as j, normalizeJson as n, policyCapabilityContains as p, serialize as s };
|
|
@@ -44,4 +44,4 @@ declare function canonicalizePolicyCapability(input: unknown): PolicyCapability;
|
|
|
44
44
|
declare function policyCapabilityDigestHex(input: unknown): string;
|
|
45
45
|
declare function policyCapabilityContains(authority: unknown, request: unknown): boolean;
|
|
46
46
|
|
|
47
|
-
export { type JsonObject as J,
|
|
47
|
+
export { type JsonObject as J, type PolicyCapability as P, PolicyCapabilityError as a, type JsonValue as b, type PolicyCapabilityErrorCode as c, canonicalizePolicyCapability as d, normalizePolicyCapability as e, policyCapabilityDigestHex as f, jcsCanonicalize as j, normalizeJson as n, policyCapabilityContains as p, serialize as s };
|
|
@@ -2264,13 +2264,12 @@ function digest(input, options) {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
var identity2 = { code: code2, name, encode: encode4, digest };
|
|
2266
2266
|
|
|
2267
|
-
// ../../node_modules/multiformats/dist/src/hashes/sha2.js
|
|
2268
|
-
var
|
|
2269
|
-
__export(
|
|
2267
|
+
// ../../node_modules/multiformats/dist/src/hashes/sha2-browser.js
|
|
2268
|
+
var sha2_browser_exports = {};
|
|
2269
|
+
__export(sha2_browser_exports, {
|
|
2270
2270
|
sha256: () => sha256,
|
|
2271
2271
|
sha512: () => sha512
|
|
2272
2272
|
});
|
|
2273
|
-
var import_crypto = __toESM(require("crypto"), 1);
|
|
2274
2273
|
|
|
2275
2274
|
// ../../node_modules/multiformats/dist/src/hashes/hasher.js
|
|
2276
2275
|
var DEFAULT_MIN_DIGEST_LENGTH = 20;
|
|
@@ -2320,16 +2319,19 @@ function createDigest(digest4, code3, truncate) {
|
|
|
2320
2319
|
return create(code3, digest4);
|
|
2321
2320
|
}
|
|
2322
2321
|
|
|
2323
|
-
// ../../node_modules/multiformats/dist/src/hashes/sha2.js
|
|
2322
|
+
// ../../node_modules/multiformats/dist/src/hashes/sha2-browser.js
|
|
2323
|
+
function sha(name2) {
|
|
2324
|
+
return async (data) => new Uint8Array(await crypto.subtle.digest(name2, data));
|
|
2325
|
+
}
|
|
2324
2326
|
var sha256 = from2({
|
|
2325
2327
|
name: "sha2-256",
|
|
2326
2328
|
code: 18,
|
|
2327
|
-
encode: (
|
|
2329
|
+
encode: sha("SHA-256")
|
|
2328
2330
|
});
|
|
2329
2331
|
var sha512 = from2({
|
|
2330
2332
|
name: "sha2-512",
|
|
2331
2333
|
code: 19,
|
|
2332
|
-
encode: (
|
|
2334
|
+
encode: sha("SHA-512")
|
|
2333
2335
|
});
|
|
2334
2336
|
|
|
2335
2337
|
// ../../node_modules/multiformats/dist/src/cid.js
|
|
@@ -2671,7 +2673,7 @@ var cidSymbol = /* @__PURE__ */ Symbol.for("@ipld/js-cid/CID");
|
|
|
2671
2673
|
|
|
2672
2674
|
// ../../node_modules/multiformats/dist/src/basics.js
|
|
2673
2675
|
var bases = { ...identity_exports, ...base2_exports, ...base8_exports, ...base10_exports, ...base16_exports, ...base32_exports, ...base36_exports, ...base58_exports, ...base64_exports, ...base256emoji_exports };
|
|
2674
|
-
var hashes = { ...
|
|
2676
|
+
var hashes = { ...sha2_browser_exports, ...identity_exports2 };
|
|
2675
2677
|
|
|
2676
2678
|
// src/delegations/SharingService.ts
|
|
2677
2679
|
var import_ed255193 = require("@noble/curves/ed25519");
|
|
@@ -6506,89 +6508,4 @@ var SenderShareStore = class {
|
|
|
6506
6508
|
// src/delegations/index.ts
|
|
6507
6509
|
var import_share_sdk = require("@tinycloud/share-sdk");
|
|
6508
6510
|
var import_share_sdk2 = require("@tinycloud/share-sdk");
|
|
6509
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
6510
|
-
0 && (module.exports = {
|
|
6511
|
-
DelegationErrorCodes,
|
|
6512
|
-
DelegationManager,
|
|
6513
|
-
EncodedShareDataSchema,
|
|
6514
|
-
EncryptedSenderShareHistory,
|
|
6515
|
-
MAX_CONTENT_BYTES,
|
|
6516
|
-
MAX_SEALED_SHARE_CONTENT_BYTES,
|
|
6517
|
-
MAX_SHARE_ARTIFACT_BYTES,
|
|
6518
|
-
MAX_SHARE_CONTENT_BYTES,
|
|
6519
|
-
MemoryEncryptedShareHistoryStorage,
|
|
6520
|
-
MemorySenderShareKeyStorage,
|
|
6521
|
-
MemorySenderShareRecordStorage,
|
|
6522
|
-
MemoryShareCache,
|
|
6523
|
-
ReceiveOptionsSchema,
|
|
6524
|
-
SHARE_DELIVERY_AUTHORIZATION_DOMAIN,
|
|
6525
|
-
SenderShareStore,
|
|
6526
|
-
ShareAccessError,
|
|
6527
|
-
ShareActionSchema,
|
|
6528
|
-
ShareAddressedDelegationEnvelopeV2Schema,
|
|
6529
|
-
ShareAddressedDelegationRequestV2Schema,
|
|
6530
|
-
ShareAddressedDelegationResponseV2Schema,
|
|
6531
|
-
ShareConflict,
|
|
6532
|
-
ShareEnvelopeError,
|
|
6533
|
-
ShareNativeResponseSchema,
|
|
6534
|
-
ShareReceiveError,
|
|
6535
|
-
ShareRecipientClient,
|
|
6536
|
-
ShareRecipientClientOptionsSchema,
|
|
6537
|
-
ShareRecipientPolicySchema,
|
|
6538
|
-
ShareRecipientTargetSchema,
|
|
6539
|
-
ShareResourceSchema,
|
|
6540
|
-
SharingService,
|
|
6541
|
-
SharingServiceConfigSchema,
|
|
6542
|
-
authorizationMethodForTarget,
|
|
6543
|
-
authorizeShare,
|
|
6544
|
-
canonicalOwnerSharePolicy,
|
|
6545
|
-
claimShare,
|
|
6546
|
-
computeOwnerShareRegistrationCid,
|
|
6547
|
-
computeShareCid,
|
|
6548
|
-
createDelegatedShareKey,
|
|
6549
|
-
createPolicyEnforcementDelegation,
|
|
6550
|
-
createShareArtifact,
|
|
6551
|
-
createShareArtifactAsync,
|
|
6552
|
-
createSharePolicy,
|
|
6553
|
-
createSharingService,
|
|
6554
|
-
decryptShareBytesAsync,
|
|
6555
|
-
encodeInlineShareUrl,
|
|
6556
|
-
encodeShareArtifact,
|
|
6557
|
-
encodeShareUrl,
|
|
6558
|
-
encryptShareBytes,
|
|
6559
|
-
encryptShareBytesAsync,
|
|
6560
|
-
inspectShare,
|
|
6561
|
-
intersectShareCapabilities,
|
|
6562
|
-
isLegacyShareLink,
|
|
6563
|
-
isV2ShareLink,
|
|
6564
|
-
listShares,
|
|
6565
|
-
migrateShare,
|
|
6566
|
-
normalizeShareActions,
|
|
6567
|
-
normalizeShareRecipientTarget,
|
|
6568
|
-
normalizeShareResource,
|
|
6569
|
-
notifyShare,
|
|
6570
|
-
parseShareArtifact,
|
|
6571
|
-
parseShareUrl,
|
|
6572
|
-
publishPolicyShare,
|
|
6573
|
-
publishTargetShare,
|
|
6574
|
-
receiveLegacyShare,
|
|
6575
|
-
receiveShare,
|
|
6576
|
-
restoreDelegatedShareKey,
|
|
6577
|
-
resumeShareAuthorization,
|
|
6578
|
-
revokeShare,
|
|
6579
|
-
shareCapabilityAllows,
|
|
6580
|
-
shareDeliveryTrustedKid,
|
|
6581
|
-
showShare,
|
|
6582
|
-
signShareEnvelope,
|
|
6583
|
-
toShareErrorInfo,
|
|
6584
|
-
validateEncodedShareData,
|
|
6585
|
-
validateOwnerSharePolicyRegistration,
|
|
6586
|
-
validateOwnerSharePolicyRegistrationBytes,
|
|
6587
|
-
validateReceiveOptions,
|
|
6588
|
-
validateShareDeliveryAuthorizationBytes,
|
|
6589
|
-
validateSharingServiceConfig,
|
|
6590
|
-
verifyBearerEnvelope,
|
|
6591
|
-
verifyShareCid,
|
|
6592
|
-
verifyShareEnvelope
|
|
6593
|
-
});
|
|
6594
6511
|
//# sourceMappingURL=index.cjs.map
|