@shippo/shippo-mcp 0.8.24 → 0.8.29

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.
package/bin/mcp-server.js CHANGED
@@ -46623,9 +46623,9 @@ var init_config = __esm(() => {
46623
46623
  SDK_METADATA = {
46624
46624
  language: "typescript",
46625
46625
  openapiDocVersion: "2018-02-08",
46626
- sdkVersion: "0.8.24",
46626
+ sdkVersion: "0.8.29",
46627
46627
  genVersion: "2.770.0",
46628
- userAgent: "speakeasy-sdk/mcp-typescript 0.8.24 2.770.0 2018-02-08 @shippo/shippo-mcp"
46628
+ userAgent: "speakeasy-sdk/mcp-typescript 0.8.29 2.770.0 2018-02-08 @shippo/shippo-mcp"
46629
46629
  };
46630
46630
  });
46631
46631
 
@@ -52856,7 +52856,7 @@ var init_customsitem = __esm(() => {
52856
52856
  quantity: numberType().int(),
52857
52857
  sku_code: stringType().nullable().optional(),
52858
52858
  tariff_number: stringType().nullable().optional(),
52859
- test: booleanType().optional(),
52859
+ test: booleanType().nullable().optional(),
52860
52860
  value_amount: stringType(),
52861
52861
  value_currency: stringType()
52862
52862
  });
@@ -60642,10 +60642,14 @@ var init_webhookpaginatedlist = __esm(() => {
60642
60642
  });
60643
60643
 
60644
60644
  // src/models/listwebhooksop.ts
60645
- var ListWebhooksResponse$zodSchema;
60645
+ var RequestT$zodSchema, ListWebhooksRequest$zodSchema, ListWebhooksResponse$zodSchema;
60646
60646
  var init_listwebhooksop = __esm(() => {
60647
60647
  init_zod();
60648
60648
  init_webhookpaginatedlist();
60649
+ RequestT$zodSchema = objectType({});
60650
+ ListWebhooksRequest$zodSchema = objectType({
60651
+ request: lazyType(() => RequestT$zodSchema).optional()
60652
+ });
60649
60653
  ListWebhooksResponse$zodSchema = objectType({
60650
60654
  ContentType: stringType(),
60651
60655
  RawResponse: instanceOfType(Response),
@@ -60655,11 +60659,20 @@ var init_listwebhooksop = __esm(() => {
60655
60659
  });
60656
60660
 
60657
60661
  // src/funcs/webhooksList.ts
60658
- function webhooksList(client$, options) {
60659
- return new APIPromise($do69(client$, options));
60662
+ function webhooksList(client$, request, options) {
60663
+ return new APIPromise($do69(client$, request, options));
60660
60664
  }
60661
- async function $do69(client$, options) {
60665
+ async function $do69(client$, request, options) {
60666
+ const parsed$ = safeParse(request, (value$) => ListWebhooksRequest$zodSchema.optional().parse(value$), "Input validation failed");
60667
+ if (!parsed$.ok) {
60668
+ return [parsed$, { status: "invalid" }];
60669
+ }
60670
+ const payload$ = parsed$.value;
60671
+ const body$ = null;
60662
60672
  const path$ = pathToFunc("/webhooks")();
60673
+ const query$ = encodeFormQuery({
60674
+ request: payload$?.request
60675
+ });
60663
60676
  const headers$ = new Headers(compactMap({
60664
60677
  Accept: "application/json"
60665
60678
  }));
@@ -60687,6 +60700,8 @@ async function $do69(client$, options) {
60687
60700
  baseURL: options?.serverURL,
60688
60701
  path: path$,
60689
60702
  headers: headers$,
60703
+ query: query$,
60704
+ body: body$,
60690
60705
  userAgent: client$._options.userAgent,
60691
60706
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60692
60707
  }, options);
@@ -60713,8 +60728,10 @@ async function $do69(client$, options) {
60713
60728
  return [result$, { status: "complete", request: req$, response }];
60714
60729
  }
60715
60730
  var init_webhooksList = __esm(() => {
60731
+ init_encodings();
60716
60732
  init_matchers();
60717
60733
  init_primitives();
60734
+ init_schemas();
60718
60735
  init_security();
60719
60736
  init_url();
60720
60737
  init_listwebhooksop();
@@ -60722,10 +60739,14 @@ var init_webhooksList = __esm(() => {
60722
60739
  });
60723
60740
 
60724
60741
  // src/mcp-server/tools/webhooksList.ts
60725
- var tool$webhooksList;
60742
+ var args69, tool$webhooksList;
60726
60743
  var init_webhooksList2 = __esm(() => {
60727
60744
  init_webhooksList();
60745
+ init_listwebhooksop();
60728
60746
  init_tools();
60747
+ args69 = {
60748
+ request: ListWebhooksRequest$zodSchema.optional()
60749
+ };
60729
60750
  tool$webhooksList = {
60730
60751
  name: "webhooks-list",
60731
60752
  description: `List all webhooks
@@ -60738,8 +60759,9 @@ Returns a list of all webhooks you have created.`,
60738
60759
  openWorldHint: false,
60739
60760
  readOnlyHint: true
60740
60761
  },
60741
- tool: async (client, ctx) => {
60742
- const [result, apiCall] = await webhooksList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
60762
+ args: args69,
60763
+ tool: async (client, args70, ctx) => {
60764
+ const [result, apiCall] = await webhooksList(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60743
60765
  if (!result.ok) {
60744
60766
  return {
60745
60767
  content: [{ type: "text", text: result.error.message }],
@@ -60852,12 +60874,12 @@ var init_webhooksUpdate = __esm(() => {
60852
60874
  });
60853
60875
 
60854
60876
  // src/mcp-server/tools/webhooksUpdate.ts
60855
- var args69, tool$webhooksUpdate;
60877
+ var args70, tool$webhooksUpdate;
60856
60878
  var init_webhooksUpdate2 = __esm(() => {
60857
60879
  init_webhooksUpdate();
60858
60880
  init_updatewebhookop();
60859
60881
  init_tools();
60860
- args69 = {
60882
+ args70 = {
60861
60883
  request: UpdateWebhookRequest$zodSchema
60862
60884
  };
60863
60885
  tool$webhooksUpdate = {
@@ -60872,9 +60894,9 @@ Updates an existing webhook using the webhook object ID.`,
60872
60894
  openWorldHint: false,
60873
60895
  readOnlyHint: false
60874
60896
  },
60875
- args: args69,
60876
- tool: async (client, args70, ctx) => {
60877
- const [result, apiCall] = await webhooksUpdate(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60897
+ args: args70,
60898
+ tool: async (client, args71, ctx) => {
60899
+ const [result, apiCall] = await webhooksUpdate(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60878
60900
  if (!result.ok) {
60879
60901
  return {
60880
60902
  content: [{ type: "text", text: result.error.message }],
@@ -60891,7 +60913,7 @@ Updates an existing webhook using the webhook object ID.`,
60891
60913
  function createMCPServer(deps) {
60892
60914
  const server = new McpServer({
60893
60915
  name: "ShippoSDK",
60894
- version: "0.8.24"
60916
+ version: "0.8.29"
60895
60917
  });
60896
60918
  const getClient = deps.getSDK || (() => new ShippoSDKCore({
60897
60919
  security: deps.security,
@@ -60899,9 +60921,9 @@ function createMCPServer(deps) {
60899
60921
  serverURL: deps.serverURL,
60900
60922
  serverIdx: deps.serverIdx,
60901
60923
  debugLogger: deps.logger.level === "debug" ? {
60902
- log: (...args70) => console.log(...args70),
60903
- group: (...args70) => console.group(...args70),
60904
- groupEnd: (...args70) => console.groupEnd(...args70)
60924
+ log: (...args71) => console.log(...args71),
60925
+ group: (...args71) => console.group(...args71),
60926
+ groupEnd: (...args71) => console.groupEnd(...args71)
60905
60927
  } : undefined
60906
60928
  }));
60907
60929
  const scopes = new Set(deps.scopes);
@@ -62283,7 +62305,7 @@ var routes = ln({
62283
62305
  var app = _e(routes, {
62284
62306
  name: "mcp",
62285
62307
  versionInfo: {
62286
- currentVersion: "0.8.24"
62308
+ currentVersion: "0.8.29"
62287
62309
  }
62288
62310
  });
62289
62311
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -62291,5 +62313,5 @@ export {
62291
62313
  app
62292
62314
  };
62293
62315
 
62294
- //# debugId=21D0A1489C67389264756E2164756E21
62316
+ //# debugId=03DCAAB44427054664756E2164756E21
62295
62317
  //# sourceMappingURL=mcp-server.js.map