@glideidentity/glide-be-node-magical-auth 2.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.
package/dist/types.cjs ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +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":[]}
@@ -0,0 +1 @@
1
+ export { A as AuthenticationStrategy, e as Challenge, f as ClientInfo, g as ConsentData, p as DeviceInfo, E as ErrorCode, r as ErrorResponse, G as GetPhoneNumberRequest, c as GetPhoneNumberResponse, H as HttpClient, s as HttpRequestOptions, t as HttpResponse, L as Logger, w as LoggerConfig, M as MagicalAuthConfig, z as PLMN, K as PrepareOptions, P as PrepareRequest, N as PrepareResponse, O as ProtocolType, T as ReportInvocationRequest, R as ReportInvocationResponse, U as ResolvedConfig, W as RiskLevel, Y as SessionInfo, $ as SessionStatus, a0 as SimSwapFailureReason, a1 as SimSwapInfo, S as StatusResponse, a5 as Theme, a8 as UseCase, V as VerifyPhoneNumberRequest, b as VerifyPhoneNumberResponse } from './types-DKfytuP6.cjs';
@@ -0,0 +1 @@
1
+ export { A as AuthenticationStrategy, e as Challenge, f as ClientInfo, g as ConsentData, p as DeviceInfo, E as ErrorCode, r as ErrorResponse, G as GetPhoneNumberRequest, c as GetPhoneNumberResponse, H as HttpClient, s as HttpRequestOptions, t as HttpResponse, L as Logger, w as LoggerConfig, M as MagicalAuthConfig, z as PLMN, K as PrepareOptions, P as PrepareRequest, N as PrepareResponse, O as ProtocolType, T as ReportInvocationRequest, R as ReportInvocationResponse, U as ResolvedConfig, W as RiskLevel, Y as SessionInfo, $ as SessionStatus, a0 as SimSwapFailureReason, a1 as SimSwapInfo, S as StatusResponse, a5 as Theme, a8 as UseCase, V as VerifyPhoneNumberRequest, b as VerifyPhoneNumberResponse } from './types-DKfytuP6.js';
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@glideidentity/glide-be-node-magical-auth",
3
+ "version": "2.0.0",
4
+ "description": "Glide Magical Auth SDK for Node.js - Phone number authentication without SMS/OTP",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js",
10
+ "require": "./dist/index.cjs"
11
+ },
12
+ "./types": {
13
+ "types": "./dist/types.d.ts",
14
+ "import": "./dist/types.js",
15
+ "require": "./dist/types.cjs"
16
+ }
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ "types": ["./dist/types.d.ts"]
21
+ }
22
+ },
23
+ "main": "./dist/index.cjs",
24
+ "module": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ },
32
+ "scripts": {
33
+ "build": "tsup",
34
+ "test": "tsx --test tests/*.test.ts",
35
+ "test:watch": "tsx --test --watch tests/*.test.ts",
36
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
37
+ "lint": "tsc --noEmit && echo 'Type check passed'",
38
+ "prepublishOnly": "npm run build"
39
+ },
40
+ "keywords": [
41
+ "glide",
42
+ "magical-auth",
43
+ "phone-verification",
44
+ "authentication",
45
+ "ts43",
46
+ "carrier-auth"
47
+ ],
48
+ "author": "Glide <support@glideidentity.app>",
49
+ "license": "SEE LICENSE IN LICENSE",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/GlideIdentity/publish-magical-auth-be-sdks.git",
53
+ "directory": "sdks/node"
54
+ },
55
+ "bugs": {
56
+ "url": "https://github.com/GlideIdentity/publish-magical-auth-be-sdks/issues"
57
+ },
58
+ "homepage": "https://github.com/GlideIdentity/publish-magical-auth-be-sdks/tree/master/sdks/node#readme",
59
+ "dependencies": {},
60
+ "devDependencies": {
61
+ "@types/node": "^20.0.0",
62
+ "tsup": "^8.0.0",
63
+ "tsx": "^4.0.0",
64
+ "typescript": "^5.0.0"
65
+ }
66
+ }