@xyo-network/archivist-model 3.9.18 → 3.9.20

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.
Files changed (71) hide show
  1. package/dist/neutral/ArchivistFunctions.d.ts +18 -0
  2. package/dist/neutral/ArchivistFunctions.d.ts.map +1 -0
  3. package/dist/neutral/Config.d.ts +27 -0
  4. package/dist/neutral/Config.d.ts.map +1 -0
  5. package/dist/neutral/EventData.d.ts +5 -0
  6. package/dist/neutral/EventData.d.ts.map +1 -0
  7. package/dist/neutral/EventModels/Cleared.d.ts +7 -0
  8. package/dist/neutral/EventModels/Cleared.d.ts.map +1 -0
  9. package/dist/neutral/EventModels/Deleted.d.ts +10 -0
  10. package/dist/neutral/EventModels/Deleted.d.ts.map +1 -0
  11. package/dist/neutral/EventModels/Inserted.d.ts +10 -0
  12. package/dist/neutral/EventModels/Inserted.d.ts.map +1 -0
  13. package/dist/neutral/EventModels/index.d.ts +4 -0
  14. package/dist/neutral/EventModels/index.d.ts.map +1 -0
  15. package/dist/neutral/IndexDescription.d.ts +34 -0
  16. package/dist/neutral/IndexDescription.d.ts.map +1 -0
  17. package/dist/neutral/Instance.d.ts +10 -0
  18. package/dist/neutral/Instance.d.ts.map +1 -0
  19. package/dist/neutral/Labels.d.ts +5 -0
  20. package/dist/neutral/Labels.d.ts.map +1 -0
  21. package/dist/neutral/Module.d.ts +7 -0
  22. package/dist/neutral/Module.d.ts.map +1 -0
  23. package/dist/neutral/ModuleInstance.d.ts +6 -0
  24. package/dist/neutral/ModuleInstance.d.ts.map +1 -0
  25. package/dist/neutral/NextOptions.d.ts +10 -0
  26. package/dist/neutral/NextOptions.d.ts.map +1 -0
  27. package/dist/neutral/Params.d.ts +14 -0
  28. package/dist/neutral/Params.d.ts.map +1 -0
  29. package/dist/neutral/PayloadArchivist.d.ts +18 -0
  30. package/dist/neutral/PayloadArchivist.d.ts.map +1 -0
  31. package/dist/neutral/Queries/All.d.ts +7 -0
  32. package/dist/neutral/Queries/All.d.ts.map +1 -0
  33. package/dist/neutral/Queries/Clear.d.ts +7 -0
  34. package/dist/neutral/Queries/Clear.d.ts.map +1 -0
  35. package/dist/neutral/Queries/Commit.d.ts +7 -0
  36. package/dist/neutral/Queries/Commit.d.ts.map +1 -0
  37. package/dist/neutral/Queries/Delete.d.ts +9 -0
  38. package/dist/neutral/Queries/Delete.d.ts.map +1 -0
  39. package/dist/neutral/Queries/Get.d.ts +9 -0
  40. package/dist/neutral/Queries/Get.d.ts.map +1 -0
  41. package/dist/neutral/Queries/Insert.d.ts +7 -0
  42. package/dist/neutral/Queries/Insert.d.ts.map +1 -0
  43. package/dist/neutral/Queries/Next.d.ts +6 -0
  44. package/dist/neutral/Queries/Next.d.ts.map +1 -0
  45. package/dist/neutral/Queries/index.d.ts +18 -0
  46. package/dist/neutral/Queries/index.d.ts.map +1 -0
  47. package/dist/neutral/RawQueryFunctions.d.ts +16 -0
  48. package/dist/neutral/RawQueryFunctions.d.ts.map +1 -0
  49. package/dist/neutral/attachable/AttachableInstance.d.ts +14 -0
  50. package/dist/neutral/attachable/AttachableInstance.d.ts.map +1 -0
  51. package/dist/neutral/attachable/asAttachableInstance.d.ts +35 -0
  52. package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -0
  53. package/dist/neutral/attachable/index.d.ts +4 -0
  54. package/dist/neutral/attachable/index.d.ts.map +1 -0
  55. package/dist/neutral/attachable/isAttachableInstance.d.ts +6 -0
  56. package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -0
  57. package/dist/neutral/index.d.ts +16 -353
  58. package/dist/neutral/index.d.ts.map +1 -0
  59. package/dist/neutral/lib/HydratedBoundWitness.d.ts +4 -0
  60. package/dist/neutral/lib/HydratedBoundWitness.d.ts.map +1 -0
  61. package/dist/neutral/lib/IdentityFunction.d.ts +2 -0
  62. package/dist/neutral/lib/IdentityFunction.d.ts.map +1 -0
  63. package/dist/neutral/lib/getBoundWitness.d.ts +9 -0
  64. package/dist/neutral/lib/getBoundWitness.d.ts.map +1 -0
  65. package/dist/neutral/lib/hydrateBoundWitness.d.ts +10 -0
  66. package/dist/neutral/lib/hydrateBoundWitness.d.ts.map +1 -0
  67. package/dist/neutral/lib/index.d.ts +5 -0
  68. package/dist/neutral/lib/index.d.ts.map +1 -0
  69. package/dist/neutral/typeChecks.d.ts +115 -0
  70. package/dist/neutral/typeChecks.d.ts.map +1 -0
  71. package/package.json +9 -9
@@ -0,0 +1,18 @@
1
+ import type { Promisable, PromisableArray } from '@xylabs/promise';
2
+ import type { NextOptions } from './NextOptions.ts';
3
+ export interface AllArchivistFunctions<TReadResponse> {
4
+ all(): PromisableArray<TReadResponse>;
5
+ }
6
+ export interface ReadArchivistFunctions<TReadResponse, TId = string> {
7
+ get(ids: TId[]): PromisableArray<TReadResponse>;
8
+ next(options?: NextOptions<TId>): PromisableArray<TReadResponse>;
9
+ }
10
+ export interface WriteArchivistFunctions<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
11
+ clear(): Promisable<void>;
12
+ delete(ids: TId[]): PromisableArray<TId>;
13
+ insert(item: TWrite[]): PromisableArray<TWriteResponse>;
14
+ }
15
+ export interface StashArchivistFunctions<TWriteResponse> {
16
+ commit(): PromisableArray<TWriteResponse>;
17
+ }
18
+ //# sourceMappingURL=ArchivistFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArchivistFunctions.d.ts","sourceRoot":"","sources":["../../src/ArchivistFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,WAAW,qBAAqB,CAAC,aAAa;IAClD,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,sBAAsB,CAAC,aAAa,EAAE,GAAG,GAAG,MAAM;IACjE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;IAC/C,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;CACjE;AAED,MAAM,WAAW,uBAAuB,CAAC,aAAa,EAAE,cAAc,GAAG,aAAa,EAAE,MAAM,GAAG,aAAa,EAAE,GAAG,GAAG,MAAM;IAC1H,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACzB,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,eAAe,CAAC,GAAG,CAAC,CAAA;IACxC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,eAAe,CAAC,cAAc,CAAC,CAAA;CACxD;AAED,MAAM,WAAW,uBAAuB,CAAC,cAAc;IACrD,MAAM,IAAI,eAAe,CAAC,cAAc,CAAC,CAAA;CAC1C"}
@@ -0,0 +1,27 @@
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/object';
2
+ import type { ModuleConfig, ModuleIdentifier } from '@xyo-network/module-model';
3
+ import type { Payload } from '@xyo-network/payload-model';
4
+ import type { IndexDescription } from './IndexDescription.ts';
5
+ export interface ArchivistParents {
6
+ commit?: ModuleIdentifier[];
7
+ read?: ModuleIdentifier[];
8
+ write?: ModuleIdentifier[];
9
+ }
10
+ export interface ArchivistStorage {
11
+ /** The indexes to create on the object store */
12
+ indexes?: IndexDescription[];
13
+ }
14
+ export declare const ArchivistConfigSchema: "network.xyo.archivist.config";
15
+ export type ArchivistConfigSchema = typeof ArchivistConfigSchema;
16
+ export type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
17
+ /** @field address of one or more parent archivists to read from */
18
+ parents?: ArchivistParents;
19
+ /** @field fail if some parents can not be resolved (true if unspecified) */
20
+ requireAllParents?: boolean;
21
+ schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
22
+ /** @field storage configuration */
23
+ storage?: ArchivistStorage;
24
+ /** @field should child store all reads from parents? */
25
+ storeParentReads?: boolean;
26
+ }, TConfig>, TSchema>;
27
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC3B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB,EAAG,8BAAuC,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IACE,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAC3E,mCAAmC;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { ModuleEventData } from '@xyo-network/module-model';
2
+ import type { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.ts';
3
+ export interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
4
+ }
5
+ //# sourceMappingURL=EventData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventData.d.ts","sourceRoot":"","sources":["../../src/EventData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EACV,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EACtD,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe;CAAG"}
@@ -0,0 +1,7 @@
1
+ import type { EventData } from '@xyo-network/module-events';
2
+ import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
+ export type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>;
4
+ export interface ClearedEventData<T extends Module = Module> extends EventData {
5
+ cleared: ClearedEventArgs<T>;
6
+ }
7
+ //# sourceMappingURL=Cleared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cleared.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Cleared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,CAAA;AAE5E,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
@@ -0,0 +1,10 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { EventData } from '@xyo-network/module-events';
3
+ import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
4
+ export type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
5
+ hashes: Hash[];
6
+ }>;
7
+ export interface DeletedEventData<T extends Module = Module> extends EventData {
8
+ deleted: DeletedEventArgs<T>;
9
+ }
10
+ //# sourceMappingURL=Deleted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Deleted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Deleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACvE,CAAC,EACD;IACE,MAAM,EAAE,IAAI,EAAE,CAAA;CACf,CACF,CAAA;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
@@ -0,0 +1,10 @@
1
+ import type { EventData } from '@xyo-network/module-events';
2
+ import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
+ import type { Payload } from '@xyo-network/payload-model';
4
+ export type InsertedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
5
+ payloads: Payload[];
6
+ }>;
7
+ export interface InsertedEventData<T extends Module = Module> extends EventData {
8
+ inserted: InsertedEventArgs<T>;
9
+ }
10
+ //# sourceMappingURL=Inserted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Inserted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Inserted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACxE,CAAC,EACD;IACE,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB,CACF,CAAA;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC7E,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;CAC/B"}
@@ -0,0 +1,4 @@
1
+ export * from './Cleared.ts';
2
+ export * from './Deleted.ts';
3
+ export * from './Inserted.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EventModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The index direction (1 for ascending, -1 for descending)
3
+ */
4
+ export type IndexDirection = -1 | 1;
5
+ /**
6
+ * Description of index(es) to be created on a store
7
+ */
8
+ export type IndexDescription = {
9
+ /**
10
+ * The key(s) to index
11
+ */
12
+ key: Record<string, IndexDirection>;
13
+ /**
14
+ * Is the indexed value an array
15
+ */
16
+ multiEntry?: boolean;
17
+ /**
18
+ * The name of the index
19
+ */
20
+ name?: string;
21
+ /**
22
+ * If true, the index must enforce uniqueness on the key
23
+ */
24
+ unique?: boolean;
25
+ };
26
+ export declare const IndexSeparator = "-";
27
+ /**
28
+ * Given an index description, this will build the index
29
+ * name in standard form
30
+ * @param index The index description
31
+ * @returns The index name in standard form
32
+ */
33
+ export declare const buildStandardIndexName: (index: IndexDescription) => string;
34
+ //# sourceMappingURL=IndexDescription.d.ts.map
@@ -0,0 +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,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,GAAI,OAAO,gBAAgB,WAK7D,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { ModuleInstance } from '@xyo-network/module-model';
2
+ import type { Payload } from '@xyo-network/payload-model';
3
+ import type { ArchivistModuleEventData } from './EventData.ts';
4
+ import type { ArchivistModule } from './Module.ts';
5
+ import type { ArchivistModuleInstance } from './ModuleInstance.ts';
6
+ import type { ArchivistParams } from './Params.ts';
7
+ import type { ArchivistRawQueryFunctions } from './RawQueryFunctions.ts';
8
+ export interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, ArchivistModule<TPayload, TPayload>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
9
+ }
10
+ //# sourceMappingURL=Instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/Instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AAExE,MAAM,WAAW,iBAAiB,CAChC,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,EACtE,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClC,SAAQ,uBAAuB,CAAC,OAAO,EAAE,UAAU,CAAC,EACpD,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACnC,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,EACnC,0BAA0B;CAAG"}
@@ -0,0 +1,5 @@
1
+ import type { Labels } from '@xyo-network/module-model';
2
+ export interface ArchivistLabels extends Labels {
3
+ 'network.xyo.archivist.persistence.scope': 'memory' | 'thread' | 'process' | 'device' | 'network';
4
+ }
5
+ //# sourceMappingURL=Labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,yCAAyC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;CAClG"}
@@ -0,0 +1,7 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { ModuleQueryFunctions } from '@xyo-network/module-model';
3
+ import type { Payload } from '@xyo-network/payload-model';
4
+ import type { Archivist } from './PayloadArchivist.ts';
5
+ export interface ArchivistModule<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends Archivist<TReadResponse, TWriteResponse, TWrite, TId>, ModuleQueryFunctions {
6
+ }
7
+ //# sourceMappingURL=Module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,WAAW,eAAe,CAC9B,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,cAAc,SAAS,OAAO,GAAG,OAAO,EACxC,MAAM,SAAS,OAAO,GAAG,aAAa,GAAG,OAAO,EAChD,GAAG,GAAG,IAAI,CACV,SAAQ,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,CAAC,EAC7D,oBAAoB;CAAG"}
@@ -0,0 +1,6 @@
1
+ import type { AnyConfigSchema, Module, ModuleParams } from '@xyo-network/module-model';
2
+ import type { ArchivistConfig } from './Config.ts';
3
+ import type { ArchivistModuleEventData } from './EventData.ts';
4
+ export interface ArchivistModuleInstance<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
5
+ }
6
+ //# sourceMappingURL=ModuleInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleInstance.d.ts","sourceRoot":"","sources":["../../src/ModuleInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAAE,MAAM,EAAE,YAAY,EACtC,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAE9D,MAAM,WAAW,uBAAuB,CACtC,OAAO,SAAS,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,GAAG,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,EAC/G,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,CACtE,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG"}
@@ -0,0 +1,10 @@
1
+ import type { Hash, Hex } from '@xylabs/hex';
2
+ export interface NextOptions<TId = Hex> {
3
+ cursor?: TId;
4
+ limit?: number;
5
+ open?: boolean;
6
+ order?: 'asc' | 'desc';
7
+ }
8
+ export interface ArchivistNextOptions extends NextOptions<Hash> {
9
+ }
10
+ //# sourceMappingURL=NextOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NextOptions.d.ts","sourceRoot":"","sources":["../../src/NextOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,WAAW,CAAC,GAAG,GAAG,GAAG;IACpC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW,CAAC,IAAI,CAAC;CAAG"}
@@ -0,0 +1,14 @@
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/object';
2
+ import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
3
+ import type { ArchivistConfig } from './Config.ts';
4
+ import type { ArchivistInstance } from './Instance.ts';
5
+ export interface ArchivistParentInstances {
6
+ commit?: ArchivistInstance[];
7
+ read?: ArchivistInstance[];
8
+ write?: ArchivistInstance[];
9
+ }
10
+ export interface ArchivistParamFields {
11
+ parents?: ArchivistParentInstances;
12
+ }
13
+ export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject = EmptyObject> = ModuleParams<TConfig, WithAdditional<ArchivistParamFields & TAdditionalParams>>;
14
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC5B,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,wBAAwB,CAAA;CACnC;AAED,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC,EACnF,iBAAiB,SAAS,WAAW,GAAG,WAAW,IACjD,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,oBAAoB,GAAG,iBAAiB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
3
+ import type { AllArchivistFunctions, ReadArchivistFunctions, StashArchivistFunctions, WriteArchivistFunctions } from './ArchivistFunctions.ts';
4
+ export interface AllArchivist<TReadResponse extends Payload = Payload> extends AllArchivistFunctions<WithStorageMeta<TReadResponse>> {
5
+ }
6
+ export interface ReadArchivist<TReadResponse extends Payload = Payload, TId = Hash> extends ReadArchivistFunctions<WithStorageMeta<TReadResponse>, TId> {
7
+ }
8
+ export interface WriteArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends WriteArchivistFunctions<WithStorageMeta<TReadResponse>, TWriteResponse, TWrite, TId> {
9
+ }
10
+ export interface ReadWriteArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends WriteArchivist<TReadResponse, TWriteResponse, TWrite, TId>, ReadArchivist<TReadResponse, TId> {
11
+ }
12
+ export interface StashArchivist<TWriteResponse extends Payload = Payload> extends StashArchivistFunctions<WithStorageMeta<TWriteResponse>> {
13
+ }
14
+ export interface FullArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends ReadWriteArchivist<TReadResponse, TWriteResponse, TWrite, TId>, StashArchivist<TWriteResponse> {
15
+ }
16
+ export interface Archivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends ReadArchivist<WithStorageMeta<TReadResponse>, TId>, AllArchivist<WithStorageMeta<TReadResponse>>, WriteArchivist<WithStorageMeta<TReadResponse>, WithStorageMeta<TWriteResponse>, TWrite, TId>, StashArchivistFunctions<TWriteResponse> {
17
+ }
18
+ //# sourceMappingURL=PayloadArchivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayloadArchivist.d.ts","sourceRoot":"","sources":["../../src/PayloadArchivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,KAAK,EACV,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,EAChG,MAAM,yBAAyB,CAAA;AAEhC,MAAM,WAAW,YAAY,CAC3B,aAAa,SAAS,OAAO,GAAG,OAAO,CACvC,SAAQ,qBAAqB,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;CAAG;AAElE,MAAM,WAAW,aAAa,CAC5B,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,GAAG,GAAG,IAAI,CACV,SAAQ,sBAAsB,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC;CAAG;AAExE,MAAM,WAAW,cAAc,CAC7B,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,cAAc,SAAS,OAAO,GAAG,aAAa,EAC9C,MAAM,SAAS,OAAO,GAAG,aAAa,EACtC,GAAG,GAAG,IAAI,CACV,SAAQ,uBAAuB,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,CAAC;CAAG;AAEjG,MAAM,WAAW,kBAAkB,CACjC,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,cAAc,SAAS,OAAO,GAAG,aAAa,EAC9C,MAAM,SAAS,OAAO,GAAG,aAAa,EACtC,GAAG,GAAG,IAAI,CACV,SAAQ,cAAc,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,aAAa,EAAE,GAAG,CAAC;CAAG;AAE1G,MAAM,WAAW,cAAc,CAC7B,cAAc,SAAS,OAAO,GAAG,OAAO,CACxC,SAAQ,uBAAuB,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;CAAG;AAErE,MAAM,WAAW,aAAa,CAC5B,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,cAAc,SAAS,OAAO,GAAG,aAAa,EAC9C,MAAM,SAAS,OAAO,GAAG,aAAa,EACtC,GAAG,GAAG,IAAI,CACV,SAAQ,kBAAkB,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3G,MAAM,WAAW,SAAS,CACxB,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,cAAc,SAAS,OAAO,GAAG,OAAO,EACxC,MAAM,SAAS,OAAO,GAAG,aAAa,GAAG,OAAO,EAChD,GAAG,GAAG,IAAI,CACV,SAAQ,aAAa,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC,EAC1D,YAAY,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,EAC5C,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAC5F,uBAAuB,CAAC,cAAc,CAAC;CAAG"}
@@ -0,0 +1,7 @@
1
+ import type { Query } from '@xyo-network/payload-model';
2
+ export declare const ArchivistAllQuerySchema: "network.xyo.query.archivist.all";
3
+ export type ArchivistAllQuerySchema = typeof ArchivistAllQuerySchema;
4
+ export type ArchivistAllQuery = Query<{
5
+ schema: ArchivistAllQuerySchema;
6
+ }>;
7
+ //# sourceMappingURL=All.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"All.d.ts","sourceRoot":"","sources":["../../../src/Queries/All.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,uBAAuB,EAAG,iCAA0C,CAAA;AACjF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Query } from '@xyo-network/payload-model';
2
+ export declare const ArchivistClearQuerySchema: "network.xyo.query.archivist.clear";
3
+ export type ArchivistClearQuerySchema = typeof ArchivistClearQuerySchema;
4
+ export type ArchivistClearQuery = Query<{
5
+ schema: ArchivistClearQuerySchema;
6
+ }>;
7
+ //# sourceMappingURL=Clear.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clear.d.ts","sourceRoot":"","sources":["../../../src/Queries/Clear.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,yBAAyB,EAAG,mCAA4C,CAAA;AACrF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Query } from '@xyo-network/payload-model';
2
+ export declare const ArchivistCommitQuerySchema: "network.xyo.query.archivist.commit";
3
+ export type ArchivistCommitQuerySchema = typeof ArchivistCommitQuerySchema;
4
+ export type ArchivistCommitQuery = Query<{
5
+ schema: ArchivistCommitQuerySchema;
6
+ }>;
7
+ //# sourceMappingURL=Commit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Commit.d.ts","sourceRoot":"","sources":["../../../src/Queries/Commit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,0BAA0B,EAAG,oCAA6C,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA;AAE1E,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;IACvC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Query } from '@xyo-network/payload-model';
3
+ export declare const ArchivistDeleteQuerySchema: "network.xyo.query.archivist.delete";
4
+ export type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema;
5
+ export type ArchivistDeleteQuery = Query<{
6
+ hashes: Hash[];
7
+ schema: ArchivistDeleteQuerySchema;
8
+ }>;
9
+ //# sourceMappingURL=Delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Delete.d.ts","sourceRoot":"","sources":["../../../src/Queries/Delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,0BAA0B,EAAG,oCAA6C,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA;AAE1E,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;IACvC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Query } from '@xyo-network/payload-model';
3
+ export declare const ArchivistGetQuerySchema: "network.xyo.query.archivist.get";
4
+ export type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema;
5
+ export type ArchivistGetQuery = Query<{
6
+ hashes: Hash[];
7
+ schema: ArchivistGetQuerySchema;
8
+ }>;
9
+ //# sourceMappingURL=Get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,uBAAuB,EAAG,iCAA0C,CAAA;AACjF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Query } from '@xyo-network/payload-model';
2
+ export declare const ArchivistInsertQuerySchema: "network.xyo.query.archivist.insert";
3
+ export type ArchivistInsertQuerySchema = typeof ArchivistInsertQuerySchema;
4
+ export type ArchivistInsertQuery = Query<{
5
+ schema: ArchivistInsertQuerySchema;
6
+ }>;
7
+ //# sourceMappingURL=Insert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Insert.d.ts","sourceRoot":"","sources":["../../../src/Queries/Insert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,0BAA0B,EAAG,oCAA6C,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA;AAE1E,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;IACvC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Query } from '@xyo-network/payload-model';
2
+ import type { ArchivistNextOptions } from '../NextOptions.ts';
3
+ export declare const ArchivistNextQuerySchema: "network.xyo.query.archivist.next";
4
+ export type ArchivistNextQuerySchema = typeof ArchivistNextQuerySchema;
5
+ export type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
6
+ //# sourceMappingURL=Next.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Next.d.ts","sourceRoot":"","sources":["../../../src/Queries/Next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,eAAO,MAAM,wBAAwB,EAAG,kCAA2C,CAAA;AACnF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ export * from './All.ts';
2
+ export * from './Clear.ts';
3
+ export * from './Commit.ts';
4
+ export * from './Delete.ts';
5
+ export * from './Get.ts';
6
+ export * from './Insert.ts';
7
+ export * from './Next.ts';
8
+ import type { ModuleQueries } from '@xyo-network/module-model';
9
+ import type { ArchivistAllQuery } from './All.ts';
10
+ import type { ArchivistClearQuery } from './Clear.ts';
11
+ import type { ArchivistCommitQuery } from './Commit.ts';
12
+ import type { ArchivistDeleteQuery } from './Delete.ts';
13
+ import type { ArchivistGetQuery } from './Get.ts';
14
+ import type { ArchivistInsertQuery } from './Insert.ts';
15
+ import type { ArchivistNextQuery } from './Next.ts';
16
+ export type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
17
+ export type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD,MAAM,MAAM,gBAAgB,GACxB,iBAAiB,GACjB,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,CAAA;AAEtB,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,gBAAgB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Promisable } from '@xylabs/promise';
3
+ import type { AccountInstance } from '@xyo-network/account-model';
4
+ import type { ModuleQueryResult } from '@xyo-network/module-model';
5
+ import type { Payload } from '@xyo-network/payload-model';
6
+ import type { ArchivistNextOptions } from './NextOptions.ts';
7
+ export interface ArchivistRawQueryFunctions {
8
+ allQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
9
+ clearQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
10
+ commitQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
11
+ deleteQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
12
+ getQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
13
+ insertQuery(payloads: Payload[], account?: AccountInstance): Promisable<ModuleQueryResult>;
14
+ nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promisable<ModuleQueryResult>;
15
+ }
16
+ //# sourceMappingURL=RawQueryFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawQueryFunctions.d.ts","sourceRoot":"","sources":["../../src/RawQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAE5D,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAClE,UAAU,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACpE,WAAW,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACrE,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACrF,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAClF,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC1F,SAAS,CAAC,OAAO,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACpG"}
@@ -0,0 +1,14 @@
1
+ import type { TypeCheck } from '@xylabs/object';
2
+ import { IsObjectFactory } from '@xylabs/object';
3
+ import type { AttachableModuleInstance } from '@xyo-network/module-model';
4
+ import type { Payload } from '@xyo-network/payload-model';
5
+ import type { ArchivistModuleEventData } from '../EventData.ts';
6
+ import type { ArchivistInstance } from '../Instance.ts';
7
+ import type { ArchivistModuleInstance } from '../ModuleInstance.ts';
8
+ import type { ArchivistParams } from '../Params.ts';
9
+ export interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
10
+ }
11
+ export type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
12
+ export declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
13
+ }
14
+ //# sourceMappingURL=AttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,MAAM,WAAW,2BAA2B,CAC1C,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,EACtE,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClC,SAAQ,uBAAuB,CAAC,OAAO,EAAE,UAAU,CAAC,EACpD,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;CAAG;AAErD,MAAM,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAEpI,qBAAa,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
@@ -0,0 +1,35 @@
1
+ export declare const asAttachableArchivistInstance: {
2
+ <TType extends import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
4
+ addToResolvers?: boolean;
5
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
6
+ allowNameResolution?: boolean;
7
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").ArchivistConfig>;
8
+ ephemeralQueryAccountEnabled?: boolean;
9
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
10
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
11
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
12
+ } & import("../Params.ts").ArchivistParamFields & object, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
13
+ <TType extends import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
14
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
15
+ addToResolvers?: boolean;
16
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
17
+ allowNameResolution?: boolean;
18
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").ArchivistConfig>;
19
+ ephemeralQueryAccountEnabled?: boolean;
20
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
21
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
22
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
23
+ } & import("../Params.ts").ArchivistParamFields & object, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
24
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
25
+ addToResolvers?: boolean;
26
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
27
+ allowNameResolution?: boolean;
28
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").ArchivistConfig>;
29
+ ephemeralQueryAccountEnabled?: boolean;
30
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
31
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
32
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
33
+ } & import("../Params.ts").ArchivistParamFields & object, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
34
+ };
35
+ //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;+KAChB,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;+KAA+E,iBAAiB;;;;;;;;;;kLAAgG,gBAAoB;CADlN,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './asAttachableInstance.ts';
2
+ export * from './AttachableInstance.ts';
3
+ export * from './isAttachableInstance.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { TypeCheck } from '@xylabs/object';
2
+ import type { ObjectTypeShape } from '@xylabs/typeof';
3
+ import type { AttachableArchivistInstance } from './AttachableInstance.ts';
4
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
5
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
6
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAIrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAA;AAE1E,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -1,353 +1,16 @@
1
- import * as _xylabs_promise from '@xylabs/promise';
2
- import { PromisableArray, Promisable } from '@xylabs/promise';
3
- import { Hex, Hash } from '@xylabs/hex';
4
- import * as _xylabs_object from '@xylabs/object';
5
- import { EmptyObject, WithAdditional, TypeCheck, IsObjectFactory } from '@xylabs/object';
6
- import * as _xyo_network_module_model from '@xyo-network/module-model';
7
- import { Module, ModuleEventArgs, ModuleEventData, ModuleQueryFunctions, ModuleConfig, ModuleIdentifier, ModuleParams, AnyConfigSchema, ModuleQueryResult, ModuleInstance, AttachableModuleInstance, Labels, ModuleQueries } from '@xyo-network/module-model';
8
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
9
- import { Payload, WithStorageMeta, Query } from '@xyo-network/payload-model';
10
- import { EventData } from '@xyo-network/module-events';
11
- import * as _xyo_network_account_model from '@xyo-network/account-model';
12
- import { AccountInstance } from '@xyo-network/account-model';
13
- import { ObjectTypeShape } from '@xylabs/typeof';
14
- import { BoundWitness } from '@xyo-network/boundwitness-model';
15
-
16
- interface NextOptions<TId = Hex> {
17
- cursor?: TId;
18
- limit?: number;
19
- open?: boolean;
20
- order?: 'asc' | 'desc';
21
- }
22
- interface ArchivistNextOptions extends NextOptions<Hash> {
23
- }
24
-
25
- interface AllArchivistFunctions<TReadResponse> {
26
- all(): PromisableArray<TReadResponse>;
27
- }
28
- interface ReadArchivistFunctions<TReadResponse, TId = string> {
29
- get(ids: TId[]): PromisableArray<TReadResponse>;
30
- next(options?: NextOptions<TId>): PromisableArray<TReadResponse>;
31
- }
32
- interface WriteArchivistFunctions<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
33
- clear(): Promisable<void>;
34
- delete(ids: TId[]): PromisableArray<TId>;
35
- insert(item: TWrite[]): PromisableArray<TWriteResponse>;
36
- }
37
- interface StashArchivistFunctions<TWriteResponse> {
38
- commit(): PromisableArray<TWriteResponse>;
39
- }
40
-
41
- type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>;
42
- interface ClearedEventData<T extends Module = Module> extends EventData {
43
- cleared: ClearedEventArgs<T>;
44
- }
45
-
46
- type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
47
- hashes: Hash[];
48
- }>;
49
- interface DeletedEventData<T extends Module = Module> extends EventData {
50
- deleted: DeletedEventArgs<T>;
51
- }
52
-
53
- type InsertedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
54
- payloads: Payload[];
55
- }>;
56
- interface InsertedEventData<T extends Module = Module> extends EventData {
57
- inserted: InsertedEventArgs<T>;
58
- }
59
-
60
- interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
61
- }
62
-
63
- interface AllArchivist<TReadResponse extends Payload = Payload> extends AllArchivistFunctions<WithStorageMeta<TReadResponse>> {
64
- }
65
- interface ReadArchivist<TReadResponse extends Payload = Payload, TId = Hash> extends ReadArchivistFunctions<WithStorageMeta<TReadResponse>, TId> {
66
- }
67
- interface WriteArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends WriteArchivistFunctions<WithStorageMeta<TReadResponse>, TWriteResponse, TWrite, TId> {
68
- }
69
- interface ReadWriteArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends WriteArchivist<TReadResponse, TWriteResponse, TWrite, TId>, ReadArchivist<TReadResponse, TId> {
70
- }
71
- interface StashArchivist<TWriteResponse extends Payload = Payload> extends StashArchivistFunctions<WithStorageMeta<TWriteResponse>> {
72
- }
73
- interface FullArchivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = TReadResponse, TWrite extends Payload = TReadResponse, TId = Hash> extends ReadWriteArchivist<TReadResponse, TWriteResponse, TWrite, TId>, StashArchivist<TWriteResponse> {
74
- }
75
- interface Archivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends ReadArchivist<WithStorageMeta<TReadResponse>, TId>, AllArchivist<WithStorageMeta<TReadResponse>>, WriteArchivist<WithStorageMeta<TReadResponse>, WithStorageMeta<TWriteResponse>, TWrite, TId>, StashArchivistFunctions<TWriteResponse> {
76
- }
77
-
78
- interface ArchivistModule<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends Archivist<TReadResponse, TWriteResponse, TWrite, TId>, ModuleQueryFunctions {
79
- }
80
-
81
- type IndexDirection = -1 | 1;
82
- type IndexDescription = {
83
- key: Record<string, IndexDirection>;
84
- multiEntry?: boolean;
85
- name?: string;
86
- unique?: boolean;
87
- };
88
- declare const IndexSeparator = "-";
89
- declare const buildStandardIndexName: (index: IndexDescription) => string;
90
-
91
- interface ArchivistParents {
92
- commit?: ModuleIdentifier[];
93
- read?: ModuleIdentifier[];
94
- write?: ModuleIdentifier[];
95
- }
96
- interface ArchivistStorage {
97
- indexes?: IndexDescription[];
98
- }
99
- declare const ArchivistConfigSchema: "network.xyo.archivist.config";
100
- type ArchivistConfigSchema = typeof ArchivistConfigSchema;
101
- type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
102
- parents?: ArchivistParents;
103
- requireAllParents?: boolean;
104
- schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
105
- storage?: ArchivistStorage;
106
- storeParentReads?: boolean;
107
- }, TConfig>, TSchema>;
108
-
109
- interface ArchivistModuleInstance<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
110
- }
111
-
112
- interface ArchivistParentInstances {
113
- commit?: ArchivistInstance[];
114
- read?: ArchivistInstance[];
115
- write?: ArchivistInstance[];
116
- }
117
- interface ArchivistParamFields {
118
- parents?: ArchivistParentInstances;
119
- }
120
- type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject = EmptyObject> = ModuleParams<TConfig, WithAdditional<ArchivistParamFields & TAdditionalParams>>;
121
-
122
- interface ArchivistRawQueryFunctions {
123
- allQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
124
- clearQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
125
- commitQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
126
- deleteQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
127
- getQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
128
- insertQuery(payloads: Payload[], account?: AccountInstance): Promisable<ModuleQueryResult>;
129
- nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promisable<ModuleQueryResult>;
130
- }
131
-
132
- interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, ArchivistModule<TPayload, TPayload>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
133
- }
134
-
135
- interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
136
- }
137
- type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
138
- declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
139
- }
140
-
141
- declare const asAttachableArchivistInstance: {
142
- <TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
143
- account?: _xyo_network_account_model.AccountInstance | "random";
144
- addToResolvers?: boolean;
145
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
146
- allowNameResolution?: boolean;
147
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
148
- ephemeralQueryAccountEnabled?: boolean;
149
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
150
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
151
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
152
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
153
- <TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
154
- account?: _xyo_network_account_model.AccountInstance | "random";
155
- addToResolvers?: boolean;
156
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
157
- allowNameResolution?: boolean;
158
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
159
- ephemeralQueryAccountEnabled?: boolean;
160
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
161
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
162
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
163
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
164
- account?: _xyo_network_account_model.AccountInstance | "random";
165
- addToResolvers?: boolean;
166
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
167
- allowNameResolution?: boolean;
168
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
169
- ephemeralQueryAccountEnabled?: boolean;
170
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
171
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
172
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
173
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>, config?: _xylabs_object.TypeCheckConfig): TType;
174
- };
175
-
176
- declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
177
- declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
178
-
179
- interface ArchivistLabels extends Labels {
180
- 'network.xyo.archivist.persistence.scope': 'memory' | 'thread' | 'process' | 'device' | 'network';
181
- }
182
-
183
- type IdentityFunction<T> = (value: unknown) => value is T;
184
-
185
- declare const tryGetTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<WithStorageMeta<T> | undefined>;
186
- declare const getTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<WithStorageMeta<T>>;
187
- declare const getBoundWitness: (archivist: ReadArchivist, hash: Hash) => Promise<WithStorageMeta<BoundWitness>>;
188
-
189
- type HydratedBoundWitness<T extends BoundWitness = BoundWitness, P extends Payload = Payload> = [WithStorageMeta<T>, WithStorageMeta<P>[]];
190
-
191
- declare const tryHydrateTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<HydratedBoundWitness<T> | undefined>;
192
- declare const hydrateTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<HydratedBoundWitness<T>>;
193
- declare const hydrateBoundWitness: (archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<BoundWitness>) => Promise<HydratedBoundWitness<BoundWitness>>;
194
-
195
- declare const ArchivistAllQuerySchema: "network.xyo.query.archivist.all";
196
- type ArchivistAllQuerySchema = typeof ArchivistAllQuerySchema;
197
- type ArchivistAllQuery = Query<{
198
- schema: ArchivistAllQuerySchema;
199
- }>;
200
-
201
- declare const ArchivistClearQuerySchema: "network.xyo.query.archivist.clear";
202
- type ArchivistClearQuerySchema = typeof ArchivistClearQuerySchema;
203
- type ArchivistClearQuery = Query<{
204
- schema: ArchivistClearQuerySchema;
205
- }>;
206
-
207
- declare const ArchivistCommitQuerySchema: "network.xyo.query.archivist.commit";
208
- type ArchivistCommitQuerySchema = typeof ArchivistCommitQuerySchema;
209
- type ArchivistCommitQuery = Query<{
210
- schema: ArchivistCommitQuerySchema;
211
- }>;
212
-
213
- declare const ArchivistDeleteQuerySchema: "network.xyo.query.archivist.delete";
214
- type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema;
215
- type ArchivistDeleteQuery = Query<{
216
- hashes: Hash[];
217
- schema: ArchivistDeleteQuerySchema;
218
- }>;
219
-
220
- declare const ArchivistGetQuerySchema: "network.xyo.query.archivist.get";
221
- type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema;
222
- type ArchivistGetQuery = Query<{
223
- hashes: Hash[];
224
- schema: ArchivistGetQuerySchema;
225
- }>;
226
-
227
- declare const ArchivistInsertQuerySchema: "network.xyo.query.archivist.insert";
228
- type ArchivistInsertQuerySchema = typeof ArchivistInsertQuerySchema;
229
- type ArchivistInsertQuery = Query<{
230
- schema: ArchivistInsertQuerySchema;
231
- }>;
232
-
233
- declare const ArchivistNextQuerySchema: "network.xyo.query.archivist.next";
234
- type ArchivistNextQuerySchema = typeof ArchivistNextQuerySchema;
235
- type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
236
-
237
- type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
238
- type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
239
-
240
- declare const isArchivistInstance: _xylabs_object.TypeCheck<ArchivistInstance<_xylabs_object.BaseParamsFields & {
241
- account?: _xyo_network_account_model.AccountInstance | "random";
242
- addToResolvers?: boolean;
243
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
244
- allowNameResolution?: boolean;
245
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
246
- ephemeralQueryAccountEnabled?: boolean;
247
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
248
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
249
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
250
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>;
251
- declare const isArchivistModule: _xyo_network_module_model.ModuleTypeCheck<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
252
- account?: _xyo_network_account_model.AccountInstance | "random";
253
- addToResolvers?: boolean;
254
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
255
- allowNameResolution?: boolean;
256
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
257
- ephemeralQueryAccountEnabled?: boolean;
258
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
259
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
260
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
261
- }, ArchivistModuleEventData>>;
262
- declare const asArchivistModule: {
263
- <TType extends ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
264
- account?: _xyo_network_account_model.AccountInstance | "random";
265
- addToResolvers?: boolean;
266
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
267
- allowNameResolution?: boolean;
268
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
269
- ephemeralQueryAccountEnabled?: boolean;
270
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
271
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
272
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
273
- }, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
274
- <TType extends ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
275
- account?: _xyo_network_account_model.AccountInstance | "random";
276
- addToResolvers?: boolean;
277
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
278
- allowNameResolution?: boolean;
279
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
280
- ephemeralQueryAccountEnabled?: boolean;
281
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
282
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
283
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
284
- }, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
285
- account?: _xyo_network_account_model.AccountInstance | "random";
286
- addToResolvers?: boolean;
287
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
288
- allowNameResolution?: boolean;
289
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
290
- ephemeralQueryAccountEnabled?: boolean;
291
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
292
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
293
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
294
- }, ArchivistModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
295
- };
296
- declare const asArchivistInstance: {
297
- <TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & {
298
- account?: _xyo_network_account_model.AccountInstance | "random";
299
- addToResolvers?: boolean;
300
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
301
- allowNameResolution?: boolean;
302
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
303
- ephemeralQueryAccountEnabled?: boolean;
304
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
305
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
306
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
307
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
308
- <TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & {
309
- account?: _xyo_network_account_model.AccountInstance | "random";
310
- addToResolvers?: boolean;
311
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
312
- allowNameResolution?: boolean;
313
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
314
- ephemeralQueryAccountEnabled?: boolean;
315
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
316
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
317
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
318
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistInstance<_xylabs_object.BaseParamsFields & {
319
- account?: _xyo_network_account_model.AccountInstance | "random";
320
- addToResolvers?: boolean;
321
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
322
- allowNameResolution?: boolean;
323
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
324
- ephemeralQueryAccountEnabled?: boolean;
325
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
326
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
327
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
328
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>, config?: _xylabs_object.TypeCheckConfig): TType;
329
- };
330
- declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
331
- account?: _xyo_network_account_model.AccountInstance | "random";
332
- addToResolvers?: boolean;
333
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
334
- allowNameResolution?: boolean;
335
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
336
- ephemeralQueryAccountEnabled?: boolean;
337
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
338
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
339
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
340
- }, ArchivistModuleEventData>) => R) => R | undefined;
341
- declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<_xylabs_object.BaseParamsFields & {
342
- account?: _xyo_network_account_model.AccountInstance | "random";
343
- addToResolvers?: boolean;
344
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
345
- allowNameResolution?: boolean;
346
- config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
347
- ephemeralQueryAccountEnabled?: boolean;
348
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
349
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
350
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
351
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>) => R) => R | undefined;
352
-
353
- export { type AllArchivist, type AllArchivistFunctions, type Archivist, type ArchivistAllQuery, ArchivistAllQuerySchema, type ArchivistClearQuery, ArchivistClearQuerySchema, type ArchivistCommitQuery, ArchivistCommitQuerySchema, type ArchivistConfig, ArchivistConfigSchema, type ArchivistDeleteQuery, ArchivistDeleteQuerySchema, type ArchivistGetQuery, ArchivistGetQuerySchema, type ArchivistInsertQuery, ArchivistInsertQuerySchema, type ArchivistInstance, type ArchivistLabels, type ArchivistModuleEventData, type ArchivistModuleInstance, type ArchivistModuleQueries, type ArchivistNextOptions, type ArchivistNextQuery, ArchivistNextQuerySchema, type ArchivistParamFields, type ArchivistParams, type ArchivistParentInstances, type ArchivistParents, type ArchivistQueries, type ArchivistRawQueryFunctions, type ArchivistStorage, type AttachableArchivistInstance, type AttachableArchivistInstanceTypeCheck, type FullArchivist, type HydratedBoundWitness, type IdentityFunction, type IndexDescription, type IndexDirection, IndexSeparator, IsAttachableArchivistInstanceFactory, type NextOptions, type ReadArchivist, type ReadArchivistFunctions, type ReadWriteArchivist, type StashArchivist, type StashArchivistFunctions, type WriteArchivist, type WriteArchivistFunctions, asArchivistInstance, asArchivistModule, asAttachableArchivistInstance, buildStandardIndexName, getBoundWitness, getTypedBoundWitness, hydrateBoundWitness, hydrateTypedBoundWitness, isArchivistInstance, isArchivistModule, isAttachableArchivistInstance, requiredAttachableArchivistInstanceFunctions, tryGetTypedBoundWitness, tryHydrateTypedBoundWitness, withArchivistInstance, withArchivistModule };
1
+ export * from './ArchivistFunctions.ts';
2
+ export * from './attachable/index.ts';
3
+ export * from './Config.ts';
4
+ export * from './EventData.ts';
5
+ export * from './IndexDescription.ts';
6
+ export * from './Instance.ts';
7
+ export * from './Labels.ts';
8
+ export * from './lib/index.ts';
9
+ export * from './ModuleInstance.ts';
10
+ export * from './NextOptions.ts';
11
+ export * from './Params.ts';
12
+ export * from './PayloadArchivist.ts';
13
+ export * from './Queries/index.ts';
14
+ export * from './RawQueryFunctions.ts';
15
+ export * from './typeChecks.ts';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { BoundWitness } from '@xyo-network/boundwitness-model';
2
+ import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
3
+ export type HydratedBoundWitness<T extends BoundWitness = BoundWitness, P extends Payload = Payload> = [WithStorageMeta<T>, WithStorageMeta<P>[]];
4
+ //# sourceMappingURL=HydratedBoundWitness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HydratedBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/lib/HydratedBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE1E,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type IdentityFunction<T> = (value: unknown) => value is T;
2
+ //# sourceMappingURL=IdentityFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityFunction.d.ts","sourceRoot":"","sources":["../../../src/lib/IdentityFunction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { BoundWitness } from '@xyo-network/boundwitness-model';
3
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
4
+ import type { ReadArchivist } from '../PayloadArchivist.ts';
5
+ import type { IdentityFunction } from './IdentityFunction.ts';
6
+ export declare const tryGetTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<WithStorageMeta<T> | undefined>;
7
+ export declare const getTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<WithStorageMeta<T>>;
8
+ export declare const getBoundWitness: (archivist: ReadArchivist, hash: Hash) => Promise<WithStorageMeta<BoundWitness>>;
9
+ //# sourceMappingURL=getBoundWitness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/lib/getBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,eAAO,MAAM,uBAAuB,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACxG,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAGxF,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACrG,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAG5E,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,WAAW,aAAa,EAAE,MAAM,IAAI,KAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAE3G,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { BoundWitness } from '@xyo-network/boundwitness-model';
3
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
4
+ import type { ReadArchivist } from '../PayloadArchivist.ts';
5
+ import type { HydratedBoundWitness } from './HydratedBoundWitness.ts';
6
+ import type { IdentityFunction } from './IdentityFunction.ts';
7
+ export declare const tryHydrateTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<HydratedBoundWitness<T> | undefined>;
8
+ export declare const hydrateTypedBoundWitness: <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>, identity: IdentityFunction<WithStorageMeta<T>>) => Promise<HydratedBoundWitness<T>>;
9
+ export declare const hydrateBoundWitness: (archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<BoundWitness>) => Promise<HydratedBoundWitness<BoundWitness>>;
10
+ //# sourceMappingURL=hydrateBoundWitness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hydrateBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/lib/hydrateBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,eAAO,MAAM,2BAA2B,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,UAAU,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,EACrI,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,SAAS,CAG7F,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,UAAU,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,EAClI,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAGjF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC9B,WAAW,aAAa,EACxB,UAAU,IAAI,GAAG,eAAe,CAAC,YAAY,CAAC,KAC7C,OAAO,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAE5C,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './getBoundWitness.ts';
2
+ export * from './hydrateBoundWitness.ts';
3
+ export * from './HydratedBoundWitness.ts';
4
+ export * from './IdentityFunction.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,115 @@
1
+ import type { ArchivistInstance } from './Instance.ts';
2
+ import type { ArchivistModuleInstance } from './ModuleInstance.ts';
3
+ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
4
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
5
+ addToResolvers?: boolean;
6
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
7
+ allowNameResolution?: boolean;
8
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
9
+ ephemeralQueryAccountEnabled?: boolean;
10
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
11
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
12
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
13
+ } & import("./Params.ts").ArchivistParamFields & object, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
14
+ export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
15
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
16
+ addToResolvers?: boolean;
17
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
18
+ allowNameResolution?: boolean;
19
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
20
+ ephemeralQueryAccountEnabled?: boolean;
21
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
22
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
23
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
24
+ }, import("./EventData.ts").ArchivistModuleEventData>>;
25
+ export declare const asArchivistModule: {
26
+ <TType extends ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
27
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
28
+ addToResolvers?: boolean;
29
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
30
+ allowNameResolution?: boolean;
31
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
32
+ ephemeralQueryAccountEnabled?: boolean;
33
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
34
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
35
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
36
+ }, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
37
+ <TType extends ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
38
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
39
+ addToResolvers?: boolean;
40
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
41
+ allowNameResolution?: boolean;
42
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
43
+ ephemeralQueryAccountEnabled?: boolean;
44
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
45
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
46
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
47
+ }, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
48
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
49
+ addToResolvers?: boolean;
50
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
51
+ allowNameResolution?: boolean;
52
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
53
+ ephemeralQueryAccountEnabled?: boolean;
54
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
55
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
56
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
57
+ }, import("./EventData.ts").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
58
+ };
59
+ export declare const asArchivistInstance: {
60
+ <TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
61
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
62
+ addToResolvers?: boolean;
63
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
64
+ allowNameResolution?: boolean;
65
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
66
+ ephemeralQueryAccountEnabled?: boolean;
67
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
68
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
69
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
70
+ } & import("./Params.ts").ArchivistParamFields & object, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
71
+ <TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
72
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
73
+ addToResolvers?: boolean;
74
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
75
+ allowNameResolution?: boolean;
76
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
77
+ ephemeralQueryAccountEnabled?: boolean;
78
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
79
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
80
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
81
+ } & import("./Params.ts").ArchivistParamFields & object, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
82
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
83
+ addToResolvers?: boolean;
84
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
85
+ allowNameResolution?: boolean;
86
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
87
+ ephemeralQueryAccountEnabled?: boolean;
88
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
89
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
90
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
91
+ } & import("./Params.ts").ArchivistParamFields & object, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
92
+ };
93
+ export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
94
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
95
+ addToResolvers?: boolean;
96
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
97
+ allowNameResolution?: boolean;
98
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
99
+ ephemeralQueryAccountEnabled?: boolean;
100
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
101
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
102
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
103
+ }, import("./EventData.ts").ArchivistModuleEventData>) => R) => R | undefined;
104
+ export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
105
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
106
+ addToResolvers?: boolean;
107
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
108
+ allowNameResolution?: boolean;
109
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>;
110
+ ephemeralQueryAccountEnabled?: boolean;
111
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
112
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
113
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
114
+ } & import("./Params.ts").ArchivistParamFields & object, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>) => R) => R | undefined;
115
+ //# sourceMappingURL=typeChecks.d.ts.map
@@ -0,0 +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,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,mBAAmB;;;;;;;;;;0JAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;sDAAmF,CAAA;AAEjH,eAAO,MAAM,iBAAiB;;;;;;;;;;;yEANE,iBAAiB,iCAClC,gBAAoB;;;;;;;;;;;yEAEiB,iBAAiB;;;;;;;;;;4EAC9B,gBAAoB;CAEe,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;6KAPA,iBAAiB,iCAClC,gBAAoB;;;;;;;;;;;6KAEiB,iBAAiB;;;;;;;;;;gLAC9B,gBAAoB;CAGmB,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;6EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;iLAA0C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-model",
3
- "version": "3.9.18",
3
+ "version": "3.9.20",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,16 +35,16 @@
35
35
  "@xylabs/object": "^4.5.1",
36
36
  "@xylabs/promise": "^4.5.1",
37
37
  "@xylabs/typeof": "^4.5.1",
38
- "@xyo-network/account-model": "^3.9.18",
39
- "@xyo-network/boundwitness-model": "^3.9.18",
40
- "@xyo-network/module-events": "^3.9.18",
41
- "@xyo-network/module-model": "^3.9.18",
42
- "@xyo-network/payload-model": "^3.9.18"
38
+ "@xyo-network/account-model": "^3.9.20",
39
+ "@xyo-network/boundwitness-model": "^3.9.20",
40
+ "@xyo-network/module-events": "^3.9.20",
41
+ "@xyo-network/module-model": "^3.9.20",
42
+ "@xyo-network/payload-model": "^3.9.20"
43
43
  },
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "^5.0.25",
46
- "@xylabs/tsconfig": "^5.0.25",
47
- "typescript": "^5.7.3"
45
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
46
+ "@xylabs/tsconfig": "^5.0.39",
47
+ "typescript": "^5.8.2"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"