@xyo-network/signature-payload-plugin 3.1.2 → 3.2.0-rc.2
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.
|
@@ -18,19 +18,17 @@ export type Signature = Payload<SignatureFields, SignatureSchema>;
|
|
|
18
18
|
/**
|
|
19
19
|
* Identity function for determine if an object is a Signature
|
|
20
20
|
*/
|
|
21
|
-
export declare const isSignature: (x?: unknown | null) => x is import("
|
|
22
|
-
schema: "network.xyo.signing.signature";
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Identity function for determine if an object is a Signature with sources
|
|
26
|
-
*/
|
|
27
|
-
export declare const isSignatureWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
|
|
21
|
+
export declare const isSignature: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
28
22
|
schema: "network.xyo.signing.signature";
|
|
23
|
+
digestAlgorithm: Digest;
|
|
24
|
+
signature: string;
|
|
29
25
|
}>;
|
|
30
26
|
/**
|
|
31
|
-
* Identity function for determine if an object is a Signature with
|
|
27
|
+
* Identity function for determine if an object is a Signature with sources
|
|
32
28
|
*/
|
|
33
|
-
export declare const
|
|
29
|
+
export declare const isSignatureWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
34
30
|
schema: "network.xyo.signing.signature";
|
|
35
|
-
|
|
31
|
+
digestAlgorithm: Digest;
|
|
32
|
+
signature: string;
|
|
33
|
+
}>>;
|
|
36
34
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
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;;qBAfL,MAAM;eAIZ,MAAM;EAWyD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB;;qBApBhB,MAAM;eAIZ,MAAM;GAgB+E,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// src/Payload.ts
|
|
2
|
-
import {
|
|
3
|
-
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithMeta,
|
|
5
|
-
isPayloadOfSchemaTypeWithSources
|
|
6
|
-
} from "@xyo-network/payload-model";
|
|
2
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
|
|
7
3
|
|
|
8
4
|
// src/Schema.ts
|
|
9
5
|
var SignatureSchema = "network.xyo.signing.signature";
|
|
@@ -11,11 +7,9 @@ var SignatureSchema = "network.xyo.signing.signature";
|
|
|
11
7
|
// src/Payload.ts
|
|
12
8
|
var isSignature = isPayloadOfSchemaType(SignatureSchema);
|
|
13
9
|
var isSignatureWithSources = isPayloadOfSchemaTypeWithSources(SignatureSchema);
|
|
14
|
-
var isSignatureWithMeta = isPayloadOfSchemaTypeWithMeta(SignatureSchema);
|
|
15
10
|
export {
|
|
16
11
|
SignatureSchema,
|
|
17
12
|
isSignature,
|
|
18
|
-
isSignatureWithMeta,
|
|
19
13
|
isSignatureWithSources
|
|
20
14
|
};
|
|
21
15
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport {
|
|
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":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/signature-payload-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-rc.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.
|
|
32
|
+
"@xyo-network/payload-model": "^3.6.0-rc.11"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
|
36
|
-
"@xylabs/tsconfig": "^4.2.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
36
|
+
"@xylabs/tsconfig": "^4.2.6",
|
|
37
37
|
"typescript": "^5.7.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"stableVersion": "3.1.2"
|
|
42
43
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
import {
|
|
3
|
-
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
|
|
4
|
-
} from '@xyo-network/payload-model'
|
|
2
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
5
3
|
|
|
6
4
|
import { SignatureSchema } from './Schema.ts'
|
|
7
5
|
|
|
@@ -36,8 +34,3 @@ export const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)
|
|
|
36
34
|
* Identity function for determine if an object is a Signature with sources
|
|
37
35
|
*/
|
|
38
36
|
export const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Identity function for determine if an object is a Signature with meta
|
|
42
|
-
*/
|
|
43
|
-
export const isSignatureWithMeta = isPayloadOfSchemaTypeWithMeta<Signature>(SignatureSchema)
|