@revibase/core 0.4.0 → 0.4.2
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3454,6 +3454,10 @@ declare const AuthenticationContextSchema: z.ZodObject<{
|
|
|
3454
3454
|
jwk: z.ZodBase64;
|
|
3455
3455
|
jws: z.ZodString;
|
|
3456
3456
|
}, z.core.$strict>;
|
|
3457
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3458
|
+
jwk: z.ZodBase64;
|
|
3459
|
+
jws: z.ZodString;
|
|
3460
|
+
}, z.core.$strip>>;
|
|
3457
3461
|
}, z.core.$strict>;
|
|
3458
3462
|
declare const BaseResponseSchema: z.ZodObject<{
|
|
3459
3463
|
signer: z.ZodString;
|
|
@@ -3526,6 +3530,10 @@ declare const CompleteMessageRequestSchema: z.ZodObject<{
|
|
|
3526
3530
|
jwk: z.ZodBase64;
|
|
3527
3531
|
jws: z.ZodString;
|
|
3528
3532
|
}, z.core.$strict>;
|
|
3533
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3534
|
+
jwk: z.ZodBase64;
|
|
3535
|
+
jws: z.ZodString;
|
|
3536
|
+
}, z.core.$strip>>;
|
|
3529
3537
|
id: z.ZodOptional<z.ZodString>;
|
|
3530
3538
|
client: z.ZodObject<{
|
|
3531
3539
|
clientOrigin: z.ZodURL;
|
|
@@ -3592,6 +3600,10 @@ declare const CompleteTransactionRequestSchema: z.ZodObject<{
|
|
|
3592
3600
|
jwk: z.ZodBase64;
|
|
3593
3601
|
jws: z.ZodString;
|
|
3594
3602
|
}, z.core.$strict>;
|
|
3603
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3604
|
+
jwk: z.ZodBase64;
|
|
3605
|
+
jws: z.ZodString;
|
|
3606
|
+
}, z.core.$strip>>;
|
|
3595
3607
|
slotHash: z.ZodString;
|
|
3596
3608
|
slotNumber: z.ZodString;
|
|
3597
3609
|
estimatedSlotHashExpiry: z.ZodNumber;
|
|
@@ -4140,10 +4152,11 @@ declare function getClientAndDeviceHash(clientOrigin: string, deviceJwk: string,
|
|
|
4140
4152
|
declare function createClientAuthorizationStartRequestChallenge(payload: StartTransactionRequest | StartMessageRequest): Uint8Array<ArrayBuffer>;
|
|
4141
4153
|
declare function createClientAuthorizationCompleteRequestChallenge(payload: CompleteTransactionRequest | CompleteMessageRequest): Uint8Array<ArrayBuffer>;
|
|
4142
4154
|
declare function createMessageChallenge(payload: string, clientOrigin: string, deviceJwk: string, nonce: string): Uint8Array<ArrayBuffer>;
|
|
4143
|
-
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, deviceJwk: string, nonce: string, slotHash?: string, slotNumber?: string): Promise<{
|
|
4155
|
+
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, deviceJwk: string, nonce: string, slotHash?: string, slotNumber?: string, estimatedSlotHashExpiry?: number): Promise<{
|
|
4144
4156
|
slotNumber: string;
|
|
4145
4157
|
slotHash: string;
|
|
4146
4158
|
challenge: Uint8Array<ArrayBuffer>;
|
|
4159
|
+
estimatedSlotHashExpiry: number;
|
|
4147
4160
|
}>;
|
|
4148
4161
|
declare function getSecp256r1MessageHash(authResponse: AuthenticationResponseJSON): Uint8Array<ArrayBuffer>;
|
|
4149
4162
|
declare function bufferToBase64URLString(buffer: Uint8Array<ArrayBuffer>): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3454,6 +3454,10 @@ declare const AuthenticationContextSchema: z.ZodObject<{
|
|
|
3454
3454
|
jwk: z.ZodBase64;
|
|
3455
3455
|
jws: z.ZodString;
|
|
3456
3456
|
}, z.core.$strict>;
|
|
3457
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3458
|
+
jwk: z.ZodBase64;
|
|
3459
|
+
jws: z.ZodString;
|
|
3460
|
+
}, z.core.$strip>>;
|
|
3457
3461
|
}, z.core.$strict>;
|
|
3458
3462
|
declare const BaseResponseSchema: z.ZodObject<{
|
|
3459
3463
|
signer: z.ZodString;
|
|
@@ -3526,6 +3530,10 @@ declare const CompleteMessageRequestSchema: z.ZodObject<{
|
|
|
3526
3530
|
jwk: z.ZodBase64;
|
|
3527
3531
|
jws: z.ZodString;
|
|
3528
3532
|
}, z.core.$strict>;
|
|
3533
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3534
|
+
jwk: z.ZodBase64;
|
|
3535
|
+
jws: z.ZodString;
|
|
3536
|
+
}, z.core.$strip>>;
|
|
3529
3537
|
id: z.ZodOptional<z.ZodString>;
|
|
3530
3538
|
client: z.ZodObject<{
|
|
3531
3539
|
clientOrigin: z.ZodURL;
|
|
@@ -3592,6 +3600,10 @@ declare const CompleteTransactionRequestSchema: z.ZodObject<{
|
|
|
3592
3600
|
jwk: z.ZodBase64;
|
|
3593
3601
|
jws: z.ZodString;
|
|
3594
3602
|
}, z.core.$strict>;
|
|
3603
|
+
authProvider: z.ZodOptional<z.ZodObject<{
|
|
3604
|
+
jwk: z.ZodBase64;
|
|
3605
|
+
jws: z.ZodString;
|
|
3606
|
+
}, z.core.$strip>>;
|
|
3595
3607
|
slotHash: z.ZodString;
|
|
3596
3608
|
slotNumber: z.ZodString;
|
|
3597
3609
|
estimatedSlotHashExpiry: z.ZodNumber;
|
|
@@ -4140,10 +4152,11 @@ declare function getClientAndDeviceHash(clientOrigin: string, deviceJwk: string,
|
|
|
4140
4152
|
declare function createClientAuthorizationStartRequestChallenge(payload: StartTransactionRequest | StartMessageRequest): Uint8Array<ArrayBuffer>;
|
|
4141
4153
|
declare function createClientAuthorizationCompleteRequestChallenge(payload: CompleteTransactionRequest | CompleteMessageRequest): Uint8Array<ArrayBuffer>;
|
|
4142
4154
|
declare function createMessageChallenge(payload: string, clientOrigin: string, deviceJwk: string, nonce: string): Uint8Array<ArrayBuffer>;
|
|
4143
|
-
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, deviceJwk: string, nonce: string, slotHash?: string, slotNumber?: string): Promise<{
|
|
4155
|
+
declare function createTransactionChallenge(payload: TransactionPayloadWithBase64MessageBytes | TransactionPayload, clientOrigin: string, deviceJwk: string, nonce: string, slotHash?: string, slotNumber?: string, estimatedSlotHashExpiry?: number): Promise<{
|
|
4144
4156
|
slotNumber: string;
|
|
4145
4157
|
slotHash: string;
|
|
4146
4158
|
challenge: Uint8Array<ArrayBuffer>;
|
|
4159
|
+
estimatedSlotHashExpiry: number;
|
|
4147
4160
|
}>;
|
|
4148
4161
|
declare function getSecp256r1MessageHash(authResponse: AuthenticationResponseJSON): Uint8Array<ArrayBuffer>;
|
|
4149
4162
|
declare function bufferToBase64URLString(buffer: Uint8Array<ArrayBuffer>): string;
|