@tinycloud/sdk-core 2.11.0-beta.9 → 2.11.1-beta.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.
- package/dist/{capability-BA49Uboq.d.cts → capability-BjzXwtNw.d.cts} +1 -1
- package/dist/{capability-BA49Uboq.d.ts → capability-BjzXwtNw.d.ts} +1 -1
- package/dist/credential-admission-C_cO1QqB.d.cts +781 -0
- package/dist/credential-admission-cvHe-HUC.d.ts +781 -0
- package/dist/delegations/index.cjs +620 -221
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +32 -32
- package/dist/delegations/index.d.ts +32 -32
- package/dist/delegations/index.js +622 -223
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +3162 -1255
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +348 -18
- package/dist/index.d.ts +348 -18
- package/dist/index.js +3959 -2050
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +1273 -175
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +5 -4
- package/dist/policy/index.d.ts +5 -4
- package/dist/policy/index.js +1274 -176
- package/dist/policy/index.js.map +1 -1
- package/dist/{recipient-types.schema-D5pDlIqn.d.cts → recipient-types.schema-G8NEKRoo.d.cts} +240 -183
- package/dist/{recipient-types.schema-D5pDlIqn.d.ts → recipient-types.schema-G8NEKRoo.d.ts} +240 -183
- 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 +1 -1
- package/dist/requester/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/signed-object-B3dMzh8O.d.ts +0 -149
- package/dist/signed-object-DwPZl6kV.d.cts +0 -149
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-
|
|
2
|
-
export { A as AccountDelegationPage, b as AccountDelegationQueryOptions, c as AccountDelegationRecord, d as AccountDelegationResource, C as CapabilityEntry, e as CreateDelegationParams, f as CreateDelegationWasmParams, g as CreateDelegationWasmResult, h as CreateOwnerDelegationParams, i as DelegateReceivedShareParams, j as DelegatedResource, k as DelegatedShareAccess, l as DelegatedShareKey, m as Delegation, n as DelegationApiResponse, o as DelegationChain, p as DelegationChainV2, q as DelegationDirection, r as DelegationErrorCode, s as DelegationErrorCodes, t as DelegationFilters, u as DelegationManagerConfig, v as DelegationRecord, w as DelegationRevocationReceipt, x as DelegationStatus, E as EncodedShareData, G as GenerateShareParams, y as ISharingService, z as IngestOptions, J as JWK, K as KeyInfo, B as KeyProvider, F as KeyType, M as MAX_CONTENT_BYTES, H as MAX_SEALED_SHARE_CONTENT_BYTES, L as MAX_SHARE_ARTIFACT_BYTES, N as MAX_SHARE_CONTENT_BYTES, O as MemorySenderShareKeyStorage, P as MemorySenderShareRecordStorage, Q as MemoryShareCache, S as OwnerDelegationPermission, T as OwnerDelegationReceipt, U as OwnerShareAction, V as OwnerShareDecryption, W as OwnerShareMatcher, X as OwnerSharePolicyRegistration, Y as OwnerSharePolicyRegistrationReceipt, Z as OwnerSharePolicyV2, _ as
|
|
1
|
+
import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-G8NEKRoo.cjs';
|
|
2
|
+
export { A as AccountDelegationPage, b as AccountDelegationQueryOptions, c as AccountDelegationRecord, d as AccountDelegationResource, C as CapabilityEntry, e as CreateDelegationParams, f as CreateDelegationWasmParams, g as CreateDelegationWasmResult, h as CreateOwnerDelegationParams, i as DelegateReceivedShareParams, j as DelegatedResource, k as DelegatedShareAccess, l as DelegatedShareKey, m as Delegation, n as DelegationApiResponse, o as DelegationChain, p as DelegationChainV2, q as DelegationDirection, r as DelegationErrorCode, s as DelegationErrorCodes, t as DelegationFilters, u as DelegationManagerConfig, v as DelegationRecord, w as DelegationRevocationReceipt, x as DelegationStatus, E as EncodedShareData, G as GenerateShareParams, y as ISharingService, z as IngestOptions, J as JWK, K as KeyInfo, B as KeyProvider, F as KeyType, M as MAX_CONTENT_BYTES, H as MAX_SEALED_SHARE_CONTENT_BYTES, L as MAX_SHARE_ARTIFACT_BYTES, N as MAX_SHARE_CONTENT_BYTES, O as MemorySenderShareKeyStorage, P as MemorySenderShareRecordStorage, Q as MemoryShareCache, S as OwnerDelegationPermission, T as OwnerDelegationReceipt, U as OwnerShareAction, V as OwnerShareDecryption, W as OwnerShareMatcher, X as OwnerSharePolicyRegistration, Y as OwnerSharePolicyRegistrationReceipt, Z as OwnerSharePolicyV2, _ as PortableDelegationImportReceipt, $ as ReceiveOptions, a0 as RegisterOwnerSharePolicyParams, a1 as SHARE_DELIVERY_AUTHORIZATION_DOMAIN, a2 as SenderShareKeyStorage, a3 as SenderShareRecord, a4 as SenderShareRecordStorage, a5 as SenderShareRevocationScope, a6 as SenderShareStore, a7 as ShareAccess, a8 as ShareAccessError, a9 as ShareAccessV2, aa as ShareAction, ab as ShareActionSchema, ac as ShareAddressedDelegationEnvelopeV2, ad as ShareAddressedDelegationEnvelopeV2Schema, ae as ShareAddressedDelegationRequestV2, af as ShareAddressedDelegationRequestV2Schema, ag as ShareAddressedDelegationResponseV2, ah as ShareAddressedDelegationResponseV2Schema, ai as ShareAddressedRecipientMatcher, aj as ShareArtifactInput, ak as ShareArtifactResult, al as ShareArtifactV2, am as ShareCache, an as ShareCacheEntry, ao as ShareCacheKey, ap as ShareCacheMetadata, aq as ShareCapabilityLike, ar as ShareConflict, as as ShareContentMetadata, at as ShareContentSource, au as ShareDeliveryAuthorization, av as ShareDeliveryAuthorizationReceipt, aw as ShareDeliveryAuthorizationRequest, ax as ShareDetachedProof, ay as ShareEnvelopeError, az as ShareEnvelopeV2, aA as ShareExpiryBounds, aB as ShareKvContentSource, aC as ShareLink, aD as ShareLinkData, aE as ShareLinkLocation, aF as ShareListEntry, aG as ShareListResult, aH as ShareNativeAction, aI as ShareNativeInvokeEnvelopeV1, aJ as ShareNativeInvokeErrorResult, aK as ShareNativeInvokeInput, aL as ShareNativeInvokeResult, aM as ShareNativeInvokeSuccessResult, aN as ShareNativeResponse, aO as ShareNativeResponseSchema, aP as SharePolicy, aQ as SharePolicyBinding, aR as SharePolicySession, aS as SharePolicySessionV1, aT as SharePolicySessionWireV1, aU as SharePortableDelegation, aV as ShareReadInvocationV1, aW as ShareReadResult, aX as ShareRecipientClient, aY as ShareRecipientClientOptions, aZ as ShareRecipientClientOptionsSchema, a_ as ShareRecipientPolicy, a$ as ShareRecipientPolicySchema, b0 as ShareRecipientResult, b1 as ShareRecipientTarget, b2 as ShareRecipientTargetSchema, b3 as ShareResource, b4 as ShareResourceSchema, b5 as ShareSaveOptions, b6 as ShareSchema, b7 as ShareSqlContentSource, b8 as ShareWireAction, b9 as SharingService, ba as SharingServiceConfig, bb as SignedDelegation, bc as SpaceInfo, bd as SpaceOwnership, be as ValidateShareDeliveryAuthorizationExpected, bf as VerifyShareEnvelopeOptions, bg as canonicalOwnerSharePolicy, bh as computeOwnerShareRegistrationCid, bi as computeShareCid, bj as createDelegatedShareKey, bk as createPolicyEnforcementDelegation, bl as createShareArtifact, bm as createShareArtifactAsync, bn as createSharePolicy, bo as createSharingService, bp as decryptShareBytesAsync, bq as delegatePortablePolicySession, br as encodeInlineShareUrl, bs as encodeShareArtifact, bt as encodeShareUrl, bu as encryptShareBytes, bv as encryptShareBytesAsync, bw as importPortableDelegation, bx as intersectShareCapabilities, by as isV2ShareLink, bz as normalizeShareActions, bA as normalizeShareRecipientTarget, bB as normalizeShareResource, bC as parsePortableDelegation, bD as parseShareArtifact, bE as parseShareUrl, bF as restoreDelegatedShareKey, bG as serializePortableDelegation, bH as shareCapabilityAllows, bI as shareDeliveryTrustedKid, bJ as signShareEnvelope, bK as validateOwnerSharePolicyRegistration, bL as validateOwnerSharePolicyRegistrationBytes, bM as validateShareDeliveryAuthorizationBytes, bN as verifyShareCid, bO as verifyShareEnvelope } from '../recipient-types.schema-G8NEKRoo.cjs';
|
|
3
3
|
export { EncryptedSenderShareHistory, EncryptedShareHistoryStorage, LegacyMigrationResult, LegacyShareReader, MemoryEncryptedShareHistoryStorage, ShareAuthorizationAdapter, ShareAuthorizationDenied, ShareAuthorizationMethod, ShareAuthorizationReady, ShareAuthorizationRequired, ShareAuthorizationResult, ShareDeliveryAdapter, ShareErrorCode, ShareErrorInfo, ShareFetchOptions, ShareHistoryView, ShareInspection, ShareMetadata, ShareNotifyResult, ShareNotifyState, SharePolicyPublishAdapter, ShareReceiveError, ShareReceiveResult, ShareRevocationAdapter, ShareRevocationResult, ShareTarget, TargetPublishAdapter, TargetPublishInput, TargetPublishOutcome, VerifyBearerEnvelopeOptions, authorizationMethodForTarget, authorizeShare, claimShare, inspectShare, isLegacyShareLink, listShares, migrateShare, notifyShare, publishPolicyShare, publishTargetShare, receiveLegacyShare, receiveShare, resumeShareAuthorization, revokeShare, showShare, toShareErrorInfo, verifyBearerEnvelope } from '@tinycloud/share-sdk';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ServiceSession, InvokeFunction, FetchFunction, IKVService } from '@tinycloud/sdk-services';
|
|
@@ -35,50 +35,50 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
35
35
|
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
kty: string;
|
|
38
|
+
kid?: string | undefined;
|
|
39
|
+
alg?: string | undefined;
|
|
38
40
|
crv?: string | undefined;
|
|
39
41
|
x?: string | undefined;
|
|
40
42
|
y?: string | undefined;
|
|
41
43
|
d?: string | undefined;
|
|
42
44
|
e?: string | undefined;
|
|
43
45
|
n?: string | undefined;
|
|
44
|
-
kid?: string | undefined;
|
|
45
|
-
alg?: string | undefined;
|
|
46
46
|
use?: string | undefined;
|
|
47
47
|
key_ops?: string[] | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
kty: string;
|
|
50
|
+
kid?: string | undefined;
|
|
51
|
+
alg?: string | undefined;
|
|
50
52
|
crv?: string | undefined;
|
|
51
53
|
x?: string | undefined;
|
|
52
54
|
y?: string | undefined;
|
|
53
55
|
d?: string | undefined;
|
|
54
56
|
e?: string | undefined;
|
|
55
57
|
n?: string | undefined;
|
|
56
|
-
kid?: string | undefined;
|
|
57
|
-
alg?: string | undefined;
|
|
58
58
|
use?: string | undefined;
|
|
59
59
|
key_ops?: string[] | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
kty: string;
|
|
62
|
+
kid?: string | undefined;
|
|
63
|
+
alg?: string | undefined;
|
|
62
64
|
crv?: string | undefined;
|
|
63
65
|
x?: string | undefined;
|
|
64
66
|
y?: string | undefined;
|
|
65
67
|
d?: string | undefined;
|
|
66
68
|
e?: string | undefined;
|
|
67
69
|
n?: string | undefined;
|
|
68
|
-
kid?: string | undefined;
|
|
69
|
-
alg?: string | undefined;
|
|
70
70
|
use?: string | undefined;
|
|
71
71
|
key_ops?: string[] | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
kty: string;
|
|
74
|
+
kid?: string | undefined;
|
|
75
|
+
alg?: string | undefined;
|
|
74
76
|
crv?: string | undefined;
|
|
75
77
|
x?: string | undefined;
|
|
76
78
|
y?: string | undefined;
|
|
77
79
|
d?: string | undefined;
|
|
78
80
|
e?: string | undefined;
|
|
79
81
|
n?: string | undefined;
|
|
80
|
-
kid?: string | undefined;
|
|
81
|
-
alg?: string | undefined;
|
|
82
82
|
use?: string | undefined;
|
|
83
83
|
key_ops?: string[] | undefined;
|
|
84
84
|
}>;
|
|
@@ -138,6 +138,20 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
138
138
|
version: z.ZodLiteral<1>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
path: string;
|
|
141
|
+
version: 1;
|
|
142
|
+
key: {
|
|
143
|
+
kty: string;
|
|
144
|
+
kid?: string | undefined;
|
|
145
|
+
alg?: string | undefined;
|
|
146
|
+
crv?: string | undefined;
|
|
147
|
+
x?: string | undefined;
|
|
148
|
+
y?: string | undefined;
|
|
149
|
+
d?: string | undefined;
|
|
150
|
+
e?: string | undefined;
|
|
151
|
+
n?: string | undefined;
|
|
152
|
+
use?: string | undefined;
|
|
153
|
+
key_ops?: string[] | undefined;
|
|
154
|
+
};
|
|
141
155
|
delegation: {
|
|
142
156
|
path: string;
|
|
143
157
|
expiry: Date;
|
|
@@ -153,25 +167,25 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
153
167
|
allowSubDelegation?: boolean | undefined;
|
|
154
168
|
authHeader?: string | undefined;
|
|
155
169
|
};
|
|
170
|
+
spaceId: string;
|
|
171
|
+
keyDid: string;
|
|
172
|
+
host: string;
|
|
173
|
+
}, {
|
|
174
|
+
path: string;
|
|
175
|
+
version: 1;
|
|
156
176
|
key: {
|
|
157
177
|
kty: string;
|
|
178
|
+
kid?: string | undefined;
|
|
179
|
+
alg?: string | undefined;
|
|
158
180
|
crv?: string | undefined;
|
|
159
181
|
x?: string | undefined;
|
|
160
182
|
y?: string | undefined;
|
|
161
183
|
d?: string | undefined;
|
|
162
184
|
e?: string | undefined;
|
|
163
185
|
n?: string | undefined;
|
|
164
|
-
kid?: string | undefined;
|
|
165
|
-
alg?: string | undefined;
|
|
166
186
|
use?: string | undefined;
|
|
167
187
|
key_ops?: string[] | undefined;
|
|
168
188
|
};
|
|
169
|
-
spaceId: string;
|
|
170
|
-
version: 1;
|
|
171
|
-
keyDid: string;
|
|
172
|
-
host: string;
|
|
173
|
-
}, {
|
|
174
|
-
path: string;
|
|
175
189
|
delegation: {
|
|
176
190
|
path: string;
|
|
177
191
|
expiry: Date;
|
|
@@ -187,21 +201,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
187
201
|
allowSubDelegation?: boolean | undefined;
|
|
188
202
|
authHeader?: string | undefined;
|
|
189
203
|
};
|
|
190
|
-
key: {
|
|
191
|
-
kty: string;
|
|
192
|
-
crv?: string | undefined;
|
|
193
|
-
x?: string | undefined;
|
|
194
|
-
y?: string | undefined;
|
|
195
|
-
d?: string | undefined;
|
|
196
|
-
e?: string | undefined;
|
|
197
|
-
n?: string | undefined;
|
|
198
|
-
kid?: string | undefined;
|
|
199
|
-
alg?: string | undefined;
|
|
200
|
-
use?: string | undefined;
|
|
201
|
-
key_ops?: string[] | undefined;
|
|
202
|
-
};
|
|
203
204
|
spaceId: string;
|
|
204
|
-
version: 1;
|
|
205
205
|
keyDid: string;
|
|
206
206
|
host: string;
|
|
207
207
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-
|
|
2
|
-
export { A as AccountDelegationPage, b as AccountDelegationQueryOptions, c as AccountDelegationRecord, d as AccountDelegationResource, C as CapabilityEntry, e as CreateDelegationParams, f as CreateDelegationWasmParams, g as CreateDelegationWasmResult, h as CreateOwnerDelegationParams, i as DelegateReceivedShareParams, j as DelegatedResource, k as DelegatedShareAccess, l as DelegatedShareKey, m as Delegation, n as DelegationApiResponse, o as DelegationChain, p as DelegationChainV2, q as DelegationDirection, r as DelegationErrorCode, s as DelegationErrorCodes, t as DelegationFilters, u as DelegationManagerConfig, v as DelegationRecord, w as DelegationRevocationReceipt, x as DelegationStatus, E as EncodedShareData, G as GenerateShareParams, y as ISharingService, z as IngestOptions, J as JWK, K as KeyInfo, B as KeyProvider, F as KeyType, M as MAX_CONTENT_BYTES, H as MAX_SEALED_SHARE_CONTENT_BYTES, L as MAX_SHARE_ARTIFACT_BYTES, N as MAX_SHARE_CONTENT_BYTES, O as MemorySenderShareKeyStorage, P as MemorySenderShareRecordStorage, Q as MemoryShareCache, S as OwnerDelegationPermission, T as OwnerDelegationReceipt, U as OwnerShareAction, V as OwnerShareDecryption, W as OwnerShareMatcher, X as OwnerSharePolicyRegistration, Y as OwnerSharePolicyRegistrationReceipt, Z as OwnerSharePolicyV2, _ as
|
|
1
|
+
import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-G8NEKRoo.js';
|
|
2
|
+
export { A as AccountDelegationPage, b as AccountDelegationQueryOptions, c as AccountDelegationRecord, d as AccountDelegationResource, C as CapabilityEntry, e as CreateDelegationParams, f as CreateDelegationWasmParams, g as CreateDelegationWasmResult, h as CreateOwnerDelegationParams, i as DelegateReceivedShareParams, j as DelegatedResource, k as DelegatedShareAccess, l as DelegatedShareKey, m as Delegation, n as DelegationApiResponse, o as DelegationChain, p as DelegationChainV2, q as DelegationDirection, r as DelegationErrorCode, s as DelegationErrorCodes, t as DelegationFilters, u as DelegationManagerConfig, v as DelegationRecord, w as DelegationRevocationReceipt, x as DelegationStatus, E as EncodedShareData, G as GenerateShareParams, y as ISharingService, z as IngestOptions, J as JWK, K as KeyInfo, B as KeyProvider, F as KeyType, M as MAX_CONTENT_BYTES, H as MAX_SEALED_SHARE_CONTENT_BYTES, L as MAX_SHARE_ARTIFACT_BYTES, N as MAX_SHARE_CONTENT_BYTES, O as MemorySenderShareKeyStorage, P as MemorySenderShareRecordStorage, Q as MemoryShareCache, S as OwnerDelegationPermission, T as OwnerDelegationReceipt, U as OwnerShareAction, V as OwnerShareDecryption, W as OwnerShareMatcher, X as OwnerSharePolicyRegistration, Y as OwnerSharePolicyRegistrationReceipt, Z as OwnerSharePolicyV2, _ as PortableDelegationImportReceipt, $ as ReceiveOptions, a0 as RegisterOwnerSharePolicyParams, a1 as SHARE_DELIVERY_AUTHORIZATION_DOMAIN, a2 as SenderShareKeyStorage, a3 as SenderShareRecord, a4 as SenderShareRecordStorage, a5 as SenderShareRevocationScope, a6 as SenderShareStore, a7 as ShareAccess, a8 as ShareAccessError, a9 as ShareAccessV2, aa as ShareAction, ab as ShareActionSchema, ac as ShareAddressedDelegationEnvelopeV2, ad as ShareAddressedDelegationEnvelopeV2Schema, ae as ShareAddressedDelegationRequestV2, af as ShareAddressedDelegationRequestV2Schema, ag as ShareAddressedDelegationResponseV2, ah as ShareAddressedDelegationResponseV2Schema, ai as ShareAddressedRecipientMatcher, aj as ShareArtifactInput, ak as ShareArtifactResult, al as ShareArtifactV2, am as ShareCache, an as ShareCacheEntry, ao as ShareCacheKey, ap as ShareCacheMetadata, aq as ShareCapabilityLike, ar as ShareConflict, as as ShareContentMetadata, at as ShareContentSource, au as ShareDeliveryAuthorization, av as ShareDeliveryAuthorizationReceipt, aw as ShareDeliveryAuthorizationRequest, ax as ShareDetachedProof, ay as ShareEnvelopeError, az as ShareEnvelopeV2, aA as ShareExpiryBounds, aB as ShareKvContentSource, aC as ShareLink, aD as ShareLinkData, aE as ShareLinkLocation, aF as ShareListEntry, aG as ShareListResult, aH as ShareNativeAction, aI as ShareNativeInvokeEnvelopeV1, aJ as ShareNativeInvokeErrorResult, aK as ShareNativeInvokeInput, aL as ShareNativeInvokeResult, aM as ShareNativeInvokeSuccessResult, aN as ShareNativeResponse, aO as ShareNativeResponseSchema, aP as SharePolicy, aQ as SharePolicyBinding, aR as SharePolicySession, aS as SharePolicySessionV1, aT as SharePolicySessionWireV1, aU as SharePortableDelegation, aV as ShareReadInvocationV1, aW as ShareReadResult, aX as ShareRecipientClient, aY as ShareRecipientClientOptions, aZ as ShareRecipientClientOptionsSchema, a_ as ShareRecipientPolicy, a$ as ShareRecipientPolicySchema, b0 as ShareRecipientResult, b1 as ShareRecipientTarget, b2 as ShareRecipientTargetSchema, b3 as ShareResource, b4 as ShareResourceSchema, b5 as ShareSaveOptions, b6 as ShareSchema, b7 as ShareSqlContentSource, b8 as ShareWireAction, b9 as SharingService, ba as SharingServiceConfig, bb as SignedDelegation, bc as SpaceInfo, bd as SpaceOwnership, be as ValidateShareDeliveryAuthorizationExpected, bf as VerifyShareEnvelopeOptions, bg as canonicalOwnerSharePolicy, bh as computeOwnerShareRegistrationCid, bi as computeShareCid, bj as createDelegatedShareKey, bk as createPolicyEnforcementDelegation, bl as createShareArtifact, bm as createShareArtifactAsync, bn as createSharePolicy, bo as createSharingService, bp as decryptShareBytesAsync, bq as delegatePortablePolicySession, br as encodeInlineShareUrl, bs as encodeShareArtifact, bt as encodeShareUrl, bu as encryptShareBytes, bv as encryptShareBytesAsync, bw as importPortableDelegation, bx as intersectShareCapabilities, by as isV2ShareLink, bz as normalizeShareActions, bA as normalizeShareRecipientTarget, bB as normalizeShareResource, bC as parsePortableDelegation, bD as parseShareArtifact, bE as parseShareUrl, bF as restoreDelegatedShareKey, bG as serializePortableDelegation, bH as shareCapabilityAllows, bI as shareDeliveryTrustedKid, bJ as signShareEnvelope, bK as validateOwnerSharePolicyRegistration, bL as validateOwnerSharePolicyRegistrationBytes, bM as validateShareDeliveryAuthorizationBytes, bN as verifyShareCid, bO as verifyShareEnvelope } from '../recipient-types.schema-G8NEKRoo.js';
|
|
3
3
|
export { EncryptedSenderShareHistory, EncryptedShareHistoryStorage, LegacyMigrationResult, LegacyShareReader, MemoryEncryptedShareHistoryStorage, ShareAuthorizationAdapter, ShareAuthorizationDenied, ShareAuthorizationMethod, ShareAuthorizationReady, ShareAuthorizationRequired, ShareAuthorizationResult, ShareDeliveryAdapter, ShareErrorCode, ShareErrorInfo, ShareFetchOptions, ShareHistoryView, ShareInspection, ShareMetadata, ShareNotifyResult, ShareNotifyState, SharePolicyPublishAdapter, ShareReceiveError, ShareReceiveResult, ShareRevocationAdapter, ShareRevocationResult, ShareTarget, TargetPublishAdapter, TargetPublishInput, TargetPublishOutcome, VerifyBearerEnvelopeOptions, authorizationMethodForTarget, authorizeShare, claimShare, inspectShare, isLegacyShareLink, listShares, migrateShare, notifyShare, publishPolicyShare, publishTargetShare, receiveLegacyShare, receiveShare, resumeShareAuthorization, revokeShare, showShare, toShareErrorInfo, verifyBearerEnvelope } from '@tinycloud/share-sdk';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ServiceSession, InvokeFunction, FetchFunction, IKVService } from '@tinycloud/sdk-services';
|
|
@@ -35,50 +35,50 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
35
35
|
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
kty: string;
|
|
38
|
+
kid?: string | undefined;
|
|
39
|
+
alg?: string | undefined;
|
|
38
40
|
crv?: string | undefined;
|
|
39
41
|
x?: string | undefined;
|
|
40
42
|
y?: string | undefined;
|
|
41
43
|
d?: string | undefined;
|
|
42
44
|
e?: string | undefined;
|
|
43
45
|
n?: string | undefined;
|
|
44
|
-
kid?: string | undefined;
|
|
45
|
-
alg?: string | undefined;
|
|
46
46
|
use?: string | undefined;
|
|
47
47
|
key_ops?: string[] | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
kty: string;
|
|
50
|
+
kid?: string | undefined;
|
|
51
|
+
alg?: string | undefined;
|
|
50
52
|
crv?: string | undefined;
|
|
51
53
|
x?: string | undefined;
|
|
52
54
|
y?: string | undefined;
|
|
53
55
|
d?: string | undefined;
|
|
54
56
|
e?: string | undefined;
|
|
55
57
|
n?: string | undefined;
|
|
56
|
-
kid?: string | undefined;
|
|
57
|
-
alg?: string | undefined;
|
|
58
58
|
use?: string | undefined;
|
|
59
59
|
key_ops?: string[] | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
kty: string;
|
|
62
|
+
kid?: string | undefined;
|
|
63
|
+
alg?: string | undefined;
|
|
62
64
|
crv?: string | undefined;
|
|
63
65
|
x?: string | undefined;
|
|
64
66
|
y?: string | undefined;
|
|
65
67
|
d?: string | undefined;
|
|
66
68
|
e?: string | undefined;
|
|
67
69
|
n?: string | undefined;
|
|
68
|
-
kid?: string | undefined;
|
|
69
|
-
alg?: string | undefined;
|
|
70
70
|
use?: string | undefined;
|
|
71
71
|
key_ops?: string[] | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
kty: string;
|
|
74
|
+
kid?: string | undefined;
|
|
75
|
+
alg?: string | undefined;
|
|
74
76
|
crv?: string | undefined;
|
|
75
77
|
x?: string | undefined;
|
|
76
78
|
y?: string | undefined;
|
|
77
79
|
d?: string | undefined;
|
|
78
80
|
e?: string | undefined;
|
|
79
81
|
n?: string | undefined;
|
|
80
|
-
kid?: string | undefined;
|
|
81
|
-
alg?: string | undefined;
|
|
82
82
|
use?: string | undefined;
|
|
83
83
|
key_ops?: string[] | undefined;
|
|
84
84
|
}>;
|
|
@@ -138,6 +138,20 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
138
138
|
version: z.ZodLiteral<1>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
path: string;
|
|
141
|
+
version: 1;
|
|
142
|
+
key: {
|
|
143
|
+
kty: string;
|
|
144
|
+
kid?: string | undefined;
|
|
145
|
+
alg?: string | undefined;
|
|
146
|
+
crv?: string | undefined;
|
|
147
|
+
x?: string | undefined;
|
|
148
|
+
y?: string | undefined;
|
|
149
|
+
d?: string | undefined;
|
|
150
|
+
e?: string | undefined;
|
|
151
|
+
n?: string | undefined;
|
|
152
|
+
use?: string | undefined;
|
|
153
|
+
key_ops?: string[] | undefined;
|
|
154
|
+
};
|
|
141
155
|
delegation: {
|
|
142
156
|
path: string;
|
|
143
157
|
expiry: Date;
|
|
@@ -153,25 +167,25 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
153
167
|
allowSubDelegation?: boolean | undefined;
|
|
154
168
|
authHeader?: string | undefined;
|
|
155
169
|
};
|
|
170
|
+
spaceId: string;
|
|
171
|
+
keyDid: string;
|
|
172
|
+
host: string;
|
|
173
|
+
}, {
|
|
174
|
+
path: string;
|
|
175
|
+
version: 1;
|
|
156
176
|
key: {
|
|
157
177
|
kty: string;
|
|
178
|
+
kid?: string | undefined;
|
|
179
|
+
alg?: string | undefined;
|
|
158
180
|
crv?: string | undefined;
|
|
159
181
|
x?: string | undefined;
|
|
160
182
|
y?: string | undefined;
|
|
161
183
|
d?: string | undefined;
|
|
162
184
|
e?: string | undefined;
|
|
163
185
|
n?: string | undefined;
|
|
164
|
-
kid?: string | undefined;
|
|
165
|
-
alg?: string | undefined;
|
|
166
186
|
use?: string | undefined;
|
|
167
187
|
key_ops?: string[] | undefined;
|
|
168
188
|
};
|
|
169
|
-
spaceId: string;
|
|
170
|
-
version: 1;
|
|
171
|
-
keyDid: string;
|
|
172
|
-
host: string;
|
|
173
|
-
}, {
|
|
174
|
-
path: string;
|
|
175
189
|
delegation: {
|
|
176
190
|
path: string;
|
|
177
191
|
expiry: Date;
|
|
@@ -187,21 +201,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
187
201
|
allowSubDelegation?: boolean | undefined;
|
|
188
202
|
authHeader?: string | undefined;
|
|
189
203
|
};
|
|
190
|
-
key: {
|
|
191
|
-
kty: string;
|
|
192
|
-
crv?: string | undefined;
|
|
193
|
-
x?: string | undefined;
|
|
194
|
-
y?: string | undefined;
|
|
195
|
-
d?: string | undefined;
|
|
196
|
-
e?: string | undefined;
|
|
197
|
-
n?: string | undefined;
|
|
198
|
-
kid?: string | undefined;
|
|
199
|
-
alg?: string | undefined;
|
|
200
|
-
use?: string | undefined;
|
|
201
|
-
key_ops?: string[] | undefined;
|
|
202
|
-
};
|
|
203
204
|
spaceId: string;
|
|
204
|
-
version: 1;
|
|
205
205
|
keyDid: string;
|
|
206
206
|
host: string;
|
|
207
207
|
}>;
|