@terminal3/t3n-sdk 1.2.0 → 1.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.
- package/dist/index.d.ts +20 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/utils/errors.d.ts +20 -2
- package/package.json +1 -1
|
@@ -29,12 +29,30 @@ export declare class HandshakeError extends T3nError {
|
|
|
29
29
|
constructor(message: string);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Error thrown during RPC communication
|
|
32
|
+
* Error thrown during RPC communication.
|
|
33
|
+
*
|
|
34
|
+
* `message` is the human-readable error (preferring the server's
|
|
35
|
+
* `error.data.detail` when present, with the request id appended in
|
|
36
|
+
* `[<id>]` form so a UI that only surfaces `.message` still gives an
|
|
37
|
+
* operator something to grep). The structured fields below preserve
|
|
38
|
+
* the same info for callers that want to render or log them
|
|
39
|
+
* separately — e.g. a toast that shows `detail` but surfaces
|
|
40
|
+
* `requestId` in a "copy for support" affordance.
|
|
33
41
|
*/
|
|
34
42
|
export declare class RpcError extends T3nError {
|
|
35
43
|
readonly rpcMethod?: string | undefined;
|
|
36
44
|
readonly httpStatus?: number | undefined;
|
|
37
|
-
|
|
45
|
+
/** Server-attached detail (JSON-RPC `error.data.detail`). User-facing kinds
|
|
46
|
+
* carry the specific reason here; internal kinds omit it. */
|
|
47
|
+
readonly detail?: string | undefined;
|
|
48
|
+
/** Per-request correlation id (JSON-RPC `error.data.request_id`). */
|
|
49
|
+
readonly requestId?: string | undefined;
|
|
50
|
+
constructor(message: string, rpcMethod?: string | undefined, httpStatus?: number | undefined,
|
|
51
|
+
/** Server-attached detail (JSON-RPC `error.data.detail`). User-facing kinds
|
|
52
|
+
* carry the specific reason here; internal kinds omit it. */
|
|
53
|
+
detail?: string | undefined,
|
|
54
|
+
/** Per-request correlation id (JSON-RPC `error.data.request_id`). */
|
|
55
|
+
requestId?: string | undefined);
|
|
38
56
|
}
|
|
39
57
|
/**
|
|
40
58
|
* Error thrown when WASM operations fail
|