ce-storefront 0.9.0 → 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.
Files changed (128) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +223 -172
  3. package/bin/mcp-server.js.map +25 -25
  4. package/docs/sdks/auth/README.md +4 -6
  5. package/docs/sdks/customers/README.md +2 -2
  6. package/docs/sdks/kyc/README.md +47 -28
  7. package/esm/funcs/kycCreateDocument.d.ts +2 -1
  8. package/esm/funcs/kycCreateDocument.d.ts.map +1 -1
  9. package/esm/funcs/kycCreateDocument.js +7 -3
  10. package/esm/funcs/kycCreateDocument.js.map +1 -1
  11. package/esm/funcs/kycDeleteDocument.d.ts +2 -1
  12. package/esm/funcs/kycDeleteDocument.d.ts.map +1 -1
  13. package/esm/funcs/kycDeleteDocument.js +6 -2
  14. package/esm/funcs/kycDeleteDocument.js.map +1 -1
  15. package/esm/funcs/kycGetDocument.d.ts +2 -1
  16. package/esm/funcs/kycGetDocument.d.ts.map +1 -1
  17. package/esm/funcs/kycGetDocument.js +6 -2
  18. package/esm/funcs/kycGetDocument.js.map +1 -1
  19. package/esm/funcs/kycListDocuments.d.ts +2 -1
  20. package/esm/funcs/kycListDocuments.d.ts.map +1 -1
  21. package/esm/funcs/kycListDocuments.js +6 -2
  22. package/esm/funcs/kycListDocuments.js.map +1 -1
  23. package/esm/funcs/{kycListDocumentType.d.ts → kycListKycDocument.d.ts} +5 -4
  24. package/esm/funcs/kycListKycDocument.d.ts.map +1 -0
  25. package/esm/funcs/{kycListDocumentType.js → kycListKycDocument.js} +12 -8
  26. package/esm/funcs/kycListKycDocument.js.map +1 -0
  27. package/esm/funcs/kycUpdateDocument.d.ts +2 -1
  28. package/esm/funcs/kycUpdateDocument.d.ts.map +1 -1
  29. package/esm/funcs/kycUpdateDocument.js +7 -3
  30. package/esm/funcs/kycUpdateDocument.js.map +1 -1
  31. package/esm/funcs/kycVerifyDocument.d.ts +2 -1
  32. package/esm/funcs/kycVerifyDocument.d.ts.map +1 -1
  33. package/esm/funcs/kycVerifyDocument.js +6 -2
  34. package/esm/funcs/kycVerifyDocument.js.map +1 -1
  35. package/esm/lib/config.d.ts +4 -4
  36. package/esm/lib/config.js +4 -4
  37. package/esm/lib/config.js.map +1 -1
  38. package/esm/lib/matchers.d.ts +3 -1
  39. package/esm/lib/matchers.d.ts.map +1 -1
  40. package/esm/lib/matchers.js +10 -0
  41. package/esm/lib/matchers.js.map +1 -1
  42. package/esm/lib/sdks.js +7 -2
  43. package/esm/lib/sdks.js.map +1 -1
  44. package/esm/mcp-server/mcp-server.js +1 -1
  45. package/esm/mcp-server/server.js +3 -3
  46. package/esm/mcp-server/server.js.map +1 -1
  47. package/esm/mcp-server/tools/kycListKycDocument.d.ts +3 -0
  48. package/esm/mcp-server/tools/kycListKycDocument.d.ts.map +1 -0
  49. package/esm/mcp-server/tools/kycListKycDocument.js +23 -0
  50. package/esm/mcp-server/tools/kycListKycDocument.js.map +1 -0
  51. package/esm/models/components/document.d.ts +5 -0
  52. package/esm/models/components/document.d.ts.map +1 -1
  53. package/esm/models/components/document.js +6 -0
  54. package/esm/models/components/document.js.map +1 -1
  55. package/esm/models/components/documentinput.d.ts +2 -2
  56. package/esm/models/components/documentinput.d.ts.map +1 -1
  57. package/esm/models/components/documentinput.js +4 -4
  58. package/esm/models/components/documentinput.js.map +1 -1
  59. package/esm/models/components/index.d.ts +1 -1
  60. package/esm/models/components/index.d.ts.map +1 -1
  61. package/esm/models/components/index.js +1 -1
  62. package/esm/models/components/index.js.map +1 -1
  63. package/esm/models/components/{documenttype.d.ts → kycdocument.d.ts} +37 -31
  64. package/esm/models/components/kycdocument.d.ts.map +1 -0
  65. package/esm/models/components/{documenttype.js → kycdocument.js} +36 -34
  66. package/esm/models/components/kycdocument.js.map +1 -0
  67. package/esm/models/components/updatedocument.d.ts +2 -2
  68. package/esm/models/components/updatedocument.d.ts.map +1 -1
  69. package/esm/models/components/updatedocument.js +4 -4
  70. package/esm/models/components/updatedocument.js.map +1 -1
  71. package/esm/models/components/user.d.ts +27 -22
  72. package/esm/models/components/user.d.ts.map +1 -1
  73. package/esm/models/components/user.js +26 -22
  74. package/esm/models/components/user.js.map +1 -1
  75. package/esm/models/operations/index.d.ts +1 -1
  76. package/esm/models/operations/index.d.ts.map +1 -1
  77. package/esm/models/operations/index.js +1 -1
  78. package/esm/models/operations/index.js.map +1 -1
  79. package/esm/models/operations/listkycdocument.d.ts +64 -0
  80. package/esm/models/operations/listkycdocument.d.ts.map +1 -0
  81. package/esm/models/operations/listkycdocument.js +74 -0
  82. package/esm/models/operations/listkycdocument.js.map +1 -0
  83. package/esm/models/operations/verifyotp.d.ts +4 -4
  84. package/esm/models/operations/verifyotp.d.ts.map +1 -1
  85. package/esm/models/operations/verifyotp.js +4 -4
  86. package/esm/models/operations/verifyotp.js.map +1 -1
  87. package/esm/sdk/kyc.d.ts +3 -3
  88. package/esm/sdk/kyc.d.ts.map +1 -1
  89. package/esm/sdk/kyc.js +5 -5
  90. package/esm/sdk/kyc.js.map +1 -1
  91. package/jsr.json +1 -1
  92. package/package.json +3 -3
  93. package/src/funcs/kycCreateDocument.ts +20 -3
  94. package/src/funcs/kycDeleteDocument.ts +19 -2
  95. package/src/funcs/kycGetDocument.ts +19 -2
  96. package/src/funcs/kycListDocuments.ts +19 -2
  97. package/src/funcs/{kycListDocumentType.ts → kycListKycDocument.ts} +28 -11
  98. package/src/funcs/kycUpdateDocument.ts +20 -7
  99. package/src/funcs/kycVerifyDocument.ts +12 -3
  100. package/src/lib/config.ts +4 -4
  101. package/src/lib/matchers.ts +20 -0
  102. package/src/lib/sdks.ts +8 -2
  103. package/src/mcp-server/mcp-server.ts +1 -1
  104. package/src/mcp-server/server.ts +3 -3
  105. package/src/mcp-server/tools/{kycListDocumentType.ts → kycListKycDocument.ts} +6 -6
  106. package/src/models/components/document.ts +8 -0
  107. package/src/models/components/documentinput.ts +6 -6
  108. package/src/models/components/index.ts +1 -1
  109. package/src/models/components/{documenttype.ts → kycdocument.ts} +53 -55
  110. package/src/models/components/updatedocument.ts +6 -6
  111. package/src/models/components/user.ts +53 -44
  112. package/src/models/operations/index.ts +1 -1
  113. package/src/models/operations/listkycdocument.ts +153 -0
  114. package/src/models/operations/verifyotp.ts +8 -8
  115. package/src/sdk/kyc.ts +6 -6
  116. package/esm/funcs/kycListDocumentType.d.ts.map +0 -1
  117. package/esm/funcs/kycListDocumentType.js.map +0 -1
  118. package/esm/mcp-server/tools/kycListDocumentType.d.ts +0 -3
  119. package/esm/mcp-server/tools/kycListDocumentType.d.ts.map +0 -1
  120. package/esm/mcp-server/tools/kycListDocumentType.js +0 -23
  121. package/esm/mcp-server/tools/kycListDocumentType.js.map +0 -1
  122. package/esm/models/components/documenttype.d.ts.map +0 -1
  123. package/esm/models/components/documenttype.js.map +0 -1
  124. package/esm/models/operations/listdocumenttype.d.ts +0 -62
  125. package/esm/models/operations/listdocumenttype.d.ts.map +0 -1
  126. package/esm/models/operations/listdocumenttype.js +0 -70
  127. package/esm/models/operations/listdocumenttype.js.map +0 -1
  128. package/src/models/operations/listdocumenttype.ts +0 -147
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.0",
4030
- genVersion: "2.568.2",
4031
- userAgent: "speakeasy-sdk/typescript 0.9.0 2.568.2 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",
@@ -36771,7 +36779,8 @@ var init_document = __esm(() => {
36771
36779
  DocumentStatus = {
36772
36780
  Submitted: "submitted",
36773
36781
  Approved: "approved",
36774
- Rejected: "rejected"
36782
+ Rejected: "rejected",
36783
+ Expired: "expired"
36775
36784
  };
36776
36785
  DocumentVerificationType = {
36777
36786
  Automatic: "automatic",
@@ -36823,7 +36832,8 @@ var init_document = __esm(() => {
36823
36832
  created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36824
36833
  modified_by: ModifiedBy$inboundSchema.optional(),
36825
36834
  modified_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36826
- modified_reason: stringType().optional()
36835
+ modified_reason: stringType().optional(),
36836
+ expires_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
36827
36837
  }).transform((v2) => {
36828
36838
  return remap(v2, {
36829
36839
  document_number: "documentNumber",
@@ -36835,7 +36845,8 @@ var init_document = __esm(() => {
36835
36845
  created_at: "createdAt",
36836
36846
  modified_by: "modifiedBy",
36837
36847
  modified_at: "modifiedAt",
36838
- modified_reason: "modifiedReason"
36848
+ modified_reason: "modifiedReason",
36849
+ expires_at: "expiresAt"
36839
36850
  });
36840
36851
  });
36841
36852
  Document$outboundSchema = objectType({
@@ -36852,7 +36863,8 @@ var init_document = __esm(() => {
36852
36863
  createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
36853
36864
  modifiedBy: ModifiedBy$outboundSchema.optional(),
36854
36865
  modifiedAt: dateType().transform((v2) => v2.toISOString()).optional(),
36855
- modifiedReason: stringType().optional()
36866
+ modifiedReason: stringType().optional(),
36867
+ expiresAt: dateType().transform((v2) => v2.toISOString()).optional()
36856
36868
  }).transform((v2) => {
36857
36869
  return remap(v2, {
36858
36870
  documentNumber: "document_number",
@@ -36864,7 +36876,8 @@ var init_document = __esm(() => {
36864
36876
  createdAt: "created_at",
36865
36877
  modifiedBy: "modified_by",
36866
36878
  modifiedAt: "modified_at",
36867
- modifiedReason: "modified_reason"
36879
+ modifiedReason: "modified_reason",
36880
+ expiresAt: "expires_at"
36868
36881
  });
36869
36882
  });
36870
36883
  ((Document$) => {
@@ -36929,24 +36942,24 @@ var init_documentinput = __esm(() => {
36929
36942
  })(FileT$ ||= {});
36930
36943
  DocumentInput$inboundSchema = objectType({
36931
36944
  document_number: stringType(),
36945
+ kyc_document_id: stringType(),
36932
36946
  note: stringType().optional(),
36933
- file: lazyType(() => FileT$inboundSchema).optional(),
36934
- document_type_id: stringType()
36947
+ file: lazyType(() => FileT$inboundSchema).optional()
36935
36948
  }).transform((v2) => {
36936
36949
  return remap(v2, {
36937
36950
  document_number: "documentNumber",
36938
- document_type_id: "documentTypeId"
36951
+ kyc_document_id: "kycDocumentId"
36939
36952
  });
36940
36953
  });
36941
36954
  DocumentInput$outboundSchema = objectType({
36942
36955
  documentNumber: stringType(),
36956
+ kycDocumentId: stringType(),
36943
36957
  note: stringType().optional(),
36944
- file: lazyType(() => FileT$outboundSchema).or(blobLikeSchema).optional(),
36945
- documentTypeId: stringType()
36958
+ file: lazyType(() => FileT$outboundSchema).or(blobLikeSchema).optional()
36946
36959
  }).transform((v2) => {
36947
36960
  return remap(v2, {
36948
36961
  documentNumber: "document_number",
36949
- documentTypeId: "document_type_id"
36962
+ kycDocumentId: "kyc_document_id"
36950
36963
  });
36951
36964
  });
36952
36965
  ((DocumentInput$) => {
@@ -36955,72 +36968,6 @@ var init_documentinput = __esm(() => {
36955
36968
  })(DocumentInput$ ||= {});
36956
36969
  });
36957
36970
 
36958
- // src/models/components/documenttype.ts
36959
- var DocumentTypeDocumentType, VerificationType, DocumentTypeDocumentType$inboundSchema, DocumentTypeDocumentType$outboundSchema, DocumentTypeDocumentType$, VerificationType$inboundSchema, VerificationType$outboundSchema, VerificationType$, DocumentType$inboundSchema, DocumentType$outboundSchema, DocumentType$;
36960
- var init_documenttype = __esm(() => {
36961
- init_lib();
36962
- init_primitives();
36963
- DocumentTypeDocumentType = {
36964
- Gst: "gst",
36965
- Pan: "pan",
36966
- Other: "other"
36967
- };
36968
- VerificationType = {
36969
- Auto: "auto",
36970
- Manual: "manual"
36971
- };
36972
- DocumentTypeDocumentType$inboundSchema = nativeEnumType(DocumentTypeDocumentType);
36973
- DocumentTypeDocumentType$outboundSchema = DocumentTypeDocumentType$inboundSchema;
36974
- ((DocumentTypeDocumentType$) => {
36975
- DocumentTypeDocumentType$.inboundSchema = DocumentTypeDocumentType$inboundSchema;
36976
- DocumentTypeDocumentType$.outboundSchema = DocumentTypeDocumentType$outboundSchema;
36977
- })(DocumentTypeDocumentType$ ||= {});
36978
- VerificationType$inboundSchema = nativeEnumType(VerificationType);
36979
- VerificationType$outboundSchema = VerificationType$inboundSchema;
36980
- ((VerificationType$) => {
36981
- VerificationType$.inboundSchema = VerificationType$inboundSchema;
36982
- VerificationType$.outboundSchema = VerificationType$outboundSchema;
36983
- })(VerificationType$ ||= {});
36984
- DocumentType$inboundSchema = objectType({
36985
- id: stringType().optional(),
36986
- document_type: DocumentTypeDocumentType$inboundSchema,
36987
- title: stringType(),
36988
- description: nullableType(stringType()).optional(),
36989
- active: booleanType().default(true),
36990
- is_mandatory: booleanType(),
36991
- is_attachment_required: booleanType(),
36992
- verification_type: VerificationType$inboundSchema
36993
- }).transform((v2) => {
36994
- return remap(v2, {
36995
- document_type: "documentType",
36996
- is_mandatory: "isMandatory",
36997
- is_attachment_required: "isAttachmentRequired",
36998
- verification_type: "verificationType"
36999
- });
37000
- });
37001
- DocumentType$outboundSchema = objectType({
37002
- id: stringType().optional(),
37003
- documentType: DocumentTypeDocumentType$outboundSchema,
37004
- title: stringType(),
37005
- description: nullableType(stringType()).optional(),
37006
- active: booleanType().default(true),
37007
- isMandatory: booleanType(),
37008
- isAttachmentRequired: booleanType(),
37009
- verificationType: VerificationType$outboundSchema
37010
- }).transform((v2) => {
37011
- return remap(v2, {
37012
- documentType: "document_type",
37013
- isMandatory: "is_mandatory",
37014
- isAttachmentRequired: "is_attachment_required",
37015
- verificationType: "verification_type"
37016
- });
37017
- });
37018
- ((DocumentType$) => {
37019
- DocumentType$.inboundSchema = DocumentType$inboundSchema;
37020
- DocumentType$.outboundSchema = DocumentType$outboundSchema;
37021
- })(DocumentType$ ||= {});
37022
- });
37023
-
37024
36971
  // src/models/components/fixedpricepromotion.ts
37025
36972
  var FixedPricePromotion$inboundSchema, FixedPricePromotion$outboundSchema, FixedPricePromotion$;
37026
36973
  var init_fixedpricepromotion = __esm(() => {
@@ -37811,6 +37758,74 @@ var init_juspaypaymentinfo = __esm(() => {
37811
37758
  })(JuspayPaymentInfo$ ||= {});
37812
37759
  });
37813
37760
 
37761
+ // src/models/components/kycdocument.ts
37762
+ var DocumentType, VerificationType, DocumentType$inboundSchema, DocumentType$outboundSchema, DocumentType$, VerificationType$inboundSchema, VerificationType$outboundSchema, VerificationType$, KycDocument$inboundSchema, KycDocument$outboundSchema, KycDocument$;
37763
+ var init_kycdocument = __esm(() => {
37764
+ init_lib();
37765
+ init_primitives();
37766
+ DocumentType = {
37767
+ Gst: "gst",
37768
+ Pan: "pan",
37769
+ Tin: "tin",
37770
+ Cin: "cin",
37771
+ Other: "other"
37772
+ };
37773
+ VerificationType = {
37774
+ Auto: "auto",
37775
+ Manual: "manual"
37776
+ };
37777
+ DocumentType$inboundSchema = nativeEnumType(DocumentType);
37778
+ DocumentType$outboundSchema = DocumentType$inboundSchema;
37779
+ ((DocumentType$) => {
37780
+ DocumentType$.inboundSchema = DocumentType$inboundSchema;
37781
+ DocumentType$.outboundSchema = DocumentType$outboundSchema;
37782
+ })(DocumentType$ ||= {});
37783
+ VerificationType$inboundSchema = nativeEnumType(VerificationType);
37784
+ VerificationType$outboundSchema = VerificationType$inboundSchema;
37785
+ ((VerificationType$) => {
37786
+ VerificationType$.inboundSchema = VerificationType$inboundSchema;
37787
+ VerificationType$.outboundSchema = VerificationType$outboundSchema;
37788
+ })(VerificationType$ ||= {});
37789
+ KycDocument$inboundSchema = objectType({
37790
+ id: stringType().optional(),
37791
+ document_type: DocumentType$inboundSchema.optional(),
37792
+ title: stringType().optional(),
37793
+ description: nullableType(stringType()).optional(),
37794
+ active: booleanType().default(true),
37795
+ is_mandatory: booleanType().optional(),
37796
+ is_attachment_required: booleanType().optional(),
37797
+ verification_type: VerificationType$inboundSchema.optional()
37798
+ }).transform((v2) => {
37799
+ return remap(v2, {
37800
+ document_type: "documentType",
37801
+ is_mandatory: "isMandatory",
37802
+ is_attachment_required: "isAttachmentRequired",
37803
+ verification_type: "verificationType"
37804
+ });
37805
+ });
37806
+ KycDocument$outboundSchema = objectType({
37807
+ id: stringType().optional(),
37808
+ documentType: DocumentType$outboundSchema.optional(),
37809
+ title: stringType().optional(),
37810
+ description: nullableType(stringType()).optional(),
37811
+ active: booleanType().default(true),
37812
+ isMandatory: booleanType().optional(),
37813
+ isAttachmentRequired: booleanType().optional(),
37814
+ verificationType: VerificationType$outboundSchema.optional()
37815
+ }).transform((v2) => {
37816
+ return remap(v2, {
37817
+ documentType: "document_type",
37818
+ isMandatory: "is_mandatory",
37819
+ isAttachmentRequired: "is_attachment_required",
37820
+ verificationType: "verification_type"
37821
+ });
37822
+ });
37823
+ ((KycDocument$) => {
37824
+ KycDocument$.inboundSchema = KycDocument$inboundSchema;
37825
+ KycDocument$.outboundSchema = KycDocument$outboundSchema;
37826
+ })(KycDocument$ ||= {});
37827
+ });
37828
+
37814
37829
  // src/models/components/netbankingpayment.ts
37815
37830
  var NetbankingPaymentTransactionType, NetbankingPaymentPaymentStatus, NetbankingPaymentPaymentMethod, NetbankingPaymentTransactionType$inboundSchema, NetbankingPaymentTransactionType$outboundSchema, NetbankingPaymentTransactionType$, NetbankingPaymentPaymentStatus$inboundSchema, NetbankingPaymentPaymentStatus$outboundSchema, NetbankingPaymentPaymentStatus$, NetbankingPaymentPaymentMethod$inboundSchema, NetbankingPaymentPaymentMethod$outboundSchema, NetbankingPaymentPaymentMethod$, NetbankingPayment$inboundSchema, NetbankingPayment$outboundSchema, NetbankingPayment$;
37816
37831
  var init_netbankingpayment = __esm(() => {
@@ -39953,27 +39968,27 @@ var init_updatedocument = __esm(() => {
39953
39968
  })(UpdateDocumentFile$ ||= {});
39954
39969
  UpdateDocument$inboundSchema = objectType({
39955
39970
  document_number: stringType(),
39956
- document_type_id: stringType(),
39971
+ kyc_document_id: stringType(),
39957
39972
  note: stringType().optional(),
39958
39973
  file: lazyType(() => UpdateDocumentFile$inboundSchema).optional(),
39959
39974
  modified_reason: stringType()
39960
39975
  }).transform((v2) => {
39961
39976
  return remap(v2, {
39962
39977
  document_number: "documentNumber",
39963
- document_type_id: "documentTypeId",
39978
+ kyc_document_id: "kycDocumentId",
39964
39979
  modified_reason: "modifiedReason"
39965
39980
  });
39966
39981
  });
39967
39982
  UpdateDocument$outboundSchema = objectType({
39968
39983
  documentNumber: stringType(),
39969
- documentTypeId: stringType(),
39984
+ kycDocumentId: stringType(),
39970
39985
  note: stringType().optional(),
39971
39986
  file: lazyType(() => UpdateDocumentFile$outboundSchema).or(blobLikeSchema).optional(),
39972
39987
  modifiedReason: stringType()
39973
39988
  }).transform((v2) => {
39974
39989
  return remap(v2, {
39975
39990
  documentNumber: "document_number",
39976
- documentTypeId: "document_type_id",
39991
+ kycDocumentId: "kyc_document_id",
39977
39992
  modifiedReason: "modified_reason"
39978
39993
  });
39979
39994
  });
@@ -40003,14 +40018,14 @@ var init_user = __esm(() => {
40003
40018
  })(LoginMethods$ ||= {});
40004
40019
  User$inboundSchema = objectType({
40005
40020
  id: stringType(),
40006
- first_name: stringType(),
40007
- last_name: stringType(),
40008
- email: stringType(),
40021
+ first_name: nullableType(stringType()),
40022
+ last_name: nullableType(stringType()),
40023
+ email: nullableType(stringType()),
40009
40024
  is_email_verified: booleanType(),
40010
- phone: stringType(),
40011
- country_code: stringType(),
40025
+ phone: nullableType(stringType()),
40026
+ country_code: nullableType(stringType()),
40012
40027
  is_phone_verified: booleanType(),
40013
- profile_image_url: stringType(),
40028
+ profile_image_url: nullableType(stringType()),
40014
40029
  is_anonymous: booleanType(),
40015
40030
  is_logged_in: booleanType(),
40016
40031
  login_methods: arrayType(LoginMethods$inboundSchema),
@@ -40035,14 +40050,14 @@ var init_user = __esm(() => {
40035
40050
  });
40036
40051
  User$outboundSchema = objectType({
40037
40052
  id: stringType(),
40038
- firstName: stringType(),
40039
- lastName: stringType(),
40040
- email: stringType(),
40053
+ firstName: nullableType(stringType()),
40054
+ lastName: nullableType(stringType()),
40055
+ email: nullableType(stringType()),
40041
40056
  isEmailVerified: booleanType(),
40042
- phone: stringType(),
40043
- countryCode: stringType(),
40057
+ phone: nullableType(stringType()),
40058
+ countryCode: nullableType(stringType()),
40044
40059
  isPhoneVerified: booleanType(),
40045
- profileImageUrl: stringType(),
40060
+ profileImageUrl: nullableType(stringType()),
40046
40061
  isAnonymous: booleanType(),
40047
40062
  isLoggedIn: booleanType(),
40048
40063
  loginMethods: arrayType(LoginMethods$outboundSchema),
@@ -40070,11 +40085,12 @@ var init_user = __esm(() => {
40070
40085
  User$.outboundSchema = User$outboundSchema;
40071
40086
  })(User$ ||= {});
40072
40087
  UserInput$inboundSchema = objectType({
40073
- first_name: stringType(),
40074
- last_name: stringType(),
40075
- email: stringType(),
40076
- phone: stringType(),
40077
- 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()),
40078
40094
  login_methods: arrayType(LoginMethods$inboundSchema),
40079
40095
  notification_preferences: NotificationPreferences$inboundSchema
40080
40096
  }).transform((v2) => {
@@ -40082,16 +40098,18 @@ var init_user = __esm(() => {
40082
40098
  first_name: "firstName",
40083
40099
  last_name: "lastName",
40084
40100
  country_code: "countryCode",
40101
+ profile_image_url: "profileImageUrl",
40085
40102
  login_methods: "loginMethods",
40086
40103
  notification_preferences: "notificationPreferences"
40087
40104
  });
40088
40105
  });
40089
40106
  UserInput$outboundSchema = objectType({
40090
- firstName: stringType(),
40091
- lastName: stringType(),
40092
- email: stringType(),
40093
- phone: stringType(),
40094
- 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()),
40095
40113
  loginMethods: arrayType(LoginMethods$outboundSchema),
40096
40114
  notificationPreferences: NotificationPreferences$outboundSchema
40097
40115
  }).transform((v2) => {
@@ -40099,6 +40117,7 @@ var init_user = __esm(() => {
40099
40117
  firstName: "first_name",
40100
40118
  lastName: "last_name",
40101
40119
  countryCode: "country_code",
40120
+ profileImageUrl: "profile_image_url",
40102
40121
  loginMethods: "login_methods",
40103
40122
  notificationPreferences: "notification_preferences"
40104
40123
  });
@@ -40270,13 +40289,13 @@ var init_components = __esm(() => {
40270
40289
  init_discountbasedpromotion();
40271
40290
  init_document();
40272
40291
  init_documentinput();
40273
- init_documenttype();
40274
40292
  init_fixedpricepromotion();
40275
40293
  init_freegoodspromotion();
40276
40294
  init_gstindetail();
40277
40295
  init_item();
40278
40296
  init_juspaypaymentgatewayparams();
40279
40297
  init_juspaypaymentinfo();
40298
+ init_kycdocument();
40280
40299
  init_multiselectattribute();
40281
40300
  init_netbankingpayment();
40282
40301
  init_notificationchannelpreferences();
@@ -42379,44 +42398,48 @@ var init_listdocuments = __esm(() => {
42379
42398
  })(ListDocumentsResponseBody$ ||= {});
42380
42399
  });
42381
42400
 
42382
- // src/models/operations/listdocumenttype.ts
42383
- var ListDocumentTypeContent$inboundSchema, ListDocumentTypeContent$outboundSchema, ListDocumentTypeContent$, ListDocumentTypeResponseBody$inboundSchema, ListDocumentTypeResponseBody$outboundSchema, ListDocumentTypeResponseBody$;
42384
- var init_listdocumenttype = __esm(() => {
42401
+ // src/models/operations/listkycdocument.ts
42402
+ var ListKycDocumentContent$inboundSchema, ListKycDocumentContent$outboundSchema, ListKycDocumentContent$, ListKycDocumentResponseBody$inboundSchema, ListKycDocumentResponseBody$outboundSchema, ListKycDocumentResponseBody$;
42403
+ var init_listkycdocument = __esm(() => {
42385
42404
  init_lib();
42386
42405
  init_primitives();
42387
42406
  init_components();
42388
- ListDocumentTypeContent$inboundSchema = objectType({
42389
- document_types: arrayType(DocumentType$inboundSchema).optional()
42407
+ ListKycDocumentContent$inboundSchema = objectType({
42408
+ kyc_documents: arrayType(KycDocument$inboundSchema).optional(),
42409
+ is_kyc_enabled: booleanType().default(false)
42390
42410
  }).transform((v2) => {
42391
42411
  return remap(v2, {
42392
- document_types: "documentTypes"
42412
+ kyc_documents: "kycDocuments",
42413
+ is_kyc_enabled: "isKycEnabled"
42393
42414
  });
42394
42415
  });
42395
- ListDocumentTypeContent$outboundSchema = objectType({
42396
- documentTypes: arrayType(DocumentType$outboundSchema).optional()
42416
+ ListKycDocumentContent$outboundSchema = objectType({
42417
+ kycDocuments: arrayType(KycDocument$outboundSchema).optional(),
42418
+ isKycEnabled: booleanType().default(false)
42397
42419
  }).transform((v2) => {
42398
42420
  return remap(v2, {
42399
- documentTypes: "document_types"
42421
+ kycDocuments: "kyc_documents",
42422
+ isKycEnabled: "is_kyc_enabled"
42400
42423
  });
42401
42424
  });
42402
- ((ListDocumentTypeContent$) => {
42403
- ListDocumentTypeContent$.inboundSchema = ListDocumentTypeContent$inboundSchema;
42404
- ListDocumentTypeContent$.outboundSchema = ListDocumentTypeContent$outboundSchema;
42405
- })(ListDocumentTypeContent$ ||= {});
42406
- ListDocumentTypeResponseBody$inboundSchema = objectType({
42425
+ ((ListKycDocumentContent$) => {
42426
+ ListKycDocumentContent$.inboundSchema = ListKycDocumentContent$inboundSchema;
42427
+ ListKycDocumentContent$.outboundSchema = ListKycDocumentContent$outboundSchema;
42428
+ })(ListKycDocumentContent$ ||= {});
42429
+ ListKycDocumentResponseBody$inboundSchema = objectType({
42407
42430
  message: stringType().optional(),
42408
42431
  success: booleanType().optional(),
42409
- content: lazyType(() => ListDocumentTypeContent$inboundSchema).optional()
42432
+ content: lazyType(() => ListKycDocumentContent$inboundSchema).optional()
42410
42433
  });
42411
- ListDocumentTypeResponseBody$outboundSchema = objectType({
42434
+ ListKycDocumentResponseBody$outboundSchema = objectType({
42412
42435
  message: stringType().optional(),
42413
42436
  success: booleanType().optional(),
42414
- content: lazyType(() => ListDocumentTypeContent$outboundSchema).optional()
42437
+ content: lazyType(() => ListKycDocumentContent$outboundSchema).optional()
42415
42438
  });
42416
- ((ListDocumentTypeResponseBody$) => {
42417
- ListDocumentTypeResponseBody$.inboundSchema = ListDocumentTypeResponseBody$inboundSchema;
42418
- ListDocumentTypeResponseBody$.outboundSchema = ListDocumentTypeResponseBody$outboundSchema;
42419
- })(ListDocumentTypeResponseBody$ ||= {});
42439
+ ((ListKycDocumentResponseBody$) => {
42440
+ ListKycDocumentResponseBody$.inboundSchema = ListKycDocumentResponseBody$inboundSchema;
42441
+ ListKycDocumentResponseBody$.outboundSchema = ListKycDocumentResponseBody$outboundSchema;
42442
+ })(ListKycDocumentResponseBody$ ||= {});
42420
42443
  });
42421
42444
 
42422
42445
  // src/models/operations/listorders.ts
@@ -44080,13 +44103,13 @@ var init_verifyotp = __esm(() => {
44080
44103
  VerifyOtpContent$.outboundSchema = VerifyOtpContent$outboundSchema;
44081
44104
  })(VerifyOtpContent$ ||= {});
44082
44105
  VerifyOtpResponseBody$inboundSchema = objectType({
44083
- message: stringType().optional(),
44084
- success: booleanType().optional(),
44106
+ message: stringType(),
44107
+ success: booleanType(),
44085
44108
  content: lazyType(() => VerifyOtpContent$inboundSchema).optional()
44086
44109
  });
44087
44110
  VerifyOtpResponseBody$outboundSchema = objectType({
44088
- message: stringType().optional(),
44089
- success: booleanType().optional(),
44111
+ message: stringType(),
44112
+ success: booleanType(),
44090
44113
  content: lazyType(() => VerifyOtpContent$outboundSchema).optional()
44091
44114
  });
44092
44115
  ((VerifyOtpResponseBody$) => {
@@ -44128,7 +44151,7 @@ var init_operations = __esm(() => {
44128
44151
  init_listcountrypincodes();
44129
44152
  init_listcrosssellproducts();
44130
44153
  init_listdocuments();
44131
- init_listdocumenttype();
44154
+ init_listkycdocument();
44132
44155
  init_listorders();
44133
44156
  init_listordershipments();
44134
44157
  init_listproductreviews();
@@ -48626,7 +48649,7 @@ async function $do42(client, request, options) {
48626
48649
  const body = new FormData;
48627
48650
  if (payload.Document != null) {
48628
48651
  appendForm(body, "document_number", payload.Document.document_number);
48629
- appendForm(body, "document_type_id", payload.Document.document_type_id);
48652
+ appendForm(body, "kyc_document_id", payload.Document.kyc_document_id);
48630
48653
  if (payload.Document.file !== undefined) {
48631
48654
  if (isBlobLike(payload.Document.file)) {
48632
48655
  appendForm(body, "file", payload.Document.file);
@@ -48681,7 +48704,7 @@ async function $do42(client, request, options) {
48681
48704
  const req = requestRes.value;
48682
48705
  const doResult = await client._do(req, {
48683
48706
  context,
48684
- errorCodes: ["4XX", "5XX"],
48707
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
48685
48708
  retryConfig: context.retryConfig,
48686
48709
  retryCodes: context.retryCodes
48687
48710
  });
@@ -48689,7 +48712,10 @@ async function $do42(client, request, options) {
48689
48712
  return [doResult, { status: "request-error", request: req }];
48690
48713
  }
48691
48714
  const response = doResult.value;
48692
- const [result] = await match(json(200, CreateDocumentResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
48715
+ const responseFields = {
48716
+ HttpMeta: { Response: response, Request: req }
48717
+ };
48718
+ const [result] = await match(json(200, CreateDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48693
48719
  if (!result.ok) {
48694
48720
  return [result, { status: "complete", request: req, response }];
48695
48721
  }
@@ -48702,6 +48728,7 @@ var init_kycCreateDocument = __esm(() => {
48702
48728
  init_schemas();
48703
48729
  init_security();
48704
48730
  init_url();
48731
+ init_errors();
48705
48732
  init_operations();
48706
48733
  init_async();
48707
48734
  init_blobs();
@@ -48788,7 +48815,7 @@ async function $do43(client, request, options) {
48788
48815
  const req = requestRes.value;
48789
48816
  const doResult = await client._do(req, {
48790
48817
  context,
48791
- errorCodes: ["4XX", "5XX"],
48818
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
48792
48819
  retryConfig: context.retryConfig,
48793
48820
  retryCodes: context.retryCodes
48794
48821
  });
@@ -48796,7 +48823,10 @@ async function $do43(client, request, options) {
48796
48823
  return [doResult, { status: "request-error", request: req }];
48797
48824
  }
48798
48825
  const response = doResult.value;
48799
- const [result] = await match(json(200, DeleteDocumentResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
48826
+ const responseFields = {
48827
+ HttpMeta: { Response: response, Request: req }
48828
+ };
48829
+ const [result] = await match(json(200, DeleteDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48800
48830
  if (!result.ok) {
48801
48831
  return [result, { status: "complete", request: req, response }];
48802
48832
  }
@@ -48809,6 +48839,7 @@ var init_kycDeleteDocument = __esm(() => {
48809
48839
  init_schemas();
48810
48840
  init_security();
48811
48841
  init_url();
48842
+ init_errors();
48812
48843
  init_operations();
48813
48844
  init_async();
48814
48845
  });
@@ -48894,7 +48925,7 @@ async function $do44(client, request, options) {
48894
48925
  const req = requestRes.value;
48895
48926
  const doResult = await client._do(req, {
48896
48927
  context,
48897
- errorCodes: ["4XX", "5XX"],
48928
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
48898
48929
  retryConfig: context.retryConfig,
48899
48930
  retryCodes: context.retryCodes
48900
48931
  });
@@ -48902,7 +48933,10 @@ async function $do44(client, request, options) {
48902
48933
  return [doResult, { status: "request-error", request: req }];
48903
48934
  }
48904
48935
  const response = doResult.value;
48905
- const [result] = await match(json(200, GetDocumentResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
48936
+ const responseFields = {
48937
+ HttpMeta: { Response: response, Request: req }
48938
+ };
48939
+ const [result] = await match(json(200, GetDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48906
48940
  if (!result.ok) {
48907
48941
  return [result, { status: "complete", request: req, response }];
48908
48942
  }
@@ -48915,6 +48949,7 @@ var init_kycGetDocument = __esm(() => {
48915
48949
  init_schemas();
48916
48950
  init_security();
48917
48951
  init_url();
48952
+ init_errors();
48918
48953
  init_operations();
48919
48954
  init_async();
48920
48955
  });
@@ -48996,7 +49031,7 @@ async function $do45(client, request, options) {
48996
49031
  const req = requestRes.value;
48997
49032
  const doResult = await client._do(req, {
48998
49033
  context,
48999
- errorCodes: ["4XX", "5XX"],
49034
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
49000
49035
  retryConfig: context.retryConfig,
49001
49036
  retryCodes: context.retryCodes
49002
49037
  });
@@ -49004,7 +49039,10 @@ async function $do45(client, request, options) {
49004
49039
  return [doResult, { status: "request-error", request: req }];
49005
49040
  }
49006
49041
  const response = doResult.value;
49007
- const [result] = await match(json(200, ListDocumentsResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
49042
+ const responseFields = {
49043
+ HttpMeta: { Response: response, Request: req }
49044
+ };
49045
+ const [result] = await match(json(200, ListDocumentsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49008
49046
  if (!result.ok) {
49009
49047
  return [result, { status: "complete", request: req, response }];
49010
49048
  }
@@ -49017,6 +49055,7 @@ var init_kycListDocuments = __esm(() => {
49017
49055
  init_schemas();
49018
49056
  init_security();
49019
49057
  init_url();
49058
+ init_errors();
49020
49059
  init_operations();
49021
49060
  init_async();
49022
49061
  });
@@ -49050,12 +49089,12 @@ List all documents added by a particular customer.`,
49050
49089
  };
49051
49090
  });
49052
49091
 
49053
- // src/funcs/kycListDocumentType.ts
49054
- function kycListDocumentType(client, options) {
49092
+ // src/funcs/kycListKycDocument.ts
49093
+ function kycListKycDocument(client, options) {
49055
49094
  return new APIPromise($do46(client, options));
49056
49095
  }
49057
49096
  async function $do46(client, options) {
49058
- const path = pathToFunc("/store/document-type")();
49097
+ const path = pathToFunc("/store/kyc-document")();
49059
49098
  const headers = new Headers(compactMap({
49060
49099
  Accept: "application/json"
49061
49100
  }));
@@ -49064,7 +49103,7 @@ async function $do46(client, options) {
49064
49103
  const requestSecurity = resolveGlobalSecurity(securityInput);
49065
49104
  const context = {
49066
49105
  baseURL: options?.serverURL ?? client._baseURL ?? "",
49067
- operationID: "list-document-type",
49106
+ operationID: "list-kyc-document",
49068
49107
  oAuth2Scopes: [],
49069
49108
  resolvedSecurity: requestSecurity,
49070
49109
  securitySource: client._options.authorization,
@@ -49085,7 +49124,7 @@ async function $do46(client, options) {
49085
49124
  const req = requestRes.value;
49086
49125
  const doResult = await client._do(req, {
49087
49126
  context,
49088
- errorCodes: ["4XX", "5XX"],
49127
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
49089
49128
  retryConfig: context.retryConfig,
49090
49129
  retryCodes: context.retryCodes
49091
49130
  });
@@ -49093,33 +49132,37 @@ async function $do46(client, options) {
49093
49132
  return [doResult, { status: "request-error", request: req }];
49094
49133
  }
49095
49134
  const response = doResult.value;
49096
- const [result] = await match(json(200, ListDocumentTypeResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
49135
+ const responseFields = {
49136
+ HttpMeta: { Response: response, Request: req }
49137
+ };
49138
+ const [result] = await match(json(200, ListKycDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49097
49139
  if (!result.ok) {
49098
49140
  return [result, { status: "complete", request: req, response }];
49099
49141
  }
49100
49142
  return [result, { status: "complete", request: req, response }];
49101
49143
  }
49102
- var init_kycListDocumentType = __esm(() => {
49144
+ var init_kycListKycDocument = __esm(() => {
49103
49145
  init_matchers();
49104
49146
  init_primitives();
49105
49147
  init_security();
49106
49148
  init_url();
49149
+ init_errors();
49107
49150
  init_operations();
49108
49151
  init_async();
49109
49152
  });
49110
49153
 
49111
- // src/mcp-server/tools/kycListDocumentType.ts
49112
- var tool$kycListDocumentType;
49113
- var init_kycListDocumentType2 = __esm(() => {
49114
- init_kycListDocumentType();
49154
+ // src/mcp-server/tools/kycListKycDocument.ts
49155
+ var tool$kycListKycDocument;
49156
+ var init_kycListKycDocument2 = __esm(() => {
49157
+ init_kycListKycDocument();
49115
49158
  init_tools();
49116
- tool$kycListDocumentType = {
49117
- name: "kyc-list-document-type",
49118
- description: `List all document types
49159
+ tool$kycListKycDocument = {
49160
+ name: "kyc-list-kyc-document",
49161
+ description: `List all kyc documents
49119
49162
 
49120
- List all kyc documents types configured for a particular store.`,
49163
+ List all kyc documents added for a particular store.`,
49121
49164
  tool: async (client, ctx) => {
49122
- const [result, apiCall] = await kycListDocumentType(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
49165
+ const [result, apiCall] = await kycListKycDocument(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
49123
49166
  if (!result.ok) {
49124
49167
  return {
49125
49168
  content: [{ type: "text", text: result.error.message }],
@@ -49145,7 +49188,7 @@ async function $do47(client, request, options) {
49145
49188
  const body = new FormData;
49146
49189
  if (payload.UpdateDocument != null) {
49147
49190
  appendForm(body, "document_number", payload.UpdateDocument.document_number);
49148
- appendForm(body, "document_type_id", payload.UpdateDocument.document_type_id);
49191
+ appendForm(body, "kyc_document_id", payload.UpdateDocument.kyc_document_id);
49149
49192
  appendForm(body, "modified_reason", payload.UpdateDocument.modified_reason);
49150
49193
  if (payload.UpdateDocument.file !== undefined) {
49151
49194
  if (isBlobLike(payload.UpdateDocument.file)) {
@@ -49205,7 +49248,7 @@ async function $do47(client, request, options) {
49205
49248
  const req = requestRes.value;
49206
49249
  const doResult = await client._do(req, {
49207
49250
  context,
49208
- errorCodes: ["4XX", "5XX"],
49251
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
49209
49252
  retryConfig: context.retryConfig,
49210
49253
  retryCodes: context.retryCodes
49211
49254
  });
@@ -49213,7 +49256,10 @@ async function $do47(client, request, options) {
49213
49256
  return [doResult, { status: "request-error", request: req }];
49214
49257
  }
49215
49258
  const response = doResult.value;
49216
- const [result] = await match(json(200, UpdateDocumentResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
49259
+ const responseFields = {
49260
+ HttpMeta: { Response: response, Request: req }
49261
+ };
49262
+ const [result] = await match(json(200, UpdateDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49217
49263
  if (!result.ok) {
49218
49264
  return [result, { status: "complete", request: req, response }];
49219
49265
  }
@@ -49226,6 +49272,7 @@ var init_kycUpdateDocument = __esm(() => {
49226
49272
  init_schemas();
49227
49273
  init_security();
49228
49274
  init_url();
49275
+ init_errors();
49229
49276
  init_operations();
49230
49277
  init_async();
49231
49278
  init_blobs();
@@ -49309,7 +49356,7 @@ async function $do48(client, request, options) {
49309
49356
  const req = requestRes.value;
49310
49357
  const doResult = await client._do(req, {
49311
49358
  context,
49312
- errorCodes: ["4XX", "5XX"],
49359
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
49313
49360
  retryConfig: context.retryConfig,
49314
49361
  retryCodes: context.retryCodes
49315
49362
  });
@@ -49317,7 +49364,10 @@ async function $do48(client, request, options) {
49317
49364
  return [doResult, { status: "request-error", request: req }];
49318
49365
  }
49319
49366
  const response = doResult.value;
49320
- const [result] = await match(json(200, VerifyDocumentResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
49367
+ const responseFields = {
49368
+ HttpMeta: { Response: response, Request: req }
49369
+ };
49370
+ const [result] = await match(json(200, VerifyDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
49321
49371
  if (!result.ok) {
49322
49372
  return [result, { status: "complete", request: req, response }];
49323
49373
  }
@@ -49330,6 +49380,7 @@ var init_kycVerifyDocument = __esm(() => {
49330
49380
  init_schemas();
49331
49381
  init_security();
49332
49382
  init_url();
49383
+ init_errors();
49333
49384
  init_operations();
49334
49385
  init_async();
49335
49386
  });
@@ -50206,7 +50257,7 @@ Check shipment delivery availability in an area by pincode`,
50206
50257
  function createMCPServer(deps) {
50207
50258
  const server = new McpServer({
50208
50259
  name: "CeStorefront",
50209
- version: "0.9.0"
50260
+ version: "0.9.2"
50210
50261
  });
50211
50262
  const client = new CeStorefrontCore({
50212
50263
  authorization: deps.authorization,
@@ -50247,7 +50298,7 @@ function createMCPServer(deps) {
50247
50298
  tool(tool$customersUpdateAddressDetail);
50248
50299
  tool(tool$customersDeleteAddress);
50249
50300
  tool(tool$customersListUserReviews);
50250
- tool(tool$kycListDocumentType);
50301
+ tool(tool$kycListKycDocument);
50251
50302
  tool(tool$kycListDocuments);
50252
50303
  tool(tool$kycCreateDocument);
50253
50304
  tool(tool$kycGetDocument);
@@ -50329,7 +50380,7 @@ var init_server2 = __esm(() => {
50329
50380
  init_kycDeleteDocument2();
50330
50381
  init_kycGetDocument2();
50331
50382
  init_kycListDocuments2();
50332
- init_kycListDocumentType2();
50383
+ init_kycListKycDocument2();
50333
50384
  init_kycUpdateDocument2();
50334
50385
  init_kycVerifyDocument2();
50335
50386
  init_ordersCancelOrder2();
@@ -51542,7 +51593,7 @@ var routes = rn({
51542
51593
  var app = Ve(routes, {
51543
51594
  name: "mcp",
51544
51595
  versionInfo: {
51545
- currentVersion: "0.9.0"
51596
+ currentVersion: "0.9.2"
51546
51597
  }
51547
51598
  });
51548
51599
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -51550,5 +51601,5 @@ export {
51550
51601
  app
51551
51602
  };
51552
51603
 
51553
- //# debugId=AC10C35A5BE8F71464756E2164756E21
51604
+ //# debugId=0AE8B6422AE1B13B64756E2164756E21
51554
51605
  //# sourceMappingURL=mcp-server.js.map