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.
- package/README.de.md +3 -3
- package/README.es.md +3 -3
- package/README.fr.md +3 -3
- package/README.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +163 -41
- package/README.pt-BR.md +3 -3
- package/README.ru.md +3 -3
- package/README.zh-CN.md +3 -3
- package/build/api/account-management/account.js +633 -297
- package/build/api/analytics-and-report/analytics.js +111 -65
- package/build/api/client.js +199 -140
- package/build/api/clientRequestError.js +23 -0
- package/build/api/clientTrading.js +213 -0
- package/build/api/clientTradingError.js +4 -0
- package/build/api/communication/feedback.js +147 -59
- package/build/api/communication/message.js +134 -81
- package/build/api/communication/negotiation.js +65 -53
- package/build/api/communication/notification.js +458 -164
- package/build/api/developer/developer.js +99 -45
- package/build/api/index.js +23 -8
- package/build/api/listing-management/inventory.js +884 -338
- package/build/api/listing-metadata/metadata.js +416 -170
- package/build/api/listing-metadata/taxonomy.js +187 -42
- package/build/api/marketing-and-promotions/marketing.js +1392 -598
- package/build/api/marketing-and-promotions/recommendation.js +49 -24
- package/build/api/order-management/dispute.js +226 -45
- package/build/api/order-management/fulfillment.js +144 -71
- package/build/api/order-management/orderIssueHelpers.js +61 -0
- package/build/api/other/compliance.js +50 -38
- package/build/api/other/edelivery.js +603 -159
- package/build/api/other/finding.js +280 -0
- package/build/api/other/identity.js +30 -15
- package/build/api/other/translation.js +29 -14
- package/build/api/other/vero.js +113 -27
- package/build/api/rateLimitTracker.js +55 -0
- package/build/api/shared/request.js +189 -98
- package/build/api/trading/trading.js +154 -87
- package/build/auth/credentialSession.js +250 -0
- package/build/auth/oauth.js +298 -171
- package/build/auth/{oauth-metadata.js → oauthMetadata.js} +22 -6
- package/build/auth/oauthMiddleware.js +104 -0
- package/build/auth/{scope-utils.js → scopeUtils.js} +101 -28
- package/build/auth/tokenVerifier.js +243 -0
- package/build/auth/tokenVerifierError.js +21 -0
- package/build/config/environment.js +148 -113
- package/build/config/{tool-families.js → toolFamilies.js} +30 -14
- package/build/index.js +25 -19
- package/build/mcp/{http-transport.js → httpTransport.js} +102 -52
- package/build/mcp/readOnlyFilter.js +67 -0
- package/build/mcp/runtime.js +31 -13
- package/build/mcp/{tool-gating.js → toolGating.js} +77 -49
- package/build/mcp/{ui-bridge.js → uiBridge.js} +80 -23
- package/build/schemas/account-management/account.js +144 -6
- package/build/schemas/analytics/analytics.js +33 -19
- package/build/schemas/communication/messages.js +12 -42
- package/build/schemas/developer/developer.js +135 -0
- package/build/schemas/fulfillment/orders.js +183 -21
- package/build/schemas/index.js +27 -19
- package/build/schemas/inventory-management/inventory.js +17 -9
- package/build/schemas/marketing/marketing.js +480 -25
- package/build/schemas/metadata/metadata.js +11 -6
- package/build/schemas/other/finding.js +27 -0
- package/build/schemas/other/otherApis.js +424 -0
- package/build/schemas/taxonomy/taxonomy.js +11 -5
- package/build/scripts/{auto-setup.js → autoSetup.js} +87 -74
- package/build/scripts/{build-ui.js → buildUi.js} +6 -1
- package/build/scripts/{dev-sync.js → devSync.js} +169 -110
- package/build/scripts/diagnostics.js +52 -44
- package/build/scripts/{download-specs.js → downloadSpecs.js} +29 -21
- package/build/scripts/{interactive-setup.js → interactiveSetup.js} +84 -78
- package/build/scripts/setup.js +241 -178
- package/build/scripts/{setup-shared.js → setupShared.js} +29 -7
- package/build/scripts/skills.js +35 -27
- package/build/scripts/updateApiStatusDoc.js +71 -0
- package/build/serverHttp.js +90 -0
- package/build/skills/content.js +124 -118
- package/build/skills/index.js +22 -10
- package/build/skills/install.js +21 -10
- package/build/skills/markers.js +50 -15
- package/build/skills/{registry-snapshot.js → registrySnapshot.js} +8 -2
- package/build/skills/render.js +41 -14
- package/build/skills/targets.js +49 -17
- package/build/tools/categories/account.js +166 -264
- package/build/tools/categories/analytics.js +11 -22
- package/build/tools/categories/browse.js +17 -0
- package/build/tools/categories/communication.js +124 -399
- package/build/tools/categories/connector.js +23 -20
- package/build/tools/categories/developer.js +46 -159
- package/build/tools/categories/fulfillment.js +84 -215
- package/build/tools/categories/index.js +6 -14
- package/build/tools/categories/inventory.js +238 -293
- package/build/tools/categories/marketing.js +677 -39
- package/build/tools/categories/metadata.js +190 -117
- package/build/tools/categories/other.js +81 -208
- package/build/tools/categories/taxonomy.js +29 -20
- package/build/tools/categories/{token-management.js → tokenManagement.js} +187 -192
- package/build/tools/categories/trading.js +16 -47
- package/build/tools/contracts.js +34 -24
- package/build/tools/{define-tool.js → defineTool.js} +44 -29
- package/build/tools/registry.js +87 -29
- package/build/tools/schemas.js +3 -57
- package/build/tools/ui/archetypes.js +1 -0
- package/build/tools/ui/{map-helpers.js → mapHelpers.js} +69 -19
- package/build/tools/ui/maps.js +294 -80
- package/build/types/index.js +1 -1
- package/build/ui/card.html +14 -14
- package/build/ui/chart.html +14 -14
- package/build/ui/stat.html +87 -0
- package/build/ui/table.html +14 -14
- package/build/utils/apiStatusFeed.js +95 -0
- package/build/utils/cliOutput.js +15 -0
- package/build/utils/cliUi.js +108 -0
- package/build/utils/communication/feedback.js +57 -77
- package/build/utils/communication/message.js +69 -98
- package/build/utils/communication/negotiation.js +30 -57
- package/build/utils/communication/notification.js +112 -252
- package/build/utils/{date-converter.js → dateConverter.js} +62 -30
- package/build/utils/effectSchema.js +203 -0
- package/build/utils/effectSchemaAdapter.js +121 -0
- package/build/utils/effectSchemaChainMethods.js +146 -0
- package/build/utils/effectSchemaRefinements.js +104 -0
- package/build/utils/effectSchemaStringMethods.js +63 -0
- package/build/utils/effectSchemaTypes.js +47 -0
- package/build/utils/{env-parser.js → envParser.js} +10 -2
- package/build/utils/errors.js +7 -3
- package/build/utils/http.js +148 -89
- package/build/utils/{llm-client-detector.js → llmClientDetector.js} +295 -274
- package/build/utils/logger.js +127 -51
- package/build/utils/{oauth-helper.js → oauthHelper.js} +127 -90
- package/build/utils/other/compliance.js +18 -38
- package/build/utils/other/identity.js +2 -2
- package/build/utils/other/translation.js +4 -4
- package/build/utils/other/vero.js +36 -20
- package/build/utils/schemaHelpers.js +22 -0
- package/build/utils/scopeHelper.js +270 -0
- package/build/utils/securityChecker.js +316 -0
- package/build/utils/{setup-validator.js → setupValidator.js} +113 -94
- package/build/utils/{setup-wizard.js → setupWizard.js} +57 -46
- package/build/utils/{token-utils.js → tokenUtils.js} +2 -2
- package/build/utils/trading/trading.js +35 -0
- package/build/utils/typeGuards.js +12 -0
- package/build/utils/version.js +65 -29
- package/package.json +10 -8
- package/build/api/client-trading.js +0 -124
- package/build/api/communication/shared.js +0 -59
- package/build/api/shared/query-params.js +0 -16
- package/build/auth/credential-session.js +0 -166
- package/build/auth/oauth-middleware.js +0 -100
- package/build/auth/token-verifier.js +0 -186
- package/build/schemas/other/other-apis.js +0 -390
- package/build/scripts/update-api-status-doc.js +0 -44
- package/build/server-http.js +0 -85
- package/build/tools/definitions/marketing.js +0 -1381
- package/build/tools/tool-handlers/marketing.js +0 -312
- package/build/utils/account-management/account.js +0 -818
- package/build/utils/api-status-feed.js +0 -84
- package/build/utils/cli-ui.js +0 -47
- package/build/utils/order-management/dispute.js +0 -369
- package/build/utils/order-management/fulfillment.js +0 -205
- package/build/utils/other/edelivery.js +0 -235
- package/build/utils/schema-helpers.js +0 -13
- package/build/utils/scope-helper.js +0 -207
- package/build/utils/security-checker.js +0 -248
- package/build/utils/type-guards.js +0 -6
- /package/build/auth/{oauth-types.js → oauthTypes.js} +0 -0
- /package/build/{server-http.d.ts → serverHttp.d.ts} +0 -0
- /package/build/tools/ui/{view-models.js → viewModels.js} +0 -0
- /package/build/types/{ebay-enums.js → ebayEnums.js} +0 -0
|
@@ -1,470 +1,372 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
2
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
|
-
import {
|
|
4
|
-
import { defineTool } from '../../tools/
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { bulkCreateOrReplaceSalesTaxInputSchema, createCustomPolicyInputSchema, createCustomPolicyOutputSchema, createFulfillmentPolicyInputSchema, createFulfillmentPolicyOutputSchema, createOrReplaceSalesTaxInputSchema, createPaymentPolicyInputSchema, createPaymentPolicyOutputSchema, createReturnPolicyInputSchema, createReturnPolicyOutputSchema, customPolicyResponseSchema, deleteFulfillmentPolicyInputSchema, deletePaymentPolicyInputSchema, deleteReturnPolicyInputSchema, deleteSalesTaxInputSchema, fulfillmentPolicyResponseSchema, getAdvertisingEligibilityInputSchema, getCustomPoliciesInputSchema, getCustomPolicyInputSchema, getFulfillmentPoliciesInputSchema, getFulfillmentPoliciesOutputSchema, getFulfillmentPolicyByNameInputSchema, getFulfillmentPolicyInputSchema, getPaymentPoliciesInputSchema, getPaymentPoliciesOutputSchema, getPaymentPolicyByNameInputSchema, getPaymentPolicyInputSchema, getKycInputSchema, getOptedInProgramsInputSchema, getPaymentsProgramInputSchema, getPaymentsProgramOnboardingInputSchema, getPrivilegesInputSchema, getRateTablesInputSchema, getReturnPoliciesInputSchema, getReturnPoliciesOutputSchema, getReturnPolicyByNameInputSchema, getReturnPolicyInputSchema, getSalesTaxesInputSchema, getSalesTaxesOutputSchema, getSalesTaxInputSchema, getSubscriptionInputSchema, kycOutputSchema, optInToProgramInputSchema, optOutOfProgramInputSchema, paymentPolicyResponseSchema, privilegesOutputSchema, programsOutputSchema, returnPolicyResponseSchema, salesTaxSchema, updateCustomPolicyInputSchema, updateFulfillmentPolicyInputSchema, updatePaymentPolicyInputSchema, updateReturnPolicyInputSchema, } from '../../schemas/account-management/account.js';
|
|
4
|
+
import { defineTool } from '../../tools/defineTool.js';
|
|
5
|
+
const emptyResponseSchema = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {},
|
|
8
|
+
description: 'Empty response on successful operation',
|
|
9
|
+
};
|
|
7
10
|
/** Account Management API tools for seller policies, tax, KYC, privileges, and programs. */
|
|
8
11
|
export const accountEntries = [
|
|
9
12
|
defineTool({
|
|
10
13
|
name: 'ebay_get_custom_policies',
|
|
11
14
|
description: 'Retrieve custom policies defined for the seller account',
|
|
12
|
-
inputSchema:
|
|
13
|
-
policyTypes: z
|
|
14
|
-
.string()
|
|
15
|
-
.optional()
|
|
16
|
-
.describe('Comma-delimited list of policy types to retrieve'),
|
|
17
|
-
},
|
|
15
|
+
inputSchema: getCustomPoliciesInputSchema.shape,
|
|
18
16
|
outputSchema: zodToJsonSchema(customPolicyResponseSchema, {
|
|
19
17
|
name: 'CustomPoliciesResponse',
|
|
20
18
|
$refStrategy: 'none',
|
|
21
19
|
}),
|
|
22
|
-
|
|
20
|
+
annotations: { readOnlyHint: true },
|
|
21
|
+
handler: (api, args) => Effect.runPromise(api.account.getCustomPolicies(args)),
|
|
23
22
|
}),
|
|
24
23
|
defineTool({
|
|
25
|
-
name: '
|
|
26
|
-
description: '
|
|
27
|
-
inputSchema:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
outputSchema: zodToJsonSchema(getFulfillmentPoliciesOutputSchema, {
|
|
31
|
-
name: 'FulfillmentPoliciesResponse',
|
|
24
|
+
name: 'ebay_create_custom_policy',
|
|
25
|
+
description: 'Create a new custom policy',
|
|
26
|
+
inputSchema: createCustomPolicyInputSchema.shape,
|
|
27
|
+
outputSchema: zodToJsonSchema(createCustomPolicyOutputSchema, {
|
|
28
|
+
name: 'CreateCustomPolicyResponse',
|
|
32
29
|
$refStrategy: 'none',
|
|
33
30
|
}),
|
|
34
|
-
|
|
31
|
+
annotations: { readOnlyHint: false },
|
|
32
|
+
handler: (api, args) => Effect.runPromise(api.account.createCustomPolicy(args)),
|
|
35
33
|
}),
|
|
36
34
|
defineTool({
|
|
37
|
-
name: '
|
|
38
|
-
description: 'Get
|
|
39
|
-
inputSchema:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
outputSchema: zodToJsonSchema(getPaymentPoliciesOutputSchema, {
|
|
43
|
-
name: 'PaymentPoliciesResponse',
|
|
35
|
+
name: 'ebay_get_custom_policy',
|
|
36
|
+
description: 'Get a specific custom policy by ID',
|
|
37
|
+
inputSchema: getCustomPolicyInputSchema.shape,
|
|
38
|
+
outputSchema: zodToJsonSchema(createCustomPolicyOutputSchema, {
|
|
39
|
+
name: 'CustomPolicyResponse',
|
|
44
40
|
$refStrategy: 'none',
|
|
45
41
|
}),
|
|
46
|
-
|
|
42
|
+
annotations: { readOnlyHint: true },
|
|
43
|
+
handler: (api, args) => Effect.runPromise(api.account.getCustomPolicy(args)),
|
|
47
44
|
}),
|
|
48
45
|
defineTool({
|
|
49
|
-
name: '
|
|
50
|
-
description: '
|
|
51
|
-
inputSchema:
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
name: 'ebay_update_custom_policy',
|
|
47
|
+
description: 'Update an existing custom policy',
|
|
48
|
+
inputSchema: updateCustomPolicyInputSchema.shape,
|
|
49
|
+
outputSchema: emptyResponseSchema,
|
|
50
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
51
|
+
handler: (api, args) => Effect.runPromise(api.account.updateCustomPolicy(args)),
|
|
52
|
+
}),
|
|
53
|
+
defineTool({
|
|
54
|
+
name: 'ebay_get_fulfillment_policies',
|
|
55
|
+
description: 'Get fulfillment policies for the seller.\n\nRequired OAuth Scope: sell.account.readonly or sell.account\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.account.readonly',
|
|
56
|
+
inputSchema: getFulfillmentPoliciesInputSchema.shape,
|
|
57
|
+
outputSchema: zodToJsonSchema(getFulfillmentPoliciesOutputSchema, {
|
|
58
|
+
name: 'FulfillmentPoliciesResponse',
|
|
56
59
|
$refStrategy: 'none',
|
|
57
60
|
}),
|
|
58
|
-
|
|
61
|
+
annotations: { readOnlyHint: true },
|
|
62
|
+
handler: (api, args) => Effect.runPromise(api.account.getFulfillmentPolicies(args)),
|
|
59
63
|
}),
|
|
60
|
-
// Fulfillment Policy CRUD
|
|
61
64
|
defineTool({
|
|
62
65
|
name: 'ebay_create_fulfillment_policy',
|
|
63
66
|
description: 'Create a new fulfillment policy.\n\nRequired OAuth Scope: sell.account\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.account',
|
|
64
|
-
inputSchema:
|
|
65
|
-
policy: fulfillmentPolicySchema.describe('Fulfillment policy details'),
|
|
66
|
-
},
|
|
67
|
+
inputSchema: createFulfillmentPolicyInputSchema.shape,
|
|
67
68
|
outputSchema: zodToJsonSchema(createFulfillmentPolicyOutputSchema, {
|
|
68
69
|
name: 'CreateFulfillmentPolicyResponse',
|
|
69
70
|
$refStrategy: 'none',
|
|
70
71
|
}),
|
|
71
|
-
|
|
72
|
+
annotations: { readOnlyHint: false },
|
|
73
|
+
handler: (api, args) => Effect.runPromise(api.account.createFulfillmentPolicy(args)),
|
|
72
74
|
}),
|
|
73
75
|
defineTool({
|
|
74
76
|
name: 'ebay_get_fulfillment_policy',
|
|
75
77
|
description: 'Get a specific fulfillment policy by ID',
|
|
76
|
-
inputSchema:
|
|
77
|
-
fulfillmentPolicyId: z.string().describe('The fulfillment policy ID'),
|
|
78
|
-
},
|
|
78
|
+
inputSchema: getFulfillmentPolicyInputSchema.shape,
|
|
79
79
|
outputSchema: zodToJsonSchema(fulfillmentPolicyResponseSchema, {
|
|
80
80
|
name: 'FulfillmentPolicyResponse',
|
|
81
81
|
$refStrategy: 'none',
|
|
82
82
|
}),
|
|
83
|
-
|
|
83
|
+
annotations: { readOnlyHint: true },
|
|
84
|
+
handler: (api, args) => Effect.runPromise(api.account.getFulfillmentPolicy(args)),
|
|
84
85
|
}),
|
|
85
86
|
defineTool({
|
|
86
87
|
name: 'ebay_get_fulfillment_policy_by_name',
|
|
87
88
|
description: 'Get a fulfillment policy by name',
|
|
88
|
-
inputSchema:
|
|
89
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('eBay marketplace ID'),
|
|
90
|
-
name: z.string().describe('Policy name'),
|
|
91
|
-
},
|
|
89
|
+
inputSchema: getFulfillmentPolicyByNameInputSchema.shape,
|
|
92
90
|
outputSchema: zodToJsonSchema(fulfillmentPolicyResponseSchema, {
|
|
93
91
|
name: 'FulfillmentPolicyResponse',
|
|
94
92
|
$refStrategy: 'none',
|
|
95
93
|
}),
|
|
96
|
-
|
|
94
|
+
annotations: { readOnlyHint: true },
|
|
95
|
+
handler: (api, args) => Effect.runPromise(api.account.getFulfillmentPolicyByName(args)),
|
|
97
96
|
}),
|
|
98
97
|
defineTool({
|
|
99
98
|
name: 'ebay_update_fulfillment_policy',
|
|
100
99
|
description: 'Update an existing fulfillment policy',
|
|
101
|
-
inputSchema:
|
|
102
|
-
fulfillmentPolicyId: z.string().describe('The fulfillment policy ID'),
|
|
103
|
-
policy: fulfillmentPolicySchema.describe('Updated fulfillment policy details'),
|
|
104
|
-
},
|
|
100
|
+
inputSchema: updateFulfillmentPolicyInputSchema.shape,
|
|
105
101
|
outputSchema: zodToJsonSchema(createFulfillmentPolicyOutputSchema, {
|
|
106
102
|
name: 'UpdateFulfillmentPolicyResponse',
|
|
107
103
|
$refStrategy: 'none',
|
|
108
104
|
}),
|
|
109
|
-
|
|
105
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
106
|
+
handler: (api, args) => Effect.runPromise(api.account.updateFulfillmentPolicy(args)),
|
|
110
107
|
}),
|
|
111
108
|
defineTool({
|
|
112
109
|
name: 'ebay_delete_fulfillment_policy',
|
|
113
110
|
description: 'Delete a fulfillment policy',
|
|
114
|
-
inputSchema:
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
111
|
+
inputSchema: deleteFulfillmentPolicyInputSchema.shape,
|
|
112
|
+
outputSchema: emptyResponseSchema,
|
|
113
|
+
annotations: { readOnlyHint: false, destructiveHint: true },
|
|
114
|
+
handler: (api, args) => Effect.runPromise(api.account.deleteFulfillmentPolicy(args)),
|
|
115
|
+
}),
|
|
116
|
+
defineTool({
|
|
117
|
+
name: 'ebay_get_payment_policies',
|
|
118
|
+
description: 'Get payment policies for the seller',
|
|
119
|
+
inputSchema: getPaymentPoliciesInputSchema.shape,
|
|
120
|
+
outputSchema: zodToJsonSchema(getPaymentPoliciesOutputSchema, {
|
|
121
|
+
name: 'PaymentPoliciesResponse',
|
|
122
|
+
$refStrategy: 'none',
|
|
123
|
+
}),
|
|
124
|
+
annotations: { readOnlyHint: true },
|
|
125
|
+
handler: (api, args) => Effect.runPromise(api.account.getPaymentPolicies(args)),
|
|
126
|
+
}),
|
|
125
127
|
defineTool({
|
|
126
128
|
name: 'ebay_create_payment_policy',
|
|
127
129
|
description: 'Create a new payment policy',
|
|
128
|
-
inputSchema:
|
|
129
|
-
policy: paymentPolicySchema.describe('Payment policy details'),
|
|
130
|
-
},
|
|
130
|
+
inputSchema: createPaymentPolicyInputSchema.shape,
|
|
131
131
|
outputSchema: zodToJsonSchema(createPaymentPolicyOutputSchema, {
|
|
132
132
|
name: 'CreatePaymentPolicyResponse',
|
|
133
133
|
$refStrategy: 'none',
|
|
134
134
|
}),
|
|
135
|
-
|
|
135
|
+
annotations: { readOnlyHint: false },
|
|
136
|
+
handler: (api, args) => Effect.runPromise(api.account.createPaymentPolicy(args)),
|
|
136
137
|
}),
|
|
137
138
|
defineTool({
|
|
138
139
|
name: 'ebay_get_payment_policy',
|
|
139
140
|
description: 'Get a specific payment policy by ID',
|
|
140
|
-
inputSchema:
|
|
141
|
-
paymentPolicyId: z.string().describe('The payment policy ID'),
|
|
142
|
-
},
|
|
141
|
+
inputSchema: getPaymentPolicyInputSchema.shape,
|
|
143
142
|
outputSchema: zodToJsonSchema(paymentPolicyResponseSchema, {
|
|
144
143
|
name: 'PaymentPolicyResponse',
|
|
145
144
|
$refStrategy: 'none',
|
|
146
145
|
}),
|
|
147
|
-
|
|
146
|
+
annotations: { readOnlyHint: true },
|
|
147
|
+
handler: (api, args) => Effect.runPromise(api.account.getPaymentPolicy(args)),
|
|
148
148
|
}),
|
|
149
149
|
defineTool({
|
|
150
150
|
name: 'ebay_get_payment_policy_by_name',
|
|
151
151
|
description: 'Get a payment policy by name',
|
|
152
|
-
inputSchema:
|
|
153
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('eBay marketplace ID'),
|
|
154
|
-
name: z.string().describe('Policy name'),
|
|
155
|
-
},
|
|
152
|
+
inputSchema: getPaymentPolicyByNameInputSchema.shape,
|
|
156
153
|
outputSchema: zodToJsonSchema(paymentPolicyResponseSchema, {
|
|
157
154
|
name: 'PaymentPolicyResponse',
|
|
158
155
|
$refStrategy: 'none',
|
|
159
156
|
}),
|
|
160
|
-
|
|
157
|
+
annotations: { readOnlyHint: true },
|
|
158
|
+
handler: (api, args) => Effect.runPromise(api.account.getPaymentPolicyByName(args)),
|
|
161
159
|
}),
|
|
162
160
|
defineTool({
|
|
163
161
|
name: 'ebay_update_payment_policy',
|
|
164
162
|
description: 'Update an existing payment policy',
|
|
165
|
-
inputSchema:
|
|
166
|
-
paymentPolicyId: z.string().describe('The payment policy ID'),
|
|
167
|
-
policy: paymentPolicySchema.describe('Updated payment policy details'),
|
|
168
|
-
},
|
|
163
|
+
inputSchema: updatePaymentPolicyInputSchema.shape,
|
|
169
164
|
outputSchema: zodToJsonSchema(createPaymentPolicyOutputSchema, {
|
|
170
165
|
name: 'UpdatePaymentPolicyResponse',
|
|
171
166
|
$refStrategy: 'none',
|
|
172
167
|
}),
|
|
173
|
-
|
|
168
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
169
|
+
handler: (api, args) => Effect.runPromise(api.account.updatePaymentPolicy(args)),
|
|
174
170
|
}),
|
|
175
171
|
defineTool({
|
|
176
172
|
name: 'ebay_delete_payment_policy',
|
|
177
173
|
description: 'Delete a payment policy',
|
|
178
|
-
inputSchema:
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
174
|
+
inputSchema: deletePaymentPolicyInputSchema.shape,
|
|
175
|
+
outputSchema: emptyResponseSchema,
|
|
176
|
+
annotations: { readOnlyHint: false, destructiveHint: true },
|
|
177
|
+
handler: (api, args) => Effect.runPromise(api.account.deletePaymentPolicy(args)),
|
|
178
|
+
}),
|
|
179
|
+
defineTool({
|
|
180
|
+
name: 'ebay_get_return_policies',
|
|
181
|
+
description: 'Get return policies for the seller',
|
|
182
|
+
inputSchema: getReturnPoliciesInputSchema.shape,
|
|
183
|
+
outputSchema: zodToJsonSchema(getReturnPoliciesOutputSchema, {
|
|
184
|
+
name: 'ReturnPoliciesResponse',
|
|
185
|
+
$refStrategy: 'none',
|
|
186
|
+
}),
|
|
187
|
+
annotations: { readOnlyHint: true },
|
|
188
|
+
handler: (api, args) => Effect.runPromise(api.account.getReturnPolicies(args)),
|
|
189
|
+
}),
|
|
189
190
|
defineTool({
|
|
190
191
|
name: 'ebay_create_return_policy',
|
|
191
192
|
description: 'Create a new return policy',
|
|
192
|
-
inputSchema:
|
|
193
|
-
policy: returnPolicySchema.describe('Return policy details'),
|
|
194
|
-
},
|
|
193
|
+
inputSchema: createReturnPolicyInputSchema.shape,
|
|
195
194
|
outputSchema: zodToJsonSchema(createReturnPolicyOutputSchema, {
|
|
196
195
|
name: 'CreateReturnPolicyResponse',
|
|
197
196
|
$refStrategy: 'none',
|
|
198
197
|
}),
|
|
199
|
-
|
|
198
|
+
annotations: { readOnlyHint: false },
|
|
199
|
+
handler: (api, args) => Effect.runPromise(api.account.createReturnPolicy(args)),
|
|
200
200
|
}),
|
|
201
201
|
defineTool({
|
|
202
202
|
name: 'ebay_get_return_policy',
|
|
203
203
|
description: 'Get a specific return policy by ID',
|
|
204
|
-
inputSchema:
|
|
205
|
-
returnPolicyId: z.string().describe('The return policy ID'),
|
|
206
|
-
},
|
|
204
|
+
inputSchema: getReturnPolicyInputSchema.shape,
|
|
207
205
|
outputSchema: zodToJsonSchema(returnPolicyResponseSchema, {
|
|
208
206
|
name: 'ReturnPolicyResponse',
|
|
209
207
|
$refStrategy: 'none',
|
|
210
208
|
}),
|
|
211
|
-
|
|
209
|
+
annotations: { readOnlyHint: true },
|
|
210
|
+
handler: (api, args) => Effect.runPromise(api.account.getReturnPolicy(args)),
|
|
212
211
|
}),
|
|
213
212
|
defineTool({
|
|
214
213
|
name: 'ebay_get_return_policy_by_name',
|
|
215
214
|
description: 'Get a return policy by name',
|
|
216
|
-
inputSchema:
|
|
217
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('eBay marketplace ID'),
|
|
218
|
-
name: z.string().describe('Policy name'),
|
|
219
|
-
},
|
|
215
|
+
inputSchema: getReturnPolicyByNameInputSchema.shape,
|
|
220
216
|
outputSchema: zodToJsonSchema(returnPolicyResponseSchema, {
|
|
221
217
|
name: 'ReturnPolicyResponse',
|
|
222
218
|
$refStrategy: 'none',
|
|
223
219
|
}),
|
|
224
|
-
|
|
220
|
+
annotations: { readOnlyHint: true },
|
|
221
|
+
handler: (api, args) => Effect.runPromise(api.account.getReturnPolicyByName(args)),
|
|
225
222
|
}),
|
|
226
223
|
defineTool({
|
|
227
224
|
name: 'ebay_update_return_policy',
|
|
228
225
|
description: 'Update an existing return policy',
|
|
229
|
-
inputSchema:
|
|
230
|
-
returnPolicyId: z.string().describe('The return policy ID'),
|
|
231
|
-
policy: returnPolicySchema.describe('Updated return policy details'),
|
|
232
|
-
},
|
|
226
|
+
inputSchema: updateReturnPolicyInputSchema.shape,
|
|
233
227
|
outputSchema: zodToJsonSchema(createReturnPolicyOutputSchema, {
|
|
234
228
|
name: 'UpdateReturnPolicyResponse',
|
|
235
229
|
$refStrategy: 'none',
|
|
236
230
|
}),
|
|
237
|
-
|
|
231
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
232
|
+
handler: (api, args) => Effect.runPromise(api.account.updateReturnPolicy(args)),
|
|
238
233
|
}),
|
|
239
234
|
defineTool({
|
|
240
235
|
name: 'ebay_delete_return_policy',
|
|
241
236
|
description: 'Delete a return policy',
|
|
242
|
-
inputSchema:
|
|
243
|
-
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
type: 'object',
|
|
247
|
-
properties: {},
|
|
248
|
-
description: 'Empty response on successful deletion (HTTP 204)',
|
|
249
|
-
},
|
|
250
|
-
handler: (api, args) => api.account.deleteReturnPolicy(args.returnPolicyId),
|
|
251
|
-
}),
|
|
252
|
-
// Custom Policy CRUD
|
|
253
|
-
defineTool({
|
|
254
|
-
name: 'ebay_create_custom_policy',
|
|
255
|
-
description: 'Create a new custom policy',
|
|
256
|
-
inputSchema: {
|
|
257
|
-
policy: customPolicySchema.describe('Custom policy details'),
|
|
258
|
-
},
|
|
259
|
-
outputSchema: zodToJsonSchema(createCustomPolicyOutputSchema, {
|
|
260
|
-
name: 'CreateCustomPolicyResponse',
|
|
261
|
-
$refStrategy: 'none',
|
|
262
|
-
}),
|
|
263
|
-
handler: (api, args) => api.account.createCustomPolicy(args.policy),
|
|
264
|
-
}),
|
|
265
|
-
defineTool({
|
|
266
|
-
name: 'ebay_get_custom_policy',
|
|
267
|
-
description: 'Get a specific custom policy by ID',
|
|
268
|
-
inputSchema: {
|
|
269
|
-
customPolicyId: z.string().describe('The custom policy ID'),
|
|
270
|
-
},
|
|
271
|
-
outputSchema: zodToJsonSchema(createCustomPolicyOutputSchema, {
|
|
272
|
-
name: 'CustomPolicyResponse',
|
|
273
|
-
$refStrategy: 'none',
|
|
274
|
-
}),
|
|
275
|
-
handler: (api, args) => api.account.getCustomPolicy(args.customPolicyId),
|
|
237
|
+
inputSchema: deleteReturnPolicyInputSchema.shape,
|
|
238
|
+
outputSchema: emptyResponseSchema,
|
|
239
|
+
annotations: { readOnlyHint: false, destructiveHint: true },
|
|
240
|
+
handler: (api, args) => Effect.runPromise(api.account.deleteReturnPolicy(args)),
|
|
276
241
|
}),
|
|
277
|
-
defineTool({
|
|
278
|
-
name: 'ebay_update_custom_policy',
|
|
279
|
-
description: 'Update an existing custom policy',
|
|
280
|
-
inputSchema: {
|
|
281
|
-
customPolicyId: z.string().describe('The custom policy ID'),
|
|
282
|
-
policy: customPolicySchema.describe('Updated custom policy details'),
|
|
283
|
-
},
|
|
284
|
-
outputSchema: zodToJsonSchema(createCustomPolicyOutputSchema, {
|
|
285
|
-
name: 'UpdateCustomPolicyResponse',
|
|
286
|
-
$refStrategy: 'none',
|
|
287
|
-
}),
|
|
288
|
-
handler: (api, args) => api.account.updateCustomPolicy(args.customPolicyId, args.policy),
|
|
289
|
-
}),
|
|
290
|
-
defineTool({
|
|
291
|
-
name: 'ebay_delete_custom_policy',
|
|
292
|
-
description: 'Delete a custom policy',
|
|
293
|
-
inputSchema: {
|
|
294
|
-
customPolicyId: z.string().describe('The custom policy ID'),
|
|
295
|
-
},
|
|
296
|
-
outputSchema: {
|
|
297
|
-
type: 'object',
|
|
298
|
-
properties: {},
|
|
299
|
-
description: 'Empty response on successful deletion (HTTP 204)',
|
|
300
|
-
},
|
|
301
|
-
handler: (api, args) => api.account.deleteCustomPolicy(args.customPolicyId),
|
|
302
|
-
}),
|
|
303
|
-
// KYC, Payments, Programs, Sales Tax, Subscription
|
|
304
242
|
defineTool({
|
|
305
243
|
name: 'ebay_get_kyc',
|
|
306
244
|
description: 'Get seller KYC (Know Your Customer) status',
|
|
307
|
-
inputSchema:
|
|
245
|
+
inputSchema: getKycInputSchema.shape,
|
|
308
246
|
outputSchema: zodToJsonSchema(kycOutputSchema, {
|
|
309
247
|
name: 'KYCResponse',
|
|
310
248
|
$refStrategy: 'none',
|
|
311
249
|
}),
|
|
312
|
-
|
|
250
|
+
annotations: { readOnlyHint: true },
|
|
251
|
+
handler: (api, args) => Effect.runPromise(api.account.getKyc(args)),
|
|
313
252
|
}),
|
|
314
253
|
defineTool({
|
|
315
|
-
name: '
|
|
316
|
-
description: '
|
|
317
|
-
inputSchema:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
handler: (api, args) => api.account.optInToPaymentsProgram(args.marketplaceId, args.paymentsProgramType),
|
|
254
|
+
name: 'ebay_get_payments_program',
|
|
255
|
+
description: 'Get payments program status for a marketplace. Note: This method is deprecated as all seller accounts globally have been enabled for the new eBay payment and checkout flow.\n\nRequired OAuth Scope: sell.account.readonly or sell.account',
|
|
256
|
+
inputSchema: getPaymentsProgramInputSchema.shape,
|
|
257
|
+
annotations: { readOnlyHint: true },
|
|
258
|
+
handler: (api, args) => Effect.runPromise(api.account.getPaymentsProgram(args)),
|
|
322
259
|
}),
|
|
323
260
|
defineTool({
|
|
324
|
-
name: '
|
|
325
|
-
description: 'Get payments program
|
|
326
|
-
inputSchema:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
handler: (api, args) => api.account.getPaymentsProgramStatus(args.marketplaceId, args.paymentsProgramType),
|
|
261
|
+
name: 'ebay_get_payments_program_onboarding',
|
|
262
|
+
description: 'Get payments program onboarding information. Note: This method is deprecated as all seller accounts globally have been enabled for the new eBay payment and checkout flow.\n\nRequired OAuth Scope: sell.account.readonly or sell.account',
|
|
263
|
+
inputSchema: getPaymentsProgramOnboardingInputSchema.shape,
|
|
264
|
+
annotations: { readOnlyHint: true },
|
|
265
|
+
handler: (api, args) => Effect.runPromise(api.account.getPaymentsProgramOnboarding(args)),
|
|
331
266
|
}),
|
|
332
267
|
defineTool({
|
|
333
268
|
name: 'ebay_get_rate_tables',
|
|
334
269
|
description: 'Get seller rate tables',
|
|
335
|
-
inputSchema:
|
|
336
|
-
|
|
270
|
+
inputSchema: getRateTablesInputSchema.shape,
|
|
271
|
+
annotations: { readOnlyHint: true },
|
|
272
|
+
handler: (api, args) => Effect.runPromise(api.account.getRateTables(args)),
|
|
337
273
|
}),
|
|
338
274
|
defineTool({
|
|
339
275
|
name: 'ebay_create_or_replace_sales_tax',
|
|
340
276
|
description: 'Create or replace sales tax table for a jurisdiction',
|
|
341
|
-
inputSchema:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
handler: (api, args) => api.account.createOrReplaceSalesTax(args.countryCode, args.jurisdictionId, args.salesTaxBase),
|
|
277
|
+
inputSchema: createOrReplaceSalesTaxInputSchema.shape,
|
|
278
|
+
outputSchema: emptyResponseSchema,
|
|
279
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
280
|
+
handler: (api, args) => Effect.runPromise(api.account.createOrReplaceSalesTax(args)),
|
|
347
281
|
}),
|
|
348
282
|
defineTool({
|
|
349
283
|
name: 'ebay_bulk_create_or_replace_sales_tax',
|
|
350
284
|
description: 'Bulk create or replace sales tax tables',
|
|
351
|
-
inputSchema:
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
handler: (api, args) => api.account.bulkCreateOrReplaceSalesTax(args
|
|
285
|
+
inputSchema: bulkCreateOrReplaceSalesTaxInputSchema.shape,
|
|
286
|
+
outputSchema: emptyResponseSchema,
|
|
287
|
+
annotations: { readOnlyHint: false, idempotentHint: true },
|
|
288
|
+
handler: (api, args) => Effect.runPromise(api.account.bulkCreateOrReplaceSalesTax(args)),
|
|
355
289
|
}),
|
|
356
290
|
defineTool({
|
|
357
291
|
name: 'ebay_delete_sales_tax',
|
|
358
292
|
description: 'Delete sales tax table for a jurisdiction',
|
|
359
|
-
inputSchema:
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
handler: (api, args) => api.account.deleteSalesTax(args.countryCode, args.jurisdictionId),
|
|
293
|
+
inputSchema: deleteSalesTaxInputSchema.shape,
|
|
294
|
+
outputSchema: emptyResponseSchema,
|
|
295
|
+
annotations: { readOnlyHint: false, destructiveHint: true },
|
|
296
|
+
handler: (api, args) => Effect.runPromise(api.account.deleteSalesTax(args)),
|
|
364
297
|
}),
|
|
365
298
|
defineTool({
|
|
366
299
|
name: 'ebay_get_sales_tax',
|
|
367
300
|
description: 'Get sales tax table for a jurisdiction',
|
|
368
|
-
inputSchema:
|
|
369
|
-
countryCode: z.string().describe('Two-letter ISO 3166 country code'),
|
|
370
|
-
jurisdictionId: z.string().describe('Tax jurisdiction ID'),
|
|
371
|
-
},
|
|
301
|
+
inputSchema: getSalesTaxInputSchema.shape,
|
|
372
302
|
outputSchema: zodToJsonSchema(salesTaxSchema, {
|
|
373
303
|
name: 'SalesTaxResponse',
|
|
374
304
|
$refStrategy: 'none',
|
|
375
305
|
}),
|
|
376
|
-
|
|
306
|
+
annotations: { readOnlyHint: true },
|
|
307
|
+
handler: (api, args) => Effect.runPromise(api.account.getSalesTax(args)),
|
|
377
308
|
}),
|
|
378
309
|
defineTool({
|
|
379
310
|
name: 'ebay_get_sales_taxes',
|
|
380
311
|
description: 'Get all sales tax tables for a country',
|
|
381
|
-
inputSchema:
|
|
382
|
-
countryCode: z.string().describe('Required: Two-letter ISO 3166-1 country code'),
|
|
383
|
-
},
|
|
312
|
+
inputSchema: getSalesTaxesInputSchema.shape,
|
|
384
313
|
outputSchema: zodToJsonSchema(getSalesTaxesOutputSchema, {
|
|
385
314
|
name: 'GetSalesTaxesResponse',
|
|
386
315
|
$refStrategy: 'none',
|
|
387
316
|
}),
|
|
388
|
-
|
|
317
|
+
annotations: { readOnlyHint: true },
|
|
318
|
+
handler: (api, args) => Effect.runPromise(api.account.getSalesTaxes(args)),
|
|
389
319
|
}),
|
|
390
320
|
defineTool({
|
|
391
321
|
name: 'ebay_get_subscription',
|
|
392
322
|
description: 'Get seller subscription information',
|
|
393
|
-
inputSchema:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
handler: (api, args) => api.account.getSubscription(args.limitType),
|
|
323
|
+
inputSchema: getSubscriptionInputSchema.shape,
|
|
324
|
+
annotations: { readOnlyHint: true },
|
|
325
|
+
handler: (api, args) => Effect.runPromise(api.account.getSubscription(args)),
|
|
397
326
|
}),
|
|
398
327
|
defineTool({
|
|
399
328
|
name: 'ebay_opt_in_to_program',
|
|
400
329
|
description: 'Opt-in to a seller program',
|
|
401
|
-
inputSchema:
|
|
402
|
-
|
|
403
|
-
},
|
|
404
|
-
handler: (api, args) => api.account.optInToProgram(args
|
|
330
|
+
inputSchema: optInToProgramInputSchema.shape,
|
|
331
|
+
outputSchema: emptyResponseSchema,
|
|
332
|
+
annotations: { readOnlyHint: false },
|
|
333
|
+
handler: (api, args) => Effect.runPromise(api.account.optInToProgram(args)),
|
|
405
334
|
}),
|
|
406
335
|
defineTool({
|
|
407
336
|
name: 'ebay_opt_out_of_program',
|
|
408
337
|
description: 'Opt-out of a seller program',
|
|
409
|
-
inputSchema:
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
handler: (api, args) => api.account.optOutOfProgram(args
|
|
338
|
+
inputSchema: optOutOfProgramInputSchema.shape,
|
|
339
|
+
outputSchema: emptyResponseSchema,
|
|
340
|
+
annotations: { readOnlyHint: false },
|
|
341
|
+
handler: (api, args) => Effect.runPromise(api.account.optOutOfProgram(args)),
|
|
413
342
|
}),
|
|
414
343
|
defineTool({
|
|
415
344
|
name: 'ebay_get_opted_in_programs',
|
|
416
345
|
description: 'Get seller programs the account is opted into',
|
|
417
|
-
inputSchema:
|
|
346
|
+
inputSchema: getOptedInProgramsInputSchema.shape,
|
|
418
347
|
outputSchema: zodToJsonSchema(programsOutputSchema, {
|
|
419
348
|
name: 'ProgramsResponse',
|
|
420
349
|
$refStrategy: 'none',
|
|
421
350
|
}),
|
|
422
|
-
|
|
351
|
+
annotations: { readOnlyHint: true },
|
|
352
|
+
handler: (api, args) => Effect.runPromise(api.account.getOptedInPrograms(args)),
|
|
423
353
|
}),
|
|
424
354
|
defineTool({
|
|
425
355
|
name: 'ebay_get_privileges',
|
|
426
356
|
description: "Get seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide sellingLimit (the maximum dollar value and quantity of items a seller can sell per day).\n\nRequired OAuth Scope: sell.account.readonly or sell.account",
|
|
427
|
-
inputSchema:
|
|
357
|
+
inputSchema: getPrivilegesInputSchema.shape,
|
|
428
358
|
outputSchema: zodToJsonSchema(privilegesOutputSchema, {
|
|
429
359
|
name: 'PrivilegesResponse',
|
|
430
360
|
$refStrategy: 'none',
|
|
431
361
|
}),
|
|
432
|
-
|
|
362
|
+
annotations: { readOnlyHint: true },
|
|
363
|
+
handler: (api, args) => Effect.runPromise(api.account.getPrivileges(args)),
|
|
433
364
|
}),
|
|
434
365
|
defineTool({
|
|
435
366
|
name: 'ebay_get_advertising_eligibility',
|
|
436
367
|
description: 'Check the seller eligibility status for eBay advertising programs. This allows developers to determine if a seller is eligible for various advertising programs on eBay.\n\nRequired OAuth Scope: sell.account.readonly or sell.account',
|
|
437
|
-
inputSchema:
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
.describe('eBay marketplace ID to check eligibility for'),
|
|
441
|
-
programTypes: z
|
|
442
|
-
.string()
|
|
443
|
-
.optional()
|
|
444
|
-
.describe('Optional comma-separated list of program types to check eligibility for'),
|
|
445
|
-
},
|
|
446
|
-
handler: (api, args) => api.account.getAdvertisingEligibility(args.marketplaceId, args.programTypes),
|
|
447
|
-
}),
|
|
448
|
-
defineTool({
|
|
449
|
-
name: 'ebay_get_payments_program',
|
|
450
|
-
description: 'Get payments program status for a marketplace. Note: This method is deprecated as all seller accounts globally have been enabled for the new eBay payment and checkout flow.\n\nRequired OAuth Scope: sell.account.readonly or sell.account',
|
|
451
|
-
inputSchema: {
|
|
452
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('The eBay marketplace ID'),
|
|
453
|
-
paymentsProgramType: z
|
|
454
|
-
.string()
|
|
455
|
-
.describe('The type of payments program (e.g., EBAY_PAYMENTS)'),
|
|
456
|
-
},
|
|
457
|
-
handler: (api, args) => api.account.getPaymentsProgram(args.marketplaceId, args.paymentsProgramType),
|
|
458
|
-
}),
|
|
459
|
-
defineTool({
|
|
460
|
-
name: 'ebay_get_payments_program_onboarding',
|
|
461
|
-
description: 'Get payments program onboarding information. Note: This method is deprecated as all seller accounts globally have been enabled for the new eBay payment and checkout flow.\n\nRequired OAuth Scope: sell.account.readonly or sell.account',
|
|
462
|
-
inputSchema: {
|
|
463
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('The eBay marketplace ID'),
|
|
464
|
-
paymentsProgramType: z
|
|
465
|
-
.string()
|
|
466
|
-
.describe('The type of payments program (e.g., EBAY_PAYMENTS)'),
|
|
467
|
-
},
|
|
468
|
-
handler: (api, args) => api.account.getPaymentsProgramOnboarding(args.marketplaceId, args.paymentsProgramType),
|
|
368
|
+
inputSchema: getAdvertisingEligibilityInputSchema.shape,
|
|
369
|
+
annotations: { readOnlyHint: true },
|
|
370
|
+
handler: (api, args) => Effect.runPromise(api.account.getAdvertisingEligibility(args)),
|
|
469
371
|
}),
|
|
470
372
|
];
|