@xyo-network/id-payload-plugin 3.9.1 → 3.9.3

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,5 +1,5 @@
1
- import * as _xylabs_promise from '@xylabs/promise';
2
1
  import * as _xylabs_object from '@xylabs/object';
2
+ import * as _xylabs_promise from '@xylabs/promise';
3
3
  import { Payload, WithSources } from '@xyo-network/payload-model';
4
4
  import * as _xyo_network_payload_plugin from '@xyo-network/payload-plugin';
5
5
 
@@ -11,36 +11,15 @@ type IdFields = {
11
11
  };
12
12
  type Id = Payload<IdFields, IdSchema>;
13
13
  type IdPayload = Id;
14
- declare const isId: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
15
- schema: "network.xyo.id";
16
- salt: string;
17
- }>;
14
+ declare const isId: (x?: unknown | null) => x is Id;
18
15
  declare const asId: {
19
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
20
- schema: "network.xyo.id";
21
- salt: string;
22
- }>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
23
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
24
- schema: "network.xyo.id";
25
- salt: string;
26
- }>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
27
- schema: "network.xyo.id";
28
- salt: string;
29
- }>>, config?: _xylabs_object.TypeCheckConfig): TType;
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;
30
18
  };
31
- declare const asOptionalId: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
32
- schema: "network.xyo.id";
33
- salt: string;
34
- }>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
35
- declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
36
- schema: "network.xyo.id";
37
- salt: string;
38
- }>>>;
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>>;
39
21
 
40
- declare const IdPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<_xylabs_object.DeepRestrictToStringKeys<{
41
- schema: "network.xyo.id";
42
- salt: string;
43
- }>>;
22
+ declare const IdPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<Id>;
44
23
 
45
24
  declare const idPayloadTemplate: () => Id;
46
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/id-payload-plugin",
3
- "version": "3.9.1",
3
+ "version": "3.9.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,8 +30,8 @@
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.1",
34
- "@xyo-network/payload-plugin": "^3.9.1"
33
+ "@xyo-network/payload-model": "^3.9.3",
34
+ "@xyo-network/payload-plugin": "^3.9.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@xylabs/ts-scripts-yarn3": "^5.0.24",