@tinycloud/sdk-core 2.11.0-beta.1 → 2.11.0-beta.11
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/delegations/index.cjs +702 -330
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +9 -8
- package/dist/delegations/index.d.ts +9 -8
- package/dist/delegations/index.js +722 -263
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +2338 -1156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +350 -24
- package/dist/index.d.ts +350 -24
- package/dist/index.js +2333 -810
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +878 -250
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +3 -2
- package/dist/policy/index.d.ts +3 -2
- package/dist/policy/index.js +877 -183
- package/dist/policy/index.js.map +1 -1
- package/dist/{recipient-types.schema-CWIt63Qp.d.cts → recipient-types.schema-CuDpskPd.d.cts} +236 -98
- package/dist/{recipient-types.schema-CWIt63Qp.d.ts → recipient-types.schema-CuDpskPd.d.ts} +236 -98
- package/dist/requester/index.cjs +10 -38
- package/dist/requester/index.cjs.map +1 -1
- package/dist/requester/index.js +10 -8
- package/dist/requester/index.js.map +1 -1
- package/dist/unified-BYPfXp5S.d.ts +429 -0
- package/dist/unified-BdfNHNrx.d.cts +429 -0
- package/package.json +6 -3
- package/dist/signed-object-C6mWbTbB.d.ts +0 -149
- package/dist/signed-object-IMAm5a32.d.cts +0 -149
|
@@ -1,5 +1,6 @@
|
|
|
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-CuDpskPd.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-CuDpskPd.cjs';
|
|
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';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { ServiceSession, InvokeFunction, FetchFunction, IKVService } from '@tinycloud/sdk-services';
|
|
5
6
|
|
|
@@ -34,6 +35,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
34
35
|
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
kty: string;
|
|
38
|
+
alg?: string | undefined;
|
|
37
39
|
crv?: string | undefined;
|
|
38
40
|
x?: string | undefined;
|
|
39
41
|
y?: string | undefined;
|
|
@@ -41,11 +43,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
41
43
|
e?: string | undefined;
|
|
42
44
|
n?: string | undefined;
|
|
43
45
|
kid?: string | undefined;
|
|
44
|
-
alg?: string | undefined;
|
|
45
46
|
use?: string | undefined;
|
|
46
47
|
key_ops?: string[] | undefined;
|
|
47
48
|
}, {
|
|
48
49
|
kty: string;
|
|
50
|
+
alg?: string | undefined;
|
|
49
51
|
crv?: string | undefined;
|
|
50
52
|
x?: string | undefined;
|
|
51
53
|
y?: string | undefined;
|
|
@@ -53,11 +55,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
53
55
|
e?: string | undefined;
|
|
54
56
|
n?: string | undefined;
|
|
55
57
|
kid?: string | undefined;
|
|
56
|
-
alg?: string | undefined;
|
|
57
58
|
use?: string | undefined;
|
|
58
59
|
key_ops?: string[] | undefined;
|
|
59
60
|
}>, {
|
|
60
61
|
kty: string;
|
|
62
|
+
alg?: string | undefined;
|
|
61
63
|
crv?: string | undefined;
|
|
62
64
|
x?: string | undefined;
|
|
63
65
|
y?: string | undefined;
|
|
@@ -65,11 +67,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
65
67
|
e?: string | undefined;
|
|
66
68
|
n?: string | undefined;
|
|
67
69
|
kid?: string | undefined;
|
|
68
|
-
alg?: string | undefined;
|
|
69
70
|
use?: string | undefined;
|
|
70
71
|
key_ops?: string[] | undefined;
|
|
71
72
|
}, {
|
|
72
73
|
kty: string;
|
|
74
|
+
alg?: string | undefined;
|
|
73
75
|
crv?: string | undefined;
|
|
74
76
|
x?: string | undefined;
|
|
75
77
|
y?: string | undefined;
|
|
@@ -77,7 +79,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
77
79
|
e?: string | undefined;
|
|
78
80
|
n?: string | undefined;
|
|
79
81
|
kid?: string | undefined;
|
|
80
|
-
alg?: string | undefined;
|
|
81
82
|
use?: string | undefined;
|
|
82
83
|
key_ops?: string[] | undefined;
|
|
83
84
|
}>;
|
|
@@ -154,6 +155,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
154
155
|
};
|
|
155
156
|
key: {
|
|
156
157
|
kty: string;
|
|
158
|
+
alg?: string | undefined;
|
|
157
159
|
crv?: string | undefined;
|
|
158
160
|
x?: string | undefined;
|
|
159
161
|
y?: string | undefined;
|
|
@@ -161,7 +163,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
161
163
|
e?: string | undefined;
|
|
162
164
|
n?: string | undefined;
|
|
163
165
|
kid?: string | undefined;
|
|
164
|
-
alg?: string | undefined;
|
|
165
166
|
use?: string | undefined;
|
|
166
167
|
key_ops?: string[] | undefined;
|
|
167
168
|
};
|
|
@@ -188,6 +189,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
188
189
|
};
|
|
189
190
|
key: {
|
|
190
191
|
kty: string;
|
|
192
|
+
alg?: string | undefined;
|
|
191
193
|
crv?: string | undefined;
|
|
192
194
|
x?: string | undefined;
|
|
193
195
|
y?: string | undefined;
|
|
@@ -195,7 +197,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
195
197
|
e?: string | undefined;
|
|
196
198
|
n?: string | undefined;
|
|
197
199
|
kid?: string | undefined;
|
|
198
|
-
alg?: string | undefined;
|
|
199
200
|
use?: string | undefined;
|
|
200
201
|
key_ops?: string[] | undefined;
|
|
201
202
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
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-CuDpskPd.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-CuDpskPd.js';
|
|
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';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { ServiceSession, InvokeFunction, FetchFunction, IKVService } from '@tinycloud/sdk-services';
|
|
5
6
|
|
|
@@ -34,6 +35,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
34
35
|
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
kty: string;
|
|
38
|
+
alg?: string | undefined;
|
|
37
39
|
crv?: string | undefined;
|
|
38
40
|
x?: string | undefined;
|
|
39
41
|
y?: string | undefined;
|
|
@@ -41,11 +43,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
41
43
|
e?: string | undefined;
|
|
42
44
|
n?: string | undefined;
|
|
43
45
|
kid?: string | undefined;
|
|
44
|
-
alg?: string | undefined;
|
|
45
46
|
use?: string | undefined;
|
|
46
47
|
key_ops?: string[] | undefined;
|
|
47
48
|
}, {
|
|
48
49
|
kty: string;
|
|
50
|
+
alg?: string | undefined;
|
|
49
51
|
crv?: string | undefined;
|
|
50
52
|
x?: string | undefined;
|
|
51
53
|
y?: string | undefined;
|
|
@@ -53,11 +55,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
53
55
|
e?: string | undefined;
|
|
54
56
|
n?: string | undefined;
|
|
55
57
|
kid?: string | undefined;
|
|
56
|
-
alg?: string | undefined;
|
|
57
58
|
use?: string | undefined;
|
|
58
59
|
key_ops?: string[] | undefined;
|
|
59
60
|
}>, {
|
|
60
61
|
kty: string;
|
|
62
|
+
alg?: string | undefined;
|
|
61
63
|
crv?: string | undefined;
|
|
62
64
|
x?: string | undefined;
|
|
63
65
|
y?: string | undefined;
|
|
@@ -65,11 +67,11 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
65
67
|
e?: string | undefined;
|
|
66
68
|
n?: string | undefined;
|
|
67
69
|
kid?: string | undefined;
|
|
68
|
-
alg?: string | undefined;
|
|
69
70
|
use?: string | undefined;
|
|
70
71
|
key_ops?: string[] | undefined;
|
|
71
72
|
}, {
|
|
72
73
|
kty: string;
|
|
74
|
+
alg?: string | undefined;
|
|
73
75
|
crv?: string | undefined;
|
|
74
76
|
x?: string | undefined;
|
|
75
77
|
y?: string | undefined;
|
|
@@ -77,7 +79,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
77
79
|
e?: string | undefined;
|
|
78
80
|
n?: string | undefined;
|
|
79
81
|
kid?: string | undefined;
|
|
80
|
-
alg?: string | undefined;
|
|
81
82
|
use?: string | undefined;
|
|
82
83
|
key_ops?: string[] | undefined;
|
|
83
84
|
}>;
|
|
@@ -154,6 +155,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
154
155
|
};
|
|
155
156
|
key: {
|
|
156
157
|
kty: string;
|
|
158
|
+
alg?: string | undefined;
|
|
157
159
|
crv?: string | undefined;
|
|
158
160
|
x?: string | undefined;
|
|
159
161
|
y?: string | undefined;
|
|
@@ -161,7 +163,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
161
163
|
e?: string | undefined;
|
|
162
164
|
n?: string | undefined;
|
|
163
165
|
kid?: string | undefined;
|
|
164
|
-
alg?: string | undefined;
|
|
165
166
|
use?: string | undefined;
|
|
166
167
|
key_ops?: string[] | undefined;
|
|
167
168
|
};
|
|
@@ -188,6 +189,7 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
188
189
|
};
|
|
189
190
|
key: {
|
|
190
191
|
kty: string;
|
|
192
|
+
alg?: string | undefined;
|
|
191
193
|
crv?: string | undefined;
|
|
192
194
|
x?: string | undefined;
|
|
193
195
|
y?: string | undefined;
|
|
@@ -195,7 +197,6 @@ declare const EncodedShareDataSchema: z.ZodObject<{
|
|
|
195
197
|
e?: string | undefined;
|
|
196
198
|
n?: string | undefined;
|
|
197
199
|
kid?: string | undefined;
|
|
198
|
-
alg?: string | undefined;
|
|
199
200
|
use?: string | undefined;
|
|
200
201
|
key_ops?: string[] | undefined;
|
|
201
202
|
};
|