@triveria/admin 0.0.0-dev-f2e5999
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/api.d.ts +348 -0
- package/api.js +634 -0
- package/base.d.ts +42 -0
- package/base.js +49 -0
- package/client.d.ts +17 -0
- package/client.js +29 -0
- package/common.d.ts +34 -0
- package/common.js +139 -0
- package/configuration.d.ts +98 -0
- package/configuration.js +44 -0
- package/index.d.ts +14 -0
- package/index.js +32 -0
- package/package.json +28 -0
package/api.d.ts
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Triveria Admin API
|
|
3
|
+
* Triveria Admin API allows to manage Wallet API keys and services.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev.f2e5999
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import type { RequestArgs } from './base';
|
|
15
|
+
import { BaseAPI } from './base';
|
|
16
|
+
export declare const AdminRole: {
|
|
17
|
+
readonly WalletAdminManagerWallet: "wallet:admin:manager:wallet";
|
|
18
|
+
readonly WalletAdminManagerUser: "wallet:admin:manager:user";
|
|
19
|
+
};
|
|
20
|
+
export type AdminRole = typeof AdminRole[keyof typeof AdminRole];
|
|
21
|
+
/**
|
|
22
|
+
* Application to access Wallet API
|
|
23
|
+
*/
|
|
24
|
+
export interface Application {
|
|
25
|
+
'name': string;
|
|
26
|
+
'id': string;
|
|
27
|
+
'secret'?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ApplicationCreateRequest {
|
|
30
|
+
'name': string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Health status of the system
|
|
34
|
+
*/
|
|
35
|
+
export interface HealthStatus {
|
|
36
|
+
'status': HealthStatusStatusEnum;
|
|
37
|
+
}
|
|
38
|
+
export declare const HealthStatusStatusEnum: {
|
|
39
|
+
readonly Ok: "ok";
|
|
40
|
+
readonly Limited: "limited";
|
|
41
|
+
readonly Critical: "critical";
|
|
42
|
+
};
|
|
43
|
+
export type HealthStatusStatusEnum = typeof HealthStatusStatusEnum[keyof typeof HealthStatusStatusEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Common error message
|
|
46
|
+
*/
|
|
47
|
+
export interface ModelError {
|
|
48
|
+
'Message': string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Owner details
|
|
52
|
+
*/
|
|
53
|
+
export interface Owner {
|
|
54
|
+
'id': string;
|
|
55
|
+
'tenantId': string;
|
|
56
|
+
'email'?: string;
|
|
57
|
+
'name'?: string;
|
|
58
|
+
'organization'?: string;
|
|
59
|
+
'created'?: string;
|
|
60
|
+
'updated'?: string;
|
|
61
|
+
'lastLogin'?: string;
|
|
62
|
+
'adminRoles'?: Array<AdminRole>;
|
|
63
|
+
/**
|
|
64
|
+
* Customer roles without the \"wallet:customer:\" prefix
|
|
65
|
+
*/
|
|
66
|
+
'customerRoles'?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Owner patch payload
|
|
70
|
+
*/
|
|
71
|
+
export interface OwnerPatchPayload {
|
|
72
|
+
'tenantId'?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Admin Roles delimited by the comma character
|
|
75
|
+
*/
|
|
76
|
+
'adminRoles'?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Owner details including M2M apps list
|
|
80
|
+
*/
|
|
81
|
+
export interface OwnerWithExtras {
|
|
82
|
+
'owner': Owner;
|
|
83
|
+
'apps'?: Array<Application>;
|
|
84
|
+
/**
|
|
85
|
+
* Owner user management URL
|
|
86
|
+
*/
|
|
87
|
+
'url': string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* DefaultApi - axios parameter creator
|
|
91
|
+
*/
|
|
92
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
93
|
+
/**
|
|
94
|
+
* Creates M2M application / client for the authenticated user
|
|
95
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
applicationCreate: (applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
100
|
+
/**
|
|
101
|
+
* Deletes specific M2M application
|
|
102
|
+
* @param {string} applicationId Application ID
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
applicationDelete: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
107
|
+
/**
|
|
108
|
+
* Retrieves M2M application info
|
|
109
|
+
* @param {string} applicationId Application ID
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
applicationGet: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
|
+
/**
|
|
115
|
+
* Lists applications / clients for the authenticated user
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
applicationList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
ownerGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves owner info by ID including M2M apps list
|
|
134
|
+
* @param {string} ownerId
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
ownerGetById: (ownerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @param {string} ownerId
|
|
142
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
ownerUpdate: (ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
147
|
+
/**
|
|
148
|
+
* Retrieves owners
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
ownersList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* DefaultApi - functional programming interface
|
|
156
|
+
*/
|
|
157
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
158
|
+
/**
|
|
159
|
+
* Creates M2M application / client for the authenticated user
|
|
160
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
165
|
+
/**
|
|
166
|
+
* Deletes specific M2M application
|
|
167
|
+
* @param {string} applicationId Application ID
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
172
|
+
/**
|
|
173
|
+
* Retrieves M2M application info
|
|
174
|
+
* @param {string} applicationId Application ID
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
179
|
+
/**
|
|
180
|
+
* Lists applications / clients for the authenticated user
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
applicationList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Application>>>;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthStatus>>;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
ownerGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Owner>>;
|
|
197
|
+
/**
|
|
198
|
+
* Retrieves owner info by ID including M2M apps list
|
|
199
|
+
* @param {string} ownerId
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnerWithExtras>>;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @param {string} ownerId
|
|
207
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
212
|
+
/**
|
|
213
|
+
* Retrieves owners
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
ownersList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Owner>>>;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* DefaultApi - factory interface
|
|
221
|
+
*/
|
|
222
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
223
|
+
/**
|
|
224
|
+
* Creates M2M application / client for the authenticated user
|
|
225
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
|
|
230
|
+
/**
|
|
231
|
+
* Deletes specific M2M application
|
|
232
|
+
* @param {string} applicationId Application ID
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
237
|
+
/**
|
|
238
|
+
* Retrieves M2M application info
|
|
239
|
+
* @param {string} applicationId Application ID
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
|
|
244
|
+
/**
|
|
245
|
+
* Lists applications / clients for the authenticated user
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
applicationList(options?: RawAxiosRequestConfig): AxiosPromise<Array<Application>>;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<HealthStatus>;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
ownerGet(options?: RawAxiosRequestConfig): AxiosPromise<Owner>;
|
|
262
|
+
/**
|
|
263
|
+
* Retrieves owner info by ID including M2M apps list
|
|
264
|
+
* @param {string} ownerId
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): AxiosPromise<OwnerWithExtras>;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @param {string} ownerId
|
|
272
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
277
|
+
/**
|
|
278
|
+
* Retrieves owners
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
ownersList(options?: RawAxiosRequestConfig): AxiosPromise<Array<Owner>>;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* DefaultApi - object-oriented interface
|
|
286
|
+
*/
|
|
287
|
+
export declare class DefaultApi extends BaseAPI {
|
|
288
|
+
/**
|
|
289
|
+
* Creates M2M application / client for the authenticated user
|
|
290
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
|
|
295
|
+
/**
|
|
296
|
+
* Deletes specific M2M application
|
|
297
|
+
* @param {string} applicationId Application ID
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
302
|
+
/**
|
|
303
|
+
* Retrieves M2M application info
|
|
304
|
+
* @param {string} applicationId Application ID
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
|
|
309
|
+
/**
|
|
310
|
+
* Lists applications / clients for the authenticated user
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
applicationList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application[], any>>;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
*/
|
|
320
|
+
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HealthStatus, any>>;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
ownerGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Owner, any>>;
|
|
327
|
+
/**
|
|
328
|
+
* Retrieves owner info by ID including M2M apps list
|
|
329
|
+
* @param {string} ownerId
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnerWithExtras, any>>;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @param {string} ownerId
|
|
337
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
342
|
+
/**
|
|
343
|
+
* Retrieves owners
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
ownersList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Owner[], any>>;
|
|
348
|
+
}
|