@xyo-network/sentinel-wrapper 3.9.17 → 3.9.19

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.
@@ -0,0 +1,57 @@
1
+ import type { AccountInstance } from '@xyo-network/account-model';
2
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
3
+ import type { ModuleQueryResult } from '@xyo-network/module-model';
4
+ import { ModuleWrapper } from '@xyo-network/module-wrapper';
5
+ import type { Payload } from '@xyo-network/payload-model';
6
+ import type { SentinelInstance, SentinelModule } from '@xyo-network/sentinel-model';
7
+ import type { WitnessInstance } from '@xyo-network/witness-model';
8
+ export declare class SentinelWrapper<TModule extends SentinelModule = SentinelModule> extends ModuleWrapper<TModule> implements SentinelInstance<TModule['params']> {
9
+ static readonly instanceIdentityCheck: import("@xylabs/object").TypeCheck<SentinelInstance<import("@xylabs/object").BaseParamsFields & {
10
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
11
+ addToResolvers?: boolean;
12
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
13
+ allowNameResolution?: boolean;
14
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/sentinel-model").SentinelConfig>;
15
+ ephemeralQueryAccountEnabled?: boolean;
16
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
17
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
18
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
19
+ }, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
20
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
21
+ addToResolvers?: boolean;
22
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
23
+ allowNameResolution?: boolean;
24
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
25
+ ephemeralQueryAccountEnabled?: boolean;
26
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
27
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
28
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
29
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
30
+ static readonly moduleIdentityCheck: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule<import("@xylabs/object").BaseParamsFields & {
31
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
32
+ addToResolvers?: boolean;
33
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
34
+ allowNameResolution?: boolean;
35
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/sentinel-model").SentinelConfig>;
36
+ ephemeralQueryAccountEnabled?: boolean;
37
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
38
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
39
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
40
+ }, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
41
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
42
+ addToResolvers?: boolean;
43
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
44
+ allowNameResolution?: boolean;
45
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
46
+ ephemeralQueryAccountEnabled?: boolean;
47
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
48
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
49
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
50
+ }, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
51
+ static readonly requiredQueries: string[];
52
+ archivists(): Promise<ArchivistInstance[]>;
53
+ report(payloads?: Payload[]): Promise<Payload[]>;
54
+ reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult>;
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gD,2BAA2B;uEArBl8C;IAC/D,gBAAyB,eAAe,WAAwD;IAEhG,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAKhD,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK9F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
@@ -1,62 +1,2 @@
1
- import * as _xyo_network_module_model from '@xyo-network/module-model';
2
- import { ModuleQueryResult } from '@xyo-network/module-model';
3
- import * as _xyo_network_sentinel_model from '@xyo-network/sentinel-model';
4
- import { SentinelModule, SentinelInstance } from '@xyo-network/sentinel-model';
5
- import * as _xylabs_object from '@xylabs/object';
6
- import { AccountInstance } from '@xyo-network/account-model';
7
- import { ArchivistInstance } from '@xyo-network/archivist-model';
8
- import { ModuleWrapper } from '@xyo-network/module-wrapper';
9
- import { Payload } from '@xyo-network/payload-model';
10
- import { WitnessInstance } from '@xyo-network/witness-model';
11
-
12
- declare class SentinelWrapper<TModule extends SentinelModule = SentinelModule> extends ModuleWrapper<TModule> implements SentinelInstance<TModule['params']> {
13
- static readonly instanceIdentityCheck: _xylabs_object.TypeCheck<SentinelInstance<_xylabs_object.BaseParamsFields & {
14
- account?: AccountInstance | "random";
15
- addToResolvers?: boolean;
16
- additionalSigners?: AccountInstance[];
17
- allowNameResolution?: boolean;
18
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_sentinel_model.SentinelConfig>;
19
- ephemeralQueryAccountEnabled?: boolean;
20
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
21
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
22
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
23
- }, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
24
- account?: AccountInstance | "random";
25
- addToResolvers?: boolean;
26
- additionalSigners?: AccountInstance[];
27
- allowNameResolution?: boolean;
28
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
29
- ephemeralQueryAccountEnabled?: boolean;
30
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
31
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
32
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
33
- }, _xyo_network_module_model.ModuleEventData<object>>>>>;
34
- static readonly moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<SentinelModule<_xylabs_object.BaseParamsFields & {
35
- account?: AccountInstance | "random";
36
- addToResolvers?: boolean;
37
- additionalSigners?: AccountInstance[];
38
- allowNameResolution?: boolean;
39
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_sentinel_model.SentinelConfig>;
40
- ephemeralQueryAccountEnabled?: boolean;
41
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
42
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
43
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
44
- }, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
45
- account?: AccountInstance | "random";
46
- addToResolvers?: boolean;
47
- additionalSigners?: AccountInstance[];
48
- allowNameResolution?: boolean;
49
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
50
- ephemeralQueryAccountEnabled?: boolean;
51
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
52
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
53
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
54
- }, _xyo_network_module_model.ModuleEventData<object>>>>>;
55
- static readonly requiredQueries: string[];
56
- archivists(): Promise<ArchivistInstance[]>;
57
- report(payloads?: Payload[]): Promise<Payload[]>;
58
- reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult>;
59
- witnesses(): Promise<WitnessInstance[]>;
60
- }
61
-
62
- export { SentinelWrapper };
1
+ export * from './Wrapper.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/sentinel-wrapper",
3
- "version": "3.9.17",
3
+ "version": "3.9.19",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,30 +29,30 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/account-model": "^3.9.17",
33
- "@xyo-network/archivist-model": "^3.9.17",
34
- "@xyo-network/module-model": "^3.9.17",
35
- "@xyo-network/module-wrapper": "^3.9.17",
36
- "@xyo-network/payload-model": "^3.9.17",
37
- "@xyo-network/sentinel-model": "^3.9.17",
38
- "@xyo-network/witness-model": "^3.9.17"
32
+ "@xyo-network/account-model": "^3.9.19",
33
+ "@xyo-network/archivist-model": "^3.9.19",
34
+ "@xyo-network/module-model": "^3.9.19",
35
+ "@xyo-network/module-wrapper": "^3.9.19",
36
+ "@xyo-network/payload-model": "^3.9.19",
37
+ "@xyo-network/sentinel-model": "^3.9.19",
38
+ "@xyo-network/witness-model": "^3.9.19"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@xylabs/delay": "^4.5.1",
42
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
43
- "@xylabs/tsconfig": "^5.0.24",
42
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
43
+ "@xylabs/tsconfig": "^5.0.39",
44
44
  "@xylabs/vitest-extended": "^4.5.1",
45
- "@xyo-network/abstract-witness": "^3.9.17",
46
- "@xyo-network/account": "^3.9.17",
47
- "@xyo-network/archivist-memory": "^3.9.17",
48
- "@xyo-network/boundwitness-model": "^3.9.17",
49
- "@xyo-network/module-model": "^3.9.17",
50
- "@xyo-network/node-memory": "^3.9.17",
51
- "@xyo-network/payload-builder": "^3.9.17",
52
- "@xyo-network/sentinel-memory": "^3.9.17",
53
- "@xyo-network/witness-adhoc": "^3.9.17",
54
- "typescript": "^5.7.3",
55
- "vitest": "^3.0.6"
45
+ "@xyo-network/abstract-witness": "^3.9.19",
46
+ "@xyo-network/account": "^3.9.19",
47
+ "@xyo-network/archivist-memory": "^3.9.19",
48
+ "@xyo-network/boundwitness-model": "^3.9.19",
49
+ "@xyo-network/module-model": "^3.9.19",
50
+ "@xyo-network/node-memory": "^3.9.19",
51
+ "@xyo-network/payload-builder": "^3.9.19",
52
+ "@xyo-network/sentinel-memory": "^3.9.19",
53
+ "@xyo-network/witness-adhoc": "^3.9.19",
54
+ "typescript": "^5.8.2",
55
+ "vitest": "^3.0.7"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"