ce-storefront 0.8.2 → 0.9.1
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/README.md +53 -0
- package/bin/mcp-server.js +1765 -177
- package/bin/mcp-server.js.map +43 -13
- package/docs/sdks/auth/README.md +10 -10
- package/docs/sdks/carts/README.md +10 -0
- package/docs/sdks/customers/README.md +20 -20
- package/docs/sdks/kyc/README.md +566 -0
- package/esm/funcs/authGetAnonymousToken.js +1 -1
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/kycCreateDocument.d.ts +17 -0
- package/esm/funcs/kycCreateDocument.d.ts.map +1 -0
- package/esm/funcs/kycCreateDocument.js +110 -0
- package/esm/funcs/kycCreateDocument.js.map +1 -0
- package/esm/funcs/kycDeleteDocument.d.ts +17 -0
- package/esm/funcs/kycDeleteDocument.d.ts.map +1 -0
- package/esm/funcs/kycDeleteDocument.js +89 -0
- package/esm/funcs/kycDeleteDocument.js.map +1 -0
- package/esm/funcs/kycGetDocument.d.ts +17 -0
- package/esm/funcs/kycGetDocument.d.ts.map +1 -0
- package/esm/funcs/kycGetDocument.js +89 -0
- package/esm/funcs/kycGetDocument.js.map +1 -0
- package/esm/funcs/kycListDocuments.d.ts +17 -0
- package/esm/funcs/kycListDocuments.d.ts.map +1 -0
- package/esm/funcs/kycListDocuments.js +85 -0
- package/esm/funcs/kycListDocuments.js.map +1 -0
- package/esm/funcs/kycListKycDocument.d.ts +17 -0
- package/esm/funcs/kycListKycDocument.d.ts.map +1 -0
- package/esm/funcs/kycListKycDocument.js +70 -0
- package/esm/funcs/kycListKycDocument.js.map +1 -0
- package/esm/funcs/kycUpdateDocument.d.ts +17 -0
- package/esm/funcs/kycUpdateDocument.d.ts.map +1 -0
- package/esm/funcs/kycUpdateDocument.js +115 -0
- package/esm/funcs/kycUpdateDocument.js.map +1 -0
- package/esm/funcs/kycVerifyDocument.d.ts +17 -0
- package/esm/funcs/kycVerifyDocument.d.ts.map +1 -0
- package/esm/funcs/kycVerifyDocument.js +86 -0
- package/esm/funcs/kycVerifyDocument.js.map +1 -0
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.js +4 -4
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/prompts.d.ts.map +1 -1
- package/esm/mcp-server/prompts.js +5 -1
- package/esm/mcp-server/prompts.js.map +1 -1
- package/esm/mcp-server/resources.d.ts.map +1 -1
- package/esm/mcp-server/resources.js +10 -2
- package/esm/mcp-server/resources.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +16 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/kycCreateDocument.d.ts +8 -0
- package/esm/mcp-server/tools/kycCreateDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycCreateDocument.js +28 -0
- package/esm/mcp-server/tools/kycCreateDocument.js.map +1 -0
- package/esm/mcp-server/tools/kycDeleteDocument.d.ts +8 -0
- package/esm/mcp-server/tools/kycDeleteDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycDeleteDocument.js +28 -0
- package/esm/mcp-server/tools/kycDeleteDocument.js.map +1 -0
- package/esm/mcp-server/tools/kycGetDocument.d.ts +8 -0
- package/esm/mcp-server/tools/kycGetDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycGetDocument.js +28 -0
- package/esm/mcp-server/tools/kycGetDocument.js.map +1 -0
- package/esm/mcp-server/tools/kycListDocuments.d.ts +8 -0
- package/esm/mcp-server/tools/kycListDocuments.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycListDocuments.js +28 -0
- package/esm/mcp-server/tools/kycListDocuments.js.map +1 -0
- package/esm/mcp-server/tools/kycListKycDocument.d.ts +3 -0
- package/esm/mcp-server/tools/kycListKycDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycListKycDocument.js +23 -0
- package/esm/mcp-server/tools/kycListKycDocument.js.map +1 -0
- package/esm/mcp-server/tools/kycUpdateDocument.d.ts +8 -0
- package/esm/mcp-server/tools/kycUpdateDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycUpdateDocument.js +28 -0
- package/esm/mcp-server/tools/kycUpdateDocument.js.map +1 -0
- package/esm/mcp-server/tools/kycVerifyDocument.d.ts +8 -0
- package/esm/mcp-server/tools/kycVerifyDocument.d.ts.map +1 -0
- package/esm/mcp-server/tools/kycVerifyDocument.js +28 -0
- package/esm/mcp-server/tools/kycVerifyDocument.js.map +1 -0
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +4 -3
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/components/document.d.ts +164 -0
- package/esm/models/components/document.d.ts.map +1 -0
- package/esm/models/components/document.js +172 -0
- package/esm/models/components/document.js.map +1 -0
- package/esm/models/components/documentinput.d.ts +65 -0
- package/esm/models/components/documentinput.d.ts.map +1 -0
- package/esm/models/components/documentinput.js +87 -0
- package/esm/models/components/documentinput.js.map +1 -0
- package/esm/models/components/gstindetail.d.ts +29 -0
- package/esm/models/components/gstindetail.d.ts.map +1 -0
- package/esm/models/components/gstindetail.js +31 -0
- package/esm/models/components/gstindetail.js.map +1 -0
- package/esm/models/components/index.d.ts +6 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +6 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/kycdocument.d.ts +103 -0
- package/esm/models/components/kycdocument.d.ts.map +1 -0
- package/esm/models/components/kycdocument.js +101 -0
- package/esm/models/components/kycdocument.js.map +1 -0
- package/esm/models/components/pandetail.d.ts +29 -0
- package/esm/models/components/pandetail.d.ts.map +1 -0
- package/esm/models/components/pandetail.js +31 -0
- package/esm/models/components/pandetail.js.map +1 -0
- package/esm/models/components/updatedocument.d.ts +67 -0
- package/esm/models/components/updatedocument.d.ts.map +1 -0
- package/esm/models/components/updatedocument.js +91 -0
- package/esm/models/components/updatedocument.js.map +1 -0
- package/esm/models/operations/createdocument.d.ts +92 -0
- package/esm/models/operations/createdocument.d.ts.map +1 -0
- package/esm/models/operations/createdocument.js +97 -0
- package/esm/models/operations/createdocument.js.map +1 -0
- package/esm/models/operations/deletedocument.d.ts +67 -0
- package/esm/models/operations/deletedocument.d.ts.map +1 -0
- package/esm/models/operations/deletedocument.js +69 -0
- package/esm/models/operations/deletedocument.js.map +1 -0
- package/esm/models/operations/getdocument.d.ts +95 -0
- package/esm/models/operations/getdocument.d.ts.map +1 -0
- package/esm/models/operations/getdocument.js +97 -0
- package/esm/models/operations/getdocument.js.map +1 -0
- package/esm/models/operations/index.d.ts +7 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +7 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listdocuments.d.ts +90 -0
- package/esm/models/operations/listdocuments.d.ts.map +1 -0
- package/esm/models/operations/listdocuments.js +86 -0
- package/esm/models/operations/listdocuments.js.map +1 -0
- package/esm/models/operations/listkycdocument.d.ts +64 -0
- package/esm/models/operations/listkycdocument.d.ts.map +1 -0
- package/esm/models/operations/listkycdocument.js +74 -0
- package/esm/models/operations/listkycdocument.js.map +1 -0
- package/esm/models/operations/updatedocument.d.ts +97 -0
- package/esm/models/operations/updatedocument.d.ts.map +1 -0
- package/esm/models/operations/updatedocument.js +101 -0
- package/esm/models/operations/updatedocument.js.map +1 -0
- package/esm/models/operations/verifydocument.d.ts +140 -0
- package/esm/models/operations/verifydocument.d.ts.map +1 -0
- package/esm/models/operations/verifydocument.js +168 -0
- package/esm/models/operations/verifydocument.js.map +1 -0
- package/esm/sdk/kyc.d.ts +54 -0
- package/esm/sdk/kyc.d.ts.map +1 -0
- package/esm/sdk/kyc.js +78 -0
- package/esm/sdk/kyc.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGetAnonymousToken.ts +1 -1
- package/src/funcs/kycCreateDocument.ts +207 -0
- package/src/funcs/kycDeleteDocument.ts +183 -0
- package/src/funcs/kycGetDocument.ts +183 -0
- package/src/funcs/kycListDocuments.ts +177 -0
- package/src/funcs/kycListKycDocument.ts +153 -0
- package/src/funcs/kycUpdateDocument.ts +214 -0
- package/src/funcs/kycVerifyDocument.ts +170 -0
- package/src/lib/config.ts +4 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +17 -3
- package/src/mcp-server/tools/kycCreateDocument.ts +37 -0
- package/src/mcp-server/tools/kycDeleteDocument.ts +37 -0
- package/src/mcp-server/tools/kycGetDocument.ts +37 -0
- package/src/mcp-server/tools/kycListDocuments.ts +37 -0
- package/src/mcp-server/tools/kycListKycDocument.ts +30 -0
- package/src/mcp-server/tools/kycUpdateDocument.ts +37 -0
- package/src/mcp-server/tools/kycVerifyDocument.ts +37 -0
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/document.ts +260 -0
- package/src/models/components/documentinput.ts +154 -0
- package/src/models/components/gstindetail.ts +62 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/kycdocument.ts +161 -0
- package/src/models/components/pandetail.ts +62 -0
- package/src/models/components/updatedocument.ts +168 -0
- package/src/models/operations/createdocument.ts +210 -0
- package/src/models/operations/deletedocument.ts +150 -0
- package/src/models/operations/getdocument.ts +213 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/listdocuments.ts +197 -0
- package/src/models/operations/listkycdocument.ts +153 -0
- package/src/models/operations/updatedocument.ts +219 -0
- package/src/models/operations/verifydocument.ts +346 -0
- package/src/sdk/kyc.ts +133 -0
- package/src/sdk/sdk.ts +6 -0
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/
|
|
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.
|
|
4030
|
-
genVersion: "2.
|
|
4031
|
-
userAgent: "speakeasy-sdk/typescript 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"
|
|
4032
4032
|
};
|
|
4033
4033
|
});
|
|
4034
4034
|
|
|
@@ -4083,12 +4083,6 @@ var init_console_logger = __esm(() => {
|
|
|
4083
4083
|
];
|
|
4084
4084
|
});
|
|
4085
4085
|
|
|
4086
|
-
// src/mcp-server/scopes.ts
|
|
4087
|
-
var mcpScopes;
|
|
4088
|
-
var init_scopes = __esm(() => {
|
|
4089
|
-
mcpScopes = [];
|
|
4090
|
-
});
|
|
4091
|
-
|
|
4092
4086
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4093
4087
|
var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
|
|
4094
4088
|
var init_types = __esm(() => {
|
|
@@ -34364,6 +34358,17 @@ function queryEncoder(f) {
|
|
|
34364
34358
|
};
|
|
34365
34359
|
return bulkEncode;
|
|
34366
34360
|
}
|
|
34361
|
+
function appendForm(fd, key, value, fileName) {
|
|
34362
|
+
if (value == null) {
|
|
34363
|
+
return;
|
|
34364
|
+
} else if (value instanceof Blob && fileName) {
|
|
34365
|
+
fd.append(key, value, fileName);
|
|
34366
|
+
} else if (value instanceof Blob) {
|
|
34367
|
+
fd.append(key, value);
|
|
34368
|
+
} else {
|
|
34369
|
+
fd.append(key, String(value));
|
|
34370
|
+
}
|
|
34371
|
+
}
|
|
34367
34372
|
var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeSimple = (key, value, options) => {
|
|
34368
34373
|
let out = "";
|
|
34369
34374
|
const pairs = options?.explode ? explode(key, value) : [[key, value]];
|
|
@@ -34963,7 +34968,10 @@ var init_core = __esm(() => {
|
|
|
34963
34968
|
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
34964
34969
|
return (prompt) => {
|
|
34965
34970
|
const scopes = prompt.scopes ?? [];
|
|
34966
|
-
if (
|
|
34971
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
34972
|
+
return;
|
|
34973
|
+
}
|
|
34974
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
34967
34975
|
return;
|
|
34968
34976
|
}
|
|
34969
34977
|
if (prompt.args) {
|
|
@@ -35034,7 +35042,10 @@ var init_shared = __esm(() => {
|
|
|
35034
35042
|
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35035
35043
|
return (resource) => {
|
|
35036
35044
|
const scopes = resource.scopes ?? [];
|
|
35037
|
-
if (
|
|
35045
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35046
|
+
return;
|
|
35047
|
+
}
|
|
35048
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35038
35049
|
return;
|
|
35039
35050
|
}
|
|
35040
35051
|
const metadata = {
|
|
@@ -35048,7 +35059,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
|
35048
35059
|
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35049
35060
|
return (resource) => {
|
|
35050
35061
|
const scopes = resource.scopes ?? [];
|
|
35051
|
-
if (
|
|
35062
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35063
|
+
return;
|
|
35064
|
+
}
|
|
35065
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35052
35066
|
return;
|
|
35053
35067
|
}
|
|
35054
35068
|
const metadata = {
|
|
@@ -35105,11 +35119,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
|
35105
35119
|
if (allowedTools && !allowedTools.has(tool.name)) {
|
|
35106
35120
|
return;
|
|
35107
35121
|
}
|
|
35108
|
-
const
|
|
35109
|
-
if (allowedScopes.size > 0 &&
|
|
35122
|
+
const scopes = tool.scopes ?? [];
|
|
35123
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35110
35124
|
return;
|
|
35111
35125
|
}
|
|
35112
|
-
if (!
|
|
35126
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35113
35127
|
return;
|
|
35114
35128
|
}
|
|
35115
35129
|
if (tool.args) {
|
|
@@ -36749,6 +36763,203 @@ var init_discountbasedpromotion = __esm(() => {
|
|
|
36749
36763
|
})(DiscountBasedPromotion$ ||= {});
|
|
36750
36764
|
});
|
|
36751
36765
|
|
|
36766
|
+
// src/models/components/document.ts
|
|
36767
|
+
var DocumentStatus, DocumentVerificationType, CreatedBy, ModifiedBy, DocumentStatus$inboundSchema, DocumentStatus$outboundSchema, DocumentStatus$, DocumentVerificationType$inboundSchema, DocumentVerificationType$outboundSchema, DocumentVerificationType$, CreatedBy$inboundSchema, CreatedBy$outboundSchema, CreatedBy$, ModifiedBy$inboundSchema, ModifiedBy$outboundSchema, ModifiedBy$, Document$inboundSchema, Document$outboundSchema, Document$;
|
|
36768
|
+
var init_document = __esm(() => {
|
|
36769
|
+
init_lib();
|
|
36770
|
+
init_primitives();
|
|
36771
|
+
DocumentStatus = {
|
|
36772
|
+
Submitted: "submitted",
|
|
36773
|
+
Approved: "approved",
|
|
36774
|
+
Rejected: "rejected",
|
|
36775
|
+
Expired: "expired"
|
|
36776
|
+
};
|
|
36777
|
+
DocumentVerificationType = {
|
|
36778
|
+
Automatic: "automatic",
|
|
36779
|
+
Manual: "manual"
|
|
36780
|
+
};
|
|
36781
|
+
CreatedBy = {
|
|
36782
|
+
Customer: "customer",
|
|
36783
|
+
Admin: "admin"
|
|
36784
|
+
};
|
|
36785
|
+
ModifiedBy = {
|
|
36786
|
+
Customer: "customer",
|
|
36787
|
+
Admin: "admin"
|
|
36788
|
+
};
|
|
36789
|
+
DocumentStatus$inboundSchema = nativeEnumType(DocumentStatus);
|
|
36790
|
+
DocumentStatus$outboundSchema = DocumentStatus$inboundSchema;
|
|
36791
|
+
((DocumentStatus$) => {
|
|
36792
|
+
DocumentStatus$.inboundSchema = DocumentStatus$inboundSchema;
|
|
36793
|
+
DocumentStatus$.outboundSchema = DocumentStatus$outboundSchema;
|
|
36794
|
+
})(DocumentStatus$ ||= {});
|
|
36795
|
+
DocumentVerificationType$inboundSchema = nativeEnumType(DocumentVerificationType);
|
|
36796
|
+
DocumentVerificationType$outboundSchema = DocumentVerificationType$inboundSchema;
|
|
36797
|
+
((DocumentVerificationType$) => {
|
|
36798
|
+
DocumentVerificationType$.inboundSchema = DocumentVerificationType$inboundSchema;
|
|
36799
|
+
DocumentVerificationType$.outboundSchema = DocumentVerificationType$outboundSchema;
|
|
36800
|
+
})(DocumentVerificationType$ ||= {});
|
|
36801
|
+
CreatedBy$inboundSchema = nativeEnumType(CreatedBy);
|
|
36802
|
+
CreatedBy$outboundSchema = CreatedBy$inboundSchema;
|
|
36803
|
+
((CreatedBy$) => {
|
|
36804
|
+
CreatedBy$.inboundSchema = CreatedBy$inboundSchema;
|
|
36805
|
+
CreatedBy$.outboundSchema = CreatedBy$outboundSchema;
|
|
36806
|
+
})(CreatedBy$ ||= {});
|
|
36807
|
+
ModifiedBy$inboundSchema = nativeEnumType(ModifiedBy);
|
|
36808
|
+
ModifiedBy$outboundSchema = ModifiedBy$inboundSchema;
|
|
36809
|
+
((ModifiedBy$) => {
|
|
36810
|
+
ModifiedBy$.inboundSchema = ModifiedBy$inboundSchema;
|
|
36811
|
+
ModifiedBy$.outboundSchema = ModifiedBy$outboundSchema;
|
|
36812
|
+
})(ModifiedBy$ ||= {});
|
|
36813
|
+
Document$inboundSchema = objectType({
|
|
36814
|
+
id: stringType().optional(),
|
|
36815
|
+
document_number: stringType(),
|
|
36816
|
+
note: stringType().optional(),
|
|
36817
|
+
status: DocumentStatus$inboundSchema.optional(),
|
|
36818
|
+
title: stringType().optional(),
|
|
36819
|
+
file_url: stringType().optional(),
|
|
36820
|
+
verification_type: DocumentVerificationType$inboundSchema.optional(),
|
|
36821
|
+
is_verified: booleanType().optional(),
|
|
36822
|
+
verified_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36823
|
+
created_by: CreatedBy$inboundSchema.optional(),
|
|
36824
|
+
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36825
|
+
modified_by: ModifiedBy$inboundSchema.optional(),
|
|
36826
|
+
modified_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36827
|
+
modified_reason: stringType().optional(),
|
|
36828
|
+
expires_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
36829
|
+
}).transform((v2) => {
|
|
36830
|
+
return remap(v2, {
|
|
36831
|
+
document_number: "documentNumber",
|
|
36832
|
+
file_url: "fileUrl",
|
|
36833
|
+
verification_type: "verificationType",
|
|
36834
|
+
is_verified: "isVerified",
|
|
36835
|
+
verified_at: "verifiedAt",
|
|
36836
|
+
created_by: "createdBy",
|
|
36837
|
+
created_at: "createdAt",
|
|
36838
|
+
modified_by: "modifiedBy",
|
|
36839
|
+
modified_at: "modifiedAt",
|
|
36840
|
+
modified_reason: "modifiedReason",
|
|
36841
|
+
expires_at: "expiresAt"
|
|
36842
|
+
});
|
|
36843
|
+
});
|
|
36844
|
+
Document$outboundSchema = objectType({
|
|
36845
|
+
id: stringType().optional(),
|
|
36846
|
+
documentNumber: stringType(),
|
|
36847
|
+
note: stringType().optional(),
|
|
36848
|
+
status: DocumentStatus$outboundSchema.optional(),
|
|
36849
|
+
title: stringType().optional(),
|
|
36850
|
+
fileUrl: stringType().optional(),
|
|
36851
|
+
verificationType: DocumentVerificationType$outboundSchema.optional(),
|
|
36852
|
+
isVerified: booleanType().optional(),
|
|
36853
|
+
verifiedAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36854
|
+
createdBy: CreatedBy$outboundSchema.optional(),
|
|
36855
|
+
createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36856
|
+
modifiedBy: ModifiedBy$outboundSchema.optional(),
|
|
36857
|
+
modifiedAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36858
|
+
modifiedReason: stringType().optional(),
|
|
36859
|
+
expiresAt: dateType().transform((v2) => v2.toISOString()).optional()
|
|
36860
|
+
}).transform((v2) => {
|
|
36861
|
+
return remap(v2, {
|
|
36862
|
+
documentNumber: "document_number",
|
|
36863
|
+
fileUrl: "file_url",
|
|
36864
|
+
verificationType: "verification_type",
|
|
36865
|
+
isVerified: "is_verified",
|
|
36866
|
+
verifiedAt: "verified_at",
|
|
36867
|
+
createdBy: "created_by",
|
|
36868
|
+
createdAt: "created_at",
|
|
36869
|
+
modifiedBy: "modified_by",
|
|
36870
|
+
modifiedAt: "modified_at",
|
|
36871
|
+
modifiedReason: "modified_reason",
|
|
36872
|
+
expiresAt: "expires_at"
|
|
36873
|
+
});
|
|
36874
|
+
});
|
|
36875
|
+
((Document$) => {
|
|
36876
|
+
Document$.inboundSchema = Document$inboundSchema;
|
|
36877
|
+
Document$.outboundSchema = Document$outboundSchema;
|
|
36878
|
+
})(Document$ ||= {});
|
|
36879
|
+
});
|
|
36880
|
+
|
|
36881
|
+
// src/types/blobs.ts
|
|
36882
|
+
function isBlobLike(val) {
|
|
36883
|
+
if (val instanceof Blob) {
|
|
36884
|
+
return true;
|
|
36885
|
+
}
|
|
36886
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
36887
|
+
return false;
|
|
36888
|
+
}
|
|
36889
|
+
const name = val[Symbol.toStringTag];
|
|
36890
|
+
if (typeof name !== "string") {
|
|
36891
|
+
return false;
|
|
36892
|
+
}
|
|
36893
|
+
if (name !== "Blob" && name !== "File") {
|
|
36894
|
+
return false;
|
|
36895
|
+
}
|
|
36896
|
+
return "stream" in val && typeof val.stream === "function";
|
|
36897
|
+
}
|
|
36898
|
+
var blobLikeSchema;
|
|
36899
|
+
var init_blobs = __esm(() => {
|
|
36900
|
+
init_lib();
|
|
36901
|
+
blobLikeSchema = custom(isBlobLike, {
|
|
36902
|
+
message: "expected a Blob, File or Blob-like object",
|
|
36903
|
+
fatal: true
|
|
36904
|
+
});
|
|
36905
|
+
});
|
|
36906
|
+
|
|
36907
|
+
// src/models/components/documentinput.ts
|
|
36908
|
+
var FileT$inboundSchema, FileT$outboundSchema, FileT$, DocumentInput$inboundSchema, DocumentInput$outboundSchema, DocumentInput$;
|
|
36909
|
+
var init_documentinput = __esm(() => {
|
|
36910
|
+
init_lib();
|
|
36911
|
+
init_primitives();
|
|
36912
|
+
init_blobs();
|
|
36913
|
+
FileT$inboundSchema = objectType({
|
|
36914
|
+
fileName: stringType(),
|
|
36915
|
+
content: unionType([
|
|
36916
|
+
instanceOfType(ReadableStream),
|
|
36917
|
+
instanceOfType(Blob),
|
|
36918
|
+
instanceOfType(ArrayBuffer),
|
|
36919
|
+
instanceOfType(Uint8Array)
|
|
36920
|
+
])
|
|
36921
|
+
});
|
|
36922
|
+
FileT$outboundSchema = objectType({
|
|
36923
|
+
fileName: stringType(),
|
|
36924
|
+
content: unionType([
|
|
36925
|
+
instanceOfType(ReadableStream),
|
|
36926
|
+
instanceOfType(Blob),
|
|
36927
|
+
instanceOfType(ArrayBuffer),
|
|
36928
|
+
instanceOfType(Uint8Array)
|
|
36929
|
+
])
|
|
36930
|
+
});
|
|
36931
|
+
((FileT$) => {
|
|
36932
|
+
FileT$.inboundSchema = FileT$inboundSchema;
|
|
36933
|
+
FileT$.outboundSchema = FileT$outboundSchema;
|
|
36934
|
+
})(FileT$ ||= {});
|
|
36935
|
+
DocumentInput$inboundSchema = objectType({
|
|
36936
|
+
document_number: stringType(),
|
|
36937
|
+
kyc_document_id: stringType(),
|
|
36938
|
+
note: stringType().optional(),
|
|
36939
|
+
file: lazyType(() => FileT$inboundSchema).optional()
|
|
36940
|
+
}).transform((v2) => {
|
|
36941
|
+
return remap(v2, {
|
|
36942
|
+
document_number: "documentNumber",
|
|
36943
|
+
kyc_document_id: "kycDocumentId"
|
|
36944
|
+
});
|
|
36945
|
+
});
|
|
36946
|
+
DocumentInput$outboundSchema = objectType({
|
|
36947
|
+
documentNumber: stringType(),
|
|
36948
|
+
kycDocumentId: stringType(),
|
|
36949
|
+
note: stringType().optional(),
|
|
36950
|
+
file: lazyType(() => FileT$outboundSchema).or(blobLikeSchema).optional()
|
|
36951
|
+
}).transform((v2) => {
|
|
36952
|
+
return remap(v2, {
|
|
36953
|
+
documentNumber: "document_number",
|
|
36954
|
+
kycDocumentId: "kyc_document_id"
|
|
36955
|
+
});
|
|
36956
|
+
});
|
|
36957
|
+
((DocumentInput$) => {
|
|
36958
|
+
DocumentInput$.inboundSchema = DocumentInput$inboundSchema;
|
|
36959
|
+
DocumentInput$.outboundSchema = DocumentInput$outboundSchema;
|
|
36960
|
+
})(DocumentInput$ ||= {});
|
|
36961
|
+
});
|
|
36962
|
+
|
|
36752
36963
|
// src/models/components/fixedpricepromotion.ts
|
|
36753
36964
|
var FixedPricePromotion$inboundSchema, FixedPricePromotion$outboundSchema, FixedPricePromotion$;
|
|
36754
36965
|
var init_fixedpricepromotion = __esm(() => {
|
|
@@ -36811,6 +37022,22 @@ var init_freegoodspromotion = __esm(() => {
|
|
|
36811
37022
|
})(FreeGoodsPromotion$ ||= {});
|
|
36812
37023
|
});
|
|
36813
37024
|
|
|
37025
|
+
// src/models/components/gstindetail.ts
|
|
37026
|
+
var GstinDetail$inboundSchema, GstinDetail$outboundSchema, GstinDetail$;
|
|
37027
|
+
var init_gstindetail = __esm(() => {
|
|
37028
|
+
init_lib();
|
|
37029
|
+
GstinDetail$inboundSchema = objectType({
|
|
37030
|
+
id: stringType().optional()
|
|
37031
|
+
});
|
|
37032
|
+
GstinDetail$outboundSchema = objectType({
|
|
37033
|
+
id: stringType().optional()
|
|
37034
|
+
});
|
|
37035
|
+
((GstinDetail$) => {
|
|
37036
|
+
GstinDetail$.inboundSchema = GstinDetail$inboundSchema;
|
|
37037
|
+
GstinDetail$.outboundSchema = GstinDetail$outboundSchema;
|
|
37038
|
+
})(GstinDetail$ ||= {});
|
|
37039
|
+
});
|
|
37040
|
+
|
|
36814
37041
|
// src/models/components/multiselectattribute.ts
|
|
36815
37042
|
var MultiSelectAttribute$inboundSchema, MultiSelectAttribute$outboundSchema, MultiSelectAttribute$;
|
|
36816
37043
|
var init_multiselectattribute = __esm(() => {
|
|
@@ -37523,6 +37750,74 @@ var init_juspaypaymentinfo = __esm(() => {
|
|
|
37523
37750
|
})(JuspayPaymentInfo$ ||= {});
|
|
37524
37751
|
});
|
|
37525
37752
|
|
|
37753
|
+
// src/models/components/kycdocument.ts
|
|
37754
|
+
var DocumentType, VerificationType, DocumentType$inboundSchema, DocumentType$outboundSchema, DocumentType$, VerificationType$inboundSchema, VerificationType$outboundSchema, VerificationType$, KycDocument$inboundSchema, KycDocument$outboundSchema, KycDocument$;
|
|
37755
|
+
var init_kycdocument = __esm(() => {
|
|
37756
|
+
init_lib();
|
|
37757
|
+
init_primitives();
|
|
37758
|
+
DocumentType = {
|
|
37759
|
+
Gst: "gst",
|
|
37760
|
+
Pan: "pan",
|
|
37761
|
+
Tin: "tin",
|
|
37762
|
+
Cin: "cin",
|
|
37763
|
+
Other: "other"
|
|
37764
|
+
};
|
|
37765
|
+
VerificationType = {
|
|
37766
|
+
Auto: "auto",
|
|
37767
|
+
Manual: "manual"
|
|
37768
|
+
};
|
|
37769
|
+
DocumentType$inboundSchema = nativeEnumType(DocumentType);
|
|
37770
|
+
DocumentType$outboundSchema = DocumentType$inboundSchema;
|
|
37771
|
+
((DocumentType$) => {
|
|
37772
|
+
DocumentType$.inboundSchema = DocumentType$inboundSchema;
|
|
37773
|
+
DocumentType$.outboundSchema = DocumentType$outboundSchema;
|
|
37774
|
+
})(DocumentType$ ||= {});
|
|
37775
|
+
VerificationType$inboundSchema = nativeEnumType(VerificationType);
|
|
37776
|
+
VerificationType$outboundSchema = VerificationType$inboundSchema;
|
|
37777
|
+
((VerificationType$) => {
|
|
37778
|
+
VerificationType$.inboundSchema = VerificationType$inboundSchema;
|
|
37779
|
+
VerificationType$.outboundSchema = VerificationType$outboundSchema;
|
|
37780
|
+
})(VerificationType$ ||= {});
|
|
37781
|
+
KycDocument$inboundSchema = objectType({
|
|
37782
|
+
id: stringType().optional(),
|
|
37783
|
+
document_type: DocumentType$inboundSchema.optional(),
|
|
37784
|
+
title: stringType().optional(),
|
|
37785
|
+
description: nullableType(stringType()).optional(),
|
|
37786
|
+
active: booleanType().default(true),
|
|
37787
|
+
is_mandatory: booleanType().optional(),
|
|
37788
|
+
is_attachment_required: booleanType().optional(),
|
|
37789
|
+
verification_type: VerificationType$inboundSchema.optional()
|
|
37790
|
+
}).transform((v2) => {
|
|
37791
|
+
return remap(v2, {
|
|
37792
|
+
document_type: "documentType",
|
|
37793
|
+
is_mandatory: "isMandatory",
|
|
37794
|
+
is_attachment_required: "isAttachmentRequired",
|
|
37795
|
+
verification_type: "verificationType"
|
|
37796
|
+
});
|
|
37797
|
+
});
|
|
37798
|
+
KycDocument$outboundSchema = objectType({
|
|
37799
|
+
id: stringType().optional(),
|
|
37800
|
+
documentType: DocumentType$outboundSchema.optional(),
|
|
37801
|
+
title: stringType().optional(),
|
|
37802
|
+
description: nullableType(stringType()).optional(),
|
|
37803
|
+
active: booleanType().default(true),
|
|
37804
|
+
isMandatory: booleanType().optional(),
|
|
37805
|
+
isAttachmentRequired: booleanType().optional(),
|
|
37806
|
+
verificationType: VerificationType$outboundSchema.optional()
|
|
37807
|
+
}).transform((v2) => {
|
|
37808
|
+
return remap(v2, {
|
|
37809
|
+
documentType: "document_type",
|
|
37810
|
+
isMandatory: "is_mandatory",
|
|
37811
|
+
isAttachmentRequired: "is_attachment_required",
|
|
37812
|
+
verificationType: "verification_type"
|
|
37813
|
+
});
|
|
37814
|
+
});
|
|
37815
|
+
((KycDocument$) => {
|
|
37816
|
+
KycDocument$.inboundSchema = KycDocument$inboundSchema;
|
|
37817
|
+
KycDocument$.outboundSchema = KycDocument$outboundSchema;
|
|
37818
|
+
})(KycDocument$ ||= {});
|
|
37819
|
+
});
|
|
37820
|
+
|
|
37526
37821
|
// src/models/components/netbankingpayment.ts
|
|
37527
37822
|
var NetbankingPaymentTransactionType, NetbankingPaymentPaymentStatus, NetbankingPaymentPaymentMethod, NetbankingPaymentTransactionType$inboundSchema, NetbankingPaymentTransactionType$outboundSchema, NetbankingPaymentTransactionType$, NetbankingPaymentPaymentStatus$inboundSchema, NetbankingPaymentPaymentStatus$outboundSchema, NetbankingPaymentPaymentStatus$, NetbankingPaymentPaymentMethod$inboundSchema, NetbankingPaymentPaymentMethod$outboundSchema, NetbankingPaymentPaymentMethod$, NetbankingPayment$inboundSchema, NetbankingPayment$outboundSchema, NetbankingPayment$;
|
|
37528
37823
|
var init_netbankingpayment = __esm(() => {
|
|
@@ -38569,6 +38864,22 @@ var init_pagination = __esm(() => {
|
|
|
38569
38864
|
})(Pagination$ ||= {});
|
|
38570
38865
|
});
|
|
38571
38866
|
|
|
38867
|
+
// src/models/components/pandetail.ts
|
|
38868
|
+
var PanDetail$inboundSchema, PanDetail$outboundSchema, PanDetail$;
|
|
38869
|
+
var init_pandetail = __esm(() => {
|
|
38870
|
+
init_lib();
|
|
38871
|
+
PanDetail$inboundSchema = objectType({
|
|
38872
|
+
id: stringType().optional()
|
|
38873
|
+
});
|
|
38874
|
+
PanDetail$outboundSchema = objectType({
|
|
38875
|
+
id: stringType().optional()
|
|
38876
|
+
});
|
|
38877
|
+
((PanDetail$) => {
|
|
38878
|
+
PanDetail$.inboundSchema = PanDetail$inboundSchema;
|
|
38879
|
+
PanDetail$.outboundSchema = PanDetail$outboundSchema;
|
|
38880
|
+
})(PanDetail$ ||= {});
|
|
38881
|
+
});
|
|
38882
|
+
|
|
38572
38883
|
// src/models/components/payupaymentgatewayparams.ts
|
|
38573
38884
|
var PayuPaymentGatewayParams$inboundSchema, PayuPaymentGatewayParams$outboundSchema, PayuPaymentGatewayParams$;
|
|
38574
38885
|
var init_payupaymentgatewayparams = __esm(() => {
|
|
@@ -39619,6 +39930,66 @@ var init_updatecartitem = __esm(() => {
|
|
|
39619
39930
|
})(UpdateCartItem$ ||= {});
|
|
39620
39931
|
});
|
|
39621
39932
|
|
|
39933
|
+
// src/models/components/updatedocument.ts
|
|
39934
|
+
var UpdateDocumentFile$inboundSchema, UpdateDocumentFile$outboundSchema, UpdateDocumentFile$, UpdateDocument$inboundSchema, UpdateDocument$outboundSchema, UpdateDocument$;
|
|
39935
|
+
var init_updatedocument = __esm(() => {
|
|
39936
|
+
init_lib();
|
|
39937
|
+
init_primitives();
|
|
39938
|
+
init_blobs();
|
|
39939
|
+
UpdateDocumentFile$inboundSchema = objectType({
|
|
39940
|
+
fileName: stringType(),
|
|
39941
|
+
content: unionType([
|
|
39942
|
+
instanceOfType(ReadableStream),
|
|
39943
|
+
instanceOfType(Blob),
|
|
39944
|
+
instanceOfType(ArrayBuffer),
|
|
39945
|
+
instanceOfType(Uint8Array)
|
|
39946
|
+
])
|
|
39947
|
+
});
|
|
39948
|
+
UpdateDocumentFile$outboundSchema = objectType({
|
|
39949
|
+
fileName: stringType(),
|
|
39950
|
+
content: unionType([
|
|
39951
|
+
instanceOfType(ReadableStream),
|
|
39952
|
+
instanceOfType(Blob),
|
|
39953
|
+
instanceOfType(ArrayBuffer),
|
|
39954
|
+
instanceOfType(Uint8Array)
|
|
39955
|
+
])
|
|
39956
|
+
});
|
|
39957
|
+
((UpdateDocumentFile$) => {
|
|
39958
|
+
UpdateDocumentFile$.inboundSchema = UpdateDocumentFile$inboundSchema;
|
|
39959
|
+
UpdateDocumentFile$.outboundSchema = UpdateDocumentFile$outboundSchema;
|
|
39960
|
+
})(UpdateDocumentFile$ ||= {});
|
|
39961
|
+
UpdateDocument$inboundSchema = objectType({
|
|
39962
|
+
document_number: stringType(),
|
|
39963
|
+
kyc_document_id: stringType(),
|
|
39964
|
+
note: stringType().optional(),
|
|
39965
|
+
file: lazyType(() => UpdateDocumentFile$inboundSchema).optional(),
|
|
39966
|
+
modified_reason: stringType()
|
|
39967
|
+
}).transform((v2) => {
|
|
39968
|
+
return remap(v2, {
|
|
39969
|
+
document_number: "documentNumber",
|
|
39970
|
+
kyc_document_id: "kycDocumentId",
|
|
39971
|
+
modified_reason: "modifiedReason"
|
|
39972
|
+
});
|
|
39973
|
+
});
|
|
39974
|
+
UpdateDocument$outboundSchema = objectType({
|
|
39975
|
+
documentNumber: stringType(),
|
|
39976
|
+
kycDocumentId: stringType(),
|
|
39977
|
+
note: stringType().optional(),
|
|
39978
|
+
file: lazyType(() => UpdateDocumentFile$outboundSchema).or(blobLikeSchema).optional(),
|
|
39979
|
+
modifiedReason: stringType()
|
|
39980
|
+
}).transform((v2) => {
|
|
39981
|
+
return remap(v2, {
|
|
39982
|
+
documentNumber: "document_number",
|
|
39983
|
+
kycDocumentId: "kyc_document_id",
|
|
39984
|
+
modifiedReason: "modified_reason"
|
|
39985
|
+
});
|
|
39986
|
+
});
|
|
39987
|
+
((UpdateDocument$) => {
|
|
39988
|
+
UpdateDocument$.inboundSchema = UpdateDocument$inboundSchema;
|
|
39989
|
+
UpdateDocument$.outboundSchema = UpdateDocument$outboundSchema;
|
|
39990
|
+
})(UpdateDocument$ ||= {});
|
|
39991
|
+
});
|
|
39992
|
+
|
|
39622
39993
|
// src/models/components/user.ts
|
|
39623
39994
|
var LoginMethods, LoginMethods$inboundSchema, LoginMethods$outboundSchema, LoginMethods$, User$inboundSchema, User$outboundSchema, User$, UserInput$inboundSchema, UserInput$outboundSchema, UserInput$;
|
|
39624
39995
|
var init_user = __esm(() => {
|
|
@@ -39904,11 +40275,15 @@ var init_components = __esm(() => {
|
|
|
39904
40275
|
init_customerreview();
|
|
39905
40276
|
init_dateattribute();
|
|
39906
40277
|
init_discountbasedpromotion();
|
|
40278
|
+
init_document();
|
|
40279
|
+
init_documentinput();
|
|
39907
40280
|
init_fixedpricepromotion();
|
|
39908
40281
|
init_freegoodspromotion();
|
|
40282
|
+
init_gstindetail();
|
|
39909
40283
|
init_item();
|
|
39910
40284
|
init_juspaypaymentgatewayparams();
|
|
39911
40285
|
init_juspaypaymentinfo();
|
|
40286
|
+
init_kycdocument();
|
|
39912
40287
|
init_multiselectattribute();
|
|
39913
40288
|
init_netbankingpayment();
|
|
39914
40289
|
init_notificationchannelpreferences();
|
|
@@ -39920,6 +40295,7 @@ var init_components = __esm(() => {
|
|
|
39920
40295
|
init_orderpayment();
|
|
39921
40296
|
init_ordershipment();
|
|
39922
40297
|
init_pagination();
|
|
40298
|
+
init_pandetail();
|
|
39923
40299
|
init_payupaymentgatewayparams();
|
|
39924
40300
|
init_payupaymentinfo();
|
|
39925
40301
|
init_pincode();
|
|
@@ -39943,6 +40319,7 @@ var init_components = __esm(() => {
|
|
|
39943
40319
|
init_singleselectoption();
|
|
39944
40320
|
init_textattribute();
|
|
39945
40321
|
init_updatecartitem();
|
|
40322
|
+
init_updatedocument();
|
|
39946
40323
|
init_upipayment();
|
|
39947
40324
|
init_user();
|
|
39948
40325
|
init_variant();
|
|
@@ -40472,6 +40849,58 @@ var init_createcartaddress = __esm(() => {
|
|
|
40472
40849
|
})(CreateCartAddressResponseBody$ ||= {});
|
|
40473
40850
|
});
|
|
40474
40851
|
|
|
40852
|
+
// src/models/operations/createdocument.ts
|
|
40853
|
+
var CreateDocumentRequest$inboundSchema, CreateDocumentRequest$outboundSchema, CreateDocumentRequest$, CreateDocumentContent$inboundSchema, CreateDocumentContent$outboundSchema, CreateDocumentContent$, CreateDocumentResponseBody$inboundSchema, CreateDocumentResponseBody$outboundSchema, CreateDocumentResponseBody$;
|
|
40854
|
+
var init_createdocument = __esm(() => {
|
|
40855
|
+
init_lib();
|
|
40856
|
+
init_primitives();
|
|
40857
|
+
init_components();
|
|
40858
|
+
CreateDocumentRequest$inboundSchema = objectType({
|
|
40859
|
+
id: stringType(),
|
|
40860
|
+
Document: DocumentInput$inboundSchema.optional()
|
|
40861
|
+
}).transform((v2) => {
|
|
40862
|
+
return remap(v2, {
|
|
40863
|
+
Document: "document"
|
|
40864
|
+
});
|
|
40865
|
+
});
|
|
40866
|
+
CreateDocumentRequest$outboundSchema = objectType({
|
|
40867
|
+
id: stringType(),
|
|
40868
|
+
document: DocumentInput$outboundSchema.optional()
|
|
40869
|
+
}).transform((v2) => {
|
|
40870
|
+
return remap(v2, {
|
|
40871
|
+
document: "Document"
|
|
40872
|
+
});
|
|
40873
|
+
});
|
|
40874
|
+
((CreateDocumentRequest$) => {
|
|
40875
|
+
CreateDocumentRequest$.inboundSchema = CreateDocumentRequest$inboundSchema;
|
|
40876
|
+
CreateDocumentRequest$.outboundSchema = CreateDocumentRequest$outboundSchema;
|
|
40877
|
+
})(CreateDocumentRequest$ ||= {});
|
|
40878
|
+
CreateDocumentContent$inboundSchema = objectType({
|
|
40879
|
+
document: Document$inboundSchema.optional()
|
|
40880
|
+
});
|
|
40881
|
+
CreateDocumentContent$outboundSchema = objectType({
|
|
40882
|
+
document: Document$outboundSchema.optional()
|
|
40883
|
+
});
|
|
40884
|
+
((CreateDocumentContent$) => {
|
|
40885
|
+
CreateDocumentContent$.inboundSchema = CreateDocumentContent$inboundSchema;
|
|
40886
|
+
CreateDocumentContent$.outboundSchema = CreateDocumentContent$outboundSchema;
|
|
40887
|
+
})(CreateDocumentContent$ ||= {});
|
|
40888
|
+
CreateDocumentResponseBody$inboundSchema = objectType({
|
|
40889
|
+
message: stringType().optional(),
|
|
40890
|
+
success: booleanType().optional(),
|
|
40891
|
+
content: lazyType(() => CreateDocumentContent$inboundSchema).optional()
|
|
40892
|
+
});
|
|
40893
|
+
CreateDocumentResponseBody$outboundSchema = objectType({
|
|
40894
|
+
message: stringType().optional(),
|
|
40895
|
+
success: booleanType().optional(),
|
|
40896
|
+
content: lazyType(() => CreateDocumentContent$outboundSchema).optional()
|
|
40897
|
+
});
|
|
40898
|
+
((CreateDocumentResponseBody$) => {
|
|
40899
|
+
CreateDocumentResponseBody$.inboundSchema = CreateDocumentResponseBody$inboundSchema;
|
|
40900
|
+
CreateDocumentResponseBody$.outboundSchema = CreateDocumentResponseBody$outboundSchema;
|
|
40901
|
+
})(CreateDocumentResponseBody$ ||= {});
|
|
40902
|
+
});
|
|
40903
|
+
|
|
40475
40904
|
// src/models/operations/createnotificationpreferences.ts
|
|
40476
40905
|
var CreateNotificationPreferencesRequestBody$inboundSchema, CreateNotificationPreferencesRequestBody$outboundSchema, CreateNotificationPreferencesRequestBody$, CreateNotificationPreferencesRequest$inboundSchema, CreateNotificationPreferencesRequest$outboundSchema, CreateNotificationPreferencesRequest$, CreateNotificationPreferencesContent$inboundSchema, CreateNotificationPreferencesContent$outboundSchema, CreateNotificationPreferencesContent$, CreateNotificationPreferencesResponseBody$inboundSchema, CreateNotificationPreferencesResponseBody$outboundSchema, CreateNotificationPreferencesResponseBody$;
|
|
40477
40906
|
var init_createnotificationpreferences = __esm(() => {
|
|
@@ -40769,6 +41198,45 @@ var init_deletecart = __esm(() => {
|
|
|
40769
41198
|
})(DeleteCartResponseBody$ ||= {});
|
|
40770
41199
|
});
|
|
40771
41200
|
|
|
41201
|
+
// src/models/operations/deletedocument.ts
|
|
41202
|
+
var DeleteDocumentRequest$inboundSchema, DeleteDocumentRequest$outboundSchema, DeleteDocumentRequest$, DeleteDocumentResponseBody$inboundSchema, DeleteDocumentResponseBody$outboundSchema, DeleteDocumentResponseBody$;
|
|
41203
|
+
var init_deletedocument = __esm(() => {
|
|
41204
|
+
init_lib();
|
|
41205
|
+
init_primitives();
|
|
41206
|
+
DeleteDocumentRequest$inboundSchema = objectType({
|
|
41207
|
+
id: stringType(),
|
|
41208
|
+
document_id: stringType()
|
|
41209
|
+
}).transform((v2) => {
|
|
41210
|
+
return remap(v2, {
|
|
41211
|
+
document_id: "documentId"
|
|
41212
|
+
});
|
|
41213
|
+
});
|
|
41214
|
+
DeleteDocumentRequest$outboundSchema = objectType({
|
|
41215
|
+
id: stringType(),
|
|
41216
|
+
documentId: stringType()
|
|
41217
|
+
}).transform((v2) => {
|
|
41218
|
+
return remap(v2, {
|
|
41219
|
+
documentId: "document_id"
|
|
41220
|
+
});
|
|
41221
|
+
});
|
|
41222
|
+
((DeleteDocumentRequest$) => {
|
|
41223
|
+
DeleteDocumentRequest$.inboundSchema = DeleteDocumentRequest$inboundSchema;
|
|
41224
|
+
DeleteDocumentRequest$.outboundSchema = DeleteDocumentRequest$outboundSchema;
|
|
41225
|
+
})(DeleteDocumentRequest$ ||= {});
|
|
41226
|
+
DeleteDocumentResponseBody$inboundSchema = objectType({
|
|
41227
|
+
message: stringType().optional(),
|
|
41228
|
+
success: booleanType().optional()
|
|
41229
|
+
});
|
|
41230
|
+
DeleteDocumentResponseBody$outboundSchema = objectType({
|
|
41231
|
+
message: stringType().optional(),
|
|
41232
|
+
success: booleanType().optional()
|
|
41233
|
+
});
|
|
41234
|
+
((DeleteDocumentResponseBody$) => {
|
|
41235
|
+
DeleteDocumentResponseBody$.inboundSchema = DeleteDocumentResponseBody$inboundSchema;
|
|
41236
|
+
DeleteDocumentResponseBody$.outboundSchema = DeleteDocumentResponseBody$outboundSchema;
|
|
41237
|
+
})(DeleteDocumentResponseBody$ ||= {});
|
|
41238
|
+
});
|
|
41239
|
+
|
|
40772
41240
|
// src/models/operations/deleteusercart.ts
|
|
40773
41241
|
var DeleteUserCartRequest$inboundSchema, DeleteUserCartRequest$outboundSchema, DeleteUserCartRequest$, DeleteUserCartResponseBody$inboundSchema, DeleteUserCartResponseBody$outboundSchema, DeleteUserCartResponseBody$;
|
|
40774
41242
|
var init_deleteusercart = __esm(() => {
|
|
@@ -41135,6 +41603,58 @@ var init_getcart = __esm(() => {
|
|
|
41135
41603
|
})(GetCartResponseBody$ ||= {});
|
|
41136
41604
|
});
|
|
41137
41605
|
|
|
41606
|
+
// src/models/operations/getdocument.ts
|
|
41607
|
+
var GetDocumentRequest$inboundSchema, GetDocumentRequest$outboundSchema, GetDocumentRequest$, GetDocumentContent$inboundSchema, GetDocumentContent$outboundSchema, GetDocumentContent$, GetDocumentResponseBody$inboundSchema, GetDocumentResponseBody$outboundSchema, GetDocumentResponseBody$;
|
|
41608
|
+
var init_getdocument = __esm(() => {
|
|
41609
|
+
init_lib();
|
|
41610
|
+
init_primitives();
|
|
41611
|
+
init_components();
|
|
41612
|
+
GetDocumentRequest$inboundSchema = objectType({
|
|
41613
|
+
id: stringType(),
|
|
41614
|
+
document_id: stringType()
|
|
41615
|
+
}).transform((v2) => {
|
|
41616
|
+
return remap(v2, {
|
|
41617
|
+
document_id: "documentId"
|
|
41618
|
+
});
|
|
41619
|
+
});
|
|
41620
|
+
GetDocumentRequest$outboundSchema = objectType({
|
|
41621
|
+
id: stringType(),
|
|
41622
|
+
documentId: stringType()
|
|
41623
|
+
}).transform((v2) => {
|
|
41624
|
+
return remap(v2, {
|
|
41625
|
+
documentId: "document_id"
|
|
41626
|
+
});
|
|
41627
|
+
});
|
|
41628
|
+
((GetDocumentRequest$) => {
|
|
41629
|
+
GetDocumentRequest$.inboundSchema = GetDocumentRequest$inboundSchema;
|
|
41630
|
+
GetDocumentRequest$.outboundSchema = GetDocumentRequest$outboundSchema;
|
|
41631
|
+
})(GetDocumentRequest$ ||= {});
|
|
41632
|
+
GetDocumentContent$inboundSchema = objectType({
|
|
41633
|
+
document: Document$inboundSchema.optional()
|
|
41634
|
+
});
|
|
41635
|
+
GetDocumentContent$outboundSchema = objectType({
|
|
41636
|
+
document: Document$outboundSchema.optional()
|
|
41637
|
+
});
|
|
41638
|
+
((GetDocumentContent$) => {
|
|
41639
|
+
GetDocumentContent$.inboundSchema = GetDocumentContent$inboundSchema;
|
|
41640
|
+
GetDocumentContent$.outboundSchema = GetDocumentContent$outboundSchema;
|
|
41641
|
+
})(GetDocumentContent$ ||= {});
|
|
41642
|
+
GetDocumentResponseBody$inboundSchema = objectType({
|
|
41643
|
+
message: stringType().optional(),
|
|
41644
|
+
success: booleanType().optional(),
|
|
41645
|
+
content: lazyType(() => GetDocumentContent$inboundSchema).optional()
|
|
41646
|
+
});
|
|
41647
|
+
GetDocumentResponseBody$outboundSchema = objectType({
|
|
41648
|
+
message: stringType().optional(),
|
|
41649
|
+
success: booleanType().optional(),
|
|
41650
|
+
content: lazyType(() => GetDocumentContent$outboundSchema).optional()
|
|
41651
|
+
});
|
|
41652
|
+
((GetDocumentResponseBody$) => {
|
|
41653
|
+
GetDocumentResponseBody$.inboundSchema = GetDocumentResponseBody$inboundSchema;
|
|
41654
|
+
GetDocumentResponseBody$.outboundSchema = GetDocumentResponseBody$outboundSchema;
|
|
41655
|
+
})(GetDocumentResponseBody$ ||= {});
|
|
41656
|
+
});
|
|
41657
|
+
|
|
41138
41658
|
// src/models/operations/getnotificationpreferences.ts
|
|
41139
41659
|
var GetNotificationPreferencesRequest$inboundSchema, GetNotificationPreferencesRequest$outboundSchema, GetNotificationPreferencesRequest$, GetNotificationPreferencesContent$inboundSchema, GetNotificationPreferencesContent$outboundSchema, GetNotificationPreferencesContent$, GetNotificationPreferencesResponseBody$inboundSchema, GetNotificationPreferencesResponseBody$outboundSchema, GetNotificationPreferencesResponseBody$;
|
|
41140
41660
|
var init_getnotificationpreferences = __esm(() => {
|
|
@@ -41825,6 +42345,91 @@ var init_listcrosssellproducts = __esm(() => {
|
|
|
41825
42345
|
})(ListCrosssellProductsResponseBody$ ||= {});
|
|
41826
42346
|
});
|
|
41827
42347
|
|
|
42348
|
+
// src/models/operations/listdocuments.ts
|
|
42349
|
+
var ListDocumentsRequest$inboundSchema, ListDocumentsRequest$outboundSchema, ListDocumentsRequest$, ListDocumentsContent$inboundSchema, ListDocumentsContent$outboundSchema, ListDocumentsContent$, ListDocumentsResponseBody$inboundSchema, ListDocumentsResponseBody$outboundSchema, ListDocumentsResponseBody$;
|
|
42350
|
+
var init_listdocuments = __esm(() => {
|
|
42351
|
+
init_lib();
|
|
42352
|
+
init_components();
|
|
42353
|
+
ListDocumentsRequest$inboundSchema = objectType({
|
|
42354
|
+
id: stringType()
|
|
42355
|
+
});
|
|
42356
|
+
ListDocumentsRequest$outboundSchema = objectType({
|
|
42357
|
+
id: stringType()
|
|
42358
|
+
});
|
|
42359
|
+
((ListDocumentsRequest$) => {
|
|
42360
|
+
ListDocumentsRequest$.inboundSchema = ListDocumentsRequest$inboundSchema;
|
|
42361
|
+
ListDocumentsRequest$.outboundSchema = ListDocumentsRequest$outboundSchema;
|
|
42362
|
+
})(ListDocumentsRequest$ ||= {});
|
|
42363
|
+
ListDocumentsContent$inboundSchema = objectType({
|
|
42364
|
+
documents: arrayType(Document$inboundSchema).optional()
|
|
42365
|
+
});
|
|
42366
|
+
ListDocumentsContent$outboundSchema = objectType({
|
|
42367
|
+
documents: arrayType(Document$outboundSchema).optional()
|
|
42368
|
+
});
|
|
42369
|
+
((ListDocumentsContent$) => {
|
|
42370
|
+
ListDocumentsContent$.inboundSchema = ListDocumentsContent$inboundSchema;
|
|
42371
|
+
ListDocumentsContent$.outboundSchema = ListDocumentsContent$outboundSchema;
|
|
42372
|
+
})(ListDocumentsContent$ ||= {});
|
|
42373
|
+
ListDocumentsResponseBody$inboundSchema = objectType({
|
|
42374
|
+
message: stringType().optional(),
|
|
42375
|
+
success: booleanType().optional(),
|
|
42376
|
+
content: lazyType(() => ListDocumentsContent$inboundSchema).optional()
|
|
42377
|
+
});
|
|
42378
|
+
ListDocumentsResponseBody$outboundSchema = objectType({
|
|
42379
|
+
message: stringType().optional(),
|
|
42380
|
+
success: booleanType().optional(),
|
|
42381
|
+
content: lazyType(() => ListDocumentsContent$outboundSchema).optional()
|
|
42382
|
+
});
|
|
42383
|
+
((ListDocumentsResponseBody$) => {
|
|
42384
|
+
ListDocumentsResponseBody$.inboundSchema = ListDocumentsResponseBody$inboundSchema;
|
|
42385
|
+
ListDocumentsResponseBody$.outboundSchema = ListDocumentsResponseBody$outboundSchema;
|
|
42386
|
+
})(ListDocumentsResponseBody$ ||= {});
|
|
42387
|
+
});
|
|
42388
|
+
|
|
42389
|
+
// src/models/operations/listkycdocument.ts
|
|
42390
|
+
var ListKycDocumentContent$inboundSchema, ListKycDocumentContent$outboundSchema, ListKycDocumentContent$, ListKycDocumentResponseBody$inboundSchema, ListKycDocumentResponseBody$outboundSchema, ListKycDocumentResponseBody$;
|
|
42391
|
+
var init_listkycdocument = __esm(() => {
|
|
42392
|
+
init_lib();
|
|
42393
|
+
init_primitives();
|
|
42394
|
+
init_components();
|
|
42395
|
+
ListKycDocumentContent$inboundSchema = objectType({
|
|
42396
|
+
kyc_documents: arrayType(KycDocument$inboundSchema).optional(),
|
|
42397
|
+
is_kyc_enabled: booleanType().default(false)
|
|
42398
|
+
}).transform((v2) => {
|
|
42399
|
+
return remap(v2, {
|
|
42400
|
+
kyc_documents: "kycDocuments",
|
|
42401
|
+
is_kyc_enabled: "isKycEnabled"
|
|
42402
|
+
});
|
|
42403
|
+
});
|
|
42404
|
+
ListKycDocumentContent$outboundSchema = objectType({
|
|
42405
|
+
kycDocuments: arrayType(KycDocument$outboundSchema).optional(),
|
|
42406
|
+
isKycEnabled: booleanType().default(false)
|
|
42407
|
+
}).transform((v2) => {
|
|
42408
|
+
return remap(v2, {
|
|
42409
|
+
kycDocuments: "kyc_documents",
|
|
42410
|
+
isKycEnabled: "is_kyc_enabled"
|
|
42411
|
+
});
|
|
42412
|
+
});
|
|
42413
|
+
((ListKycDocumentContent$) => {
|
|
42414
|
+
ListKycDocumentContent$.inboundSchema = ListKycDocumentContent$inboundSchema;
|
|
42415
|
+
ListKycDocumentContent$.outboundSchema = ListKycDocumentContent$outboundSchema;
|
|
42416
|
+
})(ListKycDocumentContent$ ||= {});
|
|
42417
|
+
ListKycDocumentResponseBody$inboundSchema = objectType({
|
|
42418
|
+
message: stringType().optional(),
|
|
42419
|
+
success: booleanType().optional(),
|
|
42420
|
+
content: lazyType(() => ListKycDocumentContent$inboundSchema).optional()
|
|
42421
|
+
});
|
|
42422
|
+
ListKycDocumentResponseBody$outboundSchema = objectType({
|
|
42423
|
+
message: stringType().optional(),
|
|
42424
|
+
success: booleanType().optional(),
|
|
42425
|
+
content: lazyType(() => ListKycDocumentContent$outboundSchema).optional()
|
|
42426
|
+
});
|
|
42427
|
+
((ListKycDocumentResponseBody$) => {
|
|
42428
|
+
ListKycDocumentResponseBody$.inboundSchema = ListKycDocumentResponseBody$inboundSchema;
|
|
42429
|
+
ListKycDocumentResponseBody$.outboundSchema = ListKycDocumentResponseBody$outboundSchema;
|
|
42430
|
+
})(ListKycDocumentResponseBody$ ||= {});
|
|
42431
|
+
});
|
|
42432
|
+
|
|
41828
42433
|
// src/models/operations/listorders.ts
|
|
41829
42434
|
var ListOrdersRequest$inboundSchema, ListOrdersRequest$outboundSchema, ListOrdersRequest$, ListOrdersContent$inboundSchema, ListOrdersContent$outboundSchema, ListOrdersContent$, ListOrdersResponseBody$inboundSchema, ListOrdersResponseBody$outboundSchema, ListOrdersResponseBody$;
|
|
41830
42435
|
var init_listorders = __esm(() => {
|
|
@@ -43138,6 +43743,62 @@ var init_updatecart = __esm(() => {
|
|
|
43138
43743
|
})(UpdateCartResponseBody$ ||= {});
|
|
43139
43744
|
});
|
|
43140
43745
|
|
|
43746
|
+
// src/models/operations/updatedocument.ts
|
|
43747
|
+
var UpdateDocumentRequest$inboundSchema, UpdateDocumentRequest$outboundSchema, UpdateDocumentRequest$, UpdateDocumentContent$inboundSchema, UpdateDocumentContent$outboundSchema, UpdateDocumentContent$, UpdateDocumentResponseBody$inboundSchema, UpdateDocumentResponseBody$outboundSchema, UpdateDocumentResponseBody$;
|
|
43748
|
+
var init_updatedocument2 = __esm(() => {
|
|
43749
|
+
init_lib();
|
|
43750
|
+
init_primitives();
|
|
43751
|
+
init_components();
|
|
43752
|
+
UpdateDocumentRequest$inboundSchema = objectType({
|
|
43753
|
+
id: stringType(),
|
|
43754
|
+
document_id: stringType(),
|
|
43755
|
+
UpdateDocument: UpdateDocument$inboundSchema.optional()
|
|
43756
|
+
}).transform((v2) => {
|
|
43757
|
+
return remap(v2, {
|
|
43758
|
+
document_id: "documentId",
|
|
43759
|
+
UpdateDocument: "updateDocument"
|
|
43760
|
+
});
|
|
43761
|
+
});
|
|
43762
|
+
UpdateDocumentRequest$outboundSchema = objectType({
|
|
43763
|
+
id: stringType(),
|
|
43764
|
+
documentId: stringType(),
|
|
43765
|
+
updateDocument: UpdateDocument$outboundSchema.optional()
|
|
43766
|
+
}).transform((v2) => {
|
|
43767
|
+
return remap(v2, {
|
|
43768
|
+
documentId: "document_id",
|
|
43769
|
+
updateDocument: "UpdateDocument"
|
|
43770
|
+
});
|
|
43771
|
+
});
|
|
43772
|
+
((UpdateDocumentRequest$) => {
|
|
43773
|
+
UpdateDocumentRequest$.inboundSchema = UpdateDocumentRequest$inboundSchema;
|
|
43774
|
+
UpdateDocumentRequest$.outboundSchema = UpdateDocumentRequest$outboundSchema;
|
|
43775
|
+
})(UpdateDocumentRequest$ ||= {});
|
|
43776
|
+
UpdateDocumentContent$inboundSchema = objectType({
|
|
43777
|
+
document: Document$inboundSchema.optional()
|
|
43778
|
+
});
|
|
43779
|
+
UpdateDocumentContent$outboundSchema = objectType({
|
|
43780
|
+
document: Document$outboundSchema.optional()
|
|
43781
|
+
});
|
|
43782
|
+
((UpdateDocumentContent$) => {
|
|
43783
|
+
UpdateDocumentContent$.inboundSchema = UpdateDocumentContent$inboundSchema;
|
|
43784
|
+
UpdateDocumentContent$.outboundSchema = UpdateDocumentContent$outboundSchema;
|
|
43785
|
+
})(UpdateDocumentContent$ ||= {});
|
|
43786
|
+
UpdateDocumentResponseBody$inboundSchema = objectType({
|
|
43787
|
+
message: stringType().optional(),
|
|
43788
|
+
success: booleanType().optional(),
|
|
43789
|
+
content: lazyType(() => UpdateDocumentContent$inboundSchema).optional()
|
|
43790
|
+
});
|
|
43791
|
+
UpdateDocumentResponseBody$outboundSchema = objectType({
|
|
43792
|
+
message: stringType().optional(),
|
|
43793
|
+
success: booleanType().optional(),
|
|
43794
|
+
content: lazyType(() => UpdateDocumentContent$outboundSchema).optional()
|
|
43795
|
+
});
|
|
43796
|
+
((UpdateDocumentResponseBody$) => {
|
|
43797
|
+
UpdateDocumentResponseBody$.inboundSchema = UpdateDocumentResponseBody$inboundSchema;
|
|
43798
|
+
UpdateDocumentResponseBody$.outboundSchema = UpdateDocumentResponseBody$outboundSchema;
|
|
43799
|
+
})(UpdateDocumentResponseBody$ ||= {});
|
|
43800
|
+
});
|
|
43801
|
+
|
|
43141
43802
|
// src/models/operations/updatenotificationpreferences.ts
|
|
43142
43803
|
var UpdateNotificationPreferencesRequestBody$inboundSchema, UpdateNotificationPreferencesRequestBody$outboundSchema, UpdateNotificationPreferencesRequestBody$, UpdateNotificationPreferencesRequest$inboundSchema, UpdateNotificationPreferencesRequest$outboundSchema, UpdateNotificationPreferencesRequest$, UpdateNotificationPreferencesContent$inboundSchema, UpdateNotificationPreferencesContent$outboundSchema, UpdateNotificationPreferencesContent$, UpdateNotificationPreferencesResponseBody$inboundSchema, UpdateNotificationPreferencesResponseBody$outboundSchema, UpdateNotificationPreferencesResponseBody$;
|
|
43143
43804
|
var init_updatenotificationpreferences = __esm(() => {
|
|
@@ -43268,6 +43929,98 @@ var init_updateuser = __esm(() => {
|
|
|
43268
43929
|
})(UpdateUserResponseBody$ ||= {});
|
|
43269
43930
|
});
|
|
43270
43931
|
|
|
43932
|
+
// src/models/operations/verifydocument.ts
|
|
43933
|
+
var VerifyDocumentRequestBody$inboundSchema, VerifyDocumentRequestBody$outboundSchema, VerifyDocumentRequestBody$, VerifyDocumentRequest$inboundSchema, VerifyDocumentRequest$outboundSchema, VerifyDocumentRequest$, Document$inboundSchema2, Document$outboundSchema2, Document$2, VerifyDocumentContent$inboundSchema, VerifyDocumentContent$outboundSchema, VerifyDocumentContent$, VerifyDocumentResponseBody$inboundSchema, VerifyDocumentResponseBody$outboundSchema, VerifyDocumentResponseBody$;
|
|
43934
|
+
var init_verifydocument = __esm(() => {
|
|
43935
|
+
init_lib();
|
|
43936
|
+
init_primitives();
|
|
43937
|
+
init_components();
|
|
43938
|
+
VerifyDocumentRequestBody$inboundSchema = objectType({
|
|
43939
|
+
document_number: stringType(),
|
|
43940
|
+
document_type_id: stringType()
|
|
43941
|
+
}).transform((v2) => {
|
|
43942
|
+
return remap(v2, {
|
|
43943
|
+
document_number: "documentNumber",
|
|
43944
|
+
document_type_id: "documentTypeId"
|
|
43945
|
+
});
|
|
43946
|
+
});
|
|
43947
|
+
VerifyDocumentRequestBody$outboundSchema = objectType({
|
|
43948
|
+
documentNumber: stringType(),
|
|
43949
|
+
documentTypeId: stringType()
|
|
43950
|
+
}).transform((v2) => {
|
|
43951
|
+
return remap(v2, {
|
|
43952
|
+
documentNumber: "document_number",
|
|
43953
|
+
documentTypeId: "document_type_id"
|
|
43954
|
+
});
|
|
43955
|
+
});
|
|
43956
|
+
((VerifyDocumentRequestBody$) => {
|
|
43957
|
+
VerifyDocumentRequestBody$.inboundSchema = VerifyDocumentRequestBody$inboundSchema;
|
|
43958
|
+
VerifyDocumentRequestBody$.outboundSchema = VerifyDocumentRequestBody$outboundSchema;
|
|
43959
|
+
})(VerifyDocumentRequestBody$ ||= {});
|
|
43960
|
+
VerifyDocumentRequest$inboundSchema = objectType({
|
|
43961
|
+
id: stringType(),
|
|
43962
|
+
RequestBody: lazyType(() => VerifyDocumentRequestBody$inboundSchema).optional()
|
|
43963
|
+
}).transform((v2) => {
|
|
43964
|
+
return remap(v2, {
|
|
43965
|
+
RequestBody: "requestBody"
|
|
43966
|
+
});
|
|
43967
|
+
});
|
|
43968
|
+
VerifyDocumentRequest$outboundSchema = objectType({
|
|
43969
|
+
id: stringType(),
|
|
43970
|
+
requestBody: lazyType(() => VerifyDocumentRequestBody$outboundSchema).optional()
|
|
43971
|
+
}).transform((v2) => {
|
|
43972
|
+
return remap(v2, {
|
|
43973
|
+
requestBody: "RequestBody"
|
|
43974
|
+
});
|
|
43975
|
+
});
|
|
43976
|
+
((VerifyDocumentRequest$) => {
|
|
43977
|
+
VerifyDocumentRequest$.inboundSchema = VerifyDocumentRequest$inboundSchema;
|
|
43978
|
+
VerifyDocumentRequest$.outboundSchema = VerifyDocumentRequest$outboundSchema;
|
|
43979
|
+
})(VerifyDocumentRequest$ ||= {});
|
|
43980
|
+
Document$inboundSchema2 = unionType([
|
|
43981
|
+
GstinDetail$inboundSchema,
|
|
43982
|
+
PanDetail$inboundSchema
|
|
43983
|
+
]);
|
|
43984
|
+
Document$outboundSchema2 = unionType([
|
|
43985
|
+
GstinDetail$outboundSchema,
|
|
43986
|
+
PanDetail$outboundSchema
|
|
43987
|
+
]);
|
|
43988
|
+
((Document$) => {
|
|
43989
|
+
Document$.inboundSchema = Document$inboundSchema2;
|
|
43990
|
+
Document$.outboundSchema = Document$outboundSchema2;
|
|
43991
|
+
})(Document$2 ||= {});
|
|
43992
|
+
VerifyDocumentContent$inboundSchema = objectType({
|
|
43993
|
+
document: unionType([
|
|
43994
|
+
GstinDetail$inboundSchema,
|
|
43995
|
+
PanDetail$inboundSchema
|
|
43996
|
+
]).optional()
|
|
43997
|
+
});
|
|
43998
|
+
VerifyDocumentContent$outboundSchema = objectType({
|
|
43999
|
+
document: unionType([
|
|
44000
|
+
GstinDetail$outboundSchema,
|
|
44001
|
+
PanDetail$outboundSchema
|
|
44002
|
+
]).optional()
|
|
44003
|
+
});
|
|
44004
|
+
((VerifyDocumentContent$) => {
|
|
44005
|
+
VerifyDocumentContent$.inboundSchema = VerifyDocumentContent$inboundSchema;
|
|
44006
|
+
VerifyDocumentContent$.outboundSchema = VerifyDocumentContent$outboundSchema;
|
|
44007
|
+
})(VerifyDocumentContent$ ||= {});
|
|
44008
|
+
VerifyDocumentResponseBody$inboundSchema = objectType({
|
|
44009
|
+
message: stringType().optional(),
|
|
44010
|
+
success: booleanType().optional(),
|
|
44011
|
+
content: lazyType(() => VerifyDocumentContent$inboundSchema).optional()
|
|
44012
|
+
});
|
|
44013
|
+
VerifyDocumentResponseBody$outboundSchema = objectType({
|
|
44014
|
+
message: stringType().optional(),
|
|
44015
|
+
success: booleanType().optional(),
|
|
44016
|
+
content: lazyType(() => VerifyDocumentContent$outboundSchema).optional()
|
|
44017
|
+
});
|
|
44018
|
+
((VerifyDocumentResponseBody$) => {
|
|
44019
|
+
VerifyDocumentResponseBody$.inboundSchema = VerifyDocumentResponseBody$inboundSchema;
|
|
44020
|
+
VerifyDocumentResponseBody$.outboundSchema = VerifyDocumentResponseBody$outboundSchema;
|
|
44021
|
+
})(VerifyDocumentResponseBody$ ||= {});
|
|
44022
|
+
});
|
|
44023
|
+
|
|
43271
44024
|
// src/models/operations/verifyotp.ts
|
|
43272
44025
|
var OtpAction, OtpAction$inboundSchema, OtpAction$outboundSchema, OtpAction$, VerifyOtpRequestBody$inboundSchema, VerifyOtpRequestBody$outboundSchema, VerifyOtpRequestBody$, VerifyOtpContent$inboundSchema, VerifyOtpContent$outboundSchema, VerifyOtpContent$, VerifyOtpResponseBody$inboundSchema, VerifyOtpResponseBody$outboundSchema, VerifyOtpResponseBody$;
|
|
43273
44026
|
var init_verifyotp = __esm(() => {
|
|
@@ -43362,15 +44115,18 @@ var init_operations = __esm(() => {
|
|
|
43362
44115
|
init_createaddress();
|
|
43363
44116
|
init_createcart();
|
|
43364
44117
|
init_createcartaddress();
|
|
44118
|
+
init_createdocument();
|
|
43365
44119
|
init_createnotificationpreferences();
|
|
43366
44120
|
init_createorder();
|
|
43367
44121
|
init_deleteaddress();
|
|
43368
44122
|
init_deletecart();
|
|
44123
|
+
init_deletedocument();
|
|
43369
44124
|
init_deleteusercart();
|
|
43370
44125
|
init_generateotp();
|
|
43371
44126
|
init_getaddressdetail();
|
|
43372
44127
|
init_getanonymoustoken();
|
|
43373
44128
|
init_getcart();
|
|
44129
|
+
init_getdocument();
|
|
43374
44130
|
init_getnotificationpreferences();
|
|
43375
44131
|
init_getorderdetail();
|
|
43376
44132
|
init_getpaymentstatus();
|
|
@@ -43382,6 +44138,8 @@ var init_operations = __esm(() => {
|
|
|
43382
44138
|
init_listcategories();
|
|
43383
44139
|
init_listcountrypincodes();
|
|
43384
44140
|
init_listcrosssellproducts();
|
|
44141
|
+
init_listdocuments();
|
|
44142
|
+
init_listkycdocument();
|
|
43385
44143
|
init_listorders();
|
|
43386
44144
|
init_listordershipments();
|
|
43387
44145
|
init_listproductreviews();
|
|
@@ -43402,8 +44160,10 @@ var init_operations = __esm(() => {
|
|
|
43402
44160
|
init_subscribenewsletter();
|
|
43403
44161
|
init_updateaddressdetail();
|
|
43404
44162
|
init_updatecart();
|
|
44163
|
+
init_updatedocument2();
|
|
43405
44164
|
init_updatenotificationpreferences();
|
|
43406
44165
|
init_updateuser();
|
|
44166
|
+
init_verifydocument();
|
|
43407
44167
|
init_verifyotp();
|
|
43408
44168
|
});
|
|
43409
44169
|
|
|
@@ -47453,7 +48213,707 @@ async function $do38(client, request, options) {
|
|
|
47453
48213
|
const req = requestRes.value;
|
|
47454
48214
|
const doResult = await client._do(req, {
|
|
47455
48215
|
context,
|
|
47456
|
-
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
48216
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
48217
|
+
retryConfig: context.retryConfig,
|
|
48218
|
+
retryCodes: context.retryCodes
|
|
48219
|
+
});
|
|
48220
|
+
if (!doResult.ok) {
|
|
48221
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48222
|
+
}
|
|
48223
|
+
const response = doResult.value;
|
|
48224
|
+
const responseFields = {
|
|
48225
|
+
HttpMeta: { Response: response, Request: req }
|
|
48226
|
+
};
|
|
48227
|
+
const [result] = await match(json(200, GetAddressDetailResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48228
|
+
if (!result.ok) {
|
|
48229
|
+
return [result, { status: "complete", request: req, response }];
|
|
48230
|
+
}
|
|
48231
|
+
return [result, { status: "complete", request: req, response }];
|
|
48232
|
+
}
|
|
48233
|
+
var init_customersGetAddressDetail = __esm(() => {
|
|
48234
|
+
init_encodings();
|
|
48235
|
+
init_matchers();
|
|
48236
|
+
init_primitives();
|
|
48237
|
+
init_schemas();
|
|
48238
|
+
init_security();
|
|
48239
|
+
init_url();
|
|
48240
|
+
init_errors();
|
|
48241
|
+
init_operations();
|
|
48242
|
+
init_async();
|
|
48243
|
+
});
|
|
48244
|
+
|
|
48245
|
+
// src/mcp-server/tools/customersGetAddressDetail.ts
|
|
48246
|
+
var args37, tool$customersGetAddressDetail;
|
|
48247
|
+
var init_customersGetAddressDetail2 = __esm(() => {
|
|
48248
|
+
init_customersGetAddressDetail();
|
|
48249
|
+
init_operations();
|
|
48250
|
+
init_tools();
|
|
48251
|
+
args37 = {
|
|
48252
|
+
request: GetAddressDetailRequest$inboundSchema
|
|
48253
|
+
};
|
|
48254
|
+
tool$customersGetAddressDetail = {
|
|
48255
|
+
name: "customers-get-address-detail",
|
|
48256
|
+
description: `Retrieve particular address
|
|
48257
|
+
|
|
48258
|
+
Retrieve address`,
|
|
48259
|
+
args: args37,
|
|
48260
|
+
tool: async (client, args38, ctx) => {
|
|
48261
|
+
const [result, apiCall] = await customersGetAddressDetail(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48262
|
+
if (!result.ok) {
|
|
48263
|
+
return {
|
|
48264
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48265
|
+
isError: true
|
|
48266
|
+
};
|
|
48267
|
+
}
|
|
48268
|
+
const value = result.value;
|
|
48269
|
+
return formatResult(value, apiCall);
|
|
48270
|
+
}
|
|
48271
|
+
};
|
|
48272
|
+
});
|
|
48273
|
+
|
|
48274
|
+
// src/funcs/customersListAddresses.ts
|
|
48275
|
+
function customersListAddresses(client, request, options) {
|
|
48276
|
+
return new APIPromise($do39(client, request, options));
|
|
48277
|
+
}
|
|
48278
|
+
async function $do39(client, request, options) {
|
|
48279
|
+
const parsed = safeParse(request, (value) => ListAddressesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48280
|
+
if (!parsed.ok) {
|
|
48281
|
+
return [parsed, { status: "invalid" }];
|
|
48282
|
+
}
|
|
48283
|
+
const payload = parsed.value;
|
|
48284
|
+
const body = null;
|
|
48285
|
+
const pathParams = {
|
|
48286
|
+
user_id: encodeSimple("user_id", payload.user_id, {
|
|
48287
|
+
explode: false,
|
|
48288
|
+
charEncoding: "percent"
|
|
48289
|
+
})
|
|
48290
|
+
};
|
|
48291
|
+
const path = pathToFunc("/customers/{user_id}/addresses")(pathParams);
|
|
48292
|
+
const query = encodeFormQuery({
|
|
48293
|
+
limit: payload.limit,
|
|
48294
|
+
page: payload.page
|
|
48295
|
+
});
|
|
48296
|
+
const headers = new Headers(compactMap({
|
|
48297
|
+
Accept: "application/json"
|
|
48298
|
+
}));
|
|
48299
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48300
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48301
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48302
|
+
const context = {
|
|
48303
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48304
|
+
operationID: "list-addresses",
|
|
48305
|
+
oAuth2Scopes: [],
|
|
48306
|
+
resolvedSecurity: requestSecurity,
|
|
48307
|
+
securitySource: client._options.authorization,
|
|
48308
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48309
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48310
|
+
};
|
|
48311
|
+
const requestRes = client._createRequest(context, {
|
|
48312
|
+
security: requestSecurity,
|
|
48313
|
+
method: "GET",
|
|
48314
|
+
baseURL: options?.serverURL,
|
|
48315
|
+
path,
|
|
48316
|
+
headers,
|
|
48317
|
+
query,
|
|
48318
|
+
body,
|
|
48319
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48320
|
+
}, options);
|
|
48321
|
+
if (!requestRes.ok) {
|
|
48322
|
+
return [requestRes, { status: "invalid" }];
|
|
48323
|
+
}
|
|
48324
|
+
const req = requestRes.value;
|
|
48325
|
+
const doResult = await client._do(req, {
|
|
48326
|
+
context,
|
|
48327
|
+
errorCodes: ["4XX", "5XX"],
|
|
48328
|
+
retryConfig: context.retryConfig,
|
|
48329
|
+
retryCodes: context.retryCodes
|
|
48330
|
+
});
|
|
48331
|
+
if (!doResult.ok) {
|
|
48332
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48333
|
+
}
|
|
48334
|
+
const response = doResult.value;
|
|
48335
|
+
const [result] = await match(json(200, ListAddressesResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
|
|
48336
|
+
if (!result.ok) {
|
|
48337
|
+
return [result, { status: "complete", request: req, response }];
|
|
48338
|
+
}
|
|
48339
|
+
return [result, { status: "complete", request: req, response }];
|
|
48340
|
+
}
|
|
48341
|
+
var init_customersListAddresses = __esm(() => {
|
|
48342
|
+
init_encodings();
|
|
48343
|
+
init_matchers();
|
|
48344
|
+
init_primitives();
|
|
48345
|
+
init_schemas();
|
|
48346
|
+
init_security();
|
|
48347
|
+
init_url();
|
|
48348
|
+
init_operations();
|
|
48349
|
+
init_async();
|
|
48350
|
+
});
|
|
48351
|
+
|
|
48352
|
+
// src/mcp-server/tools/customersListAddresses.ts
|
|
48353
|
+
var args38, tool$customersListAddresses;
|
|
48354
|
+
var init_customersListAddresses2 = __esm(() => {
|
|
48355
|
+
init_customersListAddresses();
|
|
48356
|
+
init_operations();
|
|
48357
|
+
init_tools();
|
|
48358
|
+
args38 = {
|
|
48359
|
+
request: ListAddressesRequest$inboundSchema
|
|
48360
|
+
};
|
|
48361
|
+
tool$customersListAddresses = {
|
|
48362
|
+
name: "customers-list-addresses",
|
|
48363
|
+
description: `Retrieve all addresses
|
|
48364
|
+
|
|
48365
|
+
Retrieve billing and shipping address of particular customer`,
|
|
48366
|
+
args: args38,
|
|
48367
|
+
tool: async (client, args39, ctx) => {
|
|
48368
|
+
const [result, apiCall] = await customersListAddresses(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48369
|
+
if (!result.ok) {
|
|
48370
|
+
return {
|
|
48371
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48372
|
+
isError: true
|
|
48373
|
+
};
|
|
48374
|
+
}
|
|
48375
|
+
const value = result.value;
|
|
48376
|
+
return formatResult(value, apiCall);
|
|
48377
|
+
}
|
|
48378
|
+
};
|
|
48379
|
+
});
|
|
48380
|
+
|
|
48381
|
+
// src/funcs/customersListUserReviews.ts
|
|
48382
|
+
function customersListUserReviews(client, request, options) {
|
|
48383
|
+
return new APIPromise($do40(client, request, options));
|
|
48384
|
+
}
|
|
48385
|
+
async function $do40(client, request, options) {
|
|
48386
|
+
const parsed = safeParse(request, (value) => ListUserReviewsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48387
|
+
if (!parsed.ok) {
|
|
48388
|
+
return [parsed, { status: "invalid" }];
|
|
48389
|
+
}
|
|
48390
|
+
const payload = parsed.value;
|
|
48391
|
+
const body = null;
|
|
48392
|
+
const pathParams = {
|
|
48393
|
+
user_id: encodeSimple("user_id", payload.user_id, {
|
|
48394
|
+
explode: false,
|
|
48395
|
+
charEncoding: "percent"
|
|
48396
|
+
})
|
|
48397
|
+
};
|
|
48398
|
+
const path = pathToFunc("/customers/{user_id}/reviews")(pathParams);
|
|
48399
|
+
const headers = new Headers(compactMap({
|
|
48400
|
+
Accept: "application/json"
|
|
48401
|
+
}));
|
|
48402
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48403
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48404
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48405
|
+
const context = {
|
|
48406
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48407
|
+
operationID: "list-user-reviews",
|
|
48408
|
+
oAuth2Scopes: [],
|
|
48409
|
+
resolvedSecurity: requestSecurity,
|
|
48410
|
+
securitySource: client._options.authorization,
|
|
48411
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48412
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48413
|
+
};
|
|
48414
|
+
const requestRes = client._createRequest(context, {
|
|
48415
|
+
security: requestSecurity,
|
|
48416
|
+
method: "GET",
|
|
48417
|
+
baseURL: options?.serverURL,
|
|
48418
|
+
path,
|
|
48419
|
+
headers,
|
|
48420
|
+
body,
|
|
48421
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48422
|
+
}, options);
|
|
48423
|
+
if (!requestRes.ok) {
|
|
48424
|
+
return [requestRes, { status: "invalid" }];
|
|
48425
|
+
}
|
|
48426
|
+
const req = requestRes.value;
|
|
48427
|
+
const doResult = await client._do(req, {
|
|
48428
|
+
context,
|
|
48429
|
+
errorCodes: ["4XX", "5XX"],
|
|
48430
|
+
retryConfig: context.retryConfig,
|
|
48431
|
+
retryCodes: context.retryCodes
|
|
48432
|
+
});
|
|
48433
|
+
if (!doResult.ok) {
|
|
48434
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48435
|
+
}
|
|
48436
|
+
const response = doResult.value;
|
|
48437
|
+
const [result] = await match(json(200, ListUserReviewsResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
|
|
48438
|
+
if (!result.ok) {
|
|
48439
|
+
return [result, { status: "complete", request: req, response }];
|
|
48440
|
+
}
|
|
48441
|
+
return [result, { status: "complete", request: req, response }];
|
|
48442
|
+
}
|
|
48443
|
+
var init_customersListUserReviews = __esm(() => {
|
|
48444
|
+
init_encodings();
|
|
48445
|
+
init_matchers();
|
|
48446
|
+
init_primitives();
|
|
48447
|
+
init_schemas();
|
|
48448
|
+
init_security();
|
|
48449
|
+
init_url();
|
|
48450
|
+
init_operations();
|
|
48451
|
+
init_async();
|
|
48452
|
+
});
|
|
48453
|
+
|
|
48454
|
+
// src/mcp-server/tools/customersListUserReviews.ts
|
|
48455
|
+
var args39, tool$customersListUserReviews;
|
|
48456
|
+
var init_customersListUserReviews2 = __esm(() => {
|
|
48457
|
+
init_customersListUserReviews();
|
|
48458
|
+
init_operations();
|
|
48459
|
+
init_tools();
|
|
48460
|
+
args39 = {
|
|
48461
|
+
request: ListUserReviewsRequest$inboundSchema
|
|
48462
|
+
};
|
|
48463
|
+
tool$customersListUserReviews = {
|
|
48464
|
+
name: "customers-list-user-reviews",
|
|
48465
|
+
description: `Retrieve all reviews
|
|
48466
|
+
|
|
48467
|
+
Retrieve all reviews`,
|
|
48468
|
+
args: args39,
|
|
48469
|
+
tool: async (client, args40, ctx) => {
|
|
48470
|
+
const [result, apiCall] = await customersListUserReviews(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48471
|
+
if (!result.ok) {
|
|
48472
|
+
return {
|
|
48473
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48474
|
+
isError: true
|
|
48475
|
+
};
|
|
48476
|
+
}
|
|
48477
|
+
const value = result.value;
|
|
48478
|
+
return formatResult(value, apiCall);
|
|
48479
|
+
}
|
|
48480
|
+
};
|
|
48481
|
+
});
|
|
48482
|
+
|
|
48483
|
+
// src/funcs/customersUpdateAddressDetail.ts
|
|
48484
|
+
function customersUpdateAddressDetail(client, request, options) {
|
|
48485
|
+
return new APIPromise($do41(client, request, options));
|
|
48486
|
+
}
|
|
48487
|
+
async function $do41(client, request, options) {
|
|
48488
|
+
const parsed = safeParse(request, (value) => UpdateAddressDetailRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48489
|
+
if (!parsed.ok) {
|
|
48490
|
+
return [parsed, { status: "invalid" }];
|
|
48491
|
+
}
|
|
48492
|
+
const payload = parsed.value;
|
|
48493
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
48494
|
+
const pathParams = {
|
|
48495
|
+
address_id: encodeSimple("address_id", payload.address_id, {
|
|
48496
|
+
explode: false,
|
|
48497
|
+
charEncoding: "percent"
|
|
48498
|
+
}),
|
|
48499
|
+
user_id: encodeSimple("user_id", payload.user_id, {
|
|
48500
|
+
explode: false,
|
|
48501
|
+
charEncoding: "percent"
|
|
48502
|
+
})
|
|
48503
|
+
};
|
|
48504
|
+
const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
|
|
48505
|
+
const headers = new Headers(compactMap({
|
|
48506
|
+
"Content-Type": "application/json",
|
|
48507
|
+
Accept: "application/json"
|
|
48508
|
+
}));
|
|
48509
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48510
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48511
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48512
|
+
const context = {
|
|
48513
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48514
|
+
operationID: "update-address-detail",
|
|
48515
|
+
oAuth2Scopes: [],
|
|
48516
|
+
resolvedSecurity: requestSecurity,
|
|
48517
|
+
securitySource: client._options.authorization,
|
|
48518
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48519
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48520
|
+
};
|
|
48521
|
+
const requestRes = client._createRequest(context, {
|
|
48522
|
+
security: requestSecurity,
|
|
48523
|
+
method: "PUT",
|
|
48524
|
+
baseURL: options?.serverURL,
|
|
48525
|
+
path,
|
|
48526
|
+
headers,
|
|
48527
|
+
body,
|
|
48528
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48529
|
+
}, options);
|
|
48530
|
+
if (!requestRes.ok) {
|
|
48531
|
+
return [requestRes, { status: "invalid" }];
|
|
48532
|
+
}
|
|
48533
|
+
const req = requestRes.value;
|
|
48534
|
+
const doResult = await client._do(req, {
|
|
48535
|
+
context,
|
|
48536
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
48537
|
+
retryConfig: context.retryConfig,
|
|
48538
|
+
retryCodes: context.retryCodes
|
|
48539
|
+
});
|
|
48540
|
+
if (!doResult.ok) {
|
|
48541
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48542
|
+
}
|
|
48543
|
+
const response = doResult.value;
|
|
48544
|
+
const responseFields = {
|
|
48545
|
+
HttpMeta: { Response: response, Request: req }
|
|
48546
|
+
};
|
|
48547
|
+
const [result] = await match(json(200, UpdateAddressDetailResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48548
|
+
if (!result.ok) {
|
|
48549
|
+
return [result, { status: "complete", request: req, response }];
|
|
48550
|
+
}
|
|
48551
|
+
return [result, { status: "complete", request: req, response }];
|
|
48552
|
+
}
|
|
48553
|
+
var init_customersUpdateAddressDetail = __esm(() => {
|
|
48554
|
+
init_encodings();
|
|
48555
|
+
init_matchers();
|
|
48556
|
+
init_primitives();
|
|
48557
|
+
init_schemas();
|
|
48558
|
+
init_security();
|
|
48559
|
+
init_url();
|
|
48560
|
+
init_errors();
|
|
48561
|
+
init_operations();
|
|
48562
|
+
init_async();
|
|
48563
|
+
});
|
|
48564
|
+
|
|
48565
|
+
// src/mcp-server/tools/customersUpdateAddressDetail.ts
|
|
48566
|
+
var args40, tool$customersUpdateAddressDetail;
|
|
48567
|
+
var init_customersUpdateAddressDetail2 = __esm(() => {
|
|
48568
|
+
init_customersUpdateAddressDetail();
|
|
48569
|
+
init_operations();
|
|
48570
|
+
init_tools();
|
|
48571
|
+
args40 = {
|
|
48572
|
+
request: UpdateAddressDetailRequest$inboundSchema
|
|
48573
|
+
};
|
|
48574
|
+
tool$customersUpdateAddressDetail = {
|
|
48575
|
+
name: "customers-update-address-detail",
|
|
48576
|
+
description: `Update particular address
|
|
48577
|
+
|
|
48578
|
+
Update address`,
|
|
48579
|
+
args: args40,
|
|
48580
|
+
tool: async (client, args41, ctx) => {
|
|
48581
|
+
const [result, apiCall] = await customersUpdateAddressDetail(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48582
|
+
if (!result.ok) {
|
|
48583
|
+
return {
|
|
48584
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48585
|
+
isError: true
|
|
48586
|
+
};
|
|
48587
|
+
}
|
|
48588
|
+
const value = result.value;
|
|
48589
|
+
return formatResult(value, apiCall);
|
|
48590
|
+
}
|
|
48591
|
+
};
|
|
48592
|
+
});
|
|
48593
|
+
|
|
48594
|
+
// src/lib/files.ts
|
|
48595
|
+
async function readableStreamToArrayBuffer(readable) {
|
|
48596
|
+
const reader = readable.getReader();
|
|
48597
|
+
const chunks = [];
|
|
48598
|
+
let totalLength = 0;
|
|
48599
|
+
let done = false;
|
|
48600
|
+
while (!done) {
|
|
48601
|
+
const { value, done: doneReading } = await reader.read();
|
|
48602
|
+
if (doneReading) {
|
|
48603
|
+
done = true;
|
|
48604
|
+
} else {
|
|
48605
|
+
chunks.push(value);
|
|
48606
|
+
totalLength += value.length;
|
|
48607
|
+
}
|
|
48608
|
+
}
|
|
48609
|
+
const concatenatedChunks = new Uint8Array(totalLength);
|
|
48610
|
+
let offset = 0;
|
|
48611
|
+
for (const chunk of chunks) {
|
|
48612
|
+
concatenatedChunks.set(chunk, offset);
|
|
48613
|
+
offset += chunk.length;
|
|
48614
|
+
}
|
|
48615
|
+
return concatenatedChunks.buffer;
|
|
48616
|
+
}
|
|
48617
|
+
|
|
48618
|
+
// src/types/streams.ts
|
|
48619
|
+
function isReadableStream(val) {
|
|
48620
|
+
if (typeof val !== "object" || val === null) {
|
|
48621
|
+
return false;
|
|
48622
|
+
}
|
|
48623
|
+
const stream = val;
|
|
48624
|
+
return typeof stream.getReader === "function" && typeof stream.cancel === "function" && typeof stream.tee === "function";
|
|
48625
|
+
}
|
|
48626
|
+
|
|
48627
|
+
// src/funcs/kycCreateDocument.ts
|
|
48628
|
+
function kycCreateDocument(client, request, options) {
|
|
48629
|
+
return new APIPromise($do42(client, request, options));
|
|
48630
|
+
}
|
|
48631
|
+
async function $do42(client, request, options) {
|
|
48632
|
+
const parsed = safeParse(request, (value) => CreateDocumentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48633
|
+
if (!parsed.ok) {
|
|
48634
|
+
return [parsed, { status: "invalid" }];
|
|
48635
|
+
}
|
|
48636
|
+
const payload = parsed.value;
|
|
48637
|
+
const body = new FormData;
|
|
48638
|
+
if (payload.Document != null) {
|
|
48639
|
+
appendForm(body, "document_number", payload.Document.document_number);
|
|
48640
|
+
appendForm(body, "kyc_document_id", payload.Document.kyc_document_id);
|
|
48641
|
+
if (payload.Document.file !== undefined) {
|
|
48642
|
+
if (isBlobLike(payload.Document.file)) {
|
|
48643
|
+
appendForm(body, "file", payload.Document.file);
|
|
48644
|
+
} else if (isReadableStream(payload.Document.file.content)) {
|
|
48645
|
+
const buffer = await readableStreamToArrayBuffer(payload.Document.file.content);
|
|
48646
|
+
const blob = new Blob([buffer], { type: "application/octet-stream" });
|
|
48647
|
+
appendForm(body, "file", blob);
|
|
48648
|
+
} else {
|
|
48649
|
+
appendForm(body, "file", new Blob([payload.Document.file.content], {
|
|
48650
|
+
type: "application/octet-stream"
|
|
48651
|
+
}), payload.Document.file.fileName);
|
|
48652
|
+
}
|
|
48653
|
+
}
|
|
48654
|
+
if (payload.Document.note !== undefined) {
|
|
48655
|
+
appendForm(body, "note", payload.Document.note);
|
|
48656
|
+
}
|
|
48657
|
+
}
|
|
48658
|
+
const pathParams = {
|
|
48659
|
+
id: encodeSimple("id", payload.id, {
|
|
48660
|
+
explode: false,
|
|
48661
|
+
charEncoding: "percent"
|
|
48662
|
+
})
|
|
48663
|
+
};
|
|
48664
|
+
const path = pathToFunc("/customers/{id}/documents")(pathParams);
|
|
48665
|
+
const headers = new Headers(compactMap({
|
|
48666
|
+
Accept: "application/json"
|
|
48667
|
+
}));
|
|
48668
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48669
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48670
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48671
|
+
const context = {
|
|
48672
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48673
|
+
operationID: "create-document",
|
|
48674
|
+
oAuth2Scopes: [],
|
|
48675
|
+
resolvedSecurity: requestSecurity,
|
|
48676
|
+
securitySource: client._options.authorization,
|
|
48677
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48678
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48679
|
+
};
|
|
48680
|
+
const requestRes = client._createRequest(context, {
|
|
48681
|
+
security: requestSecurity,
|
|
48682
|
+
method: "POST",
|
|
48683
|
+
baseURL: options?.serverURL,
|
|
48684
|
+
path,
|
|
48685
|
+
headers,
|
|
48686
|
+
body,
|
|
48687
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48688
|
+
}, options);
|
|
48689
|
+
if (!requestRes.ok) {
|
|
48690
|
+
return [requestRes, { status: "invalid" }];
|
|
48691
|
+
}
|
|
48692
|
+
const req = requestRes.value;
|
|
48693
|
+
const doResult = await client._do(req, {
|
|
48694
|
+
context,
|
|
48695
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
48696
|
+
retryConfig: context.retryConfig,
|
|
48697
|
+
retryCodes: context.retryCodes
|
|
48698
|
+
});
|
|
48699
|
+
if (!doResult.ok) {
|
|
48700
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48701
|
+
}
|
|
48702
|
+
const response = doResult.value;
|
|
48703
|
+
const responseFields = {
|
|
48704
|
+
HttpMeta: { Response: response, Request: req }
|
|
48705
|
+
};
|
|
48706
|
+
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 });
|
|
48707
|
+
if (!result.ok) {
|
|
48708
|
+
return [result, { status: "complete", request: req, response }];
|
|
48709
|
+
}
|
|
48710
|
+
return [result, { status: "complete", request: req, response }];
|
|
48711
|
+
}
|
|
48712
|
+
var init_kycCreateDocument = __esm(() => {
|
|
48713
|
+
init_encodings();
|
|
48714
|
+
init_matchers();
|
|
48715
|
+
init_primitives();
|
|
48716
|
+
init_schemas();
|
|
48717
|
+
init_security();
|
|
48718
|
+
init_url();
|
|
48719
|
+
init_errors();
|
|
48720
|
+
init_operations();
|
|
48721
|
+
init_async();
|
|
48722
|
+
init_blobs();
|
|
48723
|
+
});
|
|
48724
|
+
|
|
48725
|
+
// src/mcp-server/tools/kycCreateDocument.ts
|
|
48726
|
+
var args41, tool$kycCreateDocument;
|
|
48727
|
+
var init_kycCreateDocument2 = __esm(() => {
|
|
48728
|
+
init_kycCreateDocument();
|
|
48729
|
+
init_operations();
|
|
48730
|
+
init_tools();
|
|
48731
|
+
args41 = {
|
|
48732
|
+
request: CreateDocumentRequest$inboundSchema
|
|
48733
|
+
};
|
|
48734
|
+
tool$kycCreateDocument = {
|
|
48735
|
+
name: "kyc-create-document",
|
|
48736
|
+
description: `Create document
|
|
48737
|
+
|
|
48738
|
+
Create document`,
|
|
48739
|
+
args: args41,
|
|
48740
|
+
tool: async (client, args42, ctx) => {
|
|
48741
|
+
const [result, apiCall] = await kycCreateDocument(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48742
|
+
if (!result.ok) {
|
|
48743
|
+
return {
|
|
48744
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48745
|
+
isError: true
|
|
48746
|
+
};
|
|
48747
|
+
}
|
|
48748
|
+
const value = result.value;
|
|
48749
|
+
return formatResult(value, apiCall);
|
|
48750
|
+
}
|
|
48751
|
+
};
|
|
48752
|
+
});
|
|
48753
|
+
|
|
48754
|
+
// src/funcs/kycDeleteDocument.ts
|
|
48755
|
+
function kycDeleteDocument(client, request, options) {
|
|
48756
|
+
return new APIPromise($do43(client, request, options));
|
|
48757
|
+
}
|
|
48758
|
+
async function $do43(client, request, options) {
|
|
48759
|
+
const parsed = safeParse(request, (value) => DeleteDocumentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48760
|
+
if (!parsed.ok) {
|
|
48761
|
+
return [parsed, { status: "invalid" }];
|
|
48762
|
+
}
|
|
48763
|
+
const payload = parsed.value;
|
|
48764
|
+
const body = null;
|
|
48765
|
+
const pathParams = {
|
|
48766
|
+
document_id: encodeSimple("document_id", payload.document_id, {
|
|
48767
|
+
explode: false,
|
|
48768
|
+
charEncoding: "percent"
|
|
48769
|
+
}),
|
|
48770
|
+
id: encodeSimple("id", payload.id, {
|
|
48771
|
+
explode: false,
|
|
48772
|
+
charEncoding: "percent"
|
|
48773
|
+
})
|
|
48774
|
+
};
|
|
48775
|
+
const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
|
|
48776
|
+
const headers = new Headers(compactMap({
|
|
48777
|
+
Accept: "application/json"
|
|
48778
|
+
}));
|
|
48779
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48780
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48781
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48782
|
+
const context = {
|
|
48783
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48784
|
+
operationID: "delete-document",
|
|
48785
|
+
oAuth2Scopes: [],
|
|
48786
|
+
resolvedSecurity: requestSecurity,
|
|
48787
|
+
securitySource: client._options.authorization,
|
|
48788
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48789
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48790
|
+
};
|
|
48791
|
+
const requestRes = client._createRequest(context, {
|
|
48792
|
+
security: requestSecurity,
|
|
48793
|
+
method: "DELETE",
|
|
48794
|
+
baseURL: options?.serverURL,
|
|
48795
|
+
path,
|
|
48796
|
+
headers,
|
|
48797
|
+
body,
|
|
48798
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48799
|
+
}, options);
|
|
48800
|
+
if (!requestRes.ok) {
|
|
48801
|
+
return [requestRes, { status: "invalid" }];
|
|
48802
|
+
}
|
|
48803
|
+
const req = requestRes.value;
|
|
48804
|
+
const doResult = await client._do(req, {
|
|
48805
|
+
context,
|
|
48806
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
48807
|
+
retryConfig: context.retryConfig,
|
|
48808
|
+
retryCodes: context.retryCodes
|
|
48809
|
+
});
|
|
48810
|
+
if (!doResult.ok) {
|
|
48811
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48812
|
+
}
|
|
48813
|
+
const response = doResult.value;
|
|
48814
|
+
const responseFields = {
|
|
48815
|
+
HttpMeta: { Response: response, Request: req }
|
|
48816
|
+
};
|
|
48817
|
+
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 });
|
|
48818
|
+
if (!result.ok) {
|
|
48819
|
+
return [result, { status: "complete", request: req, response }];
|
|
48820
|
+
}
|
|
48821
|
+
return [result, { status: "complete", request: req, response }];
|
|
48822
|
+
}
|
|
48823
|
+
var init_kycDeleteDocument = __esm(() => {
|
|
48824
|
+
init_encodings();
|
|
48825
|
+
init_matchers();
|
|
48826
|
+
init_primitives();
|
|
48827
|
+
init_schemas();
|
|
48828
|
+
init_security();
|
|
48829
|
+
init_url();
|
|
48830
|
+
init_errors();
|
|
48831
|
+
init_operations();
|
|
48832
|
+
init_async();
|
|
48833
|
+
});
|
|
48834
|
+
|
|
48835
|
+
// src/mcp-server/tools/kycDeleteDocument.ts
|
|
48836
|
+
var args42, tool$kycDeleteDocument;
|
|
48837
|
+
var init_kycDeleteDocument2 = __esm(() => {
|
|
48838
|
+
init_kycDeleteDocument();
|
|
48839
|
+
init_operations();
|
|
48840
|
+
init_tools();
|
|
48841
|
+
args42 = {
|
|
48842
|
+
request: DeleteDocumentRequest$inboundSchema
|
|
48843
|
+
};
|
|
48844
|
+
tool$kycDeleteDocument = {
|
|
48845
|
+
name: "kyc-delete-document",
|
|
48846
|
+
description: `Delete document
|
|
48847
|
+
|
|
48848
|
+
Delete document`,
|
|
48849
|
+
args: args42,
|
|
48850
|
+
tool: async (client, args43, ctx) => {
|
|
48851
|
+
const [result, apiCall] = await kycDeleteDocument(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48852
|
+
if (!result.ok) {
|
|
48853
|
+
return {
|
|
48854
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48855
|
+
isError: true
|
|
48856
|
+
};
|
|
48857
|
+
}
|
|
48858
|
+
const value = result.value;
|
|
48859
|
+
return formatResult(value, apiCall);
|
|
48860
|
+
}
|
|
48861
|
+
};
|
|
48862
|
+
});
|
|
48863
|
+
|
|
48864
|
+
// src/funcs/kycGetDocument.ts
|
|
48865
|
+
function kycGetDocument(client, request, options) {
|
|
48866
|
+
return new APIPromise($do44(client, request, options));
|
|
48867
|
+
}
|
|
48868
|
+
async function $do44(client, request, options) {
|
|
48869
|
+
const parsed = safeParse(request, (value) => GetDocumentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48870
|
+
if (!parsed.ok) {
|
|
48871
|
+
return [parsed, { status: "invalid" }];
|
|
48872
|
+
}
|
|
48873
|
+
const payload = parsed.value;
|
|
48874
|
+
const body = null;
|
|
48875
|
+
const pathParams = {
|
|
48876
|
+
document_id: encodeSimple("document_id", payload.document_id, {
|
|
48877
|
+
explode: false,
|
|
48878
|
+
charEncoding: "percent"
|
|
48879
|
+
}),
|
|
48880
|
+
id: encodeSimple("id", payload.id, {
|
|
48881
|
+
explode: false,
|
|
48882
|
+
charEncoding: "percent"
|
|
48883
|
+
})
|
|
48884
|
+
};
|
|
48885
|
+
const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
|
|
48886
|
+
const headers = new Headers(compactMap({
|
|
48887
|
+
Accept: "application/json"
|
|
48888
|
+
}));
|
|
48889
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
48890
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
48891
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48892
|
+
const context = {
|
|
48893
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48894
|
+
operationID: "get-document",
|
|
48895
|
+
oAuth2Scopes: [],
|
|
48896
|
+
resolvedSecurity: requestSecurity,
|
|
48897
|
+
securitySource: client._options.authorization,
|
|
48898
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48899
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48900
|
+
};
|
|
48901
|
+
const requestRes = client._createRequest(context, {
|
|
48902
|
+
security: requestSecurity,
|
|
48903
|
+
method: "GET",
|
|
48904
|
+
baseURL: options?.serverURL,
|
|
48905
|
+
path,
|
|
48906
|
+
headers,
|
|
48907
|
+
body,
|
|
48908
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48909
|
+
}, options);
|
|
48910
|
+
if (!requestRes.ok) {
|
|
48911
|
+
return [requestRes, { status: "invalid" }];
|
|
48912
|
+
}
|
|
48913
|
+
const req = requestRes.value;
|
|
48914
|
+
const doResult = await client._do(req, {
|
|
48915
|
+
context,
|
|
48916
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
47457
48917
|
retryConfig: context.retryConfig,
|
|
47458
48918
|
retryCodes: context.retryCodes
|
|
47459
48919
|
});
|
|
@@ -47464,13 +48924,13 @@ async function $do38(client, request, options) {
|
|
|
47464
48924
|
const responseFields = {
|
|
47465
48925
|
HttpMeta: { Response: response, Request: req }
|
|
47466
48926
|
};
|
|
47467
|
-
const [result] = await match(json(200,
|
|
48927
|
+
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 });
|
|
47468
48928
|
if (!result.ok) {
|
|
47469
48929
|
return [result, { status: "complete", request: req, response }];
|
|
47470
48930
|
}
|
|
47471
48931
|
return [result, { status: "complete", request: req, response }];
|
|
47472
48932
|
}
|
|
47473
|
-
var
|
|
48933
|
+
var init_kycGetDocument = __esm(() => {
|
|
47474
48934
|
init_encodings();
|
|
47475
48935
|
init_matchers();
|
|
47476
48936
|
init_primitives();
|
|
@@ -47482,23 +48942,23 @@ var init_customersGetAddressDetail = __esm(() => {
|
|
|
47482
48942
|
init_async();
|
|
47483
48943
|
});
|
|
47484
48944
|
|
|
47485
|
-
// src/mcp-server/tools/
|
|
47486
|
-
var
|
|
47487
|
-
var
|
|
47488
|
-
|
|
48945
|
+
// src/mcp-server/tools/kycGetDocument.ts
|
|
48946
|
+
var args43, tool$kycGetDocument;
|
|
48947
|
+
var init_kycGetDocument2 = __esm(() => {
|
|
48948
|
+
init_kycGetDocument();
|
|
47489
48949
|
init_operations();
|
|
47490
48950
|
init_tools();
|
|
47491
|
-
|
|
47492
|
-
request:
|
|
48951
|
+
args43 = {
|
|
48952
|
+
request: GetDocumentRequest$inboundSchema
|
|
47493
48953
|
};
|
|
47494
|
-
tool$
|
|
47495
|
-
name: "
|
|
47496
|
-
description: `Retrieve
|
|
48954
|
+
tool$kycGetDocument = {
|
|
48955
|
+
name: "kyc-get-document",
|
|
48956
|
+
description: `Retrieve document detail
|
|
47497
48957
|
|
|
47498
|
-
Retrieve
|
|
47499
|
-
args:
|
|
47500
|
-
tool: async (client,
|
|
47501
|
-
const [result, apiCall] = await
|
|
48958
|
+
Retrieve document detail`,
|
|
48959
|
+
args: args43,
|
|
48960
|
+
tool: async (client, args44, ctx) => {
|
|
48961
|
+
const [result, apiCall] = await kycGetDocument(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47502
48962
|
if (!result.ok) {
|
|
47503
48963
|
return {
|
|
47504
48964
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47511,28 +48971,24 @@ Retrieve address`,
|
|
|
47511
48971
|
};
|
|
47512
48972
|
});
|
|
47513
48973
|
|
|
47514
|
-
// src/funcs/
|
|
47515
|
-
function
|
|
47516
|
-
return new APIPromise($
|
|
48974
|
+
// src/funcs/kycListDocuments.ts
|
|
48975
|
+
function kycListDocuments(client, request, options) {
|
|
48976
|
+
return new APIPromise($do45(client, request, options));
|
|
47517
48977
|
}
|
|
47518
|
-
async function $
|
|
47519
|
-
const parsed = safeParse(request, (value) =>
|
|
48978
|
+
async function $do45(client, request, options) {
|
|
48979
|
+
const parsed = safeParse(request, (value) => ListDocumentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47520
48980
|
if (!parsed.ok) {
|
|
47521
48981
|
return [parsed, { status: "invalid" }];
|
|
47522
48982
|
}
|
|
47523
48983
|
const payload = parsed.value;
|
|
47524
48984
|
const body = null;
|
|
47525
48985
|
const pathParams = {
|
|
47526
|
-
|
|
48986
|
+
id: encodeSimple("id", payload.id, {
|
|
47527
48987
|
explode: false,
|
|
47528
48988
|
charEncoding: "percent"
|
|
47529
48989
|
})
|
|
47530
48990
|
};
|
|
47531
|
-
const path = pathToFunc("/customers/{
|
|
47532
|
-
const query = encodeFormQuery({
|
|
47533
|
-
limit: payload.limit,
|
|
47534
|
-
page: payload.page
|
|
47535
|
-
});
|
|
48991
|
+
const path = pathToFunc("/customers/{id}/documents")(pathParams);
|
|
47536
48992
|
const headers = new Headers(compactMap({
|
|
47537
48993
|
Accept: "application/json"
|
|
47538
48994
|
}));
|
|
@@ -47541,7 +48997,7 @@ async function $do39(client, request, options) {
|
|
|
47541
48997
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47542
48998
|
const context = {
|
|
47543
48999
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47544
|
-
operationID: "list-
|
|
49000
|
+
operationID: "list-documents",
|
|
47545
49001
|
oAuth2Scopes: [],
|
|
47546
49002
|
resolvedSecurity: requestSecurity,
|
|
47547
49003
|
securitySource: client._options.authorization,
|
|
@@ -47554,7 +49010,6 @@ async function $do39(client, request, options) {
|
|
|
47554
49010
|
baseURL: options?.serverURL,
|
|
47555
49011
|
path,
|
|
47556
49012
|
headers,
|
|
47557
|
-
query,
|
|
47558
49013
|
body,
|
|
47559
49014
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47560
49015
|
}, options);
|
|
@@ -47564,7 +49019,7 @@ async function $do39(client, request, options) {
|
|
|
47564
49019
|
const req = requestRes.value;
|
|
47565
49020
|
const doResult = await client._do(req, {
|
|
47566
49021
|
context,
|
|
47567
|
-
errorCodes: ["4XX", "5XX"],
|
|
49022
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
47568
49023
|
retryConfig: context.retryConfig,
|
|
47569
49024
|
retryCodes: context.retryCodes
|
|
47570
49025
|
});
|
|
@@ -47572,40 +49027,44 @@ async function $do39(client, request, options) {
|
|
|
47572
49027
|
return [doResult, { status: "request-error", request: req }];
|
|
47573
49028
|
}
|
|
47574
49029
|
const response = doResult.value;
|
|
47575
|
-
const
|
|
49030
|
+
const responseFields = {
|
|
49031
|
+
HttpMeta: { Response: response, Request: req }
|
|
49032
|
+
};
|
|
49033
|
+
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 });
|
|
47576
49034
|
if (!result.ok) {
|
|
47577
49035
|
return [result, { status: "complete", request: req, response }];
|
|
47578
49036
|
}
|
|
47579
49037
|
return [result, { status: "complete", request: req, response }];
|
|
47580
49038
|
}
|
|
47581
|
-
var
|
|
49039
|
+
var init_kycListDocuments = __esm(() => {
|
|
47582
49040
|
init_encodings();
|
|
47583
49041
|
init_matchers();
|
|
47584
49042
|
init_primitives();
|
|
47585
49043
|
init_schemas();
|
|
47586
49044
|
init_security();
|
|
47587
49045
|
init_url();
|
|
49046
|
+
init_errors();
|
|
47588
49047
|
init_operations();
|
|
47589
49048
|
init_async();
|
|
47590
49049
|
});
|
|
47591
49050
|
|
|
47592
|
-
// src/mcp-server/tools/
|
|
47593
|
-
var
|
|
47594
|
-
var
|
|
47595
|
-
|
|
49051
|
+
// src/mcp-server/tools/kycListDocuments.ts
|
|
49052
|
+
var args44, tool$kycListDocuments;
|
|
49053
|
+
var init_kycListDocuments2 = __esm(() => {
|
|
49054
|
+
init_kycListDocuments();
|
|
47596
49055
|
init_operations();
|
|
47597
49056
|
init_tools();
|
|
47598
|
-
|
|
47599
|
-
request:
|
|
49057
|
+
args44 = {
|
|
49058
|
+
request: ListDocumentsRequest$inboundSchema
|
|
47600
49059
|
};
|
|
47601
|
-
tool$
|
|
47602
|
-
name: "
|
|
47603
|
-
description: `
|
|
49060
|
+
tool$kycListDocuments = {
|
|
49061
|
+
name: "kyc-list-documents",
|
|
49062
|
+
description: `List all documents
|
|
47604
49063
|
|
|
47605
|
-
|
|
47606
|
-
args:
|
|
47607
|
-
tool: async (client,
|
|
47608
|
-
const [result, apiCall] = await
|
|
49064
|
+
List all documents added by a particular customer.`,
|
|
49065
|
+
args: args44,
|
|
49066
|
+
tool: async (client, args45, ctx) => {
|
|
49067
|
+
const [result, apiCall] = await kycListDocuments(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47609
49068
|
if (!result.ok) {
|
|
47610
49069
|
return {
|
|
47611
49070
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47618,24 +49077,135 @@ Retrieve billing and shipping address of particular customer`,
|
|
|
47618
49077
|
};
|
|
47619
49078
|
});
|
|
47620
49079
|
|
|
47621
|
-
// src/funcs/
|
|
47622
|
-
function
|
|
47623
|
-
return new APIPromise($
|
|
49080
|
+
// src/funcs/kycListKycDocument.ts
|
|
49081
|
+
function kycListKycDocument(client, options) {
|
|
49082
|
+
return new APIPromise($do46(client, options));
|
|
47624
49083
|
}
|
|
47625
|
-
async function $
|
|
47626
|
-
const
|
|
49084
|
+
async function $do46(client, options) {
|
|
49085
|
+
const path = pathToFunc("/store/kyc-document")();
|
|
49086
|
+
const headers = new Headers(compactMap({
|
|
49087
|
+
Accept: "application/json"
|
|
49088
|
+
}));
|
|
49089
|
+
const secConfig = await extractSecurity(client._options.authorization);
|
|
49090
|
+
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
49091
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49092
|
+
const context = {
|
|
49093
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49094
|
+
operationID: "list-kyc-document",
|
|
49095
|
+
oAuth2Scopes: [],
|
|
49096
|
+
resolvedSecurity: requestSecurity,
|
|
49097
|
+
securitySource: client._options.authorization,
|
|
49098
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49099
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49100
|
+
};
|
|
49101
|
+
const requestRes = client._createRequest(context, {
|
|
49102
|
+
security: requestSecurity,
|
|
49103
|
+
method: "GET",
|
|
49104
|
+
baseURL: options?.serverURL,
|
|
49105
|
+
path,
|
|
49106
|
+
headers,
|
|
49107
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49108
|
+
}, options);
|
|
49109
|
+
if (!requestRes.ok) {
|
|
49110
|
+
return [requestRes, { status: "invalid" }];
|
|
49111
|
+
}
|
|
49112
|
+
const req = requestRes.value;
|
|
49113
|
+
const doResult = await client._do(req, {
|
|
49114
|
+
context,
|
|
49115
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
49116
|
+
retryConfig: context.retryConfig,
|
|
49117
|
+
retryCodes: context.retryCodes
|
|
49118
|
+
});
|
|
49119
|
+
if (!doResult.ok) {
|
|
49120
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49121
|
+
}
|
|
49122
|
+
const response = doResult.value;
|
|
49123
|
+
const responseFields = {
|
|
49124
|
+
HttpMeta: { Response: response, Request: req }
|
|
49125
|
+
};
|
|
49126
|
+
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 });
|
|
49127
|
+
if (!result.ok) {
|
|
49128
|
+
return [result, { status: "complete", request: req, response }];
|
|
49129
|
+
}
|
|
49130
|
+
return [result, { status: "complete", request: req, response }];
|
|
49131
|
+
}
|
|
49132
|
+
var init_kycListKycDocument = __esm(() => {
|
|
49133
|
+
init_matchers();
|
|
49134
|
+
init_primitives();
|
|
49135
|
+
init_security();
|
|
49136
|
+
init_url();
|
|
49137
|
+
init_errors();
|
|
49138
|
+
init_operations();
|
|
49139
|
+
init_async();
|
|
49140
|
+
});
|
|
49141
|
+
|
|
49142
|
+
// src/mcp-server/tools/kycListKycDocument.ts
|
|
49143
|
+
var tool$kycListKycDocument;
|
|
49144
|
+
var init_kycListKycDocument2 = __esm(() => {
|
|
49145
|
+
init_kycListKycDocument();
|
|
49146
|
+
init_tools();
|
|
49147
|
+
tool$kycListKycDocument = {
|
|
49148
|
+
name: "kyc-list-kyc-document",
|
|
49149
|
+
description: `List all kyc documents
|
|
49150
|
+
|
|
49151
|
+
List all kyc documents added for a particular store.`,
|
|
49152
|
+
tool: async (client, ctx) => {
|
|
49153
|
+
const [result, apiCall] = await kycListKycDocument(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49154
|
+
if (!result.ok) {
|
|
49155
|
+
return {
|
|
49156
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49157
|
+
isError: true
|
|
49158
|
+
};
|
|
49159
|
+
}
|
|
49160
|
+
const value = result.value;
|
|
49161
|
+
return formatResult(value, apiCall);
|
|
49162
|
+
}
|
|
49163
|
+
};
|
|
49164
|
+
});
|
|
49165
|
+
|
|
49166
|
+
// src/funcs/kycUpdateDocument.ts
|
|
49167
|
+
function kycUpdateDocument(client, request, options) {
|
|
49168
|
+
return new APIPromise($do47(client, request, options));
|
|
49169
|
+
}
|
|
49170
|
+
async function $do47(client, request, options) {
|
|
49171
|
+
const parsed = safeParse(request, (value) => UpdateDocumentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47627
49172
|
if (!parsed.ok) {
|
|
47628
49173
|
return [parsed, { status: "invalid" }];
|
|
47629
49174
|
}
|
|
47630
49175
|
const payload = parsed.value;
|
|
47631
|
-
const body =
|
|
49176
|
+
const body = new FormData;
|
|
49177
|
+
if (payload.UpdateDocument != null) {
|
|
49178
|
+
appendForm(body, "document_number", payload.UpdateDocument.document_number);
|
|
49179
|
+
appendForm(body, "kyc_document_id", payload.UpdateDocument.kyc_document_id);
|
|
49180
|
+
appendForm(body, "modified_reason", payload.UpdateDocument.modified_reason);
|
|
49181
|
+
if (payload.UpdateDocument.file !== undefined) {
|
|
49182
|
+
if (isBlobLike(payload.UpdateDocument.file)) {
|
|
49183
|
+
appendForm(body, "file", payload.UpdateDocument.file);
|
|
49184
|
+
} else if (isReadableStream(payload.UpdateDocument.file.content)) {
|
|
49185
|
+
const buffer = await readableStreamToArrayBuffer(payload.UpdateDocument.file.content);
|
|
49186
|
+
const blob = new Blob([buffer], { type: "application/octet-stream" });
|
|
49187
|
+
appendForm(body, "file", blob);
|
|
49188
|
+
} else {
|
|
49189
|
+
appendForm(body, "file", new Blob([payload.UpdateDocument.file.content], {
|
|
49190
|
+
type: "application/octet-stream"
|
|
49191
|
+
}), payload.UpdateDocument.file.fileName);
|
|
49192
|
+
}
|
|
49193
|
+
}
|
|
49194
|
+
if (payload.UpdateDocument.note !== undefined) {
|
|
49195
|
+
appendForm(body, "note", payload.UpdateDocument.note);
|
|
49196
|
+
}
|
|
49197
|
+
}
|
|
47632
49198
|
const pathParams = {
|
|
47633
|
-
|
|
49199
|
+
document_id: encodeSimple("document_id", payload.document_id, {
|
|
49200
|
+
explode: false,
|
|
49201
|
+
charEncoding: "percent"
|
|
49202
|
+
}),
|
|
49203
|
+
id: encodeSimple("id", payload.id, {
|
|
47634
49204
|
explode: false,
|
|
47635
49205
|
charEncoding: "percent"
|
|
47636
49206
|
})
|
|
47637
49207
|
};
|
|
47638
|
-
const path = pathToFunc("/customers/{
|
|
49208
|
+
const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
|
|
47639
49209
|
const headers = new Headers(compactMap({
|
|
47640
49210
|
Accept: "application/json"
|
|
47641
49211
|
}));
|
|
@@ -47644,7 +49214,7 @@ async function $do40(client, request, options) {
|
|
|
47644
49214
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47645
49215
|
const context = {
|
|
47646
49216
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47647
|
-
operationID: "
|
|
49217
|
+
operationID: "update-document",
|
|
47648
49218
|
oAuth2Scopes: [],
|
|
47649
49219
|
resolvedSecurity: requestSecurity,
|
|
47650
49220
|
securitySource: client._options.authorization,
|
|
@@ -47653,7 +49223,7 @@ async function $do40(client, request, options) {
|
|
|
47653
49223
|
};
|
|
47654
49224
|
const requestRes = client._createRequest(context, {
|
|
47655
49225
|
security: requestSecurity,
|
|
47656
|
-
method: "
|
|
49226
|
+
method: "PUT",
|
|
47657
49227
|
baseURL: options?.serverURL,
|
|
47658
49228
|
path,
|
|
47659
49229
|
headers,
|
|
@@ -47666,7 +49236,7 @@ async function $do40(client, request, options) {
|
|
|
47666
49236
|
const req = requestRes.value;
|
|
47667
49237
|
const doResult = await client._do(req, {
|
|
47668
49238
|
context,
|
|
47669
|
-
errorCodes: ["4XX", "5XX"],
|
|
49239
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
47670
49240
|
retryConfig: context.retryConfig,
|
|
47671
49241
|
retryCodes: context.retryCodes
|
|
47672
49242
|
});
|
|
@@ -47674,40 +49244,45 @@ async function $do40(client, request, options) {
|
|
|
47674
49244
|
return [doResult, { status: "request-error", request: req }];
|
|
47675
49245
|
}
|
|
47676
49246
|
const response = doResult.value;
|
|
47677
|
-
const
|
|
49247
|
+
const responseFields = {
|
|
49248
|
+
HttpMeta: { Response: response, Request: req }
|
|
49249
|
+
};
|
|
49250
|
+
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 });
|
|
47678
49251
|
if (!result.ok) {
|
|
47679
49252
|
return [result, { status: "complete", request: req, response }];
|
|
47680
49253
|
}
|
|
47681
49254
|
return [result, { status: "complete", request: req, response }];
|
|
47682
49255
|
}
|
|
47683
|
-
var
|
|
49256
|
+
var init_kycUpdateDocument = __esm(() => {
|
|
47684
49257
|
init_encodings();
|
|
47685
49258
|
init_matchers();
|
|
47686
49259
|
init_primitives();
|
|
47687
49260
|
init_schemas();
|
|
47688
49261
|
init_security();
|
|
47689
49262
|
init_url();
|
|
49263
|
+
init_errors();
|
|
47690
49264
|
init_operations();
|
|
47691
49265
|
init_async();
|
|
49266
|
+
init_blobs();
|
|
47692
49267
|
});
|
|
47693
49268
|
|
|
47694
|
-
// src/mcp-server/tools/
|
|
47695
|
-
var
|
|
47696
|
-
var
|
|
47697
|
-
|
|
49269
|
+
// src/mcp-server/tools/kycUpdateDocument.ts
|
|
49270
|
+
var args45, tool$kycUpdateDocument;
|
|
49271
|
+
var init_kycUpdateDocument2 = __esm(() => {
|
|
49272
|
+
init_kycUpdateDocument();
|
|
47698
49273
|
init_operations();
|
|
47699
49274
|
init_tools();
|
|
47700
|
-
|
|
47701
|
-
request:
|
|
49275
|
+
args45 = {
|
|
49276
|
+
request: UpdateDocumentRequest$inboundSchema
|
|
47702
49277
|
};
|
|
47703
|
-
tool$
|
|
47704
|
-
name: "
|
|
47705
|
-
description: `
|
|
49278
|
+
tool$kycUpdateDocument = {
|
|
49279
|
+
name: "kyc-update-document",
|
|
49280
|
+
description: `Update document detail
|
|
47706
49281
|
|
|
47707
|
-
|
|
47708
|
-
args:
|
|
47709
|
-
tool: async (client,
|
|
47710
|
-
const [result, apiCall] = await
|
|
49282
|
+
Update document detail`,
|
|
49283
|
+
args: args45,
|
|
49284
|
+
tool: async (client, args46, ctx) => {
|
|
49285
|
+
const [result, apiCall] = await kycUpdateDocument(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47711
49286
|
if (!result.ok) {
|
|
47712
49287
|
return {
|
|
47713
49288
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47720,28 +49295,24 @@ Retrieve all reviews`,
|
|
|
47720
49295
|
};
|
|
47721
49296
|
});
|
|
47722
49297
|
|
|
47723
|
-
// src/funcs/
|
|
47724
|
-
function
|
|
47725
|
-
return new APIPromise($
|
|
49298
|
+
// src/funcs/kycVerifyDocument.ts
|
|
49299
|
+
function kycVerifyDocument(client, request, options) {
|
|
49300
|
+
return new APIPromise($do48(client, request, options));
|
|
47726
49301
|
}
|
|
47727
|
-
async function $
|
|
47728
|
-
const parsed = safeParse(request, (value) =>
|
|
49302
|
+
async function $do48(client, request, options) {
|
|
49303
|
+
const parsed = safeParse(request, (value) => VerifyDocumentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47729
49304
|
if (!parsed.ok) {
|
|
47730
49305
|
return [parsed, { status: "invalid" }];
|
|
47731
49306
|
}
|
|
47732
49307
|
const payload = parsed.value;
|
|
47733
49308
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
47734
49309
|
const pathParams = {
|
|
47735
|
-
|
|
47736
|
-
explode: false,
|
|
47737
|
-
charEncoding: "percent"
|
|
47738
|
-
}),
|
|
47739
|
-
user_id: encodeSimple("user_id", payload.user_id, {
|
|
49310
|
+
id: encodeSimple("id", payload.id, {
|
|
47740
49311
|
explode: false,
|
|
47741
49312
|
charEncoding: "percent"
|
|
47742
49313
|
})
|
|
47743
49314
|
};
|
|
47744
|
-
const path = pathToFunc("/customers/{
|
|
49315
|
+
const path = pathToFunc("/customers/{id}/documents/verify")(pathParams);
|
|
47745
49316
|
const headers = new Headers(compactMap({
|
|
47746
49317
|
"Content-Type": "application/json",
|
|
47747
49318
|
Accept: "application/json"
|
|
@@ -47751,7 +49322,7 @@ async function $do41(client, request, options) {
|
|
|
47751
49322
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47752
49323
|
const context = {
|
|
47753
49324
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47754
|
-
operationID: "
|
|
49325
|
+
operationID: "verify-document",
|
|
47755
49326
|
oAuth2Scopes: [],
|
|
47756
49327
|
resolvedSecurity: requestSecurity,
|
|
47757
49328
|
securitySource: client._options.authorization,
|
|
@@ -47760,7 +49331,7 @@ async function $do41(client, request, options) {
|
|
|
47760
49331
|
};
|
|
47761
49332
|
const requestRes = client._createRequest(context, {
|
|
47762
49333
|
security: requestSecurity,
|
|
47763
|
-
method: "
|
|
49334
|
+
method: "POST",
|
|
47764
49335
|
baseURL: options?.serverURL,
|
|
47765
49336
|
path,
|
|
47766
49337
|
headers,
|
|
@@ -47784,13 +49355,13 @@ async function $do41(client, request, options) {
|
|
|
47784
49355
|
const responseFields = {
|
|
47785
49356
|
HttpMeta: { Response: response, Request: req }
|
|
47786
49357
|
};
|
|
47787
|
-
const [result] = await match(json(200,
|
|
49358
|
+
const [result] = await match(json(200, VerifyDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
47788
49359
|
if (!result.ok) {
|
|
47789
49360
|
return [result, { status: "complete", request: req, response }];
|
|
47790
49361
|
}
|
|
47791
49362
|
return [result, { status: "complete", request: req, response }];
|
|
47792
49363
|
}
|
|
47793
|
-
var
|
|
49364
|
+
var init_kycVerifyDocument = __esm(() => {
|
|
47794
49365
|
init_encodings();
|
|
47795
49366
|
init_matchers();
|
|
47796
49367
|
init_primitives();
|
|
@@ -47802,23 +49373,23 @@ var init_customersUpdateAddressDetail = __esm(() => {
|
|
|
47802
49373
|
init_async();
|
|
47803
49374
|
});
|
|
47804
49375
|
|
|
47805
|
-
// src/mcp-server/tools/
|
|
47806
|
-
var
|
|
47807
|
-
var
|
|
47808
|
-
|
|
49376
|
+
// src/mcp-server/tools/kycVerifyDocument.ts
|
|
49377
|
+
var args46, tool$kycVerifyDocument;
|
|
49378
|
+
var init_kycVerifyDocument2 = __esm(() => {
|
|
49379
|
+
init_kycVerifyDocument();
|
|
47809
49380
|
init_operations();
|
|
47810
49381
|
init_tools();
|
|
47811
|
-
|
|
47812
|
-
request:
|
|
49382
|
+
args46 = {
|
|
49383
|
+
request: VerifyDocumentRequest$inboundSchema
|
|
47813
49384
|
};
|
|
47814
|
-
tool$
|
|
47815
|
-
name: "
|
|
47816
|
-
description: `
|
|
49385
|
+
tool$kycVerifyDocument = {
|
|
49386
|
+
name: "kyc-verify-document",
|
|
49387
|
+
description: `Verify document
|
|
47817
49388
|
|
|
47818
|
-
|
|
47819
|
-
args:
|
|
47820
|
-
tool: async (client,
|
|
47821
|
-
const [result, apiCall] = await
|
|
49389
|
+
Verify document number before saving.`,
|
|
49390
|
+
args: args46,
|
|
49391
|
+
tool: async (client, args47, ctx) => {
|
|
49392
|
+
const [result, apiCall] = await kycVerifyDocument(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47822
49393
|
if (!result.ok) {
|
|
47823
49394
|
return {
|
|
47824
49395
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47833,9 +49404,9 @@ Update address`,
|
|
|
47833
49404
|
|
|
47834
49405
|
// src/funcs/ordersCancelOrder.ts
|
|
47835
49406
|
function ordersCancelOrder(client, request, options) {
|
|
47836
|
-
return new APIPromise($
|
|
49407
|
+
return new APIPromise($do49(client, request, options));
|
|
47837
49408
|
}
|
|
47838
|
-
async function $
|
|
49409
|
+
async function $do49(client, request, options) {
|
|
47839
49410
|
const parsed = safeParse(request, (value) => CancelOrderRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47840
49411
|
if (!parsed.ok) {
|
|
47841
49412
|
return [parsed, { status: "invalid" }];
|
|
@@ -47910,12 +49481,12 @@ var init_ordersCancelOrder = __esm(() => {
|
|
|
47910
49481
|
});
|
|
47911
49482
|
|
|
47912
49483
|
// src/mcp-server/tools/ordersCancelOrder.ts
|
|
47913
|
-
var
|
|
49484
|
+
var args47, tool$ordersCancelOrder;
|
|
47914
49485
|
var init_ordersCancelOrder2 = __esm(() => {
|
|
47915
49486
|
init_ordersCancelOrder();
|
|
47916
49487
|
init_operations();
|
|
47917
49488
|
init_tools();
|
|
47918
|
-
|
|
49489
|
+
args47 = {
|
|
47919
49490
|
request: CancelOrderRequest$inboundSchema
|
|
47920
49491
|
};
|
|
47921
49492
|
tool$ordersCancelOrder = {
|
|
@@ -47923,9 +49494,9 @@ var init_ordersCancelOrder2 = __esm(() => {
|
|
|
47923
49494
|
description: `Cancel order
|
|
47924
49495
|
|
|
47925
49496
|
Order cancellation`,
|
|
47926
|
-
args:
|
|
47927
|
-
tool: async (client,
|
|
47928
|
-
const [result, apiCall] = await ordersCancelOrder(client,
|
|
49497
|
+
args: args47,
|
|
49498
|
+
tool: async (client, args48, ctx) => {
|
|
49499
|
+
const [result, apiCall] = await ordersCancelOrder(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47929
49500
|
if (!result.ok) {
|
|
47930
49501
|
return {
|
|
47931
49502
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47940,9 +49511,9 @@ Order cancellation`,
|
|
|
47940
49511
|
|
|
47941
49512
|
// src/funcs/ordersCreateOrder.ts
|
|
47942
49513
|
function ordersCreateOrder(client, request, options) {
|
|
47943
|
-
return new APIPromise($
|
|
49514
|
+
return new APIPromise($do50(client, request, options));
|
|
47944
49515
|
}
|
|
47945
|
-
async function $
|
|
49516
|
+
async function $do50(client, request, options) {
|
|
47946
49517
|
const parsed = safeParse(request, (value) => CreateOrderRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
47947
49518
|
if (!parsed.ok) {
|
|
47948
49519
|
return [parsed, { status: "invalid" }];
|
|
@@ -48011,12 +49582,12 @@ var init_ordersCreateOrder = __esm(() => {
|
|
|
48011
49582
|
});
|
|
48012
49583
|
|
|
48013
49584
|
// src/mcp-server/tools/ordersCreateOrder.ts
|
|
48014
|
-
var
|
|
49585
|
+
var args48, tool$ordersCreateOrder;
|
|
48015
49586
|
var init_ordersCreateOrder2 = __esm(() => {
|
|
48016
49587
|
init_ordersCreateOrder();
|
|
48017
49588
|
init_operations();
|
|
48018
49589
|
init_tools();
|
|
48019
|
-
|
|
49590
|
+
args48 = {
|
|
48020
49591
|
request: CreateOrderRequestBody$inboundSchema
|
|
48021
49592
|
};
|
|
48022
49593
|
tool$ordersCreateOrder = {
|
|
@@ -48024,9 +49595,9 @@ var init_ordersCreateOrder2 = __esm(() => {
|
|
|
48024
49595
|
description: `Create order
|
|
48025
49596
|
|
|
48026
49597
|
Create new order`,
|
|
48027
|
-
args:
|
|
48028
|
-
tool: async (client,
|
|
48029
|
-
const [result, apiCall] = await ordersCreateOrder(client,
|
|
49598
|
+
args: args48,
|
|
49599
|
+
tool: async (client, args49, ctx) => {
|
|
49600
|
+
const [result, apiCall] = await ordersCreateOrder(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48030
49601
|
if (!result.ok) {
|
|
48031
49602
|
return {
|
|
48032
49603
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48041,9 +49612,9 @@ Create new order`,
|
|
|
48041
49612
|
|
|
48042
49613
|
// src/funcs/ordersGetOrderDetail.ts
|
|
48043
49614
|
function ordersGetOrderDetail(client, request, options) {
|
|
48044
|
-
return new APIPromise($
|
|
49615
|
+
return new APIPromise($do51(client, request, options));
|
|
48045
49616
|
}
|
|
48046
|
-
async function $
|
|
49617
|
+
async function $do51(client, request, options) {
|
|
48047
49618
|
const parsed = safeParse(request, (value) => GetOrderDetailRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48048
49619
|
if (!parsed.ok) {
|
|
48049
49620
|
return [parsed, { status: "invalid" }];
|
|
@@ -48117,12 +49688,12 @@ var init_ordersGetOrderDetail = __esm(() => {
|
|
|
48117
49688
|
});
|
|
48118
49689
|
|
|
48119
49690
|
// src/mcp-server/tools/ordersGetOrderDetail.ts
|
|
48120
|
-
var
|
|
49691
|
+
var args49, tool$ordersGetOrderDetail;
|
|
48121
49692
|
var init_ordersGetOrderDetail2 = __esm(() => {
|
|
48122
49693
|
init_ordersGetOrderDetail();
|
|
48123
49694
|
init_operations();
|
|
48124
49695
|
init_tools();
|
|
48125
|
-
|
|
49696
|
+
args49 = {
|
|
48126
49697
|
request: GetOrderDetailRequest$inboundSchema
|
|
48127
49698
|
};
|
|
48128
49699
|
tool$ordersGetOrderDetail = {
|
|
@@ -48130,9 +49701,9 @@ var init_ordersGetOrderDetail2 = __esm(() => {
|
|
|
48130
49701
|
description: `Retrieve order detail
|
|
48131
49702
|
|
|
48132
49703
|
view particular order details`,
|
|
48133
|
-
args:
|
|
48134
|
-
tool: async (client,
|
|
48135
|
-
const [result, apiCall] = await ordersGetOrderDetail(client,
|
|
49704
|
+
args: args49,
|
|
49705
|
+
tool: async (client, args50, ctx) => {
|
|
49706
|
+
const [result, apiCall] = await ordersGetOrderDetail(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48136
49707
|
if (!result.ok) {
|
|
48137
49708
|
return {
|
|
48138
49709
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48147,9 +49718,9 @@ view particular order details`,
|
|
|
48147
49718
|
|
|
48148
49719
|
// src/funcs/ordersGetPaymentStatus.ts
|
|
48149
49720
|
function ordersGetPaymentStatus(client, request, options) {
|
|
48150
|
-
return new APIPromise($
|
|
49721
|
+
return new APIPromise($do52(client, request, options));
|
|
48151
49722
|
}
|
|
48152
|
-
async function $
|
|
49723
|
+
async function $do52(client, request, options) {
|
|
48153
49724
|
const parsed = safeParse(request, (value) => GetPaymentStatusRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48154
49725
|
if (!parsed.ok) {
|
|
48155
49726
|
return [parsed, { status: "invalid" }];
|
|
@@ -48219,12 +49790,12 @@ var init_ordersGetPaymentStatus = __esm(() => {
|
|
|
48219
49790
|
});
|
|
48220
49791
|
|
|
48221
49792
|
// src/mcp-server/tools/ordersGetPaymentStatus.ts
|
|
48222
|
-
var
|
|
49793
|
+
var args50, tool$ordersGetPaymentStatus;
|
|
48223
49794
|
var init_ordersGetPaymentStatus2 = __esm(() => {
|
|
48224
49795
|
init_ordersGetPaymentStatus();
|
|
48225
49796
|
init_operations();
|
|
48226
49797
|
init_tools();
|
|
48227
|
-
|
|
49798
|
+
args50 = {
|
|
48228
49799
|
request: GetPaymentStatusRequest$inboundSchema
|
|
48229
49800
|
};
|
|
48230
49801
|
tool$ordersGetPaymentStatus = {
|
|
@@ -48232,9 +49803,9 @@ var init_ordersGetPaymentStatus2 = __esm(() => {
|
|
|
48232
49803
|
description: `Retrieve payment status
|
|
48233
49804
|
|
|
48234
49805
|
Retrieve payment status of a paricular order.`,
|
|
48235
|
-
args:
|
|
48236
|
-
tool: async (client,
|
|
48237
|
-
const [result, apiCall] = await ordersGetPaymentStatus(client,
|
|
49806
|
+
args: args50,
|
|
49807
|
+
tool: async (client, args51, ctx) => {
|
|
49808
|
+
const [result, apiCall] = await ordersGetPaymentStatus(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48238
49809
|
if (!result.ok) {
|
|
48239
49810
|
return {
|
|
48240
49811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48249,9 +49820,9 @@ Retrieve payment status of a paricular order.`,
|
|
|
48249
49820
|
|
|
48250
49821
|
// src/funcs/ordersListOrders.ts
|
|
48251
49822
|
function ordersListOrders(client, request, options) {
|
|
48252
|
-
return new APIPromise($
|
|
49823
|
+
return new APIPromise($do53(client, request, options));
|
|
48253
49824
|
}
|
|
48254
|
-
async function $
|
|
49825
|
+
async function $do53(client, request, options) {
|
|
48255
49826
|
const parsed = safeParse(request, (value) => ListOrdersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48256
49827
|
if (!parsed.ok) {
|
|
48257
49828
|
return [parsed, { status: "invalid" }];
|
|
@@ -48323,12 +49894,12 @@ var init_ordersListOrders = __esm(() => {
|
|
|
48323
49894
|
});
|
|
48324
49895
|
|
|
48325
49896
|
// src/mcp-server/tools/ordersListOrders.ts
|
|
48326
|
-
var
|
|
49897
|
+
var args51, tool$ordersListOrders;
|
|
48327
49898
|
var init_ordersListOrders2 = __esm(() => {
|
|
48328
49899
|
init_ordersListOrders();
|
|
48329
49900
|
init_operations();
|
|
48330
49901
|
init_tools();
|
|
48331
|
-
|
|
49902
|
+
args51 = {
|
|
48332
49903
|
request: ListOrdersRequest$inboundSchema
|
|
48333
49904
|
};
|
|
48334
49905
|
tool$ordersListOrders = {
|
|
@@ -48336,9 +49907,9 @@ var init_ordersListOrders2 = __esm(() => {
|
|
|
48336
49907
|
description: `Retrieve all orders
|
|
48337
49908
|
|
|
48338
49909
|
list customers all orders`,
|
|
48339
|
-
args:
|
|
48340
|
-
tool: async (client,
|
|
48341
|
-
const [result, apiCall] = await ordersListOrders(client,
|
|
49910
|
+
args: args51,
|
|
49911
|
+
tool: async (client, args52, ctx) => {
|
|
49912
|
+
const [result, apiCall] = await ordersListOrders(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48342
49913
|
if (!result.ok) {
|
|
48343
49914
|
return {
|
|
48344
49915
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48353,9 +49924,9 @@ list customers all orders`,
|
|
|
48353
49924
|
|
|
48354
49925
|
// src/funcs/ordersListOrderShipments.ts
|
|
48355
49926
|
function ordersListOrderShipments(client, request, options) {
|
|
48356
|
-
return new APIPromise($
|
|
49927
|
+
return new APIPromise($do54(client, request, options));
|
|
48357
49928
|
}
|
|
48358
|
-
async function $
|
|
49929
|
+
async function $do54(client, request, options) {
|
|
48359
49930
|
const parsed = safeParse(request, (value) => ListOrderShipmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48360
49931
|
if (!parsed.ok) {
|
|
48361
49932
|
return [parsed, { status: "invalid" }];
|
|
@@ -48429,12 +50000,12 @@ var init_ordersListOrderShipments = __esm(() => {
|
|
|
48429
50000
|
});
|
|
48430
50001
|
|
|
48431
50002
|
// src/mcp-server/tools/ordersListOrderShipments.ts
|
|
48432
|
-
var
|
|
50003
|
+
var args52, tool$ordersListOrderShipments;
|
|
48433
50004
|
var init_ordersListOrderShipments2 = __esm(() => {
|
|
48434
50005
|
init_ordersListOrderShipments();
|
|
48435
50006
|
init_operations();
|
|
48436
50007
|
init_tools();
|
|
48437
|
-
|
|
50008
|
+
args52 = {
|
|
48438
50009
|
request: ListOrderShipmentsRequest$inboundSchema
|
|
48439
50010
|
};
|
|
48440
50011
|
tool$ordersListOrderShipments = {
|
|
@@ -48442,9 +50013,9 @@ var init_ordersListOrderShipments2 = __esm(() => {
|
|
|
48442
50013
|
description: `Retrieve order shipments
|
|
48443
50014
|
|
|
48444
50015
|
Retrieve order shipments`,
|
|
48445
|
-
args:
|
|
48446
|
-
tool: async (client,
|
|
48447
|
-
const [result, apiCall] = await ordersListOrderShipments(client,
|
|
50016
|
+
args: args52,
|
|
50017
|
+
tool: async (client, args53, ctx) => {
|
|
50018
|
+
const [result, apiCall] = await ordersListOrderShipments(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48448
50019
|
if (!result.ok) {
|
|
48449
50020
|
return {
|
|
48450
50021
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48459,9 +50030,9 @@ Retrieve order shipments`,
|
|
|
48459
50030
|
|
|
48460
50031
|
// src/funcs/ordersRetryOrderPayment.ts
|
|
48461
50032
|
function ordersRetryOrderPayment(client, request, options) {
|
|
48462
|
-
return new APIPromise($
|
|
50033
|
+
return new APIPromise($do55(client, request, options));
|
|
48463
50034
|
}
|
|
48464
|
-
async function $
|
|
50035
|
+
async function $do55(client, request, options) {
|
|
48465
50036
|
const parsed = safeParse(request, (value) => RetryOrderPaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48466
50037
|
if (!parsed.ok) {
|
|
48467
50038
|
return [parsed, { status: "invalid" }];
|
|
@@ -48536,12 +50107,12 @@ var init_ordersRetryOrderPayment = __esm(() => {
|
|
|
48536
50107
|
});
|
|
48537
50108
|
|
|
48538
50109
|
// src/mcp-server/tools/ordersRetryOrderPayment.ts
|
|
48539
|
-
var
|
|
50110
|
+
var args53, tool$ordersRetryOrderPayment;
|
|
48540
50111
|
var init_ordersRetryOrderPayment2 = __esm(() => {
|
|
48541
50112
|
init_ordersRetryOrderPayment();
|
|
48542
50113
|
init_operations();
|
|
48543
50114
|
init_tools();
|
|
48544
|
-
|
|
50115
|
+
args53 = {
|
|
48545
50116
|
request: RetryOrderPaymentRequest$inboundSchema
|
|
48546
50117
|
};
|
|
48547
50118
|
tool$ordersRetryOrderPayment = {
|
|
@@ -48549,9 +50120,9 @@ var init_ordersRetryOrderPayment2 = __esm(() => {
|
|
|
48549
50120
|
description: `Retry payment
|
|
48550
50121
|
|
|
48551
50122
|
To generate new payment request if first payment request is failed or expired. Retry payment request can be made after 15 mins of last request or immediately after last payment request is marked as failed.`,
|
|
48552
|
-
args:
|
|
48553
|
-
tool: async (client,
|
|
48554
|
-
const [result, apiCall] = await ordersRetryOrderPayment(client,
|
|
50123
|
+
args: args53,
|
|
50124
|
+
tool: async (client, args54, ctx) => {
|
|
50125
|
+
const [result, apiCall] = await ordersRetryOrderPayment(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48555
50126
|
if (!result.ok) {
|
|
48556
50127
|
return {
|
|
48557
50128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48566,9 +50137,9 @@ To generate new payment request if first payment request is failed or expired. R
|
|
|
48566
50137
|
|
|
48567
50138
|
// src/funcs/shippingCheckDeliveryAvailability.ts
|
|
48568
50139
|
function shippingCheckDeliveryAvailability(client, request, options) {
|
|
48569
|
-
return new APIPromise($
|
|
50140
|
+
return new APIPromise($do56(client, request, options));
|
|
48570
50141
|
}
|
|
48571
|
-
async function $
|
|
50142
|
+
async function $do56(client, request, options) {
|
|
48572
50143
|
const parsed = safeParse(request, (value) => CheckDeliveryAvailabilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48573
50144
|
if (!parsed.ok) {
|
|
48574
50145
|
return [parsed, { status: "invalid" }];
|
|
@@ -48642,12 +50213,12 @@ var init_shippingCheckDeliveryAvailability = __esm(() => {
|
|
|
48642
50213
|
});
|
|
48643
50214
|
|
|
48644
50215
|
// src/mcp-server/tools/shippingCheckDeliveryAvailability.ts
|
|
48645
|
-
var
|
|
50216
|
+
var args54, tool$shippingCheckDeliveryAvailability;
|
|
48646
50217
|
var init_shippingCheckDeliveryAvailability2 = __esm(() => {
|
|
48647
50218
|
init_shippingCheckDeliveryAvailability();
|
|
48648
50219
|
init_operations();
|
|
48649
50220
|
init_tools();
|
|
48650
|
-
|
|
50221
|
+
args54 = {
|
|
48651
50222
|
request: CheckDeliveryAvailabilityRequest$inboundSchema
|
|
48652
50223
|
};
|
|
48653
50224
|
tool$shippingCheckDeliveryAvailability = {
|
|
@@ -48655,9 +50226,9 @@ var init_shippingCheckDeliveryAvailability2 = __esm(() => {
|
|
|
48655
50226
|
description: `Check pincode deliverability
|
|
48656
50227
|
|
|
48657
50228
|
Check shipment delivery availability in an area by pincode`,
|
|
48658
|
-
args:
|
|
48659
|
-
tool: async (client,
|
|
48660
|
-
const [result, apiCall] = await shippingCheckDeliveryAvailability(client,
|
|
50229
|
+
args: args54,
|
|
50230
|
+
tool: async (client, args55, ctx) => {
|
|
50231
|
+
const [result, apiCall] = await shippingCheckDeliveryAvailability(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48661
50232
|
if (!result.ok) {
|
|
48662
50233
|
return {
|
|
48663
50234
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48674,7 +50245,7 @@ Check shipment delivery availability in an area by pincode`,
|
|
|
48674
50245
|
function createMCPServer(deps) {
|
|
48675
50246
|
const server = new McpServer({
|
|
48676
50247
|
name: "CeStorefront",
|
|
48677
|
-
version: "0.
|
|
50248
|
+
version: "0.9.1"
|
|
48678
50249
|
});
|
|
48679
50250
|
const client = new CeStorefrontCore({
|
|
48680
50251
|
authorization: deps.authorization,
|
|
@@ -48682,7 +50253,7 @@ function createMCPServer(deps) {
|
|
|
48682
50253
|
server: deps.server,
|
|
48683
50254
|
storeId: deps.storeId
|
|
48684
50255
|
});
|
|
48685
|
-
const scopes = new Set(deps.scopes
|
|
50256
|
+
const scopes = new Set(deps.scopes);
|
|
48686
50257
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
48687
50258
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
48688
50259
|
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
@@ -48715,6 +50286,13 @@ function createMCPServer(deps) {
|
|
|
48715
50286
|
tool(tool$customersUpdateAddressDetail);
|
|
48716
50287
|
tool(tool$customersDeleteAddress);
|
|
48717
50288
|
tool(tool$customersListUserReviews);
|
|
50289
|
+
tool(tool$kycListKycDocument);
|
|
50290
|
+
tool(tool$kycListDocuments);
|
|
50291
|
+
tool(tool$kycCreateDocument);
|
|
50292
|
+
tool(tool$kycGetDocument);
|
|
50293
|
+
tool(tool$kycUpdateDocument);
|
|
50294
|
+
tool(tool$kycDeleteDocument);
|
|
50295
|
+
tool(tool$kycVerifyDocument);
|
|
48718
50296
|
tool(tool$ordersCreateOrder);
|
|
48719
50297
|
tool(tool$ordersListOrders);
|
|
48720
50298
|
tool(tool$ordersGetOrderDetail);
|
|
@@ -48744,7 +50322,6 @@ var init_server2 = __esm(() => {
|
|
|
48744
50322
|
init_mcp();
|
|
48745
50323
|
init_core();
|
|
48746
50324
|
init_resources();
|
|
48747
|
-
init_scopes();
|
|
48748
50325
|
init_tools();
|
|
48749
50326
|
init_authCheckVerificationStatus2();
|
|
48750
50327
|
init_authCreateNotificationPreferences2();
|
|
@@ -48787,6 +50364,13 @@ var init_server2 = __esm(() => {
|
|
|
48787
50364
|
init_customersListAddresses2();
|
|
48788
50365
|
init_customersListUserReviews2();
|
|
48789
50366
|
init_customersUpdateAddressDetail2();
|
|
50367
|
+
init_kycCreateDocument2();
|
|
50368
|
+
init_kycDeleteDocument2();
|
|
50369
|
+
init_kycGetDocument2();
|
|
50370
|
+
init_kycListDocuments2();
|
|
50371
|
+
init_kycListKycDocument2();
|
|
50372
|
+
init_kycUpdateDocument2();
|
|
50373
|
+
init_kycVerifyDocument2();
|
|
48790
50374
|
init_ordersCancelOrder2();
|
|
48791
50375
|
init_ordersCreateOrder2();
|
|
48792
50376
|
init_ordersGetOrderDetail2();
|
|
@@ -49882,7 +51466,11 @@ function buildContext(process2) {
|
|
|
49882
51466
|
init_lib();
|
|
49883
51467
|
init_config();
|
|
49884
51468
|
init_console_logger();
|
|
49885
|
-
|
|
51469
|
+
|
|
51470
|
+
// src/mcp-server/scopes.ts
|
|
51471
|
+
var mcpScopes = [];
|
|
51472
|
+
|
|
51473
|
+
// src/mcp-server/cli/start/command.ts
|
|
49886
51474
|
var startCommand = tn({
|
|
49887
51475
|
loader: async () => {
|
|
49888
51476
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -49993,7 +51581,7 @@ var routes = rn({
|
|
|
49993
51581
|
var app = Ve(routes, {
|
|
49994
51582
|
name: "mcp",
|
|
49995
51583
|
versionInfo: {
|
|
49996
|
-
currentVersion: "0.
|
|
51584
|
+
currentVersion: "0.9.1"
|
|
49997
51585
|
}
|
|
49998
51586
|
});
|
|
49999
51587
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50001,5 +51589,5 @@ export {
|
|
|
50001
51589
|
app
|
|
50002
51590
|
};
|
|
50003
51591
|
|
|
50004
|
-
//# debugId=
|
|
51592
|
+
//# debugId=3E911F547E17927A64756E2164756E21
|
|
50005
51593
|
//# sourceMappingURL=mcp-server.js.map
|