@xyo-network/witness-environment 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 +29 -0
- package/package.json +14 -14
- /package/{dist/types → build/neutral}/Config.d.ts +0 -0
- /package/{dist/types → build/neutral}/Config.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Payload.d.ts +0 -0
- /package/{dist/types → build/neutral}/Payload.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Witness.d.ts +0 -0
- /package/{dist/types → build/neutral}/Witness.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,29 @@
|
|
|
1
|
+
import { WithAdditional } from '@xylabs/object';
|
|
2
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
3
|
+
import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
|
|
4
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
+
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
6
|
+
|
|
7
|
+
declare const EnvironmentWitnessConfigSchema: "network.xyo.witness.environment.config";
|
|
8
|
+
type EnvironmentWitnessConfigSchema = typeof EnvironmentWitnessConfigSchema;
|
|
9
|
+
type EnvironmentWitnessConfig<TConfig extends Payload | undefined = undefined> = WitnessConfig<WithAdditional<{
|
|
10
|
+
schema: TConfig extends Payload ? TConfig['schema'] : EnvironmentWitnessConfigSchema;
|
|
11
|
+
}, TConfig>>;
|
|
12
|
+
|
|
13
|
+
type EnvironmentWitnessParams<TConfig extends AnyConfigSchema<EnvironmentWitnessConfig> = AnyConfigSchema<EnvironmentWitnessConfig>> = WitnessParams<TConfig>;
|
|
14
|
+
|
|
15
|
+
declare const EnvironmentSubsetSchema: "network.xyo.environment.subset";
|
|
16
|
+
type EnvironmentSubsetSchema = typeof EnvironmentSubsetSchema;
|
|
17
|
+
type EnvironmentSubset = Payload<{
|
|
18
|
+
values: string[];
|
|
19
|
+
}, EnvironmentSubsetSchema>;
|
|
20
|
+
declare const isEnvironmentSubsetPayload: (x?: unknown | null) => x is EnvironmentSubset;
|
|
21
|
+
|
|
22
|
+
declare class EnvironmentWitness<P extends EnvironmentWitnessParams = EnvironmentWitnessParams> extends AbstractWitness<P> {
|
|
23
|
+
static readonly configSchemas: Schema[];
|
|
24
|
+
static readonly defaultConfigSchema: Schema;
|
|
25
|
+
protected observeHandler(payloads?: Payload[]): Payload[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { EnvironmentSubsetSchema, EnvironmentWitness, EnvironmentWitnessConfigSchema, isEnvironmentSubsetPayload };
|
|
29
|
+
export type { EnvironmentSubset, EnvironmentWitnessConfig, EnvironmentWitnessParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/witness-environment",
|
|
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,27 +21,27 @@
|
|
|
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/object": "^4.
|
|
33
|
-
"@xyo-network/abstract-witness": "^4.0
|
|
34
|
-
"@xyo-network/module-model": "^4.0
|
|
35
|
-
"@xyo-network/payload-model": "^4.0
|
|
36
|
-
"@xyo-network/value-payload-plugin": "^4.0
|
|
37
|
-
"@xyo-network/witness-model": "^4.0
|
|
32
|
+
"@xylabs/object": "^4.13.15",
|
|
33
|
+
"@xyo-network/abstract-witness": "^4.1.0",
|
|
34
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
35
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
36
|
+
"@xyo-network/value-payload-plugin": "^4.1.0",
|
|
37
|
+
"@xyo-network/witness-model": "^4.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
41
|
-
"@xylabs/tsconfig": "^
|
|
42
|
-
"@xylabs/vitest-extended": "^4.
|
|
43
|
-
"@xyo-network/account": "^4.0
|
|
44
|
-
"@xyo-network/payload-builder": "^4.0
|
|
40
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
41
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
42
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
43
|
+
"@xyo-network/account": "^4.1.0",
|
|
44
|
+
"@xyo-network/payload-builder": "^4.1.0",
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
46
|
"vitest": "^3.2.4"
|
|
47
47
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|