@majikah/sdk 1.0.0 → 1.1.0
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.
- package/dist/errors/MajikahError.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/transport/HttpClient.d.ts +2 -3
- package/dist/types/index.d.ts +1 -0
- package/package.json +10 -9
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ export * from "./errors";
|
|
|
2
2
|
export * from "./types";
|
|
3
3
|
export * from "./services";
|
|
4
4
|
export { MajikahSDKClient } from "./client/MajikahSDKClient";
|
|
5
|
-
export { HttpClient } from "./transport/HttpClient";
|
|
5
|
+
export { HttpClient, HttpRequestOptions } from "./transport/HttpClient";
|
|
6
|
+
export * from "@majikah/majik-notary";
|
|
6
7
|
export * from "@majikah/majik-key";
|
|
7
8
|
export * from "@majikah/majik-signature";
|
|
8
9
|
export { MajikUniversalID, type MajikUniversalIDJSON, type MajikID, type PublicProfile, type MajikKeyPublicBundle, type MajikSignerPublicKeys, type ResolvedSignerPublicKeys, MajikIDPublicView, MajikUser, } from "@majikah/majik-universal-id";
|
|
9
10
|
export { createMuidPublicKeyResolver } from "./services/muid/key-resolver";
|
|
10
11
|
export { base64ToBytes, bytesToBase64 } from "./services/shared/encoding";
|
|
12
|
+
export { resolveTargetSignature, type ResolveSignatureOptions, } from "./services/shared/resolve-signature";
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,10 @@ export * from "./types";
|
|
|
3
3
|
export * from "./services";
|
|
4
4
|
export { MajikahSDKClient } from "./client/MajikahSDKClient";
|
|
5
5
|
export { HttpClient } from "./transport/HttpClient";
|
|
6
|
+
export * from "@majikah/majik-notary";
|
|
6
7
|
export * from "@majikah/majik-key";
|
|
7
8
|
export * from "@majikah/majik-signature";
|
|
8
|
-
export { MajikUniversalID, } from "@majikah/majik-universal-id";
|
|
9
|
+
export { MajikUniversalID, MajikUser, } from "@majikah/majik-universal-id";
|
|
9
10
|
export { createMuidPublicKeyResolver } from "./services/muid/key-resolver";
|
|
10
11
|
export { base64ToBytes, bytesToBase64 } from "./services/shared/encoding";
|
|
12
|
+
export { resolveTargetSignature, } from "./services/shared/resolve-signature";
|
|
@@ -2,7 +2,7 @@ import { type MajikahClientOptions, type ServiceGroup } from "../types/common";
|
|
|
2
2
|
/**
|
|
3
3
|
* Options for an individual HTTP request made through the API client.
|
|
4
4
|
*/
|
|
5
|
-
interface
|
|
5
|
+
export interface HttpRequestOptions {
|
|
6
6
|
/** HTTP method used for the request. */
|
|
7
7
|
method: "GET" | "POST" | "DELETE";
|
|
8
8
|
/** Query parameters appended to the request URL. */
|
|
@@ -56,7 +56,7 @@ export declare class HttpClient {
|
|
|
56
56
|
* @throws MajikahError When the request fails or times out.
|
|
57
57
|
* @throws RateLimitError When the API rejects the request due to rate limits.
|
|
58
58
|
*/
|
|
59
|
-
request<T>(group: ServiceGroup, path: string, opts:
|
|
59
|
+
request<T>(group: ServiceGroup, path: string, opts: HttpRequestOptions): Promise<T>;
|
|
60
60
|
/**
|
|
61
61
|
* Builds a fully resolved API URL from a service route and query parameters.
|
|
62
62
|
*
|
|
@@ -82,4 +82,3 @@ export declare class HttpClient {
|
|
|
82
82
|
*/
|
|
83
83
|
private attempt;
|
|
84
84
|
}
|
|
85
|
-
export {};
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@majikah/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "Official TypeScript client SDK for the Majikah ecosystem, providing unified access to Majik Universal ID (MUID) identity verification, Time Stamping Authority (TSA) issuing, cryptographically signed link claims (SLink), and on-chain document notarization flows.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Majikah Solutions OPC",
|
|
@@ -53,15 +53,16 @@
|
|
|
53
53
|
"test:muid": "npx vitest test/sdk-muid.test.ts"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@majikah/majik-key": "^0.
|
|
57
|
-
"@majikah/majik-
|
|
58
|
-
"@majikah/majik-
|
|
59
|
-
"@majikah/majik-
|
|
56
|
+
"@majikah/majik-key": "^0.5.2",
|
|
57
|
+
"@majikah/majik-notary": "^0.1.1",
|
|
58
|
+
"@majikah/majik-signature": "^0.6.0",
|
|
59
|
+
"@majikah/majik-slink": "^0.2.3",
|
|
60
|
+
"@majikah/majik-universal-id": "^0.4.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^26.
|
|
63
|
-
"dotenv": "^
|
|
64
|
-
"
|
|
65
|
-
"vitest": "^5.0.
|
|
63
|
+
"@types/node": "^26.6.2",
|
|
64
|
+
"dotenv": "^18.0.1",
|
|
65
|
+
"typedoc": "^0.28.20",
|
|
66
|
+
"vitest": "^5.0.1"
|
|
66
67
|
}
|
|
67
68
|
}
|