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