@agentdock/wire 0.0.95 → 0.0.96

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.
@@ -0,0 +1,120 @@
1
+ import { z } from 'zod';
2
+
3
+ export declare const ENTERPRISE_CURRENCIES: readonly ["USD", "CNY"];
4
+ export type EnterpriseCurrencyCode = (typeof ENTERPRISE_CURRENCIES)[number];
5
+ export declare const EnterpriseCurrencyCodeSchema: z.ZodEnum<["USD", "CNY"]>;
6
+ export declare const DisplayCurrencyConfigSchema: z.ZodObject<{
7
+
8
+ code: z.ZodString;
9
+ symbol: z.ZodString;
10
+
11
+ rate: z.ZodNumber;
12
+
13
+ fxRates: z.ZodRecord<z.ZodString, z.ZodNumber>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ symbol: string;
16
+ code: string;
17
+ rate: number;
18
+ fxRates: Record<string, number>;
19
+ }, {
20
+ symbol: string;
21
+ code: string;
22
+ rate: number;
23
+ fxRates: Record<string, number>;
24
+ }>;
25
+ export type DisplayCurrencyConfig = z.infer<typeof DisplayCurrencyConfigSchema>;
26
+
27
+ export declare const DisplayCurrencySettingsResponseSchema: z.ZodObject<{
28
+ ok: z.ZodLiteral<true>;
29
+ currency: z.ZodObject<{
30
+
31
+ code: z.ZodString;
32
+ symbol: z.ZodString;
33
+
34
+ rate: z.ZodNumber;
35
+
36
+ fxRates: z.ZodRecord<z.ZodString, z.ZodNumber>;
37
+ }, "strict", z.ZodTypeAny, {
38
+ symbol: string;
39
+ code: string;
40
+ rate: number;
41
+ fxRates: Record<string, number>;
42
+ }, {
43
+ symbol: string;
44
+ code: string;
45
+ rate: number;
46
+ fxRates: Record<string, number>;
47
+ }>;
48
+
49
+ missing: z.ZodArray<z.ZodString, "many">;
50
+ }, "strict", z.ZodTypeAny, {
51
+ ok: true;
52
+ currency: {
53
+ symbol: string;
54
+ code: string;
55
+ rate: number;
56
+ fxRates: Record<string, number>;
57
+ };
58
+ missing: string[];
59
+ }, {
60
+ ok: true;
61
+ currency: {
62
+ symbol: string;
63
+ code: string;
64
+ rate: number;
65
+ fxRates: Record<string, number>;
66
+ };
67
+ missing: string[];
68
+ }>;
69
+ export type DisplayCurrencySettings = z.infer<typeof DisplayCurrencySettingsResponseSchema>;
70
+
71
+ export declare const DisplayCurrencyConfigResponseSchema: z.ZodObject<{
72
+ ok: z.ZodLiteral<true>;
73
+ currency: z.ZodObject<{
74
+
75
+ code: z.ZodString;
76
+ symbol: z.ZodString;
77
+
78
+ rate: z.ZodNumber;
79
+
80
+ fxRates: z.ZodRecord<z.ZodString, z.ZodNumber>;
81
+ }, "strict", z.ZodTypeAny, {
82
+ symbol: string;
83
+ code: string;
84
+ rate: number;
85
+ fxRates: Record<string, number>;
86
+ }, {
87
+ symbol: string;
88
+ code: string;
89
+ rate: number;
90
+ fxRates: Record<string, number>;
91
+ }>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ ok: true;
94
+ currency: {
95
+ symbol: string;
96
+ code: string;
97
+ rate: number;
98
+ fxRates: Record<string, number>;
99
+ };
100
+ }, {
101
+ ok: true;
102
+ currency: {
103
+ symbol: string;
104
+ code: string;
105
+ rate: number;
106
+ fxRates: Record<string, number>;
107
+ };
108
+ }>;
109
+
110
+ export declare const UpdateDisplayCurrencyBodySchema: z.ZodObject<{
111
+ code: z.ZodEnum<["USD", "CNY"]>;
112
+ fxRates: z.ZodRecord<z.ZodEnum<["USD", "CNY"]>, z.ZodNumber>;
113
+ }, "strict", z.ZodTypeAny, {
114
+ code: "USD" | "CNY";
115
+ fxRates: Partial<Record<"USD" | "CNY", number>>;
116
+ }, {
117
+ code: "USD" | "CNY";
118
+ fxRates: Partial<Record<"USD" | "CNY", number>>;
119
+ }>;
120
+ export type UpdateDisplayCurrencyBody = z.infer<typeof UpdateDisplayCurrencyBodySchema>;
@@ -0,0 +1 @@
1
+ "use strict";import{z as e}from"zod";export const ENTERPRISE_CURRENCIES=["USD","CNY"],EnterpriseCurrencyCodeSchema=e.enum(ENTERPRISE_CURRENCIES),DisplayCurrencyConfigSchema=e.object({code:e.string().regex(/^[A-Z]{3}$/),symbol:e.string(),rate:e.number().positive().finite(),fxRates:e.record(e.string().regex(/^[A-Z]{3}$/),e.number().positive().finite())}).strict(),DisplayCurrencySettingsResponseSchema=e.object({ok:e.literal(!0),currency:DisplayCurrencyConfigSchema,missing:e.array(e.string().regex(/^[A-Z]{3}$/))}).strict(),DisplayCurrencyConfigResponseSchema=e.object({ok:e.literal(!0),currency:DisplayCurrencyConfigSchema}).strict(),UpdateDisplayCurrencyBodySchema=e.object({code:EnterpriseCurrencyCodeSchema,fxRates:e.record(EnterpriseCurrencyCodeSchema,e.number().positive().finite())}).strict();