@xyo-network/bridge-model 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.
Files changed (40) hide show
  1. package/dist/Bridge.d.mts +25 -0
  2. package/dist/Bridge.d.mts.map +1 -0
  3. package/dist/Bridge.d.ts +25 -0
  4. package/dist/Bridge.d.ts.map +1 -0
  5. package/dist/Config.d.mts +14 -0
  6. package/dist/Config.d.mts.map +1 -0
  7. package/dist/Config.d.ts +14 -0
  8. package/dist/Config.d.ts.map +1 -0
  9. package/dist/Queries/Connect.d.mts +8 -0
  10. package/dist/Queries/Connect.d.mts.map +1 -0
  11. package/dist/Queries/Connect.d.ts +8 -0
  12. package/dist/Queries/Connect.d.ts.map +1 -0
  13. package/dist/Queries/Connected.d.mts +7 -0
  14. package/dist/Queries/Connected.d.mts.map +1 -0
  15. package/dist/Queries/Connected.d.ts +7 -0
  16. package/dist/Queries/Connected.d.ts.map +1 -0
  17. package/dist/Queries/Disconnect.d.mts +8 -0
  18. package/dist/Queries/Disconnect.d.mts.map +1 -0
  19. package/dist/Queries/Disconnect.d.ts +8 -0
  20. package/dist/Queries/Disconnect.d.ts.map +1 -0
  21. package/dist/Queries/index.d.mts +12 -0
  22. package/dist/Queries/index.d.mts.map +1 -0
  23. package/dist/Queries/index.d.ts +12 -0
  24. package/dist/Queries/index.d.ts.map +1 -0
  25. package/dist/docs.json +14521 -14557
  26. package/dist/index.d.mts +5 -266
  27. package/dist/index.d.mts.map +1 -0
  28. package/dist/index.d.ts +5 -266
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +3 -3
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +1 -1
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/typeChecks.d.mts +198 -0
  35. package/dist/typeChecks.d.mts.map +1 -0
  36. package/dist/typeChecks.d.ts +198 -0
  37. package/dist/typeChecks.d.ts.map +1 -0
  38. package/package.json +10 -16
  39. package/src/typeChecks.ts +1 -1
  40. package/tsup.config.ts +0 -16
@@ -0,0 +1,198 @@
1
+ import { BridgeInstance, BridgeModule } from './Bridge';
2
+ export declare const isBridgeInstance: import("@xyo-network/object").ObjectTypeCheck<BridgeInstance>;
3
+ export declare const isBridgeModule: import("@xyo-network/module-model").ModuleTypeCheck<BridgeModule<import("@xyo-network/core").BaseParamsFields & {
4
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
6
+ accountDerivationPath?: string | undefined;
7
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
8
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
9
+ readonly name?: string | undefined;
10
+ readonly paging?: Record<string, {
11
+ size?: number | undefined;
12
+ }> | undefined;
13
+ readonly security?: {
14
+ readonly allowAnonymous?: boolean | undefined;
15
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
16
+ readonly disallowed?: Record<string, string[]> | undefined;
17
+ } | undefined;
18
+ readonly sign?: boolean | undefined;
19
+ readonly storeQueries?: boolean | undefined;
20
+ readonly timestamp?: boolean | undefined;
21
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
22
+ accountDerivationPath?: string | undefined;
23
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
24
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
25
+ readonly name?: string | undefined;
26
+ readonly paging?: Record<string, {
27
+ size?: number | undefined;
28
+ }> | undefined;
29
+ readonly security?: {
30
+ readonly allowAnonymous?: boolean | undefined;
31
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
32
+ readonly disallowed?: Record<string, string[]> | undefined;
33
+ } | undefined;
34
+ readonly sign?: boolean | undefined;
35
+ readonly storeQueries?: boolean | undefined;
36
+ readonly timestamp?: boolean | undefined;
37
+ } & {
38
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
39
+ schema: "network.xyo.bridge.config";
40
+ }, "schema"> & {
41
+ schema: "network.xyo.bridge.config";
42
+ }, "schema"> & {
43
+ schema: string;
44
+ }, "schema"> & {
45
+ schema: string;
46
+ };
47
+ ephemeralQueryAccountEnabled?: boolean | undefined;
48
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
49
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>;
50
+ export declare const asBridgeModule: {
51
+ <TObject extends BridgeModule<import("@xyo-network/core").BaseParamsFields & {
52
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
53
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
54
+ accountDerivationPath?: string | undefined;
55
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
56
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
57
+ readonly name?: string | undefined;
58
+ readonly paging?: Record<string, {
59
+ size?: number | undefined;
60
+ }> | undefined;
61
+ readonly security?: {
62
+ readonly allowAnonymous?: boolean | undefined;
63
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
64
+ readonly disallowed?: Record<string, string[]> | undefined;
65
+ } | undefined;
66
+ readonly sign?: boolean | undefined;
67
+ readonly storeQueries?: boolean | undefined;
68
+ readonly timestamp?: boolean | undefined;
69
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
70
+ accountDerivationPath?: string | undefined;
71
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
72
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
73
+ readonly name?: string | undefined;
74
+ readonly paging?: Record<string, {
75
+ size?: number | undefined;
76
+ }> | undefined;
77
+ readonly security?: {
78
+ readonly allowAnonymous?: boolean | undefined;
79
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
80
+ readonly disallowed?: Record<string, string[]> | undefined;
81
+ } | undefined;
82
+ readonly sign?: boolean | undefined;
83
+ readonly storeQueries?: boolean | undefined;
84
+ readonly timestamp?: boolean | undefined;
85
+ } & {
86
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
87
+ schema: "network.xyo.bridge.config";
88
+ }, "schema"> & {
89
+ schema: "network.xyo.bridge.config";
90
+ }, "schema"> & {
91
+ schema: string;
92
+ }, "schema"> & {
93
+ schema: string;
94
+ };
95
+ ephemeralQueryAccountEnabled?: boolean | undefined;
96
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
97
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>(obj: object | null | undefined, config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject | undefined;
98
+ <TObject_1 extends BridgeModule<import("@xyo-network/core").BaseParamsFields & {
99
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
100
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
101
+ accountDerivationPath?: string | undefined;
102
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
103
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
104
+ readonly name?: string | undefined;
105
+ readonly paging?: Record<string, {
106
+ size?: number | undefined;
107
+ }> | undefined;
108
+ readonly security?: {
109
+ readonly allowAnonymous?: boolean | undefined;
110
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
111
+ readonly disallowed?: Record<string, string[]> | undefined;
112
+ } | undefined;
113
+ readonly sign?: boolean | undefined;
114
+ readonly storeQueries?: boolean | undefined;
115
+ readonly timestamp?: boolean | undefined;
116
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
117
+ accountDerivationPath?: string | undefined;
118
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
119
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
120
+ readonly name?: string | undefined;
121
+ readonly paging?: Record<string, {
122
+ size?: number | undefined;
123
+ }> | undefined;
124
+ readonly security?: {
125
+ readonly allowAnonymous?: boolean | undefined;
126
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
127
+ readonly disallowed?: Record<string, string[]> | undefined;
128
+ } | undefined;
129
+ readonly sign?: boolean | undefined;
130
+ readonly storeQueries?: boolean | undefined;
131
+ readonly timestamp?: boolean | undefined;
132
+ } & {
133
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
134
+ schema: "network.xyo.bridge.config";
135
+ }, "schema"> & {
136
+ schema: "network.xyo.bridge.config";
137
+ }, "schema"> & {
138
+ schema: string;
139
+ }, "schema"> & {
140
+ schema: string;
141
+ };
142
+ ephemeralQueryAccountEnabled?: boolean | undefined;
143
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
144
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>(obj: object | null | undefined, assert: string | (() => string), config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject_1;
145
+ };
146
+ export declare const asBridgeInstance: {
147
+ <TObject extends BridgeInstance>(obj: object | null | undefined, config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject | undefined;
148
+ <TObject_1 extends BridgeInstance>(obj: object | null | undefined, assert: string | (() => string), config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject_1;
149
+ };
150
+ export declare const withBridgeModule: <R>(module: any, closure: (module: BridgeModule<import("@xyo-network/core").BaseParamsFields & {
151
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
152
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
153
+ accountDerivationPath?: string | undefined;
154
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
155
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
156
+ readonly name?: string | undefined;
157
+ readonly paging?: Record<string, {
158
+ size?: number | undefined;
159
+ }> | undefined;
160
+ readonly security?: {
161
+ readonly allowAnonymous?: boolean | undefined;
162
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
163
+ readonly disallowed?: Record<string, string[]> | undefined;
164
+ } | undefined;
165
+ readonly sign?: boolean | undefined;
166
+ readonly storeQueries?: boolean | undefined;
167
+ readonly timestamp?: boolean | undefined;
168
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
169
+ accountDerivationPath?: string | undefined;
170
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
171
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
172
+ readonly name?: string | undefined;
173
+ readonly paging?: Record<string, {
174
+ size?: number | undefined;
175
+ }> | undefined;
176
+ readonly security?: {
177
+ readonly allowAnonymous?: boolean | undefined;
178
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
179
+ readonly disallowed?: Record<string, string[]> | undefined;
180
+ } | undefined;
181
+ readonly sign?: boolean | undefined;
182
+ readonly storeQueries?: boolean | undefined;
183
+ readonly timestamp?: boolean | undefined;
184
+ } & {
185
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
186
+ schema: "network.xyo.bridge.config";
187
+ }, "schema"> & {
188
+ schema: "network.xyo.bridge.config";
189
+ }, "schema"> & {
190
+ schema: string;
191
+ }, "schema"> & {
192
+ schema: string;
193
+ };
194
+ ephemeralQueryAccountEnabled?: boolean | undefined;
195
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
196
+ }, import("@xyo-network/module-model").ModuleEventData<object>>) => R) => R | undefined;
197
+ export declare const withBridgeInstance: <R>(module: any, closure: (module: BridgeInstance) => R) => R | undefined;
198
+ //# sourceMappingURL=typeChecks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvD,eAAO,MAAM,gBAAgB,+DAM5B,CAAA;AACD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAAsG,CAAA;AAEjI,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,gBAAgB;;;CAA2C,CAAA;AACxE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAAqC,CAAA;AAClE,eAAO,MAAM,kBAAkB,2EAAuC,CAAA"}
@@ -0,0 +1,198 @@
1
+ import { BridgeInstance, BridgeModule } from './Bridge';
2
+ export declare const isBridgeInstance: import("@xyo-network/object").ObjectTypeCheck<BridgeInstance>;
3
+ export declare const isBridgeModule: import("@xyo-network/module-model").ModuleTypeCheck<BridgeModule<import("@xyo-network/core").BaseParamsFields & {
4
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
6
+ accountDerivationPath?: string | undefined;
7
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
8
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
9
+ readonly name?: string | undefined;
10
+ readonly paging?: Record<string, {
11
+ size?: number | undefined;
12
+ }> | undefined;
13
+ readonly security?: {
14
+ readonly allowAnonymous?: boolean | undefined;
15
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
16
+ readonly disallowed?: Record<string, string[]> | undefined;
17
+ } | undefined;
18
+ readonly sign?: boolean | undefined;
19
+ readonly storeQueries?: boolean | undefined;
20
+ readonly timestamp?: boolean | undefined;
21
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
22
+ accountDerivationPath?: string | undefined;
23
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
24
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
25
+ readonly name?: string | undefined;
26
+ readonly paging?: Record<string, {
27
+ size?: number | undefined;
28
+ }> | undefined;
29
+ readonly security?: {
30
+ readonly allowAnonymous?: boolean | undefined;
31
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
32
+ readonly disallowed?: Record<string, string[]> | undefined;
33
+ } | undefined;
34
+ readonly sign?: boolean | undefined;
35
+ readonly storeQueries?: boolean | undefined;
36
+ readonly timestamp?: boolean | undefined;
37
+ } & {
38
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
39
+ schema: "network.xyo.bridge.config";
40
+ }, "schema"> & {
41
+ schema: "network.xyo.bridge.config";
42
+ }, "schema"> & {
43
+ schema: string;
44
+ }, "schema"> & {
45
+ schema: string;
46
+ };
47
+ ephemeralQueryAccountEnabled?: boolean | undefined;
48
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
49
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>;
50
+ export declare const asBridgeModule: {
51
+ <TObject extends BridgeModule<import("@xyo-network/core").BaseParamsFields & {
52
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
53
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
54
+ accountDerivationPath?: string | undefined;
55
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
56
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
57
+ readonly name?: string | undefined;
58
+ readonly paging?: Record<string, {
59
+ size?: number | undefined;
60
+ }> | undefined;
61
+ readonly security?: {
62
+ readonly allowAnonymous?: boolean | undefined;
63
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
64
+ readonly disallowed?: Record<string, string[]> | undefined;
65
+ } | undefined;
66
+ readonly sign?: boolean | undefined;
67
+ readonly storeQueries?: boolean | undefined;
68
+ readonly timestamp?: boolean | undefined;
69
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
70
+ accountDerivationPath?: string | undefined;
71
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
72
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
73
+ readonly name?: string | undefined;
74
+ readonly paging?: Record<string, {
75
+ size?: number | undefined;
76
+ }> | undefined;
77
+ readonly security?: {
78
+ readonly allowAnonymous?: boolean | undefined;
79
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
80
+ readonly disallowed?: Record<string, string[]> | undefined;
81
+ } | undefined;
82
+ readonly sign?: boolean | undefined;
83
+ readonly storeQueries?: boolean | undefined;
84
+ readonly timestamp?: boolean | undefined;
85
+ } & {
86
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
87
+ schema: "network.xyo.bridge.config";
88
+ }, "schema"> & {
89
+ schema: "network.xyo.bridge.config";
90
+ }, "schema"> & {
91
+ schema: string;
92
+ }, "schema"> & {
93
+ schema: string;
94
+ };
95
+ ephemeralQueryAccountEnabled?: boolean | undefined;
96
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
97
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>(obj: object | null | undefined, config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject | undefined;
98
+ <TObject_1 extends BridgeModule<import("@xyo-network/core").BaseParamsFields & {
99
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
100
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
101
+ accountDerivationPath?: string | undefined;
102
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
103
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
104
+ readonly name?: string | undefined;
105
+ readonly paging?: Record<string, {
106
+ size?: number | undefined;
107
+ }> | undefined;
108
+ readonly security?: {
109
+ readonly allowAnonymous?: boolean | undefined;
110
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
111
+ readonly disallowed?: Record<string, string[]> | undefined;
112
+ } | undefined;
113
+ readonly sign?: boolean | undefined;
114
+ readonly storeQueries?: boolean | undefined;
115
+ readonly timestamp?: boolean | undefined;
116
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
117
+ accountDerivationPath?: string | undefined;
118
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
119
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
120
+ readonly name?: string | undefined;
121
+ readonly paging?: Record<string, {
122
+ size?: number | undefined;
123
+ }> | undefined;
124
+ readonly security?: {
125
+ readonly allowAnonymous?: boolean | undefined;
126
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
127
+ readonly disallowed?: Record<string, string[]> | undefined;
128
+ } | undefined;
129
+ readonly sign?: boolean | undefined;
130
+ readonly storeQueries?: boolean | undefined;
131
+ readonly timestamp?: boolean | undefined;
132
+ } & {
133
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
134
+ schema: "network.xyo.bridge.config";
135
+ }, "schema"> & {
136
+ schema: "network.xyo.bridge.config";
137
+ }, "schema"> & {
138
+ schema: string;
139
+ }, "schema"> & {
140
+ schema: string;
141
+ };
142
+ ephemeralQueryAccountEnabled?: boolean | undefined;
143
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
144
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>(obj: object | null | undefined, assert: string | (() => string), config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject_1;
145
+ };
146
+ export declare const asBridgeInstance: {
147
+ <TObject extends BridgeInstance>(obj: object | null | undefined, config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject | undefined;
148
+ <TObject_1 extends BridgeInstance>(obj: object | null | undefined, assert: string | (() => string), config?: import("@xyo-network/object").ObjectTypeConfig | undefined): TObject_1;
149
+ };
150
+ export declare const withBridgeModule: <R>(module: any, closure: (module: BridgeModule<import("@xyo-network/core").BaseParamsFields & {
151
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
152
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
153
+ accountDerivationPath?: string | undefined;
154
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
155
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
156
+ readonly name?: string | undefined;
157
+ readonly paging?: Record<string, {
158
+ size?: number | undefined;
159
+ }> | undefined;
160
+ readonly security?: {
161
+ readonly allowAnonymous?: boolean | undefined;
162
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
163
+ readonly disallowed?: Record<string, string[]> | undefined;
164
+ } | undefined;
165
+ readonly sign?: boolean | undefined;
166
+ readonly storeQueries?: boolean | undefined;
167
+ readonly timestamp?: boolean | undefined;
168
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
169
+ accountDerivationPath?: string | undefined;
170
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
171
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
172
+ readonly name?: string | undefined;
173
+ readonly paging?: Record<string, {
174
+ size?: number | undefined;
175
+ }> | undefined;
176
+ readonly security?: {
177
+ readonly allowAnonymous?: boolean | undefined;
178
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
179
+ readonly disallowed?: Record<string, string[]> | undefined;
180
+ } | undefined;
181
+ readonly sign?: boolean | undefined;
182
+ readonly storeQueries?: boolean | undefined;
183
+ readonly timestamp?: boolean | undefined;
184
+ } & {
185
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
186
+ schema: "network.xyo.bridge.config";
187
+ }, "schema"> & {
188
+ schema: "network.xyo.bridge.config";
189
+ }, "schema"> & {
190
+ schema: string;
191
+ }, "schema"> & {
192
+ schema: string;
193
+ };
194
+ ephemeralQueryAccountEnabled?: boolean | undefined;
195
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
196
+ }, import("@xyo-network/module-model").ModuleEventData<object>>) => R) => R | undefined;
197
+ export declare const withBridgeInstance: <R>(module: any, closure: (module: BridgeInstance) => R) => R | undefined;
198
+ //# sourceMappingURL=typeChecks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvD,eAAO,MAAM,gBAAgB,+DAM5B,CAAA;AACD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAAsG,CAAA;AAEjI,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,gBAAgB;;;CAA2C,CAAA;AACxE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAAqC,CAAA;AAClE,eAAO,MAAM,kBAAkB,2EAAuC,CAAA"}
package/package.json CHANGED
@@ -10,25 +10,19 @@
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/core": "~2.73.4",
15
- "@xyo-network/module": "~2.73.4",
16
- "@xyo-network/module-model": "~2.73.4",
17
- "@xyo-network/object-identity": "~2.73.4",
18
- "@xyo-network/payload-model": "~2.73.4",
19
- "@xyo-network/promise": "~2.73.4"
13
+ "@xyo-network/boundwitness-builder": "~2.74.1",
14
+ "@xyo-network/core": "~2.74.1",
15
+ "@xyo-network/module": "~2.74.1",
16
+ "@xyo-network/module-model": "~2.74.1",
17
+ "@xyo-network/object": "~2.74.1",
18
+ "@xyo-network/payload-model": "~2.74.1",
19
+ "@xyo-network/promise": "~2.74.1"
20
20
  },
21
21
  "devDependencies": {
22
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
23
- "@xylabs/tsconfig": "^2.19.12",
24
- "publint": "^0.2.2",
25
- "tsup": "^7.2.0",
22
+ "@xylabs/ts-scripts-yarn3": "^3.0.28",
23
+ "@xylabs/tsconfig": "^3.0.28",
26
24
  "typescript": "^5.2.2"
27
25
  },
28
- "scripts": {
29
- "package-compile": "tsup && publint",
30
- "package-recompile": "tsup && publint"
31
- },
32
26
  "description": "Primary SDK for using XYO Protocol 2.0",
33
27
  "docs": "dist/docs.json",
34
28
  "types": "dist/index.d.ts",
@@ -69,5 +63,5 @@
69
63
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
70
64
  },
71
65
  "sideEffects": false,
72
- "version": "2.73.4"
66
+ "version": "2.74.1"
73
67
  }
package/src/typeChecks.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
2
- import { AsObjectFactory } from '@xyo-network/object-identity'
2
+ import { AsObjectFactory } from '@xyo-network/object'
3
3
 
4
4
  import { BridgeInstance, BridgeModule } from './Bridge'
5
5
  import { BridgeConnectQuerySchema, BridgeDisconnectQuerySchema } from './Queries'
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
- })