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