@xyo-network/id-payload-plugin 3.9.18 → 3.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import { IdSchema } from './Schema.ts';
3
+ /**
4
+ * The fields of an ID Payload
5
+ */
6
+ export type IdFields = {
7
+ salt: string;
8
+ };
9
+ /**
10
+ * The ID Payload
11
+ */
12
+ export type Id = Payload<IdFields, IdSchema>;
13
+ /**
14
+ * @deprecated Use `Id` instead
15
+ */
16
+ export type IdPayload = Id;
17
+ /**
18
+ * Identity helper for ID Payload
19
+ */
20
+ export declare const isId: (x?: unknown | null) => x is Id;
21
+ export declare const asId: {
22
+ <TType extends Id>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
23
+ <TType extends Id>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Id>, config?: import("@xylabs/object").TypeCheckConfig): TType;
24
+ };
25
+ export declare const asOptionalId: <TType extends Id>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
26
+ /**
27
+ * Identity helper for ID Payload with sources
28
+ */
29
+ export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<Id>>;
30
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAE5C;;GAEG;AAGH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,IAAI,iCAAsC,CAAA;AACvD,eAAO,MAAM,IAAI;qCAzBC,iBAAiB,iCAGX,gBAEf;qCAOU,iBAAiB,6FAMS,gBACvC;CAM0C,CAAA;AAChD,eAAO,MAAM,YAAY,mCADP,iBAAiB,qCAC6B,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,2DAA8D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Id } from './Payload.ts';
2
+ export declare const IdPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<Id>;
3
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAItC,eAAO,MAAM,eAAe,+DAIxB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const IdSchema: "network.xyo.id";
2
+ export type IdSchema = typeof IdSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,EAAG,gBAAyB,CAAA;AACjD,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Id } from './Payload.ts';
2
+ export declare const idPayloadTemplate: () => Id;
3
+ //# sourceMappingURL=Template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../src/Template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGtC,eAAO,MAAM,iBAAiB,QAAO,EAGnC,CAAA"}
@@ -1,26 +1,5 @@
1
- import * as _xylabs_object from '@xylabs/object';
2
- import * as _xylabs_promise from '@xylabs/promise';
3
- import { Payload, WithSources } from '@xyo-network/payload-model';
4
- import * as _xyo_network_payload_plugin from '@xyo-network/payload-plugin';
5
-
6
- declare const IdSchema: "network.xyo.id";
7
- type IdSchema = typeof IdSchema;
8
-
9
- type IdFields = {
10
- salt: string;
11
- };
12
- type Id = Payload<IdFields, IdSchema>;
13
- type IdPayload = Id;
14
- declare const isId: (x?: unknown | null) => x is Id;
15
- declare const asId: {
16
- <TType extends Id>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
17
- <TType extends Id>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Id>, config?: _xylabs_object.TypeCheckConfig): TType;
18
- };
19
- declare const asOptionalId: <TType extends Id>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
20
- declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<Id>>;
21
-
22
- declare const IdPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<Id>;
23
-
24
- declare const idPayloadTemplate: () => Id;
25
-
26
- export { type Id, type IdFields, type IdPayload, IdPayloadPlugin, IdSchema, asId, asOptionalId, IdPayloadPlugin as default, idPayloadTemplate, isId, isIdWithSources };
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
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/id-payload-plugin",
3
- "version": "3.9.18",
3
+ "version": "3.9.19",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,14 +30,14 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/object": "^4.5.1",
33
- "@xyo-network/payload-model": "^3.9.18",
34
- "@xyo-network/payload-plugin": "^3.9.18"
33
+ "@xyo-network/payload-model": "^3.9.19",
34
+ "@xyo-network/payload-plugin": "^3.9.19"
35
35
  },
36
36
  "devDependencies": {
37
- "@xylabs/ts-scripts-yarn3": "^5.0.25",
38
- "@xylabs/tsconfig": "^5.0.25",
37
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
38
+ "@xylabs/tsconfig": "^5.0.39",
39
39
  "@xylabs/vitest-extended": "^4.5.1",
40
- "typescript": "^5.7.3",
40
+ "typescript": "^5.8.2",
41
41
  "vitest": "^3.0.7"
42
42
  },
43
43
  "publishConfig": {