@henrylabs/mcp 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -40
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +0 -1
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +0 -1
- package/code-tool.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -4
- package/headers.js.map +1 -1
- package/headers.mjs +1 -4
- package/headers.mjs.map +1 -1
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool.ts +0 -1
- package/src/headers.ts +1 -5
- package/src/server.ts +1 -1
- package/src/tools/cart/{create-checkout-cart.ts → create-cart-checkout.ts} +3 -3
- package/src/tools/checkout/session/confirm-checkout-session.ts +101 -0
- package/src/tools/checkout/session/{create-quote-checkout-session.ts → create-checkout-session.ts} +2 -2
- package/src/tools/index.ts +10 -32
- package/src/tools/orders/retrieve-status-orders.ts +1 -1
- package/src/tools/products/retrieve-product-details.ts +48 -0
- package/src/tools/products/search-products.ts +1 -1
- package/src/tools/wallet/{create-card-collection-wallet.ts → collect-payment-details.ts} +3 -3
- package/tools/cart/{create-checkout-cart.d.mts → create-cart-checkout.d.mts} +1 -1
- package/tools/cart/{create-checkout-cart.d.mts.map → create-cart-checkout.d.mts.map} +1 -1
- package/tools/cart/{items/clear-cart-items.d.mts → create-cart-checkout.d.ts} +1 -1
- package/tools/cart/{create-checkout-cart.d.ts.map → create-cart-checkout.d.ts.map} +1 -1
- package/tools/cart/{create-checkout-cart.js → create-cart-checkout.js} +4 -4
- package/tools/cart/create-cart-checkout.js.map +1 -0
- package/tools/cart/{create-checkout-cart.mjs → create-cart-checkout.mjs} +4 -4
- package/tools/cart/create-cart-checkout.mjs.map +1 -0
- package/tools/checkout/session/confirm-checkout-session.d.mts +45 -0
- package/tools/checkout/session/confirm-checkout-session.d.mts.map +1 -0
- package/tools/{cart/create-checkout-cart.d.ts → checkout/session/confirm-checkout-session.d.ts} +1 -1
- package/tools/checkout/session/confirm-checkout-session.d.ts.map +1 -0
- package/tools/checkout/session/confirm-checkout-session.js +94 -0
- package/tools/checkout/session/confirm-checkout-session.js.map +1 -0
- package/tools/checkout/session/confirm-checkout-session.mjs +90 -0
- package/tools/checkout/session/confirm-checkout-session.mjs.map +1 -0
- package/tools/checkout/session/create-checkout-session.d.mts +45 -0
- package/tools/checkout/session/create-checkout-session.d.mts.map +1 -0
- package/tools/{cart/items/add-cart-items.d.mts → checkout/session/create-checkout-session.d.ts} +1 -1
- package/tools/checkout/session/create-checkout-session.d.ts.map +1 -0
- package/tools/checkout/session/{create-quote-checkout-session.js → create-checkout-session.js} +3 -3
- package/tools/checkout/session/create-checkout-session.js.map +1 -0
- package/tools/checkout/session/{create-quote-checkout-session.mjs → create-checkout-session.mjs} +3 -3
- package/tools/checkout/session/create-checkout-session.mjs.map +1 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +10 -32
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +10 -32
- package/tools/index.mjs.map +1 -1
- package/tools/orders/retrieve-status-orders.js +1 -1
- package/tools/orders/retrieve-status-orders.js.map +1 -1
- package/tools/orders/retrieve-status-orders.mjs +1 -1
- package/tools/orders/retrieve-status-orders.mjs.map +1 -1
- package/tools/products/retrieve-product-details.d.mts +45 -0
- package/tools/products/retrieve-product-details.d.mts.map +1 -0
- package/tools/products/retrieve-product-details.d.ts +45 -0
- package/tools/products/retrieve-product-details.d.ts.map +1 -0
- package/tools/products/retrieve-product-details.js +43 -0
- package/tools/products/retrieve-product-details.js.map +1 -0
- package/tools/products/retrieve-product-details.mjs +39 -0
- package/tools/products/retrieve-product-details.mjs.map +1 -0
- package/tools/products/search-products.js +1 -1
- package/tools/products/search-products.js.map +1 -1
- package/tools/products/search-products.mjs +1 -1
- package/tools/products/search-products.mjs.map +1 -1
- package/tools/wallet/collect-payment-details.d.mts +45 -0
- package/tools/wallet/collect-payment-details.d.mts.map +1 -0
- package/tools/{cart/items/add-cart-items.d.ts → wallet/collect-payment-details.d.ts} +1 -1
- package/tools/wallet/collect-payment-details.d.ts.map +1 -0
- package/tools/wallet/{create-card-collection-wallet.js → collect-payment-details.js} +4 -4
- package/tools/wallet/collect-payment-details.js.map +1 -0
- package/tools/wallet/{create-card-collection-wallet.mjs → collect-payment-details.mjs} +4 -4
- package/tools/wallet/collect-payment-details.mjs.map +1 -0
- package/src/tools/cart/items/add-cart-items.ts +0 -93
- package/src/tools/cart/items/clear-cart-items.ts +0 -47
- package/src/tools/cart/items/list-cart-items.ts +0 -47
- package/src/tools/cart/items/remove-cart-items.ts +0 -50
- package/src/tools/checkout/session/confirm-checkout-checkout-session.ts +0 -101
- package/src/tools/checkout/session/list-products-checkout-session.ts +0 -47
- package/src/tools/checkout/session/retrieve-shipping-info-checkout-session.ts +0 -49
- package/src/tools/merchants/check-status-merchants.ts +0 -56
- package/src/tools/merchants/get-shipping-info-merchants.ts +0 -60
- package/src/tools/merchants/list-supported-merchants.ts +0 -52
- package/src/tools/products/retrieve-details-products.ts +0 -48
- package/src/tools/products/variant-check/create-products-variant-check.ts +0 -85
- package/src/tools/products/variant-check/retrieve-status-products-variant-check.ts +0 -50
- package/tools/cart/create-checkout-cart.js.map +0 -1
- package/tools/cart/create-checkout-cart.mjs.map +0 -1
- package/tools/cart/items/add-cart-items.d.mts.map +0 -1
- package/tools/cart/items/add-cart-items.d.ts.map +0 -1
- package/tools/cart/items/add-cart-items.js +0 -86
- package/tools/cart/items/add-cart-items.js.map +0 -1
- package/tools/cart/items/add-cart-items.mjs +0 -82
- package/tools/cart/items/add-cart-items.mjs.map +0 -1
- package/tools/cart/items/clear-cart-items.d.mts.map +0 -1
- package/tools/cart/items/clear-cart-items.d.ts +0 -45
- package/tools/cart/items/clear-cart-items.d.ts.map +0 -1
- package/tools/cart/items/clear-cart-items.js +0 -42
- package/tools/cart/items/clear-cart-items.js.map +0 -1
- package/tools/cart/items/clear-cart-items.mjs +0 -38
- package/tools/cart/items/clear-cart-items.mjs.map +0 -1
- package/tools/cart/items/list-cart-items.d.mts +0 -45
- package/tools/cart/items/list-cart-items.d.mts.map +0 -1
- package/tools/cart/items/list-cart-items.d.ts +0 -45
- package/tools/cart/items/list-cart-items.d.ts.map +0 -1
- package/tools/cart/items/list-cart-items.js +0 -42
- package/tools/cart/items/list-cart-items.js.map +0 -1
- package/tools/cart/items/list-cart-items.mjs +0 -38
- package/tools/cart/items/list-cart-items.mjs.map +0 -1
- package/tools/cart/items/remove-cart-items.d.mts +0 -45
- package/tools/cart/items/remove-cart-items.d.mts.map +0 -1
- package/tools/cart/items/remove-cart-items.d.ts +0 -45
- package/tools/cart/items/remove-cart-items.d.ts.map +0 -1
- package/tools/cart/items/remove-cart-items.js +0 -45
- package/tools/cart/items/remove-cart-items.js.map +0 -1
- package/tools/cart/items/remove-cart-items.mjs +0 -41
- package/tools/cart/items/remove-cart-items.mjs.map +0 -1
- package/tools/checkout/session/confirm-checkout-checkout-session.d.mts +0 -45
- package/tools/checkout/session/confirm-checkout-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/confirm-checkout-checkout-session.d.ts +0 -45
- package/tools/checkout/session/confirm-checkout-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/confirm-checkout-checkout-session.js +0 -94
- package/tools/checkout/session/confirm-checkout-checkout-session.js.map +0 -1
- package/tools/checkout/session/confirm-checkout-checkout-session.mjs +0 -90
- package/tools/checkout/session/confirm-checkout-checkout-session.mjs.map +0 -1
- package/tools/checkout/session/create-quote-checkout-session.d.mts +0 -45
- package/tools/checkout/session/create-quote-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/create-quote-checkout-session.d.ts +0 -45
- package/tools/checkout/session/create-quote-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/create-quote-checkout-session.js.map +0 -1
- package/tools/checkout/session/create-quote-checkout-session.mjs.map +0 -1
- package/tools/checkout/session/list-products-checkout-session.d.mts +0 -45
- package/tools/checkout/session/list-products-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/list-products-checkout-session.d.ts +0 -45
- package/tools/checkout/session/list-products-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/list-products-checkout-session.js +0 -42
- package/tools/checkout/session/list-products-checkout-session.js.map +0 -1
- package/tools/checkout/session/list-products-checkout-session.mjs +0 -38
- package/tools/checkout/session/list-products-checkout-session.mjs.map +0 -1
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.d.mts +0 -45
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.d.ts +0 -45
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.js +0 -42
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.js.map +0 -1
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.mjs +0 -38
- package/tools/checkout/session/retrieve-shipping-info-checkout-session.mjs.map +0 -1
- package/tools/merchants/check-status-merchants.d.mts +0 -45
- package/tools/merchants/check-status-merchants.d.mts.map +0 -1
- package/tools/merchants/check-status-merchants.d.ts +0 -45
- package/tools/merchants/check-status-merchants.d.ts.map +0 -1
- package/tools/merchants/check-status-merchants.js +0 -48
- package/tools/merchants/check-status-merchants.js.map +0 -1
- package/tools/merchants/check-status-merchants.mjs +0 -44
- package/tools/merchants/check-status-merchants.mjs.map +0 -1
- package/tools/merchants/get-shipping-info-merchants.d.mts +0 -45
- package/tools/merchants/get-shipping-info-merchants.d.mts.map +0 -1
- package/tools/merchants/get-shipping-info-merchants.d.ts +0 -45
- package/tools/merchants/get-shipping-info-merchants.d.ts.map +0 -1
- package/tools/merchants/get-shipping-info-merchants.js +0 -55
- package/tools/merchants/get-shipping-info-merchants.js.map +0 -1
- package/tools/merchants/get-shipping-info-merchants.mjs +0 -51
- package/tools/merchants/get-shipping-info-merchants.mjs.map +0 -1
- package/tools/merchants/list-supported-merchants.d.mts +0 -45
- package/tools/merchants/list-supported-merchants.d.mts.map +0 -1
- package/tools/merchants/list-supported-merchants.d.ts +0 -45
- package/tools/merchants/list-supported-merchants.d.ts.map +0 -1
- package/tools/merchants/list-supported-merchants.js +0 -47
- package/tools/merchants/list-supported-merchants.js.map +0 -1
- package/tools/merchants/list-supported-merchants.mjs +0 -43
- package/tools/merchants/list-supported-merchants.mjs.map +0 -1
- package/tools/products/retrieve-details-products.d.mts +0 -45
- package/tools/products/retrieve-details-products.d.mts.map +0 -1
- package/tools/products/retrieve-details-products.d.ts +0 -45
- package/tools/products/retrieve-details-products.d.ts.map +0 -1
- package/tools/products/retrieve-details-products.js +0 -43
- package/tools/products/retrieve-details-products.js.map +0 -1
- package/tools/products/retrieve-details-products.mjs +0 -39
- package/tools/products/retrieve-details-products.mjs.map +0 -1
- package/tools/products/variant-check/create-products-variant-check.d.mts +0 -45
- package/tools/products/variant-check/create-products-variant-check.d.mts.map +0 -1
- package/tools/products/variant-check/create-products-variant-check.d.ts +0 -45
- package/tools/products/variant-check/create-products-variant-check.d.ts.map +0 -1
- package/tools/products/variant-check/create-products-variant-check.js +0 -79
- package/tools/products/variant-check/create-products-variant-check.js.map +0 -1
- package/tools/products/variant-check/create-products-variant-check.mjs +0 -75
- package/tools/products/variant-check/create-products-variant-check.mjs.map +0 -1
- package/tools/products/variant-check/retrieve-status-products-variant-check.d.mts +0 -45
- package/tools/products/variant-check/retrieve-status-products-variant-check.d.mts.map +0 -1
- package/tools/products/variant-check/retrieve-status-products-variant-check.d.ts +0 -45
- package/tools/products/variant-check/retrieve-status-products-variant-check.d.ts.map +0 -1
- package/tools/products/variant-check/retrieve-status-products-variant-check.js +0 -43
- package/tools/products/variant-check/retrieve-status-products-variant-check.js.map +0 -1
- package/tools/products/variant-check/retrieve-status-products-variant-check.mjs +0 -39
- package/tools/products/variant-check/retrieve-status-products-variant-check.mjs.map +0 -1
- package/tools/wallet/create-card-collection-wallet.d.mts +0 -45
- package/tools/wallet/create-card-collection-wallet.d.mts.map +0 -1
- package/tools/wallet/create-card-collection-wallet.d.ts +0 -45
- package/tools/wallet/create-card-collection-wallet.d.ts.map +0 -1
- package/tools/wallet/create-card-collection-wallet.js.map +0 -1
- package/tools/wallet/create-card-collection-wallet.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout
|
|
1
|
+
{"version":3,"file":"create-cart-checkout.d.mts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=create-cart-checkout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout
|
|
1
|
+
{"version":3,"file":"create-cart-checkout.d.ts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -7,14 +7,14 @@ const types_1 = require("@henrylabs/mcp/tools/types");
|
|
|
7
7
|
exports.metadata = {
|
|
8
8
|
resource: 'cart',
|
|
9
9
|
operation: 'write',
|
|
10
|
-
tags: [],
|
|
10
|
+
tags: ['hosted'],
|
|
11
11
|
httpMethod: 'post',
|
|
12
12
|
httpPath: '/cart/checkout',
|
|
13
13
|
operationId: 'createHostedCheckoutPage',
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
|
-
name: '
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGenerates a hosted checkout URL for the user's cart
|
|
16
|
+
name: 'create_cart_checkout',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGenerates a hosted checkout URL for the user's cart. The page walks the buyer through reviewing the order, entering shipping, payment information, and confirming the purchase.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/cart_create_checkout_response',\n $defs: {\n cart_create_checkout_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n checkout_url: {\n type: 'string'\n }\n },\n required: [ 'checkout_url'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -41,4 +41,4 @@ const handler = async (client, args) => {
|
|
|
41
41
|
};
|
|
42
42
|
exports.handler = handler;
|
|
43
43
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
44
|
-
//# sourceMappingURL=create-checkout
|
|
44
|
+
//# sourceMappingURL=create-cart-checkout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-cart-checkout.js","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,khCAAkhC;IACphC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,iEAAiE;aAC/E;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -4,14 +4,14 @@ import { asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
|
4
4
|
export const metadata = {
|
|
5
5
|
resource: 'cart',
|
|
6
6
|
operation: 'write',
|
|
7
|
-
tags: [],
|
|
7
|
+
tags: ['hosted'],
|
|
8
8
|
httpMethod: 'post',
|
|
9
9
|
httpPath: '/cart/checkout',
|
|
10
10
|
operationId: 'createHostedCheckoutPage',
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
|
-
name: '
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGenerates a hosted checkout URL for the user's cart
|
|
13
|
+
name: 'create_cart_checkout',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGenerates a hosted checkout URL for the user's cart. The page walks the buyer through reviewing the order, entering shipping, payment information, and confirming the purchase.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/cart_create_checkout_response',\n $defs: {\n cart_create_checkout_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n checkout_url: {\n type: 'string'\n }\n },\n required: [ 'checkout_url'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -37,4 +37,4 @@ export const handler = async (client, args) => {
|
|
|
37
37
|
return asTextContentResult(await maybeFilter(jq_filter, await client.cart.createCheckout(body)));
|
|
38
38
|
};
|
|
39
39
|
export default { metadata, tool, handler };
|
|
40
|
-
//# sourceMappingURL=create-checkout
|
|
40
|
+
//# sourceMappingURL=create-cart-checkout.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-cart-checkout.mjs","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,khCAAkhC;IACphC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,iEAAiE;aAC/E;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@henrylabs/mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import HenrySDK from '@henrylabs/sdk';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=confirm-checkout-session.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-checkout-session.d.mts","sourceRoot":"","sources":["../../../src/tools/checkout/session/confirm-checkout-session.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOzF,wBAA2C"}
|
package/tools/{cart/create-checkout-cart.d.ts → checkout/session/confirm-checkout-session.d.ts}
RENAMED
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=confirm-checkout-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-checkout-session.d.ts","sourceRoot":"","sources":["../../../src/tools/checkout/session/confirm-checkout-session.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOzF,wBAA2C"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const filtering_1 = require("@henrylabs/mcp/filtering");
|
|
6
|
+
const types_1 = require("@henrylabs/mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'checkout.session',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'post',
|
|
12
|
+
httpPath: '/checkout/session/confirm',
|
|
13
|
+
operationId: 'confirmCheckoutSession',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'confirm_checkout_session',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nConfirms the checkout session and creates an order for the user. Returns an order ID that can be used to view order status\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_confirm_checkout_response',\n $defs: {\n session_confirm_checkout_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n currency: {\n type: 'string'\n },\n grandTotal: {\n type: 'string'\n },\n products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n productName: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n productMetadata: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'productName',\n 'quantity'\n ]\n }\n },\n shipping: {\n type: 'string'\n },\n shippingDetails: {\n type: 'object',\n properties: {\n addressLine1: {\n type: 'string',\n description: 'Address line 1'\n },\n city: {\n type: 'string',\n description: 'City'\n },\n countryCode: {\n type: 'string',\n description: 'Country code'\n },\n email: {\n type: 'string',\n description: 'Email'\n },\n fullName: {\n type: 'string',\n description: 'Full name'\n },\n phoneNumber: {\n type: 'string',\n description: 'Phone number'\n },\n postalCode: {\n type: 'string',\n description: 'Postal code'\n },\n stateOrProvince: {\n type: 'string',\n description: 'State or province'\n },\n addressLine2: {\n type: 'string',\n description: 'Address line 2'\n }\n },\n required: [ 'addressLine1',\n 'city',\n 'countryCode',\n 'email',\n 'fullName',\n 'phoneNumber',\n 'postalCode',\n 'stateOrProvince'\n ]\n },\n status: {\n type: 'string'\n },\n statusMessage: {\n type: 'string'\n },\n subtotal: {\n type: 'string'\n },\n tax: {\n type: 'string'\n },\n cardLast4: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'currency',\n 'grandTotal',\n 'products',\n 'shipping',\n 'shippingDetails',\n 'status',\n 'statusMessage',\n 'subtotal',\n 'tax'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
'x-session-token': {
|
|
22
|
+
type: 'string',
|
|
23
|
+
},
|
|
24
|
+
shippingDetails: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
addressLine1: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'Address line 1',
|
|
30
|
+
},
|
|
31
|
+
city: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'City',
|
|
34
|
+
},
|
|
35
|
+
countryCode: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Country code',
|
|
38
|
+
},
|
|
39
|
+
email: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Email',
|
|
42
|
+
},
|
|
43
|
+
fullName: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Full name',
|
|
46
|
+
},
|
|
47
|
+
phoneNumber: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Phone number',
|
|
50
|
+
},
|
|
51
|
+
postalCode: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Postal code',
|
|
54
|
+
},
|
|
55
|
+
stateOrProvince: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
description: 'State or province',
|
|
58
|
+
},
|
|
59
|
+
addressLine2: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'Address line 2',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
required: [
|
|
65
|
+
'addressLine1',
|
|
66
|
+
'city',
|
|
67
|
+
'countryCode',
|
|
68
|
+
'email',
|
|
69
|
+
'fullName',
|
|
70
|
+
'phoneNumber',
|
|
71
|
+
'postalCode',
|
|
72
|
+
'stateOrProvince',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
'x-user-id': {
|
|
76
|
+
type: 'string',
|
|
77
|
+
},
|
|
78
|
+
jq_filter: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
title: 'jq Filter',
|
|
81
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
required: ['x-session-token'],
|
|
85
|
+
},
|
|
86
|
+
annotations: {},
|
|
87
|
+
};
|
|
88
|
+
const handler = async (client, args) => {
|
|
89
|
+
const { jq_filter, ...body } = args;
|
|
90
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.checkout.session.confirmCheckout(body)));
|
|
91
|
+
};
|
|
92
|
+
exports.handler = handler;
|
|
93
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
94
|
+
//# sourceMappingURL=confirm-checkout-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-checkout-session.js","sourceRoot":"","sources":["../../../src/tools/checkout/session/confirm-checkout-session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,k6HAAk6H;IACp6H,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;aACf;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gBAAgB;qBAC9B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,MAAM;qBACpB;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ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Q,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@henrylabs/mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'checkout.session',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'post',
|
|
9
|
+
httpPath: '/checkout/session/confirm',
|
|
10
|
+
operationId: 'confirmCheckoutSession',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'confirm_checkout_session',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nConfirms the checkout session and creates an order for the user. Returns an order ID that can be used to view order status\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_confirm_checkout_response',\n $defs: {\n session_confirm_checkout_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n currency: {\n type: 'string'\n },\n grandTotal: {\n type: 'string'\n },\n products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n productName: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n productMetadata: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'productName',\n 'quantity'\n ]\n }\n },\n shipping: {\n type: 'string'\n },\n shippingDetails: {\n type: 'object',\n properties: {\n addressLine1: {\n type: 'string',\n description: 'Address line 1'\n },\n city: {\n type: 'string',\n description: 'City'\n },\n countryCode: {\n type: 'string',\n description: 'Country code'\n },\n email: {\n type: 'string',\n description: 'Email'\n },\n fullName: {\n type: 'string',\n description: 'Full name'\n },\n phoneNumber: {\n type: 'string',\n description: 'Phone number'\n },\n postalCode: {\n type: 'string',\n description: 'Postal code'\n },\n stateOrProvince: {\n type: 'string',\n description: 'State or province'\n },\n addressLine2: {\n type: 'string',\n description: 'Address line 2'\n }\n },\n required: [ 'addressLine1',\n 'city',\n 'countryCode',\n 'email',\n 'fullName',\n 'phoneNumber',\n 'postalCode',\n 'stateOrProvince'\n ]\n },\n status: {\n type: 'string'\n },\n statusMessage: {\n type: 'string'\n },\n subtotal: {\n type: 'string'\n },\n tax: {\n type: 'string'\n },\n cardLast4: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'currency',\n 'grandTotal',\n 'products',\n 'shipping',\n 'shippingDetails',\n 'status',\n 'statusMessage',\n 'subtotal',\n 'tax'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
'x-session-token': {
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
shippingDetails: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
addressLine1: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Address line 1',
|
|
27
|
+
},
|
|
28
|
+
city: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'City',
|
|
31
|
+
},
|
|
32
|
+
countryCode: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Country code',
|
|
35
|
+
},
|
|
36
|
+
email: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Email',
|
|
39
|
+
},
|
|
40
|
+
fullName: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Full name',
|
|
43
|
+
},
|
|
44
|
+
phoneNumber: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Phone number',
|
|
47
|
+
},
|
|
48
|
+
postalCode: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Postal code',
|
|
51
|
+
},
|
|
52
|
+
stateOrProvince: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'State or province',
|
|
55
|
+
},
|
|
56
|
+
addressLine2: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'Address line 2',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
required: [
|
|
62
|
+
'addressLine1',
|
|
63
|
+
'city',
|
|
64
|
+
'countryCode',
|
|
65
|
+
'email',
|
|
66
|
+
'fullName',
|
|
67
|
+
'phoneNumber',
|
|
68
|
+
'postalCode',
|
|
69
|
+
'stateOrProvince',
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
'x-user-id': {
|
|
73
|
+
type: 'string',
|
|
74
|
+
},
|
|
75
|
+
jq_filter: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
title: 'jq Filter',
|
|
78
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
required: ['x-session-token'],
|
|
82
|
+
},
|
|
83
|
+
annotations: {},
|
|
84
|
+
};
|
|
85
|
+
export const handler = async (client, args) => {
|
|
86
|
+
const { jq_filter, ...body } = args;
|
|
87
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.checkout.session.confirmCheckout(body)));
|
|
88
|
+
};
|
|
89
|
+
export default { metadata, tool, handler };
|
|
90
|
+
//# sourceMappingURL=confirm-checkout-session.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-checkout-session.mjs","sourceRoot":"","sources":["../../../src/tools/checkout/session/confirm-checkout-session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MA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BACb,YAAY;oBACZ,iBAAiB;iBAClB;aACF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;KAC9B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAClF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@henrylabs/mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import HenrySDK from '@henrylabs/sdk';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=create-checkout-session.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkout-session.d.mts","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
package/tools/{cart/items/add-cart-items.d.mts → checkout/session/create-checkout-session.d.ts}
RENAMED
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=create-checkout-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkout-session.d.ts","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
package/tools/checkout/session/{create-quote-checkout-session.js → create-checkout-session.js}
RENAMED
|
@@ -13,8 +13,8 @@ exports.metadata = {
|
|
|
13
13
|
operationId: 'createCheckoutSessionQuote',
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
|
-
name: '
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreates or updates a checkout session with shipping details and returns pricing metadata plus a session token
|
|
16
|
+
name: 'create_checkout_session',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreates or updates a checkout session with shipping details and returns pricing metadata plus a session token needed for confirming checkout\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_create_quote_response',\n $defs: {\n session_create_quote_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n order_metadata: {\n type: 'object',\n properties: {\n shipping: {\n type: 'object',\n additionalProperties: true\n },\n shipping_total: {\n type: 'number'\n },\n tax: {\n type: 'number'\n },\n total_price: {\n type: 'number'\n }\n },\n required: [ 'shipping',\n 'shipping_total',\n 'tax',\n 'total_price'\n ]\n },\n session_token: {\n type: 'string'\n }\n },\n required: [ 'order_metadata',\n 'session_token'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -88,4 +88,4 @@ const handler = async (client, args) => {
|
|
|
88
88
|
};
|
|
89
89
|
exports.handler = handler;
|
|
90
90
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
91
|
-
//# sourceMappingURL=create-
|
|
91
|
+
//# sourceMappingURL=create-checkout-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkout-session.js","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,E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;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
package/tools/checkout/session/{create-quote-checkout-session.mjs → create-checkout-session.mjs}
RENAMED
|
@@ -10,8 +10,8 @@ export const metadata = {
|
|
|
10
10
|
operationId: 'createCheckoutSessionQuote',
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
|
-
name: '
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreates or updates a checkout session with shipping details and returns pricing metadata plus a session token
|
|
13
|
+
name: 'create_checkout_session',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreates or updates a checkout session with shipping details and returns pricing metadata plus a session token needed for confirming checkout\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_create_quote_response',\n $defs: {\n session_create_quote_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n order_metadata: {\n type: 'object',\n properties: {\n shipping: {\n type: 'object',\n additionalProperties: true\n },\n shipping_total: {\n type: 'number'\n },\n tax: {\n type: 'number'\n },\n total_price: {\n type: 'number'\n }\n },\n required: [ 'shipping',\n 'shipping_total',\n 'tax',\n 'total_price'\n ]\n },\n session_token: {\n type: 'string'\n }\n },\n required: [ 'order_metadata',\n 'session_token'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -84,4 +84,4 @@ export const handler = async (client, args) => {
|
|
|
84
84
|
return asTextContentResult(await maybeFilter(jq_filter, await client.checkout.session.createQuote(body)));
|
|
85
85
|
};
|
|
86
86
|
export default { metadata, tool, handler };
|
|
87
|
-
//# sourceMappingURL=create-
|
|
87
|
+
//# sourceMappingURL=create-checkout-session.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkout-session.mjs","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,0qDAA0qD;IAC5qD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gBAAgB;qBAC9B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,MAAM;qBACpB;oBACD,WAAW,EAAE;wBACX,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IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/tools/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAU/C,eAAO,MAAM,SAAS,EAAE,QAAQ,EAAO,CAAC;AAcxC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA4B1E"}
|
package/tools/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAU/C,eAAO,MAAM,SAAS,EAAE,QAAQ,EAAO,CAAC;AAcxC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA4B1E"}
|
package/tools/index.js
CHANGED
|
@@ -6,46 +6,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.endpoints = void 0;
|
|
8
8
|
exports.query = query;
|
|
9
|
-
const
|
|
9
|
+
const retrieve_product_details_1 = __importDefault(require("./products/retrieve-product-details.js"));
|
|
10
10
|
const search_products_1 = __importDefault(require("./products/search-products.js"));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const list_cart_items_1 = __importDefault(require("./cart/items/list-cart-items.js"));
|
|
15
|
-
const add_cart_items_1 = __importDefault(require("./cart/items/add-cart-items.js"));
|
|
16
|
-
const clear_cart_items_1 = __importDefault(require("./cart/items/clear-cart-items.js"));
|
|
17
|
-
const remove_cart_items_1 = __importDefault(require("./cart/items/remove-cart-items.js"));
|
|
18
|
-
const confirm_checkout_checkout_session_1 = __importDefault(require("./checkout/session/confirm-checkout-checkout-session.js"));
|
|
19
|
-
const create_quote_checkout_session_1 = __importDefault(require("./checkout/session/create-quote-checkout-session.js"));
|
|
20
|
-
const list_products_checkout_session_1 = __importDefault(require("./checkout/session/list-products-checkout-session.js"));
|
|
21
|
-
const retrieve_shipping_info_checkout_session_1 = __importDefault(require("./checkout/session/retrieve-shipping-info-checkout-session.js"));
|
|
11
|
+
const create_cart_checkout_1 = __importDefault(require("./cart/create-cart-checkout.js"));
|
|
12
|
+
const confirm_checkout_session_1 = __importDefault(require("./checkout/session/confirm-checkout-session.js"));
|
|
13
|
+
const create_checkout_session_1 = __importDefault(require("./checkout/session/create-checkout-session.js"));
|
|
22
14
|
const retrieve_status_orders_1 = __importDefault(require("./orders/retrieve-status-orders.js"));
|
|
23
|
-
const
|
|
24
|
-
const check_status_merchants_1 = __importDefault(require("./merchants/check-status-merchants.js"));
|
|
25
|
-
const get_shipping_info_merchants_1 = __importDefault(require("./merchants/get-shipping-info-merchants.js"));
|
|
26
|
-
const list_supported_merchants_1 = __importDefault(require("./merchants/list-supported-merchants.js"));
|
|
15
|
+
const collect_payment_details_1 = __importDefault(require("./wallet/collect-payment-details.js"));
|
|
27
16
|
exports.endpoints = [];
|
|
28
17
|
function addEndpoint(endpoint) {
|
|
29
18
|
exports.endpoints.push(endpoint);
|
|
30
19
|
}
|
|
31
|
-
addEndpoint(
|
|
20
|
+
addEndpoint(retrieve_product_details_1.default);
|
|
32
21
|
addEndpoint(search_products_1.default);
|
|
33
|
-
addEndpoint(
|
|
34
|
-
addEndpoint(
|
|
35
|
-
addEndpoint(
|
|
36
|
-
addEndpoint(list_cart_items_1.default);
|
|
37
|
-
addEndpoint(add_cart_items_1.default);
|
|
38
|
-
addEndpoint(clear_cart_items_1.default);
|
|
39
|
-
addEndpoint(remove_cart_items_1.default);
|
|
40
|
-
addEndpoint(confirm_checkout_checkout_session_1.default);
|
|
41
|
-
addEndpoint(create_quote_checkout_session_1.default);
|
|
42
|
-
addEndpoint(list_products_checkout_session_1.default);
|
|
43
|
-
addEndpoint(retrieve_shipping_info_checkout_session_1.default);
|
|
22
|
+
addEndpoint(create_cart_checkout_1.default);
|
|
23
|
+
addEndpoint(confirm_checkout_session_1.default);
|
|
24
|
+
addEndpoint(create_checkout_session_1.default);
|
|
44
25
|
addEndpoint(retrieve_status_orders_1.default);
|
|
45
|
-
addEndpoint(
|
|
46
|
-
addEndpoint(check_status_merchants_1.default);
|
|
47
|
-
addEndpoint(get_shipping_info_merchants_1.default);
|
|
48
|
-
addEndpoint(list_supported_merchants_1.default);
|
|
26
|
+
addEndpoint(collect_payment_details_1.default);
|
|
49
27
|
function query(filters, endpoints) {
|
|
50
28
|
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
51
29
|
const unmatchedFilters = new Set(filters);
|
package/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAkCtF,sBA4BC;AAxDD,sGAA2E;AAC3E,oFAAyD;AACzD,0FAA+D;AAC/D,8GAAmF;AACnF,4GAAiF;AACjF,gGAAqE;AACrE,kGAAuE;AAE1D,QAAA,SAAS,GAAe,EAAE,CAAC;AAExC,SAAS,WAAW,CAAC,QAAkB;IACrC,iBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC;AAED,WAAW,CAAC,kCAAwB,CAAC,CAAC;AACtC,WAAW,CAAC,yBAAe,CAAC,CAAC;AAC7B,WAAW,CAAC,8BAAoB,CAAC,CAAC;AAClC,WAAW,CAAC,kCAAwB,CAAC,CAAC;AACtC,WAAW,CAAC,iCAAuB,CAAC,CAAC;AACrC,WAAW,CAAC,gCAAsB,CAAC,CAAC;AACpC,WAAW,CAAC,iCAAuB,CAAC,CAAC;AAQrC,SAAgB,KAAK,CAAC,OAAiB,EAAE,SAAqB;IAC5D,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC;IAC7F,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC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