@open-norantec/omni-sdk 1.0.0-beta.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +628 -601
- package/dist/index.js +47 -63
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,612 +1,639 @@
|
|
|
1
|
-
import { PartialDeep } from 'type-fest';
|
|
2
|
-
import { AxiosError as ClientError, AxiosRequestConfig } from 'axios';
|
|
3
|
-
export { ClientError };
|
|
4
|
-
export interface DataTypeMap {
|
|
5
|
-
'UserDAO.Request': {
|
|
6
|
-
identifier?: string;
|
|
7
|
-
birth?: Date;
|
|
8
|
-
imageUrl?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
applicationRelations?: Array<DataTypeMap['UserApplicationRelationDAO.Request']>;
|
|
12
|
-
};
|
|
13
|
-
'UserDAO.Response': {
|
|
14
|
-
id?: string;
|
|
15
|
-
createdAt?: Date;
|
|
16
|
-
updatedAt?: Date;
|
|
17
|
-
birth?: Date;
|
|
18
|
-
imageUrl?: string;
|
|
19
|
-
email?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
applicationRelations?: Array<DataTypeMap['UserApplicationRelationDAO.Response']>;
|
|
22
|
-
};
|
|
23
|
-
'ApplicationDAO.Request': {
|
|
24
|
-
identifier?: string;
|
|
25
|
-
title?: string;
|
|
26
|
-
redirectUrlPattern?: string;
|
|
27
|
-
brandImageUrl?: string;
|
|
28
|
-
authCodeExpirationMinutes?: number;
|
|
29
|
-
tokenExpirationDays?: number;
|
|
30
|
-
userRelations?: Array<DataTypeMap['UserApplicationRelationDAO.Request']>;
|
|
31
|
-
};
|
|
32
|
-
'ApplicationDAO.Response': {
|
|
33
|
-
id?: string;
|
|
34
|
-
createdAt?: Date;
|
|
35
|
-
updatedAt?: Date;
|
|
36
|
-
title?: string;
|
|
37
|
-
redirectUrlPattern?: string;
|
|
38
|
-
brandImageUrl?: string;
|
|
39
|
-
authCodeExpirationMinutes?: number;
|
|
40
|
-
tokenExpirationDays?: number;
|
|
41
|
-
secretValue?: string;
|
|
42
|
-
publicKeyValue?: string;
|
|
43
|
-
userRelations?: Array<DataTypeMap['UserApplicationRelationDAO.Response']>;
|
|
44
|
-
};
|
|
45
|
-
'UserApplicationRelationDAO.Request': {
|
|
46
|
-
identifier?: string;
|
|
47
|
-
user?: DataTypeMap['UserDAO.Request'];
|
|
48
|
-
userId?: string;
|
|
49
|
-
application?: DataTypeMap['ApplicationDAO.Request'];
|
|
50
|
-
applicationId?: string;
|
|
51
|
-
nickName?: string;
|
|
52
|
-
banned?: boolean;
|
|
53
|
-
};
|
|
54
|
-
'UserApplicationRelationDAO.Response': {
|
|
55
|
-
id?: string;
|
|
56
|
-
createdAt?: Date;
|
|
57
|
-
updatedAt?: Date;
|
|
58
|
-
user?: DataTypeMap['UserDAO.Response'];
|
|
59
|
-
userId?: string;
|
|
60
|
-
application?: DataTypeMap['ApplicationDAO.Response'];
|
|
61
|
-
applicationId?: string;
|
|
62
|
-
nickName?: string;
|
|
63
|
-
banned?: boolean;
|
|
64
|
-
};
|
|
65
|
-
'SubscriptionDAO.Request': {
|
|
66
|
-
identifier?: string;
|
|
67
|
-
application?: DataTypeMap['ApplicationDAO.Request'];
|
|
68
|
-
applicationId?: string;
|
|
69
|
-
expirationTime?: Date;
|
|
70
|
-
paidAmount?: string;
|
|
71
|
-
target?: string;
|
|
72
|
-
remainedAmount?: string;
|
|
73
|
-
txn?: string;
|
|
74
|
-
planIdentifier?: string;
|
|
75
|
-
creatorId?: string;
|
|
76
|
-
};
|
|
77
|
-
'SubscriptionDAO.Response': {
|
|
78
|
-
id?: string;
|
|
79
|
-
createdAt?: Date;
|
|
80
|
-
updatedAt?: Date;
|
|
81
|
-
application?: DataTypeMap['ApplicationDAO.Response'];
|
|
82
|
-
applicationId?: string;
|
|
83
|
-
expirationTime?: Date;
|
|
84
|
-
paidAmount?: string;
|
|
85
|
-
target?: string;
|
|
86
|
-
remainedAmount?: string;
|
|
87
|
-
txn?: string;
|
|
88
|
-
planIdentifier?: string;
|
|
89
|
-
creatorId?: string;
|
|
90
|
-
};
|
|
91
|
-
'SubscriptionSnapshotDAO.Request': {
|
|
92
|
-
identifier?: string;
|
|
93
|
-
application?: DataTypeMap['ApplicationDAO.Request'];
|
|
94
|
-
applicationId?: string;
|
|
95
|
-
expirationTime?: Date;
|
|
96
|
-
paidAmount?: string;
|
|
97
|
-
target?: string;
|
|
98
|
-
remainedAmount?: string;
|
|
99
|
-
txn?: string;
|
|
100
|
-
planIdentifier?: string;
|
|
101
|
-
creatorId?: string;
|
|
102
|
-
endedAt?: number;
|
|
103
|
-
};
|
|
104
|
-
'SubscriptionSnapshotDAO.Response': {
|
|
105
|
-
id?: string;
|
|
106
|
-
createdAt?: Date;
|
|
107
|
-
updatedAt?: Date;
|
|
108
|
-
application?: DataTypeMap['ApplicationDAO.Response'];
|
|
109
|
-
applicationId?: string;
|
|
110
|
-
expirationTime?: Date;
|
|
111
|
-
paidAmount?: string;
|
|
112
|
-
target?: string;
|
|
113
|
-
remainedAmount?: string;
|
|
114
|
-
txn?: string;
|
|
115
|
-
planIdentifier?: string;
|
|
116
|
-
creatorId?: string;
|
|
117
|
-
endedAt?: number;
|
|
118
|
-
};
|
|
119
|
-
'AccessKeyDAO.Request': {
|
|
120
|
-
identifier?: string;
|
|
121
|
-
expirationTime?: Date;
|
|
122
|
-
deprecated?: boolean;
|
|
123
|
-
userApplicationRelation?: DataTypeMap['UserApplicationRelationDAO.Request'];
|
|
124
|
-
userApplicationRelationId?: string;
|
|
125
|
-
scopePatterns?: string;
|
|
126
|
-
};
|
|
127
|
-
'AccessKeyDAO.Response': {
|
|
128
|
-
id?: string;
|
|
129
|
-
createdAt?: Date;
|
|
130
|
-
updatedAt?: Date;
|
|
131
|
-
secretValue?: string;
|
|
132
|
-
expirationTime?: Date;
|
|
133
|
-
deprecated?: boolean;
|
|
134
|
-
userApplicationRelation?: DataTypeMap['UserApplicationRelationDAO.Response'];
|
|
135
|
-
userApplicationRelationId?: string;
|
|
136
|
-
scopePatterns?: string;
|
|
137
|
-
};
|
|
138
|
-
'AuthCodeDTO.Request': {
|
|
139
|
-
id?: string;
|
|
140
|
-
nextUnlockTime?: Date;
|
|
141
|
-
};
|
|
142
|
-
'AuthCodeDTO.Response': {
|
|
143
|
-
id?: string;
|
|
144
|
-
nextUnlockTime?: Date;
|
|
145
|
-
createdAt?: Date;
|
|
146
|
-
updatedAt?: Date;
|
|
147
|
-
};
|
|
148
|
-
'AuthExchangeRequestDTO.Request': {
|
|
149
|
-
method?: enums.AuthExchangeRequestDTO.method;
|
|
150
|
-
code?: string;
|
|
151
|
-
email?: string;
|
|
152
|
-
password?: string;
|
|
153
|
-
sessionId?: string;
|
|
154
|
-
applicationId?: string;
|
|
155
|
-
redirectUrl?: string;
|
|
156
|
-
state?: string;
|
|
157
|
-
};
|
|
158
|
-
'AuthExchangeRequestDTO.Response': {
|
|
159
|
-
method?: enums.AuthExchangeRequestDTO.method;
|
|
160
|
-
code?: string;
|
|
161
|
-
email?: string;
|
|
162
|
-
password?: string;
|
|
163
|
-
sessionId?: string;
|
|
164
|
-
applicationId?: string;
|
|
165
|
-
redirectUrl?: string;
|
|
166
|
-
state?: string;
|
|
167
|
-
};
|
|
168
|
-
'AuthExchangeResultDTO.Request': {
|
|
169
|
-
id?: string;
|
|
170
|
-
credential?: string;
|
|
171
|
-
sessionId?: string;
|
|
172
|
-
userApplicationRelation?: DataTypeMap['UserApplicationRelationDAO.Request'];
|
|
173
|
-
expirationTime?: Date;
|
|
174
|
-
errorCode?: enums.AuthExchangeResultDTO.errorCode;
|
|
175
|
-
};
|
|
176
|
-
'AuthExchangeResultDTO.Response': {
|
|
177
|
-
id?: string;
|
|
178
|
-
credential?: string;
|
|
179
|
-
sessionId?: string;
|
|
180
|
-
userApplicationRelation?: DataTypeMap['UserApplicationRelationDAO.Response'];
|
|
181
|
-
expirationTime?: Date;
|
|
182
|
-
errorCode?: enums.AuthExchangeResultDTO.errorCode;
|
|
183
|
-
createdAt?: Date;
|
|
184
|
-
updatedAt?: Date;
|
|
185
|
-
};
|
|
186
|
-
'AuthRequestCodeRequestDTO.Request': {
|
|
187
|
-
email?: string;
|
|
188
|
-
applicationId?: string;
|
|
189
|
-
};
|
|
190
|
-
'AuthRequestCodeRequestDTO.Response': {
|
|
191
|
-
email?: string;
|
|
192
|
-
applicationId?: string;
|
|
193
|
-
};
|
|
194
|
-
'AuthResetPasswordRequestDTO.Request': {
|
|
195
|
-
method?: enums.AuthResetPasswordRequestDTO.method;
|
|
196
|
-
code?: string;
|
|
197
|
-
email?: string;
|
|
198
|
-
password?: string;
|
|
199
|
-
sessionId?: string;
|
|
200
|
-
applicationId?: string;
|
|
201
|
-
redirectUrl?: string;
|
|
202
|
-
state?: string;
|
|
203
|
-
};
|
|
204
|
-
'AuthResetPasswordRequestDTO.Response': {
|
|
205
|
-
method?: enums.AuthResetPasswordRequestDTO.method;
|
|
206
|
-
code?: string;
|
|
207
|
-
email?: string;
|
|
208
|
-
password?: string;
|
|
209
|
-
sessionId?: string;
|
|
210
|
-
applicationId?: string;
|
|
211
|
-
redirectUrl?: string;
|
|
212
|
-
state?: string;
|
|
213
|
-
};
|
|
214
|
-
'AuthRefreshTokenRequestDTO.Request': {
|
|
215
|
-
token?: string;
|
|
216
|
-
};
|
|
217
|
-
'AuthRefreshTokenRequestDTO.Response': {
|
|
218
|
-
token?: string;
|
|
219
|
-
};
|
|
220
|
-
'FileDTO.Request': {
|
|
221
|
-
size?: number;
|
|
222
|
-
progress?: number;
|
|
223
|
-
url?: string;
|
|
224
|
-
name?: string;
|
|
225
|
-
mimeType?: string;
|
|
226
|
-
};
|
|
227
|
-
'FileDTO.Response': {
|
|
228
|
-
size?: number;
|
|
229
|
-
progress?: number;
|
|
230
|
-
url?: string;
|
|
231
|
-
name?: string;
|
|
232
|
-
mimeType?: string;
|
|
233
|
-
createdAt?: Date;
|
|
234
|
-
updatedAt?: Date;
|
|
235
|
-
};
|
|
236
|
-
'IdentifierRequestDTO.Request': {
|
|
237
|
-
identifier?: string;
|
|
238
|
-
};
|
|
239
|
-
'IdentifierRequestDTO.Response': {
|
|
240
|
-
identifier?: string;
|
|
241
|
-
};
|
|
242
|
-
'InternationalizationGetTextMapRequestDTO.Request': {
|
|
243
|
-
code?: string;
|
|
244
|
-
};
|
|
245
|
-
'InternationalizationGetTextMapRequestDTO.Response': {
|
|
246
|
-
code?: string;
|
|
247
|
-
};
|
|
248
|
-
'KeyListRequestDTO.Request': {
|
|
249
|
-
lastCursor?: string;
|
|
250
|
-
where?: DataTypeMap['WhereClauseDTO.Request'];
|
|
251
|
-
limit?: number;
|
|
252
|
-
order?: Array<DataTypeMap['OrderItemDTO.Request']>;
|
|
253
|
-
targetUserId?: string;
|
|
254
|
-
};
|
|
255
|
-
'KeyListRequestDTO.Response': {
|
|
256
|
-
lastCursor?: string;
|
|
257
|
-
where?: DataTypeMap['WhereClauseDTO.Response'];
|
|
258
|
-
limit?: number;
|
|
259
|
-
order?: Array<DataTypeMap['OrderItemDTO.Response']>;
|
|
260
|
-
targetUserId?: string;
|
|
261
|
-
};
|
|
262
|
-
'LanguageDTO.Request': {
|
|
263
|
-
code?: string;
|
|
264
|
-
englishName?: string;
|
|
265
|
-
nativeName?: string;
|
|
266
|
-
};
|
|
267
|
-
'LanguageDTO.Response': {
|
|
268
|
-
code?: string;
|
|
269
|
-
englishName?: string;
|
|
270
|
-
nativeName?: string;
|
|
271
|
-
};
|
|
272
|
-
'OrderItemDTO.Request': {
|
|
273
|
-
field?: string;
|
|
274
|
-
orientation?: enums.OrderItemDTO.orientation;
|
|
275
|
-
};
|
|
276
|
-
'OrderItemDTO.Response': {
|
|
277
|
-
field?: string;
|
|
278
|
-
orientation?: enums.OrderItemDTO.orientation;
|
|
279
|
-
};
|
|
280
|
-
'PaginationRequestDTO.Request': {
|
|
281
|
-
lastCursor?: string;
|
|
282
|
-
where?: DataTypeMap['WhereClauseDTO.Request'];
|
|
283
|
-
limit?: number;
|
|
284
|
-
order?: Array<DataTypeMap['OrderItemDTO.Request']>;
|
|
285
|
-
};
|
|
286
|
-
'PaginationRequestDTO.Response': {
|
|
287
|
-
lastCursor?: string;
|
|
288
|
-
where?: DataTypeMap['WhereClauseDTO.Response'];
|
|
289
|
-
limit?: number;
|
|
290
|
-
order?: Array<DataTypeMap['OrderItemDTO.Response']>;
|
|
291
|
-
};
|
|
292
|
-
'PayloadDTO.Request': {
|
|
293
|
-
id?: string;
|
|
294
|
-
content?: string;
|
|
295
|
-
};
|
|
296
|
-
'PayloadDTO.Response': {
|
|
297
|
-
id?: string;
|
|
298
|
-
content?: string;
|
|
299
|
-
createdAt?: Date;
|
|
300
|
-
};
|
|
301
|
-
'PlanDTO.Request': {
|
|
302
|
-
productId?: string;
|
|
303
|
-
identifier?: string;
|
|
304
|
-
title?: string;
|
|
305
|
-
dailyCost?: string;
|
|
306
|
-
durationRatio?: string;
|
|
307
|
-
restrictions?: string;
|
|
308
|
-
};
|
|
309
|
-
'PlanDTO.Response': {
|
|
310
|
-
productId?: string;
|
|
311
|
-
identifier?: string;
|
|
312
|
-
title?: string;
|
|
313
|
-
dailyCost?: string;
|
|
314
|
-
durationRatio?: string;
|
|
315
|
-
restrictions?: string;
|
|
316
|
-
};
|
|
317
|
-
'RemoteRepositoryContentDTO.Request': {
|
|
318
|
-
name?: string;
|
|
319
|
-
content?: string;
|
|
320
|
-
};
|
|
321
|
-
'RemoteRepositoryContentDTO.Response': {
|
|
322
|
-
name?: string;
|
|
323
|
-
content?: string;
|
|
324
|
-
};
|
|
325
|
-
'RemoteRepositoryGetRequestDTO.Request': {
|
|
326
|
-
patterns?: Array<string>;
|
|
327
|
-
};
|
|
328
|
-
'RemoteRepositoryGetRequestDTO.Response': {
|
|
329
|
-
patterns?: Array<string>;
|
|
330
|
-
};
|
|
331
|
-
'ResultDTO.Request': {
|
|
332
|
-
id?: string;
|
|
333
|
-
success?: boolean;
|
|
334
|
-
data?: string;
|
|
335
|
-
};
|
|
336
|
-
'ResultDTO.Response': {
|
|
337
|
-
id?: string;
|
|
338
|
-
success?: boolean;
|
|
339
|
-
data?: string;
|
|
340
|
-
createdAt?: Date;
|
|
341
|
-
updatedAt?: Date;
|
|
342
|
-
};
|
|
343
|
-
'SendMailRequestFromDTO.Request': {
|
|
344
|
-
name?: string;
|
|
345
|
-
address?: string;
|
|
346
|
-
};
|
|
347
|
-
'SendMailRequestFromDTO.Response': {
|
|
348
|
-
name?: string;
|
|
349
|
-
address?: string;
|
|
350
|
-
};
|
|
351
|
-
'SendMailRequestDTO.Request': {
|
|
352
|
-
from?: DataTypeMap['SendMailRequestFromDTO.Request'];
|
|
353
|
-
html?: string;
|
|
354
|
-
subject?: string;
|
|
355
|
-
to?: string;
|
|
356
|
-
};
|
|
357
|
-
'SendMailRequestDTO.Response': {
|
|
358
|
-
from?: DataTypeMap['SendMailRequestFromDTO.Response'];
|
|
359
|
-
html?: string;
|
|
360
|
-
subject?: string;
|
|
361
|
-
to?: string;
|
|
362
|
-
};
|
|
363
|
-
'UserListRequestDTO.Request': {
|
|
364
|
-
pagination?: DataTypeMap['PaginationRequestDTO.Request'];
|
|
365
|
-
applicationId?: string;
|
|
366
|
-
};
|
|
367
|
-
'UserListRequestDTO.Response': {
|
|
368
|
-
pagination?: DataTypeMap['PaginationRequestDTO.Response'];
|
|
369
|
-
applicationId?: string;
|
|
370
|
-
};
|
|
371
|
-
'UserUpdatePasswordRequestDTO.Request': {
|
|
372
|
-
password?: string;
|
|
373
|
-
userId?: string;
|
|
374
|
-
originalPassword?: string;
|
|
375
|
-
};
|
|
376
|
-
'UserUpdatePasswordRequestDTO.Response': {
|
|
377
|
-
password?: string;
|
|
378
|
-
userId?: string;
|
|
379
|
-
originalPassword?: string;
|
|
380
|
-
};
|
|
381
|
-
'WhereClauseDTO.Request': {
|
|
382
|
-
aggregation?: enums.WhereClauseDTO.aggregation;
|
|
383
|
-
clauses?: Array<DataTypeMap['WhereClauseDTO.Request']>;
|
|
384
|
-
field?: string;
|
|
385
|
-
op?: string;
|
|
386
|
-
value?: string;
|
|
387
|
-
};
|
|
388
|
-
'WhereClauseDTO.Response': {
|
|
389
|
-
aggregation?: enums.WhereClauseDTO.aggregation;
|
|
390
|
-
clauses?: Array<DataTypeMap['WhereClauseDTO.Response']>;
|
|
391
|
-
field?: string;
|
|
392
|
-
op?: string;
|
|
393
|
-
value?: string;
|
|
394
|
-
};
|
|
395
|
-
'PaginationDTO.Request': {
|
|
396
|
-
hasNext?: boolean;
|
|
397
|
-
nextCursor?: string;
|
|
398
|
-
previousCursor?: string;
|
|
399
|
-
};
|
|
400
|
-
'PaginationDTO.Response': {
|
|
401
|
-
hasNext?: boolean;
|
|
402
|
-
nextCursor?: string;
|
|
403
|
-
previousCursor?: string;
|
|
404
|
-
};
|
|
405
|
-
'AccessKeyListRequestDTO.Request': {
|
|
406
|
-
userId?: string;
|
|
407
|
-
pageination?: DataTypeMap['PaginationRequestDTO.Request'];
|
|
408
|
-
};
|
|
409
|
-
'AccessKeyListRequestDTO.Response': {
|
|
410
|
-
userId?: string;
|
|
411
|
-
pageination?: DataTypeMap['PaginationRequestDTO.Response'];
|
|
412
|
-
};
|
|
413
|
-
'AccessKeyCreateOrUpdateRequestDTO.Request': {
|
|
414
|
-
id?: string;
|
|
415
|
-
userId?: string;
|
|
416
|
-
expirationSeconds?: number;
|
|
417
|
-
scopePatterns?: Array<string>;
|
|
418
|
-
deprecated?: boolean;
|
|
419
|
-
};
|
|
420
|
-
'AccessKeyCreateOrUpdateRequestDTO.Response': {
|
|
421
|
-
id?: string;
|
|
422
|
-
userId?: string;
|
|
423
|
-
expirationSeconds?: number;
|
|
424
|
-
scopePatterns?: Array<string>;
|
|
425
|
-
deprecated?: boolean;
|
|
426
|
-
};
|
|
427
|
-
'AccessKeyVerifyRequestDTO.Request': {
|
|
428
|
-
identifier?: string;
|
|
429
|
-
applicationId?: string;
|
|
430
|
-
secret?: string;
|
|
431
|
-
scopeIdentifier?: string;
|
|
432
|
-
};
|
|
433
|
-
'AccessKeyVerifyRequestDTO.Response': {
|
|
434
|
-
identifier?: string;
|
|
435
|
-
applicationId?: string;
|
|
436
|
-
secret?: string;
|
|
437
|
-
scopeIdentifier?: string;
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
1
|
export interface MethodTypeMap {
|
|
441
|
-
'
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
};
|
|
505
|
-
'
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
2
|
+
'/dynamicConfig/get': {
|
|
3
|
+
request: {
|
|
4
|
+
patterns?: string[] | undefined;
|
|
5
|
+
};
|
|
6
|
+
response: {
|
|
7
|
+
name: string | null;
|
|
8
|
+
content: string;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
'/internationalization/get': {
|
|
12
|
+
request: {
|
|
13
|
+
locale: string;
|
|
14
|
+
};
|
|
15
|
+
response: {
|
|
16
|
+
name: string | null;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
'/auth/requestCode': {
|
|
21
|
+
request: {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
email: string;
|
|
24
|
+
};
|
|
25
|
+
response: {
|
|
26
|
+
id: string;
|
|
27
|
+
nextUnlockTime: string | null;
|
|
28
|
+
createdAt?: string | null | undefined;
|
|
29
|
+
updatedAt?: string | null | undefined;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
'/auth/refreshToken': {
|
|
33
|
+
request: {
|
|
34
|
+
token: string;
|
|
35
|
+
};
|
|
36
|
+
response: {
|
|
37
|
+
succeeded: boolean;
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
createdAt?: string | null | undefined;
|
|
40
|
+
updatedAt?: string | null | undefined;
|
|
41
|
+
content?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
'/auth/getAccessTokenByEncryptedToken': {
|
|
45
|
+
request: {
|
|
46
|
+
token: string;
|
|
47
|
+
};
|
|
48
|
+
response: {
|
|
49
|
+
succeeded: boolean;
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
createdAt?: string | null | undefined;
|
|
52
|
+
updatedAt?: string | null | undefined;
|
|
53
|
+
content?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
'/auth/verifyJsonWebToken': {
|
|
57
|
+
request: {
|
|
58
|
+
token: string;
|
|
59
|
+
ignoreExpiration?: boolean | undefined;
|
|
60
|
+
};
|
|
61
|
+
response: {
|
|
62
|
+
userId: string;
|
|
63
|
+
nextToken: string | null;
|
|
64
|
+
} | null;
|
|
65
|
+
};
|
|
66
|
+
'/auth/logout': {
|
|
67
|
+
request: {
|
|
68
|
+
token: string;
|
|
69
|
+
};
|
|
70
|
+
response: null;
|
|
71
|
+
};
|
|
72
|
+
'/application/getDetail': {
|
|
73
|
+
request: {
|
|
74
|
+
id?: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
response: {
|
|
77
|
+
brandImageUrl: string;
|
|
78
|
+
redirectUrlPattern: string;
|
|
79
|
+
title: string;
|
|
80
|
+
id: string;
|
|
81
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
82
|
+
publicKeyValue?: string | null | undefined;
|
|
83
|
+
secretValue?: string | null | undefined;
|
|
84
|
+
tokenExpirationDays?: number | undefined;
|
|
85
|
+
createdAt?: string | null | undefined;
|
|
86
|
+
updatedAt?: string | null | undefined;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
'/application/update': {
|
|
90
|
+
request: {
|
|
91
|
+
id: string;
|
|
92
|
+
title?: string | undefined;
|
|
93
|
+
redirectUrlPattern?: string | undefined;
|
|
94
|
+
brandImageUrl?: string | undefined;
|
|
95
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
96
|
+
tokenExpirationDays?: number | undefined;
|
|
97
|
+
};
|
|
98
|
+
response: {
|
|
99
|
+
id: string;
|
|
100
|
+
title: string;
|
|
101
|
+
redirectUrlPattern: string;
|
|
102
|
+
brandImageUrl: string;
|
|
103
|
+
createdAt?: string | null | undefined;
|
|
104
|
+
updatedAt?: string | null | undefined;
|
|
105
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
106
|
+
tokenExpirationDays?: number | undefined;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
'/application/regenerateKeyPair': {
|
|
110
|
+
request: {
|
|
111
|
+
id: string;
|
|
112
|
+
};
|
|
113
|
+
response: {
|
|
114
|
+
brandImageUrl: string;
|
|
115
|
+
redirectUrlPattern: string;
|
|
116
|
+
title: string;
|
|
117
|
+
id: string;
|
|
118
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
119
|
+
publicKeyValue?: string | null | undefined;
|
|
120
|
+
secretValue?: string | null | undefined;
|
|
121
|
+
tokenExpirationDays?: number | undefined;
|
|
122
|
+
createdAt?: string | null | undefined;
|
|
123
|
+
updatedAt?: string | null | undefined;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
'/application/regenerateSecret': {
|
|
127
|
+
request: {
|
|
128
|
+
id: string;
|
|
129
|
+
};
|
|
130
|
+
response: {
|
|
131
|
+
brandImageUrl: string;
|
|
132
|
+
redirectUrlPattern: string;
|
|
133
|
+
title: string;
|
|
134
|
+
id: string;
|
|
135
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
136
|
+
publicKeyValue?: string | null | undefined;
|
|
137
|
+
secretValue?: string | null | undefined;
|
|
138
|
+
tokenExpirationDays?: number | undefined;
|
|
139
|
+
createdAt?: string | null | undefined;
|
|
140
|
+
updatedAt?: string | null | undefined;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
'/accessKey/create': {
|
|
144
|
+
request: {
|
|
145
|
+
expirationTime: string | null;
|
|
146
|
+
userId: string;
|
|
147
|
+
userApplicationRelation?: {
|
|
148
|
+
id: string;
|
|
149
|
+
applicationId: string;
|
|
150
|
+
banned: boolean;
|
|
151
|
+
userId: string;
|
|
152
|
+
createdAt?: string | null | undefined;
|
|
153
|
+
updatedAt?: string | null | undefined;
|
|
154
|
+
application?: {
|
|
155
|
+
brandImageUrl: string;
|
|
156
|
+
redirectUrlPattern: string;
|
|
157
|
+
title: string;
|
|
158
|
+
id: string;
|
|
159
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
160
|
+
publicKeyValue?: string | null | undefined;
|
|
161
|
+
secretValue?: string | null | undefined;
|
|
162
|
+
tokenExpirationDays?: number | undefined;
|
|
163
|
+
createdAt?: string | null | undefined;
|
|
164
|
+
updatedAt?: string | null | undefined;
|
|
165
|
+
} | null | undefined;
|
|
166
|
+
nickName?: string | null | undefined;
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
};
|
|
169
|
+
response: {
|
|
170
|
+
secretValue: string | null;
|
|
171
|
+
id: string;
|
|
172
|
+
deprecated: boolean;
|
|
173
|
+
expirationTime: string | null;
|
|
174
|
+
userApplicationRelationId: string;
|
|
175
|
+
createdAt?: string | null | undefined;
|
|
176
|
+
updatedAt?: string | null | undefined;
|
|
177
|
+
userApplicationRelation?: {
|
|
178
|
+
id: string;
|
|
179
|
+
applicationId: string;
|
|
180
|
+
banned: boolean;
|
|
181
|
+
userId: string;
|
|
182
|
+
createdAt?: string | null | undefined;
|
|
183
|
+
updatedAt?: string | null | undefined;
|
|
184
|
+
application?: {
|
|
185
|
+
brandImageUrl: string;
|
|
186
|
+
redirectUrlPattern: string;
|
|
187
|
+
title: string;
|
|
188
|
+
id: string;
|
|
189
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
190
|
+
publicKeyValue?: string | null | undefined;
|
|
191
|
+
secretValue?: string | null | undefined;
|
|
192
|
+
tokenExpirationDays?: number | undefined;
|
|
193
|
+
createdAt?: string | null | undefined;
|
|
194
|
+
updatedAt?: string | null | undefined;
|
|
195
|
+
} | null | undefined;
|
|
196
|
+
nickName?: string | null | undefined;
|
|
197
|
+
} | null | undefined;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
'/accessKey/update': {
|
|
201
|
+
request: {
|
|
202
|
+
id: string;
|
|
203
|
+
expirationTime?: string | null | undefined;
|
|
204
|
+
deprecated?: boolean | undefined;
|
|
205
|
+
userApplicationRelation?: {
|
|
206
|
+
id: string;
|
|
207
|
+
applicationId: string;
|
|
208
|
+
banned: boolean;
|
|
209
|
+
userId: string;
|
|
210
|
+
createdAt?: string | null | undefined;
|
|
211
|
+
updatedAt?: string | null | undefined;
|
|
212
|
+
application?: {
|
|
213
|
+
brandImageUrl: string;
|
|
214
|
+
redirectUrlPattern: string;
|
|
215
|
+
title: string;
|
|
216
|
+
id: string;
|
|
217
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
218
|
+
publicKeyValue?: string | null | undefined;
|
|
219
|
+
secretValue?: string | null | undefined;
|
|
220
|
+
tokenExpirationDays?: number | undefined;
|
|
221
|
+
createdAt?: string | null | undefined;
|
|
222
|
+
updatedAt?: string | null | undefined;
|
|
223
|
+
} | null | undefined;
|
|
224
|
+
nickName?: string | null | undefined;
|
|
225
|
+
} | null | undefined;
|
|
226
|
+
};
|
|
227
|
+
response: {
|
|
228
|
+
secretValue: string | null;
|
|
229
|
+
id: string;
|
|
230
|
+
deprecated: boolean;
|
|
231
|
+
expirationTime: string | null;
|
|
232
|
+
userApplicationRelationId: string;
|
|
233
|
+
createdAt?: string | null | undefined;
|
|
234
|
+
updatedAt?: string | null | undefined;
|
|
235
|
+
userApplicationRelation?: {
|
|
236
|
+
id: string;
|
|
237
|
+
applicationId: string;
|
|
238
|
+
banned: boolean;
|
|
239
|
+
userId: string;
|
|
240
|
+
createdAt?: string | null | undefined;
|
|
241
|
+
updatedAt?: string | null | undefined;
|
|
242
|
+
application?: {
|
|
243
|
+
brandImageUrl: string;
|
|
244
|
+
redirectUrlPattern: string;
|
|
245
|
+
title: string;
|
|
246
|
+
id: string;
|
|
247
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
248
|
+
publicKeyValue?: string | null | undefined;
|
|
249
|
+
secretValue?: string | null | undefined;
|
|
250
|
+
tokenExpirationDays?: number | undefined;
|
|
251
|
+
createdAt?: string | null | undefined;
|
|
252
|
+
updatedAt?: string | null | undefined;
|
|
253
|
+
} | null | undefined;
|
|
254
|
+
nickName?: string | null | undefined;
|
|
255
|
+
} | null | undefined;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
'/accessKey/verify': {
|
|
259
|
+
request: {
|
|
260
|
+
id: string;
|
|
261
|
+
secret: string;
|
|
262
|
+
scopeIdentifier: string | null;
|
|
263
|
+
};
|
|
264
|
+
response: {
|
|
265
|
+
secretValue: string | null;
|
|
266
|
+
id: string;
|
|
267
|
+
deprecated: boolean;
|
|
268
|
+
expirationTime: string | null;
|
|
269
|
+
userApplicationRelationId: string;
|
|
270
|
+
createdAt?: string | null | undefined;
|
|
271
|
+
updatedAt?: string | null | undefined;
|
|
272
|
+
userApplicationRelation?: {
|
|
273
|
+
id: string;
|
|
274
|
+
applicationId: string;
|
|
275
|
+
banned: boolean;
|
|
276
|
+
userId: string;
|
|
277
|
+
createdAt?: string | null | undefined;
|
|
278
|
+
updatedAt?: string | null | undefined;
|
|
279
|
+
application?: {
|
|
280
|
+
brandImageUrl: string;
|
|
281
|
+
redirectUrlPattern: string;
|
|
282
|
+
title: string;
|
|
283
|
+
id: string;
|
|
284
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
285
|
+
publicKeyValue?: string | null | undefined;
|
|
286
|
+
secretValue?: string | null | undefined;
|
|
287
|
+
tokenExpirationDays?: number | undefined;
|
|
288
|
+
createdAt?: string | null | undefined;
|
|
289
|
+
updatedAt?: string | null | undefined;
|
|
290
|
+
} | null | undefined;
|
|
291
|
+
nickName?: string | null | undefined;
|
|
292
|
+
} | null | undefined;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
'/accessKey/list': {
|
|
296
|
+
request: {
|
|
297
|
+
applicationId: string;
|
|
298
|
+
where?: ({
|
|
299
|
+
value: string;
|
|
300
|
+
type: "condition";
|
|
301
|
+
field: string;
|
|
302
|
+
op: "values" | "match" | "substring" | "endsWith" | "startsWith" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "strictLeft" | "strictRight";
|
|
303
|
+
} | {
|
|
304
|
+
type: "literal";
|
|
305
|
+
literal: string;
|
|
306
|
+
params?: any[] | undefined;
|
|
307
|
+
})[][] | undefined;
|
|
308
|
+
userId?: string | undefined;
|
|
309
|
+
lastCursor?: string | undefined;
|
|
310
|
+
limit?: number | undefined;
|
|
311
|
+
createdAtField?: string | undefined;
|
|
312
|
+
cursorField?: string | undefined;
|
|
313
|
+
order?: {
|
|
314
|
+
field: string;
|
|
315
|
+
orientation: "ASC" | "DESC";
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
};
|
|
318
|
+
response: {
|
|
319
|
+
data: {
|
|
320
|
+
expirationTime: string | null;
|
|
321
|
+
id: string;
|
|
322
|
+
deprecated: boolean;
|
|
323
|
+
userApplicationRelationId: string;
|
|
324
|
+
createdAt?: string | null | undefined;
|
|
325
|
+
updatedAt?: string | null | undefined;
|
|
326
|
+
userApplicationRelation?: {
|
|
327
|
+
id: string;
|
|
328
|
+
applicationId: string;
|
|
329
|
+
banned: boolean;
|
|
330
|
+
userId: string;
|
|
331
|
+
createdAt?: string | null | undefined;
|
|
332
|
+
updatedAt?: string | null | undefined;
|
|
333
|
+
application?: {
|
|
334
|
+
brandImageUrl: string;
|
|
335
|
+
redirectUrlPattern: string;
|
|
336
|
+
title: string;
|
|
337
|
+
id: string;
|
|
338
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
339
|
+
publicKeyValue?: string | null | undefined;
|
|
340
|
+
secretValue?: string | null | undefined;
|
|
341
|
+
tokenExpirationDays?: number | undefined;
|
|
342
|
+
createdAt?: string | null | undefined;
|
|
343
|
+
updatedAt?: string | null | undefined;
|
|
344
|
+
} | null | undefined;
|
|
345
|
+
nickName?: string | null | undefined;
|
|
346
|
+
} | null | undefined;
|
|
347
|
+
}[];
|
|
348
|
+
hasNext: boolean;
|
|
349
|
+
nextCursor: string | null;
|
|
350
|
+
previousCursor: string | null;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
'/user/getDetail': {
|
|
354
|
+
request: {
|
|
355
|
+
id: string;
|
|
356
|
+
};
|
|
357
|
+
response: {
|
|
358
|
+
id: string;
|
|
359
|
+
email: string;
|
|
360
|
+
createdAt?: string | null | undefined;
|
|
361
|
+
updatedAt?: string | null | undefined;
|
|
362
|
+
applicationRelations?: {
|
|
363
|
+
id: string;
|
|
364
|
+
applicationId: string;
|
|
365
|
+
banned: boolean;
|
|
366
|
+
userId: string;
|
|
367
|
+
createdAt?: string | null | undefined;
|
|
368
|
+
updatedAt?: string | null | undefined;
|
|
369
|
+
application?: {
|
|
370
|
+
brandImageUrl: string;
|
|
371
|
+
redirectUrlPattern: string;
|
|
372
|
+
title: string;
|
|
373
|
+
id: string;
|
|
374
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
375
|
+
publicKeyValue?: string | null | undefined;
|
|
376
|
+
secretValue?: string | null | undefined;
|
|
377
|
+
tokenExpirationDays?: number | undefined;
|
|
378
|
+
createdAt?: string | null | undefined;
|
|
379
|
+
updatedAt?: string | null | undefined;
|
|
380
|
+
} | null | undefined;
|
|
381
|
+
nickName?: string | null | undefined;
|
|
382
|
+
}[] | null | undefined;
|
|
383
|
+
birth?: string | null | undefined;
|
|
384
|
+
imageUrl?: string | null | undefined;
|
|
385
|
+
name?: string | null | undefined;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
'/user/update': {
|
|
389
|
+
request: {
|
|
390
|
+
email: string;
|
|
391
|
+
name?: string | null | undefined;
|
|
392
|
+
id?: string | undefined;
|
|
393
|
+
createdAt?: string | null | undefined;
|
|
394
|
+
updatedAt?: string | null | undefined;
|
|
395
|
+
birth?: string | null | undefined;
|
|
396
|
+
imageUrl?: string | null | undefined;
|
|
397
|
+
applicationRelations?: {
|
|
398
|
+
id: string;
|
|
399
|
+
applicationId: string;
|
|
400
|
+
banned: boolean;
|
|
401
|
+
userId: string;
|
|
402
|
+
createdAt?: string | null | undefined;
|
|
403
|
+
updatedAt?: string | null | undefined;
|
|
404
|
+
application?: {
|
|
405
|
+
brandImageUrl: string;
|
|
406
|
+
redirectUrlPattern: string;
|
|
407
|
+
title: string;
|
|
408
|
+
id: string;
|
|
409
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
410
|
+
publicKeyValue?: string | null | undefined;
|
|
411
|
+
secretValue?: string | null | undefined;
|
|
412
|
+
tokenExpirationDays?: number | undefined;
|
|
413
|
+
createdAt?: string | null | undefined;
|
|
414
|
+
updatedAt?: string | null | undefined;
|
|
415
|
+
} | null | undefined;
|
|
416
|
+
nickName?: string | null | undefined;
|
|
417
|
+
}[] | null | undefined;
|
|
418
|
+
};
|
|
419
|
+
response: {
|
|
420
|
+
id: string;
|
|
421
|
+
email: string;
|
|
422
|
+
createdAt?: string | null | undefined;
|
|
423
|
+
updatedAt?: string | null | undefined;
|
|
424
|
+
applicationRelations?: {
|
|
425
|
+
id: string;
|
|
426
|
+
applicationId: string;
|
|
427
|
+
banned: boolean;
|
|
428
|
+
userId: string;
|
|
429
|
+
createdAt?: string | null | undefined;
|
|
430
|
+
updatedAt?: string | null | undefined;
|
|
431
|
+
application?: {
|
|
432
|
+
brandImageUrl: string;
|
|
433
|
+
redirectUrlPattern: string;
|
|
434
|
+
title: string;
|
|
435
|
+
id: string;
|
|
436
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
437
|
+
publicKeyValue?: string | null | undefined;
|
|
438
|
+
secretValue?: string | null | undefined;
|
|
439
|
+
tokenExpirationDays?: number | undefined;
|
|
440
|
+
createdAt?: string | null | undefined;
|
|
441
|
+
updatedAt?: string | null | undefined;
|
|
442
|
+
} | null | undefined;
|
|
443
|
+
nickName?: string | null | undefined;
|
|
444
|
+
}[] | null | undefined;
|
|
445
|
+
birth?: string | null | undefined;
|
|
446
|
+
imageUrl?: string | null | undefined;
|
|
447
|
+
name?: string | null | undefined;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
'/user/updatePassword': {
|
|
451
|
+
request: {
|
|
452
|
+
password: string;
|
|
453
|
+
userId: string;
|
|
454
|
+
originalPassword?: string | undefined;
|
|
455
|
+
};
|
|
456
|
+
response: {
|
|
457
|
+
id: string;
|
|
458
|
+
email: string;
|
|
459
|
+
createdAt?: string | null | undefined;
|
|
460
|
+
updatedAt?: string | null | undefined;
|
|
461
|
+
applicationRelations?: {
|
|
462
|
+
id: string;
|
|
463
|
+
applicationId: string;
|
|
464
|
+
banned: boolean;
|
|
465
|
+
userId: string;
|
|
466
|
+
createdAt?: string | null | undefined;
|
|
467
|
+
updatedAt?: string | null | undefined;
|
|
468
|
+
application?: {
|
|
469
|
+
brandImageUrl: string;
|
|
470
|
+
redirectUrlPattern: string;
|
|
471
|
+
title: string;
|
|
472
|
+
id: string;
|
|
473
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
474
|
+
publicKeyValue?: string | null | undefined;
|
|
475
|
+
secretValue?: string | null | undefined;
|
|
476
|
+
tokenExpirationDays?: number | undefined;
|
|
477
|
+
createdAt?: string | null | undefined;
|
|
478
|
+
updatedAt?: string | null | undefined;
|
|
479
|
+
} | null | undefined;
|
|
480
|
+
nickName?: string | null | undefined;
|
|
481
|
+
}[] | null | undefined;
|
|
482
|
+
birth?: string | null | undefined;
|
|
483
|
+
imageUrl?: string | null | undefined;
|
|
484
|
+
name?: string | null | undefined;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
'/user/list': {
|
|
488
|
+
request: {
|
|
489
|
+
applicationId?: string | undefined;
|
|
490
|
+
where?: ({
|
|
491
|
+
value: string;
|
|
492
|
+
type: "condition";
|
|
493
|
+
field: string;
|
|
494
|
+
op: "values" | "match" | "substring" | "endsWith" | "startsWith" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "strictLeft" | "strictRight";
|
|
495
|
+
} | {
|
|
496
|
+
type: "literal";
|
|
497
|
+
literal: string;
|
|
498
|
+
params?: any[] | undefined;
|
|
499
|
+
})[][] | undefined;
|
|
500
|
+
lastCursor?: string | undefined;
|
|
501
|
+
limit?: number | undefined;
|
|
502
|
+
createdAtField?: string | undefined;
|
|
503
|
+
cursorField?: string | undefined;
|
|
504
|
+
order?: {
|
|
505
|
+
field: string;
|
|
506
|
+
orientation: "ASC" | "DESC";
|
|
507
|
+
}[] | undefined;
|
|
508
|
+
};
|
|
509
|
+
response: {
|
|
510
|
+
data: {
|
|
511
|
+
id: string;
|
|
512
|
+
email: string;
|
|
513
|
+
createdAt?: string | null | undefined;
|
|
514
|
+
updatedAt?: string | null | undefined;
|
|
515
|
+
applicationRelations?: {
|
|
516
|
+
id: string;
|
|
517
|
+
applicationId: string;
|
|
518
|
+
banned: boolean;
|
|
519
|
+
userId: string;
|
|
520
|
+
createdAt?: string | null | undefined;
|
|
521
|
+
updatedAt?: string | null | undefined;
|
|
522
|
+
application?: {
|
|
523
|
+
brandImageUrl: string;
|
|
524
|
+
redirectUrlPattern: string;
|
|
525
|
+
title: string;
|
|
526
|
+
id: string;
|
|
527
|
+
authCodeExpirationMinutes?: number | undefined;
|
|
528
|
+
publicKeyValue?: string | null | undefined;
|
|
529
|
+
secretValue?: string | null | undefined;
|
|
530
|
+
tokenExpirationDays?: number | undefined;
|
|
531
|
+
createdAt?: string | null | undefined;
|
|
532
|
+
updatedAt?: string | null | undefined;
|
|
533
|
+
} | null | undefined;
|
|
534
|
+
nickName?: string | null | undefined;
|
|
535
|
+
}[] | null | undefined;
|
|
536
|
+
birth?: string | null | undefined;
|
|
537
|
+
imageUrl?: string | null | undefined;
|
|
538
|
+
name?: string | null | undefined;
|
|
539
|
+
}[];
|
|
540
|
+
hasNext: boolean;
|
|
541
|
+
nextCursor: string | null;
|
|
542
|
+
previousCursor: string | null;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
'/mailer/send': {
|
|
546
|
+
request: {
|
|
547
|
+
html: string;
|
|
548
|
+
subject: string;
|
|
549
|
+
to: string;
|
|
550
|
+
from: {
|
|
551
|
+
name: string;
|
|
552
|
+
address: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
response: {
|
|
556
|
+
succeeded: boolean;
|
|
557
|
+
id?: string | undefined;
|
|
558
|
+
createdAt?: string | null | undefined;
|
|
559
|
+
updatedAt?: string | null | undefined;
|
|
560
|
+
content?: string | undefined;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
'/protector/createTask': {
|
|
564
|
+
request: {
|
|
565
|
+
files: {
|
|
566
|
+
name: string;
|
|
567
|
+
content: string;
|
|
568
|
+
}[];
|
|
569
|
+
ivHex: string;
|
|
570
|
+
keyHex: string;
|
|
571
|
+
};
|
|
572
|
+
response: {
|
|
573
|
+
status: "RUNNING" | "SUCCEEDED" | "FAILED";
|
|
574
|
+
id: string;
|
|
575
|
+
endedAt: string | null;
|
|
576
|
+
files: {
|
|
577
|
+
pathname: string;
|
|
578
|
+
base64Content: string;
|
|
579
|
+
}[];
|
|
580
|
+
startedAt: string;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
'/protector/getTask': {
|
|
584
|
+
request: {
|
|
585
|
+
id: string;
|
|
586
|
+
};
|
|
587
|
+
response: {
|
|
588
|
+
status: "RUNNING" | "SUCCEEDED" | "FAILED";
|
|
589
|
+
id: string;
|
|
590
|
+
endedAt: string | null;
|
|
591
|
+
files: {
|
|
592
|
+
pathname: string;
|
|
593
|
+
base64Content: string;
|
|
594
|
+
}[];
|
|
595
|
+
startedAt: string;
|
|
596
|
+
};
|
|
536
597
|
};
|
|
537
598
|
}
|
|
538
|
-
export declare namespace enums {
|
|
539
|
-
namespace AuthExchangeRequestDTO {
|
|
540
|
-
enum method {
|
|
541
|
-
CODE = "CODE",
|
|
542
|
-
PASSWORD = "PASSWORD",
|
|
543
|
-
SESSION = "SESSION"
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
namespace AuthExchangeResultDTO {
|
|
547
|
-
enum errorCode {
|
|
548
|
-
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
549
|
-
INVALID_APPLICATION_ID = "INVALID_APPLICATION_ID",
|
|
550
|
-
INVALID_AUTH_CODE = "INVALID_AUTH_CODE",
|
|
551
|
-
INVALID_PASSWORD = "INVALID_PASSWORD",
|
|
552
|
-
INVALID_REDIRECT_URL = "INVALID_REDIRECT_URL",
|
|
553
|
-
INVALID_REQUEST_OBJECT = "INVALID_REQUEST_OBJECT",
|
|
554
|
-
INVALID_SESSION_ID = "INVALID_SESSION_ID",
|
|
555
|
-
INVALID_USER_EMAIL = "INVALID_USER_EMAIL",
|
|
556
|
-
SESSION_EXPIRED = "SESSION_EXPIRED"
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
namespace AuthResetPasswordRequestDTO {
|
|
560
|
-
enum method {
|
|
561
|
-
CODE = "CODE",
|
|
562
|
-
PASSWORD = "PASSWORD",
|
|
563
|
-
SESSION = "SESSION"
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
namespace OrderItemDTO {
|
|
567
|
-
enum orientation {
|
|
568
|
-
ASC = "ASC",
|
|
569
|
-
DESC = "DESC"
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
namespace WhereClauseDTO {
|
|
573
|
-
enum aggregation {
|
|
574
|
-
AND = "AND",
|
|
575
|
-
OR = "OR",
|
|
576
|
-
FALSE = "FALSE"
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
export type ClientRequestBody<T> = T;
|
|
581
|
-
export interface ClientResponseData<T> {
|
|
582
|
-
data: T[];
|
|
583
|
-
pagination: DataTypeMap['PaginationDTO.Response'];
|
|
584
|
-
token: string;
|
|
585
|
-
}
|
|
586
599
|
type MethodTypeMapKeys = keyof MethodTypeMap;
|
|
587
|
-
type
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
600
|
+
type ResponseCallbackData<K extends MethodTypeMapKeys> = {
|
|
601
|
+
url: K;
|
|
602
|
+
result: Result<HttpResponseBody<MethodTypeMap[K]['response']>>;
|
|
603
|
+
};
|
|
604
|
+
export type HttpResponseBody<T> = {
|
|
605
|
+
data: T;
|
|
606
|
+
token: string | null;
|
|
607
|
+
};
|
|
608
|
+
export interface RequestOptions extends RequestInit {
|
|
609
|
+
headers?: Record<string, any>;
|
|
610
|
+
ignoreCache?: boolean;
|
|
611
|
+
prefix?: string;
|
|
612
|
+
timeout?: number;
|
|
595
613
|
getAuthorizationCredential?: () => string;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
614
|
+
onRequest?: (context: {
|
|
615
|
+
cached: boolean;
|
|
616
|
+
id: string;
|
|
617
|
+
options: Omit<RequestOptions, 'getAuthorizationCredential' | 'onRequest' | 'onResponse'>;
|
|
618
|
+
prefix: string | undefined;
|
|
619
|
+
requestBody: string;
|
|
620
|
+
url: string;
|
|
621
|
+
}) => void | Promise<void>;
|
|
622
|
+
onResponse?: <K extends MethodTypeMapKeys>(response: ResponseCallbackData<K>, id: string) => void | Promise<void>;
|
|
601
623
|
}
|
|
602
|
-
export interface
|
|
603
|
-
|
|
624
|
+
export interface Result<T> {
|
|
625
|
+
error: Error | null;
|
|
626
|
+
response: T | null;
|
|
627
|
+
status: number;
|
|
628
|
+
statusText: string;
|
|
629
|
+
headers?: Record<string, any>;
|
|
604
630
|
}
|
|
605
631
|
export declare class Client {
|
|
606
632
|
private readonly options;
|
|
607
|
-
constructor(options?:
|
|
633
|
+
constructor(options?: RequestOptions);
|
|
608
634
|
protected readonly REQUEST_METHOD_MAP: Map<keyof MethodTypeMap, (...params: any[]) => Promise<unknown>>;
|
|
609
|
-
protected readonly RESPONSE_CACHE_MAP: Map<string,
|
|
610
|
-
createRequest<T extends keyof MethodTypeMap>(url: T): (requestBody?:
|
|
611
|
-
request<T extends keyof MethodTypeMap>(url: T, requestBody?:
|
|
635
|
+
protected readonly RESPONSE_CACHE_MAP: Map<string, Result<unknown>>;
|
|
636
|
+
createRequest<T extends keyof MethodTypeMap>(url: T): (requestBody?: MethodTypeMap[T]['request'], options?: RequestOptions) => Promise<Result<HttpResponseBody<MethodTypeMap[T]['response']>>>;
|
|
637
|
+
request<T extends keyof MethodTypeMap>(url: T, requestBody?: MethodTypeMap[T]['request'], options?: Omit<RequestOptions, 'getAuthorizationCredential' | 'onRequest' | 'onResponse'>): Promise<Result<HttpResponseBody<MethodTypeMap[T]['response']>>>;
|
|
612
638
|
}
|
|
639
|
+
export {};
|