@xyo-network/archivist-wrapper 3.9.1 → 3.9.3

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.
@@ -2,12 +2,11 @@ import * as _xyo_network_module_model from '@xyo-network/module-model';
2
2
  import { ModuleQueryResult } from '@xyo-network/module-model';
3
3
  import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
4
4
  import { ArchivistModuleInstance, AttachableArchivistInstance, ArchivistNextOptions } from '@xyo-network/archivist-model';
5
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
6
- import { WithStorageMeta, Payload } from '@xyo-network/payload-model';
7
5
  import * as _xylabs_object from '@xylabs/object';
8
6
  import { Hash } from '@xylabs/hex';
9
7
  import { AccountInstance } from '@xyo-network/account-model';
10
8
  import { ModuleWrapper } from '@xyo-network/module-wrapper';
9
+ import { Payload, WithStorageMeta } from '@xyo-network/payload-model';
11
10
 
12
11
  declare class ArchivistWrapper<TWrappedModule extends ArchivistModuleInstance = ArchivistModuleInstance> extends ModuleWrapper<TWrappedModule> implements AttachableArchivistInstance<ArchivistModuleInstance['params']> {
13
12
  static readonly instanceIdentityCheck: _xylabs_object.TypeCheck<_xyo_network_archivist_model.ArchivistInstance<_xylabs_object.BaseParamsFields & {
@@ -15,122 +14,16 @@ declare class ArchivistWrapper<TWrappedModule extends ArchivistModuleInstance =
15
14
  addToResolvers?: boolean;
16
15
  additionalSigners?: AccountInstance[];
17
16
  allowNameResolution?: boolean;
18
- config: _xylabs_object.DeepRestrictToStringKeys<{
19
- schema: _xyo_network_payload_model.Schema;
20
- parents?: {
21
- commit?: string[] | undefined;
22
- read?: string[] | undefined;
23
- write?: string[] | undefined;
24
- } | undefined;
25
- requireAllParents?: boolean | undefined;
26
- storage?: {
27
- indexes?: {
28
- key: {
29
- [x: string]: _xyo_network_archivist_model.IndexDirection;
30
- };
31
- multiEntry?: boolean | undefined;
32
- name?: string | undefined;
33
- unique?: boolean | undefined;
34
- }[] | undefined;
35
- } | undefined;
36
- storeParentReads?: boolean | undefined;
37
- readonly archiving?: {
38
- readonly archivists?: string[] | undefined;
39
- readonly queries?: string[] | undefined;
40
- } | undefined;
41
- readonly allowedQueries?: string[] | undefined;
42
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
43
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
44
- readonly labels?: {
45
- [x: string]: string | undefined;
46
- } | undefined;
47
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
48
- readonly paging?: {
49
- [x: string]: {
50
- size?: number | undefined;
51
- };
52
- } | undefined;
53
- readonly retry?: {
54
- backoff?: number | undefined;
55
- interval?: number | undefined;
56
- retries?: number | undefined;
57
- } | undefined;
58
- readonly security?: {
59
- readonly allowAnonymous?: boolean | undefined;
60
- readonly allowed?: {
61
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
62
- } | undefined;
63
- readonly disallowed?: {
64
- [x: string]: Lowercase<string>[];
65
- } | undefined;
66
- } | undefined;
67
- readonly sign?: boolean | undefined;
68
- readonly storeQueries?: boolean | undefined;
69
- readonly timestamp?: boolean | undefined;
70
- }>;
17
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig>;
71
18
  ephemeralQueryAccountEnabled?: boolean;
72
19
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
73
- } & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
74
- schema: _xyo_network_payload_model.Schema;
75
- }>>>;
20
+ } & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData, Payload>>;
76
21
  static readonly moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
77
22
  account?: AccountInstance | "random";
78
23
  addToResolvers?: boolean;
79
24
  additionalSigners?: AccountInstance[];
80
25
  allowNameResolution?: boolean;
81
- config: _xylabs_object.DeepRestrictToStringKeys<{
82
- schema: _xyo_network_payload_model.Schema;
83
- parents?: {
84
- commit?: string[] | undefined;
85
- read?: string[] | undefined;
86
- write?: string[] | undefined;
87
- } | undefined;
88
- requireAllParents?: boolean | undefined;
89
- storage?: {
90
- indexes?: {
91
- key: {
92
- [x: string]: _xyo_network_archivist_model.IndexDirection;
93
- };
94
- multiEntry?: boolean | undefined;
95
- name?: string | undefined;
96
- unique?: boolean | undefined;
97
- }[] | undefined;
98
- } | undefined;
99
- storeParentReads?: boolean | undefined;
100
- readonly archiving?: {
101
- readonly archivists?: string[] | undefined;
102
- readonly queries?: string[] | undefined;
103
- } | undefined;
104
- readonly allowedQueries?: string[] | undefined;
105
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
106
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
107
- readonly labels?: {
108
- [x: string]: string | undefined;
109
- } | undefined;
110
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
111
- readonly paging?: {
112
- [x: string]: {
113
- size?: number | undefined;
114
- };
115
- } | undefined;
116
- readonly retry?: {
117
- backoff?: number | undefined;
118
- interval?: number | undefined;
119
- retries?: number | undefined;
120
- } | undefined;
121
- readonly security?: {
122
- readonly allowAnonymous?: boolean | undefined;
123
- readonly allowed?: {
124
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
125
- } | undefined;
126
- readonly disallowed?: {
127
- [x: string]: Lowercase<string>[];
128
- } | undefined;
129
- } | undefined;
130
- readonly sign?: boolean | undefined;
131
- readonly storeQueries?: boolean | undefined;
132
- readonly timestamp?: boolean | undefined;
133
- }>;
26
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig>;
134
27
  ephemeralQueryAccountEnabled?: boolean;
135
28
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
136
29
  }, _xyo_network_archivist_model.ArchivistModuleEventData>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-wrapper",
3
- "version": "3.9.1",
3
+ "version": "3.9.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,19 +30,19 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/hex": "^4.5.1",
33
- "@xyo-network/account-model": "^3.9.1",
34
- "@xyo-network/archivist-model": "^3.9.1",
35
- "@xyo-network/module-model": "^3.9.1",
36
- "@xyo-network/module-wrapper": "^3.9.1",
37
- "@xyo-network/payload-model": "^3.9.1"
33
+ "@xyo-network/account-model": "^3.9.3",
34
+ "@xyo-network/archivist-model": "^3.9.3",
35
+ "@xyo-network/module-model": "^3.9.3",
36
+ "@xyo-network/module-wrapper": "^3.9.3",
37
+ "@xyo-network/payload-model": "^3.9.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@xylabs/ts-scripts-yarn3": "^5.0.24",
41
41
  "@xylabs/tsconfig": "^5.0.24",
42
42
  "@xylabs/vitest-extended": "^4.5.1",
43
- "@xyo-network/account": "^3.9.1",
44
- "@xyo-network/archivist-memory": "^3.9.1",
45
- "@xyo-network/payload-builder": "^3.9.1",
43
+ "@xyo-network/account": "^3.9.3",
44
+ "@xyo-network/archivist-memory": "^3.9.3",
45
+ "@xyo-network/payload-builder": "^3.9.3",
46
46
  "typescript": "^5.7.3",
47
47
  "vitest": "^3.0.5"
48
48
  },