@xyo-network/bridge-wrapper 2.73.4 → 2.74.1

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/index.d.mts CHANGED
@@ -1,124 +1,2 @@
1
- import * as _xyo_network_object_identity from '@xyo-network/object-identity';
2
- import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
3
- import * as _xyo_network_bridge_model from '@xyo-network/bridge-model';
4
- import { BridgeModule, BridgeInstance } from '@xyo-network/bridge-model';
5
- import * as _xyo_network_module_model from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
- import { Payload, Query } from '@xyo-network/payload-model';
8
- import * as _xyo_network_account_model from '@xyo-network/account-model';
9
- import * as _xyo_network_core from '@xyo-network/core';
10
- import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
11
- import { ModuleWrapper, ModuleConfig, ModuleQueryResult, ModuleFilter, ModuleFilterOptions, ModuleInstance } from '@xyo-network/module';
12
- import { Promisable } from '@xyo-network/promise';
13
-
14
- declare class BridgeWrapper<TWrappedModule extends BridgeModule = BridgeModule> extends ModuleWrapper<TWrappedModule> implements BridgeInstance<TWrappedModule['params']> {
15
- static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<BridgeInstance<_xyo_network_core.BaseParamsFields & {
16
- account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
17
- config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
18
- accountDerivationPath?: string | undefined;
19
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
20
- readonly name?: string | undefined;
21
- readonly paging?: Record<string, {
22
- size?: number | undefined;
23
- }> | undefined;
24
- readonly schema: string;
25
- readonly security?: {
26
- readonly allowAnonymous?: boolean | undefined;
27
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
28
- readonly disallowed?: Record<string, string[]> | undefined;
29
- } | undefined;
30
- readonly sign?: boolean | undefined;
31
- readonly storeQueries?: boolean | undefined;
32
- readonly timestamp?: boolean | undefined;
33
- } & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
34
- accountDerivationPath?: string | undefined;
35
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
36
- readonly name?: string | undefined;
37
- readonly paging?: Record<string, {
38
- size?: number | undefined;
39
- }> | undefined;
40
- readonly schema: "network.xyo.bridge.config";
41
- readonly security?: {
42
- readonly allowAnonymous?: boolean | undefined;
43
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
44
- readonly disallowed?: Record<string, string[]> | undefined;
45
- } | undefined;
46
- readonly sign?: boolean | undefined;
47
- readonly storeQueries?: boolean | undefined;
48
- readonly timestamp?: boolean | undefined;
49
- } & Omit<{
50
- discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
51
- schema: "network.xyo.bridge.config";
52
- }, "schema"> & {
53
- schema: "network.xyo.bridge.config";
54
- }, "schema"> & {
55
- schema: string;
56
- }, "schema"> & {
57
- schema: string;
58
- };
59
- ephemeralQueryAccountEnabled?: boolean | undefined;
60
- wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
61
- }, _xyo_network_module_model.ModuleEventData<object>>>;
62
- static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<BridgeModule<_xyo_network_core.BaseParamsFields & {
63
- account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
64
- config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
65
- accountDerivationPath?: string | undefined;
66
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
67
- readonly name?: string | undefined;
68
- readonly paging?: Record<string, {
69
- size?: number | undefined;
70
- }> | undefined;
71
- readonly schema: string;
72
- readonly security?: {
73
- readonly allowAnonymous?: boolean | undefined;
74
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
75
- readonly disallowed?: Record<string, string[]> | undefined;
76
- } | undefined;
77
- readonly sign?: boolean | undefined;
78
- readonly storeQueries?: boolean | undefined;
79
- readonly timestamp?: boolean | undefined;
80
- } & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
81
- accountDerivationPath?: string | undefined;
82
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
83
- readonly name?: string | undefined;
84
- readonly paging?: Record<string, {
85
- size?: number | undefined;
86
- }> | undefined;
87
- readonly schema: "network.xyo.bridge.config";
88
- readonly security?: {
89
- readonly allowAnonymous?: boolean | undefined;
90
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
91
- readonly disallowed?: Record<string, string[]> | undefined;
92
- } | undefined;
93
- readonly sign?: boolean | undefined;
94
- readonly storeQueries?: boolean | undefined;
95
- readonly timestamp?: boolean | undefined;
96
- } & Omit<{
97
- discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
98
- schema: "network.xyo.bridge.config";
99
- }, "schema"> & {
100
- schema: "network.xyo.bridge.config";
101
- }, "schema"> & {
102
- schema: string;
103
- }, "schema"> & {
104
- schema: string;
105
- };
106
- ephemeralQueryAccountEnabled?: boolean | undefined;
107
- wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
108
- }, _xyo_network_module_model.ModuleEventData<object>>>;
109
- get connected(): boolean;
110
- get targetDownResolver(): (address?: string | undefined) => _xyo_network_module_model.ModuleResolver | undefined;
111
- connect(uri?: string): Promise<boolean>;
112
- disconnect(uri?: string): Promise<boolean>;
113
- getRootAddress(): Promisable<string>;
114
- targetConfig(address: string): ModuleConfig;
115
- targetDiscover(address: string): Promise<Payload[]>;
116
- targetQueries(address: string): string[];
117
- targetQuery<T extends QueryBoundWitness = QueryBoundWitness>(address: string, query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
118
- targetQueryable(address: string, query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promise<boolean>;
119
- targetResolve(address: string, filter?: ModuleFilter, options?: ModuleFilterOptions): Promise<ModuleInstance[]>;
120
- targetResolve(address: string, nameOrAddress: string, options?: ModuleFilterOptions): Promise<ModuleInstance | undefined>;
121
- protected sendTargetQuery<T extends Query>(address: string, queryPayload: T, payloads?: Payload[]): Promise<Payload[]>;
122
- }
123
-
124
- export { BridgeWrapper };
1
+ export * from './BridgeWrapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,124 +1,2 @@
1
- import * as _xyo_network_object_identity from '@xyo-network/object-identity';
2
- import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
3
- import * as _xyo_network_bridge_model from '@xyo-network/bridge-model';
4
- import { BridgeModule, BridgeInstance } from '@xyo-network/bridge-model';
5
- import * as _xyo_network_module_model from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
- import { Payload, Query } from '@xyo-network/payload-model';
8
- import * as _xyo_network_account_model from '@xyo-network/account-model';
9
- import * as _xyo_network_core from '@xyo-network/core';
10
- import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
11
- import { ModuleWrapper, ModuleConfig, ModuleQueryResult, ModuleFilter, ModuleFilterOptions, ModuleInstance } from '@xyo-network/module';
12
- import { Promisable } from '@xyo-network/promise';
13
-
14
- declare class BridgeWrapper<TWrappedModule extends BridgeModule = BridgeModule> extends ModuleWrapper<TWrappedModule> implements BridgeInstance<TWrappedModule['params']> {
15
- static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<BridgeInstance<_xyo_network_core.BaseParamsFields & {
16
- account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
17
- config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
18
- accountDerivationPath?: string | undefined;
19
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
20
- readonly name?: string | undefined;
21
- readonly paging?: Record<string, {
22
- size?: number | undefined;
23
- }> | undefined;
24
- readonly schema: string;
25
- readonly security?: {
26
- readonly allowAnonymous?: boolean | undefined;
27
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
28
- readonly disallowed?: Record<string, string[]> | undefined;
29
- } | undefined;
30
- readonly sign?: boolean | undefined;
31
- readonly storeQueries?: boolean | undefined;
32
- readonly timestamp?: boolean | undefined;
33
- } & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
34
- accountDerivationPath?: string | undefined;
35
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
36
- readonly name?: string | undefined;
37
- readonly paging?: Record<string, {
38
- size?: number | undefined;
39
- }> | undefined;
40
- readonly schema: "network.xyo.bridge.config";
41
- readonly security?: {
42
- readonly allowAnonymous?: boolean | undefined;
43
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
44
- readonly disallowed?: Record<string, string[]> | undefined;
45
- } | undefined;
46
- readonly sign?: boolean | undefined;
47
- readonly storeQueries?: boolean | undefined;
48
- readonly timestamp?: boolean | undefined;
49
- } & Omit<{
50
- discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
51
- schema: "network.xyo.bridge.config";
52
- }, "schema"> & {
53
- schema: "network.xyo.bridge.config";
54
- }, "schema"> & {
55
- schema: string;
56
- }, "schema"> & {
57
- schema: string;
58
- };
59
- ephemeralQueryAccountEnabled?: boolean | undefined;
60
- wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
61
- }, _xyo_network_module_model.ModuleEventData<object>>>;
62
- static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<BridgeModule<_xyo_network_core.BaseParamsFields & {
63
- account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
64
- config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
65
- accountDerivationPath?: string | undefined;
66
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
67
- readonly name?: string | undefined;
68
- readonly paging?: Record<string, {
69
- size?: number | undefined;
70
- }> | undefined;
71
- readonly schema: string;
72
- readonly security?: {
73
- readonly allowAnonymous?: boolean | undefined;
74
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
75
- readonly disallowed?: Record<string, string[]> | undefined;
76
- } | undefined;
77
- readonly sign?: boolean | undefined;
78
- readonly storeQueries?: boolean | undefined;
79
- readonly timestamp?: boolean | undefined;
80
- } & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
81
- accountDerivationPath?: string | undefined;
82
- readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
83
- readonly name?: string | undefined;
84
- readonly paging?: Record<string, {
85
- size?: number | undefined;
86
- }> | undefined;
87
- readonly schema: "network.xyo.bridge.config";
88
- readonly security?: {
89
- readonly allowAnonymous?: boolean | undefined;
90
- readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
91
- readonly disallowed?: Record<string, string[]> | undefined;
92
- } | undefined;
93
- readonly sign?: boolean | undefined;
94
- readonly storeQueries?: boolean | undefined;
95
- readonly timestamp?: boolean | undefined;
96
- } & Omit<{
97
- discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
98
- schema: "network.xyo.bridge.config";
99
- }, "schema"> & {
100
- schema: "network.xyo.bridge.config";
101
- }, "schema"> & {
102
- schema: string;
103
- }, "schema"> & {
104
- schema: string;
105
- };
106
- ephemeralQueryAccountEnabled?: boolean | undefined;
107
- wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
108
- }, _xyo_network_module_model.ModuleEventData<object>>>;
109
- get connected(): boolean;
110
- get targetDownResolver(): (address?: string | undefined) => _xyo_network_module_model.ModuleResolver | undefined;
111
- connect(uri?: string): Promise<boolean>;
112
- disconnect(uri?: string): Promise<boolean>;
113
- getRootAddress(): Promisable<string>;
114
- targetConfig(address: string): ModuleConfig;
115
- targetDiscover(address: string): Promise<Payload[]>;
116
- targetQueries(address: string): string[];
117
- targetQuery<T extends QueryBoundWitness = QueryBoundWitness>(address: string, query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
118
- targetQueryable(address: string, query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promise<boolean>;
119
- targetResolve(address: string, filter?: ModuleFilter, options?: ModuleFilterOptions): Promise<ModuleInstance[]>;
120
- targetResolve(address: string, nameOrAddress: string, options?: ModuleFilterOptions): Promise<ModuleInstance | undefined>;
121
- protected sendTargetQuery<T extends Query>(address: string, queryPayload: T, payloads?: Payload[]): Promise<Payload[]>;
122
- }
123
-
124
- export { BridgeWrapper };
1
+ export * from './BridgeWrapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
package/package.json CHANGED
@@ -10,23 +10,17 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/boundwitness-builder": "~2.73.4",
14
- "@xyo-network/bridge-model": "~2.73.4",
15
- "@xyo-network/module": "~2.73.4",
16
- "@xyo-network/payload-model": "~2.73.4",
17
- "@xyo-network/promise": "~2.73.4"
13
+ "@xyo-network/boundwitness-builder": "~2.74.1",
14
+ "@xyo-network/bridge-model": "~2.74.1",
15
+ "@xyo-network/module": "~2.74.1",
16
+ "@xyo-network/payload-model": "~2.74.1",
17
+ "@xyo-network/promise": "~2.74.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
21
- "@xylabs/tsconfig": "^2.19.12",
22
- "publint": "^0.2.2",
23
- "tsup": "^7.2.0",
20
+ "@xylabs/ts-scripts-yarn3": "^3.0.28",
21
+ "@xylabs/tsconfig": "^3.0.28",
24
22
  "typescript": "^5.2.2"
25
23
  },
26
- "scripts": {
27
- "package-compile": "tsup && publint",
28
- "package-recompile": "tsup && publint"
29
- },
30
24
  "description": "Primary SDK for using XYO Protocol 2.0",
31
25
  "docs": "dist/docs.json",
32
26
  "types": "dist/index.d.ts",
@@ -67,5 +61,5 @@
67
61
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
68
62
  },
69
63
  "sideEffects": false,
70
- "version": "2.73.4"
64
+ "version": "2.74.1"
71
65
  }
package/tsup.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- // eslint-disable-next-line import/no-default-export
4
- export default defineConfig({
5
- bundle: true,
6
- cjsInterop: true,
7
- clean: false,
8
- dts: {
9
- entry: ['src/index.ts'],
10
- },
11
- entry: ['src/index.ts'],
12
- format: ['cjs', 'esm'],
13
- sourcemap: true,
14
- splitting: false,
15
- tsconfig: 'tsconfig.json',
16
- })