@shippo/shippo-mcp 0.8.34 → 0.8.39

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.
Files changed (46) hide show
  1. package/bin/mcp-server.js +112 -44
  2. package/bin/mcp-server.js.map +12 -12
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/mcp-server/mcp-server.js +1 -1
  6. package/esm/mcp-server/server.js +1 -1
  7. package/esm/models/defaultparceltemplate.d.ts +25 -6
  8. package/esm/models/defaultparceltemplate.d.ts.map +1 -1
  9. package/esm/models/defaultparceltemplate.js +37 -7
  10. package/esm/models/defaultparceltemplate.js.map +1 -1
  11. package/esm/models/servicegroup.d.ts +1 -1
  12. package/esm/models/servicegroup.d.ts.map +1 -1
  13. package/esm/models/servicegroup.js +1 -1
  14. package/esm/models/servicegroup.js.map +1 -1
  15. package/esm/models/servicegroupcreaterequest.d.ts +1 -1
  16. package/esm/models/servicegroupcreaterequest.d.ts.map +1 -1
  17. package/esm/models/servicegroupcreaterequest.js +1 -1
  18. package/esm/models/servicegroupcreaterequest.js.map +1 -1
  19. package/esm/models/servicegroupupdaterequest.d.ts +1 -1
  20. package/esm/models/servicegroupupdaterequest.d.ts.map +1 -1
  21. package/esm/models/servicegroupupdaterequest.js +1 -1
  22. package/esm/models/servicegroupupdaterequest.js.map +1 -1
  23. package/esm/models/userparceltemplate.d.ts +25 -6
  24. package/esm/models/userparceltemplate.d.ts.map +1 -1
  25. package/esm/models/userparceltemplate.js +36 -7
  26. package/esm/models/userparceltemplate.js.map +1 -1
  27. package/esm/models/userparceltemplateupdaterequest.d.ts +17 -9
  28. package/esm/models/userparceltemplateupdaterequest.d.ts.map +1 -1
  29. package/esm/models/userparceltemplateupdaterequest.js +29 -9
  30. package/esm/models/userparceltemplateupdaterequest.js.map +1 -1
  31. package/esm/models/userparceltemplatewithoutcarriertemplatecreaterequest.d.ts +17 -9
  32. package/esm/models/userparceltemplatewithoutcarriertemplatecreaterequest.d.ts.map +1 -1
  33. package/esm/models/userparceltemplatewithoutcarriertemplatecreaterequest.js +29 -9
  34. package/esm/models/userparceltemplatewithoutcarriertemplatecreaterequest.js.map +1 -1
  35. package/manifest.json +1 -1
  36. package/package.json +1 -1
  37. package/src/lib/config.ts +2 -2
  38. package/src/mcp-server/mcp-server.ts +1 -1
  39. package/src/mcp-server/server.ts +1 -1
  40. package/src/models/defaultparceltemplate.ts +81 -21
  41. package/src/models/servicegroup.ts +2 -2
  42. package/src/models/servicegroupcreaterequest.ts +2 -2
  43. package/src/models/servicegroupupdaterequest.ts +2 -2
  44. package/src/models/userparceltemplate.ts +80 -21
  45. package/src/models/userparceltemplateupdaterequest.ts +51 -19
  46. package/src/models/userparceltemplatewithoutcarriertemplatecreaterequest.ts +57 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shippo/shippo-mcp",
3
- "version": "0.8.34",
3
+ "version": "0.8.39",
4
4
  "author": "shippo",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
67
67
  export const SDK_METADATA = {
68
68
  language: "typescript",
69
69
  openapiDocVersion: "2018-02-08",
70
- sdkVersion: "0.8.34",
70
+ sdkVersion: "0.8.39",
71
71
  genVersion: "2.770.0",
72
72
  userAgent:
73
- "speakeasy-sdk/mcp-typescript 0.8.34 2.770.0 2018-02-08 @shippo/shippo-mcp",
73
+ "speakeasy-sdk/mcp-typescript 0.8.39 2.770.0 2018-02-08 @shippo/shippo-mcp",
74
74
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.8.34",
22
+ currentVersion: "0.8.39",
23
23
  },
24
24
  });
25
25
 
@@ -96,7 +96,7 @@ export function createMCPServer(deps: {
96
96
  }) {
97
97
  const server = new McpServer({
98
98
  name: "ShippoSDK",
99
- version: "0.8.34",
99
+ version: "0.8.39",
100
100
  });
101
101
 
102
102
  const getClient = deps.getSDK || (() =>
@@ -3,29 +3,85 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- CarrierParcelTemplate,
8
- CarrierParcelTemplate$zodSchema,
9
- } from "./carrierparceltemplate.js";
10
6
  import {
11
7
  DistanceUnitEnum,
12
8
  DistanceUnitEnum$zodSchema,
13
9
  } from "./distanceunitenum.js";
14
- import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
10
+
11
+ /**
12
+ * The measure unit used for length, width and height.
13
+ */
14
+ export const DefaultParcelTemplateDistanceUnitEnum$zodSchema = z.enum([
15
+ "cm",
16
+ "in",
17
+ "ft",
18
+ "m",
19
+ "mm",
20
+ "yd",
21
+ ]).describe("The measure unit used for length, width and height.");
22
+
23
+ export type DefaultParcelTemplateDistanceUnitEnum = z.infer<
24
+ typeof DefaultParcelTemplateDistanceUnitEnum$zodSchema
25
+ >;
26
+
27
+ /**
28
+ * The unit used for weight.
29
+ */
30
+ export const DefaultParcelTemplateWeightUnitEnum$zodSchema = z.enum([
31
+ "g",
32
+ "kg",
33
+ "lb",
34
+ "oz",
35
+ ]).describe("The unit used for weight.");
36
+
37
+ export type DefaultParcelTemplateWeightUnitEnum = z.infer<
38
+ typeof DefaultParcelTemplateWeightUnitEnum$zodSchema
39
+ >;
40
+
41
+ export type DefaultParcelTemplateCarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb =
42
+ {
43
+ carrier?: string | undefined;
44
+ distance_unit?: DistanceUnitEnum | undefined;
45
+ height?: string | undefined;
46
+ is_variable_dimensions?: boolean | undefined;
47
+ length?: string | undefined;
48
+ name?: string | undefined;
49
+ token?: string | undefined;
50
+ width?: string | undefined;
51
+ };
52
+
53
+ export const DefaultParcelTemplateCarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb$zodSchema:
54
+ z.ZodType<
55
+ DefaultParcelTemplateCarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb,
56
+ z.ZodTypeDef,
57
+ unknown
58
+ > = z.object({
59
+ carrier: z.string().optional(),
60
+ distance_unit: DistanceUnitEnum$zodSchema.optional(),
61
+ height: z.string().optional(),
62
+ is_variable_dimensions: z.boolean().optional(),
63
+ length: z.string().optional(),
64
+ name: z.string().optional(),
65
+ token: z.string().optional(),
66
+ width: z.string().optional(),
67
+ });
15
68
 
16
69
  export type TheFieldsOfAParcelTemplateBeforeSavingItToTheDb = {
17
- distance_unit?: DistanceUnitEnum | undefined;
18
- height?: string | undefined;
19
- length?: string | undefined;
20
- name?: string | undefined;
21
- weight?: string | undefined;
22
- weight_unit?: WeightUnitEnum | undefined;
23
- width?: string | undefined;
70
+ distance_unit?: DefaultParcelTemplateDistanceUnitEnum | null | undefined;
71
+ height?: string | null | undefined;
72
+ length?: string | null | undefined;
73
+ name?: string | null | undefined;
74
+ weight?: string | null | undefined;
75
+ weight_unit?: DefaultParcelTemplateWeightUnitEnum | null | undefined;
76
+ width?: string | null | undefined;
24
77
  object_created?: string | undefined;
25
78
  object_id?: string | undefined;
26
79
  object_owner?: string | undefined;
27
80
  object_updated?: string | undefined;
28
- template?: CarrierParcelTemplate | undefined;
81
+ template?:
82
+ | DefaultParcelTemplateCarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb
83
+ | null
84
+ | undefined;
29
85
  };
30
86
 
31
87
  export const TheFieldsOfAParcelTemplateBeforeSavingItToTheDb$zodSchema:
@@ -34,18 +90,22 @@ export const TheFieldsOfAParcelTemplateBeforeSavingItToTheDb$zodSchema:
34
90
  z.ZodTypeDef,
35
91
  unknown
36
92
  > = z.object({
37
- distance_unit: DistanceUnitEnum$zodSchema.optional(),
38
- height: z.string().optional(),
39
- length: z.string().optional(),
40
- name: z.string().optional(),
93
+ distance_unit: DefaultParcelTemplateDistanceUnitEnum$zodSchema.nullable()
94
+ .optional(),
95
+ height: z.string().nullable().optional(),
96
+ length: z.string().nullable().optional(),
97
+ name: z.string().nullable().optional(),
41
98
  object_created: z.string().optional(),
42
99
  object_id: z.string().optional(),
43
100
  object_owner: z.string().optional(),
44
101
  object_updated: z.string().optional(),
45
- template: CarrierParcelTemplate$zodSchema.optional(),
46
- weight: z.string().optional(),
47
- weight_unit: WeightUnitEnum$zodSchema.optional(),
48
- width: z.string().optional(),
102
+ template: z.lazy(() =>
103
+ DefaultParcelTemplateCarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb$zodSchema
104
+ ).nullable().optional(),
105
+ weight: z.string().nullable().optional(),
106
+ weight_unit: DefaultParcelTemplateWeightUnitEnum$zodSchema.nullable()
107
+ .optional(),
108
+ width: z.string().nullable().optional(),
49
109
  });
50
110
 
51
111
  export type DefaultParcelTemplate = {
@@ -19,7 +19,7 @@ export type ServiceGroup = {
19
19
  free_shipping_threshold_currency?: string | null | undefined;
20
20
  free_shipping_threshold_min?: string | null | undefined;
21
21
  name: string;
22
- rate_adjustment?: number | undefined;
22
+ rate_adjustment?: number | null | undefined;
23
23
  type: ServiceGroupTypeEnum;
24
24
  object_id: string;
25
25
  is_active?: boolean | undefined;
@@ -39,7 +39,7 @@ export const ServiceGroup$zodSchema: z.ZodType<
39
39
  is_active: z.boolean().optional(),
40
40
  name: z.string(),
41
41
  object_id: z.string(),
42
- rate_adjustment: z.number().int().optional(),
42
+ rate_adjustment: z.number().int().nullable().optional(),
43
43
  service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema)
44
44
  .nullable(),
45
45
  type: ServiceGroupTypeEnum$zodSchema,
@@ -19,7 +19,7 @@ export type ServiceGroupCreateRequest = {
19
19
  free_shipping_threshold_currency?: string | null | undefined;
20
20
  free_shipping_threshold_min?: string | null | undefined;
21
21
  name: string;
22
- rate_adjustment?: number | undefined;
22
+ rate_adjustment?: number | null | undefined;
23
23
  type: ServiceGroupTypeEnum;
24
24
  service_levels: Array<ServiceGroupAccountAndServiceLevel>;
25
25
  };
@@ -35,7 +35,7 @@ export const ServiceGroupCreateRequest$zodSchema: z.ZodType<
35
35
  free_shipping_threshold_currency: z.string().nullable().optional(),
36
36
  free_shipping_threshold_min: z.string().nullable().optional(),
37
37
  name: z.string(),
38
- rate_adjustment: z.number().int().optional(),
38
+ rate_adjustment: z.number().int().nullable().optional(),
39
39
  service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema),
40
40
  type: ServiceGroupTypeEnum$zodSchema,
41
41
  });
@@ -19,7 +19,7 @@ export type ServiceGroupUpdateRequest = {
19
19
  free_shipping_threshold_currency?: string | null | undefined;
20
20
  free_shipping_threshold_min?: string | null | undefined;
21
21
  name: string;
22
- rate_adjustment?: number | undefined;
22
+ rate_adjustment?: number | null | undefined;
23
23
  type: ServiceGroupTypeEnum;
24
24
  object_id: string;
25
25
  is_active: boolean;
@@ -39,7 +39,7 @@ export const ServiceGroupUpdateRequest$zodSchema: z.ZodType<
39
39
  is_active: z.boolean(),
40
40
  name: z.string(),
41
41
  object_id: z.string(),
42
- rate_adjustment: z.number().int().optional(),
42
+ rate_adjustment: z.number().int().nullable().optional(),
43
43
  service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema),
44
44
  type: ServiceGroupTypeEnum$zodSchema,
45
45
  });
@@ -3,29 +3,85 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- CarrierParcelTemplate,
8
- CarrierParcelTemplate$zodSchema,
9
- } from "./carrierparceltemplate.js";
10
6
  import {
11
7
  DistanceUnitEnum,
12
8
  DistanceUnitEnum$zodSchema,
13
9
  } from "./distanceunitenum.js";
14
- import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
10
+
11
+ /**
12
+ * The measure unit used for length, width and height.
13
+ */
14
+ export const UserParcelTemplateDistanceUnitEnum$zodSchema = z.enum([
15
+ "cm",
16
+ "in",
17
+ "ft",
18
+ "m",
19
+ "mm",
20
+ "yd",
21
+ ]).describe("The measure unit used for length, width and height.");
22
+
23
+ export type UserParcelTemplateDistanceUnitEnum = z.infer<
24
+ typeof UserParcelTemplateDistanceUnitEnum$zodSchema
25
+ >;
26
+
27
+ /**
28
+ * The unit used for weight.
29
+ */
30
+ export const UserParcelTemplateWeightUnitEnum$zodSchema = z.enum([
31
+ "g",
32
+ "kg",
33
+ "lb",
34
+ "oz",
35
+ ]).describe("The unit used for weight.");
36
+
37
+ export type UserParcelTemplateWeightUnitEnum = z.infer<
38
+ typeof UserParcelTemplateWeightUnitEnum$zodSchema
39
+ >;
40
+
41
+ export type CarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb =
42
+ {
43
+ carrier?: string | undefined;
44
+ distance_unit?: DistanceUnitEnum | undefined;
45
+ height?: string | undefined;
46
+ is_variable_dimensions?: boolean | undefined;
47
+ length?: string | undefined;
48
+ name?: string | undefined;
49
+ token?: string | undefined;
50
+ width?: string | undefined;
51
+ };
52
+
53
+ export const CarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb$zodSchema:
54
+ z.ZodType<
55
+ CarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb,
56
+ z.ZodTypeDef,
57
+ unknown
58
+ > = z.object({
59
+ carrier: z.string().optional(),
60
+ distance_unit: DistanceUnitEnum$zodSchema.optional(),
61
+ height: z.string().optional(),
62
+ is_variable_dimensions: z.boolean().optional(),
63
+ length: z.string().optional(),
64
+ name: z.string().optional(),
65
+ token: z.string().optional(),
66
+ width: z.string().optional(),
67
+ });
15
68
 
16
69
  export type UserParcelTemplate = {
17
- distance_unit?: DistanceUnitEnum | undefined;
18
- height?: string | undefined;
19
- length?: string | undefined;
20
- name?: string | undefined;
21
- weight?: string | undefined;
22
- weight_unit?: WeightUnitEnum | undefined;
23
- width?: string | undefined;
70
+ distance_unit?: UserParcelTemplateDistanceUnitEnum | null | undefined;
71
+ height?: string | null | undefined;
72
+ length?: string | null | undefined;
73
+ name?: string | null | undefined;
74
+ weight?: string | null | undefined;
75
+ weight_unit?: UserParcelTemplateWeightUnitEnum | null | undefined;
76
+ width?: string | null | undefined;
24
77
  object_created?: string | undefined;
25
78
  object_id?: string | undefined;
26
79
  object_owner?: string | undefined;
27
80
  object_updated?: string | undefined;
28
- template?: CarrierParcelTemplate | undefined;
81
+ template?:
82
+ | CarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb
83
+ | null
84
+ | undefined;
29
85
  };
30
86
 
31
87
  export const UserParcelTemplate$zodSchema: z.ZodType<
@@ -33,16 +89,19 @@ export const UserParcelTemplate$zodSchema: z.ZodType<
33
89
  z.ZodTypeDef,
34
90
  unknown
35
91
  > = z.object({
36
- distance_unit: DistanceUnitEnum$zodSchema.optional(),
37
- height: z.string().optional(),
38
- length: z.string().optional(),
39
- name: z.string().optional(),
92
+ distance_unit: UserParcelTemplateDistanceUnitEnum$zodSchema.nullable()
93
+ .optional(),
94
+ height: z.string().nullable().optional(),
95
+ length: z.string().nullable().optional(),
96
+ name: z.string().nullable().optional(),
40
97
  object_created: z.string().optional(),
41
98
  object_id: z.string().optional(),
42
99
  object_owner: z.string().optional(),
43
100
  object_updated: z.string().optional(),
44
- template: CarrierParcelTemplate$zodSchema.optional(),
45
- weight: z.string().optional(),
46
- weight_unit: WeightUnitEnum$zodSchema.optional(),
47
- width: z.string().optional(),
101
+ template: z.lazy(() =>
102
+ CarrierParcelTemplateRepresentsTheFieldsOfATemplateBeforeSavingItToTheDb$zodSchema
103
+ ).nullable().optional(),
104
+ weight: z.string().nullable().optional(),
105
+ weight_unit: UserParcelTemplateWeightUnitEnum$zodSchema.nullable().optional(),
106
+ width: z.string().nullable().optional(),
48
107
  });
@@ -3,20 +3,50 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- DistanceUnitEnum,
8
- DistanceUnitEnum$zodSchema,
9
- } from "./distanceunitenum.js";
10
- import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
6
+
7
+ /**
8
+ * The measure unit used for length, width and height.
9
+ */
10
+ export const UserParcelTemplateUpdateRequestDistanceUnitEnum$zodSchema = z.enum(
11
+ [
12
+ "cm",
13
+ "in",
14
+ "ft",
15
+ "m",
16
+ "mm",
17
+ "yd",
18
+ ],
19
+ ).describe("The measure unit used for length, width and height.");
20
+
21
+ export type UserParcelTemplateUpdateRequestDistanceUnitEnum = z.infer<
22
+ typeof UserParcelTemplateUpdateRequestDistanceUnitEnum$zodSchema
23
+ >;
24
+
25
+ /**
26
+ * The unit used for weight.
27
+ */
28
+ export const UserParcelTemplateUpdateRequestWeightUnitEnum$zodSchema = z.enum([
29
+ "g",
30
+ "kg",
31
+ "lb",
32
+ "oz",
33
+ ]).describe("The unit used for weight.");
34
+
35
+ export type UserParcelTemplateUpdateRequestWeightUnitEnum = z.infer<
36
+ typeof UserParcelTemplateUpdateRequestWeightUnitEnum$zodSchema
37
+ >;
11
38
 
12
39
  export type UserParcelTemplateUpdateRequest = {
13
- distance_unit: DistanceUnitEnum;
14
- height: string;
15
- length: string;
16
- name: string;
17
- weight?: string | undefined;
18
- weight_unit?: WeightUnitEnum | undefined;
19
- width: string;
40
+ distance_unit: UserParcelTemplateUpdateRequestDistanceUnitEnum | null;
41
+ height: string | null;
42
+ length: string | null;
43
+ name: string | null;
44
+ weight?: string | null | undefined;
45
+ weight_unit?:
46
+ | UserParcelTemplateUpdateRequestWeightUnitEnum
47
+ | null
48
+ | undefined;
49
+ width: string | null;
20
50
  };
21
51
 
22
52
  export const UserParcelTemplateUpdateRequest$zodSchema: z.ZodType<
@@ -24,11 +54,13 @@ export const UserParcelTemplateUpdateRequest$zodSchema: z.ZodType<
24
54
  z.ZodTypeDef,
25
55
  unknown
26
56
  > = z.object({
27
- distance_unit: DistanceUnitEnum$zodSchema,
28
- height: z.string(),
29
- length: z.string(),
30
- name: z.string(),
31
- weight: z.string().optional(),
32
- weight_unit: WeightUnitEnum$zodSchema.optional(),
33
- width: z.string(),
57
+ distance_unit: UserParcelTemplateUpdateRequestDistanceUnitEnum$zodSchema
58
+ .nullable(),
59
+ height: z.string().nullable(),
60
+ length: z.string().nullable(),
61
+ name: z.string().nullable(),
62
+ weight: z.string().nullable().optional(),
63
+ weight_unit: UserParcelTemplateUpdateRequestWeightUnitEnum$zodSchema
64
+ .nullable().optional(),
65
+ width: z.string().nullable(),
34
66
  });
@@ -3,20 +3,54 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- DistanceUnitEnum,
8
- DistanceUnitEnum$zodSchema,
9
- } from "./distanceunitenum.js";
10
- import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
6
+
7
+ /**
8
+ * The measure unit used for length, width and height.
9
+ */
10
+ export const UserParcelTemplateWithoutCarrierTemplateCreateRequestDistanceUnitEnum$zodSchema =
11
+ z.enum([
12
+ "cm",
13
+ "in",
14
+ "ft",
15
+ "m",
16
+ "mm",
17
+ "yd",
18
+ ]).describe("The measure unit used for length, width and height.");
19
+
20
+ export type UserParcelTemplateWithoutCarrierTemplateCreateRequestDistanceUnitEnum =
21
+ z.infer<
22
+ typeof UserParcelTemplateWithoutCarrierTemplateCreateRequestDistanceUnitEnum$zodSchema
23
+ >;
24
+
25
+ /**
26
+ * The unit used for weight.
27
+ */
28
+ export const UserParcelTemplateWithoutCarrierTemplateCreateRequestWeightUnitEnum$zodSchema =
29
+ z.enum([
30
+ "g",
31
+ "kg",
32
+ "lb",
33
+ "oz",
34
+ ]).describe("The unit used for weight.");
35
+
36
+ export type UserParcelTemplateWithoutCarrierTemplateCreateRequestWeightUnitEnum =
37
+ z.infer<
38
+ typeof UserParcelTemplateWithoutCarrierTemplateCreateRequestWeightUnitEnum$zodSchema
39
+ >;
11
40
 
12
41
  export type UserParcelTemplateWithoutCarrierTemplateCreateRequest = {
13
- distance_unit: DistanceUnitEnum;
14
- height: string;
15
- length: string;
16
- name: string;
17
- weight?: string | undefined;
18
- weight_unit?: WeightUnitEnum | undefined;
19
- width: string;
42
+ distance_unit:
43
+ | UserParcelTemplateWithoutCarrierTemplateCreateRequestDistanceUnitEnum
44
+ | null;
45
+ height: string | null;
46
+ length: string | null;
47
+ name: string | null;
48
+ weight?: string | null | undefined;
49
+ weight_unit?:
50
+ | UserParcelTemplateWithoutCarrierTemplateCreateRequestWeightUnitEnum
51
+ | null
52
+ | undefined;
53
+ width: string | null;
20
54
  };
21
55
 
22
56
  export const UserParcelTemplateWithoutCarrierTemplateCreateRequest$zodSchema:
@@ -25,11 +59,15 @@ export const UserParcelTemplateWithoutCarrierTemplateCreateRequest$zodSchema:
25
59
  z.ZodTypeDef,
26
60
  unknown
27
61
  > = z.object({
28
- distance_unit: DistanceUnitEnum$zodSchema,
29
- height: z.string(),
30
- length: z.string(),
31
- name: z.string(),
32
- weight: z.string().optional(),
33
- weight_unit: WeightUnitEnum$zodSchema.optional(),
34
- width: z.string(),
62
+ distance_unit:
63
+ UserParcelTemplateWithoutCarrierTemplateCreateRequestDistanceUnitEnum$zodSchema
64
+ .nullable(),
65
+ height: z.string().nullable(),
66
+ length: z.string().nullable(),
67
+ name: z.string().nullable(),
68
+ weight: z.string().nullable().optional(),
69
+ weight_unit:
70
+ UserParcelTemplateWithoutCarrierTemplateCreateRequestWeightUnitEnum$zodSchema
71
+ .nullable().optional(),
72
+ width: z.string().nullable(),
35
73
  });