@xyo-network/bridge-http-express 4.1.2 → 4.1.4
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/neutral/index.d.ts +2 -48
- package/package.json +26 -26
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Address } from '@xylabs/hex';
|
|
4
|
-
import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
-
import { HttpBridgeConfig, HttpBridge } from '@xyo-network/bridge-http';
|
|
6
|
-
import { BridgeParams, BridgeExposeOptions, BridgeUnexposeOptions } from '@xyo-network/bridge-model';
|
|
7
|
-
import { AnyConfigSchema, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
|
|
8
|
-
import { Schema, Payload } from '@xyo-network/payload-model';
|
|
9
|
-
import express, { Application, Request, Response } from 'express';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The type of the path parameters for the address path.
|
|
13
|
-
*/
|
|
14
|
-
type AddressPathParams = {
|
|
15
|
-
address: Address;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* The type of the request body for the address path.
|
|
19
|
-
*/
|
|
20
|
-
type PostAddressRequestBody = [QueryBoundWitness, undefined | Payload[]];
|
|
21
|
-
declare const HttpBridgeExpressConfigSchema: "network.xyo.bridge.http.express.config";
|
|
22
|
-
type HttpBridgeExpressConfigSchema = typeof HttpBridgeExpressConfigSchema;
|
|
23
|
-
interface HttpBridgeExpressConfig extends HttpBridgeConfig<{}, HttpBridgeExpressConfigSchema> {
|
|
24
|
-
}
|
|
25
|
-
interface HttpBridgeExpressParams extends BridgeParams<AnyConfigSchema<HttpBridgeExpressConfig>> {
|
|
26
|
-
}
|
|
27
|
-
declare class HttpBridgeExpress<TParams extends HttpBridgeExpressParams> extends HttpBridge<TParams> {
|
|
28
|
-
static readonly configSchemas: Schema[];
|
|
29
|
-
protected _app?: Application;
|
|
30
|
-
protected _exposedModules: WeakRef<ModuleInstance>[];
|
|
31
|
-
protected _server?: Server;
|
|
32
|
-
protected get app(): express.Application;
|
|
33
|
-
exposeChild(mod: ModuleInstance, options?: BridgeExposeOptions | undefined): Promise<ModuleInstance[]>;
|
|
34
|
-
exposeHandler(address: Address, options?: BridgeExposeOptions | undefined): Promise<ModuleInstance[]>;
|
|
35
|
-
exposedHandler(): Address[];
|
|
36
|
-
startHandler(): Promise<void>;
|
|
37
|
-
stopHandler(_timeout?: number | undefined): Promise<void>;
|
|
38
|
-
unexposeHandler(address: Address, options?: BridgeUnexposeOptions | undefined): Promise<ModuleInstance[]>;
|
|
39
|
-
protected callLocalModule(address: Address, query: QueryBoundWitness, payloads: Payload[]): Promise<ModuleQueryResult | null>;
|
|
40
|
-
protected handleGet(req: Request<AddressPathParams, ModuleQueryResult, PostAddressRequestBody>, res: Response): Promise<void>;
|
|
41
|
-
protected handlePost(req: Request<AddressPathParams, ModuleQueryResult, PostAddressRequestBody>, res: Response): Promise<express.Response<any, Record<string, any>> | undefined>;
|
|
42
|
-
protected initializeApp(): _store__types_express_serve_static_core_npm_5_0_7_4a816a369e_package.Express;
|
|
43
|
-
protected startHttpServer(): Promise<boolean>;
|
|
44
|
-
protected stopHttpServer(): Promise<boolean>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { HttpBridgeExpress, HttpBridgeExpressConfigSchema };
|
|
48
|
-
export type { HttpBridgeExpressConfig, HttpBridgeExpressParams };
|
|
1
|
+
export * from './HttpBridge.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/bridge-http-express",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,36 +36,36 @@
|
|
|
36
36
|
"package.json"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/assert": "^4.13.
|
|
40
|
-
"@xylabs/exists": "^4.13.
|
|
41
|
-
"@xylabs/express": "^4.13.
|
|
42
|
-
"@xylabs/hex": "^4.13.
|
|
43
|
-
"@xylabs/object": "^4.13.
|
|
44
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
45
|
-
"@xyo-network/bridge-http": "^4.1.
|
|
46
|
-
"@xyo-network/bridge-model": "^4.1.
|
|
47
|
-
"@xyo-network/module-model": "^4.1.
|
|
48
|
-
"@xyo-network/payload-model": "^4.1.
|
|
39
|
+
"@xylabs/assert": "^4.13.16",
|
|
40
|
+
"@xylabs/exists": "^4.13.16",
|
|
41
|
+
"@xylabs/express": "^4.13.16",
|
|
42
|
+
"@xylabs/hex": "^4.13.16",
|
|
43
|
+
"@xylabs/object": "^4.13.16",
|
|
44
|
+
"@xyo-network/boundwitness-model": "^4.1.4",
|
|
45
|
+
"@xyo-network/bridge-http": "^4.1.4",
|
|
46
|
+
"@xyo-network/bridge-model": "^4.1.4",
|
|
47
|
+
"@xyo-network/module-model": "^4.1.4",
|
|
48
|
+
"@xyo-network/payload-model": "^4.1.4",
|
|
49
49
|
"express": "^5.1.0",
|
|
50
50
|
"http-status-codes": "^2.3.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/express": "^5.0.3",
|
|
54
|
-
"@types/node": "^24.0.
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
56
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
57
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
58
|
-
"@xyo-network/api-models": "^4.1.
|
|
59
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
60
|
-
"@xyo-network/bridge-abstract": "^4.1.
|
|
61
|
-
"@xyo-network/bridge-pub-sub": "^4.1.
|
|
62
|
-
"@xyo-network/diviner-model": "^4.1.
|
|
63
|
-
"@xyo-network/module-resolver": "^4.1.
|
|
64
|
-
"@xyo-network/node-memory": "^4.1.
|
|
65
|
-
"@xyo-network/node-model": "^4.1.
|
|
66
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
67
|
-
"@xyo-network/payload-wrapper": "^4.1.
|
|
68
|
-
"@xyo-network/wallet": "^4.1.
|
|
54
|
+
"@types/node": "^24.0.14",
|
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
56
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
57
|
+
"@xylabs/vitest-extended": "^4.13.16",
|
|
58
|
+
"@xyo-network/api-models": "^4.1.4",
|
|
59
|
+
"@xyo-network/archivist-model": "^4.1.4",
|
|
60
|
+
"@xyo-network/bridge-abstract": "^4.1.4",
|
|
61
|
+
"@xyo-network/bridge-pub-sub": "^4.1.4",
|
|
62
|
+
"@xyo-network/diviner-model": "^4.1.4",
|
|
63
|
+
"@xyo-network/module-resolver": "^4.1.4",
|
|
64
|
+
"@xyo-network/node-memory": "^4.1.4",
|
|
65
|
+
"@xyo-network/node-model": "^4.1.4",
|
|
66
|
+
"@xyo-network/payload-builder": "^4.1.4",
|
|
67
|
+
"@xyo-network/payload-wrapper": "^4.1.4",
|
|
68
|
+
"@xyo-network/wallet": "^4.1.4",
|
|
69
69
|
"get-port-please": "^3.2.0",
|
|
70
70
|
"typescript": "^5.8.3",
|
|
71
71
|
"vitest": "^3.2.4"
|