@xyo-network/archivist-mongodb 2.82.0 → 2.83.0

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.
@@ -1,27 +1,43 @@
1
1
  import { AbstractArchivist } from '@xyo-network/archivist-abstract';
2
2
  import { Payload } from '@xyo-network/payload-model';
3
3
  declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
4
- _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-mongodb").BoundWitnessWithMeta> | undefined;
5
- _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
4
+ _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
+ _payloads?: (import("@xyo-network/payload-model").SchemaFields & object & Partial<import("@xyo-network/payload-mongodb").PayloadMetaBase> & {
6
+ schema: string;
7
+ })[] | undefined;
8
+ _source_ip?: string | undefined;
9
+ _user_agent?: string | undefined;
10
+ } & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
11
+ schema: "network.xyo.boundwitness";
12
+ }> | undefined;
13
+ _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
6
14
  schema: string;
7
15
  }> | undefined;
8
16
  readonly boundWitnessSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
9
- readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-mongodb").BoundWitnessWithMeta>;
17
+ readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
18
+ _payloads?: (import("@xyo-network/payload-model").SchemaFields & object & Partial<import("@xyo-network/payload-mongodb").PayloadMetaBase> & {
19
+ schema: string;
20
+ })[] | undefined;
21
+ _source_ip?: string | undefined;
22
+ _user_agent?: string | undefined;
23
+ } & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
24
+ schema: "network.xyo.boundwitness";
25
+ }>;
10
26
  readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
11
27
  readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
12
- readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
28
+ readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
13
29
  schema: string;
14
30
  }>;
15
31
  ensureIndexes(): Promise<void>;
16
32
  address: string;
17
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
18
- accountDerivationPath?: string | undefined;
19
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
33
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
34
+ readonly archivist?: string | undefined;
20
35
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
21
36
  readonly name?: string | undefined;
22
37
  readonly paging?: Record<string, {
23
38
  size?: number | undefined;
24
39
  }> | undefined;
40
+ schema: "network.xyo.module.mongodb.config";
25
41
  readonly security?: {
26
42
  readonly allowAnonymous?: boolean | undefined;
27
43
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -30,14 +46,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
30
46
  readonly sign?: boolean | undefined;
31
47
  readonly storeQueries?: boolean | undefined;
32
48
  readonly timestamp?: boolean | undefined;
33
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
34
- accountDerivationPath?: string | undefined;
35
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
49
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
50
+ readonly archivist?: string | undefined;
36
51
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
37
52
  readonly name?: string | undefined;
38
53
  readonly paging?: Record<string, {
39
54
  size?: number | undefined;
40
55
  }> | undefined;
56
+ schema: "network.xyo.module.mongodb.config";
41
57
  readonly security?: {
42
58
  readonly allowAnonymous?: boolean | undefined;
43
59
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -46,27 +62,24 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
46
62
  readonly sign?: boolean | undefined;
47
63
  readonly storeQueries?: boolean | undefined;
48
64
  readonly timestamp?: boolean | undefined;
49
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
65
+ } & {
50
66
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
51
67
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
52
68
  schema: "network.xyo.module.mongodb.config";
53
- }, "schema"> & {
54
- schema: "network.xyo.module.mongodb.config";
55
- }, "schema"> & {
56
- schema: string;
57
69
  }, "schema"> & {
58
70
  schema: string;
59
71
  };
60
- params: import("@xyo-network/core").BaseParamsFields & {
72
+ id: string;
73
+ params: import("@xyo-network/object").BaseParamsFields & {
61
74
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
62
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
63
- accountDerivationPath?: string | undefined;
64
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
75
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
76
+ readonly archivist?: string | undefined;
65
77
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
66
78
  readonly name?: string | undefined;
67
79
  readonly paging?: Record<string, {
68
80
  size?: number | undefined;
69
81
  }> | undefined;
82
+ schema: "network.xyo.module.mongodb.config";
70
83
  readonly security?: {
71
84
  readonly allowAnonymous?: boolean | undefined;
72
85
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -75,14 +88,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
75
88
  readonly sign?: boolean | undefined;
76
89
  readonly storeQueries?: boolean | undefined;
77
90
  readonly timestamp?: boolean | undefined;
78
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
79
- accountDerivationPath?: string | undefined;
80
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
91
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
92
+ readonly archivist?: string | undefined;
81
93
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
82
94
  readonly name?: string | undefined;
83
95
  readonly paging?: Record<string, {
84
96
  size?: number | undefined;
85
97
  }> | undefined;
98
+ schema: "network.xyo.module.mongodb.config";
86
99
  readonly security?: {
87
100
  readonly allowAnonymous?: boolean | undefined;
88
101
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -91,19 +104,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
91
104
  readonly sign?: boolean | undefined;
92
105
  readonly storeQueries?: boolean | undefined;
93
106
  readonly timestamp?: boolean | undefined;
94
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
107
+ } & {
95
108
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
96
109
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
97
110
  schema: "network.xyo.module.mongodb.config";
98
- }, "schema"> & {
99
- schema: "network.xyo.module.mongodb.config";
100
- }, "schema"> & {
101
- schema: string;
102
111
  }, "schema"> & {
103
112
  schema: string;
104
113
  };
105
114
  ephemeralQueryAccountEnabled?: boolean | undefined;
106
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
107
115
  } & {
108
116
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
109
117
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
@@ -111,26 +119,26 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
111
119
  };
112
120
  previousHash: () => import("@xylabs/promise").Promisable<string | undefined, never>;
113
121
  queries: string[];
114
- query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
122
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
115
123
  query: string;
116
124
  resultSet?: string | undefined;
117
125
  schema: "network.xyo.boundwitness";
118
126
  }, "schema"> & {
119
127
  schema: "network.xyo.boundwitness";
120
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
128
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
121
129
  query: string;
122
130
  resultSet?: string | undefined;
123
131
  schema: "network.xyo.boundwitness";
124
132
  }, "schema"> & {
125
133
  schema: "network.xyo.boundwitness";
126
- }, TConf extends import("@xyo-network/payload-model").SchemaFields & {
127
- accountDerivationPath?: string | undefined;
128
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
134
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & object & {
135
+ readonly archivist?: string | undefined;
129
136
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
130
137
  readonly name?: string | undefined;
131
138
  readonly paging?: Record<string, {
132
139
  size?: number | undefined;
133
140
  }> | undefined;
141
+ schema: "network.xyo.module.config";
134
142
  readonly security?: {
135
143
  readonly allowAnonymous?: boolean | undefined;
136
144
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -139,16 +147,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
139
147
  readonly sign?: boolean | undefined;
140
148
  readonly storeQueries?: boolean | undefined;
141
149
  readonly timestamp?: boolean | undefined;
142
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
143
- schema: "network.xyo.module.config";
144
- } = import("@xyo-network/payload-model").SchemaFields & {
145
- accountDerivationPath?: string | undefined;
146
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
150
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
151
+ readonly archivist?: string | undefined;
147
152
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
148
153
  readonly name?: string | undefined;
149
154
  readonly paging?: Record<string, {
150
155
  size?: number | undefined;
151
156
  }> | undefined;
157
+ schema: "network.xyo.module.config";
152
158
  readonly security?: {
153
159
  readonly allowAnonymous?: boolean | undefined;
154
160
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -157,31 +163,29 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
157
163
  readonly sign?: boolean | undefined;
158
164
  readonly storeQueries?: boolean | undefined;
159
165
  readonly timestamp?: boolean | undefined;
160
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
161
- schema: "network.xyo.module.config";
162
- }>(query: T, payloads?: {
166
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
163
167
  schema: string;
164
- }[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
165
- queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
168
+ } & object)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
169
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
166
170
  query: string;
167
171
  resultSet?: string | undefined;
168
172
  schema: "network.xyo.boundwitness";
169
173
  }, "schema"> & {
170
174
  schema: "network.xyo.boundwitness";
171
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
175
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
172
176
  query: string;
173
177
  resultSet?: string | undefined;
174
178
  schema: "network.xyo.boundwitness";
175
179
  }, "schema"> & {
176
180
  schema: "network.xyo.boundwitness";
177
- }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
178
- accountDerivationPath?: string | undefined;
179
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
181
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & object & {
182
+ readonly archivist?: string | undefined;
180
183
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
181
184
  readonly name?: string | undefined;
182
185
  readonly paging?: Record<string, {
183
186
  size?: number | undefined;
184
187
  }> | undefined;
188
+ schema: "network.xyo.module.config";
185
189
  readonly security?: {
186
190
  readonly allowAnonymous?: boolean | undefined;
187
191
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -190,16 +194,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
190
194
  readonly sign?: boolean | undefined;
191
195
  readonly storeQueries?: boolean | undefined;
192
196
  readonly timestamp?: boolean | undefined;
193
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
194
- schema: "network.xyo.module.config";
195
- } = import("@xyo-network/payload-model").SchemaFields & {
196
- accountDerivationPath?: string | undefined;
197
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
197
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
198
+ readonly archivist?: string | undefined;
198
199
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
199
200
  readonly name?: string | undefined;
200
201
  readonly paging?: Record<string, {
201
202
  size?: number | undefined;
202
203
  }> | undefined;
204
+ schema: "network.xyo.module.config";
203
205
  readonly security?: {
204
206
  readonly allowAnonymous?: boolean | undefined;
205
207
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -208,11 +210,9 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
208
210
  readonly sign?: boolean | undefined;
209
211
  readonly storeQueries?: boolean | undefined;
210
212
  readonly timestamp?: boolean | undefined;
211
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
212
- schema: "network.xyo.module.config";
213
- }>(query: T_1, payloads?: {
213
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
214
214
  schema: string;
215
- }[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
215
+ } & object)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
216
216
  start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
217
217
  stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
218
218
  eventData: import("@xyo-network/module-model").ModuleEventData<object>;
@@ -1,11 +1,11 @@
1
1
  import { BoundWitnessWrapper } from '@xyo-network/boundwitness-wrapper';
2
2
  import { Payload } from '@xyo-network/payload-model';
3
3
  import { PayloadWrapper } from '@xyo-network/payload-wrapper';
4
- export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
4
+ export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
5
  schema: "network.xyo.boundwitness";
6
6
  }, {
7
7
  schema: string;
8
- }>[], PayloadWrapper<{
8
+ } & object>[], PayloadWrapper<{
9
9
  schema: string;
10
- }>[]]>;
10
+ } & object>[]]>;
11
11
  //# sourceMappingURL=validByType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;MAmBpD,CAAA"}
1
+ {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;eAmBpD,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { BoundWitnessWrapper } from '@xyo-network/boundwitness-wrapper';
2
2
  import { Payload } from '@xyo-network/payload-model';
3
3
  import { PayloadWrapper } from '@xyo-network/payload-wrapper';
4
- export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
4
+ export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
5
  schema: "network.xyo.boundwitness";
6
6
  }, {
7
7
  schema: string;
8
- }>[], PayloadWrapper<{
8
+ } & object>[], PayloadWrapper<{
9
9
  schema: string;
10
- }>[]]>;
10
+ } & object>[]]>;
11
11
  //# sourceMappingURL=validByType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;MAmBpD,CAAA"}
1
+ {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;eAmBpD,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { BoundWitnessWrapper } from '@xyo-network/boundwitness-wrapper';
2
2
  import { Payload } from '@xyo-network/payload-model';
3
3
  import { PayloadWrapper } from '@xyo-network/payload-wrapper';
4
- export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
4
+ export declare const validByType: (payloads?: Payload[]) => Promise<[BoundWitnessWrapper<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
5
  schema: "network.xyo.boundwitness";
6
6
  }, {
7
7
  schema: string;
8
- }>[], PayloadWrapper<{
8
+ } & object>[], PayloadWrapper<{
9
9
  schema: string;
10
- }>[]]>;
10
+ } & object>[]]>;
11
11
  //# sourceMappingURL=validByType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;MAmBpD,CAAA"}
1
+ {"version":3,"file":"validByType.d.ts","sourceRoot":"","sources":["../../../src/lib/validByType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,eAAO,MAAM,WAAW,cAAoB,OAAO,EAAE;;;;;;eAmBpD,CAAA"}
@@ -1,27 +1,43 @@
1
1
  import { AbstractArchivist } from '@xyo-network/archivist-abstract';
2
2
  import { Payload } from '@xyo-network/payload-model';
3
3
  declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
4
- _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-mongodb").BoundWitnessWithMeta> | undefined;
5
- _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
4
+ _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
+ _payloads?: (import("@xyo-network/payload-model").SchemaFields & object & Partial<import("@xyo-network/payload-mongodb").PayloadMetaBase> & {
6
+ schema: string;
7
+ })[] | undefined;
8
+ _source_ip?: string | undefined;
9
+ _user_agent?: string | undefined;
10
+ } & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
11
+ schema: "network.xyo.boundwitness";
12
+ }> | undefined;
13
+ _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
6
14
  schema: string;
7
15
  }> | undefined;
8
16
  readonly boundWitnessSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
9
- readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-mongodb").BoundWitnessWithMeta>;
17
+ readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
18
+ _payloads?: (import("@xyo-network/payload-model").SchemaFields & object & Partial<import("@xyo-network/payload-mongodb").PayloadMetaBase> & {
19
+ schema: string;
20
+ })[] | undefined;
21
+ _source_ip?: string | undefined;
22
+ _user_agent?: string | undefined;
23
+ } & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
24
+ schema: "network.xyo.boundwitness";
25
+ }>;
10
26
  readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
11
27
  readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
12
- readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
28
+ readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & object & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
13
29
  schema: string;
14
30
  }>;
15
31
  ensureIndexes(): Promise<void>;
16
32
  address: string;
17
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
18
- accountDerivationPath?: string | undefined;
19
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
33
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
34
+ readonly archivist?: string | undefined;
20
35
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
21
36
  readonly name?: string | undefined;
22
37
  readonly paging?: Record<string, {
23
38
  size?: number | undefined;
24
39
  }> | undefined;
40
+ schema: "network.xyo.module.mongodb.config";
25
41
  readonly security?: {
26
42
  readonly allowAnonymous?: boolean | undefined;
27
43
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -30,14 +46,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
30
46
  readonly sign?: boolean | undefined;
31
47
  readonly storeQueries?: boolean | undefined;
32
48
  readonly timestamp?: boolean | undefined;
33
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
34
- accountDerivationPath?: string | undefined;
35
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
49
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
50
+ readonly archivist?: string | undefined;
36
51
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
37
52
  readonly name?: string | undefined;
38
53
  readonly paging?: Record<string, {
39
54
  size?: number | undefined;
40
55
  }> | undefined;
56
+ schema: "network.xyo.module.mongodb.config";
41
57
  readonly security?: {
42
58
  readonly allowAnonymous?: boolean | undefined;
43
59
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -46,27 +62,24 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
46
62
  readonly sign?: boolean | undefined;
47
63
  readonly storeQueries?: boolean | undefined;
48
64
  readonly timestamp?: boolean | undefined;
49
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
65
+ } & {
50
66
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
51
67
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
52
68
  schema: "network.xyo.module.mongodb.config";
53
- }, "schema"> & {
54
- schema: "network.xyo.module.mongodb.config";
55
- }, "schema"> & {
56
- schema: string;
57
69
  }, "schema"> & {
58
70
  schema: string;
59
71
  };
60
- params: import("@xyo-network/core").BaseParamsFields & {
72
+ id: string;
73
+ params: import("@xyo-network/object").BaseParamsFields & {
61
74
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
62
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
63
- accountDerivationPath?: string | undefined;
64
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
75
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
76
+ readonly archivist?: string | undefined;
65
77
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
66
78
  readonly name?: string | undefined;
67
79
  readonly paging?: Record<string, {
68
80
  size?: number | undefined;
69
81
  }> | undefined;
82
+ schema: "network.xyo.module.mongodb.config";
70
83
  readonly security?: {
71
84
  readonly allowAnonymous?: boolean | undefined;
72
85
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -75,14 +88,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
75
88
  readonly sign?: boolean | undefined;
76
89
  readonly storeQueries?: boolean | undefined;
77
90
  readonly timestamp?: boolean | undefined;
78
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
79
- accountDerivationPath?: string | undefined;
80
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
91
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
92
+ readonly archivist?: string | undefined;
81
93
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
82
94
  readonly name?: string | undefined;
83
95
  readonly paging?: Record<string, {
84
96
  size?: number | undefined;
85
97
  }> | undefined;
98
+ schema: "network.xyo.module.mongodb.config";
86
99
  readonly security?: {
87
100
  readonly allowAnonymous?: boolean | undefined;
88
101
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -91,19 +104,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
91
104
  readonly sign?: boolean | undefined;
92
105
  readonly storeQueries?: boolean | undefined;
93
106
  readonly timestamp?: boolean | undefined;
94
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
107
+ } & {
95
108
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
96
109
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
97
110
  schema: "network.xyo.module.mongodb.config";
98
- }, "schema"> & {
99
- schema: "network.xyo.module.mongodb.config";
100
- }, "schema"> & {
101
- schema: string;
102
111
  }, "schema"> & {
103
112
  schema: string;
104
113
  };
105
114
  ephemeralQueryAccountEnabled?: boolean | undefined;
106
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
107
115
  } & {
108
116
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
109
117
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
@@ -111,26 +119,26 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
111
119
  };
112
120
  previousHash: () => import("@xylabs/promise").Promisable<string | undefined, never>;
113
121
  queries: string[];
114
- query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
122
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
115
123
  query: string;
116
124
  resultSet?: string | undefined;
117
125
  schema: "network.xyo.boundwitness";
118
126
  }, "schema"> & {
119
127
  schema: "network.xyo.boundwitness";
120
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
128
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
121
129
  query: string;
122
130
  resultSet?: string | undefined;
123
131
  schema: "network.xyo.boundwitness";
124
132
  }, "schema"> & {
125
133
  schema: "network.xyo.boundwitness";
126
- }, TConf extends import("@xyo-network/payload-model").SchemaFields & {
127
- accountDerivationPath?: string | undefined;
128
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
134
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & object & {
135
+ readonly archivist?: string | undefined;
129
136
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
130
137
  readonly name?: string | undefined;
131
138
  readonly paging?: Record<string, {
132
139
  size?: number | undefined;
133
140
  }> | undefined;
141
+ schema: "network.xyo.module.config";
134
142
  readonly security?: {
135
143
  readonly allowAnonymous?: boolean | undefined;
136
144
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -139,16 +147,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
139
147
  readonly sign?: boolean | undefined;
140
148
  readonly storeQueries?: boolean | undefined;
141
149
  readonly timestamp?: boolean | undefined;
142
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
143
- schema: "network.xyo.module.config";
144
- } = import("@xyo-network/payload-model").SchemaFields & {
145
- accountDerivationPath?: string | undefined;
146
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
150
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
151
+ readonly archivist?: string | undefined;
147
152
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
148
153
  readonly name?: string | undefined;
149
154
  readonly paging?: Record<string, {
150
155
  size?: number | undefined;
151
156
  }> | undefined;
157
+ schema: "network.xyo.module.config";
152
158
  readonly security?: {
153
159
  readonly allowAnonymous?: boolean | undefined;
154
160
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -157,31 +163,29 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
157
163
  readonly sign?: boolean | undefined;
158
164
  readonly storeQueries?: boolean | undefined;
159
165
  readonly timestamp?: boolean | undefined;
160
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
161
- schema: "network.xyo.module.config";
162
- }>(query: T, payloads?: {
166
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
163
167
  schema: string;
164
- }[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
165
- queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
168
+ } & object)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
169
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
166
170
  query: string;
167
171
  resultSet?: string | undefined;
168
172
  schema: "network.xyo.boundwitness";
169
173
  }, "schema"> & {
170
174
  schema: "network.xyo.boundwitness";
171
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
175
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
172
176
  query: string;
173
177
  resultSet?: string | undefined;
174
178
  schema: "network.xyo.boundwitness";
175
179
  }, "schema"> & {
176
180
  schema: "network.xyo.boundwitness";
177
- }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
178
- accountDerivationPath?: string | undefined;
179
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
181
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & object & {
182
+ readonly archivist?: string | undefined;
180
183
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
181
184
  readonly name?: string | undefined;
182
185
  readonly paging?: Record<string, {
183
186
  size?: number | undefined;
184
187
  }> | undefined;
188
+ schema: "network.xyo.module.config";
185
189
  readonly security?: {
186
190
  readonly allowAnonymous?: boolean | undefined;
187
191
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -190,16 +194,14 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
190
194
  readonly sign?: boolean | undefined;
191
195
  readonly storeQueries?: boolean | undefined;
192
196
  readonly timestamp?: boolean | undefined;
193
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
194
- schema: "network.xyo.module.config";
195
- } = import("@xyo-network/payload-model").SchemaFields & {
196
- accountDerivationPath?: string | undefined;
197
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
197
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
198
+ readonly archivist?: string | undefined;
198
199
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
199
200
  readonly name?: string | undefined;
200
201
  readonly paging?: Record<string, {
201
202
  size?: number | undefined;
202
203
  }> | undefined;
204
+ schema: "network.xyo.module.config";
203
205
  readonly security?: {
204
206
  readonly allowAnonymous?: boolean | undefined;
205
207
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -208,11 +210,9 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
208
210
  readonly sign?: boolean | undefined;
209
211
  readonly storeQueries?: boolean | undefined;
210
212
  readonly timestamp?: boolean | undefined;
211
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
212
- schema: "network.xyo.module.config";
213
- }>(query: T_1, payloads?: {
213
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
214
214
  schema: string;
215
- }[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
215
+ } & object)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
216
216
  start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
217
217
  stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
218
218
  eventData: import("@xyo-network/module-model").ModuleEventData<object>;