@@ -46,6 +46,13 @@ import type { RelayCountResponse, RelayTransactionRequest, RelayTransactionRespo
46
46
import type { RegisterRecoveryModuleRequestBody } from './recovery'
47
47
import type { Contract } from './contracts'
48
48
import type { AuthNonce } from './auth'
49
+ import type {
50
+ Account ,
51
+ AccountDataSetting ,
52
+ AccountDataType ,
53
+ CreateAccountRequest ,
54
+ UpsertAccountDataSettingsRequest ,
55
+ } from './accounts'
49
56
50
57
export type Primitive = string | number | boolean | null
51
58
@@ -472,6 +479,39 @@ export interface paths extends PathRegistry {
472
479
}
473
480
}
474
481
}
482
+ '/v1/accounts' : {
483
+ post : operations [ 'create_account' ]
484
+ parameters : {
485
+ path : null
486
+ credentials : 'include'
487
+ }
488
+ }
489
+ '/v1/accounts/{address}' : {
490
+ get : operations [ 'get_account' ]
491
+ delete : operations [ 'delete_account' ]
492
+ parameters : {
493
+ path : {
494
+ address : string
495
+ }
496
+ credentials : 'include'
497
+ }
498
+ }
499
+ '/v1/accounts/data-types' : {
500
+ get : operations [ 'get_account_data_types' ]
501
+ parameters : {
502
+ path : null
503
+ }
504
+ }
505
+ '/v1/accounts/{address}/data-settings' : {
506
+ get : operations [ 'get_account_data_settings' ]
507
+ put : operations [ 'put_account_data_settings' ]
508
+ parameters : {
509
+ path : {
510
+ address : string
511
+ }
512
+ credentials : 'include'
513
+ }
514
+ }
475
515
}
476
516
477
517
export interface operations {
@@ -1225,4 +1265,85 @@ export interface operations {
1225
1265
}
1226
1266
}
1227
1267
}
1268
+ create_account : {
1269
+ parameters : {
1270
+ body : CreateAccountRequest
1271
+ credentials : 'include'
1272
+ }
1273
+ responses : {
1274
+ 200 : {
1275
+ schema : Account
1276
+ }
1277
+ 403 : unknown
1278
+ 422 : unknown
1279
+ }
1280
+ }
1281
+ get_account_data_types : {
1282
+ parameters : null
1283
+ responses : {
1284
+ 200 : {
1285
+ schema : AccountDataType [ ]
1286
+ }
1287
+ }
1288
+ }
1289
+ get_account_data_settings : {
1290
+ parameters : {
1291
+ path : {
1292
+ address : string
1293
+ }
1294
+ credentials : 'include'
1295
+ }
1296
+ responses : {
1297
+ 200 : {
1298
+ schema : AccountDataSetting [ ]
1299
+ }
1300
+ 403 : unknown
1301
+ }
1302
+ }
1303
+ put_account_data_settings : {
1304
+ parameters : {
1305
+ path : {
1306
+ address : string
1307
+ }
1308
+ credentials : 'include'
1309
+ body : UpsertAccountDataSettingsRequest
1310
+ }
1311
+ responses : {
1312
+ 200 : {
1313
+ schema : AccountDataSetting [ ]
1314
+ }
1315
+ 403 : unknown
1316
+ }
1317
+ }
1318
+ get_account : {
1319
+ parameters : {
1320
+ path : {
1321
+ address : string
1322
+ }
1323
+ credentials : 'include'
1324
+ }
1325
+ responses : {
1326
+ 200 : {
1327
+ schema : Account
1328
+ }
1329
+ 403 : unknown
1330
+ }
1331
+ }
1332
+ delete_account : {
1333
+ parameters : {
1334
+ path : {
1335
+ address : string
1336
+ }
1337
+ credentials : 'include'
1338
+ }
1339
+ responses : {
1340
+ 204 : {
1341
+ schema : void
1342
+ }
1343
+ 200 : {
1344
+ schema : void
1345
+ }
1346
+ 403 : unknown
1347
+ }
1348
+ }
1228
1349
}
0 commit comments