@notabene/javascript-sdk 2.11.0-next.2 → 2.12.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/cjs/notabene.cjs +1 -1
- package/dist/cjs/notabene.d.ts +46 -9
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +46 -9
- package/dist/esm/notabene.js +191 -188
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +46 -9
- package/dist/notabene.js +191 -188
- package/package.json +1 -1
- package/src/notabene.ts +6 -0
- package/src/types.ts +44 -12
- package/src/utils/connections.ts +2 -0
package/dist/esm/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.
|
|
13
|
+
"version": "2.12.0",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/dist/notabene.d.ts
CHANGED
|
@@ -223,6 +223,19 @@ export declare enum CMType {
|
|
|
223
223
|
INFO = "info"
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Status of a code verification
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
230
|
+
export declare enum CodeVerificationStatus {
|
|
231
|
+
PENDING = "pending",
|
|
232
|
+
APPROVED = "approved",
|
|
233
|
+
FAILED = "failed",
|
|
234
|
+
EXPIRED = "expired",
|
|
235
|
+
MAX_ATTEMPTS_REACHED = "max_attempts_reached",
|
|
236
|
+
UNREACHABLE = "unreachable"
|
|
237
|
+
}
|
|
238
|
+
|
|
226
239
|
/**
|
|
227
240
|
* Represents a completed component message
|
|
228
241
|
* @typeParam T - The overall Value type being returned
|
|
@@ -312,6 +325,8 @@ export declare interface ConnectionData<T extends ComponentRequest> {
|
|
|
312
325
|
readonly authToken?: string;
|
|
313
326
|
readonly txOptions?: TransactionOptions;
|
|
314
327
|
readonly result?: TransactionResponse<T>;
|
|
328
|
+
readonly phoneNumber?: string;
|
|
329
|
+
readonly email?: string;
|
|
315
330
|
}
|
|
316
331
|
|
|
317
332
|
/**
|
|
@@ -465,6 +480,7 @@ export declare interface Counterparty {
|
|
|
465
480
|
*/
|
|
466
481
|
export declare type CounterpartyAssistConfig = boolean | {
|
|
467
482
|
counterpartyTypes: PersonType[];
|
|
483
|
+
identityVerification?: IdentityVerificationConfig;
|
|
468
484
|
};
|
|
469
485
|
|
|
470
486
|
/**
|
|
@@ -507,7 +523,7 @@ export declare function decodeFragmentToObject(fragment: string): Record<string,
|
|
|
507
523
|
* An object representing a deposit transaction
|
|
508
524
|
* @public
|
|
509
525
|
*/
|
|
510
|
-
export declare interface Deposit extends OriginatorFields,
|
|
526
|
+
export declare interface Deposit extends OriginatorFields, Transaction, Refreshable {
|
|
511
527
|
}
|
|
512
528
|
|
|
513
529
|
/**
|
|
@@ -537,14 +553,6 @@ export declare interface DepositRequestOptions {
|
|
|
537
553
|
showQrCode?: boolean;
|
|
538
554
|
}
|
|
539
555
|
|
|
540
|
-
/**
|
|
541
|
-
* Extended transaction interface for deposits
|
|
542
|
-
* @public
|
|
543
|
-
*/
|
|
544
|
-
declare interface DepositTransaction extends Transaction {
|
|
545
|
-
transactionId?: string;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
556
|
/**
|
|
549
557
|
* The destination of a transaction either a blockchain address, a CAIP-19 address, or a travel address.
|
|
550
558
|
* @public
|
|
@@ -750,6 +758,26 @@ export declare enum HMType {
|
|
|
750
758
|
*/
|
|
751
759
|
export declare type HostMessage<T, O> = UpdateValue<T, O>;
|
|
752
760
|
|
|
761
|
+
/**
|
|
762
|
+
* Configuration options for identity verification
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
765
|
+
declare type IdentityVerificationConfig = {
|
|
766
|
+
/** The required verification method. If not specified, none will be used */
|
|
767
|
+
requiredMethod?: IdentityVerificationMethod;
|
|
768
|
+
/** OAuth provider(s) to use for authentication. Can be a single provider or array of providers */
|
|
769
|
+
oAuth?: OAuthProvider[] | OAuthProvider;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Available methods for identity verification
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
export declare enum IdentityVerificationMethod {
|
|
777
|
+
SMS = "sms",
|
|
778
|
+
EMAIL = "email"
|
|
779
|
+
}
|
|
780
|
+
|
|
753
781
|
/**
|
|
754
782
|
* Represents an info component message
|
|
755
783
|
* @param message - Info message
|
|
@@ -1245,6 +1273,14 @@ export declare interface NotabeneConfig {
|
|
|
1245
1273
|
locale?: string;
|
|
1246
1274
|
}
|
|
1247
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Supported OAuth providers for authentication
|
|
1278
|
+
* @public
|
|
1279
|
+
*/
|
|
1280
|
+
export declare enum OAuthProvider {
|
|
1281
|
+
COINBASE = "coinbase"
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1248
1284
|
/**
|
|
1249
1285
|
* Originating VASP
|
|
1250
1286
|
* Represents the VASP which initiates the VA transfer
|
|
@@ -1625,6 +1661,7 @@ export declare interface ThresholdOptions {
|
|
|
1625
1661
|
* @public
|
|
1626
1662
|
*/
|
|
1627
1663
|
export declare interface Transaction extends ComponentRequest {
|
|
1664
|
+
transactionId?: string;
|
|
1628
1665
|
agent: Agent;
|
|
1629
1666
|
counterparty: Counterparty;
|
|
1630
1667
|
asset: TransactionAsset;
|