ebay-mcp 1.4.3

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 (205) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +586 -0
  3. package/build/api/account-management/account.d.ts +216 -0
  4. package/build/api/account-management/account.js +305 -0
  5. package/build/api/analytics-and-report/analytics.d.ts +33 -0
  6. package/build/api/analytics-and-report/analytics.js +102 -0
  7. package/build/api/client.d.ts +89 -0
  8. package/build/api/client.js +343 -0
  9. package/build/api/communication/feedback.d.ts +45 -0
  10. package/build/api/communication/feedback.js +119 -0
  11. package/build/api/communication/message.d.ts +55 -0
  12. package/build/api/communication/message.js +131 -0
  13. package/build/api/communication/negotiation.d.ts +39 -0
  14. package/build/api/communication/negotiation.js +97 -0
  15. package/build/api/communication/notification.d.ts +128 -0
  16. package/build/api/communication/notification.js +373 -0
  17. package/build/api/index.d.ts +96 -0
  18. package/build/api/index.js +121 -0
  19. package/build/api/listing-management/inventory.d.ts +216 -0
  20. package/build/api/listing-management/inventory.js +633 -0
  21. package/build/api/listing-metadata/metadata.d.ts +154 -0
  22. package/build/api/listing-metadata/metadata.js +485 -0
  23. package/build/api/listing-metadata/taxonomy.d.ts +38 -0
  24. package/build/api/listing-metadata/taxonomy.js +58 -0
  25. package/build/api/marketing-and-promotions/marketing.d.ts +395 -0
  26. package/build/api/marketing-and-promotions/marketing.js +565 -0
  27. package/build/api/marketing-and-promotions/recommendation.d.ts +20 -0
  28. package/build/api/marketing-and-promotions/recommendation.js +32 -0
  29. package/build/api/order-management/dispute.d.ts +65 -0
  30. package/build/api/order-management/dispute.js +69 -0
  31. package/build/api/order-management/fulfillment.d.ts +80 -0
  32. package/build/api/order-management/fulfillment.js +89 -0
  33. package/build/api/other/compliance.d.ts +26 -0
  34. package/build/api/other/compliance.js +47 -0
  35. package/build/api/other/edelivery.d.ts +153 -0
  36. package/build/api/other/edelivery.js +219 -0
  37. package/build/api/other/identity.d.ts +17 -0
  38. package/build/api/other/identity.js +24 -0
  39. package/build/api/other/translation.d.ts +14 -0
  40. package/build/api/other/translation.js +22 -0
  41. package/build/api/other/vero.d.ts +30 -0
  42. package/build/api/other/vero.js +48 -0
  43. package/build/auth/oauth-metadata.d.ts +46 -0
  44. package/build/auth/oauth-metadata.js +59 -0
  45. package/build/auth/oauth-middleware.d.ts +35 -0
  46. package/build/auth/oauth-middleware.js +99 -0
  47. package/build/auth/oauth-types.d.ts +66 -0
  48. package/build/auth/oauth-types.js +4 -0
  49. package/build/auth/oauth.d.ts +93 -0
  50. package/build/auth/oauth.js +383 -0
  51. package/build/auth/scope-utils.d.ts +70 -0
  52. package/build/auth/scope-utils.js +304 -0
  53. package/build/auth/token-verifier.d.ts +57 -0
  54. package/build/auth/token-verifier.js +172 -0
  55. package/build/config/environment.d.ts +61 -0
  56. package/build/config/environment.js +260 -0
  57. package/build/index.d.ts +1 -0
  58. package/build/index.js +98 -0
  59. package/build/schemas/account-management/account.d.ts +5324 -0
  60. package/build/schemas/account-management/account.js +366 -0
  61. package/build/schemas/analytics/analytics.d.ts +167 -0
  62. package/build/schemas/analytics/analytics.js +191 -0
  63. package/build/schemas/communication/messages.d.ts +1872 -0
  64. package/build/schemas/communication/messages.js +348 -0
  65. package/build/schemas/fulfillment/orders.d.ts +4655 -0
  66. package/build/schemas/fulfillment/orders.js +317 -0
  67. package/build/schemas/index.d.ts +2100 -0
  68. package/build/schemas/index.js +68 -0
  69. package/build/schemas/inventory-management/inventory.d.ts +6419 -0
  70. package/build/schemas/inventory-management/inventory.js +450 -0
  71. package/build/schemas/marketing/marketing.d.ts +14181 -0
  72. package/build/schemas/marketing/marketing.js +1088 -0
  73. package/build/schemas/metadata/metadata.d.ts +5259 -0
  74. package/build/schemas/metadata/metadata.js +614 -0
  75. package/build/schemas/other/other-apis.d.ts +257 -0
  76. package/build/schemas/other/other-apis.js +372 -0
  77. package/build/schemas/taxonomy/taxonomy.d.ts +215 -0
  78. package/build/schemas/taxonomy/taxonomy.js +571 -0
  79. package/build/scripts/auto-setup.d.ts +12 -0
  80. package/build/scripts/auto-setup.js +277 -0
  81. package/build/scripts/diagnostics.d.ts +8 -0
  82. package/build/scripts/diagnostics.js +299 -0
  83. package/build/scripts/download-specs.d.ts +1 -0
  84. package/build/scripts/download-specs.js +116 -0
  85. package/build/scripts/interactive-setup.d.ts +21 -0
  86. package/build/scripts/interactive-setup.js +723 -0
  87. package/build/server-http.d.ts +11 -0
  88. package/build/server-http.js +361 -0
  89. package/build/tools/definitions/account-with-schemas.d.ts +39 -0
  90. package/build/tools/definitions/account-with-schemas.js +170 -0
  91. package/build/tools/definitions/account.d.ts +12 -0
  92. package/build/tools/definitions/account.js +428 -0
  93. package/build/tools/definitions/analytics.d.ts +25 -0
  94. package/build/tools/definitions/analytics.js +66 -0
  95. package/build/tools/definitions/communication.d.ts +12 -0
  96. package/build/tools/definitions/communication.js +151 -0
  97. package/build/tools/definitions/fulfillment.d.ts +12 -0
  98. package/build/tools/definitions/fulfillment.js +326 -0
  99. package/build/tools/definitions/index.d.ts +25 -0
  100. package/build/tools/definitions/index.js +37 -0
  101. package/build/tools/definitions/inventory.d.ts +12 -0
  102. package/build/tools/definitions/inventory.js +429 -0
  103. package/build/tools/definitions/marketing.d.ts +12 -0
  104. package/build/tools/definitions/marketing.js +1095 -0
  105. package/build/tools/definitions/metadata.d.ts +12 -0
  106. package/build/tools/definitions/metadata.js +188 -0
  107. package/build/tools/definitions/other.d.ts +13 -0
  108. package/build/tools/definitions/other.js +309 -0
  109. package/build/tools/definitions/taxonomy.d.ts +25 -0
  110. package/build/tools/definitions/taxonomy.js +64 -0
  111. package/build/tools/definitions/token-management.d.ts +35 -0
  112. package/build/tools/definitions/token-management.js +103 -0
  113. package/build/tools/index.d.ts +11 -0
  114. package/build/tools/index.js +1003 -0
  115. package/build/tools/schemas.d.ts +14764 -0
  116. package/build/tools/schemas.js +667 -0
  117. package/build/tools/tool-definitions.d.ts +35 -0
  118. package/build/tools/tool-definitions.js +3534 -0
  119. package/build/types/application-settings/developerAnalyticsV1BetaOas3.d.ts +197 -0
  120. package/build/types/application-settings/developerAnalyticsV1BetaOas3.js +5 -0
  121. package/build/types/application-settings/developerClientRegistrationV1Oas3.d.ts +155 -0
  122. package/build/types/application-settings/developerClientRegistrationV1Oas3.js +5 -0
  123. package/build/types/application-settings/developerKeyManagementV1Oas3.d.ts +246 -0
  124. package/build/types/application-settings/developerKeyManagementV1Oas3.js +5 -0
  125. package/build/types/ebay-enums.d.ts +1204 -0
  126. package/build/types/ebay-enums.js +1330 -0
  127. package/build/types/ebay.d.ts +143 -0
  128. package/build/types/ebay.js +123 -0
  129. package/build/types/index.d.ts +6 -0
  130. package/build/types/index.js +10 -0
  131. package/build/types/sell-apps/account-management/sellAccountV1Oas3.d.ts +2579 -0
  132. package/build/types/sell-apps/account-management/sellAccountV1Oas3.js +5 -0
  133. package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.d.ts +446 -0
  134. package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.js +5 -0
  135. package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.d.ts +705 -0
  136. package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.js +5 -0
  137. package/build/types/sell-apps/communication/commerceMessageV1Oas3.d.ts +590 -0
  138. package/build/types/sell-apps/communication/commerceMessageV1Oas3.js +5 -0
  139. package/build/types/sell-apps/communication/commerceNotificationV1Oas3.d.ts +1276 -0
  140. package/build/types/sell-apps/communication/commerceNotificationV1Oas3.js +5 -0
  141. package/build/types/sell-apps/communication/sellNegotiationV1Oas3.d.ts +277 -0
  142. package/build/types/sell-apps/communication/sellNegotiationV1Oas3.js +5 -0
  143. package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.d.ts +3133 -0
  144. package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.js +5 -0
  145. package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.d.ts +2289 -0
  146. package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.js +5 -0
  147. package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.d.ts +6650 -0
  148. package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.js +5 -0
  149. package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.d.ts +172 -0
  150. package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.js +5 -0
  151. package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.d.ts +1869 -0
  152. package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.js +5 -0
  153. package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.d.ts +178 -0
  154. package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.js +5 -0
  155. package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.d.ts +128 -0
  156. package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.js +5 -0
  157. package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.d.ts +417 -0
  158. package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.js +5 -0
  159. package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.d.ts +273 -0
  160. package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.js +5 -0
  161. package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.d.ts +2537 -0
  162. package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.js +5 -0
  163. package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.d.ts +6650 -0
  164. package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.js +5 -0
  165. package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.d.ts +172 -0
  166. package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.js +5 -0
  167. package/build/utils/account-management/account.d.ts +1094 -0
  168. package/build/utils/account-management/account.js +831 -0
  169. package/build/utils/communication/feedback.d.ts +152 -0
  170. package/build/utils/communication/feedback.js +216 -0
  171. package/build/utils/communication/message.d.ts +174 -0
  172. package/build/utils/communication/message.js +242 -0
  173. package/build/utils/communication/negotiation.d.ts +123 -0
  174. package/build/utils/communication/negotiation.js +150 -0
  175. package/build/utils/communication/notification.d.ts +370 -0
  176. package/build/utils/communication/notification.js +369 -0
  177. package/build/utils/date-converter.d.ts +59 -0
  178. package/build/utils/date-converter.js +160 -0
  179. package/build/utils/llm-client-detector.d.ts +54 -0
  180. package/build/utils/llm-client-detector.js +318 -0
  181. package/build/utils/oauth-helper.d.ts +37 -0
  182. package/build/utils/oauth-helper.js +315 -0
  183. package/build/utils/order-management/dispute.d.ts +346 -0
  184. package/build/utils/order-management/dispute.js +369 -0
  185. package/build/utils/order-management/fulfillment.d.ts +200 -0
  186. package/build/utils/order-management/fulfillment.js +205 -0
  187. package/build/utils/other/compliance.d.ts +49 -0
  188. package/build/utils/other/compliance.js +76 -0
  189. package/build/utils/other/edelivery.d.ts +310 -0
  190. package/build/utils/other/edelivery.js +241 -0
  191. package/build/utils/other/identity.d.ts +13 -0
  192. package/build/utils/other/identity.js +13 -0
  193. package/build/utils/other/translation.d.ts +28 -0
  194. package/build/utils/other/translation.js +41 -0
  195. package/build/utils/other/vero.d.ts +61 -0
  196. package/build/utils/other/vero.js +90 -0
  197. package/build/utils/scope-helper.d.ts +49 -0
  198. package/build/utils/scope-helper.js +207 -0
  199. package/build/utils/security-checker.d.ts +46 -0
  200. package/build/utils/security-checker.js +248 -0
  201. package/build/utils/setup-validator.d.ts +25 -0
  202. package/build/utils/setup-validator.js +305 -0
  203. package/build/utils/token-utils.d.ts +40 -0
  204. package/build/utils/token-utils.js +40 -0
  205. package/package.json +115 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
@@ -0,0 +1,178 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ '/user/': {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** @description This method retrieves the account profile information for an authenticated user, which requires a <a href="/api-docs/static/oauth-authorization-code-grant.html">User access token</a>. What is returned is controlled by the <a href="#scopes">scopes</a>. <p>For a business account you use the default scope <code>commerce.identity.readonly</code>, which returns all the fields in the <a href="/api-docs/commerce/identity/resources/user/methods/getUser#response.businessAccount">businessAccount</a> container. These are returned because this is all public information.</p> <p> For an individual account, the fields returned in the <a href="/api-docs/commerce/identity/resources/user/methods/getUser#response.individualAccount">individualAccount</a> container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the <a href="/api-docs/commerce/identity/overview.html">Identity API Overview</a>.</p> <p>In the Sandbox, this API returns mock data. <b>Note: </b> You must use the correct scope or scopes for the data you want returned.</p> */
14
+ get: operations['getUser'];
15
+ put?: never;
16
+ post?: never;
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ }
24
+ export type webhooks = Record<string, never>;
25
+ export interface components {
26
+ schemas: {
27
+ /** @description The type that defines the fields for an address. */
28
+ Address: {
29
+ /** @description The first line of the street address. */
30
+ addressLine1?: string;
31
+ /** @description The second line of the street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'. */
32
+ addressLine2?: string;
33
+ /** @description The city of the address. */
34
+ city?: string;
35
+ /** @description The two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">ISO 3166</a> standard of the country of the address. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/identity/types/bas:CountryCodeEnum'>eBay API documentation</a> */
36
+ country?: string;
37
+ /** @description The county of the address. */
38
+ county?: string;
39
+ /** @description The postal code of the address. */
40
+ postalCode?: string;
41
+ /** @description The state or province of the address. */
42
+ stateOrProvince?: string;
43
+ };
44
+ /** @description The type that defines the fields for the business account information. */
45
+ BusinessAccount: {
46
+ /** @description The container that returns the address of the business account. */
47
+ address?: components['schemas']['Address'];
48
+ /** @description An additional name that is used for their business on eBay. The business name is returned in the <b> name</b> field. */
49
+ doingBusinessAs?: string;
50
+ /** @description The email address of the business account. */
51
+ email?: string;
52
+ /** @description The business name associated with the user's eBay account. */
53
+ name?: string;
54
+ /** @description The container that returns the contact details of the person who is the primary contact for this account. */
55
+ primaryContact?: components['schemas']['Contact'];
56
+ /** @description The container that returns the primary phone number for the business account. */
57
+ primaryPhone?: components['schemas']['Phone'];
58
+ /** @description The container that returns the secondary phone number for the business account. */
59
+ secondaryPhone?: components['schemas']['Phone'];
60
+ /** @description The business website address associated with the eBay account. */
61
+ website?: string;
62
+ };
63
+ /** @description The type that defines the fields for the information of the contact person for the account. */
64
+ Contact: {
65
+ /** @description The first name of the contact person. */
66
+ firstName?: string;
67
+ /** @description The last name of the contact person. */
68
+ lastName?: string;
69
+ };
70
+ /** @description This type defines the fields that can be returned in an error. */
71
+ Error: {
72
+ /** @description Identifies the type of erro. */
73
+ category?: string;
74
+ /** @description Name for the primary system where the error occurred. This is relevant for application errors. */
75
+ domain?: string;
76
+ /**
77
+ * Format: int32
78
+ * @description A unique number to identify the error.
79
+ */
80
+ errorId?: number;
81
+ /** @description An array of request elements most closely associated to the error. */
82
+ inputRefIds?: string[];
83
+ /** @description A more detailed explanation of the error. */
84
+ longMessage?: string;
85
+ /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */
86
+ message?: string;
87
+ /** @description An array of request elements most closely associated to the error. */
88
+ outputRefIds?: string[];
89
+ /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */
90
+ parameters?: components['schemas']['ErrorParameter'][];
91
+ /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */
92
+ subdomain?: string;
93
+ };
94
+ ErrorParameter: {
95
+ /** @description The object of the error. */
96
+ name?: string;
97
+ /** @description The value of the object. */
98
+ value?: string;
99
+ };
100
+ /** @description The type that defines the fields for the information of an individual account. */
101
+ IndividualAccount: {
102
+ /** @description The eBay user's registration email address. */
103
+ email?: string;
104
+ /** @description The eBay user's first name. */
105
+ firstName?: string;
106
+ /** @description The eBay user's last name. */
107
+ lastName?: string;
108
+ /** @description The container that returns the eBay user's primary phone number information. */
109
+ primaryPhone?: components['schemas']['Phone'];
110
+ /** @description The container that returns the eBay user's address information. */
111
+ registrationAddress?: components['schemas']['Address'];
112
+ /** @description The container that returns the eBay user's secondary phone number information. */
113
+ secondaryPhone?: components['schemas']['Phone'];
114
+ };
115
+ /** @description The type that defines the fields for the details of a phone. */
116
+ Phone: {
117
+ /** @description The two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">ISO 3166</a> standard of the country to which the phone number belongs. */
118
+ countryCode?: string;
119
+ /** @description The numeric string representing the phone number. */
120
+ number?: string;
121
+ /** @description The type of phone service. <br /><br /><b> Valid Values: </b> MOBILE or LAND_LINE <br /><br />Code so that your app gracefully handles any future changes to this list. */
122
+ phoneType?: string;
123
+ };
124
+ /** @description The type that defines the fields for the <b>getUser</b> method. */
125
+ UserResponse: {
126
+ /** @description Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries: <br /><br />EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL <br /><br /><b> Valid Values:</b> BUSINESS or INDIVIDUAL <br /><br />Code so that your app gracefully handles any future changes to this list. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/identity/types/api:AccountTypeEnum'>eBay API documentation</a> */
127
+ accountType?: string;
128
+ /** @description The container that returns the business account information of the user. */
129
+ businessAccount?: components['schemas']['BusinessAccount'];
130
+ /** @description The account information of the user. */
131
+ individualAccount?: components['schemas']['IndividualAccount'];
132
+ /** @description The eBay site on which the account is registered. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/identity/types/bas:MarketplaceIdEnum'>eBay API documentation</a> */
133
+ registrationMarketplaceId?: string;
134
+ /** @description Indicates the user's account status. Possible values: <code>CONFIRMED</code>, <code>UNCONFIRMED</code>, <code>ACCOUNTONHOLD</code> and <code>UNDETERMINED</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/identity/types/api:UserStatusEnum'>eBay API documentation</a> */
135
+ status?: string;
136
+ /** @description The eBay immutable user ID of the user's account and can always be used to identify the user. */
137
+ userId?: string;
138
+ /** @description The user name, which was specific by the user when they created the account. <br /><br /><span class="tablenote"><b>Note: </b> This value can be changed by the user.</span> */
139
+ username?: string;
140
+ };
141
+ };
142
+ responses: never;
143
+ parameters: never;
144
+ requestBodies: never;
145
+ headers: never;
146
+ pathItems: never;
147
+ }
148
+ export type $defs = Record<string, never>;
149
+ export interface operations {
150
+ getUser: {
151
+ parameters: {
152
+ query?: never;
153
+ header?: never;
154
+ path?: never;
155
+ cookie?: never;
156
+ };
157
+ requestBody?: never;
158
+ responses: {
159
+ /** @description OK */
160
+ 200: {
161
+ headers: Record<string, unknown>;
162
+ content: {
163
+ 'application/json': components['schemas']['UserResponse'];
164
+ };
165
+ };
166
+ /** @description Not found */
167
+ 404: {
168
+ headers: Record<string, unknown>;
169
+ content?: never;
170
+ };
171
+ /** @description Internal Server Error */
172
+ 500: {
173
+ headers: Record<string, unknown>;
174
+ content?: never;
175
+ };
176
+ };
177
+ };
178
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
@@ -0,0 +1,128 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ '/translate': {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /** @description This method translates listing title and listing description text from one language into another. For a full list of supported language translations, see the <a href="/develop/guides-v2/other-apis/other-apis-guide#supported-languages"target="_blank ">table</a>. */
16
+ post: operations['translate'];
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ }
24
+ export type webhooks = Record<string, never>;
25
+ export interface components {
26
+ schemas: {
27
+ /** @description This type defines the fields that can be returned in an error. */
28
+ Error: {
29
+ /** @description Identifies the type of erro. */
30
+ category?: string;
31
+ /** @description Name for the primary system where the error occurred. This is relevant for application errors. */
32
+ domain?: string;
33
+ /**
34
+ * Format: int32
35
+ * @description A unique number to identify the error.
36
+ */
37
+ errorId?: number;
38
+ /** @description An array of request elements most closely associated to the error. */
39
+ inputRefIds?: string[];
40
+ /** @description A more detailed explanation of the error. */
41
+ longMessage?: string;
42
+ /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */
43
+ message?: string;
44
+ /** @description An array of request elements most closely associated to the error. */
45
+ outputRefIds?: string[];
46
+ /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */
47
+ parameters?: components['schemas']['ErrorParameter'][];
48
+ /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */
49
+ subdomain?: string;
50
+ };
51
+ ErrorParameter: {
52
+ /** @description The object of the error. */
53
+ name?: string;
54
+ /** @description The value of the object. */
55
+ value?: string;
56
+ };
57
+ /** @description This is the base type of the <b>translate</b> method request payload. */
58
+ TranslateRequest: {
59
+ /** @description The language of the input text to be translated. Not all <b>LanguageEnum</b> values are supported in this field. For a full list of supported language pairings, see the Supported languages <a href="/develop/guides-v2/other-apis/other-apis-guide#supported-languages"target="_blank ">table</a>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/translation/types/api:LanguageEnum'>eBay API documentation</a> */
60
+ from?: string;
61
+ /** @description The input text to translate. The maximum number of characters permitted is determined by the <b>translationContext</b> value:<ul><li><code>ITEM_TITLE</code>: 1000 characters maximum</li><li><code>ITEM_DESCRIPTION</code>: 20,000 characters maximum.<br><span class="tablenote"><b>Note:</b> When translating <code>ITEM_DESCRIPTION</code> text, HTML/CSS markup and links can be included and will not count toward this 20,000 character limit.</span></li></ul><span class="tablenote"><b>Note:</b> Currently, only one input string can be translated per API call. Support for multiple continuous text strings is expected in the future.</span> */
62
+ text?: string[];
63
+ /** @description The target language for the translation of the input text. Not all <b>LanguageEnum</b> values are supported in this field. For a full list of supported language pairings, see the Supported languages <a href="/develop/guides-v2/other-apis/other-apis-guide#supported-languages"target="_blank ">table</a>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/translation/types/api:LanguageEnum'>eBay API documentation</a> */
64
+ to?: string;
65
+ /** @description Input the listing entity to be translated.<br><br><b>Valid Values:</b> <code>ITEM_TITLE</code> and <code>ITEM_DESCRIPTION</code></p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/translation/types/api:TranslationContextEnum'>eBay API documentation</a> */
66
+ translationContext?: string;
67
+ };
68
+ /** @description This is the base type of the <b>translate</b> method response payload. */
69
+ TranslateResponse: {
70
+ /** @description The enumeration value indicates the language of the input text. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/translation/types/api:LanguageEnum'>eBay API documentation</a> */
71
+ from?: string;
72
+ /** @description The enumeration value indicates the language of the translated text. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/commerce/translation/types/api:LanguageEnum'>eBay API documentation</a> */
73
+ to?: string;
74
+ /** @description An array showing the input and translated text. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future. */
75
+ translations?: components['schemas']['Translation'][];
76
+ };
77
+ /** @description This type is used by the <b>translations</b> array, which shows the original text supplied by the user in the request payload, and the text translated by eBay.<br><br>Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future. */
78
+ Translation: {
79
+ /** @description The original text, in the language specified in the <b>from</b> field, that was input into the <b>text</b> field in the request. */
80
+ originalText?: string;
81
+ /** @description The translation of the original text into the language specified in the <b>to</b> field. */
82
+ translatedText?: string;
83
+ };
84
+ };
85
+ responses: never;
86
+ parameters: never;
87
+ requestBodies: never;
88
+ headers: never;
89
+ pathItems: never;
90
+ }
91
+ export type $defs = Record<string, never>;
92
+ export interface operations {
93
+ translate: {
94
+ parameters: {
95
+ query?: never;
96
+ header: {
97
+ /** @description This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank ">HTTP request headers</a>. */
98
+ 'Content-Type': string;
99
+ };
100
+ path?: never;
101
+ cookie?: never;
102
+ };
103
+ requestBody: {
104
+ content: {
105
+ 'application/json': components['schemas']['TranslateRequest'];
106
+ };
107
+ };
108
+ responses: {
109
+ /** @description OK */
110
+ 200: {
111
+ headers: Record<string, unknown>;
112
+ content: {
113
+ 'application/json': components['schemas']['TranslateResponse'];
114
+ };
115
+ };
116
+ /** @description Bad Request */
117
+ 400: {
118
+ headers: Record<string, unknown>;
119
+ content?: never;
120
+ };
121
+ /** @description Internal Server Error */
122
+ 500: {
123
+ headers: Record<string, unknown>;
124
+ content?: never;
125
+ };
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};