@glideidentity/web-client-sdk 4.4.10 → 5.0.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.
@@ -1 +1 @@
1
- /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
4
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
5
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
6
6
  export { VanillaClient as ClientManager } from './adapters/vanilla/client';
7
7
  export { PhoneAuthManager } from './adapters/vanilla/phone-auth';
@@ -40,17 +40,6 @@ export interface PLMN {
40
40
  /** Mobile Network Code (2-3 digits) */
41
41
  mnc: string;
42
42
  }
43
- /**
44
- * User consent information for privacy compliance
45
- */
46
- export interface ConsentData {
47
- /** What the user is consenting to */
48
- consent_text: string;
49
- /** URL to privacy policy */
50
- policy_link: string;
51
- /** Brief policy description */
52
- policy_text: string;
53
- }
54
43
  /**
55
44
  * Browser/client information for strategy selection
56
45
  */
@@ -109,8 +98,6 @@ export interface PrepareRequest {
109
98
  /** Request identifier (SDK generates unique ID if not provided) */
110
99
  id?: string;
111
100
  /** Optional fields */
112
- /** User consent information */
113
- consent_data?: ConsentData;
114
101
  /** Client information for strategy selection */
115
102
  client_info?: ClientInfo;
116
103
  /** Advanced options for special features */
@@ -333,13 +333,6 @@ class PhoneAuthClient {
333
333
  throw this.createError(error_utils_1.PhoneAuthErrorCode.BAD_REQUEST, plmnValidation.error, { field: 'plmn' });
334
334
  }
335
335
  }
336
- // Validate consent data if provided
337
- if (options.consent_data) {
338
- const consentValidation = (0, validation_utils_1.validateConsentData)(options.consent_data);
339
- if (!consentValidation.valid) {
340
- throw this.createError(error_utils_1.PhoneAuthErrorCode.BAD_REQUEST, consentValidation.error, { field: 'consent_data' });
341
- }
342
- }
343
336
  // Validate use_case is provided (unless only parent_session_id is given)
344
337
  if (!options.use_case && !(((_a = options.options) === null || _a === void 0 ? void 0 : _a.parent_session_id) && !options.phone_number && !options.plmn)) {
345
338
  throw this.createError(error_utils_1.PhoneAuthErrorCode.MISSING_PARAMETERS, 'use_case is required', { field: 'use_case' });
@@ -391,7 +384,6 @@ class PhoneAuthClient {
391
384
  nonce: nonce,
392
385
  id: requestId,
393
386
  // Optional fields
394
- consent_data: options.consent_data,
395
387
  client_info: {
396
388
  user_agent: navigator.userAgent,
397
389
  platform: navigator.platform
@@ -2,6 +2,6 @@ export { PhoneAuthClient } from './client';
2
2
  export * from './types';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './error-utils';
4
4
  export type { PhoneAuthErrorCode as PhoneAuthErrorCodeType } from './error-utils';
5
- export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateConsentData, validateNonce } from './validation-utils';
5
+ export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateNonce } from './validation-utils';
6
6
  export { MobileDebugConsole } from './ui/mobile-debug-console';
7
7
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './type-guards';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.requiresUserAction = exports.requiresPolling = exports.isHeadlessResult = exports.hasTrigger = exports.hasPollingControls = exports.getStrategy = exports.isDesktopStrategy = exports.isTS43Strategy = exports.isLinkStrategy = exports.isAuthCredential = exports.isCredential = exports.isExtendedResponse = exports.MobileDebugConsole = exports.validateNonce = exports.validateConsentData = exports.validateUseCaseRequirements = exports.validatePlmn = exports.validatePhoneNumber = exports.createErrorBreadcrumb = exports.serializeError = exports.isRetryableError = exports.getRetryDelay = exports.isErrorCode = exports.getUserMessage = exports.isUserError = exports.isPhoneAuthError = exports.PhoneAuthErrorCode = exports.PhoneAuthClient = void 0;
17
+ exports.requiresUserAction = exports.requiresPolling = exports.isHeadlessResult = exports.hasTrigger = exports.hasPollingControls = exports.getStrategy = exports.isDesktopStrategy = exports.isTS43Strategy = exports.isLinkStrategy = exports.isAuthCredential = exports.isCredential = exports.isExtendedResponse = exports.MobileDebugConsole = exports.validateNonce = exports.validateUseCaseRequirements = exports.validatePlmn = exports.validatePhoneNumber = exports.createErrorBreadcrumb = exports.serializeError = exports.isRetryableError = exports.getRetryDelay = exports.isErrorCode = exports.getUserMessage = exports.isUserError = exports.isPhoneAuthError = exports.PhoneAuthErrorCode = exports.PhoneAuthClient = void 0;
18
18
  var client_1 = require("./client");
19
19
  Object.defineProperty(exports, "PhoneAuthClient", { enumerable: true, get: function () { return client_1.PhoneAuthClient; } });
20
20
  __exportStar(require("./types"), exports);
@@ -32,7 +32,6 @@ var validation_utils_1 = require("./validation-utils");
32
32
  Object.defineProperty(exports, "validatePhoneNumber", { enumerable: true, get: function () { return validation_utils_1.validatePhoneNumber; } });
33
33
  Object.defineProperty(exports, "validatePlmn", { enumerable: true, get: function () { return validation_utils_1.validatePlmn; } });
34
34
  Object.defineProperty(exports, "validateUseCaseRequirements", { enumerable: true, get: function () { return validation_utils_1.validateUseCaseRequirements; } });
35
- Object.defineProperty(exports, "validateConsentData", { enumerable: true, get: function () { return validation_utils_1.validateConsentData; } });
36
35
  Object.defineProperty(exports, "validateNonce", { enumerable: true, get: function () { return validation_utils_1.validateNonce; } });
37
36
  var mobile_debug_console_1 = require("./ui/mobile-debug-console");
38
37
  Object.defineProperty(exports, "MobileDebugConsole", { enumerable: true, get: function () { return mobile_debug_console_1.MobileDebugConsole; } });
@@ -32,19 +32,6 @@ export declare function validateUseCaseRequirements(useCase: UseCase, phoneNumbe
32
32
  valid: boolean;
33
33
  error?: string;
34
34
  };
35
- /**
36
- * Validates consent data
37
- * @param consentData - Consent data object
38
- * @returns Validation result
39
- */
40
- export declare function validateConsentData(consentData?: {
41
- consent_text: string;
42
- policy_link: string;
43
- policy_text: string;
44
- }): {
45
- valid: boolean;
46
- error?: string;
47
- };
48
35
  /**
49
36
  * Creates a validation error
50
37
  * @param code - Error code
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.validatePhoneNumber = validatePhoneNumber;
7
7
  exports.validatePlmn = validatePlmn;
8
8
  exports.validateUseCaseRequirements = validateUseCaseRequirements;
9
- exports.validateConsentData = validateConsentData;
10
9
  exports.createValidationError = createValidationError;
11
10
  exports.validateNonce = validateNonce;
12
11
  const api_types_1 = require("./api-types");
@@ -98,46 +97,6 @@ function validateUseCaseRequirements(useCase, phoneNumber, hasParentSessionId) {
98
97
  }
99
98
  return { valid: true };
100
99
  }
101
- /**
102
- * Validates consent data
103
- * @param consentData - Consent data object
104
- * @returns Validation result
105
- */
106
- function validateConsentData(consentData) {
107
- if (!consentData) {
108
- return { valid: true }; // Consent data is optional
109
- }
110
- const { consent_text: consentText, policy_link: policyLink, policy_text: policyText } = consentData;
111
- if (!consentText || consentText.trim().length === 0) {
112
- return {
113
- valid: false,
114
- error: 'Consent text is required when consent data is provided'
115
- };
116
- }
117
- if (!policyLink || policyLink.trim().length === 0) {
118
- return {
119
- valid: false,
120
- error: 'Policy link is required when consent data is provided'
121
- };
122
- }
123
- // Validate URL format for policy link
124
- try {
125
- new URL(policyLink);
126
- }
127
- catch (_a) {
128
- return {
129
- valid: false,
130
- error: 'Policy link must be a valid URL'
131
- };
132
- }
133
- if (!policyText || policyText.trim().length === 0) {
134
- return {
135
- valid: false,
136
- error: 'Policy text is required when consent data is provided'
137
- };
138
- }
139
- return { valid: true };
140
- }
141
100
  /**
142
101
  * Creates a validation error
143
102
  * @param code - Error code
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
4
  // SDK version - injected at build time
5
- exports.SDK_VERSION = '4.4.10';
5
+ exports.SDK_VERSION = '5.0.0';
@@ -4,6 +4,6 @@ export type { UsePhoneAuthOptions } from './usePhoneAuth';
4
4
  export type { ClientConfig, ClientResponse, RequestOptions } from '../../core/types';
5
5
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError, AuthStep } from '../../core/phone-auth';
6
6
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from '../../core/phone-auth';
7
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from '../../core/phone-auth/types';
7
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from '../../core/phone-auth/types';
8
8
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from '../../core/phone-auth/types';
9
9
  export { PhoneAuthClient } from '../../core/phone-auth';
@@ -5,6 +5,6 @@ export { PhoneAuthClient } from '../../core/phone-auth';
5
5
  export type { ClientConfig, ClientResponse, RequestOptions } from '../../core/types';
6
6
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError, AuthStep } from '../../core/phone-auth';
7
7
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from '../../core/phone-auth';
8
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from '../../core/phone-auth/types';
8
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from '../../core/phone-auth/types';
9
9
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from '../../core/phone-auth/types';
10
10
  export { USE_CASE, ERROR_CODE, ERROR_MESSAGES, ERROR_STATUS_CODES } from '../../core/phone-auth/api-types';
@@ -1,7 +1,7 @@
1
1
  export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
4
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
5
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
6
6
  export { VanillaClient as ClientManager } from './adapters/vanilla/client';
7
7
  export { PhoneAuthManager } from './adapters/vanilla/phone-auth';
@@ -40,17 +40,6 @@ export interface PLMN {
40
40
  /** Mobile Network Code (2-3 digits) */
41
41
  mnc: string;
42
42
  }
43
- /**
44
- * User consent information for privacy compliance
45
- */
46
- export interface ConsentData {
47
- /** What the user is consenting to */
48
- consent_text: string;
49
- /** URL to privacy policy */
50
- policy_link: string;
51
- /** Brief policy description */
52
- policy_text: string;
53
- }
54
43
  /**
55
44
  * Browser/client information for strategy selection
56
45
  */
@@ -109,8 +98,6 @@ export interface PrepareRequest {
109
98
  /** Request identifier (SDK generates unique ID if not provided) */
110
99
  id?: string;
111
100
  /** Optional fields */
112
- /** User consent information */
113
- consent_data?: ConsentData;
114
101
  /** Client information for strategy selection */
115
102
  client_info?: ClientInfo;
116
103
  /** Advanced options for special features */
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import * as API from './api-types';
12
12
  import { BrowserError, BrowserErrorCode, BrowserName } from './types';
13
13
  import { PhoneAuthErrorCode, isPhoneAuthError, parseBackendError, getUserMessage, isUserError, serializeError, createErrorBreadcrumb } from './error-utils';
14
- import { validatePhoneNumber, validatePlmn, validateConsentData, validateNonce } from './validation-utils';
14
+ import { validatePhoneNumber, validatePlmn, validateNonce } from './validation-utils';
15
15
  import { LoggerFactory } from '../logger';
16
16
  import { DesktopHandler } from './strategies/desktop';
17
17
  import { LinkHandler } from './strategies/link';
@@ -297,13 +297,6 @@ export class PhoneAuthClient {
297
297
  throw this.createError(PhoneAuthErrorCode.BAD_REQUEST, plmnValidation.error, { field: 'plmn' });
298
298
  }
299
299
  }
300
- // Validate consent data if provided
301
- if (options.consent_data) {
302
- const consentValidation = validateConsentData(options.consent_data);
303
- if (!consentValidation.valid) {
304
- throw this.createError(PhoneAuthErrorCode.BAD_REQUEST, consentValidation.error, { field: 'consent_data' });
305
- }
306
- }
307
300
  // Validate use_case is provided (unless only parent_session_id is given)
308
301
  if (!options.use_case && !(((_a = options.options) === null || _a === void 0 ? void 0 : _a.parent_session_id) && !options.phone_number && !options.plmn)) {
309
302
  throw this.createError(PhoneAuthErrorCode.MISSING_PARAMETERS, 'use_case is required', { field: 'use_case' });
@@ -355,7 +348,6 @@ export class PhoneAuthClient {
355
348
  nonce: nonce,
356
349
  id: requestId,
357
350
  // Optional fields
358
- consent_data: options.consent_data,
359
351
  client_info: {
360
352
  user_agent: navigator.userAgent,
361
353
  platform: navigator.platform
@@ -2,6 +2,6 @@ export { PhoneAuthClient } from './client';
2
2
  export * from './types';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './error-utils';
4
4
  export type { PhoneAuthErrorCode as PhoneAuthErrorCodeType } from './error-utils';
5
- export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateConsentData, validateNonce } from './validation-utils';
5
+ export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateNonce } from './validation-utils';
6
6
  export { MobileDebugConsole } from './ui/mobile-debug-console';
7
7
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './type-guards';
@@ -1,7 +1,7 @@
1
1
  export { PhoneAuthClient } from './client';
2
2
  export * from './types';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './error-utils';
4
- export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateConsentData, validateNonce } from './validation-utils';
4
+ export { validatePhoneNumber, validatePlmn, validateUseCaseRequirements, validateNonce } from './validation-utils';
5
5
  export { MobileDebugConsole } from './ui/mobile-debug-console';
6
6
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger,
7
7
  // Deprecated aliases
@@ -32,19 +32,6 @@ export declare function validateUseCaseRequirements(useCase: UseCase, phoneNumbe
32
32
  valid: boolean;
33
33
  error?: string;
34
34
  };
35
- /**
36
- * Validates consent data
37
- * @param consentData - Consent data object
38
- * @returns Validation result
39
- */
40
- export declare function validateConsentData(consentData?: {
41
- consent_text: string;
42
- policy_link: string;
43
- policy_text: string;
44
- }): {
45
- valid: boolean;
46
- error?: string;
47
- };
48
35
  /**
49
36
  * Creates a validation error
50
37
  * @param code - Error code
@@ -90,46 +90,6 @@ export function validateUseCaseRequirements(useCase, phoneNumber, hasParentSessi
90
90
  }
91
91
  return { valid: true };
92
92
  }
93
- /**
94
- * Validates consent data
95
- * @param consentData - Consent data object
96
- * @returns Validation result
97
- */
98
- export function validateConsentData(consentData) {
99
- if (!consentData) {
100
- return { valid: true }; // Consent data is optional
101
- }
102
- const { consent_text: consentText, policy_link: policyLink, policy_text: policyText } = consentData;
103
- if (!consentText || consentText.trim().length === 0) {
104
- return {
105
- valid: false,
106
- error: 'Consent text is required when consent data is provided'
107
- };
108
- }
109
- if (!policyLink || policyLink.trim().length === 0) {
110
- return {
111
- valid: false,
112
- error: 'Policy link is required when consent data is provided'
113
- };
114
- }
115
- // Validate URL format for policy link
116
- try {
117
- new URL(policyLink);
118
- }
119
- catch (_a) {
120
- return {
121
- valid: false,
122
- error: 'Policy link must be a valid URL'
123
- };
124
- }
125
- if (!policyText || policyText.trim().length === 0) {
126
- return {
127
- valid: false,
128
- error: 'Policy text is required when consent data is provided'
129
- };
130
- }
131
- return { valid: true };
132
- }
133
93
  /**
134
94
  * Creates a validation error
135
95
  * @param code - Error code
@@ -1,2 +1,2 @@
1
1
  // SDK version - injected at build time
2
- export const SDK_VERSION = '4.4.10';
2
+ export const SDK_VERSION = '5.0.0';
@@ -2,7 +2,7 @@ export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
4
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
5
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
6
6
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
7
7
  export { DesktopHandler } from './core/phone-auth/strategies/desktop';
8
8
  export type { DesktopAuthOptions, DesktopAuthResult, PollingStatus, QRCodeData } from './core/phone-auth/strategies/desktop';
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
4
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
5
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
6
6
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
7
7
  export { DesktopHandler } from './core/phone-auth/strategies/desktop';
8
8
  export type { DesktopAuthOptions, DesktopAuthResult, PollingStatus, QRCodeData } from './core/phone-auth/strategies/desktop';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glideidentity/web-client-sdk",
3
- "version": "4.4.10",
3
+ "version": "5.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "vue": "^3.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "axios": "^1.7.9"
65
+ "axios": "^1.13.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@angular/core": "^19.0.6",