@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,789 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL SettingService
5
+ * The EMIL SettingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreatePublicKeyRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePublicKeyResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeletePublicKeyRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { GetPublicKeyResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListPublicKeysResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { RotatePublicKeyResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { UpdatePublicKeyRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { UpdatePublicKeyResponseClass } from '../models';
39
+ // URLSearchParams not necessarily used
40
+ // @ts-ignore
41
+ import { URL, URLSearchParams } from 'url';
42
+ const FormData = require('form-data');
43
+ /**
44
+ * PublicKeysApi - axios parameter creator
45
+ * @export
46
+ */
47
+ export const PublicKeysApiAxiosParamCreator = function (configuration?: Configuration) {
48
+ return {
49
+ /**
50
+ * This will create public key.
51
+ * @summary Create the public key
52
+ * @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ createPublicKey: async (createPublicKeyRequestDto: CreatePublicKeyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'createPublicKeyRequestDto' is not null or undefined
59
+ assertParamExists('createPublicKey', 'createPublicKeyRequestDto', createPublicKeyRequestDto)
60
+ const localVarPath = `/settingservice/v1/public-keys`;
61
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63
+ let baseOptions;
64
+ let baseAccessToken;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ baseAccessToken = configuration.accessToken;
68
+ }
69
+
70
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
71
+ const localVarHeaderParameter = {} as any;
72
+ const localVarQueryParameter = {} as any;
73
+
74
+ // authentication bearer required
75
+ // http bearer authentication required
76
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
+
78
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
80
+ }
81
+
82
+
83
+
84
+ localVarHeaderParameter['Content-Type'] = 'application/json';
85
+
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
89
+ localVarRequestOptions.data = serializeDataIfNeeded(createPublicKeyRequestDto, localVarRequestOptions, configuration)
90
+
91
+ return {
92
+ url: toPathString(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ * This will delete public key.
98
+ * @summary Delete the public key
99
+ * @param {string} code Unique identifier for the object.
100
+ * @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
101
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ deletePublicKey: async (code: string, deletePublicKeyRequestDto: DeletePublicKeyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
106
+ // verify required parameter 'code' is not null or undefined
107
+ assertParamExists('deletePublicKey', 'code', code)
108
+ // verify required parameter 'deletePublicKeyRequestDto' is not null or undefined
109
+ assertParamExists('deletePublicKey', 'deletePublicKeyRequestDto', deletePublicKeyRequestDto)
110
+ const localVarPath = `/settingservice/v1/public-keys/{code}`
111
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ let baseAccessToken;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ baseAccessToken = configuration.accessToken;
119
+ }
120
+
121
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
122
+ const localVarHeaderParameter = {} as any;
123
+ const localVarQueryParameter = {} as any;
124
+
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
+
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+
133
+
134
+
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+
137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
140
+ localVarRequestOptions.data = serializeDataIfNeeded(deletePublicKeyRequestDto, localVarRequestOptions, configuration)
141
+
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ /**
148
+ * This will get public key.
149
+ * @summary Retrieve the public key
150
+ * @param {string} code
151
+ * @param {string} expand
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getPublicKey: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
157
+ // verify required parameter 'code' is not null or undefined
158
+ assertParamExists('getPublicKey', 'code', code)
159
+ // verify required parameter 'expand' is not null or undefined
160
+ assertParamExists('getPublicKey', 'expand', expand)
161
+ const localVarPath = `/settingservice/v1/public-keys/{code}`
162
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
165
+ let baseOptions;
166
+ let baseAccessToken;
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+
172
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
173
+ const localVarHeaderParameter = {} as any;
174
+ const localVarQueryParameter = {} as any;
175
+
176
+ // authentication bearer required
177
+ // http bearer authentication required
178
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
179
+
180
+ if (expand !== undefined) {
181
+ localVarQueryParameter['expand'] = expand;
182
+ }
183
+
184
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ }
187
+
188
+
189
+
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
+
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ /**
200
+ * Retrieves a list of public keys.
201
+ * @summary List public keys
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @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;
204
+ * @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;
205
+ * @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;
206
+ * @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;
207
+ * @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;
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ listPublicKeys: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
212
+ const localVarPath = `/settingservice/v1/public-keys`;
213
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
214
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
215
+ let baseOptions;
216
+ let baseAccessToken;
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ baseAccessToken = configuration.accessToken;
220
+ }
221
+
222
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
223
+ const localVarHeaderParameter = {} as any;
224
+ const localVarQueryParameter = {} as any;
225
+
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
229
+
230
+ if (filter !== undefined) {
231
+ localVarQueryParameter['filter'] = filter;
232
+ }
233
+
234
+ if (filters !== undefined) {
235
+ localVarQueryParameter['filters'] = filters;
236
+ }
237
+
238
+ if (search !== undefined) {
239
+ localVarQueryParameter['search'] = search;
240
+ }
241
+
242
+ if (order !== undefined) {
243
+ localVarQueryParameter['order'] = order;
244
+ }
245
+
246
+ if (expand !== undefined) {
247
+ localVarQueryParameter['expand'] = expand;
248
+ }
249
+
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+
254
+
255
+
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * This will rotate public key.
267
+ * @summary Create the public key
268
+ * @param {string} code
269
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ rotatePublicKey: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ // verify required parameter 'code' is not null or undefined
275
+ assertParamExists('rotatePublicKey', 'code', code)
276
+ const localVarPath = `/settingservice/v1/public-keys/{code}/rotate`
277
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ let baseAccessToken;
282
+ if (configuration) {
283
+ baseOptions = configuration.baseOptions;
284
+ baseAccessToken = configuration.accessToken;
285
+ }
286
+
287
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
288
+ const localVarHeaderParameter = {} as any;
289
+ const localVarQueryParameter = {} as any;
290
+
291
+ // authentication bearer required
292
+ // http bearer authentication required
293
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
294
+
295
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
296
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
297
+ }
298
+
299
+
300
+
301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
304
+
305
+ return {
306
+ url: toPathString(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ };
309
+ },
310
+ /**
311
+ * This will update public key.
312
+ * @summary Update the public key
313
+ * @param {string} code
314
+ * @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
315
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ updatePublicKey: async (code: string, updatePublicKeyRequestDto: UpdatePublicKeyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
320
+ // verify required parameter 'code' is not null or undefined
321
+ assertParamExists('updatePublicKey', 'code', code)
322
+ // verify required parameter 'updatePublicKeyRequestDto' is not null or undefined
323
+ assertParamExists('updatePublicKey', 'updatePublicKeyRequestDto', updatePublicKeyRequestDto)
324
+ const localVarPath = `/settingservice/v1/public-keys/{code}`
325
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
328
+ let baseOptions;
329
+ let baseAccessToken;
330
+ if (configuration) {
331
+ baseOptions = configuration.baseOptions;
332
+ baseAccessToken = configuration.accessToken;
333
+ }
334
+
335
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
336
+ const localVarHeaderParameter = {} as any;
337
+ const localVarQueryParameter = {} as any;
338
+
339
+ // authentication bearer required
340
+ // http bearer authentication required
341
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
342
+
343
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
344
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
345
+ }
346
+
347
+
348
+
349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
350
+
351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
354
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePublicKeyRequestDto, localVarRequestOptions, configuration)
355
+
356
+ return {
357
+ url: toPathString(localVarUrlObj),
358
+ options: localVarRequestOptions,
359
+ };
360
+ },
361
+ }
362
+ };
363
+
364
+ /**
365
+ * PublicKeysApi - functional programming interface
366
+ * @export
367
+ */
368
+ export const PublicKeysApiFp = function(configuration?: Configuration) {
369
+ const localVarAxiosParamCreator = PublicKeysApiAxiosParamCreator(configuration)
370
+ return {
371
+ /**
372
+ * This will create public key.
373
+ * @summary Create the public key
374
+ * @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
375
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ async createPublicKey(createPublicKeyRequestDto: CreatePublicKeyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePublicKeyResponseClass>> {
380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPublicKey(createPublicKeyRequestDto, authorization, options);
381
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
+ },
383
+ /**
384
+ * This will delete public key.
385
+ * @summary Delete the public key
386
+ * @param {string} code Unique identifier for the object.
387
+ * @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
388
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ async deletePublicKey(code: string, deletePublicKeyRequestDto: DeletePublicKeyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
393
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePublicKey(code, deletePublicKeyRequestDto, authorization, options);
394
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
395
+ },
396
+ /**
397
+ * This will get public key.
398
+ * @summary Retrieve the public key
399
+ * @param {string} code
400
+ * @param {string} expand
401
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ async getPublicKey(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicKeyResponseClass>> {
406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKey(code, expand, authorization, options);
407
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
+ },
409
+ /**
410
+ * Retrieves a list of public keys.
411
+ * @summary List public keys
412
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
413
+ * @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;
414
+ * @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;
415
+ * @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;
416
+ * @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;
417
+ * @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;
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ async listPublicKeys(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPublicKeysResponseClass>> {
422
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPublicKeys(authorization, filter, filters, search, order, expand, options);
423
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
424
+ },
425
+ /**
426
+ * This will rotate public key.
427
+ * @summary Create the public key
428
+ * @param {string} code
429
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ async rotatePublicKey(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RotatePublicKeyResponseClass>> {
434
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rotatePublicKey(code, authorization, options);
435
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
436
+ },
437
+ /**
438
+ * This will update public key.
439
+ * @summary Update the public key
440
+ * @param {string} code
441
+ * @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
442
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ async updatePublicKey(code: string, updatePublicKeyRequestDto: UpdatePublicKeyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePublicKeyResponseClass>> {
447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicKey(code, updatePublicKeyRequestDto, authorization, options);
448
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
+ },
450
+ }
451
+ };
452
+
453
+ /**
454
+ * PublicKeysApi - factory interface
455
+ * @export
456
+ */
457
+ export const PublicKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
458
+ const localVarFp = PublicKeysApiFp(configuration)
459
+ return {
460
+ /**
461
+ * This will create public key.
462
+ * @summary Create the public key
463
+ * @param {CreatePublicKeyRequestDto} createPublicKeyRequestDto
464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ createPublicKey(createPublicKeyRequestDto: CreatePublicKeyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePublicKeyResponseClass> {
469
+ return localVarFp.createPublicKey(createPublicKeyRequestDto, authorization, options).then((request) => request(axios, basePath));
470
+ },
471
+ /**
472
+ * This will delete public key.
473
+ * @summary Delete the public key
474
+ * @param {string} code Unique identifier for the object.
475
+ * @param {DeletePublicKeyRequestDto} deletePublicKeyRequestDto
476
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ deletePublicKey(code: string, deletePublicKeyRequestDto: DeletePublicKeyRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
481
+ return localVarFp.deletePublicKey(code, deletePublicKeyRequestDto, authorization, options).then((request) => request(axios, basePath));
482
+ },
483
+ /**
484
+ * This will get public key.
485
+ * @summary Retrieve the public key
486
+ * @param {string} code
487
+ * @param {string} expand
488
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ getPublicKey(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPublicKeyResponseClass> {
493
+ return localVarFp.getPublicKey(code, expand, authorization, options).then((request) => request(axios, basePath));
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(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPublicKeysResponseClass> {
508
+ return localVarFp.listPublicKeys(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
509
+ },
510
+ /**
511
+ * This will rotate public key.
512
+ * @summary Create the public key
513
+ * @param {string} code
514
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
515
+ * @param {*} [options] Override http request option.
516
+ * @throws {RequiredError}
517
+ */
518
+ rotatePublicKey(code: string, authorization?: string, options?: any): AxiosPromise<RotatePublicKeyResponseClass> {
519
+ return localVarFp.rotatePublicKey(code, authorization, options).then((request) => request(axios, basePath));
520
+ },
521
+ /**
522
+ * This will update public key.
523
+ * @summary Update the public key
524
+ * @param {string} code
525
+ * @param {UpdatePublicKeyRequestDto} updatePublicKeyRequestDto
526
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ updatePublicKey(code: string, updatePublicKeyRequestDto: UpdatePublicKeyRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePublicKeyResponseClass> {
531
+ return localVarFp.updatePublicKey(code, updatePublicKeyRequestDto, authorization, options).then((request) => request(axios, basePath));
532
+ },
533
+ };
534
+ };
535
+
536
+ /**
537
+ * Request parameters for createPublicKey operation in PublicKeysApi.
538
+ * @export
539
+ * @interface PublicKeysApiCreatePublicKeyRequest
540
+ */
541
+ export interface PublicKeysApiCreatePublicKeyRequest {
542
+ /**
543
+ *
544
+ * @type {CreatePublicKeyRequestDto}
545
+ * @memberof PublicKeysApiCreatePublicKey
546
+ */
547
+ readonly createPublicKeyRequestDto: CreatePublicKeyRequestDto
548
+
549
+ /**
550
+ * Bearer Token: provided by the login endpoint under the name accessToken.
551
+ * @type {string}
552
+ * @memberof PublicKeysApiCreatePublicKey
553
+ */
554
+ readonly authorization?: string
555
+ }
556
+
557
+ /**
558
+ * Request parameters for deletePublicKey operation in PublicKeysApi.
559
+ * @export
560
+ * @interface PublicKeysApiDeletePublicKeyRequest
561
+ */
562
+ export interface PublicKeysApiDeletePublicKeyRequest {
563
+ /**
564
+ * Unique identifier for the object.
565
+ * @type {string}
566
+ * @memberof PublicKeysApiDeletePublicKey
567
+ */
568
+ readonly code: string
569
+
570
+ /**
571
+ *
572
+ * @type {DeletePublicKeyRequestDto}
573
+ * @memberof PublicKeysApiDeletePublicKey
574
+ */
575
+ readonly deletePublicKeyRequestDto: DeletePublicKeyRequestDto
576
+
577
+ /**
578
+ * Bearer Token: provided by the login endpoint under the name accessToken.
579
+ * @type {string}
580
+ * @memberof PublicKeysApiDeletePublicKey
581
+ */
582
+ readonly authorization?: string
583
+ }
584
+
585
+ /**
586
+ * Request parameters for getPublicKey operation in PublicKeysApi.
587
+ * @export
588
+ * @interface PublicKeysApiGetPublicKeyRequest
589
+ */
590
+ export interface PublicKeysApiGetPublicKeyRequest {
591
+ /**
592
+ *
593
+ * @type {string}
594
+ * @memberof PublicKeysApiGetPublicKey
595
+ */
596
+ readonly code: string
597
+
598
+ /**
599
+ *
600
+ * @type {string}
601
+ * @memberof PublicKeysApiGetPublicKey
602
+ */
603
+ readonly expand: string
604
+
605
+ /**
606
+ * Bearer Token: provided by the login endpoint under the name accessToken.
607
+ * @type {string}
608
+ * @memberof PublicKeysApiGetPublicKey
609
+ */
610
+ readonly authorization?: string
611
+ }
612
+
613
+ /**
614
+ * Request parameters for listPublicKeys operation in PublicKeysApi.
615
+ * @export
616
+ * @interface PublicKeysApiListPublicKeysRequest
617
+ */
618
+ export interface PublicKeysApiListPublicKeysRequest {
619
+ /**
620
+ * Bearer Token: provided by the login endpoint under the name accessToken.
621
+ * @type {string}
622
+ * @memberof PublicKeysApiListPublicKeys
623
+ */
624
+ readonly authorization?: string
625
+
626
+ /**
627
+ * 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;
628
+ * @type {string}
629
+ * @memberof PublicKeysApiListPublicKeys
630
+ */
631
+ readonly filter?: string
632
+
633
+ /**
634
+ * 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;
635
+ * @type {string}
636
+ * @memberof PublicKeysApiListPublicKeys
637
+ */
638
+ readonly filters?: string
639
+
640
+ /**
641
+ * 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;
642
+ * @type {string}
643
+ * @memberof PublicKeysApiListPublicKeys
644
+ */
645
+ readonly search?: string
646
+
647
+ /**
648
+ * 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;
649
+ * @type {string}
650
+ * @memberof PublicKeysApiListPublicKeys
651
+ */
652
+ readonly order?: string
653
+
654
+ /**
655
+ * 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;
656
+ * @type {string}
657
+ * @memberof PublicKeysApiListPublicKeys
658
+ */
659
+ readonly expand?: string
660
+ }
661
+
662
+ /**
663
+ * Request parameters for rotatePublicKey operation in PublicKeysApi.
664
+ * @export
665
+ * @interface PublicKeysApiRotatePublicKeyRequest
666
+ */
667
+ export interface PublicKeysApiRotatePublicKeyRequest {
668
+ /**
669
+ *
670
+ * @type {string}
671
+ * @memberof PublicKeysApiRotatePublicKey
672
+ */
673
+ readonly code: string
674
+
675
+ /**
676
+ * Bearer Token: provided by the login endpoint under the name accessToken.
677
+ * @type {string}
678
+ * @memberof PublicKeysApiRotatePublicKey
679
+ */
680
+ readonly authorization?: string
681
+ }
682
+
683
+ /**
684
+ * Request parameters for updatePublicKey operation in PublicKeysApi.
685
+ * @export
686
+ * @interface PublicKeysApiUpdatePublicKeyRequest
687
+ */
688
+ export interface PublicKeysApiUpdatePublicKeyRequest {
689
+ /**
690
+ *
691
+ * @type {string}
692
+ * @memberof PublicKeysApiUpdatePublicKey
693
+ */
694
+ readonly code: string
695
+
696
+ /**
697
+ *
698
+ * @type {UpdatePublicKeyRequestDto}
699
+ * @memberof PublicKeysApiUpdatePublicKey
700
+ */
701
+ readonly updatePublicKeyRequestDto: UpdatePublicKeyRequestDto
702
+
703
+ /**
704
+ * Bearer Token: provided by the login endpoint under the name accessToken.
705
+ * @type {string}
706
+ * @memberof PublicKeysApiUpdatePublicKey
707
+ */
708
+ readonly authorization?: string
709
+ }
710
+
711
+ /**
712
+ * PublicKeysApi - object-oriented interface
713
+ * @export
714
+ * @class PublicKeysApi
715
+ * @extends {BaseAPI}
716
+ */
717
+ export class PublicKeysApi extends BaseAPI {
718
+ /**
719
+ * This will create public key.
720
+ * @summary Create the public key
721
+ * @param {PublicKeysApiCreatePublicKeyRequest} requestParameters Request parameters.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ * @memberof PublicKeysApi
725
+ */
726
+ public createPublicKey(requestParameters: PublicKeysApiCreatePublicKeyRequest, options?: AxiosRequestConfig) {
727
+ return PublicKeysApiFp(this.configuration).createPublicKey(requestParameters.createPublicKeyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
728
+ }
729
+
730
+ /**
731
+ * This will delete public key.
732
+ * @summary Delete the public key
733
+ * @param {PublicKeysApiDeletePublicKeyRequest} requestParameters Request parameters.
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ * @memberof PublicKeysApi
737
+ */
738
+ public deletePublicKey(requestParameters: PublicKeysApiDeletePublicKeyRequest, options?: AxiosRequestConfig) {
739
+ return PublicKeysApiFp(this.configuration).deletePublicKey(requestParameters.code, requestParameters.deletePublicKeyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
740
+ }
741
+
742
+ /**
743
+ * This will get public key.
744
+ * @summary Retrieve the public key
745
+ * @param {PublicKeysApiGetPublicKeyRequest} requestParameters Request parameters.
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ * @memberof PublicKeysApi
749
+ */
750
+ public getPublicKey(requestParameters: PublicKeysApiGetPublicKeyRequest, options?: AxiosRequestConfig) {
751
+ return PublicKeysApiFp(this.configuration).getPublicKey(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
752
+ }
753
+
754
+ /**
755
+ * Retrieves a list of public keys.
756
+ * @summary List public keys
757
+ * @param {PublicKeysApiListPublicKeysRequest} requestParameters Request parameters.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ * @memberof PublicKeysApi
761
+ */
762
+ public listPublicKeys(requestParameters: PublicKeysApiListPublicKeysRequest = {}, options?: AxiosRequestConfig) {
763
+ return PublicKeysApiFp(this.configuration).listPublicKeys(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
764
+ }
765
+
766
+ /**
767
+ * This will rotate public key.
768
+ * @summary Create the public key
769
+ * @param {PublicKeysApiRotatePublicKeyRequest} requestParameters Request parameters.
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ * @memberof PublicKeysApi
773
+ */
774
+ public rotatePublicKey(requestParameters: PublicKeysApiRotatePublicKeyRequest, options?: AxiosRequestConfig) {
775
+ return PublicKeysApiFp(this.configuration).rotatePublicKey(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
776
+ }
777
+
778
+ /**
779
+ * This will update public key.
780
+ * @summary Update the public key
781
+ * @param {PublicKeysApiUpdatePublicKeyRequest} requestParameters Request parameters.
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ * @memberof PublicKeysApi
785
+ */
786
+ public updatePublicKey(requestParameters: PublicKeysApiUpdatePublicKeyRequest, options?: AxiosRequestConfig) {
787
+ return PublicKeysApiFp(this.configuration).updatePublicKey(requestParameters.code, requestParameters.updatePublicKeyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
788
+ }
789
+ }