@sp-api-sdk/tokens-api-2021-03-01 3.0.22 → 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.
Files changed (50) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +321 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +323 -0
  5. package/dist/index.d.ts +323 -0
  6. package/dist/index.js +278 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/tokens-api.js +0 -117
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/create-restricted-data-token-request.js +0 -15
  16. package/dist/cjs/api-model/models/create-restricted-data-token-response.js +0 -15
  17. package/dist/cjs/api-model/models/error-list.js +0 -15
  18. package/dist/cjs/api-model/models/index.js +0 -21
  19. package/dist/cjs/api-model/models/model-error.js +0 -15
  20. package/dist/cjs/api-model/models/restricted-resource.js +0 -22
  21. package/dist/cjs/client.js +0 -21
  22. package/dist/cjs/index.js +0 -19
  23. package/dist/es/api-model/api/tokens-api.js +0 -107
  24. package/dist/es/api-model/api.js +0 -14
  25. package/dist/es/api-model/base.js +0 -44
  26. package/dist/es/api-model/common.js +0 -110
  27. package/dist/es/api-model/configuration.js +0 -94
  28. package/dist/es/api-model/index.js +0 -16
  29. package/dist/es/api-model/models/create-restricted-data-token-request.js +0 -14
  30. package/dist/es/api-model/models/create-restricted-data-token-response.js +0 -14
  31. package/dist/es/api-model/models/error-list.js +0 -14
  32. package/dist/es/api-model/models/index.js +0 -5
  33. package/dist/es/api-model/models/model-error.js +0 -14
  34. package/dist/es/api-model/models/restricted-resource.js +0 -19
  35. package/dist/es/client.js +0 -17
  36. package/dist/es/index.js +0 -3
  37. package/dist/types/api-model/api/tokens-api.d.ts +0 -74
  38. package/dist/types/api-model/api.d.ts +0 -12
  39. package/dist/types/api-model/base.d.ts +0 -42
  40. package/dist/types/api-model/common.d.ts +0 -34
  41. package/dist/types/api-model/configuration.d.ts +0 -98
  42. package/dist/types/api-model/index.d.ts +0 -14
  43. package/dist/types/api-model/models/create-restricted-data-token-request.d.ts +0 -25
  44. package/dist/types/api-model/models/create-restricted-data-token-response.d.ts +0 -24
  45. package/dist/types/api-model/models/error-list.d.ts +0 -17
  46. package/dist/types/api-model/models/index.d.ts +0 -5
  47. package/dist/types/api-model/models/model-error.d.ts +0 -28
  48. package/dist/types/api-model/models/restricted-resource.d.ts +0 -35
  49. package/dist/types/client.d.ts +0 -6
  50. package/dist/types/index.d.ts +0 -3
@@ -1,24 +0,0 @@
1
- /**
2
- * Selling Partner API for Tokens
3
- * 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).
4
- *
5
- * The version of the OpenAPI document: 2021-03-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * The response schema for the createRestrictedDataToken operation.
14
- */
15
- export interface CreateRestrictedDataTokenResponse {
16
- /**
17
- * 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.
18
- */
19
- 'restrictedDataToken'?: string;
20
- /**
21
- * The lifetime of the Restricted Data Token, in seconds.
22
- */
23
- 'expiresIn'?: number;
24
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Selling Partner API for Tokens
3
- * 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).
4
- *
5
- * The version of the OpenAPI document: 2021-03-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * A list of error responses returned when a request is unsuccessful.
14
- */
15
- export interface ErrorList {
16
- 'errors'?: Array<Error>;
17
- }
@@ -1,5 +0,0 @@
1
- export * from './create-restricted-data-token-request';
2
- export * from './create-restricted-data-token-response';
3
- export * from './error-list';
4
- export * from './model-error';
5
- export * from './restricted-resource';
@@ -1,28 +0,0 @@
1
- /**
2
- * Selling Partner API for Tokens
3
- * 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).
4
- *
5
- * The version of the OpenAPI document: 2021-03-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * An error response returned when the request is unsuccessful.
14
- */
15
- export interface ModelError {
16
- /**
17
- * An error code that identifies the type of error that occurred.
18
- */
19
- 'code': string;
20
- /**
21
- * A message that describes the error condition.
22
- */
23
- 'message': string;
24
- /**
25
- * Additional details that can help the caller understand or fix the issue.
26
- */
27
- 'details'?: string;
28
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * Selling Partner API for Tokens
3
- * 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).
4
- *
5
- * The version of the OpenAPI document: 2021-03-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Model of a restricted resource.
14
- */
15
- export interface RestrictedResource {
16
- /**
17
- * The HTTP method in the restricted resource.
18
- */
19
- 'method': RestrictedResourceMethodEnum;
20
- /**
21
- * 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.
22
- */
23
- 'path': string;
24
- /**
25
- * 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.
26
- */
27
- 'dataElements'?: Array<string>;
28
- }
29
- export declare const RestrictedResourceMethodEnum: {
30
- readonly Get: "GET";
31
- readonly Put: "PUT";
32
- readonly Post: "POST";
33
- readonly Delete: "DELETE";
34
- };
35
- export type RestrictedResourceMethodEnum = typeof RestrictedResourceMethodEnum[keyof typeof RestrictedResourceMethodEnum];
@@ -1,6 +0,0 @@
1
- import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
- import { TokensApi } from './api-model';
3
- export declare const clientRateLimits: RateLimit[];
4
- export declare class TokensApiClient extends TokensApi {
5
- constructor(configuration: ClientConfiguration);
6
- }
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export * from './api-model/api';
3
- export * from './api-model/models';