@xyo-network/sentinel-abstract 4.0.2 → 4.1.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.
- package/dist/neutral/index.d.ts +26 -0
- package/package.json +18 -19
- /package/{dist/types → build/neutral}/AbstractSentinel.d.ts +0 -0
- /package/{dist/types → build/neutral}/AbstractSentinel.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import { BoundWitness, QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
+
import { AbstractModuleInstance } from '@xyo-network/module-abstract';
|
|
4
|
+
import { ModuleQueryResult, ModuleConfig, ModuleQueryHandlerResult } from '@xyo-network/module-model';
|
|
5
|
+
import { Schema, Payload, WithoutPrivateStorageMeta } from '@xyo-network/payload-model';
|
|
6
|
+
import { SentinelParams, SentinelModuleEventData, SentinelInstance, CustomSentinelInstance, AttachableSentinelInstance, SentinelJob } from '@xyo-network/sentinel-model';
|
|
7
|
+
|
|
8
|
+
declare abstract class AbstractSentinel<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends AbstractModuleInstance<TParams, TEventData> implements CustomSentinelInstance<TParams, TEventData>, AttachableSentinelInstance<TParams, TEventData> {
|
|
9
|
+
static readonly configSchemas: Schema[];
|
|
10
|
+
static readonly defaultConfigSchema: Schema;
|
|
11
|
+
static readonly uniqueName: string;
|
|
12
|
+
history: BoundWitness[];
|
|
13
|
+
private _jobPromise?;
|
|
14
|
+
get jobPromise(): Promise<SentinelJob>;
|
|
15
|
+
get queries(): string[];
|
|
16
|
+
get synchronous(): boolean;
|
|
17
|
+
get throwErrors(): boolean;
|
|
18
|
+
report(inPayloads?: Payload[]): Promise<WithoutPrivateStorageMeta<Payload>[]>;
|
|
19
|
+
reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult>;
|
|
20
|
+
protected emitReportEnd(inPayloads?: Payload[], payloads?: Payload[]): Promise<void>;
|
|
21
|
+
protected generateJob(): Promise<SentinelJob>;
|
|
22
|
+
protected queryHandler<T extends QueryBoundWitness = QueryBoundWitness, TConfig extends ModuleConfig = ModuleConfig>(query: T, payloads?: Payload[], queryConfig?: TConfig): Promise<ModuleQueryHandlerResult>;
|
|
23
|
+
abstract reportHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { AbstractSentinel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/sentinel-abstract",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,32 +21,31 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/base": "^4.
|
|
34
|
-
"@xylabs/forget": "^4.
|
|
35
|
-
"@xylabs/telemetry": "^4.
|
|
36
|
-
"@xyo-network/account-model": "^4.0
|
|
37
|
-
"@xyo-network/boundwitness-builder": "^4.0
|
|
38
|
-
"@xyo-network/boundwitness-model": "^4.0
|
|
39
|
-
"@xyo-network/boundwitness-wrapper": "^4.0
|
|
40
|
-
"@xyo-network/module-abstract": "^4.0
|
|
41
|
-
"@xyo-network/module-model": "^4.0
|
|
42
|
-
"@xyo-network/payload-builder": "^4.0
|
|
43
|
-
"@xyo-network/payload-model": "^4.0
|
|
44
|
-
"@xyo-network/sentinel-model": "^4.0
|
|
45
|
-
"async-mutex": "^0.5.0"
|
|
32
|
+
"@xylabs/assert": "^4.13.15",
|
|
33
|
+
"@xylabs/base": "^4.13.15",
|
|
34
|
+
"@xylabs/forget": "^4.13.15",
|
|
35
|
+
"@xylabs/telemetry": "^4.13.15",
|
|
36
|
+
"@xyo-network/account-model": "^4.1.0",
|
|
37
|
+
"@xyo-network/boundwitness-builder": "^4.1.0",
|
|
38
|
+
"@xyo-network/boundwitness-model": "^4.1.0",
|
|
39
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.0",
|
|
40
|
+
"@xyo-network/module-abstract": "^4.1.0",
|
|
41
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
42
|
+
"@xyo-network/payload-builder": "^4.1.0",
|
|
43
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
44
|
+
"@xyo-network/sentinel-model": "^4.1.0"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
49
|
-
"@xylabs/tsconfig": "^
|
|
47
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
48
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
50
49
|
"typescript": "^5.8.3"
|
|
51
50
|
},
|
|
52
51
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|