@xyo-network/id-payload-plugin 2.106.0 → 2.107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/browser/Payload.d.cts +3 -12
  2. package/dist/browser/Payload.d.cts.map +1 -1
  3. package/dist/browser/Payload.d.mts +3 -12
  4. package/dist/browser/Payload.d.mts.map +1 -1
  5. package/dist/browser/Payload.d.ts +3 -12
  6. package/dist/browser/Payload.d.ts.map +1 -1
  7. package/dist/browser/Plugin.d.cts +2 -1
  8. package/dist/browser/Plugin.d.cts.map +1 -1
  9. package/dist/browser/Plugin.d.mts +2 -1
  10. package/dist/browser/Plugin.d.mts.map +1 -1
  11. package/dist/browser/Plugin.d.ts +2 -1
  12. package/dist/browser/Plugin.d.ts.map +1 -1
  13. package/dist/browser/index.cjs +1 -58
  14. package/dist/browser/index.cjs.map +1 -1
  15. package/dist/browser/index.d.cts.map +1 -1
  16. package/dist/browser/index.d.mts.map +1 -1
  17. package/dist/browser/index.d.ts.map +1 -1
  18. package/dist/browser/index.js +1 -37
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/neutral/Payload.d.cts +3 -12
  21. package/dist/neutral/Payload.d.cts.map +1 -1
  22. package/dist/neutral/Payload.d.mts +3 -12
  23. package/dist/neutral/Payload.d.mts.map +1 -1
  24. package/dist/neutral/Payload.d.ts +3 -12
  25. package/dist/neutral/Payload.d.ts.map +1 -1
  26. package/dist/neutral/Plugin.d.cts +2 -1
  27. package/dist/neutral/Plugin.d.cts.map +1 -1
  28. package/dist/neutral/Plugin.d.mts +2 -1
  29. package/dist/neutral/Plugin.d.mts.map +1 -1
  30. package/dist/neutral/Plugin.d.ts +2 -1
  31. package/dist/neutral/Plugin.d.ts.map +1 -1
  32. package/dist/neutral/index.cjs +1 -58
  33. package/dist/neutral/index.cjs.map +1 -1
  34. package/dist/neutral/index.d.cts.map +1 -1
  35. package/dist/neutral/index.d.mts.map +1 -1
  36. package/dist/neutral/index.d.ts.map +1 -1
  37. package/dist/neutral/index.js +1 -37
  38. package/dist/neutral/index.js.map +1 -1
  39. package/dist/node/Payload.d.cts +3 -12
  40. package/dist/node/Payload.d.cts.map +1 -1
  41. package/dist/node/Payload.d.mts +3 -12
  42. package/dist/node/Payload.d.mts.map +1 -1
  43. package/dist/node/Payload.d.ts +3 -12
  44. package/dist/node/Payload.d.ts.map +1 -1
  45. package/dist/node/Plugin.d.cts +2 -1
  46. package/dist/node/Plugin.d.cts.map +1 -1
  47. package/dist/node/Plugin.d.mts +2 -1
  48. package/dist/node/Plugin.d.mts.map +1 -1
  49. package/dist/node/Plugin.d.ts +2 -1
  50. package/dist/node/Plugin.d.ts.map +1 -1
  51. package/dist/node/index.cjs +1 -67
  52. package/dist/node/index.cjs.map +1 -1
  53. package/dist/node/index.d.cts.map +1 -1
  54. package/dist/node/index.d.mts.map +1 -1
  55. package/dist/node/index.d.ts.map +1 -1
  56. package/dist/node/index.js +1 -37
  57. package/dist/node/index.js.map +1 -1
  58. package/package.json +6 -6
  59. package/src/index.ts +1 -0
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,59 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
24
- IdPayloadPlugin: () => IdPayloadPlugin,
25
- IdSchema: () => IdSchema,
26
- default: () => IdPayloadPlugin,
27
- idPayloadTemplate: () => idPayloadTemplate,
28
- isId: () => isId,
29
- isIdWithMeta: () => isIdWithMeta,
30
- isIdWithSources: () => isIdWithSources
31
- });
32
- module.exports = __toCommonJS(src_exports);
33
-
34
- // src/Payload.ts
35
- var import_payload_model = require("@xyo-network/payload-model");
36
-
37
- // src/Schema.ts
38
- var IdSchema = "network.xyo.id";
39
-
40
- // src/Payload.ts
41
- var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
- var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
- var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
-
45
- // src/Plugin.ts
46
- var import_payload_plugin = require("@xyo-network/payload-plugin");
47
-
48
- // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
- salt: "",
51
- schema: IdSchema
52
- }), "idPayloadTemplate");
53
-
54
- // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
- schema: IdSchema,
57
- template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
1
+ "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");
59
2
  //# sourceMappingURL=index.cjs.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'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1,38 +1,2 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
-
7
- // src/Schema.ts
8
- var IdSchema = "network.xyo.id";
9
-
10
- // src/Payload.ts
11
- var isId = isPayloadOfSchemaType(IdSchema);
12
- var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
- var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
-
15
- // src/Plugin.ts
16
- import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
-
18
- // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
- salt: "",
21
- schema: IdSchema
22
- }), "idPayloadTemplate");
23
-
24
- // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
- schema: IdSchema,
27
- template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
- export {
30
- IdPayloadPlugin,
31
- IdSchema,
32
- IdPayloadPlugin as default,
33
- idPayloadTemplate,
34
- isId,
35
- isIdWithMeta,
36
- isIdWithSources
37
- };
1
+ var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
38
2
  //# sourceMappingURL=index.js.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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,59 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
24
- IdPayloadPlugin: () => IdPayloadPlugin,
25
- IdSchema: () => IdSchema,
26
- default: () => IdPayloadPlugin,
27
- idPayloadTemplate: () => idPayloadTemplate,
28
- isId: () => isId,
29
- isIdWithMeta: () => isIdWithMeta,
30
- isIdWithSources: () => isIdWithSources
31
- });
32
- module.exports = __toCommonJS(src_exports);
33
-
34
- // src/Payload.ts
35
- var import_payload_model = require("@xyo-network/payload-model");
36
-
37
- // src/Schema.ts
38
- var IdSchema = "network.xyo.id";
39
-
40
- // src/Payload.ts
41
- var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
- var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
- var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
-
45
- // src/Plugin.ts
46
- var import_payload_plugin = require("@xyo-network/payload-plugin");
47
-
48
- // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
- salt: "",
51
- schema: IdSchema
52
- }), "idPayloadTemplate");
53
-
54
- // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
- schema: IdSchema,
57
- template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
1
+ "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");
59
2
  //# sourceMappingURL=index.cjs.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'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1,38 +1,2 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
-
7
- // src/Schema.ts
8
- var IdSchema = "network.xyo.id";
9
-
10
- // src/Payload.ts
11
- var isId = isPayloadOfSchemaType(IdSchema);
12
- var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
- var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
-
15
- // src/Plugin.ts
16
- import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
-
18
- // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
- salt: "",
21
- schema: IdSchema
22
- }), "idPayloadTemplate");
23
-
24
- // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
- schema: IdSchema,
27
- template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
- export {
30
- IdPayloadPlugin,
31
- IdSchema,
32
- IdPayloadPlugin as default,
33
- idPayloadTemplate,
34
- isId,
35
- isIdWithMeta,
36
- isIdWithSources
37
- };
1
+ var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
38
2
  //# sourceMappingURL=index.js.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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -4,24 +4,15 @@ export type IdPayload = Payload<{
4
4
  salt: string;
5
5
  schema: IdSchema;
6
6
  }>;
7
- /**
8
- * Identity helper for ID Payload
9
- */
10
- export declare const isId: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
+ export declare const isId: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
8
  salt: string;
12
9
  schema: IdSchema;
13
10
  };
14
- /**
15
- * Identity helper for ID Payload with meta
16
- */
17
- export declare const isIdWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ export declare const isIdWithMeta: (x?: unknown | null) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
12
  salt: string;
19
13
  schema: IdSchema;
20
14
  }>>;
21
- /**
22
- * Identity helper for ID Payload with sources
23
- */
24
- export declare const isIdWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
16
  salt: string;
26
17
  schema: IdSchema;
27
18
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAC9D;;GAEG;AACH,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AACxF;;GAEG;AACH,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAC,CAAA;AAKF,eAAO,MAAM,IAAI;UAPT,MAAM;YACJ,QAAQ;CAM4C,CAAA;AAI9D,eAAO,MAAM,YAAY;UAXjB,MAAM;YACJ,QAAQ;GAUsE,CAAA;AAIxF,eAAO,MAAM,eAAe;UAfpB,MAAM;YACJ,QAAQ;GAc+E,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { IdSchema } from './Schema';
1
2
  export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
3
  salt: string;
3
- schema: "network.xyo.id";
4
+ schema: IdSchema;
4
5
  }>;
5
6
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGnC,eAAO,MAAM,eAAe;;;EAIxB,CAAA"}
@@ -1,68 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
24
- IdPayloadPlugin: () => IdPayloadPlugin,
25
- IdSchema: () => IdSchema,
26
- default: () => IdPayloadPlugin,
27
- idPayloadTemplate: () => idPayloadTemplate,
28
- isId: () => isId,
29
- isIdWithMeta: () => isIdWithMeta,
30
- isIdWithSources: () => isIdWithSources
31
- });
32
- module.exports = __toCommonJS(src_exports);
33
-
34
- // src/Payload.ts
35
- var import_payload_model = require("@xyo-network/payload-model");
36
-
37
- // src/Schema.ts
38
- var IdSchema = "network.xyo.id";
39
-
40
- // src/Payload.ts
41
- var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
- var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
- var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
-
45
- // src/Plugin.ts
46
- var import_payload_plugin = require("@xyo-network/payload-plugin");
47
-
48
- // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
- salt: "",
51
- schema: IdSchema
52
- }), "idPayloadTemplate");
53
-
54
- // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
- schema: IdSchema,
57
- template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
59
- // Annotate the CommonJS export names for ESM import in node:
60
- 0 && (module.exports = {
61
- IdPayloadPlugin,
62
- IdSchema,
63
- idPayloadTemplate,
64
- isId,
65
- isIdWithMeta,
66
- isIdWithSources
67
- });
1
+ "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");0&&(module.exports={IdPayloadPlugin,IdSchema,idPayloadTemplate,isId,isIdWithMeta,isIdWithSources});
68
2
  //# sourceMappingURL=index.cjs.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'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1,38 +1,2 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
-
7
- // src/Schema.ts
8
- var IdSchema = "network.xyo.id";
9
-
10
- // src/Payload.ts
11
- var isId = isPayloadOfSchemaType(IdSchema);
12
- var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
- var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
-
15
- // src/Plugin.ts
16
- import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
-
18
- // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
- salt: "",
21
- schema: IdSchema
22
- }), "idPayloadTemplate");
23
-
24
- // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
- schema: IdSchema,
27
- template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
- export {
30
- IdPayloadPlugin,
31
- IdSchema,
32
- IdPayloadPlugin as default,
33
- idPayloadTemplate,
34
- isId,
35
- isIdWithMeta,
36
- isIdWithSources
37
- };
1
+ var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
38
2
  //# sourceMappingURL=index.js.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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
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'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(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'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
package/package.json CHANGED
@@ -10,13 +10,13 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/payload-model": "~2.106.0",
14
- "@xyo-network/payload-plugin": "~2.106.0"
13
+ "@xyo-network/payload-model": "~2.107.0",
14
+ "@xyo-network/payload-plugin": "~2.107.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^3.11.2",
18
- "@xylabs/tsconfig": "^3.11.2",
19
- "typescript": "^5.4.5"
17
+ "@xylabs/ts-scripts-yarn3": "^3.11.8",
18
+ "@xylabs/tsconfig": "^3.11.8",
19
+ "typescript": "^5.5.2"
20
20
  },
21
21
  "description": "Typescript/Javascript Plugins for XYO Platform",
22
22
  "exports": {
@@ -57,6 +57,6 @@
57
57
  "url": "https://github.com/XYOracleNetwork/plugins.git"
58
58
  },
59
59
  "sideEffects": false,
60
- "version": "2.106.0",
60
+ "version": "2.107.0",
61
61
  "type": "module"
62
62
  }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './Payload'
2
+ // eslint-disable-next-line import/no-default-export
2
3
  export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'
3
4
  export * from './Schema'
4
5
  export * from './Template'