@thewhateverapp/platform 0.0.2 → 0.0.3

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.
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Mobile Authentication Client
3
+ *
4
+ * Client for React Native apps to authenticate users with platform-api
5
+ */
6
+ import type { AuthResponse, GoogleAuthRequest, TwitterAuthRequest, RefreshTokenResponse, DeviceRegistrationRequest, InviteValidationResult } from './types';
7
+ export interface MobileAuthClientConfig {
8
+ apiUrl?: string;
9
+ fetch?: typeof fetch;
10
+ timeout?: number;
11
+ }
12
+ export declare class MobileAuthClient {
13
+ private apiUrl;
14
+ private fetchFn;
15
+ private timeout;
16
+ constructor(config?: MobileAuthClientConfig);
17
+ /**
18
+ * Make authenticated request with timeout
19
+ */
20
+ private request;
21
+ /**
22
+ * Login with Google (supports both mobile and web tokens)
23
+ */
24
+ loginWithGoogle(request: GoogleAuthRequest): Promise<AuthResponse>;
25
+ /**
26
+ * Login with Twitter
27
+ */
28
+ loginWithTwitter(request: TwitterAuthRequest): Promise<AuthResponse>;
29
+ /**
30
+ * Refresh JWT token
31
+ * Call this periodically (e.g., on app launch) to keep session alive
32
+ */
33
+ refreshToken(currentToken: string): Promise<RefreshTokenResponse>;
34
+ /**
35
+ * Register device for push notifications
36
+ */
37
+ registerDevice(token: string, request: DeviceRegistrationRequest): Promise<{
38
+ success: boolean;
39
+ }>;
40
+ /**
41
+ * Remove device registration (call on logout)
42
+ */
43
+ removeDevice(token: string, deviceId: string): Promise<{
44
+ success: boolean;
45
+ }>;
46
+ /**
47
+ * Validate invite code before signup
48
+ */
49
+ validateInvite(code: string): Promise<InviteValidationResult>;
50
+ /**
51
+ * Get current user profile
52
+ */
53
+ getCurrentUser(token: string): Promise<AuthResponse['user']>;
54
+ }
55
+ /**
56
+ * Custom error class for authentication errors
57
+ */
58
+ export declare class AuthError extends Error {
59
+ code: string;
60
+ status: number;
61
+ constructor(message: string, code: string, status: number);
62
+ /**
63
+ * Check if error is due to expired token
64
+ */
65
+ isTokenExpired(): boolean;
66
+ /**
67
+ * Check if error is due to invalid invite code
68
+ */
69
+ isInvalidInvite(): boolean;
70
+ /**
71
+ * Check if error is network-related (retry-able)
72
+ */
73
+ isNetworkError(): boolean;
74
+ }
75
+ export type * from './types';
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/auth/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,GAAE,sBAA2B;IAM/C;;OAEG;YACW,OAAO;IAuDrB;;OAEG;IACG,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAQxE;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAQ1E;;;OAGG;IACG,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IASvE;;OAEG;IACG,cAAc,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAShC;;OAEG;IACG,YAAY,CAChB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAShC;;OAEG;IACG,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAQnE;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;CASnE;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAGzB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;gBAFrB,OAAO,EAAE,MAAM,EACR,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM;IAMvB;;OAEG;IACH,cAAc,IAAI,OAAO;IAIzB;;OAEG;IACH,eAAe,IAAI,OAAO;IAI1B;;OAEG;IACH,cAAc,IAAI,OAAO;CAG1B;AAGD,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Mobile Authentication Client
3
+ *
4
+ * Client for React Native apps to authenticate users with platform-api
5
+ */
6
+ export class MobileAuthClient {
7
+ apiUrl;
8
+ fetchFn;
9
+ timeout;
10
+ constructor(config = {}) {
11
+ this.apiUrl = config.apiUrl || 'https://api.thewhatever.app';
12
+ this.fetchFn = config.fetch || globalThis.fetch;
13
+ this.timeout = config.timeout || 30000; // 30 seconds
14
+ }
15
+ /**
16
+ * Make authenticated request with timeout
17
+ */
18
+ async request(method, path, body, token) {
19
+ const controller = new AbortController();
20
+ const timeoutId = setTimeout(() => controller.abort(), this.timeout);
21
+ try {
22
+ const headers = {
23
+ 'Content-Type': 'application/json',
24
+ };
25
+ if (token) {
26
+ headers['Authorization'] = `Bearer ${token}`;
27
+ }
28
+ const response = await this.fetchFn(`${this.apiUrl}${path}`, {
29
+ method,
30
+ headers,
31
+ body: body ? JSON.stringify(body) : undefined,
32
+ signal: controller.signal,
33
+ });
34
+ clearTimeout(timeoutId);
35
+ const data = await response.json();
36
+ if (!response.ok) {
37
+ // Structured error from platform-api
38
+ const error = data;
39
+ throw new AuthError(error.error, error.code, response.status);
40
+ }
41
+ return data;
42
+ }
43
+ catch (error) {
44
+ clearTimeout(timeoutId);
45
+ if (error instanceof AuthError) {
46
+ throw error;
47
+ }
48
+ if (error.name === 'AbortError') {
49
+ throw new AuthError('Request timeout', 'AUTH_INVALID_TOKEN', 408);
50
+ }
51
+ throw new AuthError(error.message || 'Network error', 'AUTH_INVALID_TOKEN', 500);
52
+ }
53
+ }
54
+ /**
55
+ * Login with Google (supports both mobile and web tokens)
56
+ */
57
+ async loginWithGoogle(request) {
58
+ return this.request('POST', '/platform/auth/google', request);
59
+ }
60
+ /**
61
+ * Login with Twitter
62
+ */
63
+ async loginWithTwitter(request) {
64
+ return this.request('POST', '/platform/auth/twitter', request);
65
+ }
66
+ /**
67
+ * Refresh JWT token
68
+ * Call this periodically (e.g., on app launch) to keep session alive
69
+ */
70
+ async refreshToken(currentToken) {
71
+ return this.request('POST', '/platform/auth/refresh', undefined, currentToken);
72
+ }
73
+ /**
74
+ * Register device for push notifications
75
+ */
76
+ async registerDevice(token, request) {
77
+ return this.request('POST', '/platform/auth/device', request, token);
78
+ }
79
+ /**
80
+ * Remove device registration (call on logout)
81
+ */
82
+ async removeDevice(token, deviceId) {
83
+ return this.request('DELETE', `/platform/auth/device/${deviceId}`, undefined, token);
84
+ }
85
+ /**
86
+ * Validate invite code before signup
87
+ */
88
+ async validateInvite(code) {
89
+ return this.request('POST', '/platform/auth/validate-invite', { code });
90
+ }
91
+ /**
92
+ * Get current user profile
93
+ */
94
+ async getCurrentUser(token) {
95
+ const response = await this.request('GET', '/platform/auth/me', undefined, token);
96
+ return response;
97
+ }
98
+ }
99
+ /**
100
+ * Custom error class for authentication errors
101
+ */
102
+ export class AuthError extends Error {
103
+ code;
104
+ status;
105
+ constructor(message, code, status) {
106
+ super(message);
107
+ this.code = code;
108
+ this.status = status;
109
+ this.name = 'AuthError';
110
+ }
111
+ /**
112
+ * Check if error is due to expired token
113
+ */
114
+ isTokenExpired() {
115
+ return this.code === 'AUTH_TOKEN_EXPIRED';
116
+ }
117
+ /**
118
+ * Check if error is due to invalid invite code
119
+ */
120
+ isInvalidInvite() {
121
+ return this.code === 'AUTH_INVITE_INVALID' || this.code === 'AUTH_INVITE_REQUIRED';
122
+ }
123
+ /**
124
+ * Check if error is network-related (retry-able)
125
+ */
126
+ isNetworkError() {
127
+ return this.status >= 500 || this.status === 408;
128
+ }
129
+ }
130
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/auth/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAS;IACf,OAAO,CAAe;IACtB,OAAO,CAAS;IAExB,YAAY,SAAiC,EAAE;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,6BAA6B,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,KAAK,CAAC,CAAC,aAAa;IACvD,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,OAAO,CACnB,MAAc,EACd,IAAY,EACZ,IAAU,EACV,KAAc;QAEd,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;QACzC,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAErE,IAAI,CAAC;YACH,MAAM,OAAO,GAA2B;gBACtC,cAAc,EAAE,kBAAkB;aACnC,CAAC;YAEF,IAAI,KAAK,EAAE,CAAC;gBACV,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,KAAK,EAAE,CAAC;YAC/C,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,C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;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,IAAI,KAAK,qBAAqB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAsB,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,CAAC;IACnD,CAAC;CACF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Mobile Authentication Types
3
+ *
4
+ * Type definitions for mobile app authentication with platform-api
5
+ */
6
+ export type AuthErrorCode = 'AUTH_INVALID_TOKEN' | 'AUTH_TOKEN_EXPIRED' | 'AUTH_MISSING_TOKEN' | 'AUTH_INVITE_REQUIRED' | 'AUTH_INVITE_INVALID' | 'AUTH_USER_NOT_FOUND' | 'AUTH_REFRESH_FAILED' | 'AUTH_DEVICE_REGISTRATION_FAILED' | 'AUTH_INVALID_PLATFORM' | 'AUTH_INVALID_DEVICE_DATA' | 'AUTH_DEVICE_REMOVAL_FAILED';
7
+ export interface AuthErrorResponse {
8
+ error: string;
9
+ code: AuthErrorCode;
10
+ }
11
+ export interface AuthUser {
12
+ id: string;
13
+ email?: string;
14
+ name?: string;
15
+ picture?: string;
16
+ role: 'user' | 'admin';
17
+ username?: string;
18
+ }
19
+ export interface AuthResponse {
20
+ token: string;
21
+ user: AuthUser;
22
+ }
23
+ export interface GoogleAuthRequest {
24
+ idToken?: string;
25
+ accessToken?: string;
26
+ inviteCode?: string;
27
+ }
28
+ export interface TwitterAuthRequest {
29
+ accessToken: string;
30
+ inviteCode?: string;
31
+ }
32
+ export interface RefreshTokenResponse {
33
+ token: string;
34
+ user: AuthUser;
35
+ }
36
+ export interface DeviceRegistrationRequest {
37
+ deviceToken: string;
38
+ platform: 'ios' | 'android';
39
+ deviceId: string;
40
+ appVersion?: string;
41
+ }
42
+ export interface InviteValidationResult {
43
+ valid: boolean;
44
+ error?: string;
45
+ invite?: {
46
+ code: string;
47
+ maxUses: number;
48
+ usedCount: number;
49
+ expiresAt?: string;
50
+ };
51
+ }
52
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/client/auth/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,iCAAiC,GACjC,uBAAuB,GACvB,0BAA0B,GAC1B,4BAA4B,CAAC;AAGjC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;CACrB;AAGD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;CAChB;AAGD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;CAChB;AAGD,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Mobile Authentication Types
3
+ *
4
+ * Type definitions for mobile app authentication with platform-api
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/client/auth/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -6,4 +6,6 @@
6
6
  */
7
7
  export { TileStateClient } from './tile-state';
8
8
  export type * from './tile-state/types';
9
+ export { MobileAuthClient, AuthError } from './auth';
10
+ export type * from './auth/types';
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,mBAAmB,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,mBAAmB,oBAAoB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrD,mBAAmB,cAAc,CAAC"}
@@ -6,4 +6,6 @@
6
6
  */
7
7
  // Tile State (Durable Objects) client
8
8
  export { TileStateClient } from './tile-state';
9
+ // Mobile Authentication client
10
+ export { MobileAuthClient, AuthError } from './auth';
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,sCAAsC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,sCAAsC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,+BAA+B;AAC/B,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thewhateverapp/platform",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Universal SDK for The Whatever App platform services",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",