@pkcprotocol/pkc-js 0.0.45 → 0.0.47
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/browser/clients/rpc-client/schema.d.ts +2 -2
- package/dist/browser/community/schema.d.ts +18 -18
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/index-with-compile-cache.d.ts +254 -0
- package/dist/browser/index-with-compile-cache.js +25 -0
- package/dist/browser/index-with-compile-cache.js.map +1 -0
- package/dist/browser/pages/schema.d.ts +5 -5
- package/dist/browser/pkc/pkc.d.ts +3 -4
- package/dist/browser/pkc/pkc.js +16 -19
- package/dist/browser/pkc/pkc.js.map +1 -1
- package/dist/browser/publications/comment/schema.d.ts +2 -2
- package/dist/browser/publications/comment/schema.js +7 -1
- package/dist/browser/publications/comment/schema.js.map +1 -1
- package/dist/browser/rpc/src/index.js +10 -1
- package/dist/browser/rpc/src/index.js.map +1 -1
- package/dist/browser/runtime/browser/compile-cache.d.ts +1 -0
- package/dist/browser/runtime/browser/compile-cache.js +7 -0
- package/dist/browser/runtime/browser/compile-cache.js.map +1 -0
- package/dist/browser/runtime/browser/setup-kubo-http-routers.d.ts +1 -0
- package/dist/browser/runtime/browser/setup-kubo-http-routers.js +4 -0
- package/dist/browser/runtime/browser/setup-kubo-http-routers.js.map +1 -0
- package/dist/browser/runtime/node/compile-cache.d.ts +1 -0
- package/dist/browser/runtime/node/compile-cache.js +29 -0
- package/dist/browser/runtime/node/compile-cache.js.map +1 -0
- package/dist/browser/runtime/node/setup-kubo-http-routers.d.ts +2 -0
- package/dist/browser/runtime/node/{setup-kubo-address-rewriter-and-http-router.js → setup-kubo-http-routers.js} +10 -79
- package/dist/browser/runtime/node/setup-kubo-http-routers.js.map +1 -0
- package/dist/bundled/bundle-manifest.json +1288 -0
- package/dist/bundled/chunks/helia-for-pkc-Kr0fvym5.js +281 -0
- package/dist/bundled/chunks/local-community-1YWTMINk.js +7218 -0
- package/dist/bundled/chunks/local-community-DyL61Q84.js +2 -0
- package/dist/bundled/chunks/node-7bvDHqBl.js +7567 -0
- package/dist/bundled/chunks/rpc-local-community-Xpx65cbz.js +128945 -0
- package/dist/bundled/chunks/schema-CijXm_fr.js +34342 -0
- package/dist/bundled/chunks/util-RR1J0iZB.js +200 -0
- package/dist/bundled/index-with-compile-cache.js +19 -0
- package/dist/bundled/index.js +2 -0
- package/dist/bundled/rpc/src/index.js +1473 -0
- package/dist/node/clients/rpc-client/schema.d.ts +2 -2
- package/dist/node/community/schema.d.ts +18 -18
- package/dist/node/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/dist/node/index-with-compile-cache.d.ts +254 -0
- package/dist/node/index-with-compile-cache.js +25 -0
- package/dist/node/index-with-compile-cache.js.map +1 -0
- package/dist/node/pages/schema.d.ts +5 -5
- package/dist/node/pkc/pkc.d.ts +3 -4
- package/dist/node/pkc/pkc.js +16 -19
- package/dist/node/pkc/pkc.js.map +1 -1
- package/dist/node/publications/comment/schema.d.ts +2 -2
- package/dist/node/publications/comment/schema.js +7 -1
- package/dist/node/publications/comment/schema.js.map +1 -1
- package/dist/node/rpc/src/index.js +10 -1
- package/dist/node/rpc/src/index.js.map +1 -1
- package/dist/node/runtime/browser/compile-cache.d.ts +1 -0
- package/dist/node/runtime/browser/compile-cache.js +7 -0
- package/dist/node/runtime/browser/compile-cache.js.map +1 -0
- package/dist/node/runtime/browser/setup-kubo-http-routers.d.ts +1 -0
- package/dist/node/runtime/browser/setup-kubo-http-routers.js +4 -0
- package/dist/node/runtime/browser/setup-kubo-http-routers.js.map +1 -0
- package/dist/node/runtime/node/compile-cache.d.ts +1 -0
- package/dist/node/runtime/node/compile-cache.js +29 -0
- package/dist/node/runtime/node/compile-cache.js.map +1 -0
- package/dist/node/runtime/node/setup-kubo-http-routers.d.ts +2 -0
- package/dist/node/runtime/node/{setup-kubo-address-rewriter-and-http-router.js → setup-kubo-http-routers.js} +10 -79
- package/dist/node/runtime/node/setup-kubo-http-routers.js.map +1 -0
- package/package.json +29 -10
- package/dist/browser/decorator-util.d.ts +0 -1
- package/dist/browser/decorator-util.js +0 -35
- package/dist/browser/decorator-util.js.map +0 -1
- package/dist/browser/rpc/src/lib/pkc-js/pkc-js-mock.js +0 -472
- package/dist/browser/rpc/src/lib/pkc-js/pkc-js-mock.js.map +0 -1
- package/dist/browser/runtime/browser/setup-kubo-address-rewriter-and-http-router.d.ts +0 -1
- package/dist/browser/runtime/browser/setup-kubo-address-rewriter-and-http-router.js +0 -4
- package/dist/browser/runtime/browser/setup-kubo-address-rewriter-and-http-router.js.map +0 -1
- package/dist/browser/runtime/node/address-rewriter-db.d.ts +0 -31
- package/dist/browser/runtime/node/address-rewriter-db.js +0 -156
- package/dist/browser/runtime/node/address-rewriter-db.js.map +0 -1
- package/dist/browser/runtime/node/addresses-rewriter-proxy-server.d.ts +0 -45
- package/dist/browser/runtime/node/addresses-rewriter-proxy-server.js +0 -493
- package/dist/browser/runtime/node/addresses-rewriter-proxy-server.js.map +0 -1
- package/dist/browser/runtime/node/setup-kubo-address-rewriter-and-http-router.d.ts +0 -4
- package/dist/browser/runtime/node/setup-kubo-address-rewriter-and-http-router.js.map +0 -1
- package/dist/node/decorator-util.d.ts +0 -1
- package/dist/node/decorator-util.js +0 -35
- package/dist/node/decorator-util.js.map +0 -1
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.d.ts +0 -1
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.js +0 -472
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.js.map +0 -1
- package/dist/node/runtime/browser/setup-kubo-address-rewriter-and-http-router.d.ts +0 -1
- package/dist/node/runtime/browser/setup-kubo-address-rewriter-and-http-router.js +0 -4
- package/dist/node/runtime/browser/setup-kubo-address-rewriter-and-http-router.js.map +0 -1
- package/dist/node/runtime/node/address-rewriter-db.d.ts +0 -31
- package/dist/node/runtime/node/address-rewriter-db.js +0 -156
- package/dist/node/runtime/node/address-rewriter-db.js.map +0 -1
- package/dist/node/runtime/node/addresses-rewriter-proxy-server.d.ts +0 -45
- package/dist/node/runtime/node/addresses-rewriter-proxy-server.js +0 -493
- package/dist/node/runtime/node/addresses-rewriter-proxy-server.js.map +0 -1
- package/dist/node/runtime/node/setup-kubo-address-rewriter-and-http-router.d.ts +0 -4
- package/dist/node/runtime/node/setup-kubo-address-rewriter-and-http-router.js.map +0 -1
- /package/dist/{browser/rpc/src/lib/pkc-js/pkc-js-mock.d.ts → bundled/challenges.js} +0 -0
|
@@ -173,7 +173,7 @@ export declare const RpcCommentUpdateResultSchema: z.ZodObject<{
|
|
|
173
173
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
174
174
|
}, z.core.$strip>;
|
|
175
175
|
protocolVersion: z.ZodString;
|
|
176
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
177
177
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
178
178
|
new: "new";
|
|
179
179
|
best: "best";
|
|
@@ -261,7 +261,7 @@ export declare const RpcCommentUpdateResultSchema: z.ZodObject<{
|
|
|
261
261
|
newFlat: "newFlat";
|
|
262
262
|
oldFlat: "oldFlat";
|
|
263
263
|
}>, z.ZodString]>, z.ZodString>>;
|
|
264
|
-
}, z.core.$strip
|
|
264
|
+
}, z.core.$strip>>>;
|
|
265
265
|
}, z.core.$strict>;
|
|
266
266
|
runtimeFields: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
267
267
|
}, z.core.$strip>;
|
|
@@ -700,7 +700,7 @@ export declare const CommunityIpfsSchema: z.ZodObject<{
|
|
|
700
700
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
701
701
|
}, z.core.$strip>;
|
|
702
702
|
protocolVersion: z.ZodString;
|
|
703
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
704
704
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
705
705
|
new: "new";
|
|
706
706
|
best: "best";
|
|
@@ -715,7 +715,7 @@ export declare const CommunityIpfsSchema: z.ZodObject<{
|
|
|
715
715
|
newFlat: "newFlat";
|
|
716
716
|
oldFlat: "oldFlat";
|
|
717
717
|
}>, z.ZodString]>, z.ZodString>>;
|
|
718
|
-
}, z.core.$strip
|
|
718
|
+
}, z.core.$strip>>>;
|
|
719
719
|
}, z.core.$loose>;
|
|
720
720
|
}, z.core.$strip>>>;
|
|
721
721
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -1040,7 +1040,7 @@ export declare const RpcRemoteCommunityUpdateEventResultSchema: z.ZodObject<{
|
|
|
1040
1040
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
1041
1041
|
}, z.core.$strip>;
|
|
1042
1042
|
protocolVersion: z.ZodString;
|
|
1043
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
1043
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1044
1044
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
1045
1045
|
new: "new";
|
|
1046
1046
|
best: "best";
|
|
@@ -1055,7 +1055,7 @@ export declare const RpcRemoteCommunityUpdateEventResultSchema: z.ZodObject<{
|
|
|
1055
1055
|
newFlat: "newFlat";
|
|
1056
1056
|
oldFlat: "oldFlat";
|
|
1057
1057
|
}>, z.ZodString]>, z.ZodString>>;
|
|
1058
|
-
}, z.core.$strip
|
|
1058
|
+
}, z.core.$strip>>>;
|
|
1059
1059
|
}, z.core.$loose>;
|
|
1060
1060
|
}, z.core.$strip>>>;
|
|
1061
1061
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -1512,7 +1512,7 @@ export declare const CreateRemoteCommunityOptionsSchema: z.ZodObject<{
|
|
|
1512
1512
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
1513
1513
|
}, z.core.$strip>;
|
|
1514
1514
|
protocolVersion: z.ZodString;
|
|
1515
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
1515
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1516
1516
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
1517
1517
|
new: "new";
|
|
1518
1518
|
best: "best";
|
|
@@ -1527,7 +1527,7 @@ export declare const CreateRemoteCommunityOptionsSchema: z.ZodObject<{
|
|
|
1527
1527
|
newFlat: "newFlat";
|
|
1528
1528
|
oldFlat: "oldFlat";
|
|
1529
1529
|
}>, z.ZodString]>, z.ZodString>>;
|
|
1530
|
-
}, z.core.$strip
|
|
1530
|
+
}, z.core.$strip>>>;
|
|
1531
1531
|
}, z.core.$loose>;
|
|
1532
1532
|
}, z.core.$strip>>>;
|
|
1533
1533
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -2258,7 +2258,7 @@ export declare const CreateRemoteCommunityFunctionArgumentSchema: z.ZodUnion<[z.
|
|
|
2258
2258
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
2259
2259
|
}, z.core.$strip>;
|
|
2260
2260
|
protocolVersion: z.ZodString;
|
|
2261
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
2261
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2262
2262
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
2263
2263
|
new: "new";
|
|
2264
2264
|
best: "best";
|
|
@@ -2273,7 +2273,7 @@ export declare const CreateRemoteCommunityFunctionArgumentSchema: z.ZodUnion<[z.
|
|
|
2273
2273
|
newFlat: "newFlat";
|
|
2274
2274
|
oldFlat: "oldFlat";
|
|
2275
2275
|
}>, z.ZodString]>, z.ZodString>>;
|
|
2276
|
-
}, z.core.$strip
|
|
2276
|
+
}, z.core.$strip>>>;
|
|
2277
2277
|
}, z.core.$loose>;
|
|
2278
2278
|
}, z.core.$strip>>>;
|
|
2279
2279
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -2485,7 +2485,7 @@ export declare const CreateRemoteCommunityFunctionArgumentSchema: z.ZodUnion<[z.
|
|
|
2485
2485
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
2486
2486
|
}, z.core.$strip>;
|
|
2487
2487
|
protocolVersion: z.ZodString;
|
|
2488
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
2488
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2489
2489
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
2490
2490
|
new: "new";
|
|
2491
2491
|
best: "best";
|
|
@@ -2500,7 +2500,7 @@ export declare const CreateRemoteCommunityFunctionArgumentSchema: z.ZodUnion<[z.
|
|
|
2500
2500
|
newFlat: "newFlat";
|
|
2501
2501
|
oldFlat: "oldFlat";
|
|
2502
2502
|
}>, z.ZodString]>, z.ZodString>>;
|
|
2503
|
-
}, z.core.$strip
|
|
2503
|
+
}, z.core.$strip>>>;
|
|
2504
2504
|
}, z.core.$loose>;
|
|
2505
2505
|
}, z.core.$strip>>>;
|
|
2506
2506
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -2948,7 +2948,7 @@ export declare const CreateRpcCommunityFunctionArgumentSchema: z.ZodUnion<[z.Zod
|
|
|
2948
2948
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
2949
2949
|
}, z.core.$strip>;
|
|
2950
2950
|
protocolVersion: z.ZodString;
|
|
2951
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
2951
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2952
2952
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
2953
2953
|
new: "new";
|
|
2954
2954
|
best: "best";
|
|
@@ -2963,7 +2963,7 @@ export declare const CreateRpcCommunityFunctionArgumentSchema: z.ZodUnion<[z.Zod
|
|
|
2963
2963
|
newFlat: "newFlat";
|
|
2964
2964
|
oldFlat: "oldFlat";
|
|
2965
2965
|
}>, z.ZodString]>, z.ZodString>>;
|
|
2966
|
-
}, z.core.$strip
|
|
2966
|
+
}, z.core.$strip>>>;
|
|
2967
2967
|
}, z.core.$loose>;
|
|
2968
2968
|
}, z.core.$strip>>>;
|
|
2969
2969
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -3175,7 +3175,7 @@ export declare const CreateRpcCommunityFunctionArgumentSchema: z.ZodUnion<[z.Zod
|
|
|
3175
3175
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
3176
3176
|
}, z.core.$strip>;
|
|
3177
3177
|
protocolVersion: z.ZodString;
|
|
3178
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
3178
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3179
3179
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
3180
3180
|
new: "new";
|
|
3181
3181
|
best: "best";
|
|
@@ -3190,7 +3190,7 @@ export declare const CreateRpcCommunityFunctionArgumentSchema: z.ZodUnion<[z.Zod
|
|
|
3190
3190
|
newFlat: "newFlat";
|
|
3191
3191
|
oldFlat: "oldFlat";
|
|
3192
3192
|
}>, z.ZodString]>, z.ZodString>>;
|
|
3193
|
-
}, z.core.$strip
|
|
3193
|
+
}, z.core.$strip>>>;
|
|
3194
3194
|
}, z.core.$loose>;
|
|
3195
3195
|
}, z.core.$strip>>>;
|
|
3196
3196
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -3870,7 +3870,7 @@ export declare const CreateCommunityFunctionArgumentsSchema: z.ZodUnion<[z.ZodOb
|
|
|
3870
3870
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
3871
3871
|
}, z.core.$strip>;
|
|
3872
3872
|
protocolVersion: z.ZodString;
|
|
3873
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
3873
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3874
3874
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
3875
3875
|
new: "new";
|
|
3876
3876
|
best: "best";
|
|
@@ -3885,7 +3885,7 @@ export declare const CreateCommunityFunctionArgumentsSchema: z.ZodUnion<[z.ZodOb
|
|
|
3885
3885
|
newFlat: "newFlat";
|
|
3886
3886
|
oldFlat: "oldFlat";
|
|
3887
3887
|
}>, z.ZodString]>, z.ZodString>>;
|
|
3888
|
-
}, z.core.$strip
|
|
3888
|
+
}, z.core.$strip>>>;
|
|
3889
3889
|
}, z.core.$loose>;
|
|
3890
3890
|
}, z.core.$strip>>>;
|
|
3891
3891
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -4097,7 +4097,7 @@ export declare const CreateCommunityFunctionArgumentsSchema: z.ZodUnion<[z.ZodOb
|
|
|
4097
4097
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
4098
4098
|
}, z.core.$strip>;
|
|
4099
4099
|
protocolVersion: z.ZodString;
|
|
4100
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
4100
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4101
4101
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
4102
4102
|
new: "new";
|
|
4103
4103
|
best: "best";
|
|
@@ -4112,7 +4112,7 @@ export declare const CreateCommunityFunctionArgumentsSchema: z.ZodUnion<[z.ZodOb
|
|
|
4112
4112
|
newFlat: "newFlat";
|
|
4113
4113
|
oldFlat: "oldFlat";
|
|
4114
4114
|
}>, z.ZodString]>, z.ZodString>>;
|
|
4115
|
-
}, z.core.$strip
|
|
4115
|
+
}, z.core.$strip>>>;
|
|
4116
4116
|
}, z.core.$loose>;
|
|
4117
4117
|
}, z.core.$strip>>>;
|
|
4118
4118
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.47";
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
(pkcOptions?: import("./types.js").InputPKCOptions): Promise<import("./pkc/pkc.js").PKC>;
|
|
3
|
+
setNativeFunctions: (newNativeFunctions: Partial<import("./types.js").NativeFunctions>) => void;
|
|
4
|
+
nativeFunctions: {
|
|
5
|
+
node: import("./types.js").NativeFunctions;
|
|
6
|
+
browser: import("./types.js").NativeFunctions;
|
|
7
|
+
};
|
|
8
|
+
getShortCid: (params: import("./clients/rpc-client/types.js").CidRpcParam) => string;
|
|
9
|
+
getShortAddress: (params: import("./clients/rpc-client/types.js").AuthorNameRpcParam) => string;
|
|
10
|
+
challenges: Record<string, import("zod/v4/core").$InferInnerFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
11
|
+
challengeSettings: import("zod").ZodObject<{
|
|
12
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
options: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
15
|
+
exclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
16
|
+
community: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
17
|
+
addresses: import("zod").ZodArray<import("zod").ZodString>;
|
|
18
|
+
maxCommentCids: import("zod").ZodNumber;
|
|
19
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
20
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
21
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
22
|
+
}, import("zod/v4/core").$strict>>;
|
|
23
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
24
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
25
|
+
postCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
26
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
27
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
|
+
challenges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
29
|
+
role: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEnum<{
|
|
30
|
+
owner: "owner";
|
|
31
|
+
admin: "admin";
|
|
32
|
+
moderator: "moderator";
|
|
33
|
+
}>, import("zod").ZodString]>>>;
|
|
34
|
+
address: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
35
|
+
rateLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
36
|
+
rateLimitChallengeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
publicationType: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
38
|
+
post: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
reply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
40
|
+
vote: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
41
|
+
commentEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
42
|
+
commentModeration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
43
|
+
communityEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
44
|
+
}, import("zod/v4/core").$loose>>;
|
|
45
|
+
}, import("zod/v4/core").$loose>>>;
|
|
46
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
pendingApproval: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48
|
+
}, import("zod/v4/core").$strict>;
|
|
49
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodObject<{
|
|
50
|
+
optionInputs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
51
|
+
option: import("zod").ZodString;
|
|
52
|
+
label: import("zod").ZodString;
|
|
53
|
+
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
57
|
+
}, import("zod/v4/core").$loose>>>;
|
|
58
|
+
type: import("zod").ZodString;
|
|
59
|
+
challenge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
caseInsensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
61
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
getChallenge: import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
63
|
+
challengeSettings: import("zod").ZodObject<{
|
|
64
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
options: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
67
|
+
exclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
68
|
+
community: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
69
|
+
addresses: import("zod").ZodArray<import("zod").ZodString>;
|
|
70
|
+
maxCommentCids: import("zod").ZodNumber;
|
|
71
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
72
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
73
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
74
|
+
}, import("zod/v4/core").$strict>>;
|
|
75
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
76
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
77
|
+
postCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
78
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
79
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
80
|
+
challenges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
81
|
+
role: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEnum<{
|
|
82
|
+
owner: "owner";
|
|
83
|
+
admin: "admin";
|
|
84
|
+
moderator: "moderator";
|
|
85
|
+
}>, import("zod").ZodString]>>>;
|
|
86
|
+
address: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
87
|
+
rateLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
88
|
+
rateLimitChallengeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
89
|
+
publicationType: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
90
|
+
post: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
91
|
+
reply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
|
+
vote: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
commentEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
94
|
+
commentModeration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
95
|
+
communityEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
96
|
+
}, import("zod/v4/core").$loose>>;
|
|
97
|
+
}, import("zod/v4/core").$loose>>>;
|
|
98
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
+
pendingApproval: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
100
|
+
}, import("zod/v4/core").$strict>;
|
|
101
|
+
challengeRequestMessage: import("zod").ZodCustom<import("./pubsub-messages/types.js").DecryptedChallengeRequestMessageTypeWithCommunityAuthor, import("./pubsub-messages/types.js").DecryptedChallengeRequestMessageTypeWithCommunityAuthor>;
|
|
102
|
+
challengeIndex: import("zod").ZodNumber;
|
|
103
|
+
community: import("zod").ZodCustom<import("./runtime/browser/community/local-community.js").LocalCommunity, import("./runtime/browser/community/local-community.js").LocalCommunity>;
|
|
104
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodPromise<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
105
|
+
challenge: import("zod").ZodString;
|
|
106
|
+
verify: import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodLazy<import("zod").ZodString>], null>, import("zod").ZodPromise<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
107
|
+
success: import("zod").ZodLiteral<true>;
|
|
108
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
109
|
+
commentUpdate: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
110
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
111
|
+
success: import("zod").ZodLiteral<false>;
|
|
112
|
+
error: import("zod").ZodString;
|
|
113
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
}, import("zod/v4/core").$strip>]>>>;
|
|
115
|
+
type: import("zod").ZodString;
|
|
116
|
+
caseInsensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
117
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
118
|
+
success: import("zod").ZodLiteral<true>;
|
|
119
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
120
|
+
commentUpdate: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
121
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
122
|
+
success: import("zod").ZodLiteral<false>;
|
|
123
|
+
error: import("zod").ZodString;
|
|
124
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
125
|
+
}, import("zod/v4/core").$strip>]>]>>>;
|
|
126
|
+
}, import("zod/v4/core").$strict>>>;
|
|
127
|
+
};
|
|
128
|
+
export default _default;
|
|
129
|
+
export declare const setNativeFunctions: (newNativeFunctions: Partial<import("./types.js").NativeFunctions>) => void;
|
|
130
|
+
export declare const nativeFunctions: {
|
|
131
|
+
node: import("./types.js").NativeFunctions;
|
|
132
|
+
browser: import("./types.js").NativeFunctions;
|
|
133
|
+
};
|
|
134
|
+
export declare const getShortCid: (params: import("./clients/rpc-client/types.js").CidRpcParam) => string;
|
|
135
|
+
export declare const getShortAddress: (params: import("./clients/rpc-client/types.js").AuthorNameRpcParam) => string;
|
|
136
|
+
export declare const challenges: Record<string, import("zod/v4/core").$InferInnerFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
137
|
+
challengeSettings: import("zod").ZodObject<{
|
|
138
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
139
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
140
|
+
options: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
141
|
+
exclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
142
|
+
community: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
|
+
addresses: import("zod").ZodArray<import("zod").ZodString>;
|
|
144
|
+
maxCommentCids: import("zod").ZodNumber;
|
|
145
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
146
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
147
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
148
|
+
}, import("zod/v4/core").$strict>>;
|
|
149
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
151
|
+
postCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
152
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
153
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
154
|
+
challenges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
155
|
+
role: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEnum<{
|
|
156
|
+
owner: "owner";
|
|
157
|
+
admin: "admin";
|
|
158
|
+
moderator: "moderator";
|
|
159
|
+
}>, import("zod").ZodString]>>>;
|
|
160
|
+
address: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
161
|
+
rateLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
162
|
+
rateLimitChallengeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
163
|
+
publicationType: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
164
|
+
post: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
165
|
+
reply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
166
|
+
vote: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
167
|
+
commentEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
168
|
+
commentModeration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
169
|
+
communityEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
170
|
+
}, import("zod/v4/core").$loose>>;
|
|
171
|
+
}, import("zod/v4/core").$loose>>>;
|
|
172
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
pendingApproval: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
174
|
+
}, import("zod/v4/core").$strict>;
|
|
175
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodObject<{
|
|
176
|
+
optionInputs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
177
|
+
option: import("zod").ZodString;
|
|
178
|
+
label: import("zod").ZodString;
|
|
179
|
+
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
+
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
183
|
+
}, import("zod/v4/core").$loose>>>;
|
|
184
|
+
type: import("zod").ZodString;
|
|
185
|
+
challenge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
186
|
+
caseInsensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
187
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
|
+
getChallenge: import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
189
|
+
challengeSettings: import("zod").ZodObject<{
|
|
190
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
191
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
options: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
193
|
+
exclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
194
|
+
community: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
195
|
+
addresses: import("zod").ZodArray<import("zod").ZodString>;
|
|
196
|
+
maxCommentCids: import("zod").ZodNumber;
|
|
197
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
198
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
199
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
200
|
+
}, import("zod/v4/core").$strict>>;
|
|
201
|
+
postScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
202
|
+
replyScore: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
203
|
+
postCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
204
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
205
|
+
firstCommentTimestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
206
|
+
challenges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
207
|
+
role: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEnum<{
|
|
208
|
+
owner: "owner";
|
|
209
|
+
admin: "admin";
|
|
210
|
+
moderator: "moderator";
|
|
211
|
+
}>, import("zod").ZodString]>>>;
|
|
212
|
+
address: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
213
|
+
rateLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
214
|
+
rateLimitChallengeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
215
|
+
publicationType: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
216
|
+
post: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
217
|
+
reply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
218
|
+
vote: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
219
|
+
commentEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
220
|
+
commentModeration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
221
|
+
communityEdit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
222
|
+
}, import("zod/v4/core").$loose>>;
|
|
223
|
+
}, import("zod/v4/core").$loose>>>;
|
|
224
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
|
+
pendingApproval: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
226
|
+
}, import("zod/v4/core").$strict>;
|
|
227
|
+
challengeRequestMessage: import("zod").ZodCustom<import("./pubsub-messages/types.js").DecryptedChallengeRequestMessageTypeWithCommunityAuthor, import("./pubsub-messages/types.js").DecryptedChallengeRequestMessageTypeWithCommunityAuthor>;
|
|
228
|
+
challengeIndex: import("zod").ZodNumber;
|
|
229
|
+
community: import("zod").ZodCustom<import("./runtime/browser/community/local-community.js").LocalCommunity, import("./runtime/browser/community/local-community.js").LocalCommunity>;
|
|
230
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodPromise<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
231
|
+
challenge: import("zod").ZodString;
|
|
232
|
+
verify: import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodLazy<import("zod").ZodString>], null>, import("zod").ZodPromise<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
233
|
+
success: import("zod").ZodLiteral<true>;
|
|
234
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
235
|
+
commentUpdate: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
236
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
237
|
+
success: import("zod").ZodLiteral<false>;
|
|
238
|
+
error: import("zod").ZodString;
|
|
239
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
240
|
+
}, import("zod/v4/core").$strip>]>>>;
|
|
241
|
+
type: import("zod").ZodString;
|
|
242
|
+
caseInsensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
243
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
244
|
+
success: import("zod").ZodLiteral<true>;
|
|
245
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
246
|
+
commentUpdate: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
247
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
248
|
+
success: import("zod").ZodLiteral<false>;
|
|
249
|
+
error: import("zod").ZodString;
|
|
250
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
}, import("zod/v4/core").$strip>]>]>>>;
|
|
252
|
+
}, import("zod/v4/core").$strict>>>;
|
|
253
|
+
export type { NameResolverInterface } from "./schema.js";
|
|
254
|
+
export type { NameResolver } from "./types.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Thin bootstrap entry for Node ESM consumers (the `"."` -> `import` condition in
|
|
2
|
+
// package.json). Part of issue #120: it enables Node's on-disk V8 compile cache and ONLY
|
|
3
|
+
// THEN dynamic-imports the real entry, so the whole module graph compiles with the cache
|
|
4
|
+
// active and runs after the first import reuse the cached bytecode (recovering the
|
|
5
|
+
// parse/compile ~29% of import time).
|
|
6
|
+
//
|
|
7
|
+
// Why a separate file instead of calling enableCompileCache() in index.ts: Node's ESM
|
|
8
|
+
// loader compiles the ENTIRE static import graph before any module body executes, and the
|
|
9
|
+
// compile cache only covers modules compiled after the call — so from inside index.ts it
|
|
10
|
+
// would always be too late. The dynamic import() below is what delays the graph's
|
|
11
|
+
// compilation until the cache is on.
|
|
12
|
+
//
|
|
13
|
+
// Why the `require` condition keeps pointing at plain index.js: this file uses top-level
|
|
14
|
+
// await, and require(esm) throws ERR_REQUIRE_ASYNC_MODULE on graphs containing TLA. CJS
|
|
15
|
+
// consumers simply keep the previous (uncached) behavior.
|
|
16
|
+
import { enableNodeCompileCache } from "./runtime/browser/compile-cache.js";
|
|
17
|
+
enableNodeCompileCache();
|
|
18
|
+
const index = await import("./index.js");
|
|
19
|
+
export default index.default;
|
|
20
|
+
export const setNativeFunctions = index.setNativeFunctions;
|
|
21
|
+
export const nativeFunctions = index.nativeFunctions;
|
|
22
|
+
export const getShortCid = index.getShortCid;
|
|
23
|
+
export const getShortAddress = index.getShortAddress;
|
|
24
|
+
export const challenges = index.challenges;
|
|
25
|
+
//# sourceMappingURL=index-with-compile-cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-with-compile-cache.js","sourceRoot":"","sources":["../../src/index-with-compile-cache.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,yFAAyF;AACzF,yFAAyF;AACzF,mFAAmF;AACnF,sCAAsC;AACtC,EAAE;AACF,sFAAsF;AACtF,0FAA0F;AAC1F,yFAAyF;AACzF,kFAAkF;AAClF,qCAAqC;AACrC,EAAE;AACF,yFAAyF;AACzF,wFAAwF;AACxF,0DAA0D;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,sBAAsB,EAAE,CAAC;AAEzB,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;AAEzC,eAAe,KAAK,CAAC,OAAO,CAAC;AAC7B,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC;AAC3D,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC"}
|
|
@@ -169,7 +169,7 @@ export declare const PageIpfsSchema: z.ZodObject<{
|
|
|
169
169
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
171
|
protocolVersion: z.ZodString;
|
|
172
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
173
173
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
174
174
|
new: "new";
|
|
175
175
|
best: "best";
|
|
@@ -184,7 +184,7 @@ export declare const PageIpfsSchema: z.ZodObject<{
|
|
|
184
184
|
newFlat: "newFlat";
|
|
185
185
|
oldFlat: "oldFlat";
|
|
186
186
|
}>, z.ZodString]>, z.ZodString>>;
|
|
187
|
-
}, z.core.$strip
|
|
187
|
+
}, z.core.$strip>>>;
|
|
188
188
|
}, z.core.$loose>;
|
|
189
189
|
}, z.core.$strip>>>;
|
|
190
190
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -388,7 +388,7 @@ export declare const PostsPagesIpfsSchema: z.ZodObject<{
|
|
|
388
388
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
389
389
|
}, z.core.$strip>;
|
|
390
390
|
protocolVersion: z.ZodString;
|
|
391
|
-
replies: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
392
392
|
pages: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
|
|
393
393
|
new: "new";
|
|
394
394
|
best: "best";
|
|
@@ -403,7 +403,7 @@ export declare const PostsPagesIpfsSchema: z.ZodObject<{
|
|
|
403
403
|
newFlat: "newFlat";
|
|
404
404
|
oldFlat: "oldFlat";
|
|
405
405
|
}>, z.ZodString]>, z.ZodString>>;
|
|
406
|
-
}, z.core.$strip
|
|
406
|
+
}, z.core.$strip>>>;
|
|
407
407
|
}, z.core.$loose>;
|
|
408
408
|
}, z.core.$strip>>>;
|
|
409
409
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -597,7 +597,7 @@ export declare const RepliesPagesIpfsSchema: z.ZodObject<{
|
|
|
597
597
|
signedPropertyNames: z.ZodArray<z.ZodString>;
|
|
598
598
|
}, z.core.$strip>;
|
|
599
599
|
protocolVersion: z.ZodString;
|
|
600
|
-
replies: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip
|
|
600
|
+
replies: z.ZodOptional<z.ZodLazy<z.ZodObject</*elided*/ any, z.core.$strip>>>;
|
|
601
601
|
}, z.core.$loose>;
|
|
602
602
|
}, z.core.$strip>>>;
|
|
603
603
|
nextCid: z.ZodOptional<z.ZodString>;
|
|
@@ -10,7 +10,7 @@ import type { ChallengeFileFactoryInput, CreateRemoteCommunityOptions, Community
|
|
|
10
10
|
import { RemoteCommunity } from "../community/remote-community.js";
|
|
11
11
|
import { RpcRemoteCommunity } from "../community/rpc-remote-community.js";
|
|
12
12
|
import { RpcLocalCommunity } from "../community/rpc-local-community.js";
|
|
13
|
-
import { LocalCommunity } from "../runtime/browser/community/local-community.js";
|
|
13
|
+
import type { LocalCommunity } from "../runtime/browser/community/local-community.js";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import type { CreateSignerOptions } from "../signer/types.js";
|
|
16
16
|
import type { CommentEditPubsubMessagePublication, CommentEditTypeJson, CreateCommentEditOptions } from "../publications/comment-edit/types.js";
|
|
@@ -23,7 +23,7 @@ import CommunityEdit from "../publications/community-edit/community-edit.js";
|
|
|
23
23
|
import type { CreateCommunityEditPublicationOptions, CommunityEditJson, CommunityEditPubsubMessagePublication } from "../publications/community-edit/types.js";
|
|
24
24
|
import { PKCTypedEmitter } from "../clients/pkc-typed-emitter.js";
|
|
25
25
|
import type { PageTypeJson } from "../pages/types.js";
|
|
26
|
-
import { Libp2pJsClient } from "../helia/libp2pjsClient.js";
|
|
26
|
+
import type { Libp2pJsClient } from "../helia/libp2pjsClient.js";
|
|
27
27
|
import type { AuthorNameRpcParam, CidRpcParam, RpcFetchCidResult } from "../clients/rpc-client/types.js";
|
|
28
28
|
import { IndexedTrackedInstanceRegistry } from "./tracked-instance-registry.js";
|
|
29
29
|
export declare class PKC extends PKCTypedEmitter<PKCEvents> implements ParsedPKCOptions {
|
|
@@ -74,8 +74,7 @@ export declare class PKC extends PKCTypedEmitter<PKCEvents> implements ParsedPKC
|
|
|
74
74
|
_startedCommunities: IndexedTrackedInstanceRegistry<LocalCommunity | RpcLocalCommunity>;
|
|
75
75
|
private _communityFsWatchAbort?;
|
|
76
76
|
private _destroyAbortController?;
|
|
77
|
-
private
|
|
78
|
-
private _addressRewriterSetupPromise?;
|
|
77
|
+
private _httpRouterSetupPromise?;
|
|
79
78
|
destroyed: boolean;
|
|
80
79
|
private _promiseToWaitForFirstCommunitieschangeEvent;
|
|
81
80
|
private _storageLRUs;
|