@xyo-network/signature-payload-plugin 3.4.2 → 3.4.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.
@@ -0,0 +1,26 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { SignatureSchema } from './Schema.ts';
3
+ export type Digest = 'sha512' | 'sha3-256';
4
+ export interface SignatureFields {
5
+ /**
6
+ * The digest algorithm used to create the signature
7
+ */
8
+ digestAlgorithm: Digest;
9
+ /**
10
+ * The signature
11
+ */
12
+ signature: string;
13
+ }
14
+ /**
15
+ * A Signature Payload
16
+ */
17
+ export type Signature = Payload<SignatureFields, SignatureSchema>;
18
+ /**
19
+ * Identity function for determine if an object is a Signature
20
+ */
21
+ export declare const isSignature: (x?: unknown | null) => x is Signature;
22
+ /**
23
+ * Identity function for determine if an object is a Signature with sources
24
+ */
25
+ export declare const isSignatureWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Signature>;
26
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAM7C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,WAAW,wCAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB,0FAA+D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const SignatureSchema: "network.xyo.signing.signature";
2
+ export type SignatureSchema = typeof SignatureSchema;
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,eAAe,EAAG,+BAAwC,CAAA;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# 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,cAAc,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/signature-payload-plugin",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,20 +21,20 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/neutral/index.d.ts",
24
+ "types": "./dist/types/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/neutral/index.d.ts",
30
+ "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^3.9.16"
32
+ "@xyo-network/payload-model": "^3.9.36"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
36
- "@xylabs/tsconfig": "^5.0.24",
37
- "typescript": "^5.7.3"
35
+ "@xylabs/ts-scripts-yarn3": "^6.0.5",
36
+ "@xylabs/tsconfig": "^6.0.5",
37
+ "typescript": "^5.8.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -1,16 +0,0 @@
1
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- declare const SignatureSchema: "network.xyo.signing.signature";
5
- type SignatureSchema = typeof SignatureSchema;
6
-
7
- type Digest = 'sha512' | 'sha3-256';
8
- interface SignatureFields {
9
- digestAlgorithm: Digest;
10
- signature: string;
11
- }
12
- type Signature = Payload<SignatureFields, SignatureSchema>;
13
- declare const isSignature: (x?: unknown | null) => x is Signature;
14
- declare const isSignatureWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Signature>;
15
-
16
- export { type Digest, type Signature, type SignatureFields, SignatureSchema, isSignature, isSignatureWithSources };