@emilgroup/setting-sdk 0.1.1-beta.4
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/.openapi-generator/FILES +26 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/default-api.ts +120 -0
- package/api/public-keys-api.ts +785 -0
- package/api.ts +29 -0
- package/base.ts +282 -0
- package/common.ts +198 -0
- package/configuration.ts +110 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/public-keys-api.d.ts +441 -0
- package/dist/api/public-keys-api.js +731 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +31 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +324 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +89 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-public-key-request-dto.d.ts +24 -0
- package/dist/models/create-public-key-request-dto.js +15 -0
- package/dist/models/create-public-key-response-class.d.ts +25 -0
- package/dist/models/create-public-key-response-class.js +15 -0
- package/dist/models/delete-public-key-request-dto.d.ts +24 -0
- package/dist/models/delete-public-key-request-dto.js +15 -0
- package/dist/models/get-public-key-response-class.d.ts +25 -0
- package/dist/models/get-public-key-response-class.js +15 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +27 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-public-keys-response-class.d.ts +43 -0
- package/dist/models/list-public-keys-response-class.js +15 -0
- package/dist/models/public-key-class.d.ts +66 -0
- package/dist/models/public-key-class.js +15 -0
- package/dist/models/rotate-public-key-response-class.d.ts +25 -0
- package/dist/models/rotate-public-key-response-class.js +15 -0
- package/dist/models/update-public-key-request-dto.d.ts +30 -0
- package/dist/models/update-public-key-request-dto.js +15 -0
- package/dist/models/update-public-key-response-class.d.ts +25 -0
- package/dist/models/update-public-key-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-public-key-request-dto.ts +30 -0
- package/models/create-public-key-response-class.ts +31 -0
- package/models/delete-public-key-request-dto.ts +30 -0
- package/models/get-public-key-response-class.ts +31 -0
- package/models/index.ts +11 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-public-keys-response-class.ts +49 -0
- package/models/public-key-class.ts +72 -0
- package/models/rotate-public-key-response-class.ts +31 -0
- package/models/update-public-key-request-dto.ts +36 -0
- package/models/update-public-key-response-class.ts +31 -0
- package/package.json +27 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,731 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL SettingService
|
|
6
|
+
* The EMIL SettingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PublicKeysApi = exports.PublicKeysApiFactory = exports.PublicKeysApiFp = exports.PublicKeysApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* PublicKeysApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PublicKeysApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* This will create public key.
|
|
97
|
+
* @summary Create the public key
|
|
98
|
+
* @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createPublicKey: function (createPublicKeyRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createPublicKeyRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPublicKey', 'createPublicKeyRequestDto', createPublicKeyRequestDto);
|
|
112
|
+
localVarPath = "/settingservice/v1/public-keys";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPublicKeyRequestDto, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* This will delete public key.
|
|
146
|
+
* @summary Delete the public key
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
|
+
* @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
|
|
149
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
deletePublicKey: function (code, deletePublicKeyRequestDto, authorization, options) {
|
|
154
|
+
if (options === void 0) { options = {}; }
|
|
155
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0:
|
|
160
|
+
// verify required parameter 'code' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('deletePublicKey', 'code', code);
|
|
162
|
+
// verify required parameter 'deletePublicKeyRequestDto' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('deletePublicKey', 'deletePublicKeyRequestDto', deletePublicKeyRequestDto);
|
|
164
|
+
localVarPath = "/settingservice/v1/public-keys/{code}"
|
|
165
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
166
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deletePublicKeyRequestDto, localVarRequestOptions, configuration);
|
|
189
|
+
return [2 /*return*/, {
|
|
190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
}];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* This will get public key.
|
|
199
|
+
* @summary Retrieve the public key
|
|
200
|
+
* @param {string} code
|
|
201
|
+
* @param {string} expand
|
|
202
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
getPublicKey: function (code, expand, authorization, options) {
|
|
207
|
+
if (options === void 0) { options = {}; }
|
|
208
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0:
|
|
213
|
+
// verify required parameter 'code' is not null or undefined
|
|
214
|
+
(0, common_1.assertParamExists)('getPublicKey', 'code', code);
|
|
215
|
+
// verify required parameter 'expand' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('getPublicKey', 'expand', expand);
|
|
217
|
+
localVarPath = "/settingservice/v1/public-keys/{code}"
|
|
218
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
219
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
if (configuration) {
|
|
221
|
+
baseOptions = configuration.baseOptions;
|
|
222
|
+
baseAccessToken = configuration.accessToken;
|
|
223
|
+
}
|
|
224
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
+
localVarHeaderParameter = {};
|
|
226
|
+
localVarQueryParameter = {};
|
|
227
|
+
// authentication bearer required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
230
|
+
case 1:
|
|
231
|
+
// authentication bearer required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
_a.sent();
|
|
234
|
+
if (expand !== undefined) {
|
|
235
|
+
localVarQueryParameter['expand'] = expand;
|
|
236
|
+
}
|
|
237
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
238
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
239
|
+
}
|
|
240
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
243
|
+
return [2 /*return*/, {
|
|
244
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
245
|
+
options: localVarRequestOptions,
|
|
246
|
+
}];
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
* Retrieves a list of public keys.
|
|
253
|
+
* @summary List public keys
|
|
254
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
255
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
256
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
257
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, key</i>
|
|
258
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
259
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
listPublicKeys: function (authorization, filter, filters, search, order, expand, options) {
|
|
264
|
+
if (options === void 0) { options = {}; }
|
|
265
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
266
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
|
+
return __generator(this, function (_a) {
|
|
268
|
+
switch (_a.label) {
|
|
269
|
+
case 0:
|
|
270
|
+
localVarPath = "/settingservice/v1/public-keys";
|
|
271
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
baseAccessToken = configuration.accessToken;
|
|
275
|
+
}
|
|
276
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
277
|
+
localVarHeaderParameter = {};
|
|
278
|
+
localVarQueryParameter = {};
|
|
279
|
+
// authentication bearer required
|
|
280
|
+
// http bearer authentication required
|
|
281
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
282
|
+
case 1:
|
|
283
|
+
// authentication bearer required
|
|
284
|
+
// http bearer authentication required
|
|
285
|
+
_a.sent();
|
|
286
|
+
if (filter !== undefined) {
|
|
287
|
+
localVarQueryParameter['filter'] = filter;
|
|
288
|
+
}
|
|
289
|
+
if (filters !== undefined) {
|
|
290
|
+
localVarQueryParameter['filters'] = filters;
|
|
291
|
+
}
|
|
292
|
+
if (search !== undefined) {
|
|
293
|
+
localVarQueryParameter['search'] = search;
|
|
294
|
+
}
|
|
295
|
+
if (order !== undefined) {
|
|
296
|
+
localVarQueryParameter['order'] = order;
|
|
297
|
+
}
|
|
298
|
+
if (expand !== undefined) {
|
|
299
|
+
localVarQueryParameter['expand'] = expand;
|
|
300
|
+
}
|
|
301
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
302
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
303
|
+
}
|
|
304
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
307
|
+
return [2 /*return*/, {
|
|
308
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
309
|
+
options: localVarRequestOptions,
|
|
310
|
+
}];
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* This will rotate public key.
|
|
317
|
+
* @summary Create the public key
|
|
318
|
+
* @param {string} code
|
|
319
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
rotatePublicKey: function (code, authorization, options) {
|
|
324
|
+
if (options === void 0) { options = {}; }
|
|
325
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
326
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
// verify required parameter 'code' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('rotatePublicKey', 'code', code);
|
|
332
|
+
localVarPath = "/settingservice/v1/public-keys/{code}/rotate"
|
|
333
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
334
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
baseAccessToken = configuration.accessToken;
|
|
338
|
+
}
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
340
|
+
localVarHeaderParameter = {};
|
|
341
|
+
localVarQueryParameter = {};
|
|
342
|
+
// authentication bearer required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
345
|
+
case 1:
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
_a.sent();
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
351
|
+
}
|
|
352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return [2 /*return*/, {
|
|
356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
}];
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
},
|
|
363
|
+
/**
|
|
364
|
+
* This will update public key.
|
|
365
|
+
* @summary Update the public key
|
|
366
|
+
* @param {string} code
|
|
367
|
+
* @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
|
|
368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
updatePublicKey: function (code, updatePublicKeyRequestDto, authorization, options) {
|
|
373
|
+
if (options === void 0) { options = {}; }
|
|
374
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
375
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
378
|
+
case 0:
|
|
379
|
+
// verify required parameter 'code' is not null or undefined
|
|
380
|
+
(0, common_1.assertParamExists)('updatePublicKey', 'code', code);
|
|
381
|
+
// verify required parameter 'updatePublicKeyRequestDto' is not null or undefined
|
|
382
|
+
(0, common_1.assertParamExists)('updatePublicKey', 'updatePublicKeyRequestDto', updatePublicKeyRequestDto);
|
|
383
|
+
localVarPath = "/settingservice/v1/public-keys/{code}"
|
|
384
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
385
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
baseAccessToken = configuration.accessToken;
|
|
389
|
+
}
|
|
390
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
391
|
+
localVarHeaderParameter = {};
|
|
392
|
+
localVarQueryParameter = {};
|
|
393
|
+
// authentication bearer required
|
|
394
|
+
// http bearer authentication required
|
|
395
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
396
|
+
case 1:
|
|
397
|
+
// authentication bearer required
|
|
398
|
+
// http bearer authentication required
|
|
399
|
+
_a.sent();
|
|
400
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
401
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
402
|
+
}
|
|
403
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
404
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
405
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
406
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
407
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePublicKeyRequestDto, localVarRequestOptions, configuration);
|
|
408
|
+
return [2 /*return*/, {
|
|
409
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
410
|
+
options: localVarRequestOptions,
|
|
411
|
+
}];
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
},
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
exports.PublicKeysApiAxiosParamCreator = PublicKeysApiAxiosParamCreator;
|
|
419
|
+
/**
|
|
420
|
+
* PublicKeysApi - functional programming interface
|
|
421
|
+
* @export
|
|
422
|
+
*/
|
|
423
|
+
var PublicKeysApiFp = function (configuration) {
|
|
424
|
+
var localVarAxiosParamCreator = (0, exports.PublicKeysApiAxiosParamCreator)(configuration);
|
|
425
|
+
return {
|
|
426
|
+
/**
|
|
427
|
+
* This will create public key.
|
|
428
|
+
* @summary Create the public key
|
|
429
|
+
* @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
|
|
430
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
createPublicKey: function (createPublicKeyRequestDto, authorization, options) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
436
|
+
var localVarAxiosArgs;
|
|
437
|
+
return __generator(this, function (_a) {
|
|
438
|
+
switch (_a.label) {
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPublicKey(createPublicKeyRequestDto, authorization, options)];
|
|
440
|
+
case 1:
|
|
441
|
+
localVarAxiosArgs = _a.sent();
|
|
442
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* This will delete public key.
|
|
449
|
+
* @summary Delete the public key
|
|
450
|
+
* @param {string} code Unique identifier for the object.
|
|
451
|
+
* @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
|
|
452
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
deletePublicKey: function (code, deletePublicKeyRequestDto, authorization, options) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
+
var localVarAxiosArgs;
|
|
459
|
+
return __generator(this, function (_a) {
|
|
460
|
+
switch (_a.label) {
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePublicKey(code, deletePublicKeyRequestDto, authorization, options)];
|
|
462
|
+
case 1:
|
|
463
|
+
localVarAxiosArgs = _a.sent();
|
|
464
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* This will get public key.
|
|
471
|
+
* @summary Retrieve the public key
|
|
472
|
+
* @param {string} code
|
|
473
|
+
* @param {string} expand
|
|
474
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
getPublicKey: function (code, expand, authorization, options) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
480
|
+
var localVarAxiosArgs;
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
switch (_a.label) {
|
|
483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicKey(code, expand, authorization, options)];
|
|
484
|
+
case 1:
|
|
485
|
+
localVarAxiosArgs = _a.sent();
|
|
486
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* Retrieves a list of public keys.
|
|
493
|
+
* @summary List public keys
|
|
494
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
495
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
496
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
497
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, key</i>
|
|
498
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
499
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
listPublicKeys: function (authorization, filter, filters, search, order, expand, options) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var localVarAxiosArgs;
|
|
506
|
+
return __generator(this, function (_a) {
|
|
507
|
+
switch (_a.label) {
|
|
508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPublicKeys(authorization, filter, filters, search, order, expand, options)];
|
|
509
|
+
case 1:
|
|
510
|
+
localVarAxiosArgs = _a.sent();
|
|
511
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
* This will rotate public key.
|
|
518
|
+
* @summary Create the public key
|
|
519
|
+
* @param {string} code
|
|
520
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
rotatePublicKey: function (code, authorization, options) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
526
|
+
var localVarAxiosArgs;
|
|
527
|
+
return __generator(this, function (_a) {
|
|
528
|
+
switch (_a.label) {
|
|
529
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rotatePublicKey(code, authorization, options)];
|
|
530
|
+
case 1:
|
|
531
|
+
localVarAxiosArgs = _a.sent();
|
|
532
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* This will update public key.
|
|
539
|
+
* @summary Update the public key
|
|
540
|
+
* @param {string} code
|
|
541
|
+
* @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
|
|
542
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
updatePublicKey: function (code, updatePublicKeyRequestDto, authorization, options) {
|
|
547
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
548
|
+
var localVarAxiosArgs;
|
|
549
|
+
return __generator(this, function (_a) {
|
|
550
|
+
switch (_a.label) {
|
|
551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePublicKey(code, updatePublicKeyRequestDto, authorization, options)];
|
|
552
|
+
case 1:
|
|
553
|
+
localVarAxiosArgs = _a.sent();
|
|
554
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
},
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
exports.PublicKeysApiFp = PublicKeysApiFp;
|
|
562
|
+
/**
|
|
563
|
+
* PublicKeysApi - factory interface
|
|
564
|
+
* @export
|
|
565
|
+
*/
|
|
566
|
+
var PublicKeysApiFactory = function (configuration, basePath, axios) {
|
|
567
|
+
var localVarFp = (0, exports.PublicKeysApiFp)(configuration);
|
|
568
|
+
return {
|
|
569
|
+
/**
|
|
570
|
+
* This will create public key.
|
|
571
|
+
* @summary Create the public key
|
|
572
|
+
* @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
|
|
573
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
createPublicKey: function (createPublicKeyRequestDto, authorization, options) {
|
|
578
|
+
return localVarFp.createPublicKey(createPublicKeyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
579
|
+
},
|
|
580
|
+
/**
|
|
581
|
+
* This will delete public key.
|
|
582
|
+
* @summary Delete the public key
|
|
583
|
+
* @param {string} code Unique identifier for the object.
|
|
584
|
+
* @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
|
|
585
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
deletePublicKey: function (code, deletePublicKeyRequestDto, authorization, options) {
|
|
590
|
+
return localVarFp.deletePublicKey(code, deletePublicKeyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* This will get public key.
|
|
594
|
+
* @summary Retrieve the public key
|
|
595
|
+
* @param {string} code
|
|
596
|
+
* @param {string} expand
|
|
597
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
getPublicKey: function (code, expand, authorization, options) {
|
|
602
|
+
return localVarFp.getPublicKey(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
603
|
+
},
|
|
604
|
+
/**
|
|
605
|
+
* Retrieves a list of public keys.
|
|
606
|
+
* @summary List public keys
|
|
607
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
609
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, slug, key, createdAt, updatedAt, deletedAt</i>
|
|
610
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, key</i>
|
|
611
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
612
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
listPublicKeys: function (authorization, filter, filters, search, order, expand, options) {
|
|
617
|
+
return localVarFp.listPublicKeys(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* This will rotate public key.
|
|
621
|
+
* @summary Create the public key
|
|
622
|
+
* @param {string} code
|
|
623
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
rotatePublicKey: function (code, authorization, options) {
|
|
628
|
+
return localVarFp.rotatePublicKey(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
629
|
+
},
|
|
630
|
+
/**
|
|
631
|
+
* This will update public key.
|
|
632
|
+
* @summary Update the public key
|
|
633
|
+
* @param {string} code
|
|
634
|
+
* @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
|
|
635
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
updatePublicKey: function (code, updatePublicKeyRequestDto, authorization, options) {
|
|
640
|
+
return localVarFp.updatePublicKey(code, updatePublicKeyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
641
|
+
},
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
exports.PublicKeysApiFactory = PublicKeysApiFactory;
|
|
645
|
+
/**
|
|
646
|
+
* PublicKeysApi - object-oriented interface
|
|
647
|
+
* @export
|
|
648
|
+
* @class PublicKeysApi
|
|
649
|
+
* @extends {BaseAPI}
|
|
650
|
+
*/
|
|
651
|
+
var PublicKeysApi = /** @class */ (function (_super) {
|
|
652
|
+
__extends(PublicKeysApi, _super);
|
|
653
|
+
function PublicKeysApi() {
|
|
654
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* This will create public key.
|
|
658
|
+
* @summary Create the public key
|
|
659
|
+
* @param {PublicKeysApiCreatePublicKeyRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof PublicKeysApi
|
|
663
|
+
*/
|
|
664
|
+
PublicKeysApi.prototype.createPublicKey = function (requestParameters, options) {
|
|
665
|
+
var _this = this;
|
|
666
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).createPublicKey(requestParameters.createPublicKeyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
667
|
+
};
|
|
668
|
+
/**
|
|
669
|
+
* This will delete public key.
|
|
670
|
+
* @summary Delete the public key
|
|
671
|
+
* @param {PublicKeysApiDeletePublicKeyRequest} requestParameters Request parameters.
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
* @memberof PublicKeysApi
|
|
675
|
+
*/
|
|
676
|
+
PublicKeysApi.prototype.deletePublicKey = function (requestParameters, options) {
|
|
677
|
+
var _this = this;
|
|
678
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).deletePublicKey(requestParameters.code, requestParameters.deletePublicKeyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* This will get public key.
|
|
682
|
+
* @summary Retrieve the public key
|
|
683
|
+
* @param {PublicKeysApiGetPublicKeyRequest} requestParameters Request parameters.
|
|
684
|
+
* @param {*} [options] Override http request option.
|
|
685
|
+
* @throws {RequiredError}
|
|
686
|
+
* @memberof PublicKeysApi
|
|
687
|
+
*/
|
|
688
|
+
PublicKeysApi.prototype.getPublicKey = function (requestParameters, options) {
|
|
689
|
+
var _this = this;
|
|
690
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).getPublicKey(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* Retrieves a list of public keys.
|
|
694
|
+
* @summary List public keys
|
|
695
|
+
* @param {PublicKeysApiListPublicKeysRequest} requestParameters Request parameters.
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
* @memberof PublicKeysApi
|
|
699
|
+
*/
|
|
700
|
+
PublicKeysApi.prototype.listPublicKeys = function (requestParameters, options) {
|
|
701
|
+
var _this = this;
|
|
702
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
703
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).listPublicKeys(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* This will rotate public key.
|
|
707
|
+
* @summary Create the public key
|
|
708
|
+
* @param {PublicKeysApiRotatePublicKeyRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
* @memberof PublicKeysApi
|
|
712
|
+
*/
|
|
713
|
+
PublicKeysApi.prototype.rotatePublicKey = function (requestParameters, options) {
|
|
714
|
+
var _this = this;
|
|
715
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).rotatePublicKey(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* This will update public key.
|
|
719
|
+
* @summary Update the public key
|
|
720
|
+
* @param {PublicKeysApiUpdatePublicKeyRequest} requestParameters Request parameters.
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
* @memberof PublicKeysApi
|
|
724
|
+
*/
|
|
725
|
+
PublicKeysApi.prototype.updatePublicKey = function (requestParameters, options) {
|
|
726
|
+
var _this = this;
|
|
727
|
+
return (0, exports.PublicKeysApiFp)(this.configuration).updatePublicKey(requestParameters.code, requestParameters.updatePublicKeyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
728
|
+
};
|
|
729
|
+
return PublicKeysApi;
|
|
730
|
+
}(base_1.BaseAPI));
|
|
731
|
+
exports.PublicKeysApi = PublicKeysApi;
|