@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
package/dist/index.d.ts
CHANGED
|
@@ -546,12 +546,30 @@ declare class HandshakeError extends T3nError {
|
|
|
546
546
|
constructor(message: string);
|
|
547
547
|
}
|
|
548
548
|
/**
|
|
549
|
-
* Error thrown during RPC communication
|
|
549
|
+
* Error thrown during RPC communication.
|
|
550
|
+
*
|
|
551
|
+
* `message` is the human-readable error (preferring the server's
|
|
552
|
+
* `error.data.detail` when present, with the request id appended in
|
|
553
|
+
* `[<id>]` form so a UI that only surfaces `.message` still gives an
|
|
554
|
+
* operator something to grep). The structured fields below preserve
|
|
555
|
+
* the same info for callers that want to render or log them
|
|
556
|
+
* separately — e.g. a toast that shows `detail` but surfaces
|
|
557
|
+
* `requestId` in a "copy for support" affordance.
|
|
550
558
|
*/
|
|
551
559
|
declare class RpcError extends T3nError {
|
|
552
560
|
readonly rpcMethod?: string | undefined;
|
|
553
561
|
readonly httpStatus?: number | undefined;
|
|
554
|
-
|
|
562
|
+
/** Server-attached detail (JSON-RPC `error.data.detail`). User-facing kinds
|
|
563
|
+
* carry the specific reason here; internal kinds omit it. */
|
|
564
|
+
readonly detail?: string | undefined;
|
|
565
|
+
/** Per-request correlation id (JSON-RPC `error.data.request_id`). */
|
|
566
|
+
readonly requestId?: string | undefined;
|
|
567
|
+
constructor(message: string, rpcMethod?: string | undefined, httpStatus?: number | undefined,
|
|
568
|
+
/** Server-attached detail (JSON-RPC `error.data.detail`). User-facing kinds
|
|
569
|
+
* carry the specific reason here; internal kinds omit it. */
|
|
570
|
+
detail?: string | undefined,
|
|
571
|
+
/** Per-request correlation id (JSON-RPC `error.data.request_id`). */
|
|
572
|
+
requestId?: string | undefined);
|
|
555
573
|
}
|
|
556
574
|
/**
|
|
557
575
|
* Error thrown when WASM operations fail
|