tapimo 0.8.0 → 0.9.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/App.d.ts +2095 -2111
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +0 -1
- package/dist/App.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +166 -166
- package/dist/apps/data/App.d.ts +4084 -3845
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +270 -270
- package/dist/apps/data/routes/addresses.d.ts +248 -17
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +272 -2
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +114 -2
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +123 -123
- package/dist/apps/data/routes/earn.d.ts +65 -3
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +259 -14
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/tokens.d.ts +454 -454
- package/dist/apps/data/routes/transfers.d.ts +81 -81
- package/dist/apps/funding/App.d.ts +40 -299
- package/dist/apps/funding/App.d.ts.map +1 -1
- package/dist/apps/funding/App.js +20 -5
- package/dist/apps/funding/App.js.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts +43 -434
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.js +21 -103
- package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
- package/dist/apps/funding/routes/quotes.d.ts +89 -89
- package/dist/apps/funding/routes/transfers.js +5 -5
- package/dist/apps/funding/routes/transfers.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +134 -134
- package/dist/apps/management/routes/orgs.d.ts +98 -98
- package/dist/apps/management/routes/verified-token-requests.d.ts +83 -83
- package/dist/apps/mpp/App.d.ts +44 -44
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +8 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/tables/fundingDeposits.d.ts +18 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
- package/dist/db/tables/fundingDeposits.js +46 -2
- package/dist/db/tables/fundingDeposits.js.map +1 -1
- package/dist/internal/Auth.d.ts +4 -0
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +11 -2
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/funding/Provider.d.ts +6 -6
- package/dist/internal/funding/Provider.d.ts.map +1 -1
- package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
- package/dist/internal/funding/Reconciliation.js +101 -16
- package/dist/internal/funding/Reconciliation.js.map +1 -1
- package/dist/internal/funding/providers/relay.d.ts.map +1 -1
- package/dist/internal/funding/providers/relay.js +6 -2
- package/dist/internal/funding/providers/relay.js.map +1 -1
- package/package.json +1 -1
- package/src/App.test.ts +32 -0
- package/src/App.ts +4 -1
- package/src/Client.test-d.ts +56 -33
- package/src/apps/composition.test.ts +39 -10
- package/src/apps/data/routes/balances.test.ts +42 -0
- package/src/apps/data/routes/balances.ts +218 -85
- package/src/apps/data/routes/earn.test.ts +89 -9
- package/src/apps/data/routes/earn.ts +355 -14
- package/src/apps/funding/App.ts +20 -5
- package/src/apps/funding/routes/deposit-addresses.test.ts +43 -22
- package/src/apps/funding/routes/deposit-addresses.ts +34 -117
- package/src/apps/funding/routes/transfers.test.ts +6 -25
- package/src/apps/funding/routes/transfers.ts +5 -5
- package/src/db/Db.ts +9 -0
- package/src/db/tables/fundingDeposits.test.ts +101 -0
- package/src/db/tables/fundingDeposits.ts +71 -2
- package/src/internal/Auth.test.ts +28 -0
- package/src/internal/Auth.ts +15 -1
- package/src/internal/funding/Provider.ts +4 -4
- package/src/internal/funding/Reconciliation.test.ts +292 -54
- package/src/internal/funding/Reconciliation.ts +160 -53
- package/src/internal/funding/SourceObservation.test.ts +2 -2
- package/src/internal/funding/providers/relay.ts +7 -2
|
@@ -93,15 +93,26 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
93
93
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/verified-token-requests": {
|
|
94
94
|
$post: {
|
|
95
95
|
output: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
address: `0x${string}`;
|
|
97
|
+
currency: string;
|
|
98
|
+
decimals: number;
|
|
99
|
+
logoUri?: string | undefined;
|
|
100
|
+
name: string;
|
|
101
|
+
symbol: string;
|
|
102
|
+
chainId: number;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
id: string;
|
|
105
|
+
logo?: string | undefined;
|
|
106
|
+
note: string | null;
|
|
107
|
+
orgId: string;
|
|
108
|
+
requestedBy: string;
|
|
109
|
+
reviewNote: string | null;
|
|
110
|
+
reviewedAt: string | null;
|
|
111
|
+
status: "approved" | "denied" | "pending";
|
|
112
|
+
updatedAt: string;
|
|
102
113
|
};
|
|
103
114
|
outputFormat: "json";
|
|
104
|
-
status:
|
|
115
|
+
status: 200;
|
|
105
116
|
input: {
|
|
106
117
|
param: {
|
|
107
118
|
orgId: string;
|
|
@@ -122,14 +133,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
122
133
|
} | {
|
|
123
134
|
output: {
|
|
124
135
|
error: {
|
|
125
|
-
code: "
|
|
136
|
+
code: "api_key_malformed";
|
|
126
137
|
details?: readonly Response.error.Detail[] | undefined;
|
|
127
138
|
message: string;
|
|
128
139
|
};
|
|
129
140
|
requestId: string;
|
|
130
141
|
};
|
|
131
142
|
outputFormat: "json";
|
|
132
|
-
status:
|
|
143
|
+
status: 400;
|
|
133
144
|
input: {
|
|
134
145
|
param: {
|
|
135
146
|
orgId: string;
|
|
@@ -150,14 +161,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
150
161
|
} | {
|
|
151
162
|
output: {
|
|
152
163
|
error: {
|
|
153
|
-
code: "
|
|
164
|
+
code: "body_invalid";
|
|
154
165
|
details?: readonly Response.error.Detail[] | undefined;
|
|
155
166
|
message: string;
|
|
156
167
|
};
|
|
157
168
|
requestId: string;
|
|
158
169
|
};
|
|
159
170
|
outputFormat: "json";
|
|
160
|
-
status:
|
|
171
|
+
status: 400;
|
|
161
172
|
input: {
|
|
162
173
|
param: {
|
|
163
174
|
orgId: string;
|
|
@@ -178,14 +189,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
178
189
|
} | {
|
|
179
190
|
output: {
|
|
180
191
|
error: {
|
|
181
|
-
code: "
|
|
192
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
182
193
|
details?: readonly Response.error.Detail[] | undefined;
|
|
183
194
|
message: string;
|
|
184
195
|
};
|
|
185
196
|
requestId: string;
|
|
186
197
|
};
|
|
187
198
|
outputFormat: "json";
|
|
188
|
-
status:
|
|
199
|
+
status: 401;
|
|
189
200
|
input: {
|
|
190
201
|
param: {
|
|
191
202
|
orgId: string;
|
|
@@ -373,26 +384,15 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
373
384
|
};
|
|
374
385
|
} | {
|
|
375
386
|
output: {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
chainId: number;
|
|
383
|
-
createdAt: string;
|
|
384
|
-
id: string;
|
|
385
|
-
logo?: string | undefined;
|
|
386
|
-
note: string | null;
|
|
387
|
-
orgId: string;
|
|
388
|
-
requestedBy: string;
|
|
389
|
-
reviewNote: string | null;
|
|
390
|
-
reviewedAt: string | null;
|
|
391
|
-
status: "approved" | "denied" | "pending";
|
|
392
|
-
updatedAt: string;
|
|
387
|
+
error: {
|
|
388
|
+
code: "upstream_error";
|
|
389
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
390
|
+
message: string;
|
|
391
|
+
};
|
|
392
|
+
requestId: string;
|
|
393
393
|
};
|
|
394
394
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
395
|
+
status: 502;
|
|
396
396
|
input: {
|
|
397
397
|
param: {
|
|
398
398
|
orgId: string;
|
|
@@ -416,15 +416,28 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
416
416
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/verified-token-requests": {
|
|
417
417
|
$get: {
|
|
418
418
|
output: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
419
|
+
data: {
|
|
420
|
+
address: `0x${string}`;
|
|
421
|
+
currency: string;
|
|
422
|
+
decimals: number;
|
|
423
|
+
logoUri?: string | undefined;
|
|
424
|
+
name: string;
|
|
425
|
+
symbol: string;
|
|
426
|
+
chainId: number;
|
|
427
|
+
createdAt: string;
|
|
428
|
+
id: string;
|
|
429
|
+
logo?: string | undefined;
|
|
430
|
+
note: string | null;
|
|
431
|
+
orgId: string;
|
|
432
|
+
requestedBy: string;
|
|
433
|
+
reviewNote: string | null;
|
|
434
|
+
reviewedAt: string | null;
|
|
435
|
+
status: "approved" | "denied" | "pending";
|
|
436
|
+
updatedAt: string;
|
|
437
|
+
}[];
|
|
425
438
|
};
|
|
426
439
|
outputFormat: "json";
|
|
427
|
-
status:
|
|
440
|
+
status: 200;
|
|
428
441
|
input: {
|
|
429
442
|
param: {
|
|
430
443
|
orgId: string;
|
|
@@ -433,14 +446,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
433
446
|
} | {
|
|
434
447
|
output: {
|
|
435
448
|
error: {
|
|
436
|
-
code: "
|
|
449
|
+
code: "api_key_malformed";
|
|
437
450
|
details?: readonly Response.error.Detail[] | undefined;
|
|
438
451
|
message: string;
|
|
439
452
|
};
|
|
440
453
|
requestId: string;
|
|
441
454
|
};
|
|
442
455
|
outputFormat: "json";
|
|
443
|
-
status:
|
|
456
|
+
status: 400;
|
|
444
457
|
input: {
|
|
445
458
|
param: {
|
|
446
459
|
orgId: string;
|
|
@@ -449,14 +462,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
449
462
|
} | {
|
|
450
463
|
output: {
|
|
451
464
|
error: {
|
|
452
|
-
code: "
|
|
465
|
+
code: "param_invalid";
|
|
453
466
|
details?: readonly Response.error.Detail[] | undefined;
|
|
454
467
|
message: string;
|
|
455
468
|
};
|
|
456
469
|
requestId: string;
|
|
457
470
|
};
|
|
458
471
|
outputFormat: "json";
|
|
459
|
-
status:
|
|
472
|
+
status: 400;
|
|
460
473
|
input: {
|
|
461
474
|
param: {
|
|
462
475
|
orgId: string;
|
|
@@ -465,14 +478,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
465
478
|
} | {
|
|
466
479
|
output: {
|
|
467
480
|
error: {
|
|
468
|
-
code: "
|
|
481
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
469
482
|
details?: readonly Response.error.Detail[] | undefined;
|
|
470
483
|
message: string;
|
|
471
484
|
};
|
|
472
485
|
requestId: string;
|
|
473
486
|
};
|
|
474
487
|
outputFormat: "json";
|
|
475
|
-
status:
|
|
488
|
+
status: 401;
|
|
476
489
|
input: {
|
|
477
490
|
param: {
|
|
478
491
|
orgId: string;
|
|
@@ -512,28 +525,15 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
512
525
|
};
|
|
513
526
|
} | {
|
|
514
527
|
output: {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
symbol: string;
|
|
522
|
-
chainId: number;
|
|
523
|
-
createdAt: string;
|
|
524
|
-
id: string;
|
|
525
|
-
logo?: string | undefined;
|
|
526
|
-
note: string | null;
|
|
527
|
-
orgId: string;
|
|
528
|
-
requestedBy: string;
|
|
529
|
-
reviewNote: string | null;
|
|
530
|
-
reviewedAt: string | null;
|
|
531
|
-
status: "approved" | "denied" | "pending";
|
|
532
|
-
updatedAt: string;
|
|
533
|
-
}[];
|
|
528
|
+
error: {
|
|
529
|
+
code: "upstream_error";
|
|
530
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
531
|
+
message: string;
|
|
532
|
+
};
|
|
533
|
+
requestId: string;
|
|
534
534
|
};
|
|
535
535
|
outputFormat: "json";
|
|
536
|
-
status:
|
|
536
|
+
status: 502;
|
|
537
537
|
input: {
|
|
538
538
|
param: {
|
|
539
539
|
orgId: string;
|
|
@@ -545,15 +545,10 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
545
545
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/verified-token-requests/:requestId{vtr_[A-Za-z0-9_-]+}": {
|
|
546
546
|
$delete: {
|
|
547
547
|
output: {
|
|
548
|
-
|
|
549
|
-
code: "api_key_malformed";
|
|
550
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
551
|
-
message: string;
|
|
552
|
-
};
|
|
553
|
-
requestId: string;
|
|
548
|
+
id: string;
|
|
554
549
|
};
|
|
555
550
|
outputFormat: "json";
|
|
556
|
-
status:
|
|
551
|
+
status: 200;
|
|
557
552
|
input: {
|
|
558
553
|
param: {
|
|
559
554
|
orgId: string;
|
|
@@ -563,14 +558,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
563
558
|
} | {
|
|
564
559
|
output: {
|
|
565
560
|
error: {
|
|
566
|
-
code: "
|
|
561
|
+
code: "api_key_malformed";
|
|
567
562
|
details?: readonly Response.error.Detail[] | undefined;
|
|
568
563
|
message: string;
|
|
569
564
|
};
|
|
570
565
|
requestId: string;
|
|
571
566
|
};
|
|
572
567
|
outputFormat: "json";
|
|
573
|
-
status:
|
|
568
|
+
status: 400;
|
|
574
569
|
input: {
|
|
575
570
|
param: {
|
|
576
571
|
orgId: string;
|
|
@@ -580,14 +575,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
580
575
|
} | {
|
|
581
576
|
output: {
|
|
582
577
|
error: {
|
|
583
|
-
code: "
|
|
578
|
+
code: "param_invalid";
|
|
584
579
|
details?: readonly Response.error.Detail[] | undefined;
|
|
585
580
|
message: string;
|
|
586
581
|
};
|
|
587
582
|
requestId: string;
|
|
588
583
|
};
|
|
589
584
|
outputFormat: "json";
|
|
590
|
-
status:
|
|
585
|
+
status: 400;
|
|
591
586
|
input: {
|
|
592
587
|
param: {
|
|
593
588
|
orgId: string;
|
|
@@ -597,14 +592,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
597
592
|
} | {
|
|
598
593
|
output: {
|
|
599
594
|
error: {
|
|
600
|
-
code: "
|
|
595
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
601
596
|
details?: readonly Response.error.Detail[] | undefined;
|
|
602
597
|
message: string;
|
|
603
598
|
};
|
|
604
599
|
requestId: string;
|
|
605
600
|
};
|
|
606
601
|
outputFormat: "json";
|
|
607
|
-
status:
|
|
602
|
+
status: 401;
|
|
608
603
|
input: {
|
|
609
604
|
param: {
|
|
610
605
|
orgId: string;
|
|
@@ -648,14 +643,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
648
643
|
} | {
|
|
649
644
|
output: {
|
|
650
645
|
error: {
|
|
651
|
-
code: "
|
|
646
|
+
code: "verified_token_request_not_found";
|
|
652
647
|
details?: readonly Response.error.Detail[] | undefined;
|
|
653
648
|
message: string;
|
|
654
649
|
};
|
|
655
650
|
requestId: string;
|
|
656
651
|
};
|
|
657
652
|
outputFormat: "json";
|
|
658
|
-
status:
|
|
653
|
+
status: 404;
|
|
659
654
|
input: {
|
|
660
655
|
param: {
|
|
661
656
|
orgId: string;
|
|
@@ -665,14 +660,14 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
665
660
|
} | {
|
|
666
661
|
output: {
|
|
667
662
|
error: {
|
|
668
|
-
code: "
|
|
663
|
+
code: "request_not_pending";
|
|
669
664
|
details?: readonly Response.error.Detail[] | undefined;
|
|
670
665
|
message: string;
|
|
671
666
|
};
|
|
672
667
|
requestId: string;
|
|
673
668
|
};
|
|
674
669
|
outputFormat: "json";
|
|
675
|
-
status:
|
|
670
|
+
status: 409;
|
|
676
671
|
input: {
|
|
677
672
|
param: {
|
|
678
673
|
orgId: string;
|
|
@@ -681,10 +676,15 @@ export declare function verifiedTokenRequests(): import("hono/hono-base").HonoBa
|
|
|
681
676
|
};
|
|
682
677
|
} | {
|
|
683
678
|
output: {
|
|
684
|
-
|
|
679
|
+
error: {
|
|
680
|
+
code: "upstream_error";
|
|
681
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
682
|
+
message: string;
|
|
683
|
+
};
|
|
684
|
+
requestId: string;
|
|
685
685
|
};
|
|
686
686
|
outputFormat: "json";
|
|
687
|
-
status:
|
|
687
|
+
status: 502;
|
|
688
688
|
input: {
|
|
689
689
|
param: {
|
|
690
690
|
orgId: string;
|
package/dist/apps/mpp/App.d.ts
CHANGED
|
@@ -7,15 +7,16 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
7
7
|
"/v1/mpp/validate": {
|
|
8
8
|
$post: {
|
|
9
9
|
output: {
|
|
10
|
+
success: true;
|
|
11
|
+
} | {
|
|
10
12
|
error: {
|
|
11
|
-
code: "
|
|
12
|
-
|
|
13
|
-
message: string;
|
|
13
|
+
code: "already_used" | "broadcast_failed" | "expired" | "insufficient_funds" | "invalid_payment" | "policy_denied" | "screen_rejected" | "simulation_failed" | "temporarily_unavailable" | "unknown" | "unsupported";
|
|
14
|
+
message?: string | undefined;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
success: false;
|
|
16
17
|
};
|
|
17
18
|
outputFormat: "json";
|
|
18
|
-
status:
|
|
19
|
+
status: 200;
|
|
19
20
|
input: {
|
|
20
21
|
json: {
|
|
21
22
|
challenge: {
|
|
@@ -35,14 +36,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
35
36
|
} | {
|
|
36
37
|
output: {
|
|
37
38
|
error: {
|
|
38
|
-
code: "
|
|
39
|
+
code: "api_key_malformed";
|
|
39
40
|
details?: readonly Response.error.Detail[] | undefined;
|
|
40
41
|
message: string;
|
|
41
42
|
};
|
|
42
43
|
requestId: string;
|
|
43
44
|
};
|
|
44
45
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
46
|
+
status: 400;
|
|
46
47
|
input: {
|
|
47
48
|
json: {
|
|
48
49
|
challenge: {
|
|
@@ -62,14 +63,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
62
63
|
} | {
|
|
63
64
|
output: {
|
|
64
65
|
error: {
|
|
65
|
-
code: "
|
|
66
|
+
code: "body_invalid";
|
|
66
67
|
details?: readonly Response.error.Detail[] | undefined;
|
|
67
68
|
message: string;
|
|
68
69
|
};
|
|
69
70
|
requestId: string;
|
|
70
71
|
};
|
|
71
72
|
outputFormat: "json";
|
|
72
|
-
status:
|
|
73
|
+
status: 400;
|
|
73
74
|
input: {
|
|
74
75
|
json: {
|
|
75
76
|
challenge: {
|
|
@@ -89,14 +90,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
89
90
|
} | {
|
|
90
91
|
output: {
|
|
91
92
|
error: {
|
|
92
|
-
code: "
|
|
93
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
93
94
|
details?: readonly Response.error.Detail[] | undefined;
|
|
94
95
|
message: string;
|
|
95
96
|
};
|
|
96
97
|
requestId: string;
|
|
97
98
|
};
|
|
98
99
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
100
|
+
status: 401;
|
|
100
101
|
input: {
|
|
101
102
|
json: {
|
|
102
103
|
challenge: {
|
|
@@ -116,14 +117,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
116
117
|
} | {
|
|
117
118
|
output: {
|
|
118
119
|
error: {
|
|
119
|
-
code: "
|
|
120
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
120
121
|
details?: readonly Response.error.Detail[] | undefined;
|
|
121
122
|
message: string;
|
|
122
123
|
};
|
|
123
124
|
requestId: string;
|
|
124
125
|
};
|
|
125
126
|
outputFormat: "json";
|
|
126
|
-
status:
|
|
127
|
+
status: 403;
|
|
127
128
|
input: {
|
|
128
129
|
json: {
|
|
129
130
|
challenge: {
|
|
@@ -142,16 +143,15 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
142
143
|
};
|
|
143
144
|
} | {
|
|
144
145
|
output: {
|
|
145
|
-
success: true;
|
|
146
|
-
} | {
|
|
147
146
|
error: {
|
|
148
|
-
code: "
|
|
149
|
-
|
|
147
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
148
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
149
|
+
message: string;
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
requestId: string;
|
|
152
152
|
};
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: 429;
|
|
155
155
|
input: {
|
|
156
156
|
json: {
|
|
157
157
|
challenge: {
|
|
@@ -174,15 +174,22 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
174
174
|
"/v1/mpp/broadcast": {
|
|
175
175
|
$post: {
|
|
176
176
|
output: {
|
|
177
|
+
receipt: {
|
|
178
|
+
externalId?: string | undefined;
|
|
179
|
+
method: string;
|
|
180
|
+
reference: string;
|
|
181
|
+
timestamp: string;
|
|
182
|
+
};
|
|
183
|
+
success: true;
|
|
184
|
+
} | {
|
|
177
185
|
error: {
|
|
178
|
-
code: "
|
|
179
|
-
|
|
180
|
-
message: string;
|
|
186
|
+
code: "already_used" | "broadcast_failed" | "expired" | "insufficient_funds" | "invalid_payment" | "policy_denied" | "screen_rejected" | "simulation_failed" | "temporarily_unavailable" | "unknown" | "unsupported";
|
|
187
|
+
message?: string | undefined;
|
|
181
188
|
};
|
|
182
|
-
|
|
189
|
+
success: false;
|
|
183
190
|
};
|
|
184
191
|
outputFormat: "json";
|
|
185
|
-
status:
|
|
192
|
+
status: 200;
|
|
186
193
|
input: {
|
|
187
194
|
json: {
|
|
188
195
|
challenge: {
|
|
@@ -202,14 +209,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
202
209
|
} | {
|
|
203
210
|
output: {
|
|
204
211
|
error: {
|
|
205
|
-
code: "
|
|
212
|
+
code: "api_key_malformed";
|
|
206
213
|
details?: readonly Response.error.Detail[] | undefined;
|
|
207
214
|
message: string;
|
|
208
215
|
};
|
|
209
216
|
requestId: string;
|
|
210
217
|
};
|
|
211
218
|
outputFormat: "json";
|
|
212
|
-
status:
|
|
219
|
+
status: 400;
|
|
213
220
|
input: {
|
|
214
221
|
json: {
|
|
215
222
|
challenge: {
|
|
@@ -229,14 +236,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
229
236
|
} | {
|
|
230
237
|
output: {
|
|
231
238
|
error: {
|
|
232
|
-
code: "
|
|
239
|
+
code: "body_invalid";
|
|
233
240
|
details?: readonly Response.error.Detail[] | undefined;
|
|
234
241
|
message: string;
|
|
235
242
|
};
|
|
236
243
|
requestId: string;
|
|
237
244
|
};
|
|
238
245
|
outputFormat: "json";
|
|
239
|
-
status:
|
|
246
|
+
status: 400;
|
|
240
247
|
input: {
|
|
241
248
|
json: {
|
|
242
249
|
challenge: {
|
|
@@ -256,14 +263,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
256
263
|
} | {
|
|
257
264
|
output: {
|
|
258
265
|
error: {
|
|
259
|
-
code: "
|
|
266
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
260
267
|
details?: readonly Response.error.Detail[] | undefined;
|
|
261
268
|
message: string;
|
|
262
269
|
};
|
|
263
270
|
requestId: string;
|
|
264
271
|
};
|
|
265
272
|
outputFormat: "json";
|
|
266
|
-
status:
|
|
273
|
+
status: 401;
|
|
267
274
|
input: {
|
|
268
275
|
json: {
|
|
269
276
|
challenge: {
|
|
@@ -283,14 +290,14 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
283
290
|
} | {
|
|
284
291
|
output: {
|
|
285
292
|
error: {
|
|
286
|
-
code: "
|
|
293
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
287
294
|
details?: readonly Response.error.Detail[] | undefined;
|
|
288
295
|
message: string;
|
|
289
296
|
};
|
|
290
297
|
requestId: string;
|
|
291
298
|
};
|
|
292
299
|
outputFormat: "json";
|
|
293
|
-
status:
|
|
300
|
+
status: 403;
|
|
294
301
|
input: {
|
|
295
302
|
json: {
|
|
296
303
|
challenge: {
|
|
@@ -309,22 +316,15 @@ export declare function mpp(options: mpp.Options): import("hono/hono-base").Hono
|
|
|
309
316
|
};
|
|
310
317
|
} | {
|
|
311
318
|
output: {
|
|
312
|
-
receipt: {
|
|
313
|
-
externalId?: string | undefined;
|
|
314
|
-
method: string;
|
|
315
|
-
reference: string;
|
|
316
|
-
timestamp: string;
|
|
317
|
-
};
|
|
318
|
-
success: true;
|
|
319
|
-
} | {
|
|
320
319
|
error: {
|
|
321
|
-
code: "
|
|
322
|
-
|
|
320
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
321
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
322
|
+
message: string;
|
|
323
323
|
};
|
|
324
|
-
|
|
324
|
+
requestId: string;
|
|
325
325
|
};
|
|
326
326
|
outputFormat: "json";
|
|
327
|
-
status:
|
|
327
|
+
status: 429;
|
|
328
328
|
input: {
|
|
329
329
|
json: {
|
|
330
330
|
challenge: {
|
package/dist/db/Db.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Db.d.ts","sourceRoot":"","sources":["../../src/db/Db.ts"],"names":[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
995
995
|
up: (db) => raw(db, sql `ALTER TABLE funding_deposits DROP CONSTRAINT IF EXISTS funding_deposits_detection_trigger_check, ADD CONSTRAINT funding_deposits_detection_trigger_check CHECK (detection_trigger IN ('chain', 'manual', 'poll', 'webhook'))`),
|
|
996
996
|
},
|
|
997
|
+
{
|
|
998
|
+
name: '0114_funding_deposit_addresses_owner_address_index',
|
|
999
|
+
up: (db) => db.schema
|
|
1000
|
+
.createIndex('funding_deposit_addresses_owner_address_idx')
|
|
1001
|
+
.ifNotExists()
|
|
1002
|
+
.on('fundingDepositAddresses')
|
|
1003
|
+
.columns(['orgId', 'environment', 'address', 'projectId']),
|
|
1004
|
+
},
|
|
997
1005
|
];
|
|
998
1006
|
/**
|
|
999
1007
|
* Adapts a raw statement to the migration contract (argument-less
|