shipflow 0.2.1 → 0.3.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.
@@ -1,832 +1,216 @@
1
1
  /**
2
- * Zod Validation Schemas for ShipFlow SDK
2
+ * Valibot Validation Schemas for ShipFlow SDK
3
3
  * Auto-validates inputs at SDK boundaries (createShipment, createPickup, etc.)
4
4
  */
5
- import { z } from "zod";
5
+ import * as v from "valibot";
6
6
  import type { CreateShipmentInput, PickupRequest } from "./types.js";
7
- export declare const NationalAddressSchema: z.ZodObject<{
8
- shortCode: z.ZodString;
9
- buildingNumber: z.ZodOptional<z.ZodString>;
10
- streetName: z.ZodOptional<z.ZodString>;
11
- district: z.ZodOptional<z.ZodString>;
12
- additionalNumber: z.ZodOptional<z.ZodString>;
13
- }, "strip", z.ZodTypeAny, {
14
- shortCode: string;
15
- buildingNumber?: string | undefined;
16
- streetName?: string | undefined;
17
- district?: string | undefined;
18
- additionalNumber?: string | undefined;
19
- }, {
20
- shortCode: string;
21
- buildingNumber?: string | undefined;
22
- streetName?: string | undefined;
23
- district?: string | undefined;
24
- additionalNumber?: string | undefined;
25
- }>;
26
- export declare const AddressSchema: z.ZodObject<{
27
- name: z.ZodString;
28
- company: z.ZodOptional<z.ZodString>;
29
- email: z.ZodOptional<z.ZodString>;
30
- phone: z.ZodString;
31
- line1: z.ZodString;
32
- line2: z.ZodOptional<z.ZodString>;
33
- neighbourhood: z.ZodOptional<z.ZodString>;
34
- city: z.ZodString;
35
- state: z.ZodOptional<z.ZodString>;
36
- postalCode: z.ZodOptional<z.ZodString>;
37
- countryCode: z.ZodString;
38
- coordinates: z.ZodOptional<z.ZodObject<{
39
- latitude: z.ZodNumber;
40
- longitude: z.ZodNumber;
41
- }, "strip", z.ZodTypeAny, {
42
- latitude: number;
43
- longitude: number;
44
- }, {
45
- latitude: number;
46
- longitude: number;
47
- }>>;
48
- description: z.ZodOptional<z.ZodString>;
49
- nationalAddress: z.ZodOptional<z.ZodObject<{
50
- shortCode: z.ZodString;
51
- buildingNumber: z.ZodOptional<z.ZodString>;
52
- streetName: z.ZodOptional<z.ZodString>;
53
- district: z.ZodOptional<z.ZodString>;
54
- additionalNumber: z.ZodOptional<z.ZodString>;
55
- }, "strip", z.ZodTypeAny, {
56
- shortCode: string;
57
- buildingNumber?: string | undefined;
58
- streetName?: string | undefined;
59
- district?: string | undefined;
60
- additionalNumber?: string | undefined;
61
- }, {
62
- shortCode: string;
63
- buildingNumber?: string | undefined;
64
- streetName?: string | undefined;
65
- district?: string | undefined;
66
- additionalNumber?: string | undefined;
67
- }>>;
68
- }, "strip", z.ZodTypeAny, {
69
- name: string;
70
- phone: string;
71
- line1: string;
72
- city: string;
73
- countryCode: string;
74
- company?: string | undefined;
75
- email?: string | undefined;
76
- line2?: string | undefined;
77
- neighbourhood?: string | undefined;
78
- state?: string | undefined;
79
- postalCode?: string | undefined;
80
- coordinates?: {
81
- latitude: number;
82
- longitude: number;
83
- } | undefined;
84
- description?: string | undefined;
85
- nationalAddress?: {
86
- shortCode: string;
87
- buildingNumber?: string | undefined;
88
- streetName?: string | undefined;
89
- district?: string | undefined;
90
- additionalNumber?: string | undefined;
91
- } | undefined;
92
- }, {
93
- name: string;
94
- phone: string;
95
- line1: string;
96
- city: string;
97
- countryCode: string;
98
- company?: string | undefined;
99
- email?: string | undefined;
100
- line2?: string | undefined;
101
- neighbourhood?: string | undefined;
102
- state?: string | undefined;
103
- postalCode?: string | undefined;
104
- coordinates?: {
105
- latitude: number;
106
- longitude: number;
107
- } | undefined;
108
- description?: string | undefined;
109
- nationalAddress?: {
110
- shortCode: string;
111
- buildingNumber?: string | undefined;
112
- streetName?: string | undefined;
113
- district?: string | undefined;
114
- additionalNumber?: string | undefined;
115
- } | undefined;
116
- }>;
117
- export declare const WeightSchema: z.ZodObject<{
118
- value: z.ZodNumber;
119
- unit: z.ZodEnum<["kg", "lb"]>;
120
- }, "strip", z.ZodTypeAny, {
121
- value: number;
122
- unit: "kg" | "lb";
123
- }, {
124
- value: number;
125
- unit: "kg" | "lb";
126
- }>;
127
- export declare const DimensionsSchema: z.ZodObject<{
128
- length: z.ZodNumber;
129
- width: z.ZodNumber;
130
- height: z.ZodNumber;
131
- unit: z.ZodEnum<["cm", "in"]>;
132
- }, "strip", z.ZodTypeAny, {
133
- length: number;
134
- unit: "cm" | "in";
135
- width: number;
136
- height: number;
137
- }, {
138
- length: number;
139
- unit: "cm" | "in";
140
- width: number;
141
- height: number;
142
- }>;
143
- export declare const ParcelSchema: z.ZodObject<{
144
- weight: z.ZodObject<{
145
- value: z.ZodNumber;
146
- unit: z.ZodEnum<["kg", "lb"]>;
147
- }, "strip", z.ZodTypeAny, {
148
- value: number;
149
- unit: "kg" | "lb";
150
- }, {
151
- value: number;
152
- unit: "kg" | "lb";
153
- }>;
154
- dimensions: z.ZodOptional<z.ZodObject<{
155
- length: z.ZodNumber;
156
- width: z.ZodNumber;
157
- height: z.ZodNumber;
158
- unit: z.ZodEnum<["cm", "in"]>;
159
- }, "strip", z.ZodTypeAny, {
160
- length: number;
161
- unit: "cm" | "in";
162
- width: number;
163
- height: number;
164
- }, {
165
- length: number;
166
- unit: "cm" | "in";
167
- width: number;
168
- height: number;
169
- }>>;
170
- pieces: z.ZodNumber;
171
- itemsCount: z.ZodOptional<z.ZodNumber>;
172
- description: z.ZodOptional<z.ZodString>;
173
- }, "strip", z.ZodTypeAny, {
174
- weight: {
175
- value: number;
176
- unit: "kg" | "lb";
177
- };
178
- pieces: number;
179
- description?: string | undefined;
180
- dimensions?: {
181
- length: number;
182
- unit: "cm" | "in";
183
- width: number;
184
- height: number;
185
- } | undefined;
186
- itemsCount?: number | undefined;
187
- }, {
188
- weight: {
189
- value: number;
190
- unit: "kg" | "lb";
191
- };
192
- pieces: number;
193
- description?: string | undefined;
194
- dimensions?: {
195
- length: number;
196
- unit: "cm" | "in";
197
- width: number;
198
- height: number;
199
- } | undefined;
200
- itemsCount?: number | undefined;
201
- }>;
202
- export declare const CODDetailsSchema: z.ZodObject<{
203
- enabled: z.ZodBoolean;
204
- amount: z.ZodNumber;
205
- currency: z.ZodString;
206
- }, "strip", z.ZodTypeAny, {
207
- enabled: boolean;
208
- amount: number;
209
- currency: string;
210
- }, {
211
- enabled: boolean;
212
- amount: number;
213
- currency: string;
214
- }>;
215
- export declare const DeclaredValueSchema: z.ZodObject<{
216
- amount: z.ZodNumber;
217
- currency: z.ZodString;
218
- }, "strip", z.ZodTypeAny, {
219
- amount: number;
220
- currency: string;
221
- }, {
222
- amount: number;
223
- currency: string;
224
- }>;
225
- export declare const InternationalMetadataSchema: z.ZodObject<{
226
- taxId: z.ZodOptional<z.ZodString>;
227
- invoiceNumber: z.ZodOptional<z.ZodString>;
228
- invoiceDate: z.ZodOptional<z.ZodString>;
229
- documentId: z.ZodOptional<z.ZodNumber>;
230
- }, "strip", z.ZodTypeAny, {
231
- taxId?: string | undefined;
232
- invoiceNumber?: string | undefined;
233
- invoiceDate?: string | undefined;
234
- documentId?: number | undefined;
235
- }, {
236
- taxId?: string | undefined;
237
- invoiceNumber?: string | undefined;
238
- invoiceDate?: string | undefined;
239
- documentId?: number | undefined;
240
- }>;
241
- export declare const ShipmentOptionsSchema: z.ZodObject<{
242
- requestedBy: z.ZodOptional<z.ZodString>;
243
- isInsured: z.ZodOptional<z.ZodBoolean>;
244
- customerTracking: z.ZodOptional<z.ZodString>;
245
- fulfilmentCustomerName: z.ZodOptional<z.ZodString>;
246
- internationalMetadata: z.ZodOptional<z.ZodObject<{
247
- taxId: z.ZodOptional<z.ZodString>;
248
- invoiceNumber: z.ZodOptional<z.ZodString>;
249
- invoiceDate: z.ZodOptional<z.ZodString>;
250
- documentId: z.ZodOptional<z.ZodNumber>;
251
- }, "strip", z.ZodTypeAny, {
252
- taxId?: string | undefined;
253
- invoiceNumber?: string | undefined;
254
- invoiceDate?: string | undefined;
255
- documentId?: number | undefined;
256
- }, {
257
- taxId?: string | undefined;
258
- invoiceNumber?: string | undefined;
259
- invoiceDate?: string | undefined;
260
- documentId?: number | undefined;
261
- }>>;
262
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
263
- }, "strip", z.ZodTypeAny, {
264
- requestedBy?: string | undefined;
265
- isInsured?: boolean | undefined;
266
- customerTracking?: string | undefined;
267
- fulfilmentCustomerName?: string | undefined;
268
- internationalMetadata?: {
269
- taxId?: string | undefined;
270
- invoiceNumber?: string | undefined;
271
- invoiceDate?: string | undefined;
272
- documentId?: number | undefined;
273
- } | undefined;
274
- metadata?: Record<string, unknown> | undefined;
275
- }, {
276
- requestedBy?: string | undefined;
277
- isInsured?: boolean | undefined;
278
- customerTracking?: string | undefined;
279
- fulfilmentCustomerName?: string | undefined;
280
- internationalMetadata?: {
281
- taxId?: string | undefined;
282
- invoiceNumber?: string | undefined;
283
- invoiceDate?: string | undefined;
284
- documentId?: number | undefined;
285
- } | undefined;
286
- metadata?: Record<string, unknown> | undefined;
287
- }>;
288
- export declare const CreateShipmentInputSchema: z.ZodObject<{
289
- shipper: z.ZodObject<{
290
- name: z.ZodString;
291
- company: z.ZodOptional<z.ZodString>;
292
- email: z.ZodOptional<z.ZodString>;
293
- phone: z.ZodString;
294
- line1: z.ZodString;
295
- line2: z.ZodOptional<z.ZodString>;
296
- neighbourhood: z.ZodOptional<z.ZodString>;
297
- city: z.ZodString;
298
- state: z.ZodOptional<z.ZodString>;
299
- postalCode: z.ZodOptional<z.ZodString>;
300
- countryCode: z.ZodString;
301
- coordinates: z.ZodOptional<z.ZodObject<{
302
- latitude: z.ZodNumber;
303
- longitude: z.ZodNumber;
304
- }, "strip", z.ZodTypeAny, {
305
- latitude: number;
306
- longitude: number;
307
- }, {
308
- latitude: number;
309
- longitude: number;
310
- }>>;
311
- description: z.ZodOptional<z.ZodString>;
312
- nationalAddress: z.ZodOptional<z.ZodObject<{
313
- shortCode: z.ZodString;
314
- buildingNumber: z.ZodOptional<z.ZodString>;
315
- streetName: z.ZodOptional<z.ZodString>;
316
- district: z.ZodOptional<z.ZodString>;
317
- additionalNumber: z.ZodOptional<z.ZodString>;
318
- }, "strip", z.ZodTypeAny, {
319
- shortCode: string;
320
- buildingNumber?: string | undefined;
321
- streetName?: string | undefined;
322
- district?: string | undefined;
323
- additionalNumber?: string | undefined;
324
- }, {
325
- shortCode: string;
326
- buildingNumber?: string | undefined;
327
- streetName?: string | undefined;
328
- district?: string | undefined;
329
- additionalNumber?: string | undefined;
330
- }>>;
331
- }, "strip", z.ZodTypeAny, {
332
- name: string;
333
- phone: string;
334
- line1: string;
335
- city: string;
336
- countryCode: string;
337
- company?: string | undefined;
338
- email?: string | undefined;
339
- line2?: string | undefined;
340
- neighbourhood?: string | undefined;
341
- state?: string | undefined;
342
- postalCode?: string | undefined;
343
- coordinates?: {
344
- latitude: number;
345
- longitude: number;
346
- } | undefined;
347
- description?: string | undefined;
348
- nationalAddress?: {
349
- shortCode: string;
350
- buildingNumber?: string | undefined;
351
- streetName?: string | undefined;
352
- district?: string | undefined;
353
- additionalNumber?: string | undefined;
354
- } | undefined;
355
- }, {
356
- name: string;
357
- phone: string;
358
- line1: string;
359
- city: string;
360
- countryCode: string;
361
- company?: string | undefined;
362
- email?: string | undefined;
363
- line2?: string | undefined;
364
- neighbourhood?: string | undefined;
365
- state?: string | undefined;
366
- postalCode?: string | undefined;
367
- coordinates?: {
368
- latitude: number;
369
- longitude: number;
370
- } | undefined;
371
- description?: string | undefined;
372
- nationalAddress?: {
373
- shortCode: string;
374
- buildingNumber?: string | undefined;
375
- streetName?: string | undefined;
376
- district?: string | undefined;
377
- additionalNumber?: string | undefined;
378
- } | undefined;
379
- }>;
380
- consignee: z.ZodObject<{
381
- name: z.ZodString;
382
- company: z.ZodOptional<z.ZodString>;
383
- email: z.ZodOptional<z.ZodString>;
384
- phone: z.ZodString;
385
- line1: z.ZodString;
386
- line2: z.ZodOptional<z.ZodString>;
387
- neighbourhood: z.ZodOptional<z.ZodString>;
388
- city: z.ZodString;
389
- state: z.ZodOptional<z.ZodString>;
390
- postalCode: z.ZodOptional<z.ZodString>;
391
- countryCode: z.ZodString;
392
- coordinates: z.ZodOptional<z.ZodObject<{
393
- latitude: z.ZodNumber;
394
- longitude: z.ZodNumber;
395
- }, "strip", z.ZodTypeAny, {
396
- latitude: number;
397
- longitude: number;
398
- }, {
399
- latitude: number;
400
- longitude: number;
401
- }>>;
402
- description: z.ZodOptional<z.ZodString>;
403
- nationalAddress: z.ZodOptional<z.ZodObject<{
404
- shortCode: z.ZodString;
405
- buildingNumber: z.ZodOptional<z.ZodString>;
406
- streetName: z.ZodOptional<z.ZodString>;
407
- district: z.ZodOptional<z.ZodString>;
408
- additionalNumber: z.ZodOptional<z.ZodString>;
409
- }, "strip", z.ZodTypeAny, {
410
- shortCode: string;
411
- buildingNumber?: string | undefined;
412
- streetName?: string | undefined;
413
- district?: string | undefined;
414
- additionalNumber?: string | undefined;
415
- }, {
416
- shortCode: string;
417
- buildingNumber?: string | undefined;
418
- streetName?: string | undefined;
419
- district?: string | undefined;
420
- additionalNumber?: string | undefined;
421
- }>>;
422
- }, "strip", z.ZodTypeAny, {
423
- name: string;
424
- phone: string;
425
- line1: string;
426
- city: string;
427
- countryCode: string;
428
- company?: string | undefined;
429
- email?: string | undefined;
430
- line2?: string | undefined;
431
- neighbourhood?: string | undefined;
432
- state?: string | undefined;
433
- postalCode?: string | undefined;
434
- coordinates?: {
435
- latitude: number;
436
- longitude: number;
437
- } | undefined;
438
- description?: string | undefined;
439
- nationalAddress?: {
440
- shortCode: string;
441
- buildingNumber?: string | undefined;
442
- streetName?: string | undefined;
443
- district?: string | undefined;
444
- additionalNumber?: string | undefined;
445
- } | undefined;
446
- }, {
447
- name: string;
448
- phone: string;
449
- line1: string;
450
- city: string;
451
- countryCode: string;
452
- company?: string | undefined;
453
- email?: string | undefined;
454
- line2?: string | undefined;
455
- neighbourhood?: string | undefined;
456
- state?: string | undefined;
457
- postalCode?: string | undefined;
458
- coordinates?: {
459
- latitude: number;
460
- longitude: number;
461
- } | undefined;
462
- description?: string | undefined;
463
- nationalAddress?: {
464
- shortCode: string;
465
- buildingNumber?: string | undefined;
466
- streetName?: string | undefined;
467
- district?: string | undefined;
468
- additionalNumber?: string | undefined;
469
- } | undefined;
470
- }>;
471
- parcels: z.ZodArray<z.ZodObject<{
472
- weight: z.ZodObject<{
473
- value: z.ZodNumber;
474
- unit: z.ZodEnum<["kg", "lb"]>;
475
- }, "strip", z.ZodTypeAny, {
476
- value: number;
477
- unit: "kg" | "lb";
478
- }, {
479
- value: number;
480
- unit: "kg" | "lb";
481
- }>;
482
- dimensions: z.ZodOptional<z.ZodObject<{
483
- length: z.ZodNumber;
484
- width: z.ZodNumber;
485
- height: z.ZodNumber;
486
- unit: z.ZodEnum<["cm", "in"]>;
487
- }, "strip", z.ZodTypeAny, {
488
- length: number;
489
- unit: "cm" | "in";
490
- width: number;
491
- height: number;
492
- }, {
493
- length: number;
494
- unit: "cm" | "in";
495
- width: number;
496
- height: number;
497
- }>>;
498
- pieces: z.ZodNumber;
499
- itemsCount: z.ZodOptional<z.ZodNumber>;
500
- description: z.ZodOptional<z.ZodString>;
501
- }, "strip", z.ZodTypeAny, {
7
+ export declare const NationalAddressSchema: v.ObjectSchema<{
8
+ readonly shortCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
9
+ readonly buildingNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
10
+ readonly streetName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
11
+ readonly district: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
12
+ readonly additionalNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
+ }, undefined>;
14
+ export declare const AddressSchema: v.ObjectSchema<{
15
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Name is required">]>;
16
+ readonly company: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
17
+ readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, "Invalid email format">]>, undefined>;
18
+ readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Phone is required">]>;
19
+ readonly line1: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Address line 1 is required">]>;
20
+ readonly line2: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly neighbourhood: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
22
+ readonly city: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "City is required">]>;
23
+ readonly state: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly postalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly countryCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 2, "Country code must be ISO 3166-1 alpha-2 (2 characters)">]>;
26
+ readonly coordinates: v.OptionalSchema<v.ObjectSchema<{
27
+ readonly latitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
28
+ readonly longitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
29
+ }, undefined>, undefined>;
30
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly nationalAddress: v.OptionalSchema<v.ObjectSchema<{
32
+ readonly shortCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
33
+ readonly buildingNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
34
+ readonly streetName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly district: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly additionalNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
37
+ }, undefined>, undefined>;
38
+ }, undefined>;
39
+ export declare const WeightSchema: v.ObjectSchema<{
40
+ readonly value: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Weight must be positive">]>;
41
+ readonly unit: v.PicklistSchema<["kg", "lb"], undefined>;
42
+ }, undefined>;
43
+ export declare const DimensionsSchema: v.ObjectSchema<{
44
+ readonly length: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Length must be positive">]>;
45
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Width must be positive">]>;
46
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Height must be positive">]>;
47
+ readonly unit: v.PicklistSchema<["cm", "in"], undefined>;
48
+ }, undefined>;
49
+ export declare const ParcelSchema: v.ObjectSchema<{
50
+ readonly weight: v.ObjectSchema<{
51
+ readonly value: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Weight must be positive">]>;
52
+ readonly unit: v.PicklistSchema<["kg", "lb"], undefined>;
53
+ }, undefined>;
54
+ readonly dimensions: v.OptionalSchema<v.ObjectSchema<{
55
+ readonly length: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Length must be positive">]>;
56
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Width must be positive">]>;
57
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Height must be positive">]>;
58
+ readonly unit: v.PicklistSchema<["cm", "in"], undefined>;
59
+ }, undefined>, undefined>;
60
+ readonly pieces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, "Pieces must be a positive integer">]>;
61
+ readonly itemsCount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>]>, undefined>;
62
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
63
+ }, undefined>;
64
+ export declare const CODDetailsSchema: v.ObjectSchema<{
65
+ readonly enabled: v.BooleanSchema<undefined>;
66
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, "COD amount must be non-negative">]>;
67
+ readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "COD currency is required">]>;
68
+ }, undefined>;
69
+ export declare const DeclaredValueSchema: v.ObjectSchema<{
70
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, "Declared value must be non-negative">]>;
71
+ readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Currency is required">]>;
72
+ }, undefined>;
73
+ export declare const InternationalMetadataSchema: v.ObjectSchema<{
74
+ readonly taxId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
75
+ readonly invoiceNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly invoiceDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
77
+ readonly documentId: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
78
+ }, undefined>;
79
+ export declare const ShipmentOptionsSchema: v.ObjectSchema<{
80
+ readonly requestedBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
81
+ readonly isInsured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
82
+ readonly customerTracking: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
+ readonly fulfilmentCustomerName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly internationalMetadata: v.OptionalSchema<v.ObjectSchema<{
85
+ readonly taxId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
+ readonly invoiceNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
87
+ readonly invoiceDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
88
+ readonly documentId: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
89
+ }, undefined>, undefined>;
90
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
91
+ }, undefined>;
92
+ export declare const CreateShipmentInputSchema: v.ObjectSchema<{
93
+ readonly shipper: v.ObjectSchema<{
94
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Name is required">]>;
95
+ readonly company: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
96
+ readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, "Invalid email format">]>, undefined>;
97
+ readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Phone is required">]>;
98
+ readonly line1: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Address line 1 is required">]>;
99
+ readonly line2: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
100
+ readonly neighbourhood: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
101
+ readonly city: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "City is required">]>;
102
+ readonly state: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
103
+ readonly postalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
104
+ readonly countryCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 2, "Country code must be ISO 3166-1 alpha-2 (2 characters)">]>;
105
+ readonly coordinates: v.OptionalSchema<v.ObjectSchema<{
106
+ readonly latitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
107
+ readonly longitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
108
+ }, undefined>, undefined>;
109
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
110
+ readonly nationalAddress: v.OptionalSchema<v.ObjectSchema<{
111
+ readonly shortCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
112
+ readonly buildingNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
113
+ readonly streetName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
114
+ readonly district: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
115
+ readonly additionalNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
116
+ }, undefined>, undefined>;
117
+ }, undefined>;
118
+ readonly consignee: v.ObjectSchema<{
119
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Name is required">]>;
120
+ readonly company: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
+ readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, "Invalid email format">]>, undefined>;
122
+ readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Phone is required">]>;
123
+ readonly line1: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Address line 1 is required">]>;
124
+ readonly line2: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
125
+ readonly neighbourhood: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly city: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "City is required">]>;
127
+ readonly state: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
128
+ readonly postalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
129
+ readonly countryCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 2, "Country code must be ISO 3166-1 alpha-2 (2 characters)">]>;
130
+ readonly coordinates: v.OptionalSchema<v.ObjectSchema<{
131
+ readonly latitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
132
+ readonly longitude: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
133
+ }, undefined>, undefined>;
134
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
135
+ readonly nationalAddress: v.OptionalSchema<v.ObjectSchema<{
136
+ readonly shortCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
137
+ readonly buildingNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
138
+ readonly streetName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
139
+ readonly district: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
140
+ readonly additionalNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
141
+ }, undefined>, undefined>;
142
+ }, undefined>;
143
+ readonly parcels: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
144
+ readonly weight: v.ObjectSchema<{
145
+ readonly value: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Weight must be positive">]>;
146
+ readonly unit: v.PicklistSchema<["kg", "lb"], undefined>;
147
+ }, undefined>;
148
+ readonly dimensions: v.OptionalSchema<v.ObjectSchema<{
149
+ readonly length: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Length must be positive">]>;
150
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Width must be positive">]>;
151
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, "Height must be positive">]>;
152
+ readonly unit: v.PicklistSchema<["cm", "in"], undefined>;
153
+ }, undefined>, undefined>;
154
+ readonly pieces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, "Pieces must be a positive integer">]>;
155
+ readonly itemsCount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>]>, undefined>;
156
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
157
+ }, undefined>, undefined>, v.MinLengthAction<{
502
158
  weight: {
503
159
  value: number;
504
160
  unit: "kg" | "lb";
505
161
  };
506
- pieces: number;
507
- description?: string | undefined;
508
162
  dimensions?: {
509
163
  length: number;
510
- unit: "cm" | "in";
511
164
  width: number;
512
165
  height: number;
513
- } | undefined;
514
- itemsCount?: number | undefined;
515
- }, {
516
- weight: {
517
- value: number;
518
- unit: "kg" | "lb";
519
- };
520
- pieces: number;
521
- description?: string | undefined;
522
- dimensions?: {
523
- length: number;
524
166
  unit: "cm" | "in";
525
- width: number;
526
- height: number;
527
167
  } | undefined;
528
- itemsCount?: number | undefined;
529
- }>, "many">;
530
- serviceType: z.ZodOptional<z.ZodString>;
531
- reference: z.ZodOptional<z.ZodString>;
532
- cod: z.ZodOptional<z.ZodObject<{
533
- enabled: z.ZodBoolean;
534
- amount: z.ZodNumber;
535
- currency: z.ZodString;
536
- }, "strip", z.ZodTypeAny, {
537
- enabled: boolean;
538
- amount: number;
539
- currency: string;
540
- }, {
541
- enabled: boolean;
542
- amount: number;
543
- currency: string;
544
- }>>;
545
- declaredValue: z.ZodOptional<z.ZodObject<{
546
- amount: z.ZodNumber;
547
- currency: z.ZodString;
548
- }, "strip", z.ZodTypeAny, {
549
- amount: number;
550
- currency: string;
551
- }, {
552
- amount: number;
553
- currency: string;
554
- }>>;
555
- labelFormat: z.ZodOptional<z.ZodEnum<["PDF", "ZPL", "PNG"]>>;
556
- options: z.ZodOptional<z.ZodObject<{
557
- requestedBy: z.ZodOptional<z.ZodString>;
558
- isInsured: z.ZodOptional<z.ZodBoolean>;
559
- customerTracking: z.ZodOptional<z.ZodString>;
560
- fulfilmentCustomerName: z.ZodOptional<z.ZodString>;
561
- internationalMetadata: z.ZodOptional<z.ZodObject<{
562
- taxId: z.ZodOptional<z.ZodString>;
563
- invoiceNumber: z.ZodOptional<z.ZodString>;
564
- invoiceDate: z.ZodOptional<z.ZodString>;
565
- documentId: z.ZodOptional<z.ZodNumber>;
566
- }, "strip", z.ZodTypeAny, {
567
- taxId?: string | undefined;
568
- invoiceNumber?: string | undefined;
569
- invoiceDate?: string | undefined;
570
- documentId?: number | undefined;
571
- }, {
572
- taxId?: string | undefined;
573
- invoiceNumber?: string | undefined;
574
- invoiceDate?: string | undefined;
575
- documentId?: number | undefined;
576
- }>>;
577
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
578
- }, "strip", z.ZodTypeAny, {
579
- requestedBy?: string | undefined;
580
- isInsured?: boolean | undefined;
581
- customerTracking?: string | undefined;
582
- fulfilmentCustomerName?: string | undefined;
583
- internationalMetadata?: {
584
- taxId?: string | undefined;
585
- invoiceNumber?: string | undefined;
586
- invoiceDate?: string | undefined;
587
- documentId?: number | undefined;
588
- } | undefined;
589
- metadata?: Record<string, unknown> | undefined;
590
- }, {
591
- requestedBy?: string | undefined;
592
- isInsured?: boolean | undefined;
593
- customerTracking?: string | undefined;
594
- fulfilmentCustomerName?: string | undefined;
595
- internationalMetadata?: {
596
- taxId?: string | undefined;
597
- invoiceNumber?: string | undefined;
598
- invoiceDate?: string | undefined;
599
- documentId?: number | undefined;
600
- } | undefined;
601
- metadata?: Record<string, unknown> | undefined;
602
- }>>;
603
- }, "strip", z.ZodTypeAny, {
604
- shipper: {
605
- name: string;
606
- phone: string;
607
- line1: string;
608
- city: string;
609
- countryCode: string;
610
- company?: string | undefined;
611
- email?: string | undefined;
612
- line2?: string | undefined;
613
- neighbourhood?: string | undefined;
614
- state?: string | undefined;
615
- postalCode?: string | undefined;
616
- coordinates?: {
617
- latitude: number;
618
- longitude: number;
619
- } | undefined;
620
- description?: string | undefined;
621
- nationalAddress?: {
622
- shortCode: string;
623
- buildingNumber?: string | undefined;
624
- streetName?: string | undefined;
625
- district?: string | undefined;
626
- additionalNumber?: string | undefined;
627
- } | undefined;
628
- };
629
- consignee: {
630
- name: string;
631
- phone: string;
632
- line1: string;
633
- city: string;
634
- countryCode: string;
635
- company?: string | undefined;
636
- email?: string | undefined;
637
- line2?: string | undefined;
638
- neighbourhood?: string | undefined;
639
- state?: string | undefined;
640
- postalCode?: string | undefined;
641
- coordinates?: {
642
- latitude: number;
643
- longitude: number;
644
- } | undefined;
645
- description?: string | undefined;
646
- nationalAddress?: {
647
- shortCode: string;
648
- buildingNumber?: string | undefined;
649
- streetName?: string | undefined;
650
- district?: string | undefined;
651
- additionalNumber?: string | undefined;
652
- } | undefined;
653
- };
654
- parcels: {
655
- weight: {
656
- value: number;
657
- unit: "kg" | "lb";
658
- };
659
168
  pieces: number;
660
- description?: string | undefined;
661
- dimensions?: {
662
- length: number;
663
- unit: "cm" | "in";
664
- width: number;
665
- height: number;
666
- } | undefined;
667
169
  itemsCount?: number | undefined;
668
- }[];
669
- options?: {
670
- requestedBy?: string | undefined;
671
- isInsured?: boolean | undefined;
672
- customerTracking?: string | undefined;
673
- fulfilmentCustomerName?: string | undefined;
674
- internationalMetadata?: {
675
- taxId?: string | undefined;
676
- invoiceNumber?: string | undefined;
677
- invoiceDate?: string | undefined;
678
- documentId?: number | undefined;
679
- } | undefined;
680
- metadata?: Record<string, unknown> | undefined;
681
- } | undefined;
682
- serviceType?: string | undefined;
683
- reference?: string | undefined;
684
- cod?: {
685
- enabled: boolean;
686
- amount: number;
687
- currency: string;
688
- } | undefined;
689
- declaredValue?: {
690
- amount: number;
691
- currency: string;
692
- } | undefined;
693
- labelFormat?: "PDF" | "ZPL" | "PNG" | undefined;
694
- }, {
695
- shipper: {
696
- name: string;
697
- phone: string;
698
- line1: string;
699
- city: string;
700
- countryCode: string;
701
- company?: string | undefined;
702
- email?: string | undefined;
703
- line2?: string | undefined;
704
- neighbourhood?: string | undefined;
705
- state?: string | undefined;
706
- postalCode?: string | undefined;
707
- coordinates?: {
708
- latitude: number;
709
- longitude: number;
710
- } | undefined;
711
170
  description?: string | undefined;
712
- nationalAddress?: {
713
- shortCode: string;
714
- buildingNumber?: string | undefined;
715
- streetName?: string | undefined;
716
- district?: string | undefined;
717
- additionalNumber?: string | undefined;
718
- } | undefined;
719
- };
720
- consignee: {
721
- name: string;
722
- phone: string;
723
- line1: string;
724
- city: string;
725
- countryCode: string;
726
- company?: string | undefined;
727
- email?: string | undefined;
728
- line2?: string | undefined;
729
- neighbourhood?: string | undefined;
730
- state?: string | undefined;
731
- postalCode?: string | undefined;
732
- coordinates?: {
733
- latitude: number;
734
- longitude: number;
735
- } | undefined;
736
- description?: string | undefined;
737
- nationalAddress?: {
738
- shortCode: string;
739
- buildingNumber?: string | undefined;
740
- streetName?: string | undefined;
741
- district?: string | undefined;
742
- additionalNumber?: string | undefined;
743
- } | undefined;
744
- };
745
- parcels: {
746
- weight: {
747
- value: number;
748
- unit: "kg" | "lb";
749
- };
750
- pieces: number;
751
- description?: string | undefined;
752
- dimensions?: {
753
- length: number;
754
- unit: "cm" | "in";
755
- width: number;
756
- height: number;
757
- } | undefined;
758
- itemsCount?: number | undefined;
759
- }[];
760
- options?: {
761
- requestedBy?: string | undefined;
762
- isInsured?: boolean | undefined;
763
- customerTracking?: string | undefined;
764
- fulfilmentCustomerName?: string | undefined;
765
- internationalMetadata?: {
766
- taxId?: string | undefined;
767
- invoiceNumber?: string | undefined;
768
- invoiceDate?: string | undefined;
769
- documentId?: number | undefined;
770
- } | undefined;
771
- metadata?: Record<string, unknown> | undefined;
772
- } | undefined;
773
- serviceType?: string | undefined;
774
- reference?: string | undefined;
775
- cod?: {
776
- enabled: boolean;
777
- amount: number;
778
- currency: string;
779
- } | undefined;
780
- declaredValue?: {
781
- amount: number;
782
- currency: string;
783
- } | undefined;
784
- labelFormat?: "PDF" | "ZPL" | "PNG" | undefined;
785
- }>;
786
- export declare const PickupRequestSchema: z.ZodObject<{
787
- date: z.ZodString;
788
- timeSlot: z.ZodString;
789
- city: z.ZodString;
790
- contactName: z.ZodString;
791
- contactPhone: z.ZodString;
792
- address: z.ZodString;
793
- shipmentCount: z.ZodNumber;
794
- trackingNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
795
- }, "strip", z.ZodTypeAny, {
796
- city: string;
797
- date: string;
798
- timeSlot: string;
799
- contactName: string;
800
- contactPhone: string;
801
- address: string;
802
- shipmentCount: number;
803
- trackingNumbers?: string[] | undefined;
804
- }, {
805
- city: string;
806
- date: string;
807
- timeSlot: string;
808
- contactName: string;
809
- contactPhone: string;
810
- address: string;
811
- shipmentCount: number;
812
- trackingNumbers?: string[] | undefined;
813
- }>;
814
- export declare const WebhookConfigSchema: z.ZodObject<{
815
- authHeader: z.ZodOptional<z.ZodString>;
816
- authValue: z.ZodOptional<z.ZodString>;
817
- authQueryParam: z.ZodOptional<z.ZodString>;
818
- authQueryValue: z.ZodOptional<z.ZodString>;
819
- }, "strip", z.ZodTypeAny, {
820
- authHeader?: string | undefined;
821
- authValue?: string | undefined;
822
- authQueryParam?: string | undefined;
823
- authQueryValue?: string | undefined;
824
- }, {
825
- authHeader?: string | undefined;
826
- authValue?: string | undefined;
827
- authQueryParam?: string | undefined;
828
- authQueryValue?: string | undefined;
829
- }>;
171
+ }[], 1, "At least one parcel is required">]>;
172
+ readonly serviceType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
173
+ readonly reference: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
174
+ readonly cod: v.OptionalSchema<v.ObjectSchema<{
175
+ readonly enabled: v.BooleanSchema<undefined>;
176
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, "COD amount must be non-negative">]>;
177
+ readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "COD currency is required">]>;
178
+ }, undefined>, undefined>;
179
+ readonly declaredValue: v.OptionalSchema<v.ObjectSchema<{
180
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, "Declared value must be non-negative">]>;
181
+ readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Currency is required">]>;
182
+ }, undefined>, undefined>;
183
+ readonly labelFormat: v.OptionalSchema<v.PicklistSchema<["PDF", "ZPL", "PNG"], undefined>, undefined>;
184
+ readonly options: v.OptionalSchema<v.ObjectSchema<{
185
+ readonly requestedBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
186
+ readonly isInsured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
187
+ readonly customerTracking: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
188
+ readonly fulfilmentCustomerName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
189
+ readonly internationalMetadata: v.OptionalSchema<v.ObjectSchema<{
190
+ readonly taxId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
191
+ readonly invoiceNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
192
+ readonly invoiceDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
193
+ readonly documentId: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
194
+ }, undefined>, undefined>;
195
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
196
+ }, undefined>, undefined>;
197
+ }, undefined>;
198
+ export declare const PickupRequestSchema: v.ObjectSchema<{
199
+ readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Date must be YYYY-MM-DD format">]>;
200
+ readonly timeSlot: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Time slot is required">]>;
201
+ readonly city: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "City is required">]>;
202
+ readonly contactName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Contact name is required">]>;
203
+ readonly contactPhone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Contact phone is required">]>;
204
+ readonly address: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Address is required">]>;
205
+ readonly shipmentCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, "Shipment count must be a positive integer">]>;
206
+ readonly trackingNumbers: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
207
+ }, undefined>;
208
+ export declare const WebhookConfigSchema: v.ObjectSchema<{
209
+ readonly authHeader: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
210
+ readonly authValue: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
+ readonly authQueryParam: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
212
+ readonly authQueryValue: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
213
+ }, undefined>;
830
214
  export declare function validateCreateShipmentInput(input: CreateShipmentInput): CreateShipmentInput;
831
215
  export declare function validatePickupRequest(input: PickupRequest): PickupRequest;
832
216
  //# sourceMappingURL=schemas.d.ts.map