@sp-api-sdk/application-management-api-2023-11-30 1.1.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 (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/cjs/index.js +18 -0
  4. package/dist/cjs/src/api-model/api/applications-api.js +113 -0
  5. package/dist/cjs/src/api-model/api.js +30 -0
  6. package/dist/cjs/src/api-model/base.js +66 -0
  7. package/dist/cjs/src/api-model/common.js +145 -0
  8. package/dist/cjs/src/api-model/configuration.js +91 -0
  9. package/dist/cjs/src/api-model/index.js +32 -0
  10. package/dist/cjs/src/api-model/models/error-list.js +15 -0
  11. package/dist/cjs/src/api-model/models/index.js +18 -0
  12. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  13. package/dist/cjs/src/client.js +21 -0
  14. package/dist/es/index.js +2 -0
  15. package/dist/es/src/api-model/api/applications-api.js +103 -0
  16. package/dist/es/src/api-model/api.js +14 -0
  17. package/dist/es/src/api-model/base.js +58 -0
  18. package/dist/es/src/api-model/common.js +133 -0
  19. package/dist/es/src/api-model/configuration.js +87 -0
  20. package/dist/es/src/api-model/index.js +16 -0
  21. package/dist/es/src/api-model/models/error-list.js +14 -0
  22. package/dist/es/src/api-model/models/index.js +2 -0
  23. package/dist/es/src/api-model/models/model-error.js +14 -0
  24. package/dist/es/src/client.js +17 -0
  25. package/dist/types/index.d.ts +2 -0
  26. package/dist/types/src/api-model/api/applications-api.d.ts +66 -0
  27. package/dist/types/src/api-model/api.d.ts +12 -0
  28. package/dist/types/src/api-model/base.d.ts +54 -0
  29. package/dist/types/src/api-model/common.d.ts +66 -0
  30. package/dist/types/src/api-model/configuration.d.ts +83 -0
  31. package/dist/types/src/api-model/index.d.ts +14 -0
  32. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  33. package/dist/types/src/api-model/models/index.d.ts +2 -0
  34. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  35. package/dist/types/src/client.d.ts +6 -0
  36. package/package.json +44 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationManagementApiClient = exports.clientRateLimits = void 0;
4
+ const common_1 = require("@sp-api-sdk/common");
5
+ const api_model_1 = require("./api-model");
6
+ exports.clientRateLimits = [
7
+ {
8
+ method: 'post',
9
+ // eslint-disable-next-line prefer-regex-literals
10
+ urlRegex: new RegExp('^/applications/2023-11-30/clientSecret$'),
11
+ rate: 0.0167,
12
+ burst: 1,
13
+ },
14
+ ];
15
+ class ApplicationManagementApiClient extends api_model_1.ApplicationsApi {
16
+ constructor(configuration) {
17
+ const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
18
+ super(new api_model_1.Configuration(), endpoint, axios);
19
+ }
20
+ }
21
+ exports.ApplicationManagementApiClient = ApplicationManagementApiClient;
@@ -0,0 +1,2 @@
1
+ export * from './src/client';
2
+ export * from './src/api-model/models';
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI } from '../base';
20
+ /**
21
+ * ApplicationsApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const ApplicationsApiAxiosParamCreator = function (configuration) {
25
+ return {
26
+ /**
27
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ rotateApplicationClientSecret: async (options = {}) => {
32
+ const localVarPath = `/applications/2023-11-30/clientSecret`;
33
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35
+ let baseOptions;
36
+ if (configuration) {
37
+ baseOptions = configuration.baseOptions;
38
+ }
39
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
40
+ const localVarHeaderParameter = {};
41
+ const localVarQueryParameter = {};
42
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
45
+ return {
46
+ url: toPathString(localVarUrlObj),
47
+ options: localVarRequestOptions,
48
+ };
49
+ },
50
+ };
51
+ };
52
+ /**
53
+ * ApplicationsApi - functional programming interface
54
+ * @export
55
+ */
56
+ export const ApplicationsApiFp = function (configuration) {
57
+ const localVarAxiosParamCreator = ApplicationsApiAxiosParamCreator(configuration);
58
+ return {
59
+ /**
60
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ async rotateApplicationClientSecret(options) {
65
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApplicationClientSecret(options);
66
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
67
+ },
68
+ };
69
+ };
70
+ /**
71
+ * ApplicationsApi - factory interface
72
+ * @export
73
+ */
74
+ export const ApplicationsApiFactory = function (configuration, basePath, axios) {
75
+ const localVarFp = ApplicationsApiFp(configuration);
76
+ return {
77
+ /**
78
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ rotateApplicationClientSecret(options) {
83
+ return localVarFp.rotateApplicationClientSecret(options).then((request) => request(axios, basePath));
84
+ },
85
+ };
86
+ };
87
+ /**
88
+ * ApplicationsApi - object-oriented interface
89
+ * @export
90
+ * @class ApplicationsApi
91
+ * @extends {BaseAPI}
92
+ */
93
+ export class ApplicationsApi extends BaseAPI {
94
+ /**
95
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ * @memberof ApplicationsApi
99
+ */
100
+ rotateApplicationClientSecret(options) {
101
+ return ApplicationsApiFp(this.configuration).rotateApplicationClientSecret(options).then((request) => request(this.axios, this.basePath));
102
+ }
103
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from './api/applications-api';
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ basePath;
33
+ axios;
34
+ configuration;
35
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
36
+ this.basePath = basePath;
37
+ this.axios = axios;
38
+ if (configuration) {
39
+ this.configuration = configuration;
40
+ this.basePath = configuration.basePath || this.basePath;
41
+ }
42
+ }
43
+ }
44
+ ;
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export class RequiredError extends Error {
52
+ field;
53
+ constructor(field, msg) {
54
+ super(msg);
55
+ this.field = field;
56
+ this.name = "RequiredError";
57
+ }
58
+ }
@@ -0,0 +1,133 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RequiredError } from "./base";
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export const DUMMY_BASE_URL = 'https://example.com';
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export const assertParamExists = function (functionName, paramName, paramValue) {
26
+ if (paramValue === null || paramValue === undefined) {
27
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
28
+ }
29
+ };
30
+ /**
31
+ *
32
+ * @export
33
+ */
34
+ export const setApiKeyToObject = async function (object, keyParamName, configuration) {
35
+ if (configuration && configuration.apiKey) {
36
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
37
+ ? await configuration.apiKey(keyParamName)
38
+ : await configuration.apiKey;
39
+ object[keyParamName] = localVarApiKeyValue;
40
+ }
41
+ };
42
+ /**
43
+ *
44
+ * @export
45
+ */
46
+ export const setBasicAuthToObject = function (object, configuration) {
47
+ if (configuration && (configuration.username || configuration.password)) {
48
+ object["auth"] = { username: configuration.username, password: configuration.password };
49
+ }
50
+ };
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export const setBearerAuthToObject = async function (object, configuration) {
56
+ if (configuration && configuration.accessToken) {
57
+ const accessToken = typeof configuration.accessToken === 'function'
58
+ ? await configuration.accessToken()
59
+ : await configuration.accessToken;
60
+ object["Authorization"] = "Bearer " + accessToken;
61
+ }
62
+ };
63
+ /**
64
+ *
65
+ * @export
66
+ */
67
+ export const setOAuthToObject = async function (object, name, scopes, configuration) {
68
+ if (configuration && configuration.accessToken) {
69
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
70
+ ? await configuration.accessToken(name, scopes)
71
+ : await configuration.accessToken;
72
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
73
+ }
74
+ };
75
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
76
+ if (parameter == null)
77
+ return;
78
+ if (typeof parameter === "object") {
79
+ if (Array.isArray(parameter)) {
80
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
81
+ }
82
+ else {
83
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
84
+ }
85
+ }
86
+ else {
87
+ if (urlSearchParams.has(key)) {
88
+ urlSearchParams.append(key, parameter);
89
+ }
90
+ else {
91
+ urlSearchParams.set(key, parameter);
92
+ }
93
+ }
94
+ }
95
+ /**
96
+ *
97
+ * @export
98
+ */
99
+ export const setSearchParams = function (url, ...objects) {
100
+ const searchParams = new URLSearchParams(url.search);
101
+ setFlattenedQueryParams(searchParams, objects);
102
+ url.search = searchParams.toString();
103
+ };
104
+ /**
105
+ *
106
+ * @export
107
+ */
108
+ export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
109
+ const nonString = typeof value !== 'string';
110
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
111
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
112
+ : nonString;
113
+ return needsSerialization
114
+ ? JSON.stringify(value !== undefined ? value : {})
115
+ : (value || "");
116
+ };
117
+ /**
118
+ *
119
+ * @export
120
+ */
121
+ export const toPathString = function (url) {
122
+ return url.pathname + url.search + url.hash;
123
+ };
124
+ /**
125
+ *
126
+ * @export
127
+ */
128
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
+ return (axios = globalAxios, basePath = BASE_PATH) => {
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
131
+ return axios.request(axiosRequestArgs);
132
+ };
133
+ };
@@ -0,0 +1,87 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export class Configuration {
15
+ /**
16
+ * parameter for apiKey security
17
+ * @param name security name
18
+ * @memberof Configuration
19
+ */
20
+ apiKey;
21
+ /**
22
+ * parameter for basic security
23
+ *
24
+ * @type {string}
25
+ * @memberof Configuration
26
+ */
27
+ username;
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ password;
35
+ /**
36
+ * parameter for oauth2 security
37
+ * @param name security name
38
+ * @param scopes oauth2 scope
39
+ * @memberof Configuration
40
+ */
41
+ accessToken;
42
+ /**
43
+ * override base path
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ basePath;
49
+ /**
50
+ * base options for axios calls
51
+ *
52
+ * @type {any}
53
+ * @memberof Configuration
54
+ */
55
+ baseOptions;
56
+ /**
57
+ * The FormData constructor that will be used to create multipart form data
58
+ * requests. You can inject this here so that execution environments that
59
+ * do not support the FormData class can still run the generated client.
60
+ *
61
+ * @type {new () => FormData}
62
+ */
63
+ formDataCtor;
64
+ constructor(param = {}) {
65
+ this.apiKey = param.apiKey;
66
+ this.username = param.username;
67
+ this.password = param.password;
68
+ this.accessToken = param.accessToken;
69
+ this.basePath = param.basePath;
70
+ this.baseOptions = param.baseOptions;
71
+ this.formDataCtor = param.formDataCtor;
72
+ }
73
+ /**
74
+ * Check if the given MIME is a JSON MIME.
75
+ * JSON MIME examples:
76
+ * application/json
77
+ * application/json; charset=UTF8
78
+ * APPLICATION/JSON
79
+ * application/vnd.company+json
80
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
+ * @return True if the given MIME is JSON, false otherwise.
82
+ */
83
+ isJsonMime(mime) {
84
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
85
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
86
+ }
87
+ }
@@ -0,0 +1,16 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from "./api";
15
+ export * from "./configuration";
16
+ export * from "./models";
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './error-list';
2
+ export * from './model-error';
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Application Management
5
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-30
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,17 @@
1
+ import { createAxiosInstance } from '@sp-api-sdk/common';
2
+ import { ApplicationsApi, Configuration } from './api-model';
3
+ export const clientRateLimits = [
4
+ {
5
+ method: 'post',
6
+ // eslint-disable-next-line prefer-regex-literals
7
+ urlRegex: new RegExp('^/applications/2023-11-30/clientSecret$'),
8
+ rate: 0.0167,
9
+ burst: 1,
10
+ },
11
+ ];
12
+ export class ApplicationManagementApiClient extends ApplicationsApi {
13
+ constructor(configuration) {
14
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
15
+ super(new Configuration(), endpoint, axios);
16
+ }
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/client';
2
+ export * from './src/api-model/models';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import globalAxios from 'axios';
15
+ import { RequestArgs, BaseAPI } from '../base';
16
+ /**
17
+ * ApplicationsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const ApplicationsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ rotateApplicationClientSecret: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * ApplicationsApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const ApplicationsApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ rotateApplicationClientSecret(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
39
+ };
40
+ /**
41
+ * ApplicationsApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const ApplicationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ rotateApplicationClientSecret(options?: AxiosRequestConfig): AxiosPromise<void>;
51
+ };
52
+ /**
53
+ * ApplicationsApi - object-oriented interface
54
+ * @export
55
+ * @class ApplicationsApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class ApplicationsApi extends BaseAPI {
59
+ /**
60
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | 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, refer to [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).
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof ApplicationsApi
64
+ */
65
+ rotateApplicationClientSecret(options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any>>;
66
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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
+ export * from './api/applications-api';
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: AxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }