@nextera.one/axis-server-sdk 2.1.9 → 2.2.1

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,3 +1,24 @@
1
+ import { AxisFrame } from '@nextera.one/axis-protocol';
1
2
  export * from '@nextera.one/axis-protocol';
2
- export { A as AxisError, a as AxisFrameZ, c as computeReceiptHash, b as computeSignaturePayload, g as generateEd25519KeyPair, s as sha256, d as signFrame, v as verifyFrameSignature } from '../index-VxXqZPuH.mjs';
3
- import 'zod';
3
+ import * as z from 'zod';
4
+
5
+ declare const AxisFrameZ: z.ZodType<AxisFrame>;
6
+
7
+ declare function computeSignaturePayload(frame: AxisFrame): Buffer;
8
+ declare function signFrame(frame: AxisFrame, privateKey: Buffer): Buffer;
9
+ declare function verifyFrameSignature(frame: AxisFrame, publicKey: Buffer): boolean;
10
+ declare function generateEd25519KeyPair(): {
11
+ privateKey: Buffer;
12
+ publicKey: Buffer;
13
+ };
14
+ declare function sha256(data: Buffer | Uint8Array): Buffer;
15
+ declare function computeReceiptHash(receiptBytes: Buffer | Uint8Array, prevHash?: Buffer | Uint8Array): Buffer;
16
+
17
+ declare class AxisError extends Error {
18
+ code: string;
19
+ httpStatus: number;
20
+ details?: Record<string, any> | undefined;
21
+ constructor(code: string, message: string, httpStatus?: number, details?: Record<string, any> | undefined);
22
+ }
23
+
24
+ export { AxisError, AxisFrameZ, computeReceiptHash, computeSignaturePayload, generateEd25519KeyPair, sha256, signFrame, verifyFrameSignature };
@@ -1,3 +1,24 @@
1
+ import { AxisFrame } from '@nextera.one/axis-protocol';
1
2
  export * from '@nextera.one/axis-protocol';
2
- export { A as AxisError, a as AxisFrameZ, c as computeReceiptHash, b as computeSignaturePayload, g as generateEd25519KeyPair, s as sha256, d as signFrame, v as verifyFrameSignature } from '../index-VxXqZPuH.js';
3
- import 'zod';
3
+ import * as z from 'zod';
4
+
5
+ declare const AxisFrameZ: z.ZodType<AxisFrame>;
6
+
7
+ declare function computeSignaturePayload(frame: AxisFrame): Buffer;
8
+ declare function signFrame(frame: AxisFrame, privateKey: Buffer): Buffer;
9
+ declare function verifyFrameSignature(frame: AxisFrame, publicKey: Buffer): boolean;
10
+ declare function generateEd25519KeyPair(): {
11
+ privateKey: Buffer;
12
+ publicKey: Buffer;
13
+ };
14
+ declare function sha256(data: Buffer | Uint8Array): Buffer;
15
+ declare function computeReceiptHash(receiptBytes: Buffer | Uint8Array, prevHash?: Buffer | Uint8Array): Buffer;
16
+
17
+ declare class AxisError extends Error {
18
+ code: string;
19
+ httpStatus: number;
20
+ details?: Record<string, any> | undefined;
21
+ constructor(code: string, message: string, httpStatus?: number, details?: Record<string, any> | undefined);
22
+ }
23
+
24
+ export { AxisError, AxisFrameZ, computeReceiptHash, computeSignaturePayload, generateEd25519KeyPair, sha256, signFrame, verifyFrameSignature };