@dfns/sdk 0.6.12-rc.1 → 0.7.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/baseAuthApi.d.ts +1 -8
- package/dfnsApiClient.d.ts +1 -1
- package/dfnsAuthenticator.d.ts +2 -2
- package/dfnsDelegatedApiClient.d.ts +1 -1
- package/generated/auth/client.d.ts +0 -5
- package/generated/auth/client.js +0 -60
- package/generated/auth/delegatedClient.d.ts +0 -10
- package/generated/auth/delegatedClient.js +0 -135
- package/generated/auth/types.d.ts +10 -220
- package/generated/exchanges/types.d.ts +1 -3
- package/generated/keys/types.d.ts +0 -3
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +630 -21
- package/generated/staking/types.d.ts +5 -21
- package/generated/wallets/types.d.ts +597 -10
- package/package.json +2 -3
- package/types/generic.d.ts +4 -4
- package/utils/authToken.d.ts +5 -0
- package/utils/authToken.js +20 -0
- package/utils/fetch.js +5 -10
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/utils/nonce.d.ts +0 -1
- package/utils/nonce.js +0 -12
|
@@ -151,8 +151,9 @@ export type ArchivePolicyResponse = {
|
|
|
151
151
|
} | {
|
|
152
152
|
kind: "TravelRuleTransactionPrescreening";
|
|
153
153
|
configuration: {
|
|
154
|
-
vendor: "
|
|
154
|
+
vendor: "Notabene";
|
|
155
155
|
autoTriggerTimeoutSeconds: number;
|
|
156
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
156
157
|
};
|
|
157
158
|
};
|
|
158
159
|
action: {
|
|
@@ -241,7 +242,6 @@ export type CreateApprovalDecisionResponse = {
|
|
|
241
242
|
requester: {
|
|
242
243
|
userId: string;
|
|
243
244
|
tokenId?: string | undefined;
|
|
244
|
-
appId?: string | undefined;
|
|
245
245
|
};
|
|
246
246
|
requestBody: {
|
|
247
247
|
kind: "Native";
|
|
@@ -269,6 +269,14 @@ export type CreateApprovalDecisionResponse = {
|
|
|
269
269
|
externalId?: string | undefined;
|
|
270
270
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
271
271
|
feeSponsorId?: string | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
kind: "Coin";
|
|
274
|
+
coin: string;
|
|
275
|
+
to: string;
|
|
276
|
+
amount: string;
|
|
277
|
+
externalId?: string | undefined;
|
|
278
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
279
|
+
feeSponsorId?: string | undefined;
|
|
272
280
|
} | {
|
|
273
281
|
kind: "Erc20";
|
|
274
282
|
contract: string;
|
|
@@ -361,6 +369,194 @@ export type CreateApprovalDecisionResponse = {
|
|
|
361
369
|
approvalId?: string | undefined;
|
|
362
370
|
externalId?: string | undefined;
|
|
363
371
|
feeSponsorId?: string | undefined;
|
|
372
|
+
travelRule?: ({
|
|
373
|
+
kind: "Notabene";
|
|
374
|
+
beneficiaryVASPdid?: string | undefined;
|
|
375
|
+
beneficiaryProof?: ({
|
|
376
|
+
type: string;
|
|
377
|
+
proof: string;
|
|
378
|
+
attestation: string;
|
|
379
|
+
address?: string | undefined;
|
|
380
|
+
status?: string | undefined;
|
|
381
|
+
} | {
|
|
382
|
+
type: "screenshot";
|
|
383
|
+
url: string;
|
|
384
|
+
} | {
|
|
385
|
+
type: "self-declaration";
|
|
386
|
+
did?: string | undefined;
|
|
387
|
+
address?: string | undefined;
|
|
388
|
+
attestation: string;
|
|
389
|
+
confirmed?: boolean | undefined;
|
|
390
|
+
status?: string | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
type: "microtransfer";
|
|
393
|
+
did?: string | undefined;
|
|
394
|
+
address?: string | undefined;
|
|
395
|
+
proof: string;
|
|
396
|
+
chain?: string | undefined;
|
|
397
|
+
destination?: string | undefined;
|
|
398
|
+
amountSubunits?: string | undefined;
|
|
399
|
+
status?: string | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
type: string;
|
|
402
|
+
}) | undefined;
|
|
403
|
+
originator: {
|
|
404
|
+
originatorPersons: {
|
|
405
|
+
naturalPerson?: {
|
|
406
|
+
name: {
|
|
407
|
+
nameIdentifier: {
|
|
408
|
+
primaryIdentifier: string;
|
|
409
|
+
secondaryIdentifier: string;
|
|
410
|
+
}[];
|
|
411
|
+
};
|
|
412
|
+
geographicAddress?: {
|
|
413
|
+
addressType?: string | undefined;
|
|
414
|
+
department?: string | undefined;
|
|
415
|
+
subDepartment?: string | undefined;
|
|
416
|
+
streetName?: string | undefined;
|
|
417
|
+
buildingNumber?: string | undefined;
|
|
418
|
+
buildingName?: string | undefined;
|
|
419
|
+
floor?: string | undefined;
|
|
420
|
+
postBox?: string | undefined;
|
|
421
|
+
room?: string | undefined;
|
|
422
|
+
postCode?: string | undefined;
|
|
423
|
+
townName?: string | undefined;
|
|
424
|
+
townLocationName?: string | undefined;
|
|
425
|
+
districtName?: string | undefined;
|
|
426
|
+
countrySubDivision?: string | undefined;
|
|
427
|
+
addressLine?: string[] | undefined;
|
|
428
|
+
country?: string | undefined;
|
|
429
|
+
}[] | undefined;
|
|
430
|
+
customerIdentification?: string | undefined;
|
|
431
|
+
nationalIdentification?: {
|
|
432
|
+
nationalIdentifier: string;
|
|
433
|
+
nationalIdentifierType: string;
|
|
434
|
+
countryOfIssue?: string | undefined;
|
|
435
|
+
registrationAuthority?: string | undefined;
|
|
436
|
+
} | undefined;
|
|
437
|
+
dateAndPlaceOfBirth?: {
|
|
438
|
+
dateOfBirth: string;
|
|
439
|
+
placeOfBirth: string;
|
|
440
|
+
} | undefined;
|
|
441
|
+
countryOfResidence?: string | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
legalPerson?: {
|
|
444
|
+
name: {
|
|
445
|
+
nameIdentifier: {
|
|
446
|
+
legalPersonName: string;
|
|
447
|
+
legalPersonNameIdentifierType: string;
|
|
448
|
+
}[];
|
|
449
|
+
};
|
|
450
|
+
geographicAddress?: {
|
|
451
|
+
addressType?: string | undefined;
|
|
452
|
+
department?: string | undefined;
|
|
453
|
+
subDepartment?: string | undefined;
|
|
454
|
+
streetName?: string | undefined;
|
|
455
|
+
buildingNumber?: string | undefined;
|
|
456
|
+
buildingName?: string | undefined;
|
|
457
|
+
floor?: string | undefined;
|
|
458
|
+
postBox?: string | undefined;
|
|
459
|
+
room?: string | undefined;
|
|
460
|
+
postCode?: string | undefined;
|
|
461
|
+
townName?: string | undefined;
|
|
462
|
+
townLocationName?: string | undefined;
|
|
463
|
+
districtName?: string | undefined;
|
|
464
|
+
countrySubDivision?: string | undefined;
|
|
465
|
+
addressLine?: string[] | undefined;
|
|
466
|
+
country?: string | undefined;
|
|
467
|
+
}[] | undefined;
|
|
468
|
+
customerNumber?: string | undefined;
|
|
469
|
+
nationalIdentification?: {
|
|
470
|
+
nationalIdentifier: string;
|
|
471
|
+
nationalIdentifierType: string;
|
|
472
|
+
countryOfIssue?: string | undefined;
|
|
473
|
+
registrationAuthority?: string | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
dateOfRegistration?: string | undefined;
|
|
476
|
+
countryOfRegistration?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
}[];
|
|
479
|
+
accountNumber?: string[] | undefined;
|
|
480
|
+
};
|
|
481
|
+
beneficiary: {
|
|
482
|
+
beneficiaryPersons: {
|
|
483
|
+
naturalPerson?: {
|
|
484
|
+
name: {
|
|
485
|
+
nameIdentifier: {
|
|
486
|
+
primaryIdentifier: string;
|
|
487
|
+
secondaryIdentifier: string;
|
|
488
|
+
}[];
|
|
489
|
+
};
|
|
490
|
+
geographicAddress?: {
|
|
491
|
+
addressType?: string | undefined;
|
|
492
|
+
department?: string | undefined;
|
|
493
|
+
subDepartment?: string | undefined;
|
|
494
|
+
streetName?: string | undefined;
|
|
495
|
+
buildingNumber?: string | undefined;
|
|
496
|
+
buildingName?: string | undefined;
|
|
497
|
+
floor?: string | undefined;
|
|
498
|
+
postBox?: string | undefined;
|
|
499
|
+
room?: string | undefined;
|
|
500
|
+
postCode?: string | undefined;
|
|
501
|
+
townName?: string | undefined;
|
|
502
|
+
townLocationName?: string | undefined;
|
|
503
|
+
districtName?: string | undefined;
|
|
504
|
+
countrySubDivision?: string | undefined;
|
|
505
|
+
addressLine?: string[] | undefined;
|
|
506
|
+
country?: string | undefined;
|
|
507
|
+
}[] | undefined;
|
|
508
|
+
customerIdentification?: string | undefined;
|
|
509
|
+
nationalIdentification?: {
|
|
510
|
+
nationalIdentifier: string;
|
|
511
|
+
nationalIdentifierType: string;
|
|
512
|
+
countryOfIssue?: string | undefined;
|
|
513
|
+
registrationAuthority?: string | undefined;
|
|
514
|
+
} | undefined;
|
|
515
|
+
dateAndPlaceOfBirth?: {
|
|
516
|
+
dateOfBirth: string;
|
|
517
|
+
placeOfBirth: string;
|
|
518
|
+
} | undefined;
|
|
519
|
+
countryOfResidence?: string | undefined;
|
|
520
|
+
} | undefined;
|
|
521
|
+
legalPerson?: {
|
|
522
|
+
name: {
|
|
523
|
+
nameIdentifier: {
|
|
524
|
+
legalPersonName: string;
|
|
525
|
+
legalPersonNameIdentifierType: string;
|
|
526
|
+
}[];
|
|
527
|
+
};
|
|
528
|
+
geographicAddress?: {
|
|
529
|
+
addressType?: string | undefined;
|
|
530
|
+
department?: string | undefined;
|
|
531
|
+
subDepartment?: string | undefined;
|
|
532
|
+
streetName?: string | undefined;
|
|
533
|
+
buildingNumber?: string | undefined;
|
|
534
|
+
buildingName?: string | undefined;
|
|
535
|
+
floor?: string | undefined;
|
|
536
|
+
postBox?: string | undefined;
|
|
537
|
+
room?: string | undefined;
|
|
538
|
+
postCode?: string | undefined;
|
|
539
|
+
townName?: string | undefined;
|
|
540
|
+
townLocationName?: string | undefined;
|
|
541
|
+
districtName?: string | undefined;
|
|
542
|
+
countrySubDivision?: string | undefined;
|
|
543
|
+
addressLine?: string[] | undefined;
|
|
544
|
+
country?: string | undefined;
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
customerNumber?: string | undefined;
|
|
547
|
+
nationalIdentification?: {
|
|
548
|
+
nationalIdentifier: string;
|
|
549
|
+
nationalIdentifierType: string;
|
|
550
|
+
countryOfIssue?: string | undefined;
|
|
551
|
+
registrationAuthority?: string | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
dateOfRegistration?: string | undefined;
|
|
554
|
+
countryOfRegistration?: string | undefined;
|
|
555
|
+
} | undefined;
|
|
556
|
+
}[];
|
|
557
|
+
accountNumber?: string[] | undefined;
|
|
558
|
+
};
|
|
559
|
+
}) | undefined;
|
|
364
560
|
} | undefined;
|
|
365
561
|
transactionRequest?: {
|
|
366
562
|
id: string;
|
|
@@ -369,7 +565,6 @@ export type CreateApprovalDecisionResponse = {
|
|
|
369
565
|
requester: {
|
|
370
566
|
userId: string;
|
|
371
567
|
tokenId?: string | undefined;
|
|
372
|
-
appId?: string | undefined;
|
|
373
568
|
};
|
|
374
569
|
requestBody: {
|
|
375
570
|
kind: "Transaction";
|
|
@@ -428,7 +623,6 @@ export type CreateApprovalDecisionResponse = {
|
|
|
428
623
|
requester: {
|
|
429
624
|
userId: string;
|
|
430
625
|
tokenId?: string | undefined;
|
|
431
|
-
appId?: string | undefined;
|
|
432
626
|
};
|
|
433
627
|
requestBody: {
|
|
434
628
|
kind: "Hash";
|
|
@@ -1170,8 +1364,9 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1170
1364
|
} | {
|
|
1171
1365
|
kind: "TravelRuleTransactionPrescreening";
|
|
1172
1366
|
configuration: {
|
|
1173
|
-
vendor: "
|
|
1367
|
+
vendor: "Notabene";
|
|
1174
1368
|
autoTriggerTimeoutSeconds: number;
|
|
1369
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
1175
1370
|
};
|
|
1176
1371
|
};
|
|
1177
1372
|
action: {
|
|
@@ -1444,8 +1639,9 @@ export type CreatePolicyBody = {
|
|
|
1444
1639
|
} | {
|
|
1445
1640
|
kind: "TravelRuleTransactionPrescreening";
|
|
1446
1641
|
configuration: {
|
|
1447
|
-
vendor: "
|
|
1642
|
+
vendor: "Notabene";
|
|
1448
1643
|
autoTriggerTimeoutSeconds: number;
|
|
1644
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
1449
1645
|
};
|
|
1450
1646
|
};
|
|
1451
1647
|
action: {
|
|
@@ -1660,8 +1856,9 @@ export type CreatePolicyResponse = {
|
|
|
1660
1856
|
} | {
|
|
1661
1857
|
kind: "TravelRuleTransactionPrescreening";
|
|
1662
1858
|
configuration: {
|
|
1663
|
-
vendor: "
|
|
1859
|
+
vendor: "Notabene";
|
|
1664
1860
|
autoTriggerTimeoutSeconds: number;
|
|
1861
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
1665
1862
|
};
|
|
1666
1863
|
};
|
|
1667
1864
|
action: {
|
|
@@ -1748,7 +1945,6 @@ export type GetApprovalResponse = {
|
|
|
1748
1945
|
requester: {
|
|
1749
1946
|
userId: string;
|
|
1750
1947
|
tokenId?: string | undefined;
|
|
1751
|
-
appId?: string | undefined;
|
|
1752
1948
|
};
|
|
1753
1949
|
requestBody: {
|
|
1754
1950
|
kind: "Native";
|
|
@@ -1776,6 +1972,14 @@ export type GetApprovalResponse = {
|
|
|
1776
1972
|
externalId?: string | undefined;
|
|
1777
1973
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1778
1974
|
feeSponsorId?: string | undefined;
|
|
1975
|
+
} | {
|
|
1976
|
+
kind: "Coin";
|
|
1977
|
+
coin: string;
|
|
1978
|
+
to: string;
|
|
1979
|
+
amount: string;
|
|
1980
|
+
externalId?: string | undefined;
|
|
1981
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1982
|
+
feeSponsorId?: string | undefined;
|
|
1779
1983
|
} | {
|
|
1780
1984
|
kind: "Erc20";
|
|
1781
1985
|
contract: string;
|
|
@@ -1868,6 +2072,194 @@ export type GetApprovalResponse = {
|
|
|
1868
2072
|
approvalId?: string | undefined;
|
|
1869
2073
|
externalId?: string | undefined;
|
|
1870
2074
|
feeSponsorId?: string | undefined;
|
|
2075
|
+
travelRule?: ({
|
|
2076
|
+
kind: "Notabene";
|
|
2077
|
+
beneficiaryVASPdid?: string | undefined;
|
|
2078
|
+
beneficiaryProof?: ({
|
|
2079
|
+
type: string;
|
|
2080
|
+
proof: string;
|
|
2081
|
+
attestation: string;
|
|
2082
|
+
address?: string | undefined;
|
|
2083
|
+
status?: string | undefined;
|
|
2084
|
+
} | {
|
|
2085
|
+
type: "screenshot";
|
|
2086
|
+
url: string;
|
|
2087
|
+
} | {
|
|
2088
|
+
type: "self-declaration";
|
|
2089
|
+
did?: string | undefined;
|
|
2090
|
+
address?: string | undefined;
|
|
2091
|
+
attestation: string;
|
|
2092
|
+
confirmed?: boolean | undefined;
|
|
2093
|
+
status?: string | undefined;
|
|
2094
|
+
} | {
|
|
2095
|
+
type: "microtransfer";
|
|
2096
|
+
did?: string | undefined;
|
|
2097
|
+
address?: string | undefined;
|
|
2098
|
+
proof: string;
|
|
2099
|
+
chain?: string | undefined;
|
|
2100
|
+
destination?: string | undefined;
|
|
2101
|
+
amountSubunits?: string | undefined;
|
|
2102
|
+
status?: string | undefined;
|
|
2103
|
+
} | {
|
|
2104
|
+
type: string;
|
|
2105
|
+
}) | undefined;
|
|
2106
|
+
originator: {
|
|
2107
|
+
originatorPersons: {
|
|
2108
|
+
naturalPerson?: {
|
|
2109
|
+
name: {
|
|
2110
|
+
nameIdentifier: {
|
|
2111
|
+
primaryIdentifier: string;
|
|
2112
|
+
secondaryIdentifier: string;
|
|
2113
|
+
}[];
|
|
2114
|
+
};
|
|
2115
|
+
geographicAddress?: {
|
|
2116
|
+
addressType?: string | undefined;
|
|
2117
|
+
department?: string | undefined;
|
|
2118
|
+
subDepartment?: string | undefined;
|
|
2119
|
+
streetName?: string | undefined;
|
|
2120
|
+
buildingNumber?: string | undefined;
|
|
2121
|
+
buildingName?: string | undefined;
|
|
2122
|
+
floor?: string | undefined;
|
|
2123
|
+
postBox?: string | undefined;
|
|
2124
|
+
room?: string | undefined;
|
|
2125
|
+
postCode?: string | undefined;
|
|
2126
|
+
townName?: string | undefined;
|
|
2127
|
+
townLocationName?: string | undefined;
|
|
2128
|
+
districtName?: string | undefined;
|
|
2129
|
+
countrySubDivision?: string | undefined;
|
|
2130
|
+
addressLine?: string[] | undefined;
|
|
2131
|
+
country?: string | undefined;
|
|
2132
|
+
}[] | undefined;
|
|
2133
|
+
customerIdentification?: string | undefined;
|
|
2134
|
+
nationalIdentification?: {
|
|
2135
|
+
nationalIdentifier: string;
|
|
2136
|
+
nationalIdentifierType: string;
|
|
2137
|
+
countryOfIssue?: string | undefined;
|
|
2138
|
+
registrationAuthority?: string | undefined;
|
|
2139
|
+
} | undefined;
|
|
2140
|
+
dateAndPlaceOfBirth?: {
|
|
2141
|
+
dateOfBirth: string;
|
|
2142
|
+
placeOfBirth: string;
|
|
2143
|
+
} | undefined;
|
|
2144
|
+
countryOfResidence?: string | undefined;
|
|
2145
|
+
} | undefined;
|
|
2146
|
+
legalPerson?: {
|
|
2147
|
+
name: {
|
|
2148
|
+
nameIdentifier: {
|
|
2149
|
+
legalPersonName: string;
|
|
2150
|
+
legalPersonNameIdentifierType: string;
|
|
2151
|
+
}[];
|
|
2152
|
+
};
|
|
2153
|
+
geographicAddress?: {
|
|
2154
|
+
addressType?: string | undefined;
|
|
2155
|
+
department?: string | undefined;
|
|
2156
|
+
subDepartment?: string | undefined;
|
|
2157
|
+
streetName?: string | undefined;
|
|
2158
|
+
buildingNumber?: string | undefined;
|
|
2159
|
+
buildingName?: string | undefined;
|
|
2160
|
+
floor?: string | undefined;
|
|
2161
|
+
postBox?: string | undefined;
|
|
2162
|
+
room?: string | undefined;
|
|
2163
|
+
postCode?: string | undefined;
|
|
2164
|
+
townName?: string | undefined;
|
|
2165
|
+
townLocationName?: string | undefined;
|
|
2166
|
+
districtName?: string | undefined;
|
|
2167
|
+
countrySubDivision?: string | undefined;
|
|
2168
|
+
addressLine?: string[] | undefined;
|
|
2169
|
+
country?: string | undefined;
|
|
2170
|
+
}[] | undefined;
|
|
2171
|
+
customerNumber?: string | undefined;
|
|
2172
|
+
nationalIdentification?: {
|
|
2173
|
+
nationalIdentifier: string;
|
|
2174
|
+
nationalIdentifierType: string;
|
|
2175
|
+
countryOfIssue?: string | undefined;
|
|
2176
|
+
registrationAuthority?: string | undefined;
|
|
2177
|
+
} | undefined;
|
|
2178
|
+
dateOfRegistration?: string | undefined;
|
|
2179
|
+
countryOfRegistration?: string | undefined;
|
|
2180
|
+
} | undefined;
|
|
2181
|
+
}[];
|
|
2182
|
+
accountNumber?: string[] | undefined;
|
|
2183
|
+
};
|
|
2184
|
+
beneficiary: {
|
|
2185
|
+
beneficiaryPersons: {
|
|
2186
|
+
naturalPerson?: {
|
|
2187
|
+
name: {
|
|
2188
|
+
nameIdentifier: {
|
|
2189
|
+
primaryIdentifier: string;
|
|
2190
|
+
secondaryIdentifier: string;
|
|
2191
|
+
}[];
|
|
2192
|
+
};
|
|
2193
|
+
geographicAddress?: {
|
|
2194
|
+
addressType?: string | undefined;
|
|
2195
|
+
department?: string | undefined;
|
|
2196
|
+
subDepartment?: string | undefined;
|
|
2197
|
+
streetName?: string | undefined;
|
|
2198
|
+
buildingNumber?: string | undefined;
|
|
2199
|
+
buildingName?: string | undefined;
|
|
2200
|
+
floor?: string | undefined;
|
|
2201
|
+
postBox?: string | undefined;
|
|
2202
|
+
room?: string | undefined;
|
|
2203
|
+
postCode?: string | undefined;
|
|
2204
|
+
townName?: string | undefined;
|
|
2205
|
+
townLocationName?: string | undefined;
|
|
2206
|
+
districtName?: string | undefined;
|
|
2207
|
+
countrySubDivision?: string | undefined;
|
|
2208
|
+
addressLine?: string[] | undefined;
|
|
2209
|
+
country?: string | undefined;
|
|
2210
|
+
}[] | undefined;
|
|
2211
|
+
customerIdentification?: string | undefined;
|
|
2212
|
+
nationalIdentification?: {
|
|
2213
|
+
nationalIdentifier: string;
|
|
2214
|
+
nationalIdentifierType: string;
|
|
2215
|
+
countryOfIssue?: string | undefined;
|
|
2216
|
+
registrationAuthority?: string | undefined;
|
|
2217
|
+
} | undefined;
|
|
2218
|
+
dateAndPlaceOfBirth?: {
|
|
2219
|
+
dateOfBirth: string;
|
|
2220
|
+
placeOfBirth: string;
|
|
2221
|
+
} | undefined;
|
|
2222
|
+
countryOfResidence?: string | undefined;
|
|
2223
|
+
} | undefined;
|
|
2224
|
+
legalPerson?: {
|
|
2225
|
+
name: {
|
|
2226
|
+
nameIdentifier: {
|
|
2227
|
+
legalPersonName: string;
|
|
2228
|
+
legalPersonNameIdentifierType: string;
|
|
2229
|
+
}[];
|
|
2230
|
+
};
|
|
2231
|
+
geographicAddress?: {
|
|
2232
|
+
addressType?: string | undefined;
|
|
2233
|
+
department?: string | undefined;
|
|
2234
|
+
subDepartment?: string | undefined;
|
|
2235
|
+
streetName?: string | undefined;
|
|
2236
|
+
buildingNumber?: string | undefined;
|
|
2237
|
+
buildingName?: string | undefined;
|
|
2238
|
+
floor?: string | undefined;
|
|
2239
|
+
postBox?: string | undefined;
|
|
2240
|
+
room?: string | undefined;
|
|
2241
|
+
postCode?: string | undefined;
|
|
2242
|
+
townName?: string | undefined;
|
|
2243
|
+
townLocationName?: string | undefined;
|
|
2244
|
+
districtName?: string | undefined;
|
|
2245
|
+
countrySubDivision?: string | undefined;
|
|
2246
|
+
addressLine?: string[] | undefined;
|
|
2247
|
+
country?: string | undefined;
|
|
2248
|
+
}[] | undefined;
|
|
2249
|
+
customerNumber?: string | undefined;
|
|
2250
|
+
nationalIdentification?: {
|
|
2251
|
+
nationalIdentifier: string;
|
|
2252
|
+
nationalIdentifierType: string;
|
|
2253
|
+
countryOfIssue?: string | undefined;
|
|
2254
|
+
registrationAuthority?: string | undefined;
|
|
2255
|
+
} | undefined;
|
|
2256
|
+
dateOfRegistration?: string | undefined;
|
|
2257
|
+
countryOfRegistration?: string | undefined;
|
|
2258
|
+
} | undefined;
|
|
2259
|
+
}[];
|
|
2260
|
+
accountNumber?: string[] | undefined;
|
|
2261
|
+
};
|
|
2262
|
+
}) | undefined;
|
|
1871
2263
|
} | undefined;
|
|
1872
2264
|
transactionRequest?: {
|
|
1873
2265
|
id: string;
|
|
@@ -1876,7 +2268,6 @@ export type GetApprovalResponse = {
|
|
|
1876
2268
|
requester: {
|
|
1877
2269
|
userId: string;
|
|
1878
2270
|
tokenId?: string | undefined;
|
|
1879
|
-
appId?: string | undefined;
|
|
1880
2271
|
};
|
|
1881
2272
|
requestBody: {
|
|
1882
2273
|
kind: "Transaction";
|
|
@@ -1935,7 +2326,6 @@ export type GetApprovalResponse = {
|
|
|
1935
2326
|
requester: {
|
|
1936
2327
|
userId: string;
|
|
1937
2328
|
tokenId?: string | undefined;
|
|
1938
|
-
appId?: string | undefined;
|
|
1939
2329
|
};
|
|
1940
2330
|
requestBody: {
|
|
1941
2331
|
kind: "Hash";
|
|
@@ -2677,8 +3067,9 @@ export type GetApprovalResponse = {
|
|
|
2677
3067
|
} | {
|
|
2678
3068
|
kind: "TravelRuleTransactionPrescreening";
|
|
2679
3069
|
configuration: {
|
|
2680
|
-
vendor: "
|
|
3070
|
+
vendor: "Notabene";
|
|
2681
3071
|
autoTriggerTimeoutSeconds: number;
|
|
3072
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
2682
3073
|
};
|
|
2683
3074
|
};
|
|
2684
3075
|
action: {
|
|
@@ -2968,8 +3359,9 @@ export type GetPolicyResponse = ({
|
|
|
2968
3359
|
} | {
|
|
2969
3360
|
kind: "TravelRuleTransactionPrescreening";
|
|
2970
3361
|
configuration: {
|
|
2971
|
-
vendor: "
|
|
3362
|
+
vendor: "Notabene";
|
|
2972
3363
|
autoTriggerTimeoutSeconds: number;
|
|
3364
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
2973
3365
|
};
|
|
2974
3366
|
};
|
|
2975
3367
|
action: {
|
|
@@ -3202,8 +3594,9 @@ export type GetPolicyResponse = ({
|
|
|
3202
3594
|
} | {
|
|
3203
3595
|
kind: "TravelRuleTransactionPrescreening";
|
|
3204
3596
|
configuration: {
|
|
3205
|
-
vendor: "
|
|
3597
|
+
vendor: "Notabene";
|
|
3206
3598
|
autoTriggerTimeoutSeconds: number;
|
|
3599
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
3207
3600
|
};
|
|
3208
3601
|
};
|
|
3209
3602
|
action: {
|
|
@@ -3295,7 +3688,6 @@ export type ListApprovalsResponse = {
|
|
|
3295
3688
|
requester: {
|
|
3296
3689
|
userId: string;
|
|
3297
3690
|
tokenId?: string | undefined;
|
|
3298
|
-
appId?: string | undefined;
|
|
3299
3691
|
};
|
|
3300
3692
|
requestBody: {
|
|
3301
3693
|
kind: "Native";
|
|
@@ -3323,6 +3715,14 @@ export type ListApprovalsResponse = {
|
|
|
3323
3715
|
externalId?: string | undefined;
|
|
3324
3716
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
3325
3717
|
feeSponsorId?: string | undefined;
|
|
3718
|
+
} | {
|
|
3719
|
+
kind: "Coin";
|
|
3720
|
+
coin: string;
|
|
3721
|
+
to: string;
|
|
3722
|
+
amount: string;
|
|
3723
|
+
externalId?: string | undefined;
|
|
3724
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
3725
|
+
feeSponsorId?: string | undefined;
|
|
3326
3726
|
} | {
|
|
3327
3727
|
kind: "Erc20";
|
|
3328
3728
|
contract: string;
|
|
@@ -3415,6 +3815,194 @@ export type ListApprovalsResponse = {
|
|
|
3415
3815
|
approvalId?: string | undefined;
|
|
3416
3816
|
externalId?: string | undefined;
|
|
3417
3817
|
feeSponsorId?: string | undefined;
|
|
3818
|
+
travelRule?: ({
|
|
3819
|
+
kind: "Notabene";
|
|
3820
|
+
beneficiaryVASPdid?: string | undefined;
|
|
3821
|
+
beneficiaryProof?: ({
|
|
3822
|
+
type: string;
|
|
3823
|
+
proof: string;
|
|
3824
|
+
attestation: string;
|
|
3825
|
+
address?: string | undefined;
|
|
3826
|
+
status?: string | undefined;
|
|
3827
|
+
} | {
|
|
3828
|
+
type: "screenshot";
|
|
3829
|
+
url: string;
|
|
3830
|
+
} | {
|
|
3831
|
+
type: "self-declaration";
|
|
3832
|
+
did?: string | undefined;
|
|
3833
|
+
address?: string | undefined;
|
|
3834
|
+
attestation: string;
|
|
3835
|
+
confirmed?: boolean | undefined;
|
|
3836
|
+
status?: string | undefined;
|
|
3837
|
+
} | {
|
|
3838
|
+
type: "microtransfer";
|
|
3839
|
+
did?: string | undefined;
|
|
3840
|
+
address?: string | undefined;
|
|
3841
|
+
proof: string;
|
|
3842
|
+
chain?: string | undefined;
|
|
3843
|
+
destination?: string | undefined;
|
|
3844
|
+
amountSubunits?: string | undefined;
|
|
3845
|
+
status?: string | undefined;
|
|
3846
|
+
} | {
|
|
3847
|
+
type: string;
|
|
3848
|
+
}) | undefined;
|
|
3849
|
+
originator: {
|
|
3850
|
+
originatorPersons: {
|
|
3851
|
+
naturalPerson?: {
|
|
3852
|
+
name: {
|
|
3853
|
+
nameIdentifier: {
|
|
3854
|
+
primaryIdentifier: string;
|
|
3855
|
+
secondaryIdentifier: string;
|
|
3856
|
+
}[];
|
|
3857
|
+
};
|
|
3858
|
+
geographicAddress?: {
|
|
3859
|
+
addressType?: string | undefined;
|
|
3860
|
+
department?: string | undefined;
|
|
3861
|
+
subDepartment?: string | undefined;
|
|
3862
|
+
streetName?: string | undefined;
|
|
3863
|
+
buildingNumber?: string | undefined;
|
|
3864
|
+
buildingName?: string | undefined;
|
|
3865
|
+
floor?: string | undefined;
|
|
3866
|
+
postBox?: string | undefined;
|
|
3867
|
+
room?: string | undefined;
|
|
3868
|
+
postCode?: string | undefined;
|
|
3869
|
+
townName?: string | undefined;
|
|
3870
|
+
townLocationName?: string | undefined;
|
|
3871
|
+
districtName?: string | undefined;
|
|
3872
|
+
countrySubDivision?: string | undefined;
|
|
3873
|
+
addressLine?: string[] | undefined;
|
|
3874
|
+
country?: string | undefined;
|
|
3875
|
+
}[] | undefined;
|
|
3876
|
+
customerIdentification?: string | undefined;
|
|
3877
|
+
nationalIdentification?: {
|
|
3878
|
+
nationalIdentifier: string;
|
|
3879
|
+
nationalIdentifierType: string;
|
|
3880
|
+
countryOfIssue?: string | undefined;
|
|
3881
|
+
registrationAuthority?: string | undefined;
|
|
3882
|
+
} | undefined;
|
|
3883
|
+
dateAndPlaceOfBirth?: {
|
|
3884
|
+
dateOfBirth: string;
|
|
3885
|
+
placeOfBirth: string;
|
|
3886
|
+
} | undefined;
|
|
3887
|
+
countryOfResidence?: string | undefined;
|
|
3888
|
+
} | undefined;
|
|
3889
|
+
legalPerson?: {
|
|
3890
|
+
name: {
|
|
3891
|
+
nameIdentifier: {
|
|
3892
|
+
legalPersonName: string;
|
|
3893
|
+
legalPersonNameIdentifierType: string;
|
|
3894
|
+
}[];
|
|
3895
|
+
};
|
|
3896
|
+
geographicAddress?: {
|
|
3897
|
+
addressType?: string | undefined;
|
|
3898
|
+
department?: string | undefined;
|
|
3899
|
+
subDepartment?: string | undefined;
|
|
3900
|
+
streetName?: string | undefined;
|
|
3901
|
+
buildingNumber?: string | undefined;
|
|
3902
|
+
buildingName?: string | undefined;
|
|
3903
|
+
floor?: string | undefined;
|
|
3904
|
+
postBox?: string | undefined;
|
|
3905
|
+
room?: string | undefined;
|
|
3906
|
+
postCode?: string | undefined;
|
|
3907
|
+
townName?: string | undefined;
|
|
3908
|
+
townLocationName?: string | undefined;
|
|
3909
|
+
districtName?: string | undefined;
|
|
3910
|
+
countrySubDivision?: string | undefined;
|
|
3911
|
+
addressLine?: string[] | undefined;
|
|
3912
|
+
country?: string | undefined;
|
|
3913
|
+
}[] | undefined;
|
|
3914
|
+
customerNumber?: string | undefined;
|
|
3915
|
+
nationalIdentification?: {
|
|
3916
|
+
nationalIdentifier: string;
|
|
3917
|
+
nationalIdentifierType: string;
|
|
3918
|
+
countryOfIssue?: string | undefined;
|
|
3919
|
+
registrationAuthority?: string | undefined;
|
|
3920
|
+
} | undefined;
|
|
3921
|
+
dateOfRegistration?: string | undefined;
|
|
3922
|
+
countryOfRegistration?: string | undefined;
|
|
3923
|
+
} | undefined;
|
|
3924
|
+
}[];
|
|
3925
|
+
accountNumber?: string[] | undefined;
|
|
3926
|
+
};
|
|
3927
|
+
beneficiary: {
|
|
3928
|
+
beneficiaryPersons: {
|
|
3929
|
+
naturalPerson?: {
|
|
3930
|
+
name: {
|
|
3931
|
+
nameIdentifier: {
|
|
3932
|
+
primaryIdentifier: string;
|
|
3933
|
+
secondaryIdentifier: string;
|
|
3934
|
+
}[];
|
|
3935
|
+
};
|
|
3936
|
+
geographicAddress?: {
|
|
3937
|
+
addressType?: string | undefined;
|
|
3938
|
+
department?: string | undefined;
|
|
3939
|
+
subDepartment?: string | undefined;
|
|
3940
|
+
streetName?: string | undefined;
|
|
3941
|
+
buildingNumber?: string | undefined;
|
|
3942
|
+
buildingName?: string | undefined;
|
|
3943
|
+
floor?: string | undefined;
|
|
3944
|
+
postBox?: string | undefined;
|
|
3945
|
+
room?: string | undefined;
|
|
3946
|
+
postCode?: string | undefined;
|
|
3947
|
+
townName?: string | undefined;
|
|
3948
|
+
townLocationName?: string | undefined;
|
|
3949
|
+
districtName?: string | undefined;
|
|
3950
|
+
countrySubDivision?: string | undefined;
|
|
3951
|
+
addressLine?: string[] | undefined;
|
|
3952
|
+
country?: string | undefined;
|
|
3953
|
+
}[] | undefined;
|
|
3954
|
+
customerIdentification?: string | undefined;
|
|
3955
|
+
nationalIdentification?: {
|
|
3956
|
+
nationalIdentifier: string;
|
|
3957
|
+
nationalIdentifierType: string;
|
|
3958
|
+
countryOfIssue?: string | undefined;
|
|
3959
|
+
registrationAuthority?: string | undefined;
|
|
3960
|
+
} | undefined;
|
|
3961
|
+
dateAndPlaceOfBirth?: {
|
|
3962
|
+
dateOfBirth: string;
|
|
3963
|
+
placeOfBirth: string;
|
|
3964
|
+
} | undefined;
|
|
3965
|
+
countryOfResidence?: string | undefined;
|
|
3966
|
+
} | undefined;
|
|
3967
|
+
legalPerson?: {
|
|
3968
|
+
name: {
|
|
3969
|
+
nameIdentifier: {
|
|
3970
|
+
legalPersonName: string;
|
|
3971
|
+
legalPersonNameIdentifierType: string;
|
|
3972
|
+
}[];
|
|
3973
|
+
};
|
|
3974
|
+
geographicAddress?: {
|
|
3975
|
+
addressType?: string | undefined;
|
|
3976
|
+
department?: string | undefined;
|
|
3977
|
+
subDepartment?: string | undefined;
|
|
3978
|
+
streetName?: string | undefined;
|
|
3979
|
+
buildingNumber?: string | undefined;
|
|
3980
|
+
buildingName?: string | undefined;
|
|
3981
|
+
floor?: string | undefined;
|
|
3982
|
+
postBox?: string | undefined;
|
|
3983
|
+
room?: string | undefined;
|
|
3984
|
+
postCode?: string | undefined;
|
|
3985
|
+
townName?: string | undefined;
|
|
3986
|
+
townLocationName?: string | undefined;
|
|
3987
|
+
districtName?: string | undefined;
|
|
3988
|
+
countrySubDivision?: string | undefined;
|
|
3989
|
+
addressLine?: string[] | undefined;
|
|
3990
|
+
country?: string | undefined;
|
|
3991
|
+
}[] | undefined;
|
|
3992
|
+
customerNumber?: string | undefined;
|
|
3993
|
+
nationalIdentification?: {
|
|
3994
|
+
nationalIdentifier: string;
|
|
3995
|
+
nationalIdentifierType: string;
|
|
3996
|
+
countryOfIssue?: string | undefined;
|
|
3997
|
+
registrationAuthority?: string | undefined;
|
|
3998
|
+
} | undefined;
|
|
3999
|
+
dateOfRegistration?: string | undefined;
|
|
4000
|
+
countryOfRegistration?: string | undefined;
|
|
4001
|
+
} | undefined;
|
|
4002
|
+
}[];
|
|
4003
|
+
accountNumber?: string[] | undefined;
|
|
4004
|
+
};
|
|
4005
|
+
}) | undefined;
|
|
3418
4006
|
} | undefined;
|
|
3419
4007
|
transactionRequest?: {
|
|
3420
4008
|
id: string;
|
|
@@ -3423,7 +4011,6 @@ export type ListApprovalsResponse = {
|
|
|
3423
4011
|
requester: {
|
|
3424
4012
|
userId: string;
|
|
3425
4013
|
tokenId?: string | undefined;
|
|
3426
|
-
appId?: string | undefined;
|
|
3427
4014
|
};
|
|
3428
4015
|
requestBody: {
|
|
3429
4016
|
kind: "Transaction";
|
|
@@ -3482,7 +4069,6 @@ export type ListApprovalsResponse = {
|
|
|
3482
4069
|
requester: {
|
|
3483
4070
|
userId: string;
|
|
3484
4071
|
tokenId?: string | undefined;
|
|
3485
|
-
appId?: string | undefined;
|
|
3486
4072
|
};
|
|
3487
4073
|
requestBody: {
|
|
3488
4074
|
kind: "Hash";
|
|
@@ -4224,8 +4810,9 @@ export type ListApprovalsResponse = {
|
|
|
4224
4810
|
} | {
|
|
4225
4811
|
kind: "TravelRuleTransactionPrescreening";
|
|
4226
4812
|
configuration: {
|
|
4227
|
-
vendor: "
|
|
4813
|
+
vendor: "Notabene";
|
|
4228
4814
|
autoTriggerTimeoutSeconds: number;
|
|
4815
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
4229
4816
|
};
|
|
4230
4817
|
};
|
|
4231
4818
|
action: {
|
|
@@ -4522,8 +5109,9 @@ export type ListPoliciesResponse = {
|
|
|
4522
5109
|
} | {
|
|
4523
5110
|
kind: "TravelRuleTransactionPrescreening";
|
|
4524
5111
|
configuration: {
|
|
4525
|
-
vendor: "
|
|
5112
|
+
vendor: "Notabene";
|
|
4526
5113
|
autoTriggerTimeoutSeconds: number;
|
|
5114
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
4527
5115
|
};
|
|
4528
5116
|
};
|
|
4529
5117
|
action: {
|
|
@@ -4756,8 +5344,9 @@ export type ListPoliciesResponse = {
|
|
|
4756
5344
|
} | {
|
|
4757
5345
|
kind: "TravelRuleTransactionPrescreening";
|
|
4758
5346
|
configuration: {
|
|
4759
|
-
vendor: "
|
|
5347
|
+
vendor: "Notabene";
|
|
4760
5348
|
autoTriggerTimeoutSeconds: number;
|
|
5349
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
4761
5350
|
};
|
|
4762
5351
|
};
|
|
4763
5352
|
action: {
|
|
@@ -4833,6 +5422,24 @@ export type ListPoliciesResponse = {
|
|
|
4833
5422
|
export type ListPoliciesRequest = {
|
|
4834
5423
|
query?: ListPoliciesQuery;
|
|
4835
5424
|
};
|
|
5425
|
+
export type NotabeneNotificationsWebhookBody = {
|
|
5426
|
+
message: "notification.transactionUpdated";
|
|
5427
|
+
payload: {
|
|
5428
|
+
transaction: {
|
|
5429
|
+
id: string;
|
|
5430
|
+
status: "NEW" | "WAITING_FOR_INFORMATION" | "MISSING_BENEFICIARY_DATA" | "CANCELLED" | "INCOMPLETE" | "SENT" | "ACK" | "ACCEPTED" | "DECLINED" | "REJECTED" | "NOT_READY" | "SAVED";
|
|
5431
|
+
transactionRef?: (string | null) | undefined;
|
|
5432
|
+
transactionType: "TRAVELRULE" | "BELOW_THRESHOLD" | "NON_CUSTODIAL" | "UNKNOWN";
|
|
5433
|
+
};
|
|
5434
|
+
};
|
|
5435
|
+
};
|
|
5436
|
+
export type NotabeneNotificationsWebhookParams = {
|
|
5437
|
+
orgId: string;
|
|
5438
|
+
};
|
|
5439
|
+
export type NotabeneNotificationsWebhookResponse = void | undefined;
|
|
5440
|
+
export type NotabeneNotificationsWebhookRequest = NotabeneNotificationsWebhookParams & {
|
|
5441
|
+
body: NotabeneNotificationsWebhookBody;
|
|
5442
|
+
};
|
|
4836
5443
|
export type UpdatePolicyBody = {
|
|
4837
5444
|
name: string;
|
|
4838
5445
|
activityKind: "Permissions:Assign";
|
|
@@ -4967,8 +5574,9 @@ export type UpdatePolicyBody = {
|
|
|
4967
5574
|
} | {
|
|
4968
5575
|
kind: "TravelRuleTransactionPrescreening";
|
|
4969
5576
|
configuration: {
|
|
4970
|
-
vendor: "
|
|
5577
|
+
vendor: "Notabene";
|
|
4971
5578
|
autoTriggerTimeoutSeconds: number;
|
|
5579
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
4972
5580
|
};
|
|
4973
5581
|
};
|
|
4974
5582
|
action: {
|
|
@@ -5186,8 +5794,9 @@ export type UpdatePolicyResponse = {
|
|
|
5186
5794
|
} | {
|
|
5187
5795
|
kind: "TravelRuleTransactionPrescreening";
|
|
5188
5796
|
configuration: {
|
|
5189
|
-
vendor: "
|
|
5797
|
+
vendor: "Notabene";
|
|
5190
5798
|
autoTriggerTimeoutSeconds: number;
|
|
5799
|
+
autoResolveAfterDeliveredTimeoutSeconds?: number | undefined;
|
|
5191
5800
|
};
|
|
5192
5801
|
};
|
|
5193
5802
|
action: {
|