@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,85 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { maybeFilter } from '@henrylabs/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
5
|
-
|
|
6
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import HenrySDK from '@henrylabs/sdk';
|
|
8
|
-
|
|
9
|
-
export const metadata: Metadata = {
|
|
10
|
-
resource: 'products.variant_check',
|
|
11
|
-
operation: 'write',
|
|
12
|
-
tags: [],
|
|
13
|
-
httpMethod: 'post',
|
|
14
|
-
httpPath: '/products/variant-check',
|
|
15
|
-
operationId: 'checkProductVariant',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const tool: Tool = {
|
|
19
|
-
name: 'create_products_variant_check',
|
|
20
|
-
description:
|
|
21
|
-
"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\n! *This endpoint is experimental and unstable. The API contract may change without notice.*\n\nCreates a request to check if a specific product variant combination is in stock. Returns immediately with a request ID that can be used to poll for results.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/variant_check_create_response',\n $defs: {\n variant_check_create_response: {\n type: 'object',\n properties: {\n createdAt: {\n type: 'string'\n },\n message: {\n type: 'string'\n },\n requestId: {\n type: 'string'\n },\n status: {\n type: 'string',\n enum: [ 'pending',\n 'processing'\n ]\n },\n success: {\n type: 'boolean'\n }\n },\n required: [ 'createdAt',\n 'message',\n 'requestId',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
product: {
|
|
26
|
-
type: 'object',
|
|
27
|
-
description: 'Product details to check variant availability for',
|
|
28
|
-
properties: {
|
|
29
|
-
affiliateProductLink: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
description:
|
|
32
|
-
'Affiliate product link (if provided, will be used instead of productLink for order fulfillment)',
|
|
33
|
-
},
|
|
34
|
-
metadata: {
|
|
35
|
-
type: 'object',
|
|
36
|
-
description: 'Product metadata',
|
|
37
|
-
additionalProperties: true,
|
|
38
|
-
},
|
|
39
|
-
name: {
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: 'Product name',
|
|
42
|
-
},
|
|
43
|
-
price: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: 'Product price',
|
|
46
|
-
},
|
|
47
|
-
productId: {
|
|
48
|
-
type: 'string',
|
|
49
|
-
description: 'Product Id',
|
|
50
|
-
},
|
|
51
|
-
productImageLink: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
description: 'Product image link (thumbnail)',
|
|
54
|
-
},
|
|
55
|
-
productLink: {
|
|
56
|
-
type: 'string',
|
|
57
|
-
description: 'Product link',
|
|
58
|
-
},
|
|
59
|
-
quantity: {
|
|
60
|
-
type: 'number',
|
|
61
|
-
description: 'Quantity',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
'x-user-id': {
|
|
66
|
-
type: 'string',
|
|
67
|
-
},
|
|
68
|
-
jq_filter: {
|
|
69
|
-
type: 'string',
|
|
70
|
-
title: 'jq Filter',
|
|
71
|
-
description:
|
|
72
|
-
'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/).',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
required: ['product'],
|
|
76
|
-
},
|
|
77
|
-
annotations: {},
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const handler = async (client: HenrySDK, args: Record<string, unknown> | undefined) => {
|
|
81
|
-
const { jq_filter, ...body } = args as any;
|
|
82
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.products.variantCheck.create(body)));
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export default { metadata, tool, handler };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { maybeFilter } from '@henrylabs/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
5
|
-
|
|
6
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import HenrySDK from '@henrylabs/sdk';
|
|
8
|
-
|
|
9
|
-
export const metadata: Metadata = {
|
|
10
|
-
resource: 'products.variant_check',
|
|
11
|
-
operation: 'read',
|
|
12
|
-
tags: [],
|
|
13
|
-
httpMethod: 'get',
|
|
14
|
-
httpPath: '/products/variant-check/{id}',
|
|
15
|
-
operationId: 'getVariantCheckStatus',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const tool: Tool = {
|
|
19
|
-
name: 'retrieve_status_products_variant_check',
|
|
20
|
-
description:
|
|
21
|
-
"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\n! *This endpoint is experimental and unstable. The API contract may change without notice.*\n\nPoll the status of a variant availability check request. Returns the current status and results if completed.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/variant_check_retrieve_status_response',\n $defs: {\n variant_check_retrieve_status_response: {\n type: 'object',\n properties: {\n createdAt: {\n type: 'string'\n },\n message: {\n type: 'string'\n },\n requestId: {\n type: 'string'\n },\n status: {\n type: 'string',\n enum: [ 'pending',\n 'processing',\n 'completed',\n 'failed',\n 'timeout'\n ]\n },\n success: {\n type: 'boolean'\n },\n updatedAt: {\n type: 'string'\n },\n completedAt: {\n type: 'string'\n },\n data: {\n type: 'object',\n properties: {\n apiVersion: {\n type: 'string'\n },\n executionTime: {\n type: 'string'\n },\n productName: {\n type: 'string'\n },\n requestedVariant: {\n type: 'object',\n additionalProperties: true\n },\n requestTime: {\n type: 'string'\n },\n stockStatus: {\n type: 'object',\n properties: {\n available: {\n type: 'boolean'\n },\n details: {\n type: 'object',\n additionalProperties: true\n },\n message: {\n type: 'string'\n }\n },\n required: [ 'available',\n 'details',\n 'message'\n ]\n },\n timestamp: {\n type: 'string'\n },\n totalExecutionTime: {\n type: 'string'\n },\n url: {\n type: 'string'\n }\n },\n required: [ 'apiVersion',\n 'executionTime',\n 'productName',\n 'requestedVariant',\n 'requestTime',\n 'stockStatus',\n 'timestamp',\n 'totalExecutionTime',\n 'url'\n ]\n },\n errorMessage: {\n type: 'string'\n },\n executionTimeMs: {\n type: 'number'\n },\n productLink: {\n type: 'string'\n },\n requestedVariant: {\n type: 'object',\n additionalProperties: true\n },\n scraperStatusCode: {\n type: 'number'\n }\n },\n required: [ 'createdAt',\n 'message',\n 'requestId',\n 'status',\n 'success',\n 'updatedAt'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
id: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'The variant check request ID',
|
|
28
|
-
},
|
|
29
|
-
jq_filter: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
title: 'jq Filter',
|
|
32
|
-
description:
|
|
33
|
-
'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/).',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
required: ['id'],
|
|
37
|
-
},
|
|
38
|
-
annotations: {
|
|
39
|
-
readOnlyHint: true,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const handler = async (client: HenrySDK, args: Record<string, unknown> | undefined) => {
|
|
44
|
-
const { id, jq_filter, ...body } = args as any;
|
|
45
|
-
return asTextContentResult(
|
|
46
|
-
await maybeFilter(jq_filter, await client.products.variantCheck.retrieveStatus(id)),
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default { metadata, tool, handler };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout-cart.js","sourceRoot":"","sources":["../../src/tools/cart/create-checkout-cart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,8jCAA8jC;IAChkC,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout-cart.mjs","sourceRoot":"","sources":["../../src/tools/cart/create-checkout-cart.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,EAAE;IACR,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,8jCAA8jC;IAChkC,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cart-items.d.mts","sourceRoot":"","sources":["../../../src/tools/cart/items/add-cart-items.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,IAoElB,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cart-items.d.ts","sourceRoot":"","sources":["../../../src/tools/cart/items/add-cart-items.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,IAoElB,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"}
|
|
@@ -1,86 +0,0 @@
|
|
|
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: 'cart.items',
|
|
9
|
-
operation: 'write',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'post',
|
|
12
|
-
httpPath: '/cart/items',
|
|
13
|
-
operationId: 'addCartItems',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'add_cart_items',
|
|
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\nAdds product data to existing cart or create a new one.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/item_add_response',\n $defs: {\n item_add_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 added_products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n price: {\n type: 'string'\n },\n productId: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'name',\n 'price',\n 'productId',\n 'quantity'\n ]\n }\n },\n cart_summary: {\n type: 'object',\n properties: {\n total_items: {\n type: 'number'\n },\n total_unique_products: {\n type: 'number'\n }\n },\n required: [ 'total_items',\n 'total_unique_products'\n ]\n },\n updated_products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n addedQuantity: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n previousQuantity: {\n type: 'number'\n },\n price: {\n type: 'string'\n },\n productId: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'addedQuantity',\n 'name',\n 'previousQuantity',\n 'price',\n 'productId',\n 'quantity'\n ]\n }\n },\n variant_checks: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n productId: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n variantCheckRequestId: {\n type: 'string'\n }\n },\n required: [ 'productId',\n 'status',\n 'variantCheckRequestId'\n ]\n }\n }\n },\n required: [ 'added_products',\n 'cart_summary',\n 'updated_products'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
productsDetails: {
|
|
22
|
-
type: 'array',
|
|
23
|
-
items: {
|
|
24
|
-
type: 'object',
|
|
25
|
-
properties: {
|
|
26
|
-
name: {
|
|
27
|
-
type: 'string',
|
|
28
|
-
description: 'Product name',
|
|
29
|
-
},
|
|
30
|
-
price: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
description: 'Product price',
|
|
33
|
-
},
|
|
34
|
-
productLink: {
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'Product link',
|
|
37
|
-
},
|
|
38
|
-
quantity: {
|
|
39
|
-
type: 'number',
|
|
40
|
-
description: 'Quantity',
|
|
41
|
-
},
|
|
42
|
-
affiliateProductLink: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
description: 'Affiliate product link (if provided, will be used instead of productLink for order fulfillment)',
|
|
45
|
-
},
|
|
46
|
-
metadata: {
|
|
47
|
-
type: 'object',
|
|
48
|
-
description: 'Product metadata',
|
|
49
|
-
additionalProperties: true,
|
|
50
|
-
},
|
|
51
|
-
productId: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
description: 'Product Id',
|
|
54
|
-
},
|
|
55
|
-
productImageLink: {
|
|
56
|
-
type: 'string',
|
|
57
|
-
description: 'Product image link (thumbnail)',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
required: ['name', 'price', 'productLink', 'quantity'],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
'x-user-id': {
|
|
64
|
-
type: 'string',
|
|
65
|
-
},
|
|
66
|
-
checkVariantAvailability: {
|
|
67
|
-
type: 'boolean',
|
|
68
|
-
description: 'Whether to check variant availability after adding to cart. If true, variant check requests will be created for products with metadata and requestIds returned.',
|
|
69
|
-
},
|
|
70
|
-
jq_filter: {
|
|
71
|
-
type: 'string',
|
|
72
|
-
title: 'jq Filter',
|
|
73
|
-
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/).',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
required: ['productsDetails', 'x-user-id'],
|
|
77
|
-
},
|
|
78
|
-
annotations: {},
|
|
79
|
-
};
|
|
80
|
-
const handler = async (client, args) => {
|
|
81
|
-
const { jq_filter, ...body } = args;
|
|
82
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.cart.items.add(body)));
|
|
83
|
-
};
|
|
84
|
-
exports.handler = handler;
|
|
85
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
86
|
-
//# sourceMappingURL=add-cart-items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cart-items.js","sourceRoot":"","sources":["../../../src/tools/cart/items/add-cart-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,8iHAA8iH;IAChjH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,cAAc;yBAC5B;wBACD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,eAAe;yBAC7B;wBACD,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,cAAc;yBAC5B;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,UAAU;yBACxB;wBACD,oBAAoB,EAAE;4BACpB,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,iGAAiG;yBACpG;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,kBAAkB;4BAC/B,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,YAAY;yBAC1B;wBACD,gBAAgB,EAAE;4BAChB,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,gCAAgC;yBAC9C;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC;iBACvD;aACF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,wBAAwB,EAAE;gBACxB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iKAAiK;aACpK;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,WAAW,CAAC;KAC3C;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,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
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: 'cart.items',
|
|
6
|
-
operation: 'write',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'post',
|
|
9
|
-
httpPath: '/cart/items',
|
|
10
|
-
operationId: 'addCartItems',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'add_cart_items',
|
|
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\nAdds product data to existing cart or create a new one.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/item_add_response',\n $defs: {\n item_add_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 added_products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n price: {\n type: 'string'\n },\n productId: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'name',\n 'price',\n 'productId',\n 'quantity'\n ]\n }\n },\n cart_summary: {\n type: 'object',\n properties: {\n total_items: {\n type: 'number'\n },\n total_unique_products: {\n type: 'number'\n }\n },\n required: [ 'total_items',\n 'total_unique_products'\n ]\n },\n updated_products: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n addedQuantity: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n previousQuantity: {\n type: 'number'\n },\n price: {\n type: 'string'\n },\n productId: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'addedQuantity',\n 'name',\n 'previousQuantity',\n 'price',\n 'productId',\n 'quantity'\n ]\n }\n },\n variant_checks: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n productId: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n variantCheckRequestId: {\n type: 'string'\n }\n },\n required: [ 'productId',\n 'status',\n 'variantCheckRequestId'\n ]\n }\n }\n },\n required: [ 'added_products',\n 'cart_summary',\n 'updated_products'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
productsDetails: {
|
|
19
|
-
type: 'array',
|
|
20
|
-
items: {
|
|
21
|
-
type: 'object',
|
|
22
|
-
properties: {
|
|
23
|
-
name: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'Product name',
|
|
26
|
-
},
|
|
27
|
-
price: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
description: 'Product price',
|
|
30
|
-
},
|
|
31
|
-
productLink: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
description: 'Product link',
|
|
34
|
-
},
|
|
35
|
-
quantity: {
|
|
36
|
-
type: 'number',
|
|
37
|
-
description: 'Quantity',
|
|
38
|
-
},
|
|
39
|
-
affiliateProductLink: {
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: 'Affiliate product link (if provided, will be used instead of productLink for order fulfillment)',
|
|
42
|
-
},
|
|
43
|
-
metadata: {
|
|
44
|
-
type: 'object',
|
|
45
|
-
description: 'Product metadata',
|
|
46
|
-
additionalProperties: true,
|
|
47
|
-
},
|
|
48
|
-
productId: {
|
|
49
|
-
type: 'string',
|
|
50
|
-
description: 'Product Id',
|
|
51
|
-
},
|
|
52
|
-
productImageLink: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
description: 'Product image link (thumbnail)',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
required: ['name', 'price', 'productLink', 'quantity'],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
'x-user-id': {
|
|
61
|
-
type: 'string',
|
|
62
|
-
},
|
|
63
|
-
checkVariantAvailability: {
|
|
64
|
-
type: 'boolean',
|
|
65
|
-
description: 'Whether to check variant availability after adding to cart. If true, variant check requests will be created for products with metadata and requestIds returned.',
|
|
66
|
-
},
|
|
67
|
-
jq_filter: {
|
|
68
|
-
type: 'string',
|
|
69
|
-
title: 'jq Filter',
|
|
70
|
-
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/).',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
required: ['productsDetails', 'x-user-id'],
|
|
74
|
-
},
|
|
75
|
-
annotations: {},
|
|
76
|
-
};
|
|
77
|
-
export const handler = async (client, args) => {
|
|
78
|
-
const { jq_filter, ...body } = args;
|
|
79
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.add(body)));
|
|
80
|
-
};
|
|
81
|
-
export default { metadata, tool, handler };
|
|
82
|
-
//# sourceMappingURL=add-cart-items.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cart-items.mjs","sourceRoot":"","sources":["../../../src/tools/cart/items/add-cart-items.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,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,8iHAA8iH;IAChjH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,cAAc;yBAC5B;wBACD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,eAAe;yBAC7B;wBACD,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,cAAc;yBAC5B;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,UAAU;yBACxB;wBACD,oBAAoB,EAAE;4BACpB,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,iGAAiG;yBACpG;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,kBAAkB;4BAC/B,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,YAAY;yBAC1B;wBACD,gBAAgB,EAAE;4BAChB,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,gCAAgC;yBAC9C;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC;iBACvD;aACF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,wBAAwB,EAAE;gBACxB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iKAAiK;aACpK;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,WAAW,CAAC;KAC3C;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,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-cart-items.d.mts","sourceRoot":"","sources":["../../../src/tools/cart/items/clear-cart-items.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,IAsBlB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=clear-cart-items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-cart-items.d.ts","sourceRoot":"","sources":["../../../src/tools/cart/items/clear-cart-items.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,IAsBlB,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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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: 'cart.items',
|
|
9
|
-
operation: 'write',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'delete',
|
|
12
|
-
httpPath: '/cart/items',
|
|
13
|
-
operationId: 'deleteAllCartItems',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'clear_cart_items',
|
|
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\nDelete all products from the cart\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/item_clear_response',\n $defs: {\n item_clear_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 },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
'x-user-id': {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
jq_filter: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
title: 'jq Filter',
|
|
27
|
-
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/).',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
required: ['x-user-id'],
|
|
31
|
-
},
|
|
32
|
-
annotations: {
|
|
33
|
-
idempotentHint: true,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
const handler = async (client, args) => {
|
|
37
|
-
const { jq_filter, ...body } = args;
|
|
38
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.cart.items.clear(body)));
|
|
39
|
-
};
|
|
40
|
-
exports.handler = handler;
|
|
41
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
42
|
-
//# sourceMappingURL=clear-cart-items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-cart-items.js","sourceRoot":"","sources":["../../../src/tools/cart/items/clear-cart-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,uoBAAuoB;IACzoB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,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,WAAW,CAAC;KACxB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,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,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
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: 'cart.items',
|
|
6
|
-
operation: 'write',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'delete',
|
|
9
|
-
httpPath: '/cart/items',
|
|
10
|
-
operationId: 'deleteAllCartItems',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'clear_cart_items',
|
|
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\nDelete all products from the cart\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/item_clear_response',\n $defs: {\n item_clear_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 },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
'x-user-id': {
|
|
19
|
-
type: 'string',
|
|
20
|
-
},
|
|
21
|
-
jq_filter: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
title: 'jq Filter',
|
|
24
|
-
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/).',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
required: ['x-user-id'],
|
|
28
|
-
},
|
|
29
|
-
annotations: {
|
|
30
|
-
idempotentHint: true,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
export const handler = async (client, args) => {
|
|
34
|
-
const { jq_filter, ...body } = args;
|
|
35
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.clear(body)));
|
|
36
|
-
};
|
|
37
|
-
export default { metadata, tool, handler };
|
|
38
|
-
//# sourceMappingURL=clear-cart-items.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-cart-items.mjs","sourceRoot":"","sources":["../../../src/tools/cart/items/clear-cart-items.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,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,uoBAAuoB;IACzoB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,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,WAAW,CAAC;KACxB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,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,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=list-cart-items.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-cart-items.d.mts","sourceRoot":"","sources":["../../../src/tools/cart/items/list-cart-items.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,IAsBlB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=list-cart-items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-cart-items.d.ts","sourceRoot":"","sources":["../../../src/tools/cart/items/list-cart-items.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,IAsBlB,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"}
|