@xyo-network/archivist-model 5.2.18 → 5.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/neutral/ArchivistDriver.d.ts +1 -1
  2. package/dist/neutral/ArchivistDriver.d.ts.map +1 -1
  3. package/dist/neutral/ArchivistFunctions.d.ts +1 -1
  4. package/dist/neutral/ArchivistFunctions.d.ts.map +1 -1
  5. package/dist/neutral/ArchivistSnapshot.d.ts +1 -1
  6. package/dist/neutral/ArchivistSnapshot.d.ts.map +1 -1
  7. package/dist/neutral/Config.d.ts +1 -1
  8. package/dist/neutral/EventModels/Cleared.d.ts +1 -1
  9. package/dist/neutral/EventModels/Deleted.d.ts +1 -2
  10. package/dist/neutral/EventModels/Deleted.d.ts.map +1 -1
  11. package/dist/neutral/EventModels/Inserted.d.ts +1 -1
  12. package/dist/neutral/Instance.d.ts +1 -1
  13. package/dist/neutral/Module.d.ts +1 -1
  14. package/dist/neutral/Module.d.ts.map +1 -1
  15. package/dist/neutral/NextOptions.d.ts +1 -1
  16. package/dist/neutral/NextOptions.d.ts.map +1 -1
  17. package/dist/neutral/Params.d.ts +1 -2
  18. package/dist/neutral/Params.d.ts.map +1 -1
  19. package/dist/neutral/PayloadArchivist.d.ts +1 -1
  20. package/dist/neutral/PayloadArchivist.d.ts.map +1 -1
  21. package/dist/neutral/Queries/Delete.d.ts +1 -1
  22. package/dist/neutral/Queries/Delete.d.ts.map +1 -1
  23. package/dist/neutral/Queries/Get.d.ts +1 -1
  24. package/dist/neutral/Queries/Get.d.ts.map +1 -1
  25. package/dist/neutral/RawQueryFunctions.d.ts +1 -2
  26. package/dist/neutral/RawQueryFunctions.d.ts.map +1 -1
  27. package/dist/neutral/attachable/AttachableInstance.d.ts +2 -2
  28. package/dist/neutral/attachable/asAttachableInstance.d.ts +1 -1
  29. package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -2
  30. package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -1
  31. package/dist/neutral/index.mjs +6 -7
  32. package/dist/neutral/index.mjs.map +1 -1
  33. package/dist/neutral/lib/getBoundWitness.d.ts +1 -2
  34. package/dist/neutral/lib/getBoundWitness.d.ts.map +1 -1
  35. package/dist/neutral/lib/hydrateBoundWitness.d.ts +1 -2
  36. package/dist/neutral/lib/hydrateBoundWitness.d.ts.map +1 -1
  37. package/dist/neutral/typeChecks.d.ts +3 -3
  38. package/package.json +8 -14
  39. package/src/ArchivistDriver.ts +1 -1
  40. package/src/ArchivistFunctions.ts +1 -1
  41. package/src/ArchivistSnapshot.ts +1 -1
  42. package/src/Config.ts +1 -1
  43. package/src/EventModels/Cleared.ts +1 -1
  44. package/src/EventModels/Deleted.ts +1 -2
  45. package/src/EventModels/Inserted.ts +1 -1
  46. package/src/Instance.ts +1 -1
  47. package/src/Module.ts +1 -1
  48. package/src/NextOptions.ts +1 -1
  49. package/src/Params.ts +1 -2
  50. package/src/PayloadArchivist.ts +1 -1
  51. package/src/Queries/Delete.ts +1 -1
  52. package/src/Queries/Get.ts +1 -1
  53. package/src/RawQueryFunctions.ts +1 -2
  54. package/src/attachable/AttachableInstance.ts +2 -2
  55. package/src/attachable/asAttachableInstance.ts +1 -1
  56. package/src/attachable/isAttachableInstance.ts +2 -3
  57. package/src/lib/getBoundWitness.ts +2 -3
  58. package/src/lib/hydrateBoundWitness.ts +2 -4
  59. package/src/typeChecks.ts +2 -2
@@ -1,4 +1,4 @@
1
- import type { Promisable } from '@xylabs/promise';
1
+ import type { Promisable } from '@xylabs/sdk-js';
2
2
  import type { NextOptions } from './NextOptions.ts';
3
3
  export interface ArchivistDriver<TId, TIn, TOut extends TIn> {
4
4
  all(): Promisable<TOut[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"ArchivistDriver.d.ts","sourceRoot":"","sources":["../../src/ArchivistDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE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,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAChD"}
@@ -1,4 +1,4 @@
1
- import type { Promisable, PromisableArray } from '@xylabs/promise';
1
+ import type { Promisable, PromisableArray } from '@xylabs/sdk-js';
2
2
  import type { NextOptions } from './NextOptions.ts';
3
3
  export interface AllArchivistFunctions<TReadResponse, TSnapshotResponse> {
4
4
  /** @deprecated use next or snapshot instead */
@@ -1 +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,EAAE,iBAAiB;IACrE,+CAA+C;IAC/C,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAA;IACrC,QAAQ,IAAI,eAAe,CAAC,iBAAiB,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,sBAAsB,CAAC,aAAa,EAAE,GAAG,GAAG,MAAM,EAAE,OAAO,GAAG,GAAG;IAChF,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;IAC/C,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;CACrE;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,aAAa,CAAC,CAAA;IAClD,MAAM,CAAC,IAAI,EAAE,MAAM,EA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1
- import type { Hash } from '@xylabs/hex';
1
+ import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { Payload, PayloadHashMap } from '@xyo-network/payload-model';
3
3
  export declare const ArchivistSnapshotPayloadSchema: "network.xyo.archivist.snapshot";
4
4
  export type ArchivistSnapshotPayloadSchema = typeof ArchivistSnapshotPayloadSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"ArchivistSnapshot.d.ts","sourceRoot":"","sources":["../../src/ArchivistSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAEzE,eAAO,MAAM,8BAA8B,EAAG,gCAAyC,CAAA;AACvF,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAA;AAElF,MAAM,MAAM,wBAAwB,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,EAAE,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,IAChH,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,8BAA8B,CAAC,CAAA"}
1
+ {"version":3,"file":"ArchivistSnapshot.d.ts","sourceRoot":"","sources":["../../src/ArchivistSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAEzE,eAAO,MAAM,8BAA8B,EAAG,gCAAyC,CAAA;AACvF,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAA;AAElF,MAAM,MAAM,wBAAwB,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,EAAE,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,IAChH,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,8BAA8B,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object';
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js';
2
2
  import type { ModuleConfig, ModuleIdentifier } from '@xyo-network/module-model';
3
3
  import type { Payload } from '@xyo-network/payload-model';
4
4
  import type { IndexDescription } from './IndexDescription.ts';
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  export type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>;
4
4
  export interface ClearedEventData<T extends Module = Module> extends EventData {
@@ -1,5 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
2
- import type { Hash } from '@xylabs/hex';
1
+ import type { EventData, Hash } from '@xylabs/sdk-js';
3
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
4
3
  import type { Payload } from '@xyo-network/payload-model';
5
4
  export type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
@@ -1 +1 @@
1
- {"version":3,"file":"Deleted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Deleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACvE,CAAC,EAAE;IAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAC3C,CAAA;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
1
+ {"version":3,"file":"Deleted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Deleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACvE,CAAC,EAAE;IAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAC3C,CAAA;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
4
4
  export type InsertedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
@@ -1,4 +1,4 @@
1
- import type { EventEmitter } from '@xylabs/events';
1
+ import type { EventEmitter } from '@xylabs/sdk-js';
2
2
  import type { ModuleInstance } from '@xyo-network/module-model';
3
3
  import type { Payload } from '@xyo-network/payload-model';
4
4
  import type { ArchivistModuleEventData } from './EventData.ts';
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
1
+ import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { ModuleQueryFunctions } from '@xyo-network/module-model';
3
3
  import type { Payload, Sequence } from '@xyo-network/payload-model';
4
4
  import type { Archivist } from './PayloadArchivist.ts';
@@ -1 +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,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,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,SAAS,MAAM,GAAG,IAAI,EACzB,OAAO,SAAS,MAAM,GAAG,QAAQ,CACjC,SAAQ,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EACtE,oBAAoB;CAAG"}
1
+ {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,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,SAAS,MAAM,GAAG,IAAI,EACzB,OAAO,SAAS,MAAM,GAAG,QAAQ,CACjC,SAAQ,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EACtE,oBAAoB;CAAG"}
@@ -1,4 +1,4 @@
1
- import type { Hex } from '@xylabs/hex';
1
+ import type { Hex } from '@xylabs/sdk-js';
2
2
  import type { Sequence } from '@xyo-network/payload-model';
3
3
  export interface NextOptions<TSequence = Hex> {
4
4
  cursor?: TSequence;
@@ -1 +1 @@
1
- {"version":3,"file":"NextOptions.d.ts","sourceRoot":"","sources":["../../src/NextOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE1D,MAAM,WAAW,WAAW,CAAC,SAAS,GAAG,GAAG;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,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,QAAQ,CAAC;CAAG"}
1
+ {"version":3,"file":"NextOptions.d.ts","sourceRoot":"","sources":["../../src/NextOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE1D,MAAM,WAAW,WAAW,CAAC,SAAS,GAAG,GAAG;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,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,QAAQ,CAAC;CAAG"}
@@ -1,5 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
1
+ import type { Hash, Promisable } from '@xylabs/sdk-js';
3
2
  import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
4
3
  import type { Payload } from '@xyo-network/payload-model';
5
4
  import type { ArchivistConfig } from './Config.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.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,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,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,kBAAkB,CAAC,IAAI,SAAS,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,QAAQ,SAAS,MAAM,GAAG,IAAI;IAC9G,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC7C,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,oBAAoB,CAAC,MAAM,GAAG,OAAO,EAAE,UAAU,GAAG,MAAM;IACzE,SAAS,CAAC,EAAE,CAAC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BAAoB,CAAC,MAAM,GAAG,OAAO,EAAE,UAAU,GAAG,MAAM;IACzE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC,UAAU,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,OAAO,CAAC,EAAE,wBAAwB,CAAA;IAClC,MAAM,CAAC,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,WAAW,eAAe,CAC9B,OAAO,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC,CACnF,SAAQ,YAAY,CAAC,OAAO,CAAC,EAAE,oBAAoB;CAAG"}
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
1
+ import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { Payload, PayloadHashMap, Sequence, WithStorageMeta } from '@xyo-network/payload-model';
3
3
  import type { AllArchivistFunctions, ReadArchivistFunctions, StashArchivistFunctions, WriteArchivistFunctions } from './ArchivistFunctions.ts';
4
4
  export interface AllArchivist<TReadResponse extends Payload = Payload, TId extends string = Hash> extends AllArchivistFunctions<WithStorageMeta<TReadResponse>, PayloadHashMap<WithStorageMeta<TReadResponse>, TId>> {
@@ -1 +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,EACV,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EACnD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EACV,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,EAChG,MAAM,yBAAyB,CAAA;AAEhC,MAAM,WAAW,YAAY,CAC3B,aAAa,SAAS,OAAO,GAAG,OAAO,EACvC,GAAG,SAAS,MAAM,GAAG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c,SAAS,OAAO,GAAG,OAAO,EACxC,MAAM,SAAS,OAAO,GAAG,aAAa,GAAG,OAAO,EAChD,GAAG,SAAS,MAAM,GAAG,IAAI,EACzB,OAAO,SAAS,MAAM,GAAG,QAAQ,CACjC,SAAQ,aAAa,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EACnE,YAAY,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC,EACjD,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAC5F,uBAAuB,CAAC,cAAc,CAAC;CAAG"}
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
1
+ import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { Query } from '@xyo-network/payload-model';
3
3
  export declare const ArchivistDeleteQuerySchema: "network.xyo.query.archivist.delete";
4
4
  export type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema;
@@ -1 +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"}
1
+ {"version":3,"file":"Delete.d.ts","sourceRoot":"","sources":["../../../src/Queries/Delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,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"}
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
1
+ import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { Query } from '@xyo-network/payload-model';
3
3
  export declare const ArchivistGetQuerySchema: "network.xyo.query.archivist.get";
4
4
  export type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema;
@@ -1 +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"}
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../src/Queries/Get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,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"}
@@ -1,5 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
1
+ import type { Hash, Promisable } from '@xylabs/sdk-js';
3
2
  import type { AccountInstance } from '@xyo-network/account-model';
4
3
  import type { ModuleQueryResult } from '@xyo-network/module-model';
5
4
  import type { Payload } from '@xyo-network/payload-model';
@@ -1 +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,iB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CAAC,CAAA;IAC1F,SAAS,CAAC,OAAO,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACpG"}
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object';
2
- import { IsObjectFactory } from '@xylabs/object';
1
+ import type { TypeCheck } from '@xylabs/sdk-js';
2
+ import { IsObjectFactory } from '@xylabs/sdk-js';
3
3
  import type { AttachableModuleInstance } from '@xyo-network/module-model';
4
4
  import type { Payload } from '@xyo-network/payload-model';
5
5
  import type { ArchivistModuleEventData } from '../EventData.ts';
@@ -1,2 +1,2 @@
1
- export declare const asAttachableArchivistInstance: import("@xylabs/object").AsTypeFunction<import("./AttachableInstance.ts").AttachableArchivistInstance<import("../Params.ts").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").ArchivistConfig>>, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
1
+ export declare const asAttachableArchivistInstance: import("@xylabs/sdk-js").AsTypeFunction<import("./AttachableInstance.ts").AttachableArchivistInstance<import("../Params.ts").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").ArchivistConfig>>, import("../EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
2
2
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1,5 +1,4 @@
1
- import type { TypeCheck } from '@xylabs/object';
2
- import type { ObjectTypeShape } from '@xylabs/typeof';
1
+ import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js';
3
2
  import type { AttachableArchivistInstance } from './AttachableInstance.ts';
4
3
  export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
5
4
  export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
@@ -1 +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
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKhE,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"}
@@ -5,14 +5,14 @@ var ArchivistSnapshotPayloadSchema = "network.xyo.archivist.snapshot";
5
5
  var ArchivistStatsPayloadSchema = "network.xyo.archivist.stats";
6
6
 
7
7
  // src/attachable/asAttachableInstance.ts
8
- import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
8
+ import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk-js";
9
9
 
10
10
  // src/attachable/isAttachableInstance.ts
11
- import { IsObjectFactory } from "@xylabs/object";
11
+ import { IsObjectFactory } from "@xylabs/sdk-js";
12
12
  import { isAttachableModuleInstance } from "@xyo-network/module-model";
13
13
 
14
14
  // src/typeChecks.ts
15
- import { AsObjectFactory } from "@xylabs/object";
15
+ import { AsObjectFactory } from "@xylabs/sdk-js";
16
16
  import {
17
17
  IsInstanceFactory,
18
18
  IsModuleFactory,
@@ -64,7 +64,7 @@ var isAttachableArchivistInstance = factory.create(requiredAttachableArchivistIn
64
64
  var asAttachableArchivistInstance = AsObjectFactory2.create(isAttachableArchivistInstance);
65
65
 
66
66
  // src/attachable/AttachableInstance.ts
67
- import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/object";
67
+ import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/sdk-js";
68
68
  var IsAttachableArchivistInstanceFactory = class extends IsObjectFactory2 {
69
69
  };
70
70
 
@@ -81,7 +81,7 @@ var buildStandardIndexName = (index) => {
81
81
  };
82
82
 
83
83
  // src/lib/getBoundWitness.ts
84
- import { assertEx } from "@xylabs/assert";
84
+ import { assertEx } from "@xylabs/sdk-js";
85
85
  import { isBoundWitness } from "@xyo-network/boundwitness-model";
86
86
  import { isStorageMeta } from "@xyo-network/payload-model";
87
87
  var tryGetTypedBoundWitnessWithStorageMeta = async (archivist, hash, identity) => {
@@ -97,8 +97,7 @@ var getBoundWitnessWithStorageMeta = (archivist, hash) => {
97
97
  };
98
98
 
99
99
  // src/lib/hydrateBoundWitness.ts
100
- import { exists } from "@xylabs/exists";
101
- import { isHash } from "@xylabs/hex";
100
+ import { exists, isHash } from "@xylabs/sdk-js";
102
101
  import { isBoundWitness as isBoundWitness2 } from "@xyo-network/boundwitness-model";
103
102
  import { isStorageMeta as isStorageMeta2 } from "@xyo-network/payload-model";
104
103
  var tryHydrateTypedBoundWitness = async (archivist, hashOrBw, identity) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ArchivistSnapshot.ts","../../src/ArchivistStats.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/Queries/Snapshot.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts","../../src/lib/getBoundWitness.ts","../../src/lib/hydrateBoundWitness.ts"],"sourcesContent":["import type { Hash } from '@xylabs/hex'\nimport type { Payload, PayloadHashMap } from '@xyo-network/payload-model'\n\nexport const ArchivistSnapshotPayloadSchema = 'network.xyo.archivist.snapshot' as const\nexport type ArchivistSnapshotPayloadSchema = typeof ArchivistSnapshotPayloadSchema\n\nexport type ArchivistSnapshotPayload<TPayload extends Payload = Payload, TId extends string | number | symbol = Hash>\n = Payload<PayloadHashMap<TPayload, TId>, ArchivistSnapshotPayloadSchema>\n","import type { Payload } from '@xyo-network/payload-model'\n\nexport const ArchivistStatsPayloadSchema = 'network.xyo.archivist.stats' as const\nexport type ArchivistStatsPayloadSchema = typeof ArchivistStatsPayloadSchema\n\nexport type ArchivistStatsPayload\n = Payload<{ payloadCount: number }, ArchivistStatsPayloadSchema>\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { ObjectTypeShape } from '@xylabs/typeof'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport type { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import type { TypeCheck } from '@xylabs/object'\nimport { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { ArchivistInstance } from './Instance.ts'\nimport type { ArchivistModuleInstance } from './ModuleInstance.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance: TypeCheck<ArchivistInstance> = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule: TypeCheck<ArchivistModuleInstance> = new IsModuleFactory<ArchivistModuleInstance>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistAllQuerySchema = 'network.xyo.query.archivist.all' as const\nexport type ArchivistAllQuerySchema = typeof ArchivistAllQuerySchema\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear' as const\nexport type ArchivistClearQuerySchema = typeof ArchivistClearQuerySchema\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit' as const\nexport type ArchivistCommitQuerySchema = typeof ArchivistCommitQuerySchema\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete' as const\nexport type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import type { Hash } from '@xylabs/hex'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistGetQuerySchema = 'network.xyo.query.archivist.get' as const\nexport type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert' as const\nexport type ArchivistInsertQuerySchema = typeof ArchivistInsertQuerySchema\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nimport type { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport const ArchivistNextQuerySchema = 'network.xyo.query.archivist.next' as const\nexport type ArchivistNextQuerySchema = typeof ArchivistNextQuerySchema\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistSnapshotQuerySchema = 'network.xyo.query.archivist.snapshot' as const\nexport type ArchivistSnapshotQuerySchema = typeof ArchivistSnapshotQuerySchema\n\nexport type ArchivistSnapshotQuery = Query<{\n schema: ArchivistSnapshotQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { ArchivistModuleEventData } from '../EventData.ts'\nimport type { ArchivistInstance } from '../Instance.ts'\nimport type { ArchivistModuleInstance } from '../ModuleInstance.ts'\nimport type { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModuleInstance<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig, ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: ModuleIdentifier[]\n read?: ModuleIdentifier[]\n write?: ModuleIdentifier[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport interface ArchivistGetCache {\n enabled?: boolean\n maxEntries?: number\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field caching configuration for get calls */\n getCache?: ArchivistGetCache\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key: Record<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n","import { assertEx } from '@xylabs/assert'\nimport type { Hash } from '@xylabs/hex'\nimport type { IdentityFunction } from '@xylabs/typeof'\nimport { type BoundWitness, isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'\n\nimport type { ReadArchivist } from '../PayloadArchivist.ts'\n\nexport const tryGetTypedBoundWitnessWithStorageMeta = async <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<WithStorageMeta<T> | undefined> => {\n const payload = (await archivist.get([hash])).at(0)\n return identity(payload) ? payload : undefined\n}\n\nexport const getTypedBoundWitnessWithStorageMeta = async <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<WithStorageMeta<T>> => {\n const payload = assertEx((await archivist.get([hash])).at(0), () => `failed to locate bound witness: ${hash}`)\n return assertEx(identity(payload) ? payload : undefined, () => `located payload failed identity check: ${hash}`)\n}\n\nexport const getBoundWitnessWithStorageMeta = (archivist: ReadArchivist, hash: Hash): Promise<WithStorageMeta<BoundWitness>> => {\n return getTypedBoundWitnessWithStorageMeta<BoundWitness>(archivist, hash, x => isStorageMeta(x) && isBoundWitness(x))\n}\n","import { exists } from '@xylabs/exists'\nimport type { Hash } from '@xylabs/hex'\nimport { isHash } from '@xylabs/hex'\nimport type { IdentityFunction } from '@xylabs/typeof'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'\n\nimport type { ReadArchivist } from '../PayloadArchivist.ts'\nimport { getTypedBoundWitnessWithStorageMeta, tryGetTypedBoundWitnessWithStorageMeta } from './getBoundWitness.ts'\nimport type { HydratedBoundWitness } from './HydratedBoundWitness.ts'\n\nexport const tryHydrateTypedBoundWitness = async <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<HydratedBoundWitness<T> | undefined> => {\n const bw = isHash(hashOrBw) ? await tryGetTypedBoundWitnessWithStorageMeta(archivist, hashOrBw, identity) : hashOrBw\n return bw ? [bw, (await archivist.get(bw?.payload_hashes as Hash[])).filter(exists)] : undefined\n}\n\nexport const hydrateTypedBoundWitness = async <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<HydratedBoundWitness<T>> => {\n const bw = isHash(hashOrBw) ? await getTypedBoundWitnessWithStorageMeta(archivist, hashOrBw, identity) : hashOrBw\n const payloads = (await archivist.get(bw?.payload_hashes as Hash[])).filter(exists)\n if (payloads.length !== bw.payload_hashes.length) {\n throw new Error(`missing payloads for ${bw._hash}`)\n }\n return [bw, payloads]\n}\n\nexport const hydrateBoundWitness = (\n archivist: ReadArchivist,\n hashOrBw: Hash | WithStorageMeta<BoundWitness>,\n): Promise<HydratedBoundWitness<BoundWitness>> => {\n const idFunction: IdentityFunction<WithStorageMeta<BoundWitness>> = x => isBoundWitness(x) && isStorageMeta(x)\n return hydrateTypedBoundWitness<BoundWitness>(archivist, hashOrBw, idFunction)\n}\n"],"mappings":";AAGO,IAAM,iCAAiC;;;ACDvC,IAAM,8BAA8B;;;ACF3C,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAEhC,SAAS,kCAAkC;;;ACF3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACFA,IAAM,0BAA0B;;;ACAhC,IAAM,4BAA4B;;;ACAlC,IAAM,6BAA6B;;;ACCnC,IAAM,6BAA6B;;;ACAnC,IAAM,0BAA0B;;;ACDhC,IAAM,6BAA6B;;;ACEnC,IAAM,2BAA2B;;;ACFjC,IAAM,+BAA+B;;;ARQrC,IAAM,sBAAoD,IAAI,kBAAqC,EAAE,OAAO,EAAE,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MAAM,0CAA0C,IAAI,EAAE;AACjH;AAEO,IAAM,iCAAiC,CAAC,WAA0B,SAAuD;AAC9H,SAAO,oCAAkD,WAAW,MAAM,OAAK,cAAc,CAAC,KAAK,eAAe,CAAC,CAAC;AACtH;;;ACtBA,SAAS,cAAc;AAEvB,SAAS,cAAc;AAGvB,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,iBAAAC,sBAA2C;AAM7C,IAAM,8BAA8B,OAA+B,WAA0B,UAClG,aAAiG;AACjG,QAAM,KAAK,OAAO,QAAQ,IAAI,MAAM,uCAAuC,WAAW,UAAU,QAAQ,IAAI;AAC5G,SAAO,KAAK,CAAC,KAAK,MAAM,UAAU,IAAI,IAAI,cAAwB,GAAG,OAAO,MAAM,CAAC,IAAI;AACzF;AAEO,IAAM,2BAA2B,OAA+B,WAA0B,UAC/F,aAAqF;AACrF,QAAM,KAAK,OAAO,QAAQ,IAAI,MAAM,oCAAoC,WAAW,UAAU,QAAQ,IAAI;AACzG,QAAM,YAAY,MAAM,UAAU,IAAI,IAAI,cAAwB,GAAG,OAAO,MAAM;AAClF,MAAI,SAAS,WAAW,GAAG,eAAe,QAAQ;AAChD,UAAM,IAAI,MAAM,wBAAwB,GAAG,KAAK,EAAE;AAAA,EACpD;AACA,SAAO,CAAC,IAAI,QAAQ;AACtB;AAEO,IAAM,sBAAsB,CACjC,WACA,aACgD;AAChD,QAAM,aAA8D,OAAKC,gBAAe,CAAC,KAAKC,eAAc,CAAC;AAC7G,SAAO,yBAAuC,WAAW,UAAU,UAAU;AAC/E;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory","isBoundWitness","isStorageMeta","isBoundWitness","isStorageMeta"]}
1
+ {"version":3,"sources":["../../src/ArchivistSnapshot.ts","../../src/ArchivistStats.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/Queries/Snapshot.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts","../../src/lib/getBoundWitness.ts","../../src/lib/hydrateBoundWitness.ts"],"sourcesContent":["import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload, PayloadHashMap } from '@xyo-network/payload-model'\n\nexport const ArchivistSnapshotPayloadSchema = 'network.xyo.archivist.snapshot' as const\nexport type ArchivistSnapshotPayloadSchema = typeof ArchivistSnapshotPayloadSchema\n\nexport type ArchivistSnapshotPayload<TPayload extends Payload = Payload, TId extends string | number | symbol = Hash>\n = Payload<PayloadHashMap<TPayload, TId>, ArchivistSnapshotPayloadSchema>\n","import type { Payload } from '@xyo-network/payload-model'\n\nexport const ArchivistStatsPayloadSchema = 'network.xyo.archivist.stats' as const\nexport type ArchivistStatsPayloadSchema = typeof ArchivistStatsPayloadSchema\n\nexport type ArchivistStatsPayload\n = Payload<{ payloadCount: number }, ArchivistStatsPayloadSchema>\n","import { AsObjectFactory } from '@xylabs/sdk-js'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport type { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import type { TypeCheck } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { ArchivistInstance } from './Instance.ts'\nimport type { ArchivistModuleInstance } from './ModuleInstance.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance: TypeCheck<ArchivistInstance> = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule: TypeCheck<ArchivistModuleInstance> = new IsModuleFactory<ArchivistModuleInstance>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistAllQuerySchema = 'network.xyo.query.archivist.all' as const\nexport type ArchivistAllQuerySchema = typeof ArchivistAllQuerySchema\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear' as const\nexport type ArchivistClearQuerySchema = typeof ArchivistClearQuerySchema\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit' as const\nexport type ArchivistCommitQuerySchema = typeof ArchivistCommitQuerySchema\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import type { Hash } from '@xylabs/sdk-js'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete' as const\nexport type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import type { Hash } from '@xylabs/sdk-js'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistGetQuerySchema = 'network.xyo.query.archivist.get' as const\nexport type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert' as const\nexport type ArchivistInsertQuerySchema = typeof ArchivistInsertQuerySchema\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nimport type { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport const ArchivistNextQuerySchema = 'network.xyo.query.archivist.next' as const\nexport type ArchivistNextQuerySchema = typeof ArchivistNextQuerySchema\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const ArchivistSnapshotQuerySchema = 'network.xyo.query.archivist.snapshot' as const\nexport type ArchivistSnapshotQuerySchema = typeof ArchivistSnapshotQuerySchema\n\nexport type ArchivistSnapshotQuery = Query<{\n schema: ArchivistSnapshotQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { ArchivistModuleEventData } from '../EventData.ts'\nimport type { ArchivistInstance } from '../Instance.ts'\nimport type { ArchivistModuleInstance } from '../ModuleInstance.ts'\nimport type { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModuleInstance<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { ModuleConfig, ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: ModuleIdentifier[]\n read?: ModuleIdentifier[]\n write?: ModuleIdentifier[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport interface ArchivistGetCache {\n enabled?: boolean\n maxEntries?: number\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field caching configuration for get calls */\n getCache?: ArchivistGetCache\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key: Record<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n","import type { Hash, IdentityFunction } from '@xylabs/sdk-js'\nimport { assertEx } from '@xylabs/sdk-js'\nimport { type BoundWitness, isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'\n\nimport type { ReadArchivist } from '../PayloadArchivist.ts'\n\nexport const tryGetTypedBoundWitnessWithStorageMeta = async <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<WithStorageMeta<T> | undefined> => {\n const payload = (await archivist.get([hash])).at(0)\n return identity(payload) ? payload : undefined\n}\n\nexport const getTypedBoundWitnessWithStorageMeta = async <T extends BoundWitness>(archivist: ReadArchivist, hash: Hash,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<WithStorageMeta<T>> => {\n const payload = assertEx((await archivist.get([hash])).at(0), () => `failed to locate bound witness: ${hash}`)\n return assertEx(identity(payload) ? payload : undefined, () => `located payload failed identity check: ${hash}`)\n}\n\nexport const getBoundWitnessWithStorageMeta = (archivist: ReadArchivist, hash: Hash): Promise<WithStorageMeta<BoundWitness>> => {\n return getTypedBoundWitnessWithStorageMeta<BoundWitness>(archivist, hash, x => isStorageMeta(x) && isBoundWitness(x))\n}\n","import type { Hash, IdentityFunction } from '@xylabs/sdk-js'\nimport { exists, isHash } from '@xylabs/sdk-js'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'\n\nimport type { ReadArchivist } from '../PayloadArchivist.ts'\nimport { getTypedBoundWitnessWithStorageMeta, tryGetTypedBoundWitnessWithStorageMeta } from './getBoundWitness.ts'\nimport type { HydratedBoundWitness } from './HydratedBoundWitness.ts'\n\nexport const tryHydrateTypedBoundWitness = async <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<HydratedBoundWitness<T> | undefined> => {\n const bw = isHash(hashOrBw) ? await tryGetTypedBoundWitnessWithStorageMeta(archivist, hashOrBw, identity) : hashOrBw\n return bw ? [bw, (await archivist.get(bw?.payload_hashes as Hash[])).filter(exists)] : undefined\n}\n\nexport const hydrateTypedBoundWitness = async <T extends BoundWitness>(archivist: ReadArchivist, hashOrBw: Hash | WithStorageMeta<T>,\n identity: IdentityFunction<WithStorageMeta<T>>): Promise<HydratedBoundWitness<T>> => {\n const bw = isHash(hashOrBw) ? await getTypedBoundWitnessWithStorageMeta(archivist, hashOrBw, identity) : hashOrBw\n const payloads = (await archivist.get(bw?.payload_hashes as Hash[])).filter(exists)\n if (payloads.length !== bw.payload_hashes.length) {\n throw new Error(`missing payloads for ${bw._hash}`)\n }\n return [bw, payloads]\n}\n\nexport const hydrateBoundWitness = (\n archivist: ReadArchivist,\n hashOrBw: Hash | WithStorageMeta<BoundWitness>,\n): Promise<HydratedBoundWitness<BoundWitness>> => {\n const idFunction: IdentityFunction<WithStorageMeta<BoundWitness>> = x => isBoundWitness(x) && isStorageMeta(x)\n return hydrateTypedBoundWitness<BoundWitness>(archivist, hashOrBw, idFunction)\n}\n"],"mappings":";AAGO,IAAM,iCAAiC;;;ACDvC,IAAM,8BAA8B;;;ACF3C,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;;;ACD3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACFA,IAAM,0BAA0B;;;ACAhC,IAAM,4BAA4B;;;ACAlC,IAAM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1
- import type { Hash } from '@xylabs/hex';
2
- import type { IdentityFunction } from '@xylabs/typeof';
1
+ import type { Hash, IdentityFunction } from '@xylabs/sdk-js';
3
2
  import { type BoundWitness } from '@xyo-network/boundwitness-model';
4
3
  import { type WithStorageMeta } from '@xyo-network/payload-model';
5
4
  import type { ReadArchivist } from '../PayloadArchivist.ts';
@@ -1 +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,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3D,eAAO,MAAM,sCAAsC,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACvH,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAGxF,CAAA;AAED,eAAO,MAAM,mCAAmC,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACpH,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAG5E,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,WAAW,aAAa,EAAE,MAAM,IAAI,KAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAE1H,CAAA"}
1
+ {"version":3,"file":"getBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/lib/getBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAE5D,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3D,eAAO,MAAM,sCAAsC,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACvH,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAGxF,CAAA;AAED,eAAO,MAAM,mCAAmC,GAAU,CAAC,SAAS,YAAY,EAAE,WAAW,aAAa,EAAE,MAAM,IAAI,EACpH,UAAU,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAG5E,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,WAAW,aAAa,EAAE,MAAM,IAAI,KAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAE1H,CAAA"}
@@ -1,5 +1,4 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { IdentityFunction } from '@xylabs/typeof';
1
+ import type { Hash, IdentityFunction } from '@xylabs/sdk-js';
3
2
  import type { BoundWitness } from '@xyo-network/boundwitness-model';
4
3
  import { type WithStorageMeta } from '@xyo-network/payload-model';
5
4
  import type { ReadArchivist } from '../PayloadArchivist.ts';
@@ -1 +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,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAA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AAA;AAErE,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,CAOjF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC9B,WAAW,aAAa,EACxB,UAAU,IAAI,GAAG,eAAe,CAAC,YAAY,CAAC,KAC7C,OAAO,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAG5C,CAAA"}
@@ -1,10 +1,10 @@
1
- import type { TypeCheck } from '@xylabs/object';
1
+ import type { TypeCheck } from '@xylabs/sdk-js';
2
2
  import type { ArchivistInstance } from './Instance.ts';
3
3
  import type { ArchivistModuleInstance } from './ModuleInstance.ts';
4
4
  export declare const isArchivistInstance: TypeCheck<ArchivistInstance>;
5
5
  export declare const isArchivistModule: TypeCheck<ArchivistModuleInstance>;
6
- export declare const asArchivistModule: import("@xylabs/object").AsTypeFunction<ArchivistModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData>>;
7
- export declare const asArchivistInstance: import("@xylabs/object").AsTypeFunction<ArchivistInstance<import("./Params.ts").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
6
+ export declare const asArchivistModule: import("@xylabs/sdk-js").AsTypeFunction<ArchivistModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData>>;
7
+ export declare const asArchivistInstance: import("@xylabs/sdk-js").AsTypeFunction<ArchivistInstance<import("./Params.ts").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
8
8
  export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData>) => R) => R | undefined;
9
9
  export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("./Params.ts").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").ArchivistConfig>>, import("./EventData.ts").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>) => R) => R | undefined;
10
10
  //# sourceMappingURL=typeChecks.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-model",
3
- "version": "5.2.18",
3
+ "version": "5.2.19",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,21 +36,15 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/assert": "~5.0.50",
40
- "@xylabs/events": "~5.0.50",
41
- "@xylabs/exists": "~5.0.50",
42
- "@xylabs/hex": "~5.0.50",
43
- "@xylabs/object": "~5.0.50",
44
- "@xylabs/promise": "~5.0.50",
45
- "@xylabs/typeof": "~5.0.50",
46
- "@xyo-network/account-model": "~5.2.18",
47
- "@xyo-network/boundwitness-model": "~5.2.18",
48
- "@xyo-network/module-model": "~5.2.18",
49
- "@xyo-network/payload-model": "~5.2.18"
39
+ "@xylabs/sdk-js": "~5.0.61",
40
+ "@xyo-network/account-model": "~5.2.19",
41
+ "@xyo-network/boundwitness-model": "~5.2.19",
42
+ "@xyo-network/module-model": "~5.2.19",
43
+ "@xyo-network/payload-model": "~5.2.19"
50
44
  },
51
45
  "devDependencies": {
52
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
53
- "@xylabs/tsconfig": "~7.2.8",
46
+ "@xylabs/ts-scripts-yarn3": "~7.2.32",
47
+ "@xylabs/tsconfig": "~7.2.32",
54
48
  "typescript": "~5.9.3"
55
49
  },
56
50
  "publishConfig": {
@@ -1,4 +1,4 @@
1
- import type { Promisable } from '@xylabs/promise'
1
+ import type { Promisable } from '@xylabs/sdk-js'
2
2
 
3
3
  import type { NextOptions } from './NextOptions.ts'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Promisable, PromisableArray } from '@xylabs/promise'
1
+ import type { Promisable, PromisableArray } from '@xylabs/sdk-js'
2
2
 
3
3
  import type { NextOptions } from './NextOptions.ts'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type { Payload, PayloadHashMap } from '@xyo-network/payload-model'
3
3
 
4
4
  export const ArchivistSnapshotPayloadSchema = 'network.xyo.archivist.snapshot' as const
package/src/Config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object'
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'
2
2
  import type { ModuleConfig, ModuleIdentifier } from '@xyo-network/module-model'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
 
4
4
  export type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>
@@ -1,5 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
2
- import type { Hash } from '@xylabs/hex'
1
+ import type { EventData, Hash } from '@xylabs/sdk-js'
3
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
4
3
  import type { Payload } from '@xyo-network/payload-model'
5
4
 
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
  import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
4
4
 
package/src/Instance.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EventEmitter } from '@xylabs/events'
1
+ import type { EventEmitter } from '@xylabs/sdk-js'
2
2
  import type { ModuleInstance } from '@xyo-network/module-model'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
 
package/src/Module.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type { ModuleQueryFunctions } from '@xyo-network/module-model'
3
3
  import type { Payload, Sequence } from '@xyo-network/payload-model'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Hex } from '@xylabs/hex'
1
+ import type { Hex } from '@xylabs/sdk-js'
2
2
  import type { Sequence } from '@xyo-network/payload-model'
3
3
 
4
4
  export interface NextOptions<TSequence = Hex> {
package/src/Params.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
2
- import type { Promisable } from '@xylabs/promise'
1
+ import type { Hash, Promisable } from '@xylabs/sdk-js'
3
2
  import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
4
3
  import type { Payload } from '@xyo-network/payload-model'
5
4
 
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type {
3
3
  Payload, PayloadHashMap, Sequence, WithStorageMeta,
4
4
  } from '@xyo-network/payload-model'
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type { Query } from '@xyo-network/payload-model'
3
3
 
4
4
  export const ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete' as const
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type { Query } from '@xyo-network/payload-model'
3
3
 
4
4
  export const ArchivistGetQuerySchema = 'network.xyo.query.archivist.get' as const
@@ -1,5 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
2
- import type { Promisable } from '@xylabs/promise'
1
+ import type { Hash, Promisable } from '@xylabs/sdk-js'
3
2
  import type { AccountInstance } from '@xyo-network/account-model'
4
3
  import type { ModuleQueryResult } from '@xyo-network/module-model'
5
4
  import type { Payload } from '@xyo-network/payload-model'
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { IsObjectFactory } from '@xylabs/object'
1
+ import type { TypeCheck } from '@xylabs/sdk-js'
2
+ import { IsObjectFactory } from '@xylabs/sdk-js'
3
3
  import type { AttachableModuleInstance } from '@xyo-network/module-model'
4
4
  import type { Payload } from '@xyo-network/payload-model'
5
5
 
@@ -1,4 +1,4 @@
1
- import { AsObjectFactory } from '@xylabs/object'
1
+ import { AsObjectFactory } from '@xylabs/sdk-js'
2
2
 
3
3
  import { isAttachableArchivistInstance } from './isAttachableInstance.ts'
4
4
 
@@ -1,6 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { IsObjectFactory } from '@xylabs/object'
3
- import type { ObjectTypeShape } from '@xylabs/typeof'
1
+ import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'
2
+ import { IsObjectFactory } from '@xylabs/sdk-js'
4
3
  import { isAttachableModuleInstance } from '@xyo-network/module-model'
5
4
 
6
5
  import { isArchivistInstance } from '../typeChecks.ts'
@@ -1,6 +1,5 @@
1
- import { assertEx } from '@xylabs/assert'
2
- import type { Hash } from '@xylabs/hex'
3
- import type { IdentityFunction } from '@xylabs/typeof'
1
+ import type { Hash, IdentityFunction } from '@xylabs/sdk-js'
2
+ import { assertEx } from '@xylabs/sdk-js'
4
3
  import { type BoundWitness, isBoundWitness } from '@xyo-network/boundwitness-model'
5
4
  import { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'
6
5
 
@@ -1,7 +1,5 @@
1
- import { exists } from '@xylabs/exists'
2
- import type { Hash } from '@xylabs/hex'
3
- import { isHash } from '@xylabs/hex'
4
- import type { IdentityFunction } from '@xylabs/typeof'
1
+ import type { Hash, IdentityFunction } from '@xylabs/sdk-js'
2
+ import { exists, isHash } from '@xylabs/sdk-js'
5
3
  import type { BoundWitness } from '@xyo-network/boundwitness-model'
6
4
  import { isBoundWitness } from '@xyo-network/boundwitness-model'
7
5
  import { isStorageMeta, type WithStorageMeta } from '@xyo-network/payload-model'
package/src/typeChecks.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { AsObjectFactory } from '@xylabs/object'
1
+ import type { TypeCheck } from '@xylabs/sdk-js'
2
+ import { AsObjectFactory } from '@xylabs/sdk-js'
3
3
  import {
4
4
  IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,
5
5
  } from '@xyo-network/module-model'