@block-auth.io/core 0.9.1 → 0.11.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/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as _wagmi_core from '@wagmi/core';
2
2
  import * as viem from 'viem';
3
3
  import * as nanostores from 'nanostores';
4
4
  import { PublicClientApplication, AuthenticationResult } from '@azure/msal-browser';
5
+ import { CountryCode } from 'libphonenumber-js/min';
5
6
 
6
7
  interface DeletionServiceDeps {
7
8
  provider: {
@@ -136,9 +137,11 @@ declare class WsClient {
136
137
  * requestSignin -> user:txns:create -> sign) - this avoids that.
137
138
  * No-op if there is no open connection yet (connect() will pick up a
138
139
  * ticket on its own once one exists).
139
- * @returns Promise<void>
140
+ * @returns 'renewed' when a ticket was sent, 'refused' when the API answered
141
+ * 401 (no session behind the cookie), 'unavailable' otherwise (not
142
+ * connected yet, or a transient failure).
140
143
  */
141
- refreshAuth(): Promise<void>;
144
+ refreshAuth(): Promise<'renewed' | 'refused' | 'unavailable'>;
142
145
  /**
143
146
  * Allow you to subscribe to an event, and
144
147
  * verify if the event is already subscribed
@@ -615,6 +618,7 @@ interface UiState {
615
618
  isSigned: boolean;
616
619
  isSigningLoader: boolean;
617
620
  isAcceptingTxn: boolean;
621
+ acceptTxnError: string | null;
618
622
  waitingForSuccessLogInSince: number;
619
623
  isOtpRequired: boolean;
620
624
  isOnDeletion: boolean;
@@ -633,6 +637,7 @@ declare const setIsSigning: (v: boolean) => void;
633
637
  declare const setIsSigned: (v: boolean) => void;
634
638
  declare const setIsSigningLoader: (v: boolean) => void;
635
639
  declare const setIsAcceptingTxn: (v: boolean) => void;
640
+ declare const setAcceptTxnError: (v: string | null) => void;
636
641
  declare const setWaitingForSuccessLogInSince: (v: number) => void;
637
642
  declare const setIsOtpRequired: (v: boolean) => void;
638
643
  declare const setIsOnDeletion: (v: boolean) => void;
@@ -1192,7 +1197,10 @@ declare function createBlockAuthClient(config: BlockAuthClientConfig): {
1192
1197
  accept: (opts: {
1193
1198
  lifetime: number;
1194
1199
  userParams?: Record<string, string>;
1200
+ grantedParams?: string[];
1201
+ revokedParams?: string[];
1195
1202
  }) => void;
1203
+ dataRequest: (txnId: number | string) => Promise<TxnDataRequest | null>;
1196
1204
  report: (slug: string) => void;
1197
1205
  };
1198
1206
  restore: () => Promise<RestoreResult>;
@@ -1208,6 +1216,361 @@ declare function createBlockAuthClient(config: BlockAuthClientConfig): {
1208
1216
  };
1209
1217
  type BlockAuthClient = ReturnType<typeof createBlockAuthClient>;
1210
1218
 
1219
+ type TxnDataMode = 'required' | 'optional';
1220
+ type TxnDataStatus = 'shared' | 'granted' | 'consent' | 'missing';
1221
+ interface TxnDataParam {
1222
+ slug: string;
1223
+ mode: TxnDataMode;
1224
+ status: TxnDataStatus;
1225
+ value: string | null;
1226
+ }
1227
+ interface TxnDataRequest {
1228
+ txnId: number | string;
1229
+ params: TxnDataParam[];
1230
+ }
1231
+
1232
+ declare const TEXTS: {
1233
+ readonly edit: {
1234
+ readonly es: "Editar";
1235
+ readonly en: "Edit";
1236
+ };
1237
+ readonly searchEngine: {
1238
+ readonly es: "Buscador";
1239
+ readonly en: "Search engine";
1240
+ };
1241
+ readonly webTypes: {
1242
+ readonly es: "Tipos de web";
1243
+ readonly en: "Web types";
1244
+ };
1245
+ readonly columns: {
1246
+ readonly es: "Columnas";
1247
+ readonly en: "Columns";
1248
+ };
1249
+ readonly order: {
1250
+ readonly es: "Orden";
1251
+ readonly en: "Order";
1252
+ };
1253
+ readonly activate: {
1254
+ readonly es: "Activar";
1255
+ readonly en: "Activate";
1256
+ };
1257
+ readonly providerName: {
1258
+ readonly es: "Nombre del provider";
1259
+ readonly en: "Provider name";
1260
+ };
1261
+ readonly connectWith: {
1262
+ readonly es: "Conectar con";
1263
+ readonly en: "Connect with";
1264
+ };
1265
+ readonly search: {
1266
+ readonly es: "Buscar ...";
1267
+ readonly en: "Search ...";
1268
+ };
1269
+ readonly webTypeAll: {
1270
+ readonly es: "Todos";
1271
+ readonly en: "All";
1272
+ };
1273
+ readonly login: {
1274
+ readonly es: "Iniciar sesión";
1275
+ readonly en: "Log In";
1276
+ };
1277
+ readonly lastStep: {
1278
+ readonly es: "Completa el último paso";
1279
+ readonly en: "Complete the last step";
1280
+ };
1281
+ readonly footerFirst: {
1282
+ readonly es: "¿Esperando un registro aburrido?";
1283
+ readonly en: "Expecting a boring signup?";
1284
+ };
1285
+ readonly footerSecond: {
1286
+ readonly es: "Di adiós a las contraseñas";
1287
+ readonly en: "Say goodbye to passwords";
1288
+ };
1289
+ readonly permissionsRequired: {
1290
+ readonly es: "Permisos requeridos";
1291
+ readonly en: "Permissions required";
1292
+ };
1293
+ readonly solicitedData: {
1294
+ readonly es: "Datos solicitados";
1295
+ readonly en: "Solicited data";
1296
+ };
1297
+ readonly reject: {
1298
+ readonly es: "RECHAZAR";
1299
+ readonly en: "REJECT";
1300
+ };
1301
+ readonly accept: {
1302
+ readonly es: "ACEPTAR";
1303
+ readonly en: "ACCEPT";
1304
+ };
1305
+ readonly iAuthorizeThe: {
1306
+ readonly es: "Autorizo la";
1307
+ readonly en: "I authorize the";
1308
+ };
1309
+ readonly privacyPolicy: {
1310
+ readonly es: "Política de Privacidad";
1311
+ readonly en: "Privacy Policy";
1312
+ };
1313
+ readonly andThe: {
1314
+ readonly es: "y los";
1315
+ readonly en: "and the";
1316
+ };
1317
+ readonly termsAndConditions: {
1318
+ readonly es: "Términos y Condiciones";
1319
+ readonly en: "Terms and Conditions";
1320
+ };
1321
+ readonly configureSessionTime: {
1322
+ readonly es: "Quiero configurar el tiempo de mi sesión";
1323
+ readonly en: "I want to configure my session time";
1324
+ };
1325
+ readonly solicitsTo: {
1326
+ readonly es: "solicita a";
1327
+ readonly en: "solicits to";
1328
+ };
1329
+ readonly required: {
1330
+ readonly es: "Requerido";
1331
+ readonly en: "Required";
1332
+ };
1333
+ readonly optional: {
1334
+ readonly es: "Opcional";
1335
+ readonly en: "Optional";
1336
+ };
1337
+ readonly fillRequiredFields: {
1338
+ readonly es: "Completa los campos requeridos para continuar";
1339
+ readonly en: "Fill required fields to continue";
1340
+ };
1341
+ readonly completeRequiredData: {
1342
+ readonly es: "Autoriza o completa los datos obligatorios para continuar";
1343
+ readonly en: "Authorize or fill in the required data to continue";
1344
+ };
1345
+ readonly requiredDataError: {
1346
+ readonly es: "No se pudo aceptar: faltan datos obligatorios o no son válidos. Revísalos e inténtalo de nuevo.";
1347
+ readonly en: "Could not accept: required data is missing or invalid. Please review it and try again.";
1348
+ };
1349
+ readonly shareData: {
1350
+ readonly es: "Ceder";
1351
+ readonly en: "Share";
1352
+ };
1353
+ readonly saveData: {
1354
+ readonly es: "Guardar";
1355
+ readonly en: "Save";
1356
+ };
1357
+ readonly undoChange: {
1358
+ readonly es: "Deshacer";
1359
+ readonly en: "Undo";
1360
+ };
1361
+ readonly savedToProfileHint: {
1362
+ readonly es: "Se guardará en tu perfil al aceptar";
1363
+ readonly en: "It will be saved to your profile on accept";
1364
+ };
1365
+ readonly pendingChangeHint: {
1366
+ readonly es: "Guarda o deshaz el cambio";
1367
+ readonly en: "Save or undo the change";
1368
+ };
1369
+ readonly notSharedHint: {
1370
+ readonly es: "Este dato no se cederá";
1371
+ readonly en: "This data will not be shared";
1372
+ };
1373
+ readonly clearField: {
1374
+ readonly es: "Limpiar campo";
1375
+ readonly en: "Clear field";
1376
+ };
1377
+ readonly acceptData: {
1378
+ readonly es: "Aceptar";
1379
+ readonly en: "Accept";
1380
+ };
1381
+ readonly noTransactionsFound: {
1382
+ readonly es: "No se encontraron transacciones";
1383
+ readonly en: "No transactions found";
1384
+ };
1385
+ readonly otpExpiredTitle: {
1386
+ readonly es: "Verificación caducada";
1387
+ readonly en: "Verification expired";
1388
+ };
1389
+ readonly otpExpiredExtension: {
1390
+ readonly es: "Introduce tu código en la extensión de Block-Auth para aprobar este acceso.";
1391
+ readonly en: "Enter your code in the Block-Auth extension to approve this access.";
1392
+ };
1393
+ readonly otpExpiredApp: {
1394
+ readonly es: "Introduce tu código en la app de Block-Auth para aprobar este acceso.";
1395
+ readonly en: "Enter your code in the Block-Auth app to approve this access.";
1396
+ };
1397
+ readonly openExtension: {
1398
+ readonly es: "Abrir extensión";
1399
+ readonly en: "Open extension";
1400
+ };
1401
+ readonly noAppKeyFound: {
1402
+ readonly es: "No se encontró la clave de la aplicación";
1403
+ readonly en: "No application key found";
1404
+ };
1405
+ readonly noContractAddressFound: {
1406
+ readonly es: "No se encontró la dirección del contrato";
1407
+ readonly en: "No contract address found";
1408
+ };
1409
+ readonly noTransactionsParamsFound: {
1410
+ readonly es: "No se encontraron parámetros de la transacción";
1411
+ readonly en: "No transaction params found";
1412
+ };
1413
+ readonly somethingWentWrong: {
1414
+ readonly es: "Algo salió mal";
1415
+ readonly en: "Something went wrong";
1416
+ };
1417
+ readonly permTemporalIdentity: {
1418
+ readonly es: "Acceso temporal a tu identidad";
1419
+ readonly en: "Temporal access to identity";
1420
+ };
1421
+ readonly permAuthorisedApps: {
1422
+ readonly es: "Acceso a la lista de aplicaciones autorizadas";
1423
+ readonly en: "Access to the list of authorised apps";
1424
+ };
1425
+ readonly permOnlyThisTxn: {
1426
+ readonly es: "Solo se firmará esta transacción";
1427
+ readonly en: "Only this transaction will be signed";
1428
+ };
1429
+ readonly firstName: {
1430
+ readonly es: "Nombre";
1431
+ readonly en: "First Name";
1432
+ };
1433
+ readonly lastName: {
1434
+ readonly es: "Apellido";
1435
+ readonly en: "Last Name";
1436
+ };
1437
+ readonly secondLastName: {
1438
+ readonly es: "Segundo apellido";
1439
+ readonly en: "Second Last Name";
1440
+ };
1441
+ readonly email: {
1442
+ readonly es: "Correo electrónico";
1443
+ readonly en: "Email";
1444
+ };
1445
+ readonly phone: {
1446
+ readonly es: "Teléfono";
1447
+ readonly en: "Phone";
1448
+ };
1449
+ readonly onlyLettersAllowed: {
1450
+ readonly es: "Solo se permiten letras y espacios";
1451
+ readonly en: "Only letters and spaces allowed";
1452
+ };
1453
+ readonly enterValidEmail: {
1454
+ readonly es: "Introduce un correo electrónico válido (ej. nombre@dominio.com)";
1455
+ readonly en: "Enter a valid email (e.g. name@domain.com)";
1456
+ };
1457
+ readonly enterValidPhone: {
1458
+ readonly es: "Introduce un número de teléfono válido";
1459
+ readonly en: "Enter a valid phone number";
1460
+ };
1461
+ readonly phoneCountry: {
1462
+ readonly es: "País";
1463
+ readonly en: "Country";
1464
+ };
1465
+ readonly searchPhoneCountry: {
1466
+ readonly es: "Buscar país o prefijo";
1467
+ readonly en: "Search country or code";
1468
+ };
1469
+ readonly noPhoneCountryResults: {
1470
+ readonly es: "No hay países que coincidan";
1471
+ readonly en: "No matching countries";
1472
+ };
1473
+ readonly helpUsReport: {
1474
+ readonly es: "Ayúdanos a mejorar y reporta el error aquí";
1475
+ readonly en: "Help us get better and report the error here";
1476
+ };
1477
+ readonly thanksForReport: {
1478
+ readonly es: "¡Gracias por reportar el error!";
1479
+ readonly en: "Thanks for reporting the error!";
1480
+ };
1481
+ readonly report: {
1482
+ readonly es: "REPORTAR";
1483
+ readonly en: "REPORT";
1484
+ };
1485
+ readonly close: {
1486
+ readonly es: "Cerrar";
1487
+ readonly en: "Close";
1488
+ };
1489
+ readonly modalWillCloseIn: {
1490
+ readonly es: "Este modal se cerrará en...";
1491
+ readonly en: "This modal will close in...";
1492
+ };
1493
+ };
1494
+ type TextKey = keyof typeof TEXTS;
1495
+ declare function t(key: TextKey, locale?: Locale): string;
1496
+
1497
+ declare const PARAM_LABEL_KEYS: Record<string, TextKey>;
1498
+ declare const PARAM_DISPLAY_ORDER: string[];
1499
+ declare const PARAM_INPUT_TYPE: Record<string, string>;
1500
+ declare const PARAM_VALIDATORS: Record<string, (v: string) => boolean>;
1501
+ declare const PARAM_NORMALIZERS: Record<string, (v: string) => string>;
1502
+ declare const PARAM_DISPLAY_FORMATTERS: Record<string, (v: string) => string>;
1503
+ declare const formatParamValue: (slug: string, value: string) => string;
1504
+ declare const normalizeParamValue: (slug: string, value: string) => string;
1505
+ declare const PARAM_ERROR_KEYS: Record<string, TextKey>;
1506
+ type SolicitedParam = TxnDataParam;
1507
+ interface SolicitedDataForm {
1508
+ values: Record<string, string>;
1509
+ shared: Record<string, boolean>;
1510
+ saved: Record<string, string>;
1511
+ }
1512
+ declare const EMPTY_SOLICITED_DATA_FORM: SolicitedDataForm;
1513
+ interface SolicitedField extends SolicitedParam {
1514
+ profileValue: string;
1515
+ inputValue: string;
1516
+ isEmpty: boolean;
1517
+ isShared: boolean;
1518
+ isChanged: boolean;
1519
+ isSaved: boolean;
1520
+ isValid: boolean;
1521
+ isComplete: boolean;
1522
+ }
1523
+ interface SolicitedAcceptParams {
1524
+ userParams: Record<string, string>;
1525
+ grantedParams: string[];
1526
+ revokedParams: string[];
1527
+ }
1528
+ declare const isValidParamValue: (slug: string, value: string) => boolean;
1529
+ declare function getSolicitedParams({ params, requiredParams, optionalParams, }: {
1530
+ params?: TxnDataParam[] | null;
1531
+ requiredParams?: string[];
1532
+ optionalParams?: string[];
1533
+ }): SolicitedParam[];
1534
+ declare function getSolicitedFields(items: SolicitedParam[], form?: SolicitedDataForm, withConsent?: boolean): SolicitedField[];
1535
+ declare function getSolicitedHintKey(field: SolicitedField, withConsent?: boolean): TextKey | null;
1536
+ declare const isSolicitedHintSuccess: (field: SolicitedField) => boolean;
1537
+ declare const isSolicitedDataComplete: (fields: SolicitedField[]) => boolean;
1538
+ declare function getSolicitedAcceptParams(fields: SolicitedField[]): SolicitedAcceptParams;
1539
+ declare const setSolicitedValue: (form: SolicitedDataForm, item: SolicitedParam, value: string) => SolicitedDataForm;
1540
+ declare const setSolicitedShared: (form: SolicitedDataForm, slug: string, shared: boolean) => SolicitedDataForm;
1541
+ declare const saveSolicitedValue: (form: SolicitedDataForm, slug: string) => SolicitedDataForm;
1542
+ declare const undoSolicitedValue: (form: SolicitedDataForm, item: SolicitedParam) => SolicitedDataForm;
1543
+
1544
+ type PhoneCountryCode = CountryCode;
1545
+ interface PhoneCountry {
1546
+ iso2: PhoneCountryCode;
1547
+ dialCode: string;
1548
+ flag: string;
1549
+ name: string;
1550
+ }
1551
+ interface PhoneParts {
1552
+ country: PhoneCountryCode;
1553
+ nationalNumber: string;
1554
+ }
1555
+ interface PhoneDraft extends PhoneParts {
1556
+ value: string;
1557
+ }
1558
+ declare const DEFAULT_PHONE_COUNTRY: PhoneCountryCode;
1559
+ declare const isPhoneCountry: (value: string | null | undefined) => value is PhoneCountryCode;
1560
+ declare function getPhoneCountryFlag(iso2: string): string;
1561
+ declare function getPhoneDialCode(iso2: PhoneCountryCode): string;
1562
+ declare function getPhoneCountries(locale?: Locale): PhoneCountry[];
1563
+ declare function searchPhoneCountries(countries: PhoneCountry[], query: string): PhoneCountry[];
1564
+ declare function isValidPhoneValue(value: string | null | undefined): boolean;
1565
+ declare function toPhoneE164(value: string | null | undefined): string | null;
1566
+ declare function formatPhoneForDisplay(value: string | null | undefined): string;
1567
+ declare function getDefaultPhoneCountry(languages?: readonly string[]): PhoneCountryCode;
1568
+ declare function parsePhoneValue(value: string | null | undefined, fallbackCountry?: PhoneCountryCode): PhoneParts;
1569
+ declare function buildPhoneE164(country: PhoneCountryCode, nationalNumber: string): string | null;
1570
+ declare function buildPhoneValue(country: PhoneCountryCode, nationalNumber: string): string;
1571
+ declare function updatePhoneDraft(country: PhoneCountryCode, nationalNumber: string): PhoneDraft;
1572
+ declare function resolvePhoneDraft(value: string | null | undefined, draft?: PhoneDraft | null, fallbackCountry?: PhoneCountryCode): PhoneDraft;
1573
+
1211
1574
  interface AuthRuntimeCallbacks {
1212
1575
  onSuccess?: (address: string) => void | Promise<void>;
1213
1576
  onError?: () => void | Promise<void>;
@@ -1748,213 +2111,4 @@ declare function resetExtensionSyncModuleState(): void;
1748
2111
  */
1749
2112
  declare function startExtensionSync(): () => void;
1750
2113
 
1751
- declare const TEXTS: {
1752
- readonly edit: {
1753
- readonly es: "Editar";
1754
- readonly en: "Edit";
1755
- };
1756
- readonly searchEngine: {
1757
- readonly es: "Buscador";
1758
- readonly en: "Search engine";
1759
- };
1760
- readonly webTypes: {
1761
- readonly es: "Tipos de web";
1762
- readonly en: "Web types";
1763
- };
1764
- readonly columns: {
1765
- readonly es: "Columnas";
1766
- readonly en: "Columns";
1767
- };
1768
- readonly order: {
1769
- readonly es: "Orden";
1770
- readonly en: "Order";
1771
- };
1772
- readonly activate: {
1773
- readonly es: "Activar";
1774
- readonly en: "Activate";
1775
- };
1776
- readonly providerName: {
1777
- readonly es: "Nombre del provider";
1778
- readonly en: "Provider name";
1779
- };
1780
- readonly connectWith: {
1781
- readonly es: "Conectar con";
1782
- readonly en: "Connect with";
1783
- };
1784
- readonly search: {
1785
- readonly es: "Buscar ...";
1786
- readonly en: "Search ...";
1787
- };
1788
- readonly webTypeAll: {
1789
- readonly es: "Todos";
1790
- readonly en: "All";
1791
- };
1792
- readonly login: {
1793
- readonly es: "Iniciar sesión";
1794
- readonly en: "Log In";
1795
- };
1796
- readonly lastStep: {
1797
- readonly es: "Completa el último paso";
1798
- readonly en: "Complete the last step";
1799
- };
1800
- readonly footerFirst: {
1801
- readonly es: "¿Esperando un registro aburrido?";
1802
- readonly en: "Expecting a boring signup?";
1803
- };
1804
- readonly footerSecond: {
1805
- readonly es: "Di adiós a las contraseñas";
1806
- readonly en: "Say goodbye to passwords";
1807
- };
1808
- readonly permissionsRequired: {
1809
- readonly es: "Permisos requeridos";
1810
- readonly en: "Permissions required";
1811
- };
1812
- readonly solicitedData: {
1813
- readonly es: "Datos solicitados";
1814
- readonly en: "Solicited data";
1815
- };
1816
- readonly reject: {
1817
- readonly es: "RECHAZAR";
1818
- readonly en: "REJECT";
1819
- };
1820
- readonly accept: {
1821
- readonly es: "ACEPTAR";
1822
- readonly en: "ACCEPT";
1823
- };
1824
- readonly iAuthorizeThe: {
1825
- readonly es: "Autorizo la";
1826
- readonly en: "I authorize the";
1827
- };
1828
- readonly privacyPolicy: {
1829
- readonly es: "Política de Privacidad";
1830
- readonly en: "Privacy Policy";
1831
- };
1832
- readonly andThe: {
1833
- readonly es: "y los";
1834
- readonly en: "and the";
1835
- };
1836
- readonly termsAndConditions: {
1837
- readonly es: "Términos y Condiciones";
1838
- readonly en: "Terms and Conditions";
1839
- };
1840
- readonly configureSessionTime: {
1841
- readonly es: "Quiero configurar el tiempo de mi sesión";
1842
- readonly en: "I want to configure my session time";
1843
- };
1844
- readonly solicitsTo: {
1845
- readonly es: "solicita a";
1846
- readonly en: "solicits to";
1847
- };
1848
- readonly required: {
1849
- readonly es: "Requerido";
1850
- readonly en: "Required";
1851
- };
1852
- readonly optional: {
1853
- readonly es: "Opcional";
1854
- readonly en: "Optional";
1855
- };
1856
- readonly fillRequiredFields: {
1857
- readonly es: "Completa los campos requeridos para continuar";
1858
- readonly en: "Fill required fields to continue";
1859
- };
1860
- readonly noTransactionsFound: {
1861
- readonly es: "No se encontraron transacciones";
1862
- readonly en: "No transactions found";
1863
- };
1864
- readonly otpExpiredExtension: {
1865
- readonly es: "Tu verificación ha caducado. Introduce tu código en la extensión de Block-Auth para aprobar este acceso.";
1866
- readonly en: "Your verification has expired. Enter your code in the Block-Auth extension to approve this access.";
1867
- };
1868
- readonly otpExpiredApp: {
1869
- readonly es: "Tu verificación ha caducado. Introduce tu código en la app de Block-Auth para aprobar este acceso.";
1870
- readonly en: "Your verification has expired. Enter your code in the Block-Auth app to approve this access.";
1871
- };
1872
- readonly openExtension: {
1873
- readonly es: "Abrir extensión";
1874
- readonly en: "Open extension";
1875
- };
1876
- readonly noAppKeyFound: {
1877
- readonly es: "No se encontró la clave de la aplicación";
1878
- readonly en: "No application key found";
1879
- };
1880
- readonly noContractAddressFound: {
1881
- readonly es: "No se encontró la dirección del contrato";
1882
- readonly en: "No contract address found";
1883
- };
1884
- readonly noTransactionsParamsFound: {
1885
- readonly es: "No se encontraron parámetros de la transacción";
1886
- readonly en: "No transaction params found";
1887
- };
1888
- readonly somethingWentWrong: {
1889
- readonly es: "Algo salió mal";
1890
- readonly en: "Something went wrong";
1891
- };
1892
- readonly permTemporalIdentity: {
1893
- readonly es: "Acceso temporal a tu identidad";
1894
- readonly en: "Temporal access to identity";
1895
- };
1896
- readonly permAuthorisedApps: {
1897
- readonly es: "Acceso a la lista de aplicaciones autorizadas";
1898
- readonly en: "Access to the list of authorised apps";
1899
- };
1900
- readonly permOnlyThisTxn: {
1901
- readonly es: "Solo se firmará esta transacción";
1902
- readonly en: "Only this transaction will be signed";
1903
- };
1904
- readonly firstName: {
1905
- readonly es: "Nombre";
1906
- readonly en: "First Name";
1907
- };
1908
- readonly lastName: {
1909
- readonly es: "Apellido";
1910
- readonly en: "Last Name";
1911
- };
1912
- readonly secondLastName: {
1913
- readonly es: "Segundo apellido";
1914
- readonly en: "Second Last Name";
1915
- };
1916
- readonly email: {
1917
- readonly es: "Correo electrónico";
1918
- readonly en: "Email";
1919
- };
1920
- readonly phone: {
1921
- readonly es: "Teléfono";
1922
- readonly en: "Phone";
1923
- };
1924
- readonly onlyLettersAllowed: {
1925
- readonly es: "Solo se permiten letras y espacios";
1926
- readonly en: "Only letters and spaces allowed";
1927
- };
1928
- readonly enterValidEmail: {
1929
- readonly es: "Introduce un correo electrónico válido (ej. nombre@dominio.com)";
1930
- readonly en: "Enter a valid email (e.g. name@domain.com)";
1931
- };
1932
- readonly enterValidPhone: {
1933
- readonly es: "Introduce un número de teléfono válido";
1934
- readonly en: "Enter a valid phone number";
1935
- };
1936
- readonly helpUsReport: {
1937
- readonly es: "Ayúdanos a mejorar y reporta el error aquí";
1938
- readonly en: "Help us get better and report the error here";
1939
- };
1940
- readonly thanksForReport: {
1941
- readonly es: "¡Gracias por reportar el error!";
1942
- readonly en: "Thanks for reporting the error!";
1943
- };
1944
- readonly report: {
1945
- readonly es: "REPORTAR";
1946
- readonly en: "REPORT";
1947
- };
1948
- readonly close: {
1949
- readonly es: "Cerrar";
1950
- readonly en: "Close";
1951
- };
1952
- readonly modalWillCloseIn: {
1953
- readonly es: "Este modal se cerrará en...";
1954
- readonly en: "This modal will close in...";
1955
- };
1956
- };
1957
- type TextKey = keyof typeof TEXTS;
1958
- declare function t(key: TextKey, locale?: Locale): string;
1959
-
1960
- export { $extension, $locale, $openModals, $ui, $user, $wallet, $web3, $ws, type AuthRuntime, type AuthRuntimeCallbacks, type BlockAuthClient, type BlockAuthClientConfig, BlockAuthProvider, type BlockAuthProviderOptions, type BlockAuthUserProfile, type BlockAuthUserRole, DISCOVERY_TIMEOUT_MS, type DeletionServiceDeps, type EvmOptions, type EvmWallet, type ExtensionState, type Locale, type ModalName, type RestoreResult, RpcClient, SDK_PAGE_MARKER, SYNC_TIMEOUT_MS, type SolanaWallet, TEXTS, type TextKey, type TxnRequest, type UiState, type UserProfileProvider, type UserState, type WalletKind, type WalletState, type Web3SignupState, WsClient, type WsState, appearsExtensionInstalled, clearExtensionDomMarkers, clearRemainingAuthData, clearSdkPresence, closeAllModals, closeModal, confirmExtensionPresence, createAuthRuntime, createBlockAuthClient, createDeletionService, createEvmWallet, createSolanaWallet, deepLinkFor, discoverExtensionOnce, fetchUserProfile, finalizeAfterRestorationExpired, getExtensionStoreUrl, getUserRoleNames, getUserRoleSlugs, getUserRoles, handleRestorationExpired, handleRestoreFailure, hasAnyRole, hasAnyRoleBySlug, hasRole, hasRoleBySlug, isExtensionPresent, isExtensionStateComplete, isFirefox, isModalOpen, isRestorationExpiredMessage, isSdkPage, isShowSignin, loadUserProfile, makeQrDataUrl, markSdkPresence, index$1 as oauth, onExtensionRemoved, onExtensionStatePublished, openExtensionOnTxn, openModal, probeExtensionPresence, reconcileExtensionState, requestExtensionRefresh, requestExtensionStateSync, requestSdkRestore, resetExtension, resetExtensionAbsentState, resetExtensionSyncModuleState, resetUi, resetUser, resetWallet, resetWeb3, resetWs, setApiKey, setBackendMessage, setDeletionAddress, setDid, setExtensionInstalled, setExtensionIsLocked, setExtensionIsUser, setExtensionIsUserActive, setIsAcceptingTxn, setIsAppActive, setIsCheckingAppActive, setIsLoadingUser, setIsOnDeletion, setIsOtpRequired, setIsSdkSignedIn, setIsServiceConnected, setIsSigned, setIsSignedFirstCheck, setIsSigning, setIsSigningLoader, setLocale, setReady, setRequests, setServiceIcon, setServiceName, setSignature, setSignedBy, setToken, setUiConfig, setUser, setWaitingForSuccessLogInSince, startExtensionSync, syncExtensionStateFromStorage, t, index as utils };
2114
+ export { $extension, $locale, $openModals, $ui, $user, $wallet, $web3, $ws, type AuthRuntime, type AuthRuntimeCallbacks, type BlockAuthClient, type BlockAuthClientConfig, BlockAuthProvider, type BlockAuthProviderOptions, type BlockAuthUserProfile, type BlockAuthUserRole, DEFAULT_PHONE_COUNTRY, DISCOVERY_TIMEOUT_MS, type DeletionServiceDeps, EMPTY_SOLICITED_DATA_FORM, type EvmOptions, type EvmWallet, type ExtensionState, type Locale, type ModalName, PARAM_DISPLAY_FORMATTERS, PARAM_DISPLAY_ORDER, PARAM_ERROR_KEYS, PARAM_INPUT_TYPE, PARAM_LABEL_KEYS, PARAM_NORMALIZERS, PARAM_VALIDATORS, type PhoneCountry, type PhoneCountryCode, type PhoneDraft, type PhoneParts, type RestoreResult, RpcClient, SDK_PAGE_MARKER, SYNC_TIMEOUT_MS, type SolanaWallet, type SolicitedAcceptParams, type SolicitedDataForm, type SolicitedField, type SolicitedParam, TEXTS, type TextKey, type TxnDataMode, type TxnDataParam, type TxnDataRequest, type TxnDataStatus, type TxnRequest, type UiState, type UserProfileProvider, type UserState, type WalletKind, type WalletState, type Web3SignupState, WsClient, type WsState, appearsExtensionInstalled, buildPhoneE164, buildPhoneValue, clearExtensionDomMarkers, clearRemainingAuthData, clearSdkPresence, closeAllModals, closeModal, confirmExtensionPresence, createAuthRuntime, createBlockAuthClient, createDeletionService, createEvmWallet, createSolanaWallet, deepLinkFor, discoverExtensionOnce, fetchUserProfile, finalizeAfterRestorationExpired, formatParamValue, formatPhoneForDisplay, getDefaultPhoneCountry, getExtensionStoreUrl, getPhoneCountries, getPhoneCountryFlag, getPhoneDialCode, getSolicitedAcceptParams, getSolicitedFields, getSolicitedHintKey, getSolicitedParams, getUserRoleNames, getUserRoleSlugs, getUserRoles, handleRestorationExpired, handleRestoreFailure, hasAnyRole, hasAnyRoleBySlug, hasRole, hasRoleBySlug, isExtensionPresent, isExtensionStateComplete, isFirefox, isModalOpen, isPhoneCountry, isRestorationExpiredMessage, isSdkPage, isShowSignin, isSolicitedDataComplete, isSolicitedHintSuccess, isValidParamValue, isValidPhoneValue, loadUserProfile, makeQrDataUrl, markSdkPresence, normalizeParamValue, index$1 as oauth, onExtensionRemoved, onExtensionStatePublished, openExtensionOnTxn, openModal, parsePhoneValue, probeExtensionPresence, reconcileExtensionState, requestExtensionRefresh, requestExtensionStateSync, requestSdkRestore, resetExtension, resetExtensionAbsentState, resetExtensionSyncModuleState, resetUi, resetUser, resetWallet, resetWeb3, resetWs, resolvePhoneDraft, saveSolicitedValue, searchPhoneCountries, setAcceptTxnError, setApiKey, setBackendMessage, setDeletionAddress, setDid, setExtensionInstalled, setExtensionIsLocked, setExtensionIsUser, setExtensionIsUserActive, setIsAcceptingTxn, setIsAppActive, setIsCheckingAppActive, setIsLoadingUser, setIsOnDeletion, setIsOtpRequired, setIsSdkSignedIn, setIsServiceConnected, setIsSigned, setIsSignedFirstCheck, setIsSigning, setIsSigningLoader, setLocale, setReady, setRequests, setServiceIcon, setServiceName, setSignature, setSignedBy, setSolicitedShared, setSolicitedValue, setToken, setUiConfig, setUser, setWaitingForSuccessLogInSince, startExtensionSync, syncExtensionStateFromStorage, t, toPhoneE164, undoSolicitedValue, updatePhoneDraft, index as utils };