@tinycloud/sdk-core 2.11.0-beta.8 → 2.11.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.
@@ -1,5 +1,5 @@
1
- import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-D5pDlIqn.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 ReceiveOptions, $ as RegisterOwnerSharePolicyParams, a0 as SHARE_DELIVERY_AUTHORIZATION_DOMAIN, a1 as SenderShareKeyStorage, a2 as SenderShareRecord, a3 as SenderShareRecordStorage, a4 as SenderShareRevocationScope, a5 as SenderShareStore, a6 as ShareAccess, a7 as ShareAccessError, a8 as ShareAccessV2, a9 as ShareAction, aa as ShareActionSchema, ab as ShareAddressedDelegationEnvelopeV2, ac as ShareAddressedDelegationEnvelopeV2Schema, ad as ShareAddressedDelegationRequestV2, ae as ShareAddressedDelegationRequestV2Schema, af as ShareAddressedDelegationResponseV2, ag as ShareAddressedDelegationResponseV2Schema, ah as ShareAddressedRecipientMatcher, ai as ShareArtifactInput, aj as ShareArtifactResult, ak as ShareArtifactV2, al as ShareCache, am as ShareCacheEntry, an as ShareCacheKey, ao as ShareCacheMetadata, ap as ShareCapabilityLike, aq as ShareConflict, ar as ShareContentMetadata, as as ShareContentSource, at as ShareDeliveryAuthorization, au as ShareDeliveryAuthorizationReceipt, av as ShareDeliveryAuthorizationRequest, aw as ShareDetachedProof, ax as ShareEnvelopeError, ay as ShareEnvelopeV2, az as ShareExpiryBounds, aA as ShareKvContentSource, aB as ShareLink, aC as ShareLinkData, aD as ShareLinkLocation, aE as ShareListEntry, aF as ShareListResult, aG as ShareNativeAction, aH as ShareNativeInvokeEnvelopeV1, aI as ShareNativeInvokeErrorResult, aJ as ShareNativeInvokeInput, aK as ShareNativeInvokeResult, aL as ShareNativeInvokeSuccessResult, aM as ShareNativeResponse, aN as ShareNativeResponseSchema, aO as SharePolicy, aP as SharePolicyBinding, aQ as SharePolicySession, aR as SharePolicySessionV1, aS as SharePolicySessionWireV1, aT as ShareReadInvocationV1, aU as ShareReadResult, aV as ShareRecipientClient, aW as ShareRecipientClientOptions, aX as ShareRecipientClientOptionsSchema, aY as ShareRecipientPolicy, aZ as ShareRecipientPolicySchema, a_ as ShareRecipientResult, a$ as ShareRecipientTarget, b0 as ShareRecipientTargetSchema, b1 as ShareResource, b2 as ShareResourceSchema, b3 as ShareSaveOptions, b4 as ShareSchema, b5 as ShareSqlContentSource, b6 as ShareWireAction, b7 as SharingService, b8 as SharingServiceConfig, b9 as SignedDelegation, ba as SpaceInfo, bb as SpaceOwnership, bc as ValidateShareDeliveryAuthorizationExpected, bd as VerifyShareEnvelopeOptions, be as canonicalOwnerSharePolicy, bf as computeOwnerShareRegistrationCid, bg as computeShareCid, bh as createDelegatedShareKey, bi as createPolicyEnforcementDelegation, bj as createShareArtifact, bk as createShareArtifactAsync, bl as createSharePolicy, bm as createSharingService, bn as decryptShareBytesAsync, bo as encodeInlineShareUrl, bp as encodeShareArtifact, bq as encodeShareUrl, br as encryptShareBytes, bs as encryptShareBytesAsync, bt as intersectShareCapabilities, bu as isV2ShareLink, bv as normalizeShareActions, bw as normalizeShareRecipientTarget, bx as normalizeShareResource, by as parseShareArtifact, bz as parseShareUrl, bA as restoreDelegatedShareKey, bB as shareCapabilityAllows, bC as shareDeliveryTrustedKid, bD as signShareEnvelope, bE as validateOwnerSharePolicyRegistration, bF as validateOwnerSharePolicyRegistrationBytes, bG as validateShareDeliveryAuthorizationBytes, bH as verifyShareCid, bI as verifyShareEnvelope } from '../recipient-types.schema-D5pDlIqn.cjs';
1
+ import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-CieclU3Z.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-CieclU3Z.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-D5pDlIqn.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 ReceiveOptions, $ as RegisterOwnerSharePolicyParams, a0 as SHARE_DELIVERY_AUTHORIZATION_DOMAIN, a1 as SenderShareKeyStorage, a2 as SenderShareRecord, a3 as SenderShareRecordStorage, a4 as SenderShareRevocationScope, a5 as SenderShareStore, a6 as ShareAccess, a7 as ShareAccessError, a8 as ShareAccessV2, a9 as ShareAction, aa as ShareActionSchema, ab as ShareAddressedDelegationEnvelopeV2, ac as ShareAddressedDelegationEnvelopeV2Schema, ad as ShareAddressedDelegationRequestV2, ae as ShareAddressedDelegationRequestV2Schema, af as ShareAddressedDelegationResponseV2, ag as ShareAddressedDelegationResponseV2Schema, ah as ShareAddressedRecipientMatcher, ai as ShareArtifactInput, aj as ShareArtifactResult, ak as ShareArtifactV2, al as ShareCache, am as ShareCacheEntry, an as ShareCacheKey, ao as ShareCacheMetadata, ap as ShareCapabilityLike, aq as ShareConflict, ar as ShareContentMetadata, as as ShareContentSource, at as ShareDeliveryAuthorization, au as ShareDeliveryAuthorizationReceipt, av as ShareDeliveryAuthorizationRequest, aw as ShareDetachedProof, ax as ShareEnvelopeError, ay as ShareEnvelopeV2, az as ShareExpiryBounds, aA as ShareKvContentSource, aB as ShareLink, aC as ShareLinkData, aD as ShareLinkLocation, aE as ShareListEntry, aF as ShareListResult, aG as ShareNativeAction, aH as ShareNativeInvokeEnvelopeV1, aI as ShareNativeInvokeErrorResult, aJ as ShareNativeInvokeInput, aK as ShareNativeInvokeResult, aL as ShareNativeInvokeSuccessResult, aM as ShareNativeResponse, aN as ShareNativeResponseSchema, aO as SharePolicy, aP as SharePolicyBinding, aQ as SharePolicySession, aR as SharePolicySessionV1, aS as SharePolicySessionWireV1, aT as ShareReadInvocationV1, aU as ShareReadResult, aV as ShareRecipientClient, aW as ShareRecipientClientOptions, aX as ShareRecipientClientOptionsSchema, aY as ShareRecipientPolicy, aZ as ShareRecipientPolicySchema, a_ as ShareRecipientResult, a$ as ShareRecipientTarget, b0 as ShareRecipientTargetSchema, b1 as ShareResource, b2 as ShareResourceSchema, b3 as ShareSaveOptions, b4 as ShareSchema, b5 as ShareSqlContentSource, b6 as ShareWireAction, b7 as SharingService, b8 as SharingServiceConfig, b9 as SignedDelegation, ba as SpaceInfo, bb as SpaceOwnership, bc as ValidateShareDeliveryAuthorizationExpected, bd as VerifyShareEnvelopeOptions, be as canonicalOwnerSharePolicy, bf as computeOwnerShareRegistrationCid, bg as computeShareCid, bh as createDelegatedShareKey, bi as createPolicyEnforcementDelegation, bj as createShareArtifact, bk as createShareArtifactAsync, bl as createSharePolicy, bm as createSharingService, bn as decryptShareBytesAsync, bo as encodeInlineShareUrl, bp as encodeShareArtifact, bq as encodeShareUrl, br as encryptShareBytes, bs as encryptShareBytesAsync, bt as intersectShareCapabilities, bu as isV2ShareLink, bv as normalizeShareActions, bw as normalizeShareRecipientTarget, bx as normalizeShareResource, by as parseShareArtifact, bz as parseShareUrl, bA as restoreDelegatedShareKey, bB as shareCapabilityAllows, bC as shareDeliveryTrustedKid, bD as signShareEnvelope, bE as validateOwnerSharePolicyRegistration, bF as validateOwnerSharePolicyRegistrationBytes, bG as validateShareDeliveryAuthorizationBytes, bH as verifyShareCid, bI as verifyShareEnvelope } from '../recipient-types.schema-D5pDlIqn.js';
1
+ import { I as ICapabilityKeyRegistry, D as DelegationManager, R as Result, a as DelegationError } from '../recipient-types.schema-CieclU3Z.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-CieclU3Z.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
  }>;