@rhinestone/1auth 0.7.2 → 0.7.4
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/{client-Ewr_7x-d.d.ts → client-CuASptX3.d.ts} +2 -1
- package/dist/{client-DvtGr2xn.d.mts → client-D4HVy1KF.d.mts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{provider-BRHZoB8U.d.ts → provider-6JoziYDq.d.ts} +1 -1
- package/dist/{provider-NYl0jlHw.d.mts → provider-CAQT7Gqx.d.mts} +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/wagmi.d.mts +2 -2
- package/dist/wagmi.d.ts +2 -2
- package/package.json +1 -1
|
@@ -508,7 +508,8 @@ declare class OneAuthClient {
|
|
|
508
508
|
* forward to the execute endpoint.
|
|
509
509
|
*
|
|
510
510
|
* @param dialog - The `<dialog>` element wrapping the signing iframe.
|
|
511
|
-
* @param
|
|
511
|
+
* @param iframe - The signing iframe; used to authenticate the source of
|
|
512
|
+
* `PASSKEY_CLOSE` so a sibling same-origin dialog can't forge a rejection.
|
|
512
513
|
* @param cleanup - Idempotent teardown that closes and removes the dialog.
|
|
513
514
|
* @returns A `SigningResult` extended with an optional `signedHash` field
|
|
514
515
|
* populated when the dialog performs message signing.
|
|
@@ -508,7 +508,8 @@ declare class OneAuthClient {
|
|
|
508
508
|
* forward to the execute endpoint.
|
|
509
509
|
*
|
|
510
510
|
* @param dialog - The `<dialog>` element wrapping the signing iframe.
|
|
511
|
-
* @param
|
|
511
|
+
* @param iframe - The signing iframe; used to authenticate the source of
|
|
512
|
+
* `PASSKEY_CLOSE` so a sibling same-origin dialog can't forge a rejection.
|
|
512
513
|
* @param cleanup - Idempotent teardown that closes and removes the dialog.
|
|
513
514
|
* @returns A `SigningResult` extended with an optional `signedHash` field
|
|
514
515
|
* populated when the dialog performs message signing.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as OneAuthClient } from './client-
|
|
1
|
+
import { O as OneAuthClient } from './client-D4HVy1KF.mjs';
|
|
2
2
|
import { Abi, Address, LocalAccount, WalletClient, Hash } from 'viem';
|
|
3
3
|
import { Permission } from '@rhinestone/sdk';
|
|
4
4
|
export { Permission } from '@rhinestone/sdk';
|
|
5
5
|
import { h as IntentCall, i as SendIntentResult } from './types-C0jKNT_t.mjs';
|
|
6
6
|
export { a7 as AssetBalance, a8 as AssetBalanceBucket, a9 as AssetsResponse, u as AuthFlow, A as AuthResult, v as AuthWithModalOptions, z as AuthenticateOptions, B as AuthenticateResult, R as BalanceRequirement, ap as BatchIntentItem, as as BatchIntentItemResult, ad as CheckConsentOptions, ae as CheckConsentResult, a0 as CloseOnStatus, y as ConnectResult, ac as ConsentData, ab as ConsentField, w as CreateAccountWithModalOptions, C as CreateCrossChainPermissionInput, r as CreateSigningRequestResponse, k as CrossChainPermit, l as CrossChainSettlementLayer, M as EIP712Domain, O as EIP712TypeField, N as EIP712Types, E as EmbedOptions, a2 as ExecuteIntentResponse, a6 as GetAssetsOptions, an as GrantPermissionContractMetadata, ah as GrantPermissionsOptions, ai as GrantPermissionsResult, a4 as IntentHistoryItem, a3 as IntentHistoryOptions, a5 as IntentHistoryResult, Z as IntentQuote, _ as IntentStatus, X as IntentTokenRequest, aj as ListSessionGrantsOptions, ak as ListSessionGrantsResult, L as LoginWithModalOptions, ax as OneAuthTelemetryAttributeValue, ay as OneAuthTelemetryAttributes, az as OneAuthTelemetryConfig, aA as OneAuthTelemetryEvent, aB as OneAuthTelemetryEventName, aC as OneAuthTelemetryFlow, aD as OneAuthTelemetryTraceContext, $ as OrchestratorStatus, t as PasskeyCredential, P as PasskeyProviderConfig, au as PrepareBatchIntentResponse, a1 as PrepareIntentResponse, at as PreparedBatchIntent, af as RequestConsentOptions, ag as RequestConsentResult, aq as SendBatchIntentOptions, ar as SendBatchIntentResult, Y as SendIntentOptions, am as SessionGrantChain, al as SessionGrantRecord, F as SignMessageOptions, G as SignMessageResult, J as SignTypedDataOptions, K as SignTypedDataResult, x as SignerType, p as SigningError, q as SigningErrorCode, m as SigningRequestOptions, s as SigningRequestStatus, n as SigningResult, D as SigningResultBase, o as SigningSuccess, ao as SmartSessionPolicy, av as SponsorshipCallbackConfig, S as SponsorshipConfig, aw as SponsorshipUrlConfig, aa as ThemeConfig, T as TransactionAction, V as TransactionDetails, Q as TransactionFees, U as UserPasskeysResponse, W as WebAuthnSignature, j as createCrossChainPermission } from './types-C0jKNT_t.mjs';
|
|
7
|
-
export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-
|
|
7
|
+
export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-CAQT7Gqx.mjs';
|
|
8
8
|
import { P as PasskeyWalletClientConfig, S as SendCallsParams } from './verify-aWdi5O2z.mjs';
|
|
9
9
|
export { C as ChainFilterOptions, E as ETHEREUM_MESSAGE_PREFIX, p as TokenConfig, T as TransactionCall, e as encodeWebAuthnSignature, b as getAllSupportedChainsAndTokens, f as getChainById, i as getChainExplorerUrl, j as getChainRpcUrl, g as getSupportedChainIds, a as getSupportedChains, d as getSupportedTokenSymbols, c as getSupportedTokens, l as getTokenAddress, n as getTokenDecimals, m as getTokenSymbol, h as hashCalls, q as hashMessage, k as isTestnet, o as isTokenAddressSupported, r as resolveTokenAddress, v as verifyMessageHash } from './verify-aWdi5O2z.mjs';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as OneAuthClient } from './client-
|
|
1
|
+
import { O as OneAuthClient } from './client-CuASptX3.js';
|
|
2
2
|
import { Abi, Address, LocalAccount, WalletClient, Hash } from 'viem';
|
|
3
3
|
import { Permission } from '@rhinestone/sdk';
|
|
4
4
|
export { Permission } from '@rhinestone/sdk';
|
|
5
5
|
import { h as IntentCall, i as SendIntentResult } from './types-C0jKNT_t.js';
|
|
6
6
|
export { a7 as AssetBalance, a8 as AssetBalanceBucket, a9 as AssetsResponse, u as AuthFlow, A as AuthResult, v as AuthWithModalOptions, z as AuthenticateOptions, B as AuthenticateResult, R as BalanceRequirement, ap as BatchIntentItem, as as BatchIntentItemResult, ad as CheckConsentOptions, ae as CheckConsentResult, a0 as CloseOnStatus, y as ConnectResult, ac as ConsentData, ab as ConsentField, w as CreateAccountWithModalOptions, C as CreateCrossChainPermissionInput, r as CreateSigningRequestResponse, k as CrossChainPermit, l as CrossChainSettlementLayer, M as EIP712Domain, O as EIP712TypeField, N as EIP712Types, E as EmbedOptions, a2 as ExecuteIntentResponse, a6 as GetAssetsOptions, an as GrantPermissionContractMetadata, ah as GrantPermissionsOptions, ai as GrantPermissionsResult, a4 as IntentHistoryItem, a3 as IntentHistoryOptions, a5 as IntentHistoryResult, Z as IntentQuote, _ as IntentStatus, X as IntentTokenRequest, aj as ListSessionGrantsOptions, ak as ListSessionGrantsResult, L as LoginWithModalOptions, ax as OneAuthTelemetryAttributeValue, ay as OneAuthTelemetryAttributes, az as OneAuthTelemetryConfig, aA as OneAuthTelemetryEvent, aB as OneAuthTelemetryEventName, aC as OneAuthTelemetryFlow, aD as OneAuthTelemetryTraceContext, $ as OrchestratorStatus, t as PasskeyCredential, P as PasskeyProviderConfig, au as PrepareBatchIntentResponse, a1 as PrepareIntentResponse, at as PreparedBatchIntent, af as RequestConsentOptions, ag as RequestConsentResult, aq as SendBatchIntentOptions, ar as SendBatchIntentResult, Y as SendIntentOptions, am as SessionGrantChain, al as SessionGrantRecord, F as SignMessageOptions, G as SignMessageResult, J as SignTypedDataOptions, K as SignTypedDataResult, x as SignerType, p as SigningError, q as SigningErrorCode, m as SigningRequestOptions, s as SigningRequestStatus, n as SigningResult, D as SigningResultBase, o as SigningSuccess, ao as SmartSessionPolicy, av as SponsorshipCallbackConfig, S as SponsorshipConfig, aw as SponsorshipUrlConfig, aa as ThemeConfig, T as TransactionAction, V as TransactionDetails, Q as TransactionFees, U as UserPasskeysResponse, W as WebAuthnSignature, j as createCrossChainPermission } from './types-C0jKNT_t.js';
|
|
7
|
-
export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-
|
|
7
|
+
export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-6JoziYDq.js';
|
|
8
8
|
import { P as PasskeyWalletClientConfig, S as SendCallsParams } from './verify-CnOwPq78.js';
|
|
9
9
|
export { C as ChainFilterOptions, E as ETHEREUM_MESSAGE_PREFIX, p as TokenConfig, T as TransactionCall, e as encodeWebAuthnSignature, b as getAllSupportedChainsAndTokens, f as getChainById, i as getChainExplorerUrl, j as getChainRpcUrl, g as getSupportedChainIds, a as getSupportedChains, d as getSupportedTokenSymbols, c as getSupportedTokens, l as getTokenAddress, n as getTokenDecimals, m as getTokenSymbol, h as hashCalls, q as hashMessage, k as isTestnet, o as isTokenAddressSupported, r as resolveTokenAddress, v as verifyMessageHash } from './verify-CnOwPq78.js';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -3199,7 +3199,7 @@ var OneAuthClient = class {
|
|
|
3199
3199
|
* @param cleanup - Idempotent teardown function that closes and removes the dialog.
|
|
3200
3200
|
* @returns A `SigningResult` discriminated union.
|
|
3201
3201
|
*/
|
|
3202
|
-
waitForIntentSigningResponse(requestId, dialog,
|
|
3202
|
+
waitForIntentSigningResponse(requestId, dialog, iframe, cleanup) {
|
|
3203
3203
|
const dialogOrigin = this.getDialogOrigin();
|
|
3204
3204
|
return new Promise((resolve) => {
|
|
3205
3205
|
const handleMessage = (event) => {
|
|
@@ -3225,7 +3225,7 @@ var OneAuthClient = class {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
});
|
|
3227
3227
|
}
|
|
3228
|
-
} else if (message?.type === "PASSKEY_CLOSE") {
|
|
3228
|
+
} else if (message?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
3229
3229
|
window.removeEventListener("message", handleMessage);
|
|
3230
3230
|
cleanup();
|
|
3231
3231
|
resolve({
|
|
@@ -3256,12 +3256,13 @@ var OneAuthClient = class {
|
|
|
3256
3256
|
* forward to the execute endpoint.
|
|
3257
3257
|
*
|
|
3258
3258
|
* @param dialog - The `<dialog>` element wrapping the signing iframe.
|
|
3259
|
-
* @param
|
|
3259
|
+
* @param iframe - The signing iframe; used to authenticate the source of
|
|
3260
|
+
* `PASSKEY_CLOSE` so a sibling same-origin dialog can't forge a rejection.
|
|
3260
3261
|
* @param cleanup - Idempotent teardown that closes and removes the dialog.
|
|
3261
3262
|
* @returns A `SigningResult` extended with an optional `signedHash` field
|
|
3262
3263
|
* populated when the dialog performs message signing.
|
|
3263
3264
|
*/
|
|
3264
|
-
waitForSigningResponse(dialog,
|
|
3265
|
+
waitForSigningResponse(dialog, iframe, cleanup) {
|
|
3265
3266
|
const dialogOrigin = this.getDialogOrigin();
|
|
3266
3267
|
return new Promise((resolve) => {
|
|
3267
3268
|
const handleMessage = (event) => {
|
|
@@ -3292,7 +3293,7 @@ var OneAuthClient = class {
|
|
|
3292
3293
|
}
|
|
3293
3294
|
});
|
|
3294
3295
|
}
|
|
3295
|
-
} else if (message?.type === "PASSKEY_CLOSE") {
|
|
3296
|
+
} else if (message?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
3296
3297
|
window.removeEventListener("message", handleMessage);
|
|
3297
3298
|
cleanup();
|
|
3298
3299
|
resolve({
|
|
@@ -3375,7 +3376,7 @@ var OneAuthClient = class {
|
|
|
3375
3376
|
}
|
|
3376
3377
|
});
|
|
3377
3378
|
}
|
|
3378
|
-
} else if (message?.type === "PASSKEY_CLOSE") {
|
|
3379
|
+
} else if (message?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
3379
3380
|
window.removeEventListener("message", handleMessage);
|
|
3380
3381
|
cleanup();
|
|
3381
3382
|
resolve({
|
|
@@ -3625,7 +3626,7 @@ var OneAuthClient = class {
|
|
|
3625
3626
|
);
|
|
3626
3627
|
}
|
|
3627
3628
|
});
|
|
3628
|
-
} else if (event.data?.type === "PASSKEY_CLOSE") {
|
|
3629
|
+
} else if (event.data?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
3629
3630
|
teardown();
|
|
3630
3631
|
cleanup();
|
|
3631
3632
|
resolve({ ready: false });
|
|
@@ -4648,7 +4649,7 @@ var OneAuthClient = class {
|
|
|
4648
4649
|
blindSigning
|
|
4649
4650
|
}, dialogOrigin);
|
|
4650
4651
|
resolve(true);
|
|
4651
|
-
} else if (event.data?.type === "PASSKEY_CLOSE") {
|
|
4652
|
+
} else if (event.data?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
4652
4653
|
teardown();
|
|
4653
4654
|
cleanup();
|
|
4654
4655
|
resolve(false);
|
|
@@ -5291,7 +5292,7 @@ var OneAuthClient = class {
|
|
|
5291
5292
|
message: "Permission grant failed"
|
|
5292
5293
|
}
|
|
5293
5294
|
});
|
|
5294
|
-
} else if (data?.type === "PASSKEY_CLOSE") {
|
|
5295
|
+
} else if (data?.type === "PASSKEY_CLOSE" && event.source === iframe.contentWindow) {
|
|
5295
5296
|
teardown();
|
|
5296
5297
|
cleanup();
|
|
5297
5298
|
resolve({
|