@iota-uz/sdk 0.4.34 → 0.4.35

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,31 @@
1
+ interface AppletRPCError {
2
+ code: string;
3
+ message: string;
4
+ details?: unknown;
5
+ }
6
+ declare class AppletRPCException extends Error {
7
+ code: string;
8
+ details?: unknown;
9
+ cause?: unknown;
10
+ constructor(args: {
11
+ code: string;
12
+ message: string;
13
+ details?: unknown;
14
+ cause?: unknown;
15
+ });
16
+ }
17
+ type AppletRPCSchema = Record<string, {
18
+ params: unknown;
19
+ result: unknown;
20
+ }>;
21
+ interface CreateAppletRPCClientOptions {
22
+ endpoint: string;
23
+ fetcher?: typeof fetch;
24
+ timeoutMs?: number;
25
+ }
26
+ declare function createAppletRPCClient(options: CreateAppletRPCClientOptions): {
27
+ call: <TParams, TResult>(method: string, params: TParams) => Promise<TResult>;
28
+ callTyped: <TRouter extends AppletRPCSchema, TMethod extends keyof TRouter & string>(method: TMethod, params: TRouter[TMethod]["params"]) => Promise<TRouter[TMethod]["result"]>;
29
+ };
30
+
31
+ export { type AppletRPCError as A, AppletRPCException as a, type AppletRPCSchema as b, createAppletRPCClient as c };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iota-uz/sdk",
3
- "version": "0.4.34",
3
+ "version": "0.4.35",
4
4
  "description": "IOTA SDK UI utilities, Tailwind configuration, and React components for building IOTA SDK applets.",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -118,6 +118,8 @@
118
118
  "@storybook/test": "8.6.15",
119
119
  "@tailwindcss/cli": "4.1.18",
120
120
  "@tailwindcss/typography": "^0.5.19",
121
+ "@testing-library/dom": "^10.4.1",
122
+ "@testing-library/react": "^16.3.2",
121
123
  "@types/node": "^25.2.1",
122
124
  "@types/react": "^18.3.3",
123
125
  "@types/react-dom": "^18.3.0",
@@ -126,6 +128,7 @@
126
128
  "eslint-plugin-react": "^7.37.5",
127
129
  "eslint-plugin-react-hooks": "^5.2.0",
128
130
  "globals": "^15.15.0",
131
+ "jsdom": "^29.0.2",
129
132
  "storybook": "8.6.15",
130
133
  "tailwindcss": "4.1.18",
131
134
  "tsup": "^8.5.0",