@glideidentity/glide-be-node-magical-auth 3.0.0 → 3.2.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/LICENSE +190 -23
- package/README.md +167 -1
- package/dist/index.cjs +716 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +168 -7
- package/dist/index.d.ts +168 -7
- package/dist/index.js +708 -11
- package/dist/index.js.map +1 -1
- package/dist/{types-DgXuYYzq.d.cts → types-BPuPzIcL.d.cts} +456 -178
- package/dist/{types-DgXuYYzq.d.ts → types-BPuPzIcL.d.ts} +456 -178
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +4 -2
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["/**\n * Type-only exports for @glideidentity/glide-be-node-magical-auth\n *\n * @example\n * ```typescript\n * import { MagicalAuthClient } from '@glideidentity/glide-be-node-magical-auth';\n * import type { PrepareRequest, PrepareResponse } from '@glideidentity/glide-be-node-magical-auth/types';\n * ```\n *\n * @packageDocumentation\n */\n\n// Configuration types\nexport type { MagicalAuthConfig, ResolvedConfig } from './config.js';\n\n// HTTP & Logger interfaces (BYOC/BYOL)\nexport type {\n HttpClient,\n HttpRequestOptions,\n HttpResponse,\n Logger,\n} from './internal/http.js';\n\n// Logger factory configuration\nexport type { LoggerConfig } from './logger.js';\n\n// Error types\nexport type { ErrorCode, ErrorResponse } from './errors.js';\n\n// All model types\nexport type {\n // Common types\n AuthenticationStrategy,\n Challenge,\n ClientInfo,\n ConsentData,\n DeviceInfo,\n PLMN,\n ProtocolType,\n RiskLevel,\n SessionInfo,\n SessionStatus,\n SimSwapFailureReason,\n SimSwapInfo,\n UseCase,\n // Prepare types\n PrepareOptions,\n PrepareRequest,\n PrepareResponse,\n Theme,\n // Verify types\n VerifyPhoneNumberRequest,\n VerifyPhoneNumberResponse,\n // Phone types\n GetPhoneNumberRequest,\n GetPhoneNumberResponse,\n // Status types\n StatusResponse,\n // Report types\n ReportInvocationRequest,\n ReportInvocationResponse,\n} from './models/index.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["/**\n * Type-only exports for @glideidentity/glide-be-node-magical-auth\n *\n * @example\n * ```typescript\n * import { MagicalAuthClient } from '@glideidentity/glide-be-node-magical-auth';\n * import type { PrepareRequest, PrepareResponse } from '@glideidentity/glide-be-node-magical-auth/types';\n * ```\n *\n * @packageDocumentation\n */\n\n// Configuration types\nexport type { MagicalAuthConfig, ResolvedConfig } from './config.js';\n\n// HTTP & Logger interfaces (BYOC/BYOL)\nexport type {\n HttpClient,\n HttpRequestOptions,\n HttpResponse,\n Logger,\n} from './internal/http.js';\n\n// Logger factory configuration\nexport type { LoggerConfig } from './logger.js';\n\n// Error types\nexport type { ErrorCode, ErrorResponse } from './errors.js';\n\n// All model types\nexport type {\n // Common types\n AuthenticationStrategy,\n BiometricVerification,\n Challenge,\n ClientInfo,\n ConsentData,\n DeviceInfo,\n PLMN,\n ProtocolType,\n RiskLevel,\n SessionInfo,\n SessionStatus,\n SimSwapFailureReason,\n SimSwapInfo,\n UseCase,\n // Prepare types\n PrepareMultipleRequest,\n PrepareMultipleResult,\n PrepareOptions,\n PrepareRequest,\n PrepareResponse,\n Theme,\n // Verify types\n VerifyPhoneNumberRequest,\n VerifyPhoneNumberResponse,\n // Phone types\n GetPhoneNumberRequest,\n GetPhoneNumberResponse,\n // Status types\n StatusResponse,\n // Report types\n ReportInvocationRequest,\n ReportInvocationResponse,\n} from './models/index.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AuthenticationStrategy,
|
|
1
|
+
export { A as AuthenticationStrategy, a as BiometricVerification, e as Challenge, f as ClientInfo, g as ConsentData, p as DeviceInfo, E as ErrorCode, r as ErrorResponse, G as GetPhoneNumberRequest, s as GetPhoneNumberResponse, H as HttpClient, t as HttpRequestOptions, u as HttpResponse, w as Logger, x as LoggerConfig, M as MagicalAuthConfig, P as PLMN, R as PrepareMultipleRequest, S as PrepareMultipleResult, T as PrepareOptions, U as PrepareRequest, V as PrepareResponse, X as ProtocolType, Z as ReportInvocationRequest, _ as ReportInvocationResponse, $ as ResolvedConfig, a0 as RiskLevel, a2 as SessionInfo, a5 as SessionStatus, a6 as SimSwapFailureReason, a7 as SimSwapInfo, a8 as StatusResponse, ac as Theme, af as UseCase, aj as VerifyPhoneNumberRequest, ak as VerifyPhoneNumberResponse } from './types-BPuPzIcL.cjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AuthenticationStrategy,
|
|
1
|
+
export { A as AuthenticationStrategy, a as BiometricVerification, e as Challenge, f as ClientInfo, g as ConsentData, p as DeviceInfo, E as ErrorCode, r as ErrorResponse, G as GetPhoneNumberRequest, s as GetPhoneNumberResponse, H as HttpClient, t as HttpRequestOptions, u as HttpResponse, w as Logger, x as LoggerConfig, M as MagicalAuthConfig, P as PLMN, R as PrepareMultipleRequest, S as PrepareMultipleResult, T as PrepareOptions, U as PrepareRequest, V as PrepareResponse, X as ProtocolType, Z as ReportInvocationRequest, _ as ReportInvocationResponse, $ as ResolvedConfig, a0 as RiskLevel, a2 as SessionInfo, a5 as SessionStatus, a6 as SimSwapFailureReason, a7 as SimSwapInfo, a8 as StatusResponse, ac as Theme, af as UseCase, aj as VerifyPhoneNumberRequest, ak as VerifyPhoneNumberResponse } from './types-BPuPzIcL.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glideidentity/glide-be-node-magical-auth",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Glide Magical Auth SDK for Node.js - Phone number authentication without SMS/OTP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsup",
|
|
39
39
|
"test": "tsx --test tests/*.test.ts",
|
|
40
|
+
"test:coverage": "c8 --all --reporter=json-summary --reporter=text --reports-dir=coverage --src=src --exclude='tests/**' tsx --test tests/*.test.ts",
|
|
40
41
|
"test:watch": "tsx --test --watch tests/*.test.ts",
|
|
41
42
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
42
43
|
"lint": "tsc --noEmit && echo 'Type check passed'",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"carrier-auth"
|
|
52
53
|
],
|
|
53
54
|
"author": "Glide <support@glideidentity.app>",
|
|
54
|
-
"license": "
|
|
55
|
+
"license": "Apache-2.0",
|
|
55
56
|
"repository": {
|
|
56
57
|
"type": "git",
|
|
57
58
|
"url": "git+https://github.com/GlideIdentity/publish-magical-auth-be-sdks.git",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"dependencies": {},
|
|
65
66
|
"devDependencies": {
|
|
66
67
|
"@types/node": "^20.0.0",
|
|
68
|
+
"c8": "^10.1.3",
|
|
67
69
|
"tsup": "^8.0.0",
|
|
68
70
|
"tsx": "^4.0.0",
|
|
69
71
|
"typescript": "^5.0.0"
|