@xyo-network/id-payload-plugin 4.1.2 → 4.1.4

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.
@@ -1,39 +1,5 @@
1
- import * as _xylabs_promise from '@xylabs/promise';
2
- import * as _xylabs_object from '@xylabs/object';
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
- /**
10
- * The fields of an ID Payload
11
- */
12
- type IdFields = {
13
- salt: string;
14
- };
15
- /**
16
- * The ID Payload
17
- */
18
- type Id = Payload<IdFields, IdSchema>;
19
- /**
20
- * @deprecated Use `Id` instead
21
- */
22
- type IdPayload = Id;
23
- /**
24
- * Identity helper for ID Payload
25
- */
26
- declare const isId: (x?: unknown | null) => x is Id;
27
- declare const asId: _xylabs_object.AsTypeFunction<Id>;
28
- declare const asOptionalId: (value: _xylabs_promise.AnyNonPromise) => Id | undefined;
29
- /**
30
- * Identity helper for ID Payload with sources
31
- */
32
- declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<Id>>;
33
-
34
- declare const IdPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<Id>;
35
-
36
- declare const idPayloadTemplate: () => Id;
37
-
38
- export { IdPayloadPlugin, IdSchema, asId, asOptionalId, IdPayloadPlugin as default, idPayloadTemplate, isId, isIdWithSources };
39
- export type { Id, IdFields, IdPayload };
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/id-payload-plugin",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.13.15",
33
- "@xyo-network/payload-model": "^4.1.2",
34
- "@xyo-network/payload-plugin": "^4.1.2"
32
+ "@xylabs/object": "^4.13.16",
33
+ "@xyo-network/payload-model": "^4.1.4",
34
+ "@xyo-network/payload-plugin": "^4.1.4"
35
35
  },
36
36
  "devDependencies": {
37
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
38
- "@xylabs/tsconfig": "^7.0.0-rc.23",
39
- "@xylabs/vitest-extended": "^4.13.15",
37
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
38
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
39
+ "@xylabs/vitest-extended": "^4.13.16",
40
40
  "typescript": "^5.8.3",
41
41
  "vitest": "^3.2.4"
42
42
  },