@xyo-network/id-payload-plugin 4.0.3 → 4.1.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.
- package/dist/neutral/index.d.ts +39 -0
- package/package.json +9 -9
- /package/{dist/types → build/neutral}/Payload.d.ts +0 -0
- /package/{dist/types → build/neutral}/Payload.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Plugin.d.ts +0 -0
- /package/{dist/types → build/neutral}/Plugin.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Template.d.ts +0 -0
- /package/{dist/types → build/neutral}/Template.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/id-payload-plugin",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/object": "^4.13.
|
|
33
|
-
"@xyo-network/payload-model": "^4.0
|
|
34
|
-
"@xyo-network/payload-plugin": "^4.0
|
|
32
|
+
"@xylabs/object": "^4.13.15",
|
|
33
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
34
|
+
"@xyo-network/payload-plugin": "^4.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
38
|
-
"@xylabs/tsconfig": "^
|
|
39
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
37
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
38
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
39
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
40
40
|
"typescript": "^5.8.3",
|
|
41
41
|
"vitest": "^3.2.4"
|
|
42
42
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|