@xyo-network/id-payload-plugin 2.110.16 → 2.110.18

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 (47) hide show
  1. package/dist/browser/Payload.d.cts +1 -1
  2. package/dist/browser/Payload.d.mts +1 -1
  3. package/dist/browser/Payload.d.ts +1 -1
  4. package/dist/browser/Plugin.d.cts +1 -1
  5. package/dist/browser/Plugin.d.mts +1 -1
  6. package/dist/browser/Plugin.d.ts +1 -1
  7. package/dist/browser/Template.d.cts +1 -1
  8. package/dist/browser/Template.d.mts +1 -1
  9. package/dist/browser/Template.d.ts +1 -1
  10. package/dist/browser/index.cjs.map +1 -1
  11. package/dist/browser/index.d.cts +4 -4
  12. package/dist/browser/index.d.mts +4 -4
  13. package/dist/browser/index.d.ts +4 -4
  14. package/dist/browser/index.js.map +1 -1
  15. package/dist/neutral/Payload.d.cts +1 -1
  16. package/dist/neutral/Payload.d.mts +1 -1
  17. package/dist/neutral/Payload.d.ts +1 -1
  18. package/dist/neutral/Plugin.d.cts +1 -1
  19. package/dist/neutral/Plugin.d.mts +1 -1
  20. package/dist/neutral/Plugin.d.ts +1 -1
  21. package/dist/neutral/Template.d.cts +1 -1
  22. package/dist/neutral/Template.d.mts +1 -1
  23. package/dist/neutral/Template.d.ts +1 -1
  24. package/dist/neutral/index.cjs.map +1 -1
  25. package/dist/neutral/index.d.cts +4 -4
  26. package/dist/neutral/index.d.mts +4 -4
  27. package/dist/neutral/index.d.ts +4 -4
  28. package/dist/neutral/index.js.map +1 -1
  29. package/dist/node/Payload.d.cts +1 -1
  30. package/dist/node/Payload.d.mts +1 -1
  31. package/dist/node/Payload.d.ts +1 -1
  32. package/dist/node/Plugin.d.cts +1 -1
  33. package/dist/node/Plugin.d.mts +1 -1
  34. package/dist/node/Plugin.d.ts +1 -1
  35. package/dist/node/Template.d.cts +1 -1
  36. package/dist/node/Template.d.mts +1 -1
  37. package/dist/node/Template.d.ts +1 -1
  38. package/dist/node/index.cjs.map +1 -1
  39. package/dist/node/index.d.cts +4 -4
  40. package/dist/node/index.d.mts +4 -4
  41. package/dist/node/index.d.ts +4 -4
  42. package/dist/node/index.js.map +1 -1
  43. package/package.json +3 -3
  44. package/src/Payload.ts +1 -1
  45. package/src/Plugin.ts +3 -3
  46. package/src/Template.ts +2 -2
  47. package/src/index.ts +4 -4
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.ts'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Template.ts'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.ts'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Template.ts'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
- import { IdSchema } from './Schema.js';
2
+ import { IdSchema } from './Schema.ts';
3
3
  export type IdFields = {
4
4
  salt: string;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.js").IdFields & {
1
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./Payload.ts").IdFields & {
2
2
  schema: "network.xyo.id";
3
3
  }>;
4
4
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1,3 +1,3 @@
1
- import { IdPayload } from './Payload.js';
1
+ import { IdPayload } from './Payload.ts';
2
2
  export declare const idPayloadTemplate: () => IdPayload;
3
3
  //# sourceMappingURL=Template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.ts'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Template.ts'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,WAAO,4CAA0B,QAAQ;AAK/C,IAAM,mBAAe,oDAA4C,QAAQ;AAKzE,IAAM,sBAAkB,uDAAkD,QAAQ;;;AEzCzF,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './Payload.js';
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js';
3
- export * from './Schema.js';
4
- export * from './Template.js';
1
+ export * from './Payload.ts';
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Template.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.ts'\n\n/**\n * The fields of an ID Payload\n */\nexport type IdFields = {\n salt: string\n}\n\n/**\n * The ID Payload\n */\nexport type Id = Payload<IdFields, IdSchema>\n\n/**\n * @deprecated Use `Id` instead\n */\nexport type IdPayload = Id\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<Id>(IdSchema)\n\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<Id>>(IdSchema)\n\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\nimport { idPayloadTemplate } from './Template.ts'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.ts'\nimport { IdSchema } from './Schema.ts'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;AD8B3B,IAAM,OAAO,sBAA0B,QAAQ;AAK/C,IAAM,eAAe,8BAA4C,QAAQ;AAKzE,IAAM,kBAAkB,iCAAkD,QAAQ;;;AEzCzF,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
package/package.json CHANGED
@@ -10,8 +10,8 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/payload-model": "^2.110.16",
14
- "@xyo-network/payload-plugin": "^2.110.16"
13
+ "@xyo-network/payload-model": "^2.110.18",
14
+ "@xyo-network/payload-plugin": "^2.110.18"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@xylabs/ts-scripts-yarn3": "^3.14.1",
@@ -57,6 +57,6 @@
57
57
  "url": "https://github.com/XYOracleNetwork/plugins.git"
58
58
  },
59
59
  "sideEffects": false,
60
- "version": "2.110.16",
60
+ "version": "2.110.18",
61
61
  "type": "module"
62
62
  }
package/src/Payload.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  WithSources,
8
8
  } from '@xyo-network/payload-model'
9
9
 
10
- import { IdSchema } from './Schema.js'
10
+ import { IdSchema } from './Schema.ts'
11
11
 
12
12
  /**
13
13
  * The fields of an ID Payload
package/src/Plugin.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
2
 
3
- import { IdPayload } from './Payload.js'
4
- import { IdSchema } from './Schema.js'
5
- import { idPayloadTemplate } from './Template.js'
3
+ import { IdPayload } from './Payload.ts'
4
+ import { IdSchema } from './Schema.ts'
5
+ import { idPayloadTemplate } from './Template.ts'
6
6
 
7
7
  export const IdPayloadPlugin = () =>
8
8
  createPayloadPlugin<IdPayload>({
package/src/Template.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { IdPayload } from './Payload.js'
2
- import { IdSchema } from './Schema.js'
1
+ import { IdPayload } from './Payload.ts'
2
+ import { IdSchema } from './Schema.ts'
3
3
 
4
4
  export const idPayloadTemplate = (): IdPayload => ({
5
5
  salt: '',
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './Payload.js'
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'
3
- export * from './Schema.js'
4
- export * from './Template.js'
1
+ export * from './Payload.ts'
2
+ export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'
3
+ export * from './Schema.ts'
4
+ export * from './Template.ts'