@5ss/ai-tools 3.5.1 → 3.7.0

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,994 @@
1
+ import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
2
+ import "../../index-CZX5OeOF.js";
3
+ import { s as HttpServiceOptions } from "../../http-service-CerzWwQO.js";
4
+ import { z } from "zod";
5
+ //#region src/vendors/shipstation/contracts.d.ts
6
+ declare const shipstationAuthSchema: z.ZodObject<{
7
+ v2_api_key: z.ZodString;
8
+ v1_api_key: z.ZodString;
9
+ v1_api_secret: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type ShipstationAuth = z.infer<typeof shipstationAuthSchema>;
12
+ declare const shipstationMoneySchema: z.ZodObject<{
13
+ currency: z.ZodString;
14
+ amount: z.ZodNumber;
15
+ }, z.core.$loose>;
16
+ declare const shipstationRefundDetailsRawSchema: z.ZodObject<{
17
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ request_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ currency: z.ZodString;
21
+ amount: z.ZodNumber;
22
+ }, z.core.$loose>>>;
23
+ amount_requested: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ currency: z.ZodString;
25
+ amount: z.ZodNumber;
26
+ }, z.core.$loose>>>;
27
+ }, z.core.$loose>;
28
+ declare const shipstationLabelRawSchema: z.ZodObject<{
29
+ label_id: z.ZodString;
30
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ shipment_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40
+ currency: z.ZodString;
41
+ amount: z.ZodNumber;
42
+ }, z.core.$loose>>>;
43
+ insurance_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ currency: z.ZodString;
45
+ amount: z.ZodNumber;
46
+ }, z.core.$loose>>>;
47
+ voided: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
+ voided_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ refund_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ request_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodObject<{
53
+ currency: z.ZodString;
54
+ amount: z.ZodNumber;
55
+ }, z.core.$loose>>>;
56
+ amount_requested: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ currency: z.ZodString;
58
+ amount: z.ZodNumber;
59
+ }, z.core.$loose>>>;
60
+ }, z.core.$loose>>>;
61
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ }, z.core.$loose>;
63
+ declare const shipstationShipmentRawSchema: z.ZodObject<{
64
+ shipment_id: z.ZodString;
65
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ store_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ shipment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ }, z.core.$loose>;
74
+ declare const shipstationFulfillmentRawSchema: z.ZodObject<{
75
+ fulfillment_id: z.ZodString;
76
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ fulfillment_provider_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ }, z.core.$loose>;
84
+ declare const shipstationCarrierServiceRawSchema: z.ZodObject<{
85
+ service_code: z.ZodString;
86
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
90
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
+ }, z.core.$loose>;
92
+ declare const shipstationCarrierPackageRawSchema: z.ZodObject<{
93
+ package_code: z.ZodString;
94
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ }, z.core.$loose>;
98
+ declare const shipstationCarrierOptionRawSchema: z.ZodObject<{
99
+ name: z.ZodString;
100
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
102
+ }, z.core.$loose>;
103
+ declare const shipstationCarrierRawSchema: z.ZodObject<{
104
+ carrier_id: z.ZodString;
105
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ friendly_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
110
+ connection_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ services: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ service_code: z.ZodString;
113
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
117
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
118
+ }, z.core.$loose>>>;
119
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ package_code: z.ZodString;
121
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ }, z.core.$loose>>>;
125
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ name: z.ZodString;
127
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
129
+ }, z.core.$loose>>>;
130
+ }, z.core.$loose>;
131
+ declare const shipstationOrderRawSchema: z.ZodObject<{
132
+ orderId: z.ZodInt;
133
+ orderNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ orderStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ paymentDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ shipByDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ storeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
142
+ }, z.core.$loose>;
143
+ declare const shipstationStoreRawSchema: z.ZodObject<{
144
+ storeId: z.ZodInt;
145
+ storeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ marketplaceId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
147
+ marketplaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
149
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ autoRefresh: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
152
+ }, z.core.$loose>;
153
+ declare const shipstationPaginationSchema: z.ZodObject<{
154
+ total: z.ZodInt;
155
+ page: z.ZodInt;
156
+ pages: z.ZodInt;
157
+ page_size: z.ZodInt;
158
+ has_more: z.ZodBoolean;
159
+ }, z.core.$strip>;
160
+ declare const shipstationListLabelsPageInputSchema: z.ZodObject<{
161
+ page: z.ZodOptional<z.ZodInt>;
162
+ page_size: z.ZodOptional<z.ZodInt>;
163
+ label_status: z.ZodOptional<z.ZodString>;
164
+ service_code: z.ZodOptional<z.ZodString>;
165
+ carrier_id: z.ZodOptional<z.ZodString>;
166
+ tracking_number: z.ZodOptional<z.ZodString>;
167
+ batch_id: z.ZodOptional<z.ZodString>;
168
+ rate_id: z.ZodOptional<z.ZodString>;
169
+ shipment_id: z.ZodOptional<z.ZodString>;
170
+ external_shipment_id: z.ZodOptional<z.ZodString>;
171
+ warehouse_id: z.ZodOptional<z.ZodString>;
172
+ created_at_start: z.ZodOptional<z.ZodISODateTime>;
173
+ created_at_end: z.ZodOptional<z.ZodISODateTime>;
174
+ refund_status: z.ZodOptional<z.ZodString>;
175
+ sort_dir: z.ZodOptional<z.ZodEnum<{
176
+ asc: "asc";
177
+ desc: "desc";
178
+ }>>;
179
+ sort_by: z.ZodOptional<z.ZodEnum<{
180
+ created_at: "created_at";
181
+ modified_at: "modified_at";
182
+ voided_at: "voided_at";
183
+ }>>;
184
+ }, z.core.$strict>;
185
+ declare const shipstationListLabelsPageOutputSchema: z.ZodObject<{
186
+ items: z.ZodArray<z.ZodObject<{
187
+ label_id: z.ZodString;
188
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ shipment_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
198
+ currency: z.ZodString;
199
+ amount: z.ZodNumber;
200
+ }, z.core.$loose>>>;
201
+ insurance_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
202
+ currency: z.ZodString;
203
+ amount: z.ZodNumber;
204
+ }, z.core.$loose>>>;
205
+ voided: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
206
+ voided_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
+ refund_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
208
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ request_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodObject<{
211
+ currency: z.ZodString;
212
+ amount: z.ZodNumber;
213
+ }, z.core.$loose>>>;
214
+ amount_requested: z.ZodOptional<z.ZodNullable<z.ZodObject<{
215
+ currency: z.ZodString;
216
+ amount: z.ZodNumber;
217
+ }, z.core.$loose>>>;
218
+ }, z.core.$loose>>>;
219
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ }, z.core.$loose>>;
221
+ pagination: z.ZodObject<{
222
+ total: z.ZodInt;
223
+ page: z.ZodInt;
224
+ pages: z.ZodInt;
225
+ page_size: z.ZodInt;
226
+ has_more: z.ZodBoolean;
227
+ }, z.core.$strip>;
228
+ }, z.core.$strip>;
229
+ declare const shipstationListShipmentsPageInputSchema: z.ZodObject<{
230
+ page: z.ZodOptional<z.ZodInt>;
231
+ page_size: z.ZodOptional<z.ZodInt>;
232
+ shipment_status: z.ZodOptional<z.ZodString>;
233
+ batch_id: z.ZodOptional<z.ZodString>;
234
+ pickup_id: z.ZodOptional<z.ZodString>;
235
+ created_at_start: z.ZodOptional<z.ZodISODateTime>;
236
+ created_at_end: z.ZodOptional<z.ZodISODateTime>;
237
+ modified_at_start: z.ZodOptional<z.ZodISODateTime>;
238
+ modified_at_end: z.ZodOptional<z.ZodISODateTime>;
239
+ sales_order_id: z.ZodOptional<z.ZodString>;
240
+ shipment_number: z.ZodOptional<z.ZodString>;
241
+ ship_to_name: z.ZodOptional<z.ZodString>;
242
+ item_keyword: z.ZodOptional<z.ZodString>;
243
+ payment_date_start: z.ZodOptional<z.ZodISODateTime>;
244
+ payment_date_end: z.ZodOptional<z.ZodISODateTime>;
245
+ store_id: z.ZodOptional<z.ZodString>;
246
+ external_shipment_id: z.ZodOptional<z.ZodString>;
247
+ sort_dir: z.ZodOptional<z.ZodEnum<{
248
+ asc: "asc";
249
+ desc: "desc";
250
+ }>>;
251
+ sort_by: z.ZodOptional<z.ZodEnum<{
252
+ created_at: "created_at";
253
+ modified_at: "modified_at";
254
+ }>>;
255
+ }, z.core.$strict>;
256
+ declare const shipstationListShipmentsPageOutputSchema: z.ZodObject<{
257
+ items: z.ZodArray<z.ZodObject<{
258
+ shipment_id: z.ZodString;
259
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ store_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ shipment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ }, z.core.$loose>>;
268
+ pagination: z.ZodObject<{
269
+ total: z.ZodInt;
270
+ page: z.ZodInt;
271
+ pages: z.ZodInt;
272
+ page_size: z.ZodInt;
273
+ has_more: z.ZodBoolean;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>;
276
+ declare const shipstationListFulfillmentsPageInputSchema: z.ZodObject<{
277
+ page: z.ZodOptional<z.ZodInt>;
278
+ page_size: z.ZodOptional<z.ZodInt>;
279
+ ship_to_name: z.ZodOptional<z.ZodString>;
280
+ ship_to_country_code: z.ZodOptional<z.ZodString>;
281
+ shipment_number: z.ZodOptional<z.ZodString>;
282
+ shipment_id: z.ZodOptional<z.ZodString>;
283
+ fulfillment_id: z.ZodOptional<z.ZodString>;
284
+ batch_id: z.ZodOptional<z.ZodString>;
285
+ order_source_id: z.ZodOptional<z.ZodString>;
286
+ fulfillment_provider_code: z.ZodOptional<z.ZodString>;
287
+ tracking_number: z.ZodOptional<z.ZodString>;
288
+ ship_date_start: z.ZodOptional<z.ZodISODateTime>;
289
+ ship_date_end: z.ZodOptional<z.ZodISODateTime>;
290
+ create_date_start: z.ZodOptional<z.ZodISODateTime>;
291
+ create_date_end: z.ZodOptional<z.ZodISODateTime>;
292
+ sort_dir: z.ZodOptional<z.ZodEnum<{
293
+ asc: "asc";
294
+ desc: "desc";
295
+ }>>;
296
+ sort_by: z.ZodOptional<z.ZodLiteral<"created_at">>;
297
+ }, z.core.$strict>;
298
+ declare const shipstationListFulfillmentsPageOutputSchema: z.ZodObject<{
299
+ items: z.ZodArray<z.ZodObject<{
300
+ fulfillment_id: z.ZodString;
301
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ fulfillment_provider_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ }, z.core.$loose>>;
309
+ pagination: z.ZodObject<{
310
+ total: z.ZodInt;
311
+ page: z.ZodInt;
312
+ pages: z.ZodInt;
313
+ page_size: z.ZodInt;
314
+ has_more: z.ZodBoolean;
315
+ }, z.core.$strip>;
316
+ }, z.core.$strip>;
317
+ declare const shipstationCarrierIdInputSchema: z.ZodObject<{
318
+ carrier_id: z.ZodString;
319
+ }, z.core.$strict>;
320
+ declare const shipstationListCarriersOutputSchema: z.ZodObject<{
321
+ items: z.ZodArray<z.ZodObject<{
322
+ carrier_id: z.ZodString;
323
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ friendly_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
+ primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
328
+ connection_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ services: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
+ service_code: z.ZodString;
331
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
335
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
336
+ }, z.core.$loose>>>;
337
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ package_code: z.ZodString;
339
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ }, z.core.$loose>>>;
343
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
+ name: z.ZodString;
345
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
347
+ }, z.core.$loose>>>;
348
+ }, z.core.$loose>>;
349
+ }, z.core.$strip>;
350
+ declare const shipstationGetCarrierOutputSchema: z.ZodObject<{
351
+ carrier_id: z.ZodString;
352
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ friendly_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
357
+ connection_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ services: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ service_code: z.ZodString;
360
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
364
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
365
+ }, z.core.$loose>>>;
366
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
367
+ package_code: z.ZodString;
368
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ }, z.core.$loose>>>;
372
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
373
+ name: z.ZodString;
374
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
376
+ }, z.core.$loose>>>;
377
+ }, z.core.$loose>;
378
+ declare const shipstationListCarrierServicesOutputSchema: z.ZodObject<{
379
+ items: z.ZodArray<z.ZodObject<{
380
+ service_code: z.ZodString;
381
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
385
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
386
+ }, z.core.$loose>>;
387
+ }, z.core.$strip>;
388
+ declare const shipstationListCarrierPackagesOutputSchema: z.ZodObject<{
389
+ items: z.ZodArray<z.ZodObject<{
390
+ package_code: z.ZodString;
391
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ }, z.core.$loose>>;
395
+ }, z.core.$strip>;
396
+ declare const shipstationListCarrierOptionsOutputSchema: z.ZodObject<{
397
+ items: z.ZodArray<z.ZodObject<{
398
+ name: z.ZodString;
399
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
401
+ }, z.core.$loose>>;
402
+ }, z.core.$strip>;
403
+ declare const shipstationListOrdersPageInputSchema: z.ZodObject<{
404
+ page: z.ZodOptional<z.ZodInt>;
405
+ page_size: z.ZodOptional<z.ZodInt>;
406
+ customer_name: z.ZodOptional<z.ZodString>;
407
+ item_keyword: z.ZodOptional<z.ZodString>;
408
+ create_date_start: z.ZodOptional<z.ZodISODateTime>;
409
+ create_date_end: z.ZodOptional<z.ZodISODateTime>;
410
+ modify_date_start: z.ZodOptional<z.ZodISODateTime>;
411
+ modify_date_end: z.ZodOptional<z.ZodISODateTime>;
412
+ order_date_start: z.ZodOptional<z.ZodISODateTime>;
413
+ order_date_end: z.ZodOptional<z.ZodISODateTime>;
414
+ order_number: z.ZodOptional<z.ZodString>;
415
+ order_status: z.ZodOptional<z.ZodEnum<{
416
+ awaiting_payment: "awaiting_payment";
417
+ awaiting_shipment: "awaiting_shipment";
418
+ cancelled: "cancelled";
419
+ on_hold: "on_hold";
420
+ pending_fulfillment: "pending_fulfillment";
421
+ rejected_fulfillment: "rejected_fulfillment";
422
+ shipped: "shipped";
423
+ }>>;
424
+ payment_date_start: z.ZodOptional<z.ZodISODateTime>;
425
+ payment_date_end: z.ZodOptional<z.ZodISODateTime>;
426
+ store_id: z.ZodOptional<z.ZodInt>;
427
+ sort_by: z.ZodOptional<z.ZodEnum<{
428
+ CreateDate: "CreateDate";
429
+ ModifyDate: "ModifyDate";
430
+ OrderDate: "OrderDate";
431
+ }>>;
432
+ sort_dir: z.ZodOptional<z.ZodEnum<{
433
+ ASC: "ASC";
434
+ DESC: "DESC";
435
+ }>>;
436
+ }, z.core.$strict>;
437
+ declare const shipstationListOrdersPageOutputSchema: z.ZodObject<{
438
+ items: z.ZodArray<z.ZodObject<{
439
+ orderId: z.ZodInt;
440
+ orderNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ orderStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ paymentDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ shipByDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ storeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
449
+ }, z.core.$loose>>;
450
+ pagination: z.ZodObject<{
451
+ total: z.ZodInt;
452
+ page: z.ZodInt;
453
+ pages: z.ZodInt;
454
+ page_size: z.ZodInt;
455
+ has_more: z.ZodBoolean;
456
+ }, z.core.$strip>;
457
+ }, z.core.$strip>;
458
+ declare const shipstationListStoresInputSchema: z.ZodObject<{
459
+ show_inactive: z.ZodOptional<z.ZodBoolean>;
460
+ marketplace_id: z.ZodOptional<z.ZodInt>;
461
+ }, z.core.$strict>;
462
+ declare const shipstationListStoresOutputSchema: z.ZodObject<{
463
+ items: z.ZodArray<z.ZodObject<{
464
+ storeId: z.ZodInt;
465
+ storeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ marketplaceId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
467
+ marketplaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
469
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ autoRefresh: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
472
+ }, z.core.$loose>>;
473
+ }, z.core.$strip>;
474
+ declare const shipstationListLabelsResponseSchema: z.ZodObject<{
475
+ labels: z.ZodArray<z.ZodObject<{
476
+ label_id: z.ZodString;
477
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
480
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ shipment_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
487
+ currency: z.ZodString;
488
+ amount: z.ZodNumber;
489
+ }, z.core.$loose>>>;
490
+ insurance_cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ currency: z.ZodString;
492
+ amount: z.ZodNumber;
493
+ }, z.core.$loose>>>;
494
+ voided: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
495
+ voided_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
+ refund_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
497
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ request_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodObject<{
500
+ currency: z.ZodString;
501
+ amount: z.ZodNumber;
502
+ }, z.core.$loose>>>;
503
+ amount_requested: z.ZodOptional<z.ZodNullable<z.ZodObject<{
504
+ currency: z.ZodString;
505
+ amount: z.ZodNumber;
506
+ }, z.core.$loose>>>;
507
+ }, z.core.$loose>>>;
508
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ }, z.core.$loose>>;
510
+ total: z.ZodInt;
511
+ page: z.ZodInt;
512
+ pages: z.ZodInt;
513
+ }, z.core.$loose>;
514
+ declare const shipstationListShipmentsResponseSchema: z.ZodObject<{
515
+ shipments: z.ZodArray<z.ZodObject<{
516
+ shipment_id: z.ZodString;
517
+ external_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ service_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ store_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
522
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ shipment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ }, z.core.$loose>>;
526
+ total: z.ZodInt;
527
+ page: z.ZodInt;
528
+ pages: z.ZodInt;
529
+ }, z.core.$loose>;
530
+ declare const shipstationListFulfillmentsResponseSchema: z.ZodObject<{
531
+ fulfillments: z.ZodArray<z.ZodObject<{
532
+ fulfillment_id: z.ZodString;
533
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
+ shipment_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ fulfillment_provider_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ ship_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ }, z.core.$loose>>;
541
+ total: z.ZodInt;
542
+ page: z.ZodInt;
543
+ pages: z.ZodInt;
544
+ }, z.core.$loose>;
545
+ declare const shipstationListCarriersResponseSchema: z.ZodObject<{
546
+ carriers: z.ZodArray<z.ZodObject<{
547
+ carrier_id: z.ZodString;
548
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ friendly_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
553
+ connection_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ services: z.ZodOptional<z.ZodArray<z.ZodObject<{
555
+ service_code: z.ZodString;
556
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
559
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
560
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
561
+ }, z.core.$loose>>>;
562
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
563
+ package_code: z.ZodString;
564
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ }, z.core.$loose>>>;
568
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ name: z.ZodString;
570
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
572
+ }, z.core.$loose>>>;
573
+ }, z.core.$loose>>;
574
+ }, z.core.$loose>;
575
+ declare const shipstationListCarrierServicesResponseSchema: z.ZodObject<{
576
+ services: z.ZodArray<z.ZodObject<{
577
+ service_code: z.ZodString;
578
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
+ domestic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
582
+ international: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
583
+ }, z.core.$loose>>;
584
+ }, z.core.$loose>;
585
+ declare const shipstationListCarrierPackagesResponseSchema: z.ZodObject<{
586
+ packages: z.ZodArray<z.ZodObject<{
587
+ package_code: z.ZodString;
588
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ carrier_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
+ carrier_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
+ }, z.core.$loose>>;
592
+ }, z.core.$loose>;
593
+ declare const shipstationListCarrierOptionsResponseSchema: z.ZodObject<{
594
+ options: z.ZodArray<z.ZodObject<{
595
+ name: z.ZodString;
596
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
598
+ }, z.core.$loose>>;
599
+ }, z.core.$loose>;
600
+ declare const shipstationListOrdersResponseSchema: z.ZodObject<{
601
+ orders: z.ZodArray<z.ZodObject<{
602
+ orderId: z.ZodInt;
603
+ orderNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ orderStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
+ orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ paymentDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ shipByDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ storeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
612
+ }, z.core.$loose>>;
613
+ total: z.ZodInt;
614
+ page: z.ZodInt;
615
+ pages: z.ZodInt;
616
+ }, z.core.$loose>;
617
+ declare const shipstationListStoresResponseSchema: z.ZodArray<z.ZodObject<{
618
+ storeId: z.ZodInt;
619
+ storeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ marketplaceId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
621
+ marketplaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
623
+ createDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ modifyDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
+ autoRefresh: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
626
+ }, z.core.$loose>>;
627
+ type ShipstationLabelRaw = z.infer<typeof shipstationLabelRawSchema>;
628
+ type ShipstationShipmentRaw = z.infer<typeof shipstationShipmentRawSchema>;
629
+ type ShipstationFulfillmentRaw = z.infer<typeof shipstationFulfillmentRawSchema>;
630
+ type ShipstationCarrierRaw = z.infer<typeof shipstationCarrierRawSchema>;
631
+ type ShipstationCarrierServiceRaw = z.infer<typeof shipstationCarrierServiceRawSchema>;
632
+ type ShipstationCarrierPackageRaw = z.infer<typeof shipstationCarrierPackageRawSchema>;
633
+ type ShipstationCarrierOptionRaw = z.infer<typeof shipstationCarrierOptionRawSchema>;
634
+ type ShipstationOrderRaw = z.infer<typeof shipstationOrderRawSchema>;
635
+ type ShipstationStoreRaw = z.infer<typeof shipstationStoreRawSchema>;
636
+ type ShipstationPagination = z.infer<typeof shipstationPaginationSchema>;
637
+ type ShipstationListLabelsPageInput = z.infer<typeof shipstationListLabelsPageInputSchema>;
638
+ type ShipstationListLabelsPageOutput = z.infer<typeof shipstationListLabelsPageOutputSchema>;
639
+ type ShipstationListShipmentsPageInput = z.infer<typeof shipstationListShipmentsPageInputSchema>;
640
+ type ShipstationListShipmentsPageOutput = z.infer<typeof shipstationListShipmentsPageOutputSchema>;
641
+ type ShipstationListFulfillmentsPageInput = z.infer<typeof shipstationListFulfillmentsPageInputSchema>;
642
+ type ShipstationListFulfillmentsPageOutput = z.infer<typeof shipstationListFulfillmentsPageOutputSchema>;
643
+ type ShipstationCarrierIdInput = z.infer<typeof shipstationCarrierIdInputSchema>;
644
+ type ShipstationListCarriersOutput = z.infer<typeof shipstationListCarriersOutputSchema>;
645
+ type ShipstationGetCarrierOutput = z.infer<typeof shipstationGetCarrierOutputSchema>;
646
+ type ShipstationListCarrierServicesOutput = z.infer<typeof shipstationListCarrierServicesOutputSchema>;
647
+ type ShipstationListCarrierPackagesOutput = z.infer<typeof shipstationListCarrierPackagesOutputSchema>;
648
+ type ShipstationListCarrierOptionsOutput = z.infer<typeof shipstationListCarrierOptionsOutputSchema>;
649
+ type ShipstationListOrdersPageInput = z.infer<typeof shipstationListOrdersPageInputSchema>;
650
+ type ShipstationListOrdersPageOutput = z.infer<typeof shipstationListOrdersPageOutputSchema>;
651
+ type ShipstationListStoresInput = z.infer<typeof shipstationListStoresInputSchema>;
652
+ type ShipstationListStoresOutput = z.infer<typeof shipstationListStoresOutputSchema>;
653
+ //#endregion
654
+ //#region src/vendors/shipstation/client.d.ts
655
+ type ShipstationClientOptions = Pick<HttpServiceOptions, 'fetch' | 'signal'>;
656
+ declare class ShipstationClient {
657
+ #private;
658
+ constructor(auth: ShipstationAuth, options?: ShipstationClientOptions);
659
+ static fromContext(ctx: ToolContext): ShipstationClient;
660
+ /** One V2 GET /labels request with provider pagination and filters. */
661
+ listLabelsPage(input?: ShipstationListLabelsPageInput): Promise<ShipstationListLabelsPageOutput>;
662
+ /** One V2 GET /shipments request with provider pagination and filters. */
663
+ listShipmentsPage(input?: ShipstationListShipmentsPageInput): Promise<ShipstationListShipmentsPageOutput>;
664
+ /** One V2 GET /fulfillments request with provider pagination and filters. */
665
+ listFulfillmentsPage(input?: ShipstationListFulfillmentsPageInput): Promise<ShipstationListFulfillmentsPageOutput>;
666
+ /** V2 GET /carriers. */
667
+ listCarriers(): Promise<ShipstationListCarriersOutput>;
668
+ /** V2 GET /carriers/{carrier_id}. */
669
+ getCarrier(input: ShipstationCarrierIdInput): Promise<ShipstationGetCarrierOutput>;
670
+ /** V2 GET /carriers/{carrier_id}/services. */
671
+ listCarrierServices(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierServicesOutput>;
672
+ /** V2 GET /carriers/{carrier_id}/packages. */
673
+ listCarrierPackages(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierPackagesOutput>;
674
+ /** V2 GET /carriers/{carrier_id}/options. */
675
+ listCarrierOptions(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierOptionsOutput>;
676
+ /** One legacy V1 GET /orders request. */
677
+ listOrdersPage(input?: ShipstationListOrdersPageInput): Promise<ShipstationListOrdersPageOutput>;
678
+ /** Legacy V1 GET /stores. */
679
+ listStores(input?: ShipstationListStoresInput): Promise<ShipstationListStoresOutput>;
680
+ }
681
+ //#endregion
682
+ //#region src/vendors/shipstation/module.d.ts
683
+ declare const shipstationListLabelsTool: ToolDefinition<{
684
+ page?: number | undefined;
685
+ page_size?: number | undefined;
686
+ label_status?: string | undefined;
687
+ service_code?: string | undefined;
688
+ carrier_id?: string | undefined;
689
+ tracking_number?: string | undefined;
690
+ batch_id?: string | undefined;
691
+ rate_id?: string | undefined;
692
+ shipment_id?: string | undefined;
693
+ external_shipment_id?: string | undefined;
694
+ warehouse_id?: string | undefined;
695
+ created_at_start?: string | undefined;
696
+ created_at_end?: string | undefined;
697
+ refund_status?: string | undefined;
698
+ sort_dir?: "asc" | "desc" | undefined;
699
+ sort_by?: "created_at" | "modified_at" | "voided_at" | undefined;
700
+ }, {
701
+ items: {
702
+ [x: string]: unknown;
703
+ label_id: string;
704
+ shipment_id?: string | null | undefined;
705
+ external_shipment_id?: string | null | undefined;
706
+ external_order_id?: string | null | undefined;
707
+ carrier_id?: string | null | undefined;
708
+ service_code?: string | null | undefined;
709
+ tracking_number?: string | null | undefined;
710
+ created_at?: string | null | undefined;
711
+ modified_at?: string | null | undefined;
712
+ ship_date?: string | null | undefined;
713
+ shipment_cost?: {
714
+ [x: string]: unknown;
715
+ currency: string;
716
+ amount: number;
717
+ } | null | undefined;
718
+ insurance_cost?: {
719
+ [x: string]: unknown;
720
+ currency: string;
721
+ amount: number;
722
+ } | null | undefined;
723
+ voided?: boolean | null | undefined;
724
+ voided_at?: string | null | undefined;
725
+ refund_details?: {
726
+ [x: string]: unknown;
727
+ refund_status?: string | null | undefined;
728
+ request_date?: string | null | undefined;
729
+ amount_paid?: {
730
+ [x: string]: unknown;
731
+ currency: string;
732
+ amount: number;
733
+ } | null | undefined;
734
+ amount_requested?: {
735
+ [x: string]: unknown;
736
+ currency: string;
737
+ amount: number;
738
+ } | null | undefined;
739
+ } | null | undefined;
740
+ status?: string | null | undefined;
741
+ }[];
742
+ pagination: {
743
+ total: number;
744
+ page: number;
745
+ pages: number;
746
+ page_size: number;
747
+ has_more: boolean;
748
+ };
749
+ }>;
750
+ declare const shipstationListShipmentsTool: ToolDefinition<{
751
+ page?: number | undefined;
752
+ page_size?: number | undefined;
753
+ shipment_status?: string | undefined;
754
+ batch_id?: string | undefined;
755
+ pickup_id?: string | undefined;
756
+ created_at_start?: string | undefined;
757
+ created_at_end?: string | undefined;
758
+ modified_at_start?: string | undefined;
759
+ modified_at_end?: string | undefined;
760
+ sales_order_id?: string | undefined;
761
+ shipment_number?: string | undefined;
762
+ ship_to_name?: string | undefined;
763
+ item_keyword?: string | undefined;
764
+ payment_date_start?: string | undefined;
765
+ payment_date_end?: string | undefined;
766
+ store_id?: string | undefined;
767
+ external_shipment_id?: string | undefined;
768
+ sort_dir?: "asc" | "desc" | undefined;
769
+ sort_by?: "created_at" | "modified_at" | undefined;
770
+ }, {
771
+ items: {
772
+ [x: string]: unknown;
773
+ shipment_id: string;
774
+ external_order_id?: string | null | undefined;
775
+ shipment_number?: string | null | undefined;
776
+ carrier_id?: string | null | undefined;
777
+ service_code?: string | null | undefined;
778
+ store_id?: string | null | undefined;
779
+ created_at?: string | null | undefined;
780
+ modified_at?: string | null | undefined;
781
+ shipment_status?: string | null | undefined;
782
+ }[];
783
+ pagination: {
784
+ total: number;
785
+ page: number;
786
+ pages: number;
787
+ page_size: number;
788
+ has_more: boolean;
789
+ };
790
+ }>;
791
+ declare const shipstationListFulfillmentsTool: ToolDefinition<{
792
+ page?: number | undefined;
793
+ page_size?: number | undefined;
794
+ ship_to_name?: string | undefined;
795
+ ship_to_country_code?: string | undefined;
796
+ shipment_number?: string | undefined;
797
+ shipment_id?: string | undefined;
798
+ fulfillment_id?: string | undefined;
799
+ batch_id?: string | undefined;
800
+ order_source_id?: string | undefined;
801
+ fulfillment_provider_code?: string | undefined;
802
+ tracking_number?: string | undefined;
803
+ ship_date_start?: string | undefined;
804
+ ship_date_end?: string | undefined;
805
+ create_date_start?: string | undefined;
806
+ create_date_end?: string | undefined;
807
+ sort_dir?: "asc" | "desc" | undefined;
808
+ sort_by?: "created_at" | undefined;
809
+ }, {
810
+ items: {
811
+ [x: string]: unknown;
812
+ fulfillment_id: string;
813
+ shipment_id?: string | null | undefined;
814
+ shipment_number?: string | null | undefined;
815
+ tracking_number?: string | null | undefined;
816
+ carrier_code?: string | null | undefined;
817
+ fulfillment_provider_code?: string | null | undefined;
818
+ created_at?: string | null | undefined;
819
+ ship_date?: string | null | undefined;
820
+ }[];
821
+ pagination: {
822
+ total: number;
823
+ page: number;
824
+ pages: number;
825
+ page_size: number;
826
+ has_more: boolean;
827
+ };
828
+ }>;
829
+ declare const shipstationListCarriersTool: ToolDefinition<Record<string, never>, {
830
+ items: {
831
+ [x: string]: unknown;
832
+ carrier_id: string;
833
+ carrier_code?: string | null | undefined;
834
+ account_number?: string | null | undefined;
835
+ nickname?: string | null | undefined;
836
+ friendly_name?: string | null | undefined;
837
+ primary?: boolean | null | undefined;
838
+ connection_status?: string | null | undefined;
839
+ services?: {
840
+ [x: string]: unknown;
841
+ service_code: string;
842
+ name?: string | null | undefined;
843
+ carrier_id?: string | null | undefined;
844
+ carrier_code?: string | null | undefined;
845
+ domestic?: boolean | null | undefined;
846
+ international?: boolean | null | undefined;
847
+ }[] | undefined;
848
+ packages?: {
849
+ [x: string]: unknown;
850
+ package_code: string;
851
+ name?: string | null | undefined;
852
+ carrier_id?: string | null | undefined;
853
+ carrier_code?: string | null | undefined;
854
+ }[] | undefined;
855
+ options?: {
856
+ [x: string]: unknown;
857
+ name: string;
858
+ description?: string | null | undefined;
859
+ default_value?: string | number | boolean | null | undefined;
860
+ }[] | undefined;
861
+ }[];
862
+ }>;
863
+ declare const shipstationGetCarrierTool: ToolDefinition<{
864
+ carrier_id: string;
865
+ }, {
866
+ [x: string]: unknown;
867
+ carrier_id: string;
868
+ carrier_code?: string | null | undefined;
869
+ account_number?: string | null | undefined;
870
+ nickname?: string | null | undefined;
871
+ friendly_name?: string | null | undefined;
872
+ primary?: boolean | null | undefined;
873
+ connection_status?: string | null | undefined;
874
+ services?: {
875
+ [x: string]: unknown;
876
+ service_code: string;
877
+ name?: string | null | undefined;
878
+ carrier_id?: string | null | undefined;
879
+ carrier_code?: string | null | undefined;
880
+ domestic?: boolean | null | undefined;
881
+ international?: boolean | null | undefined;
882
+ }[] | undefined;
883
+ packages?: {
884
+ [x: string]: unknown;
885
+ package_code: string;
886
+ name?: string | null | undefined;
887
+ carrier_id?: string | null | undefined;
888
+ carrier_code?: string | null | undefined;
889
+ }[] | undefined;
890
+ options?: {
891
+ [x: string]: unknown;
892
+ name: string;
893
+ description?: string | null | undefined;
894
+ default_value?: string | number | boolean | null | undefined;
895
+ }[] | undefined;
896
+ }>;
897
+ declare const shipstationListCarrierServicesTool: ToolDefinition<{
898
+ carrier_id: string;
899
+ }, {
900
+ items: {
901
+ [x: string]: unknown;
902
+ service_code: string;
903
+ name?: string | null | undefined;
904
+ carrier_id?: string | null | undefined;
905
+ carrier_code?: string | null | undefined;
906
+ domestic?: boolean | null | undefined;
907
+ international?: boolean | null | undefined;
908
+ }[];
909
+ }>;
910
+ declare const shipstationListCarrierPackagesTool: ToolDefinition<{
911
+ carrier_id: string;
912
+ }, {
913
+ items: {
914
+ [x: string]: unknown;
915
+ package_code: string;
916
+ name?: string | null | undefined;
917
+ carrier_id?: string | null | undefined;
918
+ carrier_code?: string | null | undefined;
919
+ }[];
920
+ }>;
921
+ declare const shipstationListCarrierOptionsTool: ToolDefinition<{
922
+ carrier_id: string;
923
+ }, {
924
+ items: {
925
+ [x: string]: unknown;
926
+ name: string;
927
+ description?: string | null | undefined;
928
+ default_value?: string | number | boolean | null | undefined;
929
+ }[];
930
+ }>;
931
+ declare const shipstationListOrdersTool: ToolDefinition<{
932
+ page?: number | undefined;
933
+ page_size?: number | undefined;
934
+ customer_name?: string | undefined;
935
+ item_keyword?: string | undefined;
936
+ create_date_start?: string | undefined;
937
+ create_date_end?: string | undefined;
938
+ modify_date_start?: string | undefined;
939
+ modify_date_end?: string | undefined;
940
+ order_date_start?: string | undefined;
941
+ order_date_end?: string | undefined;
942
+ order_number?: string | undefined;
943
+ order_status?: "awaiting_payment" | "awaiting_shipment" | "cancelled" | "on_hold" | "pending_fulfillment" | "rejected_fulfillment" | "shipped" | undefined;
944
+ payment_date_start?: string | undefined;
945
+ payment_date_end?: string | undefined;
946
+ store_id?: number | undefined;
947
+ sort_by?: "CreateDate" | "ModifyDate" | "OrderDate" | undefined;
948
+ sort_dir?: "ASC" | "DESC" | undefined;
949
+ }, {
950
+ items: {
951
+ [x: string]: unknown;
952
+ orderId: number;
953
+ orderNumber?: string | null | undefined;
954
+ orderKey?: string | null | undefined;
955
+ orderStatus?: string | null | undefined;
956
+ createDate?: string | null | undefined;
957
+ modifyDate?: string | null | undefined;
958
+ orderDate?: string | null | undefined;
959
+ paymentDate?: string | null | undefined;
960
+ shipByDate?: string | null | undefined;
961
+ storeId?: number | null | undefined;
962
+ }[];
963
+ pagination: {
964
+ total: number;
965
+ page: number;
966
+ pages: number;
967
+ page_size: number;
968
+ has_more: boolean;
969
+ };
970
+ }>;
971
+ declare const shipstationListStoresTool: ToolDefinition<{
972
+ show_inactive?: boolean | undefined;
973
+ marketplace_id?: number | undefined;
974
+ }, {
975
+ items: {
976
+ [x: string]: unknown;
977
+ storeId: number;
978
+ storeName?: string | null | undefined;
979
+ marketplaceId?: number | null | undefined;
980
+ marketplaceName?: string | null | undefined;
981
+ active?: boolean | null | undefined;
982
+ createDate?: string | null | undefined;
983
+ modifyDate?: string | null | undefined;
984
+ autoRefresh?: boolean | null | undefined;
985
+ }[];
986
+ }>;
987
+ declare const shipstationModule: ModuleDefinition<{
988
+ v2_api_key: string;
989
+ v1_api_key: string;
990
+ v1_api_secret: string;
991
+ }>;
992
+ //#endregion
993
+ export { type ShipstationAuth, type ShipstationCarrierIdInput, type ShipstationCarrierOptionRaw, type ShipstationCarrierPackageRaw, type ShipstationCarrierRaw, type ShipstationCarrierServiceRaw, ShipstationClient, type ShipstationClientOptions, type ShipstationFulfillmentRaw, type ShipstationGetCarrierOutput, type ShipstationLabelRaw, type ShipstationListCarrierOptionsOutput, type ShipstationListCarrierPackagesOutput, type ShipstationListCarrierServicesOutput, type ShipstationListCarriersOutput, type ShipstationListFulfillmentsPageInput, type ShipstationListFulfillmentsPageOutput, type ShipstationListLabelsPageInput, type ShipstationListLabelsPageOutput, type ShipstationListOrdersPageInput, type ShipstationListOrdersPageOutput, type ShipstationListShipmentsPageInput, type ShipstationListShipmentsPageOutput, type ShipstationListStoresInput, type ShipstationListStoresOutput, type ShipstationOrderRaw, type ShipstationPagination, type ShipstationShipmentRaw, type ShipstationStoreRaw, shipstationAuthSchema, shipstationCarrierIdInputSchema, shipstationCarrierOptionRawSchema, shipstationCarrierPackageRawSchema, shipstationCarrierRawSchema, shipstationCarrierServiceRawSchema, shipstationFulfillmentRawSchema, shipstationGetCarrierOutputSchema, shipstationGetCarrierTool, shipstationLabelRawSchema, shipstationListCarrierOptionsOutputSchema, shipstationListCarrierOptionsResponseSchema, shipstationListCarrierOptionsTool, shipstationListCarrierPackagesOutputSchema, shipstationListCarrierPackagesResponseSchema, shipstationListCarrierPackagesTool, shipstationListCarrierServicesOutputSchema, shipstationListCarrierServicesResponseSchema, shipstationListCarrierServicesTool, shipstationListCarriersOutputSchema, shipstationListCarriersResponseSchema, shipstationListCarriersTool, shipstationListFulfillmentsPageInputSchema, shipstationListFulfillmentsPageOutputSchema, shipstationListFulfillmentsResponseSchema, shipstationListFulfillmentsTool, shipstationListLabelsPageInputSchema, shipstationListLabelsPageOutputSchema, shipstationListLabelsResponseSchema, shipstationListLabelsTool, shipstationListOrdersPageInputSchema, shipstationListOrdersPageOutputSchema, shipstationListOrdersResponseSchema, shipstationListOrdersTool, shipstationListShipmentsPageInputSchema, shipstationListShipmentsPageOutputSchema, shipstationListShipmentsResponseSchema, shipstationListShipmentsTool, shipstationListStoresInputSchema, shipstationListStoresOutputSchema, shipstationListStoresResponseSchema, shipstationListStoresTool, shipstationModule, shipstationMoneySchema, shipstationOrderRawSchema, shipstationPaginationSchema, shipstationRefundDetailsRawSchema, shipstationShipmentRawSchema, shipstationStoreRawSchema };
994
+ //# sourceMappingURL=index.d.ts.map