@xyo-network/archivist-model-mongodb 5.3.25 → 5.3.26
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/README.md +307 -10
- package/package.json +13 -19
package/README.md
CHANGED
|
@@ -1,23 +1,320 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/archivist-model-mongodb
|
|
2
4
|
|
|
3
|
-
[![
|
|
5
|
+
[![npm][npm-badge]][npm-link]
|
|
6
|
+
[![license][license-badge]][license-link]
|
|
7
|
+
|
|
8
|
+
> Primary SDK for using XYO Protocol 2.0
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Using npm:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install {{name}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Using yarn:
|
|
4
19
|
|
|
5
|
-
|
|
20
|
+
```sh
|
|
21
|
+
yarn add {{name}}
|
|
22
|
+
```
|
|
6
23
|
|
|
7
|
-
|
|
24
|
+
Using pnpm:
|
|
8
25
|
|
|
9
|
-
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add {{name}}
|
|
28
|
+
```
|
|
10
29
|
|
|
11
|
-
|
|
30
|
+
Using bun:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bun add {{name}}
|
|
34
|
+
```
|
|
12
35
|
|
|
13
|
-
Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
|
|
14
36
|
|
|
15
37
|
## License
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
|
+
|
|
41
|
+
## Reference
|
|
42
|
+
|
|
43
|
+
### packages
|
|
44
|
+
|
|
45
|
+
### modules
|
|
46
|
+
|
|
47
|
+
### packages
|
|
48
|
+
|
|
49
|
+
### archivist
|
|
50
|
+
|
|
51
|
+
### packages
|
|
52
|
+
|
|
53
|
+
### mongodb
|
|
54
|
+
|
|
55
|
+
### packages
|
|
56
|
+
|
|
57
|
+
### model
|
|
58
|
+
|
|
59
|
+
### .temp-typedoc
|
|
60
|
+
|
|
61
|
+
### interfaces
|
|
62
|
+
|
|
63
|
+
### <a id="ArchivistLabels"></a>ArchivistLabels
|
|
64
|
+
|
|
65
|
+
[**@xyo-network/archivist-model-mongodb**](#../README)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
## Extends
|
|
70
|
+
|
|
71
|
+
- `Labels`
|
|
72
|
+
|
|
73
|
+
## Indexable
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
[key: string]: string | undefined
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Properties
|
|
80
|
+
|
|
81
|
+
### network.xyo.archivist.persistence.scope
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
network.xyo.archivist.persistence.scope: "memory" | "thread" | "process" | "disk" | "network";
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### <a id="MongoDBArchivistParams"></a>MongoDBArchivistParams
|
|
88
|
+
|
|
89
|
+
[**@xyo-network/archivist-model-mongodb**](#../README)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
## Extends
|
|
94
|
+
|
|
95
|
+
- `ArchivistParams`\<`AnyConfigSchema`\<[`MongoDBArchivistConfig`](#../type-aliases/MongoDBArchivistConfig)\>\>
|
|
96
|
+
|
|
97
|
+
## Properties
|
|
98
|
+
|
|
99
|
+
### keys?
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
optional keys?: ArchivistKeyParams<BrandedHash, Payload, BrandedHash>;
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Inherited from
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
ArchivistParams.keys
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### parents?
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
optional parents?: ArchivistParentInstances;
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Inherited from
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
ArchivistParams.parents
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
### values?
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
optional values?: ArchivistValueParams<Payload, Payload>;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Inherited from
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
ArchivistParams.values
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
***
|
|
140
|
+
|
|
141
|
+
### boundWitnessSdkConfig
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
boundWitnessSdkConfig: BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>;
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
***
|
|
148
|
+
|
|
149
|
+
### payloadSdkConfig
|
|
150
|
+
|
|
151
|
+
```ts
|
|
152
|
+
payloadSdkConfig: BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>;
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
***
|
|
156
|
+
|
|
157
|
+
### account?
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
optional account?: AccountInstance | "random";
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Inherited from
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
ArchivistParams.account
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
***
|
|
170
|
+
|
|
171
|
+
### addToResolvers?
|
|
172
|
+
|
|
173
|
+
```ts
|
|
174
|
+
optional addToResolvers?: boolean;
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Inherited from
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
ArchivistParams.addToResolvers
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
***
|
|
184
|
+
|
|
185
|
+
### additionalSigners?
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
optional additionalSigners?: AccountInstance[];
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Inherited from
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
ArchivistParams.additionalSigners
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
***
|
|
198
|
+
|
|
199
|
+
### allowNameResolution?
|
|
200
|
+
|
|
201
|
+
```ts
|
|
202
|
+
optional allowNameResolution?: boolean;
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Inherited from
|
|
206
|
+
|
|
207
|
+
```ts
|
|
208
|
+
ArchivistParams.allowNameResolution
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
***
|
|
212
|
+
|
|
213
|
+
### config
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
config: Partial<TConfig>;
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Inherited from
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
ArchivistParams.config
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
***
|
|
226
|
+
|
|
227
|
+
### ephemeralQueryAccountEnabled?
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
optional ephemeralQueryAccountEnabled?: boolean;
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Inherited from
|
|
234
|
+
|
|
235
|
+
```ts
|
|
236
|
+
ArchivistParams.ephemeralQueryAccountEnabled
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
***
|
|
240
|
+
|
|
241
|
+
### moduleIdentifierTransformers?
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
optional moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Inherited from
|
|
248
|
+
|
|
249
|
+
```ts
|
|
250
|
+
ArchivistParams.moduleIdentifierTransformers
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
***
|
|
254
|
+
|
|
255
|
+
### statusReporter?
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
optional statusReporter?: ModuleStatusReporter;
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Optional reporter for broadcasting status changes.
|
|
262
|
+
|
|
263
|
+
### Inherited from
|
|
264
|
+
|
|
265
|
+
```ts
|
|
266
|
+
ArchivistParams.statusReporter
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### type-aliases
|
|
270
|
+
|
|
271
|
+
### <a id="MongoDBArchivistConfig"></a>MongoDBArchivistConfig
|
|
272
|
+
|
|
273
|
+
[**@xyo-network/archivist-model-mongodb**](#../README)
|
|
274
|
+
|
|
275
|
+
***
|
|
276
|
+
|
|
277
|
+
```ts
|
|
278
|
+
type MongoDBArchivistConfig = ArchivistConfig<{
|
|
279
|
+
boundWitnessSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
280
|
+
payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
281
|
+
schema: MongoDBArchivistConfigSchema;
|
|
282
|
+
}>;
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### <a id="MongoDBArchivistConfigSchema"></a>MongoDBArchivistConfigSchema
|
|
286
|
+
|
|
287
|
+
[**@xyo-network/archivist-model-mongodb**](#../README)
|
|
288
|
+
|
|
289
|
+
***
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
type MongoDBArchivistConfigSchema = typeof MongoDBArchivistConfigSchema;
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### variables
|
|
296
|
+
|
|
297
|
+
### <a id="MongoDBArchivistConfigSchema"></a>MongoDBArchivistConfigSchema
|
|
298
|
+
|
|
299
|
+
[**@xyo-network/archivist-model-mongodb**](#../README)
|
|
300
|
+
|
|
301
|
+
***
|
|
302
|
+
|
|
303
|
+
```ts
|
|
304
|
+
const MongoDBArchivistConfigSchema: "network.xyo.archivist.mongodb.config" & object;
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Type Declaration
|
|
308
|
+
|
|
309
|
+
### \_\_schema
|
|
18
310
|
|
|
19
|
-
|
|
311
|
+
```ts
|
|
312
|
+
readonly __schema: true;
|
|
313
|
+
```
|
|
20
314
|
|
|
21
|
-
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
22
315
|
|
|
23
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
316
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
317
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/archivist-model-mongodb.svg
|
|
318
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/archivist-model-mongodb
|
|
319
|
+
[license-badge]: https://img.shields.io/npm/l/@xyo-network/archivist-model-mongodb.svg
|
|
320
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/archivist-model-mongodb",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.26",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"browser": {},
|
|
25
24
|
"node": {
|
|
26
25
|
"types": "./dist/node/index.d.ts",
|
|
27
26
|
"default": "./dist/node/index.mjs"
|
|
@@ -29,8 +28,6 @@
|
|
|
29
28
|
},
|
|
30
29
|
"./package.json": "./package.json"
|
|
31
30
|
},
|
|
32
|
-
"module": "dist/node/index.mjs",
|
|
33
|
-
"types": "dist/node/index.d.ts",
|
|
34
31
|
"files": [
|
|
35
32
|
"dist",
|
|
36
33
|
"!**/*.bench.*",
|
|
@@ -39,27 +36,27 @@
|
|
|
39
36
|
"README.md"
|
|
40
37
|
],
|
|
41
38
|
"dependencies": {
|
|
42
|
-
"@xyo-network/
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/module-model": "~5.3.
|
|
39
|
+
"@xyo-network/payload-model": "~5.3.26",
|
|
40
|
+
"@xyo-network/archivist-model": "~5.3.26",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.26"
|
|
45
42
|
},
|
|
46
43
|
"devDependencies": {
|
|
47
44
|
"@opentelemetry/api": "^1.9.1",
|
|
48
|
-
"@types/node": "^25.5.
|
|
49
|
-
"@xylabs/mongo": "^5.0.
|
|
50
|
-
"@xylabs/sdk-js": "^5.0.
|
|
51
|
-
"@xylabs/ts-scripts-common": "~7.
|
|
52
|
-
"@xylabs/ts-scripts-pnpm": "~7.
|
|
53
|
-
"@xylabs/tsconfig": "~7.
|
|
45
|
+
"@types/node": "^25.5.2",
|
|
46
|
+
"@xylabs/mongo": "^5.0.94",
|
|
47
|
+
"@xylabs/sdk-js": "^5.0.94",
|
|
48
|
+
"@xylabs/ts-scripts-common": "~7.7.5",
|
|
49
|
+
"@xylabs/ts-scripts-pnpm": "~7.7.5",
|
|
50
|
+
"@xylabs/tsconfig": "~7.7.5",
|
|
54
51
|
"acorn": "^8.16.0",
|
|
55
52
|
"axios": "^1.14.0",
|
|
56
53
|
"esbuild": "^0.28.0",
|
|
57
54
|
"mongodb": "^7.1.1",
|
|
58
55
|
"typescript": "~5.9.3",
|
|
59
56
|
"zod": "^4.3.6",
|
|
60
|
-
"@xyo-network/
|
|
61
|
-
"@xyo-network/module-model": "~5.3.
|
|
62
|
-
"@xyo-network/
|
|
57
|
+
"@xyo-network/payload-model": "~5.3.26",
|
|
58
|
+
"@xyo-network/module-model": "~5.3.26",
|
|
59
|
+
"@xyo-network/archivist-model": "~5.3.26"
|
|
63
60
|
},
|
|
64
61
|
"peerDependencies": {
|
|
65
62
|
"@xylabs/mongo": "^5",
|
|
@@ -67,9 +64,6 @@
|
|
|
67
64
|
"mongodb": "^6 || ^7",
|
|
68
65
|
"zod": "^4"
|
|
69
66
|
},
|
|
70
|
-
"engines": {
|
|
71
|
-
"node": ">=16"
|
|
72
|
-
},
|
|
73
67
|
"publishConfig": {
|
|
74
68
|
"access": "public"
|
|
75
69
|
}
|