@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 @@
1
+ {"version":3,"file":"index.js","names":["#v2","#v1"],"sources":["../../../src/vendors/shipstation/contracts.ts","../../../src/vendors/shipstation/client.ts","../../../src/vendors/shipstation/module.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const shipstationAuthSchema = z.object({\n\tv2_api_key: z.string().min(1).describe('ShipStation V2 API key'),\n\tv1_api_key: z.string().min(1).describe('ShipStation V1 API key'),\n\tv1_api_secret: z.string().min(1).describe('ShipStation V1 API secret')\n})\n\nexport type ShipstationAuth = z.infer<typeof shipstationAuthSchema>\n\nconst shipstationPageSchema = z.int().min(1).optional().describe('Provider page number, starting at 1')\nconst shipstationPageSizeSchema = z\n\t.int()\n\t.min(1)\n\t.max(500)\n\t.optional()\n\t.describe('Records per page, from 1 to 500; defaults to 25')\n\nexport const shipstationMoneySchema = z.looseObject({\n\tcurrency: z.string().min(1),\n\tamount: z.number().nonnegative()\n})\n\nexport const shipstationRefundDetailsRawSchema = z.looseObject({\n\trefund_status: z.string().nullable().optional(),\n\trequest_date: z.string().nullable().optional(),\n\tamount_paid: shipstationMoneySchema.nullable().optional(),\n\tamount_requested: shipstationMoneySchema.nullable().optional()\n})\n\nexport const shipstationLabelRawSchema = z.looseObject({\n\tlabel_id: z.string().min(1),\n\tshipment_id: z.string().nullable().optional(),\n\texternal_shipment_id: z.string().nullable().optional(),\n\texternal_order_id: z.string().nullable().optional(),\n\tcarrier_id: z.string().nullable().optional(),\n\tservice_code: z.string().nullable().optional(),\n\ttracking_number: z.string().nullable().optional(),\n\tcreated_at: z.string().nullable().optional(),\n\tmodified_at: z.string().nullable().optional(),\n\tship_date: z.string().nullable().optional(),\n\tshipment_cost: shipstationMoneySchema.nullable().optional(),\n\tinsurance_cost: shipstationMoneySchema.nullable().optional(),\n\tvoided: z.boolean().nullable().optional(),\n\tvoided_at: z.string().nullable().optional(),\n\trefund_details: shipstationRefundDetailsRawSchema.nullable().optional(),\n\tstatus: z.string().nullable().optional()\n})\n\nexport const shipstationShipmentRawSchema = z.looseObject({\n\tshipment_id: z.string().min(1),\n\texternal_order_id: z.string().nullable().optional(),\n\tshipment_number: z.string().nullable().optional(),\n\tcarrier_id: z.string().nullable().optional(),\n\tservice_code: z.string().nullable().optional(),\n\tstore_id: z.string().nullable().optional(),\n\tcreated_at: z.string().nullable().optional(),\n\tmodified_at: z.string().nullable().optional(),\n\tshipment_status: z.string().nullable().optional()\n})\n\nexport const shipstationFulfillmentRawSchema = z.looseObject({\n\tfulfillment_id: z.string().min(1),\n\tshipment_id: z.string().nullable().optional(),\n\tshipment_number: z.string().nullable().optional(),\n\ttracking_number: z.string().nullable().optional(),\n\tcarrier_code: z.string().nullable().optional(),\n\tfulfillment_provider_code: z.string().nullable().optional(),\n\tcreated_at: z.string().nullable().optional(),\n\tship_date: z.string().nullable().optional()\n})\n\nexport const shipstationCarrierServiceRawSchema = z.looseObject({\n\tservice_code: z.string().min(1),\n\tname: z.string().nullable().optional(),\n\tcarrier_id: z.string().nullable().optional(),\n\tcarrier_code: z.string().nullable().optional(),\n\tdomestic: z.boolean().nullable().optional(),\n\tinternational: z.boolean().nullable().optional()\n})\n\nexport const shipstationCarrierPackageRawSchema = z.looseObject({\n\tpackage_code: z.string().min(1),\n\tname: z.string().nullable().optional(),\n\tcarrier_id: z.string().nullable().optional(),\n\tcarrier_code: z.string().nullable().optional()\n})\n\nexport const shipstationCarrierOptionRawSchema = z.looseObject({\n\tname: z.string().min(1),\n\tdescription: z.string().nullable().optional(),\n\tdefault_value: z.union([z.string(), z.number(), z.boolean()]).nullable().optional()\n})\n\nexport const shipstationCarrierRawSchema = z.looseObject({\n\tcarrier_id: z.string().min(1),\n\tcarrier_code: z.string().nullable().optional(),\n\taccount_number: z.string().nullable().optional(),\n\tnickname: z.string().nullable().optional(),\n\tfriendly_name: z.string().nullable().optional(),\n\tprimary: z.boolean().nullable().optional(),\n\tconnection_status: z.string().nullable().optional(),\n\tservices: z.array(shipstationCarrierServiceRawSchema).optional(),\n\tpackages: z.array(shipstationCarrierPackageRawSchema).optional(),\n\toptions: z.array(shipstationCarrierOptionRawSchema).optional()\n})\n\nexport const shipstationOrderRawSchema = z.looseObject({\n\torderId: z.int(),\n\torderNumber: z.string().nullable().optional(),\n\torderKey: z.string().nullable().optional(),\n\torderStatus: z.string().nullable().optional(),\n\tcreateDate: z.string().nullable().optional(),\n\tmodifyDate: z.string().nullable().optional(),\n\torderDate: z.string().nullable().optional(),\n\tpaymentDate: z.string().nullable().optional(),\n\tshipByDate: z.string().nullable().optional(),\n\tstoreId: z.int().nullable().optional()\n})\n\nexport const shipstationStoreRawSchema = z.looseObject({\n\tstoreId: z.int(),\n\tstoreName: z.string().nullable().optional(),\n\tmarketplaceId: z.int().nullable().optional(),\n\tmarketplaceName: z.string().nullable().optional(),\n\tactive: z.boolean().nullable().optional(),\n\tcreateDate: z.string().nullable().optional(),\n\tmodifyDate: z.string().nullable().optional(),\n\tautoRefresh: z.boolean().nullable().optional()\n})\n\nexport const shipstationPaginationSchema = z.object({\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative(),\n\tpage_size: z.int().min(1).max(500),\n\thas_more: z.boolean()\n})\n\nexport const shipstationListLabelsPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tlabel_status: z.string().min(1).optional().describe('Label status filter'),\n\tservice_code: z.string().min(1).optional().describe('Carrier service code filter'),\n\tcarrier_id: z.string().min(1).optional().describe('ShipStation carrier id filter'),\n\ttracking_number: z.string().min(1).optional().describe('Exact tracking number filter'),\n\tbatch_id: z.string().min(1).optional().describe('ShipStation batch id filter'),\n\trate_id: z.string().min(1).optional().describe('ShipStation rate id filter'),\n\tshipment_id: z.string().min(1).optional().describe('ShipStation shipment id filter'),\n\texternal_shipment_id: z.string().min(1).optional().describe('External shipment id filter'),\n\twarehouse_id: z.string().min(1).optional().describe('ShipStation warehouse id filter'),\n\tcreated_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include labels created at or after this ISO 8601 timestamp'),\n\tcreated_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include labels created at or before this ISO 8601 timestamp'),\n\trefund_status: z.string().min(1).optional().describe('Comma-separated label refund statuses'),\n\tsort_dir: z.enum(['asc', 'desc']).optional().describe('Provider slice direction; defaults to desc'),\n\tsort_by: z\n\t\t.enum(['modified_at', 'created_at', 'voided_at'])\n\t\t.optional()\n\t\t.describe('Label field used to sort the provider slice')\n})\n\nexport const shipstationListLabelsPageOutputSchema = z.object({\n\titems: z.array(shipstationLabelRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationListShipmentsPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tshipment_status: z.string().min(1).optional().describe('Shipment status filter'),\n\tbatch_id: z.string().min(1).optional().describe('ShipStation batch id filter'),\n\tpickup_id: z.string().min(1).optional().describe('ShipStation pickup id filter'),\n\tcreated_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments created at or after this ISO 8601 timestamp'),\n\tcreated_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments created at or before this ISO 8601 timestamp'),\n\tmodified_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments modified at or after this ISO 8601 timestamp'),\n\tmodified_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments modified at or before this ISO 8601 timestamp'),\n\tsales_order_id: z.string().min(1).optional().describe('Sales order id filter'),\n\tshipment_number: z.string().min(1).optional().describe('Shipment number filter'),\n\tship_to_name: z.string().min(1).optional().describe('Recipient name filter'),\n\titem_keyword: z.string().min(1).optional().describe('Shipment item keyword filter'),\n\tpayment_date_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments paid at or after this ISO 8601 timestamp'),\n\tpayment_date_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments paid at or before this ISO 8601 timestamp'),\n\tstore_id: z.string().min(1).optional().describe('ShipStation store id filter'),\n\texternal_shipment_id: z.string().min(1).optional().describe('External shipment id filter'),\n\tsort_dir: z.enum(['asc', 'desc']).optional().describe('Provider slice direction; defaults to desc'),\n\tsort_by: z.enum(['modified_at', 'created_at']).optional().describe('Shipment field used to sort the provider slice')\n})\n\nexport const shipstationListShipmentsPageOutputSchema = z.object({\n\titems: z.array(shipstationShipmentRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationListFulfillmentsPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tship_to_name: z.string().min(1).optional().describe('Recipient name filter'),\n\tship_to_country_code: z.string().length(2).optional().describe('Two-letter destination country code'),\n\tshipment_number: z.string().min(1).optional().describe('Shipment number filter'),\n\tshipment_id: z.string().min(1).optional().describe('Shipment id filter'),\n\tfulfillment_id: z.string().min(1).optional().describe('Fulfillment id filter'),\n\tbatch_id: z.string().min(1).optional().describe('Batch id filter'),\n\torder_source_id: z.string().min(1).optional().describe('Order source id filter'),\n\tfulfillment_provider_code: z.string().min(1).optional().describe('Fulfillment provider code filter'),\n\ttracking_number: z.string().min(1).optional().describe('Tracking number filter'),\n\tship_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest fulfillment ship time'),\n\tship_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest fulfillment ship time'),\n\tcreate_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest fulfillment creation time'),\n\tcreate_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest fulfillment creation time'),\n\tsort_dir: z.enum(['asc', 'desc']).optional().describe('Provider slice direction'),\n\tsort_by: z.literal('created_at').optional().describe('Fulfillment field used to sort the provider slice')\n})\n\nexport const shipstationListFulfillmentsPageOutputSchema = z.object({\n\titems: z.array(shipstationFulfillmentRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationCarrierIdInputSchema = z.strictObject({\n\tcarrier_id: z.string().min(1).describe('ShipStation V2 carrier id')\n})\n\nexport const shipstationListCarriersOutputSchema = z.object({ items: z.array(shipstationCarrierRawSchema) })\nexport const shipstationGetCarrierOutputSchema = shipstationCarrierRawSchema\nexport const shipstationListCarrierServicesOutputSchema = z.object({\n\titems: z.array(shipstationCarrierServiceRawSchema)\n})\nexport const shipstationListCarrierPackagesOutputSchema = z.object({\n\titems: z.array(shipstationCarrierPackageRawSchema)\n})\nexport const shipstationListCarrierOptionsOutputSchema = z.object({\n\titems: z.array(shipstationCarrierOptionRawSchema)\n})\n\nexport const shipstationListOrdersPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tcustomer_name: z.string().min(1).optional().describe('Customer name filter'),\n\titem_keyword: z.string().min(1).optional().describe('Order item SKU, description, or option filter'),\n\tcreate_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest ShipStation creation time'),\n\tcreate_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest ShipStation creation time'),\n\tmodify_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest modification time'),\n\tmodify_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest modification time'),\n\torder_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest order time'),\n\torder_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest order time'),\n\torder_number: z.string().min(1).optional().describe('Order number prefix filter'),\n\torder_status: z\n\t\t.enum([\n\t\t\t'awaiting_payment',\n\t\t\t'awaiting_shipment',\n\t\t\t'pending_fulfillment',\n\t\t\t'shipped',\n\t\t\t'on_hold',\n\t\t\t'cancelled',\n\t\t\t'rejected_fulfillment'\n\t\t])\n\t\t.optional()\n\t\t.describe('Order status filter'),\n\tpayment_date_start: z.iso.datetime({ offset: true }).optional().describe('Earliest payment time'),\n\tpayment_date_end: z.iso.datetime({ offset: true }).optional().describe('Latest payment time'),\n\tstore_id: z.int().optional().describe('V1 store id filter'),\n\tsort_by: z.enum(['OrderDate', 'ModifyDate', 'CreateDate']).optional().describe('Order sort field'),\n\tsort_dir: z.enum(['ASC', 'DESC']).optional().describe('Order sort direction')\n})\n\nexport const shipstationListOrdersPageOutputSchema = z.object({\n\titems: z.array(shipstationOrderRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationListStoresInputSchema = z.strictObject({\n\tshow_inactive: z.boolean().optional().describe('Include inactive stores'),\n\tmarketplace_id: z.int().optional().describe('Marketplace type id filter')\n})\n\nexport const shipstationListStoresOutputSchema = z.object({ items: z.array(shipstationStoreRawSchema) })\n\nexport const shipstationListLabelsResponseSchema = z.looseObject({\n\tlabels: z.array(shipstationLabelRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\n\nexport const shipstationListShipmentsResponseSchema = z.looseObject({\n\tshipments: z.array(shipstationShipmentRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\n\nexport const shipstationListFulfillmentsResponseSchema = z.looseObject({\n\tfulfillments: z.array(shipstationFulfillmentRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\n\nexport const shipstationListCarriersResponseSchema = z.looseObject({ carriers: z.array(shipstationCarrierRawSchema) })\nexport const shipstationListCarrierServicesResponseSchema = z.looseObject({\n\tservices: z.array(shipstationCarrierServiceRawSchema)\n})\nexport const shipstationListCarrierPackagesResponseSchema = z.looseObject({\n\tpackages: z.array(shipstationCarrierPackageRawSchema)\n})\nexport const shipstationListCarrierOptionsResponseSchema = z.looseObject({\n\toptions: z.array(shipstationCarrierOptionRawSchema)\n})\nexport const shipstationListOrdersResponseSchema = z.looseObject({\n\torders: z.array(shipstationOrderRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\nexport const shipstationListStoresResponseSchema = z.array(shipstationStoreRawSchema)\n\nexport type ShipstationLabelRaw = z.infer<typeof shipstationLabelRawSchema>\nexport type ShipstationShipmentRaw = z.infer<typeof shipstationShipmentRawSchema>\nexport type ShipstationFulfillmentRaw = z.infer<typeof shipstationFulfillmentRawSchema>\nexport type ShipstationCarrierRaw = z.infer<typeof shipstationCarrierRawSchema>\nexport type ShipstationCarrierServiceRaw = z.infer<typeof shipstationCarrierServiceRawSchema>\nexport type ShipstationCarrierPackageRaw = z.infer<typeof shipstationCarrierPackageRawSchema>\nexport type ShipstationCarrierOptionRaw = z.infer<typeof shipstationCarrierOptionRawSchema>\nexport type ShipstationOrderRaw = z.infer<typeof shipstationOrderRawSchema>\nexport type ShipstationStoreRaw = z.infer<typeof shipstationStoreRawSchema>\nexport type ShipstationPagination = z.infer<typeof shipstationPaginationSchema>\nexport type ShipstationListLabelsPageInput = z.infer<typeof shipstationListLabelsPageInputSchema>\nexport type ShipstationListLabelsPageOutput = z.infer<typeof shipstationListLabelsPageOutputSchema>\nexport type ShipstationListShipmentsPageInput = z.infer<typeof shipstationListShipmentsPageInputSchema>\nexport type ShipstationListShipmentsPageOutput = z.infer<typeof shipstationListShipmentsPageOutputSchema>\nexport type ShipstationListFulfillmentsPageInput = z.infer<typeof shipstationListFulfillmentsPageInputSchema>\nexport type ShipstationListFulfillmentsPageOutput = z.infer<typeof shipstationListFulfillmentsPageOutputSchema>\nexport type ShipstationCarrierIdInput = z.infer<typeof shipstationCarrierIdInputSchema>\nexport type ShipstationListCarriersOutput = z.infer<typeof shipstationListCarriersOutputSchema>\nexport type ShipstationGetCarrierOutput = z.infer<typeof shipstationGetCarrierOutputSchema>\nexport type ShipstationListCarrierServicesOutput = z.infer<typeof shipstationListCarrierServicesOutputSchema>\nexport type ShipstationListCarrierPackagesOutput = z.infer<typeof shipstationListCarrierPackagesOutputSchema>\nexport type ShipstationListCarrierOptionsOutput = z.infer<typeof shipstationListCarrierOptionsOutputSchema>\nexport type ShipstationListOrdersPageInput = z.infer<typeof shipstationListOrdersPageInputSchema>\nexport type ShipstationListOrdersPageOutput = z.infer<typeof shipstationListOrdersPageOutputSchema>\nexport type ShipstationListStoresInput = z.infer<typeof shipstationListStoresInputSchema>\nexport type ShipstationListStoresOutput = z.infer<typeof shipstationListStoresOutputSchema>\n","/**\n * ShipStation V2 and V1 vendor client.\n * Host: `new ShipstationClient(auth)`. Agent tools: `fromContext(ctx)`.\n */\n\nimport type { output, ZodType } from 'zod'\n\nimport { ToolError } from '../../core/errors'\nimport { requireAuth } from '../../core/provider'\nimport type { ToolContext } from '../../core/types'\nimport { bytesToBase64, utf8ToBytes } from '../../shared/bytes'\nimport { HttpService } from '../../transport/http-service'\nimport type { HttpServiceOptions } from '../../transport/http-service'\nimport type {\n\tShipstationAuth,\n\tShipstationCarrierIdInput,\n\tShipstationGetCarrierOutput,\n\tShipstationListCarrierOptionsOutput,\n\tShipstationListCarrierPackagesOutput,\n\tShipstationListCarriersOutput,\n\tShipstationListCarrierServicesOutput,\n\tShipstationListFulfillmentsPageInput,\n\tShipstationListFulfillmentsPageOutput,\n\tShipstationListLabelsPageInput,\n\tShipstationListLabelsPageOutput,\n\tShipstationListOrdersPageInput,\n\tShipstationListOrdersPageOutput,\n\tShipstationListShipmentsPageInput,\n\tShipstationListShipmentsPageOutput,\n\tShipstationListStoresInput,\n\tShipstationListStoresOutput\n} from './contracts'\nimport {\n\tshipstationAuthSchema,\n\tshipstationCarrierIdInputSchema,\n\tshipstationCarrierRawSchema,\n\tshipstationListCarrierOptionsResponseSchema,\n\tshipstationListCarrierPackagesResponseSchema,\n\tshipstationListCarriersResponseSchema,\n\tshipstationListCarrierServicesResponseSchema,\n\tshipstationListFulfillmentsPageInputSchema,\n\tshipstationListFulfillmentsResponseSchema,\n\tshipstationListLabelsPageInputSchema,\n\tshipstationListLabelsResponseSchema,\n\tshipstationListOrdersPageInputSchema,\n\tshipstationListOrdersResponseSchema,\n\tshipstationListShipmentsPageInputSchema,\n\tshipstationListShipmentsResponseSchema,\n\tshipstationListStoresInputSchema,\n\tshipstationListStoresResponseSchema\n} from './contracts'\n\nconst SHIPSTATION_V2_API_BASE = 'https://api.shipstation.com/v2'\nconst SHIPSTATION_V1_API_BASE = 'https://ssapi.shipstation.com'\nconst DEFAULT_PAGE_SIZE = 25\n\nexport type ShipstationClientOptions = Pick<HttpServiceOptions, 'fetch' | 'signal'>\n\nfunction parseInput<TSchema extends ZodType>(schema: TSchema, input: unknown, message: string): output<TSchema> {\n\tconst parsed = schema.safeParse(input)\n\tif (!parsed.success) {\n\t\tthrow new ToolError(message, {\n\t\t\tcode: 'bad_input',\n\t\t\tdetails: { issues: parsed.error.issues.map((issue) => issue.message) }\n\t\t})\n\t}\n\treturn parsed.data\n}\n\nfunction parseResponse<TSchema extends ZodType>(schema: TSchema, data: unknown, message: string): output<TSchema> {\n\tconst parsed = schema.safeParse(data)\n\tif (!parsed.success) {\n\t\tthrow new ToolError(message, {\n\t\t\tcode: 'upstream',\n\t\t\tdetails: { issues: parsed.error.issues.map((issue) => issue.message) }\n\t\t})\n\t}\n\treturn parsed.data\n}\n\nfunction v1Authorization(apiKey: string, apiSecret: string): string {\n\treturn `Basic ${bytesToBase64(utf8ToBytes(`${apiKey}:${apiSecret}`))}`\n}\n\nexport class ShipstationClient {\n\treadonly #v2: HttpService\n\treadonly #v1: HttpService\n\n\tconstructor(auth: ShipstationAuth, options: ShipstationClientOptions = {}) {\n\t\tconst parsed = shipstationAuthSchema.safeParse(auth)\n\t\tif (!parsed.success) {\n\t\t\tthrow new ToolError('Invalid ShipStation auth credentials', {\n\t\t\t\tcode: 'bad_auth',\n\t\t\t\tdetails: { issues: parsed.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\tthis.#v2 = new HttpService({\n\t\t\t...options,\n\t\t\tbaseURL: SHIPSTATION_V2_API_BASE,\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t\t'API-Key': parsed.data.v2_api_key\n\t\t\t},\n\t\t\tlabel: 'ShipStation V2'\n\t\t})\n\t\tthis.#v1 = new HttpService({\n\t\t\t...options,\n\t\t\tbaseURL: SHIPSTATION_V1_API_BASE,\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t\tAuthorization: v1Authorization(parsed.data.v1_api_key, parsed.data.v1_api_secret)\n\t\t\t},\n\t\t\tlabel: 'ShipStation V1'\n\t\t})\n\t}\n\n\tstatic fromContext(ctx: ToolContext): ShipstationClient {\n\t\tconst auth = requireAuth(ctx, shipstationAuthSchema)\n\t\treturn new ShipstationClient(auth, {\n\t\t\t...(ctx.fetch && { fetch: ctx.fetch }),\n\t\t\t...(ctx.signal && { signal: ctx.signal })\n\t\t})\n\t}\n\n\t/** One V2 GET /labels request with provider pagination and filters. */\n\tasync listLabelsPage(input: ShipstationListLabelsPageInput = {}): Promise<ShipstationListLabelsPageOutput> {\n\t\tconst parsedInput = parseInput(shipstationListLabelsPageInputSchema, input, 'Invalid ShipStation labels page input')\n\t\tconst page = parsedInput.page ?? 1\n\t\tconst pageSize = parsedInput.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#v2.get('/labels', {\n\t\t\tlabel: 'ShipStation listLabelsPage',\n\t\t\tquery: { ...parsedInput, page, page_size: pageSize }\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListLabelsResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned an invalid labels page'\n\t\t)\n\n\t\treturn {\n\t\t\titems: response.labels,\n\t\t\tpagination: {\n\t\t\t\ttotal: response.total,\n\t\t\t\tpage: response.page,\n\t\t\t\tpages: response.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: response.page < response.pages\n\t\t\t}\n\t\t}\n\t}\n\n\t/** One V2 GET /shipments request with provider pagination and filters. */\n\tasync listShipmentsPage(input: ShipstationListShipmentsPageInput = {}): Promise<ShipstationListShipmentsPageOutput> {\n\t\tconst parsedInput = parseInput(\n\t\t\tshipstationListShipmentsPageInputSchema,\n\t\t\tinput,\n\t\t\t'Invalid ShipStation shipments page input'\n\t\t)\n\t\tconst page = parsedInput.page ?? 1\n\t\tconst pageSize = parsedInput.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#v2.get('/shipments', {\n\t\t\tlabel: 'ShipStation listShipmentsPage',\n\t\t\tquery: { ...parsedInput, page, page_size: pageSize }\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListShipmentsResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned an invalid shipments page'\n\t\t)\n\n\t\treturn {\n\t\t\titems: response.shipments,\n\t\t\tpagination: {\n\t\t\t\ttotal: response.total,\n\t\t\t\tpage: response.page,\n\t\t\t\tpages: response.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: response.page < response.pages\n\t\t\t}\n\t\t}\n\t}\n\n\t/** One V2 GET /fulfillments request with provider pagination and filters. */\n\tasync listFulfillmentsPage(\n\t\tinput: ShipstationListFulfillmentsPageInput = {}\n\t): Promise<ShipstationListFulfillmentsPageOutput> {\n\t\tconst parsedInput = parseInput(\n\t\t\tshipstationListFulfillmentsPageInputSchema,\n\t\t\tinput,\n\t\t\t'Invalid ShipStation fulfillments page input'\n\t\t)\n\t\tconst page = parsedInput.page ?? 1\n\t\tconst pageSize = parsedInput.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#v2.get('/fulfillments', {\n\t\t\tlabel: 'ShipStation listFulfillmentsPage',\n\t\t\tquery: { ...parsedInput, page, page_size: pageSize }\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListFulfillmentsResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned an invalid fulfillments page'\n\t\t)\n\n\t\treturn {\n\t\t\titems: response.fulfillments,\n\t\t\tpagination: {\n\t\t\t\ttotal: response.total,\n\t\t\t\tpage: response.page,\n\t\t\t\tpages: response.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: response.page < response.pages\n\t\t\t}\n\t\t}\n\t}\n\n\t/** V2 GET /carriers. */\n\tasync listCarriers(): Promise<ShipstationListCarriersOutput> {\n\t\tconst { data } = await this.#v2.get('/carriers', { label: 'ShipStation listCarriers' })\n\t\tconst response = parseResponse(\n\t\t\tshipstationListCarriersResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned an invalid carriers response'\n\t\t)\n\t\treturn { items: response.carriers }\n\t}\n\n\t/** V2 GET /carriers/{carrier_id}. */\n\tasync getCarrier(input: ShipstationCarrierIdInput): Promise<ShipstationGetCarrierOutput> {\n\t\tconst parsedInput = parseInput(shipstationCarrierIdInputSchema, input, 'Invalid ShipStation carrier input')\n\t\tconst { data } = await this.#v2.get(`/carriers/${encodeURIComponent(parsedInput.carrier_id)}`, {\n\t\t\tlabel: 'ShipStation getCarrier'\n\t\t})\n\t\treturn parseResponse(shipstationCarrierRawSchema, data, 'ShipStation returned an invalid carrier')\n\t}\n\n\t/** V2 GET /carriers/{carrier_id}/services. */\n\tasync listCarrierServices(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierServicesOutput> {\n\t\tconst parsedInput = parseInput(shipstationCarrierIdInputSchema, input, 'Invalid ShipStation carrier input')\n\t\tconst { data } = await this.#v2.get(`/carriers/${encodeURIComponent(parsedInput.carrier_id)}/services`, {\n\t\t\tlabel: 'ShipStation listCarrierServices'\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListCarrierServicesResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned invalid carrier services'\n\t\t)\n\t\treturn { items: response.services }\n\t}\n\n\t/** V2 GET /carriers/{carrier_id}/packages. */\n\tasync listCarrierPackages(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierPackagesOutput> {\n\t\tconst parsedInput = parseInput(shipstationCarrierIdInputSchema, input, 'Invalid ShipStation carrier input')\n\t\tconst { data } = await this.#v2.get(`/carriers/${encodeURIComponent(parsedInput.carrier_id)}/packages`, {\n\t\t\tlabel: 'ShipStation listCarrierPackages'\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListCarrierPackagesResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned invalid carrier packages'\n\t\t)\n\t\treturn { items: response.packages }\n\t}\n\n\t/** V2 GET /carriers/{carrier_id}/options. */\n\tasync listCarrierOptions(input: ShipstationCarrierIdInput): Promise<ShipstationListCarrierOptionsOutput> {\n\t\tconst parsedInput = parseInput(shipstationCarrierIdInputSchema, input, 'Invalid ShipStation carrier input')\n\t\tconst { data } = await this.#v2.get(`/carriers/${encodeURIComponent(parsedInput.carrier_id)}/options`, {\n\t\t\tlabel: 'ShipStation listCarrierOptions'\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListCarrierOptionsResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned invalid carrier options'\n\t\t)\n\t\treturn { items: response.options }\n\t}\n\n\t/** One legacy V1 GET /orders request. */\n\tasync listOrdersPage(input: ShipstationListOrdersPageInput = {}): Promise<ShipstationListOrdersPageOutput> {\n\t\tconst parsedInput = parseInput(shipstationListOrdersPageInputSchema, input, 'Invalid ShipStation orders page input')\n\t\tconst page = parsedInput.page ?? 1\n\t\tconst pageSize = parsedInput.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#v1.get('/orders', {\n\t\t\tlabel: 'ShipStation listOrdersPage',\n\t\t\tquery: {\n\t\t\t\tpage,\n\t\t\t\tpageSize,\n\t\t\t\t...(parsedInput.customer_name && { customerName: parsedInput.customer_name }),\n\t\t\t\t...(parsedInput.item_keyword && { itemKeyword: parsedInput.item_keyword }),\n\t\t\t\t...(parsedInput.create_date_start && { createDateStart: parsedInput.create_date_start }),\n\t\t\t\t...(parsedInput.create_date_end && { createDateEnd: parsedInput.create_date_end }),\n\t\t\t\t...(parsedInput.modify_date_start && { modifyDateStart: parsedInput.modify_date_start }),\n\t\t\t\t...(parsedInput.modify_date_end && { modifyDateEnd: parsedInput.modify_date_end }),\n\t\t\t\t...(parsedInput.order_date_start && { orderDateStart: parsedInput.order_date_start }),\n\t\t\t\t...(parsedInput.order_date_end && { orderDateEnd: parsedInput.order_date_end }),\n\t\t\t\t...(parsedInput.order_number && { orderNumber: parsedInput.order_number }),\n\t\t\t\t...(parsedInput.order_status && { orderStatus: parsedInput.order_status }),\n\t\t\t\t...(parsedInput.payment_date_start && { paymentDateStart: parsedInput.payment_date_start }),\n\t\t\t\t...(parsedInput.payment_date_end && { paymentDateEnd: parsedInput.payment_date_end }),\n\t\t\t\t...(parsedInput.store_id !== undefined && { storeId: parsedInput.store_id }),\n\t\t\t\t...(parsedInput.sort_by && { sortBy: parsedInput.sort_by }),\n\t\t\t\t...(parsedInput.sort_dir && { sortDir: parsedInput.sort_dir })\n\t\t\t}\n\t\t})\n\t\tconst response = parseResponse(\n\t\t\tshipstationListOrdersResponseSchema,\n\t\t\tdata,\n\t\t\t'ShipStation returned an invalid orders page'\n\t\t)\n\n\t\treturn {\n\t\t\titems: response.orders,\n\t\t\tpagination: {\n\t\t\t\ttotal: response.total,\n\t\t\t\tpage: response.page,\n\t\t\t\tpages: response.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: response.page < response.pages\n\t\t\t}\n\t\t}\n\t}\n\n\t/** Legacy V1 GET /stores. */\n\tasync listStores(input: ShipstationListStoresInput = {}): Promise<ShipstationListStoresOutput> {\n\t\tconst parsedInput = parseInput(shipstationListStoresInputSchema, input, 'Invalid ShipStation stores input')\n\t\tconst { data } = await this.#v1.get('/stores', {\n\t\t\tlabel: 'ShipStation listStores',\n\t\t\tquery: {\n\t\t\t\t...(parsedInput.show_inactive !== undefined && { showInactive: parsedInput.show_inactive }),\n\t\t\t\t...(parsedInput.marketplace_id !== undefined && { marketplaceId: parsedInput.marketplace_id })\n\t\t\t}\n\t\t})\n\t\treturn {\n\t\t\titems: parseResponse(shipstationListStoresResponseSchema, data, 'ShipStation returned an invalid stores response')\n\t\t}\n\t}\n}\n","import { z } from 'zod'\n\nimport { defineModule, defineTool } from '../../core/define'\nimport { ShipstationClient } from './client'\nimport {\n\tshipstationAuthSchema,\n\tshipstationCarrierIdInputSchema,\n\tshipstationGetCarrierOutputSchema,\n\tshipstationListCarrierOptionsOutputSchema,\n\tshipstationListCarrierPackagesOutputSchema,\n\tshipstationListCarriersOutputSchema,\n\tshipstationListCarrierServicesOutputSchema,\n\tshipstationListFulfillmentsPageInputSchema,\n\tshipstationListFulfillmentsPageOutputSchema,\n\tshipstationListLabelsPageInputSchema,\n\tshipstationListLabelsPageOutputSchema,\n\tshipstationListOrdersPageInputSchema,\n\tshipstationListOrdersPageOutputSchema,\n\tshipstationListShipmentsPageInputSchema,\n\tshipstationListShipmentsPageOutputSchema,\n\tshipstationListStoresInputSchema,\n\tshipstationListStoresOutputSchema\n} from './contracts'\n\nconst emptyInputSchema = z.strictObject({}).describe('No input fields')\n\nexport const shipstationListLabelsTool = defineTool({\n\tid: 'shipstation-list-labels',\n\tname: 'shipstationListLabels',\n\tdescription:\n\t\t'List one V2 page of ShipStation labels, including shipping and insurance cost, carrier, service, tracking, void, and refund data.',\n\tinputSchema: shipstationListLabelsPageInputSchema,\n\toutputSchema: shipstationListLabelsPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['labels', 'shipping', 'tracking', 'costs', 'fulfillment'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listLabelsPage(input)\n})\n\nexport const shipstationListShipmentsTool = defineTool({\n\tid: 'shipstation-list-shipments',\n\tname: 'shipstationListShipments',\n\tdescription:\n\t\t'List one V2 page of ShipStation shipments. Filter by time, status, order, store, recipient, item, batch, pickup, or shipment identifiers.',\n\tinputSchema: shipstationListShipmentsPageInputSchema,\n\toutputSchema: shipstationListShipmentsPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['shipments', 'shipping', 'orders', 'fulfillment'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listShipmentsPage(input)\n})\n\nexport const shipstationListFulfillmentsTool = defineTool({\n\tid: 'shipstation-list-fulfillments',\n\tname: 'shipstationListFulfillments',\n\tdescription:\n\t\t'List one V2 page of completed ShipStation fulfillments with shipment, provider, tracking, creation, and ship-date filters.',\n\tinputSchema: shipstationListFulfillmentsPageInputSchema,\n\toutputSchema: shipstationListFulfillmentsPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['fulfillments', 'shipments', 'tracking'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listFulfillmentsPage(input)\n})\n\nexport const shipstationListCarriersTool = defineTool({\n\tid: 'shipstation-list-carriers',\n\tname: 'shipstationListCarriers',\n\tdescription: 'List connected V2 ShipStation carrier accounts and their available shipping capabilities.',\n\tinputSchema: emptyInputSchema,\n\toutputSchema: shipstationListCarriersOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['carriers', 'shipping'],\n\texecute: async (_input, ctx) => ShipstationClient.fromContext(ctx).listCarriers()\n})\n\nexport const shipstationGetCarrierTool = defineTool({\n\tid: 'shipstation-get-carrier',\n\tname: 'shipstationGetCarrier',\n\tdescription: 'Get one connected V2 ShipStation carrier account and its capabilities.',\n\tinputSchema: shipstationCarrierIdInputSchema,\n\toutputSchema: shipstationGetCarrierOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['carriers', 'shipping'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).getCarrier(input)\n})\n\nexport const shipstationListCarrierServicesTool = defineTool({\n\tid: 'shipstation-list-carrier-services',\n\tname: 'shipstationListCarrierServices',\n\tdescription: 'List shipping services available through one V2 ShipStation carrier account.',\n\tinputSchema: shipstationCarrierIdInputSchema,\n\toutputSchema: shipstationListCarrierServicesOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['carriers', 'services', 'shipping'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listCarrierServices(input)\n})\n\nexport const shipstationListCarrierPackagesTool = defineTool({\n\tid: 'shipstation-list-carrier-packages',\n\tname: 'shipstationListCarrierPackages',\n\tdescription: 'List package types available through one V2 ShipStation carrier account.',\n\tinputSchema: shipstationCarrierIdInputSchema,\n\toutputSchema: shipstationListCarrierPackagesOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['carriers', 'packages', 'shipping'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listCarrierPackages(input)\n})\n\nexport const shipstationListCarrierOptionsTool = defineTool({\n\tid: 'shipstation-list-carrier-options',\n\tname: 'shipstationListCarrierOptions',\n\tdescription: 'List advanced options available through one V2 ShipStation carrier account.',\n\tinputSchema: shipstationCarrierIdInputSchema,\n\toutputSchema: shipstationListCarrierOptionsOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['carriers', 'options', 'shipping'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listCarrierOptions(input)\n})\n\nexport const shipstationListOrdersTool = defineTool({\n\tid: 'shipstation-list-orders',\n\tname: 'shipstationListOrders',\n\tdescription:\n\t\t'List one legacy V1 page of ShipStation sales orders. Filter by creation, modification, order, or payment time plus customer, item, number, status, or store.',\n\tinputSchema: shipstationListOrdersPageInputSchema,\n\toutputSchema: shipstationListOrdersPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['orders', 'sales', 'stores'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listOrdersPage(input)\n})\n\nexport const shipstationListStoresTool = defineTool({\n\tid: 'shipstation-list-stores',\n\tname: 'shipstationListStores',\n\tdescription: 'List installed legacy V1 ShipStation stores, optionally including inactive stores or one marketplace.',\n\tinputSchema: shipstationListStoresInputSchema,\n\toutputSchema: shipstationListStoresOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['stores', 'orders', 'marketplaces'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listStores(input)\n})\n\nexport const shipstationModule = defineModule({\n\tid: 'shipstation',\n\ttitle: 'ShipStation',\n\tdescription: 'Hybrid ShipStation pack: V2 shipping operations plus legacy V1 sales orders and stores.',\n\truntime: 'both',\n\tauth: { type: 'custom', schema: shipstationAuthSchema },\n\tcategories: ['commerce', 'shipping'],\n\tclassification: 'pii',\n\ttags: ['labels', 'shipments', 'fulfillments', 'carriers', 'orders', 'stores', 'tracking'],\n\ttools: [\n\t\tshipstationListLabelsTool,\n\t\tshipstationListShipmentsTool,\n\t\tshipstationListFulfillmentsTool,\n\t\tshipstationListCarriersTool,\n\t\tshipstationGetCarrierTool,\n\t\tshipstationListCarrierServicesTool,\n\t\tshipstationListCarrierPackagesTool,\n\t\tshipstationListCarrierOptionsTool,\n\t\tshipstationListOrdersTool,\n\t\tshipstationListStoresTool\n\t]\n})\n"],"mappings":";;;;;;;AAEA,MAAa,wBAAwB,EAAE,OAAO;CAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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;CACN,aACC;CACD,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,MAAM;EAAC;EAAU;EAAS;CAAQ;CAClC,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,eAAe,KAAK;AACvF,CAAC;AAED,MAAa,4BAA4B,WAAW;CACnD,IAAI;CACJ,MAAM;CACN,aAAa;CACb,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,MAAM;EAAC;EAAU;EAAU;CAAc;CACzC,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,WAAW,KAAK;AACnF,CAAC;AAED,MAAa,oBAAoB,aAAa;CAC7C,IAAI;CACJ,OAAO;CACP,aAAa;CACb,SAAS;CACT,MAAM;EAAE,MAAM;EAAU,QAAQ;CAAsB;CACtD,YAAY,CAAC,YAAY,UAAU;CACnC,gBAAgB;CAChB,MAAM;EAAC;EAAU;EAAa;EAAgB;EAAY;EAAU;EAAU;CAAU;CACxF,OAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;AACD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5ss/ai-tools",
3
- "version": "3.5.1",
3
+ "version": "3.7.0",
4
4
  "description": "Reusable AI tools with strict schemas and model-facing contracts. Define once; project to Node, edge, Mastra, AI SDK, TanStack AI, Cloudflare Workers AI, or MCP.",
5
5
  "license": "MIT",
6
6
  "author": "harryy",
@@ -166,6 +166,10 @@
166
166
  "types": "./dist/modules/scheduler/index.d.ts",
167
167
  "default": "./dist/modules/scheduler/index.js"
168
168
  },
169
+ "./shipstation": {
170
+ "types": "./dist/vendors/shipstation/index.d.ts",
171
+ "default": "./dist/vendors/shipstation/index.js"
172
+ },
169
173
  "./skills": {
170
174
  "types": "./dist/modules/skills/index.d.ts",
171
175
  "default": "./dist/modules/skills/index.js"