@xyo-network/archivist-model 2.90.22 → 2.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
+ import { Hash } from '@xylabs/hex';
1
2
  import { Query } from '@xyo-network/payload-model';
2
3
  export type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get';
3
4
  export declare const ArchivistGetQuerySchema: ArchivistGetQuerySchema;
4
5
  export type ArchivistGetQuery = Query<{
5
- hashes: string[];
6
+ hashes: Hash[];
6
7
  schema: ArchivistGetQuerySchema;
7
8
  }>;
8
9
  //# sourceMappingURL=Get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
@@ -1,8 +1,9 @@
1
+ import { Hash } from '@xylabs/hex';
1
2
  import { Query } from '@xyo-network/payload-model';
2
3
  export type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get';
3
4
  export declare const ArchivistGetQuerySchema: ArchivistGetQuerySchema;
4
5
  export type ArchivistGetQuery = Query<{
5
- hashes: string[];
6
+ hashes: Hash[];
6
7
  schema: ArchivistGetQuerySchema;
7
8
  }>;
8
9
  //# sourceMappingURL=Get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
@@ -1,8 +1,9 @@
1
+ import { Hash } from '@xylabs/hex';
1
2
  import { Query } from '@xyo-network/payload-model';
2
3
  export type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get';
3
4
  export declare const ArchivistGetQuerySchema: ArchivistGetQuerySchema;
4
5
  export type ArchivistGetQuery = Query<{
5
- hashes: string[];
6
+ hashes: Hash[];
6
7
  schema: ArchivistGetQuerySchema;
7
8
  }>;
8
9
  //# sourceMappingURL=Get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["export * from './Archivist'\nexport * from './ArchivistInstance'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","import { 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 { 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 { 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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { 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: string[]\n schema: ArchivistGetQuerySchema\n}>\n","import { 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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;ACWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACA/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACAzD,IAAMC,6BAAyD;;;ACHtE,oBAAgC;AAChC,0BAAkF;AAM3E,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["export * from './Archivist'\nexport * from './ArchivistInstance'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","import { 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 { 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 { 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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { 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 { 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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;ACWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACA/D,IAAMC,6BAAyD;;;ACC/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACHtE,oBAAgC;AAChC,0BAAkF;AAM3E,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","import { 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 { 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 { 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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { 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: string[]\n schema: ArchivistGetQuerySchema\n}>\n","import { 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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;AAWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACA/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACAzD,IAAMC,6BAAyD;;;ACHtE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,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;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","import { 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 { 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 { 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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { 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 { 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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;AAWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACA/D,IAAMC,6BAAyD;;;ACC/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACHtE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,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;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
@@ -13,8 +13,8 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
13
13
  schema: "network.xyo.archivist.config";
14
14
  readonly security?: {
15
15
  readonly allowAnonymous?: boolean | undefined;
16
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
17
- readonly disallowed?: Record<string, string[]> | undefined;
16
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
17
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
18
18
  } | undefined;
19
19
  readonly sign?: boolean | undefined;
20
20
  readonly storeQueries?: boolean | undefined;
@@ -30,8 +30,8 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
30
30
  schema: "network.xyo.archivist.config";
31
31
  readonly security?: {
32
32
  readonly allowAnonymous?: boolean | undefined;
33
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
34
- readonly disallowed?: Record<string, string[]> | undefined;
33
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
34
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
35
35
  } | undefined;
36
36
  readonly sign?: boolean | undefined;
37
37
  readonly storeQueries?: boolean | undefined;
@@ -61,8 +61,8 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
61
61
  schema: "network.xyo.archivist.config";
62
62
  readonly security?: {
63
63
  readonly allowAnonymous?: boolean | undefined;
64
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
65
- readonly disallowed?: Record<string, string[]> | undefined;
64
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
65
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
66
66
  } | undefined;
67
67
  readonly sign?: boolean | undefined;
68
68
  readonly storeQueries?: boolean | undefined;
@@ -78,8 +78,8 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
78
78
  schema: "network.xyo.archivist.config";
79
79
  readonly security?: {
80
80
  readonly allowAnonymous?: boolean | undefined;
81
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
82
- readonly disallowed?: Record<string, string[]> | undefined;
81
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
82
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
83
83
  } | undefined;
84
84
  readonly sign?: boolean | undefined;
85
85
  readonly storeQueries?: boolean | undefined;
@@ -108,8 +108,8 @@ export declare const asArchivistModule: {
108
108
  schema: "network.xyo.archivist.config";
109
109
  readonly security?: {
110
110
  readonly allowAnonymous?: boolean | undefined;
111
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
112
- readonly disallowed?: Record<string, string[]> | undefined;
111
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
112
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
113
113
  } | undefined;
114
114
  readonly sign?: boolean | undefined;
115
115
  readonly storeQueries?: boolean | undefined;
@@ -125,8 +125,8 @@ export declare const asArchivistModule: {
125
125
  schema: "network.xyo.archivist.config";
126
126
  readonly security?: {
127
127
  readonly allowAnonymous?: boolean | undefined;
128
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
129
- readonly disallowed?: Record<string, string[]> | undefined;
128
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
129
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
130
130
  } | undefined;
131
131
  readonly sign?: boolean | undefined;
132
132
  readonly storeQueries?: boolean | undefined;
@@ -154,8 +154,8 @@ export declare const asArchivistModule: {
154
154
  schema: "network.xyo.archivist.config";
155
155
  readonly security?: {
156
156
  readonly allowAnonymous?: boolean | undefined;
157
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
158
- readonly disallowed?: Record<string, string[]> | undefined;
157
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
158
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
159
159
  } | undefined;
160
160
  readonly sign?: boolean | undefined;
161
161
  readonly storeQueries?: boolean | undefined;
@@ -171,8 +171,8 @@ export declare const asArchivistModule: {
171
171
  schema: "network.xyo.archivist.config";
172
172
  readonly security?: {
173
173
  readonly allowAnonymous?: boolean | undefined;
174
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
175
- readonly disallowed?: Record<string, string[]> | undefined;
174
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
175
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
176
176
  } | undefined;
177
177
  readonly sign?: boolean | undefined;
178
178
  readonly storeQueries?: boolean | undefined;
@@ -202,8 +202,8 @@ export declare const asArchivistInstance: {
202
202
  schema: "network.xyo.archivist.config";
203
203
  readonly security?: {
204
204
  readonly allowAnonymous?: boolean | undefined;
205
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
206
- readonly disallowed?: Record<string, string[]> | undefined;
205
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
206
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
207
207
  } | undefined;
208
208
  readonly sign?: boolean | undefined;
209
209
  readonly storeQueries?: boolean | undefined;
@@ -219,8 +219,8 @@ export declare const asArchivistInstance: {
219
219
  schema: "network.xyo.archivist.config";
220
220
  readonly security?: {
221
221
  readonly allowAnonymous?: boolean | undefined;
222
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
223
- readonly disallowed?: Record<string, string[]> | undefined;
222
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
223
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
224
224
  } | undefined;
225
225
  readonly sign?: boolean | undefined;
226
226
  readonly storeQueries?: boolean | undefined;
@@ -250,8 +250,8 @@ export declare const asArchivistInstance: {
250
250
  schema: "network.xyo.archivist.config";
251
251
  readonly security?: {
252
252
  readonly allowAnonymous?: boolean | undefined;
253
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
254
- readonly disallowed?: Record<string, string[]> | undefined;
253
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
254
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
255
255
  } | undefined;
256
256
  readonly sign?: boolean | undefined;
257
257
  readonly storeQueries?: boolean | undefined;
@@ -267,8 +267,8 @@ export declare const asArchivistInstance: {
267
267
  schema: "network.xyo.archivist.config";
268
268
  readonly security?: {
269
269
  readonly allowAnonymous?: boolean | undefined;
270
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
271
- readonly disallowed?: Record<string, string[]> | undefined;
270
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
271
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
272
272
  } | undefined;
273
273
  readonly sign?: boolean | undefined;
274
274
  readonly storeQueries?: boolean | undefined;
@@ -299,8 +299,8 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
299
299
  schema: "network.xyo.archivist.config";
300
300
  readonly security?: {
301
301
  readonly allowAnonymous?: boolean | undefined;
302
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
303
- readonly disallowed?: Record<string, string[]> | undefined;
302
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
303
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
304
304
  } | undefined;
305
305
  readonly sign?: boolean | undefined;
306
306
  readonly storeQueries?: boolean | undefined;
@@ -316,8 +316,8 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
316
316
  schema: "network.xyo.archivist.config";
317
317
  readonly security?: {
318
318
  readonly allowAnonymous?: boolean | undefined;
319
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
320
- readonly disallowed?: Record<string, string[]> | undefined;
319
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
320
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
321
321
  } | undefined;
322
322
  readonly sign?: boolean | undefined;
323
323
  readonly storeQueries?: boolean | undefined;
@@ -345,8 +345,8 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
345
345
  schema: "network.xyo.archivist.config";
346
346
  readonly security?: {
347
347
  readonly allowAnonymous?: boolean | undefined;
348
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
349
- readonly disallowed?: Record<string, string[]> | undefined;
348
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
349
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
350
350
  } | undefined;
351
351
  readonly sign?: boolean | undefined;
352
352
  readonly storeQueries?: boolean | undefined;
@@ -362,8 +362,8 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
362
362
  schema: "network.xyo.archivist.config";
363
363
  readonly security?: {
364
364
  readonly allowAnonymous?: boolean | undefined;
365
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
366
- readonly disallowed?: Record<string, string[]> | undefined;
365
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
366
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
367
367
  } | undefined;
368
368
  readonly sign?: boolean | undefined;
369
369
  readonly storeQueries?: boolean | undefined;
@@ -13,8 +13,8 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
13
13
  schema: "network.xyo.archivist.config";
14
14
  readonly security?: {
15
15
  readonly allowAnonymous?: boolean | undefined;
16
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
17
- readonly disallowed?: Record<string, string[]> | undefined;
16
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
17
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
18
18
  } | undefined;
19
19
  readonly sign?: boolean | undefined;
20
20
  readonly storeQueries?: boolean | undefined;
@@ -30,8 +30,8 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
30
30
  schema: "network.xyo.archivist.config";
31
31
  readonly security?: {
32
32
  readonly allowAnonymous?: boolean | undefined;
33
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
34
- readonly disallowed?: Record<string, string[]> | undefined;
33
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
34
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
35
35
  } | undefined;
36
36
  readonly sign?: boolean | undefined;
37
37
  readonly storeQueries?: boolean | undefined;
@@ -61,8 +61,8 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
61
61
  schema: "network.xyo.archivist.config";
62
62
  readonly security?: {
63
63
  readonly allowAnonymous?: boolean | undefined;
64
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
65
- readonly disallowed?: Record<string, string[]> | undefined;
64
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
65
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
66
66
  } | undefined;
67
67
  readonly sign?: boolean | undefined;
68
68
  readonly storeQueries?: boolean | undefined;
@@ -78,8 +78,8 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
78
78
  schema: "network.xyo.archivist.config";
79
79
  readonly security?: {
80
80
  readonly allowAnonymous?: boolean | undefined;
81
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
82
- readonly disallowed?: Record<string, string[]> | undefined;
81
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
82
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
83
83
  } | undefined;
84
84
  readonly sign?: boolean | undefined;
85
85
  readonly storeQueries?: boolean | undefined;
@@ -108,8 +108,8 @@ export declare const asArchivistModule: {
108
108
  schema: "network.xyo.archivist.config";
109
109
  readonly security?: {
110
110
  readonly allowAnonymous?: boolean | undefined;
111
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
112
- readonly disallowed?: Record<string, string[]> | undefined;
111
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
112
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
113
113
  } | undefined;
114
114
  readonly sign?: boolean | undefined;
115
115
  readonly storeQueries?: boolean | undefined;
@@ -125,8 +125,8 @@ export declare const asArchivistModule: {
125
125
  schema: "network.xyo.archivist.config";
126
126
  readonly security?: {
127
127
  readonly allowAnonymous?: boolean | undefined;
128
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
129
- readonly disallowed?: Record<string, string[]> | undefined;
128
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
129
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
130
130
  } | undefined;
131
131
  readonly sign?: boolean | undefined;
132
132
  readonly storeQueries?: boolean | undefined;
@@ -154,8 +154,8 @@ export declare const asArchivistModule: {
154
154
  schema: "network.xyo.archivist.config";
155
155
  readonly security?: {
156
156
  readonly allowAnonymous?: boolean | undefined;
157
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
158
- readonly disallowed?: Record<string, string[]> | undefined;
157
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
158
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
159
159
  } | undefined;
160
160
  readonly sign?: boolean | undefined;
161
161
  readonly storeQueries?: boolean | undefined;
@@ -171,8 +171,8 @@ export declare const asArchivistModule: {
171
171
  schema: "network.xyo.archivist.config";
172
172
  readonly security?: {
173
173
  readonly allowAnonymous?: boolean | undefined;
174
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
175
- readonly disallowed?: Record<string, string[]> | undefined;
174
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
175
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
176
176
  } | undefined;
177
177
  readonly sign?: boolean | undefined;
178
178
  readonly storeQueries?: boolean | undefined;
@@ -202,8 +202,8 @@ export declare const asArchivistInstance: {
202
202
  schema: "network.xyo.archivist.config";
203
203
  readonly security?: {
204
204
  readonly allowAnonymous?: boolean | undefined;
205
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
206
- readonly disallowed?: Record<string, string[]> | undefined;
205
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
206
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
207
207
  } | undefined;
208
208
  readonly sign?: boolean | undefined;
209
209
  readonly storeQueries?: boolean | undefined;
@@ -219,8 +219,8 @@ export declare const asArchivistInstance: {
219
219
  schema: "network.xyo.archivist.config";
220
220
  readonly security?: {
221
221
  readonly allowAnonymous?: boolean | undefined;
222
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
223
- readonly disallowed?: Record<string, string[]> | undefined;
222
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
223
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
224
224
  } | undefined;
225
225
  readonly sign?: boolean | undefined;
226
226
  readonly storeQueries?: boolean | undefined;
@@ -250,8 +250,8 @@ export declare const asArchivistInstance: {
250
250
  schema: "network.xyo.archivist.config";
251
251
  readonly security?: {
252
252
  readonly allowAnonymous?: boolean | undefined;
253
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
254
- readonly disallowed?: Record<string, string[]> | undefined;
253
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
254
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
255
255
  } | undefined;
256
256
  readonly sign?: boolean | undefined;
257
257
  readonly storeQueries?: boolean | undefined;
@@ -267,8 +267,8 @@ export declare const asArchivistInstance: {
267
267
  schema: "network.xyo.archivist.config";
268
268
  readonly security?: {
269
269
  readonly allowAnonymous?: boolean | undefined;
270
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
271
- readonly disallowed?: Record<string, string[]> | undefined;
270
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
271
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
272
272
  } | undefined;
273
273
  readonly sign?: boolean | undefined;
274
274
  readonly storeQueries?: boolean | undefined;
@@ -299,8 +299,8 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
299
299
  schema: "network.xyo.archivist.config";
300
300
  readonly security?: {
301
301
  readonly allowAnonymous?: boolean | undefined;
302
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
303
- readonly disallowed?: Record<string, string[]> | undefined;
302
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
303
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
304
304
  } | undefined;
305
305
  readonly sign?: boolean | undefined;
306
306
  readonly storeQueries?: boolean | undefined;
@@ -316,8 +316,8 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
316
316
  schema: "network.xyo.archivist.config";
317
317
  readonly security?: {
318
318
  readonly allowAnonymous?: boolean | undefined;
319
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
320
- readonly disallowed?: Record<string, string[]> | undefined;
319
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
320
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
321
321
  } | undefined;
322
322
  readonly sign?: boolean | undefined;
323
323
  readonly storeQueries?: boolean | undefined;
@@ -345,8 +345,8 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
345
345
  schema: "network.xyo.archivist.config";
346
346
  readonly security?: {
347
347
  readonly allowAnonymous?: boolean | undefined;
348
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
349
- readonly disallowed?: Record<string, string[]> | undefined;
348
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
349
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
350
350
  } | undefined;
351
351
  readonly sign?: boolean | undefined;
352
352
  readonly storeQueries?: boolean | undefined;
@@ -362,8 +362,8 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
362
362
  schema: "network.xyo.archivist.config";
363
363
  readonly security?: {
364
364
  readonly allowAnonymous?: boolean | undefined;
365
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
366
- readonly disallowed?: Record<string, string[]> | undefined;
365
+ readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
366
+ readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
367
367
  } | undefined;
368
368
  readonly sign?: boolean | undefined;
369
369
  readonly storeQueries?: boolean | undefined;