@xyo-network/module-instance-plugin 3.3.0 → 3.4.1

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,3 +1,119 @@
1
- export { AbstractModuleInstancePlugin, AbstractModuleInstancePlugin as default } from './Plugin.ts';
2
- export * from './Witness.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
+ import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
3
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
4
+ import { AnyConfigSchema, Module } from '@xyo-network/module-model';
5
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
6
+ import { Schema, Payload } from '@xyo-network/payload-model';
7
+ import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
8
+ import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
9
+ import { Promisable } from '@xylabs/promise';
10
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
11
+ import { AbstractModuleInstancePayload } from '@xyo-network/module-instance-payload-plugin';
12
+ import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
13
+
14
+ type AbstractModuleInstanceWitnessConfigSchema = 'network.xyo.module.instance.config';
15
+ declare const AbstractModuleInstanceWitnessConfigSchema: AbstractModuleInstanceWitnessConfigSchema;
16
+ type AbstractModuleInstanceWitnessConfig = WitnessConfig<{
17
+ schema: AbstractModuleInstanceWitnessConfigSchema;
18
+ }>;
19
+ type AbstractModuleInstanceWitnessParams = WitnessParams<AnyConfigSchema<AbstractModuleInstanceWitnessConfig>, {
20
+ mod?: Module;
21
+ }>;
22
+ declare class AbstractModuleInstanceWitness<TParams extends AbstractModuleInstanceWitnessParams = AbstractModuleInstanceWitnessParams> extends AbstractWitness<TParams> {
23
+ static readonly configSchemas: Schema[];
24
+ static readonly defaultConfigSchema: Schema;
25
+ protected get mod(): Module<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
26
+ account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
27
+ addToResolvers?: boolean;
28
+ additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
29
+ allowNameResolution?: boolean;
30
+ config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
31
+ schema: Schema;
32
+ readonly archiving?: {
33
+ readonly archivists?: string[] | undefined;
34
+ readonly queries?: string[] | undefined;
35
+ } | undefined;
36
+ readonly allowedQueries?: string[] | undefined;
37
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
38
+ readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
39
+ readonly labels?: {
40
+ [x: string]: string | undefined;
41
+ } | undefined;
42
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
43
+ readonly paging?: {
44
+ [x: string]: {
45
+ size?: number | undefined;
46
+ };
47
+ } | undefined;
48
+ readonly retry?: {
49
+ backoff?: number | undefined;
50
+ interval?: number | undefined;
51
+ retries?: number | undefined;
52
+ } | undefined;
53
+ readonly security?: {
54
+ readonly allowAnonymous?: boolean | undefined;
55
+ readonly allowed?: {
56
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
57
+ } | undefined;
58
+ readonly disallowed?: {
59
+ [x: string]: Lowercase<string>[];
60
+ } | undefined;
61
+ } | undefined;
62
+ readonly sign?: boolean | undefined;
63
+ readonly storeQueries?: boolean | undefined;
64
+ readonly timestamp?: boolean | undefined;
65
+ }>;
66
+ ephemeralQueryAccountEnabled?: boolean;
67
+ moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
68
+ }, _xyo_network_module_model.ModuleEventData<object>> | undefined;
69
+ protected observeHandler(_payloads?: Partial<Payload>[]): Promisable<AbstractModuleInstancePayload[]>;
70
+ }
71
+
72
+ declare const AbstractModuleInstancePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<AbstractModuleInstanceWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
73
+ account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
74
+ addToResolvers?: boolean;
75
+ additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
76
+ allowNameResolution?: boolean;
77
+ config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
78
+ schema: _xyo_network_payload_model.Schema;
79
+ readonly archiving?: {
80
+ readonly archivists?: string[] | undefined;
81
+ readonly queries?: string[] | undefined;
82
+ } | undefined;
83
+ readonly allowedQueries?: string[] | undefined;
84
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
85
+ readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
86
+ readonly labels?: {
87
+ [x: string]: string | undefined;
88
+ } | undefined;
89
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
90
+ readonly paging?: {
91
+ [x: string]: {
92
+ size?: number | undefined;
93
+ };
94
+ } | undefined;
95
+ readonly retry?: {
96
+ backoff?: number | undefined;
97
+ interval?: number | undefined;
98
+ retries?: number | undefined;
99
+ } | undefined;
100
+ readonly security?: {
101
+ readonly allowAnonymous?: boolean | undefined;
102
+ readonly allowed?: {
103
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
104
+ } | undefined;
105
+ readonly disallowed?: {
106
+ [x: string]: Lowercase<string>[];
107
+ } | undefined;
108
+ } | undefined;
109
+ readonly sign?: boolean | undefined;
110
+ readonly storeQueries?: boolean | undefined;
111
+ readonly timestamp?: boolean | undefined;
112
+ }>;
113
+ ephemeralQueryAccountEnabled?: boolean;
114
+ moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
115
+ } & {
116
+ mod?: _xyo_network_module_model.Module;
117
+ }>>;
118
+
119
+ export { AbstractModuleInstancePlugin, AbstractModuleInstanceWitness, type AbstractModuleInstanceWitnessConfig, AbstractModuleInstanceWitnessConfigSchema, type AbstractModuleInstanceWitnessParams, AbstractModuleInstancePlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/module-instance-plugin",
3
- "version": "3.3.0",
3
+ "version": "3.4.1",
4
4
  "description": "Contains the information about a module instance",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,21 +30,21 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/promise": "^4.5.1",
33
- "@xyo-network/abstract-witness": "^3.7.0",
34
- "@xyo-network/module-instance-payload-plugin": "^3.3.0",
35
- "@xyo-network/module-model": "^3.7.0",
36
- "@xyo-network/payload-model": "^3.7.0",
37
- "@xyo-network/payloadset-plugin": "^3.7.0",
38
- "@xyo-network/witness-model": "^3.7.0"
33
+ "@xyo-network/abstract-witness": "^3.8.5",
34
+ "@xyo-network/module-instance-payload-plugin": "^3.4.1",
35
+ "@xyo-network/module-model": "^3.8.5",
36
+ "@xyo-network/payload-model": "^3.8.5",
37
+ "@xyo-network/payloadset-plugin": "^3.8.5",
38
+ "@xyo-network/witness-model": "^3.8.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
42
- "@xylabs/tsconfig": "^4.2.6",
41
+ "@xylabs/ts-scripts-yarn3": "^5.0.22",
42
+ "@xylabs/tsconfig": "^5.0.22",
43
43
  "@xylabs/vitest-extended": "^4.5.1",
44
- "@xyo-network/archivist-memory": "^3.7.0",
45
- "@xyo-network/payload-wrapper": "^3.7.0",
44
+ "@xyo-network/archivist-memory": "^3.8.5",
45
+ "@xyo-network/payload-wrapper": "^3.8.5",
46
46
  "typescript": "^5.7.3",
47
- "vitest": "^3.0.4"
47
+ "vitest": "^3.0.5"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -1,48 +0,0 @@
1
- import { AbstractModuleInstanceWitness } from './Witness.ts';
2
- export declare const AbstractModuleInstancePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<AbstractModuleInstanceWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
3
- account?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance | "random";
4
- addToResolvers?: boolean;
5
- additionalSigners?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance[];
6
- allowNameResolution?: boolean;
7
- config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
8
- schema: import("@xyo-network/payload-model").Schema;
9
- readonly archiving?: {
10
- readonly archivists?: string[] | undefined;
11
- readonly queries?: string[] | undefined;
12
- } | undefined;
13
- readonly allowedQueries?: string[] | undefined;
14
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
15
- readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
16
- readonly labels?: {
17
- [x: string]: string | undefined;
18
- } | undefined;
19
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
20
- readonly paging?: {
21
- [x: string]: {
22
- size?: number | undefined;
23
- };
24
- } | undefined;
25
- readonly retry?: {
26
- backoff?: number | undefined;
27
- interval?: number | undefined;
28
- retries?: number | undefined;
29
- } | undefined;
30
- readonly security?: {
31
- readonly allowAnonymous?: boolean | undefined;
32
- readonly allowed?: {
33
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
34
- } | undefined;
35
- readonly disallowed?: {
36
- [x: string]: Lowercase<string>[];
37
- } | undefined;
38
- } | undefined;
39
- readonly sign?: boolean | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- readonly timestamp?: boolean | undefined;
42
- }>;
43
- ephemeralQueryAccountEnabled?: boolean;
44
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
45
- } & {
46
- mod?: import("@xyo-network/module-model").Module;
47
- }>>;
48
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAStC,CAAA"}
@@ -1,64 +0,0 @@
1
- import type { Promisable } from '@xylabs/promise';
2
- import { AbstractWitness } from '@xyo-network/abstract-witness';
3
- import type { AbstractModuleInstancePayload } from '@xyo-network/module-instance-payload-plugin';
4
- import type { AnyConfigSchema, Module } from '@xyo-network/module-model';
5
- import type { Payload, Schema } from '@xyo-network/payload-model';
6
- import type { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
7
- export type AbstractModuleInstanceWitnessConfigSchema = 'network.xyo.module.instance.config';
8
- export declare const AbstractModuleInstanceWitnessConfigSchema: AbstractModuleInstanceWitnessConfigSchema;
9
- export type AbstractModuleInstanceWitnessConfig = WitnessConfig<{
10
- schema: AbstractModuleInstanceWitnessConfigSchema;
11
- }>;
12
- export type AbstractModuleInstanceWitnessParams = WitnessParams<AnyConfigSchema<AbstractModuleInstanceWitnessConfig>, {
13
- mod?: Module;
14
- }>;
15
- export declare class AbstractModuleInstanceWitness<TParams extends AbstractModuleInstanceWitnessParams = AbstractModuleInstanceWitnessParams> extends AbstractWitness<TParams> {
16
- static readonly configSchemas: Schema[];
17
- static readonly defaultConfigSchema: Schema;
18
- protected get mod(): Module<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
19
- account?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance | "random";
20
- addToResolvers?: boolean;
21
- additionalSigners?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance[];
22
- allowNameResolution?: boolean;
23
- config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
24
- schema: Schema;
25
- readonly archiving?: {
26
- readonly archivists?: string[] | undefined;
27
- readonly queries?: string[] | undefined;
28
- } | undefined;
29
- readonly allowedQueries?: string[] | undefined;
30
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
31
- readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
32
- readonly labels?: {
33
- [x: string]: string | undefined;
34
- } | undefined;
35
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
36
- readonly paging?: {
37
- [x: string]: {
38
- size?: number | undefined;
39
- };
40
- } | undefined;
41
- readonly retry?: {
42
- backoff?: number | undefined;
43
- interval?: number | undefined;
44
- retries?: number | undefined;
45
- } | undefined;
46
- readonly security?: {
47
- readonly allowAnonymous?: boolean | undefined;
48
- readonly allowed?: {
49
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
50
- } | undefined;
51
- readonly disallowed?: {
52
- [x: string]: Lowercase<string>[];
53
- } | undefined;
54
- } | undefined;
55
- readonly sign?: boolean | undefined;
56
- readonly storeQueries?: boolean | undefined;
57
- readonly timestamp?: boolean | undefined;
58
- }>;
59
- ephemeralQueryAccountEnabled?: boolean;
60
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
61
- }, import("@xyo-network/module-model").ModuleEventData<object>> | undefined;
62
- protected observeHandler(_payloads?: Partial<Payload>[]): Promisable<AbstractModuleInstancePayload[]>;
63
- }
64
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAA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