@sp-api-sdk/tokens-api-2021-03-01 3.0.21 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +321 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +323 -0
- package/dist/index.d.ts +323 -0
- package/dist/index.js +278 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/tokens-api.js +0 -117
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/create-restricted-data-token-request.js +0 -15
- package/dist/cjs/api-model/models/create-restricted-data-token-response.js +0 -15
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -21
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/restricted-resource.js +0 -22
- package/dist/cjs/client.js +0 -21
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/tokens-api.js +0 -107
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/create-restricted-data-token-request.js +0 -14
- package/dist/es/api-model/models/create-restricted-data-token-response.js +0 -14
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/index.js +0 -5
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/restricted-resource.js +0 -19
- package/dist/es/client.js +0 -17
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/tokens-api.d.ts +0 -74
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/create-restricted-data-token-request.d.ts +0 -25
- package/dist/types/api-model/models/create-restricted-data-token-response.d.ts +0 -24
- package/dist/types/api-model/models/error-list.d.ts +0 -17
- package/dist/types/api-model/models/index.d.ts +0 -5
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/restricted-resource.d.ts +0 -35
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Selling Partner API for Tokens
|
|
7
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
interface AWSv4Configuration {
|
|
17
|
+
options?: {
|
|
18
|
+
region?: string;
|
|
19
|
+
service?: string;
|
|
20
|
+
};
|
|
21
|
+
credentials?: {
|
|
22
|
+
accessKeyId?: string;
|
|
23
|
+
secretAccessKey?: string;
|
|
24
|
+
sessionToken?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ConfigurationParameters {
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
username?: string;
|
|
30
|
+
password?: string;
|
|
31
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
32
|
+
awsv4?: AWSv4Configuration;
|
|
33
|
+
basePath?: string;
|
|
34
|
+
serverIndex?: number;
|
|
35
|
+
baseOptions?: any;
|
|
36
|
+
formDataCtor?: new () => any;
|
|
37
|
+
}
|
|
38
|
+
declare class Configuration {
|
|
39
|
+
/**
|
|
40
|
+
* parameter for apiKey security
|
|
41
|
+
* @param name security name
|
|
42
|
+
*/
|
|
43
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for basic security
|
|
50
|
+
*/
|
|
51
|
+
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
* parameter for oauth2 security
|
|
54
|
+
* @param name security name
|
|
55
|
+
* @param scopes oauth2 scope
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
72
|
+
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
77
|
+
/**
|
|
78
|
+
* base options for axios calls
|
|
79
|
+
*/
|
|
80
|
+
baseOptions?: any;
|
|
81
|
+
/**
|
|
82
|
+
* The FormData constructor that will be used to create multipart form data
|
|
83
|
+
* requests. You can inject this here so that execution environments that
|
|
84
|
+
* do not support the FormData class can still run the generated client.
|
|
85
|
+
*
|
|
86
|
+
* @type {new () => FormData}
|
|
87
|
+
*/
|
|
88
|
+
formDataCtor?: new () => any;
|
|
89
|
+
constructor(param?: ConfigurationParameters);
|
|
90
|
+
/**
|
|
91
|
+
* Check if the given MIME is a JSON MIME.
|
|
92
|
+
* JSON MIME examples:
|
|
93
|
+
* application/json
|
|
94
|
+
* application/json; charset=UTF8
|
|
95
|
+
* APPLICATION/JSON
|
|
96
|
+
* application/vnd.company+json
|
|
97
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
98
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isJsonMime(mime: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Selling Partner API for Tokens
|
|
105
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
106
|
+
*
|
|
107
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
+
* https://openapi-generator.tech
|
|
112
|
+
* Do not edit the class manually.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
interface RequestArgs {
|
|
116
|
+
url: string;
|
|
117
|
+
options: RawAxiosRequestConfig;
|
|
118
|
+
}
|
|
119
|
+
declare class BaseAPI {
|
|
120
|
+
protected basePath: string;
|
|
121
|
+
protected axios: AxiosInstance;
|
|
122
|
+
protected configuration: Configuration | undefined;
|
|
123
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Selling Partner API for Tokens
|
|
128
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
129
|
+
*
|
|
130
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
134
|
+
* https://openapi-generator.tech
|
|
135
|
+
* Do not edit the class manually.
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* Model of a restricted resource.
|
|
139
|
+
*/
|
|
140
|
+
interface RestrictedResource {
|
|
141
|
+
/**
|
|
142
|
+
* The HTTP method in the restricted resource.
|
|
143
|
+
*/
|
|
144
|
+
'method': RestrictedResourceMethodEnum;
|
|
145
|
+
/**
|
|
146
|
+
* The path in the restricted resource. Here are some path examples: - ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders. - ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order. - ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order. - ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment. - ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner\'s shipments that you specify when you call the getShipment operation.
|
|
147
|
+
*/
|
|
148
|
+
'path': string;
|
|
149
|
+
/**
|
|
150
|
+
* Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide). Possible values include: - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available. - **shippingAddress**. This includes information for fulfilling orders. - **buyerTaxInformation**. This includes information for issuing tax invoices.
|
|
151
|
+
*/
|
|
152
|
+
'dataElements'?: Array<string>;
|
|
153
|
+
}
|
|
154
|
+
declare const RestrictedResourceMethodEnum: {
|
|
155
|
+
readonly Get: "GET";
|
|
156
|
+
readonly Put: "PUT";
|
|
157
|
+
readonly Post: "POST";
|
|
158
|
+
readonly Delete: "DELETE";
|
|
159
|
+
};
|
|
160
|
+
type RestrictedResourceMethodEnum = typeof RestrictedResourceMethodEnum[keyof typeof RestrictedResourceMethodEnum];
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Selling Partner API for Tokens
|
|
164
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
165
|
+
*
|
|
166
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
170
|
+
* https://openapi-generator.tech
|
|
171
|
+
* Do not edit the class manually.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The request schema for the createRestrictedDataToken operation.
|
|
176
|
+
*/
|
|
177
|
+
interface CreateRestrictedDataTokenRequest {
|
|
178
|
+
/**
|
|
179
|
+
* The application ID for the target application to which access is being delegated.
|
|
180
|
+
*/
|
|
181
|
+
'targetApplication'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* A list of restricted resources. Maximum: 50
|
|
184
|
+
*/
|
|
185
|
+
'restrictedResources': Array<RestrictedResource>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Selling Partner API for Tokens
|
|
190
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
191
|
+
*
|
|
192
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
196
|
+
* https://openapi-generator.tech
|
|
197
|
+
* Do not edit the class manually.
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* The response schema for the createRestrictedDataToken operation.
|
|
201
|
+
*/
|
|
202
|
+
interface CreateRestrictedDataTokenResponse {
|
|
203
|
+
/**
|
|
204
|
+
* A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources.
|
|
205
|
+
*/
|
|
206
|
+
'restrictedDataToken'?: string;
|
|
207
|
+
/**
|
|
208
|
+
* The lifetime of the Restricted Data Token, in seconds.
|
|
209
|
+
*/
|
|
210
|
+
'expiresIn'?: number;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Selling Partner API for Tokens
|
|
215
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
216
|
+
*
|
|
217
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
218
|
+
*
|
|
219
|
+
*
|
|
220
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
221
|
+
* https://openapi-generator.tech
|
|
222
|
+
* Do not edit the class manually.
|
|
223
|
+
*/
|
|
224
|
+
/**
|
|
225
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
226
|
+
*/
|
|
227
|
+
interface ErrorList {
|
|
228
|
+
'errors'?: Array<Error>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Selling Partner API for Tokens
|
|
233
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
234
|
+
*
|
|
235
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
239
|
+
* https://openapi-generator.tech
|
|
240
|
+
* Do not edit the class manually.
|
|
241
|
+
*/
|
|
242
|
+
/**
|
|
243
|
+
* An error response returned when the request is unsuccessful.
|
|
244
|
+
*/
|
|
245
|
+
interface ModelError {
|
|
246
|
+
/**
|
|
247
|
+
* An error code that identifies the type of error that occurred.
|
|
248
|
+
*/
|
|
249
|
+
'code': string;
|
|
250
|
+
/**
|
|
251
|
+
* A message that describes the error condition.
|
|
252
|
+
*/
|
|
253
|
+
'message': string;
|
|
254
|
+
/**
|
|
255
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
256
|
+
*/
|
|
257
|
+
'details'?: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* TokensApi - axios parameter creator
|
|
262
|
+
*/
|
|
263
|
+
declare const TokensApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
264
|
+
/**
|
|
265
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
266
|
+
* @param {CreateRestrictedDataTokenRequest} body The restricted data token request details.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
createRestrictedDataToken: (body: CreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* TokensApi - functional programming interface
|
|
274
|
+
*/
|
|
275
|
+
declare const TokensApiFp: (configuration?: Configuration) => {
|
|
276
|
+
/**
|
|
277
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
278
|
+
* @param {CreateRestrictedDataTokenRequest} body The restricted data token request details.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
createRestrictedDataToken(body: CreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRestrictedDataTokenResponse>>;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* TokensApi - factory interface
|
|
286
|
+
*/
|
|
287
|
+
declare const TokensApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
288
|
+
/**
|
|
289
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
290
|
+
* @param {TokensApiCreateRestrictedDataTokenRequest} requestParameters Request parameters.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateRestrictedDataTokenResponse>;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Request parameters for createRestrictedDataToken operation in TokensApi.
|
|
298
|
+
*/
|
|
299
|
+
interface TokensApiCreateRestrictedDataTokenRequest {
|
|
300
|
+
/**
|
|
301
|
+
* The restricted data token request details.
|
|
302
|
+
*/
|
|
303
|
+
readonly body: CreateRestrictedDataTokenRequest;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* TokensApi - object-oriented interface
|
|
307
|
+
*/
|
|
308
|
+
declare class TokensApi extends BaseAPI {
|
|
309
|
+
/**
|
|
310
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
311
|
+
* @param {TokensApiCreateRestrictedDataTokenRequest} requestParameters Request parameters.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CreateRestrictedDataTokenResponse, any, {}>>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare const clientRateLimits: RateLimit[];
|
|
319
|
+
declare class TokensApiClient extends TokensApi {
|
|
320
|
+
constructor(configuration: ClientConfiguration);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export { type CreateRestrictedDataTokenRequest, type CreateRestrictedDataTokenResponse, type ErrorList, type ModelError, type RestrictedResource, RestrictedResourceMethodEnum, TokensApi, TokensApiAxiosParamCreator, TokensApiClient, type TokensApiCreateRestrictedDataTokenRequest, TokensApiFactory, TokensApiFp, clientRateLimits };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Selling Partner API for Tokens
|
|
7
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
interface AWSv4Configuration {
|
|
17
|
+
options?: {
|
|
18
|
+
region?: string;
|
|
19
|
+
service?: string;
|
|
20
|
+
};
|
|
21
|
+
credentials?: {
|
|
22
|
+
accessKeyId?: string;
|
|
23
|
+
secretAccessKey?: string;
|
|
24
|
+
sessionToken?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ConfigurationParameters {
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
username?: string;
|
|
30
|
+
password?: string;
|
|
31
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
32
|
+
awsv4?: AWSv4Configuration;
|
|
33
|
+
basePath?: string;
|
|
34
|
+
serverIndex?: number;
|
|
35
|
+
baseOptions?: any;
|
|
36
|
+
formDataCtor?: new () => any;
|
|
37
|
+
}
|
|
38
|
+
declare class Configuration {
|
|
39
|
+
/**
|
|
40
|
+
* parameter for apiKey security
|
|
41
|
+
* @param name security name
|
|
42
|
+
*/
|
|
43
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for basic security
|
|
50
|
+
*/
|
|
51
|
+
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
* parameter for oauth2 security
|
|
54
|
+
* @param name security name
|
|
55
|
+
* @param scopes oauth2 scope
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
72
|
+
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
77
|
+
/**
|
|
78
|
+
* base options for axios calls
|
|
79
|
+
*/
|
|
80
|
+
baseOptions?: any;
|
|
81
|
+
/**
|
|
82
|
+
* The FormData constructor that will be used to create multipart form data
|
|
83
|
+
* requests. You can inject this here so that execution environments that
|
|
84
|
+
* do not support the FormData class can still run the generated client.
|
|
85
|
+
*
|
|
86
|
+
* @type {new () => FormData}
|
|
87
|
+
*/
|
|
88
|
+
formDataCtor?: new () => any;
|
|
89
|
+
constructor(param?: ConfigurationParameters);
|
|
90
|
+
/**
|
|
91
|
+
* Check if the given MIME is a JSON MIME.
|
|
92
|
+
* JSON MIME examples:
|
|
93
|
+
* application/json
|
|
94
|
+
* application/json; charset=UTF8
|
|
95
|
+
* APPLICATION/JSON
|
|
96
|
+
* application/vnd.company+json
|
|
97
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
98
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isJsonMime(mime: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Selling Partner API for Tokens
|
|
105
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
106
|
+
*
|
|
107
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
+
* https://openapi-generator.tech
|
|
112
|
+
* Do not edit the class manually.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
interface RequestArgs {
|
|
116
|
+
url: string;
|
|
117
|
+
options: RawAxiosRequestConfig;
|
|
118
|
+
}
|
|
119
|
+
declare class BaseAPI {
|
|
120
|
+
protected basePath: string;
|
|
121
|
+
protected axios: AxiosInstance;
|
|
122
|
+
protected configuration: Configuration | undefined;
|
|
123
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Selling Partner API for Tokens
|
|
128
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
129
|
+
*
|
|
130
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
134
|
+
* https://openapi-generator.tech
|
|
135
|
+
* Do not edit the class manually.
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* Model of a restricted resource.
|
|
139
|
+
*/
|
|
140
|
+
interface RestrictedResource {
|
|
141
|
+
/**
|
|
142
|
+
* The HTTP method in the restricted resource.
|
|
143
|
+
*/
|
|
144
|
+
'method': RestrictedResourceMethodEnum;
|
|
145
|
+
/**
|
|
146
|
+
* The path in the restricted resource. Here are some path examples: - ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders. - ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order. - ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order. - ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment. - ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner\'s shipments that you specify when you call the getShipment operation.
|
|
147
|
+
*/
|
|
148
|
+
'path': string;
|
|
149
|
+
/**
|
|
150
|
+
* Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide). Possible values include: - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available. - **shippingAddress**. This includes information for fulfilling orders. - **buyerTaxInformation**. This includes information for issuing tax invoices.
|
|
151
|
+
*/
|
|
152
|
+
'dataElements'?: Array<string>;
|
|
153
|
+
}
|
|
154
|
+
declare const RestrictedResourceMethodEnum: {
|
|
155
|
+
readonly Get: "GET";
|
|
156
|
+
readonly Put: "PUT";
|
|
157
|
+
readonly Post: "POST";
|
|
158
|
+
readonly Delete: "DELETE";
|
|
159
|
+
};
|
|
160
|
+
type RestrictedResourceMethodEnum = typeof RestrictedResourceMethodEnum[keyof typeof RestrictedResourceMethodEnum];
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Selling Partner API for Tokens
|
|
164
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
165
|
+
*
|
|
166
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
170
|
+
* https://openapi-generator.tech
|
|
171
|
+
* Do not edit the class manually.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The request schema for the createRestrictedDataToken operation.
|
|
176
|
+
*/
|
|
177
|
+
interface CreateRestrictedDataTokenRequest {
|
|
178
|
+
/**
|
|
179
|
+
* The application ID for the target application to which access is being delegated.
|
|
180
|
+
*/
|
|
181
|
+
'targetApplication'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* A list of restricted resources. Maximum: 50
|
|
184
|
+
*/
|
|
185
|
+
'restrictedResources': Array<RestrictedResource>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Selling Partner API for Tokens
|
|
190
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
191
|
+
*
|
|
192
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
196
|
+
* https://openapi-generator.tech
|
|
197
|
+
* Do not edit the class manually.
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* The response schema for the createRestrictedDataToken operation.
|
|
201
|
+
*/
|
|
202
|
+
interface CreateRestrictedDataTokenResponse {
|
|
203
|
+
/**
|
|
204
|
+
* A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources.
|
|
205
|
+
*/
|
|
206
|
+
'restrictedDataToken'?: string;
|
|
207
|
+
/**
|
|
208
|
+
* The lifetime of the Restricted Data Token, in seconds.
|
|
209
|
+
*/
|
|
210
|
+
'expiresIn'?: number;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Selling Partner API for Tokens
|
|
215
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
216
|
+
*
|
|
217
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
218
|
+
*
|
|
219
|
+
*
|
|
220
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
221
|
+
* https://openapi-generator.tech
|
|
222
|
+
* Do not edit the class manually.
|
|
223
|
+
*/
|
|
224
|
+
/**
|
|
225
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
226
|
+
*/
|
|
227
|
+
interface ErrorList {
|
|
228
|
+
'errors'?: Array<Error>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Selling Partner API for Tokens
|
|
233
|
+
* The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide).
|
|
234
|
+
*
|
|
235
|
+
* The version of the OpenAPI document: 2021-03-01
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
239
|
+
* https://openapi-generator.tech
|
|
240
|
+
* Do not edit the class manually.
|
|
241
|
+
*/
|
|
242
|
+
/**
|
|
243
|
+
* An error response returned when the request is unsuccessful.
|
|
244
|
+
*/
|
|
245
|
+
interface ModelError {
|
|
246
|
+
/**
|
|
247
|
+
* An error code that identifies the type of error that occurred.
|
|
248
|
+
*/
|
|
249
|
+
'code': string;
|
|
250
|
+
/**
|
|
251
|
+
* A message that describes the error condition.
|
|
252
|
+
*/
|
|
253
|
+
'message': string;
|
|
254
|
+
/**
|
|
255
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
256
|
+
*/
|
|
257
|
+
'details'?: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* TokensApi - axios parameter creator
|
|
262
|
+
*/
|
|
263
|
+
declare const TokensApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
264
|
+
/**
|
|
265
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
266
|
+
* @param {CreateRestrictedDataTokenRequest} body The restricted data token request details.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
createRestrictedDataToken: (body: CreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* TokensApi - functional programming interface
|
|
274
|
+
*/
|
|
275
|
+
declare const TokensApiFp: (configuration?: Configuration) => {
|
|
276
|
+
/**
|
|
277
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
278
|
+
* @param {CreateRestrictedDataTokenRequest} body The restricted data token request details.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
createRestrictedDataToken(body: CreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRestrictedDataTokenResponse>>;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* TokensApi - factory interface
|
|
286
|
+
*/
|
|
287
|
+
declare const TokensApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
288
|
+
/**
|
|
289
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
290
|
+
* @param {TokensApiCreateRestrictedDataTokenRequest} requestParameters Request parameters.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateRestrictedDataTokenResponse>;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Request parameters for createRestrictedDataToken operation in TokensApi.
|
|
298
|
+
*/
|
|
299
|
+
interface TokensApiCreateRestrictedDataTokenRequest {
|
|
300
|
+
/**
|
|
301
|
+
* The restricted data token request details.
|
|
302
|
+
*/
|
|
303
|
+
readonly body: CreateRestrictedDataTokenRequest;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* TokensApi - object-oriented interface
|
|
307
|
+
*/
|
|
308
|
+
declare class TokensApi extends BaseAPI {
|
|
309
|
+
/**
|
|
310
|
+
* Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
311
|
+
* @param {TokensApiCreateRestrictedDataTokenRequest} requestParameters Request parameters.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CreateRestrictedDataTokenResponse, any, {}>>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare const clientRateLimits: RateLimit[];
|
|
319
|
+
declare class TokensApiClient extends TokensApi {
|
|
320
|
+
constructor(configuration: ClientConfiguration);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export { type CreateRestrictedDataTokenRequest, type CreateRestrictedDataTokenResponse, type ErrorList, type ModelError, type RestrictedResource, RestrictedResourceMethodEnum, TokensApi, TokensApiAxiosParamCreator, TokensApiClient, type TokensApiCreateRestrictedDataTokenRequest, TokensApiFactory, TokensApiFp, clientRateLimits };
|