@xyo-network/archivist-model 3.6.0-rc.5 → 3.6.0-rc.6

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.
@@ -9,9 +9,7 @@ export type IndexDescription = {
9
9
  /**
10
10
  * The key(s) to index
11
11
  */
12
- key: {
13
- [key: string]: IndexDirection;
14
- } | Map<string, IndexDirection>;
12
+ key: Record<string, IndexDirection>;
15
13
  /**
16
14
  * Is the indexed value an array
17
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EACC;QACA,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,cAAc,MAAM,CAAA;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,UAAW,gBAAgB,WAK7D,CAAA"}
1
+ {"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,cAAc,MAAM,CAAA;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,UAAW,gBAAgB,WAK7D,CAAA"}
@@ -4,62 +4,191 @@ export declare const asAttachableArchivistInstance: {
4
4
  addToResolvers?: boolean;
5
5
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
6
6
  allowNameResolution?: boolean;
7
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
- parents?: import("../Config.ts").ArchivistParents;
9
- requireAllParents?: boolean;
10
- schema: "network.xyo.archivist.config";
11
- storage?: import("../Config.ts").ArchivistStorage;
12
- storeParentReads?: boolean;
13
- }, "schema"> & {
14
- schema: "network.xyo.archivist.config";
15
- }, "schema"> & {
16
- schema: string;
17
- };
7
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
8
+ schema: import("@xyo-network/payload-model").Schema;
9
+ parents?: {
10
+ commit?: Lowercase<string>[] | undefined;
11
+ read?: Lowercase<string>[] | undefined;
12
+ write?: Lowercase<string>[] | undefined;
13
+ } | undefined;
14
+ requireAllParents?: boolean | undefined;
15
+ storage?: {
16
+ indexes?: {
17
+ key: {
18
+ [x: string]: import("../IndexDescription.ts").IndexDirection;
19
+ };
20
+ multiEntry?: boolean | undefined;
21
+ name?: string | undefined;
22
+ unique?: boolean | undefined;
23
+ }[] | undefined;
24
+ } | undefined;
25
+ storeParentReads?: boolean | undefined;
26
+ readonly archiving?: {
27
+ readonly archivists?: string[] | undefined;
28
+ readonly queries?: string[] | undefined;
29
+ } | undefined;
30
+ readonly allowedQueries?: string[] | undefined;
31
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
32
+ readonly certify?: boolean | undefined;
33
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
34
+ readonly labels?: {
35
+ [x: string]: string | undefined;
36
+ } | undefined;
37
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
38
+ readonly paging?: {
39
+ [x: string]: {
40
+ size?: number | undefined;
41
+ };
42
+ } | undefined;
43
+ readonly retry?: {
44
+ backoff?: number | undefined;
45
+ interval?: number | undefined;
46
+ retries?: number | undefined;
47
+ } | undefined;
48
+ readonly security?: {
49
+ readonly allowAnonymous?: boolean | undefined;
50
+ readonly allowed?: {
51
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
52
+ } | undefined;
53
+ readonly disallowed?: {
54
+ [x: string]: Lowercase<string>[];
55
+ } | undefined;
56
+ } | undefined;
57
+ readonly sign?: boolean | undefined;
58
+ readonly storeQueries?: boolean | undefined;
59
+ readonly timestamp?: boolean | undefined;
60
+ }>;
18
61
  ephemeralQueryAccountEnabled?: boolean;
19
62
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
20
- }, import("../EventData.ts").ArchivistModuleEventData, {
21
- schema: string;
22
- } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
63
+ }, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
64
+ schema: import("@xyo-network/payload-model").Schema;
65
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
23
66
  <TType extends import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
24
67
  account?: import("@xyo-network/account-model").AccountInstance | "random";
25
68
  addToResolvers?: boolean;
26
69
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
27
70
  allowNameResolution?: boolean;
28
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
29
- parents?: import("../Config.ts").ArchivistParents;
30
- requireAllParents?: boolean;
31
- schema: "network.xyo.archivist.config";
32
- storage?: import("../Config.ts").ArchivistStorage;
33
- storeParentReads?: boolean;
34
- }, "schema"> & {
35
- schema: "network.xyo.archivist.config";
36
- }, "schema"> & {
37
- schema: string;
38
- };
71
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
72
+ schema: import("@xyo-network/payload-model").Schema;
73
+ parents?: {
74
+ commit?: Lowercase<string>[] | undefined;
75
+ read?: Lowercase<string>[] | undefined;
76
+ write?: Lowercase<string>[] | undefined;
77
+ } | undefined;
78
+ requireAllParents?: boolean | undefined;
79
+ storage?: {
80
+ indexes?: {
81
+ key: {
82
+ [x: string]: import("../IndexDescription.ts").IndexDirection;
83
+ };
84
+ multiEntry?: boolean | undefined;
85
+ name?: string | undefined;
86
+ unique?: boolean | undefined;
87
+ }[] | undefined;
88
+ } | undefined;
89
+ storeParentReads?: boolean | undefined;
90
+ readonly archiving?: {
91
+ readonly archivists?: string[] | undefined;
92
+ readonly queries?: string[] | undefined;
93
+ } | undefined;
94
+ readonly allowedQueries?: string[] | undefined;
95
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
96
+ readonly certify?: boolean | undefined;
97
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
98
+ readonly labels?: {
99
+ [x: string]: string | undefined;
100
+ } | undefined;
101
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
102
+ readonly paging?: {
103
+ [x: string]: {
104
+ size?: number | undefined;
105
+ };
106
+ } | undefined;
107
+ readonly retry?: {
108
+ backoff?: number | undefined;
109
+ interval?: number | undefined;
110
+ retries?: number | undefined;
111
+ } | undefined;
112
+ readonly security?: {
113
+ readonly allowAnonymous?: boolean | undefined;
114
+ readonly allowed?: {
115
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
116
+ } | undefined;
117
+ readonly disallowed?: {
118
+ [x: string]: Lowercase<string>[];
119
+ } | undefined;
120
+ } | undefined;
121
+ readonly sign?: boolean | undefined;
122
+ readonly storeQueries?: boolean | undefined;
123
+ readonly timestamp?: boolean | undefined;
124
+ }>;
39
125
  ephemeralQueryAccountEnabled?: boolean;
40
126
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
41
- }, import("../EventData.ts").ArchivistModuleEventData, {
42
- schema: string;
43
- } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
127
+ }, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
128
+ schema: import("@xyo-network/payload-model").Schema;
129
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
44
130
  account?: import("@xyo-network/account-model").AccountInstance | "random";
45
131
  addToResolvers?: boolean;
46
132
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
47
133
  allowNameResolution?: boolean;
48
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
49
- parents?: import("../Config.ts").ArchivistParents;
50
- requireAllParents?: boolean;
51
- schema: "network.xyo.archivist.config";
52
- storage?: import("../Config.ts").ArchivistStorage;
53
- storeParentReads?: boolean;
54
- }, "schema"> & {
55
- schema: "network.xyo.archivist.config";
56
- }, "schema"> & {
57
- schema: string;
58
- };
134
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
135
+ schema: import("@xyo-network/payload-model").Schema;
136
+ parents?: {
137
+ commit?: Lowercase<string>[] | undefined;
138
+ read?: Lowercase<string>[] | undefined;
139
+ write?: Lowercase<string>[] | undefined;
140
+ } | undefined;
141
+ requireAllParents?: boolean | undefined;
142
+ storage?: {
143
+ indexes?: {
144
+ key: {
145
+ [x: string]: import("../IndexDescription.ts").IndexDirection;
146
+ };
147
+ multiEntry?: boolean | undefined;
148
+ name?: string | undefined;
149
+ unique?: boolean | undefined;
150
+ }[] | undefined;
151
+ } | undefined;
152
+ storeParentReads?: boolean | undefined;
153
+ readonly archiving?: {
154
+ readonly archivists?: string[] | undefined;
155
+ readonly queries?: string[] | undefined;
156
+ } | undefined;
157
+ readonly allowedQueries?: string[] | undefined;
158
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
159
+ readonly certify?: boolean | undefined;
160
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
161
+ readonly labels?: {
162
+ [x: string]: string | undefined;
163
+ } | undefined;
164
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
165
+ readonly paging?: {
166
+ [x: string]: {
167
+ size?: number | undefined;
168
+ };
169
+ } | undefined;
170
+ readonly retry?: {
171
+ backoff?: number | undefined;
172
+ interval?: number | undefined;
173
+ retries?: number | undefined;
174
+ } | undefined;
175
+ readonly security?: {
176
+ readonly allowAnonymous?: boolean | undefined;
177
+ readonly allowed?: {
178
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
179
+ } | undefined;
180
+ readonly disallowed?: {
181
+ [x: string]: Lowercase<string>[];
182
+ } | undefined;
183
+ } | undefined;
184
+ readonly sign?: boolean | undefined;
185
+ readonly storeQueries?: boolean | undefined;
186
+ readonly timestamp?: boolean | undefined;
187
+ }>;
59
188
  ephemeralQueryAccountEnabled?: boolean;
60
189
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
61
- }, import("../EventData.ts").ArchivistModuleEventData, {
62
- schema: string;
63
- } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
190
+ }, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
191
+ schema: import("@xyo-network/payload-model").Schema;
192
+ }>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
64
193
  };
65
194
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;2EACf,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;2EAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;8EAAgG,gBAAoB;CADnN,CAAA"}
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBACf,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAgG,gBAAoB;CADnN,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { ObjectTypeShape } from '@xylabs/typeof'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport type { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { ArchivistInstance } from './Instance.ts'\nimport type { ArchivistModule } from './Module.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nimport type { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { ArchivistModuleEventData } from '../EventData.ts'\nimport type { ArchivistInstance } from '../Instance.ts'\nimport type { ArchivistModule } from '../Module.ts'\nimport type { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import type { Address } from '@xylabs/hex'\nimport type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACChC,SAASC,uBAAuB;AAEhC,SAASC,kCAAkC;;;ACH3C,SAASC,uBAAuB;AAChC,SACEC,mBAAmBC,iBAAiBC,kBAAkBC,mBACjD;;;ACAA,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;API3D,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADZM,IAAMC,gCAAgCC,iBAAgBC,OAAOC,6BAAAA;;;AUHpE,SAASC,mBAAAA,wBAAuB;AAmBzB,IAAMC,uCAAN,cAAwHC,iBAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACF5I,IAAMC,wBAAwB;;;ACa9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","IsObjectFactory","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { ObjectTypeShape } from '@xylabs/typeof'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport type { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { ArchivistInstance } from './Instance.ts'\nimport type { ArchivistModule } from './Module.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nimport type { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { ArchivistModuleEventData } from '../EventData.ts'\nimport type { ArchivistInstance } from '../Instance.ts'\nimport type { ArchivistModule } from '../Module.ts'\nimport type { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import type { Address } from '@xylabs/hex'\nimport type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key: Record<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACChC,SAASC,uBAAuB;AAEhC,SAASC,kCAAkC;;;ACH3C,SAASC,uBAAuB;AAChC,SACEC,mBAAmBC,iBAAiBC,kBAAkBC,mBACjD;;;ACAA,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;API3D,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADZM,IAAMC,gCAAgCC,iBAAgBC,OAAOC,6BAAAA;;;AUHpE,SAASC,mBAAAA,wBAAuB;AAmBzB,IAAMC,uCAAN,cAAwHC,iBAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACF5I,IAAMC,wBAAwB;;;ACS9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","IsObjectFactory","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
@@ -5,38 +5,124 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
5
5
  addToResolvers?: boolean;
6
6
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
7
7
  allowNameResolution?: boolean;
8
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
9
- parents?: import("./Config.ts").ArchivistParents;
10
- requireAllParents?: boolean;
11
- schema: "network.xyo.archivist.config";
12
- storage?: import("./Config.ts").ArchivistStorage;
13
- storeParentReads?: boolean;
14
- }, "schema"> & {
15
- schema: "network.xyo.archivist.config";
16
- }, "schema"> & {
17
- schema: string;
18
- };
8
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
9
+ schema: import("@xyo-network/payload-model").Schema;
10
+ parents?: {
11
+ commit?: Lowercase<string>[] | undefined;
12
+ read?: Lowercase<string>[] | undefined;
13
+ write?: Lowercase<string>[] | undefined;
14
+ } | undefined;
15
+ requireAllParents?: boolean | undefined;
16
+ storage?: {
17
+ indexes?: {
18
+ key: {
19
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
20
+ };
21
+ multiEntry?: boolean | undefined;
22
+ name?: string | undefined;
23
+ unique?: boolean | undefined;
24
+ }[] | undefined;
25
+ } | undefined;
26
+ storeParentReads?: boolean | undefined;
27
+ readonly archiving?: {
28
+ readonly archivists?: string[] | undefined;
29
+ readonly queries?: string[] | undefined;
30
+ } | undefined;
31
+ readonly allowedQueries?: string[] | undefined;
32
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
33
+ readonly certify?: boolean | undefined;
34
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
35
+ readonly labels?: {
36
+ [x: string]: string | undefined;
37
+ } | undefined;
38
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
39
+ readonly paging?: {
40
+ [x: string]: {
41
+ size?: number | undefined;
42
+ };
43
+ } | undefined;
44
+ readonly retry?: {
45
+ backoff?: number | undefined;
46
+ interval?: number | undefined;
47
+ retries?: number | undefined;
48
+ } | undefined;
49
+ readonly security?: {
50
+ readonly allowAnonymous?: boolean | undefined;
51
+ readonly allowed?: {
52
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
53
+ } | undefined;
54
+ readonly disallowed?: {
55
+ [x: string]: Lowercase<string>[];
56
+ } | undefined;
57
+ } | undefined;
58
+ readonly sign?: boolean | undefined;
59
+ readonly storeQueries?: boolean | undefined;
60
+ readonly timestamp?: boolean | undefined;
61
+ }>;
19
62
  ephemeralQueryAccountEnabled?: boolean;
20
63
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
21
- }, import("./EventData.ts").ArchivistModuleEventData, {
22
- schema: string;
23
- } & import("@xyo-network/payload-model").PayloadFields>>;
64
+ }, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
65
+ schema: import("@xyo-network/payload-model").Schema;
66
+ }>>>;
24
67
  export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
25
68
  account?: import("@xyo-network/account-model").AccountInstance | "random";
26
69
  addToResolvers?: boolean;
27
70
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
28
71
  allowNameResolution?: boolean;
29
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
30
- parents?: import("./Config.ts").ArchivistParents;
31
- requireAllParents?: boolean;
32
- schema: "network.xyo.archivist.config";
33
- storage?: import("./Config.ts").ArchivistStorage;
34
- storeParentReads?: boolean;
35
- }, "schema"> & {
36
- schema: "network.xyo.archivist.config";
37
- }, "schema"> & {
38
- schema: string;
39
- };
72
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
73
+ schema: import("@xyo-network/payload-model").Schema;
74
+ parents?: {
75
+ commit?: Lowercase<string>[] | undefined;
76
+ read?: Lowercase<string>[] | undefined;
77
+ write?: Lowercase<string>[] | undefined;
78
+ } | undefined;
79
+ requireAllParents?: boolean | undefined;
80
+ storage?: {
81
+ indexes?: {
82
+ key: {
83
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
84
+ };
85
+ multiEntry?: boolean | undefined;
86
+ name?: string | undefined;
87
+ unique?: boolean | undefined;
88
+ }[] | undefined;
89
+ } | undefined;
90
+ storeParentReads?: boolean | undefined;
91
+ readonly archiving?: {
92
+ readonly archivists?: string[] | undefined;
93
+ readonly queries?: string[] | undefined;
94
+ } | undefined;
95
+ readonly allowedQueries?: string[] | undefined;
96
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
97
+ readonly certify?: boolean | undefined;
98
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
99
+ readonly labels?: {
100
+ [x: string]: string | undefined;
101
+ } | undefined;
102
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
103
+ readonly paging?: {
104
+ [x: string]: {
105
+ size?: number | undefined;
106
+ };
107
+ } | undefined;
108
+ readonly retry?: {
109
+ backoff?: number | undefined;
110
+ interval?: number | undefined;
111
+ retries?: number | undefined;
112
+ } | undefined;
113
+ readonly security?: {
114
+ readonly allowAnonymous?: boolean | undefined;
115
+ readonly allowed?: {
116
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
117
+ } | undefined;
118
+ readonly disallowed?: {
119
+ [x: string]: Lowercase<string>[];
120
+ } | undefined;
121
+ } | undefined;
122
+ readonly sign?: boolean | undefined;
123
+ readonly storeQueries?: boolean | undefined;
124
+ readonly timestamp?: boolean | undefined;
125
+ }>;
40
126
  ephemeralQueryAccountEnabled?: boolean;
41
127
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
42
128
  }, import("./EventData.ts").ArchivistModuleEventData>>;
@@ -46,17 +132,60 @@ export declare const asArchivistModule: {
46
132
  addToResolvers?: boolean;
47
133
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
48
134
  allowNameResolution?: boolean;
49
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
50
- parents?: import("./Config.ts").ArchivistParents;
51
- requireAllParents?: boolean;
52
- schema: "network.xyo.archivist.config";
53
- storage?: import("./Config.ts").ArchivistStorage;
54
- storeParentReads?: boolean;
55
- }, "schema"> & {
56
- schema: "network.xyo.archivist.config";
57
- }, "schema"> & {
58
- schema: string;
59
- };
135
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
136
+ schema: import("@xyo-network/payload-model").Schema;
137
+ parents?: {
138
+ commit?: Lowercase<string>[] | undefined;
139
+ read?: Lowercase<string>[] | undefined;
140
+ write?: Lowercase<string>[] | undefined;
141
+ } | undefined;
142
+ requireAllParents?: boolean | undefined;
143
+ storage?: {
144
+ indexes?: {
145
+ key: {
146
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
147
+ };
148
+ multiEntry?: boolean | undefined;
149
+ name?: string | undefined;
150
+ unique?: boolean | undefined;
151
+ }[] | undefined;
152
+ } | undefined;
153
+ storeParentReads?: boolean | undefined;
154
+ readonly archiving?: {
155
+ readonly archivists?: string[] | undefined;
156
+ readonly queries?: string[] | undefined;
157
+ } | undefined;
158
+ readonly allowedQueries?: string[] | undefined;
159
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
160
+ readonly certify?: boolean | undefined;
161
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
162
+ readonly labels?: {
163
+ [x: string]: string | undefined;
164
+ } | undefined;
165
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
166
+ readonly paging?: {
167
+ [x: string]: {
168
+ size?: number | undefined;
169
+ };
170
+ } | undefined;
171
+ readonly retry?: {
172
+ backoff?: number | undefined;
173
+ interval?: number | undefined;
174
+ retries?: number | undefined;
175
+ } | undefined;
176
+ readonly security?: {
177
+ readonly allowAnonymous?: boolean | undefined;
178
+ readonly allowed?: {
179
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
180
+ } | undefined;
181
+ readonly disallowed?: {
182
+ [x: string]: Lowercase<string>[];
183
+ } | undefined;
184
+ } | undefined;
185
+ readonly sign?: boolean | undefined;
186
+ readonly storeQueries?: boolean | undefined;
187
+ readonly timestamp?: boolean | undefined;
188
+ }>;
60
189
  ephemeralQueryAccountEnabled?: boolean;
61
190
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
62
191
  }, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
@@ -65,17 +194,60 @@ export declare const asArchivistModule: {
65
194
  addToResolvers?: boolean;
66
195
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
67
196
  allowNameResolution?: boolean;
68
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
69
- parents?: import("./Config.ts").ArchivistParents;
70
- requireAllParents?: boolean;
71
- schema: "network.xyo.archivist.config";
72
- storage?: import("./Config.ts").ArchivistStorage;
73
- storeParentReads?: boolean;
74
- }, "schema"> & {
75
- schema: "network.xyo.archivist.config";
76
- }, "schema"> & {
77
- schema: string;
78
- };
197
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
198
+ schema: import("@xyo-network/payload-model").Schema;
199
+ parents?: {
200
+ commit?: Lowercase<string>[] | undefined;
201
+ read?: Lowercase<string>[] | undefined;
202
+ write?: Lowercase<string>[] | undefined;
203
+ } | undefined;
204
+ requireAllParents?: boolean | undefined;
205
+ storage?: {
206
+ indexes?: {
207
+ key: {
208
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
209
+ };
210
+ multiEntry?: boolean | undefined;
211
+ name?: string | undefined;
212
+ unique?: boolean | undefined;
213
+ }[] | undefined;
214
+ } | undefined;
215
+ storeParentReads?: boolean | undefined;
216
+ readonly archiving?: {
217
+ readonly archivists?: string[] | undefined;
218
+ readonly queries?: string[] | undefined;
219
+ } | undefined;
220
+ readonly allowedQueries?: string[] | undefined;
221
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
222
+ readonly certify?: boolean | undefined;
223
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
224
+ readonly labels?: {
225
+ [x: string]: string | undefined;
226
+ } | undefined;
227
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
228
+ readonly paging?: {
229
+ [x: string]: {
230
+ size?: number | undefined;
231
+ };
232
+ } | undefined;
233
+ readonly retry?: {
234
+ backoff?: number | undefined;
235
+ interval?: number | undefined;
236
+ retries?: number | undefined;
237
+ } | undefined;
238
+ readonly security?: {
239
+ readonly allowAnonymous?: boolean | undefined;
240
+ readonly allowed?: {
241
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
242
+ } | undefined;
243
+ readonly disallowed?: {
244
+ [x: string]: Lowercase<string>[];
245
+ } | undefined;
246
+ } | undefined;
247
+ readonly sign?: boolean | undefined;
248
+ readonly storeQueries?: boolean | undefined;
249
+ readonly timestamp?: boolean | undefined;
250
+ }>;
79
251
  ephemeralQueryAccountEnabled?: boolean;
80
252
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
81
253
  }, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
@@ -83,17 +255,60 @@ export declare const asArchivistModule: {
83
255
  addToResolvers?: boolean;
84
256
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
85
257
  allowNameResolution?: boolean;
86
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
87
- parents?: import("./Config.ts").ArchivistParents;
88
- requireAllParents?: boolean;
89
- schema: "network.xyo.archivist.config";
90
- storage?: import("./Config.ts").ArchivistStorage;
91
- storeParentReads?: boolean;
92
- }, "schema"> & {
93
- schema: "network.xyo.archivist.config";
94
- }, "schema"> & {
95
- schema: string;
96
- };
258
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
259
+ schema: import("@xyo-network/payload-model").Schema;
260
+ parents?: {
261
+ commit?: Lowercase<string>[] | undefined;
262
+ read?: Lowercase<string>[] | undefined;
263
+ write?: Lowercase<string>[] | undefined;
264
+ } | undefined;
265
+ requireAllParents?: boolean | undefined;
266
+ storage?: {
267
+ indexes?: {
268
+ key: {
269
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
270
+ };
271
+ multiEntry?: boolean | undefined;
272
+ name?: string | undefined;
273
+ unique?: boolean | undefined;
274
+ }[] | undefined;
275
+ } | undefined;
276
+ storeParentReads?: boolean | undefined;
277
+ readonly archiving?: {
278
+ readonly archivists?: string[] | undefined;
279
+ readonly queries?: string[] | undefined;
280
+ } | undefined;
281
+ readonly allowedQueries?: string[] | undefined;
282
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
283
+ readonly certify?: boolean | undefined;
284
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
285
+ readonly labels?: {
286
+ [x: string]: string | undefined;
287
+ } | undefined;
288
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
289
+ readonly paging?: {
290
+ [x: string]: {
291
+ size?: number | undefined;
292
+ };
293
+ } | undefined;
294
+ readonly retry?: {
295
+ backoff?: number | undefined;
296
+ interval?: number | undefined;
297
+ retries?: number | undefined;
298
+ } | undefined;
299
+ readonly security?: {
300
+ readonly allowAnonymous?: boolean | undefined;
301
+ readonly allowed?: {
302
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
303
+ } | undefined;
304
+ readonly disallowed?: {
305
+ [x: string]: Lowercase<string>[];
306
+ } | undefined;
307
+ } | undefined;
308
+ readonly sign?: boolean | undefined;
309
+ readonly storeQueries?: boolean | undefined;
310
+ readonly timestamp?: boolean | undefined;
311
+ }>;
97
312
  ephemeralQueryAccountEnabled?: boolean;
98
313
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
99
314
  }, import("./EventData.ts").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
@@ -104,80 +319,252 @@ export declare const asArchivistInstance: {
104
319
  addToResolvers?: boolean;
105
320
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
106
321
  allowNameResolution?: boolean;
107
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
108
- parents?: import("./Config.ts").ArchivistParents;
109
- requireAllParents?: boolean;
110
- schema: "network.xyo.archivist.config";
111
- storage?: import("./Config.ts").ArchivistStorage;
112
- storeParentReads?: boolean;
113
- }, "schema"> & {
114
- schema: "network.xyo.archivist.config";
115
- }, "schema"> & {
116
- schema: string;
117
- };
322
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
323
+ schema: import("@xyo-network/payload-model").Schema;
324
+ parents?: {
325
+ commit?: Lowercase<string>[] | undefined;
326
+ read?: Lowercase<string>[] | undefined;
327
+ write?: Lowercase<string>[] | undefined;
328
+ } | undefined;
329
+ requireAllParents?: boolean | undefined;
330
+ storage?: {
331
+ indexes?: {
332
+ key: {
333
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
334
+ };
335
+ multiEntry?: boolean | undefined;
336
+ name?: string | undefined;
337
+ unique?: boolean | undefined;
338
+ }[] | undefined;
339
+ } | undefined;
340
+ storeParentReads?: boolean | undefined;
341
+ readonly archiving?: {
342
+ readonly archivists?: string[] | undefined;
343
+ readonly queries?: string[] | undefined;
344
+ } | undefined;
345
+ readonly allowedQueries?: string[] | undefined;
346
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
347
+ readonly certify?: boolean | undefined;
348
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
349
+ readonly labels?: {
350
+ [x: string]: string | undefined;
351
+ } | undefined;
352
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
353
+ readonly paging?: {
354
+ [x: string]: {
355
+ size?: number | undefined;
356
+ };
357
+ } | undefined;
358
+ readonly retry?: {
359
+ backoff?: number | undefined;
360
+ interval?: number | undefined;
361
+ retries?: number | undefined;
362
+ } | undefined;
363
+ readonly security?: {
364
+ readonly allowAnonymous?: boolean | undefined;
365
+ readonly allowed?: {
366
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
367
+ } | undefined;
368
+ readonly disallowed?: {
369
+ [x: string]: Lowercase<string>[];
370
+ } | undefined;
371
+ } | undefined;
372
+ readonly sign?: boolean | undefined;
373
+ readonly storeQueries?: boolean | undefined;
374
+ readonly timestamp?: boolean | undefined;
375
+ }>;
118
376
  ephemeralQueryAccountEnabled?: boolean;
119
377
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
120
- }, import("./EventData.ts").ArchivistModuleEventData, {
121
- schema: string;
122
- } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
378
+ }, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
379
+ schema: import("@xyo-network/payload-model").Schema;
380
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
123
381
  <TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
124
382
  account?: import("@xyo-network/account-model").AccountInstance | "random";
125
383
  addToResolvers?: boolean;
126
384
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
127
385
  allowNameResolution?: boolean;
128
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
129
- parents?: import("./Config.ts").ArchivistParents;
130
- requireAllParents?: boolean;
131
- schema: "network.xyo.archivist.config";
132
- storage?: import("./Config.ts").ArchivistStorage;
133
- storeParentReads?: boolean;
134
- }, "schema"> & {
135
- schema: "network.xyo.archivist.config";
136
- }, "schema"> & {
137
- schema: string;
138
- };
386
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
387
+ schema: import("@xyo-network/payload-model").Schema;
388
+ parents?: {
389
+ commit?: Lowercase<string>[] | undefined;
390
+ read?: Lowercase<string>[] | undefined;
391
+ write?: Lowercase<string>[] | undefined;
392
+ } | undefined;
393
+ requireAllParents?: boolean | undefined;
394
+ storage?: {
395
+ indexes?: {
396
+ key: {
397
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
398
+ };
399
+ multiEntry?: boolean | undefined;
400
+ name?: string | undefined;
401
+ unique?: boolean | undefined;
402
+ }[] | undefined;
403
+ } | undefined;
404
+ storeParentReads?: boolean | undefined;
405
+ readonly archiving?: {
406
+ readonly archivists?: string[] | undefined;
407
+ readonly queries?: string[] | undefined;
408
+ } | undefined;
409
+ readonly allowedQueries?: string[] | undefined;
410
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
411
+ readonly certify?: boolean | undefined;
412
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
413
+ readonly labels?: {
414
+ [x: string]: string | undefined;
415
+ } | undefined;
416
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
417
+ readonly paging?: {
418
+ [x: string]: {
419
+ size?: number | undefined;
420
+ };
421
+ } | undefined;
422
+ readonly retry?: {
423
+ backoff?: number | undefined;
424
+ interval?: number | undefined;
425
+ retries?: number | undefined;
426
+ } | undefined;
427
+ readonly security?: {
428
+ readonly allowAnonymous?: boolean | undefined;
429
+ readonly allowed?: {
430
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
431
+ } | undefined;
432
+ readonly disallowed?: {
433
+ [x: string]: Lowercase<string>[];
434
+ } | undefined;
435
+ } | undefined;
436
+ readonly sign?: boolean | undefined;
437
+ readonly storeQueries?: boolean | undefined;
438
+ readonly timestamp?: boolean | undefined;
439
+ }>;
139
440
  ephemeralQueryAccountEnabled?: boolean;
140
441
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
141
- }, import("./EventData.ts").ArchivistModuleEventData, {
142
- schema: string;
143
- } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
442
+ }, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
443
+ schema: import("@xyo-network/payload-model").Schema;
444
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
144
445
  account?: import("@xyo-network/account-model").AccountInstance | "random";
145
446
  addToResolvers?: boolean;
146
447
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
147
448
  allowNameResolution?: boolean;
148
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
149
- parents?: import("./Config.ts").ArchivistParents;
150
- requireAllParents?: boolean;
151
- schema: "network.xyo.archivist.config";
152
- storage?: import("./Config.ts").ArchivistStorage;
153
- storeParentReads?: boolean;
154
- }, "schema"> & {
155
- schema: "network.xyo.archivist.config";
156
- }, "schema"> & {
157
- schema: string;
158
- };
449
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
450
+ schema: import("@xyo-network/payload-model").Schema;
451
+ parents?: {
452
+ commit?: Lowercase<string>[] | undefined;
453
+ read?: Lowercase<string>[] | undefined;
454
+ write?: Lowercase<string>[] | undefined;
455
+ } | undefined;
456
+ requireAllParents?: boolean | undefined;
457
+ storage?: {
458
+ indexes?: {
459
+ key: {
460
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
461
+ };
462
+ multiEntry?: boolean | undefined;
463
+ name?: string | undefined;
464
+ unique?: boolean | undefined;
465
+ }[] | undefined;
466
+ } | undefined;
467
+ storeParentReads?: boolean | undefined;
468
+ readonly archiving?: {
469
+ readonly archivists?: string[] | undefined;
470
+ readonly queries?: string[] | undefined;
471
+ } | undefined;
472
+ readonly allowedQueries?: string[] | undefined;
473
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
474
+ readonly certify?: boolean | undefined;
475
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
476
+ readonly labels?: {
477
+ [x: string]: string | undefined;
478
+ } | undefined;
479
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
480
+ readonly paging?: {
481
+ [x: string]: {
482
+ size?: number | undefined;
483
+ };
484
+ } | undefined;
485
+ readonly retry?: {
486
+ backoff?: number | undefined;
487
+ interval?: number | undefined;
488
+ retries?: number | undefined;
489
+ } | undefined;
490
+ readonly security?: {
491
+ readonly allowAnonymous?: boolean | undefined;
492
+ readonly allowed?: {
493
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
494
+ } | undefined;
495
+ readonly disallowed?: {
496
+ [x: string]: Lowercase<string>[];
497
+ } | undefined;
498
+ } | undefined;
499
+ readonly sign?: boolean | undefined;
500
+ readonly storeQueries?: boolean | undefined;
501
+ readonly timestamp?: boolean | undefined;
502
+ }>;
159
503
  ephemeralQueryAccountEnabled?: boolean;
160
504
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
161
- }, import("./EventData.ts").ArchivistModuleEventData, {
162
- schema: string;
163
- } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
505
+ }, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
506
+ schema: import("@xyo-network/payload-model").Schema;
507
+ }>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
164
508
  };
165
509
  export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
166
510
  account?: import("@xyo-network/account-model").AccountInstance | "random";
167
511
  addToResolvers?: boolean;
168
512
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
169
513
  allowNameResolution?: boolean;
170
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
171
- parents?: import("./Config.ts").ArchivistParents;
172
- requireAllParents?: boolean;
173
- schema: "network.xyo.archivist.config";
174
- storage?: import("./Config.ts").ArchivistStorage;
175
- storeParentReads?: boolean;
176
- }, "schema"> & {
177
- schema: "network.xyo.archivist.config";
178
- }, "schema"> & {
179
- schema: string;
180
- };
514
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
515
+ schema: import("@xyo-network/payload-model").Schema;
516
+ parents?: {
517
+ commit?: Lowercase<string>[] | undefined;
518
+ read?: Lowercase<string>[] | undefined;
519
+ write?: Lowercase<string>[] | undefined;
520
+ } | undefined;
521
+ requireAllParents?: boolean | undefined;
522
+ storage?: {
523
+ indexes?: {
524
+ key: {
525
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
526
+ };
527
+ multiEntry?: boolean | undefined;
528
+ name?: string | undefined;
529
+ unique?: boolean | undefined;
530
+ }[] | undefined;
531
+ } | undefined;
532
+ storeParentReads?: boolean | undefined;
533
+ readonly archiving?: {
534
+ readonly archivists?: string[] | undefined;
535
+ readonly queries?: string[] | undefined;
536
+ } | undefined;
537
+ readonly allowedQueries?: string[] | undefined;
538
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
539
+ readonly certify?: boolean | undefined;
540
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
541
+ readonly labels?: {
542
+ [x: string]: string | undefined;
543
+ } | undefined;
544
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
545
+ readonly paging?: {
546
+ [x: string]: {
547
+ size?: number | undefined;
548
+ };
549
+ } | undefined;
550
+ readonly retry?: {
551
+ backoff?: number | undefined;
552
+ interval?: number | undefined;
553
+ retries?: number | undefined;
554
+ } | undefined;
555
+ readonly security?: {
556
+ readonly allowAnonymous?: boolean | undefined;
557
+ readonly allowed?: {
558
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
559
+ } | undefined;
560
+ readonly disallowed?: {
561
+ [x: string]: Lowercase<string>[];
562
+ } | undefined;
563
+ } | undefined;
564
+ readonly sign?: boolean | undefined;
565
+ readonly storeQueries?: boolean | undefined;
566
+ readonly timestamp?: boolean | undefined;
567
+ }>;
181
568
  ephemeralQueryAccountEnabled?: boolean;
182
569
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
183
570
  }, import("./EventData.ts").ArchivistModuleEventData>) => R) => R | undefined;
@@ -186,20 +573,63 @@ export declare const withArchivistInstance: <R>(mod: any, closure: (mod: Archivi
186
573
  addToResolvers?: boolean;
187
574
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
188
575
  allowNameResolution?: boolean;
189
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
190
- parents?: import("./Config.ts").ArchivistParents;
191
- requireAllParents?: boolean;
192
- schema: "network.xyo.archivist.config";
193
- storage?: import("./Config.ts").ArchivistStorage;
194
- storeParentReads?: boolean;
195
- }, "schema"> & {
196
- schema: "network.xyo.archivist.config";
197
- }, "schema"> & {
198
- schema: string;
199
- };
576
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
577
+ schema: import("@xyo-network/payload-model").Schema;
578
+ parents?: {
579
+ commit?: Lowercase<string>[] | undefined;
580
+ read?: Lowercase<string>[] | undefined;
581
+ write?: Lowercase<string>[] | undefined;
582
+ } | undefined;
583
+ requireAllParents?: boolean | undefined;
584
+ storage?: {
585
+ indexes?: {
586
+ key: {
587
+ [x: string]: import("./IndexDescription.ts").IndexDirection;
588
+ };
589
+ multiEntry?: boolean | undefined;
590
+ name?: string | undefined;
591
+ unique?: boolean | undefined;
592
+ }[] | undefined;
593
+ } | undefined;
594
+ storeParentReads?: boolean | undefined;
595
+ readonly archiving?: {
596
+ readonly archivists?: string[] | undefined;
597
+ readonly queries?: string[] | undefined;
598
+ } | undefined;
599
+ readonly allowedQueries?: string[] | undefined;
600
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
601
+ readonly certify?: boolean | undefined;
602
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
603
+ readonly labels?: {
604
+ [x: string]: string | undefined;
605
+ } | undefined;
606
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
607
+ readonly paging?: {
608
+ [x: string]: {
609
+ size?: number | undefined;
610
+ };
611
+ } | undefined;
612
+ readonly retry?: {
613
+ backoff?: number | undefined;
614
+ interval?: number | undefined;
615
+ retries?: number | undefined;
616
+ } | undefined;
617
+ readonly security?: {
618
+ readonly allowAnonymous?: boolean | undefined;
619
+ readonly allowed?: {
620
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
621
+ } | undefined;
622
+ readonly disallowed?: {
623
+ [x: string]: Lowercase<string>[];
624
+ } | undefined;
625
+ } | undefined;
626
+ readonly sign?: boolean | undefined;
627
+ readonly storeQueries?: boolean | undefined;
628
+ readonly timestamp?: boolean | undefined;
629
+ }>;
200
630
  ephemeralQueryAccountEnabled?: boolean;
201
631
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
202
- }, import("./EventData.ts").ArchivistModuleEventData, {
203
- schema: string;
204
- } & import("@xyo-network/payload-model").PayloadFields>) => R) => R | undefined;
632
+ }, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
633
+ schema: import("@xyo-network/payload-model").Schema;
634
+ }>>) => R) => R | undefined;
205
635
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;wDAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;sDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;yEANG,iBAAiB,iCACjB,gBAAmB;;;;;;;;;;;;;;;;;;;yEAEiB,iBAAiB;;;;;;;;;;;;;;;;;;4EAC9B,gBAAoB;CAEF,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;2EAPC,iBAAiB,iCACjB,gBAAmB;;;;;;;;;;;;;;;;;;;;;2EAEiB,iBAAiB;;;;;;;;;;;;;;;;;;;;8EAC9B,gBAAoB;CAGE,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;6EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEANG,iBAAiB,iCACjB,gBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAEiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAC9B,gBAAoB;CAEF,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAPC,iBAAiB,iCACjB,gBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAEiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAC9B,gBAAoB;CAGE,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA0C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-model",
3
- "version": "3.6.0-rc.5",
3
+ "version": "3.6.0-rc.6",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.4.14",
33
- "@xylabs/object": "^4.4.14",
34
- "@xylabs/promise": "^4.4.14",
35
- "@xylabs/typeof": "^4.4.14",
36
- "@xyo-network/account-model": "^3.6.0-rc.5",
37
- "@xyo-network/module-events": "^3.6.0-rc.5",
38
- "@xyo-network/module-model": "^3.6.0-rc.5",
39
- "@xyo-network/payload-model": "^3.6.0-rc.5"
32
+ "@xylabs/hex": "^4.4.15",
33
+ "@xylabs/object": "^4.4.15",
34
+ "@xylabs/promise": "^4.4.15",
35
+ "@xylabs/typeof": "^4.4.15",
36
+ "@xyo-network/account-model": "^3.6.0-rc.6",
37
+ "@xyo-network/module-events": "^3.6.0-rc.6",
38
+ "@xyo-network/module-model": "^3.6.0-rc.6",
39
+ "@xyo-network/payload-model": "^3.6.0-rc.6"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@xylabs/ts-scripts-yarn3": "^4.2.4",
@@ -10,11 +10,7 @@ export type IndexDescription = {
10
10
  /**
11
11
  * The key(s) to index
12
12
  */
13
- key:
14
- | {
15
- [key: string]: IndexDirection
16
- }
17
- | Map<string, IndexDirection>
13
+ key: Record<string, IndexDirection>
18
14
  /**
19
15
  * Is the indexed value an array
20
16
  */