@tinycloudlabs/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,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpaceService - Global singleton for managing spaces (owned and delegated).
|
|
3
|
+
*
|
|
4
|
+
* SpaceService provides a unified interface for discovering, creating,
|
|
5
|
+
* and accessing spaces. It handles both owned spaces (created by the user)
|
|
6
|
+
* and delegated spaces (shared by other users).
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import type { IKVService, Result, ServiceError, ServiceSession, FetchFunction, InvokeFunction } from "@tinycloudlabs/sdk-services";
|
|
11
|
+
import type { SpaceInfo, Delegation, CreateDelegationParams } from "../delegations/types";
|
|
12
|
+
import type { ICapabilityKeyRegistry } from "../authorization/CapabilityKeyRegistry";
|
|
13
|
+
import type { ISharingService } from "../delegations/SharingService";
|
|
14
|
+
import { type ISpace } from "./Space";
|
|
15
|
+
/**
|
|
16
|
+
* Error codes for SpaceService operations.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SpaceErrorCodes: {
|
|
19
|
+
/** Space not found */
|
|
20
|
+
readonly NOT_FOUND: "SPACE_NOT_FOUND";
|
|
21
|
+
/** Space already exists */
|
|
22
|
+
readonly ALREADY_EXISTS: "SPACE_ALREADY_EXISTS";
|
|
23
|
+
/** Creation failed */
|
|
24
|
+
readonly CREATION_FAILED: "SPACE_CREATION_FAILED";
|
|
25
|
+
/** Authentication required */
|
|
26
|
+
readonly AUTH_REQUIRED: "AUTH_REQUIRED";
|
|
27
|
+
/** Invalid space name or URI */
|
|
28
|
+
readonly INVALID_NAME: "INVALID_SPACE_NAME";
|
|
29
|
+
/** Network error */
|
|
30
|
+
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
31
|
+
/** Not initialized */
|
|
32
|
+
readonly NOT_INITIALIZED: "NOT_INITIALIZED";
|
|
33
|
+
};
|
|
34
|
+
export type SpaceErrorCode = (typeof SpaceErrorCodes)[keyof typeof SpaceErrorCodes];
|
|
35
|
+
/**
|
|
36
|
+
* Parameters for creating a space-scoped delegation.
|
|
37
|
+
* Extends CreateDelegationParams with the spaceId.
|
|
38
|
+
*/
|
|
39
|
+
export interface SpaceDelegationParams extends Omit<CreateDelegationParams, "spaceId"> {
|
|
40
|
+
/** The space ID to create the delegation for */
|
|
41
|
+
spaceId: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Function type for creating delegations.
|
|
45
|
+
* Platform SDKs provide this to handle SIWE-based delegation creation.
|
|
46
|
+
*/
|
|
47
|
+
export type CreateDelegationFunction = (params: SpaceDelegationParams) => Promise<Result<Delegation, ServiceError>>;
|
|
48
|
+
/**
|
|
49
|
+
* Configuration for SpaceService.
|
|
50
|
+
*/
|
|
51
|
+
export interface SpaceServiceConfig {
|
|
52
|
+
/** TinyCloud host URLs */
|
|
53
|
+
hosts: string[];
|
|
54
|
+
/** Active session for authentication */
|
|
55
|
+
session: ServiceSession;
|
|
56
|
+
/** Platform-specific invoke function */
|
|
57
|
+
invoke: InvokeFunction;
|
|
58
|
+
/** Optional custom fetch implementation */
|
|
59
|
+
fetch?: FetchFunction;
|
|
60
|
+
/** Optional capability key registry for delegated space discovery */
|
|
61
|
+
capabilityRegistry?: ICapabilityKeyRegistry;
|
|
62
|
+
/** Factory function to create a space-scoped KV service */
|
|
63
|
+
createKVService?: (spaceId: string) => IKVService;
|
|
64
|
+
/** User's PKH DID (derived from address or provided explicitly) */
|
|
65
|
+
userDid?: string;
|
|
66
|
+
/** Optional SharingService for v2 sharing links (client-side) */
|
|
67
|
+
sharingService?: ISharingService;
|
|
68
|
+
/**
|
|
69
|
+
* Factory function to create delegations using SIWE-based flow.
|
|
70
|
+
* Platform SDKs (web-sdk, node-sdk) provide this using their WASM bindings.
|
|
71
|
+
* Required for space.delegations.create() to work.
|
|
72
|
+
*/
|
|
73
|
+
createDelegation?: CreateDelegationFunction;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Interface for SpaceService.
|
|
77
|
+
*/
|
|
78
|
+
export interface ISpaceService {
|
|
79
|
+
/**
|
|
80
|
+
* List all spaces the user has access to (owned + delegated).
|
|
81
|
+
*/
|
|
82
|
+
list(): Promise<Result<SpaceInfo[], ServiceError>>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a new space.
|
|
85
|
+
*
|
|
86
|
+
* @param name - The name for the new space
|
|
87
|
+
*/
|
|
88
|
+
create(name: string): Promise<Result<SpaceInfo, ServiceError>>;
|
|
89
|
+
/**
|
|
90
|
+
* Get a Space object by name or full URI.
|
|
91
|
+
*
|
|
92
|
+
* For owned spaces, use the short name: `sdk.space('default')`
|
|
93
|
+
* For delegated spaces, use the full URI: `sdk.space('tinycloud:pkh:eip155:1:0x...:photos')`
|
|
94
|
+
*
|
|
95
|
+
* @param nameOrUri - Short name or full URI
|
|
96
|
+
*/
|
|
97
|
+
get(nameOrUri: string): ISpace;
|
|
98
|
+
/**
|
|
99
|
+
* Check if a space exists and the user has access.
|
|
100
|
+
*
|
|
101
|
+
* @param nameOrUri - Short name or full URI
|
|
102
|
+
*/
|
|
103
|
+
exists(nameOrUri: string): Promise<Result<boolean, ServiceError>>;
|
|
104
|
+
/**
|
|
105
|
+
* Get the current user's primary space ID.
|
|
106
|
+
*/
|
|
107
|
+
getCurrentSpaceId(): string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Update the service configuration.
|
|
110
|
+
*/
|
|
111
|
+
updateConfig(config: Partial<SpaceServiceConfig>): void;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Parse a space URI to extract components.
|
|
115
|
+
*
|
|
116
|
+
* Full URI format: `tinycloud:pkh:eip155:{chainId}:{address}:{name}`
|
|
117
|
+
* Short name format: `{name}`
|
|
118
|
+
*
|
|
119
|
+
* @param uri - The space URI or short name
|
|
120
|
+
* @returns Parsed components or null if invalid
|
|
121
|
+
*/
|
|
122
|
+
export declare function parseSpaceUri(uri: string): {
|
|
123
|
+
owner: string;
|
|
124
|
+
name: string;
|
|
125
|
+
chainId?: string;
|
|
126
|
+
address?: string;
|
|
127
|
+
} | null;
|
|
128
|
+
/**
|
|
129
|
+
* Build a full space URI from components.
|
|
130
|
+
*
|
|
131
|
+
* @param owner - Owner DID (did:pkh:eip155:{chainId}:{address})
|
|
132
|
+
* @param name - Space name
|
|
133
|
+
* @returns Full space URI
|
|
134
|
+
*/
|
|
135
|
+
export declare function buildSpaceUri(owner: string, name: string): string;
|
|
136
|
+
/**
|
|
137
|
+
* SpaceService - Global singleton for managing spaces.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const spaceService = new SpaceService({
|
|
142
|
+
* hosts: ['https://node.tinycloud.xyz'],
|
|
143
|
+
* session,
|
|
144
|
+
* invoke,
|
|
145
|
+
* });
|
|
146
|
+
*
|
|
147
|
+
* // List all accessible spaces
|
|
148
|
+
* const result = await spaceService.list();
|
|
149
|
+
* if (result.ok) {
|
|
150
|
+
* for (const space of result.data) {
|
|
151
|
+
* console.log(`${space.name} (${space.type})`);
|
|
152
|
+
* }
|
|
153
|
+
* }
|
|
154
|
+
*
|
|
155
|
+
* // Create a new space
|
|
156
|
+
* const createResult = await spaceService.create('photos');
|
|
157
|
+
*
|
|
158
|
+
* // Get a space object for operations
|
|
159
|
+
* const space = spaceService.get('photos');
|
|
160
|
+
* await space.kv.put('album/vacation', { photos: [...] });
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
export declare class SpaceService implements ISpaceService {
|
|
164
|
+
private hosts;
|
|
165
|
+
private session;
|
|
166
|
+
private invoke;
|
|
167
|
+
private fetchFn;
|
|
168
|
+
private capabilityRegistry?;
|
|
169
|
+
private createKVServiceFn?;
|
|
170
|
+
private _userDid?;
|
|
171
|
+
private sharingService?;
|
|
172
|
+
private createDelegationFn?;
|
|
173
|
+
/** Cache of created Space objects */
|
|
174
|
+
private spaceCache;
|
|
175
|
+
/** Cache of space info */
|
|
176
|
+
private infoCache;
|
|
177
|
+
/** Cache TTL in milliseconds (5 minutes) */
|
|
178
|
+
private readonly cacheTTL;
|
|
179
|
+
/**
|
|
180
|
+
* Create a new SpaceService instance.
|
|
181
|
+
*
|
|
182
|
+
* @param config - Service configuration
|
|
183
|
+
*/
|
|
184
|
+
constructor(config: SpaceServiceConfig);
|
|
185
|
+
/**
|
|
186
|
+
* Update the service configuration.
|
|
187
|
+
*/
|
|
188
|
+
updateConfig(config: Partial<SpaceServiceConfig>): void;
|
|
189
|
+
/**
|
|
190
|
+
* Get the current user's primary space ID.
|
|
191
|
+
*/
|
|
192
|
+
getCurrentSpaceId(): string | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Get the primary host URL.
|
|
195
|
+
*/
|
|
196
|
+
private get host();
|
|
197
|
+
/**
|
|
198
|
+
* Get the current user's PKH DID.
|
|
199
|
+
*/
|
|
200
|
+
private get userDid();
|
|
201
|
+
/**
|
|
202
|
+
* List all spaces the user has access to.
|
|
203
|
+
*
|
|
204
|
+
* Combines owned spaces (from the server) with delegated spaces
|
|
205
|
+
* (from the capability registry).
|
|
206
|
+
*/
|
|
207
|
+
list(): Promise<Result<SpaceInfo[], ServiceError>>;
|
|
208
|
+
/**
|
|
209
|
+
* List owned spaces from the server.
|
|
210
|
+
*/
|
|
211
|
+
private listOwnedSpaces;
|
|
212
|
+
/**
|
|
213
|
+
* Discover delegated spaces from the capability registry.
|
|
214
|
+
*/
|
|
215
|
+
private discoverDelegatedSpaces;
|
|
216
|
+
/**
|
|
217
|
+
* Extract space name from a full space ID.
|
|
218
|
+
*/
|
|
219
|
+
private extractNameFromId;
|
|
220
|
+
/**
|
|
221
|
+
* Deduplicate spaces, preferring owned over delegated.
|
|
222
|
+
*/
|
|
223
|
+
private deduplicateSpaces;
|
|
224
|
+
/**
|
|
225
|
+
* Create a new space.
|
|
226
|
+
*
|
|
227
|
+
* @param name - The name for the new space
|
|
228
|
+
*/
|
|
229
|
+
create(name: string): Promise<Result<SpaceInfo, ServiceError>>;
|
|
230
|
+
/**
|
|
231
|
+
* Get a Space object by name or full URI.
|
|
232
|
+
*
|
|
233
|
+
* @param nameOrUri - Short name or full URI
|
|
234
|
+
*/
|
|
235
|
+
get(nameOrUri: string): ISpace;
|
|
236
|
+
/**
|
|
237
|
+
* Resolve a name or URI to a full space ID.
|
|
238
|
+
*/
|
|
239
|
+
private resolveSpaceId;
|
|
240
|
+
/**
|
|
241
|
+
* Check if a space exists and the user has access.
|
|
242
|
+
*/
|
|
243
|
+
exists(nameOrUri: string): Promise<Result<boolean, ServiceError>>;
|
|
244
|
+
/**
|
|
245
|
+
* Get space info from server or cache.
|
|
246
|
+
*/
|
|
247
|
+
private getSpaceInfo;
|
|
248
|
+
/**
|
|
249
|
+
* Create a space-scoped KV service.
|
|
250
|
+
*/
|
|
251
|
+
private createSpaceScopedKV;
|
|
252
|
+
/**
|
|
253
|
+
* Create space-scoped delegation operations.
|
|
254
|
+
*/
|
|
255
|
+
private createSpaceScopedDelegations;
|
|
256
|
+
/**
|
|
257
|
+
* Create space-scoped sharing operations.
|
|
258
|
+
*
|
|
259
|
+
* When a SharingService is configured, delegates to client-side v2 sharing.
|
|
260
|
+
* V2 sharing links are self-contained with embedded private keys - no server tracking.
|
|
261
|
+
*/
|
|
262
|
+
private createSpaceScopedSharing;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Create a new SpaceService instance.
|
|
266
|
+
*
|
|
267
|
+
* @param config - Service configuration
|
|
268
|
+
* @returns A new SpaceService instance
|
|
269
|
+
*/
|
|
270
|
+
export declare function createSpaceService(config: SpaceServiceConfig): ISpaceService;
|
|
271
|
+
//# sourceMappingURL=SpaceService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpaceService.d.ts","sourceRoot":"","sources":["../../src/spaces/SpaceService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,YAAY,EACZ,cAAc,EACd,aAAa,EACb,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAA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