@xyo-network/signature-payload-plugin 3.4.2 → 3.4.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.
@@ -0,0 +1,26 @@
1
+ import { 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,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,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"}
@@ -1,16 +1,3 @@
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 };
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"}
@@ -1,5 +1,8 @@
1
1
  // src/Payload.ts
2
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
2
+ import {
3
+ isPayloadOfSchemaType,
4
+ isPayloadOfSchemaTypeWithSources
5
+ } from "@xyo-network/payload-model";
3
6
 
4
7
  // src/Schema.ts
5
8
  var SignatureSchema = "network.xyo.signing.signature";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","export const SignatureSchema = 'network.xyo.signing.signature' as const\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AACA,SAAS,uBAAuB,wCAAwC;;;ACDjE,IAAM,kBAAkB;;;AD8BxB,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\n} from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","export const SignatureSchema = 'network.xyo.signing.signature' as const\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACFA,IAAM,kBAAkB;;;AD+BxB,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;","names":[]}
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.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,12 +29,12 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^3.9.16"
32
+ "@xyo-network/payload-model": "^3.9.23"
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": "^5.0.39",
36
+ "@xylabs/tsconfig": "^5.0.39",
37
+ "typescript": "^5.8.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
package/src/Payload.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
1
+ import {
2
+ isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,
3
+ } from '@xyo-network/payload-model'
3
4
 
4
5
  import { SignatureSchema } from './Schema.ts'
5
6
 
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},