@tinycloud/sdk-core 1.0.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/LICENSE.md +320 -0
- package/dist/TinyCloud.d.ts +206 -0
- package/dist/TinyCloud.d.ts.map +1 -0
- package/dist/TinyCloud.js +244 -0
- package/dist/TinyCloud.js.map +1 -0
- package/dist/TinyCloud.schema.d.ts +173 -0
- package/dist/TinyCloud.schema.d.ts.map +1 -0
- package/dist/TinyCloud.schema.js +136 -0
- package/dist/TinyCloud.schema.js.map +1 -0
- package/dist/TinyCloud.schema.test.d.ts +5 -0
- package/dist/TinyCloud.schema.test.d.ts.map +1 -0
- package/dist/TinyCloud.schema.test.js +286 -0
- package/dist/TinyCloud.schema.test.js.map +1 -0
- package/dist/authorization/CapabilityKeyRegistry.d.ts +317 -0
- package/dist/authorization/CapabilityKeyRegistry.d.ts.map +1 -0
- package/dist/authorization/CapabilityKeyRegistry.js +509 -0
- package/dist/authorization/CapabilityKeyRegistry.js.map +1 -0
- package/dist/authorization/authorization.schema.d.ts +233 -0
- package/dist/authorization/authorization.schema.d.ts.map +1 -0
- package/dist/authorization/authorization.schema.js +220 -0
- package/dist/authorization/authorization.schema.js.map +1 -0
- package/dist/authorization/authorization.schema.test.d.ts +5 -0
- package/dist/authorization/authorization.schema.test.d.ts.map +1 -0
- package/dist/authorization/authorization.schema.test.js +618 -0
- package/dist/authorization/authorization.schema.test.js.map +1 -0
- package/dist/authorization/index.d.ts +38 -0
- package/dist/authorization/index.d.ts.map +1 -0
- package/dist/authorization/index.js +52 -0
- package/dist/authorization/index.js.map +1 -0
- package/dist/authorization/spaceCreation.d.ts +96 -0
- package/dist/authorization/spaceCreation.d.ts.map +1 -0
- package/dist/authorization/spaceCreation.js +35 -0
- package/dist/authorization/spaceCreation.js.map +1 -0
- package/dist/authorization/spaceCreation.schema.d.ts +67 -0
- package/dist/authorization/spaceCreation.schema.d.ts.map +1 -0
- package/dist/authorization/spaceCreation.schema.js +95 -0
- package/dist/authorization/spaceCreation.schema.js.map +1 -0
- package/dist/authorization/spaceCreation.schema.test.d.ts +5 -0
- package/dist/authorization/spaceCreation.schema.test.d.ts.map +1 -0
- package/dist/authorization/spaceCreation.schema.test.js +168 -0
- package/dist/authorization/spaceCreation.schema.test.js.map +1 -0
- package/dist/authorization/strategies.d.ts +134 -0
- package/dist/authorization/strategies.d.ts.map +1 -0
- package/dist/authorization/strategies.js +15 -0
- package/dist/authorization/strategies.js.map +1 -0
- package/dist/authorization/strategies.schema.d.ts +185 -0
- package/dist/authorization/strategies.schema.d.ts.map +1 -0
- package/dist/authorization/strategies.schema.js +147 -0
- package/dist/authorization/strategies.schema.js.map +1 -0
- package/dist/authorization/strategies.schema.test.d.ts +5 -0
- package/dist/authorization/strategies.schema.test.d.ts.map +1 -0
- package/dist/authorization/strategies.schema.test.js +253 -0
- package/dist/authorization/strategies.schema.test.js.map +1 -0
- package/dist/delegations/DelegationManager.d.ts +164 -0
- package/dist/delegations/DelegationManager.d.ts.map +1 -0
- package/dist/delegations/DelegationManager.js +428 -0
- package/dist/delegations/DelegationManager.js.map +1 -0
- package/dist/delegations/SharingService.d.ts +279 -0
- package/dist/delegations/SharingService.d.ts.map +1 -0
- package/dist/delegations/SharingService.js +558 -0
- package/dist/delegations/SharingService.js.map +1 -0
- package/dist/delegations/SharingService.schema.d.ts +401 -0
- package/dist/delegations/SharingService.schema.d.ts.map +1 -0
- package/dist/delegations/SharingService.schema.js +211 -0
- package/dist/delegations/SharingService.schema.js.map +1 -0
- package/dist/delegations/index.d.ts +38 -0
- package/dist/delegations/index.d.ts.map +1 -0
- package/dist/delegations/index.js +42 -0
- package/dist/delegations/index.js.map +1 -0
- package/dist/delegations/types.d.ts +13 -0
- package/dist/delegations/types.d.ts.map +1 -0
- package/dist/delegations/types.js +42 -0
- package/dist/delegations/types.js.map +1 -0
- package/dist/delegations/types.schema.d.ts +1641 -0
- package/dist/delegations/types.schema.d.ts.map +1 -0
- package/dist/delegations/types.schema.js +535 -0
- package/dist/delegations/types.schema.js.map +1 -0
- package/dist/delegations/types.schema.test.d.ts +5 -0
- package/dist/delegations/types.schema.test.d.ts.map +1 -0
- package/dist/delegations/types.schema.test.js +627 -0
- package/dist/delegations/types.schema.test.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -0
- package/dist/json-schema.d.ts +327 -0
- package/dist/json-schema.d.ts.map +1 -0
- package/dist/json-schema.js +703 -0
- package/dist/json-schema.js.map +1 -0
- package/dist/json-schema.test.d.ts +7 -0
- package/dist/json-schema.test.d.ts.map +1 -0
- package/dist/json-schema.test.js +365 -0
- package/dist/json-schema.test.js.map +1 -0
- package/dist/signer.d.ts +28 -0
- package/dist/signer.d.ts.map +1 -0
- package/dist/signer.js +2 -0
- package/dist/signer.js.map +1 -0
- package/dist/space.d.ts +53 -0
- package/dist/space.d.ts.map +1 -0
- package/dist/space.js +67 -0
- package/dist/space.js.map +1 -0
- package/dist/space.schema.d.ts +65 -0
- package/dist/space.schema.d.ts.map +1 -0
- package/dist/space.schema.js +65 -0
- package/dist/space.schema.js.map +1 -0
- package/dist/space.schema.test.d.ts +5 -0
- package/dist/space.schema.test.d.ts.map +1 -0
- package/dist/space.schema.test.js +148 -0
- package/dist/space.schema.test.js.map +1 -0
- package/dist/spaces/Space.d.ts +175 -0
- package/dist/spaces/Space.d.ts.map +1 -0
- package/dist/spaces/Space.js +84 -0
- package/dist/spaces/Space.js.map +1 -0
- package/dist/spaces/SpaceService.d.ts +271 -0
- package/dist/spaces/SpaceService.d.ts.map +1 -0
- package/dist/spaces/SpaceService.js +715 -0
- package/dist/spaces/SpaceService.js.map +1 -0
- package/dist/spaces/index.d.ts +11 -0
- package/dist/spaces/index.d.ts.map +1 -0
- package/dist/spaces/index.js +20 -0
- package/dist/spaces/index.js.map +1 -0
- package/dist/spaces/spaces.schema.d.ts +421 -0
- package/dist/spaces/spaces.schema.d.ts.map +1 -0
- package/dist/spaces/spaces.schema.js +342 -0
- package/dist/spaces/spaces.schema.js.map +1 -0
- package/dist/spaces/spaces.schema.test.d.ts +5 -0
- package/dist/spaces/spaces.schema.test.d.ts.map +1 -0
- package/dist/spaces/spaces.schema.test.js +471 -0
- package/dist/spaces/spaces.schema.test.js.map +1 -0
- package/dist/storage.d.ts +47 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +14 -0
- package/dist/storage.js.map +1 -0
- package/dist/storage.schema.d.ts +277 -0
- package/dist/storage.schema.d.ts.map +1 -0
- package/dist/storage.schema.js +185 -0
- package/dist/storage.schema.js.map +1 -0
- package/dist/storage.schema.test.d.ts +5 -0
- package/dist/storage.schema.test.d.ts.map +1 -0
- package/dist/storage.schema.test.js +346 -0
- package/dist/storage.schema.test.js.map +1 -0
- package/dist/userAuthorization.d.ts +99 -0
- package/dist/userAuthorization.d.ts.map +1 -0
- package/dist/userAuthorization.js +3 -0
- package/dist/userAuthorization.js.map +1 -0
- package/dist/userAuthorization.schema.d.ts +259 -0
- package/dist/userAuthorization.schema.d.ts.map +1 -0
- package/dist/userAuthorization.schema.js +175 -0
- package/dist/userAuthorization.schema.js.map +1 -0
- package/dist/userAuthorization.schema.test.d.ts +5 -0
- package/dist/userAuthorization.schema.test.d.ts.map +1 -0
- package/dist/userAuthorization.schema.test.js +356 -0
- package/dist/userAuthorization.schema.test.js.map +1 -0
- package/dist/version.d.ts +30 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +54 -0
- package/dist/version.js.map +1 -0
- package/dist/wasm-validation.d.ts +287 -0
- package/dist/wasm-validation.d.ts.map +1 -0
- package/dist/wasm-validation.js +219 -0
- package/dist/wasm-validation.js.map +1 -0
- package/dist/wasm-validation.test.d.ts +5 -0
- package/dist/wasm-validation.test.d.ts.map +1 -0
- package/dist/wasm-validation.test.js +233 -0
- package/dist/wasm-validation.test.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SharingService - v2 sharing link service with embedded private keys.
|
|
3
|
+
*
|
|
4
|
+
* This service implements the v2 sharing specification, which embeds private keys
|
|
5
|
+
* directly in sharing links. This allows recipients to exercise delegations
|
|
6
|
+
* without requiring prior session setup.
|
|
7
|
+
*
|
|
8
|
+
* Key differences from v1 SharingLinks:
|
|
9
|
+
* - Private keys are embedded in the link (not just tokens)
|
|
10
|
+
* - Recipients can optionally sub-delegate to their own session key
|
|
11
|
+
* - Pre-configured KV service returned for immediate use
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
import type { IKVService, ServiceSession, InvokeFunction, FetchFunction } from "@tinycloud/sdk-services";
|
|
16
|
+
import type { Result, DelegationError, Delegation, KeyInfo, KeyProvider, GenerateShareParams, ShareLink, ShareSchema, JWK, IngestOptions, CreateDelegationParams, CreateDelegationWasmParams, CreateDelegationWasmResult } from "./types";
|
|
17
|
+
import type { DelegationManager } from "./DelegationManager";
|
|
18
|
+
import type { ICapabilityKeyRegistry } from "../authorization/CapabilityKeyRegistry";
|
|
19
|
+
/**
|
|
20
|
+
* Data encoded in a sharing link.
|
|
21
|
+
*/
|
|
22
|
+
export interface EncodedShareData {
|
|
23
|
+
/** Private key in JWK format (includes d parameter) */
|
|
24
|
+
key: JWK;
|
|
25
|
+
/** DID of the key */
|
|
26
|
+
keyDid: string;
|
|
27
|
+
/** The delegation granting access */
|
|
28
|
+
delegation: Delegation;
|
|
29
|
+
/** Resource path this link grants access to */
|
|
30
|
+
path: string;
|
|
31
|
+
/** TinyCloud host URL */
|
|
32
|
+
host: string;
|
|
33
|
+
/** Space ID */
|
|
34
|
+
spaceId: string;
|
|
35
|
+
/** Schema version */
|
|
36
|
+
version: 1;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Options for receiving a sharing link.
|
|
40
|
+
*/
|
|
41
|
+
export interface ReceiveOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Whether to automatically create a sub-delegation to the current session key.
|
|
44
|
+
* Default: true
|
|
45
|
+
*/
|
|
46
|
+
autoSubdelegate?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to use the current session key for operations (requires autoSubdelegate).
|
|
49
|
+
* Default: true
|
|
50
|
+
*/
|
|
51
|
+
useSessionKey?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Ingestion options passed to CapabilityKeyRegistry.
|
|
54
|
+
*/
|
|
55
|
+
ingestOptions?: IngestOptions;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Result of receiving a sharing link.
|
|
59
|
+
*/
|
|
60
|
+
export interface ShareAccess {
|
|
61
|
+
/** The delegation that was received/created */
|
|
62
|
+
delegation: Delegation;
|
|
63
|
+
/** Key info for the received key */
|
|
64
|
+
key: KeyInfo;
|
|
65
|
+
/** Pre-configured KV service for the shared path */
|
|
66
|
+
kv: IKVService;
|
|
67
|
+
/** The space ID */
|
|
68
|
+
spaceId: string;
|
|
69
|
+
/** The path prefix for this share */
|
|
70
|
+
path: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Configuration for SharingService.
|
|
74
|
+
*/
|
|
75
|
+
export interface SharingServiceConfig {
|
|
76
|
+
/** TinyCloud host URLs */
|
|
77
|
+
hosts: string[];
|
|
78
|
+
/**
|
|
79
|
+
* Active session for authentication.
|
|
80
|
+
* Required for generate(), optional for receive().
|
|
81
|
+
*/
|
|
82
|
+
session?: ServiceSession;
|
|
83
|
+
/** Platform-specific invoke function */
|
|
84
|
+
invoke: InvokeFunction;
|
|
85
|
+
/** Optional custom fetch implementation */
|
|
86
|
+
fetch?: FetchFunction;
|
|
87
|
+
/** Key provider for cryptographic operations */
|
|
88
|
+
keyProvider: KeyProvider;
|
|
89
|
+
/** Capability key registry for key/delegation management */
|
|
90
|
+
registry: ICapabilityKeyRegistry;
|
|
91
|
+
/**
|
|
92
|
+
* Delegation manager for creating delegations (used if createDelegation not provided).
|
|
93
|
+
* Required for generate(), optional for receive().
|
|
94
|
+
*/
|
|
95
|
+
delegationManager?: DelegationManager;
|
|
96
|
+
/** Factory for creating KV service instances */
|
|
97
|
+
createKVService: (config: {
|
|
98
|
+
hosts: string[];
|
|
99
|
+
session: ServiceSession;
|
|
100
|
+
invoke: InvokeFunction;
|
|
101
|
+
fetch?: FetchFunction;
|
|
102
|
+
pathPrefix?: string;
|
|
103
|
+
}) => IKVService;
|
|
104
|
+
/** Base URL for sharing links (e.g., "https://share.myapp.com") */
|
|
105
|
+
baseUrl?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Custom delegation creation function. When provided, this is used instead
|
|
108
|
+
* of delegationManager.create(). This allows platforms to use their own
|
|
109
|
+
* delegation creation logic (e.g., SIWE-based /delegate endpoint).
|
|
110
|
+
*/
|
|
111
|
+
createDelegation?: (params: CreateDelegationParams) => Promise<Result<Delegation, DelegationError>>;
|
|
112
|
+
/**
|
|
113
|
+
* WASM function for client-side delegation creation.
|
|
114
|
+
* When provided, this is preferred over server-side creation (createDelegation/delegationManager).
|
|
115
|
+
* Creates UCAN delegations directly without requiring server roundtrip.
|
|
116
|
+
*/
|
|
117
|
+
createDelegationWasm?: (params: CreateDelegationWasmParams) => CreateDelegationWasmResult;
|
|
118
|
+
/**
|
|
119
|
+
* Path prefix for KV operations.
|
|
120
|
+
* When set, paths passed to generate() are prefixed with this value.
|
|
121
|
+
* This ensures the share path matches the session's authorized paths.
|
|
122
|
+
*/
|
|
123
|
+
pathPrefix?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Session expiry time.
|
|
126
|
+
* When set, sharing link expiry is clamped to not exceed this value.
|
|
127
|
+
*/
|
|
128
|
+
sessionExpiry?: Date;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Interface for the SharingService.
|
|
132
|
+
*/
|
|
133
|
+
export interface ISharingService {
|
|
134
|
+
/**
|
|
135
|
+
* Generate a sharing link with an embedded private key.
|
|
136
|
+
*
|
|
137
|
+
* This creates a new session key, delegates to it, and encodes
|
|
138
|
+
* the key and delegation into a shareable link.
|
|
139
|
+
*/
|
|
140
|
+
generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
|
|
141
|
+
/**
|
|
142
|
+
* Receive and activate a sharing link.
|
|
143
|
+
*
|
|
144
|
+
* Decodes the link, ingests the key into the registry, and optionally
|
|
145
|
+
* creates a sub-delegation to the current session key.
|
|
146
|
+
*/
|
|
147
|
+
receive(link: string, options?: ReceiveOptions): Promise<Result<ShareAccess, DelegationError>>;
|
|
148
|
+
/**
|
|
149
|
+
* Encode sharing data into a link string.
|
|
150
|
+
*/
|
|
151
|
+
encodeLink(data: EncodedShareData, schema?: ShareSchema): string;
|
|
152
|
+
/**
|
|
153
|
+
* Decode a link string into sharing data.
|
|
154
|
+
*/
|
|
155
|
+
decodeLink(link: string): EncodedShareData;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* SharingService - v2 sharing link service with embedded private keys.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* import { SharingService } from "@tinycloud/sdk-core/delegations";
|
|
163
|
+
*
|
|
164
|
+
* const sharing = new SharingService({
|
|
165
|
+
* hosts: ["https://node.tinycloud.xyz"],
|
|
166
|
+
* session,
|
|
167
|
+
* invoke,
|
|
168
|
+
* keyProvider,
|
|
169
|
+
* registry,
|
|
170
|
+
* delegationManager,
|
|
171
|
+
* createKVService,
|
|
172
|
+
* baseUrl: "https://share.myapp.com"
|
|
173
|
+
* });
|
|
174
|
+
*
|
|
175
|
+
* // Generate a sharing link
|
|
176
|
+
* const result = await sharing.generate({
|
|
177
|
+
* path: "/kv/documents/report.pdf",
|
|
178
|
+
* actions: ["tinycloud.kv/get"],
|
|
179
|
+
* expiry: new Date("2024-12-31")
|
|
180
|
+
* });
|
|
181
|
+
*
|
|
182
|
+
* if (result.ok) {
|
|
183
|
+
* console.log("Share this URL:", result.data.url);
|
|
184
|
+
* }
|
|
185
|
+
*
|
|
186
|
+
* // Receive a sharing link
|
|
187
|
+
* const receiveResult = await sharing.receive(shareUrl);
|
|
188
|
+
* if (receiveResult.ok) {
|
|
189
|
+
* // Use the pre-configured KV service
|
|
190
|
+
* const data = await receiveResult.data.kv.get("report.pdf");
|
|
191
|
+
* }
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
export declare class SharingService implements ISharingService {
|
|
195
|
+
private hosts;
|
|
196
|
+
private session?;
|
|
197
|
+
private invoke;
|
|
198
|
+
private fetchFn;
|
|
199
|
+
private keyProvider;
|
|
200
|
+
private registry;
|
|
201
|
+
private delegationManager?;
|
|
202
|
+
private createKVService;
|
|
203
|
+
private baseUrl;
|
|
204
|
+
private createDelegationFn?;
|
|
205
|
+
private createDelegationWasmFn?;
|
|
206
|
+
private pathPrefix;
|
|
207
|
+
private sessionExpiry?;
|
|
208
|
+
/**
|
|
209
|
+
* Creates a new SharingService instance.
|
|
210
|
+
*/
|
|
211
|
+
constructor(config: SharingServiceConfig);
|
|
212
|
+
/**
|
|
213
|
+
* Gets the primary host URL.
|
|
214
|
+
*/
|
|
215
|
+
private get host();
|
|
216
|
+
/**
|
|
217
|
+
* Updates the session (e.g., after re-authentication).
|
|
218
|
+
*/
|
|
219
|
+
updateSession(session: ServiceSession): void;
|
|
220
|
+
/**
|
|
221
|
+
* Updates the service configuration.
|
|
222
|
+
* Used to add full capabilities (session, delegationManager, createDelegation, createDelegationWasm) after signIn.
|
|
223
|
+
*/
|
|
224
|
+
updateConfig(config: Partial<Pick<SharingServiceConfig, "session" | "delegationManager" | "createDelegation" | "createDelegationWasm" | "sessionExpiry">>): void;
|
|
225
|
+
/**
|
|
226
|
+
* Generate a sharing link with an embedded private key.
|
|
227
|
+
*
|
|
228
|
+
* Flow:
|
|
229
|
+
* 1. Spawn new session key (unique per share)
|
|
230
|
+
* 2. Create delegation from current session to spawned key
|
|
231
|
+
* 3. Package: { key (with private!), delegation, path, host }
|
|
232
|
+
* 4. Encode based on schema (base64 for now)
|
|
233
|
+
* 5. Return link string
|
|
234
|
+
*/
|
|
235
|
+
generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
|
|
236
|
+
/**
|
|
237
|
+
* Receive and activate a sharing link.
|
|
238
|
+
*
|
|
239
|
+
* Flow:
|
|
240
|
+
* 1. Decode link -> extract { key, delegation, path, host }
|
|
241
|
+
* 2. Ingest key into CapabilityKeyRegistry
|
|
242
|
+
* 3. If autoSubdelegate (default true) + useSessionKey:
|
|
243
|
+
* - Create sub-delegation from ingested key -> current session
|
|
244
|
+
* - Register sub-delegation capabilities
|
|
245
|
+
* 4. Return ShareAccess with pre-configured KV service
|
|
246
|
+
*/
|
|
247
|
+
receive(link: string, options?: ReceiveOptions): Promise<Result<ShareAccess, DelegationError>>;
|
|
248
|
+
/**
|
|
249
|
+
* Encode sharing data into a link string.
|
|
250
|
+
*
|
|
251
|
+
* @param data - The share data to encode
|
|
252
|
+
* @param schema - The encoding schema (default: "base64")
|
|
253
|
+
* @returns Encoded link string
|
|
254
|
+
*/
|
|
255
|
+
encodeLink(data: EncodedShareData, schema?: ShareSchema): string;
|
|
256
|
+
/**
|
|
257
|
+
* Decode a link string into sharing data.
|
|
258
|
+
*
|
|
259
|
+
* @param link - The encoded link string (may include URL prefix)
|
|
260
|
+
* @returns Decoded share data
|
|
261
|
+
* @throws Error if link format is invalid or data fails validation
|
|
262
|
+
*/
|
|
263
|
+
decodeLink(link: string): EncodedShareData;
|
|
264
|
+
/**
|
|
265
|
+
* Decode and validate a link string into sharing data.
|
|
266
|
+
*
|
|
267
|
+
* Internal method that returns a Result instead of throwing.
|
|
268
|
+
* Used by receive() for proper error handling.
|
|
269
|
+
*
|
|
270
|
+
* @param link - The encoded link string (may include URL prefix)
|
|
271
|
+
* @returns Result with decoded share data or validation error
|
|
272
|
+
*/
|
|
273
|
+
private decodeLinkWithValidation;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Create a new SharingService instance.
|
|
277
|
+
*/
|
|
278
|
+
export declare function createSharingService(config: SharingServiceConfig): ISharingService;
|
|
279
|
+
//# sourceMappingURL=SharingService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharingService.d.ts","sourceRoot":"","sources":["../../src/delegations/SharingService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,OAAO,EACP,WAAW,EACX,mBAAmB,EACnB,SAAS,EAET,WAAW,EACX,GAAG,EACH,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAqFrF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,GAAG,EAAE,GAAG,CAAC;IACT,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,UAAU,EAAE,UAAU,CAAC;IACvB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,OAAO,EAAE,CAAC,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,+CAA+C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