ce-storefront 0.9.1 → 0.9.2

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
@@ -4020,15 +4020,15 @@ var ServerStaging = "staging", ServerProd = "prod", ServerList, SDK_METADATA;
4020
4020
  var init_config = __esm(() => {
4021
4021
  init_url();
4022
4022
  ServerList = {
4023
- [ServerStaging]: "https://staging.api.commercengine.io/api/v1/store_id/storefront",
4023
+ [ServerStaging]: "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
4024
4024
  [ServerProd]: "https://prod.api.commercengine.io/api/v1/{store_id}/storefront"
4025
4025
  };
4026
4026
  SDK_METADATA = {
4027
4027
  language: "typescript",
4028
4028
  openapiDocVersion: "1.0",
4029
- sdkVersion: "0.9.1",
4030
- genVersion: "2.568.5",
4031
- userAgent: "speakeasy-sdk/typescript 0.9.1 2.568.5 1.0 ce-storefront"
4029
+ sdkVersion: "0.9.2",
4030
+ genVersion: "2.593.3",
4031
+ userAgent: "speakeasy-sdk/typescript 0.9.2 2.593.3 1.0 ce-storefront"
4032
4032
  };
4033
4033
  });
4034
4034
 
@@ -34918,9 +34918,12 @@ async function logResponse(logger, res, req) {
34918
34918
  logger.groupEnd();
34919
34919
  logger.group("Body:");
34920
34920
  switch (true) {
34921
- case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct)):
34921
+ case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct)):
34922
34922
  logger.log(await res.clone().json());
34923
34923
  break;
34924
+ case (matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct)):
34925
+ logger.log(await res.clone().text());
34926
+ break;
34924
34927
  case matchContentType(res, "text/event-stream"):
34925
34928
  logger.log(`<${contentType2}>`);
34926
34929
  break;
@@ -34942,7 +34945,7 @@ async function logResponse(logger, res, req) {
34942
34945
  logger.groupEnd();
34943
34946
  logger.groupEnd();
34944
34947
  }
34945
- var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE;
34948
+ var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
34946
34949
  var init_sdks = __esm(() => {
34947
34950
  init_httpclienterrors();
34948
34951
  init_base64();
@@ -34953,7 +34956,8 @@ var init_sdks = __esm(() => {
34953
34956
  gt = typeof globalThis === "undefined" ? null : globalThis;
34954
34957
  webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
34955
34958
  isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
34956
- jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
34959
+ jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
34960
+ jsonlLikeContentTypeRE = /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
34957
34961
  });
34958
34962
 
34959
34963
  // src/core.ts
@@ -35290,6 +35294,9 @@ function match(...matchers) {
35290
35294
  case "json":
35291
35295
  raw = await response.json();
35292
35296
  break;
35297
+ case "jsonl":
35298
+ raw = response.body;
35299
+ break;
35293
35300
  case "bytes":
35294
35301
  raw = new Uint8Array(await response.arrayBuffer());
35295
35302
  break;
@@ -35379,6 +35386,7 @@ var init_matchers = __esm(() => {
35379
35386
  init_http();
35380
35387
  init_schemas();
35381
35388
  DEFAULT_CONTENT_TYPES = {
35389
+ jsonl: "application/jsonl",
35382
35390
  json: "application/json",
35383
35391
  text: "text/plain",
35384
35392
  bytes: "application/octet-stream",
@@ -40010,14 +40018,14 @@ var init_user = __esm(() => {
40010
40018
  })(LoginMethods$ ||= {});
40011
40019
  User$inboundSchema = objectType({
40012
40020
  id: stringType(),
40013
- first_name: stringType(),
40014
- last_name: stringType(),
40015
- email: stringType(),
40021
+ first_name: nullableType(stringType()),
40022
+ last_name: nullableType(stringType()),
40023
+ email: nullableType(stringType()),
40016
40024
  is_email_verified: booleanType(),
40017
- phone: stringType(),
40018
- country_code: stringType(),
40025
+ phone: nullableType(stringType()),
40026
+ country_code: nullableType(stringType()),
40019
40027
  is_phone_verified: booleanType(),
40020
- profile_image_url: stringType(),
40028
+ profile_image_url: nullableType(stringType()),
40021
40029
  is_anonymous: booleanType(),
40022
40030
  is_logged_in: booleanType(),
40023
40031
  login_methods: arrayType(LoginMethods$inboundSchema),
@@ -40042,14 +40050,14 @@ var init_user = __esm(() => {
40042
40050
  });
40043
40051
  User$outboundSchema = objectType({
40044
40052
  id: stringType(),
40045
- firstName: stringType(),
40046
- lastName: stringType(),
40047
- email: stringType(),
40053
+ firstName: nullableType(stringType()),
40054
+ lastName: nullableType(stringType()),
40055
+ email: nullableType(stringType()),
40048
40056
  isEmailVerified: booleanType(),
40049
- phone: stringType(),
40050
- countryCode: stringType(),
40057
+ phone: nullableType(stringType()),
40058
+ countryCode: nullableType(stringType()),
40051
40059
  isPhoneVerified: booleanType(),
40052
- profileImageUrl: stringType(),
40060
+ profileImageUrl: nullableType(stringType()),
40053
40061
  isAnonymous: booleanType(),
40054
40062
  isLoggedIn: booleanType(),
40055
40063
  loginMethods: arrayType(LoginMethods$outboundSchema),
@@ -40077,11 +40085,12 @@ var init_user = __esm(() => {
40077
40085
  User$.outboundSchema = User$outboundSchema;
40078
40086
  })(User$ ||= {});
40079
40087
  UserInput$inboundSchema = objectType({
40080
- first_name: stringType(),
40081
- last_name: stringType(),
40082
- email: stringType(),
40083
- phone: stringType(),
40084
- country_code: stringType(),
40088
+ first_name: nullableType(stringType()),
40089
+ last_name: nullableType(stringType()),
40090
+ email: nullableType(stringType()),
40091
+ phone: nullableType(stringType()),
40092
+ country_code: nullableType(stringType()),
40093
+ profile_image_url: nullableType(stringType()),
40085
40094
  login_methods: arrayType(LoginMethods$inboundSchema),
40086
40095
  notification_preferences: NotificationPreferences$inboundSchema
40087
40096
  }).transform((v2) => {
@@ -40089,16 +40098,18 @@ var init_user = __esm(() => {
40089
40098
  first_name: "firstName",
40090
40099
  last_name: "lastName",
40091
40100
  country_code: "countryCode",
40101
+ profile_image_url: "profileImageUrl",
40092
40102
  login_methods: "loginMethods",
40093
40103
  notification_preferences: "notificationPreferences"
40094
40104
  });
40095
40105
  });
40096
40106
  UserInput$outboundSchema = objectType({
40097
- firstName: stringType(),
40098
- lastName: stringType(),
40099
- email: stringType(),
40100
- phone: stringType(),
40101
- countryCode: stringType(),
40107
+ firstName: nullableType(stringType()),
40108
+ lastName: nullableType(stringType()),
40109
+ email: nullableType(stringType()),
40110
+ phone: nullableType(stringType()),
40111
+ countryCode: nullableType(stringType()),
40112
+ profileImageUrl: nullableType(stringType()),
40102
40113
  loginMethods: arrayType(LoginMethods$outboundSchema),
40103
40114
  notificationPreferences: NotificationPreferences$outboundSchema
40104
40115
  }).transform((v2) => {
@@ -40106,6 +40117,7 @@ var init_user = __esm(() => {
40106
40117
  firstName: "first_name",
40107
40118
  lastName: "last_name",
40108
40119
  countryCode: "country_code",
40120
+ profileImageUrl: "profile_image_url",
40109
40121
  loginMethods: "login_methods",
40110
40122
  notificationPreferences: "notification_preferences"
40111
40123
  });
@@ -44091,13 +44103,13 @@ var init_verifyotp = __esm(() => {
44091
44103
  VerifyOtpContent$.outboundSchema = VerifyOtpContent$outboundSchema;
44092
44104
  })(VerifyOtpContent$ ||= {});
44093
44105
  VerifyOtpResponseBody$inboundSchema = objectType({
44094
- message: stringType().optional(),
44095
- success: booleanType().optional(),
44106
+ message: stringType(),
44107
+ success: booleanType(),
44096
44108
  content: lazyType(() => VerifyOtpContent$inboundSchema).optional()
44097
44109
  });
44098
44110
  VerifyOtpResponseBody$outboundSchema = objectType({
44099
- message: stringType().optional(),
44100
- success: booleanType().optional(),
44111
+ message: stringType(),
44112
+ success: booleanType(),
44101
44113
  content: lazyType(() => VerifyOtpContent$outboundSchema).optional()
44102
44114
  });
44103
44115
  ((VerifyOtpResponseBody$) => {
@@ -50245,7 +50257,7 @@ Check shipment delivery availability in an area by pincode`,
50245
50257
  function createMCPServer(deps) {
50246
50258
  const server = new McpServer({
50247
50259
  name: "CeStorefront",
50248
- version: "0.9.1"
50260
+ version: "0.9.2"
50249
50261
  });
50250
50262
  const client = new CeStorefrontCore({
50251
50263
  authorization: deps.authorization,
@@ -51581,7 +51593,7 @@ var routes = rn({
51581
51593
  var app = Ve(routes, {
51582
51594
  name: "mcp",
51583
51595
  versionInfo: {
51584
- currentVersion: "0.9.1"
51596
+ currentVersion: "0.9.2"
51585
51597
  }
51586
51598
  });
51587
51599
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -51589,5 +51601,5 @@ export {
51589
51601
  app
51590
51602
  };
51591
51603
 
51592
- //# debugId=3E911F547E17927A64756E2164756E21
51604
+ //# debugId=0AE8B6422AE1B13B64756E2164756E21
51593
51605
  //# sourceMappingURL=mcp-server.js.map