squarefi-bff-api-module 1.32.39 → 1.32.41

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.
@@ -1153,6 +1153,75 @@ export interface paths {
1153
1153
  patch?: never;
1154
1154
  trace?: never;
1155
1155
  };
1156
+ "/wallets/{wallet_id}/invites": {
1157
+ parameters: {
1158
+ query?: never;
1159
+ header?: never;
1160
+ path?: never;
1161
+ cookie?: never;
1162
+ };
1163
+ /** Get wallet invites list */
1164
+ get: operations["WalletsInvitesController_all"];
1165
+ put?: never;
1166
+ /** Create wallet invite */
1167
+ post: operations["WalletsInvitesController_create"];
1168
+ delete?: never;
1169
+ options?: never;
1170
+ head?: never;
1171
+ patch?: never;
1172
+ trace?: never;
1173
+ };
1174
+ "/wallets/{wallet_id}/invites/{id}": {
1175
+ parameters: {
1176
+ query?: never;
1177
+ header?: never;
1178
+ path?: never;
1179
+ cookie?: never;
1180
+ };
1181
+ /** View wallet invite */
1182
+ get: operations["WalletsInvitesController_view"];
1183
+ put?: never;
1184
+ post?: never;
1185
+ /** Cancel wallet invite */
1186
+ delete: operations["WalletsInvitesController_cancel"];
1187
+ options?: never;
1188
+ head?: never;
1189
+ patch?: never;
1190
+ trace?: never;
1191
+ };
1192
+ "/wallets/accept-invite": {
1193
+ parameters: {
1194
+ query?: never;
1195
+ header?: never;
1196
+ path?: never;
1197
+ cookie?: never;
1198
+ };
1199
+ get?: never;
1200
+ put?: never;
1201
+ /** Accept wallet invite by code */
1202
+ post: operations["WalletsInvitesAcceptController_accept"];
1203
+ delete?: never;
1204
+ options?: never;
1205
+ head?: never;
1206
+ patch?: never;
1207
+ trace?: never;
1208
+ };
1209
+ "/webhooks/mailer": {
1210
+ parameters: {
1211
+ query?: never;
1212
+ header?: never;
1213
+ path?: never;
1214
+ cookie?: never;
1215
+ };
1216
+ get?: never;
1217
+ put?: never;
1218
+ post: operations["MailerController_handleQStashWebhook"];
1219
+ delete?: never;
1220
+ options?: never;
1221
+ head?: never;
1222
+ patch?: never;
1223
+ trace?: never;
1224
+ };
1156
1225
  "/bank-data": {
1157
1226
  parameters: {
1158
1227
  query?: never;
@@ -2434,6 +2503,37 @@ export interface components {
2434
2503
  /** @enum {string} */
2435
2504
  role: "user";
2436
2505
  };
2506
+ CreateWalletInviteRequestDto: {
2507
+ email: string;
2508
+ /**
2509
+ * @example user
2510
+ * @enum {string}
2511
+ */
2512
+ role: "user";
2513
+ };
2514
+ WalletInviteDto: {
2515
+ id: string;
2516
+ email: string;
2517
+ role: string;
2518
+ code: string;
2519
+ expires_at: string;
2520
+ used_at: string | null;
2521
+ created_at: string;
2522
+ };
2523
+ WalletInvitesFilterDto: {
2524
+ /** @enum {string} */
2525
+ role?: "owner" | "admin" | "user";
2526
+ /** @description Search by email */
2527
+ search?: string;
2528
+ };
2529
+ AcceptWalletInviteRequestDto: {
2530
+ /** @example ABC123XYZ */
2531
+ code: string;
2532
+ };
2533
+ AcceptWalletInviteResponseDto: {
2534
+ wallet_id: string;
2535
+ };
2536
+ QStashWebhookDto: Record<string, never>;
2437
2537
  BankDataAddressDto: {
2438
2538
  city?: string | null;
2439
2539
  country_id?: number | null;
@@ -3319,7 +3419,7 @@ export interface operations {
3319
3419
  };
3320
3420
  content?: never;
3321
3421
  };
3322
- /** @description You don`t have access to current wallet */
3422
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3323
3423
  403: {
3324
3424
  headers: {
3325
3425
  [name: string]: unknown;
@@ -3354,7 +3454,7 @@ export interface operations {
3354
3454
  };
3355
3455
  content?: never;
3356
3456
  };
3357
- /** @description You don`t have access to current wallet */
3457
+ /** @description You don't have access to current wallet. Allowed roles: owner */
3358
3458
  403: {
3359
3459
  headers: {
3360
3460
  [name: string]: unknown;
@@ -3390,7 +3490,7 @@ export interface operations {
3390
3490
  };
3391
3491
  content?: never;
3392
3492
  };
3393
- /** @description You don`t have access to current wallet */
3493
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3394
3494
  403: {
3395
3495
  headers: {
3396
3496
  [name: string]: unknown;
@@ -3430,7 +3530,7 @@ export interface operations {
3430
3530
  };
3431
3531
  content?: never;
3432
3532
  };
3433
- /** @description You don`t have access to current wallet */
3533
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
3434
3534
  403: {
3435
3535
  headers: {
3436
3536
  [name: string]: unknown;
@@ -3475,7 +3575,7 @@ export interface operations {
3475
3575
  };
3476
3576
  content?: never;
3477
3577
  };
3478
- /** @description You don`t have access to current wallet */
3578
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3479
3579
  403: {
3480
3580
  headers: {
3481
3581
  [name: string]: unknown;
@@ -3511,7 +3611,7 @@ export interface operations {
3511
3611
  };
3512
3612
  content?: never;
3513
3613
  };
3514
- /** @description You don`t have access to current wallet */
3614
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3515
3615
  403: {
3516
3616
  headers: {
3517
3617
  [name: string]: unknown;
@@ -3540,7 +3640,7 @@ export interface operations {
3540
3640
  };
3541
3641
  content?: never;
3542
3642
  };
3543
- /** @description You don`t have access to current wallet */
3643
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3544
3644
  403: {
3545
3645
  headers: {
3546
3646
  [name: string]: unknown;
@@ -3693,7 +3793,7 @@ export interface operations {
3693
3793
  };
3694
3794
  content?: never;
3695
3795
  };
3696
- /** @description You don`t have access to current wallet */
3796
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3697
3797
  403: {
3698
3798
  headers: {
3699
3799
  [name: string]: unknown;
@@ -3733,7 +3833,7 @@ export interface operations {
3733
3833
  };
3734
3834
  content?: never;
3735
3835
  };
3736
- /** @description You don`t have access to current wallet */
3836
+ /** @description You don't have access to current wallet. Allowed roles: owner */
3737
3837
  403: {
3738
3838
  headers: {
3739
3839
  [name: string]: unknown;
@@ -3771,7 +3871,7 @@ export interface operations {
3771
3871
  };
3772
3872
  content?: never;
3773
3873
  };
3774
- /** @description You don`t have access to current wallet */
3874
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
3775
3875
  403: {
3776
3876
  headers: {
3777
3877
  [name: string]: unknown;
@@ -3811,7 +3911,7 @@ export interface operations {
3811
3911
  };
3812
3912
  content?: never;
3813
3913
  };
3814
- /** @description You don`t have access to current wallet */
3914
+ /** @description You don't have access to current wallet. Allowed roles: owner */
3815
3915
  403: {
3816
3916
  headers: {
3817
3917
  [name: string]: unknown;
@@ -4044,7 +4144,7 @@ export interface operations {
4044
4144
  };
4045
4145
  content?: never;
4046
4146
  };
4047
- /** @description You don`t have access to current wallet */
4147
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4048
4148
  403: {
4049
4149
  headers: {
4050
4150
  [name: string]: unknown;
@@ -4089,7 +4189,7 @@ export interface operations {
4089
4189
  };
4090
4190
  content?: never;
4091
4191
  };
4092
- /** @description You don`t have access to current wallet */
4192
+ /** @description You don't have access to current wallet. Allowed roles: owner */
4093
4193
  403: {
4094
4194
  headers: {
4095
4195
  [name: string]: unknown;
@@ -4130,7 +4230,7 @@ export interface operations {
4130
4230
  };
4131
4231
  content?: never;
4132
4232
  };
4133
- /** @description You don`t have access to current wallet */
4233
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4134
4234
  403: {
4135
4235
  headers: {
4136
4236
  [name: string]: unknown;
@@ -4172,7 +4272,7 @@ export interface operations {
4172
4272
  };
4173
4273
  content?: never;
4174
4274
  };
4175
- /** @description You don`t have access to current wallet */
4275
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4176
4276
  403: {
4177
4277
  headers: {
4178
4278
  [name: string]: unknown;
@@ -4222,7 +4322,7 @@ export interface operations {
4222
4322
  };
4223
4323
  content?: never;
4224
4324
  };
4225
- /** @description You don`t have access to current wallet */
4325
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
4226
4326
  403: {
4227
4327
  headers: {
4228
4328
  [name: string]: unknown;
@@ -4265,7 +4365,7 @@ export interface operations {
4265
4365
  };
4266
4366
  content?: never;
4267
4367
  };
4268
- /** @description You don`t have access to current wallet */
4368
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
4269
4369
  403: {
4270
4370
  headers: {
4271
4371
  [name: string]: unknown;
@@ -4340,7 +4440,7 @@ export interface operations {
4340
4440
  };
4341
4441
  content?: never;
4342
4442
  };
4343
- /** @description You don`t have access to current wallet */
4443
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4344
4444
  403: {
4345
4445
  headers: {
4346
4446
  [name: string]: unknown;
@@ -4385,7 +4485,7 @@ export interface operations {
4385
4485
  };
4386
4486
  content?: never;
4387
4487
  };
4388
- /** @description You don`t have access to current wallet */
4488
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
4389
4489
  403: {
4390
4490
  headers: {
4391
4491
  [name: string]: unknown;
@@ -4952,7 +5052,7 @@ export interface operations {
4952
5052
  };
4953
5053
  content?: never;
4954
5054
  };
4955
- /** @description You don`t have access to current wallet */
5055
+ /** @description You don't have access to current wallet. Allowed roles: owner */
4956
5056
  403: {
4957
5057
  headers: {
4958
5058
  [name: string]: unknown;
@@ -4988,7 +5088,7 @@ export interface operations {
4988
5088
  };
4989
5089
  content?: never;
4990
5090
  };
4991
- /** @description You don`t have access to current wallet */
5091
+ /** @description You don't have access to current wallet. Allowed roles: owner */
4992
5092
  403: {
4993
5093
  headers: {
4994
5094
  [name: string]: unknown;
@@ -5092,7 +5192,7 @@ export interface operations {
5092
5192
  };
5093
5193
  content?: never;
5094
5194
  };
5095
- /** @description You don`t have access to current wallet */
5195
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5096
5196
  403: {
5097
5197
  headers: {
5098
5198
  [name: string]: unknown;
@@ -5128,7 +5228,7 @@ export interface operations {
5128
5228
  };
5129
5229
  content?: never;
5130
5230
  };
5131
- /** @description You don`t have access to current wallet */
5231
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5132
5232
  403: {
5133
5233
  headers: {
5134
5234
  [name: string]: unknown;
@@ -5163,7 +5263,7 @@ export interface operations {
5163
5263
  };
5164
5264
  content?: never;
5165
5265
  };
5166
- /** @description You don`t have access to current wallet */
5266
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5167
5267
  403: {
5168
5268
  headers: {
5169
5269
  [name: string]: unknown;
@@ -5203,7 +5303,7 @@ export interface operations {
5203
5303
  };
5204
5304
  content?: never;
5205
5305
  };
5206
- /** @description You don`t have access to current wallet */
5306
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5207
5307
  403: {
5208
5308
  headers: {
5209
5309
  [name: string]: unknown;
@@ -5239,7 +5339,7 @@ export interface operations {
5239
5339
  };
5240
5340
  content?: never;
5241
5341
  };
5242
- /** @description You don`t have access to current wallet */
5342
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5243
5343
  403: {
5244
5344
  headers: {
5245
5345
  [name: string]: unknown;
@@ -5275,7 +5375,7 @@ export interface operations {
5275
5375
  };
5276
5376
  content?: never;
5277
5377
  };
5278
- /** @description You don`t have access to current wallet */
5378
+ /** @description You don't have access to current wallet. Allowed roles: owner, admin */
5279
5379
  403: {
5280
5380
  headers: {
5281
5381
  [name: string]: unknown;
@@ -5284,6 +5384,215 @@ export interface operations {
5284
5384
  };
5285
5385
  };
5286
5386
  };
5387
+ WalletsInvitesController_all: {
5388
+ parameters: {
5389
+ query?: {
5390
+ /** @description Number of records to skip */
5391
+ offset?: number;
5392
+ /** @description Number of records to return */
5393
+ limit?: number;
5394
+ sort_order?: "ASC" | "DESC";
5395
+ sort_by?: "created_at" | null;
5396
+ filter?: components["schemas"]["WalletInvitesFilterDto"];
5397
+ };
5398
+ header?: never;
5399
+ path: {
5400
+ wallet_id: string;
5401
+ };
5402
+ cookie?: never;
5403
+ };
5404
+ requestBody?: never;
5405
+ responses: {
5406
+ 200: {
5407
+ headers: {
5408
+ [name: string]: unknown;
5409
+ };
5410
+ content: {
5411
+ "application/json": components["schemas"]["PaginationResponseDto"] & {
5412
+ data?: unknown;
5413
+ };
5414
+ };
5415
+ };
5416
+ /** @description Unauthorized */
5417
+ 401: {
5418
+ headers: {
5419
+ [name: string]: unknown;
5420
+ };
5421
+ content?: never;
5422
+ };
5423
+ /** @description You don't have access to current wallet. Allowed roles: owner */
5424
+ 403: {
5425
+ headers: {
5426
+ [name: string]: unknown;
5427
+ };
5428
+ content?: never;
5429
+ };
5430
+ };
5431
+ };
5432
+ WalletsInvitesController_create: {
5433
+ parameters: {
5434
+ query?: never;
5435
+ header?: never;
5436
+ path: {
5437
+ wallet_id: string;
5438
+ };
5439
+ cookie?: never;
5440
+ };
5441
+ requestBody: {
5442
+ content: {
5443
+ "application/json": components["schemas"]["CreateWalletInviteRequestDto"];
5444
+ };
5445
+ };
5446
+ responses: {
5447
+ 200: {
5448
+ headers: {
5449
+ [name: string]: unknown;
5450
+ };
5451
+ content: {
5452
+ "application/json": components["schemas"]["WalletInviteDto"];
5453
+ };
5454
+ };
5455
+ /** @description Unauthorized */
5456
+ 401: {
5457
+ headers: {
5458
+ [name: string]: unknown;
5459
+ };
5460
+ content?: never;
5461
+ };
5462
+ /** @description You don't have access to current wallet. Allowed roles: owner */
5463
+ 403: {
5464
+ headers: {
5465
+ [name: string]: unknown;
5466
+ };
5467
+ content?: never;
5468
+ };
5469
+ };
5470
+ };
5471
+ WalletsInvitesController_view: {
5472
+ parameters: {
5473
+ query?: never;
5474
+ header?: never;
5475
+ path: {
5476
+ wallet_id: string;
5477
+ id: string;
5478
+ };
5479
+ cookie?: never;
5480
+ };
5481
+ requestBody?: never;
5482
+ responses: {
5483
+ 200: {
5484
+ headers: {
5485
+ [name: string]: unknown;
5486
+ };
5487
+ content: {
5488
+ "application/json": components["schemas"]["WalletInviteDto"];
5489
+ };
5490
+ };
5491
+ /** @description Unauthorized */
5492
+ 401: {
5493
+ headers: {
5494
+ [name: string]: unknown;
5495
+ };
5496
+ content?: never;
5497
+ };
5498
+ /** @description You don't have access to current wallet. Allowed roles: owner */
5499
+ 403: {
5500
+ headers: {
5501
+ [name: string]: unknown;
5502
+ };
5503
+ content?: never;
5504
+ };
5505
+ };
5506
+ };
5507
+ WalletsInvitesController_cancel: {
5508
+ parameters: {
5509
+ query?: never;
5510
+ header?: never;
5511
+ path: {
5512
+ wallet_id: string;
5513
+ id: string;
5514
+ };
5515
+ cookie?: never;
5516
+ };
5517
+ requestBody?: never;
5518
+ responses: {
5519
+ /** @description Invite cancelled */
5520
+ 200: {
5521
+ headers: {
5522
+ [name: string]: unknown;
5523
+ };
5524
+ content?: never;
5525
+ };
5526
+ /** @description Unauthorized */
5527
+ 401: {
5528
+ headers: {
5529
+ [name: string]: unknown;
5530
+ };
5531
+ content?: never;
5532
+ };
5533
+ /** @description You don't have access to current wallet. Allowed roles: owner */
5534
+ 403: {
5535
+ headers: {
5536
+ [name: string]: unknown;
5537
+ };
5538
+ content?: never;
5539
+ };
5540
+ };
5541
+ };
5542
+ WalletsInvitesAcceptController_accept: {
5543
+ parameters: {
5544
+ query?: never;
5545
+ header?: never;
5546
+ path?: never;
5547
+ cookie?: never;
5548
+ };
5549
+ requestBody: {
5550
+ content: {
5551
+ "application/json": components["schemas"]["AcceptWalletInviteRequestDto"];
5552
+ };
5553
+ };
5554
+ responses: {
5555
+ /** @description Invite accepted */
5556
+ 200: {
5557
+ headers: {
5558
+ [name: string]: unknown;
5559
+ };
5560
+ content: {
5561
+ "application/json": components["schemas"]["AcceptWalletInviteResponseDto"];
5562
+ };
5563
+ };
5564
+ /** @description Unauthorized */
5565
+ 401: {
5566
+ headers: {
5567
+ [name: string]: unknown;
5568
+ };
5569
+ content?: never;
5570
+ };
5571
+ };
5572
+ };
5573
+ MailerController_handleQStashWebhook: {
5574
+ parameters: {
5575
+ query?: never;
5576
+ header: {
5577
+ "upstash-signature": string;
5578
+ };
5579
+ path?: never;
5580
+ cookie?: never;
5581
+ };
5582
+ requestBody: {
5583
+ content: {
5584
+ "application/json": components["schemas"]["QStashWebhookDto"];
5585
+ };
5586
+ };
5587
+ responses: {
5588
+ 201: {
5589
+ headers: {
5590
+ [name: string]: unknown;
5591
+ };
5592
+ content?: never;
5593
+ };
5594
+ };
5595
+ };
5287
5596
  BankDataController_getBankDataByCode: {
5288
5597
  parameters: {
5289
5598
  query: {
@@ -1434,8 +1434,8 @@ export declare namespace API {
1434
1434
  type OrderListStatusFilter = Record<'status', OrderStatuses[] | OrderStatuses>;
1435
1435
  type OrderListOrderTypeFilter = Record<'order_type', OrderType[] | OrderType>;
1436
1436
  type OrderListFromUuidFilter = Record<'from_uuid', string[] | string>;
1437
- type OrderListToCurrencyIdFilter = Record<'to_currency_id', string[] | string>;
1438
- type OrderListFilter = OrderListStatusFilter | OrderListOrderTypeFilter | OrderListFromUuidFilter | OrderListToCurrencyIdFilter;
1437
+ type OrderListToUuidFilter = Record<'to_uuid', string[] | string>;
1438
+ type OrderListFilter = OrderListStatusFilter | OrderListOrderTypeFilter | OrderListFromUuidFilter | OrderListToUuidFilter;
1439
1439
  interface Request {
1440
1440
  wallet_uuid: string;
1441
1441
  offset?: number;
@@ -250,6 +250,7 @@ export declare enum OrderStatuses {
250
250
  PROCESSING = "PROCESSING",
251
251
  CANCELED = "CANCELED",
252
252
  COMPLETE = "COMPLETE",
253
+ RETURNED = "RETURNED",
253
254
  ERROR = "ERROR",
254
255
  FAILED = "FAILED"
255
256
  }
package/dist/constants.js CHANGED
@@ -266,6 +266,7 @@ export var OrderStatuses;
266
266
  OrderStatuses["PROCESSING"] = "PROCESSING";
267
267
  OrderStatuses["CANCELED"] = "CANCELED";
268
268
  OrderStatuses["COMPLETE"] = "COMPLETE";
269
+ OrderStatuses["RETURNED"] = "RETURNED";
269
270
  OrderStatuses["ERROR"] = "ERROR";
270
271
  OrderStatuses["FAILED"] = "FAILED";
271
272
  })(OrderStatuses || (OrderStatuses = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.39",
3
+ "version": "1.32.41",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",