feeef 0.9.2 → 0.9.4
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.
|
@@ -58,6 +58,11 @@ export declare const generatePublicStoreIntegrationTiktokPixel: (tiktokPixel: Ti
|
|
|
58
58
|
export declare const generatePublicStoreIntegrationGoogleAnalytics: (googleAnalytics: GoogleAnalyticsIntegration | null | undefined) => PublicGoogleAnalyticsIntegration | null | undefined;
|
|
59
59
|
export declare const generatePublicStoreIntegrationGoogleSheet: (googleSheet: GoogleSheetsIntegration | null | undefined) => PublicGoogleSheetsIntegration | null | undefined;
|
|
60
60
|
export declare const generatePublicStoreIntegrationGoogleTags: (googleTags: GoogleTagsIntegration | null | undefined) => PublicGoogleTagsIntegration | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Microsoft Clarity: only the project / tracking id is public (injected in storefront script).
|
|
63
|
+
* Optional apiKey is for Clarity APIs and is never exposed to the public store JSON.
|
|
64
|
+
*/
|
|
65
|
+
export declare const generatePublicStoreIntegrationClarity: (clarity: ClarityIntegration | null | undefined) => PublicClarityIntegration | null | undefined;
|
|
61
66
|
/**
|
|
62
67
|
* Generates public AI integration data from private integration data.
|
|
63
68
|
* Only exposes non-sensitive information, keeping the API key private for security.
|
|
@@ -136,6 +141,11 @@ export interface PublicGoogleTagsIntegration {
|
|
|
136
141
|
id: string;
|
|
137
142
|
active: boolean;
|
|
138
143
|
}
|
|
144
|
+
/** Public Clarity data: project id for the tag script only */
|
|
145
|
+
export interface PublicClarityIntegration {
|
|
146
|
+
active: boolean;
|
|
147
|
+
trackingCode: string;
|
|
148
|
+
}
|
|
139
149
|
export interface PublicAiIntegration {
|
|
140
150
|
active: boolean;
|
|
141
151
|
textModel: string;
|
|
@@ -182,6 +192,8 @@ export interface PublicStoreIntegrations {
|
|
|
182
192
|
googleAnalytics: PublicGoogleAnalyticsIntegration | null;
|
|
183
193
|
googleSheet: PublicGoogleSheetsIntegration | null;
|
|
184
194
|
googleTags: PublicGoogleTagsIntegration | null;
|
|
195
|
+
/** Clarity project id for client script only; apiKey is never public */
|
|
196
|
+
clarity: PublicClarityIntegration | null;
|
|
185
197
|
ai: PublicAiIntegration | null;
|
|
186
198
|
orderdz: PublicOrderdzIntegration | null;
|
|
187
199
|
webhooks: PublicWebhooksIntegration | null;
|
|
@@ -395,6 +407,18 @@ export interface GoogleTagsIntegration {
|
|
|
395
407
|
active: boolean;
|
|
396
408
|
metadata: Record<string, any>;
|
|
397
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Microsoft Clarity session analytics.
|
|
412
|
+
* trackingCode is the project id (public, used in storefront script).
|
|
413
|
+
* apiKey is optional and used for server-side Clarity APIs only — never sent in publicIntegrations.
|
|
414
|
+
*/
|
|
415
|
+
export interface ClarityIntegration {
|
|
416
|
+
active: boolean;
|
|
417
|
+
/** Clarity project id (e.g. wi0wntig7s) */
|
|
418
|
+
trackingCode: string;
|
|
419
|
+
apiKey?: string | null;
|
|
420
|
+
metadata?: Record<string, any>;
|
|
421
|
+
}
|
|
398
422
|
/**
|
|
399
423
|
* AI integration configuration for Google AI Studio.
|
|
400
424
|
*/
|
|
@@ -617,6 +641,7 @@ export interface StoreIntegrations {
|
|
|
617
641
|
googleAnalytics?: GoogleAnalyticsIntegration;
|
|
618
642
|
googleSheet?: GoogleSheetsIntegration;
|
|
619
643
|
googleTags?: GoogleTagsIntegration;
|
|
644
|
+
clarity?: ClarityIntegration;
|
|
620
645
|
ai?: AiIntegration;
|
|
621
646
|
orderdz?: OrderdzIntegration;
|
|
622
647
|
webhooks?: WebhooksIntegration;
|
|
@@ -151,6 +151,27 @@ export interface SigninWithSocialOptions {
|
|
|
151
151
|
code: string;
|
|
152
152
|
fcmToken?: string | null;
|
|
153
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Options for creating a short-lived, single-use Feeef auth code (QR / device login).
|
|
156
|
+
*/
|
|
157
|
+
export interface CreateAuthCodeOptions {
|
|
158
|
+
/** Optional deep-link destination to return alongside the code. */
|
|
159
|
+
redirect?: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Response from creating an auth code.
|
|
163
|
+
*/
|
|
164
|
+
export interface CreateAuthCodeResponse {
|
|
165
|
+
authCode: string;
|
|
166
|
+
expiresInSeconds: number;
|
|
167
|
+
redirect: string | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Options for signing in with a one-time Feeef auth code (OAuth-like semantics).
|
|
171
|
+
*/
|
|
172
|
+
export interface SigninWithCodeOptions {
|
|
173
|
+
authCode: string;
|
|
174
|
+
}
|
|
154
175
|
/**
|
|
155
176
|
* Options for passkey registration start.
|
|
156
177
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ModelRepository } from './repository.js';
|
|
3
|
-
import { AccessToken, AuthToken, CreateUserOptions, FinishPasskeyAuthenticationOptions, FinishPasskeyRegistrationOptions, LinkSocialAccountOptions, Passkey, SigninCredentials, SigninWithSocialOptions, SignupCredentials, TransferMoneyOptions, TransferMoneyResponse, UpdateUserOptions, UserEntity, UserUpdate, StartPasskeyAuthenticationOptions, StartPasskeyRegistrationOptions } from '../../core/entities/user.js';
|
|
3
|
+
import { AccessToken, AuthToken, CreateUserOptions, FinishPasskeyAuthenticationOptions, FinishPasskeyRegistrationOptions, LinkSocialAccountOptions, Passkey, CreateAuthCodeOptions, CreateAuthCodeResponse, SigninCredentials, SigninWithCodeOptions, SigninWithSocialOptions, SignupCredentials, TransferMoneyOptions, TransferMoneyResponse, UpdateUserOptions, UserEntity, UserUpdate, StartPasskeyAuthenticationOptions, StartPasskeyRegistrationOptions } from '../../core/entities/user.js';
|
|
4
4
|
/**
|
|
5
5
|
* Represents the response returned by the authentication process.
|
|
6
6
|
*/
|
|
@@ -51,6 +51,18 @@ export declare class UserRepository extends ModelRepository<UserEntity, CreateUs
|
|
|
51
51
|
* @returns A promise that resolves to the authentication response.
|
|
52
52
|
*/
|
|
53
53
|
signinWithToken(token: string, fcmToken?: string | null): Promise<AuthResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Generates a short-lived, single-use Feeef auth code for cross-device / QR login.
|
|
56
|
+
*
|
|
57
|
+
* POST `/users/auth/code` (auth required).
|
|
58
|
+
*/
|
|
59
|
+
createAuthCode(options?: CreateAuthCodeOptions): Promise<CreateAuthCodeResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Signs in using a one-time Feeef auth code (OAuth-like semantics).
|
|
62
|
+
*
|
|
63
|
+
* POST `/users/auth/code/consume` (public). On success it returns a bearer token and user.
|
|
64
|
+
*/
|
|
65
|
+
signinWithCode(options: SigninWithCodeOptions): Promise<AuthResponse>;
|
|
54
66
|
/**
|
|
55
67
|
* Signs out the currently authenticated user.
|
|
56
68
|
* Deletes the token on the server and clears local auth state.
|