ebay-mcp 1.13.2 → 1.14.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.
Files changed (169) hide show
  1. package/README.de.md +3 -3
  2. package/README.es.md +3 -3
  3. package/README.fr.md +3 -3
  4. package/README.ja.md +3 -3
  5. package/README.ko.md +3 -3
  6. package/README.md +163 -41
  7. package/README.pt-BR.md +3 -3
  8. package/README.ru.md +3 -3
  9. package/README.zh-CN.md +3 -3
  10. package/build/api/account-management/account.js +633 -297
  11. package/build/api/analytics-and-report/analytics.js +111 -65
  12. package/build/api/client.js +199 -140
  13. package/build/api/clientRequestError.js +23 -0
  14. package/build/api/clientTrading.js +213 -0
  15. package/build/api/clientTradingError.js +4 -0
  16. package/build/api/communication/feedback.js +147 -59
  17. package/build/api/communication/message.js +134 -81
  18. package/build/api/communication/negotiation.js +65 -53
  19. package/build/api/communication/notification.js +458 -164
  20. package/build/api/developer/developer.js +99 -45
  21. package/build/api/index.js +23 -8
  22. package/build/api/listing-management/inventory.js +884 -338
  23. package/build/api/listing-metadata/metadata.js +416 -170
  24. package/build/api/listing-metadata/taxonomy.js +187 -42
  25. package/build/api/marketing-and-promotions/marketing.js +1392 -598
  26. package/build/api/marketing-and-promotions/recommendation.js +49 -24
  27. package/build/api/order-management/dispute.js +226 -45
  28. package/build/api/order-management/fulfillment.js +144 -71
  29. package/build/api/order-management/orderIssueHelpers.js +61 -0
  30. package/build/api/other/compliance.js +50 -38
  31. package/build/api/other/edelivery.js +603 -159
  32. package/build/api/other/finding.js +280 -0
  33. package/build/api/other/identity.js +30 -15
  34. package/build/api/other/translation.js +29 -14
  35. package/build/api/other/vero.js +113 -27
  36. package/build/api/rateLimitTracker.js +55 -0
  37. package/build/api/shared/request.js +189 -98
  38. package/build/api/trading/trading.js +154 -87
  39. package/build/auth/credentialSession.js +250 -0
  40. package/build/auth/oauth.js +298 -171
  41. package/build/auth/{oauth-metadata.js → oauthMetadata.js} +22 -6
  42. package/build/auth/oauthMiddleware.js +104 -0
  43. package/build/auth/{scope-utils.js → scopeUtils.js} +101 -28
  44. package/build/auth/tokenVerifier.js +243 -0
  45. package/build/auth/tokenVerifierError.js +21 -0
  46. package/build/config/environment.js +148 -113
  47. package/build/config/{tool-families.js → toolFamilies.js} +30 -14
  48. package/build/index.js +25 -19
  49. package/build/mcp/{http-transport.js → httpTransport.js} +102 -52
  50. package/build/mcp/readOnlyFilter.js +67 -0
  51. package/build/mcp/runtime.js +31 -13
  52. package/build/mcp/{tool-gating.js → toolGating.js} +77 -49
  53. package/build/mcp/{ui-bridge.js → uiBridge.js} +80 -23
  54. package/build/schemas/account-management/account.js +144 -6
  55. package/build/schemas/analytics/analytics.js +33 -19
  56. package/build/schemas/communication/messages.js +12 -42
  57. package/build/schemas/developer/developer.js +135 -0
  58. package/build/schemas/fulfillment/orders.js +183 -21
  59. package/build/schemas/index.js +27 -19
  60. package/build/schemas/inventory-management/inventory.js +17 -9
  61. package/build/schemas/marketing/marketing.js +480 -25
  62. package/build/schemas/metadata/metadata.js +11 -6
  63. package/build/schemas/other/finding.js +27 -0
  64. package/build/schemas/other/otherApis.js +424 -0
  65. package/build/schemas/taxonomy/taxonomy.js +11 -5
  66. package/build/scripts/{auto-setup.js → autoSetup.js} +87 -74
  67. package/build/scripts/{build-ui.js → buildUi.js} +6 -1
  68. package/build/scripts/{dev-sync.js → devSync.js} +169 -110
  69. package/build/scripts/diagnostics.js +52 -44
  70. package/build/scripts/{download-specs.js → downloadSpecs.js} +29 -21
  71. package/build/scripts/{interactive-setup.js → interactiveSetup.js} +84 -78
  72. package/build/scripts/setup.js +241 -178
  73. package/build/scripts/{setup-shared.js → setupShared.js} +29 -7
  74. package/build/scripts/skills.js +35 -27
  75. package/build/scripts/updateApiStatusDoc.js +71 -0
  76. package/build/serverHttp.js +90 -0
  77. package/build/skills/content.js +124 -118
  78. package/build/skills/index.js +22 -10
  79. package/build/skills/install.js +21 -10
  80. package/build/skills/markers.js +50 -15
  81. package/build/skills/{registry-snapshot.js → registrySnapshot.js} +8 -2
  82. package/build/skills/render.js +41 -14
  83. package/build/skills/targets.js +49 -17
  84. package/build/tools/categories/account.js +166 -264
  85. package/build/tools/categories/analytics.js +11 -22
  86. package/build/tools/categories/browse.js +17 -0
  87. package/build/tools/categories/communication.js +124 -399
  88. package/build/tools/categories/connector.js +23 -20
  89. package/build/tools/categories/developer.js +46 -159
  90. package/build/tools/categories/fulfillment.js +84 -215
  91. package/build/tools/categories/index.js +6 -14
  92. package/build/tools/categories/inventory.js +238 -293
  93. package/build/tools/categories/marketing.js +677 -39
  94. package/build/tools/categories/metadata.js +190 -117
  95. package/build/tools/categories/other.js +81 -208
  96. package/build/tools/categories/taxonomy.js +29 -20
  97. package/build/tools/categories/{token-management.js → tokenManagement.js} +187 -192
  98. package/build/tools/categories/trading.js +16 -47
  99. package/build/tools/contracts.js +34 -24
  100. package/build/tools/{define-tool.js → defineTool.js} +44 -29
  101. package/build/tools/registry.js +87 -29
  102. package/build/tools/schemas.js +3 -57
  103. package/build/tools/ui/archetypes.js +1 -0
  104. package/build/tools/ui/{map-helpers.js → mapHelpers.js} +69 -19
  105. package/build/tools/ui/maps.js +294 -80
  106. package/build/types/index.js +1 -1
  107. package/build/ui/card.html +14 -14
  108. package/build/ui/chart.html +14 -14
  109. package/build/ui/stat.html +87 -0
  110. package/build/ui/table.html +14 -14
  111. package/build/utils/apiStatusFeed.js +95 -0
  112. package/build/utils/cliOutput.js +15 -0
  113. package/build/utils/cliUi.js +108 -0
  114. package/build/utils/communication/feedback.js +57 -77
  115. package/build/utils/communication/message.js +69 -98
  116. package/build/utils/communication/negotiation.js +30 -57
  117. package/build/utils/communication/notification.js +112 -252
  118. package/build/utils/{date-converter.js → dateConverter.js} +62 -30
  119. package/build/utils/effectSchema.js +203 -0
  120. package/build/utils/effectSchemaAdapter.js +121 -0
  121. package/build/utils/effectSchemaChainMethods.js +146 -0
  122. package/build/utils/effectSchemaRefinements.js +104 -0
  123. package/build/utils/effectSchemaStringMethods.js +63 -0
  124. package/build/utils/effectSchemaTypes.js +47 -0
  125. package/build/utils/{env-parser.js → envParser.js} +10 -2
  126. package/build/utils/errors.js +7 -3
  127. package/build/utils/http.js +148 -89
  128. package/build/utils/{llm-client-detector.js → llmClientDetector.js} +295 -274
  129. package/build/utils/logger.js +127 -51
  130. package/build/utils/{oauth-helper.js → oauthHelper.js} +127 -90
  131. package/build/utils/other/compliance.js +18 -38
  132. package/build/utils/other/identity.js +2 -2
  133. package/build/utils/other/translation.js +4 -4
  134. package/build/utils/other/vero.js +36 -20
  135. package/build/utils/schemaHelpers.js +22 -0
  136. package/build/utils/scopeHelper.js +270 -0
  137. package/build/utils/securityChecker.js +316 -0
  138. package/build/utils/{setup-validator.js → setupValidator.js} +113 -94
  139. package/build/utils/{setup-wizard.js → setupWizard.js} +57 -46
  140. package/build/utils/{token-utils.js → tokenUtils.js} +2 -2
  141. package/build/utils/trading/trading.js +35 -0
  142. package/build/utils/typeGuards.js +12 -0
  143. package/build/utils/version.js +65 -29
  144. package/package.json +10 -8
  145. package/build/api/client-trading.js +0 -124
  146. package/build/api/communication/shared.js +0 -59
  147. package/build/api/shared/query-params.js +0 -16
  148. package/build/auth/credential-session.js +0 -166
  149. package/build/auth/oauth-middleware.js +0 -100
  150. package/build/auth/token-verifier.js +0 -186
  151. package/build/schemas/other/other-apis.js +0 -390
  152. package/build/scripts/update-api-status-doc.js +0 -44
  153. package/build/server-http.js +0 -85
  154. package/build/tools/definitions/marketing.js +0 -1381
  155. package/build/tools/tool-handlers/marketing.js +0 -312
  156. package/build/utils/account-management/account.js +0 -818
  157. package/build/utils/api-status-feed.js +0 -84
  158. package/build/utils/cli-ui.js +0 -47
  159. package/build/utils/order-management/dispute.js +0 -369
  160. package/build/utils/order-management/fulfillment.js +0 -205
  161. package/build/utils/other/edelivery.js +0 -235
  162. package/build/utils/schema-helpers.js +0 -13
  163. package/build/utils/scope-helper.js +0 -207
  164. package/build/utils/security-checker.js +0 -248
  165. package/build/utils/type-guards.js +0 -6
  166. /package/build/auth/{oauth-types.js → oauthTypes.js} +0 -0
  167. /package/build/{server-http.d.ts → serverHttp.d.ts} +0 -0
  168. /package/build/tools/ui/{view-models.js → viewModels.js} +0 -0
  169. /package/build/types/{ebay-enums.js → ebayEnums.js} +0 -0
@@ -1,508 +1,453 @@
1
- import { z } from 'zod';
1
+ import { Effect } from 'effect';
2
+ import { z } from '../../utils/effectSchema.js';
2
3
  import { zodToJsonSchema } from 'zod-to-json-schema';
3
- import { MarketplaceId } from '../../types/ebay-enums.js';
4
- import { defineTool } from '../../tools/define-tool.js';
4
+ import { defineTool } from '../../tools/defineTool.js';
5
5
  import { mapInventoryItemsToTable, mapInventoryItemToCard, mapLocationsToTable, mapOffersToTable, mapOfferToCard, } from '../../tools/ui/maps.js';
6
- import { bulkInventoryItemRequestSchema, bulkMigrateRequestSchema, bulkOfferRequestSchema, bulkPriceQuantityRequestSchema, bulkPublishRequestSchema, inventoryItemGroupSchema, inventoryItemSchema, listingFeesRequestSchema, locationSchema, offerSchema, productCompatibilitySchema, } from '../schemas.js';
7
- import { getInventoryItemsOutputSchema, getInventoryItemOutputSchema, createInventoryItemOutputSchema, getOffersOutputSchema, createOfferOutputSchema, publishOfferOutputSchema, offerResponseSchema, getInventoryLocationsOutputSchema, createInventoryLocationOutputSchema, getProductCompatibilityOutputSchema, getInventoryItemGroupOutputSchema, bulkInventoryItemResponseSchema, bulkOfferResponseSchema, bulkPublishResponseSchema, } from '../../schemas/inventory-management/inventory.js';
6
+ import { MarketplaceId } from '../../types/ebayEnums.js';
7
+ import { bulkInventoryItemResponseSchema, bulkOfferResponseSchema, bulkPublishResponseSchema, createInventoryItemOutputSchema, createInventoryLocationOutputSchema, createOfferOutputSchema, getInventoryItemGroupOutputSchema, getInventoryItemOutputSchema, getInventoryItemsOutputSchema, getInventoryLocationsOutputSchema, getOffersOutputSchema, getProductCompatibilityOutputSchema, offerResponseSchema, publishOfferOutputSchema, } from '../../schemas/inventory-management/inventory.js';
8
+ const emptyOutputSchema = {
9
+ type: 'object',
10
+ properties: {},
11
+ description: 'No content returned on success',
12
+ };
13
+ const generatedBodySchema = (description) => z
14
+ .custom((value) => value !== null && typeof value === 'object' && !Array.isArray(value), {
15
+ message: description,
16
+ })
17
+ .describe(description);
18
+ const skuInputSchema = z.object({
19
+ sku: z.string().describe('The seller-defined SKU'),
20
+ });
21
+ const inventoryPaginationInputSchema = z.object({
22
+ limit: z.number().optional().describe('Number of records to return'),
23
+ offset: z.number().optional().describe('Number of records to skip'),
24
+ });
25
+ const createOrReplaceInventoryItemInputSchema = skuInputSchema.extend({
26
+ body: generatedBodySchema('Generated InventoryItem request body'),
27
+ });
28
+ const bulkCreateOrReplaceInventoryItemInputSchema = z.object({
29
+ body: generatedBodySchema('Generated BulkInventoryItem request body'),
30
+ });
31
+ const bulkGetInventoryItemInputSchema = z.object({
32
+ body: generatedBodySchema('Generated BulkGetInventoryItem request body'),
33
+ });
34
+ const bulkUpdatePriceQuantityInputSchema = z.object({
35
+ body: generatedBodySchema('Generated BulkPriceQuantity request body'),
36
+ });
37
+ const createOrReplaceProductCompatibilityInputSchema = skuInputSchema.extend({
38
+ body: generatedBodySchema('Generated Compatibility request body'),
39
+ });
40
+ const inventoryItemGroupKeyInputSchema = z.object({
41
+ inventoryItemGroupKey: z.string().describe('The inventory item group key'),
42
+ });
43
+ const createOrReplaceInventoryItemGroupInputSchema = inventoryItemGroupKeyInputSchema.extend({
44
+ body: generatedBodySchema('Generated InventoryItemGroup request body'),
45
+ });
46
+ const merchantLocationKeyInputSchema = z.object({
47
+ merchantLocationKey: z.string().describe('The merchant location key'),
48
+ });
49
+ const createInventoryLocationInputSchema = merchantLocationKeyInputSchema.extend({
50
+ body: generatedBodySchema('Generated InventoryLocationFull request body'),
51
+ });
52
+ const updateInventoryLocationInputSchema = merchantLocationKeyInputSchema.extend({
53
+ body: generatedBodySchema('Generated InventoryLocation request body'),
54
+ });
55
+ const getOffersInputSchema = z.object({
56
+ format: z.string().optional().describe('Filter by listing format'),
57
+ limit: z.number().optional().describe('Number of offers to return'),
58
+ marketplaceId: z.nativeEnum(MarketplaceId).optional().describe('Filter by marketplace ID'),
59
+ offset: z.number().optional().describe('Number of offers to skip'),
60
+ sku: z.string().optional().describe('Filter by SKU'),
61
+ });
62
+ const offerIdInputSchema = z.object({
63
+ offerId: z.string().describe('The offer ID'),
64
+ });
65
+ const createOfferInputSchema = z.object({
66
+ body: generatedBodySchema('Generated EbayOfferDetailsWithKeys request body'),
67
+ });
68
+ const updateOfferInputSchema = offerIdInputSchema.extend({
69
+ body: generatedBodySchema('Generated EbayOfferDetailsWithId request body'),
70
+ });
71
+ const bulkCreateOfferInputSchema = z.object({
72
+ body: generatedBodySchema('Generated BulkEbayOfferDetailsWithKeys request body'),
73
+ });
74
+ const bulkPublishOfferInputSchema = z.object({
75
+ body: generatedBodySchema('Generated BulkOffer request body'),
76
+ });
77
+ const getListingFeesInputSchema = z.object({
78
+ body: generatedBodySchema('Generated OfferKeysWithId request body'),
79
+ });
80
+ const bulkMigrateListingInputSchema = z.object({
81
+ body: generatedBodySchema('Generated BulkMigrateListing request body'),
82
+ });
83
+ const skuLocationMappingInputSchema = z.object({
84
+ listingId: z.string().describe('The listing ID'),
85
+ sku: z.string().describe('The seller-defined SKU'),
86
+ });
87
+ const locationMappingSchema = z
88
+ .object({
89
+ locations: z
90
+ .array(z
91
+ .object({
92
+ merchantLocationKey: z.string().describe('The fulfillment center location key'),
93
+ })
94
+ .passthrough())
95
+ .optional(),
96
+ })
97
+ .passthrough();
98
+ const createOrReplaceSkuLocationMappingInputSchema = skuLocationMappingInputSchema.extend({
99
+ body: generatedBodySchema('Generated LocationMapping request body'),
100
+ });
101
+ const publishOfferByInventoryItemGroupInputSchema = z.object({
102
+ body: generatedBodySchema('Generated PublishByInventoryItemGroup body'),
103
+ });
104
+ const withdrawOfferByInventoryItemGroupInputSchema = z.object({
105
+ body: generatedBodySchema('Generated WithdrawByInventoryItemGroup body'),
106
+ });
107
+ const locationMappingOutputSchema = locationMappingSchema.extend({
108
+ warnings: z.array(z.object({}).passthrough()).optional(),
109
+ });
110
+ const listingFeesOutputSchema = z
111
+ .object({
112
+ feeSummaries: z.array(z.object({}).passthrough()).optional(),
113
+ warnings: z.array(z.object({}).passthrough()).optional(),
114
+ })
115
+ .passthrough();
8
116
  /** Inventory API tools for seller inventory items, offers, locations, and bulk operations. */
9
117
  export const inventoryEntries = [
10
118
  defineTool({
11
119
  name: 'ebay_get_inventory_items',
12
120
  description: 'Retrieve all inventory items for the seller.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
13
- inputSchema: {
14
- limit: z.number().optional().describe('Number of items to return (max 100)'),
15
- offset: z.number().optional().describe('Number of items to skip'),
16
- },
121
+ inputSchema: inventoryPaginationInputSchema.shape,
17
122
  outputSchema: zodToJsonSchema(getInventoryItemsOutputSchema, {
18
123
  name: 'GetInventoryItemsResponse',
19
124
  $refStrategy: 'none',
20
125
  }),
21
- handler: (api, args) => api.inventory.getInventoryItems(args.limit, args.offset),
126
+ handler: (api, args) => Effect.runPromise(api.inventory.getInventoryItems(args)),
22
127
  ui: { archetype: 'table', map: mapInventoryItemsToTable },
23
128
  }),
24
129
  defineTool({
25
130
  name: 'ebay_get_inventory_item',
26
131
  description: 'Get a specific inventory item by SKU.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
27
- inputSchema: {
28
- sku: z.string().describe('The seller-defined SKU'),
29
- },
132
+ inputSchema: skuInputSchema.shape,
30
133
  outputSchema: zodToJsonSchema(getInventoryItemOutputSchema, {
31
134
  name: 'GetInventoryItemResponse',
32
135
  $refStrategy: 'none',
33
136
  }),
34
- handler: (api, args) => api.inventory.getInventoryItem(args.sku),
137
+ handler: (api, args) => Effect.runPromise(api.inventory.getInventoryItem(args)),
35
138
  ui: { archetype: 'card', map: mapInventoryItemToCard },
36
139
  }),
37
140
  defineTool({
38
- name: 'ebay_create_inventory_item',
141
+ name: 'ebay_create_or_replace_inventory_item',
39
142
  description: 'Create or replace an inventory item.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
40
- inputSchema: {
41
- sku: z.string().describe('The seller-defined SKU'),
42
- inventoryItem: inventoryItemSchema.describe('Inventory item details'),
43
- },
143
+ inputSchema: createOrReplaceInventoryItemInputSchema.shape,
44
144
  outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
45
- name: 'CreateInventoryItemResponse',
145
+ name: 'CreateOrReplaceInventoryItemResponse',
46
146
  $refStrategy: 'none',
47
147
  }),
48
- handler: (api, args) => api.inventory.createOrReplaceInventoryItem(args.sku, args.inventoryItem),
148
+ handler: (api, args) => Effect.runPromise(api.inventory.createOrReplaceInventoryItem(args)),
49
149
  }),
50
150
  defineTool({
51
151
  name: 'ebay_delete_inventory_item',
52
152
  description: 'Delete an inventory item by SKU.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
53
- inputSchema: {
54
- sku: z.string().describe('The seller-defined SKU to delete'),
55
- },
56
- outputSchema: {
57
- type: 'object',
58
- properties: {},
59
- description: 'Empty response on successful deletion (HTTP 204)',
60
- },
61
- handler: (api, args) => api.inventory.deleteInventoryItem(args.sku),
153
+ inputSchema: skuInputSchema.shape,
154
+ outputSchema: emptyOutputSchema,
155
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteInventoryItem(args)),
62
156
  }),
63
- defineTool({
64
- name: 'ebay_get_offers',
65
- description: 'Get all offers for the seller',
66
- inputSchema: {
67
- sku: z.string().optional().describe('Filter by SKU'),
68
- marketplaceId: z.nativeEnum(MarketplaceId).optional().describe('Filter by marketplace ID'),
69
- limit: z.number().optional().describe('Number of offers to return'),
70
- },
71
- outputSchema: zodToJsonSchema(getOffersOutputSchema, {
72
- name: 'GetOffersResponse',
73
- $refStrategy: 'none',
74
- }),
75
- handler: (api, args) => api.inventory.getOffers(args.sku, args.marketplaceId, args.limit),
76
- ui: { archetype: 'table', map: mapOffersToTable },
77
- }),
78
- defineTool({
79
- name: 'ebay_create_offer',
80
- description: 'Create a new offer for an inventory item',
81
- inputSchema: {
82
- offer: offerSchema.describe('Offer details including SKU, marketplace, pricing, and policies'),
83
- },
84
- outputSchema: zodToJsonSchema(createOfferOutputSchema, {
85
- name: 'CreateOfferResponse',
86
- $refStrategy: 'none',
87
- }),
88
- handler: (api, args) => api.inventory.createOffer(args.offer),
89
- }),
90
- defineTool({
91
- name: 'ebay_publish_offer',
92
- description: 'Publish an offer to create a listing',
93
- inputSchema: {
94
- offerId: z.string().describe('The offer ID to publish'),
95
- },
96
- outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
97
- name: 'PublishOfferResponse',
98
- $refStrategy: 'none',
99
- }),
100
- handler: (api, args) => api.inventory.publishOffer(args.offerId),
101
- }),
102
- // Bulk Operations
103
157
  defineTool({
104
158
  name: 'ebay_bulk_create_or_replace_inventory_item',
105
159
  description: 'Bulk create or replace multiple inventory items',
106
- inputSchema: {
107
- requests: bulkInventoryItemRequestSchema.describe('Bulk inventory item requests'),
108
- },
160
+ inputSchema: bulkCreateOrReplaceInventoryItemInputSchema.shape,
109
161
  outputSchema: zodToJsonSchema(bulkInventoryItemResponseSchema, {
110
162
  name: 'BulkInventoryItemResponse',
111
163
  $refStrategy: 'none',
112
164
  }),
113
- handler: (api, args) => api.inventory.bulkCreateOrReplaceInventoryItem(args.requests),
165
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkCreateOrReplaceInventoryItem(args)),
114
166
  }),
115
167
  defineTool({
116
168
  name: 'ebay_bulk_get_inventory_item',
117
169
  description: 'Bulk get multiple inventory items',
118
- inputSchema: {
119
- requests: z
120
- .object({
121
- requests: z.array(z
122
- .object({
123
- sku: z.string(),
124
- })
125
- .passthrough()),
126
- })
127
- .passthrough()
128
- .describe('Bulk inventory item get requests with SKU list'),
129
- },
170
+ inputSchema: bulkGetInventoryItemInputSchema.shape,
130
171
  outputSchema: zodToJsonSchema(bulkInventoryItemResponseSchema, {
131
172
  name: 'BulkGetInventoryItemResponse',
132
173
  $refStrategy: 'none',
133
174
  }),
134
- handler: (api, args) => api.inventory.bulkGetInventoryItem(args.requests),
175
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkGetInventoryItem(args)),
135
176
  }),
136
177
  defineTool({
137
178
  name: 'ebay_bulk_update_price_quantity',
138
179
  description: 'Bulk update price and quantity for multiple offers',
139
- inputSchema: {
140
- requests: bulkPriceQuantityRequestSchema.describe('Bulk price and quantity update requests'),
141
- },
180
+ inputSchema: bulkUpdatePriceQuantityInputSchema.shape,
142
181
  outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
143
182
  name: 'BulkUpdatePriceQuantityResponse',
144
183
  $refStrategy: 'none',
145
184
  }),
146
- handler: (api, args) => api.inventory.bulkUpdatePriceQuantity(args.requests),
185
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkUpdatePriceQuantity(args)),
147
186
  }),
148
- // Product Compatibility
149
187
  defineTool({
150
188
  name: 'ebay_get_product_compatibility',
151
189
  description: 'Get product compatibility information for an inventory item',
152
- inputSchema: {
153
- sku: z.string().describe('The seller-defined SKU'),
154
- },
190
+ inputSchema: skuInputSchema.shape,
155
191
  outputSchema: zodToJsonSchema(getProductCompatibilityOutputSchema, {
156
192
  name: 'GetProductCompatibilityResponse',
157
193
  $refStrategy: 'none',
158
194
  }),
159
- handler: (api, args) => api.inventory.getProductCompatibility(args.sku),
195
+ handler: (api, args) => Effect.runPromise(api.inventory.getProductCompatibility(args)),
160
196
  }),
161
197
  defineTool({
162
198
  name: 'ebay_create_or_replace_product_compatibility',
163
199
  description: 'Create or replace product compatibility for an inventory item',
164
- inputSchema: {
165
- sku: z.string().describe('The seller-defined SKU'),
166
- compatibility: productCompatibilitySchema.describe('Product compatibility details'),
167
- },
200
+ inputSchema: createOrReplaceProductCompatibilityInputSchema.shape,
168
201
  outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
169
202
  name: 'CreateProductCompatibilityResponse',
170
203
  $refStrategy: 'none',
171
204
  }),
172
- handler: (api, args) => api.inventory.createOrReplaceProductCompatibility(args.sku, args.compatibility),
205
+ handler: (api, args) => Effect.runPromise(api.inventory.createOrReplaceProductCompatibility(args)),
173
206
  }),
174
207
  defineTool({
175
208
  name: 'ebay_delete_product_compatibility',
176
209
  description: 'Delete product compatibility for an inventory item',
177
- inputSchema: {
178
- sku: z.string().describe('The seller-defined SKU'),
179
- },
180
- outputSchema: {
181
- type: 'object',
182
- properties: {},
183
- description: 'Empty response on successful deletion (HTTP 204)',
184
- },
185
- handler: (api, args) => api.inventory.deleteProductCompatibility(args.sku),
186
- }),
187
- // Inventory Item Groups
210
+ inputSchema: skuInputSchema.shape,
211
+ outputSchema: emptyOutputSchema,
212
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteProductCompatibility(args)),
213
+ }),
188
214
  defineTool({
189
215
  name: 'ebay_get_inventory_item_group',
190
216
  description: 'Get an inventory item group (variation group)',
191
- inputSchema: {
192
- inventoryItemGroupKey: z.string().describe('The inventory item group key'),
193
- },
217
+ inputSchema: inventoryItemGroupKeyInputSchema.shape,
194
218
  outputSchema: zodToJsonSchema(getInventoryItemGroupOutputSchema, {
195
219
  name: 'GetInventoryItemGroupResponse',
196
220
  $refStrategy: 'none',
197
221
  }),
198
- handler: (api, args) => api.inventory.getInventoryItemGroup(args.inventoryItemGroupKey),
222
+ handler: (api, args) => Effect.runPromise(api.inventory.getInventoryItemGroup(args)),
199
223
  }),
200
224
  defineTool({
201
225
  name: 'ebay_create_or_replace_inventory_item_group',
202
226
  description: 'Create or replace an inventory item group',
203
- inputSchema: {
204
- inventoryItemGroupKey: z.string().describe('The inventory item group key'),
205
- inventoryItemGroup: inventoryItemGroupSchema.describe('Inventory item group details'),
206
- },
227
+ inputSchema: createOrReplaceInventoryItemGroupInputSchema.shape,
207
228
  outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
208
229
  name: 'CreateInventoryItemGroupResponse',
209
230
  $refStrategy: 'none',
210
231
  }),
211
- handler: (api, args) => api.inventory.createOrReplaceInventoryItemGroup(args.inventoryItemGroupKey, args.inventoryItemGroup),
232
+ handler: (api, args) => Effect.runPromise(api.inventory.createOrReplaceInventoryItemGroup(args)),
212
233
  }),
213
234
  defineTool({
214
235
  name: 'ebay_delete_inventory_item_group',
215
236
  description: 'Delete an inventory item group',
216
- inputSchema: {
217
- inventoryItemGroupKey: z.string().describe('The inventory item group key'),
218
- },
219
- outputSchema: {
220
- type: 'object',
221
- properties: {},
222
- description: 'Empty response on successful deletion (HTTP 204)',
223
- },
224
- handler: (api, args) => api.inventory.deleteInventoryItemGroup(args.inventoryItemGroupKey),
225
- }),
226
- // Location Management
237
+ inputSchema: inventoryItemGroupKeyInputSchema.shape,
238
+ outputSchema: emptyOutputSchema,
239
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteInventoryItemGroup(args)),
240
+ }),
227
241
  defineTool({
228
242
  name: 'ebay_get_inventory_locations',
229
243
  description: 'Get all inventory locations',
230
- inputSchema: {
231
- limit: z.number().optional().describe('Number of locations to return'),
232
- offset: z.number().optional().describe('Number of locations to skip'),
233
- },
244
+ inputSchema: inventoryPaginationInputSchema.shape,
234
245
  outputSchema: zodToJsonSchema(getInventoryLocationsOutputSchema, {
235
246
  name: 'GetInventoryLocationsResponse',
236
247
  $refStrategy: 'none',
237
248
  }),
238
- handler: (api, args) => api.inventory.getInventoryLocations(args.limit, args.offset),
249
+ handler: (api, args) => Effect.runPromise(api.inventory.getInventoryLocations(args)),
239
250
  ui: { archetype: 'table', map: mapLocationsToTable },
240
251
  }),
241
252
  defineTool({
242
253
  name: 'ebay_get_inventory_location',
243
254
  description: 'Get a specific inventory location',
244
- inputSchema: {
245
- merchantLocationKey: z.string().describe('The merchant location key'),
246
- },
255
+ inputSchema: merchantLocationKeyInputSchema.shape,
247
256
  outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
248
257
  name: 'GetInventoryLocationResponse',
249
258
  $refStrategy: 'none',
250
259
  }),
251
- handler: (api, args) => api.inventory.getInventoryLocation(args.merchantLocationKey),
260
+ handler: (api, args) => Effect.runPromise(api.inventory.getInventoryLocation(args)),
252
261
  }),
253
262
  defineTool({
254
- name: 'ebay_create_or_replace_inventory_location',
255
- description: 'Create or replace an inventory location',
256
- inputSchema: {
257
- merchantLocationKey: z.string().describe('The merchant location key'),
258
- location: locationSchema.describe('Location details'),
259
- },
263
+ name: 'ebay_create_inventory_location',
264
+ description: 'Create an inventory location',
265
+ inputSchema: createInventoryLocationInputSchema.shape,
260
266
  outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
261
267
  name: 'CreateInventoryLocationResponse',
262
268
  $refStrategy: 'none',
263
269
  }),
264
- handler: (api, args) => api.inventory.createOrReplaceInventoryLocation(args.merchantLocationKey, args.location),
270
+ handler: (api, args) => Effect.runPromise(api.inventory.createInventoryLocation(args)),
265
271
  }),
266
272
  defineTool({
267
273
  name: 'ebay_delete_inventory_location',
268
274
  description: 'Delete an inventory location',
269
- inputSchema: {
270
- merchantLocationKey: z.string().describe('The merchant location key'),
271
- },
272
- outputSchema: {
273
- type: 'object',
274
- properties: {},
275
- description: 'Empty response on successful deletion (HTTP 204)',
276
- },
277
- handler: (api, args) => api.inventory.deleteInventoryLocation(args.merchantLocationKey),
275
+ inputSchema: merchantLocationKeyInputSchema.shape,
276
+ outputSchema: emptyOutputSchema,
277
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteInventoryLocation(args)),
278
278
  }),
279
279
  defineTool({
280
280
  name: 'ebay_disable_inventory_location',
281
281
  description: 'Disable an inventory location',
282
- inputSchema: {
283
- merchantLocationKey: z.string().describe('The merchant location key'),
284
- },
285
- outputSchema: {
286
- type: 'object',
287
- properties: {},
288
- description: 'Empty response on successful operation (HTTP 204)',
289
- },
290
- handler: (api, args) => api.inventory.disableInventoryLocation(args.merchantLocationKey),
282
+ inputSchema: merchantLocationKeyInputSchema.shape,
283
+ outputSchema: emptyOutputSchema,
284
+ handler: (api, args) => Effect.runPromise(api.inventory.disableInventoryLocation(args)),
291
285
  }),
292
286
  defineTool({
293
287
  name: 'ebay_enable_inventory_location',
294
288
  description: 'Enable an inventory location',
295
- inputSchema: {
296
- merchantLocationKey: z.string().describe('The merchant location key'),
297
- },
298
- outputSchema: {
299
- type: 'object',
300
- properties: {},
301
- description: 'Empty response on successful operation (HTTP 204)',
302
- },
303
- handler: (api, args) => api.inventory.enableInventoryLocation(args.merchantLocationKey),
304
- }),
305
- defineTool({
306
- name: 'ebay_update_location_details',
307
- description: 'Update location details for an inventory location',
308
- inputSchema: {
309
- merchantLocationKey: z.string().describe('The merchant location key'),
310
- locationDetails: locationSchema.describe('Location detail updates'),
311
- },
289
+ inputSchema: merchantLocationKeyInputSchema.shape,
290
+ outputSchema: emptyOutputSchema,
291
+ handler: (api, args) => Effect.runPromise(api.inventory.enableInventoryLocation(args)),
292
+ }),
293
+ defineTool({
294
+ name: 'ebay_update_inventory_location',
295
+ description: 'Update an inventory location',
296
+ inputSchema: updateInventoryLocationInputSchema.shape,
312
297
  outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
313
- name: 'UpdateLocationDetailsResponse',
298
+ name: 'UpdateInventoryLocationResponse',
299
+ $refStrategy: 'none',
300
+ }),
301
+ handler: (api, args) => Effect.runPromise(api.inventory.updateInventoryLocation(args)),
302
+ }),
303
+ defineTool({
304
+ name: 'ebay_get_offers',
305
+ description: 'Get all offers for the seller',
306
+ inputSchema: getOffersInputSchema.shape,
307
+ outputSchema: zodToJsonSchema(getOffersOutputSchema, {
308
+ name: 'GetOffersResponse',
314
309
  $refStrategy: 'none',
315
310
  }),
316
- handler: (api, args) => api.inventory.updateLocationDetails(args.merchantLocationKey, args.locationDetails),
311
+ handler: (api, args) => Effect.runPromise(api.inventory.getOffers(args)),
312
+ ui: { archetype: 'table', map: mapOffersToTable },
317
313
  }),
318
- // Offer Management
319
314
  defineTool({
320
315
  name: 'ebay_get_offer',
321
316
  description: 'Get a specific offer by ID',
322
- inputSchema: {
323
- offerId: z.string().describe('The offer ID'),
324
- },
317
+ inputSchema: offerIdInputSchema.shape,
325
318
  outputSchema: zodToJsonSchema(offerResponseSchema, {
326
319
  name: 'GetOfferResponse',
327
320
  $refStrategy: 'none',
328
321
  }),
329
- handler: (api, args) => api.inventory.getOffer(args.offerId),
322
+ handler: (api, args) => Effect.runPromise(api.inventory.getOffer(args)),
330
323
  ui: { archetype: 'card', map: mapOfferToCard },
331
324
  }),
325
+ defineTool({
326
+ name: 'ebay_create_offer',
327
+ description: 'Create a new offer for an inventory item',
328
+ inputSchema: createOfferInputSchema.shape,
329
+ outputSchema: zodToJsonSchema(createOfferOutputSchema, {
330
+ name: 'CreateOfferResponse',
331
+ $refStrategy: 'none',
332
+ }),
333
+ handler: (api, args) => Effect.runPromise(api.inventory.createOffer(args)),
334
+ }),
332
335
  defineTool({
333
336
  name: 'ebay_update_offer',
334
337
  description: 'Update an existing offer',
335
- inputSchema: {
336
- offerId: z.string().describe('The offer ID'),
337
- offer: offerSchema.describe('Updated offer details'),
338
- },
338
+ inputSchema: updateOfferInputSchema.shape,
339
339
  outputSchema: zodToJsonSchema(offerResponseSchema, {
340
340
  name: 'UpdateOfferResponse',
341
341
  $refStrategy: 'none',
342
342
  }),
343
- handler: (api, args) => api.inventory.updateOffer(args.offerId, args.offer),
343
+ handler: (api, args) => Effect.runPromise(api.inventory.updateOffer(args)),
344
344
  }),
345
345
  defineTool({
346
346
  name: 'ebay_delete_offer',
347
347
  description: 'Delete an offer',
348
- inputSchema: {
349
- offerId: z.string().describe('The offer ID to delete'),
350
- },
351
- outputSchema: {
352
- type: 'object',
353
- properties: {},
354
- description: 'Empty response on successful deletion (HTTP 204)',
355
- },
356
- handler: (api, args) => api.inventory.deleteOffer(args.offerId),
348
+ inputSchema: offerIdInputSchema.shape,
349
+ outputSchema: emptyOutputSchema,
350
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteOffer(args)),
351
+ }),
352
+ defineTool({
353
+ name: 'ebay_publish_offer',
354
+ description: 'Publish an offer to create a listing',
355
+ inputSchema: offerIdInputSchema.shape,
356
+ outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
357
+ name: 'PublishOfferResponse',
358
+ $refStrategy: 'none',
359
+ }),
360
+ handler: (api, args) => Effect.runPromise(api.inventory.publishOffer(args)),
357
361
  }),
358
362
  defineTool({
359
363
  name: 'ebay_withdraw_offer',
360
364
  description: 'Withdraw a published offer',
361
- inputSchema: {
362
- offerId: z.string().describe('The offer ID to withdraw'),
363
- },
365
+ inputSchema: offerIdInputSchema.shape,
364
366
  outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
365
367
  name: 'WithdrawOfferResponse',
366
368
  $refStrategy: 'none',
367
369
  }),
368
- handler: (api, args) => api.inventory.withdrawOffer(args.offerId),
370
+ handler: (api, args) => Effect.runPromise(api.inventory.withdrawOffer(args)),
369
371
  }),
370
372
  defineTool({
371
373
  name: 'ebay_bulk_create_offer',
372
374
  description: 'Bulk create multiple offers',
373
- inputSchema: {
374
- requests: bulkOfferRequestSchema.describe('Bulk offer creation requests'),
375
- },
375
+ inputSchema: bulkCreateOfferInputSchema.shape,
376
376
  outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
377
377
  name: 'BulkCreateOfferResponse',
378
378
  $refStrategy: 'none',
379
379
  }),
380
- handler: (api, args) => api.inventory.bulkCreateOffer(args.requests),
380
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkCreateOffer(args)),
381
381
  }),
382
382
  defineTool({
383
383
  name: 'ebay_bulk_publish_offer',
384
384
  description: 'Bulk publish multiple offers',
385
- inputSchema: {
386
- requests: bulkPublishRequestSchema.describe('Bulk offer publish requests'),
387
- },
385
+ inputSchema: bulkPublishOfferInputSchema.shape,
388
386
  outputSchema: zodToJsonSchema(bulkPublishResponseSchema, {
389
387
  name: 'BulkPublishOfferResponse',
390
388
  $refStrategy: 'none',
391
389
  }),
392
- handler: (api, args) => api.inventory.bulkPublishOffer(args.requests),
390
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkPublishOffer(args)),
393
391
  }),
394
392
  defineTool({
395
393
  name: 'ebay_get_listing_fees',
396
394
  description: 'Get listing fees for offers before publishing',
397
- inputSchema: {
398
- offers: listingFeesRequestSchema.describe('Offers to calculate listing fees for'),
399
- },
400
- outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
395
+ inputSchema: getListingFeesInputSchema.shape,
396
+ outputSchema: zodToJsonSchema(listingFeesOutputSchema, {
401
397
  name: 'GetListingFeesResponse',
402
398
  $refStrategy: 'none',
403
399
  }),
404
- handler: (api, args) => api.inventory.getListingFees(args.offers),
400
+ handler: (api, args) => Effect.runPromise(api.inventory.getListingFees(args)),
405
401
  }),
406
- // Listing Migration
407
402
  defineTool({
408
403
  name: 'ebay_bulk_migrate_listing',
409
404
  description: 'Bulk migrate listings to the inventory model',
410
- inputSchema: {
411
- requests: bulkMigrateRequestSchema.describe('Bulk listing migration requests'),
412
- },
405
+ inputSchema: bulkMigrateListingInputSchema.shape,
413
406
  outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
414
407
  name: 'BulkMigrateListingResponse',
415
408
  $refStrategy: 'none',
416
409
  }),
417
- handler: (api, args) => api.inventory.bulkMigrateListing(args.requests),
410
+ handler: (api, args) => Effect.runPromise(api.inventory.bulkMigrateListing(args)),
418
411
  }),
419
412
  defineTool({
420
- name: 'ebay_get_listing_locations',
421
- description: 'Get inventory locations for a specific listing (SKU location mapping).\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
422
- inputSchema: {
423
- listingId: z.string().describe('The listing ID'),
424
- sku: z.string().describe('The seller-defined SKU'),
425
- },
426
- outputSchema: zodToJsonSchema(getInventoryLocationsOutputSchema, {
427
- name: 'GetListingLocationsResponse',
413
+ name: 'ebay_get_sku_location_mapping',
414
+ description: 'Get inventory locations for a specific listing and SKU.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
415
+ inputSchema: skuLocationMappingInputSchema.shape,
416
+ outputSchema: zodToJsonSchema(locationMappingOutputSchema, {
417
+ name: 'GetSkuLocationMappingResponse',
428
418
  $refStrategy: 'none',
429
419
  }),
430
- handler: (api, args) => api.inventory.getListingLocations(args.listingId, args.sku),
420
+ handler: (api, args) => Effect.runPromise(api.inventory.getSkuLocationMapping(args)),
431
421
  }),
432
422
  defineTool({
433
423
  name: 'ebay_create_or_replace_sku_location_mapping',
434
- description: 'Create or replace SKU location mapping for a listing. Maps a SKU to multiple fulfillment center locations.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
435
- inputSchema: {
436
- listingId: z.string().describe('The listing ID'),
437
- sku: z.string().describe('The seller-defined SKU'),
438
- locationMapping: z
439
- .object({
440
- locationDetails: z
441
- .array(z.object({
442
- merchantLocationKey: z.string().describe('The fulfillment center location key'),
443
- quantity: z.number().optional().describe('Available quantity at this location'),
444
- }))
445
- .describe('Array of location details with quantities'),
446
- })
447
- .passthrough()
448
- .describe('Location mapping configuration'),
449
- },
450
- outputSchema: {
451
- type: 'object',
452
- properties: {},
453
- description: 'Empty response on success (HTTP 204)',
454
- },
455
- handler: (api, args) => api.inventory.createOrReplaceSkuLocationMapping(args.listingId, args.sku, args.locationMapping),
424
+ description: 'Create or replace SKU location mapping for a listing. Maps a SKU to fulfillment center locations.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
425
+ inputSchema: createOrReplaceSkuLocationMappingInputSchema.shape,
426
+ outputSchema: emptyOutputSchema,
427
+ handler: (api, args) => Effect.runPromise(api.inventory.createOrReplaceSkuLocationMapping(args)),
456
428
  }),
457
429
  defineTool({
458
430
  name: 'ebay_delete_sku_location_mapping',
459
- description: 'Delete SKU location mapping for a listing. Removes all fulfillment center location mappings for a SKU.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
460
- inputSchema: {
461
- listingId: z.string().describe('The listing ID'),
462
- sku: z.string().describe('The seller-defined SKU'),
463
- },
464
- outputSchema: {
465
- type: 'object',
466
- properties: {},
467
- description: 'Empty response on success (HTTP 204)',
468
- },
469
- handler: (api, args) => api.inventory.deleteSkuLocationMapping(args.listingId, args.sku),
431
+ description: 'Delete SKU location mapping for a listing. Removes fulfillment center location mappings for a SKU.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
432
+ inputSchema: skuLocationMappingInputSchema.shape,
433
+ outputSchema: emptyOutputSchema,
434
+ handler: (api, args) => Effect.runPromise(api.inventory.deleteSkuLocationMapping(args)),
470
435
  }),
471
436
  defineTool({
472
437
  name: 'ebay_publish_offer_by_inventory_item_group',
473
438
  description: 'Publish an offer for an inventory item group (variation listing).\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
474
- inputSchema: {
475
- request: z
476
- .object({
477
- inventoryItemGroupKey: z.string(),
478
- marketplaceId: z.nativeEnum(MarketplaceId),
479
- })
480
- .passthrough()
481
- .describe('Publish request with inventory item group key and marketplace ID'),
482
- },
439
+ inputSchema: publishOfferByInventoryItemGroupInputSchema.shape,
483
440
  outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
484
441
  name: 'PublishOfferByInventoryItemGroupResponse',
485
442
  $refStrategy: 'none',
486
443
  }),
487
- handler: (api, args) => api.inventory.publishOfferByInventoryItemGroup(args.request),
444
+ handler: (api, args) => Effect.runPromise(api.inventory.publishOfferByInventoryItemGroup(args)),
488
445
  }),
489
446
  defineTool({
490
447
  name: 'ebay_withdraw_offer_by_inventory_item_group',
491
448
  description: 'Withdraw an offer for an inventory item group (variation listing).\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
492
- inputSchema: {
493
- request: z
494
- .object({
495
- inventoryItemGroupKey: z.string(),
496
- marketplaceId: z.nativeEnum(MarketplaceId),
497
- })
498
- .passthrough()
499
- .describe('Withdraw request with inventory item group key and marketplace ID'),
500
- },
501
- outputSchema: {
502
- type: 'object',
503
- properties: {},
504
- description: 'Empty response on successful withdrawal (HTTP 204)',
505
- },
506
- handler: (api, args) => api.inventory.withdrawOfferByInventoryItemGroup(args.request),
449
+ inputSchema: withdrawOfferByInventoryItemGroupInputSchema.shape,
450
+ outputSchema: emptyOutputSchema,
451
+ handler: (api, args) => Effect.runPromise(api.inventory.withdrawOfferByInventoryItemGroup(args)),
507
452
  }),
508
453
  ];