@gr4vy/sdk 2.3.23 → 2.3.24
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/paymentoption.d.ts +3 -3
- package/models/components/paymentoption.d.ts.map +1 -1
- package/models/components/paymentoption.js +5 -5
- package/models/components/paymentoption.js.map +1 -1
- package/models/components/validationerror.d.ts +6 -0
- package/models/components/validationerror.d.ts.map +1 -1
- package/models/components/validationerror.js +9 -1
- package/models/components/validationerror.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/paymentoption.ts +14 -11
- package/src/models/components/validationerror.ts +20 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "2.3.
|
|
47
|
+
readonly sdkVersion: "2.3.24";
|
|
48
48
|
readonly genVersion: "2.918.1";
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.3.
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.3.24 2.918.1 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "2.3.
|
|
40
|
+
sdkVersion: "2.3.24",
|
|
41
41
|
genVersion: "2.918.1",
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 2.3.24 2.918.1 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -5,7 +5,7 @@ import { GooglePayPaymentOptionContext } from "./googlepaypaymentoptioncontext.j
|
|
|
5
5
|
import { Mode } from "./mode.js";
|
|
6
6
|
import { PaymentOptionContext } from "./paymentoptioncontext.js";
|
|
7
7
|
import { WalletPaymentOptionContext } from "./walletpaymentoptioncontext.js";
|
|
8
|
-
export type
|
|
8
|
+
export type PaymentOptionContextContext = GooglePayPaymentOptionContext | WalletPaymentOptionContext | PaymentOptionContext;
|
|
9
9
|
export type PaymentOption = {
|
|
10
10
|
type: "payment-option";
|
|
11
11
|
method: string;
|
|
@@ -17,8 +17,8 @@ export type PaymentOption = {
|
|
|
17
17
|
context?: GooglePayPaymentOptionContext | WalletPaymentOptionContext | PaymentOptionContext | null | undefined;
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
|
-
export declare const
|
|
21
|
-
export declare function
|
|
20
|
+
export declare const PaymentOptionContextContext$inboundSchema: z.ZodType<PaymentOptionContextContext, z.ZodTypeDef, unknown>;
|
|
21
|
+
export declare function paymentOptionContextContextFromJSON(jsonString: string): SafeParseResult<PaymentOptionContextContext, SDKValidationError>;
|
|
22
22
|
/** @internal */
|
|
23
23
|
export declare const PaymentOption$inboundSchema: z.ZodType<PaymentOption, z.ZodTypeDef, unknown>;
|
|
24
24
|
export declare function paymentOptionFromJSON(jsonString: string): SafeParseResult<PaymentOption, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentoption.d.ts","sourceRoot":"","sources":["../../src/models/components/paymentoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAA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CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAsBP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PaymentOption$inboundSchema = exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.PaymentOption$inboundSchema = exports.PaymentOptionContextContext$inboundSchema = void 0;
|
|
40
|
+
exports.paymentOptionContextContextFromJSON = paymentOptionContextContextFromJSON;
|
|
41
41
|
exports.paymentOptionFromJSON = paymentOptionFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -47,13 +47,13 @@ const mode_js_1 = require("./mode.js");
|
|
|
47
47
|
const paymentoptioncontext_js_1 = require("./paymentoptioncontext.js");
|
|
48
48
|
const walletpaymentoptioncontext_js_1 = require("./walletpaymentoptioncontext.js");
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
50
|
+
exports.PaymentOptionContextContext$inboundSchema = z.union([
|
|
51
51
|
googlepaypaymentoptioncontext_js_1.GooglePayPaymentOptionContext$inboundSchema,
|
|
52
52
|
walletpaymentoptioncontext_js_1.WalletPaymentOptionContext$inboundSchema,
|
|
53
53
|
paymentoptioncontext_js_1.PaymentOptionContext$inboundSchema,
|
|
54
54
|
]);
|
|
55
|
-
function
|
|
56
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
55
|
+
function paymentOptionContextContextFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaymentOptionContextContext$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentOptionContextContext' from JSON`);
|
|
57
57
|
}
|
|
58
58
|
/** @internal */
|
|
59
59
|
exports.PaymentOption$inboundSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentoption.js","sourceRoot":"","sources":["../../src/models/components/paymentoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"paymentoption.js","sourceRoot":"","sources":["../../src/models/components/paymentoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,kFAQC;AA8BD,sDAQC;AAjGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,yFAG4C;AAC5C,uCAAqD;AACrD,uEAGmC;AACnC,mFAGyC;AAuBzC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,8EAA2C;IAC3C,wEAAwC;IACxC,4DAAkC;CACnC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,4BAAkB;IACxB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,wBAAwB,EAAE,CAAC,CAAC,OAAO,EAAE;IACrC,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC,CAAC,KAAK,CAAC;QACN,8EAA2C;QAC3C,wEAAwC;QACxC,4DAAkC;KACnC,CAAC,CACH,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,0BAA0B,EAAE,uBAAuB;QACnD,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -2,15 +2,21 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type Loc = string | number;
|
|
5
|
+
export type Context = {};
|
|
5
6
|
export type ValidationError = {
|
|
6
7
|
loc: Array<string | number>;
|
|
7
8
|
msg: string;
|
|
8
9
|
type: string;
|
|
10
|
+
input?: any | undefined;
|
|
11
|
+
ctx?: Context | undefined;
|
|
9
12
|
};
|
|
10
13
|
/** @internal */
|
|
11
14
|
export declare const Loc$inboundSchema: z.ZodType<Loc, z.ZodTypeDef, unknown>;
|
|
12
15
|
export declare function locFromJSON(jsonString: string): SafeParseResult<Loc, SDKValidationError>;
|
|
13
16
|
/** @internal */
|
|
17
|
+
export declare const Context$inboundSchema: z.ZodType<Context, z.ZodTypeDef, unknown>;
|
|
18
|
+
export declare function contextFromJSON(jsonString: string): SafeParseResult<Context, SDKValidationError>;
|
|
19
|
+
/** @internal */
|
|
14
20
|
export declare const ValidationError$inboundSchema: z.ZodType<ValidationError, z.ZodTypeDef, unknown>;
|
|
15
21
|
export declare function validationErrorFromJSON(jsonString: string): SafeParseResult<ValidationError, SDKValidationError>;
|
|
16
22
|
//# sourceMappingURL=validationerror.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/validationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"validationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/validationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAEnE,CAAC;AAEF,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAM1C;AAED,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAC9D,CAAC;AAEf,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C;AAED,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ValidationError$inboundSchema = exports.Loc$inboundSchema = void 0;
|
|
39
|
+
exports.ValidationError$inboundSchema = exports.Context$inboundSchema = exports.Loc$inboundSchema = void 0;
|
|
40
40
|
exports.locFromJSON = locFromJSON;
|
|
41
|
+
exports.contextFromJSON = contextFromJSON;
|
|
41
42
|
exports.validationErrorFromJSON = validationErrorFromJSON;
|
|
42
43
|
const z = __importStar(require("zod/v3"));
|
|
43
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -47,10 +48,17 @@ function locFromJSON(jsonString) {
|
|
|
47
48
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Loc$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Loc' from JSON`);
|
|
48
49
|
}
|
|
49
50
|
/** @internal */
|
|
51
|
+
exports.Context$inboundSchema = z.object({});
|
|
52
|
+
function contextFromJSON(jsonString) {
|
|
53
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Context$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Context' from JSON`);
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
50
56
|
exports.ValidationError$inboundSchema = z.object({
|
|
51
57
|
loc: z.array(z.union([z.string(), z.number().int()])),
|
|
52
58
|
msg: z.string(),
|
|
53
59
|
type: z.string(),
|
|
60
|
+
input: z.any().optional(),
|
|
61
|
+
ctx: z.lazy(() => exports.Context$inboundSchema).optional(),
|
|
54
62
|
});
|
|
55
63
|
function validationErrorFromJSON(jsonString) {
|
|
56
64
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ValidationError' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerror.js","sourceRoot":"","sources":["../../src/models/components/validationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"validationerror.js","sourceRoot":"","sources":["../../src/models/components/validationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;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AE;CACpD,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "2.3.
|
|
80
|
+
sdkVersion: "2.3.24",
|
|
81
81
|
genVersion: "2.918.1",
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.3.24 2.918.1 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
WalletPaymentOptionContext$inboundSchema,
|
|
22
22
|
} from "./walletpaymentoptioncontext.js";
|
|
23
23
|
|
|
24
|
-
export type
|
|
24
|
+
export type PaymentOptionContextContext =
|
|
25
25
|
| GooglePayPaymentOptionContext
|
|
26
26
|
| WalletPaymentOptionContext
|
|
27
27
|
| PaymentOptionContext;
|
|
@@ -43,20 +43,23 @@ export type PaymentOption = {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
|
-
export const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
export const PaymentOptionContextContext$inboundSchema: z.ZodType<
|
|
47
|
+
PaymentOptionContextContext,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.union([
|
|
51
|
+
GooglePayPaymentOptionContext$inboundSchema,
|
|
52
|
+
WalletPaymentOptionContext$inboundSchema,
|
|
53
|
+
PaymentOptionContext$inboundSchema,
|
|
54
|
+
]);
|
|
52
55
|
|
|
53
|
-
export function
|
|
56
|
+
export function paymentOptionContextContextFromJSON(
|
|
54
57
|
jsonString: string,
|
|
55
|
-
): SafeParseResult<
|
|
58
|
+
): SafeParseResult<PaymentOptionContextContext, SDKValidationError> {
|
|
56
59
|
return safeParse(
|
|
57
60
|
jsonString,
|
|
58
|
-
(x) =>
|
|
59
|
-
`Failed to parse '
|
|
61
|
+
(x) => PaymentOptionContextContext$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'PaymentOptionContextContext' from JSON`,
|
|
60
63
|
);
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -9,10 +9,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type Loc = string | number;
|
|
11
11
|
|
|
12
|
+
export type Context = {};
|
|
13
|
+
|
|
12
14
|
export type ValidationError = {
|
|
13
15
|
loc: Array<string | number>;
|
|
14
16
|
msg: string;
|
|
15
17
|
type: string;
|
|
18
|
+
input?: any | undefined;
|
|
19
|
+
ctx?: Context | undefined;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
22
|
/** @internal */
|
|
@@ -30,6 +34,20 @@ export function locFromJSON(
|
|
|
30
34
|
);
|
|
31
35
|
}
|
|
32
36
|
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Context$inboundSchema: z.ZodType<Context, z.ZodTypeDef, unknown> =
|
|
39
|
+
z.object({});
|
|
40
|
+
|
|
41
|
+
export function contextFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<Context, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => Context$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'Context' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
33
51
|
/** @internal */
|
|
34
52
|
export const ValidationError$inboundSchema: z.ZodType<
|
|
35
53
|
ValidationError,
|
|
@@ -39,6 +57,8 @@ export const ValidationError$inboundSchema: z.ZodType<
|
|
|
39
57
|
loc: z.array(z.union([z.string(), z.number().int()])),
|
|
40
58
|
msg: z.string(),
|
|
41
59
|
type: z.string(),
|
|
60
|
+
input: z.any().optional(),
|
|
61
|
+
ctx: z.lazy(() => Context$inboundSchema).optional(),
|
|
42
62
|
});
|
|
43
63
|
|
|
44
64
|
export function validationErrorFromJSON(
|