@revibase/core 0.0.24 → 0.0.26
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -24
- package/dist/index.d.ts +14 -24
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2944,16 +2944,18 @@ declare const KeyType: {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
type KeyType = (typeof KeyType)[keyof typeof KeyType];
|
|
2946
2946
|
|
|
2947
|
-
type TransactionAuthenticationResponse =
|
|
2948
|
-
|
|
2949
|
-
|
|
2947
|
+
type TransactionAuthenticationResponse = TransactionDetails$1 & AuthenticationContext & BaseResponse;
|
|
2948
|
+
type MessageAuthenticationResponse = AuthenticationContext & BaseResponse;
|
|
2949
|
+
type TransactionAuthDetails = TransactionDetails$1 & AuthenticationContext;
|
|
2950
|
+
type TransactionDetails$1 = {
|
|
2951
|
+
transactionPayload: TransactionPayloadWithBase64MessageBytes;
|
|
2952
|
+
slotHash: string;
|
|
2950
2953
|
slotNumber: string;
|
|
2951
|
-
|
|
2954
|
+
originIndex: number;
|
|
2955
|
+
crossOrigin: boolean;
|
|
2952
2956
|
};
|
|
2953
|
-
type
|
|
2957
|
+
type AuthenticationContext = {
|
|
2954
2958
|
authResponse: AuthenticationResponseJSON;
|
|
2955
|
-
signer: string;
|
|
2956
|
-
userAddressTreeIndex?: number;
|
|
2957
2959
|
nonce: string;
|
|
2958
2960
|
clientSignature: {
|
|
2959
2961
|
clientOrigin: string;
|
|
@@ -2963,23 +2965,11 @@ type MessageAuthenticationResponse = {
|
|
|
2963
2965
|
publicKey: string;
|
|
2964
2966
|
signature: string;
|
|
2965
2967
|
};
|
|
2966
|
-
additionalInfo?: any;
|
|
2967
2968
|
};
|
|
2968
|
-
type
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
nonce: string;
|
|
2973
|
-
clientSignature: {
|
|
2974
|
-
clientOrigin: string;
|
|
2975
|
-
signature: string;
|
|
2976
|
-
};
|
|
2977
|
-
deviceSignature: {
|
|
2978
|
-
publicKey: string;
|
|
2979
|
-
signature: string;
|
|
2980
|
-
};
|
|
2981
|
-
originIndex: number;
|
|
2982
|
-
crossOrigin: boolean;
|
|
2969
|
+
type BaseResponse = {
|
|
2970
|
+
signer: string;
|
|
2971
|
+
userAddressTreeIndex?: number;
|
|
2972
|
+
additionalInfo?: unknown;
|
|
2983
2973
|
};
|
|
2984
2974
|
type TransactionPayloadWithBase64MessageBytes = {
|
|
2985
2975
|
transactionActionType: TransactionActionType;
|
|
@@ -3488,7 +3478,7 @@ declare function getClientAndDeviceHash(clientOrigin: string, devicePublicKey: s
|
|
|
3488
3478
|
declare function createClientAuthorizationStartRequestChallenge(payload: ClientAuthorizationStartRequest): Uint8Array<ArrayBufferLike>;
|
|
3489
3479
|
declare function createClientAuthorizationCompleteRequestChallenge(payload: ClientAuthorizationCompleteRequest): Uint8Array<ArrayBufferLike>;
|
|
3490
3480
|
declare function createMessageChallenge(payload: string, clientOrigin: string, devicePublicKey: string, nonce: string): Uint8Array<ArrayBufferLike>;
|
|
3491
|
-
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, devicePublicKey: string, nonce: string): Promise<{
|
|
3481
|
+
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, devicePublicKey: string, nonce: string, slotHash?: string, slotNumber?: string): Promise<{
|
|
3492
3482
|
slotNumber: string;
|
|
3493
3483
|
slotHash: string;
|
|
3494
3484
|
challenge: Uint8Array<ArrayBufferLike>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2944,16 +2944,18 @@ declare const KeyType: {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
type KeyType = (typeof KeyType)[keyof typeof KeyType];
|
|
2946
2946
|
|
|
2947
|
-
type TransactionAuthenticationResponse =
|
|
2948
|
-
|
|
2949
|
-
|
|
2947
|
+
type TransactionAuthenticationResponse = TransactionDetails$1 & AuthenticationContext & BaseResponse;
|
|
2948
|
+
type MessageAuthenticationResponse = AuthenticationContext & BaseResponse;
|
|
2949
|
+
type TransactionAuthDetails = TransactionDetails$1 & AuthenticationContext;
|
|
2950
|
+
type TransactionDetails$1 = {
|
|
2951
|
+
transactionPayload: TransactionPayloadWithBase64MessageBytes;
|
|
2952
|
+
slotHash: string;
|
|
2950
2953
|
slotNumber: string;
|
|
2951
|
-
|
|
2954
|
+
originIndex: number;
|
|
2955
|
+
crossOrigin: boolean;
|
|
2952
2956
|
};
|
|
2953
|
-
type
|
|
2957
|
+
type AuthenticationContext = {
|
|
2954
2958
|
authResponse: AuthenticationResponseJSON;
|
|
2955
|
-
signer: string;
|
|
2956
|
-
userAddressTreeIndex?: number;
|
|
2957
2959
|
nonce: string;
|
|
2958
2960
|
clientSignature: {
|
|
2959
2961
|
clientOrigin: string;
|
|
@@ -2963,23 +2965,11 @@ type MessageAuthenticationResponse = {
|
|
|
2963
2965
|
publicKey: string;
|
|
2964
2966
|
signature: string;
|
|
2965
2967
|
};
|
|
2966
|
-
additionalInfo?: any;
|
|
2967
2968
|
};
|
|
2968
|
-
type
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
nonce: string;
|
|
2973
|
-
clientSignature: {
|
|
2974
|
-
clientOrigin: string;
|
|
2975
|
-
signature: string;
|
|
2976
|
-
};
|
|
2977
|
-
deviceSignature: {
|
|
2978
|
-
publicKey: string;
|
|
2979
|
-
signature: string;
|
|
2980
|
-
};
|
|
2981
|
-
originIndex: number;
|
|
2982
|
-
crossOrigin: boolean;
|
|
2969
|
+
type BaseResponse = {
|
|
2970
|
+
signer: string;
|
|
2971
|
+
userAddressTreeIndex?: number;
|
|
2972
|
+
additionalInfo?: unknown;
|
|
2983
2973
|
};
|
|
2984
2974
|
type TransactionPayloadWithBase64MessageBytes = {
|
|
2985
2975
|
transactionActionType: TransactionActionType;
|
|
@@ -3488,7 +3478,7 @@ declare function getClientAndDeviceHash(clientOrigin: string, devicePublicKey: s
|
|
|
3488
3478
|
declare function createClientAuthorizationStartRequestChallenge(payload: ClientAuthorizationStartRequest): Uint8Array<ArrayBufferLike>;
|
|
3489
3479
|
declare function createClientAuthorizationCompleteRequestChallenge(payload: ClientAuthorizationCompleteRequest): Uint8Array<ArrayBufferLike>;
|
|
3490
3480
|
declare function createMessageChallenge(payload: string, clientOrigin: string, devicePublicKey: string, nonce: string): Uint8Array<ArrayBufferLike>;
|
|
3491
|
-
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, devicePublicKey: string, nonce: string): Promise<{
|
|
3481
|
+
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, devicePublicKey: string, nonce: string, slotHash?: string, slotNumber?: string): Promise<{
|
|
3492
3482
|
slotNumber: string;
|
|
3493
3483
|
slotHash: string;
|
|
3494
3484
|
challenge: Uint8Array<ArrayBufferLike>;
|