@stim-cli/core 1.17.2 → 1.19.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.
@@ -8,5 +8,18 @@ declare function isRpcEvent(value: unknown): value is PhoneServerEvent;
8
8
  declare function isRpcError(value: unknown): value is PhoneProtocolError;
9
9
  /** Unknown future events can be ignored without reconnecting to a newer server. */
10
10
  declare function isRpcEventName(value: string): boolean;
11
+ /** Why a validator rejected a value, described by the schema alone: no instance path and no value. */
12
+ interface RpcIssue {
13
+ keyword: string;
14
+ schemaPath: string;
15
+ missingProperty?: string;
16
+ expectedType?: string;
17
+ }
18
+ /** The first schema violation of a result for `method`, or null when it is valid. */
19
+ declare function rpcResultIssue<M extends PhoneMethod>(method: M, value: unknown): RpcIssue | null;
20
+ /** The first schema violation of a phone event, or null when it is valid. */
21
+ declare function rpcEventIssue(value: unknown): RpcIssue | null;
22
+ /** The first schema violation of an RPC error object, or null when it is valid. */
23
+ declare function rpcErrorIssue(value: unknown): RpcIssue | null;
11
24
  //#endregion
12
- export { isRpcError, isRpcEvent, isRpcEventName, isRpcResult };
25
+ export { RpcIssue, isRpcError, isRpcEvent, isRpcEventName, isRpcResult, rpcErrorIssue, rpcEventIssue, rpcResultIssue };