@encatch/schema 1.2.0-beta.14 → 1.2.0-beta.16
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/esm/index.js
CHANGED
|
@@ -1675,8 +1675,11 @@ var PaymentsUpiAnswerSchema = z3.object({
|
|
|
1675
1675
|
encatchPaymentReference: z3.string().describe(
|
|
1676
1676
|
"Opaque Encatch-generated reconciliation reference included in the UPI intent"
|
|
1677
1677
|
),
|
|
1678
|
-
amount: z3.
|
|
1679
|
-
|
|
1678
|
+
amount: z3.string().trim().refine((s) => {
|
|
1679
|
+
const n = Number(s);
|
|
1680
|
+
return Number.isFinite(n) && n > 0;
|
|
1681
|
+
}, { message: "Amount must be a positive numeric value" }).describe(
|
|
1682
|
+
"INR amount shown to the respondent when the payment instruction was generated, as a decimal string (legacy numeric values are accepted when parsing)"
|
|
1680
1683
|
),
|
|
1681
1684
|
currency: z3.literal("INR").describe("Currency for UPI payments"),
|
|
1682
1685
|
payeeVpa: z3.string().describe("UPI VPA shown to the respondent"),
|
|
@@ -2044,7 +2047,7 @@ var imageAttachmentSchema = z8.object({
|
|
|
2044
2047
|
decorative: z8.boolean().default(false).describe(
|
|
2045
2048
|
"When true the image is purely visual; screen readers skip it and description is not surfaced as alt text"
|
|
2046
2049
|
),
|
|
2047
|
-
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100
|
|
2050
|
+
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment rendered with a black/white overlay: -100 fully black, 0 unchanged, +100 fully white."),
|
|
2048
2051
|
focalPoint: focalPointSchema.optional()
|
|
2049
2052
|
}).optional().describe("Optional display properties for the image")
|
|
2050
2053
|
}).describe("Image attachment for section layouts");
|
|
@@ -2057,7 +2060,7 @@ var videoAttachmentSchema = z8.object({
|
|
|
2057
2060
|
properties: z8.object({
|
|
2058
2061
|
description: z8.string().optional().describe("Accessible description of the video"),
|
|
2059
2062
|
decorative: z8.boolean().default(false).describe("When true the video is purely decorative and screen readers skip it"),
|
|
2060
|
-
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100
|
|
2063
|
+
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment rendered with a black/white overlay: -100 fully black, 0 unchanged, +100 fully white.")
|
|
2061
2064
|
}).optional().describe("Optional display properties for the video")
|
|
2062
2065
|
}).describe("Video attachment for section layouts (external embed or self-hosted CDN)");
|
|
2063
2066
|
var colorAttachmentSchema = z8.object({
|